cosmos-explorer/server/dist/js/m.3d7ab8ab.js

21 lines
708 KiB
JavaScript
Raw Normal View History

2021-04-14 07:36:49 +00:00
(function(e){function t(t){for(var n,r,i=t[0],a=t[1],l=0,s=[];l<i.length;l++)r=i[l],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&s.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);c&&c(t);while(s.length)s.shift()()}var n={},o={m:0};function r(e){return i.p+"js/"+({h5:"h5"}[e]||e)+"."+{h5:"d98324a2"}[e]+".js"}function i(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.e=function(e){var t=[],n=o[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,r){n=o[e]=[t,r]}));t.push(n[2]=a);var l,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=r(e);var c=new Error;l=function(t){s.onerror=s.onload=null,clearTimeout(d);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",c.name="ChunkLoadError",c.type=r,c.request=i,n[1](c)}o[e]=void 0}};var d=setTimeout((function(){l({type:"timeout",target:s})}),12e4);s.onerror=s.onload=l,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=window["webpackJsonp"]=window["webpackJsonp"]||[],l=a.push.bind(a);a.push=t,a=a.slice();for(var s=0;s<a.length;s++)t(a[s]);var c=l;i(i.s=1)})({"00ee":function(e,t,n){var o=n("b622"),r=o("toStringTag"),i={};i[r]="z",e.exports="[object z]"===String(i)},"0147":function(e,t,n){n("a29f"),n("0607"),n("949e"),n("7565"),n("dfda")},"01f5":function(e,t,n){"use strict";t.__esModule=!0,t.BORDER_UNSET_TOP_BOTTOM=t.BORDER_TOP_BOTTOM=t.BORDER_SURROUND=t.BORDER_BOTTOM=t.BORDER_LEFT=t.BORDER_TOP=t.BORDER=t.RED=void 0;var o="#ee0a24";t.RED=o;var r="van-hairline";t.BORDER=r;var i=r+"--top";t.BORDER_TOP=i;var a=r+"--left";t.BORDER_LEFT=a;var l=r+"--bottom";t.BORDER_BOTTOM=l;var s=r+"--surround";t.BORDER_SURROUND=s;var c=r+"--top-bottom";t.BORDER_TOP_BOTTOM=c;var d=r+"-unset--top-bottom";t.BORDER_UNSET_TOP_BOTTOM=d},"02a0":function(e,t,n){"use strict";var o=n("4ea4");t.__esModule=!0,t.default=void 0;var r=o(n("a559")),i=n("e5f6"),a=n("41ab"),l=n("d593"),s=o(n("493d")),c=o(n("acaa")),d=(0,i.createNamespace)("tabbar-item"),u=d[0],p=d[1],f=u({mixins:[(0,l.ChildrenMixin)("vanTabbar")],props:(0,r.default)({},a.routeProps,{dot:Boolean,icon:String,name:[Number,String],info:[Number,String],badge:[Number,String],iconPrefix:String}),data:function(){return{active:!1}},computed:{routeActive:function(){var e=this.to,t=this.$route;if(e&&t){var n=(0,i.isObject)(e)?e:{path:e},o=n.path===t.path,r=(0,i.isDef)(n.name)&&n.name===t.name;return o||r}}},methods:{onClick:function(e){this.parent.onChange(this.name||this.index),this.$emit("click",e),(0,a.route)(this.$router,this)},genIcon:function(e){var t=this.$createElement,n=this.slots("icon",{active:e});return n||(this.icon?t(s.default,{attrs:{name:this.icon,classPrefix:this.iconPrefix}}):void 0)}},render:function(){var e,t=arguments[0],n=this.parent.route?this.routeActive:this.active,o=this.parent[n?"activeColor":"inactiveColor"];return t("div",{class:p({active:n}),style:{color:o},on:{click:this.onClick}},[t("div",{class:p("icon")},[this.genIcon(n),t(c.default,{attrs:{dot:this.dot,info:null!=(e=this.badge)?e:this.info}})]),t("div",{class:p("text")},[this.slots("default",{active:n})])])
2021-04-10 08:09:21 +00:00
/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/
2021-04-14 07:36:49 +00:00
function n(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:o});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[o].concat(e.init):o,n.call(this,e)}}function o(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var o="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},r=o.__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){r.emit("vuex:action",e,t)}),{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function l(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=a(t,(function(t){return t.original===e}));if(n)return n.copy;var o=Array.isArray(e)?[]:{};return t.push({original:e,copy:o}),Object.keys(e).forEach((function(n){o[n]=l(e[n],t)})),o}function s(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function c(e){return null!==e&&"object"===typeof e}function d(e){return e&&"function"===typeof e.then}function u(e,t){return function(){return e(t)}}var p=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},f={namespaced:{configurable:!0}};f.namespaced.get=function(){return!!this._rawModule.namespaced},p.prototype.addChild=function(e,t){this._children[e]=t},p.prototype.removeChild=function(e){delete this._children[e]},p.prototype.getChild=function(e){return this._children[e]},p.prototype.hasChild=function(e){return e in this._children},p.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},p.prototype.forEachChild=function(e){s(this._children,e)},p.prototype.forEachGetter=function(e){this._rawModule.getters&&s(this._rawModule.getters,e)},p.prototype.forEachAction=function(e){this._rawModule.actions&&s(this._rawModule.actions,e)},p.prototype.forEachMutation=function(e){this._rawModule.mutations&&s(this._rawModule.mutations,e)},Object.defineProperties(p.prototype,f);var h=function(e){this.register([],e,!1)};function b(e,t,n){if(t.update(n),n.modules)for(var o in n.modules){if(!t.getChild(o))return void 0;b(e.concat(o),t.getChild(o),n.modules[o])}}h.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},h.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},h.prototype.update=function(e){b([],this.root,e)},h.prototype.register=function(e,t,n){var o=this;void 0===n&&(n=!0);var r=new p(t,n);if(0===e.length)this.root=r;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],r)}t.modules&&s(t.modules,(function(t,r){o.register(e.concat(r),t,n)}))},h.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],o=t.getChild(n);o&&o.runtime&&t.removeChild(n)},h.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var g;var m=function(e){var t=this;void 0===e&&(e={}),!g&&"undefined"!==typeof window&&window.Vue&&j(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var o=e.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new h(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new g,this._makeLocalGettersCache=Object.create(null);var r=this,a=this,l=a.dispatch,s=a.commit;this.dispatch=function(e,t){return l.call(r,e,t)},this.commit=function(e,t,n){return s.call(r,e,t,n)},this.strict=o;var c=this._modules.root.state;k(this,c,[],this._modules.root),w(this,c),n.forEach((function(e){return e(t)}));var d=void 0!==e.devtools?e.
2021-04-10 08:09:21 +00:00
/*!
* vue-router v3.5.1
* (c) 2021 Evan You
* @license MIT
2021-04-14 07:36:49 +00:00
*/function o(e,t){0}function r(e,t){for(var n in t)e[n]=t[n];return e}var i=/[!'()*]/g,a=function(e){return"%"+e.charCodeAt(0).toString(16)},l=/%2C/g,s=function(e){return encodeURIComponent(e).replace(i,a).replace(l,",")};function c(e){try{return decodeURIComponent(e)}catch(t){0}return e}function d(e,t,n){void 0===t&&(t={});var o,r=n||p;try{o=r(e||"")}catch(l){o={}}for(var i in t){var a=t[i];o[i]=Array.isArray(a)?a.map(u):u(a)}return o}var u=function(e){return null==e||"object"===typeof e?e:String(e)};function p(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),o=c(n.shift()),r=n.length>0?c(n.join("=")):null;void 0===t[o]?t[o]=r:Array.isArray(t[o])?t[o].push(r):t[o]=[t[o],r]})),t):t}function f(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return s(t);if(Array.isArray(n)){var o=[];return n.forEach((function(e){void 0!==e&&(null===e?o.push(s(t)):o.push(s(t)+"="+s(e)))})),o.join("&")}return s(t)+"="+s(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var h=/\/?$/;function b(e,t,n,o){var r=o&&o.options.stringifyQuery,i=t.query||{};try{i=g(i)}catch(l){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:i,params:t.params||{},fullPath:v(t,r),matched:e?_(e):[]};return n&&(a.redirectedFrom=v(n,r)),Object.freeze(a)}function g(e){if(Array.isArray(e))return e.map(g);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=g(e[n]);return t}return e}var m=b(null,{path:"/"});function _(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function v(e,t){var n=e.path,o=e.query;void 0===o&&(o={});var r=e.hash;void 0===r&&(r="");var i=t||f;return(n||"/")+i(o)+r}function x(e,t,n){return t===m?e===t:!!t&&(e.path&&t.path?e.path.replace(h,"")===t.path.replace(h,"")&&(n||e.hash===t.hash&&w(e.query,t.query)):!(!e.name||!t.name)&&(e.name===t.name&&(n||e.hash===t.hash&&w(e.query,t.query)&&w(e.params,t.params))))}function w(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),o=Object.keys(t).sort();return n.length===o.length&&n.every((function(n,r){var i=e[n],a=o[r];if(a!==n)return!1;var l=t[n];return null==i||null==l?i===l:"object"===typeof i&&"object"===typeof l?w(i,l):String(i)===String(l)}))}function k(e,t){return 0===e.path.replace(h,"/").indexOf(t.path.replace(h,"/"))&&(!t.hash||e.hash===t.hash)&&y(e.query,t.query)}function y(e,t){for(var n in t)if(!(n in e))return!1;return!0}function A(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var o in n.instances){var r=n.instances[o],i=n.enteredCbs[o];if(r&&i){delete n.enteredCbs[o];for(var a=0;a<i.length;a++)r._isBeingDestroyed||i[a](r)}}}}var S={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,o=t.children,i=t.parent,a=t.data;a.routerView=!0;var l=i.$createElement,s=n.name,c=i.$route,d=i._routerViewCache||(i._routerViewCache={}),u=0,p=!1;while(i&&i._routerRoot!==i){var f=i.$vnode?i.$vnode.data:{};f.routerView&&u++,f.keepAlive&&i._directInactive&&i._inactive&&(p=!0),i=i.$parent}if(a.routerViewDepth=u,p){var h=d[s],b=h&&h.component;return b?(h.configProps&&z(b,a,h.route,h.configProps),l(b,a,o)):l()}var g=c.matched[u],m=g&&g.components[s];if(!g||!m)return d[s]=null,l();d[s]={component:m},a.registerRouteInstance=function(e,t){var n=g.instances[s];(t&&n!==e||!t&&n===e)&&(g.instances[s]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){g.instances[s]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==g.instances[s]&&(g.instances[s]=e.componentInstance),A(c)};var _=g.props&&g.props[s];return _&&(r(d[s],{route:c,configProps:_}),z(m,a,c,_)),l(m,a,o)}};function z(e,t,n,o){var i=t.props=O(n,o);if(i){i=t.props=r({},i);var a=t.attrs=t.attrs||{};for(var l in i)e.props&&l in e.props||(a[l]=i[l],delete i[l])}}function O(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;defau
2021-04-10 08:09:21 +00:00
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
2021-04-14 07:36:49 +00:00
t.read=function(e,t,n,o,r){var i,a,l=8*r-o-1,s=(1<<l)-1,c=s>>1,d=-7,u=n?r-1:0,p=n?-1:1,f=e[t+u];for(u+=p,i=f&(1<<-d)-1,f>>=-d,d+=l;d>0;i=256*i+e[t+u],u+=p,d-=8);for(a=i&(1<<-d)-1,i>>=-d,d+=o;d>0;a=256*a+e[t+u],u+=p,d-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,o),i-=c}return(f?-1:1)*a*Math.pow(2,i-o)},t.write=function(e,t,n,o,r,i){var a,l,s,c=8*i-r-1,d=(1<<c)-1,u=d>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:i-1,h=o?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),t+=a+u>=1?p/s:p*Math.pow(2,1-u),t*s>=2&&(a++,s/=2),a+u>=d?(l=0,a=d):a+u>=1?(l=(t*s-1)*Math.pow(2,r),a+=u):(l=t*Math.pow(2,u-1)*Math.pow(2,r),a=0));r>=8;e[n+f]=255&l,f+=h,l/=256,r-=8);for(a=a<<r|l,c+=r;c>0;e[n+f]=255&a,f+=h,a/=256,c-=8);e[n+f-h]|=128*b}},"91ab":function(e,t,n){var o=n("24fb");t=o(!1),t.push([e.i,".van-overlay{position:fixed;top:0;left:0;z-index:1;width:100%;height:100%;background-color:rgba(0,0,0,.7)}",""]),e.exports=t},9263:function(e,t,n){"use strict";var o=n("ad6d"),r=n("9f7f"),i=n("5692"),a=RegExp.prototype.exec,l=i("native-string-replace",String.prototype.replace),s=a,c=function(){var e=/a/,t=/b*/g;return a.call(e,"a"),a.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),d=r.UNSUPPORTED_Y||r.BROKEN_CARET,u=void 0!==/()??/.exec("")[1],p=c||u||d;p&&(s=function(e){var t,n,r,i,s=this,p=d&&s.sticky,f=o.call(s),h=s.source,b=0,g=e;return p&&(f=f.replace("y",""),-1===f.indexOf("g")&&(f+="g"),g=String(e).slice(s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&"\n"!==e[s.lastIndex-1])&&(h="(?: "+h+")",g=" "+g,b++),n=new RegExp("^(?:"+h+")",f)),u&&(n=new RegExp("^"+h+"$(?!\\s)",f)),c&&(t=s.lastIndex),r=a.call(p?n:s,g),p?r?(r.input=r.input.slice(b),r[0]=r[0].slice(b),r.index=s.lastIndex,s.lastIndex+=r[0].length):s.lastIndex=0:c&&r&&(s.lastIndex=s.global?r.index+r[0].length:t),u&&r&&r.length>1&&l.call(r[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(r[i]=void 0)})),r}),e.exports=s},"93eb":function(e,t,n){"use strict";location.hostname;t["a"]={Mainnet:[{hash:"5e95f8d18ee6e64f7685a4db",api:"V4",chainId:"cosmoshub-3",name:"Cosmos Hub",lcd:"https://cosmoshub.stakesystems.io",rpc:"https://cosmoshub.stakesystems.io:2053",logo:"/static/chains/cosmoshub.svg",prefix:"cosmos",unit:"ATOM",host:"cosmos.ping.pub"},{hash:"5e95f8d18ee6e64f7685a4dd",api:"V2",chainId:"irishub",name:"IRISnet",lcd:"https://rpc.irisnet.org",rpc:"http://seed-1.mainnet.irisnet.org:26657",logo:"/static/chains/irishub.svg",prefix:"iaa",unit:"IRIS",host:"iris.ping.pub"},{hash:"5f46381683d9d569a6ecc5dd",api:"V1",chainId:"iov-mainnet-2",name:"IOV Name Service",lcd:"http://lcd-private-iov-mainnet-2.iov.one",rpc:"https://rpc-private-iov-mainnet-2.iov.one",logo:"/static/chains/cosmoshub.svg",prefix:"star",unit:"IOV"},{hash:"5f8c078b90b5fb7856ae3a06",api:"V1",chainId:"kava-2",name:"Kava",lcd:"https://kava4.data.kava.io",rpc:"https://rpc.data.kava.io",logo:"/static/chains/kava.svg",prefix:"kava",unit:"KAVA",host:"kava.ping.pub"},{hash:"5f8c0ef91effe87834314467",api:"V4",chainId:"akashnet-1",name:"Akash DeCloud",lcd:"http://lcd.akash.forbole.com",rpc:"http://rpc.akash.forbole.com",logo:"https://gblobscdn.gitbook.com/spaces%2F-LrNFlfuifzmQ_NMKu9C%2Favatar.png?alt=media",prefix:"akash",unit:"AKT",host:"akash.ping.pub"},{hash:"5fa15123f559583ed7465023",api:"V4",chainId:"crypto-org-chain-mainnet-1",name:"Crypto",lcd:"https://mainnet.crypto.org:1317",rpc:"https://mainnet.crypto.org:26657",logo:"/static/chains/cosmoshub.svg",prefix:"crocncl",unit:"BASECRO"}],Testnet:[{hash:"5eabf1d1b8eb6314e2d99264",api:"V1",chainId:"iovns-galaxynet",name:"iovns",lcd:"http://iovnscli-rest-api.cluster-galaxynet.iov.one",rpc:"https://rpc.cluster-galaxynet.iov.one/",logo:"/static/chains/cosmoshub.svg",prefix:"cosmos",unit:"ATOM"}]}},"949e":function(e,t,n){var o=n("bb0f");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var r=n("499e").default;r("5d7afbf8",o,!0,{sourceMap:!1,shadowMode:!1})},"94ca":function(e
2021-04-10 08:09:21 +00:00
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
2021-04-14 07:36:49 +00:00
var o=n("1fb5"),r=n("9152"),i=n("e3db");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function l(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(l()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t),e.__proto__=c.prototype):(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(e,t,n);if("number"===typeof e){if("string"===typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return d(this,e,t,n)}function d(e,t,n,o){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?g(e,t,n,o):"string"===typeof t?h(e,t,n):m(e,t)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t,n,o){return u(t),t<=0?s(e,t):void 0!==n?"string"===typeof o?s(e,t).fill(n,o):s(e,t).fill(n):s(e,t)}function f(e,t){if(u(t),e=s(e,t<0?0:0|_(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t,n){if("string"===typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var o=0|x(t,n);e=s(e,o);var r=e.write(t,n);return r!==o&&(e=e.slice(0,r)),e}function b(e,t){var n=t.length<0?0:0|_(t.length);e=s(e,n);for(var o=0;o<n;o+=1)e[o]=255&t[o];return e}function g(e,t,n,o){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,n):new Uint8Array(t,n,o),c.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=c.prototype):e=b(e,t),e}function m(e,t){if(c.isBuffer(t)){var n=0|_(t.length);return e=s(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!==typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!==typeof t.length||te(t.length)?s(e,0):b(e,t);if("Buffer"===t.type&&i(t.data))return b(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function _(e){if(e>=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|e}function v(e){return+e!=e&&(e=0),c.alloc(+e)}function x(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(o)return Z(e).length;t=(""+t).toLowerCase(),o=!0}}function w(e,t,n){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return j(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function k(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function y(e,t,n,o,r){if(0===e.length)return-1;if("string"===typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"===typeof t&&(t=c.from(t,o)),c.isBuffer(t))retu