jessibuca-pro-talk-demo.js
88.7 KB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self)["jessibuca-talk"]=t()}(this,function(){"use strict";function e(t,r){const i=s();return(e=function(e,t){return i[e-=188]})(t,r)}const t=e;function s(){const e=["off","push","emit","4924264UpQaoD","30lrtaOj","length","6463656eXQGMu","240cNkvJs","360788taPFfN","72546avSKiV","2618245xbVwNt","apply","572826XaTwWu","once","ctx","194056IwKpUp","keys"];return(s=function(){return e})()}!function(t){const s=e,r=t();for(;;)try{if(541375===parseInt(s(189))/1+parseInt(s(193))/2+parseInt(s(202))/3*(-parseInt(s(196))/4)+parseInt(s(188))/5*(-parseInt(s(190))/6)+-parseInt(s(191))/7+parseInt(s(201))/8+parseInt(s(204))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}}(s);class r{on(t,s,r){const i=e,o=this.e||(this.e={});return(o[t]||(o[t]=[]))[i(199)]({fn:s,ctx:r}),this}[t(194)](t,s,r){const i=this;function o(...n){const a=e;i[a(198)](t,o),s[a(192)](r,n)}return o._=s,this.on(t,o,r)}[t(200)](e,...s){const r=t,i=((this.e||(this.e={}))[e]||[]).slice();for(let e=0;e<i[r(203)];e+=1)i[e].fn[r(192)](i[e][r(195)],s);return this}[t(198)](e,s){const r=t,i=this.e||(this.e={});if(!e)return Object[r(197)](i).forEach(e=>{delete i[e]}),void delete this.e;const o=i[e],n=[];if(o&&s)for(let e=0,t=o.length;e<t;e+=1)o[e].fn!==s&&o[e].fn._!==s&&n.push(o[e]);return n[r(203)]?i[e]=n:delete i[e],this}}const i=E;!function(e){const t=E,s=e();for(;;)try{if(100605===parseInt(t(429))/1*(parseInt(t(497))/2)+-parseInt(t(609))/3*(-parseInt(t(587))/4)+-parseInt(t(431))/5*(-parseInt(t(229))/6)+parseInt(t(320))/7+-parseInt(t(599))/8+-parseInt(t(637))/9+-parseInt(t(450))/10*(-parseInt(t(767))/11))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(m);const o={websocket:1,fetch:2,hls:3,webrtc:4,webTransport:5,aliyunRtc:6,ts:7};i(530),i(239),i(222),i(623),i(636),i(530),i(222),i(685),i(623),i(343),i(766),i(642);const n={player:i(718),playerAudio:i(237),playbackTF:i(598),talk:"talk",playVod:i(345)},a={mp4:i(396),webm:i(765),flv:i(505),mov:"mov"},c={flv:"flv",m7s:i(744),hls:i(426),webrtc:i(239),webTransport:"webTransport",nakedFlow:i(421),fmp4:i(567),mpeg4:i(361),aliyunRtc:i(623),ts:"ts",g711:i(419),pcm:i(411),ps:"ps",dhav:i(213)};i(515),i(756),i(656),i(759),i(198),i(588),i(737),i(433),i(425),i(373);const l={mse:"mse",wcs:i(547),offscreen:i(574),wasm:i(661),simd:i(242),simdFFmpeg:i(312),mt:"mt",webrtc:i(239),hls:"hls",aliyunRtc:"aliyunRtc",browser:i(573)},h={canvas:"canvas",video:i(520)},u={debug:i(633),warn:"warn"},d={normal:i(544),simple:i(393)},p={normal:i(544),small:"small"},f={drop:i(288),accelerate:i(517)};i(486),i(370),i(614);function m(){const e=["playVodMp4NotMoovError","playbackSeek","destroy","blur","video decoder initialization failed","simdDecodeError","aiOcclusionDetectResult","destroyEnd","isHls","保存日志","playbackPrecision","mseSourceOpen","videoElementPlayingFailedForWebrtc","tallWebsocketClosedByError","tempStream","drop","sendWsMessage","outOfMemoryWasm","full","首帧解码超时","websocketClose","webFullscreen","DECODER_ERROR_NOT_SUPPORTED","idle","fiveMin","wcsWidthOrHeightChange","pauseAndNextPlayUseLastFrameShow","webrtcDataChannelOpen","white","webglAlignmentError","audioSplitBuffer","waiting","10min","不支持该分辨率的视频","csrc","streamError","MEDIA_ERR_ABORTED","vertical","talkStreamClose","simdFFmpeg","right-down","open","Failed to send audio packet for decoding","playVodBufferedTime","visibilityChange","初始化worker失败","multiSelected","292915aGKguW","tsError","网络超时重播失败","websocket1006Error","等待音频数据超时","wiperClose","certificate","isFmp4","fullscreenError","Decoder error","recordStart","canvas","audioInfo","mseSourceBufferFull","webcodecsAudioDecodeError","focusFar","1-1","mediaSourceAudioInitTimeout","tenMin","遮挡物检查激活","Unsupported audio format","wasmWidthOrHeightChange","g711a","mp4Vod","webrtcCompleted","playVod","aiImageDetectResult","left-up","webcodecs","FSimd","mseUpdateVideoTimestamp","playback","webrtc-closed","videoSmooth","videoStreamStats","videoSEI","Media failed to decode","HEVC decoding is not supported","电子放大","isTs","mseSourceClose","mpeg4","物品识别激活","inbound-rtp","videoInitedAndNotFirstVideoIFrame","playVodMp4UseSrc","complete","isMulti","jessibuca-pro-mp4-recorder-decoder.js","isFlv","highQuality","left","webrtcChecking","DHav","recordingTimestamp","playVodTimeCache","occlusionDetectActive","iframeIntervalTs","leftDown","点播解码器异常","decoderWorkerInit","mseSourceBufferBusy","visibilityHiddenTimeout","playFailedError","currentPts","isWebrtc","closeEnd","ttfb","MediaSource解码使用canvas渲染失败","hlsM3u8Empty","4-1","multiMousedown","wiperOpen","simple","networkState","streamRate","mp4","decoderWorkerUncaughtError","playVodStats","crashLog","talkStreamStart","sourceended","fetchSuccess","receiver","加载超时重播失败","webcodecsAudioNoDataTimeout","playVodPauseOrResume","isDropping","sourcebuffer-created","物品识别","multiDragleave","pcm","Momibuca","webgl 上下文丢失","stalled","videoRenderSupportScale",'video/mp4; codecs="hvc1.1.6.L120.90"',"mediaSourceAudioNoDataTimeout","mseSourceStartStreaming","g711","apertureFar","nakedFlow","mediaSourceBufferedIsZeroError","start","decoder-pro-audio.js","MPEG-PS","hls","流异常结束","base64","72943cikRyW","TS流包大小异常","4450zECktG","focus","AliyunRtc","mediaSourceAppendBufferError","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAIAAABKoV4MAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAO0lEQVRYhe3NIQEAMAgAsHNLAPp3JMAFDW4wW4FFVZ0l3X237qHX6/V6vV6v1+v1er1er9frP0RmLvYPXx0DlQ6vy9kAAAAASUVORK5CYII=","none","playbackStreamVideoFps","ulaw","playVodFps","AV1","/crypto/","canplay","download","demuxed-track","30min","av1","window","bufferByteLength","connecting","2140umxjtL","点播MP4文件异常","flvBufferData","playVodTime","人脸识别","endstreaming","focusNear","multiDragenter","playbackPreRateChange","playVodWaiting","recordCreateError","playbackNextIFrame","fetchStream","playVodEndedAndReplay","volume","playVodPause","playVodNextIFrame","empty","online","webrtcClosed","global","decoder-pro-audio-player.js","Video Decode Failed","key","webrtc不支持H265","3-1","decoder-pro-old.js","loadstart","resetVideoDecode","webrtcIceCandidateError","stats","remote-inbound-rtp","inView","mediaSourceUseCanvasRenderPlayFailed","Jb%20pro%20%E4%BD%93%E9%AA%8C%E7%BB%93%E6%9D%9F%2C%E8%AF%B7%E5%88%B7%E6%96%B0%E9%A1%B5%E9%9D%A2%E5%86%8D%E6%AC%A1%E4%BD%93%E9%AA%8C(wasm%E5%86%85%E9%83%A8%E4%BC%9A%E6%9A%82%E5%81%9C%E8%A7%A3%E7%A0%81)%EF%BC%8C%E5%A6%82%E9%9C%80%E8%A6%81%E8%B4%AD%E4%B9%B0%E5%95%86%E4%B8%9A%E6%8E%88%E6%9D%83%EF%BC%8C%E5%8F%AF%E4%BB%A5%E8%81%94%E7%B3%BB%E5%BE%AE%E4%BF%A1%EF%BC%9Abosswancheng","webgpu","lowNetwork","fullscreen","hls-level-loaded","track","suspend","zooming","click","aacSequenceHeader","ws1006","codec","decoderWorkerWasmError","2mKQOST","oneHour","Wasm","video decode error","blob","progress","workerEnd","ended","flv","playVodCalcFpsError","play","opus","wasm初始化异常","tsVideoTrackPidList","初始化解码worker超时","playIsNotPauseOrUrlIsNull","webglContextLostError","flvScriptData","FLV","ten-min","accelerate","playFailedAndPaused","talkGetUserMediaSuccess","video","timeUpdate","playVodEnded","videoCodec","multiDragstart","点播FLV文件异常","Invalid NAL unit size","hls264UseOldDemuxer","memoryLog","fullScreenByStart","websocket","MULAW","simdH264DecodeVideoWidthIsTooLarge","播放地址不能为空","性能面板","遮挡物检查","Other","fetchErrorWorker","hlsM3u8Error","tsPacketSizeError","videoWaiting","decoder-pro-hard.js","zoomExpand","decoder-pro-video-only.js","normal","jbprov","videoElementPlayingFailed","wcs","leftUp","jtt","阿里云","不支持硬解码H265","decoder-pro-audio-only.js","cruiseStart","cruiseStop","playbackNextFrame","togglePerformancePanel","widthOrHeightChange","loadingTimeout","playVodMp4UseSrcVideoError","mute","audioResumeState","average","mediaSourceDecoderConfigurationError","startInner","NV12","talkStreamError","fmp4","Decoder failure","buffereos","playVodDuration","multiDrop","video自动渲染失败","browser","offscreen","videoFrame","Webgl 渲染失败","clearBuffer","webcodecsAudioInitTimeout","startstreaming","multiFullscreen","simdDecodeDelayTimeout","warn","isNakedFlow","fullscreen$2","log","mp4Error","4ReXQtC","Webrtc","videoSEISyncPts","webrtcLowFps","playbackPauseOrResume","初始化音频解码器失败","talkStreamInactive","停止录制","remove-buffer","人脸识别激活","webrtcOnConnectionStateChange","playbackTF","1372072TNyFFy","streamDts","fetchError","emptied","mseSourceBufferError","g711u","container","multiMousemove","right","ceil","331803ynVRPP","tsPrivateData","playVodVideoSeekingByMse","resetAudioDecode","sourceopen","JessibucaPro","netBuf","mediaSourceTsIsMaxDiff","delayTimeoutRetryEnd","audioAACSequenceHeader","drawingRectInfo","render","created","self","aliyunRtc","updateConfig","qualitychange","canplaythrough","mseFirstRenderTime","0000000000","recordBlob","pause","networkDelayTimeout","decode","debug","webcodecsH265NotSupport","webcodecsDecodeError","fetch","1291851Rvxrse","loadingTimeoutRetryEnd","rtp","updateForwardMaxRateDecodeIFrame","subtitle-playlist","file","audioChannelError","multiDblSelected","Error Domain=NSOSStatusErrorDomain","viewResizeChange","offline","multiMouseover","Audio Decode Failed","controlSize","playbackEndedAndReplay","widthOrHeightChangeReplayDelayTime","right-up","wcsDecodeError","worklet","HLS","decoder-pro-hard-not-wasm.js","解码失败","websocketOpenTimeout","error","wasm",'video/mp4;codecs="hev1.3.E.L120.90"',"wasmError","flvMetaData","peer-connection","流异常","webrtcDisconnect","loading","sei","playbackRateChange","delta","webcodecsUnsupportedConfigurationError","mseSourceEndStreaming","webrtcOnIceConnectionStateChange","object","Decoding error","image/png","udp","timeupdate","ptz","videoInfo","playVodSeek","audioDecode","mseDecodeError","worker","alaw","streamEnd","播放超时重播失败","MEDIA_ERR_SRC_NOT_SUPPORTED","multiMouseup",'video/mp4;codecs="hev1.2.4.L120.90"',"recordCancel","Unsupported configuration","webrtc-checking","load-start","Cannot call 'decode' on a closed codec","webcodecsDecodeConfigureError","初始化解码器失败","flvDemuxBufferSizeTooLarge","stop","streamVbps","webrtcDataChannelMsg","all","switch-url-success","kBps","left-down","play() failed because the user didn't interact with the document first","media-source","close","audio packet","mediaSourceAudioG711NotSupport","five-min","active","objectDetectActive","Jb%20pro%20%E4%BD%93%E9%AA%8C%E7%BB%93%E6%9D%9F%2C%E8%AF%B7%E5%88%B7%E6%96%B0%E9%A1%B5%E9%9D%A2%E5%86%8D%E6%AC%A1%E4%BD%93%E9%AA%8C%EF%BC%8C%E5%A6%82%E9%9C%80%E8%A6%81%E8%B4%AD%E4%B9%B0%E5%95%86%E4%B8%9A%E6%8E%88%E6%9D%83%EF%BC%8C%E5%8F%AF%E4%BB%A5%E8%81%94%E7%B3%BB%E5%BE%AE%E4%BF%A1%EF%BC%9Abosswancheng","downloadMemoryLog","performance","player","streamAbps","isSpecialPlaybackVod","talkStreamMsg","playToRenderTimes","checkFirstIFrame","playbackStats","resize","isAliyunRtc","closed","性能面板激活","notSupportNewWasm","webrtcError","MULAW(g711u)","hls-manifest-loaded","supportHls265","hlsError",'video/mp4;codecs="hev1.1.6.L120.90"',"playVodRateChange","WebTransport","MEDIA_ERR_DECODE","streamEndInner","jbprovm","buffering","Failed to send video packet for decoding","webrtc-failed","m7s","webgl2","isWebrtcForZLM","memory access out of bounds",'video/mp4; codecs="av01.0.05M.08"',"#FFCC00","ghostWatermarkConfig","audioPayload","paused","multiIndex","mseError","streamStats","M7S","G711 not supported","isWebrtcForOthers","FMP4","playVodCanplay","videoRectContentClick","mseSourceended","playVodEndedInner","3-4","webm","flvVod","3421BczwJZ","talkGetUserMediaTimeout","mseAddSourceBufferError","playVodMp4Error","delayTimeout","red","mseWaitVideoCanplayTimeout","record","stream","webgl","audioNalu","MPEG4","durationchange","image/jpeg","clickInitPlayer","one-hour","请求失败","halfHour","streamSuccess","playbackTimeScroll","ALAW(g711a)","fetchClose","mediaSourceH265NotSupport","fiStop","transport","timeout","dhav","playing","aiObjectDetectorInfo","playbackForwardMaxRateDecodeIFrame","talkFailedAndStop","buffer","解析视频分辨率失败","mseWorkerAddSourceBufferError","init","webTransport",'video/mp4; codecs="avc1.64002A"',"switch-url-failed","watermarkConfig","websocketOpen","websocketStringMsg","webtransportError","834QPLRUd","hlsTsVideoTrackPidList","ratechange","webrtcStreamH265","wasm解码失败","playbackEnd","H264(AVC)","AbortError","playerAudio","MP3","webrtc","volumechange","dynamicWatermarkConfig","simd","seeking","A key frame is required after configure() or flush()","down","videoPayload","remote-outbound-rtp","playbackTimestamp","fogOpen","failedToAsynchronouslyPrepareWasm","faceDetectActive","playVodNextFrame","workerFetch","recordEnd","webrtcConnected","playbackIsPause","half-hour","playVodSeekEnd","load","seeked","AAC","I420","defaultStreamQuality","websocketError","outbound-rtp","streamMessage","mseWidthOrHeightChange","multiMouseout","zoomNarrow","resetDecode","initAudio","replayUseLastFrameShow"];return(m=function(){return e})()}i(441),i(545),i(740);i(435),i(262),i(565);const y={average:i(562),all:"all"};i(757),i(649),i(472),i(533),i(576),i(413),i(551),i(698),i(698),i(698),i(666),i(592),i(324),i(388),i(666),i(551),i(698),i(698),i(658),i(592),i(658),i(658),i(658),i(292),i(572),i(306),i(322),i(203),i(427),i(203),i(203),i(318),i(233),i(219),i(474),i(688),i(404),i(688),i(203),i(511),i(509),i(451),i(525),i(379),i(430);i(718),i(633),i(544),i(476),i(424),i(541),i(657),i(552),i(543),i(368),i(436),i(544),i(636),i(505),i(661),i(396),i(310),i(492),i(301),i(192),i(703);i(216),i(720),i(367),i(733),i(299),i(272),i(652),i(650),i(753),i(369),i(327),i(583),i(281),i(385),i(746),i(758),i(726),i(359),i(750),i(241),i(225),i(263),i(415),i(558),i(365),i(620),i(271),i(705),i(197),i(618),i(523),i(246),i(751),i(663),i(253),i(377),i(407),i(503),i(437),i(341),i(278),i(532),i(581),i(226),i(227),i(386),i(287),i(514),i(493),i(452),i(723),i(627),i(754),i(729),i(250),i(354),i(321),i(610),i(364),i(526),i(221),i(632),i(683),i(624),i(270),i(577),i(612),i(478),i(462),i(289),i(350),i(256),i(555),i(461),i(439),i(252),i(466),i(640),i(275),i(280),i(218),i(601),i(537),i(208),i(402),i(221),i(448),i(636),i(275),i(280),i(218),i(448),i(264),i(227),i(221);const g={fullscreenInner:i(584),fullscreen:i(487),fullscreenEndInner:"fullscreenEndInner",fullScreenByStart:i(529),webFullscreen:"webFullscreen",decoderWorkerInit:i(380),play:i(507),playing:i(214),pause:i(630),mute:"mute",load:i(259),loading:i(668),zooming:i(491),drawingRect:"drawingRect",drawingRectInfo:"drawingRectInfo",videoInfo:"videoInfo",timeUpdate:i(521),audioInfo:i(332),log:i(585),error:"error",kBps:i(705),timeout:i(212),delayTimeout:"delayTimeout",delayTimeoutRetryEnd:i(617),loadingTimeout:i(558),loadingTimeoutRetryEnd:i(638),stats:i(480),performance:i(717),videoSmooth:i(353),faceDetectActive:i(251),objectDetectActive:i(714),occlusionDetectActive:i(376),imageDetectActive:"imageDetectActive",licensePlateDetectActive:"licensePlateDetectActive",record:i(194),recording:"recording",recordingTimestamp:i(374),recordStart:i(330),recordEnd:"recordEnd",recordCreateError:i(460),recordBlob:i(629),recordCancel:i(692),buffer:i(218),videoFrame:i(575),videoSEI:i(355),videoSEISyncPts:"videoSEISyncPts",start:i(423),startInner:i(564),metadata:"metadata",resize:i(725),volumechange:"volumechange",volume:"volume",destroy:i(275),beforeDestroy:"beforeDestroy",streamEnd:i(687),streamRate:i(395),streamAbps:i(719),streamVbps:i(701),streamDts:i(600),streamSuccess:i(205),streamMessage:i(266),streamError:i(308),streamStats:i(755),streamEndInner:i(739),mseSourceOpen:i(284),mseSourceClose:i(360),mseSourceended:i(762),mseSourceStartStreaming:i(418),mseSourceEndStreaming:i(673),mseSourceBufferError:i(603),mseAddSourceBufferError:i(189),mseWorkerAddSourceBufferError:"mseWorkerAddSourceBufferError",mseSourceBufferBusy:i(381),mseSourceBufferFull:"mseSourceBufferFull",videoWaiting:i(540),videoTimeUpdate:"videoTimeUpdate",videoSyncAudio:"videoSyncAudio",playToRenderTimes:i(722),playbackTime:"playbackTime",playbackTimestamp:"playbackTimestamp",playbackTimeScroll:i(206),playbackPrecision:i(283),playbackShowPrecisionChange:"playbackShowPrecisionChange",playbackJustTime:"playbackJustTime",playbackStats:"playbackStats",playbackSeek:"playbackSeek",playbackPause:"playbackPause",playbackPauseOrResume:"playbackPauseOrResume",playbackRateChange:i(670),playbackPreRateChange:i(458),playbackEndInner:"playbackEndInner",playbackEnd:i(234),playbackEndedAndReplay:i(651),playbackNextFrame:"playbackNextFrame",playbackNextIFrame:"playbackNextIFrame",playVodStats:i(398),playVodPause:i(465),playVodPauseOrResume:i(406),playVodRateChange:i(736),playVodTime:i(453),playVodBufferedTime:i(316),playVodTimeCache:i(375),playVodSeek:i(682),playVodSeeking:"playVodSeeking",playVodSeekEnd:"playVodSeekEnd",playVodVideoSeekingByMse:i(611),playVodVideoSeekedByMse:"playVodVideoSeekedByMse",playVodCanplay:i(760),playVodWaiting:i(459),playVodEndedAndReplay:i(463),playVodEndedInner:i(763),playVodEnded:i(522),playVodNextFrame:i(252),playVodNextIFrame:i(466),playVodDuration:i(570),ptz:i(680),streamQualityChange:"streamQualityChange",visibilityChange:i(317),netBuf:i(615),close:i(709),networkDelayTimeout:i(631),togglePerformancePanel:i(556),viewResizeChange:i(646),flvDemuxBufferSizeTooLarge:i(699),talkGetUserMediaSuccess:i(519),talkGetUserMediaFail:"talkGetUserMediaFail",talkGetUserMediaTimeout:i(768),talkStreamStart:i(400),talkStreamOpen:"talkStreamOpen",talkStreamClose:i(311),talkStreamError:i(566),talkStreamInactive:i(593),talkStreamMsg:i(721),webrtcDisconnect:i(667),webrtcFailed:"webrtcFailed",webrtcClosed:i(469),webrtcChecking:i(372),webrtcConnected:i(255),webrtcCompleted:i(344),webrtcOnConnectionStateChange:i(597),webrtcOnIceConnectionStateChange:"webrtcOnIceConnectionStateChange",webrtcLowFps:i(590),webrtcIceCandidate:"webrtcIceCandidate",webrtcDataChannelOpen:i(300),webrtcDataChannelMsg:i(702),crashLog:i(399),focus:i(432),blur:i(276),inView:i(482),visibilityHiddenTimeout:i(382),websocketOpen:i(226),websocketClose:"websocketClose",websocketError:i(264),websocketStringMsg:"websocketStringMsg",aiObjectDetectorInfo:i(215),aiFaceDetectorInfo:"aiFaceDetectorInfo",aiOcclusionDetectResult:i(279),aiImageDetectResult:"aiImageDetectResult",playFailedAndPaused:"playFailedAndPaused",audioResumeState:i(561),webrtcStreamH265:i(232),flvMetaData:i(664),talkFailedAndStop:i(217),removeLoadingBgImage:"removeLoadingBgImage",memoryLog:i(528),downloadMemoryLog:i(716),pressureObserverCpu:"pressureObserverCpu",currentPts:i(384),online:i(468),offline:i(647),networkState:"networkState",clickInitPlayer:i(201),audioSplitBuffer:i(303),tsPrivateData:i(610),videoRectContentClick:i(761),hls264UseOldDemuxer:i(527),hlsTsVideoTrackPidList:i(230),tsVideoTrackPidList:i(510)};i(259),i(681),i(332),i(660),i(705),i(423),i(212),i(558),i(638),i(191),i(617),i(518),i(487),i(294),i(507),i(560),i(480),i(717),i(330),i(254),i(629),i(692),i(374),i(460),i(353),i(491),i(399),i(432),i(382),i(317),i(226),i(293),i(227),i(561),i(631),i(597),i(674),i(702),i(589),i(687),i(664),i(384),i(394),i(464),i(201),i(610),i(619),i(215),i(279),i(346),i(274),i(724),i(248),i(591),i(458),i(670),i(406),i(736),i(453),i(316),i(258);const b={talkStreamClose:g[i(311)],talkStreamError:g.talkStreamError,talkStreamInactive:g[i(593)],talkGetUserMediaTimeout:g[i(768)],talkFailedAndStop:g[i(217)],talkStreamMsg:g[i(721)]};i(259),i(521),i(332),i(705),i(423),i(212),i(558),i(638),i(191),i(617),i(630),i(480),i(722),i(399),i(226),i(293),i(518),i(561);const w={talkStreamError:g[i(566)],talkStreamClose:g[i(311)]},k={playError:i(512),playFailedError:i(383),fetchError:i(601),fetchErrorWorker:i(537),websocketError:"websocketError",websocketOpenTimeout:i(659),webTransportError:i(228),webcodecsH265NotSupport:i(634),webcodecsDecodeError:i(635),webcodecsUnsupportedConfigurationError:i(672),webcodecsDecodeConfigureError:i(697),webcodecsAudioInitTimeout:i(578),webcodecsAudioNoDataTimeout:i(405),webcodecsAudioDecodeError:i(334),mediaSourceH265NotSupport:i(209),mediaSourceAudioG711NotSupport:i(711),mediaSourceAudioInitTimeout:i(337),mediaSourceAudioNoDataTimeout:i(417),mediaSourceDecoderConfigurationError:i(563),mediaSourceFull:g[i(333)],mseSourceBufferError:g[i(603)],mseAddSourceBufferError:g.mseAddSourceBufferError,mseWorkerAddSourceBufferError:g[i(220)],mediaSourceAppendBufferError:i(434),mediaSourceTsIsMaxDiff:i(616),mediaSourceUseCanvasRenderPlayFailed:i(483),mediaSourceBufferedIsZeroError:i(422),wasmDecodeError:"wasmDecodeError",wasmUseVideoRenderError:"wasmUseVideoRenderError",simdH264DecodeVideoWidthIsTooLarge:"simdH264DecodeVideoWidthIsTooLarge",simdDecodeError:i(278),simdDecodeDelayTimeout:i(581),hlsError:i(734),webrtcError:i(730),webrtcClosed:g[i(469)],webrtcIceCandidateError:i(479),webglAlignmentError:i(302),wasmWidthOrHeightChange:i(341),mseWidthOrHeightChange:i(267),wcsWidthOrHeightChange:i(298),widthOrHeightChange:i(557),tallWebsocketClosedByError:i(286),flvDemuxBufferSizeTooLarge:g[i(699)],audioChannelError:i(643),webglContextLostError:i(513),videoElementPlayingFailed:i(546),videoElementPlayingFailedForWebrtc:i(285),decoderWorkerInitError:"decoderWorkerInitError",decoderWorkerWasmError:i(496),decoderWorkerUncaughtError:i(397),videoInfoError:"videoInfoError",streamEnd:g[i(687)],websocket1006Error:i(323),delayTimeout:g[i(191)],loadingTimeout:g.loadingTimeout,networkDelayTimeout:g[i(631)],fullscreenError:i(328),aliyunRtcError:"aliyunRtcError",mseWaitVideoCanplayTimeout:i(193),initDecoderWorkerTimeout:"initDecoderWorkerTimeout",notSupportNewWasm:i(729),outOfMemoryWasm:i(290),failedToAsynchronouslyPrepareWasm:i(250),playVodMp4Error:i(190),playVodMp4NotMoovError:i(273),playVodMp4UseSrcError:"playVodMp4UseSrcError",playVodMp4UseSrcVideoError:i(559),playVodFlvError:"playVodFlvError",playVodMseDecodeVideoError:"playVodMseDecodeVideoError",playVodCalcFpsError:i(506),mp4Error:i(586),tsPacketSizeError:i(539),hlsM3u8Empty:i(389),hlsM3u8Error:i(538),...w};i(601);const S={notConnect:"notConnect",open:i(314),close:"close",error:i(660)};function E(e,t){const s=m();return(E=function(e,t){return s[e-=189]})(e,t)}i(467),i(291),i(443),i(428),i(501),i(443),i(235),i(440),i(198),i(261),i(207),i(731),i(238),i(261),i(531),i(348),i(196),i(745),i(485),i(574),i(426),i(331),i(473),i(671),i(223),i(416),i(735),i(691),i(662),i(748),i(504),i(314),i(727),Math[i(608)](40),i(498),i(338),i(297),i(202),i(257),i(516),i(712),i(445),i(305),i(498),i(204),i(338),i(297),i(607),i(245),i(371),i(347),i(653),i(706),i(313),i(607),i(245),i(548),i(378),i(700),i(210),i(542),i(269),i(420),i(335),i(456),i(553),i(554),i(249),i(392),i(325);const I={g711a:i(342),g711u:i(604),pcm:i(411),opus:i(508)};i(677),i(200),i(613),i(401),i(579),i(455),i(625),i(442),i(304),i(679),i(231),i(414),i(502),i(660),i(626),i(366),i(199),i(602),i(477),i(630),i(507),i(214),i(260),i(243),i(490),i(679),i(240),i(446),i(244),i(696),i(693),i(568),i(676),i(329),i(357),i(236),i(236),i(668),i(214),i(752),i(275);const A={pcma:8,g711a:8,pcmu:0,g711u:0,jpeg:26,h264:96,h265:97,opus:98,aac:99},v={empty:i(467),rtp:"rtp",jtt:i(549)},T={tcp:"tcp",udp:i(678)};i(195),i(351);const C={open:i(314),close:i(709),error:i(660),message:"message"},B={worklet:i(655),script:"script"},_={encType:I[i(342)],packetType:v[i(639)],packetTcpSendType:T.tcp,rtpSsrc:i(628),numberChannels:1,sampleRate:8e3,sampleBitsWidth:16,frameDuration:20,debug:!1,debugLevel:u[i(582)],testMicrophone:!1,saveToTempFile:!1,audioBufferLength:160,engine:B[i(655)],checkGetUserMediaTimeout:!1,getUserMediaTimeout:1e4,audioConstraints:{latency:!0,noiseSuppression:!0,autoGainControl:!0,echoCancellation:!0,sampleRate:48e3,channelCount:1},playAudio:!1,isG711a:!1,isG711u:!1,isPcm:!1,pcmConfig:{sampleRate:8e3,sampleBitsWidth:16},audioBufferDelay:500,jttSimNumber:null,jttChannelNumber:1,openWebsocketHeart:!1,websocketHeartInterval:15,websocketHeartContent:"",websocketOpenTimeout:8,supportLockScreenPlayAudio:!0,intervalUseWorker:!0},M={worklet:"worklet",script:"script",active:i(713)};i(749),i(580),i(644),i(319),i(648),i(268),i(690),i(391),i(606),i(524),i(457),i(410),i(571),i(475),i(390),i(336),i(764),i(605),i(520),i(237),i(636),i(505),i(471),i(732),i(488),i(444),i(387),i(695),i(669),i(595),i(569),i(408),i(224),i(704),i(641),i(660),i(296),i(449),i(741),i(660),i(309),i(738),i(689),i(277),i(295),i(710),i(340),i(707),i(500),i(356),i(645),i(742),i(315),i(747),i(326),i(495),i(307),i(363),i(265),i(665),i(403),i(481),i(247),i(195),i(489),i(211),i(708),i(494),i(684),i(654),i(308),i(438),i(686),i(508);i(694),i(743),i(352),i(621),i(668),i(214),"object"==typeof window&&window[i(447)]===window?window:"object"==typeof self&&self[i(622)]===self?self:typeof global===i(675)&&global[i(470)]===global&&global,i(660),i(594),i(358),i(534),i(728),i(454),i(596),i(409),i(362),i(535),i(339),i(282),i(499),i(349),i(412),i(536),i(550);const F=i(715);i(484);var D="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var L=Object.freeze({__proto__:null,commonjsGlobal:D,commonjsRequire:function(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")},unwrapExports:function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e},createCommonjsModule:function(e,t){return e(t={exports:{}},t.exports),t.exports},getCjsExportFromNamespace:function(e){return e&&e.default||e}}),W=U;function R(){var e=["exit","isEnabled","mozRequestFullScreen","error","12OpVTth","msFullscreenElement","webkitCurrentFullScreenElement","7YsTBZi","change","webkitCancelFullScreen","1159961iDMTGW","mozFullScreenEnabled","60827jfPUGf","1652NfEzSZ","webkitFullscreenEnabled","then","fullscreenerror","mozCancelFullScreen","undefined","documentElement","mozFullScreenElement","exports","catch","length","requestFullscreen","fullscreenEnabled","37970yHemhT","msExitFullscreen","screenfull","webkitfullscreenchange","removeEventListener","MSFullscreenError","webkitfullscreenerror","webkitRequestFullScreen","webkitRequestFullscreen","bind","19TDbSjb","addEventListener","createCommonjsModule","msFullscreenEnabled","webkitFullscreenElement","defineProperties","6EQawjU","msRequestFullscreen","mozfullscreenchange","fullscreenElement","774iCICmp","1897048BnNfOS","object","document","21wtSBBo","fullscreenchange","245144QsNnfj","20114yLOOzr","exitFullscreen","1974685GDXJMa"];return(R=function(){return e})()}function U(e,t){var s=R();return(U=function(e,t){return s[e-=252]})(e,t)}!function(e){for(var t=U,s=e();;)try{if(319048===parseInt(t(284))/1*(parseInt(t(301))/2)+parseInt(t(298))/3*(parseInt(t(300))/4)+-parseInt(t(303))/5*(parseInt(t(290))/6)+-parseInt(t(255))/7*(parseInt(t(295))/8)+parseInt(t(294))/9*(-parseInt(t(274))/10)+-parseInt(t(258))/11*(-parseInt(t(252))/12)+-parseInt(t(260))/13*(-parseInt(t(261))/14))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(R),L[W(286)](function(e){var t,s,r,i,o,n;t=U,s=typeof window!==t(266)&&typeof window[t(297)]!==t(266)?window[t(297)]:{},r=t(296)!==t(266)&&e.exports,i=function(){for(var e,r=t,i=[[r(272),r(302),"fullscreenElement",r(273),r(299),r(264)],[r(282),"webkitExitFullscreen",r(288),r(262),r(277),r(280)],[r(281),r(257),r(254),"webkitCancelFullScreen",r(277),r(280)],[r(306),r(265),r(268),r(259),r(292),"mozfullscreenerror"],[r(291),r(275),r(253),r(287),"MSFullscreenChange",r(279)]],o=0,n=i[r(271)],a={};o<n;o++)if((e=i[o])&&e[1]in s){for(o=0;o<e[r(271)];o++)a[i[0][o]]=e[o];return a}return!1}(),o={change:i[t(299)],error:i[t(264)]},n={request:function(e,t){return new Promise(function(r,o){var n=U,a=function(){var e=U;this.off(e(256),a),r()}[n(283)](this);this.on(n(256),a);var c=(e=e||s[n(267)])[i[n(272)]](t);c instanceof Promise&&c[n(263)](a)[n(270)](o)}.bind(this))},exit:function(){return new Promise(function(e,t){var r=U;if(this.isFullscreen){var o=function(){var t=U;this.off(t(256),o),e()}[r(283)](this);this.on("change",o);var n=s[i[r(302)]]();n instanceof Promise&&n[r(263)](o)[r(270)](t)}else e()}[t(283)](this))},toggle:function(e,s){var r=t;return this.isFullscreen?this[r(304)]():this.request(e,s)},onchange:function(e){this.on("change",e)},onerror:function(e){var s=t;this.on(s(307),e)},on:function(e,r){var i=o[e];i&&s[t(285)](i,r,!1)},off:function(e,r){var i=o[e];i&&s[t(278)](i,r,!1)},raw:i},i?(Object[t(289)](n,{isFullscreen:{get:function(){return Boolean(s[i[t(293)]])}},element:{enumerable:!0,get:function(){return s[i[t(293)]]}},isEnabled:{enumerable:!0,get:function(){return Boolean(s[i[t(273)]])}}}),r?e.exports=n:window[t(276)]=n):r?e[t(269)]={isEnabled:!1}:window.screenfull={isEnabled:!1}})[W(305)];const P=x;function x(e,t){const s=V();return(x=function(e,t){return s[e-=438]})(e,t)}function V(){const e=["readUEG","_buffer","_fillCurrentWord","6HexhlP","6498685wVyxjg","error","15988GIdEbi","ExpGolomb: readBits() bits exceeded max 32bits!","15266416aMxIIr","readSEG","4419592lHRPQq","15GhIhKe","_total_bits","subarray","230lguGVQ","867543xSXpoT","482956nTNJut","readBool","set","min","_skipLeadingZero","_buffer_index","_total_bytes","637803dBLejy","destroy","176MPlbMF","readByte","_current_word","_current_word_bits_left","readBits","buffer"];return(V=function(){return e})()}!function(e){const t=x,s=e();for(;;)try{if(902761===-parseInt(t(457))/1+parseInt(t(458))/2*(parseInt(t(453))/3)+-parseInt(t(452))/4+-parseInt(t(446))/5*(parseInt(t(445))/6)+parseInt(t(448))/7*(-parseInt(t(467))/8)+parseInt(t(465))/9*(parseInt(t(456))/10)+parseInt(t(450))/11)break;s.push(s.shift())}catch(e){s.push(s.shift())}}(V);P(466),P(444),P(440),P(459),P(468),P(462),P(442),P(451);const N=O;!function(e){const t=O,s=e();for(;;)try{if(685560===parseInt(t(378))/1*(parseInt(t(392))/2)+-parseInt(t(360))/3*(parseInt(t(375))/4)+parseInt(t(380))/5+parseInt(t(339))/6*(parseInt(t(356))/7)+-parseInt(t(351))/8+-parseInt(t(398))/9*(parseInt(t(381))/10)+parseInt(t(394))/11*(parseInt(t(395))/12))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(G);function O(e,t){const s=G();return(O=function(e,t){return s[e-=330]})(e,t)}N(363);function G(){const e=["bufoff","channels","firefox","toLowerCase","data_","sampling_frequency","sample_rate","log","sampling_freq_index","mp4a.40.2","push","6MYKYtl","getIncompleteData","unshift","warn","audioMuxVersionA is Not Supported","buffer","readNextAACFrame","frameLengthType = ","length","other_data_present","buflen","Flv: AAC invalid sampling frequency index!","2266160XJaacK","Could not found ADTS syncword until payload end","readByte","current_syncword_offset_","audio_object_type","5924485AatwfC","profile: ","AAC","destroy","529017XsInCe","getLATMValue","more than 2 numLayer Not Supported","read","sampling_index","channel_config","aac","indexOf","ext_object_type","findNextSyncwordOffset","sbr","bufpos","chan_config","eof_flag_","sampleRate: ","8fQlqQj","android","error","1599QzDTTP","subarray","1093115DmcVjg","2612920aaHvzG","readBool","slice","object_type","more than 2 numSubFrames Not Supported","hasIncompleteData","byteLength","iserro","data","mp4a.40.",". Only frameLengthType = 0 Supported","610svCnFp","userAgent","517udSlYC","7692ZuvMBv","set","more than 2 numProgram Not Supported","9fwnLVl","aacEncoderConfigurationRecord","has_last_incomplete_data","allStreamsSameTimeFraming zero is Not Supported","navigator","readBits"];return(G=function(){return e})()}N(369),N(345),N(386),N(340);N(369),N(361),N(345),N(386);function j(e,t){const s=z();return(j=function(e,t){return s[e-=283]})(e,t)}function z(){const e=["18ZksGwr","slice","sps","buffer","data","byteLength","534840rqUnmd","2010168DEdype","setUint32","padStart","error","push","Error writing parameter set: buffer overflow","subarray","2PYvwrO","753444TSijAp","167510CFPTXC","pps","1205ydigjT","2326XDYGBQ","length","2856440wruvoA","set","824UQSfol"];return(z=function(){return e})()}!function(e){const t=j,s=e();for(;;)try{if(127475===parseInt(t(297))/1*(parseInt(t(292))/2)+parseInt(t(293))/3+-parseInt(t(301))/4*(parseInt(t(296))/5)+parseInt(t(302))/6*(-parseInt(t(294))/7)+-parseInt(t(284))/8+-parseInt(t(285))/9+parseInt(t(299))/10)break;s.push(s.shift())}catch(e){s.push(s.shift())}}(z);const H=Y;function q(){}function J(){return Date[Y(343)]()}!function(e){const t=Y,s=e();for(;;)try{if(477066===parseInt(t(314))/1*(parseInt(t(385))/2)+-parseInt(t(191))/3*(parseInt(t(350))/4)+-parseInt(t(439))/5+-parseInt(t(282))/6*(-parseInt(t(412))/7)+-parseInt(t(348))/8+parseInt(t(357))/9*(parseInt(t(134))/10)+-parseInt(t(263))/11*(-parseInt(t(367))/12))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(ee),(()=>{const e=Y;try{if(typeof WebAssembly===e(437)&&"function"==typeof WebAssembly[e(241)]){const t=new(WebAssembly[e(331)])(Uint8Array.of(0,97,115,109,1,0,0,0));if(t instanceof WebAssembly[e(331)])return new(WebAssembly[e(265)])(t)instanceof WebAssembly[e(265)]}}catch(e){}})();H(441);const Q=H(264);H(269),H(441),H(376),H(416);function X(){const e=H,t=window[e(292)][e(453)].toLowerCase();return t&&/iphone|ipad|ipod|ios/[e(175)](t)}function Y(e,t){const s=ee();return(Y=function(e,t){return s[e-=121]})(e,t)}const K=()=>{const e=H,t=window[e(292)][e(453)];return/MicroMessenger/i.test(t)},Z=()=>K()&&function(){const e=H,t=window[e(292)][e(453)].toLowerCase();return/android/i[e(175)](t)}();function $(e){const t=H;const s=e[t(252)]()[Y(328)]().match(/^function\s*\w*\s*\([\w\s,]*\)\s*{([\w\W]*?)}$/)[1],r=new Blob([s],{type:t(483)});return URL[t(280)](r)}function ee(){const e=["transferControlToOffscreen","QHBrowser","createEvent","getContext","h264","VideoDecoder","scrollTop","MouseEvents","px Arial","connect","random","crossOrigin","dataset","opera","resume","Opera","-ms-user-select","file","[object Error]","application/javascript","ALAW","string","If you want to help, upload a sample of this file to","bottom","out of memory","replace","min","putImageData","firefox","MULAW","Anonymous","charCodeAt","toLocaleLowerCase","URL","drawImage","container","B/s","WEBGL_debug_renderer_info","2592250HtDuWt","wheel","onload","length","chrome","unknown","nettype/","isTypeSupported","hev3","font","findLast","failed to asynchronously prepare wasm","split","getDate","getExtension","pointer-events: none !important; display: block !important","call","event","download","href","getTime","clientX","application/mozilla-npqihooquicklogin","getHours","getSeconds","isEnabled","ManagedMediaSource","craNut","TB/s","backgroundColor","round","readAsArrayBuffer","hash","Edge","safari","strokeStyle","div","sequenceHeader","lineWidth","Edg",'video/mp4; codecs="',"test","getParameter","floor","touches","green","VideoEncoder.isConfigSupported() result is not supported","win64","data-","mousedown","kSliceBLA_W_LP","getDay","getMilliseconds","apple","second","vps","image","150903DWkUZG","contain","webkitGetUserMedia","type","showModalDialog","getMinutes","getMonth","onerror","ySpace","width","objectFit","shadowRoot","100%","borderWidth","EB/s","toLowerCase","kSliceBLA_W_RADL","documentElement","0 Bytes","application/asx","document","xSpace","fillStyle","performance","setInt8","visibility","removeAttribute","xxxxxxxxxxxx4xxx","substring","block","[object Exception]","host","canPlayType","endsWith","apply","log","line","memory","-webkit-text-size-adjust","message","revokeObjectURL","fillText","KB/s","fmt ","connection","absolute","destination","MediaSource","-webkit-touch-callout","top","instantiate","body","function","setInt32","fromCharCode","VideoEncoder is not supported","numberOfChannels","AudioData","noteOn","content","atob","toString","[object DOMException]","fullscreenElement","kSliceBLA_N_LP","mousemove","supported","element","byteLength","localhost","clientY","isConfigSupported","4574163vbGpgr",'"12-25-2025"',"Instance","px 宋体","port","copyToChannel",'"development"',"not compiled with thread support","zIndex","height","NaN","push","vendor","right","renderer","PressureObserver","useMSE","createObjectURL","user-select","35508nBTuKt","fontSize","subarray","toFixed","indexOf","keys","RIFF","ArkWeb","WAVE","setAttribute","navigator","setHours","h265","not compiled with thread support, using thread emulation","webm","data:","style","repeat","webgl2","restore","mimeTypes","createImageBitmap","moz-webgl","opacity","f32-planar","slice","hardwareConcurrency","isArray","protocol","pageX","application/vnd.chromium.remoting-viewer","pps","3839rtduOw","forEach","attachShadow","location","createTextNode","children","webkitConnection","webkit-3d","pathname","match","charAt","initEvent","getPropertyValue","sampleRate","trim","text/javascript","xxxx","Module","useSIMD","msGetUserMedia","hostname","isFullscreen","demuxUseWorker","gpu","save","requestVideoFrameCallback","fontFamily","data","getUint8","now","click","stringify","clearRect","QQBrowser","7412240aTqHCV","setUint32","60sWmZhw","isFFmpegSIMD","intel","true","createElement","hev4","keyFrame","9VJpMgR","useMThreading","NetType/other","prototype","kSliceRSV_IRAP_VCL23","100","getUserMedia","playbackRate","origin","scrollLeft","24LbnWJK","nvidia","hasAudio","createBufferSource","{y}-{m}-{d} {h}:{i}:{s}","format","iFrame","hev5","rect",'"delaytime"',"webgl","Bytes","pageY","copyright","msFullscreenElement","touchmove","mseDecodeAudio","experimental-webgl","386IxqedM","application/360softmgrplugin","GB/s","AudioDecoder","sps","borderColor","touchend","Safari","assign","hour","green yuv","substr","parse","hev","360EE","Reserved SBR extensions is not implemented","hev1.1.6.L120.90","useOffscreen","setUint8","undefined","strokeRect","audioWorklet","avc1.","amd","solid","webkitFullscreenElement","YB/s","714zFsvmt","ended","none","then",'"2046-2-1"',"filter","imageSmoothingEnabled","MediaStreamTrackGenerator","quality","kSliceRSV_IRAP_VCL22","join","numberOfFrames","html","360","imageSmoothingQuality","isView","text","version","VideoEncoder.isConfigSupported is not a function","script","wow64","wcsDecodeAudio","canvas","https:","getElementById","object","dingtalk","1386715XnmJzp","getFullYear",'"production"',"createBuffer","status","useWCS","illegal icc","VideoFrame","ActiveXObject","left","max","0 KB/s","hev2","search","userAgent","innerHTML","close","reduce","color","9999999","setUint16","set","appendChild","toDataURL","src"];return(ee=function(){return e})()}function te(e){const t=H;let s="";if(typeof e===t(437))try{s=JSON[t(345)](e),s=JSON[t(397)](s)}catch(t){s=e}else s=e;return s}function se(e){return!0===e||e===H(353)}function re(e){return!0!==e&&e!==H(353)}function ie(){return J()>=Number("2401027200000")}const oe=ne;function ne(e,t){const s=ce();return(ne=function(e,t){return s[e-=193]})(e,t)}!function(e){const t=ne,s=e();for(;;)try{if(849618===parseInt(t(220))/1*(-parseInt(t(218))/2)+parseInt(t(211))/3*(-parseInt(t(222))/4)+-parseInt(t(196))/5*(-parseInt(t(219))/6)+-parseInt(t(223))/7+-parseInt(t(227))/8+parseInt(t(202))/9*(-parseInt(t(216))/10)+parseInt(t(203))/11*(parseInt(t(193))/12))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(ce);class ae{constructor(e){const t=ne,{fromSampleRate:s,toSampleRate:r,channels:i,inputBufferSize:o}=e;if(!s||!r||!i)throw new Error(t(226));this[t(214)]=null,this[t(199)]=s,this[t(201)]=r,this.channels=i||0,this[t(194)]=o,this[t(213)]()}[oe(208)](){const e=oe;this.resampler=null,this.fromSampleRate=null,this[e(201)]=null,this[e(209)]=null,this[e(194)]=null}[oe(213)](){const e=oe;this.fromSampleRate==this[e(201)]?(this[e(214)]=e=>e,this.ratioWeight=1):(this[e(199)]<this.toSampleRate?(this[e(200)](),this.lastWeight=1):(this[e(228)](),this[e(212)]=!1,this[e(206)]=0),this.initializeBuffers(),this[e(224)]=this.fromSampleRate/this[e(201)])}[oe(215)](e){const t=oe;try{return this[t(204)][t(195)](0,e)}catch(s){try{return this[t(204)].length=e,this[t(204)]}catch(s){return this[t(204)][t(225)](0,e)}}}[oe(210)](){const e=oe;this[e(217)]=Math[e(197)](this[e(194)]*this.toSampleRate/this.fromSampleRate/this[e(209)]*1.0000004768371582)+this[e(209)]+this.channels;try{this[e(204)]=new Float32Array(this[e(217)]),this[e(207)]=new Float32Array(this[e(209)])}catch(t){this[e(204)]=[],this[e(207)]=[]}}[oe(200)](){const e=oe;this[e(214)]=t=>{const s=e;let r,i,o,n,a,c,l,h,u,d=t[s(221)],p=this[s(209)];if(d%p!==0)throw new Error(s(198));if(d<=0)return[];for(r=this[s(217)],i=this[s(224)],o=this[s(206)],n=0,a=0,c=0,l=0,h=this.outputBuffer;o<1;o+=i)for(a=o%1,n=1-a,this.lastWeight=o%1,u=0;u<this[s(209)];++u)h[l++]=this[s(207)][u]*n+t[u]*a;for(o-=1,d-=p,c=Math[s(205)](o)*p;l<r&&c<d;){for(a=o%1,n=1-a,u=0;u<this[s(209)];++u)h[l++]=t[c+(u>0?u:0)]*n+t[c+(p+u)]*a;o+=i,c=Math[s(205)](o)*p}for(u=0;u<p;++u)this[s(207)][u]=t[c++];return this[s(215)](l)}}multiTap(){const e=oe;this[e(214)]=t=>{const s=e;let r,i,o,n,a,c,l,h,u,d,p,f=t[s(221)],m=this[s(209)];if(f%m!==0)throw new Error("Buffer was of incorrect sample length.");if(f<=0)return[];for(r=this.outputBufferSize,i=[],o=this[s(224)],n=0,c=0,l=0,h=!this[s(212)],this.tailExists=!1,u=this[s(204)],d=0,p=0,a=0;a<m;++a)i[a]=0;do{if(h)for(n=o,a=0;a<m;++a)i[a]=0;else{for(n=this[s(206)],a=0;a<m;++a)i[a]=this[s(207)][a];h=!0}for(;n>0&&c<f;){if(l=1+c-p,!(n>=l)){for(a=0;a<m;++a)i[a]+=t[c+(a>0?a:0)]*n;p+=n,n=0;break}for(a=0;a<m;++a)i[a]+=t[c++]*l;p=c,n-=l}if(0!==n){for(this.lastWeight=n,a=0;a<m;++a)this[s(207)][a]=i[a];this[s(212)]=!0;break}for(a=0;a<m;++a)u[d++]=i[a]/o}while(c<f&&d<r);return this[s(215)](d)}}resample(e){const t=oe;return this[t(199)]==this.toSampleRate?this[t(224)]=1:(this.fromSampleRate<this[t(201)]?this[t(206)]=1:(this[t(212)]=!1,this[t(206)]=0),this[t(210)](),this[t(224)]=this[t(199)]/this[t(201)]),this[t(214)](e)}}function ce(){const e=["destroy","channels","initializeBuffers","3LXVSkw","tailExists","initialize","resampler","bufferSlice","5838090mRVnwy","outputBufferSize","2oNIamO","6025290HfZFqd","390073iQAHBR","length","5206404tyIWWd","3895843AzJAdX","ratioWeight","slice","Invalid settings specified for the resampler.","3797952FiGtCI","multiTap","478812Kzczfi","inputBufferSize","subarray","5owfTSf","ceil","Buffer was of incorrect sample length.","fromSampleRate","linearInterpolation","toSampleRate","9pNpbCG","869VVsuid","outputBuffer","floor","lastWeight","lastOutput"];return(ce=function(){return e})()}function le(e){const t=he;let s=e[t(118)],r=new Int16Array(s);for(;s--;){let i=Math.max(-1,Math[t(117)](1,e[s]));r[s]=i<0?32768*i:32767*i}return r}function he(e,t){const s=ue();return(he=function(e,t){return s[e-=108]})(e,t)}function ue(){const e=["714308XuQkmc","min","length","651174JclNxq","max","248402xfYbNd","1JLokKO","1291845PssgVG","4EZAvEc","1401873eyMypV","234928OJgvVp","744903qNTGFr"];return(ue=function(){return e})()}!function(e){const t=he,s=e();for(;;)try{if(274676===parseInt(t(110))/1*(parseInt(t(116))/2)+parseInt(t(113))/3*(-parseInt(t(112))/4)+parseInt(t(111))/5+parseInt(t(119))/6+-parseInt(t(109))/7+-parseInt(t(114))/8+parseInt(t(115))/9)break;s.push(s.shift())}catch(e){s.push(s.shift())}}(ue),function(e){const t=fe,s=e();for(;;)try{if(509203===-parseInt(t(189))/1*(parseInt(t(181))/2)+-parseInt(t(175))/3*(-parseInt(t(184))/4)+parseInt(t(182))/5+-parseInt(t(183))/6*(parseInt(t(185))/7)+-parseInt(t(191))/8+-parseInt(t(190))/9*(-parseInt(t(176))/10)+-parseInt(t(179))/11*(-parseInt(t(186))/12))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(we);const de=132,pe=[255,511,1023,2047,4095,8191,16383,32767];function fe(e,t){const s=we();return(fe=function(e,t){return s[e-=173]})(e,t)}function me(e,t,s){for(let r=0;r<s;r++)if(e<=t[r])return r;return s}function ye(e){const t=fe,s=[];return Array[t(174)][t(177)][t(180)](e)[t(173)]((e,t)=>{s[t]=function(e){let t,s,r;return e>=0?t=213:(t=85,(e=-e-1)<0&&(e=32767)),s=me(e,pe,8),s>=8?127^t:(r=s<<4,r|=s<2?e>>4&15:e>>s+3&15,r^t)}(e)}),s}function ge(e){const t=fe,s=[];return Array.prototype[t(177)][t(180)](e)[t(173)]((e,t)=>{s[t]=function(e){let t=0;e<0?(e=de-e,t=127):(e+=de,t=255);let s=me(e,pe,8);return s>=8?127^t:(s<<4|e>>s+3&15)^t}(e)}),s}function be(e){const t=new Int16Array(e[fe(188)]);return e.forEach((e,s)=>{t[s]=function(e){let t=((15&(e=~e))<<3)+de;return t<<=(112&e)>>4,128&e?de-t:t-de}(e)}),t}function we(){const e=["204MyuFMk","MULAW","length","803VqeJHb","9OKepIx","3070016nhHGKQ","forEach","prototype","1617969SrSdAV","5464740HTrCCz","slice","set","335401vnWDNl","call","1046Jaqnwk","1138115ANUHQn","78ADHMJR","4ZrcJTx","279377POlzGr"];return(we=function(){return e})()}function ke(e,t){const s=Se();return(ke=function(e,t){return s[e-=102]})(e,t)}function Se(){const e=["9868DJAMtG","error","[❗❗❗][","log","7522170dasILU","138298ESKruB","1674576JgJeMs","debugUuid","debugLevel","12zJYnxn","2505699oQjqXZ","5089yCvnko","415XOfBQM","_opt","195908hQWFBh","JbPro","warn","3448IoovUa"];return(Se=function(){return e})()}!function(e){const t=ke,s=e();for(;;)try{if(170452===-parseInt(t(116))/1+parseInt(t(107))/2*(-parseInt(t(111))/3)+parseInt(t(102))/4*(parseInt(t(114))/5)+-parseInt(t(108))/6+-parseInt(t(113))/7*(parseInt(t(119))/8)+parseInt(t(112))/9+parseInt(t(106))/10)break;s.push(s.shift())}catch(e){s.push(s.shift())}}(Se);class Ee{constructor(e){const t=ke;this[t(105)]=(s,...r)=>{const i=t;if(e[i(115)][i(110)]==u.debug){const t=e[i(115)][i(109)]?"["+e[i(115)][i(109)]+"]":"";console[i(105)](i(117)+t+"[✅✅✅]["+s+"]",...r)}},this[t(118)]=(s,...r)=>{const i=t;if(e._opt.debugLevel==u.debug||e[i(115)][i(110)]==u[i(118)]){const t=e[i(115)][i(109)]?"["+e._opt[i(109)]+"]":"";console.log(i(117)+t+i(104)+s+"]",...r)}},this[t(103)]=(s,...r)=>{const i=t,o=e._opt[i(109)]?"["+e[i(115)][i(109)]+"]":"";console[i(103)](i(117)+o+"[❌❌❌]["+s+"]",...r)}}}function Ie(){const e=["1515RkdsEE","3084mdNduO","89478iGDhaS","isArray","master","541856TRSFJf","destroys","1426545VEIjOk","removeEventListener","4sOKiMA","416lZmeYS","22RmSvqC","destroy","1369140qizMBU","proxy","161258xqkmpW","addEventListener","debugLog","bind","2400130fqaaPR","map"];return(Ie=function(){return e})()}const Ae=ve;function ve(e,t){const s=Ie();return(ve=function(e,t){return s[e-=377]})(e,t)}!function(e){const t=ve,s=e();for(;;)try{if(305768===parseInt(t(377))/1*(parseInt(t(383))/2)+-parseInt(t(389))/3*(-parseInt(t(390))/4)+parseInt(t(396))/5+parseInt(t(381))/6+parseInt(t(394))/7+parseInt(t(378))/8*(-parseInt(t(391))/9)+parseInt(t(387))/10*(-parseInt(t(379))/11))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(Ie);class Te{constructor(e){const t=ve;this.destroys=[],this.proxy=this[t(382)][t(386)](this),this.master=e}[Ae(380)](){const e=Ae;this.destroys.forEach(e=>e()),this.destroys=[],this.master[e(385)]("Events","destroy"),this[e(393)]=null}proxy(e,t,s,r={}){const i=Ae;if(!e)return;if(Array[i(392)](t))return t[i(388)](t=>this[i(382)](e,t,s,r));e[i(384)](t,s,r);const o=()=>{const o=i;var n;(n=e.removeEventListener)&&typeof n===H(243)&&e[o(397)](t,s,r)};return this[i(395)].push(o),o}}function Ce(){let e=null;const t=()=>{e&&(self.clearInterval(e),e=null)};self.onmessage=function(s){if("start"===s.data.event){const r=s.data.interval||16.6;t(),e=self.setInterval(()=>{self.postMessage({})},r)}"stop"===s.data.event&&t()}}const Be=_e;function _e(e,t){const s=Fe();return(_e=function(e,t){return s[e-=136]})(e,t)}!function(e){const t=_e,s=e();for(;;)try{if(610730===-parseInt(t(150))/1+parseInt(t(147))/2+parseInt(t(153))/3*(-parseInt(t(142))/4)+parseInt(t(139))/5+parseInt(t(158))/6*(-parseInt(t(156))/7)+parseInt(t(152))/8*(-parseInt(t(137))/9)+parseInt(t(138))/10)break;s.push(s.shift())}catch(e){s.push(s.shift())}}(Fe);class Me{constructor(){const e=_e;this[e(143)]=null,this[e(146)]=null,this[e(157)]=null,this.handleFn=null}[Be(149)](){const e=Be;this[e(143)]&&(this[e(143)].terminate(),this[e(143)]=null),this[e(157)]&&(clearTimeout(this.timerByWorkerClearTimeout),this.timerByWorkerClearTimeout=null),this.timerByWorkerUrl&&(URL[e(136)](this[e(146)]),this[e(146)]=null),this.handleFn=null}[Be(141)](e,t){const s=Be;!this[s(143)]&&this[s(144)](t),this[s(143)][s(145)]({event:s(148),interval:t}),this[s(154)]=e}[Be(151)](){const e=Be;this[e(143)]&&this[e(143)][e(145)]({event:e(151)}),this[e(154)]=q}[Be(144)](e){const t=Be,s=$(Ce);this[t(143)]=new Worker(s),this[t(146)]=s,this[t(157)]=setTimeout(()=>{const e=t;window[e(155)][e(136)](this[e(146)]),this.timerByWorkerUrl=null,this[e(157)]=null},1e4),this[t(143)][t(140)]=e=>{this[t(154)]&&this.handleFn()}}}function Fe(){const e=["5210616mhQKsR","revokeObjectURL","313749LqFmBi","27018760HIBWXX","401290yzNWFf","onmessage","interval","493588snbfkY","timerByWorker","_initIntervalWorker","postMessage","timerByWorkerUrl","1341126kWBVYY","start","destroy","903353IriuLQ","stop","104yjgXxu","15sMYobN","handleFn","URL","7WWMtjd","timerByWorkerClearTimeout"];return(Fe=function(){return e})()}const De=Le;function Le(e,t){const s=We();return(Le=function(e,t){return s[e-=460]})(e,t)}function We(){const e=["left","debugLog","sampleBitsWidth","play failed and retry play","worklet","right","absolute","active","_audioElementPlay error","isMute","forEach","TAG_NAME","buffer","catch","disconnect","audioContext","$container","engineType"," and set bufferListLock to true","readyState","supportLockScreenPlayAudio","close","scriptStartTime","AudioTalkLoader","697148FceMaP","postMessage","buffer list lock and buffer list is ","_initProcessScriptNode()","port","parentNode","script","isG711","size","connect","54852fjbMsa","push"," > ","$audio","isG711a","1832VMMYrL","fill","debugError","createBufferSource","oneBufferDuration","onaudioprocess","play failed and add document click event listener","intervalLoopWorker","_fillScriptNodeOutputBuffer","-100%","isG711u","start","canplay","_initIntervalScriptNode() and _opt.intervalUseWorker is true and create intervalLoopWorker","_getAudioChannel","AudioContext","click","ended","destination","772mVUJVQ","audioWorklet","_opt","isPcm","_createAudioContext","player","mediaStreamAudioDestinationNode","24647NqakHJ","duration","_audioElementPlay","script start time ","appendChild","events","destroy","70CsTwoq","_initProcessScriptNode() and bufferList length is ","eventListenList","createGain","currentTime","_isDestroyed","function","696880BfaRrG","isAudioPlaying","volume","audioElementPlayTimeout","style","bufferList","getChannelData","8120VfWqLW","scriptNodeInterval","webkitAudioContext","bind","audio","playbackRate","_bindAudioProxy","value","playPcm","pcmConfig","length","_handleScriptNodeCallback","addEventListener","bufferListLock","_intervalScriptNode","_getAudioElementReadyState","assign","bound","playG711","gain","closeAudio","_audioElementPlay success and volume is ","sampleRate","audioBufferDelay","stream","createMediaStreamDestination","zero","getBufferListDuration","data","_initScriptNode","outputBuffer","_initWorkletScriptNode","createBuffer","_initProcessScriptNode","init","body","_delayPlay","audioElementPlay","_getAutoAudioEngineType","stashBuffer","gainNode","srcObject","_supportAudioWorklet"," and duration is ","_getAudioBufferSizeByType","play","removeEventListener","debugWarn","2003853ECPfaw","125091QAuXmX"," is less than current time ","_initIntervalScriptNode","subarray","set","readyState is 0 and set _delayPlay to true","scriptNode","removeChild","audioBufferSize","audioChannel"];return(We=function(){return e})()}!function(e){const t=Le,s=e();for(;;)try{if(435229===parseInt(t(516))/1+-parseInt(t(461))/2+parseInt(t(571))/3+-parseInt(t(495))/4*(-parseInt(t(523))/5)+parseInt(t(471))/6+-parseInt(t(502))/7*(parseInt(t(476))/8)+-parseInt(t(572))/9*(parseInt(t(509))/10))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(We);class Re{constructor(e){const t=Le;this[t(593)]=t(460),this[t(500)]=e,this.audioContext=this[t(499)](),this[t(599)]=this[t(561)](),this[t(580)]=this[t(567)](),this.audioChannel=this[t(490)](),this[t(562)]=new Float32Array(0),this[t(521)]=[],this[t(474)]=null,this.eventListenList=[],this[t(501)]=null,this.gainNode=this.audioContext[t(512)](),this.gainNode[t(542)][t(530)]=1,this[t(578)]=null,this.bufferListLock=!0,this[t(540)]={_audioElementPlay:this[t(504)][t(526)](this),_intervalScriptNode:this[t(537)][t(526)](this)},this[t(500)][t(497)][t(602)]&&X()&&(this[t(501)]=this[t(597)][t(548)](),this[t(474)]=document.createElement(t(527)),Object[t(539)](this[t(474)][t(520)],{position:t(588),left:t(485),top:t(485)}),e[t(598)]?e[t(598)][t(506)](this[t(474)]):document[t(558)][t(506)](this[t(474)]),this[t(519)]=null,this[t(529)](),this[t(500)][t(583)](this.TAG_NAME,"create audio element")),this[t(604)]=0,this[t(524)]=null,this.intervalLoopWorker=null,this[t(552)](),this[t(514)]=!1,this[t(500)].debugLog(this[t(593)],t(557))}async destroy(){const e=Le;this[e(514)]=!0,this.closeAudio(),this.scriptNodeInterval&&(clearInterval(this[e(524)]),this[e(524)]=null),this[e(519)]&&(clearTimeout(this[e(519)]),this[e(519)]=null),this.eventListenList[e(533)]&&(this[e(511)][e(592)](e=>{e()}),this[e(511)]=[]),this[e(474)]&&(this[e(474)].pause(),this[e(474)][e(564)]=null,this[e(474)].parentNode&&this[e(474)][e(466)][e(579)](this[e(474)]),this[e(474)]=null),this[e(597)]&&(await this[e(597)][e(603)](),this[e(597)]=null),this.gainNode&&(this[e(563)][e(596)](),this[e(563)]=null),this[e(578)]&&(this[e(578)].disconnect(),this[e(578)][e(481)]=null,this[e(578)]=null),this.mediaStreamAudioDestinationNode&&(this[e(501)][e(596)](),this.mediaStreamAudioDestinationNode=null),this[e(483)]&&(this[e(483)][e(508)](),this.intervalLoopWorker=null),this.bound=null,this[e(536)]=!0,this[e(500)][e(583)](this[e(593)],e(508))}[De(529)](){const e=De,{proxy:t}=this.player[e(507)],s=t(this[e(474)],e(488),()=>{const t=e;this[t(500)][t(583)](this[t(593)],t(488)),this._delayPlay&&this[t(504)]()});this.eventListenList[e(472)](s)}[De(560)](){const e=De;if(this[e(474)]){const t=this[e(538)]();if(this[e(500)][e(583)](this[e(593)],"play and readyState: "+t),!(0!==t||K()&&X()))return this[e(500)][e(570)](this[e(593)],e(577)),void(this[e(559)]=!0);this._audioElementPlay()}}[De(504)](){const e=De;this[e(474)]&&this.$audio[e(568)]().then(()=>{const t=e;this[t(559)]=!1,this[t(500)][t(583)](this[t(593)],t(544),this[t(474)][t(518)]),this[t(519)]=setTimeout(()=>{const e=t;this[e(519)]=null,this[e(514)]||!this.isAudioPlaying()&&(this[e(500)][e(570)](this[e(593)],e(585)),this[e(504)]())},100),this.isAudioPlaying()&&(this[t(500)][t(583)](this[t(593)],"play success and remove document click event listener"),document[t(569)](t(492),this[t(540)]._audioElementPlay))})[e(595)](t=>{const s=e;this[s(500)][s(478)](this[s(593)],s(590),t),this[s(500)][s(583)](this.TAG_NAME,s(482)),document[s(535)](s(492),this.bound[s(504)])})}[De(538)](){const e=De;let t=0;return this[e(474)]&&(t=this[e(474)][e(601)]),t}[De(517)](){const e=De;return this[e(474)]&&re(this[e(474)].paused)&&re(this[e(474)][e(493)])&&0!==this[e(474)][e(528)]&&0!==this[e(474)][e(601)]}[De(543)](){const e=De;this[e(578)]&&this.scriptNode.disconnect(this[e(563)]),this[e(563)]&&(this.$audio?this[e(563)][e(596)](this[e(501)]):this.gainNode[e(596)](this[e(597)].destination)),this.clear()}get[De(480)](){const e=De;return this[e(580)]/this.audioContext[e(545)]*1e3}_createAudioContext(){const e=De;let t=48e3;return this.isG711()?t=8e3:this[e(498)]()&&(t=this[e(500)][e(497)][e(532)].sampleRate),this[e(500)][e(583)](this.TAG_NAME,"createAudioContext: "+t),new(window[e(491)]||window[e(525)])({sampleRate:t})}_getAudioChannel(){const e=De;let t=1;return(this.player[e(497)].isG711a||this[e(500)][e(497)][e(486)])&&(t=1),t}[De(561)](){const e=De;let t=M[e(467)];return(()=>{const s=e;t=Z()?M[s(589)]:(X()&&this[s(500)][s(497)][s(602)]||function(){const e=H;return window.location[e(310)]===e(435)||window[e(317)][e(334)]===e(260)}()&&this[s(565)](),M[s(467)])})(),t}_getAudioBufferSizeByType(){const e=De;return this[e(599)]===M.worklet?1024:this[e(599)]===M[e(589)]?4800:(this.engineType,e(467),1024)}_supportAudioWorklet(){const e=De;return this[e(597)]&&this[e(597)][e(496)]&&typeof this[e(597)].audioWorklet.addModule===e(515)}[De(552)](){const e=De;this.engineType===M[e(586)]?this[e(554)]():this[e(599)]===M[e(589)]?this[e(574)]():this[e(599)]===M[e(467)]&&this[e(556)](),this.audioElementPlay()}[De(554)](){const e=De;this[e(500)][e(583)](this[e(593)],"_initWorkletScriptNode()")}_initIntervalScriptNode(){const e=De;this[e(604)]=0;const t=1e3*this[e(580)]/this.audioContext[e(545)];this[e(500)][e(583)](this[e(593)],"_initIntervalScriptNode() and interval time is "+t),this[e(500)][e(497)].intervalUseWorker?(!this.intervalLoopWorker&&(this[e(500)][e(583)](this[e(593)],e(489)),this[e(483)]=new Me),this[e(483)].interval(this.bound[e(537)],t)):this[e(524)]=setInterval(this[e(540)]._intervalScriptNode,t),this[e(474)]?(this[e(563)][e(470)](this[e(501)]),this[e(474)][e(564)]=this[e(501)][e(547)]):this[e(563)][e(470)](this[e(597)][e(494)])}[De(537)](){const e=De;if(0===this[e(521)][e(533)]||this[e(591)]())return;const t=this[e(597)][e(479)](),s=this[e(597)][e(555)](this[e(581)],this.audioBufferSize,this[e(597)][e(545)]);this._handleScriptNodeCallback(s,()=>{const r=e;this.scriptStartTime<this[r(597)].currentTime&&(this[r(500)].debugLog(r(491),r(505)+this[r(604)]+r(573)+this[r(597)][r(513)]),this[r(604)]=this[r(597)][r(513)]),t[r(594)]=s,t[r(470)](this[r(563)]),t[r(487)](this[r(604)]),this[r(604)]+=s[r(503)]})}[De(556)](){const e=De;this[e(500)][e(583)](this.TAG_NAME,e(464));const t=this[e(597)].createScriptProcessor(this.audioBufferSize,0,this[e(581)]);t[e(481)]=t=>{const s=e,r=t[s(553)];this[s(534)](r)},t[e(470)](this[e(563)]),this[e(578)]=t,this[e(474)]?(this[e(563)][e(470)](this[e(501)]),this[e(474)][e(564)]=this[e(501)][e(547)]):this.gainNode[e(470)](this.audioContext.destination)}[De(534)](e,t,s=!1){const r=De;let i;t=t||q,e[r(533)],s&&(i=e,this[r(580)]);const o=this.audioChannel;if(this[r(536)])return s?i[r(465)][r(462)]({message:r(549)}):this[r(484)](e,o),void t();let n=this[r(521)].shift();n&&n[r(469)]>0?(s?i[r(465)].postMessage({message:r(551),buffer:n}):this._fillScriptNodeOutputBuffer(e,o,n),t()):(re(this[r(536)])&&(this.player[r(583)](this[r(593)],r(510)+this.bufferList[r(533)]+r(600)),this[r(536)]=!0),s?i[r(465)][r(462)]({message:r(549)}):this[r(484)](e,o),t())}[De(484)](e,t,s){const r=De;if(1===t){const t=e[r(522)](0);s?0===s[r(469)]?t.fill(0):t[r(576)](s[r(582)]):t[r(477)](0)}else if(2===t){const t=e[r(522)](0),i=e[r(522)](1);s?0===s.size?(t[r(477)](0),i.fill(0)):(t.set(s[r(582)]),i[r(576)](s[r(587)])):(t.fill(0),i[r(477)](0))}}isMute(){const e=De;return 0===this[e(563)][e(542)].value}[De(550)](){const e=De;return this[e(521)][e(533)]*this[e(480)]}clear(){this[De(521)]=[]}[De(568)](e){const t=De;this[t(536)]&&this.getBufferListDuration()>=this[t(500)][t(497)].audioBufferDelay&&(this[t(500)].debugLog(this.TAG_NAME,t(463)+this.bufferList[t(533)]+t(566)+this[t(550)]()+t(473)+this[t(500)][t(497)][t(546)]+" and set lock to false"),this.bufferListLock=!1),this[t(468)]()?this[t(541)](e):this.isPcm()&&this[t(531)](e)}[De(541)](e){const t=De;let s=new Uint8Array(e),r=null;this[t(500)]._opt[t(475)]?r=function(e){const t=fe,s=new Int16Array(e[t(188)]);return e[t(173)]((e,t)=>{s[t]=function(e){let t,s;switch(t=(15&(e^=85))<<4,s=(112&e)>>4,s){case 0:t+=8;break;case 1:t+=264;break;default:t+=264,t<<=s-1}return 128&e?t:-t}(e)}),s}(s):this.player._opt[t(486)]&&(r=be(s)),!(r instanceof Int16Array)&&(r=new Int16Array(r));const i=new Int16Array(r.length+this[t(562)][t(533)]);for(i[t(576)](this[t(562)],0),i[t(576)](r,this[t(562)][t(533)]),this.stashBuffer=i;this[t(562)].length>this[t(580)];){const e=this.stashBuffer[t(575)](0,this[t(580)]),s=new Float32Array(e[t(533)]);for(let r=0;r<e[t(533)];r++)s[r]=e[r]/32768;this[t(521)].push({size:e[t(533)],left:s,right:null}),this.stashBuffer=this[t(562)].subarray(this.audioBufferSize)}console.log(t(521),this.bufferList.length,t(562),this[t(562)].length)}playPcm(e){const t=De;let s=null,r=this[t(500)][t(497)][t(532)];const i=Number(r[t(584)]);32===i?s=function(e){let t=e[he(118)],s=new Float32Array(t);for(;t--;){let r=e[t];s[t]=r>=2147483648?-(4294967296-r)/2147483648:r/2147483647}return s}(new Int32Array(e)):16===i?s=function(e){let t=e[he(118)],s=new Float32Array(t);for(;t--;){let r=e[t];s[t]=r>=32768?-(65536-r)/32768:r/32767}return s}(new Int16Array(e)):8===i&&(s=function(e){let t=e[he(118)],s=new Float32Array(t);for(;t--;){let r=e[t];s[t]=r>=128?-(256-r)/128:r/127}return s}(new Int8Array(e)));const o=new Float32Array(s[t(533)]+this[t(562)][t(533)]);for(o[t(576)](this.stashBuffer,0),o[t(576)](s,this[t(562)][t(533)]),this[t(562)]=o;this[t(562)][t(533)]>this[t(580)];){const e=this[t(562)][t(575)](0,this[t(580)]);this.bufferList.push({size:e[t(533)],left:e,right:null}),this[t(562)]=this[t(562)][t(575)](this[t(580)])}}isG711(){const e=De;return this.player[e(497)][e(475)]||this.player._opt[e(486)]}[De(498)](){const e=De;return this[e(500)][e(497)][e(498)]}}function Ue(e,t){const s=Pe();return(Ue=function(e,t){return s[e-=494]})(e,t)}function Pe(){const e=["reduce","replace","56BqMzHe","641036JxzyeK","error","670aYVfyY","343766VAcEwV","65616hwnmvs","set","2526534rpkeEI","padStart","210XgNcdk","byteLength","hexStringToUint8Array: invalid hexString length, must be even and bexString length is: ","3535xjLCbk","28787JRmJqx","40wdqEQk","length","substr","4689yBeNMJ","toString"];return(Pe=function(){return e})()}function xe(){class e extends AudioWorkletProcessor{constructor(e){super(),this._cursor=0,this._bufferSize=e.processorOptions.bufferSize,this._buffer=new Float32Array(this._bufferSize)}process(e,t,s){if(!e.length||!e[0].length)return!0;for(let t=0;t<e[0][0].length;t++)this._cursor+=1,this._cursor===this._bufferSize&&(this._cursor=0,this.port.postMessage({eventType:"data",buffer:this._buffer})),this._buffer[this._cursor]=e[0][0][t];return!0}}registerProcessor("talk-processor",e)}!function(e){const t=Ue,s=e();for(;;)try{if(269903===-parseInt(t(512))/1+parseInt(t(511))/2*(parseInt(t(504))/3)+-parseInt(t(509))/4+-parseInt(t(499))/5*(-parseInt(t(496))/6)+parseInt(t(508))/7*(-parseInt(t(513))/8)+parseInt(t(494))/9+parseInt(t(501))/10*(parseInt(t(500))/11))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(Pe);const Ve=Oe;function Ne(){const e=["error","_handleStreamInactive","70gCyZNt","rtp","addRtpToBuffer","socket error and requestAbort is true, so return","getUserMedia fail","talkGetUserMediaFail","calcAudioBufferLength","msGetUserMedia","stop heart interval"," only support sampleRate 8000 and sampleBitsWidth 16","resampler","_onaudioprocess","value",".pcm","_createWebSocket","reject","_stopCheckWsOpenTimeout","length","_stopCheckGetUserMediaTimeout","disconnect","protocols","mediaDevices","webkitAudioContext","_initTalk","downloadJttFile","call","_sendTalkMsg","byteLength","getUserMediaTimeout","sequenceId","getUserMedia error","send talk msg and diff is ","addOpusToBuffer","_initMethods","opus","destination","navigator","addModule","packetType","downloadOpusFile_1","143397sAtUif","jttChannelNumber","talkGetUserMediaSuccess","\n encType is ","227065ElASJl",'websocket handle message message is "',"empty","4659515zneyVT","send","oninactive","sampleRate","audioContext","9102411dInSml","not support getUserMedia","finally","talk-processor","tempOpusBufferList","port","play","data","warn","audioWorklet","worklet","39854969CRVDxo","_startHeartInterval","g711a","init","_getSequenceId","10NcSXfq","sampleBitsWidth","createJavaScriptNode","revokeObjectURL","createBiquadFilter","checkGetUserMediaTimeout","socket","jttPacket","_getUserMedia3","eventType","_opt","rtpSsrc","createElement","click","toFixed","downloadOpusFile","addPcmToBuffer"," and encType is ","buffer","then","emitError","destroy","open","getUserMedia3 success","push","stop checkGetUserMediaTimeout","debugLog","_encodeAudioData","_getUserMedia2","opusDecoder","encType","check getUserMedia timeout","bufferSize","talkStreamStart","downloadRtpFile","_stopHeartInterval","numberChannels","audioPlayer","mozGetUserMedia","talkStreamOpen","getUserMedia","isDestroyed","socketDestroyFnList","message","audioBufferLength","addG711ToBuffer","apply","rtpPacket","tempG711BufferList","checkWsOpenTimeout","1373034nietpC","_destroyed"," and byteLength is ","talkStreamError","1630190SSdLfG","stringify","8qQEXFo","tempRtpBufferList","debugError","downloadG711File","close","jttChannelNumber is null or length is not 2","talkStreamMsg","getUserMedia2 success","gainNode","wsUrl","setVolume","workletRecorder","talkStreamClose","downloadPcmFile","tempTimestamp","g711u","onopen","jtt","_parseAudioMsg","userMediaStream","websocketHeartInterval","onerror","websocket error -> reject","requestAbort","20nLItnY","getUserMedia3","getUserMedia3 fail","mediaStreamSource","testMicrophone",".ogg","events","forEach","downloadFile","debug",".jtt","Client disconnecting","recorder","heartInterval","gain","websocket open -> do talk","player","window.navigator.mediaDevices.getUserMedia is undefined and init function","_doTalk","volume","getUserMedia2 fail","addJttToBuffer","createObjectURL","startTimestamp","getTracks","getChannelData","openWebsocketHeart","stream oninactive","once"," length is ","script","href","tempPcmBufferList","inputBuffer","isG711","reset","audioBufferList","_sendClose","tempJttBufferList",".wav","enc","readyState",".rtp","_initWorklet","clearWorkletUrlTimeout","playAudio","now","audio/ogg","debugWarn","biquadFilter","getUserMedia is not implemented in this browser","talk","engine","heart interval","websocket close -> reject","pcm","TAG_NAME","binaryType"," and sampleRate is ","_startCheckGetUserMediaTimeout","wsUrl is null","emit","_getUserMedia","assign","getOption","arraybuffer","jttSimNumber","string","download","proxy","log","_handleMessage","notConnect","tcp","startTalk",", and sampleBitsWidth is ","set","stop","socketStatus","lowpass","connect","catch","empty audio data","_log","createGain","URL","type","opusEncoder"];return(Ne=function(){return e})()}function Oe(e,t){const s=Ne();return(Oe=function(e,t){return s[e-=269]})(e,t)}!function(e){const t=Oe,s=e();for(;;)try{if(901096===parseInt(t(433))/1+parseInt(t(311))/2*(parseInt(t(351))/3)+parseInt(t(459))/4*(-parseInt(t(355))/5)+-parseInt(t(429))/6+parseInt(t(358))/7+parseInt(t(435))/8*(parseInt(t(363))/9)+parseInt(t(379))/10*(-parseInt(t(374))/11))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(Ne);class Ge extends r{constructor(e,t={}){const s=Oe;super(),this[s(389)]={},e&&(this.player=e),this[s(277)]=s(272);const r=te(_);this[s(389)]=Object[s(284)]({},r,t),!this[s(475)]&&(this.debug=new Ee(this)),this.log(this[s(277)],"init and version is",Q),this[s(389)][s(361)]=parseInt(this._opt[s(361)],10),this[s(389)].sampleBitsWidth=parseInt(this._opt[s(380)],10),this[s(493)]()&&(8e3!==this._opt[s(361)]||16!==this[s(389)].sampleBitsWidth)&&(this[s(371)](this[s(277)],s(354)+this[s(389)][s(409)]+s(279)+this._opt[s(361)]+s(296)+this[s(389)][s(380)]+"。\n "+this[s(389)][s(409)]+s(320)),this[s(389)][s(361)]=8e3,this[s(389)][s(380)]=16),this._opt.packetType===v[s(312)]&&this[s(389)][s(409)]===I.pcm&&(this[s(371)](this.TAG_NAME,"packetType is "+this[s(389)][s(349)]+s(396)+this[s(389)][s(409)]+", rtp only support g711a or g711u or opus so set packetType to empty"),this._opt[s(349)]=v[s(357)]),this[s(389)].packetType,s(452),this[s(389)][s(409)],s(345),this.audioContext=null,this[s(443)]=null,this[s(471)]=null,this[s(446)]=null,this[s(270)]=null,this[s(454)]=null,this[s(503)]=null,this[s(411)]=512,this[s(389)][s(423)]=this[s(317)](),this[s(495)]=[],this[s(308)]=null,this[s(408)]=null,this[s(321)]=null,this[s(389)].encType,s(345),this.socket=null,this[s(299)]=S[s(293)],this[s(458)]=!1,this[s(421)]=[],this.mediaStreamSource=null,this.heartInterval=null,this[s(384)]=null,this[s(444)]=null,this[s(482)]=0,this.checkWsOpenTimeout=null,this[s(340)]=0,this[s(449)]=null,this[s(430)]=!1,this[s(427)]=new Uint8Array(0),this[s(436)]=new Uint8Array(0),this[s(497)]=new Uint8Array(0),this[s(491)]=new Uint8Array(0),this[s(367)]=new Uint8Array(0),this.events=new Te(this),this[s(416)]=null,this[s(334)]();try{this[s(291)](this[s(277)],s(377),JSON[s(434)](this[s(389)]))}catch(e){this[s(291)](this[s(277)],s(377),this[s(389)])}}destroy(){const e=Oe;this._destroyed=!0,this[e(503)]&&(clearTimeout(this[e(503)]),this[e(503)]=null),this._stopCheckWsOpenTimeout(),this[e(454)]&&(this[e(454)][e(483)]&&this.userMediaStream[e(483)]()[e(466)](t=>{t[e(298)]()}),this[e(454)]=null),this[e(462)]&&(this[e(462)][e(330)](),this[e(462)]=null),this[e(471)]&&(this[e(471)][e(330)](),this[e(471)].onaudioprocess=null,this.recorder=null),this.biquadFilter&&(this[e(270)].disconnect(),this[e(270)]=null),this[e(443)]&&(this[e(443)][e(330)](),this[e(443)]=null),this[e(446)]&&(this[e(446)][e(330)](),this[e(446)]=null),this.opusEncoder&&(this.opusEncoder[e(400)](),this[e(308)]=null),this[e(408)]&&(this[e(408)].destroy(),this.opusDecoder=null),this[e(321)]&&(this.resampler[e(400)](),this.resampler=null),this[e(385)]&&((0===this[e(385)][e(500)]||1===this[e(385)][e(500)])&&(this[e(458)]=!0,this[e(496)](),this[e(385)][e(439)](1e3,e(470))),this[e(421)][e(328)]&&(this[e(421)][e(466)](e=>e()),this[e(421)]=[]),this.socket[e(451)]=null,this[e(385)].onmessage=null,this.socket.onclose=null,this[e(385)][e(456)]=null,this.socket=null),this.socketStatus=S[e(293)],this[e(416)]&&(this.audioPlayer.destroy(),this[e(416)]=null),this[e(414)](),this._stopCheckGetUserMediaTimeout(),this[e(362)]=null,this[e(443)]=null,this[e(471)]=null,this[e(495)]=[],this[e(340)]=0,this[e(444)]=null,this[e(449)]=null,this.tempRtpBufferList=null,this[e(427)]=null,this[e(491)]=null,this.tempOpusBufferList=null,this[e(482)]=0,this[e(291)](this[e(277)],e(400))}[Ve(494)](){}[Ve(327)](){const e=Ve;this[e(428)]&&(clearTimeout(this[e(428)]),this.checkWsOpenTimeout=null)}[Ve(420)](){return this[Ve(430)]}[Ve(313)](e){const t=Ve,s=e[t(328)]+this[t(436)][t(328)],r=new Uint8Array(s);r[t(297)](this[t(436)],0),r[t(297)](e,this[t(436)][t(328)]),this.tempRtpBufferList=r}addG711ToBuffer(e){const t=Ve,s=e[t(328)]+this.tempG711BufferList[t(328)],r=new Uint8Array(s);r[t(297)](this[t(427)],0),r[t(297)](e,this.tempG711BufferList[t(328)]),this.tempG711BufferList=r}[Ve(395)](e){const t=Ve,s=e[t(328)]+this.tempPcmBufferList.length,r=new Uint8Array(s);r[t(297)](this.tempPcmBufferList,0),r[t(297)](e,this[t(491)][t(328)]),this[t(491)]=r}addJttToBuffer(e){const t=Ve,s=e.length+this[t(497)][t(328)],r=new Uint8Array(s);r[t(297)](this[t(497)],0),r[t(297)](e,this.tempJttBufferList[t(328)]),this[t(497)]=r}addOpusToBuffer_1(e){const t=Ve;!this.opusDecoder&&(this[t(408)]=new OpusDecoder(this._opt[t(361)],this._opt.numberChannels));const s=this[t(408)].decode(e),r=new Uint8Array(s[t(397)]);this.addPcmToBuffer(r)}[Ve(343)](e){const t=Ve,s=this[t(367)][t(328)]+1+e[t(328)],r=new Uint8Array(s);r[t(297)](this[t(367)],0),r[t(297)]([e[t(328)]],this.tempOpusBufferList[t(328)]),r.set(e,this[t(367)][t(328)]+1),this[t(367)]=r}[Ve(413)](){const e=Ve;this[e(405)](this.TAG_NAME,e(413));const t=new Blob([this.tempRtpBufferList]);try{const s=document[e(391)]("a");s.href=window[e(306)][e(481)](t),s[e(289)]=Date[e(505)]()+e(501),s[e(392)](),this[e(436)]=new Uint8Array(0),window.URL[e(382)](s.href)}catch(t){console[e(309)](e(413),t)}}[Ve(438)](){const e=Ve;this[e(405)](this[e(277)],e(438));const t=new Blob([this[e(427)]]);try{const s=document[e(391)]("a");s[e(490)]=window[e(306)][e(481)](t),s[e(289)]=Date[e(505)]()+"."+this._opt[e(409)],s.click(),this[e(427)]=new Uint8Array(0),window[e(306)][e(382)](s[e(490)])}catch(t){console[e(309)](e(438),t)}}[Ve(350)](){const e=Ve;this[e(405)](this.TAG_NAME,e(394)),this.downloadPcmFile()}[Ve(394)](){const e=Ve;this[e(405)](this[e(277)],"downloadOpusFile");const t=function(e,t,s){const r=H,i=new Uint8Array([79,103,103,83,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),o=new Uint8Array([79,112,117,115,72,101,97,100,1,0,0,0,0,0,0,0,0,0,0,0,255&t,t>>8&255,t>>16&255,t>>24&255,255&s,s>>8&255,0,0,0,0]),n=new Uint8Array(i[r(137)]+o[r(137)]+e[r(137)]);return n.set(i),n[r(460)](o,i[r(137)]),n[r(460)](e,i[r(137)]+o[r(137)]),n}(this[e(367)],this[e(389)].sampleRate,this[e(389)][e(415)]),s=new Blob([t],{type:e(506)});try{const t=document.createElement("a");t[e(490)]=window[e(306)][e(481)](s),t[e(289)]=Date[e(505)]()+e(464),t[e(392)](),this.tempOpusBufferList=new Uint8Array(0),window[e(306)][e(382)](t[e(490)])}catch(t){console[e(309)](e(394),t)}}[Ve(448)](e=!1){const t=Ve;this.debugLog(this[t(277)],t(448),this._opt[t(361)],this[t(389)][t(415)],this._opt[t(380)]);let s=new DataView(this[t(491)].buffer),r=null,i="";e?(s=function(e,t,s,r){const i=H;var o=function(e,t,s){const r=Y;for(var i=0;i<s.length;i++)e[r(403)](t+i,s[r(127)](i))},n=t,a=r,c=new ArrayBuffer(44+e.byteLength),l=new DataView(c),h=s,u=0;o(l,u,i(288)),u+=4,l.setUint32(u,36+e[i(259)],!0),o(l,u+=4,i(290)),o(l,u+=4,i(234)),u+=4,l[i(349)](u,16,!0),u+=4,l[i(459)](u,1,!0),u+=2,l.setUint16(u,h,!0),u+=2,l[i(349)](u,n,!0),u+=4,l[i(349)](u,h*n*(a/8),!0),u+=4,l[i(459)](u,h*(a/8),!0),u+=2,l[i(459)](u,a,!0),o(l,u+=2,"data"),u+=4,l[i(349)](u,e[i(259)],!0),u+=4;for(let t=0;t<e.byteLength;)l[i(403)](u,e[i(342)](t)),u++,t++;return l}(s,this._opt[t(361)],this[t(389)].numberChannels,this._opt.sampleBitsWidth),i=t(498),r=new Blob([s],{type:"audio/wav"})):(i=t(324),r=new Blob([this[t(491)]]));try{const e=document[t(391)]("a");e[t(490)]=window[t(306)][t(481)](r),e[t(289)]=Date[t(505)]()+i,e[t(392)](),this[t(491)]=new Uint8Array(0),window[t(306)][t(382)](e[t(490)])}catch(e){console[t(309)](t(413),e)}}[Ve(335)](){const e=Ve;this[e(405)](this[e(277)],e(335));const t=new Blob([this[e(497)]]);try{const s=document[e(391)]("a");s[e(490)]=window[e(306)][e(481)](t),s[e(289)]=Date[e(505)]()+e(469),s[e(392)](),this.tempJttBufferList=new Uint8Array(0),window[e(306)][e(382)](s[e(490)])}catch(t){console[e(309)](e(335),t)}}[Ve(467)](){const e=Ve;this._opt.packetType===v[e(312)]?this[e(413)]():this[e(389)].packetType===v[e(452)]?this[e(335)]():this[e(493)]()?this[e(438)]():this[e(389)].encType===I.opus?this[e(394)]():this[e(389)][e(409)]===I[e(276)]&&this[e(448)]()}[Ve(317)](){const e=Ve,{sampleRate:t,sampleBitsWidth:s,frameDuration:r}=this[e(389)];return this[e(493)]()?8*t*(r/1e3)/8:t*s*(r/1e3)/8}get socketStatusOpen(){const e=Ve;return this[e(299)]===S[e(401)]}[Ve(291)](...e){const t=Ve;this._log(t(291),...e)}[Ve(371)](...e){const t=Ve;this[t(304)](t(371),...e)}error(...e){const t=Ve;this[t(304)](t(309),...e)}[Ve(304)](e,...t){const s=Ve;this[s(475)]?this[s(475)].debug[e](...t):this[s(468)]?this[s(468)][e](...t):console[e](...t)}_getSequenceId(){return++this[Ve(340)]}[Ve(325)](e){return new Promise((t,s)=>{const r=Oe,i=this[r(465)][r(290)];this.socket=new WebSocket(this[r(444)],e[r(331)]||[]),this[r(385)][r(278)]=r(286),this[r(282)](g[r(412)]);const o=i(this[r(385)],C[r(401)],()=>{const e=r;this[e(299)]=S[e(401)],this[e(327)](),this[e(291)](this.TAG_NAME,e(474)),this.emit(g[e(418)]),t(),this[e(477)]()}),n=i(this[r(385)],C[r(422)],e=>{const t=r;typeof e.data!==t(288)?re(this[t(389)][t(504)])||this[t(292)](e[t(370)]):this[t(269)](this[t(277)],t(356)+e[t(370)]+'" string so return')}),a=i(this[r(385)],C[r(439)],e=>{const t=r;if(this[t(458)])return this[t(458)]=!1,void this[t(405)](this[t(277)],"socket close and requestAbort is true, so return");const i=this[t(299)];this[t(299)]=S.close,this.warn(this[t(277)],t(275),e),this[t(399)](g[t(447)]),i===S[t(293)]&&s(e)}),c=i(this[r(385)],C[r(309)],e=>{const t=r;if(this[t(458)])return this[t(458)]=!1,void this[t(405)](this[t(277)],t(314));const i=this.socketStatus;this[t(299)]=S[t(309)],this[t(309)](this[t(277)],t(457),e),this[t(399)](g[t(432)],e),i===S[t(293)]&&s(e)});this[r(421)][r(403)](o,n,a,c)})}_sendClose(){}[Ve(334)](){const e=Ve;this[e(344)](),this[e(389)][e(273)]===B[e(373)]?this._initWorklet():this._opt.engine===B[e(489)]&&this._initScriptProcessor(),this[e(291)](this[e(277)],"audioContext samplerate",this[e(362)].sampleRate)}[Ve(344)](){const e=Ve;this.audioContext=new(window.AudioContext||window[e(333)])({sampleRate:48e3}),this[e(443)]=this[e(362)][e(305)](),this[e(443)].gain[e(323)]=1,this.biquadFilter=this[e(362)][e(383)](),this[e(270)][e(307)]=e(300),this.biquadFilter.frequency[e(323)]=3e3,this[e(321)]=new ae({fromSampleRate:this[e(362)][e(361)],toSampleRate:this[e(389)][e(361)],channels:this[e(389)].numberChannels,inputBufferSize:this[e(411)]})}_initScriptProcessor(){const e=Ve,t=this.audioContext.createScriptProcessor||this.audioContext[e(381)];this[e(471)]=t[e(425)](this.audioContext,[this[e(411)],this[e(389)][e(415)],this[e(389)][e(415)]]),this[e(471)].onaudioprocess=t=>this[e(322)](t)}[Ve(502)](){const e=Ve,t=$(xe);this[e(362)][e(372)]&&this[e(362)][e(372)][e(348)](t)[e(398)](()=>{const t=e,s=new AudioWorkletNode(this[t(362)],t(366),{processorOptions:{bufferSize:this[t(411)]}});s[t(301)](this[t(443)]),s[t(368)].onmessage=e=>{const s=t;e[s(370)][s(388)]===s(370)&&this._encodeAudioData(e[s(370)][s(397)])},this[t(446)]=s}),this[e(503)]=setTimeout(()=>{const s=e;URL.revokeObjectURL(t),this[s(503)]=null},1e4)}[Ve(322)](e){const t=Ve,s=e[t(492)][t(484)](0);this[t(406)](new Float32Array(s))}[Ve(406)](e){const t=Ve;if(this[t(420)]())return;if(0===e[0]&&0===e[1])return void this[t(291)](this[t(277)],t(303));const s=this[t(321)].resample(e);if(this[t(389)][t(409)]===I[t(345)]);else{let e=s;this[t(493)]()||16===this._opt[t(380)]?e=le(s):8===this[t(389)][t(380)]?e=function(e){const t=he;let s=e[t(118)],r=new Int8Array(s);for(;s--;){let i=Math[t(108)](-1,Math[t(117)](1,e[s]));const o=i<0?32768*i:32767*i;r[s]=parseInt(255/(65535/(32768+o)),10)}return r}(s):32===this[t(389)].sampleBitsWidth&&(e=function(e){const t=he;let s=e.length,r=new Int32Array(s);for(;s--;){let i=Math[t(108)](-1,Math.min(1,e[s]));r[s]=i<0?2147483648*i:2147483647*i}return r}(s));let r=null;this[t(389)].encType===I.g711a?r=ye(e):this[t(389)][t(409)]===I.g711u?r=ge(e):this[t(389)][t(409)]===I.pcm&&(r=e[t(397)]);const i=new Uint8Array(r);for(let e=0;e<i.length;e++){let s=this.audioBufferList[t(328)];this[t(495)][s++]=i[e],this[t(495)][t(328)]===this._opt[t(423)]&&(this[t(337)](new Uint8Array(this[t(495)])),this[t(495)]=[])}}}[Ve(453)](e){const t=Ve;let s=null;return this[t(389)].packetType!==v[t(312)]||!this[t(493)]()&&this[t(389)][t(499)]!==I[t(345)]?this._opt[t(349)]===v[t(452)]&&this[t(493)]()?s=this[t(386)](e):this[t(389)].packetType===v[t(357)]&&(s=e):s=this[t(426)](e),s}[Ve(426)](e){const t=Ve,s=[];let r=0,i=0,o=0;const n=this._opt[t(390)],a=e.length;this[t(389)][t(409)]===I.g711a?r=A[t(376)]:this[t(389)][t(409)]===I[t(450)]?r=A[t(450)]:this[t(389)][t(409)]===I[t(345)]&&(r=A[t(345)]),!this[t(482)]&&(this[t(482)]=J()),o=J()-this[t(482)],i=this[t(378)]();let c=0;if(this._opt.packetTcpSendType===T[t(294)]){const e=a+12;s[c++]=255&e>>8,s[c++]=255&e}s[c++]=128,s[c++]=128+r,s[c++]=i/256,s[c++]=i%256,s[c++]=o/65536/256,s[c++]=o/65536%256,s[c++]=o%65536/256,s[c++]=o%65536%256,s[c++]=n/65536/256,s[c++]=n/65536%256,s[c++]=n%65536/256,s[c++]=n%65536%256;let l=s.concat([...e]),h=new Uint8Array(l[t(328)]);for(let e=0;e<l[t(328)];e++)h[e]=l[e];return h}jttPacket(e){const t=Ve,s=[],r=[48,49,99,100],i=[129,134];let o=0;const n=this[t(389)][t(287)],a=this[t(389)][t(352)];let c=0;const l=e[t(328)];!this[t(482)]&&(this[t(482)]=J()),c=J()-this[t(482)],o=this._getSequenceId(),s[0]=r[0],s[1]=r[1],s[2]=r[2],s[3]=r[3],s[4]=i[0],s[5]=i[1],s[6]=o/256,s[7]=o%256;const h=function(e){const t=Ue;if((e=e[t(507)](/\s/g,"")).length%2!=0)return console[t(510)](t(498),e[t(502)]),null;const s=new Uint8Array(e[t(502)]/2);for(let r=0;r<e[t(502)];r+=2){const i=parseInt(e[t(503)](r,2),16);s[r/2]=i}return s}(n);h&&(s[8]=h[0],s[9]=h[1],s[10]=h[2],s[11]=h[3],s[12]=h[4],s[13]=h[5]),s[14]=parseInt(a,16),s[15]=48,s[16]=255&c>>56,s[17]=255&c>>48,s[18]=255&c>>40,s[19]=255&c>>32,s[20]=255&c>>24,s[21]=255&c>>16,s[22]=255&c>>8,s[23]=255&c,s[24]=l/256,s[25]=l%256;let u=s.concat([...e]),d=new Uint8Array(u[t(328)]);for(let e=0;e<u[t(328)];e++)d[e]=u[e];return d}[Ve(337)](e){const t=Ve;null===this[t(449)]&&(this[t(449)]=J());const s=J(),r=s-this.tempTimestamp,i=this[t(453)](e);this[t(291)](this[t(277)],t(342)+r+t(431)+i[t(338)]+" and length is "+i[t(328)]+", and "+this[t(389)][t(409)]+t(488)+e.length),se(this._opt.saveToTempFile)&&se(this[t(389)][t(468)])&&(this[t(389)][t(349)]===v[t(312)]?this[t(313)](i):this[t(389)].packetType===v.jtt?this[t(480)](i):this[t(493)]()?this[t(424)](i):this[t(389)][t(409)]===I[t(276)]?this.addPcmToBuffer(i):this._opt[t(409)]===I[t(345)]&&this.addOpusToBuffer(i)),i&&(this._opt[t(463)]?this.emit(g[t(441)],i.buffer):this.socketStatusOpen?this[t(385)].send(i[t(397)]):this[t(399)](k.tallWebsocketClosedByError)),this.tempTimestamp=s}_doTalk(){const e=Ve;this[e(283)](),this[e(389)][e(485)]&&this._startHeartInterval()}_getUserMedia(){const e=Ve;this.log(this.TAG_NAME,e(419)),void 0===window[e(347)][e(332)]&&(window[e(347)][e(332)]={}),void 0===window[e(347)][e(332)][e(419)]&&(this[e(291)](this[e(277)],e(476)),window.navigator[e(332)][e(419)]=function(t){const s=e;var r=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator[s(417)]||navigator[s(318)];return r?new Promise(function(e,i){r[s(336)](navigator,t,e,i)}):Promise[s(326)](new Error(s(271)))}),this[e(389)][e(384)]&&this[e(280)](),window[e(347)][e(332)][e(419)]({audio:this[e(389)].audioConstraints,video:!1})[e(398)](t=>{const s=e;this.log(this[s(277)],"getUserMedia success"),this[s(454)]=t,this[s(462)]=this[s(362)].createMediaStreamSource(t),this[s(462)][s(301)](this.biquadFilter),this[s(471)]?(this.biquadFilter[s(301)](this.recorder),this[s(471)].connect(this[s(443)])):this.workletRecorder&&(this[s(270)].connect(this[s(446)]),this[s(446)].connect(this[s(443)])),this.gainNode[s(301)](this[s(362)][s(346)]),this[s(282)](g[s(353)]),null===t.oninactive&&(t[s(360)]=e=>{this[s(310)](e)})})[e(302)](t=>{const s=e;this.error(this[s(277)],s(341),t.toString()),this[s(282)](g[s(316)],t.toString())})[e(365)](()=>{const t=e;this[t(291)](this.TAG_NAME,"getUserMedia finally"),this[t(329)]()})}[Ve(407)](){const e=Ve;this[e(291)](this[e(277)],e(419)),navigator[e(332)]?navigator[e(332)][e(419)]({audio:!0})[e(398)](t=>{const s=e;this[s(291)](this[s(277)],s(442))}):navigator.getUserMedia({audio:!0},this[e(291)](this[e(277)],e(442)),this[e(291)](this[e(277)],e(479)))}async[Ve(387)](){const e=Ve;this.log(this[e(277)],e(460));try{const t=await navigator[e(332)][e(419)]({audio:{latency:!0,noiseSuppression:!0,autoGainControl:!0,echoCancellation:!0,sampleRate:48e3,channelCount:1},video:!1});console[e(291)]("getUserMedia() got stream:",t),this[e(291)](this[e(277)],e(402))}catch(t){this[e(291)](this[e(277)],e(461))}}[Ve(310)](e){const t=Ve;this[t(454)]&&(this.warn(this[t(277)],t(486),e),this[t(282)](g.talkStreamInactive))}[Ve(280)](){const e=Ve;this._stopCheckGetUserMediaTimeout(),this[e(384)]=setTimeout(()=>{const t=e;this[t(291)](this[t(277)],t(410)),this[t(282)](g.talkGetUserMediaTimeout)},this[e(389)][e(339)])}[Ve(329)](){const e=Ve;this[e(384)]&&(this[e(291)](this[e(277)],e(404)),clearTimeout(this[e(384)]),this[e(384)]=null)}[Ve(375)](){const e=Ve;this[e(472)]=setInterval(()=>{const t=e;this[t(291)](this.TAG_NAME,t(274));let s=this._opt.websocketHeartContent;s=new Uint8Array(s),this[t(385)][t(359)](s[t(397)])},1e3*this._opt[e(455)])}[Ve(414)](){const e=Ve;this[e(472)]&&(this[e(291)](this[e(277)],e(319)),clearInterval(this[e(472)]),this.heartInterval=null)}[Ve(295)](e,t={}){return new Promise((s,r)=>{const i=Oe;if(!function(){const e=H;let t=!1;const s=window[e(292)];return s&&(t=!(!s.mediaDevices||!s.mediaDevices.getUserMedia),!t&&(t=!!(s[e(363)]||s[e(193)]||s.mozGetUserMedia||s[e(333)]))),t}())return r(i(364));if(this._opt[i(349)]===v.jtt){if(!this[i(389)].jttSimNumber||12!==(""+this[i(389)][i(287)])[i(328)])return r("jttSimNumber is null or length is not 12");if(!this[i(389)].jttChannelNumber||2!==(""+this[i(389)][i(352)])[i(328)])return r(i(440))}if(this.wsUrl=e,this._opt[i(463)])this[i(477)]();else{if(!this.wsUrl)return r(i(281));if(ie())return r(decodeURIComponent(F));this[i(325)](t).catch(e=>{r(e)})}this[i(487)](g[i(316)],()=>{r(i(315))}),this[i(487)](g.talkGetUserMediaSuccess,()=>{s()})})}[Ve(445)](e){const t=Ve;e=parseFloat(e)[t(393)](2),isNaN(e)||(e=function(e,t,s){const r=Y;return Math[r(449)](Math[r(122)](e,Math[r(449)](t,s)),Math[r(122)](t,s))}(e,0,1),this[t(443)][t(473)].value=e)}[Ve(493)](){const e=Ve;return this._opt[e(409)]===I[e(376)]||this._opt[e(409)]===I.g711u}[Ve(285)](){return this[Ve(389)]}get[Ve(478)](){const e=Ve;return this[e(443)]?parseFloat(100*this[e(443)].gain[e(323)]).toFixed(0):null}[Ve(405)](e,...t){const s=Ve;this[s(389)][s(468)]&&this.debug&&this[s(468)][s(291)](e,...t)}[Ve(269)](e,...t){const s=Ve;this[s(389)].debug&&this[s(468)]&&this[s(468)][s(371)](e,...t)}[Ve(437)](e,...t){const s=Ve;this[s(468)]&&this[s(468)][s(309)](e,...t)}_handleMessage(e){const t=Ve;null===this[t(416)]&&(this.audioPlayer=new Re(this)),this[t(416)][t(369)](e)}[Ve(399)](e,t=""){const s=Ve;this[s(282)](g[s(309)],e,t),this.emit(e,t)}}function je(){const e=["destroy","talkStreamError","downloadTempPcmFile","39189sRxzWW","_handleTalkWebsocketClosedByError","downloadTempRtpFile","talkGetUserMediaTimeout stopTalk","talkStreamError stopTalk","2894562TobskL","_handleTalkStreamClose","emit","then","downloadPcmFile","volume","talk is not init","toString","debugLog","log","33093uAfGFW","talkStreamInactive stopTalk","talkStreamInactive -> stopTalk","WebPlayerProTalk","assign","_handleTalkGetUserMediaTimeout","getOption","stopTalk","startTalk","warn","talkGetUserMediaTimeout","debugWarn","off","_initTalk","bind","talkStreamClose stopTalk","talkFailedAndStop","40ihZvMg","76IrFykC","error","downloadG711File","debugError","destroy()","talkWebsocketClosedByError -> stopTalk","setTalkVolume","tallWebsocketClosedByError","talkStreamClose -> stopTalk","talk","downloadRtpFile","keys","JbProTalk","EVENTS","talkStreamClose","debug","LOG_TAG","681716FSWncS","_handleTalkStreamInactive","_handleTalkStreamError","_opt","forEach","setVolume","stringify","catch","init","5880GaxaiH","once","862174cusqFU","finally","164507GXPzDD","3178095sbWzbN","bound","JessibucaProTalk","_bindTalkEvents"];return(je=function(){return e})()}const ze=He;function He(e,t){const s=je();return(He=function(e,t){return s[e-=286]})(e,t)}!function(e){const t=He,s=e();for(;;)try{if(427699===-parseInt(t(310))/1+parseInt(t(321))/2+parseInt(t(331))/3*(-parseInt(t(293))/4)+-parseInt(t(324))/5+-parseInt(t(336))/6+parseInt(t(323))/7*(-parseInt(t(292))/8)+parseInt(t(346))/9*(parseInt(t(319))/10))break;s.push(s.shift())}catch(e){s.push(s.shift())}}(je);class qe extends r{constructor(e={}){const t=He;super(),this[t(302)]=null,this[t(313)]=e,this[t(309)]=t(305),this[t(308)]=new Ee(this),this.bound={_handleTalkStreamClose:this[t(337)][t(289)](this),_handleTalkStreamError:this[t(312)][t(289)](this),_handleTalkStreamInactive:this[t(311)][t(289)](this),_handleTalkGetUserMediaTimeout:this[t(351)].bind(this),_handleTalkWebsocketClosedByError:this._handleTalkWebsocketClosedByError.bind(this)};try{this.debugLog(this[t(309)],t(318),JSON[t(316)](e))}catch(s){this[t(344)](this.LOG_TAG,t(318),e)}}[ze(328)](){const e=ze;this[e(344)](this[e(309)],e(297)),this[e(287)](),this[e(302)]&&(this[e(302)].destroy(),this[e(302)]=null),this[e(325)]=null,this[e(344)](this.LOG_TAG,e(328))}_initTalk(e={}){const t=ze;this[t(302)]&&(this.debugLog(this[t(309)],"_initTalk this.talk is not null and destroy"),this[t(302)][t(328)](),this[t(302)]=null);const s=Object[t(350)]({},te(this._opt),e);this._opt=s,this.talk=new Ge(null,s),this[t(344)](this.LOG_TAG,t(288),this[t(302)][t(352)]()),this[t(327)]()}_bindTalkEvents(){const e=ze;Object[e(304)](b)[e(314)](e=>{this.talk.on(b[e],t=>{this[He(338)](e,t)})})}[ze(354)](e,t={},s={}){return new Promise((r,i)=>{const o=He;try{this[o(344)](this.LOG_TAG,o(354),e,JSON[o(316)](t))}catch(s){this[o(344)](this.LOG_TAG,o(354),e,t)}if(this[o(288)](t),ie()){const e=decodeURIComponent(F);return this[o(296)](this[o(309)],e),void i(e)}this[o(302)][o(354)](e,s)[o(339)](()=>{const e=o;r(),this[e(302)][e(320)](g[e(307)],this[e(325)][e(337)]),this[e(302)][e(320)](g[e(329)],this[e(325)][e(312)]),this[e(302)][e(320)](g.talkStreamInactive,this[e(325)][e(311)]),this[e(302)].once(g[e(356)],this[e(325)][e(351)]),this[e(302)].once(k[e(300)],this[e(325)]._handleTalkWebsocketClosedByError)})[o(317)](e=>{const t=o;this[t(286)](this[t(309)],"startTalk error",e,e[t(343)]()),this[t(353)]()[t(322)](()=>{i(e)})})})}[ze(353)](){return new Promise((e,t)=>{const s=He;this[s(344)](this[s(309)],"stopTalk()"),!this.talk&&t(s(342)),this.talk.destroy(),this[s(302)]=null,e()})}getTalkVolume(){return new Promise((e,t)=>{const s=He;!this[s(302)]&&t(s(342)),e(this[s(302)][s(341)])})}[ze(299)](e){return new Promise((t,s)=>{const r=He;this[r(344)](this[r(309)],r(299),e),!this.talk&&s(r(342)),this[r(302)][r(315)](e/100),t()})}[ze(333)](){return new Promise((e,t)=>{const s=He;this[s(302)]?(this[s(302)][s(303)](),e()):t(s(342))})}downloadTempG711File(){return new Promise((e,t)=>{const s=He;this[s(302)]?(this[s(302)][s(295)](),e()):t(s(342))})}[ze(330)](e){return new Promise((t,s)=>{const r=He;this[r(302)]?(this[r(302)][r(340)](e),t()):s(r(342))})}downloadTempOpusFile(){return new Promise((e,t)=>{const s=He;this[s(302)]?(this[s(302)].downloadOpusFile(),e()):t(s(342))})}downloadTempFile(){return new Promise((e,t)=>{const s=He;this[s(302)]?(this[s(302)].downloadFile(),e()):t(s(342))})}[ze(344)](e,...t){const s=ze;this[s(313)][s(308)]&&this[s(308)]&&this.debug[s(345)](e,...t)}[ze(286)](e,...t){const s=ze;this[s(313)][s(308)]&&this[s(308)]&&this[s(308)][s(355)](e,...t)}[ze(296)](e,...t){const s=ze;this[s(308)]&&this[s(308)][s(294)](e,...t)}[ze(337)](){const e=ze;this.debugWarn(this[e(309)],e(301)),this[e(353)]()[e(317)](t=>{const s=e;this.debugWarn(this[s(309)],s(290),t)})[e(322)](()=>{const t=e;this[t(338)](g.talkFailedAndStop,g[t(307)])})}[ze(312)](){const e=ze;this[e(296)](this[e(309)],"talkStreamError -> stopTalk"),this[e(353)]()[e(317)](t=>{const s=e;this[s(286)](this[s(309)],s(335),t)}).finally(()=>{const t=e;this.emit(g.talkFailedAndStop,g[t(329)])})}[ze(311)](){const e=ze;this[e(286)](this.LOG_TAG,e(348)),this[e(353)]().catch(t=>{const s=e;this[s(286)](this[s(309)],s(347),t)})[e(322)](()=>{const t=e;this.emit(g[t(291)],g.talkStreamInactive)})}[ze(351)](){const e=ze;this.debugWarn(this[e(309)],"talkGetUserMediaTimeout -> stopTalk"),this[e(353)]()[e(317)](t=>{const s=e;this[s(286)](this[s(309)],s(334),t)})[e(322)](()=>{const t=e;this[t(338)](g[t(291)],g[t(356)])})}[ze(332)](){const e=ze;this[e(286)](this[e(309)],e(298)),this[e(353)]().catch(t=>{const s=e;this[s(286)](this[s(309)],"talkWebsocketClosedByError stopTalk",t)})[e(322)](()=>{const t=e;this.emit(g[t(291)],k.tallWebsocketClosedByError)})}}return qe[ze(306)]=b,window[ze(326)]=qe,window[ze(305)]=qe,window[ze(349)]=qe,qe});