UNPKG

steem-auth-vue

Version:

A Vue 3 authentication component for Steem blockchain and MeeRay sidechain

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