steem-auth-vue
Version:
A Vue 3 authentication component for Steem blockchain and Echelon sidechain
2 lines • 151 kB
JavaScript
(function(le,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("dsteem")):typeof define=="function"&&define.amd?define(["exports","vue","dsteem"],t):(le=typeof globalThis<"u"?globalThis:le||self,t(le.SteemAuthVue={},le.Vue,le.dsteem))})(this,function(le,t,ke){"use strict";function Le(T){const L=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(T){for(const d in T)if(d!=="default"){const y=Object.getOwnPropertyDescriptor(T,d);Object.defineProperty(L,d,y.get?y:{enumerable:!0,get:()=>T[d]})}}return L.default=T,Object.freeze(L)}const Ce=Le(ke);var Pe={exports:{}};(function(T,L){(function(d,y){T.exports=y()})(window,function(){return function(d){var y={};function e(r){if(y[r])return y[r].exports;var a=y[r]={i:r,l:!1,exports:{}};return d[r].call(a.exports,a,a.exports,e),a.l=!0,a.exports}return e.m=d,e.c=y,e.d=function(r,a,f){e.o(r,a)||Object.defineProperty(r,a,{enumerable:!0,get:f})},e.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},e.t=function(r,a){if(1&a&&(r=e(r)),8&a||4&a&&typeof r=="object"&&r&&r.__esModule)return r;var f=Object.create(null);if(e.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:r}),2&a&&typeof r!="string")for(var h in r)e.d(f,h,(function(s){return r[s]}).bind(null,h));return f},e.n=function(r){var a=r&&r.__esModule?function(){return r.default}:function(){return r};return e.d(a,"a",a),a},e.o=function(r,a){return Object.prototype.hasOwnProperty.call(r,a)},e.p="",e(e.s=52)}([function(d,y){var e=d.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=e)},function(d,y){var e=d.exports={version:"2.6.5"};typeof __e=="number"&&(__e=e)},function(d,y,e){var r=e(24)("wks"),a=e(16),f=e(0).Symbol,h=typeof f=="function";(d.exports=function(s){return r[s]||(r[s]=h&&f[s]||(h?f:a)("Symbol."+s))}).store=r},function(d,y,e){var r=e(4),a=e(36),f=e(27),h=Object.defineProperty;y.f=e(5)?Object.defineProperty:function(s,p,i){if(r(s),p=f(p,!0),r(i),a)try{return h(s,p,i)}catch{}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(s[p]=i.value),s}},function(d,y,e){var r=e(9);d.exports=function(a){if(!r(a))throw TypeError(a+" is not an object!");return a}},function(d,y,e){d.exports=!e(13)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(d,y){var e={}.hasOwnProperty;d.exports=function(r,a){return e.call(r,a)}},function(d,y,e){var r=e(0),a=e(1),f=e(17),h=e(8),s=e(6),p=function(i,g,b){var v,S,x,N=i&p.F,R=i&p.G,P=i&p.S,B=i&p.P,E=i&p.B,c=i&p.W,_=R?a:a[g]||(a[g]={}),l=_.prototype,M=R?r:P?r[g]:(r[g]||{}).prototype;for(v in R&&(b=g),b)(S=!N&&M&&M[v]!==void 0)&&s(_,v)||(x=S?M[v]:b[v],_[v]=R&&typeof M[v]!="function"?b[v]:E&&S?f(x,r):c&&M[v]==x?function(j){var V=function(O,w,q){if(this instanceof j){switch(arguments.length){case 0:return new j;case 1:return new j(O);case 2:return new j(O,w)}return new j(O,w,q)}return j.apply(this,arguments)};return V.prototype=j.prototype,V}(x):B&&typeof x=="function"?f(Function.call,x):x,B&&((_.virtual||(_.virtual={}))[v]=x,i&p.R&&l&&!l[v]&&h(l,v,x)))};p.F=1,p.G=2,p.S=4,p.P=8,p.B=16,p.W=32,p.U=64,p.R=128,d.exports=p},function(d,y,e){var r=e(3),a=e(19);d.exports=e(5)?function(f,h,s){return r.f(f,h,a(1,s))}:function(f,h,s){return f[h]=s,f}},function(d,y){d.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}},function(d,y,e){var r=e(56),a=e(21);d.exports=function(f){return r(a(f))}},function(d,y){var e={}.toString;d.exports=function(r){return e.call(r).slice(8,-1)}},function(d,y){d.exports=!0},function(d,y){d.exports=function(e){try{return!!e()}catch{return!0}}},function(d,y){d.exports={}},function(d,y,e){var r=e(34),a=e(25);d.exports=Object.keys||function(f){return r(f,a)}},function(d,y){var e=0,r=Math.random();d.exports=function(a){return"Symbol(".concat(a===void 0?"":a,")_",(++e+r).toString(36))}},function(d,y,e){var r=e(18);d.exports=function(a,f,h){if(r(a),f===void 0)return a;switch(h){case 1:return function(s){return a.call(f,s)};case 2:return function(s,p){return a.call(f,s,p)};case 3:return function(s,p,i){return a.call(f,s,p,i)}}return function(){return a.apply(f,arguments)}}},function(d,y){d.exports=function(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e}},function(d,y){d.exports=function(e,r){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:r}}},function(d,y,e){var r=e(3).f,a=e(6),f=e(2)("toStringTag");d.exports=function(h,s,p){h&&!a(h=p?h:h.prototype,f)&&r(h,f,{configurable:!0,value:s})}},function(d,y){d.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},function(d,y){var e=Math.ceil,r=Math.floor;d.exports=function(a){return isNaN(a=+a)?0:(a>0?r:e)(a)}},function(d,y,e){var r=e(24)("keys"),a=e(16);d.exports=function(f){return r[f]||(r[f]=a(f))}},function(d,y,e){var r=e(1),a=e(0),f=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(d.exports=function(h,s){return f[h]||(f[h]=s!==void 0?s:{})})("versions",[]).push({version:r.version,mode:e(12)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(d,y){d.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(d,y,e){var r=e(9),a=e(0).document,f=r(a)&&r(a.createElement);d.exports=function(h){return f?a.createElement(h):{}}},function(d,y,e){var r=e(9);d.exports=function(a,f){if(!r(a))return a;var h,s;if(f&&typeof(h=a.toString)=="function"&&!r(s=h.call(a))||typeof(h=a.valueOf)=="function"&&!r(s=h.call(a))||!f&&typeof(h=a.toString)=="function"&&!r(s=h.call(a)))return s;throw TypeError("Can't convert object to primitive value")}},function(d,y,e){y.f=e(2)},function(d,y,e){var r=e(0),a=e(1),f=e(12),h=e(28),s=e(3).f;d.exports=function(p){var i=a.Symbol||(a.Symbol=f?{}:r.Symbol||{});p.charAt(0)=="_"||p in i||s(i,p,{value:h.f(p)})}},function(d,y){y.f={}.propertyIsEnumerable},function(d,y,e){var r=e(18);function a(f){var h,s;this.promise=new f(function(p,i){if(h!==void 0||s!==void 0)throw TypeError("Bad Promise constructor");h=p,s=i}),this.resolve=r(h),this.reject=r(s)}d.exports.f=function(f){return new a(f)}},function(d,y){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch{typeof window=="object"&&(e=window)}d.exports=e},function(d,y,e){var r=e(21);d.exports=function(a){return Object(r(a))}},function(d,y,e){var r=e(6),a=e(10),f=e(57)(!1),h=e(23)("IE_PROTO");d.exports=function(s,p){var i,g=a(s),b=0,v=[];for(i in g)i!=h&&r(g,i)&&v.push(i);for(;p.length>b;)r(g,i=p[b++])&&(~f(v,i)||v.push(i));return v}},function(d,y,e){var r=e(22),a=Math.min;d.exports=function(f){return f>0?a(r(f),9007199254740991):0}},function(d,y,e){d.exports=!e(5)&&!e(13)(function(){return Object.defineProperty(e(26)("div"),"a",{get:function(){return 7}}).a!=7})},function(d,y,e){var r=e(63)(!0);e(38)(String,"String",function(a){this._t=String(a),this._i=0},function(){var a,f=this._t,h=this._i;return h>=f.length?{value:void 0,done:!0}:(a=r(f,h),this._i+=a.length,{value:a,done:!1})})},function(d,y,e){var r=e(12),a=e(7),f=e(39),h=e(8),s=e(14),p=e(64),i=e(20),g=e(66),b=e(2)("iterator"),v=!([].keys&&"next"in[].keys()),S=function(){return this};d.exports=function(x,N,R,P,B,E,c){p(R,N,P);var _,l,M,j=function(H){if(!v&&H in q)return q[H];switch(H){case"keys":case"values":return function(){return new R(this,H)}}return function(){return new R(this,H)}},V=N+" Iterator",O=B=="values",w=!1,q=x.prototype,D=q[b]||q["@@iterator"]||B&&q[B],Y=D||j(B),F=B?O?j("entries"):Y:void 0,U=N=="Array"&&q.entries||D;if(U&&(M=g(U.call(new x)))!==Object.prototype&&M.next&&(i(M,V,!0),r||typeof M[b]=="function"||h(M,b,S)),O&&D&&D.name!=="values"&&(w=!0,Y=function(){return D.call(this)}),r&&!c||!v&&!w&&q[b]||h(q,b,Y),s[N]=Y,s[V]=S,B)if(_={values:O?Y:j("values"),keys:E?Y:j("keys"),entries:F},c)for(l in _)l in q||f(q,l,_[l]);else a(a.P+a.F*(v||w),N,_);return _}},function(d,y,e){d.exports=e(8)},function(d,y,e){var r=e(4),a=e(65),f=e(25),h=e(23)("IE_PROTO"),s=function(){},p=function(){var i,g=e(26)("iframe"),b=f.length;for(g.style.display="none",e(41).appendChild(g),g.src="javascript:",(i=g.contentWindow.document).open(),i.write("<script>document.F=Object<\/script>"),i.close(),p=i.F;b--;)delete p.prototype[f[b]];return p()};d.exports=Object.create||function(i,g){var b;return i!==null?(s.prototype=r(i),b=new s,s.prototype=null,b[h]=i):b=p(),g===void 0?b:a(b,g)}},function(d,y,e){var r=e(0).document;d.exports=r&&r.documentElement},function(d,y,e){e(67);for(var r=e(0),a=e(8),f=e(14),h=e(2)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),p=0;p<s.length;p++){var i=s[p],g=r[i],b=g&&g.prototype;b&&!b[h]&&a(b,h,i),f[i]=f.Array}},function(d,y){y.f=Object.getOwnPropertySymbols},function(d,y,e){var r=e(34),a=e(25).concat("length","prototype");y.f=Object.getOwnPropertyNames||function(f){return r(f,a)}},function(d,y){},function(d,y,e){var r=e(11),a=e(2)("toStringTag"),f=r(function(){return arguments}())=="Arguments";d.exports=function(h){var s,p,i;return h===void 0?"Undefined":h===null?"Null":typeof(p=function(g,b){try{return g[b]}catch{}}(s=Object(h),a))=="string"?p:f?r(s):(i=r(s))=="Object"&&typeof s.callee=="function"?"Arguments":i}},function(d,y,e){var r=e(4),a=e(18),f=e(2)("species");d.exports=function(h,s){var p,i=r(h).constructor;return i===void 0||(p=r(i)[f])==null?s:a(p)}},function(d,y,e){var r,a,f,h=e(17),s=e(88),p=e(41),i=e(26),g=e(0),b=g.process,v=g.setImmediate,S=g.clearImmediate,x=g.MessageChannel,N=g.Dispatch,R=0,P={},B=function(){var c=+this;if(P.hasOwnProperty(c)){var _=P[c];delete P[c],_()}},E=function(c){B.call(c.data)};v&&S||(v=function(c){for(var _=[],l=1;arguments.length>l;)_.push(arguments[l++]);return P[++R]=function(){s(typeof c=="function"?c:Function(c),_)},r(R),R},S=function(c){delete P[c]},e(11)(b)=="process"?r=function(c){b.nextTick(h(B,c,1))}:N&&N.now?r=function(c){N.now(h(B,c,1))}:x?(f=(a=new x).port2,a.port1.onmessage=E,r=h(f.postMessage,f,1)):g.addEventListener&&typeof postMessage=="function"&&!g.importScripts?(r=function(c){g.postMessage(c+"","*")},g.addEventListener("message",E,!1)):r="onreadystatechange"in i("script")?function(c){p.appendChild(i("script")).onreadystatechange=function(){p.removeChild(this),B.call(c)}}:function(c){setTimeout(h(B,c,1),0)}),d.exports={set:v,clear:S}},function(d,y){d.exports=function(e){try{return{e:!1,v:e()}}catch(r){return{e:!0,v:r}}}},function(d,y,e){var r=e(4),a=e(9),f=e(31);d.exports=function(h,s){if(r(h),a(s)&&s.constructor===h)return s;var p=f.f(h);return(0,p.resolve)(s),p.promise}},function(d,y,e){var r=e(109),a=e(111);function f(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}y.parse=E,y.resolve=function(c,_){return E(c,!1,!0).resolve(_)},y.resolveObject=function(c,_){return c?E(c,!1,!0).resolveObject(_):_},y.format=function(c){return a.isString(c)&&(c=E(c)),c instanceof f?c.format():f.prototype.format.call(c)},y.Url=f;var h=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r",`
`," "]),g=["'"].concat(i),b=["%","/","?",";","#"].concat(g),v=["/","?","#"],S=/^[+a-z0-9A-Z_-]{0,63}$/,x=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,N={javascript:!0,"javascript:":!0},R={javascript:!0,"javascript:":!0},P={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},B=e(112);function E(c,_,l){if(c&&a.isObject(c)&&c instanceof f)return c;var M=new f;return M.parse(c,_,l),M}f.prototype.parse=function(c,_,l){if(!a.isString(c))throw new TypeError("Parameter 'url' must be a string, not "+typeof c);var M=c.indexOf("?"),j=M!==-1&&M<c.indexOf("#")?"?":"#",V=c.split(j);V[0]=V[0].replace(/\\/g,"/");var O=c=V.join(j);if(O=O.trim(),!l&&c.split("#").length===1){var w=p.exec(O);if(w)return this.path=O,this.href=O,this.pathname=w[1],w[2]?(this.search=w[2],this.query=_?B.parse(this.search.substr(1)):this.search.substr(1)):_&&(this.search="",this.query={}),this}var q=h.exec(O);if(q){var D=(q=q[0]).toLowerCase();this.protocol=D,O=O.substr(q.length)}if(l||q||O.match(/^\/\/[^@\/]+@[^@\/]+/)){var Y=O.substr(0,2)==="//";!Y||q&&R[q]||(O=O.substr(2),this.slashes=!0)}if(!R[q]&&(Y||q&&!P[q])){for(var F,U,H=-1,W=0;W<v.length;W++)(ee=O.indexOf(v[W]))!==-1&&(H===-1||ee<H)&&(H=ee);for((U=H===-1?O.lastIndexOf("@"):O.lastIndexOf("@",H))!==-1&&(F=O.slice(0,U),O=O.slice(U+1),this.auth=decodeURIComponent(F)),H=-1,W=0;W<b.length;W++){var ee;(ee=O.indexOf(b[W]))!==-1&&(H===-1||ee<H)&&(H=ee)}H===-1&&(H=O.length),this.host=O.slice(0,H),O=O.slice(H),this.parseHost(),this.hostname=this.hostname||"";var te=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!te)for(var X=this.hostname.split(/\./),oe=(W=0,X.length);W<oe;W++){var C=X[W];if(C&&!C.match(S)){for(var K="",J=0,ie=C.length;J<ie;J++)C.charCodeAt(J)>127?K+="x":K+=C[J];if(!K.match(S)){var ne=X.slice(0,W),n=X.slice(W+1),o=C.match(x);o&&(ne.push(o[1]),n.unshift(o[2])),n.length&&(O="/"+n.join(".")+O),this.hostname=ne.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),te||(this.hostname=r.toASCII(this.hostname));var u=this.port?":"+this.port:"",A=this.hostname||"";this.host=A+u,this.href+=this.host,te&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),O[0]!=="/"&&(O="/"+O))}if(!N[D])for(W=0,oe=g.length;W<oe;W++){var m=g[W];if(O.indexOf(m)!==-1){var k=encodeURIComponent(m);k===m&&(k=escape(m)),O=O.split(m).join(k)}}var I=O.indexOf("#");I!==-1&&(this.hash=O.substr(I),O=O.slice(0,I));var z=O.indexOf("?");if(z!==-1?(this.search=O.substr(z),this.query=O.substr(z+1),_&&(this.query=B.parse(this.query)),O=O.slice(0,z)):_&&(this.search="",this.query={}),O&&(this.pathname=O),P[D]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){u=this.pathname||"";var Z=this.search||"";this.path=u+Z}return this.href=this.format(),this},f.prototype.format=function(){var c=this.auth||"";c&&(c=(c=encodeURIComponent(c)).replace(/%3A/i,":"),c+="@");var _=this.protocol||"",l=this.pathname||"",M=this.hash||"",j=!1,V="";this.host?j=c+this.host:this.hostname&&(j=c+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(j+=":"+this.port)),this.query&&a.isObject(this.query)&&Object.keys(this.query).length&&(V=B.stringify(this.query));var O=this.search||V&&"?"+V||"";return _&&_.substr(-1)!==":"&&(_+=":"),this.slashes||(!_||P[_])&&j!==!1?(j="//"+(j||""),l&&l.charAt(0)!=="/"&&(l="/"+l)):j||(j=""),M&&M.charAt(0)!=="#"&&(M="#"+M),O&&O.charAt(0)!=="?"&&(O="?"+O),_+j+(l=l.replace(/[?#]/g,function(w){return encodeURIComponent(w)}))+(O=O.replace("#","%23"))+M},f.prototype.resolve=function(c){return this.resolveObject(E(c,!1,!0)).format()},f.prototype.resolveObject=function(c){if(a.isString(c)){var _=new f;_.parse(c,!1,!0),c=_}for(var l=new f,M=Object.keys(this),j=0;j<M.length;j++){var V=M[j];l[V]=this[V]}if(l.hash=c.hash,c.href==="")return l.href=l.format(),l;if(c.slashes&&!c.protocol){for(var O=Object.keys(c),w=0;w<O.length;w++){var q=O[w];q!=="protocol"&&(l[q]=c[q])}return P[l.protocol]&&l.hostname&&!l.pathname&&(l.path=l.pathname="/"),l.href=l.format(),l}if(c.protocol&&c.protocol!==l.protocol){if(!P[c.protocol]){for(var D=Object.keys(c),Y=0;Y<D.length;Y++){var F=D[Y];l[F]=c[F]}return l.href=l.format(),l}if(l.protocol=c.protocol,c.host||R[c.protocol])l.pathname=c.pathname;else{for(var U=(c.pathname||"").split("/");U.length&&!(c.host=U.shift()););c.host||(c.host=""),c.hostname||(c.hostname=""),U[0]!==""&&U.unshift(""),U.length<2&&U.unshift(""),l.pathname=U.join("/")}if(l.search=c.search,l.query=c.query,l.host=c.host||"",l.auth=c.auth,l.hostname=c.hostname||c.host,l.port=c.port,l.pathname||l.search){var H=l.pathname||"",W=l.search||"";l.path=H+W}return l.slashes=l.slashes||c.slashes,l.href=l.format(),l}var ee=l.pathname&&l.pathname.charAt(0)==="/",te=c.host||c.pathname&&c.pathname.charAt(0)==="/",X=te||ee||l.host&&c.pathname,oe=X,C=l.pathname&&l.pathname.split("/")||[],K=(U=c.pathname&&c.pathname.split("/")||[],l.protocol&&!P[l.protocol]);if(K&&(l.hostname="",l.port=null,l.host&&(C[0]===""?C[0]=l.host:C.unshift(l.host)),l.host="",c.protocol&&(c.hostname=null,c.port=null,c.host&&(U[0]===""?U[0]=c.host:U.unshift(c.host)),c.host=null),X=X&&(U[0]===""||C[0]==="")),te)l.host=c.host||c.host===""?c.host:l.host,l.hostname=c.hostname||c.hostname===""?c.hostname:l.hostname,l.search=c.search,l.query=c.query,C=U;else if(U.length)C||(C=[]),C.pop(),C=C.concat(U),l.search=c.search,l.query=c.query;else if(!a.isNullOrUndefined(c.search))return K&&(l.hostname=l.host=C.shift(),(o=!!(l.host&&l.host.indexOf("@")>0)&&l.host.split("@"))&&(l.auth=o.shift(),l.host=l.hostname=o.shift())),l.search=c.search,l.query=c.query,a.isNull(l.pathname)&&a.isNull(l.search)||(l.path=(l.pathname?l.pathname:"")+(l.search?l.search:"")),l.href=l.format(),l;if(!C.length)return l.pathname=null,l.search?l.path="/"+l.search:l.path=null,l.href=l.format(),l;for(var J=C.slice(-1)[0],ie=(l.host||c.host||C.length>1)&&(J==="."||J==="..")||J==="",ne=0,n=C.length;n>=0;n--)(J=C[n])==="."?C.splice(n,1):J===".."?(C.splice(n,1),ne++):ne&&(C.splice(n,1),ne--);if(!X&&!oe)for(;ne--;ne)C.unshift("..");!X||C[0]===""||C[0]&&C[0].charAt(0)==="/"||C.unshift(""),ie&&C.join("/").substr(-1)!=="/"&&C.push("");var o,u=C[0]===""||C[0]&&C[0].charAt(0)==="/";return K&&(l.hostname=l.host=u?"":C.length?C.shift():"",(o=!!(l.host&&l.host.indexOf("@")>0)&&l.host.split("@"))&&(l.auth=o.shift(),l.host=l.hostname=o.shift())),(X=X||l.host&&C.length)&&!u&&C.unshift(""),C.length?l.pathname=C.join("/"):(l.pathname=null,l.path=null),a.isNull(l.pathname)&&a.isNull(l.search)||(l.path=(l.pathname?l.pathname:"")+(l.search?l.search:"")),l.auth=c.auth||l.auth,l.slashes=l.slashes||c.slashes,l.href=l.format(),l},f.prototype.parseHost=function(){var c=this.host,_=s.exec(c);_&&((_=_[0])!==":"&&(this.port=_.substr(1)),c=c.substr(0,c.length-_.length)),c&&(this.hostname=c)}},function(d,y,e){Object.defineProperty(y,"__esModule",{value:!0});var r=b(e(53)),a=b(e(60)),f=b(e(80)),h=b(e(96)),s=b(e(98)),p=b(e(99)),i=b(e(103)),g=e(104);function b(B){return B&&B.__esModule?B:{default:B}}var v="https://steemlogin.com",S=function(){return typeof window<"u"&&window},x=function(){return S()&&window._steemconnect},N=function(){return S()&&window.steem_keychain},R=function(){return!x()&&N()},P=function(){function B(E){(0,s.default)(this,B),this.apiURL=E.apiURL||"https://api.steemlogin.com",this.app=E.app,this.callbackURL=E.callbackURL,this.accessToken=E.accessToken,this.scope=E.scope||[],this.responseType=E.responseType}return(0,p.default)(B,[{key:"setBaseURL",value:function(){return console.warn('The function "setBaseUrl" is deprecated, the base URL is always "https://steemconnect.com", you can only change the API URL with "setApiURL"'),this}},{key:"setApiURL",value:function(E){return this.apiURL=E,this}},{key:"setApp",value:function(E){return this.app=E,this}},{key:"setCallbackURL",value:function(E){return this.callbackURL=E,this}},{key:"setAccessToken",value:function(E){return this.accessToken=E,this}},{key:"removeAccessToken",value:function(){return delete this.accessToken,this}},{key:"setScope",value:function(E){return this.scope=E,this}},{key:"getLoginURL",value:function(E){var c=encodeURIComponent(this.callbackURL),_="https://steemlogin.com/oauth2/authorize?client_id="+this.app+"&redirect_uri="+c;return this.responseType==="code"&&(_+="&response_type="+this.responseType),this.scope&&(_+="&scope="+this.scope.join(",")),E&&(_+="&state="+encodeURIComponent(E)),_}},{key:"login",value:function(E,c){if(x()){var _={};this.app&&(_.app=this.app),E.authority&&(_.authority=E.authority),window._steemconnect.login(_,c)}else if(N()&&E.username){var l={type:"login"};this.app&&(l.app=this.app);var M=parseInt(new Date().getTime()/1e3,10),j={signed_message:l,authors:[E.username],timestamp:M};window.steem_keychain.requestSignBuffer(E.username,(0,h.default)(j),"Posting",function(V){if(V.error)return c(V.error);j.signatures=[V.result];var O=btoa((0,h.default)(j));return c(null,O)})}else S()&&(window.location=this.getLoginURL(E.state))}},{key:"send",value:function(E,c,_,l){var M=this.apiURL+"/api/"+E,j=(0,i.default)(M,{method:c,headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json",Authorization:this.accessToken},body:(0,h.default)(_)}).then(function(V){var O=V.json();return V.status!==200?O.then(function(w){return f.default.reject(w)}):O}).then(function(V){return V.error?f.default.reject(V):V});return l?j.then(function(V){return l(null,V)}).catch(function(V){return l(V,null)}):j}},{key:"me",value:function(E){return this.send("me","POST",{},E)}},{key:"broadcast",value:function(E,c){if(x()){var _=(0,g.encodeOps)(E);return window._steemconnect.sign(_,c)}return this.send("broadcast","POST",{operations:E},c)}},{key:"vote",value:function(E,c,_,l,M){if(R())return window.steem_keychain.requestVote(E,_,c,l,function(V){return V.error?M(V.error):M(null,V)});var j={voter:E,author:c,permlink:_,weight:l};return this.broadcast([["vote",j]],M)}},{key:"comment",value:function(E,c,_,l,M,j,V,O){if(R())return window.steem_keychain.requestPost(_,M,j,c,E,V,l,"",function(q){return q.error?O(q.error):O(null,q)});var w={parent_author:E,parent_permlink:c,author:_,permlink:l,title:M,body:j,json_metadata:(0,h.default)(V)};return this.broadcast([["comment",w]],O)}},{key:"deleteComment",value:function(E,c,_){var l={author:E,permlink:c};return this.broadcast([["delete_comment",l]],_)}},{key:"customJson",value:function(E,c,_,l,M){if(R())return window.steem_keychain.requestCustomJson(c[0],_,"Posting",l,"",function(V){return V.error?M(V.error):M(null,V)});var j={required_auths:E,required_posting_auths:c,id:_,json:l};return this.broadcast([["custom_json",j]],M)}},{key:"reblog",value:function(E,c,_,l){var M=["reblog",{account:E,author:c,permlink:_}];return this.customJson([],[E],"follow",(0,h.default)(M),l)}},{key:"follow",value:function(E,c,_){var l=["follow",{follower:E,following:c,what:["blog"]}];return this.customJson([],[E],"follow",(0,h.default)(l),_)}},{key:"unfollow",value:function(E,c,_){var l=["follow",{follower:E,following:c,what:[]}];return this.customJson([],[E],"follow",(0,h.default)(l),_)}},{key:"ignore",value:function(E,c,_){var l=["follow",{follower:E,following:c,what:["ignore"]}];return this.customJson([],[E],"follow",(0,h.default)(l),_)}},{key:"claimRewardBalance",value:function(E,c,_,l,M){var j={account:E,reward_steem:c,reward_sbd:_,reward_vests:l};return this.broadcast([["claim_reward_balance",j]],M)}},{key:"revokeToken",value:function(E){var c=this;return this.send("oauth2/token/revoke","POST",{token:this.accessToken},E).then(function(){return c.removeAccessToken()})}},{key:"updateUserMetadata",value:function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments[1];return console.warn('The function "updateUserMetadata" is deprecated.'),this.send("me","PUT",{user_metadata:E},c)}}]),B}();y.default={Client:P,Initialize:function(B){return console.warn('The function "Initialize" is deprecated, please use the class "Client" instead.'),new P(B)},sign:function(B,E,c){if(console.warn('The function "sign" is deprecated.'),typeof B!="string"||(E===void 0?"undefined":(0,a.default)(E))!=="object")return{error:"invalid_request",error_description:"Request has an invalid format"};var _="https://steemlogin.com/sign/"+B+"?";return _+=(0,r.default)(E).map(function(l){return l+"="+encodeURIComponent(E[l])}).join("&"),_+=c?"&redirect_uri="+encodeURIComponent(c):""},sendTransaction:function(B,E,c){var _=(0,g.encodeTx)(B,E),l=_.replace("steem://",v+"/");return x()?window._steemconnect.sign(_,c):c&&S()?window.open(l,"_blank").focus():l},sendOperations:function(B,E,c){var _=(0,g.encodeOps)(B,E),l=_.replace("steem://",v+"/");return x()?window._steemconnect.sign(_,c):c&&S()?window.open(l,"_blank").focus():l},sendOperation:function(B,E,c){var _=(0,g.encodeOp)(B,E),l=_.replace("steem://",v+"/");return x()?window._steemconnect.sign(_,c):c&&S()?window.open(l,"_blank").focus():l},hasChromeExtension:x,hasSteemKeychain:N,useSteemKeychain:R},d.exports=y.default},function(d,y,e){d.exports={default:e(54),__esModule:!0}},function(d,y,e){e(55),d.exports=e(1).Object.keys},function(d,y,e){var r=e(33),a=e(15);e(59)("keys",function(){return function(f){return a(r(f))}})},function(d,y,e){var r=e(11);d.exports=Object("z").propertyIsEnumerable(0)?Object:function(a){return r(a)=="String"?a.split(""):Object(a)}},function(d,y,e){var r=e(10),a=e(35),f=e(58);d.exports=function(h){return function(s,p,i){var g,b=r(s),v=a(b.length),S=f(i,v);if(h&&p!=p){for(;v>S;)if((g=b[S++])!=g)return!0}else for(;v>S;S++)if((h||S in b)&&b[S]===p)return h||S||0;return!h&&-1}}},function(d,y,e){var r=e(22),a=Math.max,f=Math.min;d.exports=function(h,s){return(h=r(h))<0?a(h+s,0):f(h,s)}},function(d,y,e){var r=e(7),a=e(1),f=e(13);d.exports=function(h,s){var p=(a.Object||{})[h]||Object[h],i={};i[h]=s(p),r(r.S+r.F*f(function(){p(1)}),"Object",i)}},function(d,y,e){y.__esModule=!0;var r=h(e(61)),a=h(e(70)),f=typeof a.default=="function"&&typeof r.default=="symbol"?function(s){return typeof s}:function(s){return s&&typeof a.default=="function"&&s.constructor===a.default&&s!==a.default.prototype?"symbol":typeof s};function h(s){return s&&s.__esModule?s:{default:s}}y.default=typeof a.default=="function"&&f(r.default)==="symbol"?function(s){return s===void 0?"undefined":f(s)}:function(s){return s&&typeof a.default=="function"&&s.constructor===a.default&&s!==a.default.prototype?"symbol":s===void 0?"undefined":f(s)}},function(d,y,e){d.exports={default:e(62),__esModule:!0}},function(d,y,e){e(37),e(42),d.exports=e(28).f("iterator")},function(d,y,e){var r=e(22),a=e(21);d.exports=function(f){return function(h,s){var p,i,g=String(a(h)),b=r(s),v=g.length;return b<0||b>=v?f?"":void 0:(p=g.charCodeAt(b))<55296||p>56319||b+1===v||(i=g.charCodeAt(b+1))<56320||i>57343?f?g.charAt(b):p:f?g.slice(b,b+2):i-56320+(p-55296<<10)+65536}}},function(d,y,e){var r=e(40),a=e(19),f=e(20),h={};e(8)(h,e(2)("iterator"),function(){return this}),d.exports=function(s,p,i){s.prototype=r(h,{next:a(1,i)}),f(s,p+" Iterator")}},function(d,y,e){var r=e(3),a=e(4),f=e(15);d.exports=e(5)?Object.defineProperties:function(h,s){a(h);for(var p,i=f(s),g=i.length,b=0;g>b;)r.f(h,p=i[b++],s[p]);return h}},function(d,y,e){var r=e(6),a=e(33),f=e(23)("IE_PROTO"),h=Object.prototype;d.exports=Object.getPrototypeOf||function(s){return s=a(s),r(s,f)?s[f]:typeof s.constructor=="function"&&s instanceof s.constructor?s.constructor.prototype:s instanceof Object?h:null}},function(d,y,e){var r=e(68),a=e(69),f=e(14),h=e(10);d.exports=e(38)(Array,"Array",function(s,p){this._t=h(s),this._i=0,this._k=p},function(){var s=this._t,p=this._k,i=this._i++;return!s||i>=s.length?(this._t=void 0,a(1)):a(0,p=="keys"?i:p=="values"?s[i]:[i,s[i]])},"values"),f.Arguments=f.Array,r("keys"),r("values"),r("entries")},function(d,y){d.exports=function(){}},function(d,y){d.exports=function(e,r){return{value:r,done:!!e}}},function(d,y,e){d.exports={default:e(71),__esModule:!0}},function(d,y,e){e(72),e(45),e(78),e(79),d.exports=e(1).Symbol},function(d,y,e){var r=e(0),a=e(6),f=e(5),h=e(7),s=e(39),p=e(73).KEY,i=e(13),g=e(24),b=e(20),v=e(16),S=e(2),x=e(28),N=e(29),R=e(74),P=e(75),B=e(4),E=e(9),c=e(10),_=e(27),l=e(19),M=e(40),j=e(76),V=e(77),O=e(3),w=e(15),q=V.f,D=O.f,Y=j.f,F=r.Symbol,U=r.JSON,H=U&&U.stringify,W=S("_hidden"),ee=S("toPrimitive"),te={}.propertyIsEnumerable,X=g("symbol-registry"),oe=g("symbols"),C=g("op-symbols"),K=Object.prototype,J=typeof F=="function",ie=r.QObject,ne=!ie||!ie.prototype||!ie.prototype.findChild,n=f&&i(function(){return M(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a!=7})?function($,G,ae){var se=q(K,G);se&&delete K[G],D($,G,ae),se&&$!==K&&D(K,G,se)}:D,o=function($){var G=oe[$]=M(F.prototype);return G._k=$,G},u=J&&typeof F.iterator=="symbol"?function($){return typeof $=="symbol"}:function($){return $ instanceof F},A=function($,G,ae){return $===K&&A(C,G,ae),B($),G=_(G,!0),B(ae),a(oe,G)?(ae.enumerable?(a($,W)&&$[W][G]&&($[W][G]=!1),ae=M(ae,{enumerable:l(0,!1)})):(a($,W)||D($,W,l(1,{})),$[W][G]=!0),n($,G,ae)):D($,G,ae)},m=function($,G){B($);for(var ae,se=R(G=c(G)),fe=0,ve=se.length;ve>fe;)A($,ae=se[fe++],G[ae]);return $},k=function($){var G=te.call(this,$=_($,!0));return!(this===K&&a(oe,$)&&!a(C,$))&&(!(G||!a(this,$)||!a(oe,$)||a(this,W)&&this[W][$])||G)},I=function($,G){if($=c($),G=_(G,!0),$!==K||!a(oe,G)||a(C,G)){var ae=q($,G);return!ae||!a(oe,G)||a($,W)&&$[W][G]||(ae.enumerable=!0),ae}},z=function($){for(var G,ae=Y(c($)),se=[],fe=0;ae.length>fe;)a(oe,G=ae[fe++])||G==W||G==p||se.push(G);return se},Z=function($){for(var G,ae=$===K,se=Y(ae?C:c($)),fe=[],ve=0;se.length>ve;)!a(oe,G=se[ve++])||ae&&!a(K,G)||fe.push(oe[G]);return fe};J||(s((F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var $=v(arguments.length>0?arguments[0]:void 0),G=function(ae){this===K&&G.call(C,ae),a(this,W)&&a(this[W],$)&&(this[W][$]=!1),n(this,$,l(1,ae))};return f&&ne&&n(K,$,{configurable:!0,set:G}),o($)}).prototype,"toString",function(){return this._k}),V.f=I,O.f=A,e(44).f=j.f=z,e(30).f=k,e(43).f=Z,f&&!e(12)&&s(K,"propertyIsEnumerable",k,!0),x.f=function($){return o(S($))}),h(h.G+h.W+h.F*!J,{Symbol:F});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Q=0;re.length>Q;)S(re[Q++]);for(var ue=w(S.store),ce=0;ue.length>ce;)N(ue[ce++]);h(h.S+h.F*!J,"Symbol",{for:function($){return a(X,$+="")?X[$]:X[$]=F($)},keyFor:function($){if(!u($))throw TypeError($+" is not a symbol!");for(var G in X)if(X[G]===$)return G},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),h(h.S+h.F*!J,"Object",{create:function($,G){return G===void 0?M($):m(M($),G)},defineProperty:A,defineProperties:m,getOwnPropertyDescriptor:I,getOwnPropertyNames:z,getOwnPropertySymbols:Z}),U&&h(h.S+h.F*(!J||i(function(){var $=F();return H([$])!="[null]"||H({a:$})!="{}"||H(Object($))!="{}"})),"JSON",{stringify:function($){for(var G,ae,se=[$],fe=1;arguments.length>fe;)se.push(arguments[fe++]);if(ae=G=se[1],(E(G)||$!==void 0)&&!u($))return P(G)||(G=function(ve,Ae){if(typeof ae=="function"&&(Ae=ae.call(this,ve,Ae)),!u(Ae))return Ae}),se[1]=G,H.apply(U,se)}}),F.prototype[ee]||e(8)(F.prototype,ee,F.prototype.valueOf),b(F,"Symbol"),b(Math,"Math",!0),b(r.JSON,"JSON",!0)},function(d,y,e){var r=e(16)("meta"),a=e(9),f=e(6),h=e(3).f,s=0,p=Object.isExtensible||function(){return!0},i=!e(13)(function(){return p(Object.preventExtensions({}))}),g=function(v){h(v,r,{value:{i:"O"+ ++s,w:{}}})},b=d.exports={KEY:r,NEED:!1,fastKey:function(v,S){if(!a(v))return typeof v=="symbol"?v:(typeof v=="string"?"S":"P")+v;if(!f(v,r)){if(!p(v))return"F";if(!S)return"E";g(v)}return v[r].i},getWeak:function(v,S){if(!f(v,r)){if(!p(v))return!0;if(!S)return!1;g(v)}return v[r].w},onFreeze:function(v){return i&&b.NEED&&p(v)&&!f(v,r)&&g(v),v}}},function(d,y,e){var r=e(15),a=e(43),f=e(30);d.exports=function(h){var s=r(h),p=a.f;if(p)for(var i,g=p(h),b=f.f,v=0;g.length>v;)b.call(h,i=g[v++])&&s.push(i);return s}},function(d,y,e){var r=e(11);d.exports=Array.isArray||function(a){return r(a)=="Array"}},function(d,y,e){var r=e(10),a=e(44).f,f={}.toString,h=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];d.exports.f=function(s){return h&&f.call(s)=="[object Window]"?function(p){try{return a(p)}catch{return h.slice()}}(s):a(r(s))}},function(d,y,e){var r=e(30),a=e(19),f=e(10),h=e(27),s=e(6),p=e(36),i=Object.getOwnPropertyDescriptor;y.f=e(5)?i:function(g,b){if(g=f(g),b=h(b,!0),p)try{return i(g,b)}catch{}if(s(g,b))return a(!r.f.call(g,b),g[b])}},function(d,y,e){e(29)("asyncIterator")},function(d,y,e){e(29)("observable")},function(d,y,e){d.exports={default:e(81),__esModule:!0}},function(d,y,e){e(45),e(37),e(42),e(82),e(94),e(95),d.exports=e(1).Promise},function(d,y,e){var r,a,f,h,s=e(12),p=e(0),i=e(17),g=e(46),b=e(7),v=e(9),S=e(18),x=e(83),N=e(84),R=e(47),P=e(48).set,B=e(89)(),E=e(31),c=e(49),_=e(90),l=e(50),M=p.TypeError,j=p.process,V=j&&j.versions,O=V&&V.v8||"",w=p.Promise,q=g(j)=="process",D=function(){},Y=a=E.f,F=!!function(){try{var C=w.resolve(1),K=(C.constructor={})[e(2)("species")]=function(J){J(D,D)};return(q||typeof PromiseRejectionEvent=="function")&&C.then(D)instanceof K&&O.indexOf("6.6")!==0&&_.indexOf("Chrome/66")===-1}catch{}}(),U=function(C){var K;return!(!v(C)||typeof(K=C.then)!="function")&&K},H=function(C,K){if(!C._n){C._n=!0;var J=C._c;B(function(){for(var ie=C._v,ne=C._s==1,n=0,o=function(u){var A,m,k,I=ne?u.ok:u.fail,z=u.resolve,Z=u.reject,re=u.domain;try{I?(ne||(C._h==2&&te(C),C._h=1),I===!0?A=ie:(re&&re.enter(),A=I(ie),re&&(re.exit(),k=!0)),A===u.promise?Z(M("Promise-chain cycle")):(m=U(A))?m.call(A,z,Z):z(A)):Z(ie)}catch(Q){re&&!k&&re.exit(),Z(Q)}};J.length>n;)o(J[n++]);C._c=[],C._n=!1,K&&!C._h&&W(C)})}},W=function(C){P.call(p,function(){var K,J,ie,ne=C._v,n=ee(C);if(n&&(K=c(function(){q?j.emit("unhandledRejection",ne,C):(J=p.onunhandledrejection)?J({promise:C,reason:ne}):(ie=p.console)&&ie.error&&ie.error("Unhandled promise rejection",ne)}),C._h=q||ee(C)?2:1),C._a=void 0,n&&K.e)throw K.v})},ee=function(C){return C._h!==1&&(C._a||C._c).length===0},te=function(C){P.call(p,function(){var K;q?j.emit("rejectionHandled",C):(K=p.onrejectionhandled)&&K({promise:C,reason:C._v})})},X=function(C){var K=this;K._d||(K._d=!0,(K=K._w||K)._v=C,K._s=2,K._a||(K._a=K._c.slice()),H(K,!0))},oe=function(C){var K,J=this;if(!J._d){J._d=!0,J=J._w||J;try{if(J===C)throw M("Promise can't be resolved itself");(K=U(C))?B(function(){var ie={_w:J,_d:!1};try{K.call(C,i(oe,ie,1),i(X,ie,1))}catch(ne){X.call(ie,ne)}}):(J._v=C,J._s=1,H(J,!1))}catch(ie){X.call({_w:J,_d:!1},ie)}}};F||(w=function(C){x(this,w,"Promise","_h"),S(C),r.call(this);try{C(i(oe,this,1),i(X,this,1))}catch(K){X.call(this,K)}},(r=function(C){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=e(91)(w.prototype,{then:function(C,K){var J=Y(R(this,w));return J.ok=typeof C!="function"||C,J.fail=typeof K=="function"&&K,J.domain=q?j.domain:void 0,this._c.push(J),this._a&&this._a.push(J),this._s&&H(this,!1),J.promise},catch:function(C){return this.then(void 0,C)}}),f=function(){var C=new r;this.promise=C,this.resolve=i(oe,C,1),this.reject=i(X,C,1)},E.f=Y=function(C){return C===w||C===h?new f(C):a(C)}),b(b.G+b.W+b.F*!F,{Promise:w}),e(20)(w,"Promise"),e(92)("Promise"),h=e(1).Promise,b(b.S+b.F*!F,"Promise",{reject:function(C){var K=Y(this);return(0,K.reject)(C),K.promise}}),b(b.S+b.F*(s||!F),"Promise",{resolve:function(C){return l(s&&this===h?w:this,C)}}),b(b.S+b.F*!(F&&e(93)(function(C){w.all(C).catch(D)})),"Promise",{all:function(C){var K=this,J=Y(K),ie=J.resolve,ne=J.reject,n=c(function(){var o=[],u=0,A=1;N(C,!1,function(m){var k=u++,I=!1;o.push(void 0),A++,K.resolve(m).then(function(z){I||(I=!0,o[k]=z,--A||ie(o))},ne)}),--A||ie(o)});return n.e&&ne(n.v),J.promise},race:function(C){var K=this,J=Y(K),ie=J.reject,ne=c(function(){N(C,!1,function(n){K.resolve(n).then(J.resolve,ie)})});return ne.e&&ie(ne.v),J.promise}})},function(d,y){d.exports=function(e,r,a,f){if(!(e instanceof r)||f!==void 0&&f in e)throw TypeError(a+": incorrect invocation!");return e}},function(d,y,e){var r=e(17),a=e(85),f=e(86),h=e(4),s=e(35),p=e(87),i={},g={};(y=d.exports=function(b,v,S,x,N){var R,P,B,E,c=N?function(){return b}:p(b),_=r(S,x,v?2:1),l=0;if(typeof c!="function")throw TypeError(b+" is not iterable!");if(f(c)){for(R=s(b.length);R>l;l++)if((E=v?_(h(P=b[l])[0],P[1]):_(b[l]))===i||E===g)return E}else for(B=c.call(b);!(P=B.next()).done;)if((E=a(B,_,P.value,v))===i||E===g)return E}).BREAK=i,y.RETURN=g},function(d,y,e){var r=e(4);d.exports=function(a,f,h,s){try{return s?f(r(h)[0],h[1]):f(h)}catch(i){var p=a.return;throw p!==void 0&&r(p.call(a)),i}}},function(d,y,e){var r=e(14),a=e(2)("iterator"),f=Array.prototype;d.exports=function(h){return h!==void 0&&(r.Array===h||f[a]===h)}},function(d,y,e){var r=e(46),a=e(2)("iterator"),f=e(14);d.exports=e(1).getIteratorMethod=function(h){if(h!=null)return h[a]||h["@@iterator"]||f[r(h)]}},function(d,y){d.exports=function(e,r,a){var f=a===void 0;switch(r.length){case 0:return f?e():e.call(a);case 1:return f?e(r[0]):e.call(a,r[0]);case 2:return f?e(r[0],r[1]):e.call(a,r[0],r[1]);case 3:return f?e(r[0],r[1],r[2]):e.call(a,r[0],r[1],r[2]);case 4:return f?e(r[0],r[1],r[2],r[3]):e.call(a,r[0],r[1],r[2],r[3])}return e.apply(a,r)}},function(d,y,e){var r=e(0),a=e(48).set,f=r.MutationObserver||r.WebKitMutationObserver,h=r.process,s=r.Promise,p=e(11)(h)=="process";d.exports=function(){var i,g,b,v=function(){var R,P;for(p&&(R=h.domain)&&R.exit();i;){P=i.fn,i=i.next;try{P()}catch(B){throw i?b():g=void 0,B}}g=void 0,R&&R.enter()};if(p)b=function(){h.nextTick(v)};else if(!f||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var S=s.resolve(void 0);b=function(){S.then(v)}}else b=function(){a.call(r,v)};else{var x=!0,N=document.createTextNode("");new f(v).observe(N,{characterData:!0}),b=function(){N.data=x=!x}}return function(R){var P={fn:R,next:void 0};g&&(g.next=P),i||(i=P,b()),g=P}}},function(d,y,e){var r=e(0).navigator;d.exports=r&&r.userAgent||""},function(d,y,e){var r=e(8);d.exports=function(a,f,h){for(var s in f)h&&a[s]?a[s]=f[s]:r(a,s,f[s]);return a}},function(d,y,e){var r=e(0),a=e(1),f=e(3),h=e(5),s=e(2)("species");d.exports=function(p){var i=typeof a[p]=="function"?a[p]:r[p];h&&i&&!i[s]&&f.f(i,s,{configurable:!0,get:function(){return this}})}},function(d,y,e){var r=e(2)("iterator"),a=!1;try{var f=[7][r]();f.return=function(){a=!0},Array.from(f,function(){throw 2})}catch{}d.exports=function(h,s){if(!s&&!a)return!1;var p=!1;try{var i=[7],g=i[r]();g.next=function(){return{done:p=!0}},i[r]=function(){return g},h(i)}catch{}return p}},function(d,y,e){var r=e(7),a=e(1),f=e(0),h=e(47),s=e(50);r(r.P+r.R,"Promise",{finally:function(p){var i=h(this,a.Promise||f.Promise),g=typeof p=="function";return this.then(g?function(b){return s(i,p()).then(function(){return b})}:p,g?function(b){return s(i,p()).then(function(){throw b})}:p)}})},function(d,y,e){var r=e(7),a=e(31),f=e(49);r(r.S,"Promise",{try:function(h){var s=a.f(this),p=f(h);return(p.e?s.reject:s.resolve)(p.v),s.promise}})},function(d,y,e){d.exports={default:e(97),__esModule:!0}},function(d,y,e){var r=e(1),a=r.JSON||(r.JSON={stringify:JSON.stringify});d.exports=function(f){return a.stringify.apply(a,arguments)}},function(d,y,e){y.__esModule=!0,y.default=function(r,a){if(!(r instanceof a))throw new TypeError("Cannot call a class as a function")}},function(d,y,e){y.__esModule=!0;var r,a=e(100),f=(r=a)&&r.__esModule?r:{default:r};y.default=function(){function h(s,p){for(var i=0;i<p.length;i++){var g=p[i];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),(0,f.default)(s,g.key,g)}}return function(s,p,i){return p&&h(s.prototype,p),i&&h(s,i),s}}()},function(d,y,e){d.exports={default:e(101),__esModule:!0}},function(d,y,e){e(102);var r=e(1).Object;d.exports=function(a,f,h){return r.defineProperty(a,f,h)}},function(d,y,e){var r=e(7);r(r.S+r.F*!e(5),"Object",{defineProperty:e(3).f})},function(d,y){var e=function(r){function a(){this.fetch=!1}return a.prototype=r,new a}(typeof self<"u"?self:this);(function(r){(function(a){var f="URLSearchParams"in r,h="Symbol"in r&&"iterator"in Symbol,s="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),p="FormData"in r,i="ArrayBuffer"in r;if(i)var g=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=ArrayBuffer.isView||function(w){return w&&g.indexOf(Object.prototype.toString.call(w))>-1};function v(w){if(typeof w!="string"&&(w=String(w)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(w))throw new TypeError("Invalid character in header field name");return w.toLowerCase()}function S(w){return typeof w!="string"&&(w=String(w)),w}function x(w){var q={next:function(){var D=w.shift();return{done:D===void 0,value:D}}};return h&&(q[Symbol.iterator]=function(){return q}),q}function N(w){this.map={},w instanceof N?w.forEach(function(q,D){this.append(D,q)},this):Array.isArray(w)?w.forEach(function(q){this.append(q[0],q[1])},this):w&&Object.getOwnPropertyNames(w).forEach(function(q){this.append(q,w[q])},this)}function R(w){if(w.bodyUsed)return Promise.reject(new TypeError("Already read"));w.bodyUsed=!0}function P(w){return new Promise(function(q,D){w.onload=function(){q(w.result)},w.onerror=function(){D(w.error)}})}function B(w){var q=new FileReader,D=P(q);return q.readAsArrayBuffer(w),D}function E(w){if(w.slice)return w.slice(0);var q=new Uint8Array(w.byteLength);return q.set(new Uint8Array(w)),q.buffer}function c(){return this.bodyUsed=!1,this._initBody=function(w){var q;this._bodyInit=w,w?typeof w=="string"?this._bodyText=w:s&&Blob.prototype.isPrototypeOf(w)?this._bodyBlob=w:p&&FormData.prototype.isPrototypeOf(w)?this._bodyFormData=w:f&&URLSearchParams.prototype.isPrototypeOf(w)?this._bodyText=w.toString():i&&s&&(q=w)&&DataView.prototype.isPrototypeOf(q)?(this._bodyArrayBuffer=E(w.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i&&(ArrayBuffer.prototype.isPrototypeOf(w)||b(w))?this._bodyArrayBuffer=E(w):this._bodyText=w=Object.prototype.toString.call(w):this._bodyText="",this.headers.get("content-type")||(typeof w=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):f&&URLSearchParams.prototype.isPrototypeOf(w)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},s&&(this.blob=function(){var w=R(this);if(w)return w;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?R(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(B)}),this.text=function(){var w,q,D,Y=R(this);if(Y)return Y;if(this._bodyBlob)return w=this._bodyBlob,q=new FileReader,D=P(q),q.readAsText(w),D;if(this._bodyArrayBuffer)return Promise.resolve(function(F){for(var U=new Uint8Array(F),H=new Array(U.length),W=0;W<U.length;W++)H[W]=String.fromCharCode(U[W]);return H.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},p&&(this.formData=function(){return this.text().then(M)}),this.json=function(){return this.text().then(JSON.parse)},this}N.prototype.append=function(w,q){w=v(w),q=S(q);var D=this.map[w];this.map[w]=D?D+", "+q:q},N.prototype.delete=function(w){delete this.map[v(w)]},N.prototype.get=function(w){return w=v(w),this.has(w)?this.map[w]:null},N.prototype.has=function(w){return this.map.hasOwnProperty(v(w))},N.prototype.set=function(w,q){this.map[v(w)]=S(q)},N.prototype.forEach=function(w,q){for(var D in this.map)this.map.hasOwnProperty(D)&&w.call(q,this.map[D],D,this)},N.prototype.keys=function(){var w=[];return this.forEach(function(q,D){w.push(D)}),x(w)},N.prototype.values=function(){var w=[];return this.forEach(function(q){w.push(q)}),x(w)},N.prototype.entries=function(){var w=[];return this.forEach(function(q,D){w.push([D,q])}),x(w)},h&&(N.prototype[Symbol.iterator]=N.prototype.entries);var _=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function l(w,q){var D,Y,F=(q=q||{}).body;if(w instanceof l){if(w.bodyUsed)throw new TypeError("Already read");this.url=w.url,this.credentials=w.credentials,q.headers||(this.headers=new N(w.headers)),this.method=w.method,this.mode=w.mode,this.signal=w.signal,F||w._bodyInit==null||(F=w._bodyInit,w.bodyUsed=!0)}else this.url=String(w);if(this.credentials=q.credentials||this.credentials||"same-origin",!q.headers&&this.headers||(this.headers=new N(q.headers)),this.method=(D=q.method||this.method||"GET",Y=D.toUpperCase(),_.indexOf(Y)>-1?Y:D),this.mode=q.mode||this.mode||null,this.signal=q.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&F)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(F)}function M(w){var q=new FormData;return w.trim().split("&").forEach(function(D){if(D){var Y=D.split("="),F=Y.shift().replace(/\+/g," "),U=Y.join("=").replace(/\+/g," ");q.append(decodeURIComponent(F),decodeURIComponent(U))}}),q}function j(w,q){q||(q={}),this.type="default",this.status=q.status===void 0?200:q.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in q?q.statusText:"OK",this.headers=new N(q.headers),this.url=q.url||"",this._initBody(w)}l.prototype.clone=function(){return new l(this,{body:this._bodyInit})},c.call(l.prototype),c.call(j.prototype),j.prototype.clone=function(){return new j(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new N(this.headers),url:this.url})},j.error=function(){var w=new j(null,{status:0,statusText:""});return w.type="error",w};var V=[301,302,303,307,308];j.redirect=function(w,q){if(V.indexOf(q)===-1)throw new RangeError("Invalid status code");return new j(null,{status:q,headers:{location:w}})},a.DOMException=r.DOMException;try{new a.DOMException}catch{a.DOMException=function(q,D){this.message=q,this.name=D;var Y=Error(q);this.stack=Y.stack},a.DOMException.prototype=Object.create(Error.prototype),a.DOMException.prototype.constructor=a.DOMException}function O(w,q){return new Promise(function(D,Y){var F=new l(w,q);if(F.signal&&F.signal.aborted)return Y(new a.DOMException("Aborted","AbortError"));var U=new XMLHttpRequest;function H(){U.abort()}U.onload=function(){var W,ee,te={status:U.status,statusText:U.statusText,headers:(W=U.getAllResponseHeaders()||"",ee=new N,W.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(oe){var C=oe.split(":"),K=C.shift().trim();if(K){var J=C.join(":").trim();ee.append(K,J)}}),ee)};te.url="responseURL"in U?U.responseURL:te.headers.get("X-Request-URL");var X="response"in U?U.response:U.responseText;D(new j(X,te))},U.onerror=function(){Y(new TypeError("Network request failed"))},U.ontimeout=function(){Y(new TypeError("Network request failed"))},U.onabort=function(){Y(new a.DOMException("Aborted","AbortError"))},U.open(F.method,F.url,!0),F.credentials==="include"?U.withCredentials=!0:F.credentials==="omit"&&(U.withCredentials=!1),"responseType"in U&&s&&(U.responseType="blob"),F.headers.forEach(function(W,ee){U.setRequestHeader(ee,W)}),F.signal&&(F.signal.addEventListener("abort",H),U.onreadystatechange=function(){U.readyState===4&&F.signal.removeEventListener("abort",H)}),U.send(F._bodyInit===void 0?null:F._bodyInit)})}O.polyfill=!0,r.fetch||(r.fetch=O,r.Headers=N,r.Request=l,r.Response=j),a.Headers=N,a.Request=l,a.Response=j,a.fetch=O})({})})(e),delete e.fetch.polyfill,(y=e.fetch).default=e.fetch,y.fetch=e.fetch,y.Headers=e.Headers,y.Request=e.Request,y.Response=e.Response,d.exports=y},function(d,y,e){(function(r,a){Object.defineProperty(y,"__esModule",{value:!0}),typeof URL>"u"&&(r.URL=e(51).URL),typeof URLSearchParams>"u"&&(r.URLSearchParams=e(51).URLSearchParams),typeof btoa>"u"&&(r.btoa=function(v){return new a(v,"binary").toString("base64")}),typeof atob>"u"&&(r.atob=function(v){return new a(v,"base64").toString("binary")});var f={"/":"_",_:"/","+":"-","-":"+","=":".",".":"="},h=function(v){return btoa(v).replace(/(\+|\/|=)/g,function(S){return f[S]})},s=function(v){return atob(v.replace(/(-|_|\.)/g,function(S){return f[S]}))};y.decode=function(v){var S=v.slice(0,6),x=new URL(v.replace(/^steem:/,"http:"));if(S!=="steem:")throw new Error("Invalid protocol, expected 'steem:' got '"+S+"'");if(x.host!=="sign")throw new Error("Invalid action, expected 'sign' got '"+x.host+"'");var N,R,P=x.pathname.split("/").slice(1),B=P[0],E=P[1];try{N=JSON.parse(s(E))}catch(_){throw _.message="Invalid payload: "+_.message,_}switch(B){case"tx":R=N;break;case"op":case"ops":R={ref_block_num:"__ref_block_num",ref_block_prefix:"__ref_block_prefix",expiration:"__expiration",extensions:[],operations:B==="ops"?N:[N]};break;default:throw new Error("Invalid signing action '"+B+"'")}var c={};return x.searchParams.has("cb")&&(c.callback=s(x.searchParams.get("cb"))),x.searchParams.has("nb")&&(c.no_broadcast=!0),x.searchParams.has("s")&&(c.signer=x.searchParams.get("s")),{tx:R,params:c}};var p=/(__(ref_block_(num|prefix)|expiration|signer))/g;y.resolveTransaction=function(v,S,x){var N=S.signer||x.preferred_signer;if(!x.signers.includes(N))throw new Error("Signer '"+N+"' not available");var R={__ref_block_num:x.ref_block_num,__ref_block_prefix:x.ref_block_prefix,__expiration:x.expiration,__signer:N},P=function(B){var E=typeof B;switch(E==="object"&&Array.isArray(B)?E="array":B===null&&(E="null"),E){case"string":return B.replace(p,function(O){return R[O]});case"array":return B.map(P);case"object":for(var c={},_=0,l=Object.entries(B);_<l.length;_++){var M=l[_],j=M[0],V=M[1];c[j]=P(V)}return c;default:return B}};return{signer:N,tx:P(v)}};var i=/({{(sig|id|block|txn)}})/g;function g(v){var S=new URLSearchParams;v.no_broadcast===!0&&S.set("nb",""),v.signer&&S.set("s",v.signer),v.callback&&S.set("cb",h(v.callback));var x=S.toString