text: import{r as e,h as t,H as o,c as i}from"./p-c08cc01e.js";class n{constructor(){}async getDevicesByKindAsync(e){return(await navigator.mediaDevices.enumerateDevices()).filter(t=>t.kind==e)}async getAudioDevicesAsync(){return await this.getDevicesByKindAsync("audioinput")}async getVideoDevicesAsync(){return await this.getDevicesByKindAsync("videoinput")}async getMediaStream(e,t){const o={audio:{deviceId:e},video:{deviceId:t,width:320,height:320}};return await navigator.mediaDevices.getUserMedia(o)}}class r{constructor(){this.events={}}addListener(e,t){void 0===this.events[e]&&(this.events[e]={listeners:[]}),this.events[e].listeners.push(t)}removeListener(e,t){if(void 0===this.events[e])return!1;this.events[e].listeners=this.events[e].listeners.filter(e=>e.toString()!==t.toString())}dispatch(e,t){if(void 0===this.events[e])return!1;this.events[e].listeners.forEach(e=>{e(t)})}}class a extends class{constructor(e){this.channel=e,this.isOpen=new Promise(e=>{this.channel.onopen=()=>{e()}}),this.channel.onmessage=e=>{this.OnDataReceived(JSON.parse(e.data))}}SendText(e){this.channel.send(e)}SendJSON(e){this.SendText(JSON.stringify(e))}WaitForOpen(){return this.isOpen}OnDataReceived(e){}GetChannel(){return this.channel}}{constructor(e){super(e),this.stateDispatcher=new r}getSessionState(){return this.state}Open(){this.SendText("open")}Close(){this.SendText("close")}RequestNewState(){this.SendText("state")}AddListnerOnDataReceived(e){this.stateDispatcher.addListener("OnDataReceived",e)}OnDataReceived(e){this.stateDispatcher.dispatch("OnDataReceived",e),this.state=e}getDispatcher(){return this.stateDispatcher}setDispatcher(e){this.stateDispatcher=e}}class s{constructor(e){this.videoTag=e,this.peer=new RTCPeerConnection({iceServers:[{urls:"stun:stun.l.google.com:19302"}]}),this.peer.ontrack=e=>{this.onMediaTrackHandler(e)},this.peer.ondatachannel=e=>{this.onDataChannelHandler(e)},this.peer.addTransceiver("video"),this.peer.addTransceiver("audio"),this.sessionChannel=new a(this.createDataChannel("session"))}onMediaTrackHandler(e){if(e&&e.streams){const t=e.streams[0];"video-pipe"===t.id&&(console.log("Add Remote Video Stream"),this.videoTag.srcObject=t),"audio-pipe"===t.id&&(console.log("Add Remote Audio Stream"),this.videoTag.srcObject)&&this.videoTag.srcObject.addTrack(e.track)}}onDataChannelHandler(e){if("session"==e.channel.label){let t=null;this.sessionChannel&&(t=this.sessionChannel.getDispatcher()),this.sessionChannel=new a(e.channel),t&&this.sessionChannel.setDispatcher(t),this.sessionChannel.WaitForOpen().then(()=>{this.sessionChannel.Open(),this.sessionChannel.RequestNewState()})}}AddTrack(e,t){return this.peer.addTrack(e,t)}ListenOnNewSessionState(e){return this.sessionChannel.AddListnerOnDataReceived(e)}getSessionState(){return this.sessionChannel.getSessionState()}createDataChannel(e){return this.peer.createDataChannel(e)}async getSDPOffer(){const e=await this.peer.createOffer();return await this.peer.setLocalDescription(e),e}async sendSDPOffer(e,t){const o=await fetch("/session/sdp/"+e,{method:"POST",body:btoa(JSON.stringify(t))}),i=await o.text();return JSON.parse(atob(i))}async ConnectToSession(e){const t=await this.getSDPOffer(),o=await this.sendSDPOffer(e,t);await this.peer.setRemoteDescription(o)}}const l=class{constructor(t){e(this,t),this.VideoID="",this.AudioID="",this.IsSidebar=!0,this.IsDeviceSelection=!0,this.IsDebug=!0,this.MediaManager=new n}componentDidLoad(){}openDeviceSelection(){this.IsDeviceSelection=!0}closeDeviceSelection(e){e.detail&&(e.preventDefault(),this.AudioID=e.detail.audio,this.VideoID=e.detail.video,this.IsDeviceSelection=!1,this.StartAsync())}toggleSidebar(){this.IsSidebar=!this.IsSidebar}toggleDebug(){this.IsDebug=!this.IsDebug}async StartAsync(){if(this.SessionId){const e=new s(this.videoElement);e.ListenOnNewSessionState(e=>{this.SessionState=e});const t=await this.MediaManager.getMediaStream(this.AudioID,this.VideoID);t.getTracks().forEach(o=>e.AddTrack(o,t)),await e.ConnectToSession(this.SessionId)}}render(){return t(o,null,this.IsDeviceSelection?t("gogo-video-device-selection",{onClose:e=>{this.closeDeviceSelection(e)}}):null,t("div",{class:"video-box"},t("div",{class:"video-wrapper"},t("div",{class:"overlay top"},t("div",{class:"toolbar"},t("button",{type:"button",onClick:()=>this.toggleDebug(),class:"green"},"Debug"),t("button",{type:"button",onClick:()=>this.toggleSidebar(),class:"blue"},"Info"))),this.IsDebug?t("gogo-video-debug",null):null,t("div",{class:"video-viewer"},t("video",{ref:e=>this.videoElement=e,autoplay:!0,playsinline:!0})),this.IsSidebar&&this.SessionState?t("gogo-video-sidebar",{state:this.SessionState}):null,t("div",{class:"overlay bottom"},t("div",{class:"toolbar"},t("button",{type:"button",class:"red"},"Close"))))))}};l.style='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none;padding:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";line-height:1.5;}*,::before,::after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e2e8f0;}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder,textarea::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:#a0aec0}input::placeholder,textarea::placeholder{color:#a0aec0}button,[role="button"]{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}:host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;height:100%}.video-box{width:100%;background-color:#000;border-color:transparent;border-bottom-left-radius:0.5rem;border-bottom-right-radius:0.5rem;-webkit-box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}.video-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;height:100%}.overlay{background-color:rgba(0, 0, 0, .7);position:absolute;left:0;right:0}.overlay button{font-size:0.75rem;font-weight:700;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem;border-radius:9999px;color:#fff}.overlay button.green{background-color:#48bb78}.overlay button.green:hover{background-color:#2f855a}.overlay button.blue{background-color:#4299e1}.overlay button.blue:hover{background-color:#2b6cb0}.overlay button.red{background-color:#f56565}.overlay button.red:hover{background-color:#c53030}.overlay .toolbar{padding:0.5rem}.overlay.top{top:0;width:60%;border-top-left-radius:0.5rem;border-top-right-radius:0.5rem;z-index:10}.overlay.bottom{bottom:0;width:60%;border-bottom-left-radius:0.5rem;border-bottom-right-radius:0.5rem;z-index:10}.video-viewer{width:60%;height:100%;border-radius:0.5rem}.video-viewer video{height:100%;width:100%;border-radius:0.5rem}';const d=class{constructor(t){e(this,t)}render(){return t(o,null,t("table",null,t("tbody",null,t("tr",null,t("td",null,"test")))))}};d.style='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none;padding:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";line-height:1.5;}*,::before,::after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e2e8f0;}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder,textarea::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:#a0aec0}input::placeholder,textarea::placeholder{color:#a0aec0}button,[role="button"]{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}:host{position:absolute;top:0;left:0;right:0;z-index:1;margin-left:0.75rem;margin-top:3rem;border-radius:0.25rem}table{color:#fff;font-size:0.75rem}';const b=class{constructor(t){e(this,t),this.MediaManager=new n,this.AudioDevices=[],this.VideoDevices=[],this.devices={video:"",audio:""},this.close=i(this,"close",7)}componentDidLoad(){this.loadDevices()}async loadDevices(){this.AudioDevices=await this.MediaManager.getAudioDevicesAsync(),this.VideoDevices=await this.MediaManager.getVideoDevicesAsync()}setVideoDevice(e){this.devices.video=e}setAudioDevice(e){this.devices.audio=e}closeHandler(){this.close.emit(this.devices)}OnModalClose(){this.closeHandler()}render(){return t(o,null,t("gogo-video-modal",{onClose:()=>{this.OnModalClose()},header:"Devices"},t("div",null,t("label",null,"Video Device"),t("select",{onInput:e=>this.setVideoDevice(e.target.value)},this.VideoDevices.map(e=>t("option",{selected:this.devices.video===e.deviceId,value:e.deviceId},e.label||e.deviceId||"Unknown")))),t("div",null,t("label",null,"Audio Device"),t("select",{onInput:e=>this.setAudioDevice(e.target.value)},this.AudioDevices.map(e=>t("option",{selected:this.devices.audio===e.deviceId,value:e.deviceId},e.label||e.deviceId||"Unknown"))))))}};b.style='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none;padding:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";line-height:1.5;}*,::before,::after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e2e8f0;}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder,textarea::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:#a0aec0}input::placeholder,textarea::placeholder{color:#a0aec0}button,[role="button"]{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}:host{display:block}.select-box{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-bottom:1.5rem}.select-box-wrapper{display:inline-block;position:relative}select{display:block;width:100%;background-color:#fff;border-width:1px;border-color:#cbd5e0;padding-left:1rem;padding-right:1rem;padding-top:0.5rem;padding-bottom:0.5rem;padding-right:2rem;border-radius:0.25rem;-webkit-box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);box-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);line-height:1.25}select:hover{border-color:#a0aec0}select:focus{outline:0;-webkit-box-shadow:0 0 0 3px rgba(66, 153, 225, 0.5);box-shadow:0 0 0 3px rgba(66, 153, 225, 0.5)}label{display:block;color:#4a5568;font-weight:700;padding-right:1rem}';const p=class{constructor(t){e(this,t),this.close=i(this,"close",7)}closeHandler(){this.close.emit()}render(){return t(o,null,t("div",{class:"modal"},t("div",{class:"modal-overlay"}),t("div",{class:"modal-container"},t("div",{class:"modal-content"},t("div",{class:"modal-title"},this.header),t("div",{class:"body"},t("slot",null)),t("div",{class:"modal-footer"},t("button",{type:"button",onClick:()=>{this.closeHandler()},class:"indigo"},"Ok"))))))}};p.style='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none;padding:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";line-height:1.5;}*,::before,::after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e2e8f0;}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder,textarea::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:#a0aec0}input::placeholder,textarea::placeholder{color:#a0aec0}button,[role="button"]{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}:host{display:block}.modal{-webkit-transition:opacity 0.25s ease;transition:opacity 0.25s ease;z-index:2;position:fixed;width:100%;height:100%;top:0;left:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.modal-overlay{position:absolute;width:100%;height:100%;background-color:#1a202c;opacity:0.5}.modal-container{background-color:#fff;width:91.666667%;margin-left:auto;margin-right:auto;border-radius:0.25rem;-webkit-box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);z-index:50;overflow-y:auto}.modal-content{padding-top:1rem;padding-bottom:1rem;text-align:left;padding-left:1.5rem;padding-right:1.5rem}.modal-footer{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;padding-top:0.5rem}.modal-title{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;padding-bottom:0.75rem;font-size:1.5rem;font-weight:700}.modal button{font-size:0.75rem;font-weight:700;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem;border-radius:9999px;color:#fff}.modal button.indigo{background-color:#667eea}.modal button.indigo:hover{background-color:#4c51bf}.modal button.gray{background-color:#a0aec0}.modal button.gray:hover{background-color:#4a5568}body.modal-active{overflow-x:hidden;overflow-y:visible !important}';const c=class{constructor(t){e(this,t),this.activeSection="Users",this.users=[]}componentDidLoad(){this.state&&this.stateChanged(this.state)}stateChanged(e){this.users=e.Users}render(){return t(o,null,t("ul",null,t("li",null,t("a",{class:"Users"==this.activeSection?"active":null,onClick:()=>{this.activeSection="Users"}},"Users")),t("li",null,t("a",{class:"Chat"==this.activeSection?"active":null,onClick:()=>{this.activeSection="Chat"}},"Chat"))),"Users"==this.activeSection?t("gogo-video-sidebar-section",{name:"Users"},t("table",null,t("thead",null,t("tr",null,t("th",null,"ID"),t("th",null,"Name"))),t("tbody",null,this.users.map(e=>t("tr",null,t("td",null,e.ID),t("td",null,e.Name))),0==this.users.length?t("tr",null,t("td",{class:"center",colSpan:2},"No Data")):null))):null)}static get watchers(){return{state:["stateChanged"]}}};c.style='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none;padding:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";line-height:1.5;}*,::before,::after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e2e8f0;}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder,textarea::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:#a0aec0}input::placeholder,textarea::placeholder{color:#a0aec0}button,[role="button"]{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}:host{background-color:#1a202c;color:#fff;width:40%;border-bottom-right-radius:0.5rem}table{width:100%;table-layout:auto}th{color:#cbd5e0;text-align:left}tr .center{text-align:center}ul{display:-ms-flexbox;display:flex;border-color:#2d3748;border-bottom-width:1px}li{margin-bottom:-1px;margin-right:0.25rem}li:first a{background-color:#2d3748;display:inline-block;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem;color:#cbd5e0;cursor:pointer;border-left-width:0;border-top-width:1px;border-right-width:1px;border-color:transparent}li a{background-color:#2d3748;display:inline-block;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem;color:#cbd5e0;cursor:pointer;border-left-width:1px;border-top-width:1px;border-right-width:1px;border-color:transparent}li a:hover{color:#718096;text-decoration:underline}li a.active{border-color:#4a5568;border-top-left-radius:0.25rem;border-top-right-radius:0.25rem;padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;padding-right:1rem;color:#718096}';const u=class{constructor(t){e(this,t)}render(){return t(o,null,t("section",null,t("div",{class:"body"},t("slot",null))))}};u.style='/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%;}body{margin:0}main{display:block}h1{font-size:2em;margin:0.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible;}pre{font-family:monospace, monospace;font-size:1em;}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace, monospace;font-size:1em;}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0;}button,input{overflow:visible}button,select{text-transform:none}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:0.35em 0.75em 0.625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal;}progress{vertical-align:baseline}textarea{overflow:auto}[type="checkbox"],[type="radio"]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0;}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px;}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit;}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}button{background-color:transparent;background-image:none;padding:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}fieldset{margin:0;padding:0}ol,ul{list-style:none;margin:0;padding:0}html{font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";line-height:1.5;}*,::before,::after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e2e8f0;}hr{border-top-width:1px}img{border-style:solid}textarea{resize:vertical}input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{color:#a0aec0}input::-moz-placeholder,textarea::-moz-placeholder{color:#a0aec0}input:-ms-input-placeholder,textarea:-ms-input-placeholder{color:#a0aec0}input::-ms-input-placeholder,textarea::-ms-input-placeholder{color:#a0aec0}input::placeholder,textarea::placeholder{color:#a0aec0}button,[role="button"]{cursor:pointer}table{border-collapse:collapse}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}pre,code,kbd,samp{font-family:Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}:host{display:block}section{padding:0.5rem;border-style:solid;border-bottom-width:2px;border-color:#2d3748}.header{width:100%;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding-top:0.5rem;padding-bottom:0.5rem}.body{width:100%;color:#a0aec0}';export{l as gogo_video,d as gogo_video_debug,b as gogo_video_device_selection,p as gogo_video_modal,c as gogo_video_sidebar,u as gogo_video_sidebar_section}