www.55576138.com Open in urlscan Pro
2405:1c0:6314:322:105a:5ec8:ad98:931  Public Scan

Submitted URL: http://www.55576138.com:9900/cl/js/ubauthsdk.min.js
Effective URL: https://www.55576138.com:9900/cl/js/ubauthsdk.min.js
Submission: On May 04 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

(function(e){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=e()}else if(typeof define==="function"&&define.amd){define([],e)}else{var r;if(typeof window!=="undefined"){r=window}else if(typeof global!=="undefined"){r=global}else if(typeof self!=="undefined"){r=self}else{r=this}r.UBAuthSDK=e()}})(function(){var e,r,t;return function(){function c(o,f,a){function u(t,e){if(!f[t]){if(!o[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(s)return s(t,!0);var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}var i=f[t]={exports:{}};o[t][0].call(i.exports,function(e){var r=o[t][1][e];return u(r||e)},i,i.exports,c,o,f,a)}return f[t].exports}for(var s="function"==typeof require&&require,e=0;e<a.length;e++)u(a[e]);return u}return c}()({1:[function(e,r,t){r.exports=n;window.EventEmitter=n;function n(e){if(e)return i(e)}function i(e){for(var r in n.prototype){e[r]=n.prototype[r]}return e}n.prototype.on=n.prototype.addEventListener=function(e,r){this._callbacks=this._callbacks||{};(this._callbacks[e]=this._callbacks[e]||[]).push(r);return this};n.prototype.once=function(e,r){var t=this;this._callbacks=this._callbacks||{};function n(){t.off(e,n);r.apply(this,arguments)}n.fn=r;this.on(e,n);return this};n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(e,r){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var t=this._callbacks[e];if(!t)return this;if(1==arguments.length){delete this._callbacks[e];return this}var n;for(var i=0;i<t.length;i++){n=t[i];if(n===r||n.fn===r){t.splice(i,1);break}}return this};n.prototype.emit=function(e){this._callbacks=this._callbacks||{};var r=[].slice.call(arguments,1),t=this._callbacks[e];if(t){t=t.slice(0);for(var n=0,i=t.length;n<i;++n){t[n].apply(this,r)}}return this};n.prototype.listeners=function(e){this._callbacks=this._callbacks||{};return this._callbacks[e]||[]};n.prototype.hasListeners=function(e){return!!this.listeners(e).length}},{}],2:[function(e,r,t){var n=e("./emitter");t.Emitter=n;var i=e("./protobuf");t.Protobuf=i;var o=e("./protocol");t.Protocol=o;var f=e("./pomelo-client");t.Pomelo=f;var a=e("./ubauth");t.UBAuth=a},{"./emitter":1,"./pomelo-client":3,"./protobuf":4,"./protocol":5,"./ubauth":6}],3:[function(e,K,r){(function(){var e="js-websocket";var r="0.0.1";var a=window.Protocol;var u=a.Package;var s=a.Message;var t=window.EventEmitter;if(typeof window!="undefined"&&typeof sys!="undefined"&&sys.localStorage){window.localStorage=sys.localStorage}var n=200;var i=500;var o=501;if(typeof Object.create!=="function"){Object.create=function(e){function r(){}r.prototype=e;return new r}}var f=window;var c=Object.create(t.prototype);f.bbauth=c;var l=null;var h=0;var p={};var v={};var d={};var y=0;var g=0;var w=0;var b=100;var E=null;var m=null;var A=null;var _=null;var T=null;var I;var B={sys:{type:e,version:r},user:{}};var S=null;c.init=function(e,r){S=r;B.user=e.user;A=e.handshakeCallback;if(e.url){k(e.url,r)}else{console.log("ERROR : Param url = ",e.url)}};var U=function(e){var r=e.match(/^(wss|ws|http|https|ftp)?(?:[\:\/]*)([a-z0-9\.-]*)(?:\:([0-9]+))?(\/[^?#]*)?(?:\?([^#]*))?(?:#(.*))?$/i);var t=new Object;t["protocol"]="";t["host"]=r[2];t["port"]="";t["path"]="";t["query"]="";t["fragment"]="";if(r[1]){t["protocol"]=r[1]}if(r[3]){t["port"]=r[3]}if(r[4]){t["path"]=r[4]}if(r[5]){t["query"]=r[5]}if(r[6]){t["fragment"]=r[6]}return t};var k=function(e,r){var t=function(e){var r=u.encode(u.TYPE_HANDSHAKE,a.strencode(JSON.stringify(B)));R(r)};var n=function(e){M(u.decode(e.data),r);if(g){w=Date.now()+g}};var i=function(e){c.emit("io-error",e);console.log("socket error: ",e)};var o=function(e){c.emit("close",e);c.emit("disconnect",e);console.log("socket close: ",e)};l=new WebSocket(e);l.binaryType="arraybuffer";l.onopen=t;l.onmessage=n;l.onerror=i;l.onclose=o};c.disconnect=function(){if(l){if(l.disconnect)l.disconnect();if(l.close)l.close();console.log("disconnect");l=null}if(E){clearTimeout(E);E=null}if(m){clearTimeout(m);m=null}};c.request=function(e,r,t){if(arguments.length===2&&typeof r==="function"){t=r;r={}}else{r=r||{}}e=e||r.route;if(!e){return}h++;P(h,e,r);p[h]=t;d[h]=e};c.notify=function(e,r){r=r||{};P(0,e,r)};var P=function(e,r,t){var n=e?s.TYPE_REQUEST:s.TYPE_NOTIFY;var i=!!c.data.protos?c.data.protos.client:{};if(!!i[r]){t=protobuf.encode(r,t)}else{t=a.strencode(JSON.stringify(t))}var o=0;if(c.dict&&c.dict[r]){r=c.dict[r];o=1}t=s.encode(e,n,o,r,t);var f=u.encode(u.TYPE_DATA,t);R(f)};var R=function(e){l.send(e.buffer)};var C={};var L=function(e){if(!y){return}var r=u.encode(u.TYPE_HEARTBEAT);if(m){clearTimeout(m);m=null}if(E){return}E=setTimeout(function(){E=null;R(r);w=Date.now()+g;m=setTimeout(x,g)},y)};var x=function(){var e=w-Date.now();if(e>b){m=setTimeout(x,e)}else{console.log("server heartbeat timeout");c.emit("heartbeat timeout");c.disconnect()}};var O=function(e){e=JSON.parse(a.strdecode(e));if(e.code===o){c.emit("error","client version not fullfill");return}if(e.code!==n){c.emit("error","handshake fail");return}j(e);var r=u.encode(u.TYPE_HANDSHAKE_ACK);R(r);if(S){S(l);S=null}};var Y=function(e){var r=s.decode(e);if(r.id>0){r.route=d[r.id];delete d[r.id];if(!r.route){return}}r.body=F(r);D(c,r)};var N=function(e){e=JSON.parse(a.strdecode(e));c.emit("onKick",e)};v[u.TYPE_HANDSHAKE]=O;v[u.TYPE_HEARTBEAT]=L;v[u.TYPE_DATA]=Y;v[u.TYPE_KICK]=N;var M=function(e){if(Array.isArray(e)){for(var r=0;r<e.length;r++){var t=e[r];v[t.type](t.body)}}else{v[e.type](e.body)}};var D=function(e,r){if(!r.id){e.emit(r.route,r.body)}var t=p[r.id];delete p[r.id];if(typeof t!=="function"){return}t(r.body);return};var H=function(e,r){for(var t=0,n=r.length;t<n;t++){D(e,r[t])}};var F=function(e){var r=!!c.data.protos?c.data.protos.server:{};var t=c.data.abbrs;var n=e.route;if(e.compressRoute){if(!t[n]){return{}}n=e.route=t[n]}if(!!r[n]){return protobuf.decode(n,e.body)}else{return JSON.parse(a.strdecode(e.body))}return e};var j=function(e){if(e.sys&&e.sys.heartbeat){y=e.sys.heartbeat*1e3;g=y*2}else{y=0;g=0}q(e);if(typeof A==="function"){A(e.user)}};var q=function(e){if(!e||!e.sys){return}c.data=c.data||{};var r=e.sys.dict;var t=e.sys.protos;if(r){c.data.dict=r;c.data.abbrs={};for(var n in r){c.data.abbrs[r[n]]=n}}if(t){c.data.protos={server:t.server||{},client:t.client||{}};if(!!protobuf){protobuf.init({encoderProtos:t.client,decoderProtos:t.server})}}};K.exports=c})()},{}],4:[function(e,n,r){(function(e,r){var t=e;t.init=function(e){t.encoder.init(e.encoderProtos);t.decoder.init(e.decoderProtos)};t.encode=function(e,r){return t.encoder.encode(e,r)};t.decode=function(e,r){return t.decoder.decode(e,r)};n.exports=t;if(typeof window!="undefined"){window.protobuf=t}})(typeof window=="undefined"?n.exports:this.protobuf={},this);(function(e,r){var t=e.constants={};t.TYPES={uInt32:0,sInt32:0,int32:0,double:1,string:2,message:2,float:5}})("undefined"!==typeof protobuf?protobuf:n.exports,this);(function(e,r){var t=e.util={};t.isSimpleType=function(e){return e==="uInt32"||e==="sInt32"||e==="int32"||e==="uInt64"||e==="sInt64"||e==="float"||e==="double"}})("undefined"!==typeof protobuf?protobuf:n.exports,this);(function(e,r){var t=e.codec={};var n=new ArrayBuffer(8);var i=new Float32Array(n);var o=new Float64Array(n);var f=new Uint8Array(n);t.encodeUInt32=function(e){var e=parseInt(e);if(isNaN(e)||e<0){return null}var r=[];do{var t=e%128;var n=Math.floor(e/128);if(n!==0){t=t+128}r.push(t);e=n}while(e!==0);return r};t.encodeSInt32=function(e){var e=parseInt(e);if(isNaN(e)){return null}e=e<0?Math.abs(e)*2-1:e*2;return t.encodeUInt32(e)};t.decodeUInt32=function(e){var r=0;for(var t=0;t<e.length;t++){var n=parseInt(e[t]);r=r+(n&127)*Math.pow(2,7*t);if(n<128){return r}}return r};t.decodeSInt32=function(e){var r=this.decodeUInt32(e);var t=r%2===1?-1:1;r=(r%2+r)/2*t;return r};t.encodeFloat=function(e){i[0]=e;return f};t.decodeFloat=function(e,r){if(!e||e.length<r+4){return null}for(var t=0;t<4;t++){f[t]=e[r+t]}return i[0]};t.encodeDouble=function(e){o[0]=e;return f.subarray(0,8)};t.decodeDouble=function(e,r){if(!e||e.length<8+r){return null}for(var t=0;t<8;t++){f[t]=e[r+t]}return o[0]};t.encodeStr=function(e,r,t){for(var n=0;n<t.length;n++){var i=t.charCodeAt(n);var o=a(i);for(var f=0;f<o.length;f++){e[r]=o[f];r++}}return r};t.decodeStr=function(e,r,t){var n=[];var i=r+t;while(r<i){var o=0;if(e[r]<128){o=e[r];r+=1}else if(e[r]<224){o=((e[r]&63)<<6)+(e[r+1]&63);r+=2}else{o=((e[r]&15)<<12)+((e[r+1]&63)<<6)+(e[r+2]&63);r+=3}n.push(o)}var f="";for(var a=0;a<n.length;){f+=String.fromCharCode.apply(null,n.slice(a,a+1e4));a+=1e4}return f};t.byteLength=function(e){if(typeof e!=="string"){return-1}var r=0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);r+=u(n)}return r};function a(e){if(e<=127){return[e]}else if(e<=2047){return[192|e>>6,128|e&63]}else{return[224|e>>12,128|(e&4032)>>6,128|e&63]}}function u(e){if(e<=127){return 1}else if(e<=2047){return 2}else{return 3}}})("undefined"!==typeof protobuf?protobuf:n.exports,this);(function(e,r){var t=e;var n=e.encoder={};var u=t.codec;var i=t.constants;var f=t.util;n.init=function(e){this.protos=e||{}};n.encode=function(e,r){var t=this.protos[e];if(!a(r,t)){return null}var n=u.byteLength(JSON.stringify(r));var i=new ArrayBuffer(n);var o=new Uint8Array(i);var f=0;if(!!t){f=s(o,f,t,r);if(f>0){return o.subarray(0,f)}}return null};function a(e,r){if(!r){return false}for(var t in r){var n=r[t];switch(n.option){case"required":if(typeof e[t]==="undefined"){return false}case"optional":if(typeof e[t]!=="undefined"){if(!!r.__messages[n.type]){a(e[t],r.__messages[n.type])}}break;case"repeated":if(!!e[t]&&!!r.__messages[n.type]){for(var i=0;i<e[t].length;i++){if(!a(e[t][i],r.__messages[n.type])){return false}}}break}}return true}function s(e,r,t,n){for(var i in n){if(!!t[i]){var o=t[i];switch(o.option){case"required":case"optional":r=h(e,r,p(o.type,o.tag));r=c(n[i],o.type,r,e,t);break;case"repeated":if(n[i].length>0){r=l(n[i],o,r,e,t)}break}}}return r}function c(e,r,t,n,i){switch(r){case"uInt32":t=h(n,t,u.encodeUInt32(e));break;case"int32":case"sInt32":t=h(n,t,u.encodeSInt32(e));break;case"float":h(n,t,u.encodeFloat(e));t+=4;break;case"double":h(n,t,u.encodeDouble(e));t+=8;break;case"string":var o=u.byteLength(e);t=h(n,t,u.encodeUInt32(o));u.encodeStr(n,t,e);t+=o;break;default:if(!!i.__messages[r]){var f=new ArrayBuffer(u.byteLength(JSON.stringify(e)));var o=0;o=s(f,o,i.__messages[r],e);t=h(n,t,u.encodeUInt32(o));for(var a=0;a<o;a++){n[t]=f[a];t++}}break}return t}function l(e,r,t,n,i){var o=0;if(f.isSimpleType(r.type)){t=h(n,t,p(r.type,r.tag));t=h(n,t,u.encodeUInt32(e.length));for(o=0;o<e.length;o++){t=c(e[o],r.type,t,n)}}else{for(o=0;o<e.length;o++){t=h(n,t,p(r.type,r.tag));t=c(e[o],r.type,t,n,i)}}return t}function h(e,r,t){for(var n=0;n<t.length;n++,r++){e[r]=t[n]}return r}function p(e,r){var t=i.TYPES[e]||2;return u.encodeUInt32(r<<3|t)}})("undefined"!==typeof protobuf?protobuf:n.exports,this);(function(e,r){var t=e;var n=e.decoder={};var a=t.codec;var o=t.util;var u;var s=0;n.init=function(e){this.protos=e||{}};n.setProtos=function(e){if(!!e){this.protos=e}};n.decode=function(e,r){var t=this.protos[e];u=r;s=0;if(!!t){return c({},t,u.length)}return null};function c(e,r,t){while(s<t){var n=l();var i=n.type;var o=n.tag;var f=r.__tags[o];switch(r[f].option){case"optional":case"required":e[f]=h(r[f].type,r);break;case"repeated":if(!e[f]){e[f]=[]}p(e[f],r[f].type,r);break}}return e}function i(e,r){return!r.__tags[f().tag]}function l(){var e=a.decodeUInt32(v());return{type:e&7,tag:e>>3}}function f(){var e=a.decodeUInt32(d());return{type:e&7,tag:e>>3}}function h(e,r){switch(e){case"uInt32":return a.decodeUInt32(v());case"int32":case"sInt32":return a.decodeSInt32(v());case"float":var t=a.decodeFloat(u,s);s+=4;return t;case"double":var n=a.decodeDouble(u,s);s+=8;return n;case"string":var i=a.decodeUInt32(v());var o=a.decodeStr(u,s,i);s+=i;return o;default:if(!!r&&!!r.__messages[e]){var i=a.decodeUInt32(v());var f={};c(f,r.__messages[e],s+i);return f}break}}function p(e,r,t){if(o.isSimpleType(r)){var n=a.decodeUInt32(v());for(var i=0;i<n;i++){e.push(h(r))}}else{e.push(h(r,t))}}function v(e){var r=[];var t=s;e=e||false;var n;do{n=u[t];r.push(n);t++}while(n>=128);if(!e){s=t}return r}function d(){return v(true)}})("undefined"!==typeof protobuf?protobuf:n.exports,this)},{}],5:[function(e,a,r){(function(e){(function(e,v,r){var d=e;var o=4;var s=1;var c=2;var t=5;var l=1;var i=65535;var y=1;var g=7;var n=d.Package={};var f=d.Message={};n.TYPE_HANDSHAKE=1;n.TYPE_HANDSHAKE_ACK=2;n.TYPE_HEARTBEAT=3;n.TYPE_DATA=4;n.TYPE_KICK=5;f.TYPE_REQUEST=0;f.TYPE_NOTIFY=1;f.TYPE_RESPONSE=2;f.TYPE_PUSH=3;d.strencode=function(e){var r=new v(e.length*3);var t=0;for(var n=0;n<e.length;n++){var i=e.charCodeAt(n);var o=null;if(i<=127){o=[i]}else if(i<=2047){o=[192|i>>6,128|i&63]}else{o=[224|i>>12,128|(i&4032)>>6,128|i&63]}for(var f=0;f<o.length;f++){r[t]=o[f];++t}}var a=new v(t);w(a,0,r,0,t);return a};d.strdecode=function(e){var r=new v(e);var t=[];var n=0;var i=0;var o=r.length;while(n<o){if(r[n]<128){i=r[n];n+=1}else if(r[n]<224){i=((r[n]&63)<<6)+(r[n+1]&63);n+=2}else{i=((r[n]&15)<<12)+((r[n+1]&63)<<6)+(r[n+2]&63);n+=3}t.push(i)}return String.fromCharCode.apply(null,t)};n.encode=function(e,r){var t=r?r.length:0;var n=new v(o+t);var i=0;n[i++]=e&255;n[i++]=t>>16&255;n[i++]=t>>8&255;n[i++]=t&255;if(r){w(n,i,r,0,t)}return n};n.decode=function(e){var r=0;var t=new v(e);var n=0;var i=[];while(r<t.length){var o=t[r++];n=(t[r++]<<16|t[r++]<<8|t[r++])>>>0;var f=n?new v(n):null;w(f,0,t,r,n);r+=n;i.push({type:o,body:f})}return i.length===1?i[0]:i};f.encode=function(e,r,t,n,i){var o=b(r)?h(e):0;var f=s+o;if(E(r)){if(t){if(typeof n!=="number"){throw new Error("error flag for number route!")}f+=c}else{f+=l;if(n){n=d.strencode(n);if(n.length>255){throw new Error("route maxlength is overflow")}f+=n.length}}}if(i){f+=i.length}var a=new v(f);var u=0;u=p(r,t,a,u);if(b(r)){u=m(e,a,u)}if(E(r)){u=A(t,n,a,u)}if(i){u=_(i,a,u)}return a};f.decode=function(e){var r=new v(e);var t=r.length||r.byteLength;var n=0;var i=0;var o=null;var f=r[n++];var a=f&y;var u=f>>1&g;if(b(u)){var s=parseInt(r[n]);var c=0;do{var s=parseInt(r[n]);i=i+(s&127)*Math.pow(2,7*c);n++;c++}while(s>=128)}if(E(u)){if(a){o=r[n++]<<8|r[n++]}else{var l=r[n++];if(l){o=new v(l);w(o,0,r,n,l);o=d.strdecode(o)}else{o=""}n+=l}}var h=t-n;var p=new v(h);w(p,0,r,n,h);return{id:i,type:u,compressRoute:a,route:o,body:p}};var w=function(e,r,t,n,i){if("function"===typeof t.copy){t.copy(e,r,n,n+i)}else{for(var o=0;o<i;o++){e[r++]=t[n++]}}};var b=function(e){return e===f.TYPE_REQUEST||e===f.TYPE_RESPONSE};var E=function(e){return e===f.TYPE_REQUEST||e===f.TYPE_NOTIFY||e===f.TYPE_PUSH};var h=function(e){var r=0;do{r+=1;e>>=7}while(e>0);return r};var p=function(e,r,t,n){if(e!==f.TYPE_REQUEST&&e!==f.TYPE_NOTIFY&&e!==f.TYPE_RESPONSE&&e!==f.TYPE_PUSH){throw new Error("unkonw message type: "+e)}t[n]=e<<1|(r?1:0);return n+s};var m=function(e,r,t){do{var n=e%128;var i=Math.floor(e/128);if(i!==0){n=n+128}r[t++]=n;e=i}while(e!==0);return t};var A=function(e,r,t,n){if(e){if(r>i){throw new Error("route number is overflow")}t[n++]=r>>8&255;t[n++]=r&255}else{if(r){t[n++]=r.length&255;w(t,n,r,0,r.length);n+=r.length}else{t[n++]=0}}return n};var _=function(e,r,t){w(r,t,e,0,e.length);return t+e.length};a.exports=d;if(typeof window!="undefined"){window.Protocol=d}})(typeof window=="undefined"?a.exports:this.Protocol={},typeof window=="undefined"?e:Uint8Array,this)}).call(this,e("buffer").Buffer)},{buffer:8}],6:[function(e,t,n){(function(){var e=n;function c(e,r,t){if(t.indexOf("wss")!=-1){var n="wss://"+e}else{var n="ws://"+e}if(r){n+=":"+r}return n}function r(e,r,t,n,i,o,f,a,u,s){url=c(e,r,u);bbauth.init({url:url,log:true},function(){var e="connector.entryHandler.autheeEntry";bbauth.request(e,{uid:t,type:"AUTHEE",msg:n,serviceid:i,servicename:o,deviceid:f,token:a},s)})}e.init=function(e,r,t,n,i,o,f,a){bbauth.init({url:e,log:true},function(){var e="connector.entryHandler.autheeEntry";bbauth.request(e,{uid:r,type:"AUTHEE",msg:t,serviceid:n,servicename:i,deviceid:o,token:f},a)})};e.listen=function(e,r){bbauth.on(e,r)};e.reject=function(e,r,t,n,i,o){bbauth.request("authserver.authHandler.reject",{uid:e,serviceid:r,deviceid:t,authee_sid:n,serverid:i},o)};e.auth=function(e,r,t,n,i,o,f){bbauth.request("authserver.authHandler.auth",{uid:e,serviceid:r,deviceid:t,authee_sid:n,token:i,serverid:o},f)};e.disconnect=function(){bbauth.disconnect()};e.off=function(){bbauth.off()};t.exports=e;if(typeof window!="undefined"){window.BBauthFunc=e}})()},{}],7:[function(e,r,t){"use strict";t.byteLength=f;t.toByteArray=a;t.fromByteArray=d;var u=[];var s=[];var c=typeof Uint8Array!=="undefined"?Uint8Array:Array;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,o=n.length;i<o;++i){u[i]=n[i];s[n.charCodeAt(i)]=i}s["-".charCodeAt(0)]=62;s["_".charCodeAt(0)]=63;function l(e){var r=e.length;if(r%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}var t=e.indexOf("=");if(t===-1)t=r;var n=t===r?0:4-t%4;return[t,n]}function f(e){var r=l(e);var t=r[0];var n=r[1];return(t+n)*3/4-n}function h(e,r,t){return(r+t)*3/4-t}function a(e){var r;var t=l(e);var n=t[0];var i=t[1];var o=new c(h(e,n,i));var f=0;var a=i>0?n-4:n;for(var u=0;u<a;u+=4){r=s[e.charCodeAt(u)]<<18|s[e.charCodeAt(u+1)]<<12|s[e.charCodeAt(u+2)]<<6|s[e.charCodeAt(u+3)];o[f++]=r>>16&255;o[f++]=r>>8&255;o[f++]=r&255}if(i===2){r=s[e.charCodeAt(u)]<<2|s[e.charCodeAt(u+1)]>>4;o[f++]=r&255}if(i===1){r=s[e.charCodeAt(u)]<<10|s[e.charCodeAt(u+1)]<<4|s[e.charCodeAt(u+2)]>>2;o[f++]=r>>8&255;o[f++]=r&255}return o}function p(e){return u[e>>18&63]+u[e>>12&63]+u[e>>6&63]+u[e&63]}function v(e,r,t){var n;var i=[];for(var o=r;o<t;o+=3){n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(e[o+2]&255);i.push(p(n))}return i.join("")}function d(e){var r;var t=e.length;var n=t%3;var i=[];var o=16383;for(var f=0,a=t-n;f<a;f+=o){i.push(v(e,f,f+o>a?a:f+o))}if(n===1){r=e[t-1];i.push(u[r>>2]+u[r<<4&63]+"==")}else if(n===2){r=(e[t-2]<<8)+e[t-1];i.push(u[r>>10]+u[r>>4&63]+u[r<<2&63]+"=")}return i.join("")}},{}],8:[function(X,e,Z){(function(h){"use strict";var n=X("base64-js");var o=X("ieee754");Z.Buffer=h;Z.SlowBuffer=r;Z.INSPECT_MAX_BYTES=50;var t=2147483647;Z.kMaxLength=t;h.TYPED_ARRAY_SUPPORT=e();if(!h.TYPED_ARRAY_SUPPORT&&typeof console!=="undefined"&&typeof console.error==="function"){console.error("This browser lacks typed array (Uint8Array) support which is required by "+"`buffer` v5.x. Use `buffer` v4.x if you require old browser support.")}function e(){try{var e=new Uint8Array(1);e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return e.foo()===42}catch(e){return false}}Object.defineProperty(h.prototype,"parent",{enumerable:true,get:function(){if(!h.isBuffer(this))return undefined;return this.buffer}});Object.defineProperty(h.prototype,"offset",{enumerable:true,get:function(){if(!h.isBuffer(this))return undefined;return this.byteOffset}});function f(e){if(e>t){throw new RangeError('The value "'+e+'" is invalid for option "size"')}var r=new Uint8Array(e);r.__proto__=h.prototype;return r}function h(e,r,t){if(typeof e==="number"){if(typeof r==="string"){throw new TypeError('The "string" argument must be of type string. Received type number')}return s(e)}return i(e,r,t)}if(typeof Symbol!=="undefined"&&Symbol.species!=null&&h[Symbol.species]===h){Object.defineProperty(h,Symbol.species,{value:null,configurable:true,enumerable:false,writable:false})}h.poolSize=8192;function i(e,r,t){if(typeof e==="string"){return c(e,r)}if(ArrayBuffer.isView(e)){return l(e)}if(e==null){throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, "+"or Array-like Object. Received type "+typeof e)}if(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer)){return p(e,r,t)}if(typeof e==="number"){throw new TypeError('The "value" argument must not be of type number. Received type number')}var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e){return h.from(n,r,t)}var i=v(e);if(i)return i;if(typeof Symbol!=="undefined"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==="function"){return h.from(e[Symbol.toPrimitive]("string"),r,t)}throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, "+"or Array-like Object. Received type "+typeof e)}h.from=function(e,r,t){return i(e,r,t)};h.prototype.__proto__=Uint8Array.prototype;h.__proto__=Uint8Array;function a(e){if(typeof e!=="number"){throw new TypeError('"size" argument must be of type number')}else if(e<0){throw new RangeError('The value "'+e+'" is invalid for option "size"')}}function u(e,r,t){a(e);if(e<=0){return f(e)}if(r!==undefined){return typeof t==="string"?f(e).fill(r,t):f(e).fill(r)}return f(e)}h.alloc=function(e,r,t){return u(e,r,t)};function s(e){a(e);return f(e<0?0:d(e)|0)}h.allocUnsafe=function(e){return s(e)};h.allocUnsafeSlow=function(e){return s(e)};function c(e,r){if(typeof r!=="string"||r===""){r="utf8"}if(!h.isEncoding(r)){throw new TypeError("Unknown encoding: "+r)}var t=y(e,r)|0;var n=f(t);var i=n.write(e,r);if(i!==t){n=n.slice(0,i)}return n}function l(e){var r=e.length<0?0:d(e.length)|0;var t=f(r);for(var n=0;n<r;n+=1){t[n]=e[n]&255}return t}function p(e,r,t){if(r<0||e.byteLength<r){throw new RangeError('"offset" is outside of buffer bounds')}if(e.byteLength<r+(t||0)){throw new RangeError('"length" is outside of buffer bounds')}var n;if(r===undefined&&t===undefined){n=new Uint8Array(e)}else if(t===undefined){n=new Uint8Array(e,r)}else{n=new Uint8Array(e,r,t)}n.__proto__=h.prototype;return n}function v(e){if(h.isBuffer(e)){var r=d(e.length)|0;var t=f(r);if(t.length===0){return t}e.copy(t,0,0,r);return t}if(e.length!==undefined){if(typeof e.length!=="number"||V(e.length)){return f(0)}return l(e)}if(e.type==="Buffer"&&Array.isArray(e.data)){return l(e.data)}}function d(e){if(e>=t){throw new RangeError("Attempt to allocate Buffer larger than maximum "+"size: 0x"+t.toString(16)+" bytes")}return e|0}function r(e){if(+e!=e){e=0}return h.alloc(+e)}h.isBuffer=function e(r){return r!=null&&r._isBuffer===true&&r!==h.prototype};h.compare=function e(r,t){if(W(r,Uint8Array))r=h.from(r,r.offset,r.byteLength);if(W(t,Uint8Array))t=h.from(t,t.offset,t.byteLength);if(!h.isBuffer(r)||!h.isBuffer(t)){throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array')}if(r===t)return 0;var n=r.length;var i=t.length;for(var o=0,f=Math.min(n,i);o<f;++o){if(r[o]!==t[o]){n=r[o];i=t[o];break}}if(n<i)return-1;if(i<n)return 1;return 0};h.isEncoding=function e(r){switch(String(r).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};h.concat=function e(r,t){if(!Array.isArray(r)){throw new TypeError('"list" argument must be an Array of Buffers')}if(r.length===0){return h.alloc(0)}var n;if(t===undefined){t=0;for(n=0;n<r.length;++n){t+=r[n].length}}var i=h.allocUnsafe(t);var o=0;for(n=0;n<r.length;++n){var f=r[n];if(W(f,Uint8Array)){f=h.from(f)}if(!h.isBuffer(f)){throw new TypeError('"list" argument must be an Array of Buffers')}f.copy(i,o);o+=f.length}return i};function y(e,r){if(h.isBuffer(e)){return e.length}if(ArrayBuffer.isView(e)||W(e,ArrayBuffer)){return e.byteLength}if(typeof e!=="string"){throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. '+"Received type "+typeof e)}var t=e.length;var n=arguments.length>2&&arguments[2]===true;if(!n&&t===0)return 0;var i=false;for(;;){switch(r){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return J(e).length;default:if(i){return n?-1:q(e).length}r=(""+r).toLowerCase();i=true}}}h.byteLength=y;function g(e,r,t){var n=false;if(r===undefined||r<0){r=0}if(r>this.length){return""}if(t===undefined||t>this.length){t=this.length}if(t<=0){return""}t>>>=0;r>>>=0;if(t<=r){return""}if(!e)e="utf8";while(true){switch(e){case"hex":return L(this,r,t);case"utf8":case"utf-8":return U(this,r,t);case"ascii":return R(this,r,t);case"latin1":case"binary":return C(this,r,t);case"base64":return S(this,r,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,r,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();n=true}}}h.prototype._isBuffer=true;function w(e,r,t){var n=e[r];e[r]=e[t];e[t]=n}h.prototype.swap16=function e(){var r=this.length;if(r%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(var t=0;t<r;t+=2){w(this,t,t+1)}return this};h.prototype.swap32=function e(){var r=this.length;if(r%4!==0){throw new RangeError("Buffer size must be a multiple of 32-bits")}for(var t=0;t<r;t+=4){w(this,t,t+3);w(this,t+1,t+2)}return this};h.prototype.swap64=function e(){var r=this.length;if(r%8!==0){throw new RangeError("Buffer size must be a multiple of 64-bits")}for(var t=0;t<r;t+=8){w(this,t,t+7);w(this,t+1,t+6);w(this,t+2,t+5);w(this,t+3,t+4)}return this};h.prototype.toString=function e(){var r=this.length;if(r===0)return"";if(arguments.length===0)return U(this,0,r);return g.apply(this,arguments)};h.prototype.toLocaleString=h.prototype.toString;h.prototype.equals=function e(r){if(!h.isBuffer(r))throw new TypeError("Argument must be a Buffer");if(this===r)return true;return h.compare(this,r)===0};h.prototype.inspect=function e(){var r="";var t=Z.INSPECT_MAX_BYTES;r=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim();if(this.length>t)r+=" ... ";return"<Buffer "+r+">"};h.prototype.compare=function e(r,t,n,i,o){if(W(r,Uint8Array)){r=h.from(r,r.offset,r.byteLength)}if(!h.isBuffer(r)){throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. '+"Received type "+typeof r)}if(t===undefined){t=0}if(n===undefined){n=r?r.length:0}if(i===undefined){i=0}if(o===undefined){o=this.length}if(t<0||n>r.length||i<0||o>this.length){throw new RangeError("out of range index")}if(i>=o&&t>=n){return 0}if(i>=o){return-1}if(t>=n){return 1}t>>>=0;n>>>=0;i>>>=0;o>>>=0;if(this===r)return 0;var f=o-i;var a=n-t;var u=Math.min(f,a);var s=this.slice(i,o);var c=r.slice(t,n);for(var l=0;l<u;++l){if(s[l]!==c[l]){f=s[l];a=c[l];break}}if(f<a)return-1;if(a<f)return 1;return 0};function b(e,r,t,n,i){if(e.length===0)return-1;if(typeof t==="string"){n=t;t=0}else if(t>2147483647){t=2147483647}else if(t<-2147483648){t=-2147483648}t=+t;if(V(t)){t=i?0:e.length-1}if(t<0)t=e.length+t;if(t>=e.length){if(i)return-1;else t=e.length-1}else if(t<0){if(i)t=0;else return-1}if(typeof r==="string"){r=h.from(r,n)}if(h.isBuffer(r)){if(r.length===0){return-1}return E(e,r,t,n,i)}else if(typeof r==="number"){r=r&255;if(typeof Uint8Array.prototype.indexOf==="function"){if(i){return Uint8Array.prototype.indexOf.call(e,r,t)}else{return Uint8Array.prototype.lastIndexOf.call(e,r,t)}}return E(e,[r],t,n,i)}throw new TypeError("val must be string, number or Buffer")}function E(e,r,t,n,i){var o=1;var f=e.length;var a=r.length;if(n!==undefined){n=String(n).toLowerCase();if(n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le"){if(e.length<2||r.length<2){return-1}o=2;f/=2;a/=2;t/=2}}function u(e,r){if(o===1){return e[r]}else{return e.readUInt16BE(r*o)}}var s;if(i){var c=-1;for(s=t;s<f;s++){if(u(e,s)===u(r,c===-1?0:s-c)){if(c===-1)c=s;if(s-c+1===a)return c*o}else{if(c!==-1)s-=s-c;c=-1}}}else{if(t+a>f)t=f-a;for(s=t;s>=0;s--){var l=true;for(var h=0;h<a;h++){if(u(e,s+h)!==u(r,h)){l=false;break}}if(l)return s}}return-1}h.prototype.includes=function e(r,t,n){return this.indexOf(r,t,n)!==-1};h.prototype.indexOf=function e(r,t,n){return b(this,r,t,n,true)};h.prototype.lastIndexOf=function e(r,t,n){return b(this,r,t,n,false)};function m(e,r,t,n){t=Number(t)||0;var i=e.length-t;if(!n){n=i}else{n=Number(n);if(n>i){n=i}}var o=r.length;if(n>o/2){n=o/2}for(var f=0;f<n;++f){var a=parseInt(r.substr(f*2,2),16);if(V(a))return f;e[t+f]=a}return f}function A(e,r,t,n){return Q(q(r,e.length-t),e,t,n)}function _(e,r,t,n){return Q(K(r),e,t,n)}function T(e,r,t,n){return _(e,r,t,n)}function I(e,r,t,n){return Q(J(r),e,t,n)}function B(e,r,t,n){return Q(z(r,e.length-t),e,t,n)}h.prototype.write=function e(r,t,n,i){if(t===undefined){i="utf8";n=this.length;t=0}else if(n===undefined&&typeof t==="string"){i=t;n=this.length;t=0}else if(isFinite(t)){t=t>>>0;if(isFinite(n)){n=n>>>0;if(i===undefined)i="utf8"}else{i=n;n=undefined}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}var o=this.length-t;if(n===undefined||n>o)n=o;if(r.length>0&&(n<0||t<0)||t>this.length){throw new RangeError("Attempt to write outside buffer bounds")}if(!i)i="utf8";var f=false;for(;;){switch(i){case"hex":return m(this,r,t,n);case"utf8":case"utf-8":return A(this,r,t,n);case"ascii":return _(this,r,t,n);case"latin1":case"binary":return T(this,r,t,n);case"base64":return I(this,r,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,r,t,n);default:if(f)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase();f=true}}};h.prototype.toJSON=function e(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(e,r,t){if(r===0&&t===e.length){return n.fromByteArray(e)}else{return n.fromByteArray(e.slice(r,t))}}function U(e,r,t){t=Math.min(e.length,t);var n=[];var i=r;while(i<t){var o=e[i];var f=null;var a=o>239?4:o>223?3:o>191?2:1;if(i+a<=t){var u,s,c,l;switch(a){case 1:if(o<128){f=o}break;case 2:u=e[i+1];if((u&192)===128){l=(o&31)<<6|u&63;if(l>127){f=l}}break;case 3:u=e[i+1];s=e[i+2];if((u&192)===128&&(s&192)===128){l=(o&15)<<12|(u&63)<<6|s&63;if(l>2047&&(l<55296||l>57343)){f=l}}break;case 4:u=e[i+1];s=e[i+2];c=e[i+3];if((u&192)===128&&(s&192)===128&&(c&192)===128){l=(o&15)<<18|(u&63)<<12|(s&63)<<6|c&63;if(l>65535&&l<1114112){f=l}}}}if(f===null){f=65533;a=1}else if(f>65535){f-=65536;n.push(f>>>10&1023|55296);f=56320|f&1023}n.push(f);i+=a}return P(n)}var k=4096;function P(e){var r=e.length;if(r<=k){return String.fromCharCode.apply(String,e)}var t="";var n=0;while(n<r){t+=String.fromCharCode.apply(String,e.slice(n,n+=k))}return t}function R(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i){n+=String.fromCharCode(e[i]&127)}return n}function C(e,r,t){var n="";t=Math.min(e.length,t);for(var i=r;i<t;++i){n+=String.fromCharCode(e[i])}return n}function L(e,r,t){var n=e.length;if(!r||r<0)r=0;if(!t||t<0||t>n)t=n;var i="";for(var o=r;o<t;++o){i+=j(e[o])}return i}function x(e,r,t){var n=e.slice(r,t);var i="";for(var o=0;o<n.length;o+=2){i+=String.fromCharCode(n[o]+n[o+1]*256)}return i}h.prototype.slice=function e(r,t){var n=this.length;r=~~r;t=t===undefined?n:~~t;if(r<0){r+=n;if(r<0)r=0}else if(r>n){r=n}if(t<0){t+=n;if(t<0)t=0}else if(t>n){t=n}if(t<r)t=r;var i=this.subarray(r,t);i.__proto__=h.prototype;return i};function O(e,r,t){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+r>t)throw new RangeError("Trying to access beyond buffer length")}h.prototype.readUIntLE=function e(r,t,n){r=r>>>0;t=t>>>0;if(!n)O(r,t,this.length);var i=this[r];var o=1;var f=0;while(++f<t&&(o*=256)){i+=this[r+f]*o}return i};h.prototype.readUIntBE=function e(r,t,n){r=r>>>0;t=t>>>0;if(!n){O(r,t,this.length)}var i=this[r+--t];var o=1;while(t>0&&(o*=256)){i+=this[r+--t]*o}return i};h.prototype.readUInt8=function e(r,t){r=r>>>0;if(!t)O(r,1,this.length);return this[r]};h.prototype.readUInt16LE=function e(r,t){r=r>>>0;if(!t)O(r,2,this.length);return this[r]|this[r+1]<<8};h.prototype.readUInt16BE=function e(r,t){r=r>>>0;if(!t)O(r,2,this.length);return this[r]<<8|this[r+1]};h.prototype.readUInt32LE=function e(r,t){r=r>>>0;if(!t)O(r,4,this.length);return(this[r]|this[r+1]<<8|this[r+2]<<16)+this[r+3]*16777216};h.prototype.readUInt32BE=function e(r,t){r=r>>>0;if(!t)O(r,4,this.length);return this[r]*16777216+(this[r+1]<<16|this[r+2]<<8|this[r+3])};h.prototype.readIntLE=function e(r,t,n){r=r>>>0;t=t>>>0;if(!n)O(r,t,this.length);var i=this[r];var o=1;var f=0;while(++f<t&&(o*=256)){i+=this[r+f]*o}o*=128;if(i>=o)i-=Math.pow(2,8*t);return i};h.prototype.readIntBE=function e(r,t,n){r=r>>>0;t=t>>>0;if(!n)O(r,t,this.length);var i=t;var o=1;var f=this[r+--i];while(i>0&&(o*=256)){f+=this[r+--i]*o}o*=128;if(f>=o)f-=Math.pow(2,8*t);return f};h.prototype.readInt8=function e(r,t){r=r>>>0;if(!t)O(r,1,this.length);if(!(this[r]&128))return this[r];return(255-this[r]+1)*-1};h.prototype.readInt16LE=function e(r,t){r=r>>>0;if(!t)O(r,2,this.length);var n=this[r]|this[r+1]<<8;return n&32768?n|4294901760:n};h.prototype.readInt16BE=function e(r,t){r=r>>>0;if(!t)O(r,2,this.length);var n=this[r+1]|this[r]<<8;return n&32768?n|4294901760:n};h.prototype.readInt32LE=function e(r,t){r=r>>>0;if(!t)O(r,4,this.length);return this[r]|this[r+1]<<8|this[r+2]<<16|this[r+3]<<24};h.prototype.readInt32BE=function e(r,t){r=r>>>0;if(!t)O(r,4,this.length);return this[r]<<24|this[r+1]<<16|this[r+2]<<8|this[r+3]};h.prototype.readFloatLE=function e(r,t){r=r>>>0;if(!t)O(r,4,this.length);return o.read(this,r,true,23,4)};h.prototype.readFloatBE=function e(r,t){r=r>>>0;if(!t)O(r,4,this.length);return o.read(this,r,false,23,4)};h.prototype.readDoubleLE=function e(r,t){r=r>>>0;if(!t)O(r,8,this.length);return o.read(this,r,true,52,8)};h.prototype.readDoubleBE=function e(r,t){r=r>>>0;if(!t)O(r,8,this.length);return o.read(this,r,false,52,8)};function Y(e,r,t,n,i,o){if(!h.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(t+n>e.length)throw new RangeError("Index out of range")}h.prototype.writeUIntLE=function e(r,t,n,i){r=+r;t=t>>>0;n=n>>>0;if(!i){var o=Math.pow(2,8*n)-1;Y(this,r,t,n,o,0)}var f=1;var a=0;this[t]=r&255;while(++a<n&&(f*=256)){this[t+a]=r/f&255}return t+n};h.prototype.writeUIntBE=function e(r,t,n,i){r=+r;t=t>>>0;n=n>>>0;if(!i){var o=Math.pow(2,8*n)-1;Y(this,r,t,n,o,0)}var f=n-1;var a=1;this[t+f]=r&255;while(--f>=0&&(a*=256)){this[t+f]=r/a&255}return t+n};h.prototype.writeUInt8=function e(r,t,n){r=+r;t=t>>>0;if(!n)Y(this,r,t,1,255,0);this[t]=r&255;return t+1};h.prototype.writeUInt16LE=function e(r,t,n){r=+r;t=t>>>0;if(!n)Y(this,r,t,2,65535,0);this[t]=r&255;this[t+1]=r>>>8;return t+2};h.prototype.writeUInt16BE=function e(r,t,n){r=+r;t=t>>>0;if(!n)Y(this,r,t,2,65535,0);this[t]=r>>>8;this[t+1]=r&255;return t+2};h.prototype.writeUInt32LE=function e(r,t,n){r=+r;t=t>>>0;if(!n)Y(this,r,t,4,4294967295,0);this[t+3]=r>>>24;this[t+2]=r>>>16;this[t+1]=r>>>8;this[t]=r&255;return t+4};h.prototype.writeUInt32BE=function e(r,t,n){r=+r;t=t>>>0;if(!n)Y(this,r,t,4,4294967295,0);this[t]=r>>>24;this[t+1]=r>>>16;this[t+2]=r>>>8;this[t+3]=r&255;return t+4};h.prototype.writeIntLE=function e(r,t,n,i){r=+r;t=t>>>0;if(!i){var o=Math.pow(2,8*n-1);Y(this,r,t,n,o-1,-o)}var f=0;var a=1;var u=0;this[t]=r&255;while(++f<n&&(a*=256)){if(r<0&&u===0&&this[t+f-1]!==0){u=1}this[t+f]=(r/a>>0)-u&255}return t+n};h.prototype.writeIntBE=function e(r,t,n,i){r=+r;t=t>>>0;if(!i){var o=Math.pow(2,8*n-1);Y(this,r,t,n,o-1,-o)}var f=n-1;var a=1;var u=0;this[t+f]=r&255;while(--f>=0&&(a*=256)){if(r<0&&u===0&&this[t+f+1]!==0){u=1}this[t+f]=(r/a>>0)-u&255}return t+n};h.prototype.writeInt8=function e(r,t,n){r=+r;t=t>>>0;if(!n)Y(this,r,t,1,127,-128);if(r<0)r=255+r+1;this[t]=r&255;return t+1};h.prototype.writeInt16LE=function e(r,t,n){r=+r;t=t>>>0;if(!n)Y(this,r,t,2,32767,-32768);this[t]=r&255;this[t+1]=r>>>8;return t+2};h.prototype.writeInt16BE=function e(r,t,n){r=+r;t=t>>>0;if(!n)Y(this,r,t,2,32767,-32768);this[t]=r>>>8;this[t+1]=r&255;return t+2};h.prototype.writeInt32LE=function e(r,t,n){r=+r;t=t>>>0;if(!n)Y(this,r,t,4,2147483647,-2147483648);this[t]=r&255;this[t+1]=r>>>8;this[t+2]=r>>>16;this[t+3]=r>>>24;return t+4};h.prototype.writeInt32BE=function e(r,t,n){r=+r;t=t>>>0;if(!n)Y(this,r,t,4,2147483647,-2147483648);if(r<0)r=4294967295+r+1;this[t]=r>>>24;this[t+1]=r>>>16;this[t+2]=r>>>8;this[t+3]=r&255;return t+4};function N(e,r,t,n,i,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function M(e,r,t,n,i){r=+r;t=t>>>0;if(!i){N(e,r,t,4,34028234663852886e22,-34028234663852886e22)}o.write(e,r,t,n,23,4);return t+4}h.prototype.writeFloatLE=function e(r,t,n){return M(this,r,t,true,n)};h.prototype.writeFloatBE=function e(r,t,n){return M(this,r,t,false,n)};function D(e,r,t,n,i){r=+r;t=t>>>0;if(!i){N(e,r,t,8,17976931348623157e292,-17976931348623157e292)}o.write(e,r,t,n,52,8);return t+8}h.prototype.writeDoubleLE=function e(r,t,n){return D(this,r,t,true,n)};h.prototype.writeDoubleBE=function e(r,t,n){return D(this,r,t,false,n)};h.prototype.copy=function e(r,t,n,i){if(!h.isBuffer(r))throw new TypeError("argument should be a Buffer");if(!n)n=0;if(!i&&i!==0)i=this.length;if(t>=r.length)t=r.length;if(!t)t=0;if(i>0&&i<n)i=n;if(i===n)return 0;if(r.length===0||this.length===0)return 0;if(t<0){throw new RangeError("targetStart out of bounds")}if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");if(i>this.length)i=this.length;if(r.length-t<i-n){i=r.length-t+n}var o=i-n;if(this===r&&typeof Uint8Array.prototype.copyWithin==="function"){this.copyWithin(t,n,i)}else if(this===r&&n<t&&t<i){for(var f=o-1;f>=0;--f){r[f+t]=this[f+n]}}else{Uint8Array.prototype.set.call(r,this.subarray(n,i),t)}return o};h.prototype.fill=function e(r,t,n,i){if(typeof r==="string"){if(typeof t==="string"){i=t;t=0;n=this.length}else if(typeof n==="string"){i=n;n=this.length}if(i!==undefined&&typeof i!=="string"){throw new TypeError("encoding must be a string")}if(typeof i==="string"&&!h.isEncoding(i)){throw new TypeError("Unknown encoding: "+i)}if(r.length===1){var o=r.charCodeAt(0);if(i==="utf8"&&o<128||i==="latin1"){r=o}}}else if(typeof r==="number"){r=r&255}if(t<0||this.length<t||this.length<n){throw new RangeError("Out of range index")}if(n<=t){return this}t=t>>>0;n=n===undefined?this.length:n>>>0;if(!r)r=0;var f;if(typeof r==="number"){for(f=t;f<n;++f){this[f]=r}}else{var a=h.isBuffer(r)?r:h.from(r,i);var u=a.length;if(u===0){throw new TypeError('The value "'+r+'" is invalid for argument "value"')}for(f=0;f<n-t;++f){this[f+t]=a[f%u]}}return this};var H=/[^+/0-9A-Za-z-_]/g;function F(e){e=e.split("=")[0];e=e.trim().replace(H,"");if(e.length<2)return"";while(e.length%4!==0){e=e+"="}return e}function j(e){if(e<16)return"0"+e.toString(16);return e.toString(16)}function q(e,r){r=r||Infinity;var t;var n=e.length;var i=null;var o=[];for(var f=0;f<n;++f){t=e.charCodeAt(f);if(t>55295&&t<57344){if(!i){if(t>56319){if((r-=3)>-1)o.push(239,191,189);continue}else if(f+1===n){if((r-=3)>-1)o.push(239,191,189);continue}i=t;continue}if(t<56320){if((r-=3)>-1)o.push(239,191,189);i=t;continue}t=(i-55296<<10|t-56320)+65536}else if(i){if((r-=3)>-1)o.push(239,191,189)}i=null;if(t<128){if((r-=1)<0)break;o.push(t)}else if(t<2048){if((r-=2)<0)break;o.push(t>>6|192,t&63|128)}else if(t<65536){if((r-=3)<0)break;o.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((r-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else{throw new Error("Invalid code point")}}return o}function K(e){var r=[];for(var t=0;t<e.length;++t){r.push(e.charCodeAt(t)&255)}return r}function z(e,r){var t,n,i;var o=[];for(var f=0;f<e.length;++f){if((r-=2)<0)break;t=e.charCodeAt(f);n=t>>8;i=t%256;o.push(i);o.push(n)}return o}function J(e){return n.toByteArray(F(e))}function Q(e,r,t,n){for(var i=0;i<n;++i){if(i+t>=r.length||i>=e.length)break;r[i+t]=e[i]}return i}function W(e,r){return e instanceof r||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===r.name}function V(e){return e!==e}}).call(this,X("buffer").Buffer)},{"base64-js":7,buffer:8,ieee754:9}],9:[function(e,r,t){t.read=function(e,r,t,n,i){var o,f;var a=i*8-n-1;var u=(1<<a)-1;var s=u>>1;var c=-7;var l=t?i-1:0;var h=t?-1:1;var p=e[r+l];l+=h;o=p&(1<<-c)-1;p>>=-c;c+=a;for(;c>0;o=o*256+e[r+l],l+=h,c-=8){}f=o&(1<<-c)-1;o>>=-c;c+=n;for(;c>0;f=f*256+e[r+l],l+=h,c-=8){}if(o===0){o=1-s}else if(o===u){return f?NaN:(p?-1:1)*Infinity}else{f=f+Math.pow(2,n);o=o-s}return(p?-1:1)*f*Math.pow(2,o-n)};t.write=function(e,r,t,n,i,o){var f,a,u;var s=o*8-i-1;var c=(1<<s)-1;var l=c>>1;var h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0;var p=n?0:o-1;var v=n?1:-1;var d=r<0||r===0&&1/r<0?1:0;r=Math.abs(r);if(isNaN(r)||r===Infinity){a=isNaN(r)?1:0;f=c}else{f=Math.floor(Math.log(r)/Math.LN2);if(r*(u=Math.pow(2,-f))<1){f--;u*=2}if(f+l>=1){r+=h/u}else{r+=h*Math.pow(2,1-l)}if(r*u>=2){f++;u/=2}if(f+l>=c){a=0;f=c}else if(f+l>=1){a=(r*u-1)*Math.pow(2,i);f=f+l}else{a=r*Math.pow(2,l-1)*Math.pow(2,i);f=0}}for(;i>=8;e[t+p]=a&255,p+=v,a/=256,i-=8){}f=f<<i|a;s+=i;for(;s>0;e[t+p]=f&255,p+=v,f/=256,s-=8){}e[t+p-v]|=d*128}},{}]},{},[2])(2)});