!function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define("WalletConnectIsoCrypto",[],r):"object"==typeof exports?exports.WalletConnectIsoCrypto=r():t.WalletConnectIsoCrypto=r()}(this,(function(){return function(t){var r={};function n(e){if(r[e])return r[e].exports;var i=r[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var i in t)n.d(e,i,function(r){return t[r]}.bind(null,i));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=38)}([function(t,r,n){"use strict";n.r(r),function(t){n.d(r,"bufferToArray",(function(){return s})),n.d(r,"bufferToHex",(function(){return a})),n.d(r,"bufferToUtf8",(function(){return f})),n.d(r,"bufferToNumber",(function(){return h})),n.d(r,"bufferToBinary",(function(){return c})),n.d(r,"arrayToBuffer",(function(){return l})),n.d(r,"arrayToHex",(function(){return d})),n.d(r,"arrayToUtf8",(function(){return p})),n.d(r,"arrayToNumber",(function(){return m})),n.d(r,"arrayToBinary",(function(){return y})),n.d(r,"hexToBuffer",(function(){return g})),n.d(r,"hexToArray",(function(){return v})),n.d(r,"hexToUtf8",(function(){return w})),n.d(r,"hexToNumber",(function(){return b})),n.d(r,"hexToBinary",(function(){return M})),n.d(r,"utf8ToBuffer",(function(){return _})),n.d(r,"utf8ToArray",(function(){return A})),n.d(r,"utf8ToHex",(function(){return T})),n.d(r,"utf8ToNumber",(function(){return S})),n.d(r,"utf8ToBinary",(function(){return O})),n.d(r,"numberToBuffer",(function(){return E})),n.d(r,"numberToArray",(function(){return x})),n.d(r,"numberToHex",(function(){return B})),n.d(r,"numberToUtf8",(function(){return R})),n.d(r,"numberToBinary",(function(){return k})),n.d(r,"binaryToBuffer",(function(){return C})),n.d(r,"binaryToArray",(function(){return P})),n.d(r,"binaryToHex",(function(){return N})),n.d(r,"binaryToUtf8",(function(){return L})),n.d(r,"binaryToNumber",(function(){return I})),n.d(r,"isBinaryString",(function(){return j})),n.d(r,"isHexString",(function(){return U})),n.d(r,"isBuffer",(function(){return H})),n.d(r,"isTypedArray",(function(){return D})),n.d(r,"isArrayBuffer",(function(){return W})),n.d(r,"getType",(function(){return F})),n.d(r,"getEncoding",(function(){return Y})),n.d(r,"concatBuffers",(function(){return z})),n.d(r,"concatArrays",(function(){return q})),n.d(r,"trimLeft",(function(){return G})),n.d(r,"trimRight",(function(){return Z})),n.d(r,"calcByteLength",(function(){return $})),n.d(r,"splitBytes",(function(){return V})),n.d(r,"swapBytes",(function(){return J})),n.d(r,"swapHex",(function(){return K})),n.d(r,"sanitizeBytes",(function(){return X})),n.d(r,"padLeft",(function(){return Q})),n.d(r,"padRight",(function(){return tt})),n.d(r,"removeHexPrefix",(function(){return rt})),n.d(r,"addHexPrefix",(function(){return nt})),n.d(r,"sanitizeHex",(function(){return et})),n.d(r,"removeHexLeadingZeros",(function(){return it}));var e=n(12),i=n.n(e),o=n(33),u=n.n(o);function s(t){return new Uint8Array(t)}function a(t,r=!1){const n=t.toString("hex");return r?nt(n):n}function f(t){return t.toString("utf8")}function h(t){return t.readUIntBE(0,t.length)}function c(t){return y(s(t))}function l(t){return u()(t)}function d(t,r=!1){return a(l(t),r)}function p(t){return f(l(t))}function m(t){return h(l(t))}function y(t){return Array.from(t).map(k).join("")}function g(r){return t.from(rt(r),"hex")}function v(t){return s(g(t))}function w(t){return f(g(t))}function b(t){return m(v(t))}function M(t){return y(v(t))}function _(r){return t.from(r,"utf8")}function A(t){return s(_(t))}function T(t,r=!1){return a(_(t),r)}function S(t){const r=parseInt(t,10);return function(t,r){if(!t)throw new Error(r)}(!function(t){return void 0===t}(r),"Number can only safely store up to 53 bits"),r}function O(t){return y(A(t))}function E(t){return C(k(t))}function x(t){return P(k(t))}function B(t,r){return N(k(t),r)}function R(t){return""+t}function k(t){return X((t>>>0).toString(2))}function C(t){return l(P(t))}function P(t){return new Uint8Array(V(t).map(t=>parseInt(t,2)))}function N(t,r){return d(P(t),r)}function L(t){return p(P(t))}function I(t){return m(P(t))}function j(t){return!("string"!=typeof t||!new RegExp(/^[01]+$/).test(t))&&t.length%8==0}function U(t,r){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!r||t.length===2+2*r)}function H(r){return t.isBuffer(r)}function D(t){return i.a.strict(t)&&!H(t)}function W(t){return!D(t)&&!H(t)&&void 0!==t.byteLength}function F(t){return H(t)?"buffer":D(t)?"typed-array":W(t)?"array-buffer":Array.isArray(t)?"array":typeof t}function Y(t){return j(t)?"binary":U(t)?"hex":"utf8"}function z(...r){return t.concat(r)}function q(...t){let r=[];return t.forEach(t=>r=r.concat(Array.from(t))),new Uint8Array([...r])}function G(t,r){const n=t.length-r;return n>0&&(t=t.slice(n)),t}function Z(t,r){return t.slice(0,r)}function $(t,r=8){const n=t%r;return n?(t-n)/r*r+r:t}function V(t,r=8){const n=X(t).match(new RegExp(`.{${r}}`,"gi"));return Array.from(n||[])}function J(t){return V(t).map(ot).join("")}function K(t){return N(J(M(t)))}function X(t,r=8,n="0"){return Q(t,$(t.length,r),n)}function Q(t,r,n="0"){return ut(t,r,!0,n)}function tt(t,r,n="0"){return ut(t,r,!1,n)}function rt(t){return t.replace(/^0x/,"")}function nt(t){return t.startsWith("0x")?t:"0x"+t}function et(t){return(t=X(t=rt(t),2))&&(t=nt(t)),t}function it(t){const r=t.startsWith("0x");return t=(t=rt(t)).startsWith("0")?t.substring(1):t,r?nt(t):t}function ot(t){return t.split("").reverse().join("")}function ut(t,r,n,e="0"){const i=r-t.length;let o=t;if(i>0){const r=e.repeat(i);o=n?r+t:t+r}return o}}.call(this,n(22).Buffer)},function(t,r,n){"use strict";n.d(r,"b",(function(){return 256})),n.d(r,"j",(function(){return 256})),n.d(r,"a",(function(){return"AES-CBC"})),n.d(r,"i",(function(){return"SHA-256"})),n.d(r,"h",(function(){return"HMAC"})),n.d(r,"z",(function(){return"SHA-256"})),n.d(r,"B",(function(){return"SHA-512"})),n.d(r,"c",(function(){return"aes-256-cbc"})),n.d(r,"k",(function(){return"sha256"})),n.d(r,"A",(function(){return"sha256"})),n.d(r,"C",(function(){return"sha512"})),n.d(r,"y",(function(){return"ripemd160"})),n.d(r,"x",(function(){return 1})),n.d(r,"m",(function(){return 32})),n.d(r,"l",(function(){return 16})),n.d(r,"w",(function(){return 32})),n.d(r,"g",(function(){return"hex"})),n.d(r,"E",(function(){return"utf8"})),n.d(r,"f",(function(){return"Bad MAC"})),n.d(r,"n",(function(){return 0})),n.d(r,"o",(function(){return 1})),n.d(r,"r",(function(){return 16})),n.d(r,"t",(function(){return 32})),n.d(r,"v",(function(){return 64})),n.d(r,"q",(function(){return 128})),n.d(r,"s",(function(){return 256})),n.d(r,"u",(function(){return 512})),n.d(r,"p",(function(){return 1024})),n.d(r,"e",(function(){return"encrypt"})),n.d(r,"d",(function(){return"decrypt"})),n.d(r,"D",(function(){return"sign"})),n.d(r,"F",(function(){return"verify"}))},function(t,r,n){"use strict";n.d(r,"b",(function(){return e})),n.d(r,"d",(function(){return i})),n.d(r,"c",(function(){return o})),n.d(r,"e",(function(){return u})),n.d(r,"f",(function(){return s})),n.d(r,"a",(function(){return a}));const e="INTERNAL_ERROR",i="SERVER_ERROR",o=[-32700,-32600,-32601,-32602,-32603],u=[-32e3,-32099],s={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},[e]:{code:-32603,message:"Internal error"},[i]:{code:-32e3,message:"Server error"}},a=i},function(t,r,n){"use strict";var e=this&&this.__createBinding||(Object.create?function(t,r,n,e){void 0===e&&(e=n),Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[n]}})}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]}),i=this&&this.__exportStar||function(t,r){for(var n in t)"default"===n||r.hasOwnProperty(n)||e(r,t,n)};Object.defineProperty(r,"__esModule",{value:!0}),i(n(41),r),i(n(42),r)},function(t,r,n){"use strict";function e(t){let r=void 0;return"undefined"!=typeof window&&void 0!==window[t]&&(r=window[t]),r}function i(t){const r=e(t);if(!r)throw new Error(t+" is not defined in Window");return r}Object.defineProperty(r,"__esModule",{value:!0}),r.getLocalStorage=r.getLocalStorageOrThrow=r.getCrypto=r.getCryptoOrThrow=r.getLocation=r.getLocationOrThrow=r.getNavigator=r.getNavigatorOrThrow=r.getDocument=r.getDocumentOrThrow=r.getFromWindowOrThrow=r.getFromWindow=void 0,r.getFromWindow=e,r.getFromWindowOrThrow=i,r.getDocumentOrThrow=function(){return i("document")},r.getDocument=function(){return e("document")},r.getNavigatorOrThrow=function(){return i("navigator")},r.getNavigator=function(){return e("navigator")},r.getLocationOrThrow=function(){return i("location")},r.getLocation=function(){return e("location")},r.getCryptoOrThrow=function(){return i("crypto")},r.getCrypto=function(){return e("crypto")},r.getLocalStorageOrThrow=function(){return i("localStorage")},r.getLocalStorage=function(){return e("localStorage")}},function(t,r,n){"use strict";n.d(r,"b",(function(){return u})),n.d(r,"a",(function(){return s})),n.d(r,"c",(function(){return a})),n.d(r,"d",(function(){return f})),n.d(r,"e",(function(){return h})),n.d(r,"f",(function(){return c}));var e=n(3),i=n(1);async function o(t,r=i.a){return e.getSubtleCrypto().importKey("raw",t,function(t){return t===i.a?{length:i.b,name:i.a}:{hash:{name:i.i},name:i.h}}(r),!0,function(t){return t===i.a?[i.e,i.d]:[i.D,i.F]}(r))}async function u(t,r,n){const u=e.getSubtleCrypto(),s=await o(r,i.a),a=await u.encrypt({iv:t,name:i.a},s,n);return new Uint8Array(a)}async function s(t,r,n){const u=e.getSubtleCrypto(),s=await o(r,i.a),a=await u.decrypt({iv:t,name:i.a},s,n);return new Uint8Array(a)}async function a(t,r){const n=e.getSubtleCrypto(),u=await o(t,i.h),s=await n.sign({length:i.j,name:i.h},u,r);return new Uint8Array(s)}async function f(t,r){const n=e.getSubtleCrypto(),u=await o(t,i.h),s=await n.sign({length:i.u,name:i.h},u,r);return new Uint8Array(s)}async function h(t){const r=e.getSubtleCrypto(),n=await r.digest({name:i.z},t);return new Uint8Array(n)}async function c(t){const r=e.getSubtleCrypto(),n=await r.digest({name:i.B},t);return new Uint8Array(n)}},function(t,r,n){"use strict";n.d(r,"c",(function(){return i})),n.d(r,"a",(function(){return o})),n.d(r,"b",(function(){return u}));var e=n(2);function i(t){return e.c.includes(t)}function o(t){return Object.keys(e.f).includes(t)?e.f[t]:e.f[e.a]}function u(t){const r=Object.values(e.f).find(r=>r.code===t);return r||e.f[e.a]}},function(t,r,n){"use strict";n.r(r);var e=n(17);for(var i in e)"default"!==i&&function(t){n.d(r,t,(function(){return e[t]}))}(i);var o=n(18);n.d(r,"pkcs7",(function(){return o.a}));var u=n(19);for(var i in u)["pkcs7","default"].indexOf(i)<0&&function(t){n.d(r,t,(function(){return u[t]}))}(i);var s=n(20);n.d(r,"assert",(function(){return s.a})),n.d(r,"isConstantTime",(function(){return s.b}))},function(t,r,n){"use strict";n.d(r,"a",(function(){return e}));class e{}},function(t,r,n){(function(t){!function(t,r){"use strict";function e(t,r){if(!t)throw new Error(r||"Assertion failed")}function i(t,r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,r,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==r&&"be"!==r||(n=r,r=10),this._init(t||0,r||10,n||"be"))}var u;"object"==typeof t?t.exports=o:r.BN=o,o.BN=o,o.wordSize=26;try{u=n(47).Buffer}catch(t){}function s(t,r,n){for(var e=0,i=Math.min(t.length,n),o=r;o=49&&u<=54?u-49+10:u>=17&&u<=22?u-17+10:15&u}return e}function a(t,r,n,e){for(var i=0,o=Math.min(t.length,n),u=r;u=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,r){return t.cmp(r)>0?t:r},o.min=function(t,r){return t.cmp(r)<0?t:r},o.prototype._init=function(t,r,n){if("number"==typeof t)return this._initNumber(t,r,n);if("object"==typeof t)return this._initArray(t,r,n);"hex"===r&&(r=16),e(r===(0|r)&&r>=2&&r<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===r?this._parseHex(t,i):this._parseBase(t,r,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),r,n)},o.prototype._initNumber=function(t,r,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(e(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),r,n)},o.prototype._initArray=function(t,r,n){if(e("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)u=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=u<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,r){this.length=Math.ceil((t.length-r)/6),this.words=new Array(this.length);for(var n=0;n=r;n-=6)i=s(t,n,n+6),this.words[e]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,e++);n+6!==r&&(i=s(t,r,n+6),this.words[e]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,r,n){this.words=[0],this.length=1;for(var e=0,i=1;i<=67108863;i*=r)e++;e--,i=i/r|0;for(var o=t.length-n,u=o%e,s=Math.min(o,o-u)+n,f=0,h=n;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],c=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function l(t,r,n){n.negative=r.negative^t.negative;var e=t.length+r.length|0;n.length=e,e=e-1|0;var i=0|t.words[0],o=0|r.words[0],u=i*o,s=67108863&u,a=u/67108864|0;n.words[0]=s;for(var f=1;f>>26,c=67108863&a,l=Math.min(f,r.length-1),d=Math.max(0,f-t.length+1);d<=l;d++){var p=f-d|0;h+=(u=(i=0|t.words[p])*(o=0|r.words[d])+c)/67108864|0,c=67108863&u}n.words[f]=0|c,a=0|h}return 0!==a?n.words[f]=0|a:n.length--,n.strip()}o.prototype.toString=function(t,r){var n;if(r=0|r||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,u=0;u>>24-i&16777215)||u!==this.length-1?f[6-a.length]+a+n:a+n,(i+=2)>=26&&(i-=26,u--)}for(0!==o&&(n=o.toString(16)+n);n.length%r!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=h[t],d=c[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(d).toString(t);n=(p=p.idivn(d)).isZero()?m+n:f[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%r!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}e(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&e(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,r){return e(void 0!==u),this.toArrayLike(u,t,r)},o.prototype.toArray=function(t,r){return this.toArrayLike(Array,t,r)},o.prototype.toArrayLike=function(t,r,n){var i=this.byteLength(),o=n||Math.max(1,i);e(i<=o,"byte array longer than desired length"),e(o>0,"Requested array length <= 0"),this.strip();var u,s,a="le"===r,f=new t(o),h=this.clone();if(a){for(s=0;!h.isZero();s++)u=h.andln(255),h.iushrn(8),f[s]=u;for(;s=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},o.prototype._zeroBits=function(t){if(0===t)return 26;var r=t,n=0;return 0==(8191&r)&&(n+=13,r>>>=13),0==(127&r)&&(n+=7,r>>>=7),0==(15&r)&&(n+=4,r>>>=4),0==(3&r)&&(n+=2,r>>>=2),0==(1&r)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],r=this._countBits(t);return 26*(this.length-1)+r},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,r=0;rt.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var r;r=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var r,n;this.length>t.length?(r=this,n=t):(r=t,n=this);for(var e=0;et.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){e("number"==typeof t&&t>=0);var r=0|Math.ceil(t/26),n=t%26;this._expand(r),n>0&&r--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,r){e("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=r?this.words[n]|1<t.length?(n=this,e=t):(n=t,e=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var r=this.iadd(t);return t.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,e,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,e=t):(n=t,e=this);for(var o=0,u=0;u>26,this.words[u]=67108863&r;for(;0!==o&&u>26,this.words[u]=67108863&r;if(0===o&&u>>13,d=0|u[1],p=8191&d,m=d>>>13,y=0|u[2],g=8191&y,v=y>>>13,w=0|u[3],b=8191&w,M=w>>>13,_=0|u[4],A=8191&_,T=_>>>13,S=0|u[5],O=8191&S,E=S>>>13,x=0|u[6],B=8191&x,R=x>>>13,k=0|u[7],C=8191&k,P=k>>>13,N=0|u[8],L=8191&N,I=N>>>13,j=0|u[9],U=8191&j,H=j>>>13,D=0|s[0],W=8191&D,F=D>>>13,Y=0|s[1],z=8191&Y,q=Y>>>13,G=0|s[2],Z=8191&G,$=G>>>13,V=0|s[3],J=8191&V,K=V>>>13,X=0|s[4],Q=8191&X,tt=X>>>13,rt=0|s[5],nt=8191&rt,et=rt>>>13,it=0|s[6],ot=8191&it,ut=it>>>13,st=0|s[7],at=8191&st,ft=st>>>13,ht=0|s[8],ct=8191&ht,lt=ht>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^r.negative,n.length=19;var yt=(f+(e=Math.imul(c,W))|0)+((8191&(i=(i=Math.imul(c,F))+Math.imul(l,W)|0))<<13)|0;f=((o=Math.imul(l,F))+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,e=Math.imul(p,W),i=(i=Math.imul(p,F))+Math.imul(m,W)|0,o=Math.imul(m,F);var gt=(f+(e=e+Math.imul(c,z)|0)|0)+((8191&(i=(i=i+Math.imul(c,q)|0)+Math.imul(l,z)|0))<<13)|0;f=((o=o+Math.imul(l,q)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,e=Math.imul(g,W),i=(i=Math.imul(g,F))+Math.imul(v,W)|0,o=Math.imul(v,F),e=e+Math.imul(p,z)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(m,z)|0,o=o+Math.imul(m,q)|0;var vt=(f+(e=e+Math.imul(c,Z)|0)|0)+((8191&(i=(i=i+Math.imul(c,$)|0)+Math.imul(l,Z)|0))<<13)|0;f=((o=o+Math.imul(l,$)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,e=Math.imul(b,W),i=(i=Math.imul(b,F))+Math.imul(M,W)|0,o=Math.imul(M,F),e=e+Math.imul(g,z)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,z)|0,o=o+Math.imul(v,q)|0,e=e+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,$)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,$)|0;var wt=(f+(e=e+Math.imul(c,J)|0)|0)+((8191&(i=(i=i+Math.imul(c,K)|0)+Math.imul(l,J)|0))<<13)|0;f=((o=o+Math.imul(l,K)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,e=Math.imul(A,W),i=(i=Math.imul(A,F))+Math.imul(T,W)|0,o=Math.imul(T,F),e=e+Math.imul(b,z)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(M,z)|0,o=o+Math.imul(M,q)|0,e=e+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,$)|0)+Math.imul(v,Z)|0,o=o+Math.imul(v,$)|0,e=e+Math.imul(p,J)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,K)|0;var bt=(f+(e=e+Math.imul(c,Q)|0)|0)+((8191&(i=(i=i+Math.imul(c,tt)|0)+Math.imul(l,Q)|0))<<13)|0;f=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,e=Math.imul(O,W),i=(i=Math.imul(O,F))+Math.imul(E,W)|0,o=Math.imul(E,F),e=e+Math.imul(A,z)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(T,z)|0,o=o+Math.imul(T,q)|0,e=e+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,$)|0)+Math.imul(M,Z)|0,o=o+Math.imul(M,$)|0,e=e+Math.imul(g,J)|0,i=(i=i+Math.imul(g,K)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,K)|0,e=e+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var Mt=(f+(e=e+Math.imul(c,nt)|0)|0)+((8191&(i=(i=i+Math.imul(c,et)|0)+Math.imul(l,nt)|0))<<13)|0;f=((o=o+Math.imul(l,et)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,e=Math.imul(B,W),i=(i=Math.imul(B,F))+Math.imul(R,W)|0,o=Math.imul(R,F),e=e+Math.imul(O,z)|0,i=(i=i+Math.imul(O,q)|0)+Math.imul(E,z)|0,o=o+Math.imul(E,q)|0,e=e+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,$)|0,e=e+Math.imul(b,J)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,K)|0,e=e+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,tt)|0,e=e+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,et)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,et)|0;var _t=(f+(e=e+Math.imul(c,ot)|0)|0)+((8191&(i=(i=i+Math.imul(c,ut)|0)+Math.imul(l,ot)|0))<<13)|0;f=((o=o+Math.imul(l,ut)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,e=Math.imul(C,W),i=(i=Math.imul(C,F))+Math.imul(P,W)|0,o=Math.imul(P,F),e=e+Math.imul(B,z)|0,i=(i=i+Math.imul(B,q)|0)+Math.imul(R,z)|0,o=o+Math.imul(R,q)|0,e=e+Math.imul(O,Z)|0,i=(i=i+Math.imul(O,$)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,$)|0,e=e+Math.imul(A,J)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,K)|0,e=e+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,e=e+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,et)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,et)|0,e=e+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,ut)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,ut)|0;var At=(f+(e=e+Math.imul(c,at)|0)|0)+((8191&(i=(i=i+Math.imul(c,ft)|0)+Math.imul(l,at)|0))<<13)|0;f=((o=o+Math.imul(l,ft)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,e=Math.imul(L,W),i=(i=Math.imul(L,F))+Math.imul(I,W)|0,o=Math.imul(I,F),e=e+Math.imul(C,z)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(P,z)|0,o=o+Math.imul(P,q)|0,e=e+Math.imul(B,Z)|0,i=(i=i+Math.imul(B,$)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,$)|0,e=e+Math.imul(O,J)|0,i=(i=i+Math.imul(O,K)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,K)|0,e=e+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,e=e+Math.imul(b,nt)|0,i=(i=i+Math.imul(b,et)|0)+Math.imul(M,nt)|0,o=o+Math.imul(M,et)|0,e=e+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,ut)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,ut)|0,e=e+Math.imul(p,at)|0,i=(i=i+Math.imul(p,ft)|0)+Math.imul(m,at)|0,o=o+Math.imul(m,ft)|0;var Tt=(f+(e=e+Math.imul(c,ct)|0)|0)+((8191&(i=(i=i+Math.imul(c,lt)|0)+Math.imul(l,ct)|0))<<13)|0;f=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,e=Math.imul(U,W),i=(i=Math.imul(U,F))+Math.imul(H,W)|0,o=Math.imul(H,F),e=e+Math.imul(L,z)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(I,z)|0,o=o+Math.imul(I,q)|0,e=e+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,$)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,$)|0,e=e+Math.imul(B,J)|0,i=(i=i+Math.imul(B,K)|0)+Math.imul(R,J)|0,o=o+Math.imul(R,K)|0,e=e+Math.imul(O,Q)|0,i=(i=i+Math.imul(O,tt)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,tt)|0,e=e+Math.imul(A,nt)|0,i=(i=i+Math.imul(A,et)|0)+Math.imul(T,nt)|0,o=o+Math.imul(T,et)|0,e=e+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,ut)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,ut)|0,e=e+Math.imul(g,at)|0,i=(i=i+Math.imul(g,ft)|0)+Math.imul(v,at)|0,o=o+Math.imul(v,ft)|0,e=e+Math.imul(p,ct)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ct)|0,o=o+Math.imul(m,lt)|0;var St=(f+(e=e+Math.imul(c,pt)|0)|0)+((8191&(i=(i=i+Math.imul(c,mt)|0)+Math.imul(l,pt)|0))<<13)|0;f=((o=o+Math.imul(l,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,e=Math.imul(U,z),i=(i=Math.imul(U,q))+Math.imul(H,z)|0,o=Math.imul(H,q),e=e+Math.imul(L,Z)|0,i=(i=i+Math.imul(L,$)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,$)|0,e=e+Math.imul(C,J)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,K)|0,e=e+Math.imul(B,Q)|0,i=(i=i+Math.imul(B,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,e=e+Math.imul(O,nt)|0,i=(i=i+Math.imul(O,et)|0)+Math.imul(E,nt)|0,o=o+Math.imul(E,et)|0,e=e+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,ut)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,ut)|0,e=e+Math.imul(b,at)|0,i=(i=i+Math.imul(b,ft)|0)+Math.imul(M,at)|0,o=o+Math.imul(M,ft)|0,e=e+Math.imul(g,ct)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(v,ct)|0,o=o+Math.imul(v,lt)|0;var Ot=(f+(e=e+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;f=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,e=Math.imul(U,Z),i=(i=Math.imul(U,$))+Math.imul(H,Z)|0,o=Math.imul(H,$),e=e+Math.imul(L,J)|0,i=(i=i+Math.imul(L,K)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,K)|0,e=e+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,tt)|0,e=e+Math.imul(B,nt)|0,i=(i=i+Math.imul(B,et)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,et)|0,e=e+Math.imul(O,ot)|0,i=(i=i+Math.imul(O,ut)|0)+Math.imul(E,ot)|0,o=o+Math.imul(E,ut)|0,e=e+Math.imul(A,at)|0,i=(i=i+Math.imul(A,ft)|0)+Math.imul(T,at)|0,o=o+Math.imul(T,ft)|0,e=e+Math.imul(b,ct)|0,i=(i=i+Math.imul(b,lt)|0)+Math.imul(M,ct)|0,o=o+Math.imul(M,lt)|0;var Et=(f+(e=e+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(v,pt)|0))<<13)|0;f=((o=o+Math.imul(v,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,e=Math.imul(U,J),i=(i=Math.imul(U,K))+Math.imul(H,J)|0,o=Math.imul(H,K),e=e+Math.imul(L,Q)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,e=e+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,et)|0)+Math.imul(P,nt)|0,o=o+Math.imul(P,et)|0,e=e+Math.imul(B,ot)|0,i=(i=i+Math.imul(B,ut)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,ut)|0,e=e+Math.imul(O,at)|0,i=(i=i+Math.imul(O,ft)|0)+Math.imul(E,at)|0,o=o+Math.imul(E,ft)|0,e=e+Math.imul(A,ct)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(T,ct)|0,o=o+Math.imul(T,lt)|0;var xt=(f+(e=e+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,mt)|0)+Math.imul(M,pt)|0))<<13)|0;f=((o=o+Math.imul(M,mt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,e=Math.imul(U,Q),i=(i=Math.imul(U,tt))+Math.imul(H,Q)|0,o=Math.imul(H,tt),e=e+Math.imul(L,nt)|0,i=(i=i+Math.imul(L,et)|0)+Math.imul(I,nt)|0,o=o+Math.imul(I,et)|0,e=e+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,ut)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,ut)|0,e=e+Math.imul(B,at)|0,i=(i=i+Math.imul(B,ft)|0)+Math.imul(R,at)|0,o=o+Math.imul(R,ft)|0,e=e+Math.imul(O,ct)|0,i=(i=i+Math.imul(O,lt)|0)+Math.imul(E,ct)|0,o=o+Math.imul(E,lt)|0;var Bt=(f+(e=e+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,mt)|0)+Math.imul(T,pt)|0))<<13)|0;f=((o=o+Math.imul(T,mt)|0)+(i>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,e=Math.imul(U,nt),i=(i=Math.imul(U,et))+Math.imul(H,nt)|0,o=Math.imul(H,et),e=e+Math.imul(L,ot)|0,i=(i=i+Math.imul(L,ut)|0)+Math.imul(I,ot)|0,o=o+Math.imul(I,ut)|0,e=e+Math.imul(C,at)|0,i=(i=i+Math.imul(C,ft)|0)+Math.imul(P,at)|0,o=o+Math.imul(P,ft)|0,e=e+Math.imul(B,ct)|0,i=(i=i+Math.imul(B,lt)|0)+Math.imul(R,ct)|0,o=o+Math.imul(R,lt)|0;var Rt=(f+(e=e+Math.imul(O,pt)|0)|0)+((8191&(i=(i=i+Math.imul(O,mt)|0)+Math.imul(E,pt)|0))<<13)|0;f=((o=o+Math.imul(E,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,e=Math.imul(U,ot),i=(i=Math.imul(U,ut))+Math.imul(H,ot)|0,o=Math.imul(H,ut),e=e+Math.imul(L,at)|0,i=(i=i+Math.imul(L,ft)|0)+Math.imul(I,at)|0,o=o+Math.imul(I,ft)|0,e=e+Math.imul(C,ct)|0,i=(i=i+Math.imul(C,lt)|0)+Math.imul(P,ct)|0,o=o+Math.imul(P,lt)|0;var kt=(f+(e=e+Math.imul(B,pt)|0)|0)+((8191&(i=(i=i+Math.imul(B,mt)|0)+Math.imul(R,pt)|0))<<13)|0;f=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,e=Math.imul(U,at),i=(i=Math.imul(U,ft))+Math.imul(H,at)|0,o=Math.imul(H,ft),e=e+Math.imul(L,ct)|0,i=(i=i+Math.imul(L,lt)|0)+Math.imul(I,ct)|0,o=o+Math.imul(I,lt)|0;var Ct=(f+(e=e+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,mt)|0)+Math.imul(P,pt)|0))<<13)|0;f=((o=o+Math.imul(P,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,e=Math.imul(U,ct),i=(i=Math.imul(U,lt))+Math.imul(H,ct)|0,o=Math.imul(H,lt);var Pt=(f+(e=e+Math.imul(L,pt)|0)|0)+((8191&(i=(i=i+Math.imul(L,mt)|0)+Math.imul(I,pt)|0))<<13)|0;f=((o=o+Math.imul(I,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863;var Nt=(f+(e=Math.imul(U,pt))|0)+((8191&(i=(i=Math.imul(U,mt))+Math.imul(H,pt)|0))<<13)|0;return f=((o=Math.imul(H,mt))+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,a[0]=yt,a[1]=gt,a[2]=vt,a[3]=wt,a[4]=bt,a[5]=Mt,a[6]=_t,a[7]=At,a[8]=Tt,a[9]=St,a[10]=Ot,a[11]=Et,a[12]=xt,a[13]=Bt,a[14]=Rt,a[15]=kt,a[16]=Ct,a[17]=Pt,a[18]=Nt,0!==f&&(a[19]=f,n.length++),n};function p(t,r,n){return(new m).mulp(t,r,n)}function m(t,r){this.x=t,this.y=r}Math.imul||(d=l),o.prototype.mulTo=function(t,r){var n=this.length+t.length;return 10===this.length&&10===t.length?d(this,t,r):n<63?l(this,t,r):n<1024?function(t,r,n){n.negative=r.negative^t.negative,n.length=t.length+r.length;for(var e=0,i=0,o=0;o>>26)|0)>>>26,u&=67108863}n.words[o]=s,e=u,u=i}return 0!==e?n.words[o]=e:n.length--,n.strip()}(this,t,r):p(this,t,r)},m.prototype.makeRBT=function(t){for(var r=new Array(t),n=o.prototype._countBits(t)-1,e=0;e>=1;return e},m.prototype.permute=function(t,r,n,e,i,o){for(var u=0;u>>=1)i++;return 1<>>=13,n[2*u+1]=8191&o,o>>>=13;for(u=2*r;u>=26,r+=i/67108864|0,r+=o>>>26,this.words[n]=67108863&o}return 0!==r&&(this.words[n]=r,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var r=function(t){for(var r=new Array(t.bitLength()),n=0;n>>i}return r}(t);if(0===r.length)return new o(1);for(var n=this,e=0;e=0);var r,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var u=0;for(r=0;r>>26-n}u&&(this.words[r]=u,this.length++)}if(0!==i){for(r=this.length-1;r>=0;r--)this.words[r+i]=this.words[r];for(r=0;r=0),i=r?(r-r%26)/26:0;var o=t%26,u=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<u)for(this.length-=u,f=0;f=0&&(0!==h||f>=i);f--){var c=0|this.words[f];this.words[f]=h<<26-o|c>>>o,h=c&s}return a&&0!==h&&(a.words[a.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,r,n){return e(0===this.negative),this.iushrn(t,r,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){e("number"==typeof t&&t>=0);var r=t%26,n=(t-r)/26,i=1<=0);var r=t%26,n=(t-r)/26;if(e(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==r&&n++,this.length=Math.min(n,this.length),0!==r){var i=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},o.prototype.isubn=function(t){if(e("number"==typeof t),e(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(a/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(e(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,r){var n=(this.length,t.length),e=this.clone(),i=t,u=0|i.words[i.length-1];0!==(n=26-this._countBits(u))&&(i=i.ushln(n),e.iushln(n),u=0|i.words[i.length-1]);var s,a=e.length-i.length;if("mod"!==r){(s=new o(null)).length=a+1,s.words=new Array(s.length);for(var f=0;f=0;c--){var l=67108864*(0|e.words[i.length+c])+(0|e.words[i.length+c-1]);for(l=Math.min(l/u|0,67108863),e._ishlnsubmul(i,l,c);0!==e.negative;)l--,e.negative=0,e._ishlnsubmul(i,1,c),e.isZero()||(e.negative^=1);s&&(s.words[c]=l)}return s&&s.strip(),e.strip(),"div"!==r&&0!==n&&e.iushrn(n),{div:s||null,mod:e}},o.prototype.divmod=function(t,r,n){return e(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,r),"mod"!==r&&(i=s.div.neg()),"div"!==r&&(u=s.mod.neg(),n&&0!==u.negative&&u.iadd(t)),{div:i,mod:u}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),r),"mod"!==r&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),r),"div"!==r&&(u=s.mod.neg(),n&&0!==u.negative&&u.isub(t)),{div:s.div,mod:u}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===r?{div:this.divn(t.words[0]),mod:null}:"mod"===r?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,r);var i,u,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var r=this.divmod(t);if(r.mod.isZero())return r.div;var n=0!==r.div.negative?r.mod.isub(t):r.mod,e=t.ushrn(1),i=t.andln(1),o=n.cmp(e);return o<0||1===i&&0===o?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},o.prototype.modn=function(t){e(t<=67108863);for(var r=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(r*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){e(t<=67108863);for(var r=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*r;this.words[n]=i/t|0,r=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){e(0===t.negative),e(!t.isZero());var r=this,n=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var i=new o(1),u=new o(0),s=new o(0),a=new o(1),f=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++f;for(var h=n.clone(),c=r.clone();!r.isZero();){for(var l=0,d=1;0==(r.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(r.iushrn(l);l-- >0;)(i.isOdd()||u.isOdd())&&(i.iadd(h),u.isub(c)),i.iushrn(1),u.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||a.isOdd())&&(s.iadd(h),a.isub(c)),s.iushrn(1),a.iushrn(1);r.cmp(n)>=0?(r.isub(n),i.isub(s),u.isub(a)):(n.isub(r),s.isub(i),a.isub(u))}return{a:s,b:a,gcd:n.iushln(f)}},o.prototype._invmp=function(t){e(0===t.negative),e(!t.isZero());var r=this,n=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var i,u=new o(1),s=new o(0),a=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var f=0,h=1;0==(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)u.isOdd()&&u.iadd(a),u.iushrn(1);for(var c=0,l=1;0==(n.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(n.iushrn(c);c-- >0;)s.isOdd()&&s.iadd(a),s.iushrn(1);r.cmp(n)>=0?(r.isub(n),u.isub(s)):(n.isub(r),s.isub(u))}return(i=0===r.cmpn(1)?u:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var r=this.clone(),n=t.clone();r.negative=0,n.negative=0;for(var e=0;r.isEven()&&n.isEven();e++)r.iushrn(1),n.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=r.cmp(n);if(i<0){var o=r;r=n,n=o}else if(0===i||0===n.cmpn(1))break;r.isub(n)}return n.iushln(e)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){e("number"==typeof t);var r=t%26,n=(t-r)/26,i=1<>>26,s&=67108863,this.words[u]=s}return 0!==o&&(this.words[u]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var r,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)r=1;else{n&&(t=-t),e(t<=67108863,"Number is too big");var i=0|this.words[0];r=i===t?0:it.length)return 1;if(this.length=0;n--){var e=0|this.words[n],i=0|t.words[n];if(e!==i){ei&&(r=1);break}}return r},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new _(t)},o.prototype.toRed=function(t){return e(!this.red,"Already a number in reduction context"),e(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return e(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return e(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return e(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return e(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return e(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return e(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return e(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return e(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return e(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return e(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return e(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return e(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return e(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return e(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function g(t,r){this.name=t,this.p=new o(r,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(t){if("string"==typeof t){var r=o._prime(t);this.m=r.p,this.prime=r}else e(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){_.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var r,n=t;do{this.split(n,this.tmp),r=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(r>this.n);var e=r0?n.isub(this.p):n.strip(),n},g.prototype.split=function(t,r){t.iushrn(this.n,0,r)},g.prototype.imulK=function(t){return t.imul(this.k)},i(v,g),v.prototype.split=function(t,r){for(var n=Math.min(t.length,9),e=0;e>>22,i=o}i>>>=22,t.words[e-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var r=0,n=0;n>>=26,t.words[n]=i,r=e}return 0!==r&&(t.words[t.length++]=r),t},o._prime=function(t){if(y[t])return y[t];var r;if("k256"===t)r=new v;else if("p224"===t)r=new w;else if("p192"===t)r=new b;else{if("p25519"!==t)throw new Error("Unknown prime "+t);r=new M}return y[t]=r,r},_.prototype._verify1=function(t){e(0===t.negative,"red works only with positives"),e(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,r){e(0==(t.negative|r.negative),"red works only with positives"),e(t.red&&t.red===r.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.prototype.add=function(t,r){this._verify2(t,r);var n=t.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(t,r){this._verify2(t,r);var n=t.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(t,r){this._verify2(t,r);var n=t.sub(r);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(t,r){this._verify2(t,r);var n=t.isub(r);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(t,r){return this._verify1(t),this.imod(t.ushln(r))},_.prototype.imul=function(t,r){return this._verify2(t,r),this.imod(t.imul(r))},_.prototype.mul=function(t,r){return this._verify2(t,r),this.imod(t.mul(r))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var r=this.m.andln(3);if(e(r%2==1),3===r){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),u=0;!i.isZero()&&0===i.andln(1);)u++,i.iushrn(1);e(!i.isZero());var s=new o(1).toRed(this),a=s.redNeg(),f=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new o(2*h*h).toRed(this);0!==this.pow(h,f).cmp(a);)h.redIAdd(a);for(var c=this.pow(h,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=u;0!==d.cmp(s);){for(var m=d,y=0;0!==m.cmp(s);y++)m=m.redSqr();e(y=0;e--){for(var f=r.words[e],h=a-1;h>=0;h--){var c=f>>h&1;i!==n[0]&&(i=this.sqr(i)),0!==c||0!==u?(u<<=1,u|=c,(4===++s||0===e&&0===h)&&(i=this.mul(i,n[u]),s=0,u=0)):s=0}a=26}return i},_.prototype.convertTo=function(t){var r=t.umod(this.m);return r===t?r.clone():r},_.prototype.convertFrom=function(t){var r=t.clone();return r.red=null,r},o.mont=function(t){return new A(t)},i(A,_),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var r=this.imod(t.mul(this.rinv));return r.red=null,r},A.prototype.imul=function(t,r){if(t.isZero()||r.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(r),e=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(e).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(t,r){if(t.isZero()||r.isZero())return new o(0)._forceRed(this);var n=t.mul(r),e=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(e).iushrn(this.shift),u=i;return i.cmp(this.m)>=0?u=i.isub(this.m):i.cmpn(0)<0&&(u=i.iadd(this.m)),u._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(46)(t))},function(t,r){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,r){var n,e,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(r){try{return n.call(null,t,0)}catch(r){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{e="function"==typeof clearTimeout?clearTimeout:u}catch(t){e=u}}();var a,f=[],h=!1,c=-1;function l(){h&&a&&(h=!1,a.length?f=a.concat(f):c=-1,f.length&&d())}function d(){if(!h){var t=s(l);h=!0;for(var r=f.length;r;){for(a=f,f=[];++c1)for(var n=1;n{r=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),r?(void 0===e[t]&&(e[t]={}),e[t][r[1]]=n):e[t]=n};case"bracket":return(t,n,e)=>{r=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),r?void 0!==e[t]?e[t]=[].concat(e[t],n):e[t]=[n]:e[t]=n};case"comma":case"separator":return(r,n,e)=>{const i="string"==typeof n&&n.split("").indexOf(t.arrayFormatSeparator)>-1?n.split(t.arrayFormatSeparator).map(r=>a(r,t)):null===n?n:a(n,t);e[r]=i};default:return(t,r,n)=>{void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=r}}}(r),e=Object.create(null);if("string"!=typeof t)return e;if(!(t=t.trim().replace(/^[?#&]/,"")))return e;for(const i of t.split("&")){let[t,u]=o(r.decode?i.replace(/\+/g," "):i,"=");u=void 0===u?null:["comma","separator"].includes(r.arrayFormat)?u:a(u,r),n(a(t,r),u,e)}for(const t of Object.keys(e)){const n=e[t];if("object"==typeof n&&null!==n)for(const t of Object.keys(n))n[t]=c(n[t],r);else e[t]=c(n,r)}return!1===r.sort?e:(!0===r.sort?Object.keys(e).sort():Object.keys(e).sort(r.sort)).reduce((t,r)=>{const n=e[r];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?t[r]=function t(r){return Array.isArray(r)?r.sort():"object"==typeof r?t(Object.keys(r)).sort((t,r)=>Number(t)-Number(r)).map(t=>r[t]):r}(n):t[r]=n,t},Object.create(null))}r.extract=h,r.parse=l,r.stringify=(t,r)=>{if(!t)return"";u((r=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},r)).arrayFormatSeparator);const n=n=>r.skipNull&&null==t[n]||r.skipEmptyString&&""===t[n],e=function(t){switch(t.arrayFormat){case"index":return r=>(n,e)=>{const i=n.length;return void 0===e||t.skipNull&&null===e||t.skipEmptyString&&""===e?n:null===e?[...n,[s(r,t),"[",i,"]"].join("")]:[...n,[s(r,t),"[",s(i,t),"]=",s(e,t)].join("")]};case"bracket":return r=>(n,e)=>void 0===e||t.skipNull&&null===e||t.skipEmptyString&&""===e?n:null===e?[...n,[s(r,t),"[]"].join("")]:[...n,[s(r,t),"[]=",s(e,t)].join("")];case"comma":case"separator":return r=>(n,e)=>null==e||0===e.length?n:0===n.length?[[s(r,t),"=",s(e,t)].join("")]:[[n,s(e,t)].join(t.arrayFormatSeparator)];default:return r=>(n,e)=>void 0===e||t.skipNull&&null===e||t.skipEmptyString&&""===e?n:null===e?[...n,s(r,t)]:[...n,[s(r,t),"=",s(e,t)].join("")]}}(r),i={};for(const r of Object.keys(t))n(r)||(i[r]=t[r]);const o=Object.keys(i);return!1!==r.sort&&o.sort(r.sort),o.map(n=>{const i=t[n];return void 0===i?"":null===i?s(n,r):Array.isArray(i)?i.reduce(e(n),[]).join("&"):s(n,r)+"="+s(i,r)}).filter(t=>t.length>0).join("&")},r.parseUrl=(t,r)=>{r=Object.assign({decode:!0},r);const[n,e]=o(t,"#");return Object.assign({url:n.split("?")[0]||"",query:l(h(t),r)},r&&r.parseFragmentIdentifier&&e?{fragmentIdentifier:a(e,r)}:{})},r.stringifyUrl=(t,n)=>{n=Object.assign({encode:!0,strict:!0},n);const e=f(t.url).split("?")[0]||"",i=r.extract(t.url),o=r.parse(i,{sort:!1}),u=Object.assign(o,t.query);let a=r.stringify(u,n);a&&(a="?"+a);let h=function(t){let r="";const n=t.indexOf("#");return-1!==n&&(r=t.slice(n)),r}(t.url);return t.fragmentIdentifier&&(h="#"+s(t.fragmentIdentifier,n)),`${e}${a}${h}`}},function(t,r,n){"use strict";n.d(r,"a",(function(){return i}));var e=n(3);function i(t){return e.getBrowerCrypto().getRandomValues(new Uint8Array(t))}},function(t,r,n){"use strict";n.d(r,"b",(function(){return i})),n.d(r,"a",(function(){return o}));var e=n(5);function i(t,r,n){return Object(e.b)(t,r,n)}function o(t,r,n){return Object(e.a)(t,r,n)}},function(t,r,n){"use strict";n.d(r,"a",(function(){return o})),n.d(r,"b",(function(){return u})),n.d(r,"c",(function(){return s})),n.d(r,"d",(function(){return a}));var e=n(5),i=n(7);async function o(t,r){return await Object(e.c)(t,r)}async function u(t,r,n){const o=await Object(e.c)(t,r);return Object(i.isConstantTime)(o,n)}async function s(t,r){return await Object(e.d)(t,r)}async function a(t,r,n){const o=await Object(e.d)(t,r);return Object(i.isConstantTime)(o,n)}},function(t,r,n){"use strict";n.r(r);var e=n(3);for(var i in e)"default"!==i&&function(t){n.d(r,t,(function(){return e[t]}))}(i)},function(t,r,n){"use strict";n.d(r,"a",(function(){return i}));const e=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]],i={pad(t){const r=e[t.byteLength%16||0],n=new Uint8Array(t.byteLength+r.length);return n.set(t),n.set(r,t.byteLength),n},unpad:t=>t.subarray(0,t.byteLength-t[t.byteLength-1])}},function(t,r){},function(t,r,n){"use strict";function e(t,r){if(!t)throw new Error(r||"Assertion failed")}function i(t,r){if(t.length!==r.length)return!1;let n=0;for(let e=0;e * @license MIT */ var e=n(43),i=n(44),o=n(45);function u(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,r){if(u()=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return 0|t}function p(t,r){if(a.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var e=!1;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return D(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(t).length;default:if(e)return D(t).length;r=(""+r).toLowerCase(),e=!0}}function m(t,r,n){var e=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,r,n);case"utf8":case"utf-8":return O(this,r,n);case"ascii":return E(this,r,n);case"latin1":case"binary":return x(this,r,n);case"base64":return S(this,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,r,n);default:if(e)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),e=!0}}function y(t,r,n){var e=t[r];t[r]=t[n],t[n]=e}function g(t,r,n,e,i){if(0===t.length)return-1;if("string"==typeof n?(e=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof r&&(r=a.from(r,e)),a.isBuffer(r))return 0===r.length?-1:v(t,r,n,e,i);if("number"==typeof r)return r&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,n):Uint8Array.prototype.lastIndexOf.call(t,r,n):v(t,[r],n,e,i);throw new TypeError("val must be string, number or Buffer")}function v(t,r,n,e,i){var o,u=1,s=t.length,a=r.length;if(void 0!==e&&("ucs2"===(e=String(e).toLowerCase())||"ucs-2"===e||"utf16le"===e||"utf-16le"===e)){if(t.length<2||r.length<2)return-1;u=2,s/=2,a/=2,n/=2}function f(t,r){return 1===u?t[r]:t.readUInt16BE(r*u)}if(i){var h=-1;for(o=n;os&&(n=s-a),o=n;o>=0;o--){for(var c=!0,l=0;li&&(e=i):e=i;var o=r.length;if(o%2!=0)throw new TypeError("Invalid hex string");e>o/2&&(e=o/2);for(var u=0;u>8,i=n%256,o.push(i),o.push(e);return o}(r,t.length-n),t,n,e)}function S(t,r,n){return 0===r&&n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function O(t,r,n){n=Math.min(t.length,n);for(var e=[],i=r;i239?4:f>223?3:f>191?2:1;if(i+c<=n)switch(c){case 1:f<128&&(h=f);break;case 2:128==(192&(o=t[i+1]))&&(a=(31&f)<<6|63&o)>127&&(h=a);break;case 3:o=t[i+1],u=t[i+2],128==(192&o)&&128==(192&u)&&(a=(15&f)<<12|(63&o)<<6|63&u)>2047&&(a<55296||a>57343)&&(h=a);break;case 4:o=t[i+1],u=t[i+2],s=t[i+3],128==(192&o)&&128==(192&u)&&128==(192&s)&&(a=(15&f)<<18|(63&o)<<12|(63&u)<<6|63&s)>65535&&a<1114112&&(h=a)}null===h?(h=65533,c=1):h>65535&&(h-=65536,e.push(h>>>10&1023|55296),h=56320|1023&h),e.push(h),i+=c}return function(t){var r=t.length;if(r<=4096)return String.fromCharCode.apply(String,t);var n="",e=0;for(;e0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},a.prototype.compare=function(t,r,n,e,i){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===n&&(n=t?t.length:0),void 0===e&&(e=0),void 0===i&&(i=this.length),r<0||n>t.length||e<0||i>this.length)throw new RangeError("out of range index");if(e>=i&&r>=n)return 0;if(e>=i)return-1;if(r>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(e>>>=0),u=(n>>>=0)-(r>>>=0),s=Math.min(o,u),f=this.slice(e,i),h=t.slice(r,n),c=0;ci)&&(n=i),t.length>0&&(n<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(var o=!1;;)switch(e){case"hex":return w(this,t,r,n);case"utf8":case"utf-8":return b(this,t,r,n);case"ascii":return M(this,t,r,n);case"latin1":case"binary":return _(this,t,r,n);case"base64":return A(this,t,r,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function E(t,r,n){var e="";n=Math.min(t.length,n);for(var i=r;ie)&&(n=e);for(var i="",o=r;on)throw new RangeError("Trying to access beyond buffer length")}function C(t,r,n,e,i,o){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||rt.length)throw new RangeError("Index out of range")}function P(t,r,n,e){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(e?i:1-i)}function N(t,r,n,e){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(e?i:3-i)&255}function L(t,r,n,e,i,o){if(n+e>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function I(t,r,n,e,o){return o||L(t,0,n,4),i.write(t,r,n,e,23,4),n+4}function j(t,r,n,e,o){return o||L(t,0,n,8),i.write(t,r,n,e,52,8),n+8}a.prototype.slice=function(t,r){var n,e=this.length;if((t=~~t)<0?(t+=e)<0&&(t=0):t>e&&(t=e),(r=void 0===r?e:~~r)<0?(r+=e)<0&&(r=0):r>e&&(r=e),r0&&(i*=256);)e+=this[t+--r]*i;return e},a.prototype.readUInt8=function(t,r){return r||k(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,r){return r||k(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,r){return r||k(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,r){return r||k(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,r){return r||k(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,r,n){t|=0,r|=0,n||k(t,r,this.length);for(var e=this[t],i=1,o=0;++o=(i*=128)&&(e-=Math.pow(2,8*r)),e},a.prototype.readIntBE=function(t,r,n){t|=0,r|=0,n||k(t,r,this.length);for(var e=r,i=1,o=this[t+--e];e>0&&(i*=256);)o+=this[t+--e]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*r)),o},a.prototype.readInt8=function(t,r){return r||k(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,r){r||k(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(t,r){r||k(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(t,r){return r||k(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,r){return r||k(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,r){return r||k(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,r){return r||k(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,r){return r||k(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,r){return r||k(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,r,n,e){(t=+t,r|=0,n|=0,e)||C(this,t,r,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[r]=255&t;++o=0&&(o*=256);)this[r+i]=t/o&255;return r+n},a.prototype.writeUInt8=function(t,r,n){return t=+t,r|=0,n||C(this,t,r,1,255,0),a.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},a.prototype.writeUInt16LE=function(t,r,n){return t=+t,r|=0,n||C(this,t,r,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):P(this,t,r,!0),r+2},a.prototype.writeUInt16BE=function(t,r,n){return t=+t,r|=0,n||C(this,t,r,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):P(this,t,r,!1),r+2},a.prototype.writeUInt32LE=function(t,r,n){return t=+t,r|=0,n||C(this,t,r,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):N(this,t,r,!0),r+4},a.prototype.writeUInt32BE=function(t,r,n){return t=+t,r|=0,n||C(this,t,r,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):N(this,t,r,!1),r+4},a.prototype.writeIntLE=function(t,r,n,e){if(t=+t,r|=0,!e){var i=Math.pow(2,8*n-1);C(this,t,r,n,i-1,-i)}var o=0,u=1,s=0;for(this[r]=255&t;++o>0)-s&255;return r+n},a.prototype.writeIntBE=function(t,r,n,e){if(t=+t,r|=0,!e){var i=Math.pow(2,8*n-1);C(this,t,r,n,i-1,-i)}var o=n-1,u=1,s=0;for(this[r+o]=255&t;--o>=0&&(u*=256);)t<0&&0===s&&0!==this[r+o+1]&&(s=1),this[r+o]=(t/u>>0)-s&255;return r+n},a.prototype.writeInt8=function(t,r,n){return t=+t,r|=0,n||C(this,t,r,1,127,-128),a.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},a.prototype.writeInt16LE=function(t,r,n){return t=+t,r|=0,n||C(this,t,r,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):P(this,t,r,!0),r+2},a.prototype.writeInt16BE=function(t,r,n){return t=+t,r|=0,n||C(this,t,r,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):P(this,t,r,!1),r+2},a.prototype.writeInt32LE=function(t,r,n){return t=+t,r|=0,n||C(this,t,r,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):N(this,t,r,!0),r+4},a.prototype.writeInt32BE=function(t,r,n){return t=+t,r|=0,n||C(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),a.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):N(this,t,r,!1),r+4},a.prototype.writeFloatLE=function(t,r,n){return I(this,t,r,!0,n)},a.prototype.writeFloatBE=function(t,r,n){return I(this,t,r,!1,n)},a.prototype.writeDoubleLE=function(t,r,n){return j(this,t,r,!0,n)},a.prototype.writeDoubleBE=function(t,r,n){return j(this,t,r,!1,n)},a.prototype.copy=function(t,r,n,e){if(n||(n=0),e||0===e||(e=this.length),r>=t.length&&(r=t.length),r||(r=0),e>0&&e=this.length)throw new RangeError("sourceStart out of bounds");if(e<0)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length),t.length-r=0;--i)t[i+r]=this[i+n];else if(o<1e3||!a.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=r;o55295&&n<57344){if(!i){if(n>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(u+1===e){(r-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(r-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((r-=1)<0)break;o.push(n)}else if(n<2048){if((r-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((r-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(t){return e.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(U,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,r,n,e){for(var i=0;i=r.length||i>=t.length);++i)r[i+n]=t[i];return i}}).call(this,n(10))},function(t,r,n){"use strict";var e=n(3);n.o(e,"payloadId")&&n.d(r,"payloadId",(function(){return e.payloadId}));e.isNode},function(t,r,n){"use strict";n.d(r,"a",(function(){return e}));n(6),n(2);function e(){return Date.now()*Math.pow(10,3)+Math.floor(Math.random()*Math.pow(10,3))}},function(t,r,n){"use strict"},function(t,r,n){"use strict";n(27)},function(t,r,n){"use strict";n(28),n(8),n(29),n(30)},function(t,r){},function(t,r,n){"use strict";var e=n(8);e.a;e.a},function(t,r){},function(t,r,n){"use strict"},function(t,r,n){"use strict"},function(t,r,n){(function(r){var e=n(12).strict;t.exports=function(t){if(e(t)){var n=r.from(t.buffer);return t.byteLength!==t.buffer.byteLength&&(n=n.slice(t.byteOffset,t.byteOffset+t.byteLength)),n}return r.from(t)}}).call(this,n(22).Buffer)},function(t,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getWindowMetadata=void 0;const e=n(4);r.getWindowMetadata=function(){let t,r;try{t=e.getDocumentOrThrow(),r=e.getLocationOrThrow()}catch(t){return null}function n(...r){const n=t.getElementsByTagName("meta");for(let t=0;te.getAttribute(t)).filter(t=>!!t&&r.includes(t));if(i.length&&i){const t=e.getAttribute("content");if(t)return t}}return""}const i=function(){let r=n("name","og:site_name","og:title","twitter:title");return r||(r=t.title),r}();return{description:n("description","og:description","twitter:description","keywords"),url:r.origin,icons:function(){const n=t.getElementsByTagName("link"),e=[];for(let t=0;t-1){const t=i.getAttribute("href");if(t)if(-1===t.toLowerCase().indexOf("https:")&&-1===t.toLowerCase().indexOf("http:")&&0!==t.indexOf("//")){let n=r.protocol+"//"+r.host;if(0===t.indexOf("/"))n+=t;else{const e=r.pathname.split("/");e.pop();n+=e.join("/")+"/"+t}e.push(n)}else if(0===t.indexOf("//")){const n=r.protocol+t;e.push(n)}else e.push(t)}}return e}(),name:i}}},function(t,r,n){"use strict";(function(t){n.d(r,"a",(function(){return l}));var e=function(){for(var t=0,r=0,n=arguments.length;r>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var e=0;e<50;++e)this.s[e]=0}function j(t,r,n){I.call(this,t,r,n)}I.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(u);if(null===t)throw new Error(u);if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||l&&ArrayBuffer.isView(t)))throw new Error(u);r=!0}for(var e,i,o=this.blocks,s=this.byteCount,a=t.length,f=this.blockCount,h=0,c=this.s;h>2]|=t[h]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[e>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=s){for(this.start=e-s,this.block=o[f],e=0;e>=8);n>0;)i.unshift(n),n=255&(t>>=8),++e;return r?i.push(e):i.unshift(e),this.update(i),i.length},I.prototype.encodeString=function(t){var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(u);if(null===t)throw new Error(u);if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||l&&ArrayBuffer.isView(t)))throw new Error(u);r=!0}var e=0,i=t.length;if(r)e=i;else for(var o=0;o=57344?e+=3:(s=65536+((1023&s)<<10|1023&t.charCodeAt(++o)),e+=4)}return e+=this.encode(8*e),this.update(t),e},I.prototype.bytepad=function(t,r){for(var n=this.encode(r),e=0;e>2]|=this.padding[3&r],this.lastByteIndex===this.byteCount)for(t[0]=t[n],r=1;r>4&15]+d[15&t]+d[t>>12&15]+d[t>>8&15]+d[t>>20&15]+d[t>>16&15]+d[t>>28&15]+d[t>>24&15];u%r==0&&(U(n),o=0)}return i&&(t=n[o],s+=d[t>>4&15]+d[15&t],i>1&&(s+=d[t>>12&15]+d[t>>8&15]),i>2&&(s+=d[t>>20&15]+d[t>>16&15])),s},I.prototype.arrayBuffer=function(){this.finalize();var t,r=this.blockCount,n=this.s,e=this.outputBlocks,i=this.extraBytes,o=0,u=0,s=this.outputBits>>3;t=i?new ArrayBuffer(e+1<<2):new ArrayBuffer(s);for(var a=new Uint32Array(t);u>8&255,a[t+2]=r>>16&255,a[t+3]=r>>24&255;s%n==0&&U(e)}return o&&(t=s<<2,r=e[u],a[t]=255&r,o>1&&(a[t+1]=r>>8&255),o>2&&(a[t+2]=r>>16&255)),a},j.prototype=new I,j.prototype.finalize=function(){return this.encode(this.outputBits,!0),I.prototype.finalize.call(this)};var U=function(t){var r,n,e,i,o,u,s,a,f,h,c,l,d,p,m,g,v,w,b,M,_,A,T,S,O,E,x,B,R,k,C,P,N,L,I,j,U,H,D,W,F,Y,z,q,G,Z,$,V,J,K,X,Q,tt,rt,nt,et,it,ot,ut,st,at,ft,ht;for(e=0;e<48;e+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],u=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],a=t[4]^t[14]^t[24]^t[34]^t[44],f=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],c=t[7]^t[17]^t[27]^t[37]^t[47],r=(l=t[8]^t[18]^t[28]^t[38]^t[48])^(u<<1|s>>>31),n=(d=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|u>>>31),t[0]^=r,t[1]^=n,t[10]^=r,t[11]^=n,t[20]^=r,t[21]^=n,t[30]^=r,t[31]^=n,t[40]^=r,t[41]^=n,r=i^(a<<1|f>>>31),n=o^(f<<1|a>>>31),t[2]^=r,t[3]^=n,t[12]^=r,t[13]^=n,t[22]^=r,t[23]^=n,t[32]^=r,t[33]^=n,t[42]^=r,t[43]^=n,r=u^(h<<1|c>>>31),n=s^(c<<1|h>>>31),t[4]^=r,t[5]^=n,t[14]^=r,t[15]^=n,t[24]^=r,t[25]^=n,t[34]^=r,t[35]^=n,t[44]^=r,t[45]^=n,r=a^(l<<1|d>>>31),n=f^(d<<1|l>>>31),t[6]^=r,t[7]^=n,t[16]^=r,t[17]^=n,t[26]^=r,t[27]^=n,t[36]^=r,t[37]^=n,t[46]^=r,t[47]^=n,r=h^(i<<1|o>>>31),n=c^(o<<1|i>>>31),t[8]^=r,t[9]^=n,t[18]^=r,t[19]^=n,t[28]^=r,t[29]^=n,t[38]^=r,t[39]^=n,t[48]^=r,t[49]^=n,p=t[0],m=t[1],Z=t[11]<<4|t[10]>>>28,$=t[10]<<4|t[11]>>>28,B=t[20]<<3|t[21]>>>29,R=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,at=t[30]<<9|t[31]>>>23,Y=t[40]<<18|t[41]>>>14,z=t[41]<<18|t[40]>>>14,L=t[2]<<1|t[3]>>>31,I=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,v=t[12]<<12|t[13]>>>20,V=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,k=t[33]<<13|t[32]>>>19,C=t[32]<<13|t[33]>>>19,ft=t[42]<<2|t[43]>>>30,ht=t[43]<<2|t[42]>>>30,rt=t[5]<<30|t[4]>>>2,nt=t[4]<<30|t[5]>>>2,j=t[14]<<6|t[15]>>>26,U=t[15]<<6|t[14]>>>26,w=t[25]<<11|t[24]>>>21,b=t[24]<<11|t[25]>>>21,K=t[34]<<15|t[35]>>>17,X=t[35]<<15|t[34]>>>17,P=t[45]<<29|t[44]>>>3,N=t[44]<<29|t[45]>>>3,S=t[6]<<28|t[7]>>>4,O=t[7]<<28|t[6]>>>4,et=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,H=t[26]<<25|t[27]>>>7,D=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,_=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,q=t[8]<<27|t[9]>>>5,G=t[9]<<27|t[8]>>>5,E=t[18]<<20|t[19]>>>12,x=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,ut=t[28]<<7|t[29]>>>25,W=t[38]<<8|t[39]>>>24,F=t[39]<<8|t[38]>>>24,A=t[48]<<14|t[49]>>>18,T=t[49]<<14|t[48]>>>18,t[0]=p^~g&w,t[1]=m^~v&b,t[10]=S^~E&B,t[11]=O^~x&R,t[20]=L^~j&H,t[21]=I^~U&D,t[30]=q^~Z&V,t[31]=G^~$&J,t[40]=rt^~et&ot,t[41]=nt^~it&ut,t[2]=g^~w&M,t[3]=v^~b&_,t[12]=E^~B&k,t[13]=x^~R&C,t[22]=j^~H&W,t[23]=U^~D&F,t[32]=Z^~V&K,t[33]=$^~J&X,t[42]=et^~ot&st,t[43]=it^~ut&at,t[4]=w^~M&A,t[5]=b^~_&T,t[14]=B^~k&P,t[15]=R^~C&N,t[24]=H^~W&Y,t[25]=D^~F&z,t[34]=V^~K&Q,t[35]=J^~X&tt,t[44]=ot^~st&ft,t[45]=ut^~at&ht,t[6]=M^~A&p,t[7]=_^~T&m,t[16]=k^~P&S,t[17]=C^~N&O,t[26]=W^~Y&L,t[27]=F^~z&I,t[36]=K^~Q&q,t[37]=X^~tt&G,t[46]=st^~ft&rt,t[47]=at^~ht&nt,t[8]=A^~p&g,t[9]=T^~m&v,t[18]=P^~S&E,t[19]=N^~O&x,t[28]=Y^~L&j,t[29]=z^~I&U,t[38]=Q^~q&Z,t[39]=tt^~G&$,t[48]=ft^~rt&et,t[49]=ht^~nt&it,t[0]^=y[e],t[1]^=y[e+1]};if(h)t.exports=x;else{for(R=0;R=0;s--)(i=t[s])&&(u=(o<3?i(u):o>3?i(r,n,u):i(r,n))||u);return o>3&&u&&Object.defineProperty(r,n,u),u}function a(t,r){return function(n,e){r(n,e,t)}}function f(t,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,r)}function h(t,r,n,e){return new(n||(n=Promise))((function(i,o){function u(t){try{a(e.next(t))}catch(t){o(t)}}function s(t){try{a(e.throw(t))}catch(t){o(t)}}function a(t){t.done?i(t.value):new n((function(r){r(t.value)})).then(u,s)}a((e=e.apply(t,r||[])).next())}))}function c(t,r){var n,e,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,e&&(i=2&o[0]?e.return:o[0]?e.throw||((i=e.return)&&i.call(e),0):e.next)&&!(i=i.call(e,o[1])).done)return i;switch(e=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,e=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!(i=u.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function p(t,r){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,i,o=n.call(t),u=[];try{for(;(void 0===r||r-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(t){i={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function m(){for(var t=[],r=0;r1||s(t,r)}))})}function s(t,r){try{(n=i[t](r)).value instanceof y?Promise.resolve(n.value.v).then(a,f):h(o[0][2],n)}catch(t){h(o[0][3],t)}var n}function a(t){s("next",t)}function f(t){s("throw",t)}function h(t,r){t(r),o.shift(),o.length&&s(o[0][0],o[0][1])}}function v(t){var r,n;return r={},e("next"),e("throw",(function(t){throw t})),e("return"),r[Symbol.iterator]=function(){return this},r;function e(e,i){r[e]=t[e]?function(r){return(n=!n)?{value:y(t[e](r)),done:"return"===e}:i?i(r):r}:i}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=t[Symbol.asyncIterator];return n?n.call(t):(t=d(t),r={},e("next"),e("throw"),e("return"),r[Symbol.asyncIterator]=function(){return this},r);function e(n){r[n]=t[n]&&function(r){return new Promise((function(e,i){(function(t,r,n,e){Promise.resolve(e).then((function(r){t({value:r,done:n})}),r)})(e,i,(r=t[n](r)).done,r.value)}))}}}function b(t,r){return Object.defineProperty?Object.defineProperty(t,"raw",{value:r}):t.raw=r,t}function M(t){if(t&&t.__esModule)return t;var r={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r.default=t,r}function _(t){return t&&t.__esModule?t:{default:t}}},function(t,r,n){"use strict";n.r(r);var e=n(14);n.d(r,"randomBytes",(function(){return e.a}));var i=n(15);n.d(r,"aesCbcEncrypt",(function(){return i.b})),n.d(r,"aesCbcDecrypt",(function(){return i.a}));var o=n(16);n.d(r,"hmacSha256Sign",(function(){return o.a})),n.d(r,"hmacSha256Verify",(function(){return o.b})),n.d(r,"hmacSha512Sign",(function(){return o.c})),n.d(r,"hmacSha512Verify",(function(){return o.d}));var u=n(21);n.d(r,"sha256",(function(){return u.b})),n.d(r,"sha512",(function(){return u.c})),n.d(r,"ripemd160",(function(){return u.a}));var s=n(7);for(var a in s)["randomBytes","aesCbcEncrypt","aesCbcDecrypt","hmacSha256Sign","hmacSha256Verify","hmacSha512Sign","hmacSha512Verify","sha256","sha512","ripemd160","default"].indexOf(a)<0&&function(t){n.d(r,t,(function(){return s[t]}))}(a);var f=n(1);n.d(r,"AES_LENGTH",(function(){return f.b})),n.d(r,"HMAC_LENGTH",(function(){return f.j})),n.d(r,"AES_BROWSER_ALGO",(function(){return f.a})),n.d(r,"HMAC_BROWSER_ALGO",(function(){return f.i})),n.d(r,"HMAC_BROWSER",(function(){return f.h})),n.d(r,"SHA256_BROWSER_ALGO",(function(){return f.z})),n.d(r,"SHA512_BROWSER_ALGO",(function(){return f.B})),n.d(r,"AES_NODE_ALGO",(function(){return f.c})),n.d(r,"HMAC_NODE_ALGO",(function(){return f.k})),n.d(r,"SHA256_NODE_ALGO",(function(){return f.A})),n.d(r,"SHA512_NODE_ALGO",(function(){return f.C})),n.d(r,"RIPEMD160_NODE_ALGO",(function(){return f.y})),n.d(r,"PREFIX_LENGTH",(function(){return f.x})),n.d(r,"KEY_LENGTH",(function(){return f.m})),n.d(r,"IV_LENGTH",(function(){return f.l})),n.d(r,"MAC_LENGTH",(function(){return f.w})),n.d(r,"HEX_ENC",(function(){return f.g})),n.d(r,"UTF8_ENC",(function(){return f.E})),n.d(r,"ERROR_BAD_MAC",(function(){return f.f})),n.d(r,"LENGTH_0",(function(){return f.n})),n.d(r,"LENGTH_1",(function(){return f.o})),n.d(r,"LENGTH_16",(function(){return f.r})),n.d(r,"LENGTH_32",(function(){return f.t})),n.d(r,"LENGTH_64",(function(){return f.v})),n.d(r,"LENGTH_128",(function(){return f.q})),n.d(r,"LENGTH_256",(function(){return f.s})),n.d(r,"LENGTH_512",(function(){return f.u})),n.d(r,"LENGTH_1024",(function(){return f.p})),n.d(r,"ENCRYPT_OP",(function(){return f.e})),n.d(r,"DECRYPT_OP",(function(){return f.d})),n.d(r,"SIGN_OP",(function(){return f.D})),n.d(r,"VERIFY_OP",(function(){return f.F}))},function(t,r,n){"use strict";(function(t){function n(){return(null==t?void 0:t.crypto)||(null==t?void 0:t.msCrypto)||{}}function e(){const t=n();return t.subtle||t.webkitSubtle}Object.defineProperty(r,"__esModule",{value:!0}),r.isBrowserCryptoAvailable=r.getSubtleCrypto=r.getBrowerCrypto=void 0,r.getBrowerCrypto=n,r.getSubtleCrypto=e,r.isBrowserCryptoAvailable=function(){return!!n()&&!!e()}}).call(this,n(10))},function(t,r,n){"use strict";(function(t){function n(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function e(){return void 0!==t&&void 0!==t.versions&&void 0!==t.versions.node}Object.defineProperty(r,"__esModule",{value:!0}),r.isBrowser=r.isNode=r.isReactNative=void 0,r.isReactNative=n,r.isNode=e,r.isBrowser=function(){return!n()&&!e()}}).call(this,n(11))},function(t,r,n){"use strict";r.byteLength=function(t){var r=f(t),n=r[0],e=r[1];return 3*(n+e)/4-e},r.toByteArray=function(t){var r,n,e=f(t),u=e[0],s=e[1],a=new o(function(t,r,n){return 3*(r+n)/4-n}(0,u,s)),h=0,c=s>0?u-4:u;for(n=0;n>16&255,a[h++]=r>>8&255,a[h++]=255&r;2===s&&(r=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,a[h++]=255&r);1===s&&(r=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,a[h++]=r>>8&255,a[h++]=255&r);return a},r.fromByteArray=function(t){for(var r,n=t.length,i=n%3,o=[],u=0,s=n-i;us?s:u+16383));1===i?(r=t[n-1],o.push(e[r>>2]+e[r<<4&63]+"==")):2===i&&(r=(t[n-2]<<8)+t[n-1],o.push(e[r>>10]+e[r>>4&63]+e[r<<2&63]+"="));return o.join("")};for(var e=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=u.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=r),[n,n===r?0:4-n%4]}function h(t,r,n){for(var i,o,u=[],s=r;s>18&63]+e[o>>12&63]+e[o>>6&63]+e[63&o]);return u.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,r){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ r.read=function(t,r,n,e,i){var o,u,s=8*i-e-1,a=(1<>1,h=-7,c=n?i-1:0,l=n?-1:1,d=t[r+c];for(c+=l,o=d&(1<<-h)-1,d>>=-h,h+=s;h>0;o=256*o+t[r+c],c+=l,h-=8);for(u=o&(1<<-h)-1,o>>=-h,h+=e;h>0;u=256*u+t[r+c],c+=l,h-=8);if(0===o)o=1-f;else{if(o===a)return u?NaN:1/0*(d?-1:1);u+=Math.pow(2,e),o-=f}return(d?-1:1)*u*Math.pow(2,o-e)},r.write=function(t,r,n,e,i,o){var u,s,a,f=8*o-i-1,h=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=e?0:o-1,p=e?1:-1,m=r<0||0===r&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(s=isNaN(r)?1:0,u=h):(u=Math.floor(Math.log(r)/Math.LN2),r*(a=Math.pow(2,-u))<1&&(u--,a*=2),(r+=u+c>=1?l/a:l*Math.pow(2,1-c))*a>=2&&(u++,a/=2),u+c>=h?(s=0,u=h):u+c>=1?(s=(r*a-1)*Math.pow(2,i),u+=c):(s=r*Math.pow(2,c-1)*Math.pow(2,i),u=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(u=u<0;t[n+d]=255&u,d+=p,u/=256,f-=8);t[n+d-p]|=128*m}},function(t,r){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,r){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,r){},function(t,r){(function(r){t.exports=r}).call(this,{})},function(t,r,n){"use strict";t.exports=t=>encodeURIComponent(t).replace(/[!'()*]/g,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase())},function(t,r,n){"use strict";var e=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function o(t,r){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;r=r||1;var n=t.slice(0,r),e=t.slice(r);return Array.prototype.concat.call([],o(n),o(e))}function u(t){try{return decodeURIComponent(t)}catch(i){for(var r=t.match(e),n=1;n{if("string"!=typeof t||"string"!=typeof r)throw new TypeError("Expected the arguments to be of type `string`");if(""===r)return[t];const n=t.indexOf(r);return-1===n?[t]:[t.slice(0,n),t.slice(n+r.length)]}},function(t,r,n){"use strict";n.r(r);var e=n(34),i=n(4),o=n(35);function u(t){return Object(o.a)(t)}function s(){const t=u();return t&&t.os?t.os:void 0}function a(){const t=s();return!!t&&t.toLowerCase().includes("android")}function f(){const t=s();return!!t&&(t.toLowerCase().includes("ios")||t.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1)}function h(){return!!s()&&(a()||f())}function c(){const t=u();return!(!t||!t.name)&&"node"===t.name.toLowerCase()}function l(){return!c()&&!!v()}const d=i.getFromWindow,p=i.getFromWindowOrThrow,m=i.getDocumentOrThrow,y=i.getDocument,g=i.getNavigatorOrThrow,v=i.getNavigator,w=i.getLocationOrThrow,b=i.getLocation,M=i.getCryptoOrThrow,_=i.getCrypto,A=i.getLocalStorageOrThrow,T=i.getLocalStorage;function S(){return e.getWindowMetadata()}const O=function(t){if("string"!=typeof t)throw new Error("Cannot safe json parse value of type "+typeof t);try{return JSON.parse(t)}catch(r){return t}},E=function(t){return"string"==typeof t?t:JSON.stringify(t)};function x(t,r){const n=E(r),e=T();e&&e.setItem(t,n)}function B(t){let r=null,n=null;const e=T();return e&&(n=e.getItem(t)),r=n?O(n):n,r}function R(t){const r=T();r&&r.removeItem(t)}function k(t,r){const n=encodeURIComponent(t);return r.universalLink?`${r.universalLink}/wc?uri=${n}`:r.deepLink?`${r.deepLink}${r.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function C(t){const r=t.href.split("?")[0];x("WALLETCONNECT_DEEPLINK_CHOICE",Object.assign(Object.assign({},t),{href:r}))}function P(t,r){return t.filter(t=>t.name.toLowerCase().includes(r.toLowerCase()))[0]}function N(t,r){let n=t;return r&&(n=r.map(r=>P(t,r)).filter(Boolean)),n}const L="https://registry.walletconnect.com";function I(){return L+"/api/v2/wallets"}function j(){return L+"/api/v2/dapps"}function U(t,r="mobile"){var n;return{name:t.name||"",shortName:t.metadata.shortName||"",color:t.metadata.colors.primary||"",logo:null!==(n=t.image_url.sm)&&void 0!==n?n:"",universalLink:t[r].universal||"",deepLink:t[r].native||""}}function H(t,r="mobile"){return Object.values(t).filter(t=>!!t[r].universal||!!t[r].native).map(t=>U(t,r))}const D=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],W=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],F=["eth_accounts","eth_chainId","net_version"],Y={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"};var z=n(9),q=n.n(z),G=n(0);function Z(t){return G.arrayToBuffer(new Uint8Array(t))}function $(t){return G.arrayToUtf8(new Uint8Array(t))}function V(t,r){return G.arrayToHex(new Uint8Array(t),!r)}function J(t){return G.arrayToNumber(new Uint8Array(t))}function K(...t){return G.hexToArray(t.map(t=>G.arrayToHex(new Uint8Array(t))).join("")).buffer}function X(t){return G.bufferToArray(t).buffer}function Q(t){return G.bufferToUtf8(t)}function tt(t,r){return G.bufferToHex(t,!r)}function rt(t){return G.bufferToNumber(t)}function nt(...t){return G.concatBuffers(...t)}function et(t){return G.utf8ToArray(t).buffer}function it(t){return G.utf8ToBuffer(t)}function ot(t,r){return G.utf8ToHex(t,!r)}function ut(t){return new q.a(t,10).toNumber()}function st(t){return G.hexToBuffer(t)}function at(t){return G.hexToArray(t).buffer}function ft(t){return G.hexToUtf8(t)}function ht(t){return new q.a(G.removeHexPrefix(t),"hex").toNumber()}function ct(t){return G.numberToBuffer(t)}function lt(t){return G.numberToArray(t).buffer}function dt(t){return new q.a(t).toString()}function pt(t,r){const n=G.removeHexPrefix(G.sanitizeHex(new q.a(t).toString(16)));return r?n:G.addHexPrefix(n)}var mt=n(36);function yt(t){return G.sanitizeHex(t)}function gt(t){return G.addHexPrefix(t)}function vt(t){return G.removeHexPrefix(t)}function wt(t){return G.removeHexLeadingZeros(G.addHexPrefix(t))}const bt=n(37).payloadId;function Mt(){return((t,r)=>{for(r=t="";t++<36;r+=51*t&52?(15^t?8^Math.random()*(20^t?16:4):4).toString(16):"-");return r})()}function _t(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function At(t,r){let n;const e=Y[t];return e&&(n=`https://${e}.infura.io/v3/${r}`),n}function Tt(t,r){let n;const e=At(t,r.infuraId);return r.custom&&r.custom[t]?n=r.custom[t]:e&&(n=e),n}function St(t){return""===t||"string"==typeof t&&""===t.trim()}function Ot(t){return!(t&&t.length)}function Et(t){return G.isBuffer(t)}function xt(t){return G.isTypedArray(t)}function Bt(t){return G.isArrayBuffer(t)}function Rt(t){return G.getType(t)}function kt(t){return G.getEncoding(t)}function Ct(t,r){return G.isHexString(t,r)}function Pt(t){return"object"==typeof t.params}function Nt(t){return void 0!==t.method}function Lt(t){return void 0!==t.result}function It(t){return void 0!==t.error}function jt(t){return void 0!==t.event}function Ut(t){return D.includes(t)||t.startsWith("wc_")}function Ht(t){return!!t.method.startsWith("wc_")||!W.includes(t.method)}function Dt(t){t=Object(G.removeHexPrefix)(t.toLowerCase());const r=Object(G.removeHexPrefix)(Object(mt.keccak_256)(it(t)));let n="";for(let e=0;e7?n+=t[e].toUpperCase():n+=t[e];return Object(G.addHexPrefix)(n)}const Wt=t=>!!t&&("0x"===t.toLowerCase().substring(0,2)&&(!!/^(0x)?[0-9a-f]{40}$/i.test(t)&&(!(!/^(0x)?[0-9a-f]{40}$/.test(t)&&!/^(0x)?[0-9A-F]{40}$/.test(t))||t===Dt(t))));function Ft(t){return Ot(t)||Ct(t[0])||(t[0]=ot(t[0])),t}function Yt(t){if(void 0!==t.type&&"0"!==t.type)return t;if(void 0===t.from||!Wt(t.from))throw new Error("Transaction object must include a valid 'from' value.");function r(t){let r=t;return("number"==typeof t||"string"==typeof t&&!St(t))&&(Ct(t)?"string"==typeof t&&(r=yt(t)):r=pt(t)),"string"==typeof r&&(r=wt(r)),r}const n={from:yt(t.from),to:void 0===t.to?void 0:yt(t.to),gasPrice:void 0===t.gasPrice?"":r(t.gasPrice),gas:void 0===t.gas?void 0===t.gasLimit?"":r(t.gasLimit):r(t.gas),value:void 0===t.value?"":r(t.value),nonce:void 0===t.nonce?"":r(t.nonce),data:void 0===t.data?"":yt(t.data)||"0x"},e=["gasPrice","gas","value","nonce"];return Object.keys(n).forEach(t=>{(void 0===n[t]||"string"==typeof n[t]&&!n[t].trim().length)&&e.includes(t)&&delete n[t]}),n}function zt(t,r){return async(...n)=>new Promise((e,i)=>{t.apply(r,[...n,(t,r)=>{null==t&&i(t),e(r)}])})}function qt(t){const r=t.message||"Failed or Rejected Request";let n=-32e3;if(t&&!t.code)switch(r){case"Parse error":n=-32700;break;case"Invalid request":n=-32600;break;case"Method not found":n=-32601;break;case"Invalid params":n=-32602;break;case"Internal error":n=-32603;break;default:n=-32e3}const e={code:n,message:r};return t.data&&(e.data=t.data),e}var Gt=n(13);function Zt(t){const r=-1!==t.indexOf("?")?t.indexOf("?"):void 0;return void 0!==r?t.substr(r):""}function $t(t,r){let n=Vt(t);return n=Object.assign(Object.assign({},n),r),t=Jt(n)}function Vt(t){return Gt.parse(t)}function Jt(t){return Gt.stringify(t)}function Kt(t){return void 0!==t.bridge}function Xt(t){const r=t.indexOf(":"),n=-1!==t.indexOf("?")?t.indexOf("?"):void 0,e=t.substring(0,r);const i=function(t){const r=t.split("@");return{handshakeTopic:r[0],version:parseInt(r[1],10)}}(t.substring(r+1,n));const o=function(t){const r=Vt(t);return{key:r.key||"",bridge:r.bridge||""}}(void 0!==n?t.substr(n):"");return Object.assign(Object.assign({protocol:e},i),o)}n.d(r,"detectEnv",(function(){return u})),n.d(r,"detectOS",(function(){return s})),n.d(r,"isAndroid",(function(){return a})),n.d(r,"isIOS",(function(){return f})),n.d(r,"isMobile",(function(){return h})),n.d(r,"isNode",(function(){return c})),n.d(r,"isBrowser",(function(){return l})),n.d(r,"getFromWindow",(function(){return d})),n.d(r,"getFromWindowOrThrow",(function(){return p})),n.d(r,"getDocumentOrThrow",(function(){return m})),n.d(r,"getDocument",(function(){return y})),n.d(r,"getNavigatorOrThrow",(function(){return g})),n.d(r,"getNavigator",(function(){return v})),n.d(r,"getLocationOrThrow",(function(){return w})),n.d(r,"getLocation",(function(){return b})),n.d(r,"getCryptoOrThrow",(function(){return M})),n.d(r,"getCrypto",(function(){return _})),n.d(r,"getLocalStorageOrThrow",(function(){return A})),n.d(r,"getLocalStorage",(function(){return T})),n.d(r,"getClientMeta",(function(){return S})),n.d(r,"safeJsonParse",(function(){return O})),n.d(r,"safeJsonStringify",(function(){return E})),n.d(r,"setLocal",(function(){return x})),n.d(r,"getLocal",(function(){return B})),n.d(r,"removeLocal",(function(){return R})),n.d(r,"mobileLinkChoiceKey",(function(){return"WALLETCONNECT_DEEPLINK_CHOICE"})),n.d(r,"formatIOSMobile",(function(){return k})),n.d(r,"saveMobileLinkInfo",(function(){return C})),n.d(r,"getMobileRegistryEntry",(function(){return P})),n.d(r,"getMobileLinkRegistry",(function(){return N})),n.d(r,"getWalletRegistryUrl",(function(){return I})),n.d(r,"getDappRegistryUrl",(function(){return j})),n.d(r,"formatMobileRegistryEntry",(function(){return U})),n.d(r,"formatMobileRegistry",(function(){return H})),n.d(r,"reservedEvents",(function(){return D})),n.d(r,"signingMethods",(function(){return W})),n.d(r,"stateMethods",(function(){return F})),n.d(r,"infuraNetworks",(function(){return Y})),n.d(r,"convertArrayBufferToBuffer",(function(){return Z})),n.d(r,"convertArrayBufferToUtf8",(function(){return $})),n.d(r,"convertArrayBufferToHex",(function(){return V})),n.d(r,"convertArrayBufferToNumber",(function(){return J})),n.d(r,"concatArrayBuffers",(function(){return K})),n.d(r,"convertBufferToArrayBuffer",(function(){return X})),n.d(r,"convertBufferToUtf8",(function(){return Q})),n.d(r,"convertBufferToHex",(function(){return tt})),n.d(r,"convertBufferToNumber",(function(){return rt})),n.d(r,"concatBuffers",(function(){return nt})),n.d(r,"convertUtf8ToArrayBuffer",(function(){return et})),n.d(r,"convertUtf8ToBuffer",(function(){return it})),n.d(r,"convertUtf8ToHex",(function(){return ot})),n.d(r,"convertUtf8ToNumber",(function(){return ut})),n.d(r,"convertHexToBuffer",(function(){return st})),n.d(r,"convertHexToArrayBuffer",(function(){return at})),n.d(r,"convertHexToUtf8",(function(){return ft})),n.d(r,"convertHexToNumber",(function(){return ht})),n.d(r,"convertNumberToBuffer",(function(){return ct})),n.d(r,"convertNumberToArrayBuffer",(function(){return lt})),n.d(r,"convertNumberToUtf8",(function(){return dt})),n.d(r,"convertNumberToHex",(function(){return pt})),n.d(r,"toChecksumAddress",(function(){return Dt})),n.d(r,"isValidAddress",(function(){return Wt})),n.d(r,"parsePersonalSign",(function(){return Ft})),n.d(r,"parseTransactionData",(function(){return Yt})),n.d(r,"sanitizeHex",(function(){return yt})),n.d(r,"addHexPrefix",(function(){return gt})),n.d(r,"removeHexPrefix",(function(){return vt})),n.d(r,"removeHexLeadingZeros",(function(){return wt})),n.d(r,"payloadId",(function(){return bt})),n.d(r,"uuid",(function(){return Mt})),n.d(r,"logDeprecationWarning",(function(){return _t})),n.d(r,"getInfuraRpcUrl",(function(){return At})),n.d(r,"getRpcUrl",(function(){return Tt})),n.d(r,"promisify",(function(){return zt})),n.d(r,"formatRpcError",(function(){return qt})),n.d(r,"isWalletConnectSession",(function(){return Kt})),n.d(r,"parseWalletConnectUri",(function(){return Xt})),n.d(r,"getQueryString",(function(){return Zt})),n.d(r,"appendToQueryString",(function(){return $t})),n.d(r,"parseQueryString",(function(){return Vt})),n.d(r,"formatQueryString",(function(){return Jt})),n.d(r,"isEmptyString",(function(){return St})),n.d(r,"isEmptyArray",(function(){return Ot})),n.d(r,"isBuffer",(function(){return Et})),n.d(r,"isTypedArray",(function(){return xt})),n.d(r,"isArrayBuffer",(function(){return Bt})),n.d(r,"getType",(function(){return Rt})),n.d(r,"getEncoding",(function(){return kt})),n.d(r,"isHexString",(function(){return Ct})),n.d(r,"isJsonRpcSubscription",(function(){return Pt})),n.d(r,"isJsonRpcRequest",(function(){return Nt})),n.d(r,"isJsonRpcResponseSuccess",(function(){return Lt})),n.d(r,"isJsonRpcResponseError",(function(){return It})),n.d(r,"isInternalEvent",(function(){return jt})),n.d(r,"isReservedEvent",(function(){return Ut})),n.d(r,"isSilentPayload",(function(){return Ht}))}])}));