!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,r){"use strict";var n=r(0);Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserDetect=function(){var e=navigator.userAgent.toLowerCase(),t=navigator.appName,r=null;"Microsoft Internet Explorer"===t||e.indexOf("trident")>-1||e.indexOf("edge/")>-1?(r="ie","Microsoft Internet Explorer"===t?(e=/msie ([0-9]{1,}[\.0-9]{0,})/.exec(e),r+=parseInt(e[1])):e.indexOf("trident")>-1?r+=11:e.indexOf("edge/")>-1&&(r="edge")):e.indexOf("safari")>-1?r=e.indexOf("chrome")>-1?"chrome":"safari":e.indexOf("firefox")>-1&&(r="firefox");return r},t.CommonAudioUtil=function(){var e=[1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384],t=function(e,t,r){var n=0,i=0;for(n=0;n0?r:8191&-r,e,15)-6,o=a+(n>>6&15)-13,u=(0===i?32:a>=0?i>>a:i<<-a)*(n&parseInt("077",8))+48>>4,f=o>=0?u<>-o,(r^n)<0?-f:f};this.g726InitState=function(){var e={},t=0;for(e.pp=new Array(2),e.zp=new Array(6),e.pk=new Array(2),e.dq=new Array(6),e.sr=new Array(2),e.yl=34816,e.yu=544,e.dms=0,e.dml=0,e.ppp=0,t=0;t<2;t++)e.pp[t]=0,e.pk[t]=0,e.sr[t]=32;for(t=0;t<6;t++)e.zp[t]=0,e.dq[t]=32;return e.td=0,e},this.predictorZero=function(e){var t=0,n=0;for(n=r(e.zp[0]>>2,e.dq[0]),t=1;t<6;t++)n+=r(e.zp[t]>>2,e.dq[t]);return n},this.predictorPole=function(e){return r(e.pp[1]>>2,e.sr[1])+r(e.pp[0]>>2,e.sr[0])},this.stepSize=function(e){var t=0,r=0,n=0;return e.ppp>=256?e.yu:(t=e.yl>>6,r=e.yu-t,n=e.ppp>>2,r>0?t+=r*n>>6:r<0&&(t+=r*n+63>>6),t)},this.quantize=function(r,n,i,a){var o=0,u=0,f=0;return o=Math.abs(r),u=t(o>>1,e,15),f=t((u<<7)+(o<<7>>u&127)-(n>>2),i,a),r<0?1+(a<<1)-f:0===f?1+(a<<1):f},this.reconstruct=function(e,t,r){var n=0,i=0;return(n=t+(r>>2))<0?e?-32768:0:(i=128+(127&n)<<7>>14-(n>>7&15),e?i-32768:i)},this.update=function(r,n,i,a,o,u,f,s){var p=0,l=0,_=0,c=0,d=0,m=0,h=0,g=0,y=0,v=0,b=0,x=0,E=0,T=0;if(T=f<0?1:0,l=32767&o,y=s.yl>>15,x=s.yl>>10&31,E=32+x<9?31744:E)+(v>>1)>>1,g=0===s.td?0:l<=b?0:1,s.yu=n+(i-n>>5),s.yu<544?s.yu=544:s.yu>5120&&(s.yu=5120),s.yl+=s.yu+(-s.yl>>6),1===g)s.pp[0]=0,s.pp[1]=0,s.zp[0]=0,s.zp[1]=0,s.zp[2]=0,s.zp[3]=0,s.zp[4]=0,s.zp[5]=0,c=0;else for(m=T^s.pk[0],c=s.pp[1]-(s.pp[1]>>7),0!==f&&((h=m?s.pp[0]:-s.pp[0])<-8191?c-=256:c+=h>8191?255:h>>5,T^s.pk[1]?c<=-12160?c=-12288:c>=12416?c=12288:c-=128:c<=-12416?c=-12288:c>=12160?c=12288:c+=128),s.pp[1]=c,s.pp[0]-=s.pp[0]>>8,0!==f&&(0===m?s.pp[0]+=192:s.pp[0]-=192),d=15360-c,s.pp[0]<-d?s.pp[0]=-d:s.pp[0]>d&&(s.pp[0]=d),p=0;p<6;p++)s.zp[p]-=5===r?s.zp[p]>>9:s.zp[p]>>8,32767&o&&((o^s.dq[p])>=0?s.zp[p]+=128:s.zp[p]-=128);for(p=5;p>0;p--)s.dq[p]=s.dq[p-1];return 0===l?s.dq[0]=o>=0?32:64544:(_=t(l,e,15),s.dq[0]=o>=0?(_<<6)+(l<<6>>_):(_<<6)+(l<<6>>_)-1024),s.sr[1]=s.sr[0],0===u?s.sr[0]=32:u>0?(_=t(u,e,15),s.sr[0]=(_<<6)+(u<<6>>_)):u>-32768?(_=t(l=-u,e,15),s.sr[0]=(_<<6)+(l<<6>>_)-1024):s.sr[0]=64544,s.pk[1]=s.pk[0],s.pk[0]=T,s.td=1===g?0:c<-11776?1:0,s.dms+=a-s.dms>>5,s.dml+=(a<<2)-s.dml>>7,1===g?s.ppp=256:n<1536?s.ppp+=512-s.ppp>>4:1===s.td?s.ppp+=512-s.ppp>>4:Math.abs((s.dms<<2)-s.dml)>=s.dml>>3?s.ppp+=512-s.ppp>>4:s.ppp+=-s.ppp>>4,s}},t.Texture=t.Shader=t.Script=t.Queue=t.Program=void 0,t.VideoBufferList=function(){var e=0,t=0,r=null;function n(){e=360,t=240,r=null,this._length=0,this.head=null,this.tail=null,this.curIdx=0}return n.prototype={push:function(e,n,i,a,o,u){var f=new VideoBufferNode(e,n,i,a,o,u);return this._length>0?(this.tail.next=f,f.previous=this.tail,this.tail=f):(this.head=f,this.tail=f),this._length+=1,null!==r&&this._length>=t&&r(),f},pop:function(){var e=null;return this._length>1&&(e=this.head,this.head=this.head.next,null!==this.head?this.head.previous=null:this.tail=null,this._length-=1),e},setMaxLength:function(t){(e=t)>360?e=360:e<30&&(e=30)},setBUFFERING:function(e){(t=e)>240?t=240:t<6&&(t=6)},setBufferFullCallback:function(e){r=e},searchTimestamp:function(e){var t=this.head,r=this._length,n=1;if(0===r||e<=0||null===t)throw new Error("Failure: non-existent node in this list.");for(;null!==t&&(t.timeStamp.timestamp!==e.timestamp||t.timeStamp.timestamp_usec!==e.timestamp_usec);)t=t.next,n++;return r>>0,s=n.subarray(24+o,n.length-8),p=n.subarray(n.length-8,n.length),l=(p[7],p[6],p[5],p[4],(n[19]<<24)+(n[18]<<16)+(n[17]<<8)+n[16]>>>0),_=[],c=0;c<=s.length;)if(0==s[c])if(0==s[c+1])if(1==s[c+2]){if(_.push(c),5==(31&s[c+=3])||1==(31&s[c]))break}else 0==s[c+2]?c++:c+=3;else c+=2;else c+=1;for(c=0;c<_.length;c++)switch(i=s.subarray(_[c]+3,_[c+1]),31&s[_[c]+3]){default:break;case 1:"P",_[c]-1;break;case 5:"I",_[c]-1;break;case 28:break;case 7:e.parse(i),r=e.getSizeInfo().decodeSize;break;case 8:case 6:case 9:}t!==r&&(this.decoder.free(),t=r,this.decoder.setOutputSize(t)),a.frameData=null,a.frameData=this.decoder.decode(s),null!=a.frameData&&null!=a.frameData.data&&(a.frameData.option.time=l,a.frameData.option.frameNo=u,f("canvasRender",a.frameData.data,a.frameData.option))}},new n};function p(){var e=7,t=7,r=2,n=3,a=4,o=5,u=8,f=16,s=32,p=255,l=0,_=null;function c(){l=0,_=new i.default}function d(r,i){var a=i,o=l+a>>n;return a=l+i&e,r[o]>>t-(a&t)&1}function m(e,t){var r=l>>n,i=8*(r+1)-l;if(i<8)for(var a=0;a<3;a++){var o=e[r+a];o=0==a?o>>i<>8-i|1<=0;o--,a++)i|=d(e,a)<>>0).toString(16);return"00000000".substr(0,8-t.length)+t}function r(e,t,r){return e&t|~e&r}function n(e,t,r){return r&e|~r&t}function a(e,t,r){return e^t^r}function o(e,t,r){return t^(e|~r)}function u(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]}function f(e){for(var t=[],r=0;r>>32-a),h=o}var i=p.length;p.push(128);var f=p.length%64;if(f>56){for(var s=0;s<64-f;s++)p.push(0);f=p.length%64}for(s=0;s<56-f;s++)p.push(0);p=p.concat(function(e){for(var t=[],r=0;r<8;r++)t.push(255&e),e>>>=8;return t}(8*i));var l=1732584193,c=4023233417,d=2562383102,m=271733878,h=0,g=0,y=0,v=0;for(s=0;s=0;f--)o=255&(u=arguments[f]),o<<=8,o|=255&(u>>>=8),o<<=8,o|=255&(u>>>=8),o<<=8,a+=t(o|=u>>>=8);return a}(m,d,c,l).toUpperCase()}()};t.default=function(e){return a.MD5(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){this.map={}};n.prototype={put:function(e,t){this.map[e]=t},get:function(e){return this.map[e]},containsKey:function(e){return e in this.map},containsValue:function(e){for(var t in this.map)if(this.map[t]===e)return!0;return!1},isEmpty:function(e){return 0===this.size()},clear:function(){for(var e in this.map)delete this.map[e]},remove:function(e){delete this.map[e]},keys:function(){var e=new Array;for(var t in this.map)e.push(t);return e},values:function(){var e=new Array;for(var t in this.map)e.push(this.map[t]);return e},size:function(){var e=0;for(var t in this.map)e++;return e}};t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(2);t.default=function(){var e,t,r,i,a,o,u,f,s,p,l,_,c,d,m,h=!1,g=0;function y(){y.prototype.setIsFirstFrame(!1)}return y.prototype={init:function(){n.debug.log("H264 Decoder init")},setOutputSize:function(e){if(a!==2*e){a=2*e;var t=Module._malloc(1),r=new Uint8Array(Module.HEAPU8.buffer,t,1);Module._DECODE_GetFreePort(r.byteOffset),g=r[0],r=null,Module._free(t),Module._DECODE_Init(g),o=Module._malloc(5242880),u=new Uint8Array(Module.HEAPU8.buffer,o,5242880);var n=2*e;f=Module._malloc(n),s=new Uint8Array(Module.HEAPU8.buffer,f,n),p=Module._malloc(4),l=new Uint8Array(Module.HEAPU8.buffer,p,4),_=Module._malloc(40),c=new Uint8Array(Module.HEAPU8.buffer,_,40)}},decode:function(n,a){e=Date.now(),u.set(n),Module._DECODE_InputOneFrame(g,u.byteOffset,n.length,s.byteOffset,l.byteOffset,c.byteOffset),i=c[16]+(c[17]<<8),r=c[18]+(c[19]<<8);var o=i*r*3/2;return m=null,d=null,m=new ArrayBuffer(o),(d=new Uint8Array(m)).set(Module.HEAPU8.subarray(s.byteOffset,s.byteOffset+o)),t=Date.now()-e,y.prototype.isFirstFrame()?i>0&&r>0?(e=Date.now(),{data:d,option:{ylen:i,height:r,beforeDecoding:e},width:i,height:r,codecType:"h264",decodingTime:t,frameType:a}):void 0:(y.prototype.setIsFirstFrame(!0),{firstFrame:!0})},setIsFirstFrame:function(e){h=e},isFirstFrame:function(){return h},free:function(){Module._DECODE_Stop(g),u=null,Module._free(o),s=null,Module._free(f),l=null,Module._free(p),c=null,Module._free(_),m=null,d=null}},new y}}]);