!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).QNIM={})}(this,(function(exports){"use strict";var version="1.0.5",__assign=function(){return(__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var floo3_0_0={exports:{}},coreIM=(function(module,exports){var ca;ca=function(){return da=[function(e,t,n){e.exports=n(304)},function(e,t,n){for(var r=n(144),o=n(53),i=n(25),s=n(5),a=n(17),u=n(43),c=(n=n(2))("iterator"),f=n("toStringTag"),l=u.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=o(d),h=0;h>>=0)&&e<256)&&(r=s[e])?r:(n=c(e,(0|e)<0?-1:0,!0),o&&(s[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=i[e])?r:(n=c(e,e<0?-1:0,!1),o&&(i[e]=n),n)}function u(e,t){if(isNaN(e))return t?v:m;if(t){if(e<0)return v;if(h<=e)return S}else{if(e<=-g)return E;if(g<=e+1)return C}return e<0?u(-e,t).neg():c(e%p|0,e/p|0,t)}function c(e,t,n){return new r(e,t,n)}r.fromInt=a,r.fromNumber=u,r.fromBits=c;var f=Math.pow;function l(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return m;if(t="number"==typeof t?(n=t,!1):!!t,(n=n||10)<2||36>>0:this.low},k.toNumber=function(){return this.unsigned?(this.high>>>0)*p+(this.low>>>0):this.high*p+(this.low>>>0)},k.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((o=s).isZero())return a+i;for(;a.length<6;)a="0"+a;i=""+a+i}},k.getHighBits=function(){return this.high},k.getHighBitsUnsigned=function(){return this.high>>>0},k.getLowBits=function(){return this.low},k.getLowBitsUnsigned=function(){return this.low>>>0},k.getNumBitsAbs=function(){if(this.isNegative())return this.eq(E)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;0>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},k.eq=k.equals,k.notEquals=function(e){return!this.eq(e)},k.neq=k.notEquals,k.ne=k.notEquals,k.lessThan=function(e){return this.comp(e)<0},k.lt=k.lessThan,k.lessThanOrEqual=function(e){return this.comp(e)<=0},k.lte=k.lessThanOrEqual,k.le=k.lessThanOrEqual,k.greaterThan=function(e){return 0>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},k.comp=k.compare,k.negate=function(){return!this.unsigned&&this.eq(E)?E:this.not().add(b)},k.neg=k.negate,k.add=function(e){o(e)||(e=d(e));var t=this.high>>>16,n=65535&this.high,r=this.low>>>16,i=65535&this.low,s=e.high>>>16,a=65535&e.high,u=e.low>>>16,f=0,l=0,p=0,h=0;return l+=(p=p+((h+=i+(65535&e.low))>>>16)+(r+u))>>>16,c((p&=65535)<<16|(h&=65535),((f+=(l+=n+a)>>>16)+(t+s)&65535)<<16|(l&=65535),this.unsigned)},k.subtract=function(e){return o(e)||(e=d(e)),this.add(e.neg())},k.sub=k.subtract,k.multiply=function(e){if(this.isZero())return m;if(o(e)||(e=d(e)),n)return c(n.mul(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned);if(e.isZero())return m;if(this.eq(E))return e.isOdd()?E:m;if(e.eq(E))return this.isOdd()?E:m;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(y)&&e.lt(y))return u(this.toNumber()*e.toNumber(),this.unsigned);var t=this.high>>>16,r=65535&this.high,i=this.low>>>16,s=65535&this.low,a=e.high>>>16,f=65535&e.high,l=e.low>>>16,p=0,h=0,g=0,v=(v=0)+((h=h+((g+=s*(e=65535&e.low))>>>16)+i*e)>>>16)+((h=(65535&h)+s*l)>>>16);return c((h&=65535)<<16|(g&=65535),((p+=(v+=r*e)>>>16)+((v=(65535&v)+i*l)>>>16)+((v=(65535&v)+s*f)>>>16)+(t*e+r*l+i*f+s*a)&65535)<<16|(v&=65535),this.unsigned)},k.mul=k.multiply,k.divide=function(e){if((e=o(e)?e:d(e)).isZero())throw Error("division by zero");var t,r;if(n)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?c((this.unsigned?n.div_u:n.div_s)(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?v:m;if(this.unsigned){if((e=e.unsigned?e:e.toUnsigned()).gt(this))return v;if(e.gt(this.shru(1)))return w;r=v}else{if(this.eq(E))return e.eq(b)||e.eq(_)?E:e.eq(E)?b:(i=this.shr(1).div(e).shl(1)).eq(m)?e.isNegative()?b:_:(t=this.sub(e.mul(i)),i.add(t.div(e)));if(e.eq(E))return this.unsigned?v:m;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();r=m}for(t=this;t.gte(e);){for(var i=Math.max(1,Math.floor(t.toNumber()/e.toNumber())),s=Math.ceil(Math.log(i)/Math.LN2),a=s<=48?1:f(2,s-48),l=u(i),p=l.mul(e);p.isNegative()||p.gt(t);)p=(l=u(i-=a,this.unsigned)).mul(e);l.isZero()&&(l=b),r=r.add(l),t=t.sub(p)}return r},k.div=k.divide,k.modulo=function(e){return o(e)||(e=d(e)),n?c((this.unsigned?n.rem_u:n.rem_s)(this.low,this.high,e.low,e.high),n.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},k.mod=k.modulo,k.rem=k.modulo,k.not=function(){return c(~this.low,~this.high,this.unsigned)},k.and=function(e){return o(e)||(e=d(e)),c(this.low&e.low,this.high&e.high,this.unsigned)},k.or=function(e){return o(e)||(e=d(e)),c(this.low|e.low,this.high|e.high,this.unsigned)},k.xor=function(e){return o(e)||(e=d(e)),c(this.low^e.low,this.high^e.high,this.unsigned)},k.shiftLeft=function(e){return o(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low<>>32-e,this.unsigned):c(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):c(this.high>>e-32,0<=this.high?0:-1,this.unsigned)},k.shr=k.shiftRight,k.shiftRightUnsigned=function(e){if(o(e)&&(e=e.toInt()),0==(e&=63))return this;var t=this.high;return e<32?c(this.low>>>e|t<<32-e,t>>>e,this.unsigned):c(32===e?t:t>>>e-32,0,this.unsigned)},k.shru=k.shiftRightUnsigned,k.shr_u=k.shiftRightUnsigned,k.toSigned=function(){return this.unsigned?c(this.low,this.high,!1):this},k.toUnsigned=function(){return this.unsigned?this:c(this.low,this.high,!0)},k.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},k.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},k.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},r.fromBytes=function(e,t,n){return n?r.fromBytesLE(e,t):r.fromBytesBE(e,t)},r.fromBytesLE=function(e,t){return new r(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},r.fromBytesBE=function(e,t){return new r(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}},function(e,t){e.exports=function(e){return"object"==_typeof(e)?null!==e:"function"==typeof e}},function(e,t,n){function r(e,t,n){var c,f,l,d=e&r.F,p=e&r.G,h=e&r.P,g=e&r.B,y=p?o:e&r.S?o[t]||(o[t]={}):(o[t]||{}).prototype,m=p?i:i[t]||(i[t]={}),v=m.prototype||(m.prototype={});for(c in n=p?t:n)f=((l=!d&&y&&void 0!==y[c])?y:n)[c],l=g&&l?u(f,o):h&&"function"==typeof f?u(Function.call,f):f,y&&a(y,c,f,e&r.U),m[c]!=f&&s(m,c,l),h&&v[c]!=f&&(v[c]=f)}var o=n(5),i=n(40),s=n(17),a=n(25),u=n(31);o.core=i,r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,e.exports=r},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(8),o=n(42);e.exports=n(10)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(19),o=n(53);n(255)("keys",(function(){return function(e){return o(r(e))}}))},function(e,t,n){var r=n(29);e.exports=function(e){return Object(r(e))}},function(e,t){e=e.exports={version:"2.6.12"},"number"==typeof __e&&(__e=e)},function(e,t,n){(function(e){var r=t;function o(e,t,n){for(var r=Object.keys(t),o=0;oo&&(o=e.maxptime)})),0=e.length?{value:void 0,done:!0}:(e=r(e,t),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){function r(e){if(e){var t,n=e;for(t in r.prototype)n[t]=r.prototype[t];return n}}(e.exports=r).prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;ot)return!0;return!1},l.isReservedName=function(e,t){if(e)for(var n=0;ndocument.F=Object<\/script>"),e.close(),u=e.F;t--;)delete u.prototype[s[t]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(r.prototype=o(e),n=new r,r.prototype=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(24),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(40),o=n(5),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(41)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(25);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(31),o=n(15),i=n(19),s=n(138),a=n(90),u=n(11),c=n(224),f=n(91);o(o.S+o.F*!n(96)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,o,l,d=i(e),p=(e="function"==typeof this?this:Array,arguments.length),h=1=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function h(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;var n=(e="string"!=typeof e?""+e:e).length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return O(e).length;default:if(r)return R(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var o,i=!1;if((t=void 0===t||t<0?0:t)>this.length)return"";if((n=void 0===n||n>this.length?this.length:n)<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":var s=t,a=n,u=this.length;(!a||a<0||u=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(o?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i=1,s=e.length,a=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s/=i=2,a/=2,n/=2}function u(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o)for(var c=-1,f=n;f>>10&1023|55296),f=56320|1023&f),r.push(f),o+=l}var d=r,p=d.length;if(p<=4096)return String.fromCharCode.apply(String,d);for(var h="",g=0;ge.length)throw new RangeError("Index out of range")}function S(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function E(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function k(e,t,n,r){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function T(e,t,n,r,i){return i||k(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function x(e,t,n,r,i){return i||k(e,0,n,8),o.write(e,t,n,r,52,8),n+8}t.Buffer=u,t.SlowBuffer=function(e){return u.alloc(+(e=+e!=e?0:e))},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){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(e){return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return t=t,n=n,f(e=e),e<=0||void 0===t?a(null,e):"string"==typeof n?a(null,e).fill(t,n):a(null,e).fill(t)},u.allocUnsafe=function(e){return l(null,e)},u.allocUnsafeSlow=function(e){return l(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);on&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),(t=void 0===t?0:t)<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(o<=r&&n<=t)return 0;if(o<=r)return-1;if(n<=t)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(i,s),c=this.slice(r,o),f=e.slice(t,n),l=0;lthis.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var i,s,a,u,c=!1;;)switch(r){case"hex":var f=e,l=t,d=n,p=(l=Number(l)||0,this.length-l);if((!d||(d=Number(d))>p)&&(d=p),(p=f.length)%2!=0)throw new TypeError("Invalid hex string");p/2>8,o.push(n%256),o.push(r);return o}(e,this.length-s),this,s,i);default:if(c)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),c=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):n=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);for(var r=t,o=1,i=this[e+--r];0=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||_(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){return t||_(e,2,this.length),32768&(t=this[e]|this[e+1]<<8)?4294901760|t:t},u.prototype.readInt16BE=function(e,t){return t||_(e,2,this.length),32768&(t=this[e+1]|this[e]<<8)?4294901760|t:t},u.prototype.readInt32LE=function(e,t){return t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||_(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||_(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||_(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||_(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||C(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i>>8):S(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):S(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):E(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):E(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){e=+e,t|=0,r||C(this,e,t,n,(r=Math.pow(2,8*n-1))-1,-r);var o=0,i=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){e=+e,t|=0,r||C(this,e,t,n,(r=Math.pow(2,8*n-1))-1,-r);var o=n-1,i=1,s=0;for(this[t+o]=255&e;0<=--o&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&(e=e<0?255+e+1:e),t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):S(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):S(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):E(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):E(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return T(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return T(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return x(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return x(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n=n||0,r||0===r||(r=this.length),t>=e.length&&(t=e.length),(r=0=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var o,i=(r=e.length-t>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(e=e||0))for(a=t;a>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function O(e){return r.toByteArray(function(e){if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(A,"")).length<2)return"";for(var t;e.length%4!=0;)e+="=";return e}(e))}function N(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(153))},function(e,t,n){var r=n(240),o=n(105);e.exports=function(e){var t=e.xdomain,n=e.xscheme,i=e.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!t||r))return new XMLHttpRequest}catch(e){}try{if("undefined"!=typeof XDomainRequest&&!n&&i)return new XDomainRequest}catch(e){}if(!t)try{return new(o[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}},function(e,t){e.exports="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")()},function(e,t,n){var r=n(46);function o(e){this.path=e.path,this.hostname=e.hostname,this.port=e.port,this.secure=e.secure,this.query=e.query,this.timestampParam=e.timestampParam,this.timestampRequests=e.timestampRequests,this.readyState="",this.agent=e.agent||!1,this.socket=e.socket,this.enablesXDR=e.enablesXDR,this.withCredentials=e.withCredentials,this.pfx=e.pfx,this.key=e.key,this.passphrase=e.passphrase,this.cert=e.cert,this.ca=e.ca,this.ciphers=e.ciphers,this.rejectUnauthorized=e.rejectUnauthorized,this.forceNode=e.forceNode,this.isReactNative=e.isReactNative,this.extraHeaders=e.extraHeaders,this.localAddress=e.localAddress}n(45)((e.exports=o).prototype),o.prototype.onError=function(e,t){return(e=new Error(e)).type="TransportError",e.description=t,this.emit("error",e),this},o.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},o.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},o.prototype.send=function(e){if("open"!==this.readyState)throw new Error("Transport not open");this.write(e)},o.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},o.prototype.onData=function(e){e=r.decodePacket(e,this.socket.binaryType),this.onPacket(e)},o.prototype.onPacket=function(e){this.emit("packet",e)},o.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(e,t,n){(function(t){var r=n(6),o=n(261),i=n(165),s=n(166),a={"Content-Type":"application/x-www-form-urlencoded"};function u(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,f={transitional:s,adapter:c="undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t)?n(167):c,transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return u(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();if(r.isObject(e)||t&&"application/json"===t["Content-Type"]){u(t,"application/json");var n=e;if(r.isString(n))try{return(0,JSON.parse)(n),r.trim(n)}catch(n){if("SyntaxError"!==n.name)throw n}return(0,JSON.stringify)(n)}return e}],transformResponse:[function(e){var t=(n=this.transitional||f.transitional)&&n.silentJSONParsing,n=n&&n.forcedJSONParsing;if((t=!t&&"json"===this.responseType)||n&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(t){if("SyntaxError"===e.name)throw i(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return 200<=e&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){f.headers[e]=r.merge(a)})),e.exports=f}).call(this,n(72))},function(e,t,n){var r=n(9);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(36),o=n(7).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(36);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(20),o=n(7),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(56)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){t.f=n(12)},function(e,t,n){var r=n(7),o=n(20),i=n(56),s=n(112),a=n(35).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=!i&&r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:s.f(e)})}},function(e,t,n){var r=n(174),o=n(118);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;127>>7;t[n++]=e.lo}function y(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}l.create=d(),l.alloc=function(e){return new o.Array(e)},o.Array!==Array&&(l.alloc=o.pool(l.alloc,o.Array.prototype.subarray)),l.prototype._push=function(e,t,n){return this.tail=this.tail.next=new u(e,t,n),this.len+=t,this},(h.prototype=Object.create(u.prototype)).fn=function(e,t,n){for(;127>>=7;t[n]=e},l.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new h((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},l.prototype.int32=function(e){return e<0?this._push(g,10,i.fromNumber(e)):this.uint32(e)},l.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},l.prototype.int64=l.prototype.uint64=function(e){return e=i.from(e),this._push(g,e.length(),e)},l.prototype.sint64=function(e){return e=i.from(e).zzEncode(),this._push(g,e.length(),e)},l.prototype.bool=function(e){return this._push(p,1,e?1:0)},l.prototype.sfixed32=l.prototype.fixed32=function(e){return this._push(y,4,e>>>0)},l.prototype.sfixed64=l.prototype.fixed64=function(e){return e=i.from(e),this._push(y,4,e.lo)._push(y,4,e.hi)},l.prototype.float=function(e){return this._push(o.float.writeFloatLE,4,e)},l.prototype.double=function(e){return this._push(o.float.writeDoubleLE,8,e)};var m=o.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r>>0;return n?(o.isString(e)&&(t=l.alloc(n=s.length(e)),s.decode(e,t,0),e=t),this.uint32(n)._push(m,n,e)):this._push(p,1,0)},l.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(p,1,0)},l.prototype.fork=function(){return this.states=new f(this),this.head=this.tail=new u(c,0,0),this.len=0,this},l.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(c,0,0),this.len=0),this},l.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},l.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},l._configure=function(e){r=e,l.create=d(),r._configure()}},function(e,t,n){e.exports=u;var r,o=n(21),i=o.LongBits,s=o.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}function c(){return o.Buffer?function(e){return(u.create=function(e){return o.Buffer.isBuffer(e)?new r(e):l(e)})(e)}:l}var f,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")};function d(){var e=new i(0,0),t=0;if(!(4=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,4>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function p(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw a(this,8);return new i(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}u.create=c(),u.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,u.prototype.uint32=(f=4294967295,function(){if(f=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return f;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return f}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return p(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|p(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw a(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){r=e,u.create=c(),r._configure();var t=o.Long?"toLong":"toNumber";o.merge(u.prototype,{int64:function(){return d.call(this)[t](!1)},uint64:function(){return d.call(this)[t](!0)},sint64:function(){return d.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},function(e,t,n){e.exports=o;var r=n(21);function o(e){if(e)for(var t=Object.keys(e),n=0;n")})),d=(r=(n=/(?:)/).exec,n.exec=function(){return r.apply(this,arguments)},2===(n="ab".split(n)).length&&"a"===n[0]&&"b"===n[1]);e.exports=function(e,t,n){var r,p,h=u(e),g=!s((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),y=g?!s((function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[f]=function(){return n}),n[h](""),!t})):void 0;g&&y&&("replace"!==e||l)&&("split"!==e||d)||(r=/./[h],n=(y=n(a,h,""[e],(function(e,t,n,o,i){return t.exec===c?g&&!i?{done:!0,value:r.call(t,n,o)}:{done:!0,value:e.call(n,t,o)}:{done:!1}})))[0],p=y[1],o(String.prototype,e,n),i(RegExp.prototype,h,2==t?function(e,t){return p.call(e,this,t)}:function(e){return p.call(e,this)}))}},function(e,t,n){var r=n(9),o=n(19),i=n(11),s=n(24),a=n(123),u=n(124),c=Math.max,f=Math.min,l=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(126)("replace",2,(function(e,t,n,h){return[function(r,o){var i=e(this),s=null==r?void 0:r[t];return void 0!==s?s.call(r,i,o):n.call(String(i),r,o)},function(e,t){var g=h(n,e,this,t);if(g.done)return g.value;var y,m=r(e),v=String(this),b="function"==typeof t,w=(b||(t=String(t)),m.global);w&&(y=m.unicode,m.lastIndex=0);for(var _=[];;){if(null===(T=u(m,v)))break;if(_.push(T),!w)break;""===String(T[0])&&(m.lastIndex=a(v,i(m.lastIndex),y))}for(var C,S="",E=0,k=0;k<_.length;k++){for(var T=_[k],x=String(T[0]),A=c(f(s(T.index),v.length),0),R=[],O=1;Ou;)r(a,n=t[u++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r=n(63);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(31),o=n(138),i=n(90),s=n(9),a=n(11),u=n(91),c={},f={};(t=e.exports=function(e,t,n,l,d){d=d?function(){return e}:u(e);var p,h,g,y,m=r(n,l,t?2:1),v=0;if("function"!=typeof d)throw TypeError(e+" is not iterable!");if(i(d)){for(p=a(e.length);v=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){for(var r,o=n(5),i=n(17),s=(n=n(30))("typed_array"),a=n("view"),u=n=!(!o.ArrayBuffer||!o.DataView),c=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");c<9;)(r=o[f[c++]])?(i(r.prototype,s,!0),i(r.prototype,a,!0)):u=!1;e.exports={ABV:n,CONSTR:u,TYPED:s,VIEW:a}},function(e,t,n){var r=n(24),o=n(11);e.exports=function(e){if(void 0===e)return 0;e=r(e);var t=o(e);if(e!==t)throw RangeError("Wrong length!");return t}},function(e,t,n){var r=n(19),o=n(64),i=n(11);e.exports=function(e){for(var t,n=r(this),s=i(n.length),a=o(1<(t=arguments.length)?arguments[1]:void 0,s),u=void 0===(t=2=this._reconnectionAttempts?(c("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1):(e=this.backoff.duration(),c("will wait %dms before reconnect attempt",e),this.reconnecting=!0,t=setTimeout((function(){n.skipReconnect||(c("attempting reconnect"),n.emitAll("reconnect_attempt",n.backoff.attempts),n.emitAll("reconnecting",n.backoff.attempts),n.skipReconnect||n.open((function(e){e?(c("reconnect attempt error"),n.reconnecting=!1,n.reconnect(),n.emitAll("reconnect_error",e.data)):(c("reconnect success"),n.onreconnect())})))}),e),this.subs.push({destroy:function(){clearTimeout(t)}}))},p.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,n){var r=n(104),o=n(241),i=n(250);n=n(251);t.polling=function(e){var t,n,s=!1,a=!1,u=!1!==e.jsonp;if("undefined"!=typeof location&&(t="https:"===location.protocol,n=(n=location.port)||(t?443:80),s=e.hostname!==location.hostname||n!==e.port,a=e.secure!==t),e.xdomain=s,e.xscheme=a,"open"in new r(e)&&!e.forceJSONP)return new o(e);if(!u)throw new Error("JSONP disabled");return new i(e)},t.websocket=n},function(e,t,n){var r=n(106),o=n(73),i=n(46),s=n(74),a=n(158),u=n(75)("engine.io-client:polling"),c=(e.exports=f,null!=new(n(104))({xdomain:!1}).responseType);function f(e){var t=e&&e.forceBase64;c&&!t||(this.supportsBinary=!1),r.call(this,e)}s(f,r),f.prototype.name="polling",f.prototype.doOpen=function(){this.poll()},f.prototype.pause=function(e){var t,n=this;function r(){u("paused"),n.readyState="paused",e()}this.readyState="pausing",this.polling||!this.writable?(t=0,this.polling&&(u("we are currently polling - waiting to pause"),t++,this.once("pollComplete",(function(){u("pre-pause polling complete"),--t||r()}))),this.writable||(u("we are currently writing - waiting to pause"),t++,this.once("drain",(function(){u("pre-pause writing complete"),--t||r()})))):r()},f.prototype.poll=function(){u("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},f.prototype.onData=function(e){var t=this;u("polling got data %s",e),i.decodePayload(e,this.socket.binaryType,(function(e,n,r){if("opening"===t.readyState&&"open"===e.type&&t.onOpen(),"close"===e.type)return t.onClose(),!1;t.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():u('ignoring poll - transport state "%s"',this.readyState))},f.prototype.doClose=function(){var e=this;function t(){u("writing close packet"),e.write([{type:"close"}])}"open"===this.readyState?(u("transport open - closing"),t()):(u("transport not open - deferring close"),this.once("open",t))},f.prototype.write=function(e){function t(){n.writable=!0,n.emit("drain")}var n=this;this.writable=!1,i.encodePayload(e,this.supportsBinary,(function(e){n.doWrite(e,t)}))},f.prototype.uri=function(){var e=this.query||{},t=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(e[this.timestampParam]=a()),this.supportsBinary||e.sid||(e.b64=1),e=o.encode(e),this.port&&("https"==t&&443!==Number(this.port)||"http"==t&&80!==Number(this.port))&&(n=":"+this.port),e.length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+e}},function(e,t,n){(function(t){var r=n(243),o=Object.prototype.toString,i="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);e.exports=function e(n){if(!n||"object"!=_typeof(n))return!1;if(r(n)){for(var o=0,a=n.length;ou;)r(a,n=t[u++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r=n(116),o=Math.min;e.exports=function(e){return 0document.F=Object<\/script>"),e.close(),u=e.F;t--;)delete u.prototype[s[t]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(r.prototype=o(e),n=new r,r.prototype=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){n=n(7).document,e.exports=n&&n.documentElement},function(e,t,n){var r=n(174),o=n(118).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t){},function(e,t,n){var r=n(292)(!0);n(183)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e=this._t,t=this._i;return t>=e.length?{value:void 0,done:!0}:(e=r(e,t),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){function r(){return this}var o=n(56),i=n(55),s=n(173),a=n(34),u=n(58),c=n(293),f=n(83),l=n(294),d=n(12)("iterator"),p=!([].keys&&"next"in[].keys());e.exports=function(e,t,n,h,g,y,m){function v(e){if(!p&&e in E)return E[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}}c(n,t,h);h=t+" Iterator";var b,w,_,C="values"==g,S=!1,E=e.prototype,k=E[d]||E["@@iterator"]||g&&E[g],T=k||v(g),x=g?C?v("entries"):T:void 0,A="Array"==t&&E.entries||k;if(A&&(_=l(A.call(new e)))!==Object.prototype&&_.next&&(f(_,h,!0),o||"function"==typeof _[d]||a(_,d,r)),C&&k&&"values"!==k.name&&(S=!0,T=function(){return k.call(this)}),o&&!m||!p&&!S&&E[d]||a(E,d,T),u[t]=T,u[h]=r,g)if(b={values:C?T:v("values"),keys:y?T:v("keys"),entries:x},m)for(w in b)w in E||s(E,w,b[w]);else i(i.P+i.F*(p||S),t,b);return b}},function(e,t,n){n(295);for(var r=n(7),o=n(34),i=n(58),s=n(12)("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(","),u=0;ui[s]^n?1:-1;return e==t?0:t(r=e.length)){for(o=n,t-=r;--t;o+=n);e+=o}else tP?h.c=h.e=null:e.eP)h.c=h.e=null;else if(cP?e.c=e.e=null:n=g.length){if(!r)break e;for(;g.length<=p;g.push(0));d=h=0,u=(a%=14)-14+(o=1)}else{for(d=l=g[p],o=1;10<=l;l/=10,o++);h=(u=(a%=14)-14+o)<0?0:d/y[o-u-1]%10|0}if(r=r||t<0||null!=g[p+1]||(u<0?d:d%y[o-u-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):5P?e.c=e.e=null:e.e>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(d.push(u%1e14),c+=2);c=o/2}else{if(!crypto.randomBytes)throw D=!1,Error(a+"crypto unavailable");for(t=crypto.randomBytes(o*=7);cr;)d[a]=0,a||(++u,d=[1].concat(d));for(c=d.length;!d[--c];);for(g=0,e="";g<=c;e+=s.charAt(d[g++]));e=v(e,u,s.charAt(0))}return e},n=function(e,t,n,r,o){var i,a,u,f,l,p,h,g,y,m,v,b,w,_,C,S,E,k=e.s==t.s?1:-1,T=e.c,x=t.c;if(!(T&&T[0]&&x&&x[0]))return new B(e.s&&t.s&&(T?!x||T[0]!=x[0]:x)?T&&0==T[0]||!x?0*k:k/0:NaN);for(y=(g=new B(k)).c=[],k=n+(a=e.e-t.e)+1,o||(o=c,a=d(e.e/14)-d(t.e/14),k=k/14|0),u=0;x[u]==(T[u]||0);u++);if(x[u]>(T[u]||0)&&a--,k<0)y.push(1),f=!0;else{for(_=T.length,S=x.length,k+=2,1<(l=s(o/(x[u=0]+1)))&&(x=J(x,l,o),T=J(T,l,o),S=x.length,_=T.length),w=S,v=(m=T.slice(0,S)).length;v=o/2&&C++;do{if(l=0,(i=z(x,m,S,v))<0){if(b=m[0],S!=v&&(b=b*o+(m[1]||0)),1<(l=s(b/C)))for(h=(p=J(x,l=o<=l?o-1:l,o)).length,v=m.length;1==z(p,m,h,v);)l--,Y(p,Su&&(d.c.length=u):r&&(d=d.mod(t))}if(o){if(0===(o=s(o/2)))break;l=o%2}else if(H(e=e.times(n),e.e+1,1),14u&&(p.c.length=u):r&&(p=p.mod(t))}return r?d:(f&&(d=x.div(d)),t?d.mod(t):u?H(d,M,R,void 0):d)},T.integerValue=function(e){var t=new B(this);return null==e?e=R:g(e,0,8),H(t,t.e+1,e)},T.isEqualTo=T.eq=function(e,t){return 0===h(this,new B(e,t))},T.isFinite=function(){return!!this.c},T.isGreaterThan=T.gt=function(e,t){return 0this.c.length-2},T.isLessThan=T.lt=function(e,t){return h(this,new B(e,t))<0},T.isLessThanOrEqualTo=T.lte=function(e,t){return-1===(t=h(this,new B(e,t)))||0===t},T.isNaN=function(){return!this.s},T.isNegative=function(){return this.s<0},T.isPositive=function(){return 0n?this.e+1:n},T.shiftedBy=function(e){return g(e,-9007199254740991,9007199254740991),this.times("1e"+e)},T.squareRoot=T.sqrt=function(){var e,t,r,o,i,s=this.c,a=this.s,u=this.e,c=A+4,f=new B("0.5");if(1!==a||!s||!s[0])return new B(!a||a<0&&(!s||s[0])?NaN:s?this:1/0);if((r=0==(a=Math.sqrt(+W(this)))||a==1/0?(((t=p(s)).length+u)%2==0&&(t+="0"),a=Math.sqrt(+t),u=d((u+1)/2)-(u<0||u%2),new B(t=a==1/0?"5e"+u:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+u)):new B(a+"")).c[0])for((a=(u=r.e)+c)<3&&(a=0);;)if(i=r,r=f.times(i.plus(n(this,i,c,1))),p(i.c).slice(0,a)===(t=p(r.c)).slice(0,a)){if(r.et[o]?1:-1;break}return i}function Y(e,t,n,r){for(var o=0;n--;)e[n]-=o,o=e[n]n-1&&(null==s[o+1]&&(s[o+1]=0),s[o+1]+=s[o]/n|0,s[o]%=n)}return s.reverse()}}()).default=r.BigNumber=r,void 0===(n=function(){return r}.call(t,n,t,e))||(e.exports=n)},function(e,t,n){var r=n(15),o=n(100)(5),i=!0;"find"in[]&&Array(1).find((function(){i=!1})),r(r.P+r.F*i,"Array",{find:function(e){return o(this,e,1>>0,8|o.mapKey[u.keyType],u.keyType),void 0===l?t("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",c,d):t(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|l,f,d),t("}")("}")):u.repeated?(t("if(%s!=null&&%s.length){",d,d),u.packed&&void 0!==o.packed[f]?t("w.uint32(%i).fork()",(u.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",d)("w.%s(%s[i])",f,d)("w.ldelim()"):(t("for(var i=0;i<%s.length;++i)",d),void 0===l?s(t,u,c,d+"[i]"):t("w.uint32(%i).%s(%s[i])",(u.id<<3|l)>>>0,f,d)),t("}")):(u.optional&&t("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",d,u.name),void 0===l?s(t,u,c,d):t("w.uint32(%i).%s(%s)",(u.id<<3|l)>>>0,f,d))}return t("return w")};var r=n(22),o=n(60),i=n(3);function s(e,t,n,r){return t.resolvedType.group?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",n,r,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",n,r,(t.id<<3|2)>>>0)}},function(e,t,n){e.exports=v;var r=n(59),o=(((v.prototype=Object.create(r.prototype)).constructor=v).className="Type",n(22)),i=n(84),s=n(50),a=n(193),u=n(194),c=n(122),f=n(121),l=n(120),d=n(3),p=n(191),h=n(196),g=n(197),y=n(198),m=n(199);function v(e,t){r.call(this,e,t),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function b(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(v.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t>>3){");for(var n=0;n>>3){")("case 1: k=r.%s(); break",s.keyType)("case 2:"),void 0===o.basic[a]?t("value=types[%i].decode(r,r.uint32())",n):t("value=r.%s()",a),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==o.long[s.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',u):t("%s[k]=value",u)):s.repeated?(t("if(!(%s&&%s.length))",u,u)("%s=[]",u),void 0!==o.packed[a]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0",o,o);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",o,o);break;case"uint64":u=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",o,o,u)('else if(typeof d%s==="string")',o)("m%s=parseInt(d%s,10)",o,o)('else if(typeof d%s==="number")',o)("m%s=d%s",o,o)('else if(typeof d%s==="object")',o)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",o,o,o,u?"true":"");break;case"bytes":e('if(typeof d%s==="string")',o)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",o,o,o)("else if(d%s.length)",o)("m%s=d%s",o,o);break;case"string":e("m%s=String(d%s)",o,o);break;case"bool":e("m%s=Boolean(d%s)",o,o)}}return e}function s(e,t,n,o){if(t.resolvedType)t.resolvedType instanceof r?e("d%s=o.enums===String?types[%i].values[m%s]:m%s",o,n,o,o):e("d%s=types[%i].toObject(m%s,o)",o,n,o);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",o,o,o,o);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',o)("d%s=o.longs===String?String(m%s):m%s",o,o,o)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",o,o,o,o,i?"true":"",o);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",o,o,o,o,o);break;default:e("d%s=m%s",o,o)}}return e}t.fromObject=function(e){var t=e.fieldsArray,n=o.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return n("return new this.ctor");n("var m=new this.ctor");for(var s=0;sr)throw F("Wrong length!");s=i/t}else s=g(n),p=new q(i=s*t);for(l(e,"_d",{b:p,o:u,l:i,e:s,v:new V(p)});a>1,c=23===t?E(2,-24)-E(2,-77):0,f=0,l=e<0||0===e&&1/e<0?1:0;for((e=S(e))!=e||e===_?(o=e!=e?1:0,r=n):(r=k(T(e)/x),e*(i=E(2,-r))<1&&(r--,i*=2),2<=(e+=1<=r+u?c/i:c*E(2,1-u))*i&&(r++,i/=2),n<=r+u?(o=0,r=n):1<=r+u?(o=(e*i-1)*E(2,t),r+=u):(o=e*E(2,u-1)*E(2,t),r=0));8<=t;s[f++]=255&o,o/=256,t-=8);for(r=r<>1,a=o-7,u=n-1,c=127&(o=e[u--]);for(o>>=7;0>=-a,a+=t;0>8&255]}function M(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function L(e){return N(e,52,8)}function U(e){return N(e,23,4)}function F(e,t,n){g(e.prototype,t,{get:function(){return this[n]}})}function B(e,t,n,r){if((n=p(+n))+t>e[R])throw w("Wrong index!");var o=e[A]._b;n+=e[O],e=o.slice(n,n+t);return r?e:e.reverse()}function G(e,t,n,r,o,i){if((n=p(+n))+t>e[R])throw w("Wrong index!");for(var s=e[A]._b,a=n+e[O],u=r(+o),c=0;cH;)(q=V[H++])in m||a(m,q,C[q]);i||(r.constructor=m)}b=new v(new m(2));var W=v.prototype.setInt8;b.setInt8(0,2147483648),b.setInt8(1,2147483649),!b.getInt8(0)&&b.getInt8(1)||u(v.prototype,{setInt8:function(e,t){W.call(this,e,t<<24>>24)},setUint8:function(e,t){W.call(this,e,t<<24>>24)}},!0)}else m=function(e){f(this,m,"ArrayBuffer"),e=p(e),this._b=y.call(new Array(e),0),this[R]=e},v=function(e,t,n){f(this,v,"DataView"),f(e,m,"DataView");var r=e[R];if((t=l(t))<0||rr)throw w("Wrong length!");this[A]=e,this[O]=t,this[R]=n},o&&(F(m,"byteLength","_l"),F(v,"buffer","_b"),F(v,"byteLength","_l"),F(v,"byteOffset","_o")),u(v.prototype,{getInt8:function(e){return B(this,1,e)[0]<<24>>24},getUint8:function(e){return B(this,1,e)[0]},getInt16:function(e){return((e=B(this,2,e,arguments[1]))[1]<<8|e[0])<<16>>16},getUint16:function(e){return(e=B(this,2,e,arguments[1]))[1]<<8|e[0]},getInt32:function(e){return P(B(this,4,e,arguments[1]))},getUint32:function(e){return P(B(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return I(B(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return I(B(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){G(this,1,e,D,t)},setUint8:function(e,t){G(this,1,e,D,t)},setInt16:function(e,t){G(this,2,e,j,t,arguments[2])},setUint16:function(e,t){G(this,2,e,j,t,arguments[2])},setInt32:function(e,t){G(this,4,e,M,t,arguments[2])},setUint32:function(e,t){G(this,4,e,M,t,arguments[2])},setFloat32:function(e,t){G(this,4,e,U,t,arguments[2])},setFloat64:function(e,t){G(this,8,e,L,t,arguments[2])}});n(m,"ArrayBuffer"),n(v,"DataView"),a(v.prototype,s.VIEW,!0),t.ArrayBuffer=m,t.DataView=v},function(e,t,n){var r=n(228);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(14),o=n(148),i=n(2)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){var r=n(19),o=n(64),i=n(11);e.exports=[].copyWithin||function(e,t){var n=r(this),s=i(n.length),a=o(e,s),u=o(t,s),c=(e=2>16&255,s[a++]=t>>8&255,s[a++]=255&t;return 2===r&&(t=o[e.charCodeAt(f)]<<2|o[e.charCodeAt(f+1)]>>4,s[a++]=255&t),1===r&&(t=o[e.charCodeAt(f)]<<10|o[e.charCodeAt(f+1)]<<4|o[e.charCodeAt(f+2)]>>2,s[a++]=t>>8&255,s[a++]=255&t),s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],s=0,a=n-o;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,s,a>2]+r[t<<4&63]+"==")):2==o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a>1,f=-7,l=n?o-1:0,d=n?-1:1;o=e[t+l];for(l+=d,i=o&(1<<-f)-1,o>>=-f,f+=a;0>=-f,f+=r;0>1,l=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,p=r?1:-1;i=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(r=Math.pow(2,-s))<1&&(s--,r*=2),2<=(t+=1<=s+f?l/r:l*Math.pow(2,1-f))*r&&(s++,r/=2),c<=s+f?(a=0,s=c):1<=s+f?(a=(t*r-1)*Math.pow(2,o),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,o),s=0));8<=o;e[n+d]=255&a,d+=p,a/=256,o-=8);for(s=s<>t&63|128)}function c(){if(r<=o)throw Error("Invalid byte index");var e=255&n[o];if(o++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}e.exports={version:"2.1.2",encode:function(e,t){for(var n=!1!==(t=t||{}).strict,r=s(e),o=r.length,c=-1,f="";++c>6&31|192):0==(4294901760&e)?(a(e,t)||(e=65533),n=i(e>>12&15|224),n+=u(e,6)):0==(4292870144&e)&&(n=i(e>>18&7|240),n=(n+=u(e,12))+u(e,6)),n+i(63&e|128)}(r[c],n);return f},decode:function(e,t){var u=!1!==(t=t||{}).strict;n=s(e),r=n.length,o=0;for(var f,l=[];!1!==(f=function(e){var t,i;if(r>>10&1023|55296),d=56320|1023&d),y+=i(d);return y}}},function(e,t){var n;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t.encode=function(e){for(var t=new Uint8Array(e),r=t.length,o="",i=0;i>2])+n[(3&t[i])<<4|t[i+1]>>4])+n[(15&t[i+1])<<2|t[i+2]>>6])+n[63&t[i+2]];return r%3==2?o=o.substring(0,o.length-1)+"=":r%3==1&&(o=o.substring(0,o.length-2)+"=="),o},t.decode=function(e){for(var t,r,o,i,s=.75*e.length,a=e.length,u=0,c=(s=("="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--),new ArrayBuffer(s)),new Uint8Array(s)),f=0;f>4,c[u++]=(15&r)<<4|o>>2,c[u++]=(3&o)<<6|63&i;return s}},function(e,t){var n=void 0!==n?n:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,r=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),o=r&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),i=n&&n.prototype.append&&n.prototype.getBlob;function s(e){return e.map((function(e){var t,n;return e.buffer instanceof ArrayBuffer?(t=e.buffer,e.byteLength!==t.byteLength&&((n=new Uint8Array(e.byteLength)).set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=n.buffer),t):e}))}function a(e,t){t=t||{};var r=new n;return s(e).forEach((function(e){r.append(e)})),t.type?r.getBlob(t.type):r.getBlob()}function u(e,t){return new Blob(s(e),t||{})}"undefined"!=typeof Blob&&(a.prototype=Blob.prototype,u.prototype=Blob.prototype),e.exports=r?o?Blob:u:i?a:void 0},function(e,t,n){function r(e){var n;function r(){if(r.enabled){var e=r,o=+new Date,i=o-(n||o);e.diff=i,e.prev=n,e.curr=o,n=o;for(var s=new Array(arguments.length),a=0;a';n=document.createElement(e)}catch(e){(n=document.createElement("iframe")).name=s.iframeId,n.src="javascript:0"}n.id=s.iframeId,s.form.appendChild(n),s.iframe=n}this.form||(r=document.createElement("form"),o=document.createElement("textarea"),i=this.iframeId="eio_iframe_"+this.index,r.className="socketio",r.style.position="absolute",r.style.top="-1000px",r.style.left="-1000px",r.target=i,r.method="POST",r.setAttribute("accept-charset","utf-8"),o.name="d",r.appendChild(o),document.body.appendChild(r),this.form=r,this.area=o),this.form.action=this.uri(),f(),e=e.replace(u,"\\\n"),this.area.value=e.replace(a,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===s.iframe.readyState&&c()}:this.iframe.onload=c}},function(e,t,n){(function(t){var r,o,i=n(106),s=n(46),a=n(73),u=n(74),c=n(158),f=n(75)("engine.io-client:websocket");if("undefined"!=typeof WebSocket?r=WebSocket:"undefined"!=typeof self&&(r=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{o=n(252)}catch(u){}var l=r||o;function d(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=r&&!e.forceNode,this.protocols=e.protocols,this.usingBrowserWebSocket||(l=o),i.call(this,e)}u(e.exports=d,i),d.prototype.name="websocket",d.prototype.supportsBinary=!0,d.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,n={};this.isReactNative||(n.agent=this.agent,n.perMessageDeflate=this.perMessageDeflate,n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new l(e,t):new l(e):new l(e,t,n)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},d.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},d.prototype.write=function(e){var n=this;this.writable=!1;for(var r=e.length,o=0,i=r;ot&&(a=a.slice(0,t)),s?a+e:e+a)}},function(e,t,n){var r=n(24),o=n(29);e.exports=function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;0>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t,n){n=n(5).navigator,e.exports=n&&n.userAgent||""},function(e,t,n){n(279),n(181),n(289),n(290),e.exports=n(20).Symbol},function(e,t,n){function r(e){var t=z[e]=N(B.prototype);return t._k=e,t}function o(e,t,n){return e===K&&o(Y,t,n),k(e),t=R(t,!0),k(n),l(z,t)?(n.enumerable?(l(e,V)&&e[V][t]&&(e[V][t]=!1),n=N(n,{enumerable:O(0,!1)})):(l(e,V)||U(e,V,O(1,{})),e[V][t]=!0),Z(e,t,n)):U(e,t,n)}function i(e,t){k(e);for(var n,r=S(t=A(t)),i=0,s=r.length;io;)l(z,t=n[o++])||t==V||t==g||r.push(t);return r}function c(e){for(var t,n=e===K,r=F(n?Y:A(e)),o=[],i=0;r.length>i;)!l(z,t=r[i++])||n&&!l(K,t)||o.push(z[t]);return o}var f=n(7),l=n(32),d=n(33),p=n(55),h=n(173),g=n(280).KEY,y=n(78),m=n(111),v=n(83),b=n(82),w=n(12),_=n(112),C=n(113),S=n(281),E=n(285),k=n(26),T=n(36),x=n(177),A=n(48),R=n(110),O=n(81),N=n(178),I=n(287),P=n(288),D=n(176),j=n(35),M=n(114),L=P.f,U=j.f,F=I.f,B=f.Symbol,G=f.JSON,q=G&&G.stringify,V=w("_hidden"),H=w("toPrimitive"),W={}.propertyIsEnumerable,J=m("symbol-registry"),z=m("symbols"),Y=m("op-symbols"),K=Object.prototype,$=(m="function"==typeof B&&!!D.f,f.QObject),X=!$||!$.prototype||!$.prototype.findChild,Z=d&&y((function(){return 7!=N(U({},"a",{get:function(){return U(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=L(K,t);r&&delete K[t],U(e,t,n),r&&e!==K&&U(K,t,r)}:U,Q=m&&"symbol"==_typeof(B.iterator)?function(e){return"symbol"==_typeof(e)}:function(e){return e instanceof B};m||(h((B=function(){if(this instanceof B)throw TypeError("Symbol is not a constructor!");var e=b(0te;)w(ee[te++]);for(var ne=M(w.store),re=0;ne.length>re;)C(ne[re++]);p(p.S+p.F*!m,"Symbol",{for:function(e){return l(J,e+="")?J[e]:J[e]=B(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol!");for(var t in J)if(J[t]===e)return t},useSetter:function(){X=!0},useSimple:function(){X=!1}}),p(p.S+p.F*!m,"Object",{create:function(e,t){return void 0===t?N(e):i(N(e),t)},defineProperty:o,defineProperties:i,getOwnPropertyDescriptor:a,getOwnPropertyNames:u,getOwnPropertySymbols:c}),$=y((function(){D.f(1)})),p(p.S+p.F*$,"Object",{getOwnPropertySymbols:function(e){return D.f(x(e))}}),G&&p(p.S+p.F*(!m||y((function(){var e=B();return"[null]"!=q([e])||"{}"!=q({a:e})||"{}"!=q(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;oc;)u.call(e,s=a[c++])&&t.push(s);return t}},function(e,t,n){var r=n(57);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(48),o=n(175),i=n(284);e.exports=function(e){return function(t,n,s){var a,u=r(t),c=o(u.length),f=i(s,c);if(e&&n!=n){for(;f=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var r,o,i,s,a,u=n(185);n=e.exports;function c(e){return s.lastIndex=0,s.test(e)?'"'+e.replace(s,(function(e){var t=a[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}s=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},"function"!=typeof n.stringify&&(n.stringify=function(e,t,n){var s;if(o=r="","number"==typeof n)for(s=0;s>2],o=(3&c)<<4,u=1;break;case 1:s[a++]=r[o|c>>4],o=(15&c)<<2,u=2;break;case 2:s[a++]=r[o|c>>6],s[a++]=r[63&c],u=0}8191>4,r=u,s=2;break;case 2:t[n++]=(15&r)<<4|(60&u)>>2,r=u,s=3;break;case 3:t[n++]=(3&r)<<6|u,s=0}}if(1===s)throw Error("invalid encoding");return n-i},t.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},function(e,t,n){function r(){this._listeners={}}(e.exports=r).prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},r.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],r=0;r>>0,o,i+n)):r<22250738585072014e-324?(e((s=r/5e-324)>>>0,o,i+t),e((u<<31|s/4294967296)>>>0,o,i+n)):(1024===(a=Math.floor(Math.log(r)/Math.LN2))&&(a=1023),e(4503599627370496*(s=r*Math.pow(2,-a))>>>0,o,i+t),e((u<<31|a+1023<<20|1048576*s&1048575)>>>0,o,i+n))}function n(e,t,n,r,o){return t=e(r,o+t),r=2*((e=e(r,o+n))>>31)+1,n=4294967296*(1048575&e)+t,2047==(o=e>>>20&2047)?n?NaN:1/0*r:0==o?5e-324*r*n:r*Math.pow(2,o-1075)*(n+4503599627370496)}function r(e,t,n){l[0]=e,t[n]=d[0],t[n+1]=d[1],t[n+2]=d[2],t[n+3]=d[3],t[n+4]=d[4],t[n+5]=d[5],t[n+6]=d[6],t[n+7]=d[7]}function u(e,t,n){l[0]=e,t[n]=d[7],t[n+1]=d[6],t[n+2]=d[5],t[n+3]=d[4],t[n+4]=d[3],t[n+5]=d[2],t[n+6]=d[1],t[n+7]=d[0]}function c(e,t){return d[0]=e[t],d[1]=e[t+1],d[2]=e[t+2],d[3]=e[t+3],d[4]=e[t+4],d[5]=e[t+5],d[6]=e[t+6],d[7]=e[t+7],l[0]}function f(e,t){return d[7]=e[t],d[6]=e[t+1],d[5]=e[t+2],d[4]=e[t+3],d[3]=e[t+4],d[2]=e[t+5],d[1]=e[t+6],d[0]=e[t+7],l[0]}var l,d,p,h,g;function y(e,t,n,r){var o=t<0?1:0;0===(t=o?-t:t)?e(0<1/t?0:2147483648,n,r):isNaN(t)?e(2143289344,n,r):e(34028234663852886e22>>0:t<11754943508222875e-54?(o<<31|Math.round(t/1401298464324817e-60))>>>0:(o<<31|(e=Math.floor(Math.log(t)/Math.LN2))+127<<23|8388607&Math.round(t*Math.pow(2,-e)*8388608))>>>0,n,r)}function m(e,t,n){return t=2*((e=e(t,n))>>31)+1,n=e>>>23&255,e&=8388607,255==n?e?NaN:1/0*t:0==n?1401298464324817e-60*t*e:t*Math.pow(2,n-150)*(8388608+e)}function v(e,t,n){p[0]=e,t[n]=h[0],t[n+1]=h[1],t[n+2]=h[2],t[n+3]=h[3]}function b(e,t,n){p[0]=e,t[n]=h[3],t[n+1]=h[2],t[n+2]=h[1],t[n+3]=h[0]}function w(e,t){return h[0]=e[t],h[1]=e[t+1],h[2]=e[t+2],h[3]=e[t+3],p[0]}function _(e,t){return h[3]=e[t],h[2]=e[t+1],h[1]=e[t+2],h[0]=e[t+3],p[0]}}function o(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function i(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function s(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function a(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=r(r)},function(e,t,n){t.length=function(e){for(var t,n=0,r=0;r>10),i[s++]=56320+(1023&r)):i[s++]=(15&r)<<12|(63&e[t++])<<6|63&e[t++],8191>6|192:(55296==(64512&r)&&56320==(64512&(o=e.charCodeAt(s+1)))?(++s,t[n++]=(r=65536+((1023&r)<<10)+(1023&o))>>18|240,t[n++]=r>>12&63|128):t[n++]=r>>12|224,t[n++]=r>>6&63|128),t[n++]=63&r|128);return n-i}},function(e,t,n){e.exports=function(e,t,n){var r=n||8192,o=r>>>1,i=null,s=r;return function(n){return n<1||o>>0,this.hi=t>>>0}var i=o.zero=new o(0,0),s=(i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1},o.zeroHash="\0\0\0\0\0\0\0\0",o.fromNumber=function(e){if(0===e)return i;var t=e<0,n=(e=t?-e:e)>>>0;e=(e-n)/4294967296>>>0;return t&&(e=~e>>>0,n=~n>>>0,4294967295<++n&&(n=0,4294967295<++e&&(e=0))),new o(n,e)},o.from=function(e){if("number"==typeof e)return o.fromNumber(e);if(r.isString(e)){if(!r.Long)return o.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new o(e.low>>>0,e.high>>>0):i},o.prototype.toNumber=function(e){var t;return!e&&this.hi>>>31?(e=1+~this.lo>>>0,t=~this.hi>>>0,-(e+4294967296*(t=e?t:t+1>>>0))):this.lo+4294967296*this.hi},o.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}},String.prototype.charCodeAt);o.fromHash=function(e){return"\0\0\0\0\0\0\0\0"===e?i:new o((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},o.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},o.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0==n?0==t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},function(e,t,n){e.exports=i;var r=n(120),o=((i.prototype=Object.create(r.prototype)).constructor=i,n(21));function i(){r.call(this)}function s(e,t,n){e.length<40?o.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}i._configure=function(){i.alloc=o._Buffer_allocUnsafe,i.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=o.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},i._configure()},function(e,t,n){e.exports=i;var r=n(121),o=((i.prototype=Object.create(r.prototype)).constructor=i,n(21));function i(e){r.call(this,e)}i._configure=function(){o.Buffer&&(i.prototype._slice=o.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},function(e,t,n){e.exports=o;var r=n(21);function o(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}((o.prototype=Object.create(r.EventEmitter.prototype)).constructor=o).prototype.rpcCall=function e(t,n,o,i,s){if(!i)throw TypeError("request must be specified");var a=this;if(!s)return r.asPromise(e,a,t,n,o,i);if(a.rpcImpl)try{return a.rpcImpl(t,n[a.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,n){if(e)return a.emit("error",e,t),s(e);if(null!==n){if(!(n instanceof o))try{n=o[a.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return a.emit("error",e,t),s(e)}return a.emit("data",n,t),s(null,n)}a.end(!0)}))}catch(e){return a.emit("error",e,t),void setTimeout((function(){s(e)}),0)}else setTimeout((function(){s(Error("already ended"))}),0)},o.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},function(e,t,n){(e.exports=function e(t,n){"string"==typeof t&&(n=t,t=void 0);var r=[];function o(t){if("string"!=typeof t){var n=i();if(e.verbose,n="return "+n,t){for(var s=Object.keys(t),a=new Array(s.length+1),u=new Array(s.length),c=0;c>>0,g=new RegExp(e.source,f+"g");(i=c.call(g,o))&&!((s=g.lastIndex)>l&&(u.push(o.slice(l,i.index)),1=h));)g.lastIndex===i.index&&g.lastIndex++;return l===o[p]?!a&&g.test("")||u.push(""):u.push(o.slice(l)),u[p]>h?u.slice(0,h):u}:"0".split(void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n;return[function(n,r){var o=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):g.call(String(o),n,r)},function(e,t){if((r=f(g,e,this,t,g!==n)).done)return r.value;var r=o(e),c=String(this),d=(e=i(r,RegExp),r.unicode),p=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(h?"y":"g"),y=new e(h?r:"^(?:"+r.source+")",p),m=void 0===t?4294967295:t>>>0;if(0==m)return[];if(0===c.length)return null===u(y,c)?[c]:[];for(var v=0,b=0,w=[];bo;)l(z,t=n[o++])||t==V||t==g||r.push(t);return r}function c(e){for(var t,n=e===K,r=F(n?Y:A(e)),o=[],i=0;r.length>i;)!l(z,t=r[i++])||n&&!l(K,t)||o.push(z[t]);return o}var f=n(5),l=n(23),d=n(10),p=n(15),h=n(25),g=n(94).KEY,y=n(16),m=n(65),v=n(54),b=n(30),w=n(2),_=n(203),C=n(202),S=n(322),E=n(148),k=n(9),T=n(14),x=n(19),A=n(39),R=n(61),O=n(42),N=n(62),I=n(323),P=n(97),D=n(204),j=n(8),M=n(53),L=P.f,U=j.f,F=I.f,B=f.Symbol,G=f.JSON,q=G&&G.stringify,V=w("_hidden"),H=w("toPrimitive"),W={}.propertyIsEnumerable,J=m("symbol-registry"),z=m("symbols"),Y=m("op-symbols"),K=Object.prototype,$=(m="function"==typeof B&&!!D.f,f.QObject),X=!$||!$.prototype||!$.prototype.findChild,Z=d&&y((function(){return 7!=N(U({},"a",{get:function(){return U(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=L(K,t);r&&delete K[t],U(e,t,n),r&&e!==K&&U(K,t,r)}:U,Q=m&&"symbol"==_typeof(B.iterator)?function(e){return"symbol"==_typeof(e)}:function(e){return e instanceof B};m||(h((B=function(){if(this instanceof B)throw TypeError("Symbol is not a constructor!");var e=b(0te;)w(ee[te++]);for(var ne=M(w.store),re=0;ne.length>re;)C(ne[re++]);p(p.S+p.F*!m,"Symbol",{for:function(e){return l(J,e+="")?J[e]:J[e]=B(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+" is not a symbol!");for(var t in J)if(J[t]===e)return t},useSetter:function(){X=!0},useSimple:function(){X=!1}}),p(p.S+p.F*!m,"Object",{create:function(e,t){return void 0===t?N(e):i(N(e),t)},defineProperty:o,defineProperties:i,getOwnPropertyDescriptor:a,getOwnPropertyNames:u,getOwnPropertySymbols:c}),$=y((function(){D.f(1)})),p(p.S+p.F*$,"Object",{getOwnPropertySymbols:function(e){return D.f(x(e))}}),G&&p(p.S+p.F*(!m||y((function(){var e=B();return"[null]"!=q([e])||"{}"!=q({a:e})||"{}"!=q(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;oc;)u.call(e,s=a[c++])&&t.push(s);return t}},function(e,t,n){var r=n(39),o=n(70).f,i={}.toString,s="object"==("undefined"==typeof window?"undefined":_typeof(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){if(!s||"[object Window]"!=i.call(e))return o(r(e));var t=e;try{return o(t)}catch(t){return s.slice()}}},function(e,t,n){var r=function(e){var t=Object.prototype,n=t.hasOwnProperty,r=(p="function"==typeof Symbol?Symbol:{}).iterator||"@@iterator",o=p.asyncIterator||"@@asyncIterator",i=p.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function a(e,t,n,r){var o,i,s,a;t=t&&t.prototype instanceof f?t:f,t=Object.create(t.prototype),r=new w(r||[]);return t._invoke=(o=e,i=n,s=r,a="suspendedStart",function(e,t){if("executing"===a)throw new Error("Generator is already running");if("completed"===a){if("throw"===e)throw t;return{value:void 0,done:!0}}for(s.method=e,s.arg=t;;){var n=s.delegate;if(n&&(n=function e(t,n){var r=t.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=void 0,e(t,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}return"throw"===(r=u(r,t.iterator,n.arg)).type?(n.method="throw",n.arg=r.arg,n.delegate=null,c):(r=r.arg)?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,s),n)){if(n===c)continue;return n}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===a)throw a="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(a="executing","normal"===(n=u(o,i,s)).type){if(a=s.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:s.done}}"throw"===n.type&&(a="completed",s.method="throw",s.arg=n.arg)}}),t}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=a;var c={};function f(){}function l(){}function d(){}var p,h,g=((h=(h=(s(p={},r,(function(){return this})),Object.getPrototypeOf))&&h(h(_([]))))&&h!==t&&n.call(h,r)&&(p=h),d.prototype=f.prototype=Object.create(p));function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function m(e,t){var r;this._invoke=function(o,i){function s(){return new t((function(r,s){!function r(o,i,s,a){var c;return"throw"!==(o=u(e[o],e,i)).type?(i=(c=o.arg).value)&&"object"==_typeof(i)&&n.call(i,"__await")?t.resolve(i.__await).then((function(e){r("next",e,s,a)}),(function(e){r("throw",e,s,a)})):t.resolve(i).then((function(e){c.value=e,s(c)}),(function(e){return r("throw",e,s,a)})):void a(o.arg)}(o,i,r,s)}))}return r=r?r.then(s,s):s()}}function v(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function b(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(v,this),this.reset(!0)}function _(e){if(e){var t,o=e[r];if(o)return o.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return t=-1,(o=function r(){for(;++ta;){g=h=p=d=c=u=f=void 0;var u,c,f,l=n[a++],d=s?l.ok:l.fail,p=l.resolve,h=l.reject,g=l.domain;try{d?(s||(2==e._h&&i(e),e._h=1),!0===d?u=r:(g&&g.enter(),u=d(r),g&&(g.exit(),f=!0)),u===l.promise?h(x("Promise-chain cycle")):(c=D(u))?c.call(u,p,h):p(u)):h(r)}catch(r){g&&!f&&g.exit(),h(r)}}e._c=[],e._n=!1,t&&!e._h&&o(e)})))},M=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),j(t,!0))};P||(O=function(e){v(this,O,"Promise","_h"),m(e),a.call(this);try{e(p(s,this,1),p(L,this,1))}catch(e){L.call(this,e)}},(a=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(335)(O.prototype,{then:function(e,t){var n=I(w(this,O));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=N?A.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&j(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),c=function(){var e=new a;this.promise=e,this.resolve=p(s,e,1),this.reject=p(L,e,1)},S.f=I=function(e){return e===O||e===f?new c:u(e)}),g(g.G+g.W+g.F*!P,{Promise:O}),n(83)(O,"Promise"),n(336)("Promise"),f=n(20).Promise,g(g.S+g.F*!P,"Promise",{reject:function(e){var t=I(this);return(0,t.reject)(e),t.promise}}),g(g.S+g.F*(l||!P),"Promise",{resolve:function(e){return T(l&&this===f?O:this,e)}}),g(g.S+g.F*!(P&&n(337)((function(e){O.all(e).catch(r)}))),"Promise",{all:function(e){var t=this,n=I(t),r=n.resolve,o=n.reject,i=E((function(){var n=[],i=0,s=1;b(e,!1,(function(e){var a=i++,u=!1;n.push(void 0),s++,t.resolve(e).then((function(e){u||(u=!0,n[a]=e,--s||r(n))}),o)})),--s||r(n)}));return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=I(t),r=n.reject,o=E((function(){b(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return o.e&&r(o.v),n.promise}})},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(79),o=n(329),i=n(330),s=n(26),a=n(175),u=n(331),c={},f={};(t=e.exports=function(e,t,n,l,d){d=d?function(){return e}:u(e);var p,h,g,y,m=r(n,l,t?2:1),v=0;if("function"!=typeof d)throw TypeError(e+" is not iterable!");if(i(d)){for(p=a(e.length);v>10|55296,1023&e|56320))}function n(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function r(){g()}var o,i,s,a,u,c,f,l,d,p,h,g,y,m,v,b,w,_,C,S="sizzle"+ +new Date,E=e.document,k=0,T=0,x=ue(),A=ue(),R=ue(),O=ue(),N=function(e,t){return e===t&&(h=!0),0},I={}.hasOwnProperty,P=[],D=P.pop,j=P.push,M=P.push,L=P.slice,U=function(e,t){for(var n=0,r=e.length;n+~]|"+B+")"+B+"*"),Y=new RegExp(B+"|>"),K=new RegExp(V),$=new RegExp("^"+G+"$"),X={ID:new RegExp("^#("+G+")"),CLASS:new RegExp("^\\.("+G+")"),TAG:new RegExp("^("+G+"|[*])"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},Z=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,ee=/^h\d$/i,te=/^[^{]+\{\s*\[native \w/,ne=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,re=/[+~]/,oe=new RegExp("\\\\[\\da-fA-F]{1,6}"+B+"?|\\\\([^\\r\\n\\f])","g"),ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,se=ve((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{M.apply(P=L.call(E.childNodes),E.childNodes),P[E.childNodes.length].nodeType}catch(e){M={apply:P.length?function(e,t){j.apply(e,L.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ae(e,t,r,o){var s,a,u,f,d,p,h=t&&t.ownerDocument,m=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return r;if(!o&&(g(t),t=t||y,v)){if(11!==m&&(f=ne.exec(e)))if(s=f[1]){if(9===m){if(!(p=t.getElementById(s)))return r;if(p.id===s)return r.push(p),r}else if(h&&(p=h.getElementById(s))&&C(t,p)&&p.id===s)return r.push(p),r}else{if(f[2])return M.apply(r,t.getElementsByTagName(e)),r;if((s=f[3])&&i.getElementsByClassName&&t.getElementsByClassName)return M.apply(r,t.getElementsByClassName(s)),r}if(i.qsa&&!O[e+" "]&&(!b||!b.test(e))&&(1!==m||"object"!==t.nodeName.toLowerCase())){if(p=e,h=t,1===m&&(Y.test(e)||z.test(e))){for((h=re.test(e)&&ge(t.parentNode)||t)===t&&i.scope||((u=t.getAttribute("id"))?u=u.replace(ie,n):t.setAttribute("id",u=S)),a=(d=c(e)).length;a--;)d[a]=(u?"#"+u:":scope")+" "+me(d[a]);p=d.join(",")}try{return M.apply(r,h.querySelectorAll(p)),r}catch(t){O(e,!0)}finally{u===S&&t.removeAttribute("id")}}}return l(e.replace(W,"$1"),t,r,o)}function ue(){var e=[];return function t(n,r){return e.push(n+" ")>s.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function ce(e){return e[S]=!0,e}function fe(e){var t=y.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function le(e,t){for(var n=e.split("|"),r=n.length;r--;)s.attrHandle[n[r]]=t}function de(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return ce((function(t){return t=+t,ce((function(n,r){for(var o,i=e([],n.length,t),s=i.length;s--;)n[o=i[s]]&&(n[o]=!(r[o]=n[o]))}))}))}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(o in i=ae.support={},u=ae.isXML=function(e){var t=e&&e.namespaceURI;e=e&&(e.ownerDocument||e).documentElement;return!Z.test(t||e&&e.nodeName||"HTML")},g=ae.setDocument=function(e){var n;return(e=e?e.ownerDocument||e:E)!=y&&9===e.nodeType&&e.documentElement&&(m=(y=e).documentElement,v=!u(y),E!=y&&(n=y.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",r,!1):n.attachEvent&&n.attachEvent("onunload",r)),i.scope=fe((function(e){return m.appendChild(e).appendChild(y.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),i.attributes=fe((function(e){return e.className="i",!e.getAttribute("className")})),i.getElementsByTagName=fe((function(e){return e.appendChild(y.createComment("")),!e.getElementsByTagName("*").length})),i.getElementsByClassName=te.test(y.getElementsByClassName),i.getById=fe((function(e){return m.appendChild(e).id=S,!y.getElementsByName||!y.getElementsByName(S).length})),i.getById?(s.filter.ID=function(e){var n=e.replace(oe,t);return function(e){return e.getAttribute("id")===n}},s.find.ID=function(e,t){if(void 0!==t.getElementById&&v)return(t=t.getElementById(e))?[t]:[]}):(s.filter.ID=function(e){var n=e.replace(oe,t);return function(e){return(e=void 0!==e.getAttributeNode&&e.getAttributeNode("id"))&&e.value===n}},s.find.ID=function(e,t){if(void 0!==t.getElementById&&v){var n,r,o,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(o=t.getElementsByName(e),r=0;i=o[r++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),s.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"!==e)return i;for(;n=i[o++];)1===n.nodeType&&r.push(n);return r},s.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&v)return t.getElementsByClassName(e)},w=[],b=[],(i.qsa=te.test(y.querySelectorAll))&&(fe((function(e){var t;m.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&b.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||b.push("\\["+B+"*(?:value|"+F+")"),e.querySelectorAll("[id~="+S+"-]").length||b.push("~="),(t=y.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||b.push("\\["+B+"*name"+B+"*="+B+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||b.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||b.push(".#.+[+~]"),e.querySelectorAll("\\\f"),b.push("[\\r\\n\\f]")})),fe((function(e){e.innerHTML="";var t=y.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&b.push("name"+B+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&b.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&b.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),b.push(",.*:")}))),(i.matchesSelector=te.test(_=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&fe((function(e){i.disconnectedMatch=_.call(e,"*"),_.call(e,"[s!='']:x"),w.push("!=",V)})),b=b.length&&new RegExp(b.join("|")),w=w.length&&new RegExp(w.join("|")),e=te.test(m.compareDocumentPosition),C=e||te.test(m.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e;return e===(t=t&&t.parentNode)||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=e?function(e,t){return e===t?(h=!0,0):!e.compareDocumentPosition-!t.compareDocumentPosition||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===n?e==y||e.ownerDocument==E&&C(E,e)?-1:t==y||t.ownerDocument==E&&C(E,t)?1:p?U(p,e)-U(p,t):0:4&n?-1:1);var n}:function(e,t){if(e===t)return h=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,s=[e],a=[t];if(!o||!i)return e==y?-1:t==y?1:o?-1:i?1:p?U(p,e)-U(p,t):0;if(o===i)return de(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[r]===a[r];)r++;return r?de(s[r],a[r]):s[r]==E?-1:a[r]==E?1:0}),y},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(g(e),i.matchesSelector&&v&&!O[t+" "]&&(!w||!w.test(t))&&(!b||!b.test(t)))try{var n=_.call(e,t);if(n||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){O(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(oe,t),e[3]=(e[3]||e[4]||e[5]||"").replace(oe,t),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&K.test(n)&&(t=c(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var n=e.replace(oe,t).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===n}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&x(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){return null==(r=ae.attr(r,e))?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function N(e,t,n){return i(t)?S.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?S.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?S.grep(e,(function(e){return-1)[^>]*|#([\w-]+))$/,D=((S.fn.init=function(e,t,n){if(!e)return this;if(n=n||I,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):i(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this);if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:P.exec(e))||!r[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),O.test(r[1])&&S.isPlainObject(t))for(var r in t)i(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(n=b.getElementById(r[2]))&&(this[0]=n,this.length=1),this}).prototype=S.fn,I=S(b),/^(?:parents|prev(?:Until|All))/),j={children:!0,contents:!0,next:!0,prev:!0};function M(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter((function(){for(var e=0;e\x20\t\r\n\f]*)/i,pe=/^$|^module$|\/(?:java|ecma)script/i,he=b.createDocumentFragment().appendChild(b.createElement("div")),ge=((dt=b.createElement("input")).setAttribute("type","radio"),dt.setAttribute("checked","checked"),dt.setAttribute("name","t"),he.appendChild(dt),v.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="",v.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue,he.innerHTML="",v.option=!!he.lastChild,{thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]});function ye(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&R(e,t)?S.merge([e],n):n}function me(e,t){for(var n=0,r=e.length;n",""]);var ve=/<|&#?\w+;/;function be(e,t,n,r,o){for(var i,s,a,u,c,f=t.createDocumentFragment(),l=[],d=0,p=e.length;d\s*$/g;function Re(e,t){return R(e,"table")&&R(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ne(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ie(e,t){var n,r,o,i;if(1===t.nodeType){if(X.hasData(e)&&(i=X.get(e).events))for(o in X.remove(t,"handle events"),i)for(n=0,r=i[o].length;n").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Zt=[],Qt=/(=)\?(?=&|$)|\?\?/,en=(S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Zt.pop()||S.expando+"_"+Nt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",(function(e,t,r){var o,s,a,u=!1!==e.jsonp&&(Qt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Qt.test(e.data)&&"data");if(u||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=i(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,u?e[u]=e[u].replace(Qt,"$1"+o):!1!==e.jsonp&&(e.url+=(It.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||S.error(o+" was not called"),a[0]},e.dataTypes[0]="json",s=n[o],n[o]=function(){a=arguments},r.always((function(){void 0===s?S(n).removeProp(o):n[o]=s,e[o]&&(e.jsonpCallback=t.jsonpCallback,Zt.push(o)),a&&i(s)&&s(a[0]),a=s=void 0})),"script"})),v.createHTMLDocument=((x=b.implementation.createHTMLDocument("").body).innerHTML="
",2===x.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),r=!n&&[],(n=O.exec(e))?[t.createElement(n[1])]:(n=be([e],t,r),r&&r.length&&S(r).remove(),S.merge([],n.childNodes)));var r},S.fn.load=function(e,t,n){var r,o,s,a=this,u=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,s||[e.responseText,t,e])}))}),this},S.expr.pseudos.animated=function(e){return S.grep(S.timers,(function(t){return e===t.elem})).length},S.offset={setOffset:function(e,t,n){var r,o,s,a,u=S.css(e,"position"),c=S(e),f={};"static"===u&&(e.style.position="relative"),s=c.offset(),r=S.css(e,"top"),a=S.css(e,"left"),u=("absolute"===u||"fixed"===u)&&-1<(r+a).indexOf("auto")?(o=(u=c.position()).top,u.left):(o=parseFloat(r)||0,parseFloat(a)||0),null!=(t=i(t)?t.call(e,n,S.extend({},s)):t).top&&(f.top=t.top-s.top+o),null!=t.left&&(f.left=t.left-s.left+u),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){S.offset.setOffset(this,e,t)}));var t,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],o={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((o=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),o.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-S.css(r,"marginTop",!0),left:t.left-o.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===S.css(e,"position");)e=e.offsetParent;return e||ie}))}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;S.fn[e]=function(r){return H(this,(function(e,r,o){var i;if(s(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===o)return i?i[t]:e[r];i?i.scrollTo(n?i.pageXOffset:o,n?o:i.pageYOffset):e[r]=o}),e,r,arguments.length)}})),S.each(["top","left"],(function(e,t){S.cssHooks[t]=$e(v.pixelPosition,(function(e,n){if(n)return n=Ke(e,t),We.test(n)?S(e).position()[t]+"px":n}))})),S.each({Height:"height",Width:"width"},(function(e,t){S.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){S.fn[r]=function(o,i){var a=arguments.length&&(n||"boolean"!=typeof o),u=n||(!0===o||!0===i?"margin":"border");return H(this,(function(t,n,o){var i;return s(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===o?S.css(t,n,u):S.style(t,n,o,u)}),t,a?o:void 0,a)}}))})),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){S.fn[t]=function(e){return this.on(t,e)}})),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){S.fn[t]=function(e,n){return 0r+1?vo(e,{clusters:s,clusterIndex:n,ratelIndex:++r,fireIndex:o,rtcIndex:t}):yo(e),(ur(i)||{}).ratel);ge("refresh_ratel",s)})),M("fireplaceError",(function(){var e,t,n,r,o,i,s=bo("app_id"),a=(l("Fireplace error, should try next in list, appid: ",s),n=(t=mo(e=s)).clusters,r=t.clusterIndex,o=t.ratelIndex,i=t.fireIndex,t=t.rtcIndex,((a=n[r]).webim||a.ws).length>i+1?vo(e,{clusters:n,clusterIndex:r,ratelIndex:o,fireIndex:++i,rtcIndex:t}):yo(e),(ur(s)||{}).fireplace);ge("refresh_fireplace",a)})),function(e){for(var t=mo(e),n=t.clusters,r=t.clusterIndex;n.length>r+1;){var o=n[++r];if(0<=(o.webim||o.ws).length)return void vo(e,{clusters:n,clusterIndex:r,ratelIndex:0,fireIndex:0,rtcIndex:0})}ge("retrieve_dns")}),mo=function(e){return k(go("key_dns_infos",e),!1)||{}},vo=function(e,t){fe(go("key_dns_infos",e),t,!1)},bo=function(e){return e?k(go("key_dns_config",e),!1):""},wo=(M("retrieve_dns",(function(){var e=bo("dns_server"),t=bo("app_id"),n=bo("ws");p("Retrieve DNS for appid: ",t),wo(e,t,n)})),function(e,t,n){return cr("dns_server",e),cr("app_id",t),cr("ws",n),(n=ur(t)).ratel?Promise.resolve(n):Oe(e,{app_id:t}).then((function(e){return d("DNS SUCCESS: ",e),function(t){if(t){var n=e.version,r=e.dns_list,o=r.findIndex((function(e){return 0==e.group_level}));if(o<0)return f("DNS ERROR: no available clusters (version:",n,")");n={clusters:r[o].clusters,clusterIndex:0,ratelIndex:0,fireIndex:0,rtcIndex:0},vo(t,n)}}(t),ur(t)}))}),_o={asyncGetDns:wo,getServers:ur},Co=(Tr={getStaticVars:function(){return o},sendRosterMessage:function(e){var t=(e=gr(e)).payload.meta;return we.saveSendingRosterMessage(t),Zr.sendMessage(e),t.id},sendGroupMessage:function(e){var t=(e=Hn(e)).payload.meta;return we.saveSendingGroupMessage(t),Zr.sendMessage(e),t.id},sendMentionMessage:function(e){t=e.gid,n=e.txt,c=e.mentionAll,f=e.mentionList,r=e.mentionedMessage,o=e.pushMessage,e=e.senderNickname,i=X.TEXT,s=new Rn({uid:+pe.getUid(),deviceSN:pr}),t=new Rn({uid:t,deviceSN:0}),(a=new Pn).setCommond(V.SYNC),u=new Ln,(n=new Nn({from:s,to:t,content:n,ctype:i,type:K.GROUPCHAT})).config=JSON.stringify({mentionAll:c,mentionList:f,mentionedMessage:r,pushMessage:o,senderNickname:e}),i=new Fn({id:(new Date).getTime(),from:s,to:t,payload:n,ns:Y.MESSAGE}),u.setMeta(i),a.setPayload(u);var t,n,r,o,i,s,a,u,c=a,f=c.payload.meta;return we.saveSendingGroupMessage(f),Zr.sendMessage(c),f.id},sendInputStatusMessage:function(e,t){e=e,t=t,n=X.TEXT,i=new Rn({uid:+pe.getUid(),deviceSN:pr}),e=new Rn({uid:+e,deviceSN:0}),(r=new Pn).setCommond(V.SYNC),o=new Ln,n=new Nn({from:i,to:e,ctype:n,type:K.CHAT,ext:JSON.stringify({input_status:t}),qos:Z.AT_MOST_ONCE}),t=new Fn({id:(new Date).getTime(),from:i,to:e,payload:n,ns:Y.MESSAGE}),o.setMeta(t),r.setPayload(o);var n,r,o,i=r;e=i.payload.meta;return Zr.sendMessage(i),e.id},sendMessage:Zr.sendMessage,getNoticeMessage:s(),getMessageStatus:function(e,t){return e=2=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function To(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n data channel: "+r),"open"===r){if(i.dataChannel[t].pending&&0:",i.dataChannel[t].pending.length);var o,a=ko(i.dataChannel[t].pending);try{for(a.s();!(o=a.n()).done;){var u=o.value;No.log("Sending data on data channel <"+t+">"),No.debug(u),i.dataChannel[t].send(u)}}catch(e){a.e(e)}finally{a.f()}i.dataChannel[t].pending=[]}s.ondataopen(t,n)}},r?i.dataChannel[t]=r:(r=i.dataChannelOptions,n&&(r.protocol=n),i.dataChannel[t]=i.pc.createDataChannel(t,r)),i.dataChannel[t].onmessage=function(e){No.log("Received message on data channel:",e);var t=e.target.label;s.ondata(e.data,t)},i.dataChannel[t].onopen=e,i.dataChannel[t].onclose=e,i.dataChannel[t].onerror=function(e){No.error("Got error on data channel:",e)},i.dataChannel[t].pending=[],o&&i.dataChannel[t].pending.push(o)):No.warn("Invalid PeerConnection"):No.warn("Invalid handle")}function I(e,t){if((t=t||{}).success="function"==typeof t.success?t.success:No.noop,t.error="function"==typeof t.error?t.error:No.noop,!(n=_[e])||!n.webrtcStuff)return No.warn("Invalid handle"),t.error("Invalid handle"),0;var n=n.webrtcStuff,r=t.text||t.data;if(!r)return No.warn("Invalid data"),t.error("Invalid data"),0;var o=t.label||No.dataChanDefaultLabel;n.dataChannel[o]?"open"!==n.dataChannel[o].readyState?n.dataChannel[o].pending.push(r):(No.log("Sending data on data channel <"+o+">"),No.debug(r),n.dataChannel[o].send(r)):N(e,o,t.protocol,!1,r,t.protocol),t.success()}function P(e,t){if((t=t||{}).success="function"==typeof t.success?t.success:No.noop,t.error="function"==typeof t.error?t.error:No.noop,!(e=_[e])||!e.webrtcStuff)return No.warn("Invalid handle"),t.error("Invalid handle"),0;if(!(e=e.webrtcStuff).dtmfSender){if(e.pc){if(!(o=e.pc.getSenders().find((function(e){return e.track&&"audio"===e.track.kind}))))return No.warn("Invalid DTMF configuration (no audio track)"),t.error("Invalid DTMF configuration (no audio track)"),0;e.dtmfSender=o.dtmf,e.dtmfSender&&(No.log("Created DTMF Sender"),e.dtmfSender.ontonechange=function(e){No.debug("Sent DTMF tone: "+e.tone)})}if(!e.dtmfSender)return No.warn("Invalid DTMF configuration"),t.error("Invalid DTMF configuration"),0}if(!(o=t.dtmf))return No.warn("Invalid DTMF parameters"),t.error("Invalid DTMF parameters"),0;var n=o.tones;if(!n)return No.warn("Invalid DTMF string"),t.error("Invalid DTMF string"),0;var r="number"==typeof o.duration?o.duration:500,o="number"==typeof o.gap?o.gap:50;No.debug("Sending DTMF string "+n+" (duration "+r+"ms, gap "+o+"ms)"),e.dtmfSender.insertDTMF(n,r,o),t.success()}function D(e,r){(r=r||{}).success="function"==typeof r.success?r.success:No.noop,r.error="function"==typeof r.error?r.error:No.noop;var o=!0===r.noRequest,i=(No.log("Destroying handle "+e+" (only-locally="+o+")"),Q(e),_[e]);return!i||i.detached?(delete _[e],r.success(),0):(i.detached=!0,o?(delete _[e],r.success(),0):b?(o={janus:"detach",transaction:No.randomString(12)},i.token&&(o.token=i.token),h&&(o.apisecret=h),t?(o.session_id=w,o.handle_id=e,n.send(o),delete _[e],r.success(),0):void No.httpAPICall(a+"/"+w+"/"+e,{verb:"POST",withCredentials:l,body:o,success:function(t){No.log("Destroyed handle:"),No.debug(t),"success"!==t.janus&&No.error("Ooops: "+t.error.code+" "+t.error.reason),delete _[e],r.success()},error:function(t,n){No.error(t+":",n),delete _[e],r.success()}})):(No.warn("Is the server down? (connected=false)"),r.error("Is the server down? (connected=false)"),0))}function j(e,t){var n=_[e];if(!n||!n.webrtcStuff)throw No.warn("Invalid handle"),"Invalid handle";var r=n.webrtcStuff;if(!r.pc){var o={iceServers:u,iceTransportPolicy:c,bundlePolicy:f,sdpSemantics:"unified-plan"},i=!1;if(t.tracks){var s,a=ko(t.tracks);try{for(a.s();!(s=a.n()).done;){var l=s.value;if(l.transforms&&(l.transforms.sender||l.transforms.receiver)){i=!0;break}}}catch(e){a.e(e)}finally{a.f()}}RTCRtpSender&&(RTCRtpSender.prototype.createEncodedStreams||RTCRtpSender.prototype.createEncodedAudioStreams&&RTCRtpSender.prototype.createEncodedVideoStreams)&&i&&(r.insertableStreams=!0,o.forceEncodedAudioInsertableStreams=!0,o.forceEncodedVideoInsertableStreams=!0,o.encodedInsertableStreams=!0),No.log("Creating PeerConnection"),r.pc=new RTCPeerConnection(o),No.debug(r.pc),r.pc.getStats&&(r.volume={},r.bitrate.value="0 kbits/sec"),No.log("Preparing local SDP and gathering candidates (trickle="+r.trickle+")"),r.pc.oniceconnectionstatechange=function(){r.pc&&n.iceState(r.pc.iceConnectionState)},r.pc.onicecandidate=function(n){var o,i;!n.candidate||n.candidate.candidate&&0>",e)})),e}}},No.useOldDependencies=function(e){var t=e&&e.jQuery||Ao,n=e&&e.WebSocket||WebSocket;return{newWebSocket:function(e,t){return new n(e,t)},isArray:function(e){return t.isArray(e)},extension:e&&e.extension||Oo,webRTCAdapter:e&&e.adapter||xo,httpAPICall:function(e,n){var r=void 0!==n.body?{contentType:"application/json",data:JSON.stringify(n.body)}:{},o=void 0!==n.withCredentials?{xhrFields:{withCredentials:n.withCredentials}}:{};return t.ajax(t.extend(r,o,{url:e,type:n.verb,cache:!1,dataType:"json",async:n.async,timeout:n.timeout,success:function(e){m(n.success)===m(No.noop)&&n.success(e)},error:function(e,t,r){m(n.error)===m(No.noop)&&n.error(t,r)}}))}}},No.mediaToTracks=function(e){var t,n=[];return e?(!e.keepAudio&&!1!==e.audio&&(void 0===e.audio||e.audio||e.audioSend||e.audioRecv||e.addAudio||e.replaceAudio||e.removeAudio)&&(t={type:"audio"},e.removeAudio?t.remove=!0:(e.addAudio?t.add=!0:e.replaceAudio&&(t.replace=!0),!1!==e.audioSend&&(t.capture=e.audio||!0),!1!==e.audioRecv&&(t.recv=!0)),(t.remove||t.capture||t.recv)&&n.push(t)),!e.keepVideo&&!1!==e.video&&(void 0===e.video||e.video||e.videoSend||e.videoRecv||e.addVideo||e.replaceVideo||e.removeVideo)&&(t={type:"video"},e.removeVideo?t.remove=!0:(e.addVideo?t.add=!0:e.replaceVideo&&(t.replace=!0),!1!==e.videoSend&&(t.capture=e.video||!0,["screen","window","desktop"].includes(t.capture)&&(t.type="screen",t.capture={video:{}},e.screenshareFrameRate&&(t.capture.frameRate=e.screenshareFrameRate),e.screenshareHeight&&(t.capture.height=e.screenshareHeight),e.screenshareWidth&&(t.capture.width=e.screenshareWidth))),!1!==e.videoRecv&&(t.recv=!0)),(t.remove||t.capture||t.recv)&&n.push(t)),e.data&&n.push({type:"data"})):(n.push({type:"audio",capture:!0,recv:!0}),n.push({type:"video",capture:!0,recv:!0})),n},No.trackConstraints=function(e){var t,n,r={};return e&&e.capture&&("audio"===e.type?r.audio=e.capture:"video"===e.type?((e.simulcast||e.svc)&&!0===e.capture&&(e.capture="hires"),!0===e.capture||"object"===m(e.capture)?r.video=e.capture:(t=0,n="lowres"===e.capture?(t=320,240):"lowres-16:9"===e.capture?(t=320,180):"hires"===e.capture||"hires-16:9"===e.capture||"hdres"===e.capture?(t=1280,720):"fhdres"===e.capture?(t=1920,1080):"4kres"===e.capture?(t=3840,2160):"stdres"===e.capture?(t=640,480):"stdres-16:9"===e.capture?(t=640,360):(No.log("Default video setting is stdres 4:3"),t=640,480),r.video={width:{min:2*t/3,ideal:t,max:1.5*t},height:{min:2*n/3,ideal:n,max:1.5*n},require:["width","height"],facingMode:"user"})):"screen"===e.type&&(r.video=e.capture)),r},No.noop=function(){},No.dataChanDefaultLabel="JanusDataChannel",No.endOfCandidates=null,No.stopAllTracks=function(e){try{var t,n=ko(e.getTracks());try{for(n.s();!(t=n.n()).done;){var r=t.value;No.log(r),r&&!0!==r.dontStop&&r.stop()}}catch(e){n.e(e)}finally{n.f()}}catch(e){}},No.init=function(e){if((e=e||{}).callback="function"==typeof e.callback?e.callback:No.noop,No.initDone)e.callback();else{if(void 0===console.log&&(console.log=function(){}),No.trace=No.noop,No.debug=No.noop,No.vdebug=No.noop,No.log=No.noop,No.warn=No.noop,No.error=No.noop,!0===e.debug||"all"===e.debug)No.trace=console.trace.bind(console),No.debug=console.debug.bind(console),No.vdebug=console.debug.bind(console),No.log=console.log.bind(console),No.warn=console.warn.bind(console),No.error=console.error.bind(console);else if(Array.isArray(e.debug)){var t,n=ko(e.debug);try{for(n.s();!(t=n.n()).done;){var r=t.value;switch(r){case"trace":No.trace=console.trace.bind(console);break;case"debug":No.debug=console.debug.bind(console);break;case"vdebug":No.vdebug=console.debug.bind(console);break;case"log":No.log=console.log.bind(console);break;case"warn":No.warn=console.warn.bind(console);break;case"error":No.error=console.error.bind(console);break;default:console.error("Unknown debugging option '"+r+"' (supported: 'trace', 'debug', 'vdebug', 'log', warn', 'error')")}}}catch(e){n.e(e)}finally{n.f()}}No.log("Initializing library");var o=e.dependencies||No.useDefaultDependencies(),i=(o=(No.isArray=o.isArray,No.webRTCAdapter=o.webRTCAdapter,No.httpAPICall=o.httpAPICall,No.newWebSocket=o.newWebSocket,No.extension=o.extension,No.extension,No.extension.init(),No.listDevices=function(e,t){e="function"==typeof e?e:No.noop,t=t||{audio:!0,video:!0},No.isGetUserMediaAvailable()?navigator.mediaDevices.getUserMedia(t).then((function(t){navigator.mediaDevices.enumerateDevices().then((function(n){No.debug(n),e(n),No.stopAllTracks(t)}))})).catch((function(t){No.error(t),e([])})):(No.warn("navigator.mediaDevices unavailable"),e([]))},No.attachMediaStream=function(e,t){try{e.srcObject=t}catch(r){try{var n=[];n.push(t),e.src=URL.createObjectURL(new Blob(n))}catch(e){No.error("Error attaching stream to element",e)}}},No.reattachMediaStream=function(e,t){try{e.srcObject=t.srcObject}catch(n){try{e.src=t.src}catch(e){No.error("Error reattaching stream to element",e)}}},0<=["iPad","iPhone","iPod"].indexOf(navigator.platform)?"pagehide":"beforeunload"),window["on"+o]);if(window.addEventListener(o,(function(){for(var e in No.log("Closing window"),No.sessions)No.sessions[e]&&No.sessions[e].destroyOnUnload&&(No.log("Destroying session "+e),No.sessions[e].destroy({unload:!0,notifyDestroyed:!1}));i&&"function"==typeof i&&i()})),No.safariVp8=!1,"safari"===No.webRTCAdapter.browserDetails.browser&&605<=No.webRTCAdapter.browserDetails.version)if(RTCRtpSender&&RTCRtpSender.getCapabilities&&RTCRtpSender.getCapabilities("video")&&RTCRtpSender.getCapabilities("video").codecs&&RTCRtpSender.getCapabilities("video").codecs.length){var s,a=ko(RTCRtpSender.getCapabilities("video").codecs);try{for(a.s();!(s=a.n()).done;){var u=s.value;if(u&&u.mimeType&&"video/vp8"===u.mimeType.toLowerCase()){No.safariVp8=!0;break}}}catch(e){a.e(e)}finally{a.f()}No.safariVp8?No.log("This version of Safari supports VP8"):No.warn("This version of Safari does NOT support VP8: if you're using a Technology Preview, try enabling the 'WebRTC VP8 codec' setting in the 'Experimental Features' Develop menu")}else{var c=new RTCPeerConnection({});c.createOffer({offerToReceiveVideo:!0}).then((function(e){No.safariVp8=-1!==e.sdp.indexOf("VP8"),No.safariVp8?No.log("This version of Safari supports VP8"):No.warn("This version of Safari does NOT support VP8: if you're using a Technology Preview, try enabling the 'WebRTC VP8 codec' setting in the 'Experimental Features' Develop menu"),c.close(),c=null}))}No.initDone=!0,e.callback()}},No.isWebrtcSupported=function(){return!!window.RTCPeerConnection},No.isGetUserMediaAvailable=function(){return navigator.mediaDevices&&navigator.mediaDevices.getUserMedia},No.randomString=function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="",r=0;r=n&&parseInt(e[n],10)}function f(e,t,n){var r,o;e.RTCPeerConnection&&(e=e.RTCPeerConnection.prototype,r=e.addEventListener,e.addEventListener=function(e,o){if(e!==t)return r.apply(this,arguments);function i(e){(e=n(e))&&(o.handleEvent?o.handleEvent(e):o(e))}return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(o,i),r.apply(this,[e,i])},o=e.removeEventListener,e.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return o.apply(this,arguments);if(!this._eventMap[t].has(n))return o.apply(this,arguments);var r=this._eventMap[t].get(n);return this._eventMap[t].delete(n),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,o.apply(this,[e,r])},Object.defineProperty(e,"on"+t,{get:function(){return this["_on"+t]},set:function(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0}))}function l(e){return"boolean"!=typeof e?new Error("Argument type: "+_typeof(e)+". Please use a boolean."):(a=e)?"adapter.js logging disabled":"adapter.js logging enabled"}function d(e){return"boolean"!=typeof e?new Error("Argument type: "+_typeof(e)+". Please use a boolean."):(u=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function p(){"object"==("undefined"==typeof window?"undefined":_typeof(window))&&(a||"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments))}function h(e,t){u&&console.warn(e+" is deprecated, please use "+t+" instead.")}function g(e){return"[object Object]"===Object.prototype.toString.call(e)}function y(e,t,n){var r=n?"outbound-rtp":"inbound-rtp",o=new Map;if(null===t)return o;var i=[];return e.forEach((function(e){"track"===e.type&&e.trackIdentifier===t.id&&i.push(e)})),i.forEach((function(t){e.forEach((function(n){n.type===r&&n.trackId===t.id&&function e(t,n,r){n&&!r.has(n.id)&&(r.set(n.id,n),Object.keys(n).forEach((function(o){o.endsWith("Id")?e(t,t.get(n[o]),r):o.endsWith("Ids")&&n[o].forEach((function(n){e(t,t.get(n),r)}))})))}(e,n,o)}))})),o}var m=p;function v(e,t){var n,r,o,i,s=e&&e.navigator;s.mediaDevices&&(n=function(e){if("object"!=_typeof(e)||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach((function(n){var r,o,i;"require"!==n&&"advanced"!==n&&"mediaSource"!==n&&(void 0!==(r="object"==_typeof(e[n])?e[n]:{ideal:e[n]}).exact&&"number"==typeof r.exact&&(r.min=r.max=r.exact),o=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t},void 0!==r.ideal&&(t.optional=t.optional||[],i={},"number"==typeof r.ideal?(i[o("min",n)]=r.ideal,t.optional.push(i),(i={})[o("max",n)]=r.ideal):i[o("",n)]=r.ideal,t.optional.push(i)),void 0!==r.exact&&"number"!=typeof r.exact?(t.mandatory=t.mandatory||{},t.mandatory[o("",n)]=r.exact):["min","max"].forEach((function(e){void 0!==r[e]&&(t.mandatory=t.mandatory||{},t.mandatory[o(e,n)]=r[e])})))})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},r=function(e,r){if(61<=t.version)return r(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==_typeof(e.audio)&&((a=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])})((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),a(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=n(e.audio)),e&&"object"==_typeof(e.video)){var o,i=(i=e.video.facingMode)&&("object"==_typeof(i)?i:{ideal:i}),a=t.version<66;if(i&&("user"===i.exact||"environment"===i.exact||"user"===i.ideal||"environment"===i.ideal)&&(!s.mediaDevices.getSupportedConstraints||!s.mediaDevices.getSupportedConstraints().facingMode||a)&&(delete e.video.facingMode,"environment"===i.exact||"environment"===i.ideal?o=["back","rear"]:"user"!==i.exact&&"user"!==i.ideal||(o=["front"]),o))return s.mediaDevices.enumerateDevices().then((function(t){var s=(t=t.filter((function(e){return"videoinput"===e.kind}))).find((function(e){return o.some((function(t){return e.label.toLowerCase().includes(t)}))}));return(s=!s&&t.length&&o.includes("back")?t[t.length-1]:s)&&(e.video.deviceId=i.exact?{exact:s.deviceId}:{ideal:s.deviceId}),e.video=n(e.video),m("chrome: "+JSON.stringify(e)),r(e)}));e.video=n(e.video)}return m("chrome: "+JSON.stringify(e)),r(e)},o=function(e){return 64<=t.version?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}},s.getUserMedia=function(e,t,n){r(e,(function(e){s.webkitGetUserMedia(e,t,(function(e){n&&n(o(e))}))}))}.bind(s),s.mediaDevices.getUserMedia&&(i=s.mediaDevices.getUserMedia.bind(s.mediaDevices),s.mediaDevices.getUserMedia=function(e){return r(e,(function(e){return i(e).then((function(t){if(e.audio&&!t.getAudioTracks().length||e.video&&!t.getVideoTracks().length)throw t.getTracks().forEach((function(e){e.stop()})),new DOMException("","NotFoundError");return t}),(function(e){return Promise.reject(o(e))}))}))}))}function b(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"==typeof t?e.navigator.mediaDevices.getDisplayMedia=function(n){return t(n).then((function(t){var r=n.video&&n.video.width,o=n.video&&n.video.height,i=n.video&&n.video.frameRate;return n.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:i||3}},r&&(n.video.mandatory.maxWidth=r),o&&(n.video.mandatory.maxHeight=o),e.navigator.mediaDevices.getUserMedia(n)}))}:console.error("shimGetDisplayMedia: getSourceId argument is not a function"))}function w(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function _(e){var t;"object"!=_typeof(e)||!e.RTCPeerConnection||"ontrack"in e.RTCPeerConnection.prototype?f(e,"track",(function(e){return e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e})):(Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0}),t=e.RTCPeerConnection.prototype.setRemoteDescription,e.RTCPeerConnection.prototype.setRemoteDescription=function(){var n=this;return this._ontrackpoly||(this._ontrackpoly=function(t){t.stream.addEventListener("addtrack",(function(r){var o=e.RTCPeerConnection.prototype.getReceivers?n.getReceivers().find((function(e){return e.track&&e.track.id===r.track.id})):{track:r.track},i=new Event("track");i.track=r.track,i.receiver=o,i.transceiver={receiver:o},i.streams=[t.stream],n.dispatchEvent(i)})),t.stream.getTracks().forEach((function(r){var o=e.RTCPeerConnection.prototype.getReceivers?n.getReceivers().find((function(e){return e.track&&e.track.id===r.id})):{track:r},i=new Event("track");i.track=r,i.receiver=o,i.transceiver={receiver:o},i.streams=[t.stream],n.dispatchEvent(i)}))},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)})}function C(e){var t,n,r,o,i,s;"object"==_typeof(e)&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype?(t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}},e.RTCPeerConnection.prototype.getSenders||(e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()},n=e.RTCPeerConnection.prototype.addTrack,e.RTCPeerConnection.prototype.addTrack=function(e,r){var o=n.apply(this,arguments);return o||(o=t(this,e),this._senders.push(o)),o},r=e.RTCPeerConnection.prototype.removeTrack,e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments),-1!==(e=this._senders.indexOf(e))&&this._senders.splice(e,1)}),o=e.RTCPeerConnection.prototype.addStream,e.RTCPeerConnection.prototype.addStream=function(e){var n=this;this._senders=this._senders||[],o.apply(this,[e]),e.getTracks().forEach((function(e){n._senders.push(t(n,e))}))},i=e.RTCPeerConnection.prototype.removeStream,e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;this._senders=this._senders||[],i.apply(this,[e]),e.getTracks().forEach((function(e){var n=t._senders.find((function(t){return t.track===e}));n&&t._senders.splice(t._senders.indexOf(n),1)}))}):"object"==_typeof(e)&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)&&(s=e.RTCPeerConnection.prototype.getSenders,e.RTCPeerConnection.prototype.getSenders=function(){var e=this,t=s.apply(this,[]);return t.forEach((function(t){return t._pc=e})),t},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}}))}function S(e){var t;e.RTCPeerConnection&&(t=e.RTCPeerConnection.prototype.getStats,e.RTCPeerConnection.prototype.getStats=function(){var e=this,n=(o=Array.prototype.slice.call(arguments))[0],r=o[1],o=o[2];if(0= 1.0");if("maxFramerate"in e&&!(0<=parseFloat(e.maxFramerate)))throw new RangeError("max_framerate must be >= 0.0")})),t.apply(this,arguments));return r&&("encodings"in(r=(e=o.sender).getParameters())&&(1!==r.encodings.length||0!==Object.keys(r.encodings[0]).length)||(r.encodings=n,e.sendEncodings=n,this.setParametersPromises.push(e.setParameters(r).then((function(){delete e.sendEncodings})).catch((function(){delete e.sendEncodings}))))),o})}function U(e){var t;"object"!=_typeof(e)||!e.RTCRtpSender||(t=e.RTCRtpSender.prototype.getParameters)&&(e.RTCRtpSender.prototype.getParameters=function(){var e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function F(e){var t;"object"==_typeof(e)&&e.RTCPeerConnection&&(t=e.RTCPeerConnection.prototype.createOffer,e.RTCPeerConnection.prototype.createOffer=function(){var e=arguments,n=this;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((function(){return t.apply(n,e)})).finally((function(){n.setParametersPromises=[]})):t.apply(this,arguments)})}function B(e){var t;"object"==_typeof(e)&&e.RTCPeerConnection&&(t=e.RTCPeerConnection.prototype.createAnswer,e.RTCPeerConnection.prototype.createAnswer=function(){var e=arguments,n=this;return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((function(){return t.apply(n,e)})).finally((function(){n.setParametersPromises=[]})):t.apply(this,arguments)})}function G(e){var t;"object"==_typeof(e)&&e.RTCPeerConnection&&("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),"addStream"in e.RTCPeerConnection.prototype||(t=e.RTCPeerConnection.prototype.addTrack,e.RTCPeerConnection.prototype.addStream=function(e){var n=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((function(r){return t.call(n,r,e)})),e.getVideoTracks().forEach((function(r){return t.call(n,r,e)}))},e.RTCPeerConnection.prototype.addTrack=function(e){for(var n=this,r=arguments.length,o=new Array(1>24]),e}))}function ee(e,t){var n;e.RTCPeerConnection&&("sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get:function(){return void 0===this._sctp?null:this._sctp}}),n=e.RTCPeerConnection.prototype.setRemoteDescription,e.RTCPeerConnection.prototype.setRemoteDescription=function(){var e,r,o,i,s;return this._sctp=null,"chrome"===t.browser&&76<=t.version&&"plan-b"===this.getConfiguration().sdpSemantics&&Object.defineProperty(this,"sctp",{get:function(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0}),function(e){return!(!e||!e.sdp)&&((e=X.a.splitSections(e.sdp)).shift(),e.some((function(e){return(e=X.a.parseMLine(e))&&"application"===e.kind&&-1!==e.protocol.indexOf("SCTP")})))}(arguments[0])&&(r=function(e){return null===(e=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/))||e.length<2||(e=parseInt(e[1],10))!=e?-1:e}(arguments[0]),i=r,s=65536,i=s="firefox"===t.browser?t.version<57?-1===i?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637:s,s=arguments[0],r=r,o=65536,"firefox"===t.browser&&57===t.version&&(o=65535),0<(s=X.a.matchPrefix(s.sdp,"a=max-message-size:")).length?o=parseInt(s[0].substring(19),10):"firefox"===t.browser&&-1!==r&&(o=2147483637),s=o,e=0===i&&0===s?Number.POSITIVE_INFINITY:0===i||0===s?Math.max(i,s):Math.min(i,s),r={},Object.defineProperty(r,"maxMessageSize",{get:function(){return e}}),this._sctp=r),n.apply(this,arguments)})}function te(e){var t;function n(e,t){var n=e.send;e.send=function(){var r=(r=arguments[0]).length||r.size||r.byteLength;if("open"===e.readyState&&t.sctp&&r>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return n.apply(e,arguments)}}e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype&&(t=e.RTCPeerConnection.prototype.createDataChannel,e.RTCPeerConnection.prototype.createDataChannel=function(){var e=t.apply(this,arguments);return n(e,this),e},f(e,"datachannel",(function(e){return n(e.channel,e.target),e})))}function ne(e){var t;!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype||(t=e.RTCPeerConnection.prototype,Object.defineProperty(t,"connectionState",{get:function(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get:function(){return this._onconnectionstatechange||null},set:function(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach((function(e){var n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=function(e){var t,n=e.target;return n._lastConnectionState!==n.connectionState&&(n._lastConnectionState=n.connectionState,t=new Event("connectionstatechange",e),n.dispatchEvent(t)),e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),n.apply(this,arguments)}})))}function re(e,t){var n;e.RTCPeerConnection&&("chrome"===t.browser&&71<=t.version||"safari"===t.browser&&605<=t.version||(n=e.RTCPeerConnection.prototype.setRemoteDescription,e.RTCPeerConnection.prototype.setRemoteDescription=function(t){var r;return t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")&&(r=t.sdp.split("\n").filter((function(e){return"a=extmap-allow-mixed"!==e.trim()})).join("\n"),e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:r}):t.sdp=r),n.apply(this,arguments)}))}function oe(e,t){var n;e.RTCPeerConnection&&e.RTCPeerConnection.prototype&&(n=e.RTCPeerConnection.prototype.addIceCandidate)&&0!==n.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function ie(e,t){var n;e.RTCPeerConnection&&e.RTCPeerConnection.prototype&&(n=e.RTCPeerConnection.prototype.setLocalDescription)&&0!==n.length&&(e.RTCPeerConnection.prototype.setLocalDescription=function(){var e=this,t=arguments[0]||{};if("object"!=_typeof(t)||t.type&&t.sdp)return n.apply(this,arguments);if(!(t={type:t.type,sdp:t.sdp}).type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":t.type="offer";break;default:t.type="answer"}return t.sdp||"offer"!==t.type&&"answer"!==t.type?n.apply(this,[t]):("offer"===t.type?this.createOffer:this.createAnswer).apply(this).then((function(t){return n.apply(e,[t])}))})}n=function(e,t){var n=(0