var PlayerControl=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=111)}([function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(57);function i(t,e){for(var n=0;n=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return N(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(t).length;default:if(r)return N(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:m(t,e,n,r,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var f=!0,h=0;hi&&(r=i):r=i;var o=e.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function x(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128===(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(t){var e=t.length;if(e<=A)return String.fromCharCode.apply(String,t);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return D(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return k(this,e,n);case"latin1":case"binary":return C(this,e,n);case"base64":return x(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=t.slice(e,n),f=0;fi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return S(this,t,e,n);case"base64":return _(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function k(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;ir)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function I(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function M(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function O(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function P(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(t,e,n,r,o){return o||P(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function U(t,e,n,r,o){return o||P(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||I(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):O(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);I(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);I(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):O(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return F(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return F(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return U(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return U(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=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),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(j,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function V(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(36))},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(13).default,i=n(197);t.exports=function(t,e){if(e&&("object"===r(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(198);t.exports=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){(function(e){t.exports=function(){var t=t||function(t,r){var i;if("undefined"!==typeof window&&window.crypto&&(i=window.crypto),"undefined"!==typeof self&&self.crypto&&(i=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!==typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&"undefined"!==typeof e&&e.crypto&&(i=e.crypto),!i)try{i=n(217)}catch(t){}var o=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(t){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),s={},u=s.lib={},c=u.Base={extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},l=u.WordArray=c.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o>>2]>>>24-o%4*8&255;e[r+o>>>2]|=a<<24-(r+o)%4*8}else for(var s=0;s>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=c.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new l.init(n,e/2)}},d=f.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new l.init(n,e)}},p=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(d.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return d.parse(unescape(encodeURIComponent(t)))}},v=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=4*a,u=o/s,c=(u=e?t.ceil(u):t.max((0|u)-this._minBufferSize,0))*a,f=t.min(4*c,o);if(c){for(var h=0;h>15;--o>=0;){var u=32767&this[t],c=this[t++]>>15,l=s*u+c*a;i=((u=a*u+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+s*c+(i>>>30),n[r++]=1073741823&u}return i},e=30):i&&"Netscape"!=navigator.appName?(n.prototype.am=function(t,e,n,r,i,o){for(;--o>=0;){var a=e*this[t++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},e=26):(n.prototype.am=function(t,e,n,r,i,o){for(var a=16383&e,s=e>>14;--o>=0;){var u=16383&this[t],c=this[t++]>>14,l=s*u+c*a;i=((u=a*u+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+s*c,n[r++]=268435455&u}return i},e=28),n.prototype.DB=e,n.prototype.DM=(1<>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}function d(t){this.m=t}function p(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function w(t){for(var e=0;0!=t;)t&=t-1,++e;return e}function S(){}function _(t){return t}function E(t){this.r2=r(),this.q3=r(),n.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t),this.m=t}d.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},d.prototype.revert=function(t){return t},d.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},d.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},d.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},p.prototype.convert=function(t){var e=r();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(n.ZERO)>0&&this.m.subTo(e,e),e},p.prototype.revert=function(t){var e=r();return t.copyTo(e),this.reduce(e),e},p.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},p.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},p.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},n.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},n.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},n.prototype.fromString=function(t,e){var r;if(16==e)r=4;else if(8==e)r=3;else if(256==e)r=8;else if(2==e)r=1;else if(32==e)r=5;else{if(4!=e)return void this.fromRadix(t,e);r=2}this.t=0,this.s=0;for(var i=t.length,o=!1,a=0;--i>=0;){var s=8==r?255&t[i]:l(t,i);s<0?"-"==t.charAt(i)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+r>this.DB?(this[this.t-1]|=(s&(1<>this.DB-a):this[this.t-1]|=s<=this.DB&&(a-=this.DB))}8==r&&0!=(128&t[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},n.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},n.prototype.drShiftTo=function(t,e){for(var n=t;n=0;--n)e[n+a+1]=this[n]>>i|s,s=(this[n]&o)<=0;--n)e[n]=0;e[a]=s,e.t=this.t+a+1,e.s=this.s,e.clamp()},n.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,o=(1<>r;for(var a=n+1;a>r;r>0&&(e[this.t-n-1]|=(this.s&o)<>=this.DB;if(t.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},n.prototype.multiplyTo=function(t,e){var r=this.abs(),i=t.abs(),o=r.t;for(e.t=o+i.t;--o>=0;)e[o]=0;for(o=0;o=0;)t[n]=0;for(n=0;n=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},n.prototype.divRemTo=function(t,e,i){var o=t.abs();if(!(o.t<=0)){var a=this.abs();if(a.t0?(o.lShiftTo(l,s),a.lShiftTo(l,i)):(o.copyTo(s),a.copyTo(i));var f=s.t,d=s[f-1];if(0!=d){var p=d*(1<1?s[f-2]>>this.F2:0),v=this.FV/p,g=(1<=0&&(i[i.t++]=1,i.subTo(w,i)),n.ONE.dlShiftTo(f,w),w.subTo(s,s);s.t=0;){var S=i[--y]==d?this.DM:Math.floor(i[y]*v+(i[y-1]+m)*g);if((i[y]+=s.am(0,S,i,b,0,f))0&&i.rShiftTo(l,i),u<0&&n.ZERO.subTo(i,i)}}},n.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},n.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},n.prototype.exp=function(t,e){if(t>4294967295||t<1)return n.ONE;var i=r(),o=r(),a=e.convert(this),s=h(t)-1;for(a.copyTo(i);--s>=0;)if(e.sqrTo(i,o),(t&1<0)e.mulTo(o,a,i);else{var u=i;i=o,o=u}return e.revert(i)},n.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<0)for(s>s)>0&&(i=!0,o=c(n));a>=0;)s>(s+=this.DB-e)):(n=this[a]>>(s-=e)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=c(n));return i?o:"0"},n.prototype.negate=function(){var t=r();return n.ZERO.subTo(this,t),t},n.prototype.abs=function(){return this.s<0?this.negate():this},n.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},n.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+h(this[this.t-1]^this.s&this.DM)},n.prototype.mod=function(t){var e=r();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(n.ZERO)>0&&t.subTo(e,e),e},n.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new d(e):new p(e),this.exp(t,n)},n.ZERO=f(0),n.ONE=f(1),S.prototype.convert=_,S.prototype.revert=_,S.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},S.prototype.sqrTo=function(t,e){t.squareTo(e)},E.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=r();return t.copyTo(e),this.reduce(e),e},E.prototype.revert=function(t){return t},E.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},E.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},E.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)};var x,T,A,k=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],C=(1<<26)/k[k.length-1];function D(){var t;t=(new Date).getTime(),T[A++]^=255&t,T[A++]^=t>>8&255,T[A++]^=t>>16&255,T[A++]^=t>>24&255,A>=F&&(A-=F)}if(n.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},n.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),i=f(n),o=r(),a=r(),s="";for(this.divRemTo(i,o,a);o.signum()>0;)s=(n+a.intValue()).toString(t).substr(1)+s,o.divRemTo(i,o,a);return a.intValue().toString(t)+s},n.prototype.fromRadix=function(t,e){this.fromInt(0),null==e&&(e=10);for(var r=this.chunkSize(e),i=Math.pow(e,r),o=!1,a=0,s=0,u=0;u=r&&(this.dMultiply(i),this.dAddOffset(s,0),a=0,s=0))}a>0&&(this.dMultiply(Math.pow(e,a)),this.dAddOffset(s,0)),o&&n.ZERO.subTo(this,this)},n.prototype.fromNumber=function(t,e,r){if("number"==typeof e)if(t<2)this.fromInt(1);else for(this.fromNumber(t,r),this.testBit(t-1)||this.bitwiseTo(n.ONE.shiftLeft(t-1),g,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>t&&this.subTo(n.ONE.shiftLeft(t-1),this);else{var i=new Array,o=7&t;i.length=1+(t>>3),e.nextBytes(i),o>0?i[0]&=(1<>=this.DB;if(t.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},n.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},n.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},n.prototype.multiplyLowerTo=function(t,e,n){var r,i=Math.min(this.t+t.t,e);for(n.s=0,n.t=i;i>0;)n[--i]=0;for(r=n.t-this.t;i=0;)n[r]=0;for(r=Math.max(e-this.t,0);r0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},n.prototype.millerRabin=function(t){var e=this.subtract(n.ONE),i=e.getLowestSetBit();if(i<=0)return!1;var o=e.shiftRight(i);(t=t+1>>1)>k.length&&(t=k.length);for(var a=r(),s=0;s>24},n.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},n.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},n.prototype.toByteArray=function(){var t=this.t,e=new Array;e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<=0;)r<8?(n=(this[t]&(1<>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},n.prototype.equals=function(t){return 0==this.compareTo(t)},n.prototype.min=function(t){return this.compareTo(t)<0?this:t},n.prototype.max=function(t){return this.compareTo(t)>0?this:t},n.prototype.and=function(t){var e=r();return this.bitwiseTo(t,v,e),e},n.prototype.or=function(t){var e=r();return this.bitwiseTo(t,g,e),e},n.prototype.xor=function(t){var e=r();return this.bitwiseTo(t,m,e),e},n.prototype.andNot=function(t){var e=r();return this.bitwiseTo(t,y,e),e},n.prototype.not=function(){for(var t=r(),e=0;e=this.t?0!=this.s:0!=(this[e]&1<1){var v=r();for(i.sqrTo(s[1],v);u<=l;)s[u]=r(),i.mulTo(v,s[u-2],s[u]),u+=2}var g,m,y=t.t-1,b=!0,w=r();for(o=h(t[y])-1;y>=0;){for(o>=c?g=t[y]>>o-c&l:(g=(t[y]&(1<0&&(g|=t[y-1]>>this.DB+o-c)),u=n;0==(1&g);)g>>=1,--u;if((o-=u)<0&&(o+=this.DB,--y),b)s[g].copyTo(a),b=!1;else{for(;u>1;)i.sqrTo(a,w),i.sqrTo(w,a),u-=2;u>0?i.sqrTo(a,w):(m=a,a=w,w=m),i.mulTo(w,s[g],a)}for(;y>=0&&0==(t[y]&1<=0?(r.subTo(i,r),e&&o.subTo(s,o),a.subTo(u,a)):(i.subTo(r,i),e&&s.subTo(o,s),u.subTo(a,u))}return 0!=i.compareTo(n.ONE)?n.ZERO:u.compareTo(t)>=0?u.subtract(t):u.signum()<0?(u.addTo(t,u),u.signum()<0?u.add(t):u):u},n.prototype.pow=function(t){return this.exp(t,new S)},n.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return e;for(i0&&(e.rShiftTo(o,e),n.rShiftTo(o,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},n.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=k[k.length-1]){for(e=0;e>>8,T[A++]=255&B;A=0,D()}function M(){if(null==x){for(D(),(x=new P).init(T),A=0;A>>2];t.sigBytes-=e}},m=(n.BlockCipher=f.extend({cfg:f.cfg.extend({mode:p,padding:g}),reset:function(){var t;f.reset.call(this);var e=this.cfg,n=e.iv,r=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=r.createEncryptor:(t=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(r,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),n.CipherParams=r.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),y=e.format={},b=y.OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(e):e).toString(u)},parse:function(t){var e,n=u.parse(t),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(e=i.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:e})}},w=n.SerializableCipher=r.extend({cfg:r.extend({format:b}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=t.createEncryptor(n,r),o=i.finalize(e),a=i.cfg;return m.create({ciphertext:o,key:n,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=t.createDecryptor(n,r).finalize(e.ciphertext);return i},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),S=e.kdf={},_=S.OpenSSL={execute:function(t,e,n,r,o){if(r||(r=i.random(8)),o)var a=l.create({keySize:e+n,hasher:o}).compute(t,r);else var a=l.create({keySize:e+n}).compute(t,r);var s=i.create(a.words.slice(e),4*n);return a.sigBytes=4*e,m.create({key:a,iv:s,salt:r})}},E=n.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:_}),encrypt:function(t,e,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,t.keySize,t.ivSize,r.salt,r.hasher);r.iv=i.iv;var o=w.encrypt.call(this,t,e,i.key,r);return o.mixIn(i),o},decrypt:function(t,e,n,r){r=this.cfg.extend(r),e=this._parse(e,r.format);var i=r.kdf.execute(n,t.keySize,t.ivSize,e.salt,r.hasher);r.iv=i.iv;var o=w.decrypt.call(this,t,e,i.key,r);return o}})}()))}()},function(t,e,n){"use strict";var r,i=n(59),o=Object.prototype.toString,a=(r=Object.create(null),function(t){var e=o.call(t);return r[e]||(r[e]=e.slice(8,-1).toLowerCase())});function s(t){return t=t.toLowerCase(),function(e){return a(e)===t}}function u(t){return Array.isArray(t)}function c(t){return"undefined"===typeof t}var l=s("ArrayBuffer");function f(t){return null!==t&&"object"===typeof t}function h(t){if("object"!==a(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var d=s("Date"),p=s("File"),v=s("Blob"),g=s("FileList");function m(t){return"[object Function]"===o.call(t)}var y=s("URLSearchParams");function b(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),u(t))for(var n=0,r=t.length;n0;)a[o=r[i]]||(e[o]=t[o],a[o]=!0);t=Object.getPrototypeOf(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:a,kindOfTest:s,endsWith:function(t,e,n){t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;var r=t.indexOf(e,n);return-1!==r&&r===n},toArray:function(t){if(!t)return null;var e=t.length;if(c(e))return null;for(var n=new Array(e);e-- >0;)n[e]=t[e];return n},isTypedArray:S,isFileList:g}},function(t,e,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(2)),a=function(){return(0,o.default)(function t(){(0,i.default)(this,t)},[{key:"type",value:function(){}},{key:"parse",value:function(){}},{key:"build",value:function(){}},{key:"bufferSize",value:function(){}}])}();t.exports=a},function(t,e){function n(e){return t.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var r=n(0);Object.defineProperty(e,"__esModule",{value:!0}),e.BrowserDetect=function(){var t=navigator.userAgent.toLowerCase(),e=navigator.appName,n=null;"Microsoft Internet Explorer"===e||t.indexOf("trident")>-1||t.indexOf("edge/")>-1?(n="ie","Microsoft Internet Explorer"===e?(t=/msie ([0-9]{1,}[\.0-9]{0,})/.exec(t),n+=parseInt(t[1])):t.indexOf("trident")>-1?n+=11:t.indexOf("edge/")>-1&&(n="edge")):t.indexOf("safari")>-1?n=t.indexOf("chrome")>-1?"chrome":"safari":t.indexOf("firefox")>-1&&(n="firefox");return n},e.BrowserDetectDetail=function(){var t=navigator.userAgent.toLowerCase(),e=navigator.platform.toLowerCase(),n=t.match(/(opera|ie|trident|firefox|chrome|version)[\s\/:]([\w\d\.]+)?.*?(safari|version[\s\/:]([\w\d\.]+)|rv:(\d.?)|$)/)||[null,"unknown",0],r=("ie"==n[1]||"trident"==n[1])&&document.documentMode,i={name:"version"==n[1]?n[3]:"trident"==n[1]?"ie":n[1],version:r||parseFloat("opera"==n[1]&&n[4]?n[4]:"trident"==n[1]&&n[5]?n[5]:n[2]),Platform:{name:t.match(/ip(?:ad|od|hone)/)?"ios":(t.match(/(?:webos|android)/)||e.match(/mac|win|linux/)||["other"])[0]}};i[i.name]=!0,i[i.name+parseInt(i.version,10)]=!0,i.Platform[i.Platform.name]=!0,i.Platform.ios&&(i.Platform.ipod=!0);i.Engine={};var o=function(t,e){i.Engine.name=t,i.Engine[t+e]=!0,i.Engine.version=e};if(i.ie)switch(i.Engine.trident=!0,i.version){case 6:o("trident",4);break;case 7:o("trident",5);break;case 8:o("trident",6)}i.firefox&&(i.Engine.gecko=!0,i.version>=3?o("gecko",19):o("gecko",18));if(i.safari||i.chrome)switch(i.Engine.webkit=!0,i.version){case 2:o("webkit",419);break;case 3:o("webkit",420);break;case 4:o("webkit",525)}i.opera&&(i.Engine.presto=!0,i.version>=9.6?o("presto",960):i.version>=9.5?o("presto",950):o("presto",925));if("unknown"==i.name)switch((t.match(/(?:webkit|khtml|gecko)/)||[])[0]){case"webkit":case"khtml":i.Engine.webkit=!0;break;case"gecko":i.Engine.gecko=!0}return i},e.CommonAudioUtil=function(){var t=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384],e=function(t,e,n){var r=0,i=0;for(r=0;r0?n:8191&-n,t,15)-6,a=o+(r>>6&15)-13,s=(0===i?32:o>=0?i>>o:i<<-o)*(r&parseInt("077",8))+48>>4,u=a>=0?s<>-a,(n^r)<0?-u:u};this.g726InitState=function(){var t={},e=0;for(t.pp=new Array(2),t.zp=new Array(6),t.pk=new Array(2),t.dq=new Array(6),t.sr=new Array(2),t.yl=34816,t.yu=544,t.dms=0,t.dml=0,t.ppp=0,e=0;e<2;e++)t.pp[e]=0,t.pk[e]=0,t.sr[e]=32;for(e=0;e<6;e++)t.zp[e]=0,t.dq[e]=32;return t.td=0,t},this.predictorZero=function(t){var e=0,r=0;for(r=n(t.zp[0]>>2,t.dq[0]),e=1;e<6;e++)r+=n(t.zp[e]>>2,t.dq[e]);return r},this.predictorPole=function(t){return n(t.pp[1]>>2,t.sr[1])+n(t.pp[0]>>2,t.sr[0])},this.stepSize=function(t){var e=0,n=0,r=0;return t.ppp>=256?t.yu:(e=t.yl>>6,n=t.yu-e,r=t.ppp>>2,n>0?e+=n*r>>6:n<0&&(e+=n*r+63>>6),e)},this.quantize=function(n,r,i,o){var a=0,s=0,u=0;return a=Math.abs(n),s=e(a>>1,t,15),u=e((s<<7)+(a<<7>>s&127)-(r>>2),i,o),n<0?1+(o<<1)-u:0===u?1+(o<<1):u},this.reconstruct=function(t,e,n){var r=0,i=0;return(r=e+(n>>2))<0?t?-32768:0:(i=128+(127&r)<<7>>14-(r>>7&15),t?i-32768:i)},this.update=function(n,r,i,o,a,s,u,c){var l=0,f=0,h=0,d=0,p=0,v=0,g=0,m=0,y=0,b=0,w=0,S=0,_=0,E=0;if(E=u<0?1:0,f=32767&a,y=c.yl>>15,S=c.yl>>10&31,_=32+S<9?31744:_)+(b>>1)>>1,m=0===c.td?0:f<=w?0:1,c.yu=r+(i-r>>5),c.yu<544?c.yu=544:c.yu>5120&&(c.yu=5120),c.yl+=c.yu+(-c.yl>>6),1===m)c.pp[0]=0,c.pp[1]=0,c.zp[0]=0,c.zp[1]=0,c.zp[2]=0,c.zp[3]=0,c.zp[4]=0,c.zp[5]=0,d=0;else for(v=E^c.pk[0],d=c.pp[1]-(c.pp[1]>>7),0!==u&&((g=v?c.pp[0]:-c.pp[0])<-8191?d-=256:d+=g>8191?255:g>>5,E^c.pk[1]?d<=-12160?d=-12288:d>=12416?d=12288:d-=128:d<=-12416?d=-12288:d>=12160?d=12288:d+=128),c.pp[1]=d,c.pp[0]-=c.pp[0]>>8,0!==u&&(0===v?c.pp[0]+=192:c.pp[0]-=192),p=15360-d,c.pp[0]<-p?c.pp[0]=-p:c.pp[0]>p&&(c.pp[0]=p),l=0;l<6;l++)c.zp[l]-=5===n?c.zp[l]>>9:c.zp[l]>>8,32767&a&&((a^c.dq[l])>=0?c.zp[l]+=128:c.zp[l]-=128);for(l=5;l>0;l--)c.dq[l]=c.dq[l-1];return 0===f?c.dq[0]=a>=0?32:64544:(h=e(f,t,15),c.dq[0]=a>=0?(h<<6)+(f<<6>>h):(h<<6)+(f<<6>>h)-1024),c.sr[1]=c.sr[0],0===s?c.sr[0]=32:s>0?(h=e(s,t,15),c.sr[0]=(h<<6)+(s<<6>>h)):s>-32768?(h=e(f=-s,t,15),c.sr[0]=(h<<6)+(f<<6>>h)-1024):c.sr[0]=64544,c.pk[1]=c.pk[0],c.pk[0]=E,c.td=1===m?0:d<-11776?1:0,c.dms+=o-c.dms>>5,c.dml+=(o<<2)-c.dml>>7,1===m?c.ppp=256:r<1536?c.ppp+=512-c.ppp>>4:1===c.td?c.ppp+=512-c.ppp>>4:Math.abs((c.dms<<2)-c.dml)>=c.dml>>3?c.ppp+=512-c.ppp>>4:c.ppp+=-c.ppp>>4,c}},e.Texture=e.Shader=e.Script=e.Queue=e.Program=e.PLAYER_STATE_CODE=void 0,e.VideoBufferList=function(){var t=0,e=0,n=null;function r(){t=360,e=240,n=null,this._length=0,this.head=null,this.tail=null,this.curIdx=0}return r.prototype={push:function(t,r,i,o,a,s){var u=new VideoBufferNode(t,r,i,o,a,s);return this._length>0?(this.tail.next=u,u.previous=this.tail,this.tail=u):(this.head=u,this.tail=u),this._length+=1,null!==n&&this._length>=e&&n(),u},pop:function(){var t=null;return this._length>1&&(t=this.head,this.head=this.head.next,null!==this.head?this.head.previous=null:this.tail=null,this._length-=1),t},setMaxLength:function(e){(t=e)>360?t=360:t<30&&(t=30)},setBUFFERING:function(t){(e=t)>240?e=240:e<6&&(e=6)},setBufferFullCallback:function(t){n=t},searchTimestamp:function(t){var e=this.head,n=this._length,r=1;if(0===n||t<=0||null===e)throw new Error("Failure: non-existent node in this list.");for(;null!==e&&(e.timeStamp.timestamp!==t.timestamp||e.timeStamp.timestamp_usec!==t.timestamp_usec);)e=e.next,r++;return n>>2]>>>24-o%4*8&255)<<16|(e[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|e[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(t){var n=t.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o>>6-a%4*2,c=s|u;i[o>>>2]|=c<<24-o%4*8,o++}return e.create(i,o)}(t,n,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),i.enc.Base64)}()},function(t,e,n){!function(e,r){var i;t.exports=(i=n(7),function(t){var e=i,n=e.lib,r=n.WordArray,o=n.Hasher,a=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=t[e+0],u=t[e+1],d=t[e+2],p=t[e+3],v=t[e+4],g=t[e+5],m=t[e+6],y=t[e+7],b=t[e+8],w=t[e+9],S=t[e+10],_=t[e+11],E=t[e+12],x=t[e+13],T=t[e+14],A=t[e+15],k=o[0],C=o[1],D=o[2],B=o[3];k=c(k,C,D,B,a,7,s[0]),B=c(B,k,C,D,u,12,s[1]),D=c(D,B,k,C,d,17,s[2]),C=c(C,D,B,k,p,22,s[3]),k=c(k,C,D,B,v,7,s[4]),B=c(B,k,C,D,g,12,s[5]),D=c(D,B,k,C,m,17,s[6]),C=c(C,D,B,k,y,22,s[7]),k=c(k,C,D,B,b,7,s[8]),B=c(B,k,C,D,w,12,s[9]),D=c(D,B,k,C,S,17,s[10]),C=c(C,D,B,k,_,22,s[11]),k=c(k,C,D,B,E,7,s[12]),B=c(B,k,C,D,x,12,s[13]),D=c(D,B,k,C,T,17,s[14]),k=l(k,C=c(C,D,B,k,A,22,s[15]),D,B,u,5,s[16]),B=l(B,k,C,D,m,9,s[17]),D=l(D,B,k,C,_,14,s[18]),C=l(C,D,B,k,a,20,s[19]),k=l(k,C,D,B,g,5,s[20]),B=l(B,k,C,D,S,9,s[21]),D=l(D,B,k,C,A,14,s[22]),C=l(C,D,B,k,v,20,s[23]),k=l(k,C,D,B,w,5,s[24]),B=l(B,k,C,D,T,9,s[25]),D=l(D,B,k,C,p,14,s[26]),C=l(C,D,B,k,b,20,s[27]),k=l(k,C,D,B,x,5,s[28]),B=l(B,k,C,D,d,9,s[29]),D=l(D,B,k,C,y,14,s[30]),k=f(k,C=l(C,D,B,k,E,20,s[31]),D,B,g,4,s[32]),B=f(B,k,C,D,b,11,s[33]),D=f(D,B,k,C,_,16,s[34]),C=f(C,D,B,k,T,23,s[35]),k=f(k,C,D,B,u,4,s[36]),B=f(B,k,C,D,v,11,s[37]),D=f(D,B,k,C,y,16,s[38]),C=f(C,D,B,k,S,23,s[39]),k=f(k,C,D,B,x,4,s[40]),B=f(B,k,C,D,a,11,s[41]),D=f(D,B,k,C,p,16,s[42]),C=f(C,D,B,k,m,23,s[43]),k=f(k,C,D,B,w,4,s[44]),B=f(B,k,C,D,E,11,s[45]),D=f(D,B,k,C,A,16,s[46]),k=h(k,C=f(C,D,B,k,d,23,s[47]),D,B,a,6,s[48]),B=h(B,k,C,D,y,10,s[49]),D=h(D,B,k,C,T,15,s[50]),C=h(C,D,B,k,g,21,s[51]),k=h(k,C,D,B,E,6,s[52]),B=h(B,k,C,D,p,10,s[53]),D=h(D,B,k,C,S,15,s[54]),C=h(C,D,B,k,u,21,s[55]),k=h(k,C,D,B,b,6,s[56]),B=h(B,k,C,D,A,10,s[57]),D=h(D,B,k,C,m,15,s[58]),C=h(C,D,B,k,x,21,s[59]),k=h(k,C,D,B,v,6,s[60]),B=h(B,k,C,D,_,10,s[61]),D=h(D,B,k,C,d,15,s[62]),C=h(C,D,B,k,w,21,s[63]),o[0]=o[0]+k|0,o[1]=o[1]+C|0,o[2]=o[2]+D|0,o[3]=o[3]+B|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,n,r,i,o,a){var s=t+(e&n|~e&r)+i+a;return(s<>>32-o)+e}function l(t,e,n,r,i,o,a){var s=t+(e&r|n&~r)+i+a;return(s<>>32-o)+e}function f(t,e,n,r,i,o,a){var s=t+(e^n^r)+i+a;return(s<>>32-o)+e}function h(t,e,n,r,i,o,a){var s=t+(n^(e|~r))+i+a;return(s<>>32-o)+e}e.MD5=o._createHelper(u),e.HmacMD5=o._createHmacHelper(u)}(Math),i.MD5)}()},function(t,e,n){"use strict";var r=n(11);function i(t,e,n,r,i){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(t){a[t]={value:t}}),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(t,e,n,a,s,u){var c=Object.create(o);return r.toFlatObject(t,c,function(t){return t!==Error.prototype}),i.call(c,t.message,e,n,a,s),c.name=t.name,u&&Object.assign(c,u),c},t.exports=i},function(t,e,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(2)),a=r(n(5)),s=r(n(4)),u=r(n(6));function c(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&"boolean"!==typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===D(/^%?[^%]*%?$/,t))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(t){var e=C(t,0,1),n=C(t,-1);if("%"===e&&"%"!==n)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new s("invalid intrinsic syntax, expected opening `%`");var r=[];return k(t,B,function(t,e,n,i){r[r.length]=n?k(i,R,"$1"):e||t}),r}(t),r=n.length>0?n[0]:"",i=I("%"+r+"%",e),o=i.name,a=i.value,c=!1,l=i.alias;l&&(r=l[0],A(n,T([0,1],l)));for(var f=1,d=!0;f=n.length){var m=h(a,p);a=(d=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[p]}else d=x(a,p),a=a[p];d&&!c&&(w[o]=a)}}return a}},function(t,e,n){"use strict";var r=n(0),i=r(n(2)),o=r(n(1)),a=r(n(5)),s=r(n(4)),u=r(n(6));function c(t,e,n){return e=(0,s.default)(e),(0,a.default)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],(0,s.default)(t).constructor):e.apply(t,n))}var l=function(t){function e(){var t;return(0,o.default)(this,e),(t=c(this,e)).compositionOffset=0,t.keyframe=!1,t}return(0,u.default)(e,t),(0,i.default)(e)}(n(47));t.exports=l},function(t,e,n){"use strict";var r=n(0),i=r(n(2)),o=r(n(1)),a=r(n(5)),s=r(n(4)),u=r(n(6));function c(t,e,n){return e=(0,s.default)(e),(0,a.default)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],(0,s.default)(t).constructor):e.apply(t,n))}var l=function(t){function e(){return(0,o.default)(this,e),c(this,e)}return(0,u.default)(e,t),(0,i.default)(e)}(n(47));t.exports=l},function(t,e,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(2)),a=4294967295,s=function(){return(0,o.default)(function t(){(0,i.default)(this,t)},null,[{key:"readUInt64BE",value:function(t,e){var n=t.readUInt32BE(e),r=t.readUInt32BE(e+4);return n>0&&(r+=n*(a+1)),r}},{key:"writeUInt64BE",value:function(t,e,n){var r=0,i=e;e>a&&(r=e/(a+1)<<0,i=e%(a+1)),t.writeUInt32BE(r,n),t.writeUInt32BE(i,n+4)}}])}();t.exports=s},function(t,e,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(2)),a=r(n(5)),s=r(n(4)),u=r(n(6));function c(t,e,n){return e=(0,s.default)(e),(0,a.default)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],(0,s.default)(t).constructor):e.apply(t,n))}var l=function(t){function e(){var t;return(0,i.default)(this,e),(t=c(this,e)).entries=[],t}return(0,u.default)(e,t),(0,o.default)(e,[{key:"countMultiplier",value:function(){return 1}},{key:"parse",value:function(t){var e=t.readUInt32BE(4);this.entries=new Array(e*this.countMultiplier());for(var n=0,r=this.entries.length;n1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return c(c({},{method:t,params:e,id:l++,session:d()}),n)},g=e._dataEx=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return c(c({},{method:t,params:e,id:l++,session:e.sessionId}),n)},m=e._outData=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return c(c({},{method:t,params:e,id:l++}),n)},y=e._config=function(t){var e=t.name,n=void 0===e?[]:e,r=t.channel,i=t.params,o=t.options,a=void 0===o?[]:o,s=t.onlyLocal,u=t.type,c={method:"configManager.".concat(u),params:{name:n},id:l++,session:d()};return(r||0===r)&&(c.params.channel=r-0),null!==i&&void 0!==i&&(c.params.table=i),a&&(c.params.options=a),s&&(c.params.onlyLocal=s.onlyLocal),c},b=(e._intelliSchemeConfig=function(t){var e=t.id,n=t.name,r=void 0===n?[]:n,i=t.channel,o=t.params,a=t.options,s=void 0===a?[]:a,u=t.onlyLocal,c=t.type,f={method:"intelliScheme.".concat(c),params:{name:r},id:l++,session:d()};return e&&(f.params.schemeID=e),(i||0===i)&&(f.params.channel=i-0),o&&(f.params.table=o),s&&(f.params.options=s),u&&(f.params.onlyLocal=u.onlyLocal),f},e._multicall=function(t){var e=t.name,n=void 0===e?[]:e,r=t.channel,i=t.params,o=void 0===i?[]:i,a=t.options,s=void 0===a?[]:a,u=t.type;if(o.length&&n.length!==o.length)throw new Error("multicall params error");return{method:"system.multicall",params:n.map(function(t,e){var n={method:"configManager.".concat(u),params:{name:t},id:l++,session:d()};return(r||0===r)&&(n.params.channel=r-0),o[e]&&(n.params.table=o[e]),s&&(n.params.options=s),n}),id:l++,session:d()}}),w=(e._intelliSchemeMulticall=function(t){var e=t.id,n=t.name,r=void 0===n?[]:n,i=t.channel,o=t.params,a=void 0===o?[]:o,s=t.options,u=void 0===s?[]:s,c=t.type;if(a.length&&r.length!==a.length)throw new Error("multicall params error");return{method:"system.multicall",params:r.map(function(t,n){var r={method:"intelliScheme.".concat(c),params:{name:t},id:l++,session:d()};return e&&(r.params.schemeID=e),(i||0===i)&&(r.params.channel=i-0),a[n]&&(r.params.table=a[n]),u&&(r.params.options=u),r}),id:l++,session:d()}},e._send=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/RPC2";return new Promise(function(n,r){(0,a.default)({method:"POST",url:e,headers:{"Content-Type":"application/json","Self-TargetIP":h},data:JSON.stringify(t),dataType:"json"}).then(function(i){(i=i.data).result?(i=i.params&&"/RPC2_Login"!==e?i.params.table?i.params.table:i.params:i,n(i)):i.error&&i.error.code&&(287637504===i.error.code||287637505===i.error.code)?("global.keepAlive"!==t.method&&(0,s.reload)(),r(i)):r(i)}).catch(function(e){e.error&&e.error.code&&(287637504===e.error.code||287637505===e.error.code)?("global.keepAlive"!==t.method&&(0,s.reload)(),r(e)):r(e)})})}),S=e._sendEx=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/RPC2";return new Promise(function(n,r){(0,a.default)({method:"POST",url:e,headers:{"Content-Type":"application/json","Self-TargetIP":t.params.targetIP},data:JSON.stringify(t),dataType:"json"}).then(function(i){(i=i.data).result?(i=i.params&&"/RPC2_Login"!==e?i.params.table?i.params.table:i.params:i,n(i)):i.error&&i.error.code&&(287637504===i.error.code||287637505===i.error.code)?("global.keepAlive"!==t.method&&(0,s.reload)(),r(i)):r(i)}).catch(function(e){e.error&&e.error.code&&(287637504===e.error.code||287637505===e.error.code)?("global.keepAlive"!==t.method&&(0,s.reload)(),r(e)):r(e)})})},_=e._setCookie=function(t,e,n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3);var i="expires="+r.toUTCString();document.cookie=t+"="+e+"; "+i};e._getCookie=function(t){for(var e=t+"=",n=document.cookie.split(";"),r=0;r2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return new Promise(function(i,o){w(v("global.login",c(c({},{userName:t,password:e,clientType:"Web5.0"}),n)),"/RPC2_Login").then(function(e){r?_("WebClientSessionID","",-1):_("WebClientSessionID",d()),_("username",t),p(e.session),i(e)}).catch(function(t){o(t)})})},logout:function(){return w(v("global.logout"))},keepAlive:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return S(g("global.keepAlive",{timeout:t,active:!0,sessionId:e,targetIP:n})).then(function(t){return t})},getCurrentTime:function(){return w(v("global.getCurrentTime")).then(function(t){return t.time})},setCurrentTime:function(t,e){return w(v("global.setCurrentTime",{time:t,tolerance:e}))}}}),"ConfigManager",function(){return{getConfig:function(t,e,n,r){return"[object Object]"===Object.prototype.toString.call(t)?w(y(c(c({},t),{},{type:"getConfig"}))):t instanceof Array?w(b({name:t,channel:e,params:n,type:"getConfig"})):w(y({name:t,channel:e,params:n,onlyLocal:r,type:"getConfig"}))},setConfig:function(t,e,n,r){return"[object Object]"===Object.prototype.toString.call(t)?w(y(c(c({},t),{},{type:"setConfig"}))):t instanceof Array?w(b({name:t,channel:n,params:e,type:"setConfig",options:r})):w(y({name:t,channel:n,params:e,type:"setConfig",options:r}))},getDefault:function(t,e,n){return"[object Object]"===Object.prototype.toString.call(t)?w(y(c(c({},t),{},{type:"getDefault"}))):t instanceof Array?w(b({name:t,channel:e,params:n,type:"getDefault"})):w(y({name:t,channel:e,params:n,type:"getDefault"}))},instance:function(){return w(v("configManager.factory.instance"))},destroy:function(t){return w(v("configManager.destroy",null,{object:t}))},exportPackConfig:function(t){return w(v("configManager.exportPackConfig",null,{object:t}))},restoreExcept:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0;return w(v("configManager.restoreExcept",t,{object:e}))},deleteFile:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0;return w(v("configManager.deleteFile",t,{object:e}))},restore:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0;return w(v("configManager.restore",t,{object:e}))},setTemporaryConfig:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0;if(t instanceof Array){var n=[];return t.map(function(t){n.push(v("configManager.setTemporaryConfig",t,e))}),w(v("system.multicall",n))}return w(v("configManager.setTemporaryConfig",t,{object:e}))},restoreTemporaryConfig:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1?arguments[1]:void 0;if(t instanceof Array){var n=[];return t.map(function(t){n.push(v("configManager.restoreTemporaryConfig",t,e))}),w(v("system.multicall",n))}return w(v("configManager.restoreTemporaryConfig",t,{object:e}))},saveFile:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return w(v("configManager.saveFile",t))}}}),"UserManager",function(){return{getAuthorityList:function(){return w(v("userManager.getAuthorityList"))},getTemporaryToken:function(t){return w(v("userManager.getTemporaryToken",t))},getCaps:function(t){return w(v("userManager.getCaps",null,{object:t}))},addGroup:function(t){return w(v("userManager.addGroup",{group:t}))},deleteGroup:function(t){return w(v("userManager.deleteGroup",{name:t}))},modifyGroup:function(t,e){return w(v("userManager.modifyGroup",{name:t,group:e}))},getGroupInfo:function(t){return w(v("userManager.getGroupInfo",{name:t}))},getGroupInfoAll:function(){return w(v("userManager.getGroupInfoAll"))},addUser:function(t){return w(v("userManager.addUser",{user:t}))},deleteUser:function(t){return w(v("userManager.deleteUser",{name:t}))},modifyUser:function(t,e){return w(v("userManager.modifyUser",{name:t,user:e}))},modifyPassword:function(t,e,n){return w(v("userManager.modifyPassword",{name:t,pwd:e,pwdOld:n}))},modifyPasswordByManager:function(t){var e=t.name,n=t.pwd,r=t.nameManager,i=t.pwdManager,o=t.accountType;return w(v("userManager.modifyPasswordByManager",{name:e,pwd:n,nameManager:r,pwdManager:i,accountType:o}))},getUserInfo:function(t){return w(v("userManager.getUserInfo",{name:t}))},getErrorNo:function(){return w(v("userManager.getErrorNo"))},getUserInfoAll:function(){return w(v("userManager.getUserInfoAll"))},setDefault:function(){return w(v("userManager.setDefault"))},getActiveUserInfoAll:function(){return w(v("userManager.getActiveUserInfoAll"))},getAnonymityInfo:function(t){return w(v("userManager.getUserInfo",t))}}}),"RecordFinder",function(){return{create:function(t){return w(v("RecordFinder.factory.create",{name:t}))},destroy:function(t){return w(v("RecordFinder.destroy",null,{object:t}))},startFind:function(t,e){return w(v("RecordFinder.startFind",{condition:t},{object:e}))},doFind:function(t,e){return w(v("RecordFinder.doFind",{count:t},{object:e}))},doSeekFind:function(t,e,n){return w(v("RecordFinder.doSeekFind",{offset:t,count:e},{object:n}))},stopFind:function(t){return w(v("RecordFinder.stopFind",null,{object:t}))},getQuerySize:function(t){return w(v("RecordFinder.getQuerySize",null,{object:t}))}}}),"DevVideoInput",function(){return{instance:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return w(v("devVideoInput.factory.instance",{channel:t}))},getFocusPresets:function(t){return w(v("devVideoInput.getFocusPresets",null,{object:t}))},setFocusPreset:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("devVideoInput.setFocusPreset",e,{object:t}))},removeFocusPreset:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("devVideoInput.setFocusPreset",e,{object:t}))},gotoFocusPreset:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("devVideoInput.setFocusPreset",e,{object:t}))},getCollect:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return w(v("devVideoInput.factory.getCollect",t))},destroy:function(t){return w(v("devVideoInput.destroy",null,{object:t}))},getCaps:function(t){return w(v("devVideoInput.getCaps",null,{object:t}))},getFocusStatus:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("devVideoInput.getFocusStatus",e,{object:t}))},getVideoInStatus:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("devVideoInput.getVideoInStatus",e,{object:t}))},adjustFocus:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("devVideoInput.adjustFocus",e,{object:t}))},stopAutoFocus:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("devVideoInput.stopAutoFocus",e,{object:t}))},autoFocus:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("devVideoInput.autoFocus",e,{object:t}))},focusRegion:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("devVideoInput.focusRegion",e,{object:t}))},adjustFocusContinuously:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("devVideoInput.adjustFocusContinuously",e,{object:t}))},getCapsEx:function(t,e){return w(v("devVideoInput.getCapsEx",e,{object:t}))},getFishEyeWinInfo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return w(v("devVideoInput.getFishEyeWinInfo",{winIdSet:t,channel:e}))},setFishEyeEPtz:function(t,e,n,r,i,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;return w(v("devVideoInput.setFishEyeEPtz",{winID:t,cmd:e,arg1:n,arg2:r,arg3:i,arg4:o,channel:a}))},resetFocusOptions:function(t,e){return w(v("devVideoInput.resetFocusOptions",e,{object:t}))}}}),"DevInit",function(){return{getStatus:function(){return w(m("DevInit.getStatus"),"/OutsideCmd")},account:function(t){var e=t.cipher,n=t.salt,r=t.content;return w(m("DevInit.account",{cipher:e,salt:n,content:r}),"/OutsideCmd")},getDevCaps:function(){return w(m("DevInit.getDevCaps"),"/OutsideCmd")},setCurrentTime:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return w(v("DevInit.setCurrentTime",t),"/OutsideCmd")},setLocalityConfig:function(t){var e=t.cipher,n=t.salt,r=t.content;return w(v("DevInit.setLocalityConfig",{cipher:e,salt:n,content:r}),"/OutsideCmd")},getLocalityConfig:function(){return w(m("DevInit.getLocalityConfig"),"/OutsideCmd")},getCurrentTime:function(){return w(m("DevInit.getCurrentTime",{}),"/OutsideCmd")},access:function(t){var e=t.salt,n=t.cipher,r=t.content;return w(m("DevInit.access",{salt:e,cipher:n,content:r}),"/OutsideCmd")}}}),"Security",function(){return{getEncryptInfo:function(){return w(v("Security.getEncryptInfo"))},getEncryptInfoOut:function(){return w(m("Security.getEncryptInfo"),"/OutsideCmd")},getConfig:function(t){var e=t.cipher,n=t.salt,r=t.content;return w(v("Security.getConfig",{cipher:e,salt:n,content:r}))},setConfig:function(t){var e=t.cipher,n=t.salt,r=t.content;return w(v("Security.setConfig",{cipher:e,salt:n,content:r}))},getDefault:function(t){var e=t.cipher,n=t.salt,r=t.content;return w(v("configManager.secGetDefault",{cipher:e,salt:n,content:r}))},addUser:function(t){var e=t.cipher,n=t.salt,r=t.content;return w(v("Security.addUser",{cipher:e,salt:n,content:r}))},addUserPlain:function(t){var e=t.cipher,n=t.salt,r=t.content;return w(v("Security.addUserPlain",{cipher:e,salt:n,content:r}))},modifyPasswordPlain:function(t){var e=t.cipher,n=t.salt,r=t.content;return w(v("Security.modifyPasswordPlain",{cipher:e,salt:n,content:r}))},getCaps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return w(v("Security.getCaps",t))}}}),"System",function(){return{multiSec:function(t){var e=t.cipher,n=t.salt,r=t.content;return w(v("system.multiSec",{cipher:e,salt:n,content:r}))},multicall:function(t){return t.forEach(function(t){t.id=l++,t.session=d()}),w(v("system.multicall",t))},listMethod:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return w(v("system.listMethod",t))}}}),"Encode",function(){return{getConfigCaps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return w(v("encode.getConfigCaps",t))},getCropCaps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{channel:0};return w(v("encode.getCropCaps",t))},getSmartCaps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return w(v("encode.getSmartCaps",t))},getCaps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return w(v("encode.getCaps",t))},updateOverlayPicture:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return w(v("encode.updateOverlayPicture",t))},getFlexStreamCaps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return w(v("encode.getFlexStreamCaps",t))},getNAACaps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return w(v("encode.getNAACaps",t))}}}),"MediaFileFind",function(){return{instance:function(){return w(v("mediaFileFind.factory.create"))},destroy:function(t,e){return w(v("mediaFileFind.destroy",e,{object:t}))},close:function(t,e){return w(v("mediaFileFind.close",e,{object:t}))},getCount:function(t,e){return w(v("mediaFileFind.getCount",e,{object:t}))},setQueryResultOptions:function(t,e){return w(v("mediaFileFind.setQueryResultOptions",e,{object:t}))},findFile:function(t,e){return w(v("mediaFileFind.findFile",e,{object:t}))},findNextFile:function(t,e){return w(v("mediaFileFind.findNextFile",e,{object:t}))}}}),(0,o.default)((0,o.default)((0,o.default)((0,o.default)((0,o.default)(i,"PTZ",function(){return{instance:function(t){return w(v("ptz.factory.instance",{channel:t}))},destroy:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.destroy",e,{object:t}))},start:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.start",e,{object:t}))},getPresets:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.getPresets",e,{object:t}))},setDirection:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.setDirection",e,{object:t}))},getTours:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.getTours",e,{object:t}))},stop:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.stop",e,{object:t}))},restartPtz:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.restartPtz",e,{object:t}))},lensInit:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.lensInit",e,{object:t}))},reset:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.reset",e,{object:t}))},markLimit:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.markLimit",e,{object:t}))},gotoLimit:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.gotoLimit",e,{object:t}))},enableLimit:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.enableLimit",e,{object:t}))},setScanLimit:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.setScanLimit",e,{object:t}))},startScan:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.startScan",e,{object:t}))},stopScan:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.stopScan",e,{object:t}))},getCurrentProtocolCaps:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.getCurrentProtocolCaps",e,{object:t}))},removePreset:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.removePreset",e,{object:t}))},setPreset:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.setPreset",e,{object:t}))},gotoPreset:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.gotoPreset",e,{object:t}))},startPatternReplay:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.startPatternReplay",e,{object:t}))},stopPatternReplay:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.stopPatternReplay",e,{object:t}))},startPatternRecord:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.startPatternRecord",e,{object:t}))},stopPatternRecord:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.stopPatternRecord",e,{object:t}))},startTour:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.startTour",e,{object:t}))},stopTour:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.stopTour",e,{object:t}))},focusRegion:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.focusRegion",e,{object:t}))},getOperationStatus:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.getOperationStatus",e,{object:t}))},getLifetimeEncrypt:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.getLifetimeEncrypt",e,{object:t}))},moveDirectly:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.moveDirectly",e,{object:t}))},getProtocolList:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.getProtocolList",e,{object:t}))},getProtocol:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.getProtocol",e,{object:t}))},getStatus:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.getStatus",e,{object:t}))},moveAbsolutely:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return w(v("ptz.moveAbsolutely",e,{object:t}))}}}),"WebInit",function(){return{getCaps:function(){return w(m("WebInit.getCaps",null),"/OutsideCmd")}}}),"MagicBox",function(){return{instance:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return w(v("magicBox.factory.instance",t))},getProductDefinition:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return w(v("magicBox.getProductDefinition",{name:t}))}}}),"Storage",function(){return{instance:function(){return w(v("storage.factory.instance"))},destroy:function(t,e){return w(v("storage.destroy",e,{object:t}))},getDeviceNames:function(t,e){return w(v("storage.getDeviceNames",e,{object:t}))},getGroupNames:function(t,e){return w(v("storage.getGroupNames",e,{object:t}))},getDirectoryPaths:function(t,e){return w(v("storage.getDirectoryPaths",e,{object:t}))},getFileInfo:function(t,e){return w(v("storage.getFileInfo",e,{object:t}))},addFileInfo:function(t,e){return w(v("storage.addFileInfo",e,{object:t}))},attachAddFileInfoState:function(t,e){return w(v("storage.attachAddFileInfoState",e,{object:t}))},detachAddFileInfoState:function(t,e){return w(v("storage.detachAddFileInfoState",e,{object:t}))},markFile:function(t){return w(v("storage.markFile",t))},getiSCSITargets:function(t,e){return w(v("storage.getiSCSITargets",e,{object:t}))},secGetiSCSITargets:function(t,e){return w(v("storage.secGetiSCSITargets",e,{object:t}))},getPortInfo:function(t,e){return w(v("storage.getPortInfo",e,{object:t}))},getStreamUri:function(t,e){return w(v("storage.getStreamUri",e,{object:t}))},testNAS:function(t,e){return w(v("storage.testNAS",e,{object:t}))},secTestNAS:function(t,e){return w(v("storage.secTestNAS",e,{object:t}))},getBoundTime:function(t,e){return w(v("storage.getBoundTime",e,{object:t}))},getBoundTimeEx:function(t,e){return w(v("storage.getBoundTimeEx",e,{object:t}))},getBitmap:function(t,e){return w(v("storage.getBitmap",e,{object:t}))},getBitmapEx:function(t,e){return w(v("storage.getBitmapEx",e,{object:t}))},getiSCSITargetsAll:function(t,e){return w(v("storage.getiSCSITargetsAll",e,{object:t}))},getCaps:function(t,e){return w(v("storage.getCaps",e,{object:t}))},attachRecordInfo:function(t,e){return w(v("storage.attachRecordInfo",e,{object:t}))},detachRecordInfo:function(t,e){return w(v("storage.detachRecordInfo",e,{object:t}))},getDeviceAllInfo:function(t,e){return w(v("storage.getDeviceAllInfo",e,{object:t}))},getTankInfo:function(t,e){return w(v("storage.getTankInfo",e,{object:t}))},startHealthcheck:function(t,e){return w(v("storage.startHealthcheck",e,{object:t}))},getHealthcheckProcess:function(t,e){return w(v("storage.getHealthcheckProcess",e,{object:t}))},getHealthStatusEx:function(t,e){return w(v("storage.getHealthStatusEx",e,{object:t}))}}}),"LogicDeviceManager",function(){return{getCameraAll:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return w(v("LogicDeviceManager.getCameraAll",{params:t}))}}}))},function(t,e,n){var r=n(57);t.exports=function(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";(function(e){var r=n(11),i=n(126),o=n(18),a=n(62),s=n(63),u={"Content-Type":"application/x-www-form-urlencoded"};function c(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var l={transitional:a,adapter:function(){var t;return"undefined"!==typeof XMLHttpRequest?t=n(64):"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e)&&(t=n(64)),t}(),transformRequest:[function(t,e){if(i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t))return t;if(r.isArrayBufferView(t))return t.buffer;if(r.isURLSearchParams(t))return c(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var n,o=r.isObject(t),a=e&&e["Content-Type"];if((n=r.isFileList(t))||o&&"multipart/form-data"===a){var u=this.env&&this.env.FormData;return s(n?{"files[]":t}:t,u&&new u)}return o||"application/json"===a?(c(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||l.transitional,n=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw o.from(t,o.ERR_BAD_RESPONSE,this,null,this.response);throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(137)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(t){l.headers[t]={}}),r.forEach(["post","put","patch"],function(t){l.headers[t]=r.merge(u)}),t.exports=l}).call(this,n(61))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={},i=-1,o={publish:function(t,e){if(!r[t])return!1;for(var n=r[t],i=n?n.length:0;i--;)n[i].func(e);return this},subscribe:function(t,e){r[t]||(r[t]=[]);var n=(++i).toString();return r[t].push({token:n,func:e}),n},unsubscribe:function(t){for(var e in r)if(r[e])for(var n=0,i=r[e].length;n0;--e){o=o.twice();var s=r.testBit(e);s!=n.testBit(e)&&(o=o.add(s?this:i))}return o},c.prototype.multiplyTwo=function(t,e,n){var r;r=t.bitLength()>n.bitLength()?t.bitLength()-1:n.bitLength()-1;for(var i=this.curve.getInfinity(),o=this.add(e);r>=0;)i=i.twice(),t.testBit(r)?i=n.testBit(r)?i.add(o):i.add(this):n.testBit(r)&&(i=i.add(e)),--r;return i},l.prototype.getQ=function(){return this.q},l.prototype.getA=function(){return this.a},l.prototype.getB=function(){return this.b},l.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},l.prototype.getInfinity=function(){return this.infinity},l.prototype.fromBigInteger=function(t){return new u(this.q,t)},l.prototype.reduce=function(t){this.reducer.reduce(t)},l.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var e=(t.length-2)/2,n=t.substr(2,e),r=t.substr(e+2,e);return new c(this,this.fromBigInteger(new a.BigInteger(n,16)),this.fromBigInteger(new a.BigInteger(r,16)));default:return null}},l.prototype.encodePointHex=function(t){if(t.isInfinity())return"00";var e=t.getX().toBigInteger().toString(16),n=t.getY().toBigInteger().toString(16),r=this.getQ().toString(16).length;for(r%2!=0&&r++;e.length>>32-e},h=function(t,e){var n=e-t.length;return(n>0?"0".repeat(n):"")+t},d=function(t){return t<16?2043430169:2055708042},p=function(t,e,n,r){return r<16?t^e^n:t&e|t&n|e&n},v=function(t,e,n,r){return r<16?t^e^n:t&e|~t&n},g=function(t,e,n){for(var r,i,o,a,s,u=function(t){var e,n=new Array(132);t.forEach(function(t,e){n[e]=t});for(var r=16;r<68;r++)n[r]=(e=n[r-16]^n[r-9]^f(n[r-3],15))^f(e,15)^f(e,23)^f(n[r-13],7)^n[r-6];for(var i=0;i<64;i++)n[i+68]=n[i]^n[i+4];return n}(e),c=t[0],l=t[1],h=t[2],g=t[3],m=t[4],y=t[5],b=t[6],w=t[7],S=0;S<64;S++)i=(r=f(f(c,12)+m+f(d(S),S),7))^f(c,12),o=p(c,l,h,S)+g+i+u[S+68],a=v(m,y,b,S)+w+r+u[S],g=h,h=f(l,9),l=c,c=o,w=b,b=f(y,19),y=m,m=(s=a)^f(s,9)^f(s,17);return[c^t[0],l^t[1],h^t[2],g^t[3],m^t[4],y^t[5],b^t[6],w^t[7]]},m=function(t,e,n){if("string"==typeof t?t=o.Buffer.from(t,e||"utf8"):t instanceof ArrayBuffer&&(t=o.Buffer.from(t)),!o.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var r,a,s,u,c,l;r=t,a=o.Buffer.alloc(1,128),u=o.Buffer.alloc(s=(s=r.length%64)>=56?64-s%56-1:56-s-1,0),c=o.Buffer.alloc(8),l=8*r.length,c.writeUInt32BE(Math.floor(l/Math.pow(2,32)),0),c.writeUInt32BE(l%Math.pow(2,32),4);for(var f=(t=o.Buffer.concat([r,a,u,c],r.length+1+s+8)).length/64,h=new Array(f),d=0;d>>28][(251658240&t)>>>24]<<24|A[(15728640&t)>>>20][(983040&t)>>>16]<<16|A[(61440&t)>>>12][(3840&t)>>>8]<<8|A[(240&t)>>>4][(15&t)>>>0]<<0},R=function(t){return(e=B(t))^f(e,2)^f(e,10)^f(e,18)^f(e,24);var e},I=function(t){var e,n=new Array(36);n[0]=t[0]^k[0],n[1]=t[1]^k[1],n[2]=t[2]^k[2],n[3]=t[3]^k[3];for(var r=new Array(32),i=0;i<32;i++)n[i+4]=n[i]^(e=B(n[i+1]^n[i+2]^n[i+3]^C[i]))^f(e,13)^f(e,23),r[i]=n[i+4];return r},M=function(t,e){for(var n=I(e),r=0;r<32;r++)t[r+4]=t[r]^R(t[r+1]^t[r+2]^t[r+3]^n[r]);return[t[35],t[34],t[33],t[32]]},O=function(t,e){for(var n=I(e).reverse(),r=0;r<32;r++)t[r+4]=t[r]^R(t[r+1]^t[r+2]^t[r+3]^n[r]);return[t[35],t[34],t[33],t[32]]},P=function(t){return[t.readInt32BE(0),t.readInt32BE(4),t.readInt32BE(8),t.readInt32BE(12)]},F=function(t){for(var e=o.Buffer.alloc(16),n=0;n<4;n++)e.writeInt32BE(t[n],4*n);return e},U={__proto__:null,constants:{ECB:1,CBC:2},encrypt:function(t,e,n){var r=n||{},a=r.mode,s=r.iv,u=r.outputEncoding;if("string"==typeof t?t=o.Buffer.from(t,r.inputEncoding||"utf8"):t instanceof ArrayBuffer&&(t=o.Buffer.from(t)),!o.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');if(!D.test(e))throw new TypeError("Invalid value of cipher `key`");if(e=o.Buffer.from(e,"hex"),2===a&&!D.test(s))throw new TypeError("Invalid value of `iv` option");return function(t,e,n,r){n&&(n=P(n)),e=P(e);for(var a=[],s=(t=function(t){var e=16-t.length%16,n=o.Buffer.alloc(e,e);return o.Buffer.concat([t,n],t.length+e)}(t)).length/16,u=0;u=0;u--){var c,l=16*u;c=u>0?[t.readInt32BE(l-16),t.readInt32BE(l-16+4),t.readInt32BE(l-16+8),t.readInt32BE(l-16+12)]:n;var f=[t.readInt32BE(l),t.readInt32BE(l+4),t.readInt32BE(l+8),t.readInt32BE(l+12)],h=O(f,e);a.unshift(F([h[0]^c[0],h[1]^c[1],h[2]^c[2],h[3]^c[3]]))}else for(var d=0;de[1][0]?(n=e[0][0],r=e[1][0]):(n=e[1][0],r=e[0][0]),e[0][1]>e[1][1]?(i=e[0][1],o=e[1][1]):(i=e[1][1],o=e[0][1]),n===r&&t[0]>=r-300&&t[0]<=n+300&&t[1]>=o-300&&t[1]<=i+300||t[0]>=r-300&&t[0]<=n+300&&t[1]>=o-300&&t[1]<=i+300&&u<=300},pointInPoly:function(t,e){for(var n=!1,r=-1,i=e.length,o=i-1;++rn)},pointInRect:function(t,e){for(var n=this.rectToPoly(e),r=t[0],i=t[1],o=0,a=0,s=n.length,u=s-1;a=Math.PI?d-=2*Math.PI:d<=-Math.PI&&(d+=2*Math.PI),o+=d}return 0!==Math.round(o/Math.PI)},rectToPoly:function(t){var e=[],n={};return n[0]=t[0][0],n[1]=t[0][1],e.push(n),(n={})[0]=t[1][0],n[1]=t[0][1],e.push(n),(n={})[0]=t[1][0],n[1]=t[1][1],e.push(n),(n={})[0]=t[0][0],n[1]=t[1][1],e.push(n),e},setUnSelected:function(t){for(var e=0;e=0)return!1;var a=(n[0]-t[0])*(r[1]-t[1])-(n[1]-t[1])*(r[0]-t[0]);if(a*(a+i-o)>=0)return!1;var s=a/(o-i),u=s*(e[0]-t[0]),c=s*(e[1]-t[1]);return[t[0]+u,t[1]+c]},segmentsInLine:function(t,e,n,r,i,o,a,s){var u=(r-e)*(a-i)-(t-n)*(o-s);if(0===u)return!1;var c=((n-t)*(a-i)*(o-e)+(r-e)*(a-i)*t-(s-o)*(n-t)*i)/u,l=-((r-e)*(s-o)*(i-t)+(n-t)*(s-o)*e-(a-i)*(r-e)*o)/u;return(c-i)*(c-a)<=0&&(l-o)*(l-s)<=0&&[Math.floor(c),Math.floor(l)]},lineCross:function(t,e){for(var n=0;n=t[0]){var f=[s,a];u[0]=f[0],u[1]=f[1]}else{var h=[a,s];u[0]=h[0],u[1]=h[1]}return u},getRotateByDegree:function(t,e,n){var r=Math.sin(Math.PI/180*n),i=Math.cos(Math.PI/180*n),o=(t[0]-e[0])*i-(t[1]-e[1])*r+e[0],a=(t[1]-e[1])*i+(t[0]-e[0])*r+e[1];return[[e[0],e[1]],[o,a]]},lineInPoly:function(t,e){var n=this.pointInPoly(t[0],e),r=this.pointInPoly(t[1],e);if(!n||!r)return!1;for(var i=0;i0?"right":"middle"},getNunberSign:function(t,e){return t-e>0?1:t-e<0?-1:0},getCoordinatePoint:function(t,e,n,r,i){var o=null,a=[],s=null,u=null;return n===t?(a[0]=t,a[1]=e>=r?e-ir?r:e+i):(o=Math.atan((r-e)/(n-t)),s=i*Math.cos(o),u=i*Math.sin(o),tr?(a[0]=t+sr?e+u:r):t>n&&e>=r?(a[0]=t-s>n?t-s:n,a[1]=e-u>r?e-u:r):(a[0]=t-s>n?t-s:n,a[1]=e-u0&&e-1 in t))},getHeight:function(t){var e=this;if(null!==t.getAttribute("height")&&t.getAttribute("height")>0)return parseFloat(t.getAttribute("height"));if(parseFloat(e._getStyleValue(t,"height"))>0)return parseFloat(e._getStyleValue(t,"height"));if(t.offsetHeight>0){var n=e._getStyleValue(t,"borderTopWidth"),r=e._getStyleValue(t,"borderBottomWidth"),i=e._getStyleValue(t,"paddingTop"),o=e._getStyleValue(t,"paddingBottom"),a=parseFloat(t.offsetHeight)-parseFloat(n)-parseFloat(r)-parseFloat(i)-parseFloat(o);return parseFloat(a)}return 0},getWidth:function(t){var e=this;if(null!==t.getAttribute("width")&&t.getAttribute("width")>0)return parseFloat(t.getAttribute("width"));if(parseFloat(e._getStyleValue(t,"width"))>0)return parseFloat(e._getStyleValue(t,"width"));if(t.offsetWidth>0){var n=e._getStyleValue(t,"borderLeftWidth"),r=e._getStyleValue(t,"borderRightWidth"),i=e._getStyleValue(t,"paddingLeft"),o=e._getStyleValue(t,"paddingRight"),a=parseFloat(t.offsetWidth)-parseFloat(n)-parseFloat(r)-parseFloat(i)-parseFloat(o);return parseFloat(a)}return 0},_getStyleValue:function(t,e){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=window),t.currentStyle?t.currentStyle[e]:n.getComputedStyle(t)[e]}}},function(t,e,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(2));function a(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n>>7)^(p<<14|p>>>18)^p>>>3,g=c[d-2],m=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[d]=v+c[d-7]+m+c[d-16]}var y=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+u[d]+c[d];h=f,f=l,l=s,s=a+w|0,a=o,o=i,i=r,r=w+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+h|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=o._createHelper(l),e.HmacSHA256=o._createHmacHelper(l)}(Math),i.SHA256)}()},function(t,e,n){!function(e,r){var i;t.exports=(i=n(7),void function(){var t=i,e=t.lib,n=e.Base,r=t.enc,o=r.Utf8,a=t.algo;a.HMAC=n.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=o.parse(e));var n=t.blockSize,r=4*n;e.sigBytes>r&&(e=t.finalize(e)),e.clamp();for(var i=this._oKey=e.clone(),a=this._iKey=e.clone(),s=i.words,u=a.words,c=0;ct.length)&&(e=t.length);for(var n=0,r=new Array(e);n1)for(var n=1;n=0;c--)if(l[c]!==f[c])return!1;for(c=l.length-1;c>=0;c--)if(s=l[c],!b(t[s],e[s],n,r))return!1;return!0}(t,e,n,r))}return n?t===e:t==e}function w(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function S(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function _(t,e,n,r){var i;if("function"!==typeof e)throw new TypeError('"block" argument must be a function');"string"===typeof n&&(r=n,n=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!i&&m(i,n,"Missing expected exception"+r);var o="string"===typeof r,s=!t&&i&&!n;if((!t&&a.isError(i)&&o&&S(i,n)||s)&&m(i,n,"Got unwanted exception"+r),t&&i&&n&&!S(i,n)||!t&&i)throw i}h.AssertionError=function(t){var e;this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=v(g((e=this).actual),128)+" "+e.operator+" "+v(g(e.expected),128),this.generatedMessage=!0);var n=t.stackStartFunction||m;if(Error.captureStackTrace)Error.captureStackTrace(this,n);else{var r=new Error;if(r.stack){var i=r.stack,o=p(n),a=i.indexOf("\n"+o);if(a>=0){var s=i.indexOf("\n",a+1);i=i.substring(s+1)}this.stack=i}}},a.inherits(h.AssertionError,Error),h.fail=m,h.ok=y,h.equal=function(t,e,n){t!=e&&m(t,e,n,"==",h.equal)},h.notEqual=function(t,e,n){t==e&&m(t,e,n,"!=",h.notEqual)},h.deepEqual=function(t,e,n){b(t,e,!1)||m(t,e,n,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(t,e,n){b(t,e,!0)||m(t,e,n,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(t,e,n){b(t,e,!1)&&m(t,e,n,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=function t(e,n,r){b(e,n,!0)&&m(e,n,r,"notDeepStrictEqual",t)},h.strictEqual=function(t,e,n){t!==e&&m(t,e,n,"===",h.strictEqual)},h.notStrictEqual=function(t,e,n){t===e&&m(t,e,n,"!==",h.notStrictEqual)},h.throws=function(t,e,n){_(!0,t,e,n)},h.doesNotThrow=function(t,e,n){_(!1,t,e,n)},h.ifError=function(t){if(t)throw t},h.strict=r(function t(e,n){e||m(e,!0,n,"==",t)},h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var E=Object.keys||function(t){var e=[];for(var n in t)s.call(t,n)&&e.push(n);return e}}).call(this,n(36))},function(t,e,n){"use strict";var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"===typeof t&&"number"===typeof t.length&&t.length>=0&&"[object Function]"===r.call(t.callee)),n}},function(t,e,n){"use strict";t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(t,e,n){"use strict";t.exports=SyntaxError},function(t,e,n){"use strict";var r=n(21)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(t){r=null}t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EventManager=void 0;e.EventManager={events:new WeakMap,on:function(t,e,n){if(t&&e){var r=e.split("."),i={};return i.fullType=e,i.type=r[0],i.fn=n,this.events.has(t)?this.events.get(t).push(i):this.events.set(t,[i]),t.addEventListener(r[0],i.fn),this}},off:function(t,e){if(!t)return this;var n=this.events.get(t)||[];if(!e){for(var r=0;r>>0).toString(16);return"00000000".substr(0,8-e.length)+e}function n(t,e,n){return t&e|~t&n}function r(t,e,n){return n&t|~n&e}function o(t,e,n){return t^e^n}function a(t,e,n){return e^(t|~n)}function s(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]}function u(t){for(var e=[],n=0;n>>32-o),g=a}var i=l.length;l.push(128);var u=l.length%64;if(u>56){for(var c=0;c<64-u;c++)l.push(0);u=l.length%64}for(c=0;c<56-u;c++)l.push(0);l=l.concat(function(t){for(var e=[],n=0;n<8;n++)e.push(255&t),t>>>=8;return e}(8*i));var f=1732584193,d=4023233417,p=2562383102,v=271733878,g=0,m=0,y=0,b=0;for(c=0;c=0;u--)a=255&(s=arguments[u]),a<<=8,a|=255&(s>>>=8),a<<=8,a|=255&(s>>>=8),a<<=8,o+=e(a|=s>>>=8);return o}(v,p,d,f).toUpperCase()}()};e.default=function(t){return o.MD5(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.YUVWebGLCanvas=e.WebGLCanvas=e.ImageWebGLCanvas=void 0;var r=n(14),i=n(181),o=function(){function t(t,e,n){r.Texture.call(this,t,e,n)}return t.prototype=s(r.Texture,{fill:function(t,e){var n=this.gl;n.bindTexture(n.TEXTURE_2D,this.texture),e?n.texSubImage2D(n.TEXTURE_2D,0,0,0,this.size.w,this.size.h,this.format,n.UNSIGNED_BYTE,t):n.texImage2D(n.TEXTURE_2D,0,this.format,this.format,n.UNSIGNED_BYTE,t)}}),t}(),a=e.WebGLCanvas=function(){var t=r.Script.createFromSource("x-shader/x-vertex",u(["attribute vec3 aVertexPosition;","attribute vec2 aTextureCoord;","uniform mat4 uMVMatrix;","uniform mat4 uPMatrix;","varying highp vec2 vTextureCoord;","void main(void) {"," gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);"," vTextureCoord = aTextureCoord;","}"])),e=r.Script.createFromSource("x-shader/x-fragment",u(["precision highp float;","varying highp vec2 vTextureCoord;","uniform sampler2D texture;","void main(void) {"," gl_FragColor = texture2D(texture, vTextureCoord);","}"])),n=[192,368,608,1088,1472,1952,3008];function o(t,e,o){this.canvas=t,this.size=e;var u=!0;for(var l in n)e.w===n[l]&&(u=!1);u?this.canvas.width=e.w:192===e.w?this.canvas.width=e.w-12:this.canvas.width=e.w-8,this.canvas.height=e.h,this.onInitWebGL(),this.onInitShaders(),function(){var t=[1,1,0,-1,1,0,1,-1,0,-1,-1,0],e=this.gl;this.quadVPBuffer=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.quadVPBuffer),e.bufferData(e.ARRAY_BUFFER,new Float32Array(t),e.STATIC_DRAW),this.quadVPBuffer.itemSize=3,this.quadVPBuffer.numItems=4;this.quadVTCBuffer=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.quadVTCBuffer),t=[1,0,0,0,1,1,0,1],e.bufferData(e.ARRAY_BUFFER,new Float32Array(t),e.STATIC_DRAW)}.call(this),o&&function(){var t=this.gl;this.framebuffer=t.createFramebuffer(),t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer),this.framebufferTexture=new r.Texture(this.gl,this.size,t.RGBA);var e=t.createRenderbuffer();t.bindRenderbuffer(t.RENDERBUFFER,e),t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_COMPONENT16,this.size.w,this.size.h),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.framebufferTexture.texture,0),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e)}.call(this),this.onInitTextures(),function(){var t=this.gl;this.perspectiveMatrix=function(t,e,n,r){var o=n*Math.tan(t*Math.PI/360),a=-o;return function(t,e,n,r,o,a){var s=2*o/(e-t),u=2*o/(r-n),c=(e+t)/(e-t),l=(r+n)/(r-n),f=-(a+o)/(a-o),h=-2*a*o/(a-o);return(0,i.$M)([[s,0,c,0],[0,u,l,0],[0,0,f,h],[0,0,-1,0]])}(a*e,o*e,a,o,n,r)}(45,1,.1,100),a.call(this),s.call(this,[0,0,-2.415]),t.bindBuffer(t.ARRAY_BUFFER,this.quadVPBuffer),t.vertexAttribPointer(this.vertexPositionAttribute,3,t.FLOAT,!1,0,0),t.bindBuffer(t.ARRAY_BUFFER,this.quadVTCBuffer),t.vertexAttribPointer(this.textureCoordAttribute,2,t.FLOAT,!1,0,0),this.onInitSceneTextures(),c.call(this),this.framebuffer&&t.bindFramebuffer(t.FRAMEBUFFER,this.framebuffer)}.call(this)}function a(){this.mvMatrix=i.Matrix.I(4)}function s(t){(function(t){this.mvMatrix=this.mvMatrix.x(t)}).call(this,i.Matrix.Translation((0,i.$V)([t[0],t[1],t[2]])).ensure4x4())}function c(){this.program.setMatrixUniform("uPMatrix",new Float32Array(this.perspectiveMatrix.flatten())),this.program.setMatrixUniform("uMVMatrix",new Float32Array(this.mvMatrix.flatten()))}return o.prototype={toString:function(){return"WebGLCanvas Size: "+this.size},checkLastError:function(t){var e=this.gl.getError();if(e!==this.gl.NO_ERROR){var n=this.glNames[e];n="undefined"!==typeof n?n+"("+e+")":"Unknown WebGL ENUM (0x"+e.toString(16)+")",t?r.debug.log("WebGL Error: %s, %s",t,n):r.debug.log("WebGL Error: %s",n),r.debug.trace()}},onInitWebGL:function(){try{this.gl=this.canvas.getContext("experimental-webgl")}catch(t){r.debug.log("inInitWebGL error = "+t)}if(this.gl||r.debug.error("Unable to initialize WebGL. Your browser may not support it."),!this.glNames)for(var t in this.glNames={},this.gl)"number"===typeof this.gl[t]&&(this.glNames[this.gl[t]]=t)},onInitShaders:function(){this.program=new r.Program(this.gl),this.program.attach(new r.Shader(this.gl,t)),this.program.attach(new r.Shader(this.gl,e)),this.program.link(),this.program.use(),this.vertexPositionAttribute=this.program.getAttributeLocation("aVertexPosition"),this.gl.enableVertexAttribArray(this.vertexPositionAttribute),this.textureCoordAttribute=this.program.getAttributeLocation("aTextureCoord"),this.gl.enableVertexAttribArray(this.textureCoordAttribute)},onInitTextures:function(){var t=this.gl;t.viewport(0,0,this.canvas.width,this.canvas.height),this.texture=new r.Texture(t,this.size,t.RGBA)},onInitSceneTextures:function(){this.texture.bind(0,this.program,"texture")},drawScene:function(){this.gl.drawArrays(this.gl.TRIANGLE_STRIP,0,4)},updateVertexArray:function(t){this.zoomScene(t)},readPixels:function(t){var e=this.gl;e.readPixels(0,0,this.size.w,this.size.h,e.RGBA,e.UNSIGNED_BYTE,t)},zoomScene:function(t){a.call(this),s.call(this,[t[0],t[1],t[2]]),c.call(this),this.drawScene()},setViewport:function(t,e){var n,i;r.debug.log("toWidth="+t+",toHeight="+e),this.gl.drawingBufferWidth=t.offset+t.size){var e=null;if(t instanceof s.VideoSample){var n=this.set_nal_unit_type(this.MovieBuffer.subarray(t.offset-this.currentDeleteLen,t.offset+t.size-this.currentDeleteLen));e=this.packetDHAV.getRTPPacket(n,t)}else e=this.packetDHAV.getRTPPacket(this.MovieBuffer.subarray(t.offset-this.currentDeleteLen,t.offset+t.size-this.currentDeleteLen),t);(this.isSeek&&t.keyframe||!this.isSeek)&&(this.TrackCallback(e),this.isSeek=!1),this.MovieBuffer=this.MovieBuffer.subarray(t.offset+t.size-this.currentDeleteLen,this.MovieBuffer.length),this.currentDeleteLen=t.offset+t.size,this.currentFrame++,this.currentFrame=n)return 0;for(;t<=e;){var r=parseInt((e+t)/2),i=this.track[r];if(n===i.offset)return r;if(n>i.offset){if(n0&&void 0!==arguments[0]?arguments[0]:new Uint8Array,e=0,n=0,r=function(e,n){var r="";return t.slice(e,n).map(function(t){return r+=1===t.toString(16).length?"0"+t.toString(16):t.toString(16)}),parseInt(r,16)};t.length>4&&n=60?60:t.length;nt[n].timescale){e=n;break}return e}},{key:"parseToString",value:function(t){for(var e="",n=0,r=t.length;n0&&-1!==[a.ATOM_FTYP,a.ATOM_MOOV,a.ATOM_MDAT].indexOf(t.toString("ascii",4,8))}}])}();t.exports=u},function(t,e,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(2)),a=r(n(5)),s=r(n(4)),u=r(n(6));function c(t,e,n){return e=(0,s.default)(e),(0,a.default)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],(0,s.default)(t).constructor):e.apply(t,n))}var l=n(50),f=n(9),h=function(t){function e(){return(0,i.default)(this,e),c(this,e,arguments)}return(0,u.default)(e,t),(0,o.default)(e,[{key:"type",value:function(){return f.ATOM_AVC1}},{key:"extraType",value:function(){return f.ATOM_AVCC}}])}(l);t.exports=h},function(t,e,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(2)),a=r(n(5)),s=r(n(4)),u=r(n(6));function c(t,e,n){return e=(0,s.default)(e),(0,a.default)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],(0,s.default)(t).constructor):e.apply(t,n))}var l=n(12),f=n(24),h=n(9),d=function(t){function e(){var t;return(0,i.default)(this,e),(t=c(this,e)).entries=[],t}return(0,u.default)(e,t),(0,o.default)(e,[{key:"type",value:function(){return h.ATOM_CO64}},{key:"parse",value:function(t){var e=t.readUInt32BE(4);this.entries=new Array(e);for(var n=0;n>7&1)&&(n+=2),1===(r>>6&1)&&(n+=t[n]+1),1===(r>>5&1)&&(n+=2);n13&&5===t[n++]&&(n+=(o=h(t,n)).read,this.extraData=e.allocUnsafe(o.size),t.copy(this.extraData,0,n,n+o.size));break}n+=o.size}}},{key:"build",value:function(t,e){t.writeUInt32BE(this.bufferSize(),e),t.write(this.type(),e+4),e+=8,e+=4,t[e++]=3,t[e++]=23+this.extraData.length,t.writeUInt16BE(this.streamId,e),e+=2,t[e++]=0,t[e++]=4,t[e++]=15+this.extraData.length,t[e++]=64,t[e++]=21,e+=11,t[e++]=5,t[e++]=this.extraData.length,this.extraData.copy(t,e),e+=this.extraData.length,t[e++]=6,t[e++]=1,t[e++]=2}},{key:"bufferSize",value:function(){return 37+this.extraData.length}}])}(l);t.exports=d}).call(this,n(3).Buffer)},function(t,e,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(2)),a=r(n(5)),s=r(n(4)),u=r(n(6));function c(t,e,n){return e=(0,s.default)(e),(0,a.default)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],(0,s.default)(t).constructor):e.apply(t,n))}var l=n(12),f=n(9),h=function(t){function e(){var t;return(0,i.default)(this,e),(t=c(this,e)).majorBrand=null,t.minorVersion=0,t.compatibleBrands=[],t}return(0,u.default)(e,t),(0,o.default)(e,[{key:"type",value:function(){return f.ATOM_FTYP}},{key:"parse",value:function(t){this.majorBrand=t.toString("ascii",0,4),this.minorVersion=t.readUInt32BE(4);for(var e=0;e<(t.length-8)/4;e++)this.compatibleBrands.push(t.toString("ascii",8+4*e,12+4*e))}},{key:"build",value:function(t,e){t.writeUInt32BE(this.bufferSize(),e),t.write(this.type(),e+4),t.write(this.majorBrand,e+8),t.writeUInt32BE(this.minorVersion,e+12);for(var n=0;n0&&(n+=16);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=n)return t;var r=n-t.length;return new Array(r).fill(String(e)).join("")+t}function c(t,e){return void 0!==t&&t?(e=e||new Date,t=(t=(t=(t=(t=(t=t.replace(/y/gi,u(e.getFullYear()),0)).replace(/m/gi,u(e.getMonth()+1),0)).replace(/d/gi,u(e.getDate()),0)).replace(/h/gi,u(e.getHours()),0)).replace(/i/gi,u(e.getMinutes()),0)).replace(/s/gi,u(e.getSeconds()),0)):""}function l(t,e){var n=(t=t||{}).nameFormat||["ymd_his"];e=e||new Date;var r="";if(s(n,"string"))n=[n,{}];else{if(!s(n,"array"))return void function(t){throw new Error(t)}("name format must be string or array");s(n[0],"string")||(n[0]="ymd_his"),s(n[1],"object")||(n[1]={})}var i=n[0].split(/\{(?:[^{}]+)\}/),o=n[1];n[0].replace(/\{([^{}]*)\}/g,function(t,n,a){var s=i.shift();r+=c(s,e),r+=n in o?o[n]:t});var a=i.shift();return r+=c(a,e)}function f(t,e){this.name=t,this.allowUpDateName=!0,this.byteLength=0,this.options=e,this.startTime=(new Date).toLocaleString()}f.prototype.setEndTime=function(){this.endTime=(new Date).toLocaleString()},f.prototype.updateNameByStream=function(t,e){if(this.allowUpDateName){var n=new Uint8Array(e),r=(n[19]<<24)+(n[18]<<16)+(n[17]<<8)+n[16]>>>0,i="20"+(r>>26)+"/"+(r>>22&15)+"/"+(r>>17&31)+" "+(r>>12&31)+":"+(r>>6&63)+":"+(63&r);if(t.fileName)var o=t.fileName;else o=l(t,new Date(i));this.updateName(o),this.allowUpDateName=!1,n=null}e=null},f.prototype.updateName=function(t){this.name=t};var h=new function(){var t={count:0,total:0,group:[]},e=function(){};return e.prototype.add=function(e){t.count++,t.total+=e.byteLength,t.group.push(e)},e.prototype.get=function(e){return e in t?t[e]:t},new e};e.default=function(){var t=1048576,e=null,n=null,r=0,i=void 0,o=null;function s(){this.onMessage=function(){},this.postMessage=function(t){this.__onMessage(t)},this.__postMessage=function(t){this.onMessage(t)}}return s.prototype.__onMessage=function(t){var e=t;switch(e.type){case"init":this.init(e.options);break;case"addBuffer":this.addBuffer(e);break;case"close":this.close()}},s.prototype.init=function(e){this.fullSize=e.fullSize||1/0,this.singleSize=e.singleSize+20*t||520*t,i="init",this.limitOptions=Object.assign({limitBy:"fullSize"},e.limitOptions),this.nameOptions=Object.assign({namedBy:"date",nameFormat:["ymd_his",{}]},e.nameOptions)},s.prototype._malloc=function(t){e&&n&&(n=null,e=null),e=new ArrayBuffer(t),n=new DataView(e),o=new f("__DEFAULT__FILE__")},s.prototype._initVideoMem=function(){!e&&this.singleSize&&this._malloc(this.singleSize)},s.prototype.appendVideoBuf=function(e){var i=e.byteLength,o=r+i;if(o>this.singleSize-20*t)this.inNodePlace(),this.addBuffer({buffer:e});else{for(var a=r;athis.fullSize?this.close():this.appendVideoBuf(e)}},s.prototype.inNodePlace=function(){if("addBuffer"===i){i="download",this.nameOptions&&this.nameOptions.fileName?o.updateName(this.nameOptions.fileName):o.updateNameByStream(this.nameOptions,e.slice(0,20)),o.byteLength=r,o.setEndTime(),h.add(o);var t=e.slice(0,r);if(this.__postMessage({type:"download",data:a(a({},o),{},{buffer:t})}),this.reset(),t=null,"count"===this.limitOptions.limitBy){var n=this.limitOptions.count;n&&n===h.get("count")&&this.close()}}},s.prototype.reset=function(){r=0,this._malloc(this.singleSize)},s.prototype.close=function(){this.inNodePlace(),"closed"!==i&&void 0!==i&&(i="closed",this.__postMessage({type:"closed",message:"record was closed"}),e=null,n=null)},new s}},function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(7),n(32),n(218),n(219),n(16),n(220),n(17),n(108),n(53),n(221),n(109),n(222),n(223),n(224),n(54),n(225),n(15),n(10),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),o)}()},function(t,e,n){!function(e,r){var i;t.exports=(i=n(7),function(){var t=i,e=t.lib,n=e.WordArray,r=e.Hasher,o=t.algo,a=[],s=o.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],u=n[4],c=0;c<80;c++){if(c<16)a[c]=0|t[e+c];else{var l=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=l<<1|l>>>31}var f=(r<<5|r>>>27)+u+a[c];f+=c<20?1518500249+(i&o|~i&s):c<40?1859775393+(i^o^s):c<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,u=s,s=o,o=i<<30|i>>>2,i=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA1=r._createHelper(s),t.HmacSHA1=r._createHmacHelper(s)}(),i.SHA1)}()},function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(7),n(32),function(){var t=o,e=t.lib.Hasher,n=t.x64,r=n.Word,i=n.WordArray,a=t.algo;function s(){return r.create.apply(r,arguments)}var u=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var t=0;t<80;t++)c[t]=s()}();var l=a.SHA512=e.extend({_doReset:function(){this._hash=new i.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],f=n[6],h=n[7],d=r.high,p=r.low,v=i.high,g=i.low,m=o.high,y=o.low,b=a.high,w=a.low,S=s.high,_=s.low,E=l.high,x=l.low,T=f.high,A=f.low,k=h.high,C=h.low,D=d,B=p,R=v,I=g,M=m,O=y,P=b,F=w,U=S,j=_,L=E,N=x,z=T,V=A,H=k,q=C,W=0;W<80;W++){var G,Y,X=c[W];if(W<16)Y=X.high=0|t[e+2*W],G=X.low=0|t[e+2*W+1];else{var Q=c[W-15],Z=Q.high,K=Q.low,$=(Z>>>1|K<<31)^(Z>>>8|K<<24)^Z>>>7,J=(K>>>1|Z<<31)^(K>>>8|Z<<24)^(K>>>7|Z<<25),tt=c[W-2],et=tt.high,nt=tt.low,rt=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,it=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),ot=c[W-7],at=ot.high,st=ot.low,ut=c[W-16],ct=ut.high,lt=ut.low;Y=(Y=(Y=$+at+((G=J+st)>>>0>>0?1:0))+rt+((G+=it)>>>0>>0?1:0))+ct+((G+=lt)>>>0>>0?1:0),X.high=Y,X.low=G}var ft,ht=U&L^~U&z,dt=j&N^~j&V,pt=D&R^D&M^R&M,vt=B&I^B&O^I&O,gt=(D>>>28|B<<4)^(D<<30|B>>>2)^(D<<25|B>>>7),mt=(B>>>28|D<<4)^(B<<30|D>>>2)^(B<<25|D>>>7),yt=(U>>>14|j<<18)^(U>>>18|j<<14)^(U<<23|j>>>9),bt=(j>>>14|U<<18)^(j>>>18|U<<14)^(j<<23|U>>>9),wt=u[W],St=wt.high,_t=wt.low,Et=H+yt+((ft=q+bt)>>>0>>0?1:0),xt=mt+vt;H=z,q=V,z=L,V=N,L=U,N=j,U=P+(Et=(Et=(Et=Et+ht+((ft+=dt)>>>0
>>0?1:0))+St+((ft+=_t)>>>0<_t>>>0?1:0))+Y+((ft+=G)>>>0>>0?1:0))+((j=F+ft|0)>>>0>>0?1:0)|0,P=M,F=O,M=R,O=I,R=D,I=B,D=Et+(gt+pt+(xt>>>0>>0?1:0))+((B=ft+xt|0)>>>0>>0?1:0)|0}p=r.low=p+B,r.high=d+D+(p>>>0>>0?1:0),g=i.low=g+I,i.high=v+R+(g>>>0>>0?1:0),y=o.low=y+O,o.high=m+M+(y>>>0>>0?1:0),w=a.low=w+F,a.high=b+P+(w>>>0>>0?1:0),_=s.low=_+j,s.high=S+U+(_>>>0>>0?1:0),x=l.low=x+N,l.high=E+L+(x>>>0>>0?1:0),A=f.low=A+V,f.high=T+z+(A>>>0>>0?1:0),C=h.low=C+q,h.high=k+H+(C>>>0>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(l),t.HmacSHA512=e._createHmacHelper(l)}(),o.SHA512)}()},function(t,e){t.exports=function(){return new Worker("/module/keepAlive.worker.js")}},function(t,e,n){"use strict";var r=n(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(112)),o=n(33),a=n(171),s=r(n(37)),u=n(172),c=n(173),l=n(174),f=n(175),h=r(n(178));window.RPC=i.default,window._getSession=o._getSession,window._setSession=o._setSession,window.setIP=o.setIP,window.ajax=a.ajax,window.pubsub=s.default,window.loginError=u.loginError,window.setCookie=c.setCookie,window.BrowserType=l.BrowserType,window.PluginCanvasES6=f.PluginCanvasES6;var d=function(t){this.wsURL=t.wsURL,this.rtspURL=t.rtspURL,this.isTalkService=t.isTalkService,this.isPlayback=t.playback||!1,this.playBackRange=t.range||!1,this.isPrivateProtocol=t.isPrivateProtocol||!1,this.isAudioFlag=t.isAudioFlag||!1,this.lessRateCanvas=t.lessRateCanvas||!1,this.audioState="stop",this.realm=t.realm||"",this.ws=null,this.decodeMode=t.decodeMode,this.playbackIndex=t.playbackIndex,this.supportExtraError=t.supportExtraError||!1,this.events={ResolutionChanged:function(){},PlayStart:function(){},DecodeStart:function(){},UpdateCanvas:function(){},GetFrameRate:function(){},FrameTypeChange:function(){},Error:function(){},MSEResolutionChanged:function(){},audioChange:function(){},WorkerReady:function(){},IvsDraw:function(){},FileOver:function(){},Waiting:function(){},UpdateTime:function(){},recordChanged:function(){},GetFirstFrame:function(){},GetPlayOptionDone:function(){},WsConnectDone:function(){},UpdateTimeStamp:function(){},receiveStreamAssistFrame:function(){}},this.username=t.username,this.password=t.password,this.deployType=t.deployType,this.duration=t.duration,this.h265AccelerationEnabled=t.h265AccelerationEnabled,this.speed=t.speed,this.isDownLoad=t.isDownLoad,this.fileName=t.fileName};d.prototype={init:function(t,e,n){var r={dType:this.deployType,isPrivateProtocol:this.isPrivateProtocol,realm:this.realm,h265AccelerationEnabled:this.h265AccelerationEnabled,speed:this.speed,isDownLoad:this.isDownLoad,fileName:this.fileName};for(var i in this.ws=new h.default(this.wsURL,this.rtspURL,r),this.ws.setExtraError(this.supportExtraError),this.ws.init(t,e,n,this.isPlayback,this.isAudioFlag),this.ws.setLiveMode(this.decodeMode),this.ws.setUserInfo(this.username,this.password),this.ws.setPlayMode(this.isPlayback,this.playBackRange),this.ws.setLessRate(this.lessRateCanvas),this.events)this.ws.setCallback(i,this.events[i]);this.events=null},startCut:function(t,e){t?this.controlPlayer("startRecord",!0):this.ws&&(this.controlPlayer("startRecord",!1,e),this.ws.disconnect(),this.ws=null)},startRecord:function(t,e){if(t){if(this.ws)return;var n={isRecord:!0,isPrivateProtocol:this.isPrivateProtocol,realm:this.realm};for(var r in Object.assign(n,e),this.ws=new h.default(this.wsURL,this.rtspURL,n),this.ws.setUserInfo(this.username,this.password),this.events)this.ws.setCallback(r,this.events[r]);this.controlPlayer("startRecord",!0),this.connect()}else this.ws&&(this.controlPlayer("startRecord",!1),this.ws.disconnect(),this.ws=null)},connect:function(t){this.ws.connect(),t||(this.audioState="play")},play:function(){this.controlPlayer("PLAY")},pause:function(){this.controlPlayer("PAUSE")},stop:function(){this.controlPlayer("TEARDOWN")},close:function(){this.ws.disconnect(),this.audioState="stop"},playByTime:function(t){t=t<0?0:t,this.duration>0&&t>this.duration&&(t=this.duration),this.controlPlayer("PLAY","video",t)},playFF:function(t){this.controlPlayer("PAUSE"),this.controlPlayer("SCALE",t)},playRewind:function(){},playNextFrame:function(){this.controlPlayer("playNextFrame")},getCurFrameInfo:function(){return this.controlPlayer("getCurFrameInfo")},audioPlay:function(){this.controlPlayer("audioPlay","start"),this.audioState="play"},audioStop:function(){this.controlPlayer("audioPlay","stop")},audioPause:function(){this.controlPlayer("audioPlay","pause"),this.audioState="pause"},setAudioSamplingRate:function(t){this.controlPlayer("audioSamplingRate",t)},setAudioVolume:function(t){this.controlPlayer("volumn",t)},gotoSecond:function(t){var e=this;window.clearInterval(e.checkRsPre),window.clearInterval(e.checkRsNext),window.clearInterval(e.checkRsGoto),e.ws.clearMap(),!0===e.running&&(e.pause(),e.running=!1),e.playByTime(t-5),e.running=!0,e.checkRsGoto=window.setTimeout(function(){e.pause(),e.running=!1},12e3)},nextFrame:function(t,e,n){var r=this,i=t>Math.pow(2,32)?0:t,o=r.ws.gotoFrame(i);!1===o?r.nextSecond(e,function(e){n(r.ws.gotoFrame(t))}):n(o)},preFrame:function(t,e,n){var r=this,i=r.ws.gotoFrame(t);!1===i?r.preSecond(e,function(e){n(r.ws.gotoFrame(t))}):n(i)},nextSecond:function(t,e){var n=this,r=n.ws.gotoSecond(t);!1===r?(!1===n.running&&(n.playByTime(t),n.running=!0),n.checkRsNext=window.setInterval(function(){!1!==(r=n.ws.gotoSecond(t))&&(window.clearInterval(n.checkRsNext),window.setTimeout(function(){n.running=!1,n.pause()},9e3),e(r))},2e3)):(n.ws.checkLeftSize(t,"next")<=2&&!1===n.running&&(n.playByTime(t+1),n.running=!0,window.setTimeout(function(){n.pause(),n.running=!1},9e3)),e(r))},preSecond:function(t,e){var n=this,r=n.ws.gotoSecond(t);!1===r?(!1===n.running&&(n.playByTime(t-5),n.running=!0),n.checkRsPre=window.setInterval(function(){!1!==(r=n.ws.gotoSecond(t))&&(window.clearInterval(n.checkRsPre),window.setTimeout(function(){n.running=!1,n.pause()},9e3),e(r))},2e3)):(n.ws.checkLeftSize(t,"pre")<=2&&!1===n.running&&(n.playByTime(t-5),n.running=!0,window.setTimeout(function(){n.pause(),n.running=!1},9e3)),e(r))},controlPlayer:function(t,e,n){var r;return r="video"===e?{command:t,range:n||0}:"audioPlay"===t?{command:t,data:e,range:n||0}:"startRecord"===t?{command:t,data:e,stopDown:n}:{command:t,data:e},this.ws.controlPlayer(r)},setPlayMode:function(t){this.ws.setLiveMode(t)},setPlayPath:function(t){this.ws.setRTSPURL(t)},capture:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ivsCanvasArr:[]};this.ws.capture(t,e)},getCapture:function(t,e,n){return this.ws.getCapture(t,e,n)},talk:function(t){if("on"===t){for(var e in this.ws=new h.default(this.wsURL,this.rtspURL,{isTalkService:this.isTalkService,isPrivateProtocol:this.isPrivateProtocol,realm:this.realm}),this.ws.talkInit(),this.ws.setUserInfo(this.username,this.password),this.events)this.ws.setCallback(e,this.events[e]);this.ws.connect()}else this.ws.disconnect()},on:function(t,e){this.events[t]=e}};e.default=d},function(t,e,n){"use strict";var r=n(0),i=n(13);Object.defineProperty(e,"__esModule",{value:!0}),e.getRandomStr=e.default=void 0;var o=r(n(113)),a=r(n(13)),s=r(n(55)),u=r(n(119)),c=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=i(t)&&"function"!=typeof t)return{default:t};var n=v(e);if(n&&n.has(t))return n.get(t);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&{}.hasOwnProperty.call(t,a)){var s=o?Object.getOwnPropertyDescriptor(t,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}(n(33)),l=r(n(58)),f=r(n(143)),h=r(n(144)),d=r(n(145)),p=r(n(37));function v(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(v=function(t){return t?n:e})(t)}var g=n(38),m=g.SM4,y=g.SM2,b=n(146),w=n(3).Buffer,S=m.constants.CBC,_=new c.default,E=20,x=function(t,e){var n={},r=t.split(","),i=r[0].split(":"),o=r[1].split(":");n[i[0]]=i[1],n[o[0]]=o[1];var a=new h.default;return a.setPublic(n.N,n.E),a.encrypt(e)},T=function(t){return d.default.enc.Utf8.parse(t)},A=function(t){for(var e=(t+"=".repeat((4-t.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=window.atob(e),r=new Uint8Array(n.length),i=0;i0&&void 0!==arguments[0]?arguments[0]:300,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6e4,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,a=p.default.subscribe("_clearTime_",function(e){clearInterval(t.keepAliveTimer[e]),t.keepAliveTimer[e]=null,p.default.unsubscribe(a)});clearInterval(this.keepAliveTimer[o]),this.keepAliveTimer[o]=setInterval(function(){return _.Global.keepAlive(e,r,i)},n)},getUrlData:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"POST";return new Promise(function(i,o){(0,l.default)({method:r,url:t,headers:{"Self-TargetIP":(0,c.getIP)()}}).then(function(t){t=t.data,e.saltLen="V2.0"===n.SecurityBaselineVersion||"V2.0"===t.SecurityBaselineVersion?32:16,e.newSecVersion="V2.0"===n.SecurityBaselineVersion||"V2.0"===t.SecurityBaselineVersion,i(t)}).catch(function(t){o()})})},getEncrypt:function(t){var e=this;return _.Security.getEncryptInfoOut().then(function(n){var r=n.cipher,i=n.pub,o=n.suggestedAsymmetric,a=n.pubEx;return e.cipher=r,e.pub=i,e.suggestedAsymmetric=o,e.pubEx=a,t&&(e.saltLen="V2.0"===t.SecurityBaselineVersion?32:16,e.newSecVersion="V2.0"===t.SecurityBaselineVersion),e._decrypt=e._decrypt(e.cipher,e.newSecVersion,e.suggestedAsymmetric),e._encrypt=e._encrypt(e.pub,e.cipher,e.newSecVersion,e.suggestedAsymmetric,e.pubEx),!0}).catch(function(){})},getSecConfig:function(t,e){var n=this;return(0,u.default)(o.default.mark(function r(){var i,a,s,u,l;return o.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,i=n._getKeyt(),a=T(i),s={},!(t instanceof Array)){r.next=14;break}return u=t.map(function(t){return(0,c._config)({name:t,channel:e,type:"getConfig"})}),r.next=8,n._encrypt(u,i,a);case 8:return s=r.sent,r.next=11,_.System.multiSec(s);case 11:s=r.sent,r.next=20;break;case 14:return r.next=16,n._encrypt({name:t},i,a);case 16:return s=r.sent,r.next=19,_.Security.getConfig(s);case 19:s=r.sent;case 20:return r.next=22,n._decrypt(s.content,a);case 22:return l=r.sent,r.abrupt("return",l.table?l.table:l);case 26:throw r.prev=26,r.t0=r.catch(0),r.t0,String("Error:getSecConfig is error,please check ".concat(t," is exists"));case 30:case"end":return r.stop()}},r,null,[[0,26]])}))()},getSecDefault:function(t,e){var n=this;return(0,u.default)(o.default.mark(function r(){var i,a,s,u,l;return o.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,i=n._getKeyt(),a=T(i),s={},!(t instanceof Array)){r.next=14;break}return u=t.map(function(t){return(0,c._config)({name:t,channel:e,type:"getDefault"})}),r.next=8,n._encrypt(u,i,a);case 8:return s=r.sent,r.next=11,_.System.multiSec(s);case 11:s=r.sent,r.next=20;break;case 14:return r.next=16,n._encrypt({name:t},i,a);case 16:return s=r.sent,r.next=19,_.Security.getDefault(s);case 19:s=r.sent;case 20:return r.next=22,n._decrypt(s.content,a);case 22:return l=r.sent,r.abrupt("return",l.table?l.table:l);case 26:throw r.prev=26,r.t0=r.catch(0),String("Error:getSecDefault is error,please check ".concat(t," is exists"));case 29:case"end":return r.stop()}},r,null,[[0,26]])}))()},setSecConfig:function(t,e,n,r){var i=this;return(0,u.default)(o.default.mark(function a(){var s,u,l,f,h;return o.default.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(o.prev=0,s=i._getKeyt(),u=T(s),l={},!(t instanceof Array)){o.next=16;break}if(!e.length||t.length===e.length){o.next=7;break}throw new Error("setSecConfig params error");case 7:return f=t.map(function(t,i){return(0,c._config)({name:t,channel:n,params:e[i],type:"setConfig",options:r})}),o.next=10,i._encrypt(f,s,u);case 10:return l=o.sent,o.next=13,_.System.multiSec(l);case 13:l=o.sent,o.next=22;break;case 16:return o.next=18,i._encrypt({name:t,table:e},s,u);case 18:return l=o.sent,o.next=21,_.Security.setConfig(l);case 21:l=o.sent;case 22:return o.next=24,i._decrypt(l.content,u);case 24:return h=o.sent,o.abrupt("return",h.table?h.table:h);case 28:throw o.prev=28,o.t0=o.catch(0),o.t0;case 31:case"end":return o.stop()}},a,null,[[0,28]])}))()},access:function(t){var e=this;return(0,u.default)(o.default.mark(function n(){var r,i,a,s;return o.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,r=e._getKeyt(),i=T(r),n.next=5,e._encrypt(t,r,i);case 5:return a=n.sent,n.next=8,_.DevInit.access(a);case 8:return s=n.sent,n.abrupt("return",s.table?s.table:s);case 12:throw n.prev=12,n.t0=n.catch(0),String("Error:access is error");case 15:case"end":return n.stop()}},n,null,[[0,12]])}))()},multiSec:function(t){var e=this;return(0,u.default)(o.default.mark(function n(){var r,i,a,s,u,l,f,h,d,p;return o.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=[],t instanceof Array?r=t.map(function(t){return(0,c._data)(t.method,t.params,t.object&&{object:t.object})}):(i=t.method,a=t.params,s=void 0===a?null:a,u=t.object,l=void 0===u?void 0:u,r=[r=(0,c._data)(i,s,l&&{object:l})]),n.prev=2,f=e._getKeyt(),h=T(f),n.next=7,e._encrypt(r,f,h);case 7:return d=n.sent,n.next=10,_.System.multiSec(d);case 10:return d=n.sent,n.next=13,e._decrypt(d.content,h);case 13:return p=n.sent,n.abrupt("return",p.table?p.table:p);case 17:throw n.prev=17,n.t0=n.catch(2),String("Error:multiSec is error");case 20:case"end":return n.stop()}},n,null,[[2,17]])}))()},getRecords:function(t,e){var n=arguments,r=this;return(0,u.default)(o.default.mark(function i(){var a,u,c,l;return o.default.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return a=!(n.length>2&&void 0!==n[2])||n[2],u={},c="",i.prev=2,i.next=5,_.RecordFinder.create(t);case 5:return l=i.sent,c=l.result,i.next=9,_.RecordFinder.startFind(e,c);case 9:if((l=i.sent).result){i.next=12;break}throw String("startFind is error");case 12:if(!a){i.next=18;break}return i.next=15,r._encryptDoFind("RecordFinder",c);case 15:i.t0=i.sent,i.next=21;break;case 18:return i.next=20,_.RecordFinder.doFind(E,c);case 20:i.t0=i.sent;case 21:l=i.t0,u=l.records;case 23:if(l.found!==E){i.next=37;break}if(!a){i.next=30;break}return i.next=27,r._encryptDoFind("RecordFinder",c);case 27:i.t1=i.sent,i.next=33;break;case 30:return i.next=32,_.RecordFinder.doFind(E,c);case 32:i.t1=i.sent;case 33:l=i.t1,u=null===l.records?(0,s.default)(u):[].concat((0,s.default)(u),(0,s.default)(l.records)),i.next=23;break;case 37:return i.abrupt("return",u||[]);case 40:throw i.prev=40,i.t2=i.catch(2),String("Error:getRecords is error, please check ".concat(t," is exists"));case 43:return i.prev=43,i.next=46,_.RecordFinder.stopFind(c);case 46:return i.next=48,_.RecordFinder.destroy(c);case 48:return i.finish(43);case 49:case"end":return i.stop()}},i,null,[[2,40,43,49]])}))()},createDoSeekFind:function(t,e){var n=this,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=null,a=!1,s=function(){var n=(0,u.default)(o.default.mark(function n(){var r;return o.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!i&&!a){n.next=2;break}return n.abrupt("return");case 2:return a=!0,n.next=5,_.RecordFinder.create(t);case 5:return r=n.sent,n.next=8,_.RecordFinder.startFind(e,r.result);case 8:i=r.result,a=!1;case 10:case"end":return n.stop()}},n)}));return function(){return n.apply(this,arguments)}}();return{getQuerySize:function(){var e=(0,u.default)(o.default.mark(function e(){var n;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,s();case 3:if(i){e.next=6;break}return console.warn("Error:createDoSeekFind is error, please check object is exists"),e.abrupt("return",0);case 6:return e.next=8,_.RecordFinder.getQuerySize(i);case 8:return n=e.sent,e.abrupt("return",n.count);case 12:throw e.prev=12,e.t0=e.catch(0),String("Error:createDoSeekFind is error, please check getQuerySize(".concat(t,") is exists"));case 15:case"end":return e.stop()}},e,null,[[0,12]])}));return function(){return e.apply(this,arguments)}}(),doSeekFind:function(){var e=(0,u.default)(o.default.mark(function e(a){var u,l,f,h;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s();case 2:if(i){e.next=5;break}return console.warn("Error:createDoSeekFind is error, please check object is exists"),e.abrupt("return",!1);case 5:if(u=[],l=null,e.prev=7,f=(a-1)*E,!r){e.next=19;break}return h=[(0,c._data)("RecordFinder.doSeekFind",{offset:f,count:E},{object:i})],e.next=13,n.multiRecordSec(h);case 13:if(!(l=e.sent)[0].error){e.next=16;break}throw String("Error:doSeekFind ".concat(t," is error with Encrypt"));case 16:u=l[0].params.records,e.next=23;break;case 19:return e.next=21,_.RecordFinder.doSeekFind(f,E,i);case 21:l=e.sent,u=l.records;case 23:return e.abrupt("return",u||[]);case 26:throw e.prev=26,e.t0=e.catch(7),String("Error:createDoSeekFind is error, please check doSeekFind(".concat(t,") is exists"));case 29:case"end":return e.stop()}},e,null,[[7,26]])}));return function(t){return e.apply(this,arguments)}}(),destroy:function(){var t=(0,u.default)(o.default.mark(function t(){return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i){t.next=2;break}return t.abrupt("return");case 2:return t.prev=2,t.next=5,_.RecordFinder.stopFind(i);case 5:return t.next=7,_.RecordFinder.destroy(i);case 7:return i=null,t.abrupt("return",!0);case 11:throw t.prev=11,t.t0=t.catch(2),String("Error:createDoSeekFind is error, please check object is undefined");case 14:case"end":return t.stop()}},t,null,[[2,11]])}));return function(){return t.apply(this,arguments)}}()}},getVideoCaps:function(t){return(0,u.default)(o.default.mark(function e(){var n,r;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n="",e.prev=1,e.next=4,_.DevVideoInput.instance(t);case 4:return r=e.sent,n=r.result,e.next=8,_.DevVideoInput.getCaps(n);case 8:return r=e.sent,e.abrupt("return",r.caps);case 12:throw e.prev=12,e.t0=e.catch(1),String("Error:getVideoCaps is error, please check channel:".concat(t," is exists"));case 15:return e.prev=15,_.DevVideoInput.destroy(n),e.finish(15);case 18:case"end":return e.stop()}},e,null,[[1,12,15,18]])}))()},DevVideoInputManager:function(t){var e=arguments;return(0,u.default)(o.default.mark(function n(){var r,i,a,s;return o.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.length>1&&void 0!==e[1]?e[1]:null,i=e.length>2&&void 0!==e[2]?e[2]:0,a="",n.prev=3,n.next=6,_.DevVideoInput.instance(i);case 6:return s=n.sent,a=s.result,n.next=10,_.DevVideoInput[t](a,r);case 10:return s=n.sent,n.abrupt("return",s.caps);case 14:throw n.prev=14,n.t0=n.catch(3),String("Error:getVideoCaps is error, please check channel:".concat(i," is exists"));case 17:return n.prev=17,_.DevVideoInput.destroy(a),n.finish(17);case 20:case"end":return n.stop()}},n,null,[[3,14,17,20]])}))()},getVideoCapsEx:function(t,e){return(0,u.default)(o.default.mark(function n(){var r,i;return o.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r="",n.prev=1,n.next=4,_.DevVideoInput.instance(e);case 4:return i=n.sent,r=i.result,n.next=8,_.DevVideoInput.getCapsEx(r,t);case 8:return i=n.sent,n.abrupt("return",i.caps);case 12:throw n.prev=12,n.t0=n.catch(1),n.t0,String("Error:getVideoCapsEx is error, please check channel:".concat(e," is exists"));case 16:return n.prev=16,_.DevVideoInput.destroy(r),n.finish(16);case 19:case"end":return n.stop()}},n,null,[[1,12,16,19]])}))()},multiRecordSec:function(t){var e=this;return(0,u.default)(o.default.mark(function n(){var r,i,a,s;return o.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,r=e._getKeyt(),i=T(r),n.next=5,e._encrypt(t,r,i);case 5:return a=n.sent,n.next=8,_.System.multiSec(a);case 8:return a=n.sent,n.next=11,e._decrypt(a.content,i);case 11:return s=n.sent,n.abrupt("return",s.table?s.table:s);case 15:throw n.prev=15,n.t0=n.catch(0),String("Error:multiRecordSec is error");case 18:case"end":return n.stop()}},n,null,[[0,15]])}))()},getDeviceAllInfo:function(t){var e=arguments;return(0,u.default)(o.default.mark(function n(){var r,i,a;return o.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.length>1&&void 0!==e[1]?e[1]:null,i="",n.prev=2,n.next=5,_.Storage.instance();case 5:return a=n.sent,i=a.result,n.next=9,_.Storage[t](i,r);case 9:return a=n.sent,n.abrupt("return",a);case 13:throw n.prev=13,n.t0=n.catch(2),String("Error:getDeviceAllInfo is error, please check channel:".concat(t," is exists"));case 16:return n.prev=16,_.Storage.destroy(i),n.finish(16);case 19:case"end":return n.stop()}},n,null,[[2,13,16,19]])}))()},getStorage:function(t){var e=arguments;return(0,u.default)(o.default.mark(function n(){var r,i,a;return o.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.length>1&&void 0!==e[1]?e[1]:null,i="",n.prev=2,n.next=5,_.Storage.instance();case 5:return a=n.sent,i=a.result,n.next=9,_.Storage[t](i,r);case 9:return a=n.sent,n.abrupt("return",a);case 13:throw n.prev=13,n.t0=n.catch(2),n.t0,String("Error:getStorage is error, please check channel:".concat(t," is exists"));case 17:return n.prev=17,_.Storage.destroy(i),n.finish(17);case 20:case"end":return n.stop()}},n,null,[[2,13,17,20]])}))()},getMediaFile:function(t){var e=arguments;return(0,u.default)(o.default.mark(function n(){var r,i,a;return o.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.length>1&&void 0!==e[1]?e[1]:null,i="",n.prev=2,n.next=5,_.MediaFileFind.instance();case 5:return a=n.sent,i=a.result,n.next=9,_.MediaFileFind[t](i,r);case 9:return a=n.sent,n.abrupt("return",a);case 13:throw n.prev=13,n.t0=n.catch(2),n.t0,String("Error:getMediaFile is error, please check channel:".concat(t," is exists"));case 17:return n.prev=17,_.MediaFileFind.destroy(i),n.finish(17);case 20:case"end":return n.stop()}},n,null,[[2,13,17,20]])}))()},getPlaybackList:function(t){var e=arguments;return(0,u.default)(o.default.mark(function n(){var r,i,a,s,u,c;return o.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.length>1&&void 0!==e[1]?e[1]:null,i="",a=r.condition.count,s=r.condition,n.prev=3,n.next=6,_.MediaFileFind.instance();case 6:return c=n.sent,i=c.result,n.next=10,_.MediaFileFind.findFile(i,{condition:s});case 10:if(!(c=n.sent)){n.next=15;break}return n.next=14,_.MediaFileFind.findNextFile(i,{count:a});case 14:u=n.sent;case 15:return n.abrupt("return",u);case 18:throw n.prev=18,n.t0=n.catch(3),"Error:getPlaybackList is error, please check channel:".concat(t," is exists"),n.t0;case 22:return n.prev=22,_.MediaFileFind.destroy(i),n.finish(22);case 25:case"end":return n.stop()}},n,null,[[3,18,22,25]])}))()},getEncode:function(t){var e=arguments;return(0,u.default)(o.default.mark(function n(){var r,i;return o.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.length>1&&void 0!==e[1]?e[1]:null,n.prev=1,n.next=4,_.Encode[t](r);case 4:return i=n.sent,n.abrupt("return",i);case 8:throw n.prev=8,n.t0=n.catch(1),n.t0,String("Error:Encode is error, please check channel:".concat(t," is exists"));case 12:return n.prev=12,n.finish(12);case 14:case"end":return n.stop()}},n,null,[[1,8,12,14]])}))()},PTZManager:function(t){var e=arguments;return(0,u.default)(o.default.mark(function n(){var r,i,s,u,c;return o.default.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.length>1&&void 0!==e[1]?e[1]:0,i=e.length>2&&void 0!==e[2]?e[2]:null,"object"===(0,a.default)(r)&&(s=r,r=i,i=s),n.prev=3,n.next=6,L(r);case 6:return u=n.sent,n.next=9,_.PTZ[t](u,i);case 9:return c=n.sent,n.abrupt("return",c);case 13:throw n.prev=13,n.t0=n.catch(3),n.t0,n.t0;case 17:return n.prev=17,n.finish(17);case 19:case"end":return n.stop()}},n,null,[[3,13,17,19]])}))()}};e.default=new N},function(t,e,n){var r=n(114)();t.exports=r;try{regeneratorRuntime=r}catch(t){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){var r=n(13).default;function i(){"use strict";t.exports=i=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var e,n={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(t,e,n){t[e]=n.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",l=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(e){h=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var i=e&&e.prototype instanceof w?e:w,o=Object.create(i.prototype),a=new M(r||[]);return s(o,"_invoke",{value:D(t,n,a)}),o}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=d;var v="suspendedStart",g="suspendedYield",m="executing",y="completed",b={};function w(){}function S(){}function _(){}var E={};h(E,c,function(){return this});var x=Object.getPrototypeOf,T=x&&x(x(O([])));T&&T!==o&&a.call(T,c)&&(E=T);var A=_.prototype=w.prototype=Object.create(E);function k(t){["next","throw","return"].forEach(function(e){h(t,e,function(t){return this._invoke(e,t)})})}function C(t,e){function n(i,o,s,u){var c=p(t[i],t,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==r(f)&&a.call(f,"__await")?e.resolve(f.__await).then(function(t){n("next",t,s,u)},function(t){n("throw",t,s,u)}):e.resolve(f).then(function(t){l.value=t,s(l)},function(t){return n("throw",t,s,u)})}u(c.arg)}var i;s(this,"_invoke",{value:function(t,r){function o(){return new e(function(e,i){n(t,r,e,i)})}return i=i?i.then(o,o):o()}})}function D(t,n,r){var i=v;return function(o,a){if(i===m)throw Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:e,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=B(s,r);if(u){if(u===b)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===v)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=m;var c=p(t,n,r);if("normal"===c.type){if(i=r.done?y:g,c.arg===b)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=y,r.method="throw",r.arg=c.arg)}}}function B(t,n){var r=n.method,i=t.iterator[r];if(i===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,B(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var o=p(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function R(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[c];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function n(){for(;++i=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=a.call(o,"catchLoc"),c=a.call(o,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:O(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),b}},n}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(56);t.exports=function(t){if(Array.isArray(t))return r(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(56);t.exports=function(t,e){if(t){if("string"===typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function n(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}t.exports=function(t){return function(){var e=this,r=arguments;return new Promise(function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,u,"next",t)}function u(t){n(a,i,o,s,u,"throw",t)}s(void 0)})}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(13).default;t.exports=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var r=n(11),i=n(59),o=n(122),a=n(67);var s=function t(e){var n=new o(e),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return t(a(e,n))},s}(n(35));s.Axios=o,s.CanceledError=n(26),s.CancelToken=n(139),s.isCancel=n(66),s.VERSION=n(68).version,s.toFormData=n(63),s.AxiosError=n(18),s.Cancel=s.CanceledError,s.all=function(t){return Promise.all(t)},s.spread=n(140),s.isAxiosError=n(141),t.exports=s,t.exports.default=s},function(t,e,n){"use strict";var r=n(11),i=n(60),o=n(123),a=n(124),s=n(67),u=n(65),c=n(138),l=c.validators;function f(t){this.defaults=t,this.interceptors={request:new o,response:new o}}f.prototype.request=function(t,e){"string"===typeof t?(e=e||{}).url=t:e=t||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var n=e.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach(function(t){"function"===typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,r.unshift(t.fulfilled,t.rejected))});var o,u=[];if(this.interceptors.response.forEach(function(t){u.push(t.fulfilled,t.rejected)}),!i){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(u),o=Promise.resolve(e);f.length;)o=o.then(f.shift(),f.shift());return o}for(var h=e;r.length;){var d=r.shift(),p=r.shift();try{h=d(h)}catch(t){p(t);break}}try{o=a(h)}catch(t){return Promise.reject(t)}for(;u.length;)o=o.then(u.shift(),u.shift());return o},f.prototype.getUri=function(t){t=s(this.defaults,t);var e=u(t.baseURL,t.url);return i(e,t.params,t.paramsSerializer)},r.forEach(["delete","get","head","options"],function(t){f.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}}),r.forEach(["post","put","patch"],function(t){function e(e){return function(n,r,i){return this.request(s(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[t]=e(),f.prototype[t+"Form"]=e(!0)}),t.exports=f},function(t,e,n){"use strict";var r=n(11);function i(){this.handlers=[]}i.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=i},function(t,e,n){"use strict";var r=n(11),i=n(125),o=n(66),a=n(35),s=n(26);function u(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new s}t.exports=function(t){return u(t),t.headers=t.headers||{},t.data=i.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||a.adapter)(t).then(function(e){return u(t),e.data=i.call(t,e.data,e.headers,t.transformResponse),e},function(e){return o(e)||(u(t),e&&e.response&&(e.response.data=i.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,n){"use strict";var r=n(11),i=n(35);t.exports=function(t,e,n){var o=this||i;return r.forEach(n,function(n){t=n.call(o,t,e)}),t}},function(t,e,n){"use strict";var r=n(11);t.exports=function(t,e){r.forEach(t,function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])})}},function(t,e,n){"use strict";e.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=c(t),a=r[0],s=r[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n>16&255,u[l++]=e>>8&255,u[l++]=255&e;2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[l++]=255&e);1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var i,o,a=[],s=e;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,f=n?i-1:0,h=n?-1:1,d=t[e+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;t[n+d]=255&a,d+=p,a/=256,c-=8);t[n+d-p]|=128*v}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";var r=n(18);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}},function(t,e,n){"use strict";var r=n(11);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(11),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}}),a):a}},function(t,e,n){"use strict";var r=n(11);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";t.exports=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}},function(t,e){t.exports=null},function(t,e,n){"use strict";var r=n(68).version,i=n(18),o={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){o[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});var a={};o.transitional=function(t,e,n){function o(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,s){if(!1===t)throw new i(o(r," has been removed"+(e?" in "+e:"")),i.ERR_DEPRECATED);return e&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,s)}},t.exports={assertOptions:function(t,e,n){if("object"!==typeof t)throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(t),o=r.length;o-- >0;){var a=r[o],s=e[a];if(s){var u=t[a],c=void 0===u||s(u,a,t);if(!0!==c)throw new i("option "+a+" must be "+c,i.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},function(t,e,n){"use strict";var r=n(26);function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;this.promise.then(function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e>>0).toString(16);return"00000000".substr(0,8-e.length)+e}function n(t,e,n){return t&e|~t&n}function r(t,e,n){return n&t|~n&e}function o(t,e,n){return t^e^n}function a(t,e,n){return e^(t|~n)}function s(t,e){return t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]}function u(t){for(var e=[],n=0;n>>32-o),g=a}var i=l.length;l.push(128);var u=l.length%64;if(u>56){for(var c=0;c<64-u;c++)l.push(0);u=l.length%64}for(c=0;c<56-u;c++)l.push(0);l=l.concat(function(t){for(var e=[],n=0;n<8;n++)e.push(255&t),t>>>=8;return e}(8*i));var f=1732584193,d=4023233417,p=2562383102,v=271733878,g=0,m=0,y=0,b=0;for(c=0;c=0;u--)a=255&(s=arguments[u]),a<<=8,a|=255&(s>>>=8),a<<=8,a|=255&(s>>>=8),a<<=8,o+=e(a|=s>>>=8);return o}(v,p,d,f).toUpperCase()}()}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function i(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}function o(){return new i(null)}"Microsoft Internet Explorer"==navigator.appName?(i.prototype.am=function(t,e,n,r,i,o){for(var a=32767&e,s=e>>15;--o>=0;){var u=32767&this[t],c=this[t++]>>15,l=s*u+c*a;i=((u=a*u+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+s*c+(i>>>30),n[r++]=1073741823&u}return i},r=30):"Netscape"!=navigator.appName?(i.prototype.am=function(t,e,n,r,i,o){for(;--o>=0;){var a=e*this[t++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},r=26):(i.prototype.am=function(t,e,n,r,i,o){for(var a=16383&e,s=e>>14;--o>=0;){var u=16383&this[t],c=this[t++]>>14,l=s*u+c*a;i=((u=a*u+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+s*c,n[r++]=268435455&u}return i},r=28),i.prototype.DB=r,i.prototype.DM=(1<>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}function p(t){this.m=t}function v(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<=0?t.mod(this.m):t},p.prototype.revert=function(t){return t},p.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},p.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},p.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},v.prototype.convert=function(t){var e=o();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(i.ZERO)>0&&this.m.subTo(e,e),e},v.prototype.revert=function(t){var e=o();return t.copyTo(e),this.reduce(e),e},v.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},v.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},v.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},i.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},i.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+DV:this.t=0},i.prototype.fromString=function(t,e){var n;if(16==e)n=4;else if(8==e)n=3;else if(256==e)n=8;else if(2==e)n=1;else if(32==e)n=5;else{if(4!=e)return void this.fromRadix(t,e);n=2}this.t=0,this.s=0;for(var r=t.length,o=!1,a=0;--r>=0;){var s=8==n?255&t[r]:f(t,r);s<0?"-"==t.charAt(r)&&(o=!0):(o=!1,0==a?this[this.t++]=s:a+n>this.DB?(this[this.t-1]|=(s&(1<>this.DB-a):this[this.t-1]|=s<=this.DB&&(a-=this.DB))}8==n&&0!=(128&t[0])&&(this.s=-1,a>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==t;)--this.t},i.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},i.prototype.drShiftTo=function(t,e){for(var n=t;n=0;--n)e[n+a+1]=this[n]>>i|s,s=(this[n]&o)<=0;--n)e[n]=0;e[a]=s,e.t=this.t+a+1,e.s=this.s,e.clamp()},i.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,o=(1<>r;for(var a=n+1;a>r;r>0&&(e[this.t-n-1]|=(this.s&o)<>=this.DB;if(t.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},i.prototype.multiplyTo=function(t,e){var n=this.abs(),r=t.abs(),o=n.t;for(e.t=o+r.t;--o>=0;)e[o]=0;for(o=0;o=0;)t[n]=0;for(n=0;n=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},i.prototype.divRemTo=function(t,e,n){var r=t.abs();if(!(r.t<=0)){var a=this.abs();if(a.t0?(r.lShiftTo(l,s),a.lShiftTo(l,n)):(r.copyTo(s),a.copyTo(n));var f=s.t,h=s[f-1];if(0!=h){var p=h*(1<1?s[f-2]>>this.F2:0),v=this.FV/p,g=(1<=0&&(n[n.t++]=1,n.subTo(w,n)),i.ONE.dlShiftTo(f,w),w.subTo(s,s);s.t=0;){var S=n[--y]==h?this.DM:Math.floor(n[y]*v+(n[y-1]+m)*g);if((n[y]+=s.am(0,S,n,b,0,f))0&&n.rShiftTo(l,n),u<0&&i.ZERO.subTo(n,n)}}},i.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},i.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},i.prototype.exp=function(t,e){if(t>4294967295||t<1)return i.ONE;var n=o(),r=o(),a=e.convert(this),s=d(t)-1;for(a.copyTo(n);--s>=0;)if(e.sqrTo(n,r),(t&1<0)e.mulTo(r,a,n);else{var u=n;n=r,r=u}return e.revert(n)},i.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<0)for(s>s)>0&&(i=!0,o=l(n));a>=0;)s>(s+=this.DB-e)):(n=this[a]>>(s-=e)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=l(n));return i?o:"0"},i.prototype.negate=function(){var t=o();return i.ZERO.subTo(this,t),t},i.prototype.abs=function(){return this.s<0?this.negate():this},i.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},i.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+d(this[this.t-1]^this.s&this.DM)},i.prototype.mod=function(t){var e=o();return this.abs().divRemTo(t,null,e),this.s<0&&e.compareTo(i.ZERO)>0&&t.subTo(e,e),e},i.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new p(e):new v(e),this.exp(t,n)},i.ZERO=h(0),i.ONE=h(1),g.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},g.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]};var m,y,b,w=256;function S(){var t;t=(new Date).getTime(),y[b++]^=255&t,y[b++]^=t>>8&255,y[b++]^=t>>16&255,y[b++]^=t>>24&255,b>=w&&(b-=w)}if(null==y){var _;if(y=new Array,b=0,"Netscape"==navigator.appName&&navigator.appVersion<"5"&&window.crypto){var E=window.crypto.random(32);for(_=0;_>>8,y[b++]=255&_;b=0,S()}function x(){if(null==m){for(S(),(m=new g).init(y),b=0;b0&&e.length>0?(this.n=new i(t,16),this.e=parseInt(e,16)):alert("Invalid RSA public key")},A.prototype.encrypt=function(t){var e=function(t,e){if(e=0&&e>0;){var o=t.charCodeAt(r--);o<128?n[--e]=o:o>127&&o<2048?(n[--e]=63&o|128,n[--e]=o>>6|192):(n[--e]=63&o|128,n[--e]=o>>6&63|128,n[--e]=o>>12|224)}n[--e]=0;for(var a=new T,s=new Array;e>2;){for(s[0]=0;0==s[0];)a.nextBytes(s);n[--e]=s[0]}return n[--e]=2,n[--e]=0,new i(n)}(t,this.n.bitLength()+7>>3);if(null==e)return null;var n=this.doPublic(e);if(null==n)return null;var r=n.toString(16);return 0==(1&r.length)?r:"0"+r};e.default=A},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=r||function(t,e){var n={},r=n.lib={},i=function(){},o=r.Base={extend:function(t){i.prototype=this;var e=new i;return t&&e.mixIn(t),e.hasOwnProperty("init")||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},a=r.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes;if(t=t.sigBytes,this.clamp(),r%4)for(var i=0;i>>2]|=(n[i>>>2]>>>24-i%4*8&255)<<24-(r+i)%4*8;else if(65535>>2]=n[i>>>2];else e.push.apply(e,n);return this.sigBytes+=t,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n=[],r=0;r>>2]>>>24-r%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new a.init(n,e/2)}},c=s.Latin1={stringify:function(t){var e=t.words;t=t.sigBytes;for(var n=[],r=0;r>>2]>>>24-r%4*8&255));return n.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new a.init(n,e)}},l=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},f=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o);if(e=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*o,i=t.min(4*e,i),e){for(var u=0;u>>2]>>>24-i%4*8&255)<<16|(e[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|e[i+2>>>2]>>>24-(i+2)%4*8&255,a=0;4>a&&i+.75*a>>6*(3-a)&63));if(e=r.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(t){var n=t.length,r=this._map;(i=r.charAt(64))&&(-1!=(i=t.indexOf(i))&&(n=i));for(var i=[],o=0,a=0;a>>6-a%4*2;i[o>>>2]|=(s|u)<<24-o%4*8,o++}return e.create(i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),function(t){function e(t,e,n,r,i,o,a){return((t=t+(e&n|~e&r)+i+a)<>>32-o)+e}function n(t,e,n,r,i,o,a){return((t=t+(e&r|n&~r)+i+a)<>>32-o)+e}function i(t,e,n,r,i,o,a){return((t=t+(e^n^r)+i+a)<>>32-o)+e}function o(t,e,n,r,i,o,a){return((t=t+(n^(e|~r))+i+a)<>>32-o)+e}for(var a=r,s=(c=a.lib).WordArray,u=c.Hasher,c=a.algo,l=[],f=0;64>f;f++)l[f]=4294967296*t.abs(t.sin(f+1))|0;c=c.MD5=u.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,r){for(var a=0;16>a;a++){var s=t[u=r+a];t[u]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}a=this._hash.words;var u=t[r+0],c=(s=t[r+1],t[r+2]),f=t[r+3],h=t[r+4],d=t[r+5],p=t[r+6],v=t[r+7],g=t[r+8],m=t[r+9],y=t[r+10],b=t[r+11],w=t[r+12],S=t[r+13],_=t[r+14],E=t[r+15],x=e(x=a[0],k=a[1],A=a[2],T=a[3],u,7,l[0]),T=e(T,x,k,A,s,12,l[1]),A=e(A,T,x,k,c,17,l[2]),k=e(k,A,T,x,f,22,l[3]);x=e(x,k,A,T,h,7,l[4]),T=e(T,x,k,A,d,12,l[5]),A=e(A,T,x,k,p,17,l[6]),k=e(k,A,T,x,v,22,l[7]),x=e(x,k,A,T,g,7,l[8]),T=e(T,x,k,A,m,12,l[9]),A=e(A,T,x,k,y,17,l[10]),k=e(k,A,T,x,b,22,l[11]),x=e(x,k,A,T,w,7,l[12]),T=e(T,x,k,A,S,12,l[13]),A=e(A,T,x,k,_,17,l[14]),x=n(x,k=e(k,A,T,x,E,22,l[15]),A,T,s,5,l[16]),T=n(T,x,k,A,p,9,l[17]),A=n(A,T,x,k,b,14,l[18]),k=n(k,A,T,x,u,20,l[19]),x=n(x,k,A,T,d,5,l[20]),T=n(T,x,k,A,y,9,l[21]),A=n(A,T,x,k,E,14,l[22]),k=n(k,A,T,x,h,20,l[23]),x=n(x,k,A,T,m,5,l[24]),T=n(T,x,k,A,_,9,l[25]),A=n(A,T,x,k,f,14,l[26]),k=n(k,A,T,x,g,20,l[27]),x=n(x,k,A,T,S,5,l[28]),T=n(T,x,k,A,c,9,l[29]),A=n(A,T,x,k,v,14,l[30]),x=i(x,k=n(k,A,T,x,w,20,l[31]),A,T,d,4,l[32]),T=i(T,x,k,A,g,11,l[33]),A=i(A,T,x,k,b,16,l[34]),k=i(k,A,T,x,_,23,l[35]),x=i(x,k,A,T,s,4,l[36]),T=i(T,x,k,A,h,11,l[37]),A=i(A,T,x,k,v,16,l[38]),k=i(k,A,T,x,y,23,l[39]),x=i(x,k,A,T,S,4,l[40]),T=i(T,x,k,A,u,11,l[41]),A=i(A,T,x,k,f,16,l[42]),k=i(k,A,T,x,p,23,l[43]),x=i(x,k,A,T,m,4,l[44]),T=i(T,x,k,A,w,11,l[45]),A=i(A,T,x,k,E,16,l[46]),x=o(x,k=i(k,A,T,x,c,23,l[47]),A,T,u,6,l[48]),T=o(T,x,k,A,v,10,l[49]),A=o(A,T,x,k,_,15,l[50]),k=o(k,A,T,x,d,21,l[51]),x=o(x,k,A,T,w,6,l[52]),T=o(T,x,k,A,f,10,l[53]),A=o(A,T,x,k,y,15,l[54]),k=o(k,A,T,x,s,21,l[55]),x=o(x,k,A,T,g,6,l[56]),T=o(T,x,k,A,E,10,l[57]),A=o(A,T,x,k,p,15,l[58]),k=o(k,A,T,x,S,21,l[59]),x=o(x,k,A,T,h,6,l[60]),T=o(T,x,k,A,b,10,l[61]),A=o(A,T,x,k,c,15,l[62]),k=o(k,A,T,x,m,21,l[63]);a[0]=a[0]+x|0,a[1]=a[1]+k|0,a[2]=a[2]+A|0,a[3]=a[3]+T|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296);for(n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(n.length+1),this._process(),n=(e=this._hash).words,r=0;4>r;r++)i=n[r],n[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);return e},clone:function(){var t=u.clone.call(this);return t._hash=this._hash.clone(),t}}),a.MD5=u._createHelper(c),a.HmacMD5=u._createHmacHelper(c)}(Math),function(){var t,e=r,n=(t=e.lib).Base,i=t.WordArray,o=(t=e.algo).EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:t.MD5,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=(s=this.cfg).hasher.create(),r=i.create(),o=r.words,a=s.keySize,s=s.iterations;o.length>>2]}},e.BlockCipher=u.extend({cfg:u.cfg.extend({mode:c,padding:f}),reset:function(){u.reset.call(this);var t=(e=this.cfg).iv,e=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=e.createEncryptor;else n=e.createDecryptor,this._minBufferSize=1;this._mode=n.call(e,this,t&&t.words)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else e=this._process(!0),t.unpad(e);return e},blockSize:4});var h=e.CipherParams=n.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),d=(c=(p.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext;return((t=t.salt)?i.create([1398893684,1701076831]).concat(t).concat(e):e).toString(a)},parse:function(t){var e=(t=a.parse(t)).words;if(1398893684==e[0]&&1701076831==e[1]){var n=i.create(e.slice(2,4));e.splice(0,4),t.sigBytes-=16}return h.create({ciphertext:t,salt:n})}},e.SerializableCipher=n.extend({cfg:n.extend({format:c}),encrypt:function(t,e,n,r){r=this.cfg.extend(r);var i=t.createEncryptor(n,r);return e=i.finalize(e),i=i.cfg,h.create({ciphertext:e,key:n,iv:i.iv,algorithm:t,mode:i.mode,padding:i.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(n,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}})),p=(p.kdf={}).OpenSSL={execute:function(t,e,n,r){return r||(r=i.random(8)),t=s.create({keySize:e+n}).compute(t,r),n=i.create(t.words.slice(e),4*n),t.sigBytes=4*e,h.create({key:t,iv:n,salt:r})}},v=e.PasswordBasedCipher=d.extend({cfg:d.cfg.extend({kdf:p}),encrypt:function(t,e,n,r){return n=(r=this.cfg.extend(r)).kdf.execute(n,t.keySize,t.ivSize),r.iv=n.iv,(t=d.encrypt.call(this,t,e,n.key,r)).mixIn(n),t},decrypt:function(t,e,n,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),n=r.kdf.execute(n,t.keySize,t.ivSize,e.salt),r.iv=n.iv,d.decrypt.call(this,t,e,n.key,r)}})}(),function(){for(var t=r,e=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],u=[],c=[],l=[],f=[],h=[],d=[],p=[],v=0;256>v;v++)p[v]=128>v?v<<1:v<<1^283;var g=0,m=0;for(v=0;256>v;v++){var y=(y=m^m<<1^m<<2^m<<3^m<<4)>>>8^255&y^99;i[g]=y,o[y]=g;var b=p[g],w=p[b],S=p[w],_=257*p[y]^16843008*y;a[g]=_<<24|_>>>8,s[g]=_<<16|_>>>16,u[g]=_<<8|_>>>24,c[g]=_,_=16843009*S^65537*w^257*b^16843008*g,l[y]=_<<24|_>>>8,f[y]=_<<16|_>>>16,h[y]=_<<8|_>>>24,d[y]=_,g?(g=b^p[p[p[S^b]]],m^=p[p[m]]):g=m=1}var E=[0,1,2,4,8,16,32,64,128,27,54];n=n.AES=e.extend({_doReset:function(){for(var t=(n=this._key).words,e=n.sigBytes/4,n=4*((this._nRounds=e+6)+1),r=this._keySchedule=[],o=0;o>>24]<<24|i[a>>>16&255]<<16|i[a>>>8&255]<<8|i[255&a]):(a=i[(a=a<<8|a>>>24)>>>24]<<24|i[a>>>16&255]<<16|i[a>>>8&255]<<8|i[255&a],a^=E[o/e|0]<<24),r[o]=r[o-e]^a}for(t=this._invKeySchedule=[],e=0;ee||4>=o?a:l[i[a>>>24]]^f[i[a>>>16&255]]^h[i[a>>>8&255]]^d[i[255&a]]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,u,c,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,l,f,h,d,o),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,o,a,s){for(var u=this._nRounds,c=t[e]^n[0],l=t[e+1]^n[1],f=t[e+2]^n[2],h=t[e+3]^n[3],d=4,p=1;p>>24]^i[l>>>16&255]^o[f>>>8&255]^a[255&h]^n[d++],g=r[l>>>24]^i[f>>>16&255]^o[h>>>8&255]^a[255&c]^n[d++],m=r[f>>>24]^i[h>>>16&255]^o[c>>>8&255]^a[255&l]^n[d++];h=r[h>>>24]^i[c>>>16&255]^o[l>>>8&255]^a[255&f]^n[d++],c=v,l=g,f=m}v=(s[c>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^n[d++],g=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[d++],m=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&l])^n[d++],h=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^n[d++],t[e]=v,t[e+1]=g,t[e+2]=m,t[e+3]=h},keySize:8});t.AES=e._createHelper(n)}(),r.mode.ECB=function(){var t=r.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),t.Decryptor=t.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),t}(),r.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){for(var e=t.words,n=t.sigBytes-1;!(e[n>>>2]>>>24-n%4*8&255);)n--;t.sigBytes=n+1}};e.default=r},function(t,e,n){var r=n(147);e.Ber=r,e.BerReader=r.Reader,e.BerWriter=r.Writer},function(t,e,n){var r=n(39),i=n(40),o=n(148),a=n(170);for(var s in i)i.hasOwnProperty(s)&&(e[s]=i[s]);for(var u in r)r.hasOwnProperty(u)&&(e[u]=r[u]);e.Reader=o,e.Writer=a},function(t,e,n){(function(e){n(69);var r=n(40),i=n(39).InvalidAsn1Error;function o(t){if(!t||!e.isBuffer(t))throw new TypeError("data must be a node Buffer");this._buf=t,this._size=t.length,this._len=0,this._offset=0}Object.defineProperty(o.prototype,"length",{enumerable:!0,get:function(){return this._len}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){return this._offset}}),Object.defineProperty(o.prototype,"remain",{get:function(){return this._size-this._offset}}),Object.defineProperty(o.prototype,"buffer",{get:function(){return this._buf.slice(this._offset)}}),o.prototype.readByte=function(t){if(this._size-this._offset<1)return null;var e=255&this._buf[this._offset];return t||(this._offset+=1),e},o.prototype.peek=function(){return this.readByte(!0)},o.prototype.readLength=function(t){if(void 0===t&&(t=this._offset),t>=this._size)return null;var e=255&this._buf[t++];if(null===e)return null;if(128==(128&e)){if(0==(e&=127))throw i("Indefinite length not supported");if(this._size-tthis._size-a)return null;if(this._offset=a,0===this.length)return n?e.alloc(0):"";var s=this._buf.slice(this._offset,this._offset+this.length);return this._offset+=this.length,n?s:s.toString("utf8")},o.prototype.readOID=function(t){t||(t=r.OID);var e=this.readString(t,!0);if(null===e)return null;for(var n=[],i=0,o=0;o>>0),i=0)}return i=n.shift(),n.unshift(i%40),n.unshift(i/40>>0),n.join(".")},o.prototype.readBitString=function(t){t||(t=r.BitString);var e=this.peek();if(null===e)return null;if(e!==t)throw i("Expected 0x"+t.toString(16)+": got 0x"+e.toString(16));var n=this.readLength(this._offset+1);if(null===n)return null;if(this.length>this._size-n)return null;if(this._offset=n,0===this.length)return"";var o=this._buf[this._offset++],a=this._buf.slice(this._offset,this._offset+this.length-1),s=parseInt(a.toString("hex"),16).toString(2).padStart(8*a.length,"0");return this._offset+=this.length-1,s.substring(0,s.length-o)},o.prototype._readTag=function(t){var e=this.peek();if(null===e)return null;if(void 0!==t&&e!==t)throw i("Expected 0x"+t.toString(16)+": got 0x"+e.toString(16));var n=this.readLength(this._offset+1);if(null===n)return null;if(0===this.length)throw i("Zero-length integer");if(this.length>this._size-n)return null;this._offset=n;for(var r=this._buf.readInt8(this._offset++),o=1;o0&&!i.call(t,0))for(var v=0;v0)for(var g=0;g-1?i(n):n}},function(t,e,n){"use strict";t.exports=Error},function(t,e,n){"use strict";t.exports=EvalError},function(t,e,n){"use strict";t.exports=RangeError},function(t,e,n){"use strict";t.exports=ReferenceError},function(t,e,n){"use strict";t.exports=URIError},function(t,e,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(71);t.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},function(t,e,n){"use strict";var r={__proto__:null,foo:{}},i=Object;t.exports=function(){return{__proto__:r}.foo===r.foo&&!(r instanceof i)}},function(t,e,n){"use strict";var r=Object.prototype.toString,i=Math.max,o=function(t,e){for(var n=[],r=0;r4294967295||u(e)!==e)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,c=!0;if("length"in t&&a){var l=a(t,"length");l&&!l.configurable&&(r=!1),l&&!l.writable&&(c=!1)}return(r||c||!n)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},function(t,e,n){"use strict";var r=n(42),i=n(72),o=n(27),a=n(73);t.exports=function(t,e,n){if(!t||"object"!==typeof t&&"function"!==typeof t)throw new o("`obj` must be an object or a function`");if("string"!==typeof e&&"symbol"!==typeof e)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],f=!!a&&a(t,e);if(r)r(t,e,{configurable:null===c&&f?f.configurable:!c,enumerable:null===s&&f?f.enumerable:!s,value:n,writable:null===u&&f?f.writable:!u});else{if(!l&&(s||u||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=n}}},function(t,e,n){"use strict";var r=n(42),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},function(t,e,n){(function(t){var r=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}}),u=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(n)?r.showHidden=n:n&&e._extend(r,n),y(r.showHidden)&&(r.showHidden=!1),y(r.depth)&&(r.depth=2),y(r.colors)&&(r.colors=!1),y(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,t,r.depth)}function u(t,e){var n=s.styles[e];return n?"\x1b["+s.colors[n][0]+"m"+t+"\x1b["+s.colors[n][1]+"m":t}function c(t,e){return t}function l(t,n,r){if(t.customInspect&&n&&E(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return m(i)||(i=l(t,i,r)),i}var o=function(t,e){if(y(e))return t.stylize("undefined","undefined");if(m(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(g(e))return t.stylize(""+e,"number");if(p(e))return t.stylize(""+e,"boolean");if(v(e))return t.stylize("null","null")}(t,n);if(o)return o;var a=Object.keys(n),s=function(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),_(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return f(n);if(0===a.length){if(E(n)){var u=n.name?": "+n.name:"";return t.stylize("[Function"+u+"]","special")}if(b(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(S(n))return t.stylize(Date.prototype.toString.call(n),"date");if(_(n))return f(n)}var c,w="",x=!1,T=["{","}"];(d(n)&&(x=!0,T=["[","]"]),E(n))&&(w=" [Function"+(n.name?": "+n.name:"")+"]");return b(n)&&(w=" "+RegExp.prototype.toString.call(n)),S(n)&&(w=" "+Date.prototype.toUTCString.call(n)),_(n)&&(w=" "+f(n)),0!==a.length||x&&0!=n.length?r<0?b(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=x?function(t,e,n,r,i){for(var o=[],a=0,s=e.length;a=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(c,w,T)):T[0]+w+T[1]}function f(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),k(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=v(n)?l(t,u.value,null):l(t,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return" "+t}).join("\n")):s=t.stylize("[Circular]","special")),y(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function d(t){return Array.isArray(t)}function p(t){return"boolean"===typeof t}function v(t){return null===t}function g(t){return"number"===typeof t}function m(t){return"string"===typeof t}function y(t){return void 0===t}function b(t){return w(t)&&"[object RegExp]"===x(t)}function w(t){return"object"===typeof t&&null!==t}function S(t){return w(t)&&"[object Date]"===x(t)}function _(t){return w(t)&&("[object Error]"===x(t)||t instanceof Error)}function E(t){return"function"===typeof t}function x(t){return Object.prototype.toString.call(t)}function T(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(y(o)&&(o=t.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=t.pid;a[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,r,t)}}else a[n]=function(){};return a[n]},e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=p,e.isNull=v,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=m,e.isSymbol=function(t){return"symbol"===typeof t},e.isUndefined=y,e.isRegExp=b,e.isObject=w,e.isDate=S,e.isError=_,e.isFunction=E,e.isPrimitive=function(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t},e.isBuffer=n(168);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){(function(){var t=new Date,e=[T(t.getHours()),T(t.getMinutes()),T(t.getSeconds())].join(":");[t.getDate(),A[t.getMonth()],e].join(" ")})(),e.format.apply(e,arguments)},e.inherits=n(169),e._extend=function(t,e){if(!e||!w(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var C="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function D(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');if(C&&t[C]){var e;if("function"!==typeof(e=t[C]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,C,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise(function(t,r){e=t,n=r}),i=[],o=0;o=128;)n.push(255&t),t=Math.floor(t/256);for(n.push(255&t),this._ensure(2+n.length),this._buf[this._offset++]=e,this._buf[this._offset++]=n.length;n.length;)this._buf[this._offset++]=n.pop()},s.prototype.writeNull=function(){this.writeByte(i.Null),this.writeByte(0)},s.prototype.writeEnumeration=function(t,e){if("number"!==typeof t)throw new TypeError("argument must be a Number");return"number"!==typeof e&&(e=i.Enumeration),this.writeInt(t,e)},s.prototype.writeBoolean=function(t,e){if("boolean"!==typeof t)throw new TypeError("argument must be a Boolean");"number"!==typeof e&&(e=i.Boolean),this._ensure(3),this._buf[this._offset++]=e,this._buf[this._offset++]=1,this._buf[this._offset++]=t?255:0},s.prototype.writeString=function(t,n){if("string"!==typeof t)throw new TypeError("argument must be a string (was: "+typeof t+")");"number"!==typeof n&&(n=i.OctetString);var r=e.byteLength(t);this.writeByte(n),this.writeLength(r),r&&(this._ensure(r),this._buf.write(t,this._offset),this._offset+=r)},s.prototype.writeBuffer=function(t,n){if(!e.isBuffer(t))throw new TypeError("argument must be a buffer");"number"===typeof n&&(this.writeByte(n),this.writeLength(t.length)),t.length>0&&(this._ensure(t.length),t.copy(this._buf,this._offset,0,t.length),this._offset+=t.length)},s.prototype.writeStringArray=function(t,e){if(!(t instanceof Array))throw new TypeError("argument must be an Array[String]");var n=this;t.forEach(function(t){n.writeString(t,e)})},s.prototype.writeOID=function(t,e){if("string"!==typeof t)throw new TypeError("argument must be a string");if("number"!==typeof e&&(e=i.OID),!/^([0-9]+\.){0,}[0-9]+$/.test(t))throw new Error("argument is not a valid OID string");var n=t.split("."),r=[];r.push(40*parseInt(n[0],10)+parseInt(n[1],10)),n.slice(2).forEach(function(t){!function(t,e){e<128?t.push(e):e<16384?(t.push(e>>>7|128),t.push(127&e)):e<2097152?(t.push(e>>>14|128),t.push(255&(e>>>7|128)),t.push(127&e)):e<268435456?(t.push(e>>>21|128),t.push(255&(e>>>14|128)),t.push(255&(e>>>7|128)),t.push(127&e)):(t.push(255&(e>>>28|128)),t.push(255&(e>>>21|128)),t.push(255&(e>>>14|128)),t.push(255&(e>>>7|128)),t.push(127&e))}(r,parseInt(t,10))});var o=this;this._ensure(2+r.length),this.writeByte(e),this.writeLength(r.length),r.forEach(function(t){o.writeByte(t)})},s.prototype.writeLength=function(t){if("number"!==typeof t)throw new TypeError("argument must be a Number");if(this._ensure(4),t<=127)this._buf[this._offset++]=t;else if(t<=255)this._buf[this._offset++]=129,this._buf[this._offset++]=t;else if(t<=65535)this._buf[this._offset++]=130,this._buf[this._offset++]=t>>8,this._buf[this._offset++]=t;else{if(!(t<=16777215))throw new o("Length too long (> 4 bytes)");this._buf[this._offset++]=131,this._buf[this._offset++]=t>>16,this._buf[this._offset++]=t>>8,this._buf[this._offset++]=t}},s.prototype.startSequence=function(t){"number"!==typeof t&&(t=i.Sequence|i.Constructor),this.writeByte(t),this._seq.push(this._offset),this._ensure(3),this._offset+=3},s.prototype.endSequence=function(){var t=this._seq.pop(),e=t+3,n=this._offset-e;if(n<=127)this._shift(e,n,-2),this._buf[t]=n;else if(n<=255)this._shift(e,n,-1),this._buf[t]=129,this._buf[t+1]=n;else if(n<=65535)this._buf[t]=130,this._buf[t+1]=n>>8,this._buf[t+2]=n;else{if(!(n<=16777215))throw new o("Sequence too long");this._shift(e,n,1),this._buf[t]=131,this._buf[t+1]=n>>16,this._buf[t+2]=n>>8,this._buf[t+3]=n}},s.prototype._shift=function(t,e,n){r.ok(void 0!==t),r.ok(void 0!==e),r.ok(n),this._buf.copy(this._buf,t+n,t,t+e),this._offset+=n},s.prototype._ensure=function(t){if(r.ok(t),this._size-this._offset0&&void 0!==arguments[0]?arguments[0]:"";if(!1===this.comet){var e="/SubscribeNotify.cgi?sessionId="+t;WebApp.httpOnly&&(e="/SubscribeNotify.cgi"),this.sessionID=t;var n=document.createElement("iframe");n.setAttribute("id","comet_iframe_new"),n.setAttribute("src",e),n.style.display="none",document.body.appendChild(n),this.iframe=n,window.receiveMessage=this.publish.bind(this),this.comet=!0}else window.receiveMessage=this.publish.bind(this)},subscribe:function(t,e){this.topics[t]||(this.topics[t]=new Set),this.topics[t].add(e)},publish:function(t){var e=t.method;if(this.topics[e])try{this.topics[e].forEach(function(e){e(t.params)})}catch(t){}},detach:function(t,e){e?this.topics[t]&&this.topics[t].delete(e):delete this.topics[t]},reconnect:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.iframe.src="/SubscribeNotify.cgi?sessionId="+t,WebApp.httpOnly&&(this.iframe.src="/SubscribeNotify.cgi")}}};function c(t,e,n){for(var r=[],i=0,o=t.length,a=!n;i=42||v.firefox&&v.version>=52?"H5":"ocx";e.playMode=p,e.ajax=function(t){var e=Object.assign({},{params:null,session:(0,o._getSession)(),id:s++},{method:t.url});if(t.data=JSON.stringify(e),t.url="RPC2",t.method="post",t.callback=t.callback||"",t.async=t.async||!1,"get"===t.method.toLowerCase()){if("object"===(0,i.default)(t.data))for(var n in t.data=[],t.data)t.data.push(n+"="+t.data[n]),t.data.join("&");t.url+=(t.url.indexOf(!1)?"?":"")+t.data}if("post"===t.method.toLowerCase()&&"object"===(0,i.default)(t.data)){var r=[];for(var a in t.data)r.push(a+"="+t.data[a]);t.data=r.join("&")}var u=window.XMLHttpRequest?new XMLHttpRequest:new window.ActiveXObject("Microsoft.XMLHTTP");function c(){200===u.status?t.callback&&t.callback(u.responseText):t.callback&&t.callback("error:"+u.status+u.statusText)}u.open(t.method,t.url,t.async),"post"===t.method?(u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.send(t.data)):u.send(null),!0===t.async&&(u.onreadystatechange=function(){4===u.readyState&&c()}),!1===t.async&&c()};e.throttle=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,n=null;return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:100;return function(){for(var r=arguments.length,i=new Array(r),o=0;o-1||t.indexOf("edge/")>-1||t.indexOf("edg/")>-1)return n="ie","Microsoft Internet Explorer"===e?(t=/msie ([0-9]{1,}[.0-9]{0,})/.exec(t),n+=parseInt(t[1])):t.indexOf("trident")>-1?n+=11:(t.indexOf("edge/")>-1||t.indexOf("edg/")>-1)&&(n="edge"),n;t.indexOf("safari")>-1?n=t.indexOf("chrome")>-1?"chrome":"safari":t.indexOf("firefox")>-1&&(n="firefox");return n+"-"+r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PluginCanvasES6=void 0;var r=n(176),i=n(43),o=n(44),a=n(74),s=n(177);e.PluginCanvasES6=function(){var t={strokeColor:"#0000FF",selectedColor:"#FFFF00",lineWidth:1,font:"normal normal 100 10px arial",closeEnable:!0},e=this;this.beginPoint="",this.tempShape="",this.tempData="",this.tempDataCopy="",this.parents={};var n={contextmenuFun:function(t){t.preventDefault()}};this.init=function(s,u){if(!e.canvasDom){e.canvasDom=s,e.ctx=e.canvasDom.getContext("2d"),e.ctx.font=t.font;o.jQlib.getWidth(e.canvasDom),o.jQlib.getHeight(e.canvasDom);e.coordinate={widthDraw:o.jQlib.getWidth(e.canvasDom)/i.util.defalutCoordinate.width,heightDraw:o.jQlib.getHeight(e.canvasDom)/i.util.defalutCoordinate.height,widthMouse:i.util.defalutCoordinate.width/o.jQlib.getWidth(e.canvasDom),heightMouse:i.util.defalutCoordinate.height/o.jQlib.getHeight(e.canvasDom)},t.maxPoly=[[0,0],[o.jQlib.getWidth(e.canvasDom)*e.coordinate.widthMouse,0],[o.jQlib.getWidth(e.canvasDom)*e.coordinate.widthMouse,o.jQlib.getHeight(e.canvasDom)*e.coordinate.heightMouse],[0,o.jQlib.getHeight(e.canvasDom)*e.coordinate.heightMouse]],e.eventFunc=u}for(var c in i.util.eventEnabled=!0,e.shape={},e.shape.rectShape=new r.RectShape,e.shape)e.shape[c].init(e.canvasDom,e.ctx,e.drawShape,u,e.coordinate);a.EventManager.off(e.canvasDom,"contextmenu").on(e.canvasDom,"contextmenu",n.contextmenuFun)},this.addChangeShapeEvent=function(){var t=null,n={},r=!1,s=[];a.EventManager.off(e.canvasDom,"mousedown.move").on(e.canvasDom,"mousedown.move",function(a){if(r=!1,e.beginPoint=null,1!==i.util.drawState){o.jQlib.each(e.shape,function(t,e){i.util.setUnSelected(e.data)}),i.util.moveFlag=!1,i.util.resizeFlag=!1;var u=[];o.jQlib.each(e.shape,function(t,e){u=u.concat(e.data)}),u.sort(i.util.compareDesc),o.jQlib.each(u,function(r,u){if(e.tempData=e.shape[u.option.type+"Shape"].checkOnPoint(a,u),!1!==e.tempData)return i.util.resizeFlag=!0,s=e.parents[e.tempData.data.shapeId],e.tempShape=e.shape[u.option.type+"Shape"],e.tempData.data.option.zindex=i.util.zindex++,e.tempDataCopy=o.jQlib.extend(!0,{},e.tempData),!1;if("rhombus"===u.option.type){var c=e.shape.rhombusShape.checkOnLine(a,u);if(c)return i.util.moveFlag=!0,t=null,e.tempShape=e.shape[u.option.type+"Shape"],e.tempData=c,e.tempData.data.option.zindex=i.util.zindex++,e.beginPoint=[Math.round((a.clientX-i.util.offset(e.canvasDom).left+window.scrollX)*e.coordinate.widthMouse),Math.round((a.clientY-i.util.offset(e.canvasDom).top+window.scrollY)*e.coordinate.heightMouse)],e.tempDataCopy=o.jQlib.extend(!0,{},c),!1}if(e.tempData=e.shape[u.option.type+"Shape"].checkSelected(a,u),e.tempData){i.util.moveFlag=!0;var l=e.tempData.data.shapeId;e.beginPoint=[Math.round((a.clientX-i.util.offset(e.canvasDom).left+window.scrollX)*e.coordinate.widthMouse),Math.round((a.clientY-i.util.offset(e.canvasDom).top+window.scrollY)*e.coordinate.heightMouse)];var f=e.getParent(l);if(f&&f.children&&f.children.length>0){t={},n={};e.shape[e.getShapeById(f.parentId).option.type+"Shape"];t.parentShapeData=e.getShapeById(f.parentId),e.tempShape=e.shape[t.parentShapeData.option.type+"Shape"],e.tempData.data=t.parentShapeData,t.childrenShapeData=[],e.tempData.data.option.zindex=i.util.zindex++,o.jQlib.each(f.children,function(n,r){var o=e.getShapeById(r);o.option.zindex=i.util.zindex++,o.option.selected=!0,t.childrenShapeData.push(o)}),e.beginPoint=[Math.round((a.clientX-i.util.offset(e.canvasDom).left+window.scrollX)*e.coordinate.widthMouse),Math.round((a.clientY-i.util.offset(e.canvasDom).top+window.scrollY)*e.coordinate.heightMouse)],n=o.jQlib.extend(!0,{},t)}else t=null,e.tempShape=e.shape[u.option.type+"Shape"],e.tempData.data.option.zindex=i.util.zindex++,e.beginPoint=[Math.round((a.clientX-i.util.offset(e.canvasDom).left+window.scrollX)*e.coordinate.widthMouse),Math.round((a.clientY-i.util.offset(e.canvasDom).top+window.scrollY)*e.coordinate.heightMouse)],e.tempDataCopy=o.jQlib.extend(!0,{},e.tempData);return!1}}),e.drawShape()}}),a.EventManager.off(e.canvasDom,"mousemove.move").on(e.canvasDom,"mousemove.move",function(a){if(i.util.resizeFlag&&e.tempData.data.option.resizeEnable){if(r=!0,"poly"===e.tempData.data.option.type&&s&&s.length>0){var u=e.tempDataCopy.point,c=o.jQlib.extend(!0,[],e.tempData.data.data),l=[Math.round((a.clientX-i.util.offset(e.canvasDom).left+window.scrollX)*e.coordinate.widthMouse),Math.round((a.clientY-i.util.offset(e.canvasDom).top+window.scrollY)*e.coordinate.heightMouse)];c[u]=l;var f=u-1,h=u+1;f<0&&(f=e.tempData.data.data.length-1),h>e.tempData.data.data.length-1&&(h=0);var d=[];d[0]=[e.tempData.data.data[f],e.tempData.data.data[u]],d[1]=[e.tempData.data.data[u],e.tempData.data.data[h]];var p=[];p[0]=[c[f],c[u]],p[1]=[c[u],c[h]];for(var v=0;v=t.regionNum)){n=[Math.round((o.clientX-r.util.offset(t.canvasDom).left+window.scrollX)*t.coordinate.widthMouse),Math.round((o.clientY-r.util.offset(t.canvasDom).top+window.scrollY)*t.coordinate.heightMouse)];var a={data:[]};a.option=i.jQlib.extend(!0,{},e),a.shapeId=r.util.shapeId++,a.option.zindex=r.util.zindex++,a.option.type=t.type,t.data.push(a),t.data[t.data.length-1].data[0]=i.jQlib.extend(!0,[],n),r.util.drawState=1}}),o.EventManager.off(t.canvasDom,"mousemove.draw").on(t.canvasDom,"mousemove.draw",function(e){if(!r.util.moveFlag&&!r.util.resizeFlag){var o=t.data.length-1,a=[Math.round((e.clientX-r.util.offset(t.canvasDom).left+window.scrollX)*t.coordinate.widthMouse),Math.round((e.clientY-r.util.offset(t.canvasDom).top+window.scrollY)*t.coordinate.heightMouse)];if(n){if(t.data[o].option.defaultSize)t.data[o].data[1]=[t.data[o].data[0][0]+t.data[o].option.defaultSize.width||2e3,t.data[o].data[0][1]+t.data[o].option.defaultSize.height||1e3];else{var s=t.data[o];if(s.option.lockWH){var u=Math.ceil(0-(s.data[0][0]-a[0])*s.option.lockWH.height/s.option.lockWH.width+s.data[0][1]);if(u>8191||u<0)return;s.data[1]=i.jQlib.extend(!0,[],[a[0],u])}else s.data[1]=i.jQlib.extend(!0,[],a)}r.util.drawState=1,t.drawFunc()}}});var a=function(e){if(!r.util.moveFlag&&!r.util.resizeFlag){var o=null,a=null,s=t.data.length-1;if(n){var u=[Math.round((e.clientX-r.util.offset(t.canvasDom).left+window.scrollX)*t.coordinate.widthMouse),Math.round((e.clientY-r.util.offset(t.canvasDom).top+window.scrollY)*t.coordinate.heightMouse)];if(u[0]===n[0]&&u[1]===n[1])t.data.length=t.data.length-1,r.util.drawState=2,n=null;else{if(t.data[s].option.lockWH);else{if(t.data[s].option.maxRect){var c={};c.width=u[0]-t.data[s].data[0][0],c.height=u[1]-t.data[s].data[0][1],o=t.checkRectSize(t.data[s],c,"maxRect")}if(t.data[s].option.minRect){var l={};l.width=u[0]-t.data[s].data[0][0],l.height=u[1]-t.data[s].data[0][1],a=t.checkRectSize(t.data[s],l,"minRect")}t.data[s].option.defaultSize||(t.data[s].data[1]=i.jQlib.extend(!0,[],o||a||u))}t.drawFunc(),r.util.drawState=2,n=null,t.data[s].event={},t.data[s].event.type=r.util.eventName.drawFinish,r.util.eventEnabled&&t.eventFunc&&t.eventFunc(t.data[s]),!0===t.data[s].option.disappear&&(t.data.length=t.data.length-1,t.drawFunc())}}}};o.EventManager.off(t.canvasDom,"mouseup.draw").on(t.canvasDom,"mouseup.draw",a),o.EventManager.off(t.canvasDom,"mouseleave.draw").on(t.canvasDom,"mouseleave.draw",a)},this.draw=function(e){if(!0!==e.option.hide){var n=null;if(e.option.selected?(t.ctx.strokeStyle=e.option.selectedColor,n=e.option.selectedColor,r.util.drawSelectRect(t.ctx,e.data[0][0]*t.coordinate.widthDraw,e.data[0][1]*t.coordinate.heightDraw),r.util.drawSelectRect(t.ctx,e.data[1][0]*t.coordinate.widthDraw,e.data[0][1]*t.coordinate.heightDraw),r.util.drawSelectRect(t.ctx,e.data[1][0]*t.coordinate.widthDraw,e.data[1][1]*t.coordinate.heightDraw),r.util.drawSelectRect(t.ctx,e.data[0][0]*t.coordinate.widthDraw,e.data[1][1]*t.coordinate.heightDraw),t.ctx.closePath()):(t.ctx.strokeStyle=e.option.strokeColor,n=e.option.strokeColor),t.ctx.beginPath(),t.ctx.rect(e.data[0][0]*t.coordinate.widthDraw,e.data[0][1]*t.coordinate.heightDraw,(e.data[1][0]-e.data[0][0])*t.coordinate.widthDraw,(e.data[1][1]-e.data[0][1])*t.coordinate.heightDraw),t.ctx.closePath(),t.ctx.stroke(),e.option.fillStyle&&(t.ctx.fillStyle=e.option.fillStyle,t.ctx.fillRect(e.data[0][0]*t.coordinate.widthDraw,e.data[0][1]*t.coordinate.heightDraw,(e.data[1][0]-e.data[0][0])*t.coordinate.widthDraw,(e.data[1][1]-e.data[0][1])*t.coordinate.heightDraw)),e.option.title&&r.util.strokeText(t.ctx,e.option.title,(e.data[0][0]/2+e.data[1][0]/2)*t.coordinate.widthDraw,(e.data[0][1]/2+e.data[1][1]/2+100)*t.coordinate.heightDraw,"center",n),(0===e.option.direction||1===e.option.direction||2===e.option.direction)&&2===e.data.length){var o=r.util.getArrayLines([e.data[0][0]*this.coordinate.widthDraw,e.data[0][1]*this.coordinate.heightDraw],[e.data[0][0]*this.coordinate.widthDraw,e.data[1][1]*this.coordinate.heightDraw],e.option.direction);o&&o.length>=3&&(i.jQlib.each(o,function(e,n){r.util.drawAppendLine(t.ctx,n)}),r.util.strokeText(t.ctx,"A",o[0][0][0]+10,o[0][0][1]+10,null,n),r.util.strokeText(t.ctx,"B",o[0][1][0]+10,o[0][1][1]+10,null,n))}if(e.option.ruleName&&e.option.ruleName.length>0){var a=10,s=r.util.getStrokeTextAlign(t.ctx,t.canvasDom.width,e.option.ruleName,e.data[0][0]*t.coordinate.widthDraw+a);"right"===s&&(a=-10),r.util.strokeText(t.ctx,e.option.ruleName,e.data[0][0]*t.coordinate.widthDraw+a,e.data[0][1]*t.coordinate.heightDraw+10,s,n)}if(e.option.showSize){var u=Math.ceil(Math.abs(e.data[0][0]-e.data[1][0])*r.util.resolution.width/r.util.defalutCoordinate.width),c=Math.ceil(Math.abs(e.data[0][1]-e.data[1][1])*r.util.resolution.height/r.util.defalutCoordinate.height);r.util.strokeText(t.ctx,u+"*"+c,(e.data[0][0]+e.data[1][0])/2*t.coordinate.widthDraw,(e.data[0][1]+e.data[1][1])/2*t.coordinate.heightDraw,"center",n)}}},this.checkOnPoint=function(e,n){var i=[Math.round((e.clientX-r.util.offset(t.canvasDom).left+window.scrollX)*t.coordinate.widthMouse),Math.round((e.clientY-r.util.offset(t.canvasDom).top+window.scrollY)*t.coordinate.heightMouse)];if(!0===n.option.hide||!0===!n.option.resizeEnable&&!0===!n.option.moveEnable)return!1;var o=r.util.onPoint(i,n.data,!0);return!1!==o&&(n.option.selected=!0,{data:n,point:o})},this.checkSelected=function(e,n){var i=[Math.round((e.clientX-r.util.offset(t.canvasDom).left+window.scrollX)*t.coordinate.widthMouse),Math.round((e.clientY-r.util.offset(t.canvasDom).top+window.scrollY)*t.coordinate.heightMouse)];if(!0===n.option.hide||!0===!n.option.resizeEnable&&!0===!n.option.moveEnable)return!1;if(!n.option.selectType||"onLine"===n.option.selectType){var o=[];o[0]=n.data[0],o[1]=[n.data[1][0],n.data[0][1]],o[2]=n.data[1],o[3]=[n.data[0][0],n.data[1][1]],o[4]=n.data[0];for(var a=0;a<4;a++){var s=r.util.onLine(i,[o[a],o[a+1]]);if(s)return n.option.selected=!0,{data:n}}}if(!n.option.selectType||"inSide"===n.option.selectType){var u=r.util.pointInRect(i,n.data);if(u)return n.option.selected=!0,{data:n}}return!1},this.moveShape=function(e,n,i,o){var a=[Math.round((i.clientX-r.util.offset(t.canvasDom).left+window.scrollX)*t.coordinate.widthMouse),Math.round((i.clientY-r.util.offset(t.canvasDom).top+window.scrollY)*t.coordinate.heightMouse)],s=a[0]-e[0],u=a[1]-e[1];!0===o.option.horizontalMove&&(u=0);var c=o.option.maxPoly[2][0]||8191,l=o.option.maxPoly[2][1]||8191;return n.data[0][0]+s<0&&(s=0-n.data[0][0]),n.data[0][0]+s>c&&(s=c-n.data[0][0]),n.data[1][0]+s<0&&(s=0-n.data[1][0]),n.data[1][0]+s>c&&(s=c-n.data[1][0]),n.data[0][1]+u<0&&(u=0-n.data[0][1]),n.data[0][1]+u>l&&(u=l-n.data[0][1]),n.data[1][1]+u<0&&(u=0-n.data[1][1]),n.data[1][1]+u>l&&(u=l-n.data[1][1]),o.data[0][0]=n.data[0][0]+s,o.data[0][1]=n.data[0][1]+u,o.data[1][0]=n.data[1][0]+s,o.data[1][1]=n.data[1][1]+u,t.drawFunc(),!0},this.resizeShape=function(e,n,i){var o=[Math.round((n.clientX-r.util.offset(t.canvasDom).left+window.scrollX)*t.coordinate.widthMouse),Math.round((n.clientY-r.util.offset(t.canvasDom).top+window.scrollY)*t.coordinate.heightMouse)];this.resizeRectByRegion(i,e,o),t.drawFunc()},this.resize=function(e,n,r,i){t.coordinate.widthDraw=e,t.coordinate.heightDraw=n,t.coordinate.widthMouse=r,t.coordinate.heightMouse=i},this.checkRectSize=function(t,e,n){var r=null,i=Math.abs(t.option[n][1][0]-t.option[n][0][0]),o=Math.abs(t.option[n][1][1]-t.option[n][0][1]),a=Math.abs(e.width),s=Math.abs(e.height);return"maxRect"===n?(a>=i||s>=o)&&(r=[],e.width>0?r[0]=t.data[0][0]+i:r[0]=t.data[0][0]-i,e.height>0?r[1]=t.data[0][1]+o:r[1]=t.data[0][1]-o):"minRect"===n&&(a<=i||s<=o)&&(r=[],e.width>0?r[0]=t.data[0][0]+i:r[0]=t.data[0][0]-i,e.height>0?r[1]=t.data[0][1]+o:r[1]=t.data[0][1]-o),r},this.checkRectSizeForResize=function(t,e,n){var r=Math.abs(t.option[n][1][0]-t.option[n][0][0]),i=Math.abs(t.option[n][1][1]-t.option[n][0][1]),o=Math.abs(e.width),a=Math.abs(e.height),s=[];return"maxRect"===n?(o>r&&(s[0]="maxRectWidth"),a>i&&(s[1]="maxRectHeight")):"minRect"===n&&(o8191||a<0)return;if(r[1]=a,e.option.minRect&&(s.width=r[0]-e.data[1][0],s.height=r[1]-e.data[1][1],"minRectHeight"===(c=t.checkRectSizeForResize(e,s,"minRect"))[1]||"minRectWidth"===c[0]))return;e.data[0]=r;break;case 1:if((a=Math.ceil(0-(r[0]-e.data[0][0])*e.option.lockWH.height/e.option.lockWH.width+e.data[1][1]))>8191||a<0)return;if(r[1]=a,e.option.minRect&&(s.width=r[0]-e.data[0][0],s.height=r[1]-e.data[1][1],"minRectHeight"===(c=t.checkRectSizeForResize(e,s,"minRect"))[1]||"minRectWidth"===c[0]))return;e.data[1][0]=r[0],e.data[0][1]=r[1];break;case 2:if((a=Math.ceil(0-(e.data[0][0]-r[0])*e.option.lockWH.height/e.option.lockWH.width+e.data[0][1]))>8191||a<0)return;if(r[1]=a,e.option.minRect&&(s.width=r[0]-e.data[0][0],s.height=r[1]-e.data[0][1],"minRectHeight"===(c=t.checkRectSizeForResize(e,s,"minRect"))[1]||"minRectWidth"===c[0]))return;e.data[1]=r;break;case 3:if((a=Math.ceil(0-(r[0]-e.data[1][0])*e.option.lockWH.height/e.option.lockWH.width+e.data[0][1]))>8191||a<0)return;if(r[1]=a,e.option.minRect&&(s.width=r[0]-e.data[1][0],s.height=r[1]-e.data[0][1],"minRectHeight"===(c=t.checkRectSizeForResize(e,s,"minRect"))[1]||"minRectWidth"===c[0]))return;e.data[0][0]=r[0],e.data[1][1]=r[1]}else{switch(n){case 0:s.width=r[0]-e.data[1][0],s.height=r[1]-e.data[1][1],i=[0,0],o=[0,1];break;case 1:s.width=r[0]-e.data[0][0],s.height=r[1]-e.data[1][1],i=[1,0],o=[0,1];break;case 2:s.width=r[0]-e.data[0][0],s.height=r[1]-e.data[0][1],i=[1,0],o=[1,1];break;case 3:s.width=r[0]-e.data[1][0],s.height=r[1]-e.data[0][1],i=[0,0],o=[1,1]}e.option.maxRect&&(u=t.checkRectSizeForResize(e,s,"maxRect")),e.option.minRect&&(c=t.checkRectSizeForResize(e,s,"minRect")),"maxRectWidth"!==u[0]&&"minRectWidth"!==c[0]&&(e.data[i[0]][i[1]]=r[0]),(null===u||"maxRectHeight"!==u[1]&&"minRectHeight"!==c[1])&&(e.data[o[0]][o[1]]=r[1])}}};var r=n(43),i=n(44),o=n(74)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FactoryGridShapeAction=function(t,e){if(this.toTransDataToInt=function(t,e){var n=function(t){for(var e=0,n=t.length;ei&&(n^=i,n^=i^=n),r>o&&(r^=o,r^=o^=r),e[0]=[n,r],e[1]=[i,o],e},this.getTwoPointDistance=function(t,e){var n=Math.pow(e[0]-t[0],2),r=Math.pow(e[1]-t[1],2);return Math.sqrt(n+r)},this.dotRelationLine=function(t,e){var n=this,i=r.util.onLine(t,e);return t[0],t[1],e[0][0],e[0][1],e[1][0],e[1][1],{isInline:i,scale:function(){var r=n.getTwoPointDistance(e[0],e[1]);return n.getTwoPointDistance(e[0],t)/r}()}},this.linesRelationSide=function(t,e){for(var n=t.preSide,i=t.nextSide,o=t.oppositePreSide,a=t.oppositeNextSide,s=[],u=[],c=[[],[]],l=0,f=e.length;l=105&&MediaSource.isTypeSupported('video/mp4; codecs="hvc1.1.6.L30.B0"'))}if(window.navigator.userAgent,!_t){(n=new a.default).onmessage=Vt;var p=!0===f?500:15;g=new o.default(Et,this,Y,p),O=(0,l.default)(),document.getElementById("count-fps"),document.getElementById("span-fps")}(r=new s.default).onmessage=Ht},talkInit:function(){q=!0,(r=new s.default).onmessage=Ht},sendSdpInfo:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r={type:"sdpInfo",data:{sdpInfo:t,h265AccelerationEnabled:Dt,aacCodecInfo:e,decodeMode:W,govLength:H,checkDelay:G,lessRateCanvas:Mt,mp4Codec:n}};if(q)try{window.AudioContext=window.AudioContext||window.webkitAudioContext||window.mozAudioContext||window.oAudioContext||window.msAudioContext,(p=new d.default).onmessage=qt,null===y&&((y=new h.default).init(),y.setSendAudioTalkBufferCallback(Wt)),p.postMessage(r),r={type:"sampleRate",data:y.initAudioOut()},p.postMessage(r)}catch(t){return void i.debug.error("Web Audio API is not supported in this web browser! : "+t)}U=t,e=e,n=n,mt=null,ht=!1},parseRTPData:function(t,e){var o=e[4],a=128,s=129,u=130,c=131,l=132,f=133,h=136,d=137,p=138,m=139,y=140,b=144,w=145,S=146,_=147,E=148,x=149,A=150,k=151,D=152,R=153,M=154,O=155,P=156,F=160,V=176,q=255,Y={type:"MediaData",data:{rtspInterleave:t,payload:e},info:null,channel:v.channel},X={};if(253==o||254==o||252==o||251==o){if(253===o?X.IPFrameType="I":252===o&&(X.IPFrameType="P"),function(){var t=e[22]+24;X.frameIndex=(e[11]<<24)+(e[10]<<16)+(e[9]<<8)+e[8];for(var n=24;nt)return i.debug.log("i: "+n),-1;X.width=e[n+2]<<3,X.height=e[n+3]<<3,n+=4}else if(s==e[n]){if(n+4>e.length)return i.debug.log("i: "+n),-1;X.I_frame_interval=e[n+1],X.encode_type=e[n+2],X.frame_rate=e[n+3],n+=4}else if(u==e[n])X.width=(e[n+5]<<8)+e[n+4],X.height=(e[n+7]<<8)+e[n+6],n+=8;else if(c==e[n])n+=4;else if(h==e[n])n+=8;else if(l==e[n]){if(n+4>t)return i.debug.log("i: "+n),-1;var r=(e[n+2]<<8)+e[n+3];n+=r}else if(E==e[n])X.h264_svc_flag=!0,X.svc=e[n+2],n+=4;else if(p==e[n])n+=8;else if(w==e[n])n+=8;else if(R==e[n]){var o=e[n+1],v=e[n+2];n+=8,n+=o*v*16}else if(M==e[n])n+=8;else if(O==e[n])n+=8;else if(S==e[n])n+=8;else if(_==e[n])n+=8;else if(x==e[n])n+=8;else if(F<=e[n]&&e[n]=0&&(Lt.prototype.setFPS(Q),I(Q))}n&&(Y.info=X,n.postMessage(Y))}else if(240==o){if(function(){X.ChannelCount=0;for(var t=e[22]+24,n=24;n=2&&St&&St();break;case"canvasRender":Xt(0,"currentTime"),e=o.data,r=o.option,null!==e&&null!==g&&("mjpeg"===F.codecType?g.drawMJPEG(e,F.width,F.height,F.codecType,F.frameType,F.timeStamp,F.frameIndex,r):g.draw(e,F.width,F.height,F.codecType,F.frameType,F.timeStamp,F.frameIndex,r));break;case"initSegment":J=o.data,null===Bt&&(Bt=!0===Dt&&12===kt?new c.default(i.commonOption.VIDEOENCODETYPE.H265):new c.default(i.commonOption.VIDEOENCODETYPE.H264)),Yt();break;case"mediaSample":null===et.samples&&(et.samples=new Array(ft)),null===o.data.frame_time_stamp&&(o.data.frameDuration=Math.round(gt/V)),1!==lt&&(o.data.frameDuration=gt/Math.abs(lt)),et.samples[nt++]=o.data,pt+=o.data.frameDuration,vt+=o.data.frameDuration;break;case"videoRender":var a=new Uint8Array(o.data.length+rt);if(0!==rt&&a.set(it),a.set(o.data,rt),rt=(it=a).length,nt%ft===0&&0!==nt){if(null!==et.samples[0].frameDuration?(et.baseMediaDecodeTime=1===ot?0:dt,dt=pt):et.baseMediaDecodeTime=Math.round(gt/V)*ft*(ot-1),"chrome"==P&&1===lt)for(var s=et.samples.length,u=vt/ft,l=0;l=2&&St&&St();break;case"render":if(!0===Z)break;mt!==e.codec&&(null!==m&&(yt=m.getVolume(),bt=m.getInitVideoTimeStamp(),m.terminate()),31===e.audio_type&&"edge"===P?(m=null,null!==T&&T({errorCode:i.PLAYER_STATE_CODE.UNSUPPORTED_AUDIO_FORMAT})):(m=new f.default).setSamplingRate(e.samplingRate),null!==m&&(m.setInitVideoTimeStamp(bt),!0===q&&(yt=1),m.audioInit(yt)||(m=null)),mt=e.codec),null!==m&&(!0===q&&m.setBufferingFlag(),null===F||"undefined"===typeof F?m.bufferAudio(e.data,e.rtpTimeStamp,null):m.bufferAudio(e.data,e.rtpTimeStamp,F.codecType))}}function qt(t){var e=t.data;switch(e.type){case"rtpData":S(e.data)}}function Wt(t){var e={type:"getRtpData",data:t};p.postMessage(e)}function Gt(t){null!==$&&($.close(),$=null),ft=!1===t?ct:Math.abs(lt),et.samples=new Array(ft),ht=!1,ot=1,tt=null,nt=0,it=null,rt=0}function Yt(){if(ht=!0,null===$){var t={};t.nVideoEncodeType=i.commonOption.VIDEOENCODETYPE.H264,!0===Dt&&12===kt&&(t.nVideoEncodeType=i.commonOption.VIDEOENCODETYPE.H265),($=(0,u.default)(v,t)).setCodecInfo(at),$.setInitSegmentFunc(Nt),$.setVideoSizeCallback(zt),$.setBeginDrawCallback(w),$.init(st),$.setErrorCallback(T),$.setSpeedPlay(lt),$.setPlaybackFlag(K),$.setFPS(V)}else $.getVideoElement(),$.setInitSegment();$.setAudioStartCallback(Xt)}function Xt(t,e){null!==m&&m.setBufferingFlag(t,e)}return new Lt}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(14),i=n(76);var o=function(){this.metrics={},this._clearMetrics(),this._objpool=[]};function a(t,e){function n(t,e){n.prototype.w=t,n.prototype.h=e}return n.prototype={toString:function(){return"("+n.prototype.w+", "+n.prototype.h+")"},getHalfSize:function(){return new a(n.prototype.w>>>1,n.prototype.h>>>1)},length:function(){return n.prototype.w*n.prototype.h}},new n(t,e)}o.prototype.alloc=function(){var t=null;return 0===this._objpool.length?(t=new Image,this.metrics.totalalloc++):(t=this._objpool.pop(),this.metrics.totalfree--),t},o.prototype.free=function(t){t.length>0&&(r.debug.log("It is not zero length = "+t.length),this._objpool.push(t),this.metrics.totalfree++)},o.prototype.collect=function(t){this._objpool=[];var e=this.metrics.totalalloc-this.metrics.totalfree;this._clearMetrics(e)},o.prototype._clearMetrics=function(t){this.metrics.totalalloc=t||0,this.metrics.totalfree=0};e.default=function(t,e,n,s){var u=e,c=s,l=t,f=n,h=null,d=null,p=null,v=null,g=null,m=null,y=null,b=null,w=0,S=null,_=0,E=0,x=0,T=0,A=new o,k=null,C="",D=!1,B=16.7,R=0,I=!1,M={},O=[],P="png",F=1,U=function(t,e,n,r,i,o,a,s){for(var u in function(t){this.buffer=t,this.previous=null,this.next=null}.call(this,t),this.width=e,this.height=n,this.codecType=r,this.frameType=i,this.timeStamp=o,this.frameIndex=a,this.option={},s)this.option[u]=s[u]},j=null;function L(){var t=c||15;function e(){this.first=null,this.size=0}return e.prototype={enqueue:function(e,n,r,i,o,a,s,u){if(!u||253!==u.mediaType||2!==u.subMediaType){this.size>=t&&this.clear();var c=new U(e,n,r,i,o,a,s,u);if(null===this.first)this.first=c;else{for(var l=this.first;null!==l.next;)l=l.next;l.next=c}return this.size+=1,c}},dequeue:function(){var t=null;return null!==this.first&&(t=this.first,this.first=this.first.next,this.size-=1),t},clear:function(){r.debug.log("BufferQueue clear!");for(var t=null;null!==this.first;)t=this.first,this.first=this.first.next,this.size-=1,t.buffer=null,t=null;this.size=0,this.first=null}},new e}function N(){v="rgb2d",m=null,j=new L,g=B,D=!1}var z=function(t,e){var n=new a(t,e);switch(v){case"RGB2d":h=new RGB2dCanvas(f,n);break;case"YUVWebGL":h=new i.YUVWebGLCanvas(f,n);break;case"ImageWebGL":h=new i.ImageWebGLCanvas(f,n);break;case"WebGL":h=new i.WebGLCanvas(f,n)}},V=function(t){var e=t.document,n=function(){return t.URL||t.webkitURL||t},r=e.createElementNS("http://www.w3.org/1999/xhtml","a"),i="download"in r,o=/constructor/i.test(t.HTMLElement),a=/CriOS\/[\d]+/.test(navigator.userAgent),s=function(e){(t.setImmediate||t.setTimeout)(function(){throw e},0)},u=function(t){setTimeout(function(){"string"===typeof t?n().revokeObjectURL(t):t.remove()},4e4)},c=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t},l=function(e,l,f){f||(e=c(e));var h,d=this,p="application/octet-stream"===e.type,v=function(){!function(t,e,n){for(var r=(e=[].concat(e)).length;r--;){var i=t["on"+e[r]];if("function"===typeof i)try{i.call(t,n||t)}catch(t){s(t)}}}(d,"writestart progress write writeend".split(" "))};if(d.readyState=d.INIT,i)return h=n().createObjectURL(e),void setTimeout(function(){r.href=h,r.download=l,function(t){var e=new MouseEvent("click");t.dispatchEvent(e)}(r),v(),u(h),d.readyState=d.DONE});!function(){if((a||p&&o)&&t.FileReader){var r=new FileReader;return r.onloadend=function(){var e=a?r.result:r.result.replace(/^data:[^;]*;/,"data:attachment/file;");t.open(e,"_blank")||(t.location.href=e),e=void 0,d.readyState=d.DONE,v()},r.readAsDataURL(e),void(d.readyState=d.INIT)}h||(h=n().createObjectURL(e)),p?t.location.href=h:t.open(h,"_blank")||(t.location.href=h),d.readyState=d.DONE,v(),u(h)}()},f=l.prototype;return"undefined"!==typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,n){return e=e||t.name||"download",n||(t=c(t)),navigator.msSaveOrOpenBlob(t,e)}:(f.readyState=f.INIT=0,f.WRITING=1,f.DONE=2,f.error=f.onwritestart=f.onprogress=f.onwrite=f.onabort=f.onerror=f.onwriteend=null,function(t,e,n){return new l(t,e||t.name||"download",n)})}(window),H=function(t){if(0==j.size&&!0===I)return u.fileOverCallback(),void N.prototype.stopRendering();if(null!==(k=j.dequeue())&&null!==k.buffer&&("mjpeg"===k.codecType||k.buffer.length>0)){if("undefined"!==typeof d&&"undefined"!==typeof p&&d===k.width&&p===k.height&&m===k.codecType||(v="h264"===k.codecType||"h265"===k.codecType?"YUVWebGL":"ImageWebGL",z(k.width,k.height),"undefined"!=d&&null!=d&&0!=d||y("PlayStart"),d=k.width,p=k.height,m=k.codecType),S=k.timeStamp,u.timeStamp(S),"undefined"!==typeof h)return h.drawCanvas(k.buffer,k.option),f.updatedCanvas=!0,b(S),Math.abs(S.timestamp-_)>3&&u.waitingCallback(!1),M={frameIndex:k.frameIndex,option:k.option,buffer:k.buffer,timeStamp:k.timeStamp},_=S.timestamp,"mjpeg"===k.codecType?A.free(k.buffer):(delete k.buffer,k.buffer=null),k.previous=null,k.next=null,k=null,!0;r.debug.log("drawer is undefined in StreamDrawer!")}return!1},q=function t(e){if(!0===D){if(0===w||e-w<200)return 0===w&&(w=e),void(null!==j&&window.requestAnimationFrame(t));(T+=e-E)>x&&H()&&(x+=g),T>1e3&&(x=0,T=0),E=e,window.requestAnimationFrame(t)}};return N.prototype={getDrawingStrategy:function(){return v},reassignCanvas:function(){var t=$('canvas[kind-channel-id="'+l+'"]')[0];f!==t&&(d=0,p=0)},drawMJPEG:function(t,e,n,r,i,o,a,s){var u=A.alloc();u.width=e,u.height=n,u.codecType=r,u.frameType=i,u.frameIndex=a,u.time=o,u.onload=function(){null!==j&&j.enqueue(this,this.width,this.height,this.codecType,this.frameType,this.time,this.frameIndex,this.option)},u.setAttribute("src","data:image/jpeg;base64,"+function(t){for(var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(t),i=r.byteLength,o=i%3,a=i-o,s=0,u=0;u>18]+n[(258048&s)>>12]+n[(4032&s)>>6]+n[63&s];return 1===o?e+=n[(252&(s=r[a]))>>2]+n[(3&s)<<4]+"==":2===o&&(e+=n[(64512&(s=r[a]<<8|r[a+1]))>>10]+n[(1008&s)>>4]+n[(15&s)<<2]+"="),e}(t))},draw:function(t,e,n,r,i,o,a,s){null!==j&&(document.hidden&&j.size>=15?j.clear():j.enqueue(t,e,n,r,i,o,a,s))},capture:function(t,e){C=t,O=e.ivsCanvasArr,h.drawCanvas(M.buffer,M.option),function(t,e){var n=f.width,r=f.height,i=document.createElement("canvas");i.width=n,i.height=r;for(var o=i.getContext("2d"),a=0;athis.elements.length?null:this.elements[t-1]},dimensions:function(){return this.elements.length},modulus:function(){return Math.sqrt(this.dot(this))},eql:function(t){var e=this.elements.length,n=t.elements||t;if(e!=n.length)return!1;do{if(Math.abs(this.elements[e-1]-n[e-1])>r)return!1}while(--e);return!0},dup:function(){return i.create(this.elements)},map:function(t){var e=[];return this.each(function(n,r){e.push(t(n,r))}),i.create(e)},each:function(t){var e,n=this.elements.length,r=n;do{e=r-n,t(this.elements[e],e+1)}while(--n)},toUnitVector:function(){var t=this.modulus();return 0===t?this.dup():this.map(function(e){return e/t})},angleFrom:function(t){var e=t.elements||t,n=this.elements.length;if(n!=e.length)return null;var r=0,i=0,o=0;if(this.each(function(t,n){r+=t*e[n-1],i+=t*t,o+=e[n-1]*e[n-1]}),i=Math.sqrt(i),o=Math.sqrt(o),i*o===0)return null;var a=r/(i*o);return a<-1&&(a=-1),a>1&&(a=1),Math.acos(a)},isParallelTo:function(t){var e=this.angleFrom(t);return null===e?null:e<=r},isAntiparallelTo:function(t){var e=this.angleFrom(t);return null===e?null:Math.abs(e-Math.PI)<=r},isPerpendicularTo:function(t){var e=this.dot(t);return null===e?null:Math.abs(e)<=r},add:function(t){var e=t.elements||t;return this.elements.length!=e.length?null:this.map(function(t,n){return t+e[n-1]})},subtract:function(t){var e=t.elements||t;return this.elements.length!=e.length?null:this.map(function(t,n){return t-e[n-1]})},multiply:function(t){return this.map(function(e){return e*t})},x:function(t){return this.multiply(t)},dot:function(t){var e=t.elements||t,n=0,r=this.elements.length;if(r!=e.length)return null;do{n+=this.elements[r-1]*e[r-1]}while(--r);return n},cross:function(t){var e=t.elements||t;if(3!=this.elements.length||3!=e.length)return null;var n=this.elements;return i.create([n[1]*e[2]-n[2]*e[1],n[2]*e[0]-n[0]*e[2],n[0]*e[1]-n[1]*e[0]])},max:function(){var t,e=0,n=this.elements.length,r=n;do{t=r-n,Math.abs(this.elements[t])>Math.abs(e)&&(e=this.elements[t])}while(--n);return e},indexOf:function(t){var e,n=null,r=this.elements.length,i=r;do{e=i-r,null===n&&this.elements[e]==t&&(n=e+1)}while(--r);return n},toDiagonalMatrix:function(){return o.Diagonal(this.elements)},round:function(){return this.map(function(t){return Math.round(t)})},snapTo:function(t){return this.map(function(e){return Math.abs(e-t)<=r?t:e})},distanceFrom:function(t){if(t.anchor)return t.distanceFrom(this);var e=t.elements||t;if(e.length!=this.elements.length)return null;var n,r=0;return this.each(function(t,i){n=t-e[i-1],r+=n*n}),Math.sqrt(r)},liesOn:function(t){return t.contains(this)},liesIn:function(t){return t.contains(this)},rotate:function(t,e){var n,r,a,s,u;switch(this.elements.length){case 2:return 2!=(n=e.elements||e).length?null:(r=o.Rotation(t).elements,a=this.elements[0]-n[0],s=this.elements[1]-n[1],i.create([n[0]+r[0][0]*a+r[0][1]*s,n[1]+r[1][0]*a+r[1][1]*s]));case 3:if(!e.direction)return null;var c=e.pointClosestTo(this).elements;return r=o.Rotation(t,e.direction).elements,a=this.elements[0]-c[0],s=this.elements[1]-c[1],u=this.elements[2]-c[2],i.create([c[0]+r[0][0]*a+r[0][1]*s+r[0][2]*u,c[1]+r[1][0]*a+r[1][1]*s+r[1][2]*u,c[2]+r[2][0]*a+r[2][1]*s+r[2][2]*u]);default:return null}},reflectionIn:function(t){if(t.anchor){var e=this.elements.slice(),n=t.pointClosestTo(e).elements;return i.create([n[0]+(n[0]-e[0]),n[1]+(n[1]-e[1]),n[2]+(n[2]-(e[2]||0))])}var r=t.elements||t;return this.elements.length!=r.length?null:this.map(function(t,e){return r[e-1]+(r[e-1]-t)})},to3D:function(){var t=this.dup();switch(t.elements.length){case 3:break;case 2:t.elements.push(0);break;default:return null}return t},inspect:function(){return"["+this.elements.join(", ")+"]"},setElements:function(t){return this.elements=(t.elements||t).slice(),this}},i.create=function(t){return(new i).setElements(t)},i.i=i.create([1,0,0]),i.j=i.create([0,1,0]),i.k=i.create([0,0,1]),i.Random=function(t){var e=[];do{e.push(Math.random())}while(--t);return i.create(e)},i.Zero=function(t){var e=[];do{e.push(0)}while(--t);return i.create(e)},o.prototype={e:function(t,e){return t<1||t>this.elements.length||e<1||e>this.elements[0].length?null:this.elements[t-1][e-1]},row:function(t){return t>this.elements.length?null:i.create(this.elements[t-1])},col:function(t){if(t>this.elements[0].length)return null;var e,n=[],r=this.elements.length,o=r;do{e=o-r,n.push(this.elements[e][t-1])}while(--r);return i.create(n)},dimensions:function(){return{rows:this.elements.length,cols:this.elements[0].length}},rows:function(){return this.elements.length},cols:function(){return this.elements[0].length},eql:function(t){var e=t.elements||t;if("undefined"==typeof e[0][0]&&(e=o.create(e).elements),this.elements.length!=e.length||this.elements[0].length!=e[0].length)return!1;var n,i,a,s=this.elements.length,u=s,c=this.elements[0].length;do{n=u-s,i=c;do{if(a=c-i,Math.abs(this.elements[n][a]-e[n][a])>r)return!1}while(--i)}while(--s);return!0},dup:function(){return o.create(this.elements)},map:function(t){var e,n,r,i=[],a=this.elements.length,s=a,u=this.elements[0].length;do{n=u,i[e=s-a]=[];do{r=u-n,i[e][r]=t(this.elements[e][r],e+1,r+1)}while(--n)}while(--a);return o.create(i)},isSameSizeAs:function(t){var e=t.elements||t;return"undefined"==typeof e[0][0]&&(e=o.create(e).elements),this.elements.length==e.length&&this.elements[0].length==e[0].length},add:function(t){var e=t.elements||t;return"undefined"==typeof e[0][0]&&(e=o.create(e).elements),this.isSameSizeAs(e)?this.map(function(t,n,r){return t+e[n-1][r-1]}):null},subtract:function(t){var e=t.elements||t;return"undefined"==typeof e[0][0]&&(e=o.create(e).elements),this.isSameSizeAs(e)?this.map(function(t,n,r){return t-e[n-1][r-1]}):null},canMultiplyFromLeft:function(t){var e=t.elements||t;return"undefined"==typeof e[0][0]&&(e=o.create(e).elements),this.elements[0].length==e.length},multiply:function(t){if(!t.elements)return this.map(function(e){return e*t});var e=!!t.modulus;if("undefined"==typeof(p=t.elements||t)[0][0]&&(p=o.create(p).elements),!this.canMultiplyFromLeft(p))return null;var n,r,i,a,s,u,c=this.elements.length,l=c,f=p[0].length,h=this.elements[0].length,d=[];do{d[n=l-c]=[],r=f;do{i=f-r,a=0,s=h;do{u=h-s,a+=this.elements[n][u]*p[u][i]}while(--s);d[n][i]=a}while(--r)}while(--c);var p=o.create(d);return e?p.col(1):p},x:function(t){return this.multiply(t)},minor:function(t,e,n,r){var i,a,s,u=[],c=n,l=this.elements.length,f=this.elements[0].length;do{u[i=n-c]=[],a=r;do{s=r-a,u[i][s]=this.elements[(t+i-1)%l][(e+s-1)%f]}while(--a)}while(--c);return o.create(u)},transpose:function(){var t,e,n,r=this.elements.length,i=this.elements[0].length,a=[],s=i;do{a[t=i-s]=[],e=r;do{n=r-e,a[t][n]=this.elements[n][t]}while(--e)}while(--s);return o.create(a)},isSquare:function(){return this.elements.length==this.elements[0].length},max:function(){var t,e,n,r=0,i=this.elements.length,o=i,a=this.elements[0].length;do{t=o-i,e=a;do{n=a-e,Math.abs(this.elements[t][n])>Math.abs(r)&&(r=this.elements[t][n])}while(--e)}while(--i);return r},indexOf:function(t){var e,n,r,i=this.elements.length,o=i,a=this.elements[0].length;do{e=o-i,n=a;do{if(r=a-n,this.elements[e][r]==t)return{i:e+1,j:r+1}}while(--n)}while(--i);return null},diagonal:function(){if(!this.isSquare)return null;var t,e=[],n=this.elements.length,r=n;do{t=r-n,e.push(this.elements[t][t])}while(--n);return i.create(e)},toRightTriangular:function(){var t,e,n,r,i=this.dup(),o=this.elements.length,a=o,s=this.elements[0].length;do{if(e=a-o,0==i.elements[e][e])for(j=e+1;jr){o++;break}}while(--e)}while(--a);return o},rk:function(){return this.rank()},augment:function(t){var e=t.elements||t;"undefined"==typeof e[0][0]&&(e=o.create(e).elements);var n,r,i,a=this.dup(),s=a.elements[0].length,u=a.elements.length,c=u,l=e[0].length;if(u!=e.length)return null;do{n=c-u,r=l;do{i=l-r,a.elements[n][s+i]=e[n][i]}while(--r)}while(--u);return a},inverse:function(){if(!this.isSquare()||this.isSingular())return null;var t,e,n,r,i,a,s,u=this.elements.length,c=u,l=this.augment(o.I(u)).toRightTriangular(),f=l.elements[0].length,h=[];do{i=[],n=f,h[t=u-1]=[],a=l.elements[t][t];do{r=f-n,s=l.elements[t][r]/a,i.push(s),r>=c&&h[t].push(s)}while(--n);for(l.elements[t]=i,e=0;e3||e.elements.length>3)return null;var n=e.modulus();return 0===n?null:(this.anchor=t,this.direction=i.create([e.elements[0]/n,e.elements[1]/n,e.elements[2]/n]),this)}},a.create=function(t,e){return(new a).setVectors(t,e)},a.X=a.create(i.Zero(3),i.i),a.Y=a.create(i.Zero(3),i.j),a.Z=a.create(i.Zero(3),i.k),s.prototype={eql:function(t){return this.contains(t.anchor)&&this.isParallelTo(t)},dup:function(){return s.create(this.anchor,this.normal)},translate:function(t){var e=t.elements||t;return s.create([this.anchor.elements[0]+e[0],this.anchor.elements[1]+e[1],this.anchor.elements[2]+(e[2]||0)],this.normal)},isParallelTo:function(t){var e;return t.normal?(e=this.normal.angleFrom(t.normal),Math.abs(e)<=r||Math.abs(Math.PI-e)<=r):t.direction?this.normal.isPerpendicularTo(t.direction):null},isPerpendicularTo:function(t){var e=this.normal.angleFrom(t.normal);return Math.abs(Math.PI/2-e)<=r},distanceFrom:function(t){if(this.intersects(t)||this.contains(t))return 0;if(t.anchor){var e=this.anchor.elements,n=t.anchor.elements,r=this.normal.elements;return Math.abs((e[0]-n[0])*r[0]+(e[1]-n[1])*r[1]+(e[2]-n[2])*r[2])}var i=t.elements||t;e=this.anchor.elements,r=this.normal.elements;return Math.abs((e[0]-i[0])*r[0]+(e[1]-i[1])*r[1]+(e[2]-(i[2]||0))*r[2])},contains:function(t){if(t.normal)return null;if(t.direction)return this.contains(t.anchor)&&this.contains(t.anchor.add(t.direction));var e=t.elements||t,n=this.anchor.elements,i=this.normal.elements;return Math.abs(i[0]*(n[0]-e[0])+i[1]*(n[1]-e[1])+i[2]*(n[2]-(e[2]||0)))<=r},intersects:function(t){return"undefined"==typeof t.direction&&"undefined"==typeof t.normal?null:!this.isParallelTo(t)},intersectionWith:function(t){if(!this.intersects(t))return null;if(t.direction){var e=t.anchor.elements,n=t.direction.elements,r=this.anchor.elements,s=((c=this.normal.elements)[0]*(r[0]-e[0])+c[1]*(r[1]-e[1])+c[2]*(r[2]-e[2]))/(c[0]*n[0]+c[1]*n[1]+c[2]*n[2]);return i.create([e[0]+n[0]*s,e[1]+n[1]*s,e[2]+n[2]*s])}if(t.normal){for(var u=this.normal.cross(t.normal).toUnitVector(),c=this.normal.elements,l=(e=this.anchor.elements,t.normal.elements),f=t.anchor.elements,h=o.Zero(2,2),d=0;h.isSingular();)d++,h=o.create([[c[d%3],c[(d+1)%3]],[l[d%3],l[(d+1)%3]]]);for(var p=h.inverse().elements,v=c[0]*e[0]+c[1]*e[1]+c[2]*e[2],g=l[0]*f[0]+l[1]*f[1]+l[2]*f[2],m=[p[0][0]*v+p[0][1]*g,p[1][0]*v+p[1][1]*g],y=[],b=1;b<=3;b++)y.push(d==b?0:m[(b+(5-d)%3)%3]);return a.create(y,u)}},pointClosestTo:function(t){var e=t.elements||t,n=this.anchor.elements,r=this.normal.elements,o=(n[0]-e[0])*r[0]+(n[1]-e[1])*r[1]+(n[2]-(e[2]||0))*r[2];return i.create([e[0]+r[0]*o,e[1]+r[1]*o,(e[2]||0)+r[2]*o])},rotate:function(t,e){var n=o.Rotation(t,e.direction).elements,r=e.pointClosestTo(this.anchor).elements,i=this.anchor.elements,a=this.normal.elements,u=r[0],c=r[1],l=r[2],f=i[0]-u,h=i[1]-c,d=i[2]-l;return s.create([u+n[0][0]*f+n[0][1]*h+n[0][2]*d,c+n[1][0]*f+n[1][1]*h+n[1][2]*d,l+n[2][0]*f+n[2][1]*h+n[2][2]*d],[n[0][0]*a[0]+n[0][1]*a[1]+n[0][2]*a[2],n[1][0]*a[0]+n[1][1]*a[1]+n[1][2]*a[2],n[2][0]*a[0]+n[2][1]*a[1]+n[2][2]*a[2]])},reflectionIn:function(t){if(t.normal){var e=this.anchor.elements,n=this.normal.elements,r=e[0],i=e[1],o=e[2],a=n[0],u=n[1],c=n[2],l=this.anchor.reflectionIn(t).elements,f=r+a,h=i+u,d=o+c,p=t.pointClosestTo([f,h,d]).elements,v=[p[0]+(p[0]-f)-l[0],p[1]+(p[1]-h)-l[1],p[2]+(p[2]-d)-l[2]];return s.create(l,v)}if(t.direction)return this.rotate(Math.PI,t);var g=t.elements||t;return s.create(this.anchor.reflectionIn([g[0],g[1],g[2]||0]),this.normal)},setVectors:function(t,e,n){if(null===(t=(t=i.create(t)).to3D()))return null;if(null===(e=(e=i.create(e)).to3D()))return null;if("undefined"==typeof n)n=null;else if(null===(n=(n=i.create(n)).to3D()))return null;var r,o,a=t.elements[0],s=t.elements[1],u=t.elements[2],c=e.elements[0],l=e.elements[1],f=e.elements[2];if(null!==n){var h=n.elements[0],d=n.elements[1],p=n.elements[2];if(0===(o=(r=i.create([(l-s)*(p-u)-(f-u)*(d-s),(f-u)*(h-a)-(c-a)*(p-u),(c-a)*(d-s)-(l-s)*(h-a)])).modulus()))return null;r=i.create([r.elements[0]/o,r.elements[1]/o,r.elements[2]/o])}else{if(0===(o=Math.sqrt(c*c+l*l+f*f)))return null;r=i.create([e.elements[0]/o,e.elements[1]/o,e.elements[2]/o])}return this.anchor=t,this.normal=r,this}},o.Translation=function(t){var e;if(2===t.elements.length)return(e=o.I(3)).elements[2][0]=t.elements[0],e.elements[2][1]=t.elements[1],e;if(3===t.elements.length)return(e=o.I(4)).elements[0][3]=t.elements[0],e.elements[1][3]=t.elements[1],e.elements[2][3]=t.elements[2],e;throw"Invalid length for Translation"},o.prototype.flatten=function(){var t=[];if(0===this.elements.length)return[];for(var e=0;e4||this.elements[0].length>4)return null;for(t=0;t0)return r.debug.count("1.segmentWaitDecode.length: "+_.length),_.push(t),void r.debug.count("2.segmentWaitDecode.length: "+_.length);A.updating?(r.debug.log("updating.........."),_.push(t)):(A.appendBuffer(t),q.frameIndex=e)}catch(t){r.debug.log("videoMediaSource::appendNextMediaSegment error >> initVideo"),_.length=0,w.initVideo(!1),L&&L({errorCode:r.PLAYER_STATE_CODE.ADDBUFFER_ERROR})}}(V.shift(),H.shift())}function tt(){if(null!==T)try{if(A&&A.buffered.length>0&&(function(){var t=1*A.buffered.start(A.buffered.length-1),e=1*A.buffered.end(A.buffered.length-1);e-t>60&&A.remove(t,e-10)}(),z&&!N||x.duration>G&&(x.currentTime=(x.duration-G).toFixed(3),G+=W<10?.5:.1),x&&x.duration-x.currentTime>j&&L&&L({errorCode:r.PLAYER_STATE_CODE.TIMEOUT}),!d)){var t=1*A.buffered.start(A.buffered.length-1),e=1*A.buffered.end(A.buffered.length-1);if((0===x.currentTime?e-t:e-x.currentTime)>=E+.1){if(r.debug.log("\u8df3\u79d2"),A.updating)return;var n=e-E;x.currentTime=n.toFixed(3)}}}catch(t){r.debug.log("sourceBuffer has been removed")}}function et(){}function nt(){_.length>0&&(r.debug.count("1. onSourceUpdate .segmentWaitDecode.length: "+_.length),A.updating||(r.debug.count("2. onSourceUpdate .appendBuffer: "+_.length+" "+_[0].length),A.appendBuffer(_[0]),_.shift()))}function rt(){r.debug.log("videoMediaSource::onSourceError")}function it(){r.debug.log("videoMediaSource::onSourceBufferErrormsg")}function ot(){r.debug.log("videoMediaSource::onError"),$(),L&&L({errorCode:r.PLAYER_STATE_CODE.MSE_ERROR})}function at(){m=!0,y=!1,z=!0,r.debug.log("playing "),D||(D=!0,s("PlayStart"))}function st(){m=!1,y=!0,r.debug.log("\u6682\u505c\u64ad\u653e----------------------------------------------")}function ut(){var t=parseInt(T.duration,10),e=parseInt(x.currentTime,10),n={timestamp:l.timestamp-c*(t-e+(1!==c?1:0)),timestamp_usec:0,timezone:l.timezone};0===e||isNaN(t)||(d&&w.waitingCallback(!1),!d&&Math.abs(t-e)>4&&1===c||x.paused||(null===h?(h=n,a(0,"currentTime")):(h.timestamp<=n.timestamp&&c>=1||h.timestamp>n.timestamp&&c<1)&&(w.timeStamp(n),h=n,++b>4&&a(n.timestamp,"currentTime"))))}function ct(){K(),tt()}function lt(){o()}function ft(){K()}function ht(){if(r.debug.log("\u9700\u8981\u7f13\u51b2\u4e0b\u4e00\u5e27"),S=!1,d&&m&&w.waitingCallback(!0),0==C)k=Date.now(),C++;else{C++;var t=Date.now()-k;r.debug.log("diffTime: "+t+" Count: "+C),C>=5&&t<6e4&&E<=1.8&&(E+=.1,C=0,k=0,r.debug.log("delay + 0.1 = "+E))}}function dt(){r.debug.log("Can play !")}function pt(){r.debug.log("Can play without waiting"),S=!0}function vt(){r.debug.log("loadedmetadata")}function gt(t,e,n){for(var r=t.width,i=t.height,o=t.getContext("2d"),a=0;a3;0===f.timestamp&&w.timeStamp(t),!0===e&&(b=0,a((f=t).timestamp,"init"),0!==l.timestamp&&d&&(x.currentTime=T.duration-.1,w.waitingCallback(!1)),h=null),l=t},pause:function(){N=!0,$()},play:function(){N=!1},setPlaybackFlag:function(t){d=t},setTimeStampInit:function(){h=null,f={timestamp:0,timestamp_usec:0,timezone:0}},close:function(){Q(),$()},setBeginDrawCallback:function(t){s=t},setErrorCallback:function(t){L=t},terminate:function(){null!==x&&(Q(),"open"===T.readyState&&(A&&T.removeSourceBuffer(A),T.endOfStream()),x.src="",A=null,T=null,x=null,B&&(clearInterval(B),B=null),O&&(clearInterval(O),O=null),U=0,F=0,P=0)},getDuration:function(){return x.duration-x.currentTime},setFPS:function(t){t&&(E=(W=t)<5?2:W>=5&&W<=9?1:W>9&&W<15?.8:.5)},setRtspOver:function(){x.duration.toFixed(4)-0===x.currentTime.toFixed(4)-0?(w.timeStamp(l),w.fileOverCallback()):(P=parseInt(x.currentTime),F=parseInt(x.duration),O=setInterval(function(){P===parseInt(x.currentTime)&&F===parseInt(x.duration)?U++>10&&(O&&clearInterval(O),O=null,w.timeStamp(l),w.fileOverCallback()):parseInt(x.currentTime)>=parseInt(x.duration)?(O&&clearInterval(O),O=null,w.timeStamp(l),w.fileOverCallback()):(P=parseInt(x.currentTime),F=parseInt(x.duration),U=0)},150))},getVideoBufferQueueSize:function(){return V.length},playNextFrame:function(){J()},getCurFrameInfo:function(){return q.src=function(){var t=document.createElement("canvas");return t.width=x.videoWidth,t.height=x.videoHeight,t.getContext("2d").drawImage(x,0,0,t.width,t.height),t.toDataURL()}(),q}};var mt=function(t){var e=t.document,n=function(){return t.URL||t.webkitURL||t},r=e.createElementNS("http://www.w3.org/1999/xhtml","a"),i="download"in r,o=/constructor/i.test(t.HTMLElement),a=/CriOS\/[\d]+/.test(navigator.userAgent),s=function(e){(t.setImmediate||t.setTimeout)(function(){throw e},0)},u=function(t){setTimeout(function(){"string"===typeof t?n().revokeObjectURL(t):t.remove()},4e4)},c=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t},l=function(e,l,f){f||(e=c(e));var h,d=this,p="application/octet-stream"===e.type,v=function(){!function(t,e,n){for(var r=(e=[].concat(e)).length;r--;){var i=t["on"+e[r]];if("function"===typeof i)try{i.call(t,n||t)}catch(t){s(t)}}}(d,"writestart progress write writeend".split(" "))};if(d.readyState=d.INIT,i)return h=n().createObjectURL(e),void setTimeout(function(){r.href=h,r.download=l,function(t){var e=new MouseEvent("click");t.dispatchEvent(e)}(r),v(),u(h),d.readyState=d.DONE});!function(){if((a||p&&o)&&t.FileReader){var r=new FileReader;return r.onloadend=function(){var e=a?r.result:r.result.replace(/^data:[^;]*;/,"data:attachment/file;");t.open(e,"_blank")||(t.location.href=e),e=void 0,d.readyState=d.DONE,v()},r.readAsDataURL(e),void(d.readyState=d.INIT)}h||(h=n().createObjectURL(e)),p?t.location.href=h:t.open(h,"_blank")||(t.location.href=h),d.readyState=d.DONE,v(),u(h)}()},f=l.prototype;return"undefined"!==typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,n){return e=e||t.name||"download",n||(t=c(t)),navigator.msSaveOrOpenBlob(t,e)}:(f.readyState=f.INIT=0,f.WRITING=1,f.DONE=2,f.error=f.onwritestart=f.onprogress=f.onwrite=f.onabort=f.onerror=f.onwriteend=null,function(t,e,n){return new l(t,e||t.name||"download",n)})}(window);return new Y}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(14);e.default=function(t){var e=[],n={},i=t||r.commonOption.VIDEOENCODETYPE.H264;function o(){for(var t in e)e[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)];r.commonOption.VIDEOENCODETYPE.H264===i?n.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]):r.commonOption.VIDEOENCODETYPE.H265===i&&(n.FTYP=new Uint8Array([105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,97,118,99,49,109,112,52,49])),n.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),n.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),n.STSC=n.STCO=n.STTS,n.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),n.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),n.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),n.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),n.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),n.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}e={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],hev1:[],hvcC:[]};var a=function(t){for(var e=8,n=Array.prototype.slice.call(arguments,1),r=0;r>>24&255,i[o++]=e>>>16&255,i[o++]=e>>>8&255,i[o++]=255&e,i.set(t,o),o+=4,r=0;r>8,255&t.channelcount,(65280&t.samplesize)>>8,255&t.samplesize,0,0,0,0,(65280&t.samplerate)>>8,255&t.samplerate,0,0]),function(t){var n=t.config,r=n.length,i=new Uint8Array([0,0,0,0,3,23+r,0,1,0,4,15+r,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([r]).concat(n).concat([6,1,2]));return a(e.esds,i)}(t))},u=function(t){return"audio"===t.type?a(e.stsd,n.STSD_PREFIX,s(t)):a(e.stsd,n.STSD_PREFIX,function(t){var n=t.sps||[],o=t.pps||[],s=[],u=[],c=[],l=t.vps||[],f=0;for(f=0;f>>8),c.push(255&l[f].byteLength),c=c.concat(Array.prototype.slice.call(l[f]));for(f=0;f>>8),s.push(255&n[f].byteLength),s=s.concat(Array.prototype.slice.call(n[f]));for(f=0;f>>8),u.push(255&o[f].byteLength),u=u.concat(Array.prototype.slice.call(o[f]));return r.commonOption.VIDEOENCODETYPE.H264===i?a(e.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&t.width)>>8,255&t.width,(65280&t.height)>>8,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),a(e.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([n.length]).concat(s).concat([o.length]).concat(u)))):r.commonOption.VIDEOENCODETYPE.H265===i?a(e.hev1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&t.width)>>8,255&t.width,(65280&t.height)>>8,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),a(e.hvcC,new Uint8Array([1,t.general_profile_flag,(4278190080&t.general_profile_compatibility_flags)>>>24,(16711680&t.general_profile_compatibility_flags)>>>16,(65280&t.general_profile_compatibility_flags)>>>8,255&t.general_profile_compatibility_flags,(0xff0000000000&t.general_constraint_indicator_flags)>>>40,(0xff00000000&t.general_constraint_indicator_flags)>>>32,(4278190080&t.general_constraint_indicator_flags)>>>24,(16711680&t.general_constraint_indicator_flags)>>>16,(65280&t.general_constraint_indicator_flags)>>>8,255&t.general_constraint_indicator_flags,t.general_level_idc,240,0,252,252|t.chroma_format_idc,248|t.bitDepthLumaMinus8,248|t.bitDepthChromaMinus8,0,0,t.rate_layers_nested_length,3].concat([32,0,1]).concat(c).concat([33,0,1]).concat(s).concat([34,0,1]).concat(u)))):void 0}(t))},c=function(t){var r=null;return r="audio"===t.type?a(e.smhd,n.SMHD):a(e.vmhd,n.VMHD),a(e.minf,r,a(e.dinf,a(e.dref,n.DREF)),function(t){return a(e.stbl,u(t),a(e.stts,n.STTS),a(e.stsc,n.STSC),a(e.stsz,n.STSZ),a(e.stco,n.STCO))}(t))},l=function(t){return a(e.mdia,function(t){var n=t.timescale,r=t.duration;return a(e.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r,85,196,0,0]))}(t),function(t){var r=null;return r="audio"===t.type?n.HDLR_AUDIO:n.HDLR_VIDEO,a(e.hdlr,r)}(t),c(t))},f=function(t){return a(e.trak,function(t){var n=t.id,r=t.duration,i=t.width,o=t.height;return a(e.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,0,r>>>24&255,r>>>16&255,r>>>8&255,255&r,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>>8&255,255&i,0,0,o>>>8&255,255&o,0,0]))}(t),l(t))},h=function(t){return a(e.mvex,function(t){var n=t.id,r=new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return a(e.trex,r)}(t))},d=function(t){var n,i,o=(n=t.timescale,i=t.duration,r.debug.log("mvhd: timescale: "+n+" duration: "+i),a(e.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))),s=f(t),u=h(t);return a(e.moov,o,s,u)},p=function(t,n){return"audio"===t.type?audioTrun(t,n):function(t,n){var r,i=null,o=null,s=0,u=n;if(null===(r=t.samples||[])[0].frameDuration)for(u+=24+4*r.length,i=trunHeader(r,u),s=0;s>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size]);else for(i=function(t,e){return[0,0,3,5,(4278190080&t.length)>>>24,(16711680&t.length)>>>16,(65280&t.length)>>>8,255&t.length,(4278190080&e)>>>24,(16711680&e)>>>16,(65280&e)>>>8,255&e,0,0,0,0]}(r,u+=24+4*r.length+4*r.length),s=0;s>>24,(16711680&o.frameDuration)>>>16,(65280&o.frameDuration)>>>8,255&o.frameDuration,(4278190080&o.size)>>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size]);return a(e.trun,new Uint8Array(i))}(t,n)},v=function(t,n){return a(e.moof,function(t){var n=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t]);return a(e.mfhd,n)}(t),function(t){var n,r,i;return n=a(e.tfhd,new Uint8Array([0,2,0,0,0,0,0,1])),r=a(e.tfdt,new Uint8Array([0,0,0,0,t.baseMediaDecodeTime>>>24&255,t.baseMediaDecodeTime>>>16&255,t.baseMediaDecodeTime>>>8&255,255&t.baseMediaDecodeTime])),i=p(t,72),a(e.traf,n,r,i)}(n))};return o.prototype={initSegment:function(t){var i=a(e.ftyp,n.FTYP);r.debug.log(t);var o=d(t),s=new Uint8Array(i.byteLength+o.byteLength);return s.set(i,0),s.set(o,i.byteLength),s},mediaSegment:function(t,n,r,i){var o=v(t,n),s=function(t){return a(e.mdat,t)}(r),u=null;return(u=new Uint8Array(o.byteLength+s.byteLength)).set(o),u.set(s,o.byteLength),u}},new o}},function(t,e,n){"use strict";var r=n(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(13)),o=n(14);e.default=function(){var t={},e=null,n=s(),r=s();function a(t,e){this.data=t,this.timeStamp=e,this.next=null}function s(){function t(){this.first=null,this.size=0}return t.prototype={enqueue:function(t){if(null===this.first)this.first=t;else{for(var e=this.first;null!==e.next;)e=e.next;e.next=t}this.size+=1},dequeue:function(){var t=null;return null!==this.first&&(t=this.first,this.first=this.first.next,this.size-=1),t},clear:function(){this.size=0,this.first=null}},new t}function u(t,n){var r=n.first;if(r)if(t>r.timeStamp){for(;r&&t>r.timeStamp;)(r=n.dequeue())&&r.data&&2===r.data.type&&e&&e(r.data);r&&e&&e(r.data)}else tt||a<0)&&(u=0,v=0,d=!0,null!==g&&g.stop()),u-n.currentTime<0&&(u=0),l=i,p=function(t,e,n){var r=t;return n+e.length>=r.length&&(r=new Float32Array(r.length+8e4)).set(r,0),r.set(e,n),r}(p,r,v),v+=r.length,!d){var c=0;if(v/r.length>1&&(null!==h&&(c=h*e),c>=v||null===h))return void(v=0);var f=null;/Apple Computer/.test(navigator.vendor)&&/Safari/.test(navigator.userAgent)&&s.samplingRate<32e3?(8e3==s.samplingRate?p=function(t){for(var e=0,n=0,r=0,i=0,o=(1-Math.cos(.2*Math.PI))/2,a=new Float32Array(4*t.length),s=0,u=0;s=1?1:n},getVolume:function(){return a},terminate:function(){n&&"closed"!==n.state&&(u=0,c=!1,n.close())},setBufferingFlag:function(t,e){"init"===e?f=t:d&&(0===t||"undefined"===typeof t||null===t?h=null:(h=t-f,f=0),d=!1)},getBufferingFlag:function(){return d},setInitVideoTimeStamp:function(t){f=t},getInitVideoTimeStamp:function(){return f},setSamplingRate:function(t){s.samplingRate=t},pause:function(){b=!0},timeUpdate:function(){},setRtspOver:function(){!0},audioPlayBegin:function(){},audioPlayEnd:function(){}},w=new x};var r=n(14)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(14);e.default=function(){var t=null,e=null,n=null,i=null,o=!1,a=null,s={audio:!0,video:!1},u=null;function c(){}return c.prototype={init:function(){if(void 0===t||null===t)try{window.AudioContext=window.AudioContext||window.webkitAudioContext||window.mozAudioContext||window.oAudioContext||window.msAudioContext,(t=new AudioContext).onstatechange=function(){r.debug.info("Audio Context State changed :: "+t.state)}}catch(t){return void r.debug.error("Web Audio API is not supported in this web browser! : "+t)}},initAudioOut:function(){if(null!==e&&null!==n||(e=t.createGain(),(n=t.createScriptProcessor(4096,1,1)).onaudioprocess=function(t){if(null!==a){var e=t.inputBuffer.getChannelData(0);null!==u&&!0===o&&u(e)}},e.connect(n),n.connect(t.destination),i=t.sampleRate,e.gain.value=1),void 0===navigator.mediaDevices&&(navigator.mediaDevices={}),void 0===navigator.mediaDevices.getUserMedia&&(navigator.mediaDevices.getUserMedia=function(t,e,n){var r=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia;return r?new Promise(function(e,n){r.call(navigator,t,e,n)}):(n(),Promise.reject(new Error("getUserMedia is not implemented in this browser")))}),navigator.mediaDevices.getUserMedia)return navigator.mediaDevices.getUserMedia(s).then(function(n){a=n,t.createMediaStreamSource(n).connect(e)}).catch(function(t){r.debug.error(t)}),o=!0,i;r.debug.error("Cannot open local media stream! :: navigator.mediaDevices.getUserMedia is not defined!")},controlVolumnOut:function(t){var n=t/20*2;e.gain.value=n<=0?0:n>=10?10:n},stopAudioOut:function(){if(null!==a&&o)try{for(var t=a.getAudioTracks(),e=0,n=t.length;e>>1,n.prototype.h>>>1)},length:function(){return n.prototype.w*n.prototype.h}},new n(t,e)}e.default=function(){var t=null,e=null,n=null,r=!0,u=0,c=new Map,l=new Map,f=this,h=null;function d(){}function p(r){var i=r.data;switch(i.type){case"WorkerReady":e&&e();break;case"canvasRender":!function(e,r){if(null!=e){if(null===n){var i=new s(r.ylen,r.height);n=new a.YUVWebGLCanvas(t,i)}var o=Math.floor((v(r.time).getTime()-u)/1e3),l={frameData:e,option:r};c.size>600&&c.clear(),!1===c.has(o)&&c.set(o,l)}}(i.data,i.option);break;default:o.debug.log("workerManager::videoWorker unknown data = "+i.data)}}function v(t){var e=2e3+(t>>26),n=t>>22&15,r=t>>17&31,i=t>>12&31,o=t>>6&63,a=63&t,s=new Date;return s.setFullYear(e,n-1,r),s.setHours(i,o,a,0),s}return d.prototype={init:function(e,n){t=e,f.channel=n,(h=new i.default).onmessage=p},parseRTPData:function(t,e){!0===r&&(u=v(u=(e[19]<<24)+(e[18]<<16)+(e[17]<<8)+e[16]>>>0).getTime()),r=!1;var n=e[4],i={type:"MediaData",data:{rtspInterleave:t,payload:e},info:null,channel:f.channel};253!=n&&254!=n&&252!=n&&251!=n||h.postMessage(i)},setCallback:function(t,n){switch(t){case"WorkerReady":e=n;break;case"FileOver":this.fileOverCallback=n;break;default:o.debug.log(t),o.debug.log("workerManager::setCallback() : type is unknown")}},terminate:function(){h&&(h.terminate(),h=null),c&&(c=null),l&&(l=null)},play:function(){},initStartTime:function(){},pause:function(){},setLiveMode:function(){},setPlayMode:function(){},setFPS:function(){},sendSdpInfo:function(){},postRtspOver:function(){},gotoSecond:function(e,r){if(e=(e=e<0?0:e)>r?r:e,!0===c.has(e)){var i=c.get(e);return n.drawCanvas(i.frameData,i.option),{pngData:t.toDataURL(),option:i.option}}return!1},gotoFrame:function(e){if(!0===l.has(e)){var r=l.get(e);return n.drawCanvas(r.frameData,r.option),{pngData:t.toDataURL(),option:r.option}}return!1},checkLeftSize:function(t,e,n,r){var i=!1;if("next"===e)for(var o=1;o<=r;o++){var a=t+o>n?n:t+o;if(!1===(i=c.has(a)))break}else if("pre"===e)for(o=1;o<=r&&(a=t-o<1?1:t-o,!1!==(i=c.has(a)));o++);return i},clearMap:function(){c.clear(),l.clear()}},new d}},function(t,e){t.exports=function(){return new Worker("/module/videoWorkerTrain.worker.js")}},function(t,e,n){"use strict";var r=n(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(14),o=r(n(75)),a=r(n(193)),s=r(n(77)),u=r(n(106)),c=r(n(107)),l=r(n(110)),f=n(38).SM3;e.default=function(t){var e=t.wsURL,n=t.rtspURL,r=null,h=t.isTalkService,d=t.speed,p=t.realm,v=6,g=null,m=null,y=0,b=0,w='Authorization: WSSE profile="UsernameToken"',S=-1!==n.search("&srctype=raw"),_=new s.default,E=t.RTSP_STATE,x=t.workerManager,T=new u.default,A=!1,k=new Function,C=null,D=[],B=0,R=function(){},I={},M="UnAuthorized",O={},P=null,F=null,U=null,j=!0,L={},N="",z=!1,V=0,H=!1,q={PLAY:0,PAUSE:1,KEEP_LIVE:2,STOP:3},W="";if(t.isRecord){["init","sendSdpInfo","parseRTPData","setCallback"].forEach(function(t,e){x[t]=function(){}});var G=1048576;T.postMessage({type:"init",options:{singleSize:500*G,nameOptions:t.nameOptions||{fileName:t.fileName,namedBy:"date",nameFormat:["ymd_his"]},limitOptions:{limitBy:"count",count:10}}}),T.onMessage=function(t){switch(t.type){case"pendding":k(t);break;case"download":tt(t.data.name,t.data.buffer);break;case"closed":k(t),A=!1}}}t.speed>1&&t.isDownLoad&&(["parseRTPData"].forEach(function(t,e){x[t]=function(){}}),G=1048576,T.postMessage({type:"init",options:{singleSize:500*G,nameOptions:{fileName:t.fileName,namedBy:"date",nameFormat:["ymd_his"]},limitBy:"count",count:10}}),T.onMessage=function(t){switch(t.type){case"pendding":k(t);break;case"download":tt(t.data.name,t.data.buffer);break;case"closed":k(t),A=!1}},A=!0);function Y(){}function X(t,r){var s="",u="",c=(0,o.default)(L.username+":"+p+":"+L.password),l=e.split("://")[1].split("/")[0].split(":")[0]+":8086";switch(t){case 0:var f=function(){for(var t=function(){var t=window.crypto||window.msCrypto,e=256*Math.random()|0;return t&&(e=t.getRandomValues(new Uint32Array(1))[0]/4294967296*256|0),e},e=[],n=0;n<32;n++)e.push(String.fromCharCode(t()));return(0,o.default)(e.join(""))}(),v=function(){var t=new Date,e=t.getTimezoneOffset(),n=t.getTime()+60*e*1e3,r=new Date(n),i=r.getFullYear(),o=r.getMonth()+1,a=r.getDate(),s=r.getHours(),u=r.getMinutes(),c=r.getSeconds(),l=function(t){return t<10?"0"+t:t};return i+"-"+l(o)+"-"+l(a)+"T"+l(s)+":"+l(u)+":"+l(c)+"Z"}(),g=function(t){for(var e,n,r,i,o,a,s,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",l=0;l>2,o=(3&e)<<4|n>>4,a=(15&n)<<2|r>>6,s=63&r,isNaN(n)?a=s=64:isNaN(r)&&(s=64),c=c+u.charAt(i)+u.charAt(o)+u.charAt(a)+u.charAt(s);return c}(function(t){var e,n=t.trim(),r="0x"===n.substr(0,2).toLowerCase()?n.substr(2):n,i=r.length;if(i%2!==0)return"";for(var o=[],a=0;a2&&(e.ResponseCode=parseInt(u[1]),e.ResponseMessage=u[2]),e.ResponseCode===E.OK){for(n=1;n0;)if(36!==e[0]){var o=String.fromCharCode.apply(null,e),a=null;if(-1!==o.indexOf("OffLine: File Over")&&(r.fileOver=!0,x.postRtspOver()),-1!==o.indexOf("OffLine: KmsUnavailable"))return void R({errorCode:i.PLAYER_STATE_CODE.KMS_NOT_CONNECTED});if(-1!==o.indexOf("OffLine: CheckChannelAuthFailed"))return void R({errorCode:i.PLAYER_STATE_CODE.CHANNEL_AUTH_FAILED});if(-1!==o.indexOf("OffLine: PasswdUnitFailed"))return void R({errorCode:i.PLAYER_STATE_CODE.PASSWORD_NOT_INITIALIZE});if(-1!==o.indexOf("OffLine: OverFlowMaxConnect"))return void R({errorCode:i.PLAYER_STATE_CODE.MAX_NUMBER_CONNECTION});if(-1!==o.indexOf("OffLine: StreamSourceStartFailed"))return void R({errorCode:i.PLAYER_STATE_CODE.RTSP_NOT_FOUND});!1===H&&-1!==o.indexOf("200 OK")?(a=o.lastIndexOf("\r\n"),H=!0):a=o.search("\r\n\r\n");var s=o.search("HTTP");if(-1===s)return void(e=new Uint8Array);if(-1===a)return void(y=e.length);g=e.subarray(s,a+v),e=e.subarray(a+v),Q(String.fromCharCode.apply(null,g)),y=e.length}else{if("RAW"===D[0].codecName)return void(/.aac/.test(rtspUrl)?x.sendBufferToAudioWorker(e.subarray(v,e.length)):_.setMovieData(e.subarray(v,e.length)));if(!0===j&&P&&P(),j=!1,m=e.subarray(0,v),!((b=m[2]<<24|m[3]<<16|m[4]<<8|m[5])+v<=e.length))return void(y=e.length);var u=e.subarray(v,b+v),c=(u[19]<<24)+(u[18]<<16)+(u[17]<<8)+u[16]>>>0,l=Date.UTC("20"+(c>>>26),(c>>>22&15)-1,c>>>17&31,c>>>12&31,c>>>6&63,63&c)/1e3;l+=(new Date).getTimezoneOffset()/60*3600,U&&U({timestamp:l}),A&&T.postMessage({type:"addBuffer",buffer:u}),x.parseRTPData(m,u),e=e.subarray(b+v),y=e.length}}function J(t){var e={Sessions:[]},n=(-1!==t.search("Private-Type: application/sdp")?t.split("\r\n\r\n")[1]:t).split("\r\n"),r=0,i=!1;for(r=0;r0)switch(o[0]){case"a":var a=o[1].split(":");if(a.length>1){if("control"===a[0]){var s=n[r].search("control:");!0===i?-1!==s&&(e.Sessions[e.Sessions.length-1].ControlURL=n[r].substr(s+8)):-1!==s&&(e.BaseURL=n[r].substr(s+8))}else if("rtpmap"===a[0]){var u=a[1].split(" ");e.Sessions[e.Sessions.length-1].PayloadType=u[0];var c=u[1].split("/");e.Sessions[e.Sessions.length-1].CodecMime=c[0],c.length>1&&(e.Sessions[e.Sessions.length-1].ClockFreq=c[1])}else if("framesize"===a[0]){var l=a[1].split(" ");if(l.length>1){var f=l[1].split("-");e.Sessions[e.Sessions.length-1].Width=f[0],e.Sessions[e.Sessions.length-1].Height=f[1]}}else if("framerate"===a[0])e.Sessions[e.Sessions.length-1].Framerate=a[1];else if("fmtp"===a[0]){var d=n[r].split(" ");if(d.length<2)continue;for(var p=1;p1&&(e.Sessions[e.Sessions.length-1].SPS=y[0],e.Sessions[e.Sessions.length-1].PPS=y[1])}}}}else if("range"===a[0]&&o[2]){var b=o[2].split("-")[1];e.Sessions&&b&&(e.Sessions.RecordRange=b)}}else 1===a.length&&("recvonly"===a[0]?e.Sessions[e.Sessions.length-1].TalkTransType="recvonly":"sendonly"===a[0]&&(e.Sessions[e.Sessions.length-1].TalkTransType="sendonly"));break;case"m":var w=o[1].split(" "),S={};S.Type=w[0],S.Port=w[1],S.Payload=w[3],e.Sessions.push(S),i=!0;break;case"b":if(!0===i){var _=o[1].split(":");e.Sessions[e.Sessions.length-1].Bitrate=_[1]}}}if(!0===h)for(var E=0;E>>4&15)+n.charAt(15&e);return i}function s(t){for(var e,n,r="",i=-1;++i>>6&31,128|63&e):e<=65535?r+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):e<=2097151&&(r+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return r}function u(t){for(var e=Array(t.length>>2),n=0;n>5]|=(255&t.charCodeAt(n/8))<<24-n%32;return e}function c(t){for(var e="",n=0;n<32*t.length;n+=8)e+=String.fromCharCode(t[n>>5]>>>24-n%32&255);return e}function l(t,e){t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var n=Array(80),r=1732584193,i=-271733879,o=-1732584194,a=271733878,s=-1009589776,u=0;u>16)+(e>>16)+(n>>16)<<16|65535&n}function p(t,e){return t<>>32-e}e.default=i},function(t,e,n){"use strict";var r=n(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(55)),o=r(n(1)),a=r(n(2)),s={4000:1,8000:2,11025:3,16000:4,20000:5,22050:6,32000:7,44100:8,48000:9,96000:16,128000:17,192000:18,64000:19};function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,n=[];if(!0===(arguments.length>2?arguments[2]:void 0))for(var r=0;r>>8*(e-1-r)&255;else for(var i=0;i>>8*i&255;return n}e.default=function(){return(0,a.default)(function t(e,n,r){(0,o.default)(this,t),this.RtpInterlevedID=e,this.timestamp=0,this.currTime=null,this.preTime=null,this.VideoCodec=n,this.AudioCodec=r,this.MAXFRAMEINTERVAL=65535,this.rtpDataHeadExtLength=12,this.rtpDataHeadLength=24+this.rtpDataHeadExtLength,this.rtpDataFootLength=8,this.rtpPacketHead=[36,e,0,0,0,0],this.DHAV=[68,72,65,86],this.dhav=[100,104,97,118],this.frameNum=245},[{key:"getRTPPacket",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new ArrayBuffer(0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=0;this.rtpDataHeadExtLength=8+("audio"===e.type?4:e.width>2048||e.height>2048?12:8),this.rtpDataHeadLength=24+this.rtpDataHeadExtLength;var r=new Uint8Array(this.rtpPacketHead.length+this.rtpDataHeadLength+t.byteLength+this.rtpDataFootLength);r.set([36,this.RtpInterlevedID],n),n+=2,r.set(u(this.rtpDataHeadLength+t.byteLength+this.rtpDataFootLength,4,!0),n),n+=4,r.set(this.DHAV,n),n+=4;var o="audio"===e.type?[240]:e.keyframe?[253]:[252];r.set(o,n),n+=1,r.set([0],n),n+=1,r.set([1],n),n+=1,r.set([0],n),n+=1,this.frameNum>65535&&(this.frameNum=240),r.set(u(this.frameNum),n),n+=4,this.frameNum++;var a=u(this.rtpDataHeadLength+t.byteLength+this.rtpDataFootLength);r.set(a,n),n+=4;var c=new Date("2000-01-01 00:00:00").getTime();this.timestamp=1e3*e.timestamp/e.timescale,this.timestamp>this.MAXFRAMEINTERVAL&&(this.timestamp=this.timestamp-this.MAXFRAMEINTERVAL),r.set(u(Math.floor((c+this.timestamp)/1e3)),n),n+=4,r.set(u(this.timestamp,2),n),n+=2,r.set([this.rtpDataHeadExtLength],n),n+=1;var l=function(t,e){for(var n=0,r=e;r2048||e.height>2048?[130,0,0,0].concat((0,i.default)(u(e.width,2)),(0,i.default)(u(e.height,2))):[128,0,e.width/8,e.height/8]:[131,1,26,s[e.timescale]],r.set(f,n),n+=f.length,"video"===e.type&&(r.set([129,0,this.getHexByCodec(this.VideoCodec),50],n),n+=4);var h=function(t,e){for(var n=0,r=0;r0&&0===this.fragments[this.fragments.length-1].duration&&this.fragments.splice(this.fragments.length-2,1)}},{key:"relativeDuration",value:function(){return this.timescale?this.duration/this.timescale:this.duration||0}},{key:"size",value:function(){return[this.video,this.audio].filter(function(t){return null!==t}).reduce(function(t,e){return t+e.size},0)}},{key:"count",value:function(){return this.fragments.length}},{key:"get",value:function(t){var e=this.fragments[t];if(e){var n=new a;return n.timestamp=e.timestamp,n.duration=e.duration,n.samples=e.samples,n.timescale=this.timescale,this.video&&(n.videoExtraData=this.video.extraData),this.audio&&(n.audioExtraData=this.audio.extraData),n}}}])}();t.exports=s},function(t,e,n){"use strict";(function(e){var r=n(0),i=r(n(1)),o=r(n(2)),a=n(30),s=function(){return(0,o.default)(function t(){(0,i.default)(this,t)},null,[{key:"readSamples",value:function(t,n){for(var r=t.samples.map(function(t,e){return{index:e,offset:t.offset,size:t.size,bufferIndex:0,bufferOffset:0}}).sort(function(t,e){return t.offset-e.offset}),i=[],o=null,s=0,u=r.length;s=c.offset+c.size?(c.bufferIndex=i.length-1,c.bufferOffset=c.offset-o.offset):(o={offset:c.offset,size:1048576,buffer:e.allocUnsafe(1048576)},i.push(o),c.bufferIndex=i.length-1,c.bufferOffset=0)}for(var l=a.create(n),f=0,h=i.length;f=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&(D=S[0],O=S[1]);for(var P=new Array(w.length),F=0,U=0,j=E.length;U=b[2*B]&&(B++,R=0)),z.compositionOffset=V,M<_.length&&_[M]===I+1?(z.keyframe=!0,M++):z.keyframe=!1}else z.type="audio";z.size>0&&(P[F++]=z),++C=S[3*D]&&(O=S[3*D+1],D++)),T+=L,I++}F0&&this.movie.addTrack(c)}}}}}}],[{key:"_getEntries",value:function(t,e){var n=[],r=t.getAtom(e);return null!==r&&(n=r.entries),n}}])}();t.exports=m}).call(this,n(3).Buffer)},function(t,e,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(2)),a=r(n(5)),s=r(n(4)),u=r(n(6));function c(t,e,n){return e=(0,s.default)(e),(0,a.default)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],(0,s.default)(t).constructor):e.apply(t,n))}var l=n(52),f=n(31),h=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],d=[0,1,2,3,4,5,6,8],p=function(t){function e(t){var n;return(0,i.default)(this,e),(n=c(this,e)).extraData=t,n.rateIndex=null,n.sampleRate=null,n.channelsIndex=null,n.channels=null,n.profileObjectType=null,n}return(0,u.default)(e,t),(0,o.default)(e,[{key:"type",value:function(){return f.CODEC_AAC}},{key:"parse",value:function(){var t=this.extraData[0],e=this.extraData[1];this.profileObjectType=(248&t)>>3,this.rateIndex=((7&t)<<1)+((128&e)>>7&1),this.sampleRate=h[this.rateIndex]||null,this.channelsIndex=(127&e)>>3,this.channels=d[this.channelsIndex]||null}},{key:"codec",value:function(){return"mp4a.40.".concat(this.profileObjectType)}}])}(l);t.exports=p},function(t,e,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(2)),a=r(n(5)),s=r(n(4)),u=r(n(6));function c(t,e,n){return e=(0,s.default)(e),(0,a.default)(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return function(){return!!t}()}()?Reflect.construct(e,n||[],(0,s.default)(t).constructor):e.apply(t,n))}var l=n(52),f=n(31);var h=function(t){function e(t){var n;return(0,i.default)(this,e),(n=c(this,e)).extraData=t,n._units=[],n._pos=0,n}return(0,u.default)(e,t),(0,o.default)(e,[{key:"type",value:function(){return f.CODEC_H264}},{key:"parse",value:function(){this._pos=5;for(var t=31&this.extraData[this._pos++],e=0;e>5&1),n=this.extraData.readUInt32LE(2).toString(16).replace(/0+$/,""),r=this.extraData[12],i=[],o=6;o<12;o++)i.push(this.extraData[o]);for(var a=0,s=i.length-1;s>0;s--)if(i[s]>0){a=s;break}for(var u=["hvc1",(t>>6)+(31&t),n,"".concat(e?"H":"L").concat(r)],c=0;c<=a;c++)u.push(i[c].toString(16).replace(/0+$/,""));return u.join(".")}},{key:"_readNalUnit",value:function(){var t=this.extraData.readUInt16BE(this._pos);this._pos+=2;var e=this.extraData.slice(this._pos,this._pos+t);return this._pos+=t,e}}])}(l);t.exports=h},function(t,e,n){"use strict";(function(e){var r=n(0),i=r(n(1)),o=r(n(2)),a=n(212),s=n(105),u=n(45),c=n(28),l=n(29),f=n(23),h=n(22),d=n(30),p=n(51),v=function(){return(0,o.default)(function t(e){(0,i.default)(this,t),this.source=e,this.reader=d.create(this.source)},[{key:"parse",value:function(){var t=this;return this._parseHeader(),this._createMovie(),this._parseBody(),[this.videoTrack,this.audioTrack].forEach(function(e){e.extraData&&e.samples.length>0&&(e.sortSamples(),e.ensureDuration(),t.movie.addTrack(e))}),this.movie.ensureDuration(),this.movie}},{key:"_parseHeader",value:function(){var t=e.allocUnsafe(s.HEADER_SIZE);if(this.reader.read(t,0),t.toString("ascii",0,3)!==s.HEADER_PREFIX||t[3]!==s.HEADER_VERSION)throw new Error("FLV header not found");this.pos=t[8]}},{key:"_createMovie",value:function(){this.movie=new u,this.movie.timescale=s.MOVIE_TIMESCALE,this.videoTrack=new l,this.videoTrack.timescale=s.MOVIE_TIMESCALE,this.audioTrack=new c,this.audioTrack.timescale=s.MOVIE_TIMESCALE}},{key:"_parseBody",value:function(){for(var t=e.allocUnsafe(15),n=this.reader.size();this.pos1){var i=r[1];if(void 0!==i.duration){var o=i.duration*s.MOVIE_TIMESCALE;this.movie.duration=o,this.videoTrack.duration=o,this.audioTrack.duration=o}void 0!==i.width&&(this.videoTrack.width=i.width),void 0!==i.height&&(this.videoTrack.height=i.height)}}},{key:"_parseAudio",value:function(t,n){var r=e.allocUnsafe(2);this.reader.read(r,this.pos);var i=r[0],o=1&i,a=(2&i)>>1,u=(12&i)>>2,c=(240&i)>>4;if(s.AUDIO_FORMAT_AAC===c)if(0===r[1]){this.audioTrack.channels=1===o?2:1,this.audioTrack.sampleRate=5512.5*(1<>4,u=r.readUIntBE(2,3);if(s.VIDEO_FORMAT_H264===o)if(0===r[1]){var c=e.allocUnsafe(4+t-5);c.write("avcC"),this.reader.read(c,this.pos+5,4),this.videoTrack.extraData=c,this.videoTrack.codec=p.parse(c).codec()}else{var l=Object.create(h.prototype);l.timestamp=n,l.timescale=this.videoTrack.timescale,l.size=t-5,l.offset=this.pos+5,l.compositionOffset=u,l.keyframe=1===a,00&&f();var y=g+(r*p.compositionOffset/p.timescale<<0),b=this._convertVideoSample(v,p.keyframe),w=this._packVideoPayload(b,p,y,g);t.push(w),n+=w.length}}return o.length>0&&f(),e.concat(t,n)}},{key:"_convertAudioSample",value:function(t){var n=7+t.length,r=e.allocUnsafe(n);return r[0]=255,r[1]=241,r[2]=((this._audioCodecInfo.profileObjectType-1&3)<<6)+(this._audioCodecInfo.rateIndex<<2&60)+(this._audioCodecInfo.channelsIndex>>2&1)&255,r[3]=(3&this._audioCodecInfo.channelsIndex)<<6&255,r[5]=5+((7&n)<<5)&255,n>>=3,r[4]=255&n,n>>=8,r[3]+=3&n,r[6]=4092,t.copy(r,7),r}},{key:"_convertVideoSample",value:function(t,n){var r=6+t.length+(n?this._videoConfig.length:0);this._videoCodecInfo.type()===h.CODEC_H265&&r++;var i=e.allocUnsafe(r),o=0;for(i.writeUInt32BE(1,o),o+=4,this._videoCodecInfo.type()===h.CODEC_H265?(i[o++]=70,i[o++]=1):i[o++]=9,i[o++]=16,n&&(this._videoConfig.copy(i,o),o+=this._videoConfig.length),t.copy(i,o);o>8&255,o[a++]=255&s,o[a++]=128,o[a++]=128,o[a++]=5,a+=t._writeTime(o,a,i,32),n.copy(o,a),this._packPayload(o,r,257,i)}},{key:"_packVideoPayload",value:function(n,r,i,o){var a=e.allocUnsafe(19+n.length),s=0;return a[s++]=0,a[s++]=0,a[s++]=1,a[s++]=224,a[s++]=0,a[s++]=0,a[s++]=128,a[s++]=192,a[s++]=10,s+=t._writeTime(a,s,i,48),s+=t._writeTime(a,s,o,16),n.copy(a,s),this._packPayload(a,r,256,o)}},{key:"_packPayload",value:function(t,n,r,i){var o=Math.ceil(t.length/184);n instanceof c&&184*o-8>8&31),a[h++]=255&r,a[h++]=this._counter.next(n)+(f?48:16),f){var d=0;if(n instanceof c&&0===u&&(d=7),l<183&&(d=Math.max(d,183-l)),a[h++]=d,0>25&255,a[h+2]=i>>17&255,a[h+3]=i>>9&255,a[h+4]=i>>1&255,a[h+5]=(1&i)<<7|126,a[h+6]=0),a[h]=v,h+=p,p>8&15),n[r++]=255&i,n[r++]=0,n[r++]=1,n[r++]=193,n[r++]=0,n[r++]=0,n[r++]=0,n[r++]=1,n[r++]=239,n[r++]=255,n.writeInt32BE(s.checksum(n,r-i+1,r),r),(r+=4)<188&&(n.fill(-1,r,188),r+=188-r),n[r++]=71,n[r++]=79,n[r++]=255,n[r++]=16,n[r++]=0,i=13;var o=0;return this.fragment.hasAudio()&&(i+=5,o=257),this.fragment.hasVideo()&&(i+=5,o=256),n[r++]=2,n[r++]=176+(i>>8&15),n[r++]=255&i,n[r++]=0,n[r++]=1,n[r++]=193,n[r++]=0,n[r++]=0,r+=t._writePid(n,r,o),this.fragment.hasVideo()&&(n[r++]=d[this._videoCodecInfo.type()]||0,r+=t._writePid(n,r,256)),this.fragment.hasAudio()&&(n[r++]=d[this._audioCodecInfo.type()]||0,r+=t._writePid(n,r,257)),n.writeInt32BE(s.checksum(n,r-i+1,r),r),(r+=4)<376&&n.fill(-1,r),n}},{key:"_buildVideoConfig",value:function(){for(var t=this._videoCodecInfo.units(),n=e.allocUnsafe(4*t.length+t.reduce(function(t,e){return t+e.length},0)),r=0,i=0,o=t.length;i>29&14|240&r|1,t[e+1]=n>>22,t[e+2]=n>>14|1,t[e+3]=n>>7,t[e+4]=n<<1|1,5}},{key:"_writePid",value:function(t,e,n){return t[e+0]=224+(n>>8&31),t[e+1]=255&n,t[e+2]=240,t[e+3]=0,4}}])}();t.exports=p}).call(this,n(3).Buffer)},function(t,e,n){"use strict";var r=[0,3072180484,1849393673,3643163405,3698721811,1802224919,2991425050,89147166,3102541862,267438370,3604384303,1640713003,1687882805,3548826929,178294332,3183300408,1893405004,3351695432,518034245,2851951169,2897024351,464573531,3264649046,1972065874,3358988650,2133579886,2785909603,286284391,339746169,2740837501,2054922096,3446038132,3770033048,1470882460,2391646609,965763221,1019225995,2346575503,1392223618,3857081478,1482369982,4014402234,912304567,2172479667,2217553837,858844841,3927354788,1561029792,2423075540,661713872,4267094237,1229681113,1276851911,4211537859,572568782,2503833034,679492338,2677930998,1186707707,4054219263,4109778657,1139539941,2597174504,768638444,2003863092,3228387120,424346685,2924922169,2869330471,471548707,3309109294,1914749226,3483209234,2021674774,2712013851,381406495,334203393,2767604485,2110785544,3402483980,128685944,2964739708,1771050353,3733836917,3688731499,1824543343,3051753826,50057318,3209076574,140205658,3514637655,1717623891,1664129869,3559742025,218831172,3122059328,2546378156,551249064,4194117541,1323361953,1269866943,4239220923,629875638,2459361970,791391626,2553703566,1091579779,4128108167,4083001753,1145071773,2640718736,712764052,3877483744,1342207460,2300983017,1044117485,996913395,2356572663,1431319290,3796759550,1609612486,3907878338,835403471,2262237131,2206644437,882604497,3988601564,1520499672,4007660649,1509805421,2161872480,935743332,848693370,2240530814,1554877043,3954199415,1443693647,3775972683,943097414,2401978178,2323316828,1030144344,3829432917,1398621009,2654674213,690412577,4026572588,1193106984,1112348982,4115716146,745970495,2607503931,651564291,2446054407,1223530250,4293940750,4204794128,1304285204,2493223705,596005405,240529393,3108761333,1617800696,3614469372,3525323746,1698556646,3155929579,184969455,3065718743,27715283,3632309726,1872585946,1791828932,3721454272,83272141,3018547401,2123185853,3381723065,280411316,2813033904,2734373550,367459242,3435182247,2078112163,3328194203,1904080799,2824582290,524711318,437662344,2903241612,1949151361,3274731909,2576386653,781011801,4155181140,1085720912,1172737614,4076556106,735906887,2629881155,561873531,2522891135,1329987698,4166762870,4245390952,1242974060,2469397601,606979429,3914046225,1582717461,2272270616,812505116,893230850,2183159302,1527127307,3961248783,1369871159,3871035955,1067258174,2290143290,2379257636,986535456,3823834413,1425462313,2032576965,3459999937,387787724,2684414664,2773528022,307064018,3412799455,2088169179,3251347939,1993760999,2951750634,418243310,498968048,2862638324,1938171897,3298551549,167622793,3202382221,1741044352,3504077700,3582704794,1654029726,3148889747,212729751,2970661039,101544363,3744150182,1748431778,1835447484,3665524152,56440501,3024156593,1];t.exports={checksum:function(t,e,n){e=e||0,n=n||t.length;for(var i,o,a=-1,s=e;s>8&16777215;return(o=a)>>>24|o>>8&65280|o<<8&16711680|o<<24}}},function(t,e,n){"use strict";var r=n(0),i=r(n(1)),o=r(n(2)),a=n(23),s=n(22),u=function(){return(0,o.default)(function t(){(0,i.default)(this,t),this._audioCounter=0,this._videoCounter=0},[{key:"next",value:function(t){var e=0;return t instanceof a?(e=this._audioCounter,this._audioCounter=this._audioCounter+1&15):t instanceof s&&(e=this._videoCounter,this._videoCounter=this._videoCounter+1&15),e}}])}();t.exports=u},function(t,e){},function(t,e,n){!function(e,r){var i;t.exports=(i=n(7),function(){if("function"==typeof ArrayBuffer){var t=i.lib.WordArray,e=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var n=t.byteLength,r=[],i=0;i>>2]|=t[i]<<24-i%4*8;e.call(this,r,n)}else e.apply(this,arguments)}).prototype=t}}(),i.lib.WordArray)}()},function(t,e,n){!function(e,r){var i;t.exports=(i=n(7),function(){var t=i,e=t.lib.WordArray,n=t.enc;function r(t){return t<<8&4278255360|t>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var n=t.length,r=[],i=0;i>>1]|=t.charCodeAt(i)<<16-i%2*16;return e.create(r,2*n)}},n.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],o=0;o>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(t){for(var n=t.length,i=[],o=0;o>>1]|=r(t.charCodeAt(o)<<16-o%2*16);return e.create(i,2*n)}}}(),i.enc.Utf16)}()},function(t,e,n){!function(e,r){var i;t.exports=(i=n(7),function(){var t=i,e=t.lib.WordArray;t.enc.Base64url={stringify:function(t,e){void 0===e&&(e=!0);var n=t.words,r=t.sigBytes,i=e?this._safe_map:this._map;t.clamp();for(var o=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(n[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|n[a+2>>>2]>>>24-(a+2)%4*8&255,u=0;u<4&&a+.75*u>>6*(3-u)&63));var c=i.charAt(64);if(c)for(;o.length%4;)o.push(c);return o.join("")},parse:function(t,n){void 0===n&&(n=!0);var r=t.length,i=n?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a>>6-a%4*2,c=s|u;i[o>>>2]|=c<<24-o%4*8,o++}return e.create(i,o)}(t,r,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),i.enc.Base64url)}()},function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(7),n(53),function(){var t=o,e=t.lib.WordArray,n=t.algo,r=n.SHA256,i=n.SHA224=r.extend({_doReset:function(){this._hash=new e.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=r._doFinalize.call(this);return t.sigBytes-=4,t}});t.SHA224=r._createHelper(i),t.HmacSHA224=r._createHmacHelper(i)}(),o.SHA224)}()},function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(7),n(32),n(109),function(){var t=o,e=t.x64,n=e.Word,r=e.WordArray,i=t.algo,a=i.SHA512,s=i.SHA384=a.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s)}(),o.SHA384)}()},function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(7),n(32),function(t){var e=o,n=e.lib,r=n.WordArray,i=n.Hasher,a=e.x64.Word,s=e.algo,u=[],c=[],l=[];!function(){for(var t=1,e=0,n=0;n<24;n++){u[t+5*e]=(n+1)*(n+2)/2%64;var r=(2*t+3*e)%5;t=e%5,e=r}for(t=0;t<5;t++)for(e=0;e<5;e++)c[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,f=0,h=0;h<7;h++){if(1&i){var d=(1<>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(C=n[i]).high^=a,C.low^=o}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var d=0,p=0,v=0;v<5;v++)d^=(C=n[h+5*v]).high,p^=C.low;var g=f[h];g.high=d,g.low=p}for(h=0;h<5;h++){var m=f[(h+4)%5],y=f[(h+1)%5],b=y.high,w=y.low;for(d=m.high^(b<<1|w>>>31),p=m.low^(w<<1|b>>>31),v=0;v<5;v++)(C=n[h+5*v]).high^=d,C.low^=p}for(var S=1;S<25;S++){var _=(C=n[S]).high,E=C.low,x=u[S];x<32?(d=_<>>32-x,p=E<>>32-x):(d=E<>>64-x,p=_<>>64-x);var T=f[c[S]];T.high=d,T.low=p}var A=f[0],k=n[0];for(A.high=k.high,A.low=k.low,h=0;h<5;h++)for(v=0;v<5;v++){var C=n[S=h+5*v],D=f[S],B=f[(h+1)%5+5*v],R=f[(h+2)%5+5*v];C.high=D.high^~B.high&R.high,C.low=D.low^~B.low&R.low}C=n[0];var I=l[s];C.high^=I.high,C.low^=I.low}},_doFinalize:function(){var e=this._data,n=e.words,i=(this._nDataBytes,8*e.sigBytes),o=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(t.ceil((i+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,c=[],l=0;l>>24)|4278255360&(h<<24|h>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),c.push(d),c.push(h)}return new r.init(c,s)},clone:function(){for(var t=i.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});e.SHA3=i._createHelper(h),e.HmacSHA3=i._createHmacHelper(h)}(Math),o.SHA3)}()},function(t,e,n){!function(e,r){var i;t.exports=(i=n(7),function(t){var e=i,n=e.lib,r=n.WordArray,o=n.Hasher,a=e.algo,s=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=r.create([0,1518500249,1859775393,2400959708,2840853838]),h=r.create([1352829926,1548603684,1836072691,2053994217,0]),d=a.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,d,w,S,_,E,x,T,A,k,C=this._hash.words,D=f.words,B=h.words,R=s.words,I=u.words,M=c.words,O=l.words;for(_=o=C[0],E=a=C[1],x=d=C[2],T=w=C[3],A=S=C[4],n=0;n<80;n+=1)k=o+t[e+R[n]]|0,k+=n<16?p(a,d,w)+D[0]:n<32?v(a,d,w)+D[1]:n<48?g(a,d,w)+D[2]:n<64?m(a,d,w)+D[3]:y(a,d,w)+D[4],k=(k=b(k|=0,M[n]))+S|0,o=S,S=w,w=b(d,10),d=a,a=k,k=_+t[e+I[n]]|0,k+=n<16?y(E,x,T)+B[0]:n<32?m(E,x,T)+B[1]:n<48?g(E,x,T)+B[2]:n<64?v(E,x,T)+B[3]:p(E,x,T)+B[4],k=(k=b(k|=0,O[n]))+A|0,_=A,A=T,T=b(x,10),x=E,E=k;k=C[1]+d+T|0,C[1]=C[2]+w+A|0,C[2]=C[3]+S+_|0,C[3]=C[4]+o+E|0,C[4]=C[0]+a+x|0,C[0]=k},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,n){return t^e^n}function v(t,e,n){return t&e|~t&n}function g(t,e,n){return(t|~e)^n}function m(t,e,n){return t&n|e&~n}function y(t,e,n){return t^(e|~n)}function b(t,e){return t<>>32-e}e.RIPEMD160=o._createHelper(d),e.HmacRIPEMD160=o._createHmacHelper(d)}(Math),i.RIPEMD160)}()},function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(7),n(53),n(54),function(){var t=o,e=t.lib,n=e.Base,r=e.WordArray,i=t.algo,a=i.SHA256,s=i.HMAC,u=i.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,i=s.create(n.hasher,t),o=r.create(),a=r.create([1]),u=o.words,c=a.words,l=n.keySize,f=n.iterations;u.length>24&255)){var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}var n=t.Encryptor=t.extend({processBlock:function(t,n){var r=this._cipher,i=r.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),function(t){0===(t[0]=e(t[0]))&&(t[1]=e(t[1]))}(a);var s=a.slice(0);r.encryptBlock(s,0);for(var u=0;u>>2]|=i<<24-o%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},o.pad.Ansix923)}()},function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(7),n(10),o.pad.Iso10126={pad:function(t,e){var n=4*e,r=n-t.sigBytes%n;t.concat(o.lib.WordArray.random(r-1)).concat(o.lib.WordArray.create([r<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},o.pad.Iso10126)}()},function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(7),n(10),o.pad.Iso97971={pad:function(t,e){t.concat(o.lib.WordArray.create([2147483648],1)),o.pad.ZeroPadding.pad(t,e)},unpad:function(t){o.pad.ZeroPadding.unpad(t),t.sigBytes--}},o.pad.Iso97971)}()},function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(7),n(10),o.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},o.pad.ZeroPadding)}()},function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(7),n(10),o.pad.NoPadding={pad:function(){},unpad:function(){}},o.pad.NoPadding)}()},function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(7),n(10),function(t){var e=o,n=e.lib.CipherParams,r=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(r)},parse:function(t){var e=r.parse(t);return n.create({ciphertext:e})}}}(),o.format.Hex)}()},function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(7),n(16),n(17),n(15),n(10),function(){var t=o,e=t.lib.BlockCipher,n=t.algo,r=[],i=[],a=[],s=[],u=[],c=[],l=[],f=[],h=[],d=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,o=0;for(e=0;e<256;e++){var p=o^o<<1^o<<2^o<<3^o<<4;p=p>>>8^255&p^99,r[n]=p,i[p]=n;var v=t[n],g=t[v],m=t[g],y=257*t[p]^16843008*p;a[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,u[n]=y<<8|y>>>24,c[n]=y,y=16843009*m^65537*g^257*v^16843008*n,l[p]=y<<24|y>>>8,f[p]=y<<16|y>>>16,h[p]=y<<8|y>>>24,d[p]=y,n?(n=v^t[t[t[m^v]]],o^=t[t[o]]):n=o=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],v=n.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,i=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],a=0;a6&&a%n==4&&(c=r[c>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c]):(c=r[(c=c<<8|c>>>24)>>>24]<<24|r[c>>>16&255]<<16|r[c>>>8&255]<<8|r[255&c],c^=p[a/n|0]<<24),o[a]=o[a-n]^c);for(var s=this._invKeySchedule=[],u=0;u>>24]]^f[r[c>>>16&255]]^h[r[c>>>8&255]]^d[r[255&c]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,u,c,r)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,l,f,h,d,i),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,o,a,s){for(var u=this._nRounds,c=t[e]^n[0],l=t[e+1]^n[1],f=t[e+2]^n[2],h=t[e+3]^n[3],d=4,p=1;p>>24]^i[l>>>16&255]^o[f>>>8&255]^a[255&h]^n[d++],g=r[l>>>24]^i[f>>>16&255]^o[h>>>8&255]^a[255&c]^n[d++],m=r[f>>>24]^i[h>>>16&255]^o[c>>>8&255]^a[255&l]^n[d++],y=r[h>>>24]^i[c>>>16&255]^o[l>>>8&255]^a[255&f]^n[d++];c=v,l=g,f=m,h=y}v=(s[c>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&h])^n[d++],g=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[h>>>8&255]<<8|s[255&c])^n[d++],m=(s[f>>>24]<<24|s[h>>>16&255]<<16|s[c>>>8&255]<<8|s[255&l])^n[d++],y=(s[h>>>24]<<24|s[c>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^n[d++],t[e]=v,t[e+1]=g,t[e+2]=m,t[e+3]=y},keySize:8});t.AES=e._createHelper(v)}(),o.AES)}()},function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(7),n(16),n(17),n(15),n(10),function(){var t=o,e=t.lib,n=e.WordArray,r=e.BlockCipher,i=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=i.DES=r.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var r=a[n]-1;e[n]=t[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var c=i[o]=[],l=u[o];for(n=0;n<24;n++)c[n/6|0]|=e[(s[n]-1+l)%28]<<31-n%6,c[4+(n/6|0)]|=e[28+(s[n+24]-1+l)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var f=this._invSubKeys=[];for(n=0;n<16;n++)f[n]=i[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],h.call(this,4,252645135),h.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),h.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,a=this._rBlock,s=0,u=0;u<8;u++)s|=c[u][((a^i[u])&l[u])>>>0];this._lBlock=a,this._rBlock=o^s}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,h.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<192.");var e=t.slice(0,2),r=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=f.createEncryptor(n.create(e)),this._des2=f.createEncryptor(n.create(r)),this._des3=f.createEncryptor(n.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=r._createHelper(p)}(),o.TripleDES)}()},function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(7),n(16),n(17),n(15),n(10),function(){var t=o,e=t.lib.StreamCipher,n=t.algo,r=n.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var a=i%n,s=e[a>>>2]>>>24-a%4*8&255;o=(o+r[i]+s)%256;var u=r[i];r[i]=r[o],r[o]=u}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var t=this._S,e=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[n],t[n]=o,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}t.RC4=e._createHelper(r);var a=n.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)i.call(this)}});t.RC4Drop=e._createHelper(a)}(),o.RC4)}()},function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(7),n(16),n(17),n(15),n(10),function(){var t=o,e=t.lib.StreamCipher,n=t.algo,r=[],i=[],a=[],s=n.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)u.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var o=e.words,a=o[0],s=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=c>>>16|4294901760&l,h=l<<16|65535&c;for(i[0]^=c,i[1]^=f,i[2]^=l,i[3]^=h,i[4]^=c,i[5]^=f,i[6]^=l,i[7]^=h,n=0;n<4;n++)u.call(this)}},_doProcessBlock:function(t,e){var n=this._X;u.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),t[e+i]^=r[i]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,n=0;n<8;n++)i[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],o=65535&r,s=r>>>16,u=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=u^c}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=e._createHelper(s)}(),o.Rabbit)}()},function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(7),n(16),n(17),n(15),n(10),function(){var t=o,e=t.lib.StreamCipher,n=t.algo,r=[],i=[],a=[],s=n.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(e){var o=e.words,a=o[0],s=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=c>>>16|4294901760&l,h=l<<16|65535&c;for(r[0]^=c,r[1]^=f,r[2]^=l,r[3]^=h,r[4]^=c,r[5]^=f,r[6]^=l,r[7]^=h,i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(t,e){var n=this._X;u.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),t[e+i]^=r[i]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,n=0;n<8;n++)i[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],o=65535&r,s=r>>>16,u=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=u^c}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=e._createHelper(s)}(),o.RabbitLegacy)}()},function(t,e,n){!function(e,r,i){var o;t.exports=(o=n(7),n(16),n(17),n(15),n(10),function(){var t=o,e=t.lib.BlockCipher,n=t.algo;const r=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var s={pbox:[],sbox:[]};function u(t,e){let n=e>>24&255,r=e>>16&255,i=e>>8&255,o=255&e,a=t.sbox[0][n]+t.sbox[1][r];return a^=t.sbox[2][i],a+=t.sbox[3][o]}function c(t,e,n){let i,o=e,a=n;for(let e=0;e=n&&(o=0);let s=0,u=0,l=0;for(let e=0;e1;--e)i=o^=t.pbox[e],o=a=u(t,o)^a,a=i;return i=o,o=a,a=i,a^=t.pbox[1],{left:o^=t.pbox[0],right:a}}(s,t[e],t[e+1]);t[e]=n.left,t[e+1]=n.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=e._createHelper(l)}(),o.Blowfish)}()},function(t,e,n){"use strict";var r=n(0);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(14),o=r(n(77)),a=r(n(106)),s=r(n(107)),u=r(n(110)),c=n(38).SM3;e.default=function(t){var e=t.wsURL,n=t.rtspURL,r=null,l=t.isTalkService,f=6,h=null,d=null,p=0,v=0,g=!1,m=!1,y=t.RTSP_STATE,b=-1!==n.search("&srctype=raw"),w=new o.default,S=t.workerManager,_="",E=[],x=1,T=function(){},A={},k="Options",C=null,D=null,B="",R={},I=null,M=null,O=null,P=null,F=null,U=!0,j={},L="",N=!1,z=0,V=0,H="",q=new a.default,W=!1,G=new Function,Y=!1;if(t.isRecord){["init","sendSdpInfo","parseRTPData","setCallback"].forEach(function(t,e){S[t]=function(){}});var X=1048576;q.postMessage({type:"init",options:{singleSize:500*X,nameOptions:t.nameOptions||{fileName:t.fileName,namedBy:"date",nameFormat:["ymd_his"]},limitOptions:{limitBy:"count",count:10}}}),q.onMessage=function(t){switch(t.type){case"pendding":G(t);break;case"download":rt(t.data.name,t.data.buffer);break;case"closed":G(t),W=!1}}}t.speed>1&&(["parseRTPData"].forEach(function(t,e){S[t]=function(){}}),X=1048576,q.postMessage({type:"init",options:{singleSize:500*X,nameOptions:{namedBy:"date",nameFormat:["ymd_his"]},limitOptions:{limitBy:"count",count:10}}}),q.onMessage=function(t){switch(t.type){case"pendding":G(t);break;case"download":rt(t.data.name,t.data.buffer);break;case"closed":G(t),W=!1}});function Q(){}function Z(t,e,r,o){var a="";switch(t){case"OPTIONS":case"TEARDOWN":case"GET_PARAMETER":case"SET_PARAMETERS":a=t+" "+n+" RTSP/1.0\r\nCSeq: "+x+H+"\r\n"+_+"\r\n";break;case"DESCRIBE":a=t+" "+n+" RTSP/1.0\r\nCSeq: "+x+H,!0===l&&(a+="\r\nRequire: www.onvif.org/ver20/backchannel"),a=a+"\r\n"+_+"\r\n";break;case"SETUP":i.debug.log("trackID: "+e),a=t+" "+n+"/trackID="+e+" RTSP/1.0\r\nCSeq: "+x+H+"\r\n"+_+"Transport: DH/AVP/TCP;unicast;interleaved="+2*e+"-"+(2*e+1)+"\r\n",a+=0!=D?"Session: "+D+"\r\n\r\n":"\r\n";break;case"PLAY":a=t+" "+n+" RTSP/1.0\r\nCSeq: "+x+H+"\r\nSession: "+D+"\r\n",void 0!=o&&0!=o?(a+="Range:".concat(b?"byte":"npt","=").concat(o,"-\r\n"),a+=_+"\r\n"):a+=_+"\r\n";break;case"PAUSE":a=t+" "+n+" RTSP/1.0\r\nCSeq: "+x+H+"\r\nSession: "+D+"\r\n\r\n";break;case"SCALE":a="PLAY "+n+" RTSP/1.0\r\nCSeq: "+x+H+"\r\nSession: "+D+"\r\n",a+="Scale: "+o+"\r\n",a+=_+"\r\n"}return i.debug.log(a),a}function K(t){i.debug.log(t);var e,r=t.search("CSeq: ")+5;if(x=parseInt(t.slice(r,r+10))+1,(e=function(t){var e={},n=0,r=0,i=null,o=null;if(-1!==t.search("Content-Type: application/sdp")){var a=t.split("\r\n\r\n");o=a[0]}else o=t;var s=o.split("\r\n"),u=s[0].split(" ");if(u.length>2&&(e.ResponseCode=parseInt(u[1]),e.ResponseMessage=u[2]),e.ResponseCode===y.OK){for(n=1;n1&&(e.RtpInterlevedID=parseInt(p[0]),e.RtcpInterlevedID=parseInt(p[1]))}}}else if("RTP-Info"===i[0]){i[1]=s[n].substr(9);var v=i[1].split(",");for(e.RTPInfoList=[],r=0;r0;)if(36!==e[0]){var a=String.fromCharCode.apply(null,e),s=null;if(-1!==a.indexOf("302 Moved"))return Y=!0,et(n=a.slice(a.indexOf("rtsp://"),a.indexOf("\r\n\r\n"))),Q.prototype.disconnect(Y),void Q.prototype.connect(Y);-1===a.indexOf("OffLine:File Over")&&-1===a.indexOf("OffLine:Internal Error")||(r.fileOver=!0,S.postRtspOver()),-1!==a.indexOf("OffLine:KmsUnavailable")&&T({errorCode:i.PLAYER_STATE_CODE.KMS_NOT_CONNECTED}),!0===g?(s=a.lastIndexOf("\r\n"),g=!1):s=a.search("\r\n\r\n");var u=a.search("RTSP");if(-1===u)return void(e=new Uint8Array);if(-1===s)return void(p=e.length);h=e.subarray(u,s+f),e=e.subarray(s+f),J(K(String.fromCharCode.apply(null,h))),p=e.length}else{if("RAW"===E[0].codecName)return void(/.aac/.test(n)?S.sendBufferToAudioWorker(e.subarray(f,e.length)):w.setMovieData(e.subarray(f,e.length)));if(!0===U&&I&&I(),U=!1,d=e.subarray(0,f),!((v=d[2]<<24|d[3]<<16|d[4]<<8|d[5])+f<=e.length))return void(p=e.length);var c=e.subarray(f,v+f),l=(c[19]<<24)+(c[18]<<16)+(c[17]<<8)+c[16]>>>0,m=Date.UTC("20"+(l>>>26),(l>>>22&15)-1,l>>>17&31,l>>>12&31,l>>>6&63,63&l)/1e3;m+=(new Date).getTimezoneOffset()/60*3600,O&&O({timestamp:m}),W&&q.postMessage({type:"addBuffer",buffer:c}),S.parseRTPData(d,c),e=e.subarray(v+f),p=e.length}}function et(t){var n="https:"===location.protocol?"wss":"ws";e=t.replace("rtsp",n)}function nt(t){var e={Sessions:[]},n=(-1!==t.search("Content-Type: application/sdp")?t.split("\r\n\r\n")[1]:t).split("\r\n"),r=0,i=!1;for(r=0;r0)switch(o[0]){case"a":var a=o[1].split(":");if(a.length>1){if("control"===a[0]){var s=n[r].search("control:");!0===i?-1!==s&&(e.Sessions[e.Sessions.length-1].ControlURL=n[r].substr(s+8)):-1!==s&&(e.BaseURL=n[r].substr(s+8))}else if("rtpmap"===a[0]){var u=a[1].split(" ");e.Sessions[e.Sessions.length-1].PayloadType=u[0];var c=u[1].split("/");e.Sessions[e.Sessions.length-1].CodecMime=c[0],c.length>1&&(e.Sessions[e.Sessions.length-1].ClockFreq=c[1])}else if("framesize"===a[0]){var l=a[1].split(" ");if(l.length>1){var f=l[1].split("-");e.Sessions[e.Sessions.length-1].Width=f[0],e.Sessions[e.Sessions.length-1].Height=f[1]}}else if("framerate"===a[0])e.Sessions[e.Sessions.length-1].Framerate=a[1];else if("fmtp"===a[0]){var h=n[r].split(" ");if(h.length<2)continue;for(var d=1;d1&&(e.Sessions[e.Sessions.length-1].SPS=m[0],e.Sessions[e.Sessions.length-1].PPS=m[1])}}}}}else 1===a.length&&("recvonly"===a[0]?e.Sessions[e.Sessions.length-1].TalkTransType="recvonly":"sendonly"===a[0]&&(e.Sessions[e.Sessions.length-1].TalkTransType="sendonly"));break;case"m":var y=o[1].split(" "),b={};b.Type=y[0],b.Port=y[1],b.Payload=y[3],e.Sessions.push(b),i=!0;break;case"b":if(!0===i){var w=o[1].split(":");e.Sessions[e.Sessions.length-1].Bitrate=w[1]}}}return e}function rt(t,e){t=(t=(t||Date.now())+"").split(".dav")[0];var n=new Blob([e]),r=document.createElement("a");r.href=URL.createObjectURL(n),r.download=t+".dav",r.click(),setTimeout(function(){URL.revokeObjectURL(r.href),r=null},100),e=null}return Q.prototype={setExtraError:function(t){t&&(H="\r\nExtraError: support")},connect:function(t){r||(t&&(k="Options",g=!1,m=!1),(r=new WebSocket(e)).binaryType="arraybuffer",r.fileOver=!1,r.addEventListener("message",tt,!1),r.onopen=function(){var t="OPTIONS "+n+" RTSP/1.0\r\nCSeq: "+x+H+"\r\n\r\n",e=(0,i.stringToUint8Array)(t);F&&F("WsConnectDone"),r.send(e)},r.onerror=function(t){T({errorCode:i.PLAYER_STATE_CODE.OPEN_WS_ERROR,type:"error",description:"Open WebSocket Error"})},r.onclose=function(t){r&&!r.fileOver&&T({errorCode:i.PLAYER_STATE_CODE.WS_CLOSED,type:"close",description:"WebSocket Closed"})})},disconnect:function(t){J(Z("TEARDOWN",null)),i.pubsub.publish("_clearTime_"),r&&(r.close(),r=null,D=null),!t&&S.terminate(),V&&clearTimeout(V)},controlPlayer:function(t){var e="",n=null;switch(L=t.command,t.command){case"PLAY":if(k="Play",S.play(),null!=t.range){e=Z("PLAY",null,0,t.range);break}e=Z("PLAY",null),L&&S.initStartTime();break;case"PAUSE":if("PAUSE"===k)break;k="PAUSE",e=Z("PAUSE",null),S.pause();break;case"SCALE":e=Z("SCALE",null,0,t.data),S.playbackSpeed(t.data);break;case"TEARDOWN":e=Z("TEARDOWN",null);break;case"audioPlay":if("start"===t.data)k="Play",e=Z("PLAY",null,0,t.range);else if("stop"===t.data)e=Z("TEARDOWN",null);else{if("PAUSE"===k)break;k="PAUSE",e=Z("PAUSE",null)}S.controlAudio(t.command,t.data);break;case"volumn":case"audioSamplingRate":S.controlAudio(t.command,t.data);break;case"playNextFrame":S.getVideoBufferQueueSize()<5&&this.getNextFrameData(1e3),S.playNextFrame();break;case"getCurFrameInfo":n=S.getCurFrameInfo();break;case"getCapture":S.getCapture();break;case"startRecord":(W=t.data)||q.postMessage({type:"close"});break;default:i.debug.log("\u672a\u77e5\u6307\u4ee4: "+t.command)}if(""!=e&&J(e),n)return n},setLiveMode:function(t){S.setLiveMode(t)},setPlayMode:function(t,e){N=t,z=e,S.setPlayMode(t)},setSignalURL:function(t){n=t},setCallback:function(t,e){"GetFirstFrame"===t?I=e:"recordChanged"===t?G=e:"GetTotalTime"===t?M=e:"UpdateTimeStamp"===t?O=e:"GetPlayOptionDone"===t?P=e:"WsConnectDone"===t?F=e:S.setCallback(t,e),"Error"==t&&(T=e)},setUserInfo:function(t,e){j.username=t,j.passWord=e},getNextFrameData:function(t){J(Z("PLAY",null)),setTimeout(function(){J(Z("PAUSE",null))},t)}},w.CodecCallback=function(t){R=t.AudioCodecInfo,E[0].Framerate=t.Framerate,"H264"===R.VideoCodec&&Q.prototype.setLiveMode("video"),S.sendSdpInfo(E,R,t)},w.TrackCallback=function(t){var e=new Uint8Array(t.subarray(6,t.length));S.parseRTPData(t.subarray(0,6),e)},new Q}}]).default;