edge-currency-accountbased 2.2.3 → 2.2.5

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 (76) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/android/src/main/assets/edge-currency-accountbased/1944.chunk.js +4 -0
  3. package/android/src/main/assets/edge-currency-accountbased/2153.chunk.js +2 -0
  4. package/android/src/main/assets/edge-currency-accountbased/2821.chunk.js +2 -0
  5. package/android/src/main/assets/edge-currency-accountbased/2896.chunk.js +35 -0
  6. package/android/src/main/assets/edge-currency-accountbased/2945.chunk.js +25 -0
  7. package/android/src/main/assets/edge-currency-accountbased/3491.chunk.js +1 -0
  8. package/android/src/main/assets/edge-currency-accountbased/{620.chunk.js → 3620.chunk.js} +1 -1
  9. package/android/src/main/assets/edge-currency-accountbased/{666.chunk.js → 3666.chunk.js} +1 -1
  10. package/android/src/main/assets/edge-currency-accountbased/3720.chunk.js +1 -0
  11. package/android/src/main/assets/edge-currency-accountbased/{978.chunk.js → 3978.chunk.js} +1 -1
  12. package/android/src/main/assets/edge-currency-accountbased/4251.chunk.js +4 -0
  13. package/android/src/main/assets/edge-currency-accountbased/4431.chunk.js +1 -0
  14. package/android/src/main/assets/edge-currency-accountbased/4618.chunk.js +20 -0
  15. package/android/src/main/assets/edge-currency-accountbased/{627.chunk.js → 4627.chunk.js} +1 -1
  16. package/android/src/main/assets/edge-currency-accountbased/4650.chunk.js +1 -0
  17. package/android/src/main/assets/edge-currency-accountbased/{826.chunk.js → 5179.chunk.js} +1 -1
  18. package/android/src/main/assets/edge-currency-accountbased/{835.chunk.js → 5835.chunk.js} +1 -1
  19. package/android/src/main/assets/edge-currency-accountbased/5836.chunk.js +1 -0
  20. package/android/src/main/assets/edge-currency-accountbased/6266.chunk.js +1 -0
  21. package/android/src/main/assets/edge-currency-accountbased/6291.chunk.js +58 -0
  22. package/android/src/main/assets/edge-currency-accountbased/6341.chunk.js +44 -0
  23. package/android/src/main/assets/edge-currency-accountbased/7221.chunk.js +1 -0
  24. package/android/src/main/assets/edge-currency-accountbased/7428.chunk.js +6 -0
  25. package/android/src/main/assets/edge-currency-accountbased/{481.chunk.js → 7481.chunk.js} +1 -1
  26. package/android/src/main/assets/edge-currency-accountbased/7542.chunk.js +1 -0
  27. package/android/src/main/assets/edge-currency-accountbased/7786.chunk.js +2 -0
  28. package/android/src/main/assets/edge-currency-accountbased/8190.chunk.js +1 -0
  29. package/android/src/main/assets/edge-currency-accountbased/{689.chunk.js → 8689.chunk.js} +1 -1
  30. package/android/src/main/assets/edge-currency-accountbased/{726.chunk.js → 8726.chunk.js} +1 -1
  31. package/android/src/main/assets/edge-currency-accountbased/9068.chunk.js +1 -0
  32. package/android/src/main/assets/edge-currency-accountbased/{223.chunk.js → 9223.chunk.js} +2 -2
  33. package/android/src/main/assets/edge-currency-accountbased/9539.chunk.js +10 -0
  34. package/android/src/main/assets/edge-currency-accountbased/{645.chunk.js → 9645.chunk.js} +6 -6
  35. package/android/src/main/assets/edge-currency-accountbased/9669.chunk.js +7 -0
  36. package/android/src/main/assets/edge-currency-accountbased/algorand.chunk.js +1 -1
  37. package/android/src/main/assets/edge-currency-accountbased/bnb.chunk.js +2 -2
  38. package/android/src/main/assets/edge-currency-accountbased/edge-currency-accountbased.js +2 -18
  39. package/android/src/main/assets/edge-currency-accountbased/eos.chunk.js +5 -5
  40. package/android/src/main/assets/edge-currency-accountbased/ethereum.chunk.js +2 -2
  41. package/android/src/main/assets/edge-currency-accountbased/filecoin.chunk.js +1 -1
  42. package/android/src/main/assets/edge-currency-accountbased/fio.chunk.js +2 -2
  43. package/android/src/main/assets/edge-currency-accountbased/hedera.chunk.js +2 -2
  44. package/android/src/main/assets/edge-currency-accountbased/polkadot.chunk.js +2 -2
  45. package/android/src/main/assets/edge-currency-accountbased/ripple.chunk.js +2 -2
  46. package/android/src/main/assets/edge-currency-accountbased/solana.chunk.js +2 -2
  47. package/android/src/main/assets/edge-currency-accountbased/stellar.chunk.js +2 -2
  48. package/android/src/main/assets/edge-currency-accountbased/tezos.chunk.js +2 -2
  49. package/android/src/main/assets/edge-currency-accountbased/tron.chunk.js +1 -1
  50. package/android/src/main/assets/edge-currency-accountbased/zcash.chunk.js +2 -2
  51. package/lib/ethereum/info/avalancheInfo.js +8 -0
  52. package/lib/ethereum/info/ethereumInfo.js +8 -0
  53. package/lib/filecoin/FilecoinEngine.js +112 -79
  54. package/lib/filecoin/Filfox.js +68 -1
  55. package/lib/filecoin/filecoinInfo.js +8 -3
  56. package/lib/filecoin/filecoinTypes.js +1 -6
  57. package/lib/zcash/ZcashEngine.js +11 -9
  58. package/package.json +1 -1
  59. package/android/src/main/assets/edge-currency-accountbased/124.chunk.js +0 -35
  60. package/android/src/main/assets/edge-currency-accountbased/17.chunk.js +0 -58
  61. package/android/src/main/assets/edge-currency-accountbased/190.chunk.js +0 -1
  62. package/android/src/main/assets/edge-currency-accountbased/221.chunk.js +0 -1
  63. package/android/src/main/assets/edge-currency-accountbased/298.chunk.js +0 -44
  64. package/android/src/main/assets/edge-currency-accountbased/431.chunk.js +0 -1
  65. package/android/src/main/assets/edge-currency-accountbased/491.chunk.js +0 -1
  66. package/android/src/main/assets/edge-currency-accountbased/539.chunk.js +0 -10
  67. package/android/src/main/assets/edge-currency-accountbased/542.chunk.js +0 -1
  68. package/android/src/main/assets/edge-currency-accountbased/618.chunk.js +0 -20
  69. package/android/src/main/assets/edge-currency-accountbased/650.chunk.js +0 -1
  70. package/android/src/main/assets/edge-currency-accountbased/68.chunk.js +0 -1
  71. package/android/src/main/assets/edge-currency-accountbased/720.chunk.js +0 -1
  72. package/android/src/main/assets/edge-currency-accountbased/786.chunk.js +0 -2
  73. package/android/src/main/assets/edge-currency-accountbased/836.chunk.js +0 -1
  74. package/android/src/main/assets/edge-currency-accountbased/935.chunk.js +0 -1
  75. package/android/src/main/assets/edge-currency-accountbased/944.chunk.js +0 -4
  76. package/android/src/main/assets/edge-currency-accountbased/945.chunk.js +0 -25
@@ -1,44 +0,0 @@
1
- (self.webpackChunkedge_currency_accountbased=self.webpackChunkedge_currency_accountbased||[]).push([[298],{62836:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.decodeFieldNumberAndTyp3=l.unMarshalBinaryBare=l.unMarshalBinaryLengthPrefixed=void 0;var u=r(e(38416)),a=r(e(94315)),g=e(74286),s=r(e(10881));function c(S,L){var B=Object.keys(S);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(S);L&&(T=T.filter(function(o){return Object.getOwnPropertyDescriptor(S,o).enumerable})),B.push.apply(B,T)}return B}function v(S){for(var L=1;L<arguments.length;L++){var B=arguments[L]!=null?arguments[L]:{};L%2?c(Object(B),!0).forEach(function(T){(0,u.default)(S,T,B[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(B)):c(Object(B)).forEach(function(T){Object.defineProperty(S,T,Object.getOwnPropertyDescriptor(B,T))})}return S}var y=function(L,B){var T=B.decode(L,0),o=B.encodingLength(T);return{val:T,offset:o}},b=function(L,B){if(L.length===0)throw new TypeError("Cannot decode empty bytes");var T=y(L,g.varint),o=T.offset;if(o<0)throw new Error("Error reading msg byte-length prefix: got code ".concat(o));return L=L.slice(o),N(L,B)};l.unMarshalBinaryLengthPrefixed=b;var N=function(L,B){if(!a.default.object(B))throw new TypeError("type should be object");if(!p.isBuffer(L))throw new TypeError("bytes must be buffer");if(a.default.array(B)){if(!a.default.object(B[0]))throw new TypeError("type should be object");return w(L,B[0])}return I(L,B)};l.unMarshalBinaryBare=N;var I=function(L,B,T){if(p.isBuffer(B))return y(L,g.bytes);if(a.default.array(B))return w(L,B);if(a.default.number(B))return y(L,g.varint);if(a.default.boolean(B))return y(L,g.bool);if(a.default.string(B))return y(L,g.string);if(a.default.object(B))return x(L,B,T)},z=function(L,B){a.default.object(L[B])&&(L[B]=null),a.default.number(L[B])&&(L[B]=0),a.default.boolean(L[B])&&(L[B]=!1),a.default.string(L[B])&&(L[B]="")},x=function(L,B,T){var o=0;if(T){var f=y(L,g.varint),h=f.offset;L=L.slice(h),o+=h}B.aminoPrefix&&(L=L.slice(4),o+=4);var E=0,j=Object.keys(B).filter(function(F){return F!=="aminoPrefix"});return j.forEach(function(F,W){if(a.default.array(B[F])){var d=w(L,B[F][0]),A=d.offset,k=d.val;o+=A,B[F]=k,L=L.slice(A)}else{var O=P(L),U=O.fieldNum,H=O.typ;if(W+1!==U||U<0){z(B,F);return}if(U<=E)throw new Error("encountered fieldNum: ".concat(U,", but we have already seen fnum: ").concat(E));if(E=U,W+1!==U)throw new Error("field number is not expected");var V=(0,s.default)(B[F]);if(H!==V)throw new Error("field type is not expected");L=L.slice(1);var Q=I(L,B[F],!0),Z=Q.val,J=Q.offset;B[F]=Z,L=L.slice(J),o+=J+1}}),{val:B,offset:o}},w=function(L,B){for(var T=[],o=0,f=P(L),h=f.fieldNum;;){var E=P(L),j=E.fieldNum;if(j!==h||j<0)break;if(L=L.slice(1),!(L.length>0&&L.readUInt8(0)===0)){var F=I(L,B,!0),W=F.offset,d=F.val;T.push(v({},d)),L=L.slice(W+1),o+=W+1,h=j}}return{val:T,offset:o}},P=function(L){if(L.length<2)return{fieldNum:-1};var B=y(L,g.varint),T=B.val,o=T&7,f=T>>3;if(f>1<<29-1)throw new Error("invalid field num ".concat(f));return{fieldNum:f,typ:o}};l.decodeFieldNumberAndTyp3=P},47070:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(64836);Object.defineProperty(l,"__esModule",{value:!0});var u={encodeNumber:!0,encodeBool:!0,encodeString:!0,encodeTime:!0,convertObjectToSignBytes:!0,marshalBinary:!0,marshalBinaryBare:!0,encodeBinary:!0,encodeBinaryByteArray:!0,encodeObjectBinary:!0,encodeArrayBinary:!0};l.encodeArrayBinary=l.encodeObjectBinary=l.encodeBinaryByteArray=l.encodeBinary=l.marshalBinaryBare=l.marshalBinary=l.convertObjectToSignBytes=l.encodeTime=l.encodeString=l.encodeBool=l.encodeNumber=void 0;var a=r(e(18698)),g=r(e(94315)),s=e(74286),c=r(e(10881)),v=e(34557);Object.keys(v).forEach(function(h){h==="default"||h==="__esModule"||Object.prototype.hasOwnProperty.call(u,h)||Object.defineProperty(l,h,{enumerable:!0,get:function(){return v[h]}})});var y=function h(E){if(E===null)return null;if((0,a.default)(E)!=="object")return E;if(Array.isArray(E))return E.map(h);var j=Object.keys(E).sort(),F={};return j.forEach(function(W){F[W]=h(E[W])}),F},b=function(E){return v.UVarInt.encode(E)};l.encodeNumber=b;var N=function(E){return E?v.UVarInt.encode(1):v.UVarInt.encode(0)};l.encodeBool=N;var I=function(E){var j=p.alloc(s.string.encodingLength(E));return s.string.encode(E,j,0)};l.encodeString=I;var z=function(E){var j=new Date(E).getTime(),F=Math.floor(j/1e3),W=Number(F.toString().padEnd(9,"0")),d=p.alloc(14);return d.writeInt32LE(1<<3|1,0),d.writeUInt32LE(F,1),d.writeInt32LE(2<<3|5,9),d.writeUInt32LE(W,10),d};l.encodeTime=z;var x=function(E){return p.from(JSON.stringify(y(E)))};l.convertObjectToSignBytes=x;var w=function(E){if(!g.default.object(E))throw new TypeError("data must be an object");return S(E,-1,!0).toString("hex")};l.marshalBinary=w;var P=function(E){if(!g.default.object(E))throw new TypeError("data must be an object");return S(E).toString("hex")};l.marshalBinaryBare=P;var S=function(E,j,F){if(E==null)throw new TypeError("unsupported type");if(p.isBuffer(E))return F?p.concat([v.UVarInt.encode(E.length),E]):E;if(g.default.array(E))return T(j,E,F);if(g.default.number(E))return b(E);if(g.default.boolean(E))return N(E);if(g.default.string(E))return I(E);if(g.default.object(E))return B(E,F)};l.encodeBinary=S;var L=function(E){var j=E.length;return p.concat([v.UVarInt.encode(j),E])};l.encodeBinaryByteArray=L;var B=function(E,j){var F=[];Object.keys(E).forEach(function(k,O){k==="aminoPrefix"||k==="version"||f(E[k])||(g.default.array(E[k])&&E[k].length>0?F.push(T(O,E[k])):(F.push(o(O,E[k])),F.push(S(E[k],O,!0))))});var W=p.concat(F);if(E.aminoPrefix){var d=p.from(E.aminoPrefix,"hex");W=p.concat([d,W])}if(j){var A=v.UVarInt.encode(W.length);W=p.concat([A,W])}return W};l.encodeObjectBinary=B;var T=function(E,j,F){var W=[];if(j.forEach(function(A){if(W.push(o(E,A)),f(A)){W.push(p.from("00","hex"));return}W.push(S(A,E,!0))}),F){var d=W.reduce(function(A,k){return A+k.length},0);W.unshift(v.UVarInt.encode(d))}return p.concat(W)};l.encodeArrayBinary=T;var o=function(E,j){E=Number(E);var F=E+1<<3|(0,c.default)(j);return v.UVarInt.encode(F)},f=function(E){return E===null?!1:g.default.number(E)&&E===0||g.default.string(E)&&E===""||g.default.array(E)&&E.length===0||g.default.boolean(E)&&!E}},34557:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.VarInt=l.UVarInt=void 0;var u=r(e(13550));function a(c){var v=function(I){if(c&&(I*=2),I<0)throw Error("varint value is out of bounds");var z=Math.log2(I+1);return Math.ceil(z/7)||1},y=function(I,z,x){if(I<0)throw Error("varint value is out of bounds");z=z||p.alloc(v(I)),x=x||0;var w=I.toString(),P=new u.default(w,10),S=new u.default(255),L=new u.default(128);c&&(P=P.muln(2));for(var B=0;P.gten(128);)z[x+B]=P.and(S).or(L).toNumber(),P=P.shrn(7),B++;return z[x+B]=P.andln(255),z},b=function(I){for(var z=0,x=0,w=0,P=I.length;w<P;w++){var S=I[w];if(S<128)return w>9||w===9&&S>1?0:z|S<<x;z|=(S&127)<<x,x+=7}return 0};return{encode:y,decode:b,encodingLength:v}}var g=a(!1);l.UVarInt=g;var s=a(!0);l.VarInt=s},57255:function(G,l,e){"use strict";var p=e(75263);Object.defineProperty(l,"__esModule",{value:!0});var r={decoder:!0,encoder:!0};l.encoder=l.decoder=void 0;var u=p(e(62836));l.decoder=u,Object.keys(u).forEach(function(g){g==="default"||g==="__esModule"||Object.prototype.hasOwnProperty.call(r,g)||Object.defineProperty(l,g,{enumerable:!0,get:function(){return u[g]}})});var a=p(e(47070));l.encoder=a,Object.keys(a).forEach(function(g){g==="default"||g==="__esModule"||Object.prototype.hasOwnProperty.call(r,g)||Object.defineProperty(l,g,{enumerable:!0,get:function(){return a[g]}})})},35241:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.Bridge=void 0;var u=r(e(64687)),a=r(e(17156)),g=r(e(56690)),s=r(e(89728)),c=r(e(38416)),v=e(23898),y=e(54684),b=function(){function N(I){(0,g.default)(this,N),(0,c.default)(this,"_bncClient",void 0),this._bncClient=I}return(0,s.default)(N,[{key:"transferIn",value:function(){var I=(0,a.default)(u.default.mark(function x(w){var P,S,L,B,T,o,f,h,E,j,F,W;return u.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(P=w.sequence,S=w.contract_address,L=w.refund_addresses,B=w.receiver_addresses,T=w.amounts,o=w.relay_fee,f=w.expire_time,h=w.symbol,E=w.fromAddress,!(P<0)){A.next=3;break}throw new Error("sequence should not be less than 0");case 3:if(S){A.next=5;break}throw new Error("contract address should not be empty");case 5:if(o){A.next=7;break}throw new Error("relay fee should not be empty");case 7:if(h){A.next=9;break}throw new Error("symbol should not be null");case 9:if((0,v.checkAddress)(E,this._bncClient.addressPrefix)){A.next=11;break}throw new Error("fromAddress is not a valid Binance Chain address");case 11:if(!(L.length!=B.length||L.length!=T.length)){A.next=13;break}throw new Error("the length of refund address array, recipient address array and transfer amount array must be the same");case 13:return j=B.map(function(k){var O=k.startsWith("tbnb")?"tbnb":"bnb";if(!(0,v.checkAddress)(k,O))throw new Error("".concat(k," in receiver_addresses is not a valid Binance Chain address"));return(0,v.decodeAddress)(k)}),F=L.map(function(k){if(!k.startsWith("0x"))throw new Error("".concat(k," is invalid"));return p.from(k.slice(2),"hex")}),W=p.from(JSON.stringify({contract_address:S,refund_addresses:F,receiver_addresses:j,amounts:T,symbol:h,relay_fee:o,expire_time:f})).toString("hex"),A.abrupt("return",this.buildClaimAndBroadcast({claimHex:W,claim_type:y.ClaimTypes.ClaimTypeTransferIn,fromAddress:E,sequence:P}));case 17:case"end":return A.stop()}},x,this)}));function z(x){return I.apply(this,arguments)}return z}()},{key:"transferOutRefund",value:function(){var I=(0,a.default)(u.default.mark(function x(w){var P,S,L,B,T,o;return u.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(P=w.transfer_out_sequence,S=w.refund_address,L=w.refund_reason,B=w.amount,T=w.fromAddress,!(P<0)){h.next=3;break}throw new Error("sequence should not be less than 0");case 3:if(B){h.next=5;break}throw new Error("amount should not be empty");case 5:if(L){h.next=7;break}throw new Error("empty refund reason");case 7:if((0,v.checkAddress)(T,this._bncClient.addressPrefix)){h.next=9;break}throw new Error("fromAddress is not a valid Binance Chain address");case 9:return o=p.from(JSON.stringify({transfer_out_sequence:P,refund_address:S,amount:B,refund_reason:L})).toString("hex"),h.abrupt("return",this.buildClaimAndBroadcast({claimHex:o,claim_type:y.ClaimTypes.ClaimTypeTransferOutRefund,sequence:P,fromAddress:T}));case 11:case"end":return h.stop()}},x,this)}));function z(x){return I.apply(this,arguments)}return z}()},{key:"bind",value:function(){var I=(0,a.default)(u.default.mark(function x(w){var P,S,L,B,T,o,f;return u.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(P=w.contractAddress,S=w.contractDecimal,L=w.amount,B=w.symbol,T=w.expireTime,o=w.fromAddress,(0,v.checkAddress)(o,this._bncClient.addressPrefix)){E.next=3;break}throw new Error("fromAddress is not a valid Binance Chain address");case 3:if(P.startsWith("0x")){E.next=5;break}throw new Error('contractAddress "'.concat(P,'" is invalid'));case 5:return f=new y.BindMsg({from:o,amount:L,contract_address:P,contract_decimals:S,expire_time:T,symbol:B}),E.next=8,this.broadcast(f,o);case 8:return E.abrupt("return",E.sent);case 9:case"end":return E.stop()}},x,this)}));function z(x){return I.apply(this,arguments)}return z}()},{key:"transferFromBcToBsc",value:function(){var I=(0,a.default)(u.default.mark(function x(w){var P,S,L,B,T,o;return u.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(P=w.toAddress,S=w.amount,L=w.symbol,B=w.expireTime,T=w.fromAddress,(0,v.checkAddress)(T,this._bncClient.addressPrefix)){h.next=3;break}throw new Error("fromAddress is not a valid Binance Chain address");case 3:if(P.startsWith("0x")){h.next=5;break}throw new Error('toAddress "'.concat(P,'" is invalid'));case 5:return o=new y.TransferOutMsg({from:T,to:P,amount:{denom:L,amount:S},expire_time:B}),h.abrupt("return",this.broadcast(o,T));case 7:case"end":return h.stop()}},x,this)}));function z(x){return I.apply(this,arguments)}return z}()},{key:"upateBind",value:function(){var I=(0,a.default)(u.default.mark(function x(w){var P,S,L,B,T,o;return u.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(P=w.sequence,S=w.contract_address,L=w.symbol,B=w.status,T=w.fromAddress,(0,v.checkAddress)(T,this._bncClient.addressPrefix)){h.next=3;break}throw new Error("fromAddress is not a valid Binance Chain address");case 3:if(S.startsWith("0x")){h.next=5;break}throw new Error('toAddress "'.concat(S,'" is invalid'));case 5:return o=p.from(JSON.stringify({status:B,symbol:L,contract_address:S})).toString("hex"),h.abrupt("return",this.buildClaimAndBroadcast({claimHex:o,sequence:P,fromAddress:T,claim_type:y.ClaimTypes.ClaimTypeUpdateBind}));case 7:case"end":return h.stop()}},x,this)}));function z(x){return I.apply(this,arguments)}return z}()},{key:"skipSequence",value:function(){var I=(0,a.default)(u.default.mark(function x(w){var P,S,L,B;return u.default.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(P=w.sequence,S=w.sequenceToSkip,L=w.fromAddress,!(P<0)){o.next=3;break}throw new Error("sequence should not be less than 0");case 3:if((0,v.checkAddress)(L,this._bncClient.addressPrefix)){o.next=5;break}throw new Error("fromAddress is not a valid Binance Chain address");case 5:return B=p.from(JSON.stringify({claim_type:y.ClaimTypes.ClaimTypeUpdateBind,sequence:S})).toString("hex"),o.abrupt("return",this.buildClaimAndBroadcast({claimHex:B,sequence:P,fromAddress:L,claim_type:y.ClaimTypes.ClaimTypeSkipSequence}));case 7:case"end":return o.stop()}},x,this)}));function z(x){return I.apply(this,arguments)}return z}()},{key:"buildClaimAndBroadcast",value:function(){var I=(0,a.default)(u.default.mark(function x(w){var P,S,L,B,T;return u.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return P=w.claimHex,S=w.claim_type,L=w.sequence,B=w.fromAddress,T=new y.ClaimMsg({claim_type:S,sequence:L,claim:P,validator_address:B}),f.next=4,this.broadcast(T,B,L);case 4:return f.abrupt("return",f.sent);case 5:case"end":return f.stop()}},x,this)}));function z(x){return I.apply(this,arguments)}return z}()},{key:"broadcast",value:function(){var I=(0,a.default)(u.default.mark(function x(w,P,S){var L;return u.default.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,this._bncClient._prepareTransaction(w.getMsg(),w.getSignMsg(),P,S);case 2:return L=T.sent,T.abrupt("return",this._bncClient._broadcastDelegate(L));case 4:case"end":return T.stop()}},x,this)}));function z(x,w,P){return I.apply(this,arguments)}return z}()}]),N}();l.Bridge=b},98867:function(G,l,e){"use strict";var p=e(75263),r=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.default=l.voteOption=void 0;var u=r(e(64687)),a=r(e(17156)),g=r(e(56690)),s=r(e(89728)),c=r(e(38416)),v=r(e(93302)),y=p(e(23898)),b=e(54684),N=e(72731),I=r(e(80722)),z=Math.pow(10,8),x={4:"ListTradingPair",0:"Nil",1:"Text",2:"ParameterChange",3:"SoftwareUpgrade",5:"FeeChange",6:"CreateValidator",7:"RemoveValidator"},w={OptionEmpty:0,OptionYes:1,OptionAbstain:2,OptionNo:3,OptionNoWithVeto:4};l.voteOption=w;var P={0:"Empty",1:"Yes",2:"Abstain",3:"No",4:"NoWithVeto"},S=function(){function B(T){return(0,g.default)(this,B),(0,c.default)(this,"_bncClient",void 0),B.instance||(this._bncClient=T,B.instance=this),B.instance}return(0,s.default)(B,[{key:"submitListProposal",value:function(){var T=(0,a.default)(u.default.mark(function f(h){var E,j,F,W,d,A;return u.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return E={base_asset_symbol:h.baseAsset,quote_asset_symbol:h.quoteAsset,init_price:+new v.default(h.initPrice).mul(z).toString(),description:h.description,expire_time:new Date(h.expireTime).toISOString()},j=JSON.stringify(E),F=h.address,W=h.title,d=h.initialDeposit,A=h.votingPeriod,O.next=5,this.submitProposal(F,W,j,I.default.ProposalTypeListTradingPair,d,A);case 5:return O.abrupt("return",O.sent);case 6:case"end":return O.stop()}},f,this)}));function o(f){return T.apply(this,arguments)}return o}()},{key:"submitProposal",value:function(){var T=(0,a.default)(u.default.mark(function f(h,E,j,F,W,d){var A,k,O,U,H;return u.default.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return A=y.decodeAddress(h),k=[{denom:"BNB",amount:new v.default(W).mul(z).toString()}],d=+new v.default(d).mul(Math.pow(10,9)).toString(),O={title:E,description:j,proposal_type:F,proposer:A,initial_deposit:[{denom:"BNB",amount:+new v.default(W).mul(z).toString()}],voting_period:d,aminoPrefix:b.AminoPrefix.MsgSubmitProposal},U={description:j,initial_deposit:k,proposal_type:x[F],proposer:h,title:E,voting_period:d.toString()},Q.next=7,this._bncClient._prepareTransaction(O,U,h);case 7:return H=Q.sent,Q.abrupt("return",this._bncClient._broadcastDelegate(H));case 9:case"end":return Q.stop()}},f,this)}));function o(f,h,E,j,F,W){return T.apply(this,arguments)}return o}()},{key:"deposit",value:function(){var T=(0,a.default)(u.default.mark(function f(h,E,j){var F,W,d,A,k;return u.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return F=y.decodeAddress(E),(0,N.checkCoins)(j),W=[],j.forEach(function(H){W.push({denom:H.denom,amount:+new v.default(H.amount).mul(z).toString()})}),d={proposal_id:h,depositer:F,amount:W,aminoPrefix:b.AminoPrefix.MsgDeposit},A={amount:W.map(function(H){return{denom:H.denom,amount:String(H.amount)}}),depositer:E,proposal_id:String(h)},U.next=8,this._bncClient._prepareTransaction(d,A,E);case 8:return k=U.sent,U.abrupt("return",this._bncClient._broadcastDelegate(k));case 10:case"end":return U.stop()}},f,this)}));function o(f,h,E){return T.apply(this,arguments)}return o}()},{key:"vote",value:function(){var T=(0,a.default)(u.default.mark(function f(h,E,j){var F,W,d,A;return u.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return F=y.decodeAddress(E),W={proposal_id:h,voter:F,option:j,aminoPrefix:b.AminoPrefix.MsgVote},d={option:P[j],proposal_id:String(h),voter:E},O.next=5,this._bncClient._prepareTransaction(W,d,E);case 5:return A=O.sent,O.abrupt("return",this._bncClient._broadcastDelegate(A));case 7:case"end":return O.stop()}},f,this)}));function o(f,h,E){return T.apply(this,arguments)}return o}()}]),B}();(0,c.default)(S,"instance",void 0);var L=S;l.default=L},80722:function(G,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var e=0,p=1,r=2,u=3,a=4,g=5,s=6,c=7,v={ProposalTypeNil:e,ProposalTypeText:p,ProposalTypeParameterChange:r,ProposalTypeSoftwareUpgrade:u,ProposalTypeListTradingPair:a,ProposalTypeFeeChange:g,ProposalTypeCreateValidator:s,ProposalTypeRemoveValidator:c};l.default=v},86052:function(G,l,e){"use strict";var p=e(75263),r=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.BncClient=l.LedgerSigningDelegate=l.DefaultBroadcastDelegate=l.DefaultSigningDelegate=l.NETWORK_PREFIX_MAPPING=l.api=void 0;var u=r(e(56690)),a=r(e(89728)),g=r(e(38416)),s=r(e(64687)),c=r(e(17156)),v=r(e(93302)),y=p(e(23898)),b=r(e(62455)),N=e(54684),I=r(e(33021)),z=e(72731),x=r(e(98867)),w=r(e(18620)),P=p(e(15683)),S=e(35241),L=e(92636);function B(k,O){var U=Object.keys(k);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(k);O&&(H=H.filter(function(V){return Object.getOwnPropertyDescriptor(k,V).enumerable})),U.push.apply(U,H)}return U}function T(k){for(var O=1;O<arguments.length;O++){var U=arguments[O]!=null?arguments[O]:{};O%2?B(Object(U),!0).forEach(function(H){(0,g.default)(k,H,U[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(U)):B(Object(U)).forEach(function(H){Object.defineProperty(k,H,Object.getOwnPropertyDescriptor(U,H))})}return k}var o=Math.pow(10,8),f={broadcast:"/api/v1/broadcast",nodeInfo:"/api/v1/node-info",getAccount:"/api/v1/account",getMarkets:"/api/v1/markets",getSwaps:"/api/v1/atomic-swaps",getOpenOrders:"/api/v1/orders/open",getDepth:"/api/v1/depth",getTransactions:"/api/v1/transactions",getTxs:"/bc/api/v1/txs",getTx:"/api/v1/tx"};l.api=f;var h={testnet:"tbnb",mainnet:"bnb"};l.NETWORK_PREFIX_MAPPING=h;var E=function(){var k=(0,c.default)(s.default.mark(function O(U,H){var V;return s.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(V=this.getPrivateKey(),V){Z.next=3;break}return Z.abrupt("return",Promise.reject("Private key has to be set before signing a transaction"));case 3:return Z.abrupt("return",U.sign(V,H));case 4:case"end":return Z.stop()}},O,this)}));return function(U,H,V){return k.apply(this,arguments)}}();l.DefaultSigningDelegate=E;var j=function(){var k=(0,c.default)(s.default.mark(function O(U){return s.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",this.sendTransaction(U,!0));case 1:case"end":return V.stop()}},O,this)}));return function(U,H){return k.apply(this,arguments)}}();l.DefaultBroadcastDelegate=j;var F=function(O,U,H,V,Q){return function(){var Z=(0,c.default)(s.default.mark(function J(X,q){var te,re,se,ne;return s.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return te=X.getSignBytes(q),U&&U(te),le.prev=2,le.next=5,O.getPublicKey(Q);case 5:return re=le.sent,le.next=8,O.sign(te,Q);case 8:se=le.sent,H&&H(re,se),le.next=16;break;case 12:le.prev=12,le.t0=le.catch(2),console.warn("LedgerSigningDelegate error",le.t0),V&&V(le.t0);case 16:if(!(se&&se.signature)){le.next=19;break}return ne=y.getPublicKey(re.pk.toString("hex")),le.abrupt("return",X.addSignature(ne,se.signature));case 19:return le.abrupt("return",X);case 20:case"end":return le.stop()}},J,null,[[2,12]])}));return function(J,X){return Z.apply(this,arguments)}}()};l.LedgerSigningDelegate=F;var W=function(O){O.forEach(function(U){var H=U.coins||[];H.forEach(function(V){if((0,z.checkNumber)(V.amount),!V.denom)throw new Error("invalid denmon")})})},d=function(O,U){U.forEach(function(H){var V=O[0].coins.find(function(Z){return Z.denom===H.denom});if(V){var Q=new v.default(V.amount);V.amount=Number(Q.plus(H.amount).toString())}else O[0].coins.push(T({},H))})},A=function(){function k(O){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if((0,u.default)(this,k),(0,g.default)(this,"_httpClient",void 0),(0,g.default)(this,"_signingDelegate",void 0),(0,g.default)(this,"_broadcastDelegate",void 0),(0,g.default)(this,"_useAsyncBroadcast",void 0),(0,g.default)(this,"_source",void 0),(0,g.default)(this,"tokens",void 0),(0,g.default)(this,"swap",void 0),(0,g.default)(this,"gov",void 0),(0,g.default)(this,"bridge",void 0),(0,g.default)(this,"stake",void 0),(0,g.default)(this,"chainId",void 0),(0,g.default)(this,"addressPrefix","tbnb"),(0,g.default)(this,"network","testnet"),(0,g.default)(this,"address",void 0),(0,g.default)(this,"_setPkPromise",void 0),(0,g.default)(this,"account_number",void 0),(0,g.default)(this,"_privateKey",null),!O)throw new Error("Binance chain server should not be null");this._httpClient=new I.default(O),this._signingDelegate=E,this._broadcastDelegate=j,this._useAsyncBroadcast=U,this._source=H,this.tokens=new P.default(this),this.swap=new w.default(this),this.gov=new x.default(this),this.bridge=new S.Bridge(this),this.stake=new L.Stake(this)}return(0,a.default)(k,[{key:"initChain",value:function(){var O=(0,c.default)(s.default.mark(function H(){var V;return s.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(this.chainId){Z.next=5;break}return Z.next=3,this._httpClient.request("get",f.nodeInfo);case 3:V=Z.sent,this.chainId=V.result.node_info&&V.result.node_info.network;case 5:return Z.abrupt("return",this);case 6:case"end":return Z.stop()}},H,this)}));function U(){return O.apply(this,arguments)}return U}()},{key:"chooseNetwork",value:function(U){this.addressPrefix=h[U]||"tbnb",this.network=h[U]?U:"testnet"}},{key:"setPrivateKey",value:function(){var O=(0,c.default)(s.default.mark(function H(V){var Q,Z,J,X,q=arguments;return s.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(Q=q.length>1&&q[1]!==void 0?q[1]:!1,V===this._privateKey){re.next=19;break}if(Z=y.getAddressFromPrivateKey(V,this.addressPrefix),Z){re.next=5;break}throw new Error("address is falsy: ".concat(Z,". invalid private key?"));case 5:if(this._privateKey=V,this.address=Z,Q){re.next=19;break}return re.prev=8,J=this._setPkPromise=this._httpClient.request("get","".concat(f.getAccount,"/").concat(Z)),re.next=12,J;case 12:X=re.sent,this.account_number=X.result.account_number,re.next=19;break;case 16:throw re.prev=16,re.t0=re.catch(8),new Error("unable to query the address on the blockchain. try sending it some funds first: ".concat(Z));case 19:return re.abrupt("return",this);case 20:case"end":return re.stop()}},H,this,[[8,16]])}));function U(H){return O.apply(this,arguments)}return U}()},{key:"removePrivateKey",value:function(){return this._privateKey=null,this}},{key:"getPrivateKey",value:function(){return this._privateKey}},{key:"setAccountNumber",value:function(U){this.account_number=U}},{key:"useAsyncBroadcast",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this._useAsyncBroadcast=U,this}},{key:"setSigningDelegate",value:function(U){if(typeof U!="function")throw new Error("signing delegate must be a function");return this._signingDelegate=U,this}},{key:"setBroadcastDelegate",value:function(U){if(typeof U!="function")throw new Error("broadcast delegate must be a function");return this._broadcastDelegate=U,this}},{key:"useDefaultSigningDelegate",value:function(){return this._signingDelegate=E,this}},{key:"useDefaultBroadcastDelegate",value:function(){return this._broadcastDelegate=j,this}},{key:"useLedgerSigningDelegate",value:function(){return this._signingDelegate=F.apply(void 0,arguments),this}},{key:"transfer",value:function(){var O=(0,c.default)(s.default.mark(function H(V,Q,Z,J){var X,q,te,re,se,ne,be,le,fe=arguments;return s.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return X=fe.length>4&&fe[4]!==void 0?fe[4]:"",q=fe.length>5&&fe[5]!==void 0?fe[5]:null,te=y.decodeAddress(V),re=y.decodeAddress(Q),Z=new v.default(Z),Z=Number(Z.mul(o).toString()),(0,z.checkNumber)(Z,"amount"),se={denom:J,amount:Z},ne={inputs:[{address:te,coins:[se]}],outputs:[{address:re,coins:[se]}],aminoPrefix:N.AminoPrefix.MsgSend},be={inputs:[{address:V,coins:[{amount:Z,denom:J}]}],outputs:[{address:Q,coins:[{amount:Z,denom:J}]}]},pe.next=12,this._prepareTransaction(ne,be,V,q,X);case 12:return le=pe.sent,pe.abrupt("return",this._broadcastDelegate(le));case 14:case"end":return pe.stop()}},H,this)}));function U(H,V,Q,Z){return O.apply(this,arguments)}return U}()},{key:"multiSend",value:function(){var O=(0,c.default)(s.default.mark(function H(V,Q){var Z,J,X,q,te,re,se,ne,be,le,fe=arguments;return s.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(Z=fe.length>2&&fe[2]!==void 0?fe[2]:"",J=fe.length>3&&fe[3]!==void 0?fe[3]:null,V){pe.next=4;break}throw new Error("fromAddress should not be falsy");case 4:if(Array.isArray(Q)){pe.next=6;break}throw new Error("outputs should be array");case 6:return W(Q),Q.forEach(function(Te){Te.coins=Te.coins.sort(function(Ee,xe){return Ee.denom.localeCompare(xe.denom)}),Te.coins.forEach(function(Ee){var xe=new v.default(Ee.amount);Ee.amount=Number(xe.mul(o).toString())})}),X=y.decodeAddress(V),q=[{address:X,coins:[]}],te=[],Q.forEach(function(Te){var Ee=y.decodeAddress(Te.to);d(q,Te.coins),te.push({address:Ee,coins:Te.coins})}),re={inputs:q,outputs:te,aminoPrefix:N.AminoPrefix.MsgSend},se=[{address:V,coins:[]}],ne=[],Q.forEach(function(Te,Ee){ne.push({address:Te.to,coins:[]}),Te.coins.forEach(function(xe){ne[Ee].coins.push(xe)}),d(se,Te.coins)}),be={inputs:se,outputs:ne},pe.next=19,this._prepareTransaction(re,be,V,J,Z);case 19:return le=pe.sent,pe.abrupt("return",this._broadcastDelegate(le));case 21:case"end":return pe.stop()}},H,this)}));function U(H,V){return O.apply(this,arguments)}return U}()},{key:"cancelOrder",value:function(){var O=(0,c.default)(s.default.mark(function H(V,Q,Z){var J,X,q,te,re,se=arguments;return s.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return J=se.length>3&&se[3]!==void 0?se[3]:null,X=y.decodeAddress(V),q={sender:X,symbol:Q,refid:Z,aminoPrefix:N.AminoPrefix.CancelOrderMsg},te={refid:Z,sender:V,symbol:Q},be.next=6,this._prepareTransaction(q,te,V,J,"");case 6:return re=be.sent,be.abrupt("return",this._broadcastDelegate(re));case 8:case"end":return be.stop()}},H,this)}));function U(H,V,Q){return O.apply(this,arguments)}return U}()},{key:"placeOrder",value:function(){var O=(0,c.default)(s.default.mark(function H(){var V,Q,Z,J,X,q,te,re,se,ne,be,le,fe,ce,pe=arguments;return s.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(V=pe.length>0&&pe[0]!==void 0?pe[0]:this.address,Q=pe.length>1?pe[1]:void 0,Z=pe.length>2?pe[2]:void 0,J=pe.length>3?pe[3]:void 0,X=pe.length>4?pe[4]:void 0,q=pe.length>5&&pe[5]!==void 0?pe[5]:null,te=pe.length>6&&pe[6]!==void 0?pe[6]:1,V){Ee.next=9;break}throw new Error("address should not be falsy");case 9:if(Q){Ee.next=11;break}throw new Error("symbol should not be falsy");case 11:if(!(Z!==1&&Z!==2)){Ee.next=13;break}throw new Error("side can only be 1 or 2");case 13:if(!(te!==1&&te!==3)){Ee.next=15;break}throw new Error("timeinforce can only be 1 or 3");case 15:if(re=y.decodeAddress(V),!(q!==0&&!q)){Ee.next=21;break}return Ee.next=19,this._httpClient.request("get","".concat(f.getAccount,"/").concat(V));case 19:se=Ee.sent,q=se.result&&se.result.sequence;case 21:return ne=new v.default(J),be=new v.default(X),le={sender:re,id:"".concat(re.toString("hex"),"-").concat(q+1).toUpperCase(),symbol:Q,ordertype:2,side:Z,price:parseFloat(ne.mul(o).toString()),quantity:parseFloat(be.mul(o).toString()),timeinforce:te,aminoPrefix:N.AminoPrefix.NewOrderMsg},fe={id:le.id,ordertype:le.ordertype,price:le.price,quantity:le.quantity,sender:V,side:le.side,symbol:le.symbol,timeinforce:te},(0,z.checkNumber)(le.price,"price"),(0,z.checkNumber)(le.quantity,"quantity"),Ee.next=29,this._prepareTransaction(le,fe,V,q,"");case 29:return ce=Ee.sent,Ee.abrupt("return",this._broadcastDelegate(ce));case 31:case"end":return Ee.stop()}},H,this)}));function U(){return O.apply(this,arguments)}return U}()},{key:"list",value:function(){var O=(0,c.default)(s.default.mark(function H(V,Q,Z,J,X){var q,te,re,se,ne,be,le=arguments;return s.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:if(q=le.length>5&&le[5]!==void 0?le[5]:null,te=y.decodeAddress(V),V){ce.next=4;break}throw new Error("address should not be falsy");case 4:if(!(Q<=0)){ce.next=6;break}throw new Error("proposal id should larger than 0");case 6:if(!(X<=0)){ce.next=8;break}throw new Error("price should larger than 0");case 8:if(Z){ce.next=10;break}throw new Error("baseAsset should not be falsy");case 10:if(J){ce.next=12;break}throw new Error("quoteAsset should not be falsy");case 12:return re=Number(new v.default(X).mul(o).toString()),se={from:te,proposal_id:Q,base_asset_symbol:Z,quote_asset_symbol:J,init_price:re,aminoPrefix:N.AminoPrefix.ListMsg},ne={base_asset_symbol:Z,from:V,init_price:re,proposal_id:Q,quote_asset_symbol:J},ce.next=17,this._prepareTransaction(se,ne,V,q,"");case 17:return be=ce.sent,ce.abrupt("return",this._broadcastDelegate(be));case 19:case"end":return ce.stop()}},H,this)}));function U(H,V,Q,Z,J){return O.apply(this,arguments)}return U}()},{key:"listMiniToken",value:function(){var O=(0,c.default)(s.default.mark(function H(V){var Q,Z,J,X,q,te,re,se,ne;return s.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(Q=V.from,Z=V.baseAsset,J=V.quoteAsset,X=V.initPrice,q=V.sequence,te=q===void 0?null:q,(0,P.validateMiniTokenSymbol)(Z),!(X<=0)){le.next=4;break}throw new Error("price should larger than 0");case 4:if(Q){le.next=6;break}throw new Error("address should not be falsy");case 6:if(J){le.next=8;break}throw new Error("quoteAsset should not be falsy");case 8:return re=Number(new v.default(X).mul(o).toString()),se=new N.ListMiniMsg({from:Q,base_asset_symbol:Z,quote_asset_symbol:J,init_price:re}),le.next=12,this._prepareTransaction(se.getMsg(),se.getSignMsg(),Q,te);case 12:return ne=le.sent,le.abrupt("return",this._broadcastDelegate(ne));case 14:case"end":return le.stop()}},H,this)}));function U(H){return O.apply(this,arguments)}return U}()},{key:"setAccountFlags",value:function(){var O=(0,c.default)(s.default.mark(function H(V,Q){var Z,J,X,q,te,re=arguments;return s.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return Z=re.length>2&&re[2]!==void 0?re[2]:null,J=y.decodeAddress(V),X={from:J,flags:Q,aminoPrefix:N.AminoPrefix.SetAccountFlagsMsg},q={flags:Q,from:V},ne.next=6,this._prepareTransaction(X,q,V,Z,"");case 6:return te=ne.sent,ne.abrupt("return",this._broadcastDelegate(te));case 8:case"end":return ne.stop()}},H,this)}));function U(H,V){return O.apply(this,arguments)}return U}()},{key:"_prepareTransaction",value:function(){var O=(0,c.default)(s.default.mark(function H(V,Q,Z){var J,X,q,te,re=arguments;return s.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:if(J=re.length>3&&re[3]!==void 0?re[3]:null,X=re.length>4&&re[4]!==void 0?re[4]:"",!((!this.account_number||J!==0&&!J)&&Z)){ne.next=10;break}return ne.next=5,this._httpClient.request("get","".concat(f.getAccount,"/").concat(Z));case 5:q=ne.sent,J=q.result.sequence,this.account_number=q.result.account_number,ne.next=13;break;case 10:if(!this._setPkPromise){ne.next=13;break}return ne.next=13,this._setPkPromise;case 13:return te=new b.default({accountNumber:typeof this.account_number!="number"?parseInt(this.account_number):this.account_number,chainId:this.chainId,memo:X,msg:V,sequence:typeof J!="number"?parseInt(J):J,source:this._source}),ne.abrupt("return",this._signingDelegate.call(this,te,Q));case 15:case"end":return ne.stop()}},H,this)}));function U(H,V,Q){return O.apply(this,arguments)}return U}()},{key:"sendTransaction",value:function(){var O=(0,c.default)(s.default.mark(function H(V,Q){var Z;return s.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return Z=V.serialize(),X.abrupt("return",this.sendRawTransaction(Z,Q));case 2:case"end":return X.stop()}},H,this)}));function U(H,V){return O.apply(this,arguments)}return U}()},{key:"sendRawTransaction",value:function(){var O=(0,c.default)(s.default.mark(function H(V){var Q,Z,J=arguments;return s.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return Q=J.length>1&&J[1]!==void 0?J[1]:!this._useAsyncBroadcast,Z={data:V,headers:{"content-type":"text/plain"}},q.abrupt("return",this._httpClient.request("post","".concat(f.broadcast,"?sync=").concat(Q),null,Z));case 3:case"end":return q.stop()}},H,this)}));function U(H){return O.apply(this,arguments)}return U}()},{key:"_sendTransaction",value:function(){var O=(0,c.default)(s.default.mark(function H(V,Q,Z){var J,X,q,te,re=arguments;return s.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return J=re.length>3&&re[3]!==void 0?re[3]:null,X=re.length>4&&re[4]!==void 0?re[4]:"",q=re.length>5&&re[5]!==void 0?re[5]:!this._useAsyncBroadcast,ne.next=5,this._prepareTransaction(V,Q,Z,J,X);case 5:return te=ne.sent,ne.abrupt("return",this.sendTransaction(te,q));case 7:case"end":return ne.stop()}},H,this)}));function U(H,V,Q){return O.apply(this,arguments)}return U}()},{key:"getAccount",value:function(){var O=(0,c.default)(s.default.mark(function H(){var V,Q,Z=arguments;return s.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(V=Z.length>0&&Z[0]!==void 0?Z[0]:this.address,V){X.next=3;break}throw new Error("address should not be falsy");case 3:return X.prev=3,X.next=6,this._httpClient.request("get","".concat(f.getAccount,"/").concat(V));case 6:return Q=X.sent,X.abrupt("return",Q);case 10:return X.prev=10,X.t0=X.catch(3),X.abrupt("return",null);case 13:case"end":return X.stop()}},H,this,[[3,10]])}));function U(){return O.apply(this,arguments)}return U}()},{key:"getBalance",value:function(){var O=(0,c.default)(s.default.mark(function H(){var V,Q,Z=arguments;return s.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return V=Z.length>0&&Z[0]!==void 0?Z[0]:this.address,X.prev=1,X.next=4,this.getAccount(V);case 4:return Q=X.sent,X.abrupt("return",Q.result.balances);case 8:return X.prev=8,X.t0=X.catch(1),X.abrupt("return",[]);case 11:case"end":return X.stop()}},H,this,[[1,8]])}));function U(){return O.apply(this,arguments)}return U}()},{key:"getMarkets",value:function(){var O=(0,c.default)(s.default.mark(function H(){var V,Q,Z,J=arguments;return s.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return V=J.length>0&&J[0]!==void 0?J[0]:1e3,Q=J.length>1&&J[1]!==void 0?J[1]:0,q.prev=2,q.next=5,this._httpClient.request("get","".concat(f.getMarkets,"?limit=").concat(V,"&offset=").concat(Q));case 5:return Z=q.sent,q.abrupt("return",Z);case 9:return q.prev=9,q.t0=q.catch(2),console.warn("getMarkets error",q.t0),q.abrupt("return",[]);case 13:case"end":return q.stop()}},H,this,[[2,9]])}));function U(){return O.apply(this,arguments)}return U}()},{key:"getTransactions",value:function(){var O=(0,c.default)(s.default.mark(function H(){var V,Q,Z,J=arguments;return s.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return V=J.length>0&&J[0]!==void 0?J[0]:this.address,Q=J.length>1&&J[1]!==void 0?J[1]:0,q.prev=2,q.next=5,this._httpClient.request("get","".concat(f.getTransactions,"?address=").concat(V,"&offset=").concat(Q));case 5:return Z=q.sent,q.abrupt("return",Z);case 9:return q.prev=9,q.t0=q.catch(2),console.warn("getTransactions error",q.t0),q.abrupt("return",[]);case 13:case"end":return q.stop()}},H,this,[[2,9]])}));function U(){return O.apply(this,arguments)}return U}()},{key:"getTxs",value:function(){var O=(0,c.default)(s.default.mark(function H(){var V,Q,Z,J,X=arguments;return s.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return V=X.length>0&&X[0]!==void 0?X[0]:this.address,Q=X.length>1?X[1]:void 0,Z=X.length>2?X[2]:void 0,te.prev=3,te.next=6,this._httpClient.request("get","".concat(f.getTxs,"?address=").concat(V,"&startTime=").concat(Q,"&endTime=").concat(Z));case 6:return J=te.sent,te.abrupt("return",J);case 10:return te.prev=10,te.t0=te.catch(3),console.warn("getTxs error",te.t0),te.abrupt("return",[]);case 14:case"end":return te.stop()}},H,this,[[3,10]])}));function U(){return O.apply(this,arguments)}return U}()},{key:"getTx",value:function(){var O=(0,c.default)(s.default.mark(function H(V){var Q;return s.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.prev=0,J.next=3,this._httpClient.request("get","".concat(f.getTx,"/").concat(V));case 3:return Q=J.sent,J.abrupt("return",Q);case 7:return J.prev=7,J.t0=J.catch(0),console.warn("getTx error",J.t0),J.abrupt("return",[]);case 11:case"end":return J.stop()}},H,this,[[0,7]])}));function U(H){return O.apply(this,arguments)}return U}()},{key:"getDepth",value:function(){var O=(0,c.default)(s.default.mark(function H(){var V,Q,Z=arguments;return s.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return V=Z.length>0&&Z[0]!==void 0?Z[0]:"BNB_BUSD-BD1",X.prev=1,X.next=4,this._httpClient.request("get","".concat(f.getDepth,"?symbol=").concat(V));case 4:return Q=X.sent,X.abrupt("return",Q);case 8:return X.prev=8,X.t0=X.catch(1),console.warn("getDepth error",X.t0),X.abrupt("return",[]);case 12:case"end":return X.stop()}},H,this,[[1,8]])}));function U(){return O.apply(this,arguments)}return U}()},{key:"getOpenOrders",value:function(){var O=(0,c.default)(s.default.mark(function H(){var V,Q,Z=arguments;return s.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return V=Z.length>0&&Z[0]!==void 0?Z[0]:this.address,X.prev=1,X.next=4,this._httpClient.request("get","".concat(f.getOpenOrders,"?address=").concat(V));case 4:return Q=X.sent,X.abrupt("return",Q);case 8:return X.prev=8,X.t0=X.catch(1),console.warn("getOpenOrders error",X.t0),X.abrupt("return",[]);case 12:case"end":return X.stop()}},H,this,[[1,8]])}));function U(){return O.apply(this,arguments)}return U}()},{key:"getSwapByID",value:function(){var O=(0,c.default)(s.default.mark(function H(V){var Q;return s.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.prev=0,J.next=3,this._httpClient.request("get","".concat(f.getSwaps,"/").concat(V));case 3:return Q=J.sent,J.abrupt("return",Q);case 7:return J.prev=7,J.t0=J.catch(0),console.warn("query swap by swapID error",J.t0),J.abrupt("return",[]);case 11:case"end":return J.stop()}},H,this,[[0,7]])}));function U(H){return O.apply(this,arguments)}return U}()},{key:"getSwapByCreator",value:function(){var O=(0,c.default)(s.default.mark(function H(V){var Q,Z,J,X=arguments;return s.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return Q=X.length>1&&X[1]!==void 0?X[1]:100,Z=X.length>2&&X[2]!==void 0?X[2]:0,te.prev=2,te.next=5,this._httpClient.request("get","".concat(f.getSwaps,"?fromAddress=").concat(V,"&limit=").concat(Q,"&offset=").concat(Z));case 5:return J=te.sent,te.abrupt("return",J);case 9:return te.prev=9,te.t0=te.catch(2),console.warn("query swap list by swap creator error",te.t0),te.abrupt("return",[]);case 13:case"end":return te.stop()}},H,this,[[2,9]])}));function U(H){return O.apply(this,arguments)}return U}()},{key:"getSwapByRecipient",value:function(){var O=(0,c.default)(s.default.mark(function H(V){var Q,Z,J,X=arguments;return s.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return Q=X.length>1&&X[1]!==void 0?X[1]:100,Z=X.length>2&&X[2]!==void 0?X[2]:0,te.prev=2,te.next=5,this._httpClient.request("get","".concat(f.getSwaps,"?toAddress=").concat(V,"&limit=").concat(Q,"&offset=").concat(Z));case 5:return J=te.sent,te.abrupt("return",J);case 9:return te.prev=9,te.t0=te.catch(2),console.warn("query swap list by swap recipient error",te.t0),te.abrupt("return",[]);case 13:case"end":return te.stop()}},H,this,[[2,9]])}));function U(H){return O.apply(this,arguments)}return U}()},{key:"createAccount",value:function(){var U=y.generatePrivateKey();return{privateKey:U,address:y.getAddressFromPrivateKey(U,this.addressPrefix)}}},{key:"createAccountWithKeystore",value:function(U){if(!U)throw new Error("password should not be falsy");var H=y.generatePrivateKey(),V=y.getAddressFromPrivateKey(H,this.addressPrefix),Q=y.generateKeyStore(H,U);return{privateKey:H,address:V,keystore:Q}}},{key:"createAccountWithMneomnic",value:function(){var U=y.generateMnemonic(),H=y.getPrivateKeyFromMnemonic(U),V=y.getAddressFromPrivateKey(H,this.addressPrefix);return{privateKey:H,address:V,mnemonic:U}}},{key:"recoverAccountFromKeystore",value:function(U,H){var V=y.getPrivateKeyFromKeyStore(U,H),Q=y.getAddressFromPrivateKey(V,this.addressPrefix);return{privateKey:V,address:Q}}},{key:"recoverAccountFromMnemonic",value:function(U){var H=y.getPrivateKeyFromMnemonic(U),V=y.getAddressFromPrivateKey(H,this.addressPrefix);return{privateKey:H,address:V}}},{key:"recoverAccountFromMneomnic",value:function(U){return this.recoverAccountFromMnemonic(U)}},{key:"recoverAccountFromPrivateKey",value:function(U){var H=y.getAddressFromPrivateKey(U,this.addressPrefix);return{privateKey:U,address:H}}},{key:"checkAddress",value:function(U){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.addressPrefix;return y.checkAddress(U,H)}},{key:"getClientKeyAddress",value:function(){if(!this._privateKey)throw new Error("no private key is set on this client");var U=y.getAddressFromPrivateKey(this._privateKey,this.addressPrefix);return this.address=U,U}}]),k}();l.BncClient=A},92636:function(G,l,e){"use strict";var p=e(75263),r=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.Stake=void 0;var u=r(e(64687)),a=r(e(17156)),g=r(e(56690)),s=r(e(89728)),c=r(e(38416)),v=r(e(93302)),y=p(e(23898)),b=e(54684),N=function(){function I(z){(0,g.default)(this,I),(0,c.default)(this,"_bncClient",void 0),this._bncClient=z}return(0,s.default)(I,[{key:"bscDelegate",value:function(){var z=(0,a.default)(u.default.mark(function w(P){var S,L,B,T,o,f,h,E;return u.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(S=P.delegateAddress,L=P.validatorAddress,B=P.amount,T=P.symbol,o=T===void 0?"BNB":T,f=P.sideChainId,h=f===void 0?"chapel":f,B){F.next=3;break}throw new Error("amount should not be empty");case 3:if(S){F.next=5;break}throw new Error("delegate address should not be null");case 5:if(y.checkAddress(L,"bva")){F.next=7;break}throw new Error("validator address is not valid");case 7:return B=Number(new v.default(B).mul(Math.pow(10,8)).toString()),E=new b.BscDelegateMsg({delegator_addr:S,validator_addr:L,delegation:{denom:o,amount:B},side_chain_id:h}),F.next=11,this.broadcast(E,S);case 11:return F.abrupt("return",F.sent);case 12:case"end":return F.stop()}},w,this)}));function x(w){return z.apply(this,arguments)}return x}()},{key:"bscUndelegate",value:function(){var z=(0,a.default)(u.default.mark(function w(P){var S,L,B,T,o,f,h,E;return u.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(S=P.delegateAddress,L=P.validatorAddress,B=P.amount,T=P.symbol,o=T===void 0?"BNB":T,f=P.sideChainId,h=f===void 0?"chapel":f,B){F.next=3;break}throw new Error("amount should not be empty");case 3:if(S){F.next=5;break}throw new Error("delegate address should not be null");case 5:if(y.checkAddress(L,"bva")){F.next=7;break}throw new Error("validator address is not valid");case 7:return B=Number(new v.default(B).mul(Math.pow(10,8)).toString()),E=new b.BscUndelegateMsg({delegator_addr:S,validator_addr:L,amount:{denom:o,amount:B},side_chain_id:h}),F.next=11,this.broadcast(E,S);case 11:return F.abrupt("return",F.sent);case 12:case"end":return F.stop()}},w,this)}));function x(w){return z.apply(this,arguments)}return x}()},{key:"bscReDelegate",value:function(){var z=(0,a.default)(u.default.mark(function w(P){var S,L,B,T,o,f,h,E,j;return u.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:if(S=P.delegateAddress,L=P.validatorSrcAddress,B=P.validatorDstAddress,T=P.amount,o=P.symbol,f=o===void 0?"BNB":o,h=P.sideChainId,E=h===void 0?"chapel":h,T){W.next=3;break}throw new Error("amount should not be empty");case 3:if(S){W.next=5;break}throw new Error("delegate address should not be null");case 5:if(y.checkAddress(L,"bva")){W.next=7;break}throw new Error("validator source address is not valid");case 7:if(y.checkAddress(B,"bva")){W.next=9;break}throw new Error("validator dest address is not valid");case 9:return T=Number(new v.default(T).mul(Math.pow(10,8)).toString()),j=new b.BscReDelegateMsg({delegator_addr:S,validator_src_addr:L,validator_dst_addr:B,amount:{denom:f,amount:T},side_chain_id:E}),W.next=13,this.broadcast(j,S);case 13:return W.abrupt("return",W.sent);case 14:case"end":return W.stop()}},w,this)}));function x(w){return z.apply(this,arguments)}return x}()},{key:"broadcast",value:function(){var z=(0,a.default)(u.default.mark(function w(P,S,L){var B;return u.default.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this._bncClient._prepareTransaction(P.getMsg(),P.getSignMsg(),S,L);case 2:return B=o.sent,o.abrupt("return",this._bncClient._broadcastDelegate(B));case 4:case"end":return o.stop()}},w,this)}));function x(w,P,S){return z.apply(this,arguments)}return x}()}]),I}();l.Stake=N},18620:function(G,l,e){"use strict";var p=e(75263),r=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var u=r(e(64687)),a=r(e(17156)),g=r(e(56690)),s=r(e(89728)),c=r(e(38416)),v=e(48764),y=p(e(23898)),b=e(54684),N=e(72731),I=function(){function x(w){return(0,g.default)(this,x),(0,c.default)(this,"_bncClient",void 0),x.instance||(this._bncClient=w,x.instance=this),x.instance}return(0,s.default)(x,[{key:"HTLT",value:function(){var w=(0,a.default)(u.default.mark(function S(L,B,T,o,f,h,E,j,F,W){var d,A,k;return u.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return(0,N.checkCoins)(E),d={from:y.decodeAddress(L),to:y.decodeAddress(B),recipient_other_chain:T,sender_other_chain:o,random_number_hash:v.Buffer.from(f,"hex"),timestamp:h,amount:E,expected_income:j,height_span:F,cross_chain:W,aminoPrefix:b.AminoPrefix.HTLTMsg},A={from:L,to:B,recipient_other_chain:T,sender_other_chain:o,random_number_hash:f,timestamp:h,amount:E,expected_income:j,height_span:F,cross_chain:W},U.next=5,this._bncClient._prepareTransaction(d,A,L);case 5:return k=U.sent,U.abrupt("return",this._bncClient._broadcastDelegate(k));case 7:case"end":return U.stop()}},S,this)}));function P(S,L,B,T,o,f,h,E,j,F){return w.apply(this,arguments)}return P}()},{key:"depositHTLT",value:function(){var w=(0,a.default)(u.default.mark(function S(L,B,T){var o,f,h;return u.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return(0,N.checkCoins)(T),o={from:y.decodeAddress(L),amount:T,swap_id:v.Buffer.from(B,"hex"),aminoPrefix:b.AminoPrefix.DepositHTLTMsg},f={from:L,amount:T,swap_id:B},j.next=5,this._bncClient._prepareTransaction(o,f,L);case 5:return h=j.sent,j.abrupt("return",this._bncClient._broadcastDelegate(h));case 7:case"end":return j.stop()}},S,this)}));function P(S,L,B){return w.apply(this,arguments)}return P}()},{key:"claimHTLT",value:function(){var w=(0,a.default)(u.default.mark(function S(L,B,T){var o,f,h;return u.default.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return o={from:y.decodeAddress(L),swap_id:v.Buffer.from(B,"hex"),random_number:v.Buffer.from(T,"hex"),aminoPrefix:b.AminoPrefix.ClaimHTLTMsg},f={from:L,swap_id:B,random_number:T},j.next=4,this._bncClient._prepareTransaction(o,f,L);case 4:return h=j.sent,j.abrupt("return",this._bncClient._broadcastDelegate(h));case 6:case"end":return j.stop()}},S,this)}));function P(S,L,B){return w.apply(this,arguments)}return P}()},{key:"refundHTLT",value:function(){var w=(0,a.default)(u.default.mark(function S(L,B){var T,o,f;return u.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return T={from:y.decodeAddress(L),swap_id:v.Buffer.from(B,"hex"),aminoPrefix:b.AminoPrefix.RefundHTLTMsg},o={from:L,swap_id:B},E.next=4,this._bncClient._prepareTransaction(T,o,L);case 4:return f=E.sent,E.abrupt("return",this._bncClient._broadcastDelegate(f));case 6:case"end":return E.stop()}},S,this)}));function P(S,L){return w.apply(this,arguments)}return P}()}]),x}();(0,c.default)(I,"instance",void 0);var z=I;l.default=z},15683:function(G,l,e){"use strict";var p=e(75263),r=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.default=l.validateMiniTokenSymbol=void 0;var u=r(e(56690)),a=r(e(89728)),g=r(e(38416)),s=r(e(64687)),c=r(e(17156)),v=r(e(93302)),y=e(86052),b=p(e(23898)),N=e(54684),I=e(72731),z=9e18,x=1e6,w=1e4,P=function(){var T=(0,c.default)(s.default.mark(function o(f,h,E,j){var F,W,d,A,k,O=arguments;return s.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:if(F=O.length>4&&O[4]!==void 0?O[4]:"free",W=new v.default(f),!(W.lte(0)||W.gt(z))){H.next=4;break}throw new Error("invalid amount");case 4:return H.prev=4,H.next=7,j.request("get","".concat(y.api.getAccount,"/").concat(E));case 7:if(d=H.sent,A=d.result,k=A.balances.find(function(V){return V.symbol.toUpperCase()===h.toUpperCase()}),k){H.next=12;break}throw new Error("the account doesn't have ".concat(h));case 12:if(!W.gte(k[F])){H.next=14;break}throw new Error("the account doesn't have enougth balance");case 14:H.next=18;break;case 16:H.prev=16,H.t0=H.catch(4);case 18:case"end":return H.stop()}},o,null,[[4,16]])}));return function(f,h,E,j){return T.apply(this,arguments)}}(),S=function(o){if(!o)throw new Error("suffixed token symbol cannot be empty");var f=o.split("-");if(f.length!=2)throw new Error("suffixed mini-token symbol must contain a hyphen ('-')");if(!f[1])throw new Error('suffixed mini-token symbol must contain just one hyphen (" - ")');if(!/^[a-zA-z\d]{3,8}$/.test(f[0]))throw new Error("symbol should be alphanumeric and length is limited to 3~8");if(!f[1].endsWith("M"))throw new Error("mini-token symbol suffix must end with M")};l.validateMiniTokenSymbol=S;var L=function(){function T(o){(0,u.default)(this,T),(0,g.default)(this,"_bncClient",void 0),this._bncClient=o}return(0,a.default)(T,[{key:"issue",value:function(){var o=(0,c.default)(s.default.mark(function h(E,j,F){var W,d,A,k,O,U=arguments;return s.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(W=U.length>3&&U[3]!==void 0?U[3]:0,d=U.length>4&&U[4]!==void 0?U[4]:!1,E){V.next=4;break}throw new Error("sender address cannot be empty");case 4:if(!(j.length>32)){V.next=6;break}throw new Error("token name is limited to 32 characters");case 6:if(/^[a-zA-z\d]{3,8}$/.test(F)){V.next=8;break}throw new Error("symbol should be alphanumeric and length is limited to 3~8");case 8:if(!(W<=0||W>z)){V.next=10;break}throw new Error("invalid supply amount");case 10:return W=Number(new v.default(W).mul(Math.pow(10,8)).toString()),A={from:b.decodeAddress(E),name:j,symbol:F,total_supply:W,mintable:d,aminoPrefix:N.AminoPrefix.IssueMsg},k={from:E,name:j,symbol:F,total_supply:W,mintable:d},V.next=15,this._bncClient._prepareTransaction(A,k,E);case 15:return O=V.sent,V.abrupt("return",this._bncClient._broadcastDelegate(O));case 17:case"end":return V.stop()}},h,this)}));function f(h,E,j){return o.apply(this,arguments)}return f}()},{key:"issueMiniToken",value:function(){var o=(0,c.default)(s.default.mark(function h(E,j,F){var W,d,A,k,O,U=arguments;return s.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(W=U.length>3&&U[3]!==void 0?U[3]:0,d=U.length>4&&U[4]!==void 0?U[4]:!1,A=U.length>5?U[5]:void 0,E){V.next=5;break}throw new Error("sender address cannot be empty");case 5:if(!(j.length>32)){V.next=7;break}throw new Error("token name is limited to 32 characters");case 7:if(/^[a-zA-z\d]{3,8}$/.test(F)){V.next=9;break}throw new Error("symbol should be alphanumeric and length is limited to 3~8");case 9:if(!(W<=0||W>x)){V.next=11;break}throw new Error("invalid supply amount");case 11:return W=Number(new v.default(W).mul(Math.pow(10,8)).toString()),k=new N.IssueMiniTokenMsg({name:j,symbol:F,total_supply:W,mintable:d,token_uri:A,from:E}),V.next=15,this._bncClient._prepareTransaction(k.getMsg(),k.getSignMsg(),E);case 15:return O=V.sent,V.abrupt("return",this._bncClient._broadcastDelegate(O));case 17:case"end":return V.stop()}},h,this)}));function f(h,E,j){return o.apply(this,arguments)}return f}()},{key:"issueTinyToken",value:function(){var o=(0,c.default)(s.default.mark(function h(E,j,F){var W,d,A,k,O,U=arguments;return s.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(W=U.length>3&&U[3]!==void 0?U[3]:0,d=U.length>4&&U[4]!==void 0?U[4]:!1,A=U.length>5?U[5]:void 0,E){V.next=5;break}throw new Error("sender address cannot be empty");case 5:if(!(j.length>32)){V.next=7;break}throw new Error("token name is limited to 32 characters");case 7:if(/^[a-zA-z\d]{3,8}$/.test(F)){V.next=9;break}throw new Error("symbol should be alphanumeric and length is limited to 3~8");case 9:if(!(W<=0||W>w)){V.next=11;break}throw new Error("invalid supply amount");case 11:return W=Number(new v.default(W).mul(Math.pow(10,8)).toString()),k=new N.IssueTinyTokenMsg({name:j,symbol:F,total_supply:W,mintable:d,token_uri:A,from:E}),V.next=15,this._bncClient._prepareTransaction(k.getMsg(),k.getSignMsg(),E);case 15:return O=V.sent,V.abrupt("return",this._bncClient._broadcastDelegate(O));case 17:case"end":return V.stop()}},h,this)}));function f(h,E,j){return o.apply(this,arguments)}return f}()},{key:"setTokenUri",value:function(){var o=(0,c.default)(s.default.mark(function h(E){var j,F,W,d,A;return s.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(j=E.fromAddress,F=E.tokenUri,W=E.symbol,S(W),!(F.length>2048)){O.next=4;break}throw new Error("uri cannot be longer than 2048 characters");case 4:if(j){O.next=6;break}throw new Error("address cannot be empty");case 6:return d=new N.SetTokenUriMsg({from:j,token_uri:F,symbol:W}),O.next=9,this._bncClient._prepareTransaction(d.getMsg(),d.getSignMsg(),j);case 9:return A=O.sent,O.abrupt("return",this._bncClient._broadcastDelegate(A));case 11:case"end":return O.stop()}},h,this)}));function f(h){return o.apply(this,arguments)}return f}()},{key:"freeze",value:function(){var o=(0,c.default)(s.default.mark(function h(E,j,F){var W,d,A;return s.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return(0,I.validateSymbol)(j),P(F,j,E,this._bncClient._httpClient,"free"),F=+Number(new v.default(F).mul(Math.pow(10,8)).toString()),W={from:b.decodeAddress(E),symbol:j,amount:F,aminoPrefix:N.AminoPrefix.FreezeMsg},d={amount:F,from:E,symbol:j},O.next=7,this._bncClient._prepareTransaction(W,d,E);case 7:return A=O.sent,O.abrupt("return",this._bncClient._broadcastDelegate(A));case 9:case"end":return O.stop()}},h,this)}));function f(h,E,j){return o.apply(this,arguments)}return f}()},{key:"unfreeze",value:function(){var o=(0,c.default)(s.default.mark(function h(E,j,F){var W,d,A;return s.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return(0,I.validateSymbol)(j),P(F,j,E,this._bncClient._httpClient,"frozen"),F=+Number(new v.default(F).mul(Math.pow(10,8)).toString()),W={from:b.decodeAddress(E),symbol:j,amount:F,aminoPrefix:N.AminoPrefix.UnfreezeMsg},d={amount:F,from:E,symbol:j},O.next=7,this._bncClient._prepareTransaction(W,d,E);case 7:return A=O.sent,O.abrupt("return",this._bncClient._broadcastDelegate(A));case 9:case"end":return O.stop()}},h,this)}));function f(h,E,j){return o.apply(this,arguments)}return f}()},{key:"burn",value:function(){var o=(0,c.default)(s.default.mark(function h(E,j,F){var W,d,A;return s.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return(0,I.validateSymbol)(j),P(F,j,E,this._bncClient._httpClient),F=+Number(new v.default(F).mul(Math.pow(10,8)).toString()),W={from:b.decodeAddress(E),symbol:j,amount:F,aminoPrefix:N.AminoPrefix.BurnMsg},d={amount:F,from:E,symbol:j},O.next=7,this._bncClient._prepareTransaction(W,d,E);case 7:return A=O.sent,O.abrupt("return",this._bncClient._broadcastDelegate(A));case 9:case"end":return O.stop()}},h,this)}));function f(h,E,j){return o.apply(this,arguments)}return f}()},{key:"mint",value:function(){var o=(0,c.default)(s.default.mark(function h(E,j,F){var W,d,A;return s.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if((0,I.validateSymbol)(j),!(F<=0||F>z)){O.next=3;break}throw new Error("invalid amount");case 3:return F=Number(new v.default(F).mul(Math.pow(10,8)).toString()),W={from:b.decodeAddress(E),symbol:j,amount:F,aminoPrefix:N.AminoPrefix.MintMsg},d={amount:F,from:E,symbol:j},O.next=8,this._bncClient._prepareTransaction(W,d,E);case 8:return A=O.sent,O.abrupt("return",this._bncClient._broadcastDelegate(A));case 10:case"end":return O.stop()}},h,this)}));function f(h,E,j){return o.apply(this,arguments)}return f}()},{key:"timeLock",value:function(){var o=(0,c.default)(s.default.mark(function h(E,j,F,W){var d,A,k;return s.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:if((0,I.checkCoins)(F),!(j.length>128)){U.next=3;break}throw new Error("description is too long");case 3:if(!(W<60||W>253402300800)){U.next=5;break}throw new Error("timeTime must be in [60, 253402300800]");case 5:return d={from:b.decodeAddress(E),description:j,amount:F,lock_time:W,aminoPrefix:N.AminoPrefix.TimeLockMsg},A={from:E,description:j,amount:F,lock_time:W},U.next=9,this._bncClient._prepareTransaction(d,A,E);case 9:return k=U.sent,U.abrupt("return",this._bncClient._broadcastDelegate(k));case 11:case"end":return U.stop()}},h,this)}));function f(h,E,j,F){return o.apply(this,arguments)}return f}()},{key:"timeRelock",value:function(){var o=(0,c.default)(s.default.mark(function h(E,j,F,W,d){var A,k,O;return s.default.wrap(function(H){for(;;)switch(H.prev=H.next){case 0:if((0,I.checkCoins)(W),!(F.length>128)){H.next=3;break}throw new Error("description is too long");case 3:if(!(d<60||d>253402300800)){H.next=5;break}throw new Error("timeTime must be in [60, 253402300800]");case 5:return A={from:b.decodeAddress(E),time_lock_id:j,description:F,amount:W,lock_time:d,aminoPrefix:N.AminoPrefix.TimeRelockMsg},k={from:E,time_lock_id:j,description:F,amount:W,lock_time:d},H.next=9,this._bncClient._prepareTransaction(A,k,E);case 9:return O=H.sent,H.abrupt("return",this._bncClient._broadcastDelegate(O));case 11:case"end":return H.stop()}},h,this)}));function f(h,E,j,F,W){return o.apply(this,arguments)}return f}()},{key:"timeUnlock",value:function(){var o=(0,c.default)(s.default.mark(function h(E,j){var F,W,d;return s.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return F={from:b.decodeAddress(E),time_lock_id:j,aminoPrefix:N.AminoPrefix.TimeUnlockMsg},W={from:E,time_lock_id:j},k.next=4,this._bncClient._prepareTransaction(F,W,E);case 4:return d=k.sent,k.abrupt("return",this._bncClient._broadcastDelegate(d));case 6:case"end":return k.stop()}},h,this)}));function f(h,E){return o.apply(this,arguments)}return f}()}]),T}(),B=L;l.default=B},23898:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.getPrivateKeyFromMnemonic=l.validateMnemonic=l.generateMnemonic=l.getPrivateKeyFromKeyStore=l.generateKeyStore=l.verifySignature=l.generateSignature=l.getAddressFromPrivateKey=l.getAddressFromPublicKey=l.generatePubKey=l.getPublicKeyFromPrivateKey=l.getPublicKey=l.generateRandomArray=l.generatePrivateKey=l.encodeAddress=l.checkAddress=l.decodeAddress=void 0;var a=u(e(92882)),g=r(e(37786)),s=r(e(2153)),c=u(e(55835)),v=e(86266),y=u(e(94315)),b=u(e(80064)),N=u(e(95892)),I=u(e(55877)),z=e(20723),x=32,w=256,P=20,S="secp256k1",L="44'/714'/0'/0/",B=new v.ec(S),T=function(X){var q=a.default.decode(X);return p.from(a.default.fromWords(q.words))};l.decodeAddress=T;var o=function(X,q){try{if(!X.startsWith(q))return!1;var te=a.default.decode(X),re=T(X).length;return re===P&&te.prefix===q}catch{return!1}};l.checkAddress=o;var f=function(X){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"tbnb",te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"hex",re;return p.isBuffer(X)?re=a.default.toWords(p.from(X)):re=a.default.toWords(p.from(X,te)),a.default.encode(q,re)};l.encodeAddress=f;var h=function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:x;return(0,z.ab2hexstring)((0,b.default)(X))};l.generatePrivateKey=h;var E=function(X){return(0,b.default)(X)};l.generateRandomArray=E;var j=function(X){var q=B.keyFromPublic(X,"hex");return q.getPublic()};l.getPublicKey=j;var F=function(X){if(!X||X.length!==x*2)throw new Error("invalid privateKey");var q=new v.ec(S),te=q.keyFromPrivate(X,"hex"),re=te.getPublic().encode("hex",!1);return re};l.getPublicKeyFromPrivateKey=F;var W=function(X){var q=new v.ec(S),te=q.keyFromPrivate(X);return te.getPublic()};l.generatePubKey=W;var d=function(X,q){var te=B.keyFromPublic(X,"hex"),re=te.getPublic(),se=re.encodeCompressed(),ne=(0,z.ab2hexstring)(se),be=(0,z.sha256ripemd160)(ne),le=f(be,q);return le};l.getAddressFromPublicKey=d;var A=function(X,q){return d(F(X),q)};l.getAddressFromPrivateKey=A;var k=function(X,q){var te=(0,z.sha256)(X),re=p.from(te,"hex"),se=N.default.sign(re,typeof q=="string"?p.from(q,"hex"):q);return se};l.generateSignature=k;var O=function(X,q,te){var re=p.from(te,"hex");if(!N.default.isPoint(re))throw new Error("Invalid public key provided");var se=(0,z.sha256)(q),ne=p.from(se,"hex");return N.default.verify(ne,re,p.from(X,"hex"))};l.verifySignature=O;var U=function(X,q){var te=c.default.randomBytes(32),re=c.default.randomBytes(16),se="aes-256-ctr",ne="pbkdf2",be={dklen:32,salt:te.toString("hex"),c:262144,prf:"hmac-sha256"},le=c.default.pbkdf2Sync(p.from(q),te,be.c,be.dklen,"sha256"),fe=c.default.createCipheriv(se,le.slice(0,32),re);if(!fe)throw new Error("Unsupported cipher");var ce=p.concat([fe.update(p.from(X,"hex")),fe.final()]),pe=p.concat([le.slice(16,32),ce]);return{version:1,id:I.default.v4({random:c.default.randomBytes(16)}),crypto:{ciphertext:ce.toString("hex"),cipherparams:{iv:re.toString("hex")},cipher:se,kdf:ne,kdfparams:be,mac:(0,z.sha3)(pe.toString("hex"))}}};l.generateKeyStore=U;var H=function(X,q){if(!y.default.string(q))throw new Error("No password given.");var te=y.default.object(X)?X:JSON.parse(X),re=te.crypto.kdfparams;if(re.prf!=="hmac-sha256")throw new Error("Unsupported parameters to PBKDF2");var se=c.default.pbkdf2Sync(p.from(q),p.from(re.salt,"hex"),re.c,re.dklen,"sha256"),ne=p.from(te.crypto.ciphertext,"hex"),be=p.concat([se.slice(16,32),ne]),le=(0,z.sha3)(be.toString("hex"));if(le!==te.crypto.mac){var fe=(0,z.sha256)(be.toString("hex"));if(fe!==te.crypto.mac)throw new Error("Keystore mac check failed (sha3 & sha256) - wrong password?")}var ce=c.default.createDecipheriv(te.crypto.cipher,se.slice(0,32),p.from(te.crypto.cipherparams.iv,"hex")),pe=p.concat([ce.update(ne),ce.final()]).toString("hex");return pe};l.getPrivateKeyFromKeyStore=H;var V=function(){return s.generateMnemonic(w)};l.generateMnemonic=V;var Q=s.validateMnemonic;l.validateMnemonic=Q;var Z=function(X){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,re=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";if(!s.validateMnemonic(X,s.wordlists.english)&&!s.validateMnemonic(X,s.wordlists.chinese_simplified)&&!s.validateMnemonic(X,s.wordlists.chinese_traditional)&&!s.validateMnemonic(X,s.wordlists.korean)&&!s.validateMnemonic(X,s.wordlists.french)&&!s.validateMnemonic(X,s.wordlists.italian)&&!s.validateMnemonic(X,s.wordlists.spanish)&&!s.validateMnemonic(X,s.wordlists.japanese))throw new Error("wrong mnemonic format");var se=s.mnemonicToSeedSync(X,re);if(q){var ne=g.fromSeed(se),be=ne.derivePath(L+te);if(!be.privateKey)throw new Error("child does not have a privateKey");return be.privateKey.toString("hex")}return se.toString("hex")};l.getPrivateKeyFromMnemonic=Z},66468:function(){"use strict"},58298:function(G,l,e){"use strict";var p,r=e(64836),u=e(75263);p={value:!0},Object.defineProperty(l,"TR",{enumerable:!0,get:function(){return g.BncClient}}),p={enumerable:!0,get:function(){return y.default}},p={enumerable:!0,get:function(){return b.default}},p={enumerable:!0,get:function(){return N.default}},p=p=l.eL=p=void 0,e(66468);var a=u(e(57255));p=a;var g=e(86052),s=u(e(23898));l.eL=s;var c=u(e(54684));p=c;var v=u(e(20723));p=v;var y=r(e(62099)),b=r(e(86333)),N=r(e(62455))},62099:function(G,l,e){"use strict";var p=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var r=p(e(81)),u="@ledgerhq/hw-transport-node-hid",a=typeof window<"u",g={app:r.default,LedgerApp:r.default,transports:{u2f:e(93298).Z,wble:e(68277).Z,node:!a&&c(u)?e(36048)(u).default:null}};G.exports=g;var s=g;l.default=s;function c(v){try{return e(36048).resolve(v)}catch{return!1}}},81:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var u=r(e(64687)),a=r(e(17156)),g=r(e(56690)),s=r(e(89728)),c=r(e(38416)),v=5e4,y=3e3,b=188,N="CSM",I=[36864],z=250,x=0,w=1,P=2,S=3,L=function(){function T(o){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y;if((0,g.default)(this,T),(0,c.default)(this,"_transport",void 0),(0,c.default)(this,"_interactiveTimeout",void 0),(0,c.default)(this,"_nonInteractiveTimeout",void 0),!o||!o.send)throw new Error("LedgerApp expected a Transport");this._transport=o,this._interactiveTimeout=f,this._nonInteractiveTimeout=h,this._transport.setScrambleKey(N)}return(0,s.default)(T,[{key:"_serialize",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:b,h=arguments.length>1?arguments[1]:void 0,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,j=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,F=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null,W=5;if(F!=null){if(F.length>255)throw new Error("maximum data size = 255");W+=F.length}var d=p.alloc(W);return d[0]=f,d[1]=h,d[2]=E,d[3]=j,d[4]=0,F!=null&&(d[4]=F.length,d.set(F,5)),d}},{key:"_serializeHRP",value:function(f){if(f==null||f.length<3||f.length>83)throw new Error("Invalid HRP");var h=p.alloc(1+f.length);return h.writeUInt8(f.length,0),h.write(f,1),h}},{key:"_serializeHDPath",value:function(f){if(f==null||f.length<3)throw new Error("Invalid path.");if(f.length>10)throw new Error("Invalid path. Length should be <= 10");var h=p.alloc(1+4*f.length);h.writeUInt8(f.length,0);for(var E=0;E<f.length;E++){var j=f[E];E<3&&(j|=2147483648),h.writeInt32LE(j,1+E*4)}return h}},{key:"_errorMessage",value:function(f){switch(f){case 1:return"U2F: Unknown";case 2:return"U2F: Bad request";case 3:return"U2F: Configuration unsupported";case 4:return"U2F: Device Ineligible";case 5:return"U2F: Timeout";case 14:return"Timeout";case 36864:return"No errors";case 36865:return"Device is busy";case 25600:return"Execution Error";case 26368:return"Wrong Length";case 27010:return"Empty Buffer";case 27011:return"Output buffer too small";case 27012:return"Data is invalid";case 27013:return"Conditions not satisfied";case 27014:return"Transaction rejected";case 27264:return"Bad key handle";case 27392:return"Invalid P1/P2";case 27904:return"Instruction not supported";case 28160:return"The app does not seem to be open";case 28416:return"Unknown error";case 28417:return"Sign/verify error";default:return"Unknown error code"}}},{key:"getVersion",value:function(){var o=(0,a.default)(u.default.mark(function h(){var E,j,F,W,d,A,k;return u.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return E={},U.prev=1,this._transport.setExchangeTimeout(this._nonInteractiveTimeout),U.next=5,this._transport.send(b,x,0,0,p.alloc(0),I);case 5:if(j=U.sent,p.isBuffer(j)){U.next=8;break}throw new Error("expected apduResponse to be Buffer");case 8:F=j.slice(-2),E.test_mode=j[0]!==0,E.major=j[1],E.minor=j[2],E.patch=j[3],E.device_locked=j[4]===1,E.return_code=F[0]*256+F[1],E.error_message=this._errorMessage(E.return_code),U.next=23;break;case 18:throw U.prev=18,U.t0=U.catch(1),W=U.t0.statusCode,d=U.t0.statusText,A=U.t0.message,k=U.t0.stack,console.warn("Ledger getVersion error:",this._errorMessage(W),A,d,k),U.t0;case 23:return U.abrupt("return",E);case 24:case"end":return U.stop()}},h,this,[[1,18]])}));function f(){return o.apply(this,arguments)}return f}()},{key:"publicKeySecp256k1",value:function(){var o=(0,a.default)(u.default.mark(function h(){var E,j,F,W,d,A,k,O,U=arguments;return u.default.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return E=U.length>0&&U[0]!==void 0?U[0]:[44,714,0,0,0],j={},V.prev=2,this._transport.setExchangeTimeout(this._nonInteractiveTimeout),V.next=6,this._transport.send(b,w,0,0,this._serializeHDPath(E),I);case 6:if(F=V.sent,p.isBuffer(F)){V.next=9;break}throw new Error("expected apduResponse to be Buffer");case 9:W=F.slice(-2),j.pk=F.slice(0,65),j.return_code=W[0]*256+W[1],j.error_message=this._errorMessage(j.return_code),V.next=20;break;case 15:throw V.prev=15,V.t0=V.catch(2),d=V.t0.statusCode,A=V.t0.statusText,k=V.t0.message,O=V.t0.stack,console.warn("Ledger publicKeySecp256k1 error:",this._errorMessage(d),k,A,O),V.t0;case 20:return V.abrupt("return",j);case 21:case"end":return V.stop()}},h,this,[[2,15]])}));function f(){return o.apply(this,arguments)}return f}()},{key:"_signGetChunks",value:function(f,h){var E=[];E.push(this._serializeHDPath(h));for(var j=p.from(f),F=0;F<j.length;F+=z){var W=F+z;F>j.length&&(W=j.length),E.push(j.slice(F,W))}return E}},{key:"_signSendChunk",value:function(){var o=(0,a.default)(u.default.mark(function h(E,j,F){var W,d,A,k,O,U,H;return u.default.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return W={},Q.prev=1,Q.next=4,this._transport.send(b,P,E,j,F);case 4:if(d=Q.sent,p.isBuffer(d)){Q.next=7;break}throw new Error("expected apduResponse to be Buffer");case 7:A=d.slice(-2),W.return_code=A[0]*256+A[1],W.error_message=this._errorMessage(W.return_code),W.signature=null,d.length>2&&(W.signature=d.slice(0,d.length-2)),Q.next=19;break;case 14:throw Q.prev=14,Q.t0=Q.catch(1),k=Q.t0.statusCode,O=Q.t0.statusText,U=Q.t0.message,H=Q.t0.stack,console.warn("Ledger signSendChunk error:",this._errorMessage(k),U,O,H),Q.t0;case 19:return Q.abrupt("return",W);case 20:case"end":return Q.stop()}},h,this,[[1,14]])}));function f(h,E,j){return o.apply(this,arguments)}return f}()},{key:"signSecp256k1",value:function(){var o=(0,a.default)(u.default.mark(function h(E){var j,F,W,d,A,k,O,U,H,V,Q,Z,J,X,q,te,re,se,ne,be,le=arguments;return u.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return j=le.length>1&&le[1]!==void 0?le[1]:[44,714,0,0,0],F={},W=this._signGetChunks(E,j),ce.prev=3,W.length<=1?this._transport.setExchangeTimeout(this._interactiveTimeout):this._transport.setExchangeTimeout(this._nonInteractiveTimeout),ce.next=7,this._signSendChunk(1,W.length,W[0]);case 7:d=ce.sent,F.return_code=d.return_code,F.error_message=d.error_message,F.signature=null,ce.next=18;break;case 13:throw ce.prev=13,ce.t0=ce.catch(3),A=ce.t0.statusCode,k=ce.t0.statusText,O=ce.t0.message,U=ce.t0.stack,console.warn("Ledger signSecp256k1 error (chunk 1):",this._errorMessage(A),O,k,U),ce.t0;case 18:if(d.return_code!==36864){ce.next=60;break}H=1;case 20:if(!(H<W.length)){ce.next=40;break}return ce.prev=21,H===W.length-1&&this._transport.setExchangeTimeout(this._interactiveTimeout),ce.next=25,this._signSendChunk(1+H,W.length,W[H]);case 25:d=ce.sent,F.return_code=d.return_code,F.error_message=d.error_message,ce.next=35;break;case 30:throw ce.prev=30,ce.t1=ce.catch(21),V=ce.t1.statusCode,Q=ce.t1.statusText,Z=ce.t1.message,J=ce.t1.stack,console.warn("Ledger signSecp256k1 error (chunk 2):",this._errorMessage(V),Z,Q,J),ce.t1;case 35:if(d.return_code===36864){ce.next=37;break}return ce.abrupt("break",40);case 37:H++,ce.next=20;break;case 40:if(F.return_code=d.return_code,F.error_message=d.error_message,X=d.signature,!(!X||!X.length)){ce.next=45;break}throw new Error("Ledger assertion failed: Expected a non-empty signature from the device");case 45:if(X[0]===48){ce.next=47;break}throw new Error("Ledger assertion failed: Expected a signature header of 0x30");case 47:if(q=4,te=X[3],re=X[4+te+1],se=X.length-re,te===33&&(q++,te--),re===33&&se++,ne=X.slice(q,q+te),be=X.slice(se),X=F.signature=p.concat([ne,be]),X.length===64){ce.next=58;break}throw new Error("Ledger assertion failed: incorrect signature length ".concat(X.length));case 58:ce.next=61;break;case 60:throw new Error("Unable to sign the transaction. Return code "+d.return_code);case 61:return ce.abrupt("return",F);case 62:case"end":return ce.stop()}},h,this,[[3,13],[21,30]])}));function f(h){return o.apply(this,arguments)}return f}()},{key:"showAddress",value:function(){var o=(0,a.default)(u.default.mark(function h(){var E,j,F,W,d,A,k=arguments;return u.default.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return E=k.length>0&&k[0]!==void 0?k[0]:"bnb",j=k.length>1&&k[1]!==void 0?k[1]:[44,714,0,0,0],F={},W=p.concat([this._serializeHRP(E),this._serializeHDPath(j)]),this._transport.setExchangeTimeout(this._interactiveTimeout),U.next=7,this._transport.send(b,S,0,0,W,I);case 7:if(d=U.sent,p.isBuffer(d)){U.next=10;break}throw new Error("expected apduResponse to be Buffer");case 10:return A=d.slice(-2),F.return_code=A[0]*256+A[1],F.error_message=this._errorMessage(F.return_code),F.return_code===27264&&(F.error_message=d.slice(0,d.length-2).toString("ascii")),U.abrupt("return",F);case 15:case"end":return U.stop()}},h,this)}));function f(){return o.apply(this,arguments)}return f}()},{key:"getPublicKey",value:function(f){return this.publicKeySecp256k1(f)}},{key:"sign",value:function(f,h){return this.signSecp256k1(f,h)}}]),T}();G.exports=L;var B=L;l.default=B},49102:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var u=r(e(56690)),a=r(e(89728)),g=r(e(66115)),s=r(e(61655)),c=r(e(94993)),v=r(e(73808)),y=r(e(38416)),b=r(e(9669)),N=e(17187),I=r(e(94315)),z=r(e(53915)),x=r(e(4850)),w=r(e(8575)),P=r(e(81541));function S(j){var F=L();return function(){var d=(0,v.default)(j),A;if(F){var k=(0,v.default)(this).constructor;A=Reflect.construct(d,arguments,k)}else A=d.apply(this,arguments);return(0,c.default)(this,A)}}function L(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function B(j){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=[];for(var d in F)I.default.string(F[d])?W.push("".concat(d,'="').concat(F[d],'"')):p.isBuffer(F[d])?W.push("".concat(d,"=0x").concat(F[d].toString("hex"))):W.push("".concat(d,"=").concat(F[d]));return"".concat(j,"?").concat(W.join("&"))}function T(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var F in j){var W=j[F];typeof W=="number"?j[F]=String(W):p.isBuffer(W)?j[F]="0x"+W.toString("hex"):W instanceof Uint8Array&&(j[F]="0x"+p.from(W).toString("hex"))}return j}var o=["ws:","wss:"],f=["http:","https:"],h=o.concat(f),E=function(j){(0,s.default)(W,j);var F=S(W);function W(){var d,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"localhost:27146";(0,u.default)(this,W),d=F.call(this),(0,y.default)((0,g.default)(d),"uri",void 0),(0,y.default)((0,g.default)(d),"call",void 0),(0,y.default)((0,g.default)(d),"closed",!1),(0,y.default)((0,g.default)(d),"ws",void 0),(0,y.default)((0,g.default)(d),"createCallBasedMethod",function(Q){return function(Z,J){return d.call(Q,Z,J).then(function(X){return X})}}),(0,y.default)((0,g.default)(d),"subscribe",d.createCallBasedMethod("subscribe")),(0,y.default)((0,g.default)(d),"unsubscribe",d.createCallBasedMethod("unsubscribe")),(0,y.default)((0,g.default)(d),"unsubscribeAll",d.createCallBasedMethod("unsubscribe_all")),(0,y.default)((0,g.default)(d),"status",d.createCallBasedMethod("status")),(0,y.default)((0,g.default)(d),"netInfo",d.createCallBasedMethod("net_info")),(0,y.default)((0,g.default)(d),"blockchain",d.createCallBasedMethod("blockchain")),(0,y.default)((0,g.default)(d),"genesis",d.createCallBasedMethod("genesis")),(0,y.default)((0,g.default)(d),"health",d.createCallBasedMethod("health")),(0,y.default)((0,g.default)(d),"block",d.createCallBasedMethod("block")),(0,y.default)((0,g.default)(d),"blockResults",d.createCallBasedMethod("block_results")),(0,y.default)((0,g.default)(d),"validators",d.createCallBasedMethod("validators")),(0,y.default)((0,g.default)(d),"consensusState",d.createCallBasedMethod("consensus_state")),(0,y.default)((0,g.default)(d),"dumpConsensusState",d.createCallBasedMethod("dump_consensus_state")),(0,y.default)((0,g.default)(d),"broadcastTxCommit",d.createCallBasedMethod("broadcast_tx_commit")),(0,y.default)((0,g.default)(d),"broadcastTxSync",d.createCallBasedMethod("broadcast_tx_sync")),(0,y.default)((0,g.default)(d),"broadcastTxAsync",d.createCallBasedMethod("broadcast_tx_async")),(0,y.default)((0,g.default)(d),"unconfirmedTxs",d.createCallBasedMethod("unconfirmed_txs")),(0,y.default)((0,g.default)(d),"numUnconfirmedTxs",d.createCallBasedMethod("num_unconfirmed_txs")),(0,y.default)((0,g.default)(d),"commit",d.createCallBasedMethod("commit")),(0,y.default)((0,g.default)(d),"tx",d.createCallBasedMethod("tx")),(0,y.default)((0,g.default)(d),"txSearch",d.createCallBasedMethod("tx_search")),(0,y.default)((0,g.default)(d),"abciQuery",d.createCallBasedMethod("abci_query")),(0,y.default)((0,g.default)(d),"abciInfo",d.createCallBasedMethod("abci_info"));var k=w.default.parse(A),O=k.protocol,U=k.hostname,H=k.port;if(!O||!h.includes(O)){var V=w.default.parse("http://".concat(A));O=V.protocol,U=V.hostname,H=V.port}return d.uri=H?"".concat(O,"//").concat(U,":").concat(H,"/"):"".concat(O,"//").concat(U,"/"),O&&o.includes(O)?(d.uri="".concat(d.uri,"websocket"),d.call=d.callWs,d.connectWs()):O&&f.includes(O)&&(d.call=d.callHttp),d}return(0,a.default)(W,[{key:"connectWs",value:function(){var A=this;this.ws=new x.default.obj(z.default.stringify(),(0,P.default)(this.uri)),this.ws.on("error",function(k){return A.emit("error",k)}),this.ws.on("close",function(){A.closed||A.emit("error",Error("websocket disconnected"))}),this.ws.on("data",function(k){k=JSON.parse(k),k.id&&A.emit(k.id,k.error,k.result)})}},{key:"callHttp",value:function(A,k){var O=this.uri+A;return O=B(O,k),(0,b.default)({url:O}).then(function(U){var H=U.data;if(H.error){var V=Error(H.error.message);throw Object.assign(V,H.error),V}return H.result},function(U){throw Error(U)})}},{key:"callWs",value:function(A,k,O){var U=this,H=this;return new Promise(function(V,Q){var Z,J=Math.random().toString(36),X=T(k);if(A==="subscribe"){if(typeof O!="function")throw Error("Must provide listener function");U.on(J+"#event",function(q,te){return q?H.emit("error",q):O(te.data.value)}),U.on(J,function(q){if(q)return Q(q);V()})}else U.once(J,function(q,te){if(q)return Q(q);V(te)});(Z=U.ws)===null||Z===void 0||Z.write({jsonrpc:"2.0",id:J,method:A,params:X})})}},{key:"close",value:function(){this.closed=!0,this.ws&&this.ws.destroy()}}]),W}(N.EventEmitter);l.default=E},86333:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var a=u(e(64687)),g=u(e(17156)),s=u(e(56690)),c=u(e(89728)),v=u(e(66115)),y=u(e(61655)),b=u(e(94993)),N=u(e(73808)),I=u(e(38416)),z=e(93302),x=e(57255),w=r(e(23898)),P=e(54684),S=e(20723),L=u(e(49102));function B(j,F){var W=Object.keys(j);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(j);F&&(d=d.filter(function(A){return Object.getOwnPropertyDescriptor(j,A).enumerable})),W.push.apply(W,d)}return W}function T(j){for(var F=1;F<arguments.length;F++){var W=arguments[F]!=null?arguments[F]:{};F%2?B(Object(W),!0).forEach(function(d){(0,I.default)(j,d,W[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(W)):B(Object(W)).forEach(function(d){Object.defineProperty(j,d,Object.getOwnPropertyDescriptor(W,d))})}return j}function o(j){var F=f();return function(){var d=(0,N.default)(j),A;if(F){var k=(0,N.default)(this).constructor;A=Reflect.construct(d,arguments,k)}else A=d.apply(this,arguments);return(0,b.default)(this,A)}}function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var h=function(j){(0,y.default)(W,j);var F=o(W);function W(){var d,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"localhost:27146",k=arguments.length>1?arguments[1]:void 0;return(0,s.default)(this,W),d=F.call(this,A),(0,I.default)((0,v.default)(d),"netWork",void 0),d.netWork=k||"mainnet",d}return(0,c.default)(W,[{key:"broadcastDelegate",value:function(){var d=(0,g.default)(a.default.mark(function k(O){var U,H;return a.default.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return U=O.serialize(),Q.next=3,this.broadcastTxSync({tx:p.from(U,"hex")});case 3:if(H=Q.sent,"".concat(H.code)!=="0"){Q.next=8;break}return Q.abrupt("return",H);case 8:throw new Error("broadcastDelegate: non-zero status code ".concat(H.code));case 9:case"end":return Q.stop()}},k,this)}));function A(k){return d.apply(this,arguments)}return A}()},{key:"getBech32Prefix",value:function(){return this.netWork==="mainnet"?"bnb":this.netWork==="testnet"?"tbnb":""}},{key:"getTokenInfo",value:function(){var d=(0,g.default)(a.default.mark(function k(O){var U,H,V,Q,Z,J;return a.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return(0,S.validateSymbol)(O),U="/tokens/info/"+O,q.next=4,this.abciQuery({path:U});case 4:return H=q.sent,V=p.from(H.response.value,"base64"),Q=new P.Token,(0,x.unMarshalBinaryLengthPrefixed)(V,Q),Z=this.getBech32Prefix(),J=w.encodeAddress(Q.owner,Z),delete Q.aminoPrefix,q.abrupt("return",T(T({},Q),{},{owner:J}));case 12:case"end":return q.stop()}},k,this)}));function A(k){return d.apply(this,arguments)}return A}()},{key:"listAllTokens",value:function(){var d=(0,g.default)(a.default.mark(function k(O,U){var H=this,V,Q,Z,J,X,q;return a.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return(0,S.validateOffsetLimit)(O,U),V="tokens/list/".concat(O,"/").concat(U),re.next=4,this.abciQuery({path:V});case 4:return Q=re.sent,Z=p.from(Q.response.value,"base64"),J=[new P.TokenOfList],X=(0,x.unMarshalBinaryLengthPrefixed)(Z,J),q=X.val,(0,x.unMarshalBinaryLengthPrefixed)(Z,q),re.abrupt("return",q.map(function(se){return T(T({},se),{},{owner:w.encodeAddress(se.owner,H.getBech32Prefix())})}));case 10:case"end":return re.stop()}},k,this)}));function A(k,O){return d.apply(this,arguments)}return A}()},{key:"getAccount",value:function(){var d=(0,g.default)(a.default.mark(function k(O){var U,H,V,Q;return a.default.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,this.abciQuery({path:"/account/".concat(O)});case 2:return U=J.sent,H=new P.AppAccount,V=p.from(U.response.value,"base64"),(0,x.unMarshalBinaryBare)(V,H),Q=this.getBech32Prefix(),J.abrupt("return",{name:H.name,locked:H.locked,frozen:H.frozen,base:T(T({},H.base),{},{address:w.encodeAddress(H.base.address,Q)})});case 8:case"end":return J.stop()}},k,this)}));function A(k){return d.apply(this,arguments)}return A}()},{key:"getBalances",value:function(){var d=(0,g.default)(a.default.mark(function k(O){var U,H,V;return a.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,this.getAccount(O);case 2:return U=Z.sent,H=[],V=[],U&&(H=U.base&&U.base.coins||[],(0,S.convertObjectArrayNum)(H,["amount"]),(0,S.convertObjectArrayNum)(U.locked,["amount"]),(0,S.convertObjectArrayNum)(U.frozen,["amount"])),H.forEach(function(J){var X=U.locked.find(function(re){return J.denom===re.denom})||{},q=U.frozen.find(function(re){return J.denom===re.denom})||{},te=new P.TokenBalance;te.symbol=J.denom,te.free=+new z.Big(J.amount).toString(),te.locked=X.amount||0,te.frozen=q.amount||0,V.push(te)}),Z.abrupt("return",V);case 8:case"end":return Z.stop()}},k,this)}));function A(k){return d.apply(this,arguments)}return A}()},{key:"getBalance",value:function(){var d=(0,g.default)(a.default.mark(function k(O,U){var H,V;return a.default.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return(0,S.validateSymbol)(U),Z.next=3,this.getBalances(O);case 3:return H=Z.sent,V=H.find(function(J){return J.symbol.toUpperCase()===U.toUpperCase()}),Z.abrupt("return",V);case 6:case"end":return Z.stop()}},k,this)}));function A(k,O){return d.apply(this,arguments)}return A}()},{key:"getOpenOrders",value:function(){var d=(0,g.default)(a.default.mark(function k(O,U){var H,V,Q,Z,J,X;return a.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return H="/dex/openorders/".concat(U,"/").concat(O),te.next=3,this.abciQuery({path:H});case 3:return V=te.sent,Q=p.from(V.response.value,"base64"),Z=[new P.OpenOrder],J=(0,x.unMarshalBinaryLengthPrefixed)(Q,Z),X=J.val,(0,S.convertObjectArrayNum)(X,["price","quantity","cumQty"]),te.abrupt("return",X);case 9:case"end":return te.stop()}},k,this)}));function A(k,O){return d.apply(this,arguments)}return A}()},{key:"getTradingPairs",value:function(){var d=(0,g.default)(a.default.mark(function k(O,U){var H,V,Q,Z,J,X;return a.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return(0,S.validateOffsetLimit)(O,U),H="/dex/pairs/".concat(O,"/").concat(U),te.next=4,this.abciQuery({path:H});case 4:return V=te.sent,Q=p.from(V.response.value,"base64"),Z=[new P.TradingPair],J=(0,x.unMarshalBinaryLengthPrefixed)(Q,Z),X=J.val,(0,S.convertObjectArrayNum)(X,["list_price","tick_size","lot_size"]),te.abrupt("return",X);case 10:case"end":return te.stop()}},k,this)}));function A(k,O){return d.apply(this,arguments)}return A}()},{key:"getDepth",value:function(){var d=(0,g.default)(a.default.mark(function k(O){var U,H,V,Q,Z,J;return a.default.wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return(0,S.validateTradingPair)(O),U="dex/orderbook/".concat(O),q.next=4,this.abciQuery({path:U});case 4:return H=q.sent,V=p.from(H.response.value,"base64"),Q=new P.OrderBook,Z=(0,x.unMarshalBinaryLengthPrefixed)(V,Q),J=Z.val,(0,S.convertObjectArrayNum)(J.levels,["buyQty","buyPrice","sellQty","sellPrice"]),q.abrupt("return",J);case 10:case"end":return q.stop()}},k,this)}));function A(k){return d.apply(this,arguments)}return A}()},{key:"getTxByHash",value:function(){var d=(0,g.default)(a.default.mark(function k(O){var U,H,V,Q,Z,J,X,q,te,re=arguments;return a.default.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return U=re.length>1&&re[1]!==void 0?re[1]:!0,p.isBuffer(O)||(O=p.from(O,"hex")),ne.next=4,this.tx({hash:O,prove:U});case 4:return H=ne.sent,V=p.from(H.tx,"base64"),Q=V.slice(8,12).toString("hex"),Z=(0,S.getMsgByAminoPrefix)(Q),J={msg:[Z.defaultMsg()],signatures:[{pub_key:p.from(""),signature:p.from(""),account_number:0,sequence:0}],memo:"",source:0,data:"",aminoPrefix:P.AminoPrefix.StdTx},X=(0,x.unMarshalBinaryLengthPrefixed)(V,J),q=X.val,te=this.parseTxResult(H.tx_result),ne.abrupt("return",T(T({},H),{},{tx:q,tx_result:te}));case 12:case"end":return ne.stop()}},k,this)}));function A(k){return d.apply(this,arguments)}return A}()},{key:"parseTxResult",value:function(A){if(A.data&&(A.data=p.from(A.data,"base64").toString()),A.events&&A.events.length>0)for(var k=0;k<A.events.length;k++){var O=A.events[k];O.attributes&&O.attributes.length>0&&(O.attributes=O.attributes.map(function(U){return{key:p.from(U.key,"base64").toString(),value:p.from(U.value,"base64").toString()}}))}return A.tags&&A.tags.length>0&&(A.tags=A.tags.map(function(U){return{key:p.from(U.key,"base64").toString(),value:p.from(U.value,"base64").toString()}})),T({},A)}}]),W}(L.default),E=h;l.default=E},62455:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.default=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(38416)),c=e(57255),v=r(e(23898)),y=e(54684),b=function(){function N(I){if((0,a.default)(this,N),(0,s.default)(this,"sequence",void 0),(0,s.default)(this,"accountNumber",void 0),(0,s.default)(this,"chainId",void 0),(0,s.default)(this,"msg",void 0),(0,s.default)(this,"baseMsg",void 0),(0,s.default)(this,"memo",void 0),(0,s.default)(this,"source",void 0),(0,s.default)(this,"signatures",void 0),I=I||{},!I.chainId)throw new Error("chain id should not be null");this.sequence=I.sequence||0,this.accountNumber=I.accountNumber||0,this.chainId=I.chainId,this.msg=I.msg,this.baseMsg=I.baseMsg,this.memo=I.memo,this.source=I.source||0,this.signatures=[]}return(0,g.default)(N,[{key:"getSignBytes",value:function(z){z=z||this.baseMsg&&this.baseMsg.getSignMsg();var x={account_number:this.accountNumber.toString(),chain_id:this.chainId,data:null,memo:this.memo,msgs:[z],sequence:this.sequence.toString(),source:this.source.toString()};return(0,c.convertObjectToSignBytes)(x)}},{key:"addSignature",value:function(z,x){var w=this._serializePubKey(z);return this.signatures=[{pub_key:w,signature:x,account_number:this.accountNumber,sequence:this.sequence}],this}},{key:"sign",value:function(z,x){if(!z)throw new Error("private key should not be null");var w=this.getSignBytes(x),P=p.from(z,"hex"),S=v.generateSignature(w.toString("hex"),P);return this.addSignature(v.generatePubKey(P),S),this}},{key:"serialize",value:function(){if(!this.signatures)throw new Error("need signature");var z=this.msg||this.baseMsg&&this.baseMsg.getMsg(),x={msg:[z],signatures:this.signatures,memo:this.memo,source:this.source,data:"",aminoPrefix:y.AminoPrefix.StdTx},w=(0,c.marshalBinary)(x);return w.toString("hex")}},{key:"_serializePubKey",value:function(z){var x=2,w=z.getY(),P=z.getX();w&&w.isOdd()&&(x|=1);var S=p.concat([c.UVarInt.encode(x),P.toArrayLike(p,"be",32)]);return S=(0,c.encodeBinaryByteArray)(S),S=p.concat([p.from("EB5AE987","hex"),S]),S}}]),N}();l.default=b},54684:function(G,l,e){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var p=e(40477);Object.keys(p).forEach(function(a){a==="default"||a==="__esModule"||Object.defineProperty(l,a,{enumerable:!0,get:function(){return p[a]}})});var r=e(8951);Object.keys(r).forEach(function(a){a==="default"||a==="__esModule"||Object.defineProperty(l,a,{enumerable:!0,get:function(){return r[a]}})});var u=e(86057);Object.keys(u).forEach(function(a){a==="default"||a==="__esModule"||Object.defineProperty(l,a,{enumerable:!0,get:function(){return u[a]}})})},43736:function(G,l,e){"use strict";var p=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.BaseMsg=void 0;var r=p(e(56690)),u=p(e(89728)),a=function(){function g(){(0,r.default)(this,g)}return(0,u.default)(g,null,[{key:"defaultMsg",value:function(){return{}}}]),g}();l.BaseMsg=a},944:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.BindMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=e(40477),I=r(e(23898)),z=e(8951);function x(S){var L=w();return function(){var T=(0,y.default)(S),o;if(L){var f=(0,y.default)(this).constructor;o=Reflect.construct(T,arguments,f)}else o=T.apply(this,arguments);return(0,v.default)(this,o)}}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var P=function(S){(0,c.default)(B,S);var L=x(B);function B(T){var o,f=T.from,h=T.symbol,E=T.amount,j=T.contract_address,F=T.contract_decimals,W=T.expire_time;return(0,a.default)(this,B),o=L.call(this),(0,b.default)((0,s.default)(o),"from",void 0),(0,b.default)((0,s.default)(o),"symbol",void 0),(0,b.default)((0,s.default)(o),"amount",void 0),(0,b.default)((0,s.default)(o),"contract_address",void 0),(0,b.default)((0,s.default)(o),"contract_decimals",void 0),(0,b.default)((0,s.default)(o),"expire_time",void 0),o.from=f,o.symbol=h,o.amount=E,o.contract_address=j,o.contract_decimals=F,o.expire_time=W,o}return(0,g.default)(B,[{key:"getSignMsg",value:function(){return{from:this.from,symbol:this.symbol,amount:this.amount,contract_address:this.contract_address,contract_decimals:this.contract_decimals,expire_time:this.expire_time}}},{key:"getMsg",value:function(){return{from:I.decodeAddress(this.from),symbol:this.symbol,amount:this.amount,contract_address:p.from(this.contract_address.slice(2),"hex"),contract_decimals:this.contract_decimals,expire_time:this.expire_time,aminoPrefix:z.AminoPrefix.BindMsg}}}],[{key:"defaultMsg",value:function(){return{from:p.from(""),symbol:"",amount:0,contract_address:p.from(""),contract_decimals:0,expire_time:0,aminoPrefix:z.AminoPrefix.BindMsg}}}]),B}(N.BaseMsg);l.BindMsg=P},3413:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.ClaimMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=e(40477),I=r(e(23898)),z=e(8951),x=e(46813);function w(L){var B=P();return function(){var o=(0,y.default)(L),f;if(B){var h=(0,y.default)(this).constructor;f=Reflect.construct(o,arguments,h)}else f=o.apply(this,arguments);return(0,v.default)(this,f)}}function P(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var S=function(L){(0,c.default)(T,L);var B=w(T);function T(o){var f,h=o.claim_type,E=o.sequence,j=o.claim,F=o.validator_address;return(0,a.default)(this,T),f=B.call(this),(0,b.default)((0,s.default)(f),"claim_type",void 0),(0,b.default)((0,s.default)(f),"sequence",void 0),(0,b.default)((0,s.default)(f),"claim",void 0),(0,b.default)((0,s.default)(f),"validator_address",void 0),f.claim_type=h,f.sequence=E,f.claim=j,f.validator_address=F,f}return(0,g.default)(T,[{key:"getSignMsg",value:function(){return{claim_type:this.claim_type,sequence:this.sequence,claim:this.claim,validator_address:this.validator_address}}},{key:"getMsg",value:function(){return{claim_type:this.claim_type,sequence:this.sequence,claim:this.claim,validator_address:I.decodeAddress(this.validator_address),aminoPrefix:z.AminoPrefix.ClaimMsg}}}],[{key:"defaultMsg",value:function(){return{claim_type:x.ClaimTypes.ClaimTypeSkipSequence,sequence:0,claim:"",validator_address:p.from(""),aminoPrefix:z.AminoPrefix.ClaimMsg}}}]),T}(N.BaseMsg);l.ClaimMsg=S},46813:function(G,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.BindStatus=l.RefundReason=l.ClaimTypes=void 0;var e;l.ClaimTypes=e,function(u){u[u.ClaimTypeSkipSequence=1]="ClaimTypeSkipSequence",u[u.ClaimTypeUpdateBind=2]="ClaimTypeUpdateBind",u[u.ClaimTypeTransferOutRefund=3]="ClaimTypeTransferOutRefund",u[u.ClaimTypeTransferIn=4]="ClaimTypeTransferIn"}(e||(l.ClaimTypes=e={}));var p;l.RefundReason=p,function(u){u[u.UnboundToken=1]="UnboundToken",u[u.Timeout=2]="Timeout",u[u.InsufficientBalance=3]="InsufficientBalance",u[u.Unkown=4]="Unkown"}(p||(l.RefundReason=p={}));var r;l.BindStatus=r,function(u){u[u.BindStatusSuccess=0]="BindStatusSuccess",u[u.BindStatusRejected=1]="BindStatusRejected",u[u.BindStatusTimeout=2]="BindStatusTimeout",u[u.BindStatusInvalidParameter=3]="BindStatusInvalidParameter"}(r||(l.BindStatus=r={}))},80089:function(G,l,e){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var p=e(944);Object.keys(p).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(l,g,{enumerable:!0,get:function(){return p[g]}})});var r=e(3413);Object.keys(r).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(l,g,{enumerable:!0,get:function(){return r[g]}})});var u=e(46813);Object.keys(u).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(l,g,{enumerable:!0,get:function(){return u[g]}})});var a=e(31173);Object.keys(a).forEach(function(g){g==="default"||g==="__esModule"||Object.defineProperty(l,g,{enumerable:!0,get:function(){return a[g]}})})},31173:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.TransferOutMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=u(e(93302)),I=e(40477),z=r(e(23898)),x=e(8951);function w(T,o){var f=Object.keys(T);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(T);o&&(h=h.filter(function(E){return Object.getOwnPropertyDescriptor(T,E).enumerable})),f.push.apply(f,h)}return f}function P(T){for(var o=1;o<arguments.length;o++){var f=arguments[o]!=null?arguments[o]:{};o%2?w(Object(f),!0).forEach(function(h){(0,b.default)(T,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(f)):w(Object(f)).forEach(function(h){Object.defineProperty(T,h,Object.getOwnPropertyDescriptor(f,h))})}return T}function S(T){var o=L();return function(){var h=(0,y.default)(T),E;if(o){var j=(0,y.default)(this).constructor;E=Reflect.construct(h,arguments,j)}else E=h.apply(this,arguments);return(0,v.default)(this,E)}}function L(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var B=function(T){(0,c.default)(f,T);var o=S(f);function f(h){var E,j=h.from,F=h.to,W=h.amount,d=h.expire_time;return(0,a.default)(this,f),E=o.call(this),(0,b.default)((0,s.default)(E),"from",void 0),(0,b.default)((0,s.default)(E),"to",void 0),(0,b.default)((0,s.default)(E),"amount",void 0),(0,b.default)((0,s.default)(E),"expire_time",void 0),E.from=j,E.to=F,E.amount=P(P({},W),{},{amount:Number(new N.default(W.amount).mul(Math.pow(10,8)).toString())}),E.expire_time=d,E}return(0,g.default)(f,[{key:"getSignMsg",value:function(){return{from:this.from,to:this.to,amount:this.amount,expire_time:this.expire_time}}},{key:"getMsg",value:function(){return{from:z.decodeAddress(this.from),to:p.from(this.to.slice(2),"hex"),amount:this.amount,expire_time:this.expire_time,aminoPrefix:x.AminoPrefix.TransferOutMsg}}}],[{key:"defaultMsg",value:function(){return{from:p.from(""),to:p.from(""),amount:{denom:"",amount:0},expire_time:0,aminoPrefix:x.AminoPrefix.TransferOutMsg}}}]),f}(I.BaseMsg);l.TransferOutMsg=B},95151:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.CancelOrderMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=r(e(23898)),I=e(8951),z=e(43736);function x(S){var L=w();return function(){var T=(0,y.default)(S),o;if(L){var f=(0,y.default)(this).constructor;o=Reflect.construct(T,arguments,f)}else o=T.apply(this,arguments);return(0,v.default)(this,o)}}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var P=function(S){(0,c.default)(B,S);var L=x(B);function B(T,o,f){var h;return(0,a.default)(this,B),h=L.call(this),(0,b.default)((0,s.default)(h),"address",void 0),(0,b.default)((0,s.default)(h),"symbol",void 0),(0,b.default)((0,s.default)(h),"orderId",void 0),(0,b.default)((0,s.default)(h),"aminoPrefix",I.AminoPrefix.CancelOrderMsg),h.address=T,h.symbol=o,h.orderId=f,h}return(0,g.default)(B,[{key:"getSignMsg",value:function(){var o={sender:this.address,symbol:this.symbol,refid:this.orderId};return o}},{key:"getMsg",value:function(){var o={sender:N.decodeAddress(this.address),symbol:this.symbol,refid:this.orderId,aminoPrefix:I.AminoPrefix.CancelOrderMsg};return o}}],[{key:"defaultMsg",value:function(){return{sender:p.from(""),symbol:"",refid:"",aminoPrefix:I.AminoPrefix.CancelOrderMsg}}}]),B}(z.BaseMsg);l.CancelOrderMsg=P},76029:function(G,l,e){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var p=e(95151);Object.keys(p).forEach(function(a){a==="default"||a==="__esModule"||Object.defineProperty(l,a,{enumerable:!0,get:function(){return p[a]}})});var r=e(74274);Object.keys(r).forEach(function(a){a==="default"||a==="__esModule"||Object.defineProperty(l,a,{enumerable:!0,get:function(){return r[a]}})});var u=e(74250);Object.keys(u).forEach(function(a){a==="default"||a==="__esModule"||Object.defineProperty(l,a,{enumerable:!0,get:function(){return u[a]}})})},74250:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.ListMiniMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=r(e(23898)),I=e(8951),z=e(43736);function x(S){var L=w();return function(){var T=(0,y.default)(S),o;if(L){var f=(0,y.default)(this).constructor;o=Reflect.construct(T,arguments,f)}else o=T.apply(this,arguments);return(0,v.default)(this,o)}}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var P=function(S){(0,c.default)(B,S);var L=x(B);function B(T){var o,f=T.from,h=T.base_asset_symbol,E=T.quote_asset_symbol,j=T.init_price;return(0,a.default)(this,B),o=L.call(this),(0,b.default)((0,s.default)(o),"from",void 0),(0,b.default)((0,s.default)(o),"base_asset_symbol",void 0),(0,b.default)((0,s.default)(o),"quote_asset_symbol",void 0),(0,b.default)((0,s.default)(o),"init_price",void 0),o.from=f,o.base_asset_symbol=h,o.quote_asset_symbol=E,o.init_price=j,o}return(0,g.default)(B,[{key:"getSignMsg",value:function(){var o={from:this.from,base_asset_symbol:this.base_asset_symbol,quote_asset_symbol:this.quote_asset_symbol,init_price:this.init_price};return o}},{key:"getMsg",value:function(){var o={from:N.decodeAddress(this.from),base_asset_symbol:this.base_asset_symbol,quote_asset_symbol:this.quote_asset_symbol,init_price:this.init_price,aminoPrefix:I.AminoPrefix.ListMiniMsg};return o}}],[{key:"defaultMsg",value:function(){return{from:p.from(""),base_asset_symbol:"",quote_asset_symbol:"",init_price:0,aminoPrefix:I.AminoPrefix.ListMiniMsg}}}]),B}(z.BaseMsg);l.ListMiniMsg=P},74274:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.NewOrderMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=u(e(93302)),I=e(40477),z=r(e(23898)),x=e(8951);function w(o,f){var h=Object.keys(o);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(o);f&&(E=E.filter(function(j){return Object.getOwnPropertyDescriptor(o,j).enumerable})),h.push.apply(h,E)}return h}function P(o){for(var f=1;f<arguments.length;f++){var h=arguments[f]!=null?arguments[f]:{};f%2?w(Object(h),!0).forEach(function(E){(0,b.default)(o,E,h[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(h)):w(Object(h)).forEach(function(E){Object.defineProperty(o,E,Object.getOwnPropertyDescriptor(h,E))})}return o}function S(o){var f=L();return function(){var E=(0,y.default)(o),j;if(f){var F=(0,y.default)(this).constructor;j=Reflect.construct(E,arguments,F)}else j=E.apply(this,arguments);return(0,v.default)(this,j)}}function L(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var B=Math.pow(10,8),T=function(o){(0,c.default)(h,o);var f=S(h);function h(E,j){var F;(0,a.default)(this,h),F=f.call(this),(0,b.default)((0,s.default)(F),"newOrder",void 0),(0,b.default)((0,s.default)(F),"address",void 0),(0,b.default)((0,s.default)(F),"aminoPrefix",x.AminoPrefix.NewOrderMsg);var W=new N.default(E.price),d=new N.default(E.quantity);return F.newOrder=E,F.newOrder.price=Number(W.mul(B).toString()),F.newOrder.quantity=Number(d.mul(B).toString()),F.address=j,F}return(0,g.default)(h,[{key:"getSignMsg",value:function(){var j=P({sender:this.address},this.newOrder);return j}},{key:"getMsg",value:function(){var j={sender:z.decodeAddress(this.address),id:this.newOrder.id,symbol:this.newOrder.symbol,ordertype:this.newOrder.ordertype,side:this.newOrder.side,price:this.newOrder.price,quantity:this.newOrder.quantity,timeinforce:this.newOrder.timeinforce,aminoPrefix:this.aminoPrefix};return j}}],[{key:"defaultMsg",value:function(){return{sender:p.from(""),id:"",symbol:"",orderType:0,side:0,price:0,quantity:0,timeinforce:0,aminoPrefix:x.AminoPrefix.NewOrderMsg}}}]),h}(I.BaseMsg);l.NewOrderMsg=T},40477:function(G,l,e){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var p=e(43736);Object.keys(p).forEach(function(c){c==="default"||c==="__esModule"||Object.defineProperty(l,c,{enumerable:!0,get:function(){return p[c]}})});var r=e(76029);Object.keys(r).forEach(function(c){c==="default"||c==="__esModule"||Object.defineProperty(l,c,{enumerable:!0,get:function(){return r[c]}})});var u=e(55308);Object.keys(u).forEach(function(c){c==="default"||c==="__esModule"||Object.defineProperty(l,c,{enumerable:!0,get:function(){return u[c]}})});var a=e(63790);Object.keys(a).forEach(function(c){c==="default"||c==="__esModule"||Object.defineProperty(l,c,{enumerable:!0,get:function(){return a[c]}})});var g=e(80089);Object.keys(g).forEach(function(c){c==="default"||c==="__esModule"||Object.defineProperty(l,c,{enumerable:!0,get:function(){return g[c]}})});var s=e(54457);Object.keys(s).forEach(function(c){c==="default"||c==="__esModule"||Object.defineProperty(l,c,{enumerable:!0,get:function(){return s[c]}})})},63790:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.SendMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=u(e(93302)),I=r(e(23898)),z=e(8951),x=e(40477);function w(T,o){var f=Object.keys(T);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(T);o&&(h=h.filter(function(E){return Object.getOwnPropertyDescriptor(T,E).enumerable})),f.push.apply(f,h)}return f}function P(T){for(var o=1;o<arguments.length;o++){var f=arguments[o]!=null?arguments[o]:{};o%2?w(Object(f),!0).forEach(function(h){(0,b.default)(T,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(f)):w(Object(f)).forEach(function(h){Object.defineProperty(T,h,Object.getOwnPropertyDescriptor(f,h))})}return T}function S(T){var o=L();return function(){var h=(0,y.default)(T),E;if(o){var j=(0,y.default)(this).constructor;E=Reflect.construct(h,arguments,j)}else E=h.apply(this,arguments);return(0,v.default)(this,E)}}function L(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var B=function(T){(0,c.default)(f,T);var o=S(f);function f(h,E){var j;return(0,a.default)(this,f),j=o.call(this),(0,b.default)((0,s.default)(j),"sender",void 0),(0,b.default)((0,s.default)(j),"outputs",void 0),(0,b.default)((0,s.default)(j),"aminoPrefix",z.AminoPrefix.MsgSend),j.sender=h,j.outputs=E,j}return(0,g.default)(f,[{key:"calInputCoins",value:function(E,j){j.forEach(function(F){var W=E.find(function(A){return A.denom===F.denom});if(W){var d=new N.default(W.amount);W.amount=Number(d.plus(F.amount).toString())}else E.push(P({},F))})}},{key:"getSignMsg",value:function(){var E=this,j={inputs:[{address:this.sender,coins:[]}],outputs:this.outputs};return this.outputs.forEach(function(F){E.calInputCoins(j.inputs[0].coins,F.coins)}),j}},{key:"getMsg",value:function(){var E=this,j={inputs:[{address:I.decodeAddress(this.sender),coins:[]}],outputs:[],aminoPrefix:this.aminoPrefix};return this.outputs.forEach(function(F){E.calInputCoins(j.inputs[0].coins,F.coins);var W={address:I.decodeAddress(F.address),coins:F.coins};j.outputs.push(W)}),j}}],[{key:"defaultMsg",value:function(){return{inputs:[{address:p.from(""),coins:[{denom:"",amount:0}]}],outputs:[{address:p.from(""),coins:[{denom:"",amount:0}]}],aminoPrefix:z.AminoPrefix.MsgSend}}}]),f}(x.BaseMsg);l.SendMsg=B},64806:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.BscDelegateMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=e(40477),I=r(e(23898)),z=e(8951);function x(S){var L=w();return function(){var T=(0,y.default)(S),o;if(L){var f=(0,y.default)(this).constructor;o=Reflect.construct(T,arguments,f)}else o=T.apply(this,arguments);return(0,v.default)(this,o)}}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var P=function(S){(0,c.default)(B,S);var L=x(B);function B(T){var o,f=T.delegator_addr,h=T.validator_addr,E=T.delegation,j=T.side_chain_id;return(0,a.default)(this,B),o=L.call(this),(0,b.default)((0,s.default)(o),"delegator_addr",void 0),(0,b.default)((0,s.default)(o),"validator_addr",void 0),(0,b.default)((0,s.default)(o),"delegation",void 0),(0,b.default)((0,s.default)(o),"side_chain_id",void 0),o.delegator_addr=f,o.validator_addr=h,o.delegation=E,o.side_chain_id=j,o}return(0,g.default)(B,[{key:"getSignMsg",value:function(){var o=this.delegation,f=o.denom,h=o.amount,E={delegator_addr:this.delegator_addr,validator_addr:this.validator_addr,delegation:{denom:f,amount:String(h)},side_chain_id:this.side_chain_id};return{type:"cosmos-sdk/MsgSideChainDelegate",value:E}}},{key:"getMsg",value:function(){var o={delegator_addr:I.decodeAddress(this.delegator_addr),validator_addr:I.decodeAddress(this.validator_addr),delegation:this.delegation,side_chain_id:this.side_chain_id,aminoPrefix:z.AminoPrefix.MsgSideChainDelegate};return o}}],[{key:"defaultMsg",value:function(){return{delegator_addr:p.from(""),validator_addr:p.from(""),delegation:[{denom:"",amount:0}],side_chain_id:"",aminoPrefix:z.AminoPrefix.MsgSideChainDelegate}}}]),B}(N.BaseMsg);l.BscDelegateMsg=P},14727:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.BscReDelegateMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=e(40477),I=r(e(23898)),z=e(8951);function x(S){var L=w();return function(){var T=(0,y.default)(S),o;if(L){var f=(0,y.default)(this).constructor;o=Reflect.construct(T,arguments,f)}else o=T.apply(this,arguments);return(0,v.default)(this,o)}}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var P=function(S){(0,c.default)(B,S);var L=x(B);function B(T){var o,f=T.delegator_addr,h=T.validator_src_addr,E=T.validator_dst_addr,j=T.amount,F=T.side_chain_id;return(0,a.default)(this,B),o=L.call(this),(0,b.default)((0,s.default)(o),"delegator_addr",void 0),(0,b.default)((0,s.default)(o),"validator_src_addr",void 0),(0,b.default)((0,s.default)(o),"validator_dst_addr",void 0),(0,b.default)((0,s.default)(o),"amount",void 0),(0,b.default)((0,s.default)(o),"side_chain_id",void 0),o.delegator_addr=f,o.validator_src_addr=h,o.validator_dst_addr=E,o.amount=j,o.side_chain_id=F,o}return(0,g.default)(B,[{key:"getSignMsg",value:function(){var o=this.amount,f=o.denom,h=o.amount,E={delegator_addr:this.delegator_addr,validator_src_addr:this.validator_src_addr,validator_dst_addr:this.validator_dst_addr,amount:{denom:f,amount:String(h)},side_chain_id:this.side_chain_id};return{type:"cosmos-sdk/MsgSideChainRedelegate",value:E}}},{key:"getMsg",value:function(){var o={delegator_addr:I.decodeAddress(this.delegator_addr),validator_src_addr:I.decodeAddress(this.validator_src_addr),validator_dst_addr:I.decodeAddress(this.validator_dst_addr),amount:this.amount,side_chain_id:this.side_chain_id,aminoPrefix:z.AminoPrefix.MsgSideChainRedelegate};return o}}],[{key:"defaultMsg",value:function(){return{delegator_addr:p.from(""),validator_src_addr:p.from(""),validator_dst_addr:p.from(""),amount:[{denom:"",amount:0}],side_chain_id:"",aminoPrefix:z.AminoPrefix.MsgSideChainRedelegate}}}]),B}(N.BaseMsg);l.BscReDelegateMsg=P},95164:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.BscUndelegateMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=e(40477),I=r(e(23898)),z=e(8951);function x(S){var L=w();return function(){var T=(0,y.default)(S),o;if(L){var f=(0,y.default)(this).constructor;o=Reflect.construct(T,arguments,f)}else o=T.apply(this,arguments);return(0,v.default)(this,o)}}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var P=function(S){(0,c.default)(B,S);var L=x(B);function B(T){var o,f=T.delegator_addr,h=T.validator_addr,E=T.amount,j=T.side_chain_id;return(0,a.default)(this,B),o=L.call(this),(0,b.default)((0,s.default)(o),"delegator_addr",void 0),(0,b.default)((0,s.default)(o),"validator_addr",void 0),(0,b.default)((0,s.default)(o),"amount",void 0),(0,b.default)((0,s.default)(o),"side_chain_id",void 0),o.delegator_addr=f,o.validator_addr=h,o.amount=E,o.side_chain_id=j,o}return(0,g.default)(B,[{key:"getSignMsg",value:function(){var o=this.amount,f=o.denom,h=o.amount,E={delegator_addr:this.delegator_addr,validator_addr:this.validator_addr,amount:{denom:f,amount:String(h)},side_chain_id:this.side_chain_id};return{type:"cosmos-sdk/MsgSideChainUndelegate",value:E}}},{key:"getMsg",value:function(){var o={delegator_addr:I.decodeAddress(this.delegator_addr),validator_addr:I.decodeAddress(this.validator_addr),amount:this.amount,side_chain_id:this.side_chain_id,aminoPrefix:z.AminoPrefix.MsgSideChainUndelegate};return o}}],[{key:"defaultMsg",value:function(){return{delegator_addr:p.from(""),validator_addr:p.from(""),amount:[{denom:"",amount:0}],side_chain_id:"",aminoPrefix:z.AminoPrefix.MsgSideChainUndelegate}}}]),B}(N.BaseMsg);l.BscUndelegateMsg=P},54457:function(G,l,e){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var p=e(64806);Object.keys(p).forEach(function(a){a==="default"||a==="__esModule"||Object.defineProperty(l,a,{enumerable:!0,get:function(){return p[a]}})});var r=e(95164);Object.keys(r).forEach(function(a){a==="default"||a==="__esModule"||Object.defineProperty(l,a,{enumerable:!0,get:function(){return r[a]}})});var u=e(14727);Object.keys(u).forEach(function(a){a==="default"||a==="__esModule"||Object.defineProperty(l,a,{enumerable:!0,get:function(){return u[a]}})})},41325:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.BurnTokenMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=e(40477),I=r(e(23898)),z=e(8951);function x(S){var L=w();return function(){var T=(0,y.default)(S),o;if(L){var f=(0,y.default)(this).constructor;o=Reflect.construct(T,arguments,f)}else o=T.apply(this,arguments);return(0,v.default)(this,o)}}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var P=function(S){(0,c.default)(B,S);var L=x(B);function B(T){var o,f=T.address,h=T.sybmol,E=T.amount;return(0,a.default)(this,B),o=L.call(this),(0,b.default)((0,s.default)(o),"from",void 0),(0,b.default)((0,s.default)(o),"symbol",void 0),(0,b.default)((0,s.default)(o),"amount",void 0),o.from=f,o.symbol=h,o.amount=E,o}return(0,g.default)(B,[{key:"getSignMsg",value:function(){var o={from:this.from,symbol:this.symbol,amount:this.amount};return o}},{key:"getMsg",value:function(){var o={from:I.decodeAddress(this.from),symbol:this.symbol,amount:this.amount,aminoPrefix:z.AminoPrefix.BurnMsg};return o}}],[{key:"defaultMsg",value:function(){return{from:p.from(""),symbol:"",amount:0,aminoPrefix:z.AminoPrefix.BurnMsg}}}]),B}(N.BaseMsg);l.BurnTokenMsg=P},72040:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.FreezeTokenMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=e(40477),I=r(e(23898)),z=e(8951);function x(S){var L=w();return function(){var T=(0,y.default)(S),o;if(L){var f=(0,y.default)(this).constructor;o=Reflect.construct(T,arguments,f)}else o=T.apply(this,arguments);return(0,v.default)(this,o)}}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var P=function(S){(0,c.default)(B,S);var L=x(B);function B(T){var o,f=T.address,h=T.sybmol,E=T.amount;return(0,a.default)(this,B),o=L.call(this),(0,b.default)((0,s.default)(o),"from",void 0),(0,b.default)((0,s.default)(o),"symbol",void 0),(0,b.default)((0,s.default)(o),"amount",void 0),o.from=f,o.symbol=h,o.amount=E,o}return(0,g.default)(B,[{key:"getSignMsg",value:function(){var o={from:this.from,symbol:this.symbol,amount:this.amount};return o}},{key:"getMsg",value:function(){var o={from:I.decodeAddress(this.from),symbol:this.symbol,amount:this.amount,aminoPrefix:z.AminoPrefix.FreezeMsg};return o}}],[{key:"defaultMsg",value:function(){return{from:p.from(""),symbol:"",amount:0,aminoPrefix:z.AminoPrefix.FreezeMsg}}}]),B}(N.BaseMsg);l.FreezeTokenMsg=P},55308:function(G,l,e){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var p=e(41325);Object.keys(p).forEach(function(I){I==="default"||I==="__esModule"||Object.defineProperty(l,I,{enumerable:!0,get:function(){return p[I]}})});var r=e(72040);Object.keys(r).forEach(function(I){I==="default"||I==="__esModule"||Object.defineProperty(l,I,{enumerable:!0,get:function(){return r[I]}})});var u=e(30771);Object.keys(u).forEach(function(I){I==="default"||I==="__esModule"||Object.defineProperty(l,I,{enumerable:!0,get:function(){return u[I]}})});var a=e(35322);Object.keys(a).forEach(function(I){I==="default"||I==="__esModule"||Object.defineProperty(l,I,{enumerable:!0,get:function(){return a[I]}})});var g=e(56940);Object.keys(g).forEach(function(I){I==="default"||I==="__esModule"||Object.defineProperty(l,I,{enumerable:!0,get:function(){return g[I]}})});var s=e(22234);Object.keys(s).forEach(function(I){I==="default"||I==="__esModule"||Object.defineProperty(l,I,{enumerable:!0,get:function(){return s[I]}})});var c=e(63987);Object.keys(c).forEach(function(I){I==="default"||I==="__esModule"||Object.defineProperty(l,I,{enumerable:!0,get:function(){return c[I]}})});var v=e(38713);Object.keys(v).forEach(function(I){I==="default"||I==="__esModule"||Object.defineProperty(l,I,{enumerable:!0,get:function(){return v[I]}})});var y=e(36363);Object.keys(y).forEach(function(I){I==="default"||I==="__esModule"||Object.defineProperty(l,I,{enumerable:!0,get:function(){return y[I]}})});var b=e(50640);Object.keys(b).forEach(function(I){I==="default"||I==="__esModule"||Object.defineProperty(l,I,{enumerable:!0,get:function(){return b[I]}})});var N=e(13219);Object.keys(N).forEach(function(I){I==="default"||I==="__esModule"||Object.defineProperty(l,I,{enumerable:!0,get:function(){return N[I]}})})},36363:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.IssueMiniTokenMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=e(40477),I=r(e(23898)),z=e(8951);function x(B,T){var o=Object.keys(B);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(B);T&&(f=f.filter(function(h){return Object.getOwnPropertyDescriptor(B,h).enumerable})),o.push.apply(o,f)}return o}function w(B){for(var T=1;T<arguments.length;T++){var o=arguments[T]!=null?arguments[T]:{};T%2?x(Object(o),!0).forEach(function(f){(0,b.default)(B,f,o[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(o)):x(Object(o)).forEach(function(f){Object.defineProperty(B,f,Object.getOwnPropertyDescriptor(o,f))})}return B}function P(B){var T=S();return function(){var f=(0,y.default)(B),h;if(T){var E=(0,y.default)(this).constructor;h=Reflect.construct(f,arguments,E)}else h=f.apply(this,arguments);return(0,v.default)(this,h)}}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var L=function(B){(0,c.default)(o,B);var T=P(o);function o(f){var h;return(0,a.default)(this,o),h=T.call(this),(0,b.default)((0,s.default)(h),"params",void 0),h.params=f,h}return(0,g.default)(o,[{key:"getSignMsg",value:function(){var h=w({},this.params);return h}},{key:"getMsg",value:function(){var h={from:I.decodeAddress(this.params.from),name:this.params.name,symbol:this.params.symbol,total_supply:this.params.total_supply,mintable:this.params.mintable,token_uri:this.params.token_uri,aminoPrefix:z.AminoPrefix.IssueMiniMsg};return h}}],[{key:"defaultMsg",value:function(){return{from:p.from,name:"",symbol:"",total_supply:0,mintable:!1,token_uri:"",aminoPrefix:z.AminoPrefix.IssueMiniMsg}}}]),o}(N.BaseMsg);l.IssueMiniTokenMsg=L},50640:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.IssueTinyTokenMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=e(40477),I=r(e(23898)),z=e(8951);function x(B,T){var o=Object.keys(B);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(B);T&&(f=f.filter(function(h){return Object.getOwnPropertyDescriptor(B,h).enumerable})),o.push.apply(o,f)}return o}function w(B){for(var T=1;T<arguments.length;T++){var o=arguments[T]!=null?arguments[T]:{};T%2?x(Object(o),!0).forEach(function(f){(0,b.default)(B,f,o[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(o)):x(Object(o)).forEach(function(f){Object.defineProperty(B,f,Object.getOwnPropertyDescriptor(o,f))})}return B}function P(B){var T=S();return function(){var f=(0,y.default)(B),h;if(T){var E=(0,y.default)(this).constructor;h=Reflect.construct(f,arguments,E)}else h=f.apply(this,arguments);return(0,v.default)(this,h)}}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var L=function(B){(0,c.default)(o,B);var T=P(o);function o(f){var h;return(0,a.default)(this,o),h=T.call(this),(0,b.default)((0,s.default)(h),"params",void 0),h.params=f,h}return(0,g.default)(o,[{key:"getSignMsg",value:function(){var h=w({},this.params);return h}},{key:"getMsg",value:function(){var h={from:I.decodeAddress(this.params.from),name:this.params.name,symbol:this.params.symbol,total_supply:this.params.total_supply,mintable:this.params.mintable,token_uri:this.params.token_uri,aminoPrefix:z.AminoPrefix.IssueTinyMsg};return h}}],[{key:"defaultMsg",value:function(){return{from:p.from,name:"",symbol:"",total_supply:0,mintable:!1,token_uri:"",aminoPrefix:z.AminoPrefix.IssueTinyMsg}}}]),o}(N.BaseMsg);l.IssueTinyTokenMsg=L},35322:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.IssueTokenMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=e(40477),I=r(e(23898)),z=e(8951);function x(B,T){var o=Object.keys(B);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(B);T&&(f=f.filter(function(h){return Object.getOwnPropertyDescriptor(B,h).enumerable})),o.push.apply(o,f)}return o}function w(B){for(var T=1;T<arguments.length;T++){var o=arguments[T]!=null?arguments[T]:{};T%2?x(Object(o),!0).forEach(function(f){(0,b.default)(B,f,o[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(o)):x(Object(o)).forEach(function(f){Object.defineProperty(B,f,Object.getOwnPropertyDescriptor(o,f))})}return B}function P(B){var T=S();return function(){var f=(0,y.default)(B),h;if(T){var E=(0,y.default)(this).constructor;h=Reflect.construct(f,arguments,E)}else h=f.apply(this,arguments);return(0,v.default)(this,h)}}function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var L=function(B){(0,c.default)(o,B);var T=P(o);function o(f,h){var E;return(0,a.default)(this,o),E=T.call(this),(0,b.default)((0,s.default)(E),"from",void 0),(0,b.default)((0,s.default)(E),"params",void 0),E.from=h,E.params=f,E}return(0,g.default)(o,[{key:"getSignMsg",value:function(){var h=w({from:this.from},this.params);return h}},{key:"getMsg",value:function(){var h={from:I.decodeAddress(this.from),name:this.params.name,symbol:this.params.symbol,total_supply:this.params.total_supply,mintable:this.params.mintable,aminoPrefix:z.AminoPrefix.IssueMsg};return h}}],[{key:"defaultMsg",value:function(){return{from:p.from,name:"",symbol:"",total_supply:0,mintable:!1,aminoPrefix:z.AminoPrefix.IssueMsg}}}]),o}(N.BaseMsg);l.IssueTokenMsg=L},56940:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.MintTokenMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=u(e(93302)),I=e(40477),z=r(e(23898)),x=e(8951);function w(L){var B=P();return function(){var o=(0,y.default)(L),f;if(B){var h=(0,y.default)(this).constructor;f=Reflect.construct(o,arguments,h)}else f=o.apply(this,arguments);return(0,v.default)(this,f)}}function P(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var S=function(L){(0,c.default)(T,L);var B=w(T);function T(o){var f,h=o.address,E=o.sybmol,j=o.amount;return(0,a.default)(this,T),f=B.call(this),(0,b.default)((0,s.default)(f),"from",void 0),(0,b.default)((0,s.default)(f),"symbol",void 0),(0,b.default)((0,s.default)(f),"amount",void 0),f.from=h,f.symbol=E,f.amount=j,f}return(0,g.default)(T,[{key:"getSignMsg",value:function(){var f={from:this.from,amount:Number(new N.default(this.amount).mul(Math.pow(10,8)).toString()),symbol:this.symbol};return f}},{key:"getMsg",value:function(){var f={from:z.decodeAddress(this.from),symbol:this.symbol,amount:Number(new N.default(this.amount).mul(Math.pow(10,8)).toString()),aminoPrefix:x.AminoPrefix.MintMsg};return f}}],[{key:"defaultMsg",value:function(){return{from:p.from(""),symbol:"",amount:0,aminoPrefix:x.AminoPrefix.MintMsg}}}]),T}(I.BaseMsg);l.MintTokenMsg=S},13219:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.SetTokenUriMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=e(40477),I=r(e(23898)),z=e(8951);function x(S){var L=w();return function(){var T=(0,y.default)(S),o;if(L){var f=(0,y.default)(this).constructor;o=Reflect.construct(T,arguments,f)}else o=T.apply(this,arguments);return(0,v.default)(this,o)}}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var P=function(S){(0,c.default)(B,S);var L=x(B);function B(T){var o,f=T.from,h=T.symbol,E=T.token_uri;return(0,a.default)(this,B),o=L.call(this),(0,b.default)((0,s.default)(o),"from",void 0),(0,b.default)((0,s.default)(o),"symbol",void 0),(0,b.default)((0,s.default)(o),"token_uri",void 0),o.from=f,o.symbol=h,o.token_uri=E,o}return(0,g.default)(B,[{key:"getSignMsg",value:function(){var o={from:this.from,symbol:this.symbol,token_uri:this.token_uri};return o}},{key:"getMsg",value:function(){var o={from:I.decodeAddress(this.from),symbol:this.symbol,token_uri:this.token_uri,aminoPrefix:z.AminoPrefix.SetURIMsg};return o}}],[{key:"defaultMsg",value:function(){return{from:p.from(""),symbol:"",token_uri:"",aminoPrefix:z.AminoPrefix.SetURIMsg}}}]),B}(N.BaseMsg);l.SetTokenUriMsg=P},63987:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.TimeReLockMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=e(40477),I=r(e(23898)),z=e(8951);function x(S){var L=w();return function(){var T=(0,y.default)(S),o;if(L){var f=(0,y.default)(this).constructor;o=Reflect.construct(T,arguments,f)}else o=T.apply(this,arguments);return(0,v.default)(this,o)}}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var P=function(S){(0,c.default)(B,S);var L=x(B);function B(T){var o,f=T.address,h=T.time_lock_id,E=T.description,j=T.amount,F=T.lock_time;return(0,a.default)(this,B),o=L.call(this),(0,b.default)((0,s.default)(o),"from",void 0),(0,b.default)((0,s.default)(o),"time_lock_id",void 0),(0,b.default)((0,s.default)(o),"description",void 0),(0,b.default)((0,s.default)(o),"lock_time",void 0),(0,b.default)((0,s.default)(o),"amount",void 0),o.from=f,o.description=E,o.amount=j,o.lock_time=F,o.time_lock_id=h,o}return(0,g.default)(B,[{key:"getSignMsg",value:function(){var o={from:this.from,time_lock_id:this.time_lock_id,amount:this.amount,description:this.description,lock_time:this.lock_time};return o}},{key:"getMsg",value:function(){var o={from:I.decodeAddress(this.from),time_lock_id:this.time_lock_id,description:this.description,amount:this.amount,lock_time:this.lock_time,aminoPrefix:z.AminoPrefix.TimeRelockMsg};return o}}],[{key:"defaultMsg",value:function(){return{from:p.from(""),description:"",amount:0,lock_time:0,aminoPrefix:z.AminoPrefix.TimeRelockMsg}}}]),B}(N.BaseMsg);l.TimeReLockMsg=P},38713:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.TimeUnlockMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=e(40477),I=r(e(23898)),z=e(8951);function x(S){var L=w();return function(){var T=(0,y.default)(S),o;if(L){var f=(0,y.default)(this).constructor;o=Reflect.construct(T,arguments,f)}else o=T.apply(this,arguments);return(0,v.default)(this,o)}}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var P=function(S){(0,c.default)(B,S);var L=x(B);function B(T){var o,f=T.address,h=T.time_lock_id;return(0,a.default)(this,B),o=L.call(this),(0,b.default)((0,s.default)(o),"from",void 0),(0,b.default)((0,s.default)(o),"time_lock_id",void 0),o.from=f,o.time_lock_id=h,o}return(0,g.default)(B,[{key:"getSignMsg",value:function(){var o={from:this.from,time_lock_id:this.time_lock_id};return o}},{key:"getMsg",value:function(){var o={from:I.decodeAddress(this.from),time_lock_id:this.time_lock_id,aminoPrefix:z.AminoPrefix.TimeUnlockMsg};return o}}],[{key:"defaultMsg",value:function(){return{from:p.from(""),time_lock_id:0,aminoPrefix:z.AminoPrefix.TimeUnlockMsg}}}]),B}(N.BaseMsg);l.TimeUnlockMsg=P},22234:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.TimeLockMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=e(40477),I=r(e(23898)),z=e(8951);function x(S){var L=w();return function(){var T=(0,y.default)(S),o;if(L){var f=(0,y.default)(this).constructor;o=Reflect.construct(T,arguments,f)}else o=T.apply(this,arguments);return(0,v.default)(this,o)}}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var P=function(S){(0,c.default)(B,S);var L=x(B);function B(T){var o,f=T.address,h=T.description,E=T.amount,j=T.lock_time;return(0,a.default)(this,B),o=L.call(this),(0,b.default)((0,s.default)(o),"from",void 0),(0,b.default)((0,s.default)(o),"description",void 0),(0,b.default)((0,s.default)(o),"lock_time",void 0),(0,b.default)((0,s.default)(o),"amount",void 0),o.from=f,o.description=h,o.amount=E,o.lock_time=j,o}return(0,g.default)(B,[{key:"getSignMsg",value:function(){var o={from:this.from,amount:this.amount,description:this.description,lock_time:this.lock_time};return o}},{key:"getMsg",value:function(){var o={from:I.decodeAddress(this.from),description:this.description,amount:this.amount,lock_time:this.lock_time,aminoPrefix:z.AminoPrefix.TimeLockMsg};return o}}],[{key:"defaultMsg",value:function(){return{from:p.from(""),description:"",amount:[{denom:"",amount:0}],lock_time:0,aminoPrefix:z.AminoPrefix.TimeLockMsg}}}]),B}(N.BaseMsg);l.TimeLockMsg=P},30771:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.UnFreezeTokenMsg=void 0;var a=u(e(56690)),g=u(e(89728)),s=u(e(66115)),c=u(e(61655)),v=u(e(94993)),y=u(e(73808)),b=u(e(38416)),N=e(40477),I=r(e(23898)),z=e(8951);function x(S){var L=w();return function(){var T=(0,y.default)(S),o;if(L){var f=(0,y.default)(this).constructor;o=Reflect.construct(T,arguments,f)}else o=T.apply(this,arguments);return(0,v.default)(this,o)}}function w(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var P=function(S){(0,c.default)(B,S);var L=x(B);function B(T){var o,f=T.address,h=T.sybmol,E=T.amount;return(0,a.default)(this,B),o=L.call(this),(0,b.default)((0,s.default)(o),"from",void 0),(0,b.default)((0,s.default)(o),"symbol",void 0),(0,b.default)((0,s.default)(o),"amount",void 0),o.from=f,o.symbol=h,o.amount=E,o}return(0,g.default)(B,[{key:"getSignMsg",value:function(){var o={from:this.from,symbol:this.symbol,amount:this.amount};return o}},{key:"getMsg",value:function(){var o={from:I.decodeAddress(this.from),symbol:this.symbol,amount:this.amount,aminoPrefix:z.AminoPrefix.UnfreezeMsg};return o}}],[{key:"defaultMsg",value:function(){return{from:p.from(""),symbol:"",amount:0,aminoPrefix:z.AminoPrefix.UnfreezeMsg}}}]),B}(N.BaseMsg);l.UnFreezeTokenMsg=P},86057:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.SubmitProposalMsg=l.OrderBook=l.OrderBookLevel=l.TradingPair=l.OpenOrder=l.TokenBalance=l.AppAccount=l.BaseAccount=l.TokenOfList=l.Token=void 0;var u=r(e(56690)),a=r(e(38416)),g=e(8951),s=function P(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,u.default)(this,P),(0,a.default)(this,"aminoPrefix",g.AminoPrefix.BnbchainToken),(0,a.default)(this,"name",void 0),(0,a.default)(this,"symbol",void 0),(0,a.default)(this,"original_symbol",void 0),(0,a.default)(this,"total_supply",void 0),(0,a.default)(this,"owner",void 0),(0,a.default)(this,"mintable",void 0),this.name=S.name||"",this.symbol=S.symbol||"",this.original_symbol=S.original_symbol||"",this.total_supply=S.total_supply||0,this.owner=S.owner||p.alloc(0),this.mintable=S.mintable||!1};l.Token=s;var c=function P(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,u.default)(this,P),(0,a.default)(this,"name",void 0),(0,a.default)(this,"symbol",void 0),(0,a.default)(this,"original_symbol",void 0),(0,a.default)(this,"total_supply",void 0),(0,a.default)(this,"owner",void 0),(0,a.default)(this,"mintable",void 0),this.name=S.name||"",this.symbol=S.symbol||"",this.original_symbol=S.original_symbol||"",this.total_supply=S.total_supply||0,this.owner=S.owner||p.alloc(0),this.mintable=S.mintable||!1};l.TokenOfList=c;var v=function P(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,u.default)(this,P),(0,a.default)(this,"address",void 0),(0,a.default)(this,"coins",void 0),(0,a.default)(this,"public_key",void 0),(0,a.default)(this,"account_number",void 0),(0,a.default)(this,"sequence",void 0),this.address=S.address||p.alloc(0),this.coins=S.coins||[{denom:"",amount:0}],this.public_key=S.public_key||p.alloc(0),this.account_number=S.account_number||0,this.sequence=S.sequence||0};l.BaseAccount=v;var y=function P(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,u.default)(this,P),(0,a.default)(this,"aminoPrefix",g.AminoPrefix.BnbchainAccount),(0,a.default)(this,"base",void 0),(0,a.default)(this,"name",void 0),(0,a.default)(this,"locked",void 0),(0,a.default)(this,"frozen",void 0),this.base=S.base||new v,this.name=S.name||"",this.locked=S.locked||[{denom:"",amount:0}],this.frozen=S.frozen||[{denom:"",amount:0}]};l.AppAccount=y;var b=function P(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,u.default)(this,P),(0,a.default)(this,"symbol",void 0),(0,a.default)(this,"free",void 0),(0,a.default)(this,"locked",void 0),(0,a.default)(this,"frozen",void 0),this.symbol=S.symbol||"",this.free=S.free||0,this.locked=S.locked||0,this.frozen=S.frozen||0};l.TokenBalance=b;var N=function P(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,u.default)(this,P),(0,a.default)(this,"id",void 0),(0,a.default)(this,"symbol",void 0),(0,a.default)(this,"price",void 0),(0,a.default)(this,"quantity",void 0),(0,a.default)(this,"cumQty",void 0),(0,a.default)(this,"createdHeight",void 0),(0,a.default)(this,"createdTimestamp",void 0),(0,a.default)(this,"lastUpdatedHeight",void 0),(0,a.default)(this,"lastUpdatedTimestamp",void 0),this.id=S.id||"",this.symbol=S.symbol||"",this.price=S.price||0,this.quantity=S.quantity||0,this.cumQty=S.cumQty||0,this.createdHeight=S.createdHeight||0,this.createdTimestamp=S.createdTimestamp||0,this.lastUpdatedHeight=S.lastUpdatedHeight||0,this.lastUpdatedTimestamp=S.lastUpdatedTimestamp||0};l.OpenOrder=N;var I=function P(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,u.default)(this,P),(0,a.default)(this,"base_asset_symbol",void 0),(0,a.default)(this,"quote_asset_symbol",void 0),(0,a.default)(this,"list_price",void 0),(0,a.default)(this,"tick_size",void 0),(0,a.default)(this,"lot_size",void 0),this.base_asset_symbol=S.base_asset_symbol||"",this.quote_asset_symbol=S.quote_asset_symbol||"",this.list_price=S.list_price||0,this.tick_size=S.tick_size||0,this.lot_size=S.lot_size||0};l.TradingPair=I;var z=function P(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,u.default)(this,P),(0,a.default)(this,"buyQty",void 0),(0,a.default)(this,"buyPrice",void 0),(0,a.default)(this,"sellQty",void 0),(0,a.default)(this,"sellPrice",void 0),this.buyQty=S.buyQty||0,this.buyPrice=S.buyPrice||0,this.sellQty=S.sellQty||0,this.sellPrice=S.sellPrice||0};l.OrderBookLevel=z;var x=function P(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,u.default)(this,P),(0,a.default)(this,"height",void 0),(0,a.default)(this,"levels",void 0),this.height=S.height||0,this.levels=S.levels||[new z]};l.OrderBook=x;var w=function P(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(0,u.default)(this,P),(0,a.default)(this,"aminoPrefix",g.AminoPrefix.MsgSubmitProposal),(0,a.default)(this,"title",void 0),(0,a.default)(this,"description",void 0),(0,a.default)(this,"proposal_type",void 0),(0,a.default)(this,"proposer",void 0),(0,a.default)(this,"initial_deposit",void 0),(0,a.default)(this,"voting_period",void 0),S=S||{},this.title=S.title||"",this.description=S.description||"",this.proposal_type=S.proposal_type||0,this.proposer=S.proposer||p.alloc(0),this.initial_deposit=S.initial_deposit||[],this.voting_period=S.voting_period||0};l.SubmitProposalMsg=w},72702:function(){"use strict"},8951:function(G,l,e){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var p=e(72702);Object.keys(p).forEach(function(a){a==="default"||a==="__esModule"||Object.defineProperty(l,a,{enumerable:!0,get:function(){return p[a]}})});var r=e(82087);Object.keys(r).forEach(function(a){a==="default"||a==="__esModule"||Object.defineProperty(l,a,{enumerable:!0,get:function(){return r[a]}})});var u=e(68703);Object.keys(u).forEach(function(a){a==="default"||a==="__esModule"||Object.defineProperty(l,a,{enumerable:!0,get:function(){return u[a]}})})},82087:function(G,l){"use strict";Object.defineProperty(l,"__esModule",{value:!0}),l.AminoPrefix=void 0;var e;l.AminoPrefix=e,function(p){p.MsgSend="2A2C87FA",p.NewOrderMsg="CE6DC043",p.CancelOrderMsg="166E681B",p.IssueMsg="17EFAB80",p.BurnMsg="7ED2D2A0",p.FreezeMsg="E774B32D",p.UnfreezeMsg="6515FF0D",p.MintMsg="467E0829",p.ListMsg="B41DE13F",p.StdTx="F0625DEE",p.PubKeySecp256k1="EB5AE987",p.SignatureSecp256k1="7FC4A495",p.MsgSubmitProposal="B42D614E",p.MsgDeposit="A18A56E5",p.MsgVote="A1CADD36",p.TimeLockMsg="07921531",p.TimeUnlockMsg="C4050C6C",p.TimeRelockMsg="504711DA",p.HTLTMsg="B33F9A24",p.DepositHTLTMsg="63986496",p.ClaimHTLTMsg="C1665300",p.RefundHTLTMsg="3454A27C",p.SetAccountFlagsMsg="BEA6E301",p.BnbchainAccount="4BDC4C27",p.BnbchainToken="140364E6",p.MsgCreateValidator="EB361D01",p.MsgRemoveValidator="C1AFE85F",p.MsgCreateValidatorProposal="DB6A19FD",p.MsgEditValidator="C2E8BCCD",p.MsgDelegate="921D2E4E",p.MsgBeginUnbonding="A3823C9A",p.MsgBeginRedelegate="267996D2",p.MsgCreateSideChainValidator="D17201E5",p.MsgEditSideChainValidator="264CC57B",p.MsgSideChainDelegate="E3A07FD2",p.MsgSideChainRedelegate="E3CED364",p.MsgSideChainUndelegate="514F7E0E",p.Claim="4E781C11",p.ClaimMsg="175A0521",p.BindMsg="B9AE640C",p.TransferOutMsg="800819C0",p.IssueMiniMsg="A3F16C41",p.IssueTinyMsg="ED2832D4",p.SetURIMsg="7B1D34E7",p.ListMiniMsg="4C264019",p.MiniToken="E0051C20"}(e||(l.AminoPrefix=e={}))},68703:function(){"use strict"},66283:function(G,l,e){"use strict";var p=e(48764).Buffer,r=e(75263),u=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.calculateSwapID=l.calculateRandomNumberHash=l.sha3=l.sha256=l.sha256ripemd160=l.ensureHex=l.isHex=l.reverseHex=l.reverseArray=l.hexXor=l.num2VarInt=l.num2hexstring=l.int2hex=l.hexstring2str=l.str2hexstring=l.ab2hexstring=l.hexstring2ab=l.str2ab=l.ab2str=void 0;var a=u(e(18698)),g=u(e(63465)),s=u(e(30706)),c=u(e(52153)),v=u(e(13327)),y=r(e(23898)),b=function(O){for(var U=[],H=0,V=O.length;H<V;H++)U.push(O[H]);String.fromCharCode.apply(null,U)};l.ab2str=b;var N=function(O){if(typeof O!="string")throw new Error("str2ab expects a string");for(var U=new Uint8Array(O.length),H=0,V=O.length;H<V;H++)U[H]=O.charCodeAt(H);return U};l.str2ab=N;var I=function(O){if(E(O),!O.length)return new Uint8Array;for(var U=O.length/2,H=new Uint8Array(U),V=0;V<U;V++)H[V]=parseInt(O.substring(0,2),16),O=O.substring(2);return H};l.hexstring2ab=I;var z=function(O){if((0,a.default)(O)!=="object")throw new Error("ab2hexstring expects an array");for(var U="",H=0;H<O.length;H++){var V=O[H].toString(16);V=V.length===0?"00":V.length===1?"0"+V:V,U+=V}return U};l.ab2hexstring=z;var x=function(O){return z(N(O))};l.str2hexstring=x;var w=function(O){return b(I(O))};l.hexstring2str=w;var P=function(O){if(typeof O!="number")throw new Error("int2hex expects a number");var U=O.toString(16);return U.length%2?"0"+U:U};l.int2hex=P;var S=function(O){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof O!="number")throw new Error("num must be numeric");if(O<0)throw new RangeError("num is unsigned (>= 0)");if(U%1!==0)throw new Error("size must be a whole integer");if(!Number.isSafeInteger(O))throw new RangeError("num (".concat(O,") must be a safe integer"));U=U*2;var V=O.toString(16);return V=V.length%U===0?V:("0".repeat(U)+V).substring(V.length),H&&(V=o(V)),V};l.num2hexstring=S;var L=function(O){return O<253?S(O):O<=65535?"fd"+S(O,2,!0):O<=4294967295?"fe"+S(O,4,!0):"ff"+S(O,8,!0)};l.num2VarInt=L;var B=function(O,U){if(E(O),E(U),O.length!==U.length)throw new Error("strings are disparate lengths");for(var H=[],V=0;V<O.length;V+=2)H.push(parseInt(O.substr(V,2),16)^parseInt(U.substr(V,2),16));return z(H)};l.hexXor=B;var T=function(O){if((0,a.default)(O)!=="object"||!O.length)throw new Error("reverseArray expects an array");for(var U=new Uint8Array(O.length),H=0;H<O.length;H++)U[H]=O[O.length-1-H];return U};l.reverseArray=T;var o=function(O){E(O);for(var U="",H=O.length-2;H>=0;H-=2)U+=O.substr(H,2);return U};l.reverseHex=o;var f=/^([0-9A-Fa-f]{2})*$/,h=function(O){try{return f.test(O)}catch{return!1}};l.isHex=h;var E=function(O){if(!h(O))throw new Error("Expected a hexstring but got ".concat(O))};l.ensureHex=E;var j=function(O){if(typeof O!="string")throw new Error("sha256ripemd160 expects a string");if(O.length%2!==0)throw new Error("invalid hex string length: ".concat(O));var U=g.default.parse(O),H=(0,c.default)(U);return(0,s.default)(H).toString()};l.sha256ripemd160=j;var F=function(O){if(typeof O!="string")throw new Error("sha256 expects a hex string");if(O.length%2!==0)throw new Error("invalid hex string length: ".concat(O));var U=g.default.parse(O);return(0,c.default)(U).toString()};l.sha256=F;var W=function(O){if(typeof O!="string")throw new Error("sha3 expects a hex string");if(O.length%2!==0)throw new Error("invalid hex string length: ".concat(O));var U=g.default.parse(O);return(0,v.default)(U).toString()};l.sha3=W;var d=function(O,U){for(var H=U.toString(16),V=H,Q=0;Q<16-H.length;Q++)V="0"+V;var Z=p.from(V,"hex"),J=p.concat([p.from(O,"hex"),Z]);return F(J.toString("hex"))};l.calculateRandomNumberHash=d;var A=function(O,U,H){var V=p.from(O,"hex"),Q=y.decodeAddress(U),Z=p.from(H.toLowerCase(),"utf8"),J=p.concat([V,Q,Z]);return F(J.toString("hex"))};l.calculateSwapID=A},10881:function(G,l,e){"use strict";var p=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.size=l.default=void 0;var r=p(e(94315)),u=function(s){if(r.default.boolean(s))return 0;if(r.default.number(s))return r.default.integer(s)?0:1;if(r.default.string(s)||r.default.array(s)||r.default.object(s))return 2;throw new Error('Invalid type "'.concat(s,'"'))};l.default=u;var a=function(s,c,v){v===void 0&&(v=0);for(var y=0;y<s.length;++y)v+=c(s[y],y,v);return v};l.size=a},20723:function(G,l,e){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var p=e(66283);Object.keys(p).forEach(function(s){s==="default"||s==="__esModule"||Object.defineProperty(l,s,{enumerable:!0,get:function(){return p[s]}})});var r=e(10881);Object.keys(r).forEach(function(s){s==="default"||s==="__esModule"||Object.defineProperty(l,s,{enumerable:!0,get:function(){return r[s]}})});var u=e(72731);Object.keys(u).forEach(function(s){s==="default"||s==="__esModule"||Object.defineProperty(l,s,{enumerable:!0,get:function(){return u[s]}})});var a=e(75838);Object.keys(a).forEach(function(s){s==="default"||s==="__esModule"||Object.defineProperty(l,s,{enumerable:!0,get:function(){return a[s]}})});var g=e(33021);Object.keys(g).forEach(function(s){s==="default"||s==="__esModule"||Object.defineProperty(l,s,{enumerable:!0,get:function(){return g[s]}})})},33021:function(G,l,e){"use strict";var p=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.default=l.HttpRequest=void 0;var r=p(e(56690)),u=p(e(89728)),a=p(e(38416)),g=p(e(9669));function s(b,N){var I=Object.keys(b);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(b);N&&(z=z.filter(function(x){return Object.getOwnPropertyDescriptor(b,x).enumerable})),I.push.apply(I,z)}return I}function c(b){for(var N=1;N<arguments.length;N++){var I=arguments[N]!=null?arguments[N]:{};N%2?s(Object(I),!0).forEach(function(z){(0,a.default)(b,z,I[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(b,Object.getOwnPropertyDescriptors(I)):s(Object(I)).forEach(function(z){Object.defineProperty(b,z,Object.getOwnPropertyDescriptor(I,z))})}return b}var v=function(){function b(N){(0,r.default)(this,b),(0,a.default)(this,"httpClient",void 0),this.httpClient=g.default.create({baseURL:N})}return(0,u.default)(b,[{key:"get",value:function(I,z,x){return this.request("get",I,z,x)}},{key:"post",value:function(I,z,x){return this.request("post",I,z,x)}},{key:"request",value:function(I,z,x){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},P=c({method:I,url:z},w);return x&&(I==="get"?P.params=x:P.data=x),this.httpClient.request(P).then(function(S){return{result:S.data,status:S.status}}).catch(function(S){var L=S;try{var B=S.response&&S.response.data;L=new Error(B.message),L.code=B.code}catch{throw L}throw L})}}]),b}();l.HttpRequest=v;var y=v;l.default=y},75838:function(G,l,e){"use strict";var p=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.getMsgByAminoPrefix=l.convertObjectArrayNum=l.divide=l.BASENUMBER=void 0;var r=p(e(93302)),u=e(54684),a=Math.pow(10,8);l.BASENUMBER=a;var g=function(y){return+new r.default(y).div(a).toString()};l.divide=g;var s=function(y,b){y.forEach(function(N){b.forEach(function(I){N[I]=g(N[I])})})};l.convertObjectArrayNum=s;var c=function(y){switch(y.toUpperCase()){case u.AminoPrefix.NewOrderMsg:return u.NewOrderMsg;case u.AminoPrefix.CancelOrderMsg:return u.CancelOrderMsg;case u.AminoPrefix.MsgSend:return u.SendMsg;case u.AminoPrefix.IssueMsg:return u.IssueTokenMsg;case u.AminoPrefix.FreezeMsg:return u.FreezeTokenMsg;case u.AminoPrefix.UnfreezeMsg:return u.UnFreezeTokenMsg;case u.AminoPrefix.BurnMsg:return u.BurnTokenMsg;case u.AminoPrefix.MintMsg:return u.MintTokenMsg;case u.AminoPrefix.TimeLockMsg:return u.TimeLockMsg;case u.AminoPrefix.TimeRelockMsg:return u.TimeReLockMsg;case u.AminoPrefix.TimeUnlockMsg:return u.TimeUnlockMsg;default:return u.BaseMsg}};l.getMsgByAminoPrefix=c},72731:function(G,l,e){"use strict";var p=e(64836);Object.defineProperty(l,"__esModule",{value:!0}),l.validateOffsetLimit=l.validateTradingPair=l.validateSymbol=l.checkCoins=l.checkNumber=void 0;var r=p(e(93302)),u=Math.pow(2,63),a=function(b){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"input number";if(new r.default(b).lte(0))throw new Error("".concat(N," should be a positive number"));if(new r.default(b).gte(u))throw new Error("".concat(N," should be less than 2^63"))};l.checkNumber=a;var g=function(b){b=b||[],b.forEach(function(N){if(a(N.amount),!N.denom)throw new Error("invalid denmon")})};l.checkCoins=g;var s=function(b){if(!b)throw new Error("suffixed token symbol cannot be empty");var N=b.split("-");if(!/^[a-zA-z\d/.]{3,10}$/.test(N[0]))throw new Error("symbol length is limited to 3~10")};l.validateSymbol=s;var c=function(b){var N=b.split("_");if(N.length!==2)throw new Error('the pair should in format "symbol1_symbol2"');s(N[0]),s(N[1])};l.validateTradingPair=c;var v=function(b,N){if(b<0)throw new Error("offset can't be less than 0");if(N<0)throw new Error("limit can't be less than 0")};l.validateOffsetLimit=v},53732:function(G,l,e){"use strict";var p,r=e(48764).Buffer;p={value:!0},l.n=void 0;var u=e(76358),a=e(81580),g=e(28716);const s=5,c=v=>a.Observable.create(y=>{let b=0,N=0,I=r.alloc(0);const z=v.subscribe({complete:()=>{y.error(new u.DisconnectedDevice),z.unsubscribe()},error:x=>{(0,g.log)("ble-error","in receiveAPDU "+String(x)),y.error(x),z.unsubscribe()},next:x=>{const w=x.readUInt8(0),P=x.readUInt16BE(1);let S=x.slice(3);if(w!==s){y.error(new u.TransportError("Invalid tag "+w.toString(16),"InvalidTag"));return}if(b!==P){y.error(new u.TransportError("BLE: Invalid sequence number. discontinued chunk. Received "+P+" but expected "+b,"InvalidSequence"));return}if(P===0&&(N=S.readUInt16BE(0),S=S.slice(2)),b++,I=r.concat([I,S]),I.length>N){y.error(new u.TransportError("BLE: received too much data. discontinued chunk. Received "+I.length+" but expected "+N,"BLETooMuchData"));return}I.length===N&&(y.next(I),y.complete(),z.unsubscribe())}});return()=>{z.unsubscribe()}});l.n=c},37741:function(G,l,e){"use strict";var p,r=e(48764).Buffer;p={value:!0},l.o=void 0;var u=e(81580),a=e(28716);const g=5;function s(v,y){const b=[];for(let N=0,I=y(0);N<v.length;N+=I,I=y(N))b.push(v.slice(N,N+I));return b}const c=(v,y,b)=>{const N=s(y,I=>b-(I===0?5:3)).map((I,z)=>{const x=r.alloc(z===0?5:3);return x.writeUInt8(g,0),x.writeUInt16BE(z,1),z===0&&x.writeUInt16BE(y.length,3),r.concat([x,I])});return u.Observable.create(I=>{let z=!1;async function x(){for(const P of N){if(z)return;await v(P)}}return x().then(()=>{z=!0,I.complete()},P=>{z=!0,(0,a.log)("ble-error","sendAPDU failure "+String(P)),I.error(P)}),()=>{z||((0,a.log)("ble-verbose","sendAPDU interruption"),z=!0)}})};l.o=c},81580:function(G,l,e){"use strict";e.r(l),e.d(l,{ArgumentOutOfRangeError:function(){return Yt},AsyncSubject:function(){return Ze},BehaviorSubject:function(){return yt},ConnectableObservable:function(){return Ie},EMPTY:function(){return We},EmptyError:function(){return Zt},GroupedObservable:function(){return Ye},NEVER:function(){return Fr},Notification:function(){return at},NotificationKind:function(){return it},ObjectUnsubscribedError:function(){return Te},Observable:function(){return fe},ReplaySubject:function(){return jt},Scheduler:function(){return tt},Subject:function(){return je},Subscriber:function(){return X},Subscription:function(){return V},TimeoutError:function(){return cr},UnsubscriptionError:function(){return H},VirtualAction:function(){return Ot},VirtualTimeScheduler:function(){return Le},animationFrame:function(){return Ne},animationFrameScheduler:function(){return Be},asap:function(){return ht},asapScheduler:function(){return st},async:function(){return Oe},asyncScheduler:function(){return de},bindCallback:function(){return dr},bindNodeCallback:function(){return Jt},combineLatest:function(){return wr},concat:function(){return _},config:function(){return W},defer:function(){return ae},empty:function(){return Ve},forkJoin:function(){return ve},from:function(){return ke},fromEvent:function(){return Ce},fromEventPattern:function(){return He},generate:function(){return Rr},identity:function(){return ne},iif:function(){return kr},interval:function(){return $r},isObservable:function(){return or},merge:function(){return zr},never:function(){return Wr},noop:function(){return ot},observable:function(){return se},of:function(){return nt},onErrorResumeNext:function(){return Ir},pairs:function(){return Vr},partition:function(){return Qr},pipe:function(){return be},queue:function(){return bt},queueScheduler:function(){return ct},race:function(){return Zr},range:function(){return qr},scheduled:function(){return nr},throwError:function(){return wt},timer:function(){return tn},using:function(){return nn},zip:function(){return an}});/*! *****************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */var p=function(n,i){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,m){t.__proto__=m}||function(t,m){for(var R in m)m.hasOwnProperty(R)&&(t[R]=m[R])},p(n,i)};function r(n,i){p(n,i);function t(){this.constructor=n}n.prototype=i===null?Object.create(i):(t.prototype=i.prototype,new t)}var u=function(){return u=Object.assign||function(i){for(var t,m=1,R=arguments.length;m<R;m++){t=arguments[m];for(var $ in t)Object.prototype.hasOwnProperty.call(t,$)&&(i[$]=t[$])}return i},u.apply(this,arguments)};function a(n,i){var t={};for(var m in n)Object.prototype.hasOwnProperty.call(n,m)&&i.indexOf(m)<0&&(t[m]=n[m]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,m=Object.getOwnPropertySymbols(n);R<m.length;R++)i.indexOf(m[R])<0&&Object.prototype.propertyIsEnumerable.call(n,m[R])&&(t[m[R]]=n[m[R]]);return t}function g(n,i,t,m){var R=arguments.length,$=R<3?i:m===null?m=Object.getOwnPropertyDescriptor(i,t):m,ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")$=Reflect.decorate(n,i,t,m);else for(var ie=n.length-1;ie>=0;ie--)(ee=n[ie])&&($=(R<3?ee($):R>3?ee(i,t,$):ee(i,t))||$);return R>3&&$&&Object.defineProperty(i,t,$),$}function s(n,i){return function(t,m){i(t,m,n)}}function c(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)}function v(n,i,t,m){function R($){return $ instanceof t?$:new t(function(ee){ee($)})}return new(t||(t=Promise))(function($,ee){function ie(ge){try{ue(m.next(ge))}catch(me){ee(me)}}function oe(ge){try{ue(m.throw(ge))}catch(me){ee(me)}}function ue(ge){ge.done?$(ge.value):R(ge.value).then(ie,oe)}ue((m=m.apply(n,i||[])).next())})}function y(n,i){var t={label:0,sent:function(){if($[0]&1)throw $[1];return $[1]},trys:[],ops:[]},m,R,$,ee;return ee={next:ie(0),throw:ie(1),return:ie(2)},typeof Symbol=="function"&&(ee[Symbol.iterator]=function(){return this}),ee;function ie(ue){return function(ge){return oe([ue,ge])}}function oe(ue){if(m)throw new TypeError("Generator is already executing.");for(;t;)try{if(m=1,R&&($=ue[0]&2?R.return:ue[0]?R.throw||(($=R.return)&&$.call(R),0):R.next)&&!($=$.call(R,ue[1])).done)return $;switch(R=0,$&&(ue=[ue[0]&2,$.value]),ue[0]){case 0:case 1:$=ue;break;case 4:return t.label++,{value:ue[1],done:!1};case 5:t.label++,R=ue[1],ue=[0];continue;case 7:ue=t.ops.pop(),t.trys.pop();continue;default:if($=t.trys,!($=$.length>0&&$[$.length-1])&&(ue[0]===6||ue[0]===2)){t=0;continue}if(ue[0]===3&&(!$||ue[1]>$[0]&&ue[1]<$[3])){t.label=ue[1];break}if(ue[0]===6&&t.label<$[1]){t.label=$[1],$=ue;break}if($&&t.label<$[2]){t.label=$[2],t.ops.push(ue);break}$[2]&&t.ops.pop(),t.trys.pop();continue}ue=i.call(n,t)}catch(ge){ue=[6,ge],R=0}finally{m=$=0}if(ue[0]&5)throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}}function b(n,i,t,m){m===void 0&&(m=t),n[m]=i[t]}function N(n,i){for(var t in n)t!=="default"&&!i.hasOwnProperty(t)&&(i[t]=n[t])}function I(n){var i=typeof Symbol=="function"&&Symbol.iterator,t=i&&n[i],m=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&m>=n.length&&(n=void 0),{value:n&&n[m++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function z(n,i){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var m=t.call(n),R,$=[],ee;try{for(;(i===void 0||i-- >0)&&!(R=m.next()).done;)$.push(R.value)}catch(ie){ee={error:ie}}finally{try{R&&!R.done&&(t=m.return)&&t.call(m)}finally{if(ee)throw ee.error}}return $}function x(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(z(arguments[i]));return n}function w(){for(var n=0,i=0,t=arguments.length;i<t;i++)n+=arguments[i].length;for(var m=Array(n),R=0,i=0;i<t;i++)for(var $=arguments[i],ee=0,ie=$.length;ee<ie;ee++,R++)m[R]=$[ee];return m}function P(n){return this instanceof P?(this.v=n,this):new P(n)}function S(n,i,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var m=t.apply(n,i||[]),R,$=[];return R={},ee("next"),ee("throw"),ee("return"),R[Symbol.asyncIterator]=function(){return this},R;function ee(he){m[he]&&(R[he]=function(Ue){return new Promise(function($t,fn){$.push([he,Ue,$t,fn])>1||ie(he,Ue)})})}function ie(he,Ue){try{oe(m[he](Ue))}catch($t){me($[0][3],$t)}}function oe(he){he.value instanceof P?Promise.resolve(he.value.v).then(ue,ge):me($[0][2],he)}function ue(he){ie("next",he)}function ge(he){ie("throw",he)}function me(he,Ue){he(Ue),$.shift(),$.length&&ie($[0][0],$[0][1])}}function L(n){var i,t;return i={},m("next"),m("throw",function(R){throw R}),m("return"),i[Symbol.iterator]=function(){return this},i;function m(R,$){i[R]=n[R]?function(ee){return(t=!t)?{value:P(n[R](ee)),done:R==="return"}:$?$(ee):ee}:$}}function B(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n[Symbol.asyncIterator],t;return i?i.call(n):(n=typeof I=="function"?I(n):n[Symbol.iterator](),t={},m("next"),m("throw"),m("return"),t[Symbol.asyncIterator]=function(){return this},t);function m($){t[$]=n[$]&&function(ee){return new Promise(function(ie,oe){ee=n[$](ee),R(ie,oe,ee.done,ee.value)})}}function R($,ee,ie,oe){Promise.resolve(oe).then(function(ue){$({value:ue,done:ie})},ee)}}function T(n,i){return Object.defineProperty?Object.defineProperty(n,"raw",{value:i}):n.raw=i,n}function o(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var t in n)Object.hasOwnProperty.call(n,t)&&(i[t]=n[t]);return i.default=n,i}function f(n){return n&&n.__esModule?n:{default:n}}function h(n,i){if(!i.has(n))throw new TypeError("attempted to get private field on non-instance");return i.get(n)}function E(n,i,t){if(!i.has(n))throw new TypeError("attempted to set private field on non-instance");return i.set(n,t),t}function j(n){return typeof n=="function"}var F=!1,W={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){var i=new Error;""+i.stack}F=n},get useDeprecatedSynchronousErrorHandling(){return F}};function d(n){setTimeout(function(){throw n},0)}var A={closed:!0,next:function(n){},error:function(n){if(W.useDeprecatedSynchronousErrorHandling)throw n;d(n)},complete:function(){}},k=function(){return Array.isArray||function(n){return n&&typeof n.length=="number"}}();function O(n){return n!==null&&typeof n=="object"}var U=function(){function n(i){return Error.call(this),this.message=i?i.length+` errors occurred during unsubscription:
15
- `+i.map(function(t,m){return m+1+") "+t.toString()}).join(`
16
- `):"",this.name="UnsubscriptionError",this.errors=i,this}return n.prototype=Object.create(Error.prototype),n}(),H=U,V=function(){function n(i){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,i&&(this._ctorUnsubscribe=!0,this._unsubscribe=i)}return n.prototype.unsubscribe=function(){var i;if(!this.closed){var t=this,m=t._parentOrParents,R=t._ctorUnsubscribe,$=t._unsubscribe,ee=t._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,m instanceof n)m.remove(this);else if(m!==null)for(var ie=0;ie<m.length;++ie){var oe=m[ie];oe.remove(this)}if(j($)){R&&(this._unsubscribe=void 0);try{$.call(this)}catch(me){i=me instanceof H?Q(me.errors):[me]}}if(k(ee))for(var ie=-1,ue=ee.length;++ie<ue;){var ge=ee[ie];if(O(ge))try{ge.unsubscribe()}catch(he){i=i||[],he instanceof H?i=i.concat(Q(he.errors)):i.push(he)}}if(i)throw new H(i)}},n.prototype.add=function(i){var t=i;if(!i)return n.EMPTY;switch(typeof i){case"function":t=new n(i);case"object":if(t===this||t.closed||typeof t.unsubscribe!="function")return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof n)){var m=t;t=new n,t._subscriptions=[m]}break;default:throw new Error("unrecognized teardown "+i+" added to Subscription.")}var R=t._parentOrParents;if(R===null)t._parentOrParents=this;else if(R instanceof n){if(R===this)return t;t._parentOrParents=[R,this]}else if(R.indexOf(this)===-1)R.push(this);else return t;var $=this._subscriptions;return $===null?this._subscriptions=[t]:$.push(t),t},n.prototype.remove=function(i){var t=this._subscriptions;if(t){var m=t.indexOf(i);m!==-1&&t.splice(m,1)}},n.EMPTY=function(i){return i.closed=!0,i}(new n),n}();function Q(n){return n.reduce(function(i,t){return i.concat(t instanceof H?t.errors:t)},[])}var Z=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),J=null,X=function(n){r(i,n);function i(t,m,R){var $=n.call(this)||this;switch($.syncErrorValue=null,$.syncErrorThrown=!1,$.syncErrorThrowable=!1,$.isStopped=!1,arguments.length){case 0:$.destination=A;break;case 1:if(!t){$.destination=A;break}if(typeof t=="object"){t instanceof i?($.syncErrorThrowable=t.syncErrorThrowable,$.destination=t,t.add($)):($.syncErrorThrowable=!0,$.destination=new q($,t));break}default:$.syncErrorThrowable=!0,$.destination=new q($,t,m,R);break}return $}return i.prototype[Z]=function(){return this},i.create=function(t,m,R){var $=new i(t,m,R);return $.syncErrorThrowable=!1,$},i.prototype.next=function(t){this.isStopped||this._next(t)},i.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this))},i.prototype._next=function(t){this.destination.next(t)},i.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},i.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},i.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},i}(V),q=function(n){r(i,n);function i(t,m,R,$){var ee=n.call(this)||this;ee._parentSubscriber=t;var ie,oe=ee;return j(m)?ie=m:m&&(ie=m.next,R=m.error,$=m.complete,m!==A&&(oe=Object.create(m),j(oe.unsubscribe)&&ee.add(oe.unsubscribe.bind(oe)),oe.unsubscribe=ee.unsubscribe.bind(ee))),ee._context=oe,ee._next=ie,ee._error=R,ee._complete=$,ee}return i.prototype.next=function(t){if(!this.isStopped&&this._next){var m=this._parentSubscriber;!W.useDeprecatedSynchronousErrorHandling||!m.syncErrorThrowable?this.__tryOrUnsub(this._next,t):this.__tryOrSetError(m,this._next,t)&&this.unsubscribe()}},i.prototype.error=function(t){if(!this.isStopped){var m=this._parentSubscriber,R=W.useDeprecatedSynchronousErrorHandling;if(this._error)!R||!m.syncErrorThrowable?(this.__tryOrUnsub(this._error,t),this.unsubscribe()):(this.__tryOrSetError(m,this._error,t),this.unsubscribe());else if(m.syncErrorThrowable)R?(m.syncErrorValue=t,m.syncErrorThrown=!0):d(t),this.unsubscribe();else{if(this.unsubscribe(),R)throw t;d(t)}}},i.prototype.complete=function(){var t=this;if(!this.isStopped){var m=this._parentSubscriber;if(this._complete){var R=function(){return t._complete.call(t._context)};!W.useDeprecatedSynchronousErrorHandling||!m.syncErrorThrowable?(this.__tryOrUnsub(R),this.unsubscribe()):(this.__tryOrSetError(m,R),this.unsubscribe())}else this.unsubscribe()}},i.prototype.__tryOrUnsub=function(t,m){try{t.call(this._context,m)}catch(R){if(this.unsubscribe(),W.useDeprecatedSynchronousErrorHandling)throw R;d(R)}},i.prototype.__tryOrSetError=function(t,m,R){if(!W.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{m.call(this._context,R)}catch($){return W.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=$,t.syncErrorThrown=!0,!0):(d($),!0)}return!1},i.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},i}(X);function te(n){for(;n;){var i=n,t=i.closed,m=i.destination,R=i.isStopped;if(t||R)return!1;m&&m instanceof X?n=m:n=null}return!0}function re(n,i,t){if(n){if(n instanceof X)return n;if(n[Z])return n[Z]()}return!n&&!i&&!t?new X(A):new X(n,i,t)}var se=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ne(n){return n}function be(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return le(n)}function le(n){return n.length===0?ne:n.length===1?n[0]:function(t){return n.reduce(function(m,R){return R(m)},t)}}var fe=function(){function n(i){this._isScalar=!1,i&&(this._subscribe=i)}return n.prototype.lift=function(i){var t=new n;return t.source=this,t.operator=i,t},n.prototype.subscribe=function(i,t,m){var R=this.operator,$=re(i,t,m);if(R?$.add(R.call($,this.source)):$.add(this.source||W.useDeprecatedSynchronousErrorHandling&&!$.syncErrorThrowable?this._subscribe($):this._trySubscribe($)),W.useDeprecatedSynchronousErrorHandling&&$.syncErrorThrowable&&($.syncErrorThrowable=!1,$.syncErrorThrown))throw $.syncErrorValue;return $},n.prototype._trySubscribe=function(i){try{return this._subscribe(i)}catch(t){W.useDeprecatedSynchronousErrorHandling&&(i.syncErrorThrown=!0,i.syncErrorValue=t),te(i)?i.error(t):console.warn(t)}},n.prototype.forEach=function(i,t){var m=this;return t=ce(t),new t(function(R,$){var ee;ee=m.subscribe(function(ie){try{i(ie)}catch(oe){$(oe),ee&&ee.unsubscribe()}},$,R)})},n.prototype._subscribe=function(i){var t=this.source;return t&&t.subscribe(i)},n.prototype[se]=function(){return this},n.prototype.pipe=function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return i.length===0?this:le(i)(this)},n.prototype.toPromise=function(i){var t=this;return i=ce(i),new i(function(m,R){var $;t.subscribe(function(ee){return $=ee},function(ee){return R(ee)},function(){return m($)})})},n.create=function(i){return new n(i)},n}();function ce(n){if(n||(n=W.Promise||Promise),!n)throw new Error("no Promise impl found");return n}var pe=function(){function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n}(),Te=pe,Ee=function(n){r(i,n);function i(t,m){var R=n.call(this)||this;return R.subject=t,R.subscriber=m,R.closed=!1,R}return i.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,m=t.observers;if(this.subject=null,!(!m||m.length===0||t.isStopped||t.closed)){var R=m.indexOf(this.subscriber);R!==-1&&m.splice(R,1)}}},i}(V),xe=function(n){r(i,n);function i(t){var m=n.call(this,t)||this;return m.destination=t,m}return i}(X),je=function(n){r(i,n);function i(){var t=n.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return i.prototype[Z]=function(){return new xe(this)},i.prototype.lift=function(t){var m=new gt(this,this);return m.operator=t,m},i.prototype.next=function(t){if(this.closed)throw new Te;if(!this.isStopped)for(var m=this.observers,R=m.length,$=m.slice(),ee=0;ee<R;ee++)$[ee].next(t)},i.prototype.error=function(t){if(this.closed)throw new Te;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var m=this.observers,R=m.length,$=m.slice(),ee=0;ee<R;ee++)$[ee].error(t);this.observers.length=0},i.prototype.complete=function(){if(this.closed)throw new Te;this.isStopped=!0;for(var t=this.observers,m=t.length,R=t.slice(),$=0;$<m;$++)R[$].complete();this.observers.length=0},i.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},i.prototype._trySubscribe=function(t){if(this.closed)throw new Te;return n.prototype._trySubscribe.call(this,t)},i.prototype._subscribe=function(t){if(this.closed)throw new Te;return this.hasError?(t.error(this.thrownError),V.EMPTY):this.isStopped?(t.complete(),V.EMPTY):(this.observers.push(t),new Ee(this,t))},i.prototype.asObservable=function(){var t=new fe;return t.source=this,t},i.create=function(t,m){return new gt(t,m)},i}(fe),gt=function(n){r(i,n);function i(t,m){var R=n.call(this)||this;return R.destination=t,R.source=m,R}return i.prototype.next=function(t){var m=this.destination;m&&m.next&&m.next(t)},i.prototype.error=function(t){var m=this.destination;m&&m.error&&this.destination.error(t)},i.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},i.prototype._subscribe=function(t){var m=this.source;return m?this.source.subscribe(t):V.EMPTY},i}(je);function mt(){return function(i){return i.lift(new Pt(i))}}var Pt=function(){function n(i){this.connectable=i}return n.prototype.call=function(i,t){var m=this.connectable;m._refCount++;var R=new qe(i,m),$=t.subscribe(R);return R.closed||(R.connection=m.connect()),$},n}(),qe=function(n){r(i,n);function i(t,m){var R=n.call(this,t)||this;return R.connectable=m,R}return i.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var m=t._refCount;if(m<=0){this.connection=null;return}if(t._refCount=m-1,m>1){this.connection=null;return}var R=this.connection,$=t._connection;this.connection=null,$&&(!R||$===R)&&$.unsubscribe()},i}(X),Ie=function(n){r(i,n);function i(t,m){var R=n.call(this)||this;return R.source=t,R.subjectFactory=m,R._refCount=0,R._isComplete=!1,R}return i.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},i.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},i.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,t=this._connection=new V,t.add(this.source.subscribe(new et(this.getSubject(),this))),t.closed&&(this._connection=null,t=V.EMPTY)),t},i.prototype.refCount=function(){return mt()(this)},i}(fe),At=null,et=function(n){r(i,n);function i(t,m){var R=n.call(this,t)||this;return R.connectable=m,R}return i.prototype._error=function(t){this._unsubscribe(),n.prototype._error.call(this,t)},i.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),n.prototype._complete.call(this)},i.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var m=t._connection;t._refCount=0,t._subject=null,t._connection=null,m&&m.unsubscribe()}},i}(xe),ar=null,Pe=function(n){r(i,n);function i(t,m){var R=n.call(this,t)||this;return R.connectable=m,R}return i.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var m=t._refCount;if(m<=0){this.connection=null;return}if(t._refCount=m-1,m>1){this.connection=null;return}var R=this.connection,$=t._connection;this.connection=null,$&&(!R||$===R)&&$.unsubscribe()},i}(X);function Ct(n,i,t,m){return function(R){return R.lift(new Rt(n,i,t,m))}}var Rt=null,Ht=function(n){r(i,n);function i(t,m,R,$,ee){var ie=n.call(this,t)||this;return ie.keySelector=m,ie.elementSelector=R,ie.durationSelector=$,ie.subjectSelector=ee,ie.groups=null,ie.attemptedToUnsubscribe=!1,ie.count=0,ie}return i.prototype._next=function(t){var m;try{m=this.keySelector(t)}catch(R){this.error(R);return}this._group(t,m)},i.prototype._group=function(t,m){var R=this.groups;R||(R=this.groups=new Map);var $=R.get(m),ee;if(this.elementSelector)try{ee=this.elementSelector(t)}catch(ue){this.error(ue)}else ee=t;if(!$){$=this.subjectSelector?this.subjectSelector():new je,R.set(m,$);var ie=new Ye(m,$,this);if(this.destination.next(ie),this.durationSelector){var oe=void 0;try{oe=this.durationSelector(new Ye(m,$))}catch(ue){this.error(ue);return}this.add(oe.subscribe(new Xe(m,$,this)))}}$.closed||$.next(ee)},i.prototype._error=function(t){var m=this.groups;m&&(m.forEach(function(R,$){R.error(t)}),m.clear()),this.destination.error(t)},i.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(m,R){m.complete()}),t.clear()),this.destination.complete()},i.prototype.removeGroup=function(t){this.groups.delete(t)},i.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,this.count===0&&n.prototype.unsubscribe.call(this))},i}(X),Xe=function(n){r(i,n);function i(t,m,R){var $=n.call(this,m)||this;return $.key=t,$.group=m,$.parent=R,$}return i.prototype._next=function(t){this.complete()},i.prototype._unsubscribe=function(){var t=this,m=t.parent,R=t.key;this.key=this.parent=null,m&&m.removeGroup(R)},i}(X),Ye=function(n){r(i,n);function i(t,m,R){var $=n.call(this)||this;return $.key=t,$.groupSubject=m,$.refCountSubscription=R,$}return i.prototype._subscribe=function(t){var m=new V,R=this,$=R.refCountSubscription,ee=R.groupSubject;return $&&!$.closed&&m.add(new zt($)),m.add(ee.subscribe(t)),m},i}(fe),zt=function(n){r(i,n);function i(t){var m=n.call(this)||this;return m.parent=t,t.count++,m}return i.prototype.unsubscribe=function(){var t=this.parent;!t.closed&&!this.closed&&(n.prototype.unsubscribe.call(this),t.count-=1,t.count===0&&t.attemptedToUnsubscribe&&t.unsubscribe())},i}(V),yt=function(n){r(i,n);function i(t){var m=n.call(this)||this;return m._value=t,m}return Object.defineProperty(i.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),i.prototype._subscribe=function(t){var m=n.prototype._subscribe.call(this,t);return m&&!m.closed&&t.next(this._value),m},i.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Te;return this._value},i.prototype.next=function(t){n.prototype.next.call(this,this._value=t)},i}(je),Re=function(n){r(i,n);function i(t,m){return n.call(this)||this}return i.prototype.schedule=function(t,m){return m===void 0&&(m=0),this},i}(V),ze=function(n){r(i,n);function i(t,m){var R=n.call(this,t,m)||this;return R.scheduler=t,R.work=m,R.pending=!1,R}return i.prototype.schedule=function(t,m){if(m===void 0&&(m=0),this.closed)return this;this.state=t;var R=this.id,$=this.scheduler;return R!=null&&(this.id=this.recycleAsyncId($,R,m)),this.pending=!0,this.delay=m,this.id=this.id||this.requestAsyncId($,this.id,m),this},i.prototype.requestAsyncId=function(t,m,R){return R===void 0&&(R=0),setInterval(t.flush.bind(t,this),R)},i.prototype.recycleAsyncId=function(t,m,R){if(R===void 0&&(R=0),R!==null&&this.delay===R&&this.pending===!1)return m;clearInterval(m)},i.prototype.execute=function(t,m){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var R=this._execute(t,m);if(R)return R;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},i.prototype._execute=function(t,m){var R=!1,$=void 0;try{this.work(t)}catch(ee){R=!0,$=!!ee&&ee||new Error(ee)}if(R)return this.unsubscribe(),$},i.prototype._unsubscribe=function(){var t=this.id,m=this.scheduler,R=m.actions,$=R.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,$!==-1&&R.splice($,1),t!=null&&(this.id=this.recycleAsyncId(m,t,null)),this.delay=null},i}(Re),xt=function(n){r(i,n);function i(t,m){var R=n.call(this,t,m)||this;return R.scheduler=t,R.work=m,R}return i.prototype.schedule=function(t,m){return m===void 0&&(m=0),m>0?n.prototype.schedule.call(this,t,m):(this.delay=m,this.state=t,this.scheduler.flush(this),this)},i.prototype.execute=function(t,m){return m>0||this.closed?n.prototype.execute.call(this,t,m):this._execute(t,m)},i.prototype.requestAsyncId=function(t,m,R){return R===void 0&&(R=0),R!==null&&R>0||R===null&&this.delay>0?n.prototype.requestAsyncId.call(this,t,m,R):t.flush(this)},i}(ze),tt=function(){function n(i,t){t===void 0&&(t=n.now),this.SchedulerAction=i,this.now=t}return n.prototype.schedule=function(i,t,m){return t===void 0&&(t=0),new this.SchedulerAction(this,i).schedule(m,t)},n.now=function(){return Date.now()},n}(),Qe=function(n){r(i,n);function i(t,m){m===void 0&&(m=tt.now);var R=n.call(this,t,function(){return i.delegate&&i.delegate!==R?i.delegate.now():m()})||this;return R.actions=[],R.active=!1,R.scheduled=void 0,R}return i.prototype.schedule=function(t,m,R){return m===void 0&&(m=0),i.delegate&&i.delegate!==this?i.delegate.schedule(t,m,R):n.prototype.schedule.call(this,t,m,R)},i.prototype.flush=function(t){var m=this.actions;if(this.active){m.push(t);return}var R;this.active=!0;do if(R=t.execute(t.state,t.delay))break;while(t=m.shift());if(this.active=!1,R){for(;t=m.shift();)t.unsubscribe();throw R}},i}(tt),It=function(n){r(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i}(Qe),ct=new It(xt),bt=ct,We=new fe(function(n){return n.complete()});function Ve(n){return n?Wt(n):We}function Wt(n){return new fe(function(i){return n.schedule(function(){return i.complete()})})}function Fe(n){return n&&typeof n.schedule=="function"}var Et=function(n){return function(i){for(var t=0,m=n.length;t<m&&!i.closed;t++)i.next(n[t]);i.complete()}};function rt(n,i){return new fe(function(t){var m=new V,R=0;return m.add(i.schedule(function(){if(R===n.length){t.complete();return}t.next(n[R++]),t.closed||m.add(this.schedule())})),m})}function Ke(n,i){return i?rt(n,i):new fe(Et(n))}function nt(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var t=n[n.length-1];return Fe(t)?(n.pop(),rt(n,t)):Ke(n)}function wt(n,i){return i?new fe(function(t){return i.schedule(Dt,0,{error:n,subscriber:t})}):new fe(function(t){return t.error(n)})}function Dt(n){var i=n.error,t=n.subscriber;t.error(i)}var it;it||(it={});var at=function(){function n(i,t,m){this.kind=i,this.value=t,this.error=m,this.hasValue=i==="N"}return n.prototype.observe=function(i){switch(this.kind){case"N":return i.next&&i.next(this.value);case"E":return i.error&&i.error(this.error);case"C":return i.complete&&i.complete()}},n.prototype.do=function(i,t,m){var R=this.kind;switch(R){case"N":return i&&i(this.value);case"E":return t&&t(this.error);case"C":return m&&m()}},n.prototype.accept=function(i,t,m){return i&&typeof i.next=="function"?this.observe(i):this.do(i,t,m)},n.prototype.toObservable=function(){var i=this.kind;switch(i){case"N":return nt(this.value);case"E":return wt(this.error);case"C":return Ve()}throw new Error("unexpected notification kind value")},n.createNext=function(i){return typeof i<"u"?new n("N",i):n.undefinedValueNotification},n.createError=function(i){return new n("E",void 0,i)},n.createComplete=function(){return n.completeNotification},n.completeNotification=new n("C"),n.undefinedValueNotification=new n("N",void 0),n}();function Vt(n,i){return i===void 0&&(i=0),function(m){return m.lift(new Bt(n,i))}}var Bt=null,Nt=function(n){r(i,n);function i(t,m,R){R===void 0&&(R=0);var $=n.call(this,t)||this;return $.scheduler=m,$.delay=R,$}return i.dispatch=function(t){var m=t.notification,R=t.destination;m.observe(R),this.unsubscribe()},i.prototype.scheduleMessage=function(t){var m=this.destination;m.add(this.scheduler.schedule(i.dispatch,this.delay,new lt(t,this.destination)))},i.prototype._next=function(t){this.scheduleMessage(at.createNext(t))},i.prototype._error=function(t){this.scheduleMessage(at.createError(t)),this.unsubscribe()},i.prototype._complete=function(){this.scheduleMessage(at.createComplete()),this.unsubscribe()},i}(X),lt=function(){function n(i,t){this.notification=i,this.destination=t}return n}(),jt=function(n){r(i,n);function i(t,m,R){t===void 0&&(t=Number.POSITIVE_INFINITY),m===void 0&&(m=Number.POSITIVE_INFINITY);var $=n.call(this)||this;return $.scheduler=R,$._events=[],$._infiniteTimeWindow=!1,$._bufferSize=t<1?1:t,$._windowTime=m<1?1:m,m===Number.POSITIVE_INFINITY?($._infiniteTimeWindow=!0,$.next=$.nextInfiniteTimeWindow):$.next=$.nextTimeWindow,$}return i.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var m=this._events;m.push(t),m.length>this._bufferSize&&m.shift()}n.prototype.next.call(this,t)},i.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new Kt(this._getNow(),t)),this._trimBufferThenGetEvents()),n.prototype.next.call(this,t)},i.prototype._subscribe=function(t){var m=this._infiniteTimeWindow,R=m?this._events:this._trimBufferThenGetEvents(),$=this.scheduler,ee=R.length,ie;if(this.closed)throw new Te;if(this.isStopped||this.hasError?ie=V.EMPTY:(this.observers.push(t),ie=new Ee(this,t)),$&&t.add(t=new Nt(t,$)),m)for(var oe=0;oe<ee&&!t.closed;oe++)t.next(R[oe]);else for(var oe=0;oe<ee&&!t.closed;oe++)t.next(R[oe].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),ie},i.prototype._getNow=function(){return(this.scheduler||bt).now()},i.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),m=this._bufferSize,R=this._windowTime,$=this._events,ee=$.length,ie=0;ie<ee&&!(t-$[ie].time<R);)ie++;return ee>m&&(ie=Math.max(ie,ee-m)),ie>0&&$.splice(0,ie),$},i}(je),Kt=function(){function n(i,t){this.time=i,this.value=t}return n}(),Ze=function(n){r(i,n);function i(){var t=n!==null&&n.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return i.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),V.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),V.EMPTY):n.prototype._subscribe.call(this,t)},i.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},i.prototype.error=function(t){this.hasCompleted||n.prototype.error.call(this,t)},i.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&n.prototype.next.call(this,this.value),n.prototype.complete.call(this)},i}(je),Gt=1,Ft=function(){return Promise.resolve()}(),Je={};function St(n){return n in Je?(delete Je[n],!0):!1}var Tt={setImmediate:function(n){var i=Gt++;return Je[i]=!0,Ft.then(function(){return St(i)&&n()}),i},clearImmediate:function(n){St(n)}},sr={pending:function(){return Object.keys(Je).length}},ft=function(n){r(i,n);function i(t,m){var R=n.call(this,t,m)||this;return R.scheduler=t,R.work=m,R}return i.prototype.requestAsyncId=function(t,m,R){return R===void 0&&(R=0),R!==null&&R>0?n.prototype.requestAsyncId.call(this,t,m,R):(t.actions.push(this),t.scheduled||(t.scheduled=Tt.setImmediate(t.flush.bind(t,null))))},i.prototype.recycleAsyncId=function(t,m,R){if(R===void 0&&(R=0),R!==null&&R>0||R===null&&this.delay>0)return n.prototype.recycleAsyncId.call(this,t,m,R);t.actions.length===0&&(Tt.clearImmediate(m),t.scheduled=void 0)},i}(ze),dt=function(n){r(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var m=this.actions,R,$=-1,ee=m.length;t=t||m.shift();do if(R=t.execute(t.state,t.delay))break;while(++$<ee&&(t=m.shift()));if(this.active=!1,R){for(;++$<ee&&(t=m.shift());)t.unsubscribe();throw R}},i}(Qe),st=new dt(ft),ht=st,de=new Qe(ze),Oe=de,Ae=function(n){r(i,n);function i(t,m){var R=n.call(this,t,m)||this;return R.scheduler=t,R.work=m,R}return i.prototype.requestAsyncId=function(t,m,R){return R===void 0&&(R=0),R!==null&&R>0?n.prototype.requestAsyncId.call(this,t,m,R):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},i.prototype.recycleAsyncId=function(t,m,R){if(R===void 0&&(R=0),R!==null&&R>0||R===null&&this.delay>0)return n.prototype.recycleAsyncId.call(this,t,m,R);t.actions.length===0&&(cancelAnimationFrame(m),t.scheduled=void 0)},i}(ze),Me=function(n){r(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var m=this.actions,R,$=-1,ee=m.length;t=t||m.shift();do if(R=t.execute(t.state,t.delay))break;while(++$<ee&&(t=m.shift()));if(this.active=!1,R){for(;++$<ee&&(t=m.shift());)t.unsubscribe();throw R}},i}(Qe),Be=new Me(Ae),Ne=Be,Le=function(n){r(i,n);function i(t,m){t===void 0&&(t=Ot),m===void 0&&(m=Number.POSITIVE_INFINITY);var R=n.call(this,t,function(){return R.frame})||this;return R.maxFrames=m,R.frame=0,R.index=-1,R}return i.prototype.flush=function(){for(var t=this,m=t.actions,R=t.maxFrames,$,ee;(ee=m[0])&&ee.delay<=R&&(m.shift(),this.frame=ee.delay,!($=ee.execute(ee.state,ee.delay))););if($){for(;ee=m.shift();)ee.unsubscribe();throw $}},i.frameTimeFactor=10,i}(Qe),Ot=function(n){r(i,n);function i(t,m,R){R===void 0&&(R=t.index+=1);var $=n.call(this,t,m)||this;return $.scheduler=t,$.work=m,$.index=R,$.active=!0,$.index=t.index=R,$}return i.prototype.schedule=function(t,m){if(m===void 0&&(m=0),!this.id)return n.prototype.schedule.call(this,t,m);this.active=!1;var R=new i(this.scheduler,this.work);return this.add(R),R.schedule(t,m)},i.prototype.requestAsyncId=function(t,m,R){R===void 0&&(R=0),this.delay=t.frame+R;var $=t.actions;return $.push(this),$.sort(i.sortActions),!0},i.prototype.recycleAsyncId=function(t,m,R){R===void 0&&(R=0)},i.prototype._execute=function(t,m){if(this.active===!0)return n.prototype._execute.call(this,t,m)},i.sortActions=function(t,m){return t.delay===m.delay?t.index===m.index?0:t.index>m.index?1:-1:t.delay>m.delay?1:-1},i}(ze);function ot(){}function or(n){return!!n&&(n instanceof fe||typeof n.lift=="function"&&typeof n.subscribe=="function")}var Xt=function(){function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n}(),Yt=Xt,Qt=function(){function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n}(),Zt=Qt,ur=function(){function n(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return n.prototype=Object.create(Error.prototype),n}(),cr=ur;function ut(n,i){return function(m){if(typeof n!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return m.lift(new lr(n,i))}}var lr=function(){function n(i,t){this.project=i,this.thisArg=t}return n.prototype.call=function(i,t){return t.subscribe(new fr(i,this.project,this.thisArg))},n}(),fr=function(n){r(i,n);function i(t,m,R){var $=n.call(this,t)||this;return $.project=m,$.count=0,$.thisArg=R||$,$}return i.prototype._next=function(t){var m;try{m=this.project.call(this.thisArg,t,this.count++)}catch(R){this.destination.error(R);return}this.destination.next(m)},i}(X);function dr(n,i,t){if(i)if(Fe(i))t=i;else return function(){for(var m=[],R=0;R<arguments.length;R++)m[R]=arguments[R];return dr(n,t).apply(void 0,m).pipe(ut(function($){return k($)?i.apply(void 0,$):i($)}))};return function(){for(var m=[],R=0;R<arguments.length;R++)m[R]=arguments[R];var $=this,ee,ie={context:$,subject:ee,callbackFunc:n,scheduler:t};return new fe(function(oe){if(t){var ge={args:m,subscriber:oe,params:ie};return t.schedule(Dr,0,ge)}else{if(!ee){ee=new Ze;var ue=function(){for(var me=[],he=0;he<arguments.length;he++)me[he]=arguments[he];ee.next(me.length<=1?me[0]:me),ee.complete()};try{n.apply($,m.concat([ue]))}catch(me){te(ee)?ee.error(me):console.warn(me)}}return ee.subscribe(oe)}})}}function Dr(n){var i=this,t=this,m=n.args,R=n.subscriber,$=n.params,ee=$.callbackFunc,ie=$.context,oe=$.scheduler,ue=$.subject;if(!ue){ue=$.subject=new Ze;var ge=function(){for(var me=[],he=0;he<arguments.length;he++)me[he]=arguments[he];var Ue=me.length<=1?me[0]:me;i.add(oe.schedule(hr,0,{value:Ue,subject:ue}))};try{ee.apply(ie,m.concat([ge]))}catch(me){ue.error(me)}}this.add(ue.subscribe(R))}function hr(n){var i=n.value,t=n.subject;t.next(i),t.complete()}function Br(n){var i=n.err,t=n.subject;t.error(i)}function Jt(n,i,t){if(i)if(Fe(i))t=i;else return function(){for(var m=[],R=0;R<arguments.length;R++)m[R]=arguments[R];return Jt(n,t).apply(void 0,m).pipe(ut(function($){return k($)?i.apply(void 0,$):i($)}))};return function(){for(var m=[],R=0;R<arguments.length;R++)m[R]=arguments[R];var $={subject:void 0,args:m,callbackFunc:n,scheduler:t,context:this};return new fe(function(ee){var ie=$.context,oe=$.subject;if(t)return t.schedule(vr,0,{params:$,subscriber:ee,context:ie});if(!oe){oe=$.subject=new Ze;var ue=function(){for(var ge=[],me=0;me<arguments.length;me++)ge[me]=arguments[me];var he=ge.shift();if(he){oe.error(he);return}oe.next(ge.length<=1?ge[0]:ge),oe.complete()};try{n.apply(ie,m.concat([ue]))}catch(ge){te(oe)?oe.error(ge):console.warn(ge)}}return oe.subscribe(ee)})}}function vr(n){var i=this,t=n.params,m=n.subscriber,R=n.context,$=t.callbackFunc,ee=t.args,ie=t.scheduler,oe=t.subject;if(!oe){oe=t.subject=new Ze;var ue=function(){for(var ge=[],me=0;me<arguments.length;me++)ge[me]=arguments[me];var he=ge.shift();if(he)i.add(ie.schedule(Lt,0,{err:he,subject:oe}));else{var Ue=ge.length<=1?ge[0]:ge;i.add(ie.schedule(pr,0,{value:Ue,subject:oe}))}};try{$.apply(R,ee.concat([ue]))}catch(ge){this.add(ie.schedule(Lt,0,{err:ge,subject:oe}))}}this.add(oe.subscribe(m))}function pr(n){var i=n.value,t=n.subject;t.next(i),t.complete()}function Lt(n){var i=n.err,t=n.subject;t.error(i)}var _t=function(n){r(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.notifyNext=function(t,m,R,$,ee){this.destination.next(m)},i.prototype.notifyError=function(t,m){this.destination.error(t)},i.prototype.notifyComplete=function(t){this.destination.complete()},i}(X),gr=function(n){r(i,n);function i(t,m,R){var $=n.call(this)||this;return $.parent=t,$.outerValue=m,$.outerIndex=R,$.index=0,$}return i.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},i.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},i.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},i}(X),mr=function(n){return function(i){return n.then(function(t){i.closed||(i.next(t),i.complete())},function(t){return i.error(t)}).then(null,d),i}};function yr(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ge=yr(),Nr=null,br=function(n){return function(i){var t=n[Ge]();do{var m=void 0;try{m=t.next()}catch(R){return i.error(R),i}if(m.done){i.complete();break}if(i.next(m.value),i.closed)break}while(!0);return typeof t.return=="function"&&i.add(function(){t.return&&t.return()}),i}},Er=function(n){return function(i){var t=n[se]();if(typeof t.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(i)}},qt=function(n){return n&&typeof n.length=="number"&&typeof n!="function"};function er(n){return!!n&&typeof n.subscribe!="function"&&typeof n.then=="function"}var vt=function(n){if(!!n&&typeof n[se]=="function")return Er(n);if(qt(n))return Et(n);if(er(n))return mr(n);if(!!n&&typeof n[Ge]=="function")return br(n);var i=O(n)?"an invalid object":"'"+n+"'",t="You provided "+i+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(t)};function tr(n,i,t,m,R){if(R===void 0&&(R=new gr(n,t,m)),!R.closed)return i instanceof fe?i.subscribe(R):vt(i)(R)}var rr={};function wr(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var t=void 0,m=void 0;return Fe(n[n.length-1])&&(m=n.pop()),typeof n[n.length-1]=="function"&&(t=n.pop()),n.length===1&&k(n[0])&&(n=n[0]),Ke(n,m).lift(new Sr(t))}var Sr=function(){function n(i){this.resultSelector=i}return n.prototype.call=function(i,t){return t.subscribe(new Tr(i,this.resultSelector))},n}(),Tr=function(n){r(i,n);function i(t,m){var R=n.call(this,t)||this;return R.resultSelector=m,R.active=0,R.values=[],R.observables=[],R}return i.prototype._next=function(t){this.values.push(rr),this.observables.push(t)},i.prototype._complete=function(){var t=this.observables,m=t.length;if(m===0)this.destination.complete();else{this.active=m,this.toRespond=m;for(var R=0;R<m;R++){var $=t[R];this.add(tr(this,$,void 0,R))}}},i.prototype.notifyComplete=function(t){(this.active-=1)===0&&this.destination.complete()},i.prototype.notifyNext=function(t,m,R){var $=this.values,ee=$[R],ie=this.toRespond?ee===rr?--this.toRespond:this.toRespond:0;$[R]=m,ie===0&&(this.resultSelector?this._tryResultSelector($):this.destination.next($.slice()))},i.prototype._tryResultSelector=function(t){var m;try{m=this.resultSelector.apply(this,t)}catch(R){this.destination.error(R);return}this.destination.next(m)},i}(_t);function Or(n,i){return new fe(function(t){var m=new V;return m.add(i.schedule(function(){var R=n[se]();m.add(R.subscribe({next:function($){m.add(i.schedule(function(){return t.next($)}))},error:function($){m.add(i.schedule(function(){return t.error($)}))},complete:function(){m.add(i.schedule(function(){return t.complete()}))}}))})),m})}function Mr(n,i){return new fe(function(t){var m=new V;return m.add(i.schedule(function(){return n.then(function(R){m.add(i.schedule(function(){t.next(R),m.add(i.schedule(function(){return t.complete()}))}))},function(R){m.add(i.schedule(function(){return t.error(R)}))})})),m})}function Pr(n,i){if(!n)throw new Error("Iterable cannot be null");return new fe(function(t){var m=new V,R;return m.add(function(){R&&typeof R.return=="function"&&R.return()}),m.add(i.schedule(function(){R=n[Ge](),m.add(i.schedule(function(){if(!t.closed){var $,ee;try{var ie=R.next();$=ie.value,ee=ie.done}catch(oe){t.error(oe);return}ee?t.complete():(t.next($),this.schedule())}}))})),m})}function Ar(n){return n&&typeof n[se]=="function"}function Cr(n){return n&&typeof n[Ge]=="function"}function nr(n,i){if(n!=null){if(Ar(n))return Or(n,i);if(er(n))return Mr(n,i);if(qt(n))return rt(n,i);if(Cr(n)||typeof n=="string")return Pr(n,i)}throw new TypeError((n!==null&&typeof n||n)+" is not observable")}function ke(n,i){return i?nr(n,i):n instanceof fe?n:new fe(vt(n))}var ir=function(n){r(i,n);function i(t){var m=n.call(this)||this;return m.parent=t,m}return i.prototype._next=function(t){this.parent.notifyNext(t)},i.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},i.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},i}(X),Mt=function(n){r(i,n);function i(t,m,R){var $=n.call(this)||this;return $.parent=t,$.outerValue=m,$.outerIndex=R,$}return i.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this)},i.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},i.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},i}(X),Ut=function(n){r(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.notifyNext=function(t){this.destination.next(t)},i.prototype.notifyError=function(t){this.destination.error(t)},i.prototype.notifyComplete=function(){this.destination.complete()},i}(X),jr=function(n){r(i,n);function i(){return n!==null&&n.apply(this,arguments)||this}return i.prototype.notifyNext=function(t,m,R,$){this.destination.next(m)},i.prototype.notifyError=function(t){this.destination.error(t)},i.prototype.notifyComplete=function(t){this.destination.complete()},i}(X);function kt(n,i){if(!i.closed){if(n instanceof fe)return n.subscribe(i);var t;try{t=vt(n)(i)}catch(m){i.error(m)}return t}}function _e(n,i,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof i=="function"?function(m){return m.pipe(_e(function(R,$){return ke(n(R,$)).pipe(ut(function(ee,ie){return i(R,ee,$,ie)}))},t))}:(typeof i=="number"&&(t=i),function(m){return m.lift(new C(n,t))})}var C=function(){function n(i,t){t===void 0&&(t=Number.POSITIVE_INFINITY),this.project=i,this.concurrent=t}return n.prototype.call=function(i,t){return t.subscribe(new D(i,this.project,this.concurrent))},n}(),D=function(n){r(i,n);function i(t,m,R){R===void 0&&(R=Number.POSITIVE_INFINITY);var $=n.call(this,t)||this;return $.project=m,$.concurrent=R,$.hasCompleted=!1,$.buffer=[],$.active=0,$.index=0,$}return i.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},i.prototype._tryNext=function(t){var m,R=this.index++;try{m=this.project(t,R)}catch($){this.destination.error($);return}this.active++,this._innerSub(m)},i.prototype._innerSub=function(t){var m=new ir(this),R=this.destination;R.add(m);var $=kt(t,m);$!==m&&R.add($)},i.prototype._complete=function(){this.hasCompleted=!0,this.active===0&&this.buffer.length===0&&this.destination.complete(),this.unsubscribe()},i.prototype.notifyNext=function(t){this.destination.next(t)},i.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},i}(Ut),M=null;function K(n){return n===void 0&&(n=Number.POSITIVE_INFINITY),_e(ne,n)}function Y(){return K(1)}function _(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return Y()(nt.apply(void 0,n))}function ae(n){return new fe(function(i){var t;try{t=n()}catch(R){i.error(R);return}var m=t?ke(t):Ve();return m.subscribe(i)})}function ve(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(n.length===1){var t=n[0];if(k(t))return we(t,null);if(O(t)&&Object.getPrototypeOf(t)===Object.prototype){var m=Object.keys(t);return we(m.map(function($){return t[$]}),m)}}if(typeof n[n.length-1]=="function"){var R=n.pop();return n=n.length===1&&k(n[0])?n[0]:n,we(n,null).pipe(ut(function($){return R.apply(void 0,$)}))}return we(n,null)}function we(n,i){return new fe(function(t){var m=n.length;if(m===0){t.complete();return}for(var R=new Array(m),$=0,ee=0,ie=function(ue){var ge=ke(n[ue]),me=!1;t.add(ge.subscribe({next:function(he){me||(me=!0,ee++),R[ue]=he},error:function(he){return t.error(he)},complete:function(){$++,($===m||!me)&&(ee===m&&t.next(i?i.reduce(function(he,Ue,$t){return he[Ue]=R[$t],he},{}):R),t.complete())}}))},oe=0;oe<m;oe++)ie(oe)})}var ye=null;function Ce(n,i,t,m){return j(t)&&(m=t,t=void 0),m?Ce(n,i,t).pipe(ut(function(R){return k(R)?m.apply(void 0,R):m(R)})):new fe(function(R){function $(ee){arguments.length>1?R.next(Array.prototype.slice.call(arguments)):R.next(ee)}De(n,i,$,R,t)})}function De(n,i,t,m,R){var $;if(pt(n)){var ee=n;n.addEventListener(i,t,R),$=function(){return ee.removeEventListener(i,t,R)}}else if($e(n)){var ie=n;n.on(i,t),$=function(){return ie.off(i,t)}}else if(Se(n)){var oe=n;n.addListener(i,t),$=function(){return oe.removeListener(i,t)}}else if(n&&n.length)for(var ue=0,ge=n.length;ue<ge;ue++)De(n[ue],i,t,m,R);else throw new TypeError("Invalid event target");m.add($)}function Se(n){return n&&typeof n.addListener=="function"&&typeof n.removeListener=="function"}function $e(n){return n&&typeof n.on=="function"&&typeof n.off=="function"}function pt(n){return n&&typeof n.addEventListener=="function"&&typeof n.removeEventListener=="function"}function He(n,i,t){return t?He(n,i).pipe(ut(function(m){return k(m)?t.apply(void 0,m):t(m)})):new fe(function(m){var R=function(){for(var ee=[],ie=0;ie<arguments.length;ie++)ee[ie]=arguments[ie];return m.next(ee.length===1?ee[0]:ee)},$;try{$=n(R)}catch(ee){m.error(ee);return}if(!!j(i))return function(){return i(R,$)}})}function Rr(n,i,t,m,R){var $,ee;if(arguments.length==1){var ie=n;ee=ie.initialState,i=ie.condition,t=ie.iterate,$=ie.resultSelector||ne,R=ie.scheduler}else m===void 0||Fe(m)?(ee=n,$=ne,R=m):(ee=n,$=m);return new fe(function(oe){var ue=ee;if(R)return R.schedule(Ur,0,{subscriber:oe,iterate:t,condition:i,resultSelector:$,state:ue});do{if(i){var ge=void 0;try{ge=i(ue)}catch(he){oe.error(he);return}if(!ge){oe.complete();break}}var me=void 0;try{me=$(ue)}catch(he){oe.error(he);return}if(oe.next(me),oe.closed)break;try{ue=t(ue)}catch(he){oe.error(he);return}}while(!0)})}function Ur(n){var i=n.subscriber,t=n.condition;if(!i.closed){if(n.needIterate)try{n.state=n.iterate(n.state)}catch($){i.error($);return}else n.needIterate=!0;if(t){var m=void 0;try{m=t(n.state)}catch($){i.error($);return}if(!m){i.complete();return}if(i.closed)return}var R;try{R=n.resultSelector(n.state)}catch($){i.error($);return}if(!i.closed&&(i.next(R),!i.closed))return this.schedule(n)}}function kr(n,i,t){return i===void 0&&(i=We),t===void 0&&(t=We),ae(function(){return n()?i:t})}function xr(n){return!k(n)&&n-parseFloat(n)+1>=0}function $r(n,i){return n===void 0&&(n=0),i===void 0&&(i=Oe),(!xr(n)||n<0)&&(n=0),(!i||typeof i.schedule!="function")&&(i=Oe),new fe(function(t){return t.add(i.schedule(Hr,n,{subscriber:t,counter:0,period:n})),t})}function Hr(n){var i=n.subscriber,t=n.counter,m=n.period;i.next(t),this.schedule({subscriber:i,counter:t+1,period:m},m)}function zr(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var t=Number.POSITIVE_INFINITY,m=null,R=n[n.length-1];return Fe(R)?(m=n.pop(),n.length>1&&typeof n[n.length-1]=="number"&&(t=n.pop())):typeof R=="number"&&(t=n.pop()),m===null&&n.length===1&&n[0]instanceof fe?n[0]:K(t)(Ke(n,m))}var Fr=new fe(ot);function Wr(){return Fr}function Ir(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(n.length===0)return We;var t=n[0],m=n.slice(1);return n.length===1&&k(t)?Ir.apply(void 0,t):new fe(function(R){var $=function(){return R.add(Ir.apply(void 0,m).subscribe(R))};return ke(t).subscribe({next:function(ee){R.next(ee)},error:$,complete:$})})}function Vr(n,i){return i?new fe(function(t){var m=Object.keys(n),R=new V;return R.add(i.schedule(Kr,0,{keys:m,index:0,subscriber:t,subscription:R,obj:n})),R}):new fe(function(t){for(var m=Object.keys(n),R=0;R<m.length&&!t.closed;R++){var $=m[R];n.hasOwnProperty($)&&t.next([$,n[$]])}t.complete()})}function Kr(n){var i=n.keys,t=n.index,m=n.subscriber,R=n.subscription,$=n.obj;if(!m.closed)if(t<i.length){var ee=i[t];m.next([ee,$[ee]]),R.add(this.schedule({keys:i,index:t+1,subscriber:m,subscription:R,obj:$}))}else m.complete()}function Gr(n,i){function t(){return!t.pred.apply(t.thisArg,arguments)}return t.pred=n,t.thisArg=i,t}function Lr(n,i){return function(m){return m.lift(new Xr(n,i))}}var Xr=function(){function n(i,t){this.predicate=i,this.thisArg=t}return n.prototype.call=function(i,t){return t.subscribe(new Yr(i,this.predicate,this.thisArg))},n}(),Yr=function(n){r(i,n);function i(t,m,R){var $=n.call(this,t)||this;return $.predicate=m,$.thisArg=R,$.count=0,$}return i.prototype._next=function(t){var m;try{m=this.predicate.call(this.thisArg,t,this.count++)}catch(R){this.destination.error(R);return}m&&this.destination.next(t)},i}(X);function Qr(n,i,t){return[Lr(i,t)(new fe(vt(n))),Lr(Gr(i,t))(new fe(vt(n)))]}function Zr(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(n.length===1)if(k(n[0]))n=n[0];else return n[0];return Ke(n,void 0).lift(new Jr)}var Jr=function(){function n(){}return n.prototype.call=function(i,t){return t.subscribe(new _r(i))},n}(),_r=function(n){r(i,n);function i(t){var m=n.call(this,t)||this;return m.hasFirst=!1,m.observables=[],m.subscriptions=[],m}return i.prototype._next=function(t){this.observables.push(t)},i.prototype._complete=function(){var t=this.observables,m=t.length;if(m===0)this.destination.complete();else{for(var R=0;R<m&&!this.hasFirst;R++){var $=t[R],ee=tr(this,$,void 0,R);this.subscriptions&&this.subscriptions.push(ee),this.add(ee)}this.observables=null}},i.prototype.notifyNext=function(t,m,R){if(!this.hasFirst){this.hasFirst=!0;for(var $=0;$<this.subscriptions.length;$++)if($!==R){var ee=this.subscriptions[$];ee.unsubscribe(),this.remove(ee)}this.subscriptions=null}this.destination.next(m)},i}(_t);function qr(n,i,t){return n===void 0&&(n=0),new fe(function(m){i===void 0&&(i=n,n=0);var R=0,$=n;if(t)return t.schedule(en,0,{index:R,count:i,start:n,subscriber:m});do{if(R++>=i){m.complete();break}if(m.next($++),m.closed)break}while(!0)})}function en(n){var i=n.start,t=n.index,m=n.count,R=n.subscriber;if(t>=m){R.complete();return}R.next(i),!R.closed&&(n.index=t+1,n.start=i+1,this.schedule(n))}function tn(n,i,t){n===void 0&&(n=0);var m=-1;return xr(i)?m=Number(i)<1&&1||Number(i):Fe(i)&&(t=i),Fe(t)||(t=Oe),new fe(function(R){var $=xr(n)?n:+n-t.now();return t.schedule(rn,$,{index:0,period:m,subscriber:R})})}function rn(n){var i=n.index,t=n.period,m=n.subscriber;if(m.next(i),!m.closed){if(t===-1)return m.complete();n.index=i+1,this.schedule(n,t)}}function nn(n,i){return new fe(function(t){var m;try{m=n()}catch(ie){t.error(ie);return}var R;try{R=i(m)}catch(ie){t.error(ie);return}var $=R?ke(R):We,ee=$.subscribe(t);return function(){ee.unsubscribe(),m&&m.unsubscribe()}})}function an(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var t=n[n.length-1];return typeof t=="function"&&n.pop(),Ke(n,void 0).lift(new sn(t))}var sn=function(){function n(i){this.resultSelector=i}return n.prototype.call=function(i,t){return t.subscribe(new on(i,this.resultSelector))},n}(),on=function(n){r(i,n);function i(t,m,R){R===void 0&&(R=Object.create(null));var $=n.call(this,t)||this;return $.resultSelector=m,$.iterators=[],$.active=0,$.resultSelector=typeof m=="function"?m:void 0,$}return i.prototype._next=function(t){var m=this.iterators;k(t)?m.push(new cn(t)):typeof t[Ge]=="function"?m.push(new un(t[Ge]())):m.push(new ln(this.destination,this,t))},i.prototype._complete=function(){var t=this.iterators,m=t.length;if(this.unsubscribe(),m===0){this.destination.complete();return}this.active=m;for(var R=0;R<m;R++){var $=t[R];if($.stillUnsubscribed){var ee=this.destination;ee.add($.subscribe())}else this.active--}},i.prototype.notifyInactive=function(){this.active--,this.active===0&&this.destination.complete()},i.prototype.checkIterators=function(){for(var t=this.iterators,m=t.length,R=this.destination,$=0;$<m;$++){var ee=t[$];if(typeof ee.hasValue=="function"&&!ee.hasValue())return}for(var ie=!1,oe=[],$=0;$<m;$++){var ee=t[$],ue=ee.next();if(ee.hasCompleted()&&(ie=!0),ue.done){R.complete();return}oe.push(ue.value)}this.resultSelector?this._tryresultSelector(oe):R.next(oe),ie&&R.complete()},i.prototype._tryresultSelector=function(t){var m;try{m=this.resultSelector.apply(this,t)}catch(R){this.destination.error(R);return}this.destination.next(m)},i}(X),un=function(){function n(i){this.iterator=i,this.nextResult=i.next()}return n.prototype.hasValue=function(){return!0},n.prototype.next=function(){var i=this.nextResult;return this.nextResult=this.iterator.next(),i},n.prototype.hasCompleted=function(){var i=this.nextResult;return Boolean(i&&i.done)},n}(),cn=function(){function n(i){this.array=i,this.index=0,this.length=0,this.length=i.length}return n.prototype[Ge]=function(){return this},n.prototype.next=function(i){var t=this.index++,m=this.array;return t<this.length?{value:m[t],done:!1}:{value:null,done:!0}},n.prototype.hasValue=function(){return this.array.length>this.index},n.prototype.hasCompleted=function(){return this.array.length===this.index},n}(),ln=function(n){r(i,n);function i(t,m,R){var $=n.call(this,t)||this;return $.parent=m,$.observable=R,$.stillUnsubscribed=!0,$.buffer=[],$.isComplete=!1,$}return i.prototype[Ge]=function(){return this},i.prototype.next=function(){var t=this.buffer;return t.length===0&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},i.prototype.hasValue=function(){return this.buffer.length>0},i.prototype.hasCompleted=function(){return this.buffer.length===0&&this.isComplete},i.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},i.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},i.prototype.subscribe=function(){return kt(this.observable,new ir(this))},i}(Ut)},67801:function(G,l,e){const p=Symbol("SemVer ANY");class r{static get ANY(){return p}constructor(N,I){if(I=u(I),N instanceof r){if(N.loose===!!I.loose)return N;N=N.value}c("comparator",N,I),this.options=I,this.loose=!!I.loose,this.parse(N),this.semver===p?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(N){const I=this.options.loose?a[g.COMPARATORLOOSE]:a[g.COMPARATOR],z=N.match(I);if(!z)throw new TypeError(`Invalid comparator: ${N}`);this.operator=z[1]!==void 0?z[1]:"",this.operator==="="&&(this.operator=""),z[2]?this.semver=new v(z[2],this.options.loose):this.semver=p}toString(){return this.value}test(N){if(c("Comparator.test",N,this.options.loose),this.semver===p||N===p)return!0;if(typeof N=="string")try{N=new v(N,this.options)}catch{return!1}return s(N,this.operator,this.semver,this.options)}intersects(N,I){if(!(N instanceof r))throw new TypeError("a Comparator is required");if((!I||typeof I!="object")&&(I={loose:!!I,includePrerelease:!1}),this.operator==="")return this.value===""?!0:new y(N.value,I).test(this.value);if(N.operator==="")return N.value===""?!0:new y(this.value,I).test(N.semver);const z=(this.operator===">="||this.operator===">")&&(N.operator===">="||N.operator===">"),x=(this.operator==="<="||this.operator==="<")&&(N.operator==="<="||N.operator==="<"),w=this.semver.version===N.semver.version,P=(this.operator===">="||this.operator==="<=")&&(N.operator===">="||N.operator==="<="),S=s(this.semver,"<",N.semver,I)&&(this.operator===">="||this.operator===">")&&(N.operator==="<="||N.operator==="<"),L=s(this.semver,">",N.semver,I)&&(this.operator==="<="||this.operator==="<")&&(N.operator===">="||N.operator===">");return z||x||w&&P||S||L}}G.exports=r;const u=e(25518),{re:a,t:g}=e(41870),s=e(82864),c=e(86322),v=e(86244),y=e(89061)},89061:function(G,l,e){class p{constructor(A,k){if(k=a(k),A instanceof p)return A.loose===!!k.loose&&A.includePrerelease===!!k.includePrerelease?A:new p(A.raw,k);if(A instanceof g)return this.raw=A.value,this.set=[[A]],this.format(),this;if(this.options=k,this.loose=!!k.loose,this.includePrerelease=!!k.includePrerelease,this.raw=A,this.set=A.split("||").map(O=>this.parseRange(O.trim())).filter(O=>O.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${A}`);if(this.set.length>1){const O=this.set[0];if(this.set=this.set.filter(U=>!z(U[0])),this.set.length===0)this.set=[O];else if(this.set.length>1){for(const U of this.set)if(U.length===1&&x(U[0])){this.set=[U];break}}}this.format()}format(){return this.range=this.set.map(A=>A.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(A){A=A.trim();const O=`parseRange:${Object.keys(this.options).join(",")}:${A}`,U=u.get(O);if(U)return U;const H=this.options.loose,V=H?v[y.HYPHENRANGELOOSE]:v[y.HYPHENRANGE];A=A.replace(V,F(this.options.includePrerelease)),s("hyphen replace",A),A=A.replace(v[y.COMPARATORTRIM],b),s("comparator trim",A),A=A.replace(v[y.TILDETRIM],N),A=A.replace(v[y.CARETTRIM],I),A=A.split(/\s+/).join(" ");let Q=A.split(" ").map(q=>P(q,this.options)).join(" ").split(/\s+/).map(q=>j(q,this.options));H&&(Q=Q.filter(q=>(s("loose invalid filter",q,this.options),!!q.match(v[y.COMPARATORLOOSE])))),s("range list",Q);const Z=new Map,J=Q.map(q=>new g(q,this.options));for(const q of J){if(z(q))return[q];Z.set(q.value,q)}Z.size>1&&Z.has("")&&Z.delete("");const X=[...Z.values()];return u.set(O,X),X}intersects(A,k){if(!(A instanceof p))throw new TypeError("a Range is required");return this.set.some(O=>w(O,k)&&A.set.some(U=>w(U,k)&&O.every(H=>U.every(V=>H.intersects(V,k)))))}test(A){if(!A)return!1;if(typeof A=="string")try{A=new c(A,this.options)}catch{return!1}for(let k=0;k<this.set.length;k++)if(W(this.set[k],A,this.options))return!0;return!1}}G.exports=p;const r=e(39593),u=new r({max:1e3}),a=e(25518),g=e(67801),s=e(86322),c=e(86244),{re:v,t:y,comparatorTrimReplace:b,tildeTrimReplace:N,caretTrimReplace:I}=e(41870),z=d=>d.value==="<0.0.0-0",x=d=>d.value==="",w=(d,A)=>{let k=!0;const O=d.slice();let U=O.pop();for(;k&&O.length;)k=O.every(H=>U.intersects(H,A)),U=O.pop();return k},P=(d,A)=>(s("comp",d,A),d=T(d,A),s("caret",d),d=L(d,A),s("tildes",d),d=f(d,A),s("xrange",d),d=E(d,A),s("stars",d),d),S=d=>!d||d.toLowerCase()==="x"||d==="*",L=(d,A)=>d.trim().split(/\s+/).map(k=>B(k,A)).join(" "),B=(d,A)=>{const k=A.loose?v[y.TILDELOOSE]:v[y.TILDE];return d.replace(k,(O,U,H,V,Q)=>{s("tilde",d,O,U,H,V,Q);let Z;return S(U)?Z="":S(H)?Z=`>=${U}.0.0 <${+U+1}.0.0-0`:S(V)?Z=`>=${U}.${H}.0 <${U}.${+H+1}.0-0`:Q?(s("replaceTilde pr",Q),Z=`>=${U}.${H}.${V}-${Q} <${U}.${+H+1}.0-0`):Z=`>=${U}.${H}.${V} <${U}.${+H+1}.0-0`,s("tilde return",Z),Z})},T=(d,A)=>d.trim().split(/\s+/).map(k=>o(k,A)).join(" "),o=(d,A)=>{s("caret",d,A);const k=A.loose?v[y.CARETLOOSE]:v[y.CARET],O=A.includePrerelease?"-0":"";return d.replace(k,(U,H,V,Q,Z)=>{s("caret",d,U,H,V,Q,Z);let J;return S(H)?J="":S(V)?J=`>=${H}.0.0${O} <${+H+1}.0.0-0`:S(Q)?H==="0"?J=`>=${H}.${V}.0${O} <${H}.${+V+1}.0-0`:J=`>=${H}.${V}.0${O} <${+H+1}.0.0-0`:Z?(s("replaceCaret pr",Z),H==="0"?V==="0"?J=`>=${H}.${V}.${Q}-${Z} <${H}.${V}.${+Q+1}-0`:J=`>=${H}.${V}.${Q}-${Z} <${H}.${+V+1}.0-0`:J=`>=${H}.${V}.${Q}-${Z} <${+H+1}.0.0-0`):(s("no pr"),H==="0"?V==="0"?J=`>=${H}.${V}.${Q}${O} <${H}.${V}.${+Q+1}-0`:J=`>=${H}.${V}.${Q}${O} <${H}.${+V+1}.0-0`:J=`>=${H}.${V}.${Q} <${+H+1}.0.0-0`),s("caret return",J),J})},f=(d,A)=>(s("replaceXRanges",d,A),d.split(/\s+/).map(k=>h(k,A)).join(" ")),h=(d,A)=>{d=d.trim();const k=A.loose?v[y.XRANGELOOSE]:v[y.XRANGE];return d.replace(k,(O,U,H,V,Q,Z)=>{s("xRange",d,O,U,H,V,Q,Z);const J=S(H),X=J||S(V),q=X||S(Q),te=q;return U==="="&&te&&(U=""),Z=A.includePrerelease?"-0":"",J?U===">"||U==="<"?O="<0.0.0-0":O="*":U&&te?(X&&(V=0),Q=0,U===">"?(U=">=",X?(H=+H+1,V=0,Q=0):(V=+V+1,Q=0)):U==="<="&&(U="<",X?H=+H+1:V=+V+1),U==="<"&&(Z="-0"),O=`${U+H}.${V}.${Q}${Z}`):X?O=`>=${H}.0.0${Z} <${+H+1}.0.0-0`:q&&(O=`>=${H}.${V}.0${Z} <${H}.${+V+1}.0-0`),s("xRange return",O),O})},E=(d,A)=>(s("replaceStars",d,A),d.trim().replace(v[y.STAR],"")),j=(d,A)=>(s("replaceGTE0",d,A),d.trim().replace(v[A.includePrerelease?y.GTE0PRE:y.GTE0],"")),F=d=>(A,k,O,U,H,V,Q,Z,J,X,q,te,re)=>(S(O)?k="":S(U)?k=`>=${O}.0.0${d?"-0":""}`:S(H)?k=`>=${O}.${U}.0${d?"-0":""}`:V?k=`>=${k}`:k=`>=${k}${d?"-0":""}`,S(J)?Z="":S(X)?Z=`<${+J+1}.0.0-0`:S(q)?Z=`<${J}.${+X+1}.0-0`:te?Z=`<=${J}.${X}.${q}-${te}`:d?Z=`<${J}.${X}.${+q+1}-0`:Z=`<=${Z}`,`${k} ${Z}`.trim()),W=(d,A,k)=>{for(let O=0;O<d.length;O++)if(!d[O].test(A))return!1;if(A.prerelease.length&&!k.includePrerelease){for(let O=0;O<d.length;O++)if(s(d[O].semver),d[O].semver!==g.ANY&&d[O].semver.prerelease.length>0){const U=d[O].semver;if(U.major===A.major&&U.minor===A.minor&&U.patch===A.patch)return!0}return!1}return!0}},86244:function(G,l,e){const p=e(86322),{MAX_LENGTH:r,MAX_SAFE_INTEGER:u}=e(40602),{re:a,t:g}=e(41870),s=e(25518),{compareIdentifiers:c}=e(13189);class v{constructor(b,N){if(N=s(N),b instanceof v){if(b.loose===!!N.loose&&b.includePrerelease===!!N.includePrerelease)return b;b=b.version}else if(typeof b!="string")throw new TypeError(`Invalid Version: ${b}`);if(b.length>r)throw new TypeError(`version is longer than ${r} characters`);p("SemVer",b,N),this.options=N,this.loose=!!N.loose,this.includePrerelease=!!N.includePrerelease;const I=b.trim().match(N.loose?a[g.LOOSE]:a[g.FULL]);if(!I)throw new TypeError(`Invalid Version: ${b}`);if(this.raw=b,this.major=+I[1],this.minor=+I[2],this.patch=+I[3],this.major>u||this.major<0)throw new TypeError("Invalid major version");if(this.minor>u||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>u||this.patch<0)throw new TypeError("Invalid patch version");I[4]?this.prerelease=I[4].split(".").map(z=>{if(/^[0-9]+$/.test(z)){const x=+z;if(x>=0&&x<u)return x}return z}):this.prerelease=[],this.build=I[5]?I[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(b){if(p("SemVer.compare",this.version,this.options,b),!(b instanceof v)){if(typeof b=="string"&&b===this.version)return 0;b=new v(b,this.options)}return b.version===this.version?0:this.compareMain(b)||this.comparePre(b)}compareMain(b){return b instanceof v||(b=new v(b,this.options)),c(this.major,b.major)||c(this.minor,b.minor)||c(this.patch,b.patch)}comparePre(b){if(b instanceof v||(b=new v(b,this.options)),this.prerelease.length&&!b.prerelease.length)return-1;if(!this.prerelease.length&&b.prerelease.length)return 1;if(!this.prerelease.length&&!b.prerelease.length)return 0;let N=0;do{const I=this.prerelease[N],z=b.prerelease[N];if(p("prerelease compare",N,I,z),I===void 0&&z===void 0)return 0;if(z===void 0)return 1;if(I===void 0)return-1;if(I===z)continue;return c(I,z)}while(++N)}compareBuild(b){b instanceof v||(b=new v(b,this.options));let N=0;do{const I=this.build[N],z=b.build[N];if(p("prerelease compare",N,I,z),I===void 0&&z===void 0)return 0;if(z===void 0)return 1;if(I===void 0)return-1;if(I===z)continue;return c(I,z)}while(++N)}inc(b,N){switch(b){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",N);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",N);break;case"prepatch":this.prerelease.length=0,this.inc("patch",N),this.inc("pre",N);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",N),this.inc("pre",N);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let I=this.prerelease.length;for(;--I>=0;)typeof this.prerelease[I]=="number"&&(this.prerelease[I]++,I=-2);I===-1&&this.prerelease.push(0)}N&&(c(this.prerelease[0],N)===0?isNaN(this.prerelease[1])&&(this.prerelease=[N,0]):this.prerelease=[N,0]);break;default:throw new Error(`invalid increment argument: ${b}`)}return this.format(),this.raw=this.version,this}}G.exports=v},32340:function(G,l,e){const p=e(82362),r=(u,a)=>{const g=p(u.trim().replace(/^[=v]+/,""),a);return g?g.version:null};G.exports=r},82864:function(G,l,e){const p=e(65254),r=e(16570),u=e(81666),a=e(63041),g=e(98771),s=e(77179),c=(v,y,b,N)=>{switch(y){case"===":return typeof v=="object"&&(v=v.version),typeof b=="object"&&(b=b.version),v===b;case"!==":return typeof v=="object"&&(v=v.version),typeof b=="object"&&(b=b.version),v!==b;case"":case"=":case"==":return p(v,b,N);case"!=":return r(v,b,N);case">":return u(v,b,N);case">=":return a(v,b,N);case"<":return g(v,b,N);case"<=":return s(v,b,N);default:throw new TypeError(`Invalid operator: ${y}`)}};G.exports=c},88384:function(G,l,e){const p=e(86244),r=e(82362),{re:u,t:a}=e(41870),g=(s,c)=>{if(s instanceof p)return s;if(typeof s=="number"&&(s=String(s)),typeof s!="string")return null;c=c||{};let v=null;if(!c.rtl)v=s.match(u[a.COERCE]);else{let y;for(;(y=u[a.COERCERTL].exec(s))&&(!v||v.index+v[0].length!==s.length);)(!v||y.index+y[0].length!==v.index+v[0].length)&&(v=y),u[a.COERCERTL].lastIndex=y.index+y[1].length+y[2].length;u[a.COERCERTL].lastIndex=-1}return v===null?null:r(`${v[2]}.${v[3]||"0"}.${v[4]||"0"}`,c)};G.exports=g},62754:function(G,l,e){const p=e(86244),r=(u,a,g)=>{const s=new p(u,g),c=new p(a,g);return s.compare(c)||s.compareBuild(c)};G.exports=r},20869:function(G,l,e){const p=e(32641),r=(u,a)=>p(u,a,!0);G.exports=r},32641:function(G,l,e){const p=e(86244),r=(u,a,g)=>new p(u,g).compare(new p(a,g));G.exports=r},92330:function(G,l,e){const p=e(82362),r=e(65254),u=(a,g)=>{if(r(a,g))return null;{const s=p(a),c=p(g),v=s.prerelease.length||c.prerelease.length,y=v?"pre":"",b=v?"prerelease":"";for(const N in s)if((N==="major"||N==="minor"||N==="patch")&&s[N]!==c[N])return y+N;return b}};G.exports=u},65254:function(G,l,e){const p=e(32641),r=(u,a,g)=>p(u,a,g)===0;G.exports=r},81666:function(G,l,e){const p=e(32641),r=(u,a,g)=>p(u,a,g)>0;G.exports=r},63041:function(G,l,e){const p=e(32641),r=(u,a,g)=>p(u,a,g)>=0;G.exports=r},64156:function(G,l,e){const p=e(86244),r=(u,a,g,s)=>{typeof g=="string"&&(s=g,g=void 0);try{return new p(u instanceof p?u.version:u,g).inc(a,s).version}catch{return null}};G.exports=r},98771:function(G,l,e){const p=e(32641),r=(u,a,g)=>p(u,a,g)<0;G.exports=r},77179:function(G,l,e){const p=e(32641),r=(u,a,g)=>p(u,a,g)<=0;G.exports=r},98760:function(G,l,e){const p=e(86244),r=(u,a)=>new p(u,a).major;G.exports=r},71801:function(G,l,e){const p=e(86244),r=(u,a)=>new p(u,a).minor;G.exports=r},16570:function(G,l,e){const p=e(32641),r=(u,a,g)=>p(u,a,g)!==0;G.exports=r},82362:function(G,l,e){const{MAX_LENGTH:p}=e(40602),{re:r,t:u}=e(41870),a=e(86244),g=e(25518),s=(c,v)=>{if(v=g(v),c instanceof a)return c;if(typeof c!="string"||c.length>p||!(v.loose?r[u.LOOSE]:r[u.FULL]).test(c))return null;try{return new a(c,v)}catch{return null}};G.exports=s},47184:function(G,l,e){const p=e(86244),r=(u,a)=>new p(u,a).patch;G.exports=r},6399:function(G,l,e){const p=e(82362),r=(u,a)=>{const g=p(u,a);return g&&g.prerelease.length?g.prerelease:null};G.exports=r},58209:function(G,l,e){const p=e(32641),r=(u,a,g)=>p(a,u,g);G.exports=r},53729:function(G,l,e){const p=e(62754),r=(u,a)=>u.sort((g,s)=>p(s,g,a));G.exports=r},8139:function(G,l,e){const p=e(89061),r=(u,a,g)=>{try{a=new p(a,g)}catch{return!1}return a.test(u)};G.exports=r},46184:function(G,l,e){const p=e(62754),r=(u,a)=>u.sort((g,s)=>p(g,s,a));G.exports=r},87705:function(G,l,e){const p=e(82362),r=(u,a)=>{const g=p(u,a);return g?g.version:null};G.exports=r},28371:function(G,l,e){const p=e(41870);G.exports={re:p.re,src:p.src,tokens:p.t,SEMVER_SPEC_VERSION:e(40602).SEMVER_SPEC_VERSION,SemVer:e(86244),compareIdentifiers:e(13189).compareIdentifiers,rcompareIdentifiers:e(13189).rcompareIdentifiers,parse:e(82362),valid:e(87705),clean:e(32340),inc:e(64156),diff:e(92330),major:e(98760),minor:e(71801),patch:e(47184),prerelease:e(6399),compare:e(32641),rcompare:e(58209),compareLoose:e(20869),compareBuild:e(62754),sort:e(46184),rsort:e(53729),gt:e(81666),lt:e(98771),eq:e(65254),neq:e(16570),gte:e(63041),lte:e(77179),cmp:e(82864),coerce:e(88384),Comparator:e(67801),Range:e(89061),satisfies:e(8139),toComparators:e(92811),maxSatisfying:e(59290),minSatisfying:e(62465),minVersion:e(91785),validRange:e(77855),outside:e(86049),gtr:e(42097),ltr:e(59850),intersects:e(34298),simplifyRange:e(29905),subset:e(1254)}},40602:function(G){const l="2.0.0",p=Number.MAX_SAFE_INTEGER||9007199254740991,r=16;G.exports={SEMVER_SPEC_VERSION:l,MAX_LENGTH:256,MAX_SAFE_INTEGER:p,MAX_SAFE_COMPONENT_LENGTH:r}},86322:function(G,l,e){var p=e(34155);const r=typeof p=="object"&&p.env&&p.env.NODE_DEBUG&&/\bsemver\b/i.test(p.env.NODE_DEBUG)?(...u)=>console.error("SEMVER",...u):()=>{};G.exports=r},13189:function(G){const l=/^[0-9]+$/,e=(r,u)=>{const a=l.test(r),g=l.test(u);return a&&g&&(r=+r,u=+u),r===u?0:a&&!g?-1:g&&!a?1:r<u?-1:1},p=(r,u)=>e(u,r);G.exports={compareIdentifiers:e,rcompareIdentifiers:p}},25518:function(G){const l=["includePrerelease","loose","rtl"],e=p=>p?typeof p!="object"?{loose:!0}:l.filter(r=>p[r]).reduce((r,u)=>(r[u]=!0,r),{}):{};G.exports=e},41870:function(G,l,e){const{MAX_SAFE_COMPONENT_LENGTH:p}=e(40602),r=e(86322);l=G.exports={};const u=l.re=[],a=l.src=[],g=l.t={};let s=0;const c=(v,y,b)=>{const N=s++;r(v,N,y),g[v]=N,a[N]=y,u[N]=new RegExp(y,b?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${a[g.NUMERICIDENTIFIER]})\\.(${a[g.NUMERICIDENTIFIER]})\\.(${a[g.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${a[g.NUMERICIDENTIFIERLOOSE]})\\.(${a[g.NUMERICIDENTIFIERLOOSE]})\\.(${a[g.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${a[g.NUMERICIDENTIFIER]}|${a[g.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${a[g.NUMERICIDENTIFIERLOOSE]}|${a[g.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${a[g.PRERELEASEIDENTIFIER]}(?:\\.${a[g.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${a[g.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[g.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${a[g.BUILDIDENTIFIER]}(?:\\.${a[g.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${a[g.MAINVERSION]}${a[g.PRERELEASE]}?${a[g.BUILD]}?`),c("FULL",`^${a[g.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${a[g.MAINVERSIONLOOSE]}${a[g.PRERELEASELOOSE]}?${a[g.BUILD]}?`),c("LOOSE",`^${a[g.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",`${a[g.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),c("XRANGEIDENTIFIER",`${a[g.NUMERICIDENTIFIER]}|x|X|\\*`),c("XRANGEPLAIN",`[v=\\s]*(${a[g.XRANGEIDENTIFIER]})(?:\\.(${a[g.XRANGEIDENTIFIER]})(?:\\.(${a[g.XRANGEIDENTIFIER]})(?:${a[g.PRERELEASE]})?${a[g.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${a[g.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[g.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[g.XRANGEIDENTIFIERLOOSE]})(?:${a[g.PRERELEASELOOSE]})?${a[g.BUILD]}?)?)?`),c("XRANGE",`^${a[g.GTLT]}\\s*${a[g.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${a[g.GTLT]}\\s*${a[g.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${p}})(?:\\.(\\d{1,${p}}))?(?:\\.(\\d{1,${p}}))?(?:$|[^\\d])`),c("COERCERTL",a[g.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${a[g.LONETILDE]}\\s+`,!0),l.tildeTrimReplace="$1~",c("TILDE",`^${a[g.LONETILDE]}${a[g.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${a[g.LONETILDE]}${a[g.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${a[g.LONECARET]}\\s+`,!0),l.caretTrimReplace="$1^",c("CARET",`^${a[g.LONECARET]}${a[g.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${a[g.LONECARET]}${a[g.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${a[g.GTLT]}\\s*(${a[g.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${a[g.GTLT]}\\s*(${a[g.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${a[g.GTLT]}\\s*(${a[g.LOOSEPLAIN]}|${a[g.XRANGEPLAIN]})`,!0),l.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${a[g.XRANGEPLAIN]})\\s+-\\s+(${a[g.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${a[g.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[g.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},42097:function(G,l,e){const p=e(86049),r=(u,a,g)=>p(u,a,">",g);G.exports=r},34298:function(G,l,e){const p=e(89061),r=(u,a,g)=>(u=new p(u,g),a=new p(a,g),u.intersects(a));G.exports=r},59850:function(G,l,e){const p=e(86049),r=(u,a,g)=>p(u,a,"<",g);G.exports=r},59290:function(G,l,e){const p=e(86244),r=e(89061),u=(a,g,s)=>{let c=null,v=null,y=null;try{y=new r(g,s)}catch{return null}return a.forEach(b=>{y.test(b)&&(!c||v.compare(b)===-1)&&(c=b,v=new p(c,s))}),c};G.exports=u},62465:function(G,l,e){const p=e(86244),r=e(89061),u=(a,g,s)=>{let c=null,v=null,y=null;try{y=new r(g,s)}catch{return null}return a.forEach(b=>{y.test(b)&&(!c||v.compare(b)===1)&&(c=b,v=new p(c,s))}),c};G.exports=u},91785:function(G,l,e){const p=e(86244),r=e(89061),u=e(81666),a=(g,s)=>{g=new r(g,s);let c=new p("0.0.0");if(g.test(c)||(c=new p("0.0.0-0"),g.test(c)))return c;c=null;for(let v=0;v<g.set.length;++v){const y=g.set[v];let b=null;y.forEach(N=>{const I=new p(N.semver.version);switch(N.operator){case">":I.prerelease.length===0?I.patch++:I.prerelease.push(0),I.raw=I.format();case"":case">=":(!b||u(I,b))&&(b=I);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${N.operator}`)}}),b&&(!c||u(c,b))&&(c=b)}return c&&g.test(c)?c:null};G.exports=a},86049:function(G,l,e){const p=e(86244),r=e(67801),{ANY:u}=r,a=e(89061),g=e(8139),s=e(81666),c=e(98771),v=e(77179),y=e(63041),b=(N,I,z,x)=>{N=new p(N,x),I=new a(I,x);let w,P,S,L,B;switch(z){case">":w=s,P=v,S=c,L=">",B=">=";break;case"<":w=c,P=y,S=s,L="<",B="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(g(N,I,x))return!1;for(let T=0;T<I.set.length;++T){const o=I.set[T];let f=null,h=null;if(o.forEach(E=>{E.semver===u&&(E=new r(">=0.0.0")),f=f||E,h=h||E,w(E.semver,f.semver,x)?f=E:S(E.semver,h.semver,x)&&(h=E)}),f.operator===L||f.operator===B||(!h.operator||h.operator===L)&&P(N,h.semver))return!1;if(h.operator===B&&S(N,h.semver))return!1}return!0};G.exports=b},29905:function(G,l,e){const p=e(8139),r=e(32641);G.exports=(u,a,g)=>{const s=[];let c=null,v=null;const y=u.sort((z,x)=>r(z,x,g));for(const z of y)p(z,a,g)?(v=z,c||(c=z)):(v&&s.push([c,v]),v=null,c=null);c&&s.push([c,null]);const b=[];for(const[z,x]of s)z===x?b.push(z):!x&&z===y[0]?b.push("*"):x?z===y[0]?b.push(`<=${x}`):b.push(`${z} - ${x}`):b.push(`>=${z}`);const N=b.join(" || "),I=typeof a.raw=="string"?a.raw:String(a);return N.length<I.length?N:a}},1254:function(G,l,e){const p=e(89061),r=e(67801),{ANY:u}=r,a=e(8139),g=e(32641),s=(b,N,I={})=>{if(b===N)return!0;b=new p(b,I),N=new p(N,I);let z=!1;e:for(const x of b.set){for(const w of N.set){const P=c(x,w,I);if(z=z||P!==null,P)continue e}if(z)return!1}return!0},c=(b,N,I)=>{if(b===N)return!0;if(b.length===1&&b[0].semver===u){if(N.length===1&&N[0].semver===u)return!0;I.includePrerelease?b=[new r(">=0.0.0-0")]:b=[new r(">=0.0.0")]}if(N.length===1&&N[0].semver===u){if(I.includePrerelease)return!0;N=[new r(">=0.0.0")]}const z=new Set;let x,w;for(const h of b)h.operator===">"||h.operator===">="?x=v(x,h,I):h.operator==="<"||h.operator==="<="?w=y(w,h,I):z.add(h.semver);if(z.size>1)return null;let P;if(x&&w){if(P=g(x.semver,w.semver,I),P>0)return null;if(P===0&&(x.operator!==">="||w.operator!=="<="))return null}for(const h of z){if(x&&!a(h,String(x),I)||w&&!a(h,String(w),I))return null;for(const E of N)if(!a(h,String(E),I))return!1;return!0}let S,L,B,T,o=w&&!I.includePrerelease&&w.semver.prerelease.length?w.semver:!1,f=x&&!I.includePrerelease&&x.semver.prerelease.length?x.semver:!1;o&&o.prerelease.length===1&&w.operator==="<"&&o.prerelease[0]===0&&(o=!1);for(const h of N){if(T=T||h.operator===">"||h.operator===">=",B=B||h.operator==="<"||h.operator==="<=",x){if(f&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===f.major&&h.semver.minor===f.minor&&h.semver.patch===f.patch&&(f=!1),h.operator===">"||h.operator===">="){if(S=v(x,h,I),S===h&&S!==x)return!1}else if(x.operator===">="&&!a(x.semver,String(h),I))return!1}if(w){if(o&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===o.major&&h.semver.minor===o.minor&&h.semver.patch===o.patch&&(o=!1),h.operator==="<"||h.operator==="<="){if(L=y(w,h,I),L===h&&L!==w)return!1}else if(w.operator==="<="&&!a(w.semver,String(h),I))return!1}if(!h.operator&&(w||x)&&P!==0)return!1}return!(x&&B&&!w&&P!==0||w&&T&&!x&&P!==0||f||o)},v=(b,N,I)=>{if(!b)return N;const z=g(b.semver,N.semver,I);return z>0?b:z<0||N.operator===">"&&b.operator===">="?N:b},y=(b,N,I)=>{if(!b)return N;const z=g(b.semver,N.semver,I);return z<0?b:z>0||N.operator==="<"&&b.operator==="<="?N:b};G.exports=s},92811:function(G,l,e){const p=e(89061),r=(u,a)=>new p(u,a).set.map(g=>g.map(s=>s.value).join(" ").trim().split(" "));G.exports=r},77855:function(G,l,e){const p=e(89061),r=(u,a)=>{try{return new p(u,a).range||"*"}catch{return null}};G.exports=r},76358:function(G,l,e){"use strict";e.r(l),e.d(l,{AccountNameRequiredError:function(){return v},AccountNotSupported:function(){return y},AmountRequired:function(){return b},BluetoothRequired:function(){return N},BtcUnmatchedApp:function(){return I},CantOpenDevice:function(){return z},CantScanQRCode:function(){return Vt},CashAddrNotSupported:function(){return x},CurrencyNotSupported:function(){return w},DBNotReset:function(){return sr},DBWrongPassword:function(){return Tt},DeviceAppVerifyNotSupported:function(){return P},DeviceGenuineSocketEarlyClose:function(){return S},DeviceHalted:function(){return f},DeviceInOSUExpected:function(){return o},DeviceNameInvalid:function(){return h},DeviceNotGenuineError:function(){return L},DeviceOnDashboardExpected:function(){return B},DeviceOnDashboardUnexpected:function(){return T},DeviceShouldStayInApp:function(){return Ke},DeviceSocketFail:function(){return E},DeviceSocketNoBulkStatus:function(){return j},DisconnectedDevice:function(){return F},DisconnectedDeviceDuringOperation:function(){return W},ETHAddressNonEIP:function(){return at},EnpointConfigError:function(){return d},EthAppPleaseEnableContractData:function(){return A},FeeEstimationFailed:function(){return k},FeeNotLoaded:function(){return Bt},FeeRequired:function(){return Nt},FeeTooHigh:function(){return lt},FirmwareNotRecognized:function(){return O},FirmwareOrAppUpdateRequired:function(){return Je},GasLessThanEstimate:function(){return et},GenuineCheckFailed:function(){return Ze},HardResetFail:function(){return U},InvalidAddress:function(){return V},InvalidAddressBecauseDestinationIsAlsoSource:function(){return Q},InvalidXRPTag:function(){return H},LatestMCUInstalledError:function(){return Z},LedgerAPI4xx:function(){return Gt},LedgerAPI5xx:function(){return Ft},LedgerAPIError:function(){return X},LedgerAPIErrorWithMessage:function(){return q},LedgerAPINotAvailable:function(){return te},MCUNotGenuineToDashboard:function(){return Ye},ManagerAppAlreadyInstalledError:function(){return re},ManagerAppDepInstallRequired:function(){return ne},ManagerAppDepUninstallRequired:function(){return be},ManagerAppRelyOnBTCError:function(){return se},ManagerDeviceLockedError:function(){return le},ManagerFirmwareNotEnoughSpaceError:function(){return fe},ManagerNotEnoughSpaceError:function(){return ce},ManagerUninstallBTCDep:function(){return pe},NetworkDown:function(){return Te},NoAccessToCamera:function(){return qe},NoAddressesFound:function(){return Ee},NoDBPathGiven:function(){return St},NotEnoughBalance:function(){return xe},NotEnoughBalanceBecauseDestinationNotCreated:function(){return Pt},NotEnoughBalanceInParentAccount:function(){return gt},NotEnoughBalanceToDelegate:function(){return je},NotEnoughGas:function(){return Ie},NotEnoughSpendableBalance:function(){return mt},NotSupportedLegacyAddress:function(){return At},PairingFailed:function(){return Kt},PasswordIncorrectError:function(){return Pe},PasswordsDontMatchError:function(){return ar},RecipientRequired:function(){return zt},RecommendSubAccountsToEmpty:function(){return Ct},RecommendUndelegation:function(){return Rt},StatusCodes:function(){return dt},SyncError:function(){return jt},TimeoutTagged:function(){return Ht},TransportError:function(){return ft},TransportInterfaceNotAvailable:function(){return Fe},TransportOpenUserCancelled:function(){return Wt},TransportRaceCondition:function(){return Et},TransportStatusError:function(){return ht},TransportWebUSBGestureRequired:function(){return rt},UnavailableTezosOriginatedAccountReceive:function(){return yt},UnavailableTezosOriginatedAccountSend:function(){return Re},UnexpectedBootloader:function(){return Xe},UnknownMCU:function(){return J},UpdateFetchFileFail:function(){return ze},UpdateIncorrectHash:function(){return xt},UpdateIncorrectSig:function(){return tt},UpdateYourApp:function(){return Qe},UserRefusedAddress:function(){return ct},UserRefusedAllowManager:function(){return We},UserRefusedDeviceNameChange:function(){return It},UserRefusedFirmwareUpdate:function(){return bt},UserRefusedOnDevice:function(){return Ve},WebsocketConnectionError:function(){return nt},WebsocketConnectionFailed:function(){return wt},WrongAppForCurrency:function(){return it},WrongDeviceForAccount:function(){return Dt},addCustomErrorDeserializer:function(){return u},createCustomErrorClass:function(){return a},deserializeError:function(){return g},getAltStatusMessage:function(){return st},serializeError:function(){return s}});var p={},r={},u=function(de,Oe){r[de]=Oe},a=function(de){var Oe=function(Me,Be){Object.assign(this,Be),this.name=de,this.message=Me||de,this.stack=new Error().stack};return Oe.prototype=new Error,p[de]=Oe,Oe},g=function(de){if(typeof de=="object"&&de){try{var Oe=JSON.parse(de.message);Oe.message&&Oe.name&&(de=Oe)}catch{}var Ae=void 0;if(typeof de.name=="string"){var Me=de.name,Be=r[Me];if(Be)Ae=Be(de);else{var Ne=Me==="Error"?Error:p[Me];Ne||(console.warn("deserializing an unknown class '"+Me+"'"),Ne=a(Me)),Ae=Object.create(Ne.prototype);try{for(var Le in de)de.hasOwnProperty(Le)&&(Ae[Le]=de[Le])}catch{}}}else Ae=new Error(de.message);return!Ae.stack&&Error.captureStackTrace&&Error.captureStackTrace(Ae,g),Ae}return new Error(String(de))},s=function(de){return de&&(typeof de=="object"?c(de,[]):typeof de=="function"?"[Function: "+(de.name||"anonymous")+"]":de)};function c(de,Oe){var Ae={};Oe.push(de);for(var Me=0,Be=Object.keys(de);Me<Be.length;Me++){var Ne=Be[Me],Le=de[Ne];if(typeof Le!="function"){if(!Le||typeof Le!="object"){Ae[Ne]=Le;continue}if(Oe.indexOf(de[Ne])===-1){Ae[Ne]=c(de[Ne],Oe.slice(0));continue}Ae[Ne]="[Circular]"}}return typeof de.name=="string"&&(Ae.name=de.name),typeof de.message=="string"&&(Ae.message=de.message),typeof de.stack=="string"&&(Ae.stack=de.stack),Ae}var v=a("AccountNameRequired"),y=a("AccountNotSupported"),b=a("AmountRequired"),N=a("BluetoothRequired"),I=a("BtcUnmatchedApp"),z=a("CantOpenDevice"),x=a("CashAddrNotSupported"),w=a("CurrencyNotSupported"),P=a("DeviceAppVerifyNotSupported"),S=a("DeviceGenuineSocketEarlyClose"),L=a("DeviceNotGenuine"),B=a("DeviceOnDashboardExpected"),T=a("DeviceOnDashboardUnexpected"),o=a("DeviceInOSUExpected"),f=a("DeviceHalted"),h=a("DeviceNameInvalid"),E=a("DeviceSocketFail"),j=a("DeviceSocketNoBulkStatus"),F=a("DisconnectedDevice"),W=a("DisconnectedDeviceDuringOperation"),d=a("EnpointConfig"),A=a("EthAppPleaseEnableContractData"),k=a("FeeEstimationFailed"),O=a("FirmwareNotRecognized"),U=a("HardResetFail"),H=a("InvalidXRPTag"),V=a("InvalidAddress"),Q=a("InvalidAddressBecauseDestinationIsAlsoSource"),Z=a("LatestMCUInstalledError"),J=a("UnknownMCU"),X=a("LedgerAPIError"),q=a("LedgerAPIErrorWithMessage"),te=a("LedgerAPINotAvailable"),re=a("ManagerAppAlreadyInstalled"),se=a("ManagerAppRelyOnBTC"),ne=a("ManagerAppDepInstallRequired"),be=a("ManagerAppDepUninstallRequired"),le=a("ManagerDeviceLocked"),fe=a("ManagerFirmwareNotEnoughSpace"),ce=a("ManagerNotEnoughSpace"),pe=a("ManagerUninstallBTCDep"),Te=a("NetworkDown"),Ee=a("NoAddressesFound"),xe=a("NotEnoughBalance"),je=a("NotEnoughBalanceToDelegate"),gt=a("NotEnoughBalanceInParentAccount"),mt=a("NotEnoughSpendableBalance"),Pt=a("NotEnoughBalanceBecauseDestinationNotCreated"),qe=a("NoAccessToCamera"),Ie=a("NotEnoughGas"),At=a("NotSupportedLegacyAddress"),et=a("GasLessThanEstimate"),ar=a("PasswordsDontMatch"),Pe=a("PasswordIncorrect"),Ct=a("RecommendSubAccountsToEmpty"),Rt=a("RecommendUndelegation"),Ht=a("TimeoutTagged"),Xe=a("UnexpectedBootloader"),Ye=a("MCUNotGenuineToDashboard"),zt=a("RecipientRequired"),yt=a("UnavailableTezosOriginatedAccountReceive"),Re=a("UnavailableTezosOriginatedAccountSend"),ze=a("UpdateFetchFileFail"),xt=a("UpdateIncorrectHash"),tt=a("UpdateIncorrectSig"),Qe=a("UpdateYourApp"),It=a("UserRefusedDeviceNameChange"),ct=a("UserRefusedAddress"),bt=a("UserRefusedFirmwareUpdate"),We=a("UserRefusedAllowManager"),Ve=a("UserRefusedOnDevice"),Wt=a("TransportOpenUserCancelled"),Fe=a("TransportInterfaceNotAvailable"),Et=a("TransportRaceCondition"),rt=a("TransportWebUSBGestureRequired"),Ke=a("DeviceShouldStayInApp"),nt=a("WebsocketConnectionError"),wt=a("WebsocketConnectionFailed"),Dt=a("WrongDeviceForAccount"),it=a("WrongAppForCurrency"),at=a("ETHAddressNonEIP"),Vt=a("CantScanQRCode"),Bt=a("FeeNotLoaded"),Nt=a("FeeRequired"),lt=a("FeeTooHigh"),jt=a("SyncError"),Kt=a("PairingFailed"),Ze=a("GenuineCheckFailed"),Gt=a("LedgerAPI4xx"),Ft=a("LedgerAPI5xx"),Je=a("FirmwareOrAppUpdateRequired"),St=a("NoDBPathGiven"),Tt=a("DBWrongPassword"),sr=a("DBNotReset");function ft(de,Oe){this.name="TransportError",this.message=de,this.stack=new Error().stack,this.id=Oe}ft.prototype=new Error,u("TransportError",function(de){return new ft(de.message,de.id)});var dt={PIN_REMAINING_ATTEMPTS:25536,INCORRECT_LENGTH:26368,MISSING_CRITICAL_PARAMETER:26624,COMMAND_INCOMPATIBLE_FILE_STRUCTURE:27009,SECURITY_STATUS_NOT_SATISFIED:27010,CONDITIONS_OF_USE_NOT_SATISFIED:27013,INCORRECT_DATA:27264,NOT_ENOUGH_MEMORY_SPACE:27268,REFERENCED_DATA_NOT_FOUND:27272,FILE_ALREADY_EXISTS:27273,INCORRECT_P1_P2:27392,INS_NOT_SUPPORTED:27904,CLA_NOT_SUPPORTED:28160,TECHNICAL_PROBLEM:28416,OK:36864,MEMORY_PROBLEM:37440,NO_EF_SELECTED:37888,INVALID_OFFSET:37890,FILE_NOT_FOUND:37892,INCONSISTENT_FILE:37896,ALGORITHM_NOT_SUPPORTED:38020,INVALID_KCV:38021,CODE_NOT_INITIALIZED:38914,ACCESS_CONDITION_NOT_FULFILLED:38916,CONTRADICTION_SECRET_CODE_STATUS:38920,CONTRADICTION_INVALIDATION:38928,CODE_BLOCKED:38976,MAX_VALUE_REACHED:38992,GP_AUTH_FAILED:25344,LICENSING:28482,HALTED:28586};function st(de){switch(de){case 26368:return"Incorrect length";case 26624:return"Missing critical parameter";case 27010:return"Security not satisfied (dongle locked or have invalid access rights)";case 27013:return"Condition of use not satisfied (denied by the user?)";case 27264:return"Invalid data received";case 27392:return"Invalid parameter received"}if(28416<=de&&de<=28671)return"Internal error, please report"}function ht(de){this.name="TransportStatusError";var Oe=Object.keys(dt).find(function(Be){return dt[Be]===de})||"UNKNOWN_ERROR",Ae=st(de)||Oe,Me=de.toString(16);this.message="Ledger device: "+Ae+" (0x"+Me+")",this.stack=new Error().stack,this.statusCode=de,this.statusText=Oe}ht.prototype=new Error,u("TransportStatusError",function(de){return new ht(de.statusCode)})},93298:function(G,l,e){"use strict";e.d(l,{Z:function(){return w}});var p=e(71823),r=e.n(p),u=e(27590),a=e(28716),g=e(76358),s=e(48764).Buffer;function c(P,S,L){const B=new g.TransportError(S,L);return B.originalError=P,B}function v(P,S){const L=s.alloc(P.length);for(let B=0;B<P.length;B++)L[B]=P[B]^S[B%S.length];return L}const y=P=>P.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""),b=P=>P.replace(/-/g,"+").replace(/_/g,"/")+"==".substring(0,3*P.length%4);function N(P,S,L,B){const T=v(P,L),o=s.from("0000000000000000000000000000000000000000000000000000000000000000","hex"),f={version:"U2F_V2",keyHandle:y(T.toString("base64")),challenge:y(o.toString("base64")),appId:location.origin};return(0,a.log)("apdu","=> "+P.toString("hex")),(0,p.sign)(f,S/1e3).then(h=>{const{signatureData:E}=h;if(typeof E=="string"){const j=s.from(b(E),"base64");let F;return B?F=j.slice(5):F=j,(0,a.log)("apdu","<= "+F.toString("hex")),F}else throw h})}let I=[];function z(){I.forEach(P=>P.emit("disconnect")),I=[]}function x(P){return P.metaData.code===5}class w extends u.ZP{static async open(S,L=5e3){return new w}constructor(){super(),this.scrambleKey=void 0,this.unwrap=!0,I.push(this)}async exchange(S){try{return await N(S,this.exchangeTimeout,this.scrambleKey,this.unwrap)}catch(L){throw typeof L.metaData=="object"?(x(L)&&z(),c(L,"Failed to sign with Ledger device: U2F "+L.metaData.type,"U2F_"+L.metaData.code)):L}}setScrambleKey(S){this.scrambleKey=s.from(S,"ascii")}setUnwrap(S){this.unwrap=S}close(){return Promise.resolve()}}w.isSupported=p.isSupported,w.list=()=>(0,p.isSupported)().then(P=>P?[null]:[]),w.listen=P=>{let S=!1;return(0,p.isSupported)().then(L=>{S||(L?(P.next({type:"add",descriptor:null}),P.complete()):P.error(new g.TransportError("U2F browser support is needed for Ledger. Please use Chrome, Opera or Firefox with a U2F extension. Also make sure you're on an HTTPS connection","U2FNotSupported")))}),{unsubscribe:()=>{S=!0}}}},68277:function(G,l,e){"use strict";e.d(l,{Z:function(){return _e}});var p=e(27590),r=e(76358),u=e(28371),a=e.n(u);const g=1,s=2,c=4,v=8,y=16,b={blue:{id:"blue",productName:"Ledger\xA0Blue",productIdMM:0,legacyUsbProductId:0,usbOnly:!0,memorySize:480*1024,blockSize:4*1024,getBlockSize:C=>4*1024},nanoS:{id:"nanoS",productName:"Ledger\xA0Nano\xA0S",productIdMM:16,legacyUsbProductId:1,usbOnly:!0,memorySize:320*1024,blockSize:4*1024,getBlockSize:C=>a().lt(a().coerce(C),"2.0.0")?4*1024:2*1024},nanoX:{id:"nanoX",productName:"Ledger\xA0Nano\xA0X",productIdMM:64,legacyUsbProductId:4,usbOnly:!1,memorySize:2*1024*1024,blockSize:4*1024,getBlockSize:C=>4*1024,bluetoothSpec:[{serviceUuid:"d973f2e0-b19e-11e2-9e96-0800200c9a66",notifyUuid:"d973f2e1-b19e-11e2-9e96-0800200c9a66",writeUuid:"d973f2e2-b19e-11e2-9e96-0800200c9a66"},{serviceUuid:"13d63400-2c97-0004-0000-4c6564676572",notifyUuid:"13d63400-2c97-0004-0001-4c6564676572",writeUuid:"13d63400-2c97-0004-0002-4c6564676572"}]}},N={Blue:"blue","Nano S":"nanoS","Nano X":"nanoX"},I=Object.values(b),z=11415,x=C=>{const D=b[C];if(!D)throw new Error("device '"+C+"' does not exist");return D},w=C=>{const D=I.find(Y=>Y.legacyUsbProductId===C);if(D)return D;const M=C>>8;return I.find(Y=>Y.productIdMM===M)},P=C=>{const D=N[C];return I.find(K=>K.id===D)},S=[],L={};for(let C in b){const D=b[C],{bluetoothSpec:M}=D;if(M)for(let K=0;K<M.length;K++){const Y=M[K];S.push(Y.serviceUuid),L[Y.serviceUuid]=L[Y.serviceUuid.replace(/-/g,"")]={deviceModel:D,...Y}}}const B=()=>S,T=C=>L[C.toLowerCase()];var o=e(37741),f=e(53732),h=e(28716);/*! *****************************************************************************
17
- Copyright (c) Microsoft Corporation.
18
-
19
- Permission to use, copy, modify, and/or distribute this software for any
20
- purpose with or without fee is hereby granted.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
23
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
24
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
25
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
26
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
27
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
28
- PERFORMANCE OF THIS SOFTWARE.
29
- ***************************************************************************** */var E=function(C,D){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,K){M.__proto__=K}||function(M,K){for(var Y in K)K.hasOwnProperty(Y)&&(M[Y]=K[Y])},E(C,D)};function j(C,D){E(C,D);function M(){this.constructor=C}C.prototype=D===null?Object.create(D):(M.prototype=D.prototype,new M)}var F=function(){return F=Object.assign||function(D){for(var M,K=1,Y=arguments.length;K<Y;K++){M=arguments[K];for(var _ in M)Object.prototype.hasOwnProperty.call(M,_)&&(D[_]=M[_])}return D},F.apply(this,arguments)};function W(C,D){var M={};for(var K in C)Object.prototype.hasOwnProperty.call(C,K)&&D.indexOf(K)<0&&(M[K]=C[K]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,K=Object.getOwnPropertySymbols(C);Y<K.length;Y++)D.indexOf(K[Y])<0&&Object.prototype.propertyIsEnumerable.call(C,K[Y])&&(M[K[Y]]=C[K[Y]]);return M}function d(C,D,M,K){var Y=arguments.length,_=Y<3?D:K===null?K=Object.getOwnPropertyDescriptor(D,M):K,ae;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_=Reflect.decorate(C,D,M,K);else for(var ve=C.length-1;ve>=0;ve--)(ae=C[ve])&&(_=(Y<3?ae(_):Y>3?ae(D,M,_):ae(D,M))||_);return Y>3&&_&&Object.defineProperty(D,M,_),_}function A(C,D){return function(M,K){D(M,K,C)}}function k(C,D){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(C,D)}function O(C,D,M,K){function Y(_){return _ instanceof M?_:new M(function(ae){ae(_)})}return new(M||(M=Promise))(function(_,ae){function ve(Ce){try{ye(K.next(Ce))}catch(De){ae(De)}}function we(Ce){try{ye(K.throw(Ce))}catch(De){ae(De)}}function ye(Ce){Ce.done?_(Ce.value):Y(Ce.value).then(ve,we)}ye((K=K.apply(C,D||[])).next())})}function U(C,D){var M={label:0,sent:function(){if(_[0]&1)throw _[1];return _[1]},trys:[],ops:[]},K,Y,_,ae;return ae={next:ve(0),throw:ve(1),return:ve(2)},typeof Symbol=="function"&&(ae[Symbol.iterator]=function(){return this}),ae;function ve(ye){return function(Ce){return we([ye,Ce])}}function we(ye){if(K)throw new TypeError("Generator is already executing.");for(;M;)try{if(K=1,Y&&(_=ye[0]&2?Y.return:ye[0]?Y.throw||((_=Y.return)&&_.call(Y),0):Y.next)&&!(_=_.call(Y,ye[1])).done)return _;switch(Y=0,_&&(ye=[ye[0]&2,_.value]),ye[0]){case 0:case 1:_=ye;break;case 4:return M.label++,{value:ye[1],done:!1};case 5:M.label++,Y=ye[1],ye=[0];continue;case 7:ye=M.ops.pop(),M.trys.pop();continue;default:if(_=M.trys,!(_=_.length>0&&_[_.length-1])&&(ye[0]===6||ye[0]===2)){M=0;continue}if(ye[0]===3&&(!_||ye[1]>_[0]&&ye[1]<_[3])){M.label=ye[1];break}if(ye[0]===6&&M.label<_[1]){M.label=_[1],_=ye;break}if(_&&M.label<_[2]){M.label=_[2],M.ops.push(ye);break}_[2]&&M.ops.pop(),M.trys.pop();continue}ye=D.call(C,M)}catch(Ce){ye=[6,Ce],Y=0}finally{K=_=0}if(ye[0]&5)throw ye[1];return{value:ye[0]?ye[1]:void 0,done:!0}}}function H(C,D,M,K){K===void 0&&(K=M),C[K]=D[M]}function V(C,D){for(var M in C)M!=="default"&&!D.hasOwnProperty(M)&&(D[M]=C[M])}function Q(C){var D=typeof Symbol=="function"&&Symbol.iterator,M=D&&C[D],K=0;if(M)return M.call(C);if(C&&typeof C.length=="number")return{next:function(){return C&&K>=C.length&&(C=void 0),{value:C&&C[K++],done:!C}}};throw new TypeError(D?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z(C,D){var M=typeof Symbol=="function"&&C[Symbol.iterator];if(!M)return C;var K=M.call(C),Y,_=[],ae;try{for(;(D===void 0||D-- >0)&&!(Y=K.next()).done;)_.push(Y.value)}catch(ve){ae={error:ve}}finally{try{Y&&!Y.done&&(M=K.return)&&M.call(K)}finally{if(ae)throw ae.error}}return _}function J(){for(var C=[],D=0;D<arguments.length;D++)C=C.concat(Z(arguments[D]));return C}function X(){for(var C=0,D=0,M=arguments.length;D<M;D++)C+=arguments[D].length;for(var K=Array(C),Y=0,D=0;D<M;D++)for(var _=arguments[D],ae=0,ve=_.length;ae<ve;ae++,Y++)K[Y]=_[ae];return K}function q(C){return this instanceof q?(this.v=C,this):new q(C)}function te(C,D,M){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var K=M.apply(C,D||[]),Y,_=[];return Y={},ae("next"),ae("throw"),ae("return"),Y[Symbol.asyncIterator]=function(){return this},Y;function ae(Se){K[Se]&&(Y[Se]=function($e){return new Promise(function(pt,He){_.push([Se,$e,pt,He])>1||ve(Se,$e)})})}function ve(Se,$e){try{we(K[Se]($e))}catch(pt){De(_[0][3],pt)}}function we(Se){Se.value instanceof q?Promise.resolve(Se.value.v).then(ye,Ce):De(_[0][2],Se)}function ye(Se){ve("next",Se)}function Ce(Se){ve("throw",Se)}function De(Se,$e){Se($e),_.shift(),_.length&&ve(_[0][0],_[0][1])}}function re(C){var D,M;return D={},K("next"),K("throw",function(Y){throw Y}),K("return"),D[Symbol.iterator]=function(){return this},D;function K(Y,_){D[Y]=C[Y]?function(ae){return(M=!M)?{value:q(C[Y](ae)),done:Y==="return"}:_?_(ae):ae}:_}}function se(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var D=C[Symbol.asyncIterator],M;return D?D.call(C):(C=typeof Q=="function"?Q(C):C[Symbol.iterator](),M={},K("next"),K("throw"),K("return"),M[Symbol.asyncIterator]=function(){return this},M);function K(_){M[_]=C[_]&&function(ae){return new Promise(function(ve,we){ae=C[_](ae),Y(ve,we,ae.done,ae.value)})}}function Y(_,ae,ve,we){Promise.resolve(we).then(function(ye){_({value:ye,done:ve})},ae)}}function ne(C,D){return Object.defineProperty?Object.defineProperty(C,"raw",{value:D}):C.raw=D,C}function be(C){if(C&&C.__esModule)return C;var D={};if(C!=null)for(var M in C)Object.hasOwnProperty.call(C,M)&&(D[M]=C[M]);return D.default=C,D}function le(C){return C&&C.__esModule?C:{default:C}}function fe(C,D){if(!D.has(C))throw new TypeError("attempted to get private field on non-instance");return D.get(C)}function ce(C,D,M){if(!D.has(C))throw new TypeError("attempted to set private field on non-instance");return D.set(C,M),M}function pe(C){return typeof C=="function"}var Te=!1,Ee={Promise:void 0,set useDeprecatedSynchronousErrorHandling(C){if(C){var D=new Error;""+D.stack}Te=C},get useDeprecatedSynchronousErrorHandling(){return Te}};function xe(C){setTimeout(function(){throw C},0)}var je={closed:!0,next:function(C){},error:function(C){if(Ee.useDeprecatedSynchronousErrorHandling)throw C;xe(C)},complete:function(){}},gt=function(){return Array.isArray||function(C){return C&&typeof C.length=="number"}}();function mt(C){return C!==null&&typeof C=="object"}var Pt=function(){function C(D){return Error.call(this),this.message=D?D.length+` errors occurred during unsubscription:
30
- `+D.map(function(M,K){return K+1+") "+M.toString()}).join(`
31
- `):"",this.name="UnsubscriptionError",this.errors=D,this}return C.prototype=Object.create(Error.prototype),C}(),qe=Pt,Ie=function(){function C(D){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,D&&(this._ctorUnsubscribe=!0,this._unsubscribe=D)}return C.prototype.unsubscribe=function(){var D;if(!this.closed){var M=this,K=M._parentOrParents,Y=M._ctorUnsubscribe,_=M._unsubscribe,ae=M._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,K instanceof C)K.remove(this);else if(K!==null)for(var ve=0;ve<K.length;++ve){var we=K[ve];we.remove(this)}if(pe(_)){Y&&(this._unsubscribe=void 0);try{_.call(this)}catch(De){D=De instanceof qe?At(De.errors):[De]}}if(gt(ae))for(var ve=-1,ye=ae.length;++ve<ye;){var Ce=ae[ve];if(mt(Ce))try{Ce.unsubscribe()}catch(Se){D=D||[],Se instanceof qe?D=D.concat(At(Se.errors)):D.push(Se)}}if(D)throw new qe(D)}},C.prototype.add=function(D){var M=D;if(!D)return C.EMPTY;switch(typeof D){case"function":M=new C(D);case"object":if(M===this||M.closed||typeof M.unsubscribe!="function")return M;if(this.closed)return M.unsubscribe(),M;if(!(M instanceof C)){var K=M;M=new C,M._subscriptions=[K]}break;default:throw new Error("unrecognized teardown "+D+" added to Subscription.")}var Y=M._parentOrParents;if(Y===null)M._parentOrParents=this;else if(Y instanceof C){if(Y===this)return M;M._parentOrParents=[Y,this]}else if(Y.indexOf(this)===-1)Y.push(this);else return M;var _=this._subscriptions;return _===null?this._subscriptions=[M]:_.push(M),M},C.prototype.remove=function(D){var M=this._subscriptions;if(M){var K=M.indexOf(D);K!==-1&&M.splice(K,1)}},C.EMPTY=function(D){return D.closed=!0,D}(new C),C}();function At(C){return C.reduce(function(D,M){return D.concat(M instanceof qe?M.errors:M)},[])}var et=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),ar=null,Pe=function(C){j(D,C);function D(M,K,Y){var _=C.call(this)||this;switch(_.syncErrorValue=null,_.syncErrorThrown=!1,_.syncErrorThrowable=!1,_.isStopped=!1,arguments.length){case 0:_.destination=je;break;case 1:if(!M){_.destination=je;break}if(typeof M=="object"){M instanceof D?(_.syncErrorThrowable=M.syncErrorThrowable,_.destination=M,M.add(_)):(_.syncErrorThrowable=!0,_.destination=new Ct(_,M));break}default:_.syncErrorThrowable=!0,_.destination=new Ct(_,M,K,Y);break}return _}return D.prototype[et]=function(){return this},D.create=function(M,K,Y){var _=new D(M,K,Y);return _.syncErrorThrowable=!1,_},D.prototype.next=function(M){this.isStopped||this._next(M)},D.prototype.error=function(M){this.isStopped||(this.isStopped=!0,this._error(M))},D.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},D.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,C.prototype.unsubscribe.call(this))},D.prototype._next=function(M){this.destination.next(M)},D.prototype._error=function(M){this.destination.error(M),this.unsubscribe()},D.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},D.prototype._unsubscribeAndRecycle=function(){var M=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=M,this},D}(Ie),Ct=function(C){j(D,C);function D(M,K,Y,_){var ae=C.call(this)||this;ae._parentSubscriber=M;var ve,we=ae;return pe(K)?ve=K:K&&(ve=K.next,Y=K.error,_=K.complete,K!==je&&(we=Object.create(K),pe(we.unsubscribe)&&ae.add(we.unsubscribe.bind(we)),we.unsubscribe=ae.unsubscribe.bind(ae))),ae._context=we,ae._next=ve,ae._error=Y,ae._complete=_,ae}return D.prototype.next=function(M){if(!this.isStopped&&this._next){var K=this._parentSubscriber;!Ee.useDeprecatedSynchronousErrorHandling||!K.syncErrorThrowable?this.__tryOrUnsub(this._next,M):this.__tryOrSetError(K,this._next,M)&&this.unsubscribe()}},D.prototype.error=function(M){if(!this.isStopped){var K=this._parentSubscriber,Y=Ee.useDeprecatedSynchronousErrorHandling;if(this._error)!Y||!K.syncErrorThrowable?(this.__tryOrUnsub(this._error,M),this.unsubscribe()):(this.__tryOrSetError(K,this._error,M),this.unsubscribe());else if(K.syncErrorThrowable)Y?(K.syncErrorValue=M,K.syncErrorThrown=!0):xe(M),this.unsubscribe();else{if(this.unsubscribe(),Y)throw M;xe(M)}}},D.prototype.complete=function(){var M=this;if(!this.isStopped){var K=this._parentSubscriber;if(this._complete){var Y=function(){return M._complete.call(M._context)};!Ee.useDeprecatedSynchronousErrorHandling||!K.syncErrorThrowable?(this.__tryOrUnsub(Y),this.unsubscribe()):(this.__tryOrSetError(K,Y),this.unsubscribe())}else this.unsubscribe()}},D.prototype.__tryOrUnsub=function(M,K){try{M.call(this._context,K)}catch(Y){if(this.unsubscribe(),Ee.useDeprecatedSynchronousErrorHandling)throw Y;xe(Y)}},D.prototype.__tryOrSetError=function(M,K,Y){if(!Ee.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{K.call(this._context,Y)}catch(_){return Ee.useDeprecatedSynchronousErrorHandling?(M.syncErrorValue=_,M.syncErrorThrown=!0,!0):(xe(_),!0)}return!1},D.prototype._unsubscribe=function(){var M=this._parentSubscriber;this._context=null,this._parentSubscriber=null,M.unsubscribe()},D}(Pe);function Rt(C){for(;C;){var D=C,M=D.closed,K=D.destination,Y=D.isStopped;if(M||Y)return!1;K&&K instanceof Pe?C=K:C=null}return!0}function Ht(C,D,M){if(C){if(C instanceof Pe)return C;if(C[et])return C[et]()}return!C&&!D&&!M?new Pe(je):new Pe(C,D,M)}var Xe=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Ye(C){return C}function zt(){for(var C=[],D=0;D<arguments.length;D++)C[D]=arguments[D];return yt(C)}function yt(C){return C.length===0?Ye:C.length===1?C[0]:function(M){return C.reduce(function(K,Y){return Y(K)},M)}}var Re=function(){function C(D){this._isScalar=!1,D&&(this._subscribe=D)}return C.prototype.lift=function(D){var M=new C;return M.source=this,M.operator=D,M},C.prototype.subscribe=function(D,M,K){var Y=this.operator,_=Ht(D,M,K);if(Y?_.add(Y.call(_,this.source)):_.add(this.source||Ee.useDeprecatedSynchronousErrorHandling&&!_.syncErrorThrowable?this._subscribe(_):this._trySubscribe(_)),Ee.useDeprecatedSynchronousErrorHandling&&_.syncErrorThrowable&&(_.syncErrorThrowable=!1,_.syncErrorThrown))throw _.syncErrorValue;return _},C.prototype._trySubscribe=function(D){try{return this._subscribe(D)}catch(M){Ee.useDeprecatedSynchronousErrorHandling&&(D.syncErrorThrown=!0,D.syncErrorValue=M),Rt(D)?D.error(M):console.warn(M)}},C.prototype.forEach=function(D,M){var K=this;return M=ze(M),new M(function(Y,_){var ae;ae=K.subscribe(function(ve){try{D(ve)}catch(we){_(we),ae&&ae.unsubscribe()}},_,Y)})},C.prototype._subscribe=function(D){var M=this.source;return M&&M.subscribe(D)},C.prototype[Xe]=function(){return this},C.prototype.pipe=function(){for(var D=[],M=0;M<arguments.length;M++)D[M]=arguments[M];return D.length===0?this:yt(D)(this)},C.prototype.toPromise=function(D){var M=this;return D=ze(D),new D(function(K,Y){var _;M.subscribe(function(ae){return _=ae},function(ae){return Y(ae)},function(){return K(_)})})},C.create=function(D){return new C(D)},C}();function ze(C){if(C||(C=Ee.Promise||Promise),!C)throw new Error("no Promise impl found");return C}function xt(C){return C&&typeof C.schedule=="function"}function tt(C,D){return function(K){if(typeof C!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return K.lift(new Qe(C,D))}}var Qe=function(){function C(D,M){this.project=D,this.thisArg=M}return C.prototype.call=function(D,M){return M.subscribe(new It(D,this.project,this.thisArg))},C}(),It=function(C){j(D,C);function D(M,K,Y){var _=C.call(this,M)||this;return _.project=K,_.count=0,_.thisArg=Y||_,_}return D.prototype._next=function(M){var K;try{K=this.project.call(this.thisArg,M,this.count++)}catch(Y){this.destination.error(Y);return}this.destination.next(K)},D}(Pe),ct=function(C){return function(D){for(var M=0,K=C.length;M<K&&!D.closed;M++)D.next(C[M]);D.complete()}},bt=function(C){return function(D){return C.then(function(M){D.closed||(D.next(M),D.complete())},function(M){return D.error(M)}).then(null,xe),D}};function We(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ve=We(),Wt=null,Fe=function(C){return function(D){var M=C[Ve]();do{var K=void 0;try{K=M.next()}catch(Y){return D.error(Y),D}if(K.done){D.complete();break}if(D.next(K.value),D.closed)break}while(!0);return typeof M.return=="function"&&D.add(function(){M.return&&M.return()}),D}},Et=function(C){return function(D){var M=C[Xe]();if(typeof M.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return M.subscribe(D)}},rt=function(C){return C&&typeof C.length=="number"&&typeof C!="function"};function Ke(C){return!!C&&typeof C.subscribe!="function"&&typeof C.then=="function"}var nt=function(C){if(!!C&&typeof C[Xe]=="function")return Et(C);if(rt(C))return ct(C);if(Ke(C))return bt(C);if(!!C&&typeof C[Ve]=="function")return Fe(C);var D=mt(C)?"an invalid object":"'"+C+"'",M="You provided "+D+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(M)};function wt(C,D){return new Re(function(M){var K=new Ie;return K.add(D.schedule(function(){var Y=C[Xe]();K.add(Y.subscribe({next:function(_){K.add(D.schedule(function(){return M.next(_)}))},error:function(_){K.add(D.schedule(function(){return M.error(_)}))},complete:function(){K.add(D.schedule(function(){return M.complete()}))}}))})),K})}function Dt(C,D){return new Re(function(M){var K=new Ie;return K.add(D.schedule(function(){return C.then(function(Y){K.add(D.schedule(function(){M.next(Y),K.add(D.schedule(function(){return M.complete()}))}))},function(Y){K.add(D.schedule(function(){return M.error(Y)}))})})),K})}function it(C,D){return new Re(function(M){var K=new Ie,Y=0;return K.add(D.schedule(function(){if(Y===C.length){M.complete();return}M.next(C[Y++]),M.closed||K.add(this.schedule())})),K})}function at(C,D){if(!C)throw new Error("Iterable cannot be null");return new Re(function(M){var K=new Ie,Y;return K.add(function(){Y&&typeof Y.return=="function"&&Y.return()}),K.add(D.schedule(function(){Y=C[Ve](),K.add(D.schedule(function(){if(!M.closed){var _,ae;try{var ve=Y.next();_=ve.value,ae=ve.done}catch(we){M.error(we);return}ae?M.complete():(M.next(_),this.schedule())}}))})),K})}function Vt(C){return C&&typeof C[Xe]=="function"}function Bt(C){return C&&typeof C[Ve]=="function"}function Nt(C,D){if(C!=null){if(Vt(C))return wt(C,D);if(Ke(C))return Dt(C,D);if(rt(C))return it(C,D);if(Bt(C)||typeof C=="string")return at(C,D)}throw new TypeError((C!==null&&typeof C||C)+" is not observable")}function lt(C,D){return D?Nt(C,D):C instanceof Re?C:new Re(nt(C))}var jt=function(C){j(D,C);function D(M){var K=C.call(this)||this;return K.parent=M,K}return D.prototype._next=function(M){this.parent.notifyNext(M)},D.prototype._error=function(M){this.parent.notifyError(M),this.unsubscribe()},D.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},D}(Pe),Kt=function(C){j(D,C);function D(M,K,Y){var _=C.call(this)||this;return _.parent=M,_.outerValue=K,_.outerIndex=Y,_}return D.prototype._next=function(M){this.parent.notifyNext(this.outerValue,M,this.outerIndex,this)},D.prototype._error=function(M){this.parent.notifyError(M),this.unsubscribe()},D.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},D}(Pe),Ze=function(C){j(D,C);function D(){return C!==null&&C.apply(this,arguments)||this}return D.prototype.notifyNext=function(M){this.destination.next(M)},D.prototype.notifyError=function(M){this.destination.error(M)},D.prototype.notifyComplete=function(){this.destination.complete()},D}(Pe),Gt=function(C){j(D,C);function D(){return C!==null&&C.apply(this,arguments)||this}return D.prototype.notifyNext=function(M,K,Y,_){this.destination.next(K)},D.prototype.notifyError=function(M){this.destination.error(M)},D.prototype.notifyComplete=function(M){this.destination.complete()},D}(Pe);function Ft(C,D){if(!D.closed){if(C instanceof Re)return C.subscribe(D);var M;try{M=nt(C)(D)}catch(K){D.error(K)}return M}}function Je(C,D,M){return M===void 0&&(M=Number.POSITIVE_INFINITY),typeof D=="function"?function(K){return K.pipe(Je(function(Y,_){return lt(C(Y,_)).pipe(tt(function(ae,ve){return D(Y,ae,_,ve)}))},M))}:(typeof D=="number"&&(M=D),function(K){return K.lift(new St(C,M))})}var St=function(){function C(D,M){M===void 0&&(M=Number.POSITIVE_INFINITY),this.project=D,this.concurrent=M}return C.prototype.call=function(D,M){return M.subscribe(new Tt(D,this.project,this.concurrent))},C}(),Tt=function(C){j(D,C);function D(M,K,Y){Y===void 0&&(Y=Number.POSITIVE_INFINITY);var _=C.call(this,M)||this;return _.project=K,_.concurrent=Y,_.hasCompleted=!1,_.buffer=[],_.active=0,_.index=0,_}return D.prototype._next=function(M){this.active<this.concurrent?this._tryNext(M):this.buffer.push(M)},D.prototype._tryNext=function(M){var K,Y=this.index++;try{K=this.project(M,Y)}catch(_){this.destination.error(_);return}this.active++,this._innerSub(K)},D.prototype._innerSub=function(M){var K=new jt(this),Y=this.destination;Y.add(K);var _=Ft(M,K);_!==K&&Y.add(_)},D.prototype._complete=function(){this.hasCompleted=!0,this.active===0&&this.buffer.length===0&&this.destination.complete(),this.unsubscribe()},D.prototype.notifyNext=function(M){this.destination.next(M)},D.prototype.notifyComplete=function(){var M=this.buffer;this.active--,M.length>0?this._next(M.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},D}(Ze),sr=null;function ft(C){return C===void 0&&(C=Number.POSITIVE_INFINITY),Je(Ye,C)}function dt(C,D){return D?it(C,D):new Re(ct(C))}function st(){for(var C=[],D=0;D<arguments.length;D++)C[D]=arguments[D];var M=Number.POSITIVE_INFINITY,K=null,Y=C[C.length-1];return xt(Y)?(K=C.pop(),C.length>1&&typeof C[C.length-1]=="number"&&(M=C.pop())):typeof Y=="number"&&(M=C.pop()),K===null&&C.length===1&&C[0]instanceof Re?C[0]:ft(M)(dt(C,K))}var ht=new Re(function(C){return C.complete()});function de(C){return C?Oe(C):ht}function Oe(C){return new Re(function(D){return C.schedule(function(){return D.complete()})})}function Ae(C){return new Re(function(D){var M;try{M=C()}catch(Y){D.error(Y);return}var K=M?lt(M):de();return K.subscribe(D)})}function Me(){}function Be(C,D,M){return function(Y){return Y.lift(new Ne(C,D,M))}}var Ne=function(){function C(D,M,K){this.nextOrObserver=D,this.error=M,this.complete=K}return C.prototype.call=function(D,M){return M.subscribe(new Le(D,this.nextOrObserver,this.error,this.complete))},C}(),Le=function(C){j(D,C);function D(M,K,Y,_){var ae=C.call(this,M)||this;return ae._tapNext=Me,ae._tapError=Me,ae._tapComplete=Me,ae._tapError=Y||Me,ae._tapComplete=_||Me,pe(K)?(ae._context=ae,ae._tapNext=K):K&&(ae._context=K,ae._tapNext=K.next||Me,ae._tapError=K.error||Me,ae._tapComplete=K.complete||Me),ae}return D.prototype._next=function(M){try{this._tapNext.call(this._context,M)}catch(K){this.destination.error(K);return}this.destination.next(M)},D.prototype._error=function(M){try{this._tapError.call(this._context,M)}catch(K){this.destination.error(K);return}this.destination.error(M)},D.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(M){this.destination.error(M);return}return this.destination.complete()},D}(Pe),Ot=function(){function C(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return C.prototype=Object.create(Error.prototype),C}(),ot=Ot,or=function(C){j(D,C);function D(M,K){var Y=C.call(this)||this;return Y.subject=M,Y.subscriber=K,Y.closed=!1,Y}return D.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var M=this.subject,K=M.observers;if(this.subject=null,!(!K||K.length===0||M.isStopped||M.closed)){var Y=K.indexOf(this.subscriber);Y!==-1&&K.splice(Y,1)}}},D}(Ie),Xt=function(C){j(D,C);function D(M){var K=C.call(this,M)||this;return K.destination=M,K}return D}(Pe),Yt=function(C){j(D,C);function D(){var M=C.call(this)||this;return M.observers=[],M.closed=!1,M.isStopped=!1,M.hasError=!1,M.thrownError=null,M}return D.prototype[et]=function(){return new Xt(this)},D.prototype.lift=function(M){var K=new Qt(this,this);return K.operator=M,K},D.prototype.next=function(M){if(this.closed)throw new ot;if(!this.isStopped)for(var K=this.observers,Y=K.length,_=K.slice(),ae=0;ae<Y;ae++)_[ae].next(M)},D.prototype.error=function(M){if(this.closed)throw new ot;this.hasError=!0,this.thrownError=M,this.isStopped=!0;for(var K=this.observers,Y=K.length,_=K.slice(),ae=0;ae<Y;ae++)_[ae].error(M);this.observers.length=0},D.prototype.complete=function(){if(this.closed)throw new ot;this.isStopped=!0;for(var M=this.observers,K=M.length,Y=M.slice(),_=0;_<K;_++)Y[_].complete();this.observers.length=0},D.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},D.prototype._trySubscribe=function(M){if(this.closed)throw new ot;return C.prototype._trySubscribe.call(this,M)},D.prototype._subscribe=function(M){if(this.closed)throw new ot;return this.hasError?(M.error(this.thrownError),Ie.EMPTY):this.isStopped?(M.complete(),Ie.EMPTY):(this.observers.push(M),new or(this,M))},D.prototype.asObservable=function(){var M=new Re;return M.source=this,M},D.create=function(M,K){return new Qt(M,K)},D}(Re),Qt=function(C){j(D,C);function D(M,K){var Y=C.call(this)||this;return Y.destination=M,Y.source=K,Y}return D.prototype.next=function(M){var K=this.destination;K&&K.next&&K.next(M)},D.prototype.error=function(M){var K=this.destination;K&&K.error&&this.destination.error(M)},D.prototype.complete=function(){var M=this.destination;M&&M.complete&&this.destination.complete()},D.prototype._subscribe=function(M){var K=this.source;return K?this.source.subscribe(M):Ie.EMPTY},D}(Yt);function Zt(){return function(D){return D.lift(new ur(D))}}var ur=function(){function C(D){this.connectable=D}return C.prototype.call=function(D,M){var K=this.connectable;K._refCount++;var Y=new cr(D,K),_=M.subscribe(Y);return Y.closed||(Y.connection=K.connect()),_},C}(),cr=function(C){j(D,C);function D(M,K){var Y=C.call(this,M)||this;return Y.connectable=K,Y}return D.prototype._unsubscribe=function(){var M=this.connectable;if(!M){this.connection=null;return}this.connectable=null;var K=M._refCount;if(K<=0){this.connection=null;return}if(M._refCount=K-1,K>1){this.connection=null;return}var Y=this.connection,_=M._connection;this.connection=null,_&&(!Y||_===Y)&&_.unsubscribe()},D}(Pe),ut=function(C){j(D,C);function D(M,K){var Y=C.call(this)||this;return Y.source=M,Y.subjectFactory=K,Y._refCount=0,Y._isComplete=!1,Y}return D.prototype._subscribe=function(M){return this.getSubject().subscribe(M)},D.prototype.getSubject=function(){var M=this._subject;return(!M||M.isStopped)&&(this._subject=this.subjectFactory()),this._subject},D.prototype.connect=function(){var M=this._connection;return M||(this._isComplete=!1,M=this._connection=new Ie,M.add(this.source.subscribe(new fr(this.getSubject(),this))),M.closed&&(this._connection=null,M=Ie.EMPTY)),M},D.prototype.refCount=function(){return Zt()(this)},D}(Re),lr=function(){var C=ut.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:C._subscribe},_isComplete:{value:C._isComplete,writable:!0},getSubject:{value:C.getSubject},connect:{value:C.connect},refCount:{value:C.refCount}}}(),fr=function(C){j(D,C);function D(M,K){var Y=C.call(this,M)||this;return Y.connectable=K,Y}return D.prototype._error=function(M){this._unsubscribe(),C.prototype._error.call(this,M)},D.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),C.prototype._complete.call(this)},D.prototype._unsubscribe=function(){var M=this.connectable;if(M){this.connectable=null;var K=M._connection;M._refCount=0,M._subject=null,M._connection=null,K&&K.unsubscribe()}},D}(Xt),dr=null,Dr=function(C){j(D,C);function D(M,K){var Y=C.call(this,M)||this;return Y.connectable=K,Y}return D.prototype._unsubscribe=function(){var M=this.connectable;if(!M){this.connection=null;return}this.connectable=null;var K=M._refCount;if(K<=0){this.connection=null;return}if(M._refCount=K-1,K>1){this.connection=null;return}var Y=this.connection,_=M._connection;this.connection=null,_&&(!Y||_===Y)&&_.unsubscribe()},D}(Pe);function hr(C,D){return function(K){var Y;if(typeof C=="function"?Y=C:Y=function(){return C},typeof D=="function")return K.lift(new Br(Y,D));var _=Object.create(K,lr);return _.source=K,_.subjectFactory=Y,_}}var Br=function(){function C(D,M){this.subjectFactory=D,this.selector=M}return C.prototype.call=function(D,M){var K=this.selector,Y=this.subjectFactory(),_=K(Y).subscribe(D);return _.add(M.subscribe(Y)),_},C}();function Jt(){return new Yt}function vr(){return function(C){return Zt()(hr(Jt)(C))}}var pr=function(){function C(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return C.prototype=Object.create(Error.prototype),C}(),Lt=pr;function _t(C,D){return function(K){return K.lift(new gr(C,D))}}var gr=function(){function C(D,M){this.predicate=D,this.thisArg=M}return C.prototype.call=function(D,M){return M.subscribe(new mr(D,this.predicate,this.thisArg))},C}(),mr=function(C){j(D,C);function D(M,K,Y){var _=C.call(this,M)||this;return _.predicate=K,_.thisArg=Y,_.count=0,_}return D.prototype._next=function(M){var K;try{K=this.predicate.call(this.thisArg,M,this.count++)}catch(Y){this.destination.error(Y);return}K&&this.destination.next(M)},D}(Pe),yr=function(){function C(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return C.prototype=Object.create(Error.prototype),C}(),Ge=yr;function Nr(C){return function(D){return C===0?de():D.lift(new br(C))}}var br=function(){function C(D){if(this.total=D,this.total<0)throw new Ge}return C.prototype.call=function(D,M){return M.subscribe(new Er(D,this.total))},C}(),Er=function(C){j(D,C);function D(M,K){var Y=C.call(this,M)||this;return Y.total=K,Y.count=0,Y}return D.prototype._next=function(M){var K=this.total,Y=++this.count;Y<=K&&(this.destination.next(M),Y===K&&(this.destination.complete(),this.unsubscribe()))},D}(Pe);function qt(C){return C===void 0&&(C=null),function(D){return D.lift(new er(C))}}var er=function(){function C(D){this.defaultValue=D}return C.prototype.call=function(D,M){return M.subscribe(new vt(D,this.defaultValue))},C}(),vt=function(C){j(D,C);function D(M,K){var Y=C.call(this,M)||this;return Y.defaultValue=K,Y.isEmpty=!0,Y}return D.prototype._next=function(M){this.isEmpty=!1,this.destination.next(M)},D.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},D}(Pe);function tr(C){return C===void 0&&(C=Sr),function(D){return D.lift(new rr(C))}}var rr=function(){function C(D){this.errorFactory=D}return C.prototype.call=function(D,M){return M.subscribe(new wr(D,this.errorFactory))},C}(),wr=function(C){j(D,C);function D(M,K){var Y=C.call(this,M)||this;return Y.errorFactory=K,Y.hasValue=!1,Y}return D.prototype._next=function(M){this.hasValue=!0,this.destination.next(M)},D.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var M=void 0;try{M=this.errorFactory()}catch(K){M=K}this.destination.error(M)},D}(Pe);function Sr(){return new Lt}function Tr(C,D){var M=arguments.length>=2;return function(K){return K.pipe(C?_t(function(Y,_){return C(Y,_,K)}):Ye,Nr(1),M?qt(D):tr(function(){return new Lt}))}}function Or(){return function(D){return D.lift(new Mr)}}var Mr=function(){function C(){}return C.prototype.call=function(D,M){return M.subscribe(new Pr(D))},C}(),Pr=function(C){j(D,C);function D(){return C!==null&&C.apply(this,arguments)||this}return D.prototype._next=function(M){},D}(Pe),Ar=e(48764).Buffer;const Cr=C=>Re.create(D=>{(0,h.log)("ble-verbose","start monitor "+C.uuid);function M(K){const Y=K.target;Y.value&&D.next(Ar.from(Y.value.buffer))}return C.startNotifications().then(()=>{C.addEventListener("characteristicvaluechanged",M)}),()=>{(0,h.log)("ble-verbose","end monitor "+C.uuid),C.stopNotifications()}});var nr=e(48764).Buffer;const ke=()=>{const{bluetooth:C}=navigator;if(typeof C>"u")throw new Error("web bluetooth not supported");return C},ir=()=>Re.create(C=>{const D=ke(),M=Y=>{C.next(Y.value)};D.addEventListener("availabilitychanged",M);let K=!1;return D.getAvailability().then(Y=>{K||C.next(Y)}),()=>{K=!0,D.removeEventListener("availabilitychanged",M)}}),Mt={},Ut=()=>({filters:B().map(C=>({services:[C]}))}),jr=async C=>{if(!C.gatt)throw new Error("bluetooth gatt not found");const[D]=await C.gatt.getPrimaryServices();if(!D)throw new Error("bluetooth service not found");const M=T(D.uuid);if(!M)throw new Error("bluetooth service infos not found");return[D,M]};async function kt(C,D){let M;if(typeof C=="string"){if(Mt[C])return(0,h.log)("ble-verbose","Transport in cache, using that."),Mt[C];M=await ke().requestDevice(Ut())}else M=C;M.gatt.connected||((0,h.log)("ble-verbose","not connected. connecting..."),await M.gatt.connect());const[K,Y]=await jr(M),{deviceModel:_,writeUuid:ae,notifyUuid:ve}=Y,[we,ye]=await Promise.all([K.getCharacteristic(ae),K.getCharacteristic(ve)]),Ce=Cr(ye).pipe(Be(He=>{(0,h.log)("ble-frame","<= "+He.toString("hex"))}),vr()),De=Ce.subscribe(),Se=new _e(M,we,Ce,_);if(!M.gatt.connected)throw new r.DisconnectedDevice;Mt[Se.id]=Se;const $e=He=>{console.log("onDisconnect!",He),delete Mt[Se.id],Se.notYetDisconnected=!1,De.unsubscribe(),M.removeEventListener("gattserverdisconnected",$e),(0,h.log)("ble-verbose",`BleTransport(${Se.id}) disconnected`),Se.emit("disconnect",He)};M.addEventListener("gattserverdisconnected",$e);let pt=Date.now();try{await Se.inferMTU()}finally{Date.now()-pt<1e3&&(D=!1),D&&(await M.gatt.disconnect(),await new Promise(Rr=>setTimeout(Rr,4e3)))}return D?kt(M,!1):Se}class _e extends p.ZP{static listen(D){(0,h.log)("ble-verbose","listen...");let M;ke().requestDevice(Ut()).then(async _=>{M||(D.next({type:"add",descriptor:_}),D.complete())},_=>{D.error(new r.TransportOpenUserCancelled(_.message))});function Y(){M=!0}return{unsubscribe:Y}}static async open(D){return kt(D,!0)}constructor(D,M,K,Y){super(),this.id=void 0,this.device=void 0,this.mtuSize=20,this.writeCharacteristic=void 0,this.notifyObservable=void 0,this.notYetDisconnected=!0,this.deviceModel=void 0,this.exchange=_=>this.exchangeAtomicImpl(async()=>{try{const ae=_.toString("hex");(0,h.log)("apdu",`=> ${ae}`);const ve=await st(this.notifyObservable.pipe(f.n),(0,o.o)(this.write,_,this.mtuSize)).toPromise(),we=ve.toString("hex");return(0,h.log)("apdu",`<= ${we}`),ve}catch(ae){throw(0,h.log)("ble-error","exchange got "+String(ae)),this.notYetDisconnected&&this.device.gatt.disconnect(),ae}}),this.write=async _=>{(0,h.log)("ble-frame","=> "+_.toString("hex")),await this.writeCharacteristic.writeValue(_)},this.id=D.id,this.device=D,this.writeCharacteristic=M,this.notifyObservable=K,this.deviceModel=Y,(0,h.log)("ble-verbose",`BleTransport(${String(this.id)}) new instance`)}async inferMTU(){let D=23;if(await this.exchangeAtomicImpl(async()=>{try{D=await st(this.notifyObservable.pipe(Tr(M=>M.readUInt8(0)===8),tt(M=>M.readUInt8(5))),Ae(()=>lt(this.write(nr.from([8,0,0,0,0])))).pipe(Or())).toPromise()+3}catch(M){throw(0,h.log)("ble-error","inferMTU got "+String(M)),this.device.gatt.disconnect(),M}}),D>23){const M=D-3;(0,h.log)("ble-verbose",`BleTransport(${String(this.id)}) mtu set to ${String(M)}`),this.mtuSize=M}return this.mtuSize}setScrambleKey(){}async close(){this.exchangeBusyPromise&&await this.exchangeBusyPromise}}_e.isSupported=()=>Promise.resolve().then(ke).then(()=>!0,()=>!1),_e.observeAvailability=C=>ir.subscribe(C),_e.list=()=>Promise.resolve([]),_e.disconnect=async C=>{(0,h.log)("ble-verbose",`user disconnect(${C})`);const D=Mt[C];D&&D.device.gatt.disconnect()}},27590:function(G,l,e){"use strict";e.d(l,{ZP:function(){return g}});var p=e(17187),r=e.n(p),u=e(76358),a=e(48764).Buffer;class g{constructor(){this.exchangeTimeout=3e4,this.unresponsiveTimeout=15e3,this.deviceModel=null,this._events=new(r()),this.send=async(c,v,y,b,N=a.alloc(0),I=[u.StatusCodes.OK])=>{if(N.length>=256)throw new u.TransportError("data.length exceed 256 bytes limit. Got: "+N.length,"DataLengthTooBig");const z=await this.exchange(a.concat([a.from([c,v,y,b]),a.from([N.length]),N])),x=z.readUInt16BE(z.length-2);if(!I.some(w=>w===x))throw new u.TransportStatusError(x);return z},this.exchangeBusyPromise=void 0,this.exchangeAtomicImpl=async c=>{if(this.exchangeBusyPromise)throw new u.TransportRaceCondition("An action was already pending on the Ledger device. Please deny or reconnect.");let v;const y=new Promise(I=>{v=I});this.exchangeBusyPromise=y;let b=!1;const N=setTimeout(()=>{b=!0,this.emit("unresponsive")},this.unresponsiveTimeout);try{const I=await c();return b&&this.emit("responsive"),I}finally{clearTimeout(N),v&&v(),this.exchangeBusyPromise=null}},this._appAPIlock=null}exchange(c){throw new Error("exchange not implemented")}setScrambleKey(c){}close(){return Promise.resolve()}on(c,v){this._events.on(c,v)}off(c,v){this._events.removeListener(c,v)}emit(c,...v){this._events.emit(c,...v)}setDebugMode(){console.warn("setDebugMode is deprecated. use @ledgerhq/logs instead. No logs are emitted in this anymore.")}setExchangeTimeout(c){this.exchangeTimeout=c}setExchangeUnresponsiveTimeout(c){this.unresponsiveTimeout=c}static create(c=3e3,v){return new Promise((y,b)=>{let N=!1;const I=this.listen({next:x=>{N=!0,I&&I.unsubscribe(),z&&clearTimeout(z),this.open(x.descriptor,c).then(y,b)},error:x=>{z&&clearTimeout(z),b(x)},complete:()=>{z&&clearTimeout(z),N||b(new u.TransportError(this.ErrorMessage_NoDeviceFound,"NoDeviceFound"))}}),z=v?setTimeout(()=>{I.unsubscribe(),b(new u.TransportError(this.ErrorMessage_ListenTimeout,"ListenTimeout"))},v):null})}decorateAppAPIMethods(c,v,y){for(let b of v)c[b]=this.decorateAppAPIMethod(b,c[b],c,y)}decorateAppAPIMethod(c,v,y,b){return async(...N)=>{const{_appAPIlock:I}=this;if(I)return Promise.reject(new u.TransportError("Ledger Device is busy (lock "+I+")","TransportLocked"));try{return this._appAPIlock=c,this.setScrambleKey(b),await v.apply(y,N)}finally{this._appAPIlock=null}}}}g.isSupported=void 0,g.list=void 0,g.listen=void 0,g.open=void 0,g.ErrorMessage_ListenTimeout="No Ledger device found (timeout)",g.ErrorMessage_NoDeviceFound="No Ledger device found"},28716:function(G,l,e){"use strict";e.r(l),e.d(l,{listen:function(){return a},log:function(){return u}});let p=0;const r=[],u=(s,c,v)=>{const y={type:s,id:String(++p),date:new Date};c&&(y.message=c),v&&(y.data=v),g(y)},a=s=>(r.push(s),()=>{const c=r.indexOf(s);c!==-1&&(r[c]=r[r.length-1],r.pop())});function g(s){for(let c=0;c<r.length;c++)try{r[c](s)}catch(v){console.error(v)}}typeof window<"u"&&(window.__ledgerLogsListen=a)},92882:function(G){"use strict";for(var l="qpzry9x8gf2tvdw0s3jn54khce6mua7l",e={},p=0;p<l.length;p++){var r=l.charAt(p);if(e[r]!==void 0)throw new TypeError(r+" is ambiguous");e[r]=p}function u(x){var w=x>>25;return(x&33554431)<<5^-(w>>0&1)&996825010^-(w>>1&1)&642813549^-(w>>2&1)&513874426^-(w>>3&1)&1027748829^-(w>>4&1)&705979059}function a(x){for(var w=1,P=0;P<x.length;++P){var S=x.charCodeAt(P);if(S<33||S>126)return"Invalid prefix ("+x+")";w=u(w)^S>>5}for(w=u(w),P=0;P<x.length;++P){var L=x.charCodeAt(P);w=u(w)^L&31}return w}function g(x,w,P){if(P=P||90,x.length+7+w.length>P)throw new TypeError("Exceeds length limit");x=x.toLowerCase();var S=a(x);if(typeof S=="string")throw new Error(S);for(var L=x+"1",B=0;B<w.length;++B){var T=w[B];if(T>>5!==0)throw new Error("Non 5-bit word");S=u(S)^T,L+=l.charAt(T)}for(B=0;B<6;++B)S=u(S);for(S^=1,B=0;B<6;++B){var o=S>>(5-B)*5&31;L+=l.charAt(o)}return L}function s(x,w){if(w=w||90,x.length<8)return x+" too short";if(x.length>w)return"Exceeds length limit";var P=x.toLowerCase(),S=x.toUpperCase();if(x!==P&&x!==S)return"Mixed-case string "+x;x=P;var L=x.lastIndexOf("1");if(L===-1)return"No separator character for "+x;if(L===0)return"Missing prefix for "+x;var B=x.slice(0,L),T=x.slice(L+1);if(T.length<6)return"Data too short";var o=a(B);if(typeof o=="string")return o;for(var f=[],h=0;h<T.length;++h){var E=T.charAt(h),j=e[E];if(j===void 0)return"Unknown character "+E;o=u(o)^j,!(h+6>=T.length)&&f.push(j)}return o!==1?"Invalid checksum for "+x:{prefix:B,words:f}}function c(){var x=s.apply(null,arguments);if(typeof x=="object")return x}function v(x){var w=s.apply(null,arguments);if(typeof w=="object")return w;throw new Error(w)}function y(x,w,P,S){for(var L=0,B=0,T=(1<<P)-1,o=[],f=0;f<x.length;++f)for(L=L<<w|x[f],B+=w;B>=P;)B-=P,o.push(L>>B&T);if(S)B>0&&o.push(L<<P-B&T);else{if(B>=w)return"Excess padding";if(L<<P-B&T)return"Non-zero padding"}return o}function b(x){var w=y(x,8,5,!0);if(Array.isArray(w))return w}function N(x){var w=y(x,8,5,!0);if(Array.isArray(w))return w;throw new Error(w)}function I(x){var w=y(x,5,8,!1);if(Array.isArray(w))return w}function z(x){var w=y(x,5,8,!1);if(Array.isArray(w))return w;throw new Error(w)}G.exports={decodeUnsafe:c,decode:v,encode:g,toWordsUnsafe:b,toWords:N,fromWordsUnsafe:I,fromWords:z}},93302:function(G,l,e){var p;(function(r){"use strict";var u,a=20,g=1,s=1e6,c=1e6,v=-7,y=21,b="[big.js] ",N=b+"Invalid ",I=N+"decimal places",z=N+"rounding mode",x=b+"Division by zero",w={},P=void 0,S=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function L(){function f(h){var E=this;if(!(E instanceof f))return h===P?L():new f(h);h instanceof f?(E.s=h.s,E.e=h.e,E.c=h.c.slice()):B(E,h),E.constructor=f}return f.prototype=w,f.DP=a,f.RM=g,f.NE=v,f.PE=y,f.version="5.2.2",f}function B(f,h){var E,j,F;if(h===0&&1/h<0)h="-0";else if(!S.test(h+=""))throw Error(N+"number");for(f.s=h.charAt(0)=="-"?(h=h.slice(1),-1):1,(E=h.indexOf("."))>-1&&(h=h.replace(".","")),(j=h.search(/e/i))>0?(E<0&&(E=j),E+=+h.slice(j+1),h=h.substring(0,j)):E<0&&(E=h.length),F=h.length,j=0;j<F&&h.charAt(j)=="0";)++j;if(j==F)f.c=[f.e=0];else{for(;F>0&&h.charAt(--F)=="0";);for(f.e=E-j-1,f.c=[],E=0;j<=F;)f.c[E++]=+h.charAt(j++)}return f}function T(f,h,E,j){var F=f.c,W=f.e+h+1;if(W<F.length){if(E===1)j=F[W]>=5;else if(E===2)j=F[W]>5||F[W]==5&&(j||W<0||F[W+1]!==P||F[W-1]&1);else if(E===3)j=j||!!F[0];else if(j=!1,E!==0)throw Error(z);if(W<1)F.length=1,j?(f.e=-h,F[0]=1):F[0]=f.e=0;else{if(F.length=W--,j)for(;++F[W]>9;)F[W]=0,W--||(++f.e,F.unshift(1));for(W=F.length;!F[--W];)F.pop()}}else if(E<0||E>3||E!==~~E)throw Error(z);return f}function o(f,h,E,j){var F,W,d=f.constructor,A=!f.c[0];if(E!==P){if(E!==~~E||E<(h==3)||E>s)throw Error(h==3?N+"precision":I);for(f=new d(f),E=j-f.e,f.c.length>++j&&T(f,E,d.RM),h==2&&(j=f.e+E+1);f.c.length<j;)f.c.push(0)}if(F=f.e,W=f.c.join(""),E=W.length,h!=2&&(h==1||h==3&&j<=F||F<=d.NE||F>=d.PE))W=W.charAt(0)+(E>1?"."+W.slice(1):"")+(F<0?"e":"e+")+F;else if(F<0){for(;++F;)W="0"+W;W="0."+W}else if(F>0)if(++F>E)for(F-=E;F--;)W+="0";else F<E&&(W=W.slice(0,F)+"."+W.slice(F));else E>1&&(W=W.charAt(0)+"."+W.slice(1));return f.s<0&&(!A||h==4)?"-"+W:W}w.abs=function(){var f=new this.constructor(this);return f.s=1,f},w.cmp=function(f){var h,E=this,j=E.c,F=(f=new E.constructor(f)).c,W=E.s,d=f.s,A=E.e,k=f.e;if(!j[0]||!F[0])return j[0]?W:F[0]?-d:0;if(W!=d)return W;if(h=W<0,A!=k)return A>k^h?1:-1;for(d=(A=j.length)<(k=F.length)?A:k,W=-1;++W<d;)if(j[W]!=F[W])return j[W]>F[W]^h?1:-1;return A==k?0:A>k^h?1:-1},w.div=function(f){var h=this,E=h.constructor,j=h.c,F=(f=new E(f)).c,W=h.s==f.s?1:-1,d=E.DP;if(d!==~~d||d<0||d>s)throw Error(I);if(!F[0])throw Error(x);if(!j[0])return new E(W*0);var A,k,O,U,H,V=F.slice(),Q=A=F.length,Z=j.length,J=j.slice(0,A),X=J.length,q=f,te=q.c=[],re=0,se=d+(q.e=h.e-f.e)+1;for(q.s=W,W=se<0?0:se,V.unshift(0);X++<A;)J.push(0);do{for(O=0;O<10;O++){if(A!=(X=J.length))U=A>X?1:-1;else for(H=-1,U=0;++H<A;)if(F[H]!=J[H]){U=F[H]>J[H]?1:-1;break}if(U<0){for(k=X==A?F:V;X;){if(J[--X]<k[X]){for(H=X;H&&!J[--H];)J[H]=9;--J[H],J[X]+=10}J[X]-=k[X]}for(;!J[0];)J.shift()}else break}te[re++]=U?O:++O,J[0]&&U?J[X]=j[Q]||0:J=[j[Q]]}while((Q++<Z||J[0]!==P)&&W--);return!te[0]&&re!=1&&(te.shift(),q.e--),re>se&&T(q,d,E.RM,J[0]!==P),q},w.eq=function(f){return!this.cmp(f)},w.gt=function(f){return this.cmp(f)>0},w.gte=function(f){return this.cmp(f)>-1},w.lt=function(f){return this.cmp(f)<0},w.lte=function(f){return this.cmp(f)<1},w.minus=w.sub=function(f){var h,E,j,F,W=this,d=W.constructor,A=W.s,k=(f=new d(f)).s;if(A!=k)return f.s=-k,W.plus(f);var O=W.c.slice(),U=W.e,H=f.c,V=f.e;if(!O[0]||!H[0])return H[0]?(f.s=-k,f):new d(O[0]?W:0);if(A=U-V){for((F=A<0)?(A=-A,j=O):(V=U,j=H),j.reverse(),k=A;k--;)j.push(0);j.reverse()}else for(E=((F=O.length<H.length)?O:H).length,A=k=0;k<E;k++)if(O[k]!=H[k]){F=O[k]<H[k];break}if(F&&(j=O,O=H,H=j,f.s=-f.s),(k=(E=H.length)-(h=O.length))>0)for(;k--;)O[h++]=0;for(k=h;E>A;){if(O[--E]<H[E]){for(h=E;h&&!O[--h];)O[h]=9;--O[h],O[E]+=10}O[E]-=H[E]}for(;O[--k]===0;)O.pop();for(;O[0]===0;)O.shift(),--V;return O[0]||(f.s=1,O=[V=0]),f.c=O,f.e=V,f},w.mod=function(f){var h,E=this,j=E.constructor,F=E.s,W=(f=new j(f)).s;if(!f.c[0])throw Error(x);return E.s=f.s=1,h=f.cmp(E)==1,E.s=F,f.s=W,h?new j(E):(F=j.DP,W=j.RM,j.DP=j.RM=0,E=E.div(f),j.DP=F,j.RM=W,this.minus(E.times(f)))},w.plus=w.add=function(f){var h,E=this,j=E.constructor,F=E.s,W=(f=new j(f)).s;if(F!=W)return f.s=-W,E.minus(f);var d=E.e,A=E.c,k=f.e,O=f.c;if(!A[0]||!O[0])return O[0]?f:new j(A[0]?E:F*0);if(A=A.slice(),F=d-k){for(F>0?(k=d,h=O):(F=-F,h=A),h.reverse();F--;)h.push(0);h.reverse()}for(A.length-O.length<0&&(h=O,O=A,A=h),F=O.length,W=0;F;A[F]%=10)W=(A[--F]=A[F]+O[F]+W)/10|0;for(W&&(A.unshift(W),++k),F=A.length;A[--F]===0;)A.pop();return f.c=A,f.e=k,f},w.pow=function(f){var h=this,E=new h.constructor(1),j=E,F=f<0;if(f!==~~f||f<-c||f>c)throw Error(N+"exponent");for(F&&(f=-f);f&1&&(j=j.times(h)),f>>=1,!!f;)h=h.times(h);return F?E.div(j):j},w.round=function(f,h){var E=this.constructor;if(f===P)f=0;else if(f!==~~f||f<-s||f>s)throw Error(I);return T(new E(this),f,h===P?E.RM:h)},w.sqrt=function(){var f,h,E,j=this,F=j.constructor,W=j.s,d=j.e,A=new F(.5);if(!j.c[0])return new F(j);if(W<0)throw Error(b+"No square root");W=Math.sqrt(j+""),W===0||W===1/0?(h=j.c.join(""),h.length+d&1||(h+="0"),W=Math.sqrt(h),d=((d+1)/2|0)-(d<0||d&1),f=new F((W==1/0?"1e":(W=W.toExponential()).slice(0,W.indexOf("e")+1))+d)):f=new F(W),d=f.e+(F.DP+=4);do E=f,f=A.times(E.plus(j.div(E)));while(E.c.slice(0,d).join("")!==f.c.slice(0,d).join(""));return T(f,F.DP-=4,F.RM)},w.times=w.mul=function(f){var h,E=this,j=E.constructor,F=E.c,W=(f=new j(f)).c,d=F.length,A=W.length,k=E.e,O=f.e;if(f.s=E.s==f.s?1:-1,!F[0]||!W[0])return new j(f.s*0);for(f.e=k+O,d<A&&(h=F,F=W,W=h,O=d,d=A,A=O),h=new Array(O=d+A);O--;)h[O]=0;for(k=A;k--;){for(A=0,O=d+k;O>k;)A=h[O]+W[k]*F[O-k-1]+A,h[O--]=A%10,A=A/10|0;h[O]=(h[O]+A)%10}for(A?++f.e:h.shift(),k=h.length;!h[--k];)h.pop();return f.c=h,f},w.toExponential=function(f){return o(this,1,f,f)},w.toFixed=function(f){return o(this,2,f,this.e+f)},w.toPrecision=function(f){return o(this,3,f,f-1)},w.toString=function(){return o(this)},w.valueOf=w.toJSON=function(){return o(this,4)},u=L(),u.default=u.Big=u,p=function(){return u}.call(l,e,l,G),p!==void 0&&(G.exports=p)})(this)},78249:function(G,l){(function(e,p){G.exports=l=p()})(this,function(){var e=e||function(p,r){var u=Object.create||function(){function w(){}return function(P){var S;return w.prototype=P,S=new w,w.prototype=null,S}}(),a={},g=a.lib={},s=g.Base=function(){return{extend:function(w){var P=u(this);return w&&P.mixIn(w),(!P.hasOwnProperty("init")||this.init===P.init)&&(P.init=function(){P.$super.init.apply(this,arguments)}),P.init.prototype=P,P.$super=this,P},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var P in w)w.hasOwnProperty(P)&&(this[P]=w[P]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=g.WordArray=s.extend({init:function(w,P){w=this.words=w||[],P!=r?this.sigBytes=P:this.sigBytes=w.length*4},toString:function(w){return(w||y).stringify(this)},concat:function(w){var P=this.words,S=w.words,L=this.sigBytes,B=w.sigBytes;if(this.clamp(),L%4)for(var T=0;T<B;T++){var o=S[T>>>2]>>>24-T%4*8&255;P[L+T>>>2]|=o<<24-(L+T)%4*8}else for(var T=0;T<B;T+=4)P[L+T>>>2]=S[T>>>2];return this.sigBytes+=B,this},clamp:function(){var w=this.words,P=this.sigBytes;w[P>>>2]&=4294967295<<32-P%4*8,w.length=p.ceil(P/4)},clone:function(){var w=s.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var P=[],S=function(f){var f=f,h=987654321,E=4294967295;return function(){h=36969*(h&65535)+(h>>16)&E,f=18e3*(f&65535)+(f>>16)&E;var j=(h<<16)+f&E;return j/=4294967296,j+=.5,j*(p.random()>.5?1:-1)}},L=0,B;L<w;L+=4){var T=S((B||p.random())*4294967296);B=T()*987654071,P.push(T()*4294967296|0)}return new c.init(P,w)}}),v=a.enc={},y=v.Hex={stringify:function(w){for(var P=w.words,S=w.sigBytes,L=[],B=0;B<S;B++){var T=P[B>>>2]>>>24-B%4*8&255;L.push((T>>>4).toString(16)),L.push((T&15).toString(16))}return L.join("")},parse:function(w){for(var P=w.length,S=[],L=0;L<P;L+=2)S[L>>>3]|=parseInt(w.substr(L,2),16)<<24-L%8*4;return new c.init(S,P/2)}},b=v.Latin1={stringify:function(w){for(var P=w.words,S=w.sigBytes,L=[],B=0;B<S;B++){var T=P[B>>>2]>>>24-B%4*8&255;L.push(String.fromCharCode(T))}return L.join("")},parse:function(w){for(var P=w.length,S=[],L=0;L<P;L++)S[L>>>2]|=(w.charCodeAt(L)&255)<<24-L%4*8;return new c.init(S,P)}},N=v.Utf8={stringify:function(w){try{return decodeURIComponent(escape(b.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return b.parse(unescape(encodeURIComponent(w)))}},I=g.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=N.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var P=this._data,S=P.words,L=P.sigBytes,B=this.blockSize,T=B*4,o=L/T;w?o=p.ceil(o):o=p.max((o|0)-this._minBufferSize,0);var f=o*B,h=p.min(f*4,L);if(f){for(var E=0;E<f;E+=B)this._doProcessBlock(S,E);var j=S.splice(0,f);P.sigBytes-=h}return new c.init(j,h)},clone:function(){var w=s.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0}),z=g.Hasher=I.extend({cfg:s.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){I.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var P=this._doFinalize();return P},blockSize:512/32,_createHelper:function(w){return function(P,S){return new w.init(S).finalize(P)}},_createHmacHelper:function(w){return function(P,S){return new x.HMAC.init(w,S).finalize(P)}}}),x=a.algo={};return a}(Math);return e})},63465:function(G,l,e){(function(p,r){G.exports=l=r(e(78249))})(this,function(p){return p.enc.Hex})},30706:function(G,l,e){(function(p,r){G.exports=l=r(e(78249))})(this,function(p){/** @preserve
32
- (c) 2012 by Cédric Mesnil. All rights reserved.
33
-
34
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
35
-
36
- - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
37
- - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
38
-
39
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40
- */return function(r){var u=p,a=u.lib,g=a.WordArray,s=a.Hasher,c=u.algo,v=g.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),y=g.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),b=g.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),N=g.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),I=g.create([0,1518500249,1859775393,2400959708,2840853838]),z=g.create([1352829926,1548603684,1836072691,2053994217,0]),x=c.RIPEMD160=s.extend({_doReset:function(){this._hash=g.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(o,f){for(var h=0;h<16;h++){var E=f+h,j=o[E];o[E]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360}var F=this._hash.words,W=I.words,d=z.words,A=v.words,k=y.words,O=b.words,U=N.words,H,V,Q,Z,J,X,q,te,re,se;X=H=F[0],q=V=F[1],te=Q=F[2],re=Z=F[3],se=J=F[4];for(var ne,h=0;h<80;h+=1)ne=H+o[f+A[h]]|0,h<16?ne+=w(V,Q,Z)+W[0]:h<32?ne+=P(V,Q,Z)+W[1]:h<48?ne+=S(V,Q,Z)+W[2]:h<64?ne+=L(V,Q,Z)+W[3]:ne+=B(V,Q,Z)+W[4],ne=ne|0,ne=T(ne,O[h]),ne=ne+J|0,H=J,J=Z,Z=T(Q,10),Q=V,V=ne,ne=X+o[f+k[h]]|0,h<16?ne+=B(q,te,re)+d[0]:h<32?ne+=L(q,te,re)+d[1]:h<48?ne+=S(q,te,re)+d[2]:h<64?ne+=P(q,te,re)+d[3]:ne+=w(q,te,re)+d[4],ne=ne|0,ne=T(ne,U[h]),ne=ne+se|0,X=se,se=re,re=T(te,10),te=q,q=ne;ne=F[1]+Q+re|0,F[1]=F[2]+Z+se|0,F[2]=F[3]+J+X|0,F[3]=F[4]+H+q|0,F[4]=F[0]+V+te|0,F[0]=ne},_doFinalize:function(){var o=this._data,f=o.words,h=this._nDataBytes*8,E=o.sigBytes*8;f[E>>>5]|=128<<24-E%32,f[(E+64>>>9<<4)+14]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,o.sigBytes=(f.length+1)*4,this._process();for(var j=this._hash,F=j.words,W=0;W<5;W++){var d=F[W];F[W]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360}return j},clone:function(){var o=s.clone.call(this);return o._hash=this._hash.clone(),o}});function w(o,f,h){return o^f^h}function P(o,f,h){return o&f|~o&h}function S(o,f,h){return(o|~f)^h}function L(o,f,h){return o&h|f&~h}function B(o,f,h){return o^(f|~h)}function T(o,f){return o<<f|o>>>32-f}u.RIPEMD160=s._createHelper(x),u.HmacRIPEMD160=s._createHmacHelper(x)}(Math),p.RIPEMD160})},52153:function(G,l,e){(function(p,r){G.exports=l=r(e(78249))})(this,function(p){return function(r){var u=p,a=u.lib,g=a.WordArray,s=a.Hasher,c=u.algo,v=[],y=[];(function(){function I(P){for(var S=r.sqrt(P),L=2;L<=S;L++)if(!(P%L))return!1;return!0}function z(P){return(P-(P|0))*4294967296|0}for(var x=2,w=0;w<64;)I(x)&&(w<8&&(v[w]=z(r.pow(x,1/2))),y[w]=z(r.pow(x,1/3)),w++),x++})();var b=[],N=c.SHA256=s.extend({_doReset:function(){this._hash=new g.init(v.slice(0))},_doProcessBlock:function(I,z){for(var x=this._hash.words,w=x[0],P=x[1],S=x[2],L=x[3],B=x[4],T=x[5],o=x[6],f=x[7],h=0;h<64;h++){if(h<16)b[h]=I[z+h]|0;else{var E=b[h-15],j=(E<<25|E>>>7)^(E<<14|E>>>18)^E>>>3,F=b[h-2],W=(F<<15|F>>>17)^(F<<13|F>>>19)^F>>>10;b[h]=j+b[h-7]+W+b[h-16]}var d=B&T^~B&o,A=w&P^w&S^P&S,k=(w<<30|w>>>2)^(w<<19|w>>>13)^(w<<10|w>>>22),O=(B<<26|B>>>6)^(B<<21|B>>>11)^(B<<7|B>>>25),U=f+O+d+y[h]+b[h],H=k+A;f=o,o=T,T=B,B=L+U|0,L=S,S=P,P=w,w=U+H|0}x[0]=x[0]+w|0,x[1]=x[1]+P|0,x[2]=x[2]+S|0,x[3]=x[3]+L|0,x[4]=x[4]+B|0,x[5]=x[5]+T|0,x[6]=x[6]+o|0,x[7]=x[7]+f|0},_doFinalize:function(){var I=this._data,z=I.words,x=this._nDataBytes*8,w=I.sigBytes*8;return z[w>>>5]|=128<<24-w%32,z[(w+64>>>9<<4)+14]=r.floor(x/4294967296),z[(w+64>>>9<<4)+15]=x,I.sigBytes=z.length*4,this._process(),this._hash},clone:function(){var I=s.clone.call(this);return I._hash=this._hash.clone(),I}});u.SHA256=s._createHelper(N),u.HmacSHA256=s._createHmacHelper(N)}(Math),p.SHA256})},13327:function(G,l,e){(function(p,r,u){G.exports=l=r(e(78249),e(64938))})(this,function(p){return function(r){var u=p,a=u.lib,g=a.WordArray,s=a.Hasher,c=u.x64,v=c.Word,y=u.algo,b=[],N=[],I=[];(function(){for(var w=1,P=0,S=0;S<24;S++){b[w+5*P]=(S+1)*(S+2)/2%64;var L=P%5,B=(2*w+3*P)%5;w=L,P=B}for(var w=0;w<5;w++)for(var P=0;P<5;P++)N[w+5*P]=P+(2*w+3*P)%5*5;for(var T=1,o=0;o<24;o++){for(var f=0,h=0,E=0;E<7;E++){if(T&1){var j=(1<<E)-1;j<32?h^=1<<j:f^=1<<j-32}T&128?T=T<<1^113:T<<=1}I[o]=v.create(f,h)}})();var z=[];(function(){for(var w=0;w<25;w++)z[w]=v.create()})();var x=y.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var w=this._state=[],P=0;P<25;P++)w[P]=new v.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(w,P){for(var S=this._state,L=this.blockSize/2,B=0;B<L;B++){var T=w[P+2*B],o=w[P+2*B+1];T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,o=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360;var f=S[B];f.high^=o,f.low^=T}for(var h=0;h<24;h++){for(var E=0;E<5;E++){for(var j=0,F=0,W=0;W<5;W++){var f=S[E+5*W];j^=f.high,F^=f.low}var d=z[E];d.high=j,d.low=F}for(var E=0;E<5;E++)for(var A=z[(E+4)%5],k=z[(E+1)%5],O=k.high,U=k.low,j=A.high^(O<<1|U>>>31),F=A.low^(U<<1|O>>>31),W=0;W<5;W++){var f=S[E+5*W];f.high^=j,f.low^=F}for(var H=1;H<25;H++){var f=S[H],V=f.high,Q=f.low,Z=b[H];if(Z<32)var j=V<<Z|Q>>>32-Z,F=Q<<Z|V>>>32-Z;else var j=Q<<Z-32|V>>>64-Z,F=V<<Z-32|Q>>>64-Z;var J=z[N[H]];J.high=j,J.low=F}var X=z[0],q=S[0];X.high=q.high,X.low=q.low;for(var E=0;E<5;E++)for(var W=0;W<5;W++){var H=E+5*W,f=S[H],te=z[H],re=z[(E+1)%5+5*W],se=z[(E+2)%5+5*W];f.high=te.high^~re.high&se.high,f.low=te.low^~re.low&se.low}var f=S[0],ne=I[h];f.high^=ne.high,f.low^=ne.low}},_doFinalize:function(){var w=this._data,P=w.words,S=this._nDataBytes*8,L=w.sigBytes*8,B=this.blockSize*32;P[L>>>5]|=1<<24-L%32,P[(r.ceil((L+1)/B)*B>>>5)-1]|=128,w.sigBytes=P.length*4,this._process();for(var T=this._state,o=this.cfg.outputLength/8,f=o/8,h=[],E=0;E<f;E++){var j=T[E],F=j.high,W=j.low;F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,W=(W<<8|W>>>24)&16711935|(W<<24|W>>>8)&4278255360,h.push(W),h.push(F)}return new g.init(h,o)},clone:function(){for(var w=s.clone.call(this),P=w._state=this._state.slice(0),S=0;S<25;S++)P[S]=P[S].clone();return w}});u.SHA3=s._createHelper(x),u.HmacSHA3=s._createHmacHelper(x)}(Math),p.SHA3})},64938:function(G,l,e){(function(p,r){G.exports=l=r(e(78249))})(this,function(p){return function(r){var u=p,a=u.lib,g=a.Base,s=a.WordArray,c=u.x64={},v=c.Word=g.extend({init:function(b,N){this.high=b,this.low=N}}),y=c.WordArray=g.extend({init:function(b,N){b=this.words=b||[],N!=r?this.sigBytes=N:this.sigBytes=b.length*8},toX32:function(){for(var b=this.words,N=b.length,I=[],z=0;z<N;z++){var x=b[z];I.push(x.high),I.push(x.low)}return s.create(I,this.sigBytes)},clone:function(){for(var b=g.clone.call(this),N=b.words=this.words.slice(0),I=N.length,z=0;z<I;z++)N[z]=N[z].clone();return b}})}(),p})},25981:function(G,l,e){var p=e(48764).Buffer,r=e(34155),u=e(88473),a=e(12840),g=e(35717),s=e(31852),c=p.from&&p.from!==Uint8Array.from?p.from([0]):new p([0]),v=function(x,w){x._corked?x.once("uncork",w):w()},y=function(x,w){x._autoDestroy&&x.destroy(w)},b=function(x,w){return function(P){P?y(x,P.message==="premature close"?null:P):w&&!x._ended&&x.end()}},N=function(x,w){if(!x||x._writableState&&x._writableState.finished)return w();if(x._writableState)return x.end(w);x.end(),w()},I=function(x){return new u.Readable({objectMode:!0,highWaterMark:16}).wrap(x)},z=function(x,w,P){if(!(this instanceof z))return new z(x,w,P);u.Duplex.call(this,P),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!P||P.autoDestroy!==!1,this._forwardDestroy=!P||P.destroy!==!1,this._forwardEnd=!P||P.end!==!1,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,x&&this.setWritable(x),w&&this.setReadable(w)};g(z,u.Duplex),z.obj=function(x,w,P){return P||(P={}),P.objectMode=!0,P.highWaterMark=16,new z(x,w,P)},z.prototype.cork=function(){++this._corked===1&&this.emit("cork")},z.prototype.uncork=function(){this._corked&&--this._corked===0&&this.emit("uncork")},z.prototype.setWritable=function(x){if(this._unwrite&&this._unwrite(),this.destroyed){x&&x.destroy&&x.destroy();return}if(x===null||x===!1){this.end();return}var w=this,P=a(x,{writable:!0,readable:!1},b(this,this._forwardEnd)),S=function(){var B=w._ondrain;w._ondrain=null,B&&B()},L=function(){w._writable.removeListener("drain",S),P()};this._unwrite&&r.nextTick(S),this._writable=x,this._writable.on("drain",S),this._unwrite=L,this.uncork()},z.prototype.setReadable=function(x){if(this._unread&&this._unread(),this.destroyed){x&&x.destroy&&x.destroy();return}if(x===null||x===!1){this.push(null),this.resume();return}var w=this,P=a(x,{writable:!1,readable:!0},b(this)),S=function(){w._forward()},L=function(){w.push(null)},B=function(){w._readable2.removeListener("readable",S),w._readable2.removeListener("end",L),P()};this._drained=!0,this._readable=x,this._readable2=x._readableState?x:I(x),this._readable2.on("readable",S),this._readable2.on("end",L),this._unread=B,this._forward()},z.prototype._read=function(){this._drained=!0,this._forward()},z.prototype._forward=function(){if(!(this._forwarding||!this._readable2||!this._drained)){this._forwarding=!0;for(var x;this._drained&&(x=s(this._readable2))!==null;)this.destroyed||(this._drained=this.push(x));this._forwarding=!1}},z.prototype.destroy=function(x){if(!this.destroyed){this.destroyed=!0;var w=this;r.nextTick(function(){w._destroy(x)})}},z.prototype._destroy=function(x){if(x){var w=this._ondrain;this._ondrain=null,w?w(x):this.emit("error",x)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},z.prototype._write=function(x,w,P){if(this.destroyed)return P();if(this._corked)return v(this,this._write.bind(this,x,w,P));if(x===c)return this._finish(P);if(!this._writable)return P();this._writable.write(x)===!1?this._ondrain=P:P()},z.prototype._finish=function(x){var w=this;this.emit("preend"),v(this,function(){N(w._forwardEnd&&w._writable,function(){w._writableState.prefinished===!1&&(w._writableState.prefinished=!0),w.emit("prefinish"),v(w,x)})})},z.prototype.end=function(x,w,P){return typeof x=="function"?this.end(null,null,x):typeof w=="function"?this.end(x,null,w):(this._ended=!0,x&&this.write(x),this._writableState.ending||this.write(c),u.Writable.prototype.end.call(this,P))},G.exports=z},12840:function(G,l,e){var p=e(34155),r=e(30778),u=function(){},a=function(c){return c.setHeader&&typeof c.abort=="function"},g=function(c){return c.stdio&&Array.isArray(c.stdio)&&c.stdio.length===3},s=function(c,v,y){if(typeof v=="function")return s(c,null,v);v||(v={}),y=r(y||u);var b=c._writableState,N=c._readableState,I=v.readable||v.readable!==!1&&c.readable,z=v.writable||v.writable!==!1&&c.writable,x=!1,w=function(){c.writable||P()},P=function(){z=!1,I||y.call(c)},S=function(){I=!1,z||y.call(c)},L=function(h){y.call(c,h?new Error("exited with error code: "+h):null)},B=function(h){y.call(c,h)},T=function(){p.nextTick(o)},o=function(){if(!x){if(I&&!(N&&N.ended&&!N.destroyed))return y.call(c,new Error("premature close"));if(z&&!(b&&b.ended&&!b.destroyed))return y.call(c,new Error("premature close"))}},f=function(){c.req.on("finish",P)};return a(c)?(c.on("complete",P),c.on("abort",T),c.req?f():c.on("request",f)):z&&!b&&(c.on("end",w),c.on("close",w)),g(c)&&c.on("exit",L),c.on("end",S),c.on("finish",P),v.error!==!1&&c.on("error",B),c.on("close",T),function(){x=!0,c.removeListener("complete",P),c.removeListener("abort",T),c.removeListener("request",f),c.req&&c.req.removeListener("finish",P),c.removeListener("end",w),c.removeListener("close",w),c.removeListener("finish",P),c.removeListener("exit",L),c.removeListener("end",S),c.removeListener("error",B),c.removeListener("close",T)}};G.exports=s},94315:function(G,l,e){var p;/*!
41
- * is.js 0.8.0
42
- * Author: Aras Atasaygin
43
- */(function(r,u){p=function(){return r.is=u()}.call(l,e,l,G),p!==void 0&&(G.exports=p)})(this,function(){var r={};r.VERSION="0.8.0",r.not={},r.all={},r.any={};var u=Object.prototype.toString,a=Array.prototype.slice,g=Object.prototype.hasOwnProperty;function s(d){return function(){return!d.apply(null,a.call(arguments))}}function c(d){return function(){for(var A=N(arguments),k=A.length,O=0;O<k;O++)if(!d.call(null,A[O]))return!1;return!0}}function v(d){return function(){for(var A=N(arguments),k=A.length,O=0;O<k;O++)if(d.call(null,A[O]))return!0;return!1}}var y={"<":function(d,A){return d<A},"<=":function(d,A){return d<=A},">":function(d,A){return d>A},">=":function(d,A){return d>=A}};function b(d,A){var k=A+"",O=+(k.match(/\d+/)||NaN),U=k.match(/^[<>]=?|/)[0];return y[U]?y[U](d,O):d==O||O!==O}function N(d){var A=a.call(d),k=A.length;return k===1&&r.array(A[0])&&(A=A[0]),A}r.arguments=function(d){return u.call(d)==="[object Arguments]"||d!=null&&typeof d=="object"&&"callee"in d},r.array=Array.isArray||function(d){return u.call(d)==="[object Array]"},r.boolean=function(d){return d===!0||d===!1||u.call(d)==="[object Boolean]"},r.char=function(d){return r.string(d)&&d.length===1},r.date=function(d){return u.call(d)==="[object Date]"},r.domNode=function(d){return r.object(d)&&d.nodeType>0},r.error=function(d){return u.call(d)==="[object Error]"},r.function=function(d){return u.call(d)==="[object Function]"||typeof d=="function"},r.json=function(d){return u.call(d)==="[object Object]"},r.nan=function(d){return d!==d},r.null=function(d){return d===null},r.number=function(d){return r.not.nan(d)&&u.call(d)==="[object Number]"},r.object=function(d){return Object(d)===d},r.regexp=function(d){return u.call(d)==="[object RegExp]"},r.sameType=function(d,A){var k=u.call(d);return k!==u.call(A)?!1:k==="[object Number]"?!r.any.nan(d,A)||r.all.nan(d,A):!0},r.sameType.api=["not"],r.string=function(d){return u.call(d)==="[object String]"},r.undefined=function(d){return d===void 0},r.windowObject=function(d){return d!=null&&typeof d=="object"&&"setInterval"in d},r.empty=function(d){if(r.object(d)){var A=Object.getOwnPropertyNames(d).length;return!!(A===0||A===1&&r.array(d)||A===2&&r.arguments(d))}return d===""},r.existy=function(d){return d!=null},r.falsy=function(d){return!d},r.truthy=s(r.falsy),r.above=function(d,A){return r.all.number(d,A)&&d>A},r.above.api=["not"],r.decimal=function(d){return r.number(d)&&d%1!==0},r.equal=function(d,A){return r.all.number(d,A)?d===A&&1/d===1/A:r.all.string(d,A)||r.all.regexp(d,A)?""+d==""+A:r.all.boolean(d,A)?d===A:!1},r.equal.api=["not"],r.even=function(d){return r.number(d)&&d%2===0},r.finite=isFinite||function(d){return r.not.infinite(d)&&r.not.nan(d)},r.infinite=function(d){return d===1/0||d===-1/0},r.integer=function(d){return r.number(d)&&d%1===0},r.negative=function(d){return r.number(d)&&d<0},r.odd=function(d){return r.number(d)&&d%2===1},r.positive=function(d){return r.number(d)&&d>0},r.under=function(d,A){return r.all.number(d,A)&&d<A},r.under.api=["not"],r.within=function(d,A,k){return r.all.number(d,A,k)&&d>A&&d<k},r.within.api=["not"];var I={affirmative:/^(?:1|t(?:rue)?|y(?:es)?|ok(?:ay)?)$/,alphaNumeric:/^[A-Za-z0-9]+$/,caPostalCode:/^(?!.*[DFIOQU])[A-VXY][0-9][A-Z]\s?[0-9][A-Z][0-9]$/,creditCard:/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/,dateString:/^(1[0-2]|0?[1-9])([\/-])(3[01]|[12][0-9]|0?[1-9])(?:\2)(?:[0-9]{2})?[0-9]{2}$/,email:/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,eppPhone:/^\+[0-9]{1,3}\.[0-9]{4,14}(?:x.+)?$/,hexadecimal:/^(?:0x)?[0-9a-fA-F]+$/,hexColor:/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/,ipv4:/^(?:(?:\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])\.){3}(?:\d|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])$/,ipv6:/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,nanpPhone:/^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/,socialSecurityNumber:/^(?!000|666)[0-8][0-9]{2}-?(?!00)[0-9]{2}-?(?!0000)[0-9]{4}$/,timeString:/^(2[0-3]|[01]?[0-9]):([0-5]?[0-9]):([0-5]?[0-9])$/,ukPostCode:/^[A-Z]{1,2}[0-9RCHNQ][0-9A-Z]?\s?[0-9][ABD-HJLNP-UW-Z]{2}$|^[A-Z]{2}-?[0-9]{4}$/,url:/^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/i,usZipCode:/^[0-9]{5}(?:-[0-9]{4})?$/};function z(d,A){r[d]=function(k){return A[d].test(k)}}for(var x in I)I.hasOwnProperty(x)&&z(x,I);r.ip=function(d){return r.ipv4(d)||r.ipv6(d)},r.capitalized=function(d){if(r.not.string(d))return!1;for(var A=d.split(" "),k=0;k<A.length;k++){var O=A[k];if(O.length){var U=O.charAt(0);if(U!==U.toUpperCase())return!1}}return!0},r.endWith=function(d,A){if(r.not.string(d))return!1;A+="";var k=d.length-A.length;return k>=0&&d.indexOf(A,k)===k},r.endWith.api=["not"],r.include=function(d,A){return d.indexOf(A)>-1},r.include.api=["not"],r.lowerCase=function(d){return r.string(d)&&d===d.toLowerCase()},r.palindrome=function(d){if(r.not.string(d))return!1;d=d.replace(/[^a-zA-Z0-9]+/g,"").toLowerCase();for(var A=d.length-1,k=0,O=Math.floor(A/2);k<=O;k++)if(d.charAt(k)!==d.charAt(A-k))return!1;return!0},r.space=function(d){if(r.not.char(d))return!1;var A=d.charCodeAt(0);return A>8&&A<14||A===32},r.startWith=function(d,A){return r.string(d)&&d.indexOf(A)===0},r.startWith.api=["not"],r.upperCase=function(d){return r.string(d)&&d===d.toUpperCase()};var w=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],P=["january","february","march","april","may","june","july","august","september","october","november","december"];r.day=function(d,A){return r.date(d)&&A.toLowerCase()===w[d.getDay()]},r.day.api=["not"],r.dayLightSavingTime=function(d){var A=new Date(d.getFullYear(),0,1),k=new Date(d.getFullYear(),6,1),O=Math.max(A.getTimezoneOffset(),k.getTimezoneOffset());return d.getTimezoneOffset()<O},r.future=function(d){var A=new Date;return r.date(d)&&d.getTime()>A.getTime()},r.inDateRange=function(d,A,k){if(r.not.date(d)||r.not.date(A)||r.not.date(k))return!1;var O=d.getTime();return O>A.getTime()&&O<k.getTime()},r.inDateRange.api=["not"],r.inLastMonth=function(d){return r.inDateRange(d,new Date(new Date().setMonth(new Date().getMonth()-1)),new Date)},r.inLastWeek=function(d){return r.inDateRange(d,new Date(new Date().setDate(new Date().getDate()-7)),new Date)},r.inLastYear=function(d){return r.inDateRange(d,new Date(new Date().setFullYear(new Date().getFullYear()-1)),new Date)},r.inNextMonth=function(d){return r.inDateRange(d,new Date,new Date(new Date().setMonth(new Date().getMonth()+1)))},r.inNextWeek=function(d){return r.inDateRange(d,new Date,new Date(new Date().setDate(new Date().getDate()+7)))},r.inNextYear=function(d){return r.inDateRange(d,new Date,new Date(new Date().setFullYear(new Date().getFullYear()+1)))},r.leapYear=function(d){return r.number(d)&&(d%4===0&&d%100!==0||d%400===0)},r.month=function(d,A){return r.date(d)&&A.toLowerCase()===P[d.getMonth()]},r.month.api=["not"],r.past=function(d){var A=new Date;return r.date(d)&&d.getTime()<A.getTime()},r.quarterOfYear=function(d,A){return r.date(d)&&r.number(A)&&A===Math.floor((d.getMonth()+3)/3)},r.quarterOfYear.api=["not"],r.today=function(d){var A=new Date,k=A.toDateString();return r.date(d)&&d.toDateString()===k},r.tomorrow=function(d){var A=new Date,k=new Date(A.setDate(A.getDate()+1)).toDateString();return r.date(d)&&d.toDateString()===k},r.weekend=function(d){return r.date(d)&&(d.getDay()===6||d.getDay()===0)},r.weekday=s(r.weekend),r.year=function(d,A){return r.date(d)&&r.number(A)&&A===d.getFullYear()},r.year.api=["not"],r.yesterday=function(d){var A=new Date,k=new Date(A.setDate(A.getDate()-1)).toDateString();return r.date(d)&&d.toDateString()===k};var S=r.windowObject(typeof e.g=="object"&&e.g)&&e.g,L=r.windowObject(typeof self=="object"&&self)&&self,B=r.windowObject(typeof this=="object"&&this)&&this,T=S||L||B||Function("return this")(),o=L&&L.document,f=T.is,h=L&&L.navigator,E=(h&&h.appVersion||"").toLowerCase(),j=(h&&h.userAgent||"").toLowerCase(),F=(h&&h.vendor||"").toLowerCase();r.android=function(){return/android/.test(j)},r.android.api=["not"],r.androidPhone=function(){return/android/.test(j)&&/mobile/.test(j)},r.androidPhone.api=["not"],r.androidTablet=function(){return/android/.test(j)&&!/mobile/.test(j)},r.androidTablet.api=["not"],r.blackberry=function(){return/blackberry/.test(j)||/bb10/.test(j)},r.blackberry.api=["not"],r.chrome=function(d){var A=/google inc/.test(F)?j.match(/(?:chrome|crios)\/(\d+)/):null;return A!==null&&b(A[1],d)},r.chrome.api=["not"],r.desktop=function(){return r.not.mobile()&&r.not.tablet()},r.desktop.api=["not"],r.edge=function(d){var A=j.match(/edge\/(\d+)/);return A!==null&&b(A[1],d)},r.edge.api=["not"],r.firefox=function(d){var A=j.match(/(?:firefox|fxios)\/(\d+)/);return A!==null&&b(A[1],d)},r.firefox.api=["not"],r.ie=function(d){var A=j.match(/(?:msie |trident.+?; rv:)(\d+)/);return A!==null&&b(A[1],d)},r.ie.api=["not"],r.ios=function(){return r.iphone()||r.ipad()||r.ipod()},r.ios.api=["not"],r.ipad=function(d){var A=j.match(/ipad.+?os (\d+)/);return A!==null&&b(A[1],d)},r.ipad.api=["not"],r.iphone=function(d){var A=j.match(/iphone(?:.+?os (\d+))?/);return A!==null&&b(A[1]||1,d)},r.iphone.api=["not"],r.ipod=function(d){var A=j.match(/ipod.+?os (\d+)/);return A!==null&&b(A[1],d)},r.ipod.api=["not"],r.linux=function(){return/linux/.test(E)},r.linux.api=["not"],r.mac=function(){return/mac/.test(E)},r.mac.api=["not"],r.mobile=function(){return r.iphone()||r.ipod()||r.androidPhone()||r.blackberry()||r.windowsPhone()},r.mobile.api=["not"],r.offline=s(r.online),r.offline.api=["not"],r.online=function(){return!h||h.onLine===!0},r.online.api=["not"],r.opera=function(d){var A=j.match(/(?:^opera.+?version|opr)\/(\d+)/);return A!==null&&b(A[1],d)},r.opera.api=["not"],r.phantom=function(d){var A=j.match(/phantomjs\/(\d+)/);return A!==null&&b(A[1],d)},r.phantom.api=["not"],r.safari=function(d){var A=j.match(/version\/(\d+).+?safari/);return A!==null&&b(A[1],d)},r.safari.api=["not"],r.tablet=function(){return r.ipad()||r.androidTablet()||r.windowsTablet()},r.tablet.api=["not"],r.touchDevice=function(){return!!o&&("ontouchstart"in L||"DocumentTouch"in L&&o instanceof DocumentTouch)},r.touchDevice.api=["not"],r.windows=function(){return/win/.test(E)},r.windows.api=["not"],r.windowsPhone=function(){return r.windows()&&/phone/.test(j)},r.windowsPhone.api=["not"],r.windowsTablet=function(){return r.windows()&&r.not.windowsPhone()&&/touch/.test(j)},r.windowsTablet.api=["not"],r.propertyCount=function(d,A){if(r.not.object(d)||r.not.number(A))return!1;var k=0;for(var O in d)if(g.call(d,O)&&++k>A)return!1;return k===A},r.propertyCount.api=["not"],r.propertyDefined=function(d,A){return r.object(d)&&r.string(A)&&A in d},r.propertyDefined.api=["not"],r.inArray=function(d,A){if(r.not.array(A))return!1;for(var k=0;k<A.length;k++)if(A[k]===d)return!0;return!1},r.inArray.api=["not"],r.sorted=function(d,A){if(r.not.array(d))return!1;for(var k=y[A]||y[">="],O=1;O<d.length;O++)if(!k(d[O],d[O-1]))return!1;return!0};function W(){var d=r;for(var A in d)if(g.call(d,A)&&r.function(d[A]))for(var k=d[A].api||["not","all","any"],O=0;O<k.length;O++)k[O]==="not"&&(r.not[A]=s(r[A])),k[O]==="all"&&(r.all[A]=c(r[A])),k[O]==="any"&&(r.any[A]=v(r[A]))}return W(),r.setNamespace=function(){return T.is=f,this},r.setRegexp=function(d,A){for(var k in I)g.call(I,k)&&A===k&&(I[k]=d)},r})},64530:function(G,l){l=G.exports=e,l.getSerialize=p;function e(r,u,a,g){return JSON.stringify(r,p(u,g),a)}function p(r,u){var a=[],g=[];return u==null&&(u=function(s,c){return a[0]===c?"[Circular ~]":"[Circular ~."+g.slice(0,a.indexOf(c)).join(".")+"]"}),function(s,c){if(a.length>0){var v=a.indexOf(this);~v?a.splice(v+1):a.push(this),~v?g.splice(v,1/0,s):g.push(s),~a.indexOf(c)&&(c=u.call(this,s,c))}else a.push(c);return r==null?c:r.call(this,s,c)}}},39593:function(G,l,e){"use strict";const p=e(34411),r=Symbol("max"),u=Symbol("length"),a=Symbol("lengthCalculator"),g=Symbol("allowStale"),s=Symbol("maxAge"),c=Symbol("dispose"),v=Symbol("noDisposeOnSet"),y=Symbol("lruList"),b=Symbol("cache"),N=Symbol("updateAgeOnGet"),I=()=>1;class z{constructor(o){if(typeof o=="number"&&(o={max:o}),o||(o={}),o.max&&(typeof o.max!="number"||o.max<0))throw new TypeError("max must be a non-negative number");const f=this[r]=o.max||1/0,h=o.length||I;if(this[a]=typeof h!="function"?I:h,this[g]=o.stale||!1,o.maxAge&&typeof o.maxAge!="number")throw new TypeError("maxAge must be a number");this[s]=o.maxAge||0,this[c]=o.dispose,this[v]=o.noDisposeOnSet||!1,this[N]=o.updateAgeOnGet||!1,this.reset()}set max(o){if(typeof o!="number"||o<0)throw new TypeError("max must be a non-negative number");this[r]=o||1/0,P(this)}get max(){return this[r]}set allowStale(o){this[g]=!!o}get allowStale(){return this[g]}set maxAge(o){if(typeof o!="number")throw new TypeError("maxAge must be a non-negative number");this[s]=o,P(this)}get maxAge(){return this[s]}set lengthCalculator(o){typeof o!="function"&&(o=I),o!==this[a]&&(this[a]=o,this[u]=0,this[y].forEach(f=>{f.length=this[a](f.value,f.key),this[u]+=f.length})),P(this)}get lengthCalculator(){return this[a]}get length(){return this[u]}get itemCount(){return this[y].length}rforEach(o,f){f=f||this;for(let h=this[y].tail;h!==null;){const E=h.prev;B(this,o,h,f),h=E}}forEach(o,f){f=f||this;for(let h=this[y].head;h!==null;){const E=h.next;B(this,o,h,f),h=E}}keys(){return this[y].toArray().map(o=>o.key)}values(){return this[y].toArray().map(o=>o.value)}reset(){this[c]&&this[y]&&this[y].length&&this[y].forEach(o=>this[c](o.key,o.value)),this[b]=new Map,this[y]=new p,this[u]=0}dump(){return this[y].map(o=>w(this,o)?!1:{k:o.key,v:o.value,e:o.now+(o.maxAge||0)}).toArray().filter(o=>o)}dumpLru(){return this[y]}set(o,f,h){if(h=h||this[s],h&&typeof h!="number")throw new TypeError("maxAge must be a number");const E=h?Date.now():0,j=this[a](f,o);if(this[b].has(o)){if(j>this[r])return S(this,this[b].get(o)),!1;const d=this[b].get(o).value;return this[c]&&(this[v]||this[c](o,d.value)),d.now=E,d.maxAge=h,d.value=f,this[u]+=j-d.length,d.length=j,this.get(o),P(this),!0}const F=new L(o,f,j,E,h);return F.length>this[r]?(this[c]&&this[c](o,f),!1):(this[u]+=F.length,this[y].unshift(F),this[b].set(o,this[y].head),P(this),!0)}has(o){if(!this[b].has(o))return!1;const f=this[b].get(o).value;return!w(this,f)}get(o){return x(this,o,!0)}peek(o){return x(this,o,!1)}pop(){const o=this[y].tail;return o?(S(this,o),o.value):null}del(o){S(this,this[b].get(o))}load(o){this.reset();const f=Date.now();for(let h=o.length-1;h>=0;h--){const E=o[h],j=E.e||0;if(j===0)this.set(E.k,E.v);else{const F=j-f;F>0&&this.set(E.k,E.v,F)}}}prune(){this[b].forEach((o,f)=>x(this,f,!1))}}const x=(T,o,f)=>{const h=T[b].get(o);if(h){const E=h.value;if(w(T,E)){if(S(T,h),!T[g])return}else f&&(T[N]&&(h.value.now=Date.now()),T[y].unshiftNode(h));return E.value}},w=(T,o)=>{if(!o||!o.maxAge&&!T[s])return!1;const f=Date.now()-o.now;return o.maxAge?f>o.maxAge:T[s]&&f>T[s]},P=T=>{if(T[u]>T[r])for(let o=T[y].tail;T[u]>T[r]&&o!==null;){const f=o.prev;S(T,o),o=f}},S=(T,o)=>{if(o){const f=o.value;T[c]&&T[c](f.key,f.value),T[u]-=f.length,T[b].delete(f.key),T[y].removeNode(o)}};class L{constructor(o,f,h,E,j){this.key=o,this.value=f,this.length=h,this.now=E,this.maxAge=j||0}}const B=(T,o,f,h)=>{let E=f.value;w(T,E)&&(S(T,f),T[g]||(E=void 0)),E&&o.call(h,E.value,E.key,T)};G.exports=z},53915:function(G,l,e){var p=e(14650),r=e(70861),u=e(67435).bW,a=e(64530);G.exports=g,G.exports.serialize=G.exports.stringify=s,G.exports.parse=g;function g(c){c=c||{},c.strict=c.strict!==!1;function v(y){try{if(y)return JSON.parse(y)}catch{c.strict&&this.emit("error",new Error("Could not parse row "+y.slice(0,50)+"..."))}}return r(v,c)}function s(c){return p.obj(c,function(v,y,b){b(null,a(v)+u)})}},30778:function(G,l,e){var p=e(52479);G.exports=p(r),G.exports.strict=p(u),r.proto=r(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return r(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return u(this)},configurable:!0})});function r(a){var g=function(){return g.called?g.value:(g.called=!0,g.value=a.apply(this,arguments))};return g.called=!1,g}function u(a){var g=function(){if(g.called)throw new Error(g.onceError);return g.called=!0,g.value=a.apply(this,arguments)},s=a.name||"Function wrapped with `once`";return g.onceError=s+" shouldn't be called more than once",g.called=!1,g}},67435:function(G,l){var e;e=function(){return"LE"},e=function(){return typeof location<"u"?location.hostname:""},e=function(){return[]},e=function(){return 0},e=function(){return Number.MAX_VALUE},e=function(){return Number.MAX_VALUE},e=function(){return[]},e=function(){return"Browser"},e=function(){return typeof navigator<"u"?navigator.appVersion:""},e=e=function(){return{}},e=function(){return"javascript"},e=function(){return"browser"},e=e=function(){return"/tmp"},l.bW=`
44
- `,e=function(){return"/"}},74286:function(G,l,e){var p=e(48764).Buffer,r=e(94676),u=e(1842);l.make=a,l.name=function(s){for(var c=Object.keys(l),v=0;v<c.length;v++)if(l[c[v]]===s)return c[v];return null},l.skip=function(s,c,v){switch(s){case 0:return r.decode(c,v),v+r.decode.bytes;case 1:return v+8;case 2:var y=r.decode(c,v);return v+r.decode.bytes+y;case 3:case 4:throw new Error("Groups are not supported");case 5:return v+4}throw new Error("Unknown wire type: "+s)},l.bytes=a(2,function s(c,v,y){var b=y,N=g(c);return r.encode(N,v,y),y+=r.encode.bytes,p.isBuffer(c)?c.copy(v,y):v.write(c,y,N),y+=N,s.bytes=y-b,v},function s(c,v){var y=v,b=r.decode(c,v);v+=r.decode.bytes;var N=c.slice(v,v+b);return v+=N.length,s.bytes=v-y,N},function(c){var v=g(c);return r.encodingLength(v)+v}),l.string=a(2,function s(c,v,y){var b=y,N=p.byteLength(c);return r.encode(N,v,y,"utf-8"),y+=r.encode.bytes,v.write(c,y,N),y+=N,s.bytes=y-b,v},function s(c,v){var y=v,b=r.decode(c,v);v+=r.decode.bytes;var N=c.toString("utf-8",v,v+b);return v+=b,s.bytes=v-y,N},function(c){var v=p.byteLength(c);return r.encodingLength(v)+v}),l.bool=a(0,function s(c,v,y){return v[y]=c?1:0,s.bytes=1,v},function s(c,v){var y=c[v]>0;return s.bytes=1,y},function(){return 1}),l.int32=a(0,function s(c,v,y){return r.encode(c<0?c+4294967296:c,v,y),s.bytes=r.encode.bytes,v},function s(c,v){var y=r.decode(c,v);return s.bytes=r.decode.bytes,y>2147483647?y-4294967296:y},function(c){return r.encodingLength(c<0?c+4294967296:c)}),l.int64=a(0,function s(c,v,y){if(c<0){var b=y+9;for(r.encode(c*-1,v,y),y+=r.encode.bytes-1,v[y]=v[y]|128;y<b-1;)y++,v[y]=255;v[b]=1,s.bytes=10}else r.encode(c,v,y),s.bytes=r.encode.bytes;return v},function s(c,v){var y=r.decode(c,v);if(y>=Math.pow(2,63)){for(var b=9;c[v+b-1]===255;)b--;b=b||9;var N=p.allocUnsafe(b);c.copy(N,0,v,v+b),N[b-1]=N[b-1]&127,y=-1*r.decode(N,0),s.bytes=10}else s.bytes=r.decode.bytes;return y},function(c){return c<0?10:r.encodingLength(c)}),l.sint32=l.sint64=a(0,u.encode,u.decode,u.encodingLength),l.uint32=l.uint64=l.enum=l.varint=a(0,r.encode,r.decode,r.encodingLength),l.fixed64=l.sfixed64=a(1,function s(c,v,y){return c.copy(v,y),s.bytes=8,v},function s(c,v){var y=c.slice(v,v+8);return s.bytes=8,y},function(){return 8}),l.double=a(1,function s(c,v,y){return v.writeDoubleLE(c,y),s.bytes=8,v},function s(c,v){var y=c.readDoubleLE(v);return s.bytes=8,y},function(){return 8}),l.fixed32=a(5,function s(c,v,y){return v.writeUInt32LE(c,y),s.bytes=4,v},function s(c,v){var y=c.readUInt32LE(v);return s.bytes=4,y},function(){return 4}),l.sfixed32=a(5,function s(c,v,y){return v.writeInt32LE(c,y),s.bytes=4,v},function s(c,v){var y=c.readInt32LE(v);return s.bytes=4,y},function(){return 4}),l.float=a(5,function s(c,v,y){return v.writeFloatLE(c,y),s.bytes=4,v},function s(c,v){var y=c.readFloatLE(v);return s.bytes=4,y},function(){return 4});function a(s,c,v,y){return c.bytes=v.bytes=0,{type:s,encode:c,decode:v,encodingLength:y}}function g(s){return p.isBuffer(s)?s.length:p.byteLength(s)}},99554:function(G,l,e){var p=e(34155),r=e(30778),u=e(12840),a=e(71156),g=function(){},s=/^v?\.0/.test(p.version),c=function(x){return typeof x=="function"},v=function(x){return!s||!a?!1:(x instanceof(a.ReadStream||g)||x instanceof(a.WriteStream||g))&&c(x.close)},y=function(x){return x.setHeader&&c(x.abort)},b=function(x,w,P,S){S=r(S);var L=!1;x.on("close",function(){L=!0}),u(x,{readable:w,writable:P},function(T){if(T)return S(T);L=!0,S()});var B=!1;return function(T){if(!L&&!B){if(B=!0,v(x))return x.close(g);if(y(x))return x.abort();if(c(x.destroy))return x.destroy();S(T||new Error("stream was destroyed"))}}},N=function(x){x()},I=function(x,w){return x.pipe(w)},z=function(){var x=Array.prototype.slice.call(arguments),w=c(x[x.length-1]||g)&&x.pop()||g;if(Array.isArray(x[0])&&(x=x[0]),x.length<2)throw new Error("pump requires two streams per minimum");var P,S=x.map(function(L,B){var T=B<x.length-1,o=B>0;return b(L,T,o,function(f){P||(P=f),f&&S.forEach(N),!T&&(S.forEach(N),w(P))})});return x.reduce(I)};G.exports=z},4850:function(G,l,e){var p=e(99554),r=e(35717),u=e(4309),a=function(s){return s.length?Array.isArray(s[0])?s[0]:Array.prototype.slice.call(s):[]},g=function(s){var c=function(){var v=a(arguments);if(!(this instanceof c))return new c(v);u.call(this,null,null,s),v.length&&this.setPipeline(v)};return r(c,u),c.prototype.setPipeline=function(){var v=a(arguments),y=this,b=!1,N=v[0],I=v[v.length-1];I=I.readable?I:null,N=N.writable?N:null;var z=function(){v[0].emit("error",new Error("stream was destroyed"))};if(this.on("close",z),this.on("prefinish",function(){b||y.cork()}),p(v,function(x){if(y.removeListener("close",z),x)return y.destroy(x.message==="premature close"?null:x);b=!0,y._autoDestroy===!1&&(y._autoDestroy=!0),y.uncork()}),this.destroyed)return z();this.setWritable(N),this.setReadable(I)},c};G.exports=g({autoDestroy:!1,destroy:!1}),G.exports.obj=g({autoDestroy:!1,destroy:!1,objectMode:!0,highWaterMark:16}),G.exports.ctor=g},4309:function(G,l,e){var p=e(48764).Buffer,r=e(34155),u=e(88473),a=e(12840),g=e(35717),s=e(31852),c=p.from&&p.from!==Uint8Array.from?p.from([0]):new p([0]),v=function(w,P){w._corked?w.once("uncork",P):P()},y=function(w,P){w._autoDestroy&&w.destroy(P)},b=function(w,P){return function(S){S?y(w,S.message==="premature close"?null:S):P&&!w._ended&&w.end()}},N=function(w,P){if(!w||w._writableState&&w._writableState.finished)return P();if(w._writableState)return w.end(P);w.end(),P()},I=function(){},z=function(w){return new u.Readable({objectMode:!0,highWaterMark:16}).wrap(w)},x=function(w,P,S){if(!(this instanceof x))return new x(w,P,S);u.Duplex.call(this,S),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!S||S.autoDestroy!==!1,this._forwardDestroy=!S||S.destroy!==!1,this._forwardEnd=!S||S.end!==!1,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,w&&this.setWritable(w),P&&this.setReadable(P)};g(x,u.Duplex),x.obj=function(w,P,S){return S||(S={}),S.objectMode=!0,S.highWaterMark=16,new x(w,P,S)},x.prototype.cork=function(){++this._corked===1&&this.emit("cork")},x.prototype.uncork=function(){this._corked&&--this._corked===0&&this.emit("uncork")},x.prototype.setWritable=function(w){if(this._unwrite&&this._unwrite(),this.destroyed){w&&w.destroy&&w.destroy();return}if(w===null||w===!1){this.end();return}var P=this,S=a(w,{writable:!0,readable:!1},b(this,this._forwardEnd)),L=function(){var T=P._ondrain;P._ondrain=null,T&&T()},B=function(){P._writable.removeListener("drain",L),S()};this._unwrite&&r.nextTick(L),this._writable=w,this._writable.on("drain",L),this._unwrite=B,this.uncork()},x.prototype.setReadable=function(w){if(this._unread&&this._unread(),this.destroyed){w&&w.destroy&&w.destroy();return}if(w===null||w===!1){this.push(null),this.resume();return}var P=this,S=a(w,{writable:!1,readable:!0},b(this)),L=function(){P._forward()},B=function(){P.push(null)},T=function(){P._readable2.removeListener("readable",L),P._readable2.removeListener("end",B),S()};this._drained=!0,this._readable=w,this._readable2=w._readableState?w:z(w),this._readable2.on("readable",L),this._readable2.on("end",B),this._unread=T,this._forward()},x.prototype._read=function(){this._drained=!0,this._forward()},x.prototype._forward=function(){if(!(this._forwarding||!this._readable2||!this._drained)){this._forwarding=!0;for(var w;this._drained&&(w=s(this._readable2))!==null;)this.destroyed||(this._drained=this.push(w));this._forwarding=!1}},x.prototype.destroy=function(w,P){if(P||(P=I),this.destroyed)return P(null);this.destroyed=!0;var S=this;r.nextTick(function(){S._destroy(w),P(null)})},x.prototype._destroy=function(w){if(w){var P=this._ondrain;this._ondrain=null,P?P(w):this.emit("error",w)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")},x.prototype._write=function(w,P,S){if(!this.destroyed){if(this._corked)return v(this,this._write.bind(this,w,P,S));if(w===c)return this._finish(S);if(!this._writable)return S();this._writable.write(w)===!1?this._ondrain=S:this.destroyed||S()}},x.prototype._finish=function(w){var P=this;this.emit("preend"),v(this,function(){N(P._forwardEnd&&P._writable,function(){P._writableState.prefinished===!1&&(P._writableState.prefinished=!0),P.emit("prefinish"),v(P,w)})})},x.prototype.end=function(w,P,S){return typeof w=="function"?this.end(null,null,w):typeof P=="function"?this.end(w,null,P):(this._ended=!0,w&&this.write(w),!this._writableState.ending&&!this._writableState.destroyed&&this.write(c),u.Writable.prototype.end.call(this,S))},G.exports=x},80064:function(G,l,e){var p=e(34155),r=e(48764).Buffer,u,a;(function(g){"use strict";u=[],a=function(){return s}.apply(l,u),a!==void 0&&(G.exports=a);function s(y,b){if(b=b||{type:"Array"},typeof p<"u"&&typeof p.pid=="number"&&p.versions&&p.versions.node)return c(y,b);var N=window.crypto||window.msCrypto;if(!N)throw new Error("Your browser does not support window.crypto.");return v(y,b)}function c(y,b){var N=e(83954),I=N.randomBytes(y);switch(b.type){case"Array":return[].slice.call(I);case"Buffer":return I;case"Uint8Array":for(var z=new Uint8Array(y),x=0;x<y;++x)z[x]=I.readUInt8(x);return z;default:throw new Error(b.type+" is unsupported.")}}function v(y,b){var N=new Uint8Array(y),I=window.crypto||window.msCrypto;switch(I.getRandomValues(N),b.type){case"Array":return[].slice.call(N);case"Buffer":try{var z=new r(1)}catch{throw new Error("Buffer not supported in this environment. Use Node.js or Browserify for browser support.")}return new r(N);case"Uint8Array":return N;default:throw new Error(b.type+" is unsupported.")}}s.randomArray=function(y){return s(y,{type:"Array"})},s.randomUint8Array=function(y){return s(y,{type:"Uint8Array"})},s.randomBuffer=function(y){return s(y,{type:"Buffer"})}})(this)},1842:function(G,l,e){var p=e(9365);l.encode=function r(u,a,g){u=u>=0?u*2:u*-2-1;var s=p.encode(u,a,g);return r.bytes=p.encode.bytes,s},l.decode=function r(u,a){var g=p.decode(u,a);return r.bytes=p.decode.bytes,g&1?(g+1)/-2:g/2},l.encodingLength=function(r){return p.encodingLength(r>=0?r*2:r*-2-1)}},57721:function(G){G.exports=p;var l=128,e=127;function p(r,g){var a=0,g=g||0,s=0,c=g,v,y=r.length;do{if(c>=y)throw p.bytes=0,new RangeError("Could not decode varint");v=r[c++],a+=s<28?(v&e)<<s:(v&e)*Math.pow(2,s),s+=7}while(v>=l);return p.bytes=c-g,a}},70508:function(G){G.exports=u;var l=128,e=127,p=~e,r=Math.pow(2,31);function u(a,g,s){g=g||[],s=s||0;for(var c=s;a>=r;)g[s++]=a&255|l,a/=128;for(;a&p;)g[s++]=a&255|l,a>>>=7;return g[s]=a|0,u.bytes=s-c+1,g}},9365:function(G,l,e){G.exports={encode:e(70508),decode:e(57721),encodingLength:e(48184)}},48184:function(G){var l=Math.pow(2,7),e=Math.pow(2,14),p=Math.pow(2,21),r=Math.pow(2,28),u=Math.pow(2,35),a=Math.pow(2,42),g=Math.pow(2,49),s=Math.pow(2,56),c=Math.pow(2,63);G.exports=function(v){return v<l?1:v<e?2:v<p?3:v<r?4:v<u?5:v<a?6:v<g?7:v<s?8:v<c?9:10}},70861:function(G,l,e){"use strict";var p=e(14650),r=e(32553).s;function u(v,y,b){if(this._last+=this._decoder.write(v),this._last.length>this.maxLength)return b(new Error("maximum buffer reached"));var N=this._last.split(this.matcher);this._last=N.pop();for(var I=0;I<N.length;I++)g(this,this.mapper(N[I]));b()}function a(v){this._last+=this._decoder.end(),this._last&&g(this,this.mapper(this._last)),v()}function g(v,y){y!==void 0&&v.push(y)}function s(v){return v}function c(v,y,b){switch(v=v||/\r?\n/,y=y||s,b=b||{},arguments.length){case 1:typeof v=="function"?(y=v,v=/\r?\n/):typeof v=="object"&&!(v instanceof RegExp)&&(b=v,v=/\r?\n/);break;case 2:typeof v=="function"?(b=y,y=v,v=/\r?\n/):typeof y=="object"&&(b=y,y=s)}var N=p(b,u,a);return N._readableState.objectMode=!0,N._readableState.highWaterMark&&!b.highWaterMark&&(N._readableState.highWaterMark=16),N._last="",N._decoder=new r("utf8"),N.matcher=v,N.mapper=y,N.maxLength=b.maxLength,N}G.exports=c},31852:function(G){G.exports=l;function l(p){var r=p._readableState;return r?r.objectMode?p.read():p.read(e(r)):null}function e(p){return p.buffer.length?p.buffer.head?p.buffer.head.data.length:p.buffer[0].length:p.length}},14650:function(G,l,e){var p=e(34155),r=e(88473).Transform,u=e(89539).inherits,a=e(47529);function g(v){r.call(this,v),this._destroyed=!1}u(g,r),g.prototype.destroy=function(v){if(!this._destroyed){this._destroyed=!0;var y=this;p.nextTick(function(){v&&y.emit("error",v),y.emit("close")})}};function s(v,y,b){b(null,v)}function c(v){return function(y,b,N){return typeof y=="function"&&(N=b,b=y,y={}),typeof b!="function"&&(b=s),typeof N!="function"&&(N=null),v(y,b,N)}}G.exports=c(function(v,y,b){var N=new g(v);return N._transform=y,b&&(N._flush=b),N}),G.exports.ctor=c(function(v,y,b){function N(I){if(!(this instanceof N))return new N(I);this.options=a(v,I),g.call(this,this.options)}return u(N,g),N.prototype._transform=y,b&&(N.prototype._flush=b),N}),G.exports.obj=c(function(v,y,b){var N=new g(a({objectMode:!0,highWaterMark:16},v));return N._transform=y,b&&(N._flush=b),N})},71823:function(G,l,e){"use strict";G.exports=e(49145)},63845:function(G){"use strict";var l=l||{};G.exports=l,l.EXTENSION_ID="kmendfapggjehodndflmmgagdbamhnfd",l.MessageTypes={U2F_REGISTER_REQUEST:"u2f_register_request",U2F_SIGN_REQUEST:"u2f_sign_request",U2F_REGISTER_RESPONSE:"u2f_register_response",U2F_SIGN_RESPONSE:"u2f_sign_response"},l.ErrorCodes={OK:0,OTHER_ERROR:1,BAD_REQUEST:2,CONFIGURATION_UNSUPPORTED:3,DEVICE_INELIGIBLE:4,TIMEOUT:5},l.Request,l.Response,l.Error,l.SignRequest,l.SignResponse,l.RegisterRequest,l.RegisterResponse,l.disconnect=function(){l.port_&&l.port_.port_&&(l.port_.port_.disconnect(),l.port_=null)},l.getMessagePort=function(e){if(typeof chrome<"u"&&chrome.runtime){var p={type:l.MessageTypes.U2F_SIGN_REQUEST,signRequests:[]};chrome.runtime.sendMessage(l.EXTENSION_ID,p,function(){chrome.runtime.lastError?l.getIframePort_(e):l.getChromeRuntimePort_(e)})}else l.getIframePort_(e)},l.getChromeRuntimePort_=function(e){var p=chrome.runtime.connect(l.EXTENSION_ID,{includeTlsChannelId:!0});setTimeout(function(){e(null,new l.WrappedChromeRuntimePort_(p))},0)},l.WrappedChromeRuntimePort_=function(e){this.port_=e},l.WrappedChromeRuntimePort_.prototype.postMessage=function(e){this.port_.postMessage(e)},l.WrappedChromeRuntimePort_.prototype.addEventListener=function(e,p){var r=e.toLowerCase();r=="message"||r=="onmessage"?this.port_.onMessage.addListener(function(u){p({data:u})}):console.error("WrappedChromeRuntimePort only supports onMessage")},l.getIframePort_=function(e){var p="chrome-extension://"+l.EXTENSION_ID,r=document.createElement("iframe");r.src=p+"/u2f-comms.html",r.setAttribute("style","display:none"),document.body.appendChild(r);var u=!1,a=new MessageChannel,g=function(s){s.data=="ready"?(a.port1.removeEventListener("message",g),u||(u=!0,e(null,a.port1))):console.error('First event on iframe port was not "ready"')};a.port1.addEventListener("message",g),a.port1.start(),r.addEventListener("load",function(){r.contentWindow.postMessage("init",p,[a.port2])}),setTimeout(function(){u||(u=!0,e(new Error("IFrame extension not supported")))},200)},l.EXTENSION_TIMEOUT_SEC=30,l.port_=null,l.waitingForPort_=[],l.reqCounter_=0,l.callbackMap_={},l.getPortSingleton_=function(e){l.port_?e(null,l.port_):(l.waitingForPort_.length==0&&l.getMessagePort(function(p,r){for(p||(l.port_=r,l.port_.addEventListener("message",l.responseHandler_));l.waitingForPort_.length;)l.waitingForPort_.shift()(p,r)}),l.waitingForPort_.push(e))},l.responseHandler_=function(e){var p=e.data,r=p.requestId;if(!r||!l.callbackMap_[r]){console.error("Unknown or missing requestId in response.");return}var u=l.callbackMap_[r];delete l.callbackMap_[r],u(null,p.responseData)},l.isSupported=function(e){l.getPortSingleton_(function(p,r){e(!p)})},l.sign=function(e,p,r){l.getPortSingleton_(function(u,a){if(u)return p(u);var g=++l.reqCounter_;l.callbackMap_[g]=p;var s={type:l.MessageTypes.U2F_SIGN_REQUEST,signRequests:e,timeoutSeconds:typeof r<"u"?r:l.EXTENSION_TIMEOUT_SEC,requestId:g};a.postMessage(s)})},l.register=function(e,p,r,u){l.getPortSingleton_(function(a,g){if(a)return r(a);var s=++l.reqCounter_;l.callbackMap_[s]=r;var c={type:l.MessageTypes.U2F_REGISTER_REQUEST,signRequests:p,registerRequests:e,timeoutSeconds:typeof u<"u"?u:l.EXTENSION_TIMEOUT_SEC,requestId:s};g.postMessage(c)})}},49145:function(G,l,e){"use strict";G.exports=c;var p=e(63845),r=typeof navigator<"u"&&!!navigator.userAgent,u=r&&navigator.userAgent.match(/Safari\//)&&!navigator.userAgent.match(/Chrome\//),a=r&&navigator.userAgent.match(/Edge\/1[2345]/),g=null;function s(S){return g||(g=new S(function(L,B){function T(){L({u2f:null,native:!0})}if(!r||u)return T();var o=typeof window.u2f<"u"&&typeof window.u2f.sign=="function";if(o&&L({u2f:window.u2f,native:!0}),a||location.protocol==="http:"||typeof MessageChannel>"u")return T();p.isSupported(function(f){f?L({u2f:p,native:!1}):T()})})),g}function c(S){return{isSupported:N.bind(S),ensureSupport:z.bind(S),register:x.bind(S),sign:w.bind(S),ErrorCodes:c.ErrorCodes,ErrorNames:c.ErrorNames}}c.ErrorCodes={CANCELLED:-1,OK:0,OTHER_ERROR:1,BAD_REQUEST:2,CONFIGURATION_UNSUPPORTED:3,DEVICE_INELIGIBLE:4,TIMEOUT:5},c.ErrorNames={"-1":"CANCELLED",0:"OK",1:"OTHER_ERROR",2:"BAD_REQUEST",3:"CONFIGURATION_UNSUPPORTED",4:"DEVICE_INELIGIBLE",5:"TIMEOUT"};function v(S,L){var B=L!=null?L.errorCode:1,T=c.ErrorNames[""+B],o=new Error(S);return o.metaData={type:T,code:B},o}function y(S,L){var B={};return B.promise=new S(function(T,o){B.resolve=T,B.reject=o,L.then(T,o)}),B.promise.cancel=function(T,o){s(S).then(function(f){o&&!f.native&&f.u2f.disconnect(),B.reject(v(T,{errorCode:-1}))})},B}function b(S,L){return y(S,new S(function(B,T){try{L&&L(B,T)}catch(o){T(o)}}))}function N(){var S=this;return s(S).then(function(L){return!!L.u2f})}function I(S){if(!S.u2f)throw location.protocol==="http:"?new Error("U2F isn't supported over http, only https"):new Error("U2F not supported")}function z(){var S=this;return s(S).then(I)}function x(S,L,B){var T=this;return Array.isArray(S)||(S=[S]),typeof L=="number"&&typeof B>"u"&&(B=L,L=null),L||(L=[]),y(T,s(T).then(function(o){I(o);var f=o.native,h=o.u2f;return new T(function(E,j){function F(A){A.errorCode?j(v("Registration failed",A)):(delete A.errorCode,E(A))}function W(A,k){A?j(A):k.errorCode?j(v("Registration failed",k)):E(k)}if(f){var d=S[0].appId;h.register(d,S,L,F,B)}else h.register(S,L,W,B)})})).promise}function w(S,L){var B=this;return Array.isArray(S)||(S=[S]),y(B,s(B).then(function(T){I(T);var o=T.native,f=T.u2f;return new B(function(h,E){function j(A){A.errorCode?E(v("Sign failed",A)):(delete A.errorCode,h(A))}function F(A,k){A?E(A):k.errorCode?E(v("Sign failed",k)):h(k)}if(o){var W=S[0].appId,d=S[0].challenge;f.sign(W,d,S,j,L)}else f.sign(S,F,L)})})).promise}function P(S){c[S]=function(){if(!e.g.Promise)throw new Error("The platform doesn't natively support promises");var L=[].slice.call(arguments);return c(e.g.Promise)[S].apply(null,L)}}P("isSupported"),P("ensureSupport"),P("register"),P("sign")},55877:function(G,l,e){var p=e(23570),r=e(71171),u=r;u.v1=p,u.v4=r,G.exports=u},23570:function(G,l,e){var p=e(85217),r=e(45327),u,a,g=0,s=0;function c(v,y,b){var N=y&&b||0,I=y||[];v=v||{};var z=v.node||u,x=v.clockseq!==void 0?v.clockseq:a;if(z==null||x==null){var w=p();z==null&&(z=u=[w[0]|1,w[1],w[2],w[3],w[4],w[5]]),x==null&&(x=a=(w[6]<<8|w[7])&16383)}var P=v.msecs!==void 0?v.msecs:new Date().getTime(),S=v.nsecs!==void 0?v.nsecs:s+1,L=P-g+(S-s)/1e4;if(L<0&&v.clockseq===void 0&&(x=x+1&16383),(L<0||P>g)&&v.nsecs===void 0&&(S=0),S>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");g=P,s=S,a=x,P+=122192928e5;var B=((P&268435455)*1e4+S)%4294967296;I[N++]=B>>>24&255,I[N++]=B>>>16&255,I[N++]=B>>>8&255,I[N++]=B&255;var T=P/4294967296*1e4&268435455;I[N++]=T>>>8&255,I[N++]=T&255,I[N++]=T>>>24&15|16,I[N++]=T>>>16&255,I[N++]=x>>>8|128,I[N++]=x&255;for(var o=0;o<6;++o)I[N+o]=z[o];return y||r(I)}G.exports=c},26988:function(G){G.exports=p;var l=128,e=127;function p(r,g){var a=0,g=g||0,s=0,c=g,v,y=r.length;do{if(c>=y)throw p.bytes=0,new RangeError("Could not decode varint");v=r[c++],a+=s<28?(v&e)<<s:(v&e)*Math.pow(2,s),s+=7}while(v>=l);return p.bytes=c-g,a}},1312:function(G){G.exports=u;var l=128,e=127,p=~e,r=Math.pow(2,31);function u(a,g,s){g=g||[],s=s||0;for(var c=s;a>=r;)g[s++]=a&255|l,a/=128;for(;a&p;)g[s++]=a&255|l,a>>>=7;return g[s]=a|0,u.bytes=s-c+1,g}},94676:function(G,l,e){G.exports={encode:e(1312),decode:e(26988),encodingLength:e(10082)}},10082:function(G){var l=Math.pow(2,7),e=Math.pow(2,14),p=Math.pow(2,21),r=Math.pow(2,28),u=Math.pow(2,35),a=Math.pow(2,42),g=Math.pow(2,49),s=Math.pow(2,56),c=Math.pow(2,63);G.exports=function(v){return v<l?1:v<e?2:v<p?3:v<r?4:v<u?5:v<a?6:v<g?7:v<s?8:v<c?9:10}},81541:function(G,l,e){"use strict";var p=e(34155),r=e(88473).Transform,u=e(25981),a=e(74410),g=e(89509).Buffer;G.exports=c;function s(v,y,b){var N=new r({objectMode:v.objectMode});return N._write=y,N._flush=b,N}function c(v,y,b){var N,I,z=p.title==="browser",x=!!e.g.WebSocket,w=z?f:o;y&&!Array.isArray(y)&&typeof y=="object"&&(b=y,y=null,(typeof b.protocol=="string"||Array.isArray(b.protocol))&&(y=b.protocol)),b||(b={}),b.objectMode===void 0&&(b.objectMode=!(b.binary===!0||b.binary===void 0));var P=s(b,w,h);b.objectMode||(P._writev=A);var S=b.browserBufferSize||1024*512,L=b.browserBufferTimeout||1e3;typeof v=="object"?I=v:(x&&z?I=new a(v,y):I=new a(v,y,b),I.binaryType="arraybuffer");var B=typeof I.addEventListener>"u";I.readyState===I.OPEN?N=P:(N=N=u(void 0,void 0,b),b.objectMode||(N._writev=A),B?I.addEventListener("open",E):I.onopen=E),N.socket=I,B?(I.addEventListener("close",j),I.addEventListener("error",F),I.addEventListener("message",W)):(I.onclose=j,I.onerror=F,I.onmessage=W),P.on("close",d);var T=!b.objectMode;function o(k,O,U){if(I.readyState!==I.OPEN){U();return}T&&typeof k=="string"&&(k=g.from(k,"utf8")),I.send(k,U)}function f(k,O,U){if(I.bufferedAmount>S){setTimeout(f,L,k,O,U);return}T&&typeof k=="string"&&(k=g.from(k,"utf8"));try{I.send(k)}catch(H){return U(H)}U()}function h(k){I.close(),k()}function E(){N.setReadable(P),N.setWritable(P),N.emit("connect")}function j(){N.end(),N.destroy()}function F(k){N.destroy(k)}function W(k){var O=k.data;O instanceof ArrayBuffer?O=g.from(O):O=g.from(O,"utf8"),P.push(O)}function d(){I.close()}function A(k,O){for(var U=new Array(k.length),H=0;H<k.length;H++)typeof k[H].chunk=="string"?U[H]=g.from(k[H],"utf8"):U[H]=k[H].chunk;this._write(g.concat(U),"binary",O)}return N}},74410:function(G){var l=null;typeof WebSocket<"u"?l=WebSocket:typeof MozWebSocket<"u"?l=MozWebSocket:typeof window<"u"&&(l=window.WebSocket||window.MozWebSocket),G.exports=l},52479:function(G){G.exports=l;function l(e,p){if(e&&p)return l(e)(p);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(u){r[u]=e[u]}),r;function r(){for(var u=new Array(arguments.length),a=0;a<u.length;a++)u[a]=arguments[a];var g=e.apply(this,u),s=u[u.length-1];return typeof g=="function"&&g!==s&&Object.keys(s).forEach(function(c){g[c]=s[c]}),g}}},49602:function(G){"use strict";G.exports=function(l){l.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},34411:function(G,l,e){"use strict";G.exports=p,p.Node=g,p.create=p;function p(s){var c=this;if(c instanceof p||(c=new p),c.tail=null,c.head=null,c.length=0,s&&typeof s.forEach=="function")s.forEach(function(b){c.push(b)});else if(arguments.length>0)for(var v=0,y=arguments.length;v<y;v++)c.push(arguments[v]);return c}p.prototype.removeNode=function(s){if(s.list!==this)throw new Error("removing node which does not belong to this list");var c=s.next,v=s.prev;return c&&(c.prev=v),v&&(v.next=c),s===this.head&&(this.head=c),s===this.tail&&(this.tail=v),s.list.length--,s.next=null,s.prev=null,s.list=null,c},p.prototype.unshiftNode=function(s){if(s!==this.head){s.list&&s.list.removeNode(s);var c=this.head;s.list=this,s.next=c,c&&(c.prev=s),this.head=s,this.tail||(this.tail=s),this.length++}},p.prototype.pushNode=function(s){if(s!==this.tail){s.list&&s.list.removeNode(s);var c=this.tail;s.list=this,s.prev=c,c&&(c.next=s),this.tail=s,this.head||(this.head=s),this.length++}},p.prototype.push=function(){for(var s=0,c=arguments.length;s<c;s++)u(this,arguments[s]);return this.length},p.prototype.unshift=function(){for(var s=0,c=arguments.length;s<c;s++)a(this,arguments[s]);return this.length},p.prototype.pop=function(){if(!!this.tail){var s=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,s}},p.prototype.shift=function(){if(!!this.head){var s=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,s}},p.prototype.forEach=function(s,c){c=c||this;for(var v=this.head,y=0;v!==null;y++)s.call(c,v.value,y,this),v=v.next},p.prototype.forEachReverse=function(s,c){c=c||this;for(var v=this.tail,y=this.length-1;v!==null;y--)s.call(c,v.value,y,this),v=v.prev},p.prototype.get=function(s){for(var c=0,v=this.head;v!==null&&c<s;c++)v=v.next;if(c===s&&v!==null)return v.value},p.prototype.getReverse=function(s){for(var c=0,v=this.tail;v!==null&&c<s;c++)v=v.prev;if(c===s&&v!==null)return v.value},p.prototype.map=function(s,c){c=c||this;for(var v=new p,y=this.head;y!==null;)v.push(s.call(c,y.value,this)),y=y.next;return v},p.prototype.mapReverse=function(s,c){c=c||this;for(var v=new p,y=this.tail;y!==null;)v.push(s.call(c,y.value,this)),y=y.prev;return v},p.prototype.reduce=function(s,c){var v,y=this.head;if(arguments.length>1)v=c;else if(this.head)y=this.head.next,v=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var b=0;y!==null;b++)v=s(v,y.value,b),y=y.next;return v},p.prototype.reduceReverse=function(s,c){var v,y=this.tail;if(arguments.length>1)v=c;else if(this.tail)y=this.tail.prev,v=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var b=this.length-1;y!==null;b--)v=s(v,y.value,b),y=y.prev;return v},p.prototype.toArray=function(){for(var s=new Array(this.length),c=0,v=this.head;v!==null;c++)s[c]=v.value,v=v.next;return s},p.prototype.toArrayReverse=function(){for(var s=new Array(this.length),c=0,v=this.tail;v!==null;c++)s[c]=v.value,v=v.prev;return s},p.prototype.slice=function(s,c){c=c||this.length,c<0&&(c+=this.length),s=s||0,s<0&&(s+=this.length);var v=new p;if(c<s||c<0)return v;s<0&&(s=0),c>this.length&&(c=this.length);for(var y=0,b=this.head;b!==null&&y<s;y++)b=b.next;for(;b!==null&&y<c;y++,b=b.next)v.push(b.value);return v},p.prototype.sliceReverse=function(s,c){c=c||this.length,c<0&&(c+=this.length),s=s||0,s<0&&(s+=this.length);var v=new p;if(c<s||c<0)return v;s<0&&(s=0),c>this.length&&(c=this.length);for(var y=this.length,b=this.tail;b!==null&&y>c;y--)b=b.prev;for(;b!==null&&y>s;y--,b=b.prev)v.push(b.value);return v},p.prototype.splice=function(s,c,...v){s>this.length&&(s=this.length-1),s<0&&(s=this.length+s);for(var y=0,b=this.head;b!==null&&y<s;y++)b=b.next;for(var N=[],y=0;b&&y<c;y++)N.push(b.value),b=this.removeNode(b);b===null&&(b=this.tail),b!==this.head&&b!==this.tail&&(b=b.prev);for(var y=0;y<v.length;y++)b=r(this,b,v[y]);return N},p.prototype.reverse=function(){for(var s=this.head,c=this.tail,v=s;v!==null;v=v.prev){var y=v.prev;v.prev=v.next,v.next=y}return this.head=c,this.tail=s,this};function r(s,c,v){var y=c===s.head?new g(v,null,c,s):new g(v,c,c.next,s);return y.next===null&&(s.tail=y),y.prev===null&&(s.head=y),s.length++,y}function u(s,c){s.tail=new g(c,s.tail,null,s),s.head||(s.head=s.tail),s.length++}function a(s,c){s.head=new g(c,null,s.head,s),s.tail||(s.tail=s.head),s.length++}function g(s,c,v,y){if(!(this instanceof g))return new g(s,c,v,y);this.list=y,this.value=s,c?(c.next=this,this.prev=c):this.prev=null,v?(v.prev=this,this.next=v):this.next=null}try{e(49602)(p)}catch{}},38416:function(G,l,e){var p=e(64062);function r(u,a,g){return a=p(a),a in u?Object.defineProperty(u,a,{value:g,enumerable:!0,configurable:!0,writable:!0}):u[a]=g,u}G.exports=r,G.exports.__esModule=!0,G.exports.default=G.exports},64836:function(G){function l(e){return e&&e.__esModule?e:{default:e}}G.exports=l,G.exports.__esModule=!0,G.exports.default=G.exports},75263:function(G,l,e){var p=e(18698).default;function r(a){if(typeof WeakMap!="function")return null;var g=new WeakMap,s=new WeakMap;return(r=function(v){return v?s:g})(a)}function u(a,g){if(!g&&a&&a.__esModule)return a;if(a===null||p(a)!=="object"&&typeof a!="function")return{default:a};var s=r(g);if(s&&s.has(a))return s.get(a);var c={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in a)if(y!=="default"&&Object.prototype.hasOwnProperty.call(a,y)){var b=v?Object.getOwnPropertyDescriptor(a,y):null;b&&(b.get||b.set)?Object.defineProperty(c,y,b):c[y]=a[y]}return c.default=a,s&&s.set(a,c),c}G.exports=u,G.exports.__esModule=!0,G.exports.default=G.exports}}]);