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G,sBAAsB,cAAc7I,EAAEC,GAAGkC,KAAK0G,sBAAsB,aAAa7I,EAAEC,GAAGkC,KAAKsE,oBAAoBzG,EAAEoE,QAAQC,IAAI,wCAAwC1E,EAAEwC,KAAK6E,wBAAwB,CAAC,MAAMrH,GAAGyE,QAAQyB,MAAM,yCAAyClG,EAAE,CAAC,CAACwI,uBAAAA,GAA0B,YAAO,IAASvI,OAAO+G,UAAUM,cAAc,OAAOrH,OAAO+G,UAAUM,mBAAc,IAASrH,OAAO+G,UAAUM,aAAaqB,cAAc,OAAO1I,OAAO+G,UAAUM,aAAaqB,YAAY,CAAC,2BAAMO,CAAsBlJ,EAAEK,EAAEC,GAAG,GAAGmE,QAAQC,IAAI,wBAADF,OAAyBxE,EAAC,cAAayH,EAAE0B,QAAQ9I,EAAEL,GAAGM,EAAEN,MAAMyH,EAAE0B,QAAQ9I,EAAEL,GAAGM,EAAEN,IAAI,CAAC,IAAIM,EAAE,CAACyC,KAAK/C,EAAEoJ,QAAQ/I,EAAEL,IAAI,MAAMO,EAAE,IAAIkF,YAAY,mBAAmB,CAACC,OAAOpF,IAAIkC,KAAKsB,OAAO+B,cAActF,EAAE,CAAC,EAAE,MAAM,CAAC8I,YAAY,WAAW,OAAOpJ,OAAOqJ,2BAA2BrJ,OAAOqJ,yBAAyB,IAAIjJ,SAASJ,OAAOqJ,yBAAyBjH,aAAapC,OAAOqJ,wBAAwB,EAAE,CAAloJ,GAAsoJjJ,EAAEqB,QAAQlB,CAAC","sources":["../node_modules/alo-webrtc-js/dist/alo-webrtc.js"],"names":["e","window","module","exports","require","t","i","s","n","l","call","m","c","d","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","__esModule","create","bind","default","prototype","hasOwnProperty","p","CONNECTION","CONNECTION_STATUS_CONNECTED","CONNECTION_STATUS_DISCONNECTED","CONNECTION_STATUS_CONNECTING","CONNECTION_STATUS_ERROR","CONNECTION_STATUS_RECONNECT_PENDING","EventTarget","constructor","a","set","this","configurable","writable","options","once","target","removeEventListener","type","listener","handleEvent","length","push","slice","forEach","currentTarget","splice","WeakMap","AloWebRTC","AloEvents","AloDeviceManagerFactory","arguments","undefined","events","session","isJanusConnected","janusUrl","iceServers","_onDisconnectCallback","onDisconnectCallback","_printCallerInfo","printInfo","logTag","concat","console","log","sessionDestroyed","createSession","debug","forceCreateSession","then","handleSessionCreated","isConnected","destroySession","sessionId","destroy","_objectSpread","cleanupHandles","notifyDestroyed","dispatchDisconnectEvent","CustomEvent","detail","state","message","dispatchEvent","Promise","reconnectAttempts","reconnect","success","error","Janus","init","callback","isWebrtcSupported","server","keepAlivePeriod","test","destroyed","getJanus","_getAudioDevices","_getVideoDevices","_mediaDevicesByType","_isFirefoxBrowser","navigator","userAgent","match","_isSafariBrowser","toLowerCase","_updateMediaListTimeout","mediaDevices","addEventListener","setTimeout","_","handleDeviceChange","_currentStreams","addCurrentStream","_stopCurrentStreams","getTracks","label","kind","stop","enableAudioDevices","enableVideoDevices","getMediaList","_getAvailableMediaDevices","audio","video","isGetUserMediaAvailable","warn","isAndroid","getUserMedia","enumerateDevices","deviceId","id","getVideoTracks","getAudioTracks","updateMediaList","_sendDeviceListUpdate","isEqual","devices","getInstance","aloDeviceManagerInstance"],"sourceRoot":""}