text: (function(t){function e(e){for(var r,o,a=e[0],c=e[1],u=e[2],d=0,m=[];d<a.length;d++)o=a[d],Object.prototype.hasOwnProperty.call(s,o)&&s[o]&&m.push(s[o][0]),s[o]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(t[r]=c[r]);l&&l(e);while(m.length)m.shift()();return i.push.apply(i,u||[]),n()}function n(){for(var t,e=0;e<i.length;e++){for(var n=i[e],r=!0,a=1;a<n.length;a++){var c=n[a];0!==s[c]&&(r=!1)}r&&(i.splice(e--,1),t=o(o.s=n[0]))}return t}var r={},s={app:0},i=[];function o(e){if(r[e])return r[e].exports;var n=r[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=t,o.c=r,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="";var a=window["webpackJsonp"]=window["webpackJsonp"]||[],c=a.push.bind(a);a.push=e,a=a.slice();for(var u=0;u<a.length;u++)e(a[u]);var l=c;i.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"2cf8":function(t,e,n){"use strict";var r=n("dd90"),s=n.n(r);s.a},4360:function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"editing",(function(){return g}));var s={};n.r(s),n.d(s,"activeView",(function(){return v}));var i={};n.r(i),n.d(i,"editing",(function(){return b})),n.d(i,"showSettings",(function(){return w}));var o={};n.r(o),n.d(o,"getPanelsFor",(function(){return k}));var a={};n.r(a),n.d(a,"addPanel",(function(){return R})),n.d(a,"removePanel",(function(){return P})),n.d(a,"setSetting",(function(){return $}));var c={};n.r(c),n.d(c,"addPanel",(function(){return E})),n.d(c,"removePanel",(function(){return A})),n.d(c,"setSetting",(function(){return q})),n.d(c,"resetLayout",(function(){return D}));var u={};n.r(u),n.d(u,"authenticate",(function(){return et})),n.d(u,"connect",(function(){return rt})),n.d(u,"disconnect",(function(){return it}));var l={};n.r(l),n.d(l,"connectionReady",(function(){return ot}));var d={};n.r(d),n.d(d,"state",(function(){return ut})),n.d(d,"actions",(function(){return lt})),n.d(d,"mutations",(function(){return dt})),n.d(d,"getters",(function(){return mt}));var m={};n.r(m),n.d(m,"connectionStarting",(function(){return Zt})),n.d(m,"connectionStarted",(function(){return te})),n.d(m,"connectionAuthNeeded",(function(){return ee})),n.d(m,"connectionReady",(function(){return ne})),n.d(m,"connectionClosed",(function(){return re}));n("2ca0");var f=n("0e44"),p=n("2b0e"),h=n("2f62");function g(t,e){var n=t.commit;n("editing",{editing:e})}function v(t){return"ok"===t.obs.connection?"dashboard":"home"}function b(t,e){var n=e.editing;t.editing=n}function w(t,e){t.showingSettings=e}n("13d5");var x=n("5530"),_=[function(t){return Object(x["a"])(Object(x["a"])({},t),{},{theme:"default"})}],y=1,S=function(t){var e=t.state.settings.version||0;if(e<y){var n=_.reduce((function(e,n){return n(e,t)}),t.state.settings);n.version=y,t.replaceState(Object(x["a"])(Object(x["a"])({},t.state),{},{settings:n}))}},O=n("77c1"),j=n.n(O);function k(t){return function(e){return j()(t.panels,(function(t){return t.parent===e}))}}n("d81d"),n("b64b"),n("d3b7"),n("3ca3"),n("ddb0"),n("96cf");var C=n("1da1");function R(t,e){var n=t.commit;n("addPanel",e)}function P(t,e){return T.apply(this,arguments)}function T(){return T=Object(C["a"])(regeneratorRuntime.mark((function t(e,n){var r,s,i,o,a,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=e.commit,s=e.dispatch,i=e.getters,o=n.id,a=i.getPanelsFor(o),c=Object.keys(a),!(c.length>0)){t.next=7;break}return t.next=7,Promise.all(c.map((function(t){return s("removePanel",{id:t})})));case 7:r("removePanel",{id:o});case 8:case"end":return t.stop()}}),t)}))),T.apply(this,arguments)}function $(t,e){var n=t.commit;n("setSetting",e)}function E(t,e){var n=e.type,r=e.parent,s=e.settings,i=t.nextId++;p["a"].set(t.panels,i,{type:n,parent:r,settings:s})}function A(t,e){var n=e.id;p["a"]["delete"](t.panels,n)}function q(t,e){var n=e.id,r=e.key,s=e.value;p["a"].set(t.panels[n].settings,r,s)}function D(t){t.nextId=3,t.panels={1:{type:"Grid",parent:null,settings:{direction:"row"}},2:{type:"Scenes",parent:1,settings:{}}},t.tabs=[{id:1,name:"Home",root:1}]}var F={nextId:1,panels:{},tabs:[]},I={namespaced:!0,state:F,getters:o,actions:a,mutations:c},z={state:{defaultHost:"",defaultPort:4444,hasEdited:!1,theme:"default",version:1},mutations:{set:function(t,e){var n=e.key,r=e.value;t[n]=r}},namespaced:!0},L=(n("99af"),n("c0b6"),n("d4ec")),B=n("bee2"),N=n("262e"),W=n("2caf"),H=n("ba10"),G=n.n(H),M=n("a255"),V=n.n(M),U=function(t){Object(N["a"])(n,t);var e=Object(W["a"])(n);function n(){var t;return Object(L["a"])(this,n),t=e.call(this),t.debug=function(){},t._connecting=null,t._idCounter=1,t._promises={},t._socket=void 0,t}return Object(B["a"])(n,[{key:"connect",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"localhost",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4444;return this._socket&&(this._socket.addEventListener("open",null),this._socket.addEventListener("message",null),this._socket.addEventListener("error",null),this._socket.onclose=null,this._socket.close()),new Promise((function(r,s){t._connecting={resolve:r,reject:s};var i=e.startsWith("ws://")||e.startsWith("wss://")?"":"ws://",o=i+e+(n?":"+n:"");t._socket=new WebSocket(o),t._socket.addEventListener("open",J.bind(t)),t._socket.addEventListener("message",X.bind(t)),t._socket.addEventListener("error",Y.bind(t)),t._socket.onclose=Q.bind(t)}))}},{key:"close",value:function(){this._socket&&this._socket.close()}},{key:"send",value:function(t){var e=this;return new Promise((function(n,r){if(!e._socket)throw new Error("Connection isn't opened");var s=e._nextID();e._promises[s]={resolve:n,reject:r},t["message-id"]=s,e.debug("send",t),e._socket.send(JSON.stringify(t))}))}},{key:"login",value:function(){var t=Object(C["a"])(regeneratorRuntime.mark((function t(e){var n,r,s,i,o,a,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.send({"request-type":"GetAuthRequired"});case 2:if(n=t.sent,r=n.authRequired,s=n.salt,i=n.challenge,r){t.next=9;break}return this.emit("socket.ready"),t.abrupt("return",!0);case 9:if(e){t.next=11;break}throw new Error("Password Required");case 11:return o=new V.a,o.update(e),o.update(s),a=new V.a,a.update(o.digest("base64")),a.update(i),c=a.digest("base64"),t.next=20,this.send({"request-type":"Authenticate",auth:c});case 20:return this.emit("socket.ready"),t.abrupt("return",!0);case 22:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()},{key:"_nextID",value:function(){return String(this._idCounter++)}}]),n}(G.a);function J(){var t=this;if(this._connecting){var e=this._connecting,n=e.resolve,r=e.reject;this.send({"request-type":"GetAuthRequired"}).then((function(e){var r=e.authRequired;n({authRequired:r}),r?t.emit("socket.auth"):t.emit("socket.ready")}),(function(t){return r(t)})),this._connecting=null}this.emit("socket.open")}function X(t){var e;try{e=JSON.parse(t.data)}catch(r){this.emit("error",r)}if(e){this.debug("receive",e);var n=e["update-type"];n?tt.call(this,n,e):Z.call(this,e["message-id"],e)}}function Y(t){this.emit("socket.error",t)}var K={1006:"Server not reachable"};function Q(t){if(this._connecting){var e="Unknown Error";t.code in K?e=K[t.code]:t.message&&(e=t.message);var n=new Error(e);n.event=t,this._connecting.reject(n),this._connecting=null}this.emit("socket.close")}function Z(t,e){var n=this._promises[t];n?("error"===e.status?n.reject(new Error(e.error)):n.resolve(e),delete this._promises[t]):"error"===e.status&&this.emit("error",e.error,e)}function tt(t,e){this.emit("event",e),this.emit(t,e)}function et(t,e){return nt.apply(this,arguments)}function nt(){return nt=Object(C["a"])(regeneratorRuntime.mark((function t(e,n){var r,s,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.getters.client,s=n.password,t.next=4,r.login(s);case 4:return i=t.sent,t.abrupt("return",i);case 6:case"end":return t.stop()}}),t)}))),nt.apply(this,arguments)}function rt(t,e){return st.apply(this,arguments)}function st(){return st=Object(C["a"])(regeneratorRuntime.mark((function t(e,n){var r,s,i,o,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.getters.client,s=e.commit,i=n.host,o=n.port,s("connectionStarting"),t.next=5,r.connect(i,o);case 5:return a=t.sent,t.abrupt("return",a);case 7:case"end":return t.stop()}}),t)}))),st.apply(this,arguments)}function it(t){var e=t.getters.client;e.close()}function ot(t){return"ok"===t.connection}n("7db0"),n("b0c0");var at={state:{current:null,list:[]},actions:{"connection/closed":function(t){var e=t.commit;e("scenes/reset")},"connection/ready":function(t){return Object(C["a"])(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.dispatch,e.abrupt("return",n("scenes/reload"));case 2:case"end":return e.stop()}}),e)})))()},"scenes/reload":function(t){return Object(C["a"])(regeneratorRuntime.mark((function e(){var n,r,s,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,r=t.getters.client,e.next=3,r.send({"request-type":"GetSceneList"});case 3:s=e.sent,i=s["current-scene"],o=s.scenes,n("scenes/list",{scenes:o}),n("scenes/current",{"scene-name":i});case 8:case"end":return e.stop()}}),e)})))()},"scenes/current":function(t,e){var n=t.getters.client,r=e.name;return n.send({"request-type":"SetCurrentScene","scene-name":r})},"sources/render":function(t,e){return Object(C["a"])(regeneratorRuntime.mark((function n(){var r,s,i,o;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.getters.client,s=e.scene,i=e.source,o=e.render,n.abrupt("return",r.send({"request-type":"SetSourceRender","scene-name":s,source:i,render:o}));case 3:case"end":return n.stop()}}),n)})))()},"event/SwitchScenes":function(t,e){var n=t.commit;n("scenes/current",e)},"event/ScenesChanged":function(t){var e=t.dispatch;return e("scenes/reload")},"event/SceneItemAdded":function(t){var e=t.dispatch;return e("scenes/reload")},"event/SceneItemRemoved":function(t){var e=t.dispatch;return e("scenes/reload")},"event/SceneItemVisibilityChanged":function(t,e){var n=t.commit;n("scenes/itemVisibilityChanged",e)}},getters:{currentScene:function(t){return t.list.find((function(e){return e.name===t.current}))}},mutations:{"scenes/current":function(t,e){var n=e["scene-name"];t.current=n},"scenes/list":function(t,e){var n=e.scenes;t.list=n},"scenes/reset":function(t){t.current=null,t.list=[]},"scenes/itemVisibilityChanged":function(t,e){var n=e["scene-name"],r=e["item-name"],s=e["item-visible"],i=t.list.find((function(t){return t.name===n}));if(i){var o=i.sources.find((function(t){return t.name===r}));o&&(o.render=s)}}}},ct=(n("4de4"),n("4160"),n("159b"),n("3835")),ut={list:[],types:{}},lt={"connection/closed":function(t){var e=t.commit;e("sources/reset")},"connection/ready":function(t){return Object(C["a"])(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.dispatch,e.abrupt("return",n("sources/reload"));case 2:case"end":return e.stop()}}),e)})))()},"sources/reload":function(t){return Object(C["a"])(regeneratorRuntime.mark((function e(){var n,r,s,i,o,a,c,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,r=t.dispatch,s=t.getters,i=s.client,e.next=4,Promise.all([i.send({"request-type":"GetSourcesList"}),i.send({"request-type":"GetSourceTypesList"})]);case 4:return o=e.sent,a=Object(ct["a"])(o,2),c=a[0].sources,u=a[1].types,n("sources/types",u),n("sources/list",c),e.next=12,Promise.all(s["sources/audioSources"].map((function(t){return r("sources/updateSourceVolume",t.name)})));case 12:case"end":return e.stop()}}),e)})))()},"sources/mute":function(t,e){return Object(C["a"])(regeneratorRuntime.mark((function n(){var r,s,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.getters.client,s=e.source,i=e.mute,n.next=4,r.send({"request-type":"ToggleMute",source:s,mute:i});case 4:case"end":return n.stop()}}),n)})))()},"sources/volume":function(t,e){return Object(C["a"])(regeneratorRuntime.mark((function n(){var r,s,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.getters.client,s=e.source,i=e.volume,n.next=4,r.send({"request-type":"SetVolume",source:s,volume:i});case 4:case"end":return n.stop()}}),n)})))()},"sources/updateSourceVolume":function(t,e){return Object(C["a"])(regeneratorRuntime.mark((function n(){var r,s,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return r=t.commit,s=t.getters.client,n.next=3,s.send({"request-type":"GetVolume",source:e});case 3:i=n.sent,r("sources/updateAudio",i);case 5:case"end":return n.stop()}}),n)})))()},"event/SourceMuteStateChanged":function(t,e){return Object(C["a"])(regeneratorRuntime.mark((function n(){var r,s,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=t.commit,s=e.sourceName,i=e.muted,r("sources/updateAudio",{name:s,muted:i});case 3:case"end":return n.stop()}}),n)})))()},"event/SourceVolumeChanged":function(t,e){return Object(C["a"])(regeneratorRuntime.mark((function n(){var r,s,i;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:r=t.commit,s=e.sourceName,i=e.volume,r("sources/updateAudio",{name:s,volume:i});case 3:case"end":return n.stop()}}),n)})))()}},dt={"sources/list":function(t,e){t.list=e.map((function(t){return Object(x["a"])(Object(x["a"])({},t),{},{volume:void 0,muted:void 0})}))},"sources/reset":function(t){t.list=[],t.types={}},"sources/types":function(t,e){t.types={},e.forEach((function(e){t.types[e.typeId]=e}))},"sources/updateAudio":function(t,e){var n=e.muted,r=e.name,s=e.volume,i=t.list.find((function(t){return t.name===r}));i&&(void 0!==n&&(i.muted=n),void 0!==s&&(i.volume=s))}},mt={"sources/audioSources":function(t){return t.list.filter((function(e){return ft(e,t.types)}))}};function ft(t,e){var n=e[t.typeId];return n&&n.caps&&n.caps.hasAudio}function pt(t){var e=t.commit;e("stream/reset")}function ht(t){var e=t.dispatch,n=t.getters.client;return n.send({"request-type":"SetHeartbeat",enable:!0}),e("stream/reload")}function gt(t,e){var n=t.commit;n("stream/heartbeat",e)}function vt(t,e){var n=t.commit;n("stream/status",e)}function bt(t){var e=t.commit;e("stream/set/recording","starting")}function wt(t){var e=t.commit;e("stream/set/recording",!0)}function xt(t){var e=t.commit;e("stream/set/recording","stopping")}function _t(t){var e=t.commit;e("stream/set/recording",!1)}function yt(t){var e=t.commit;e("stream/set/streaming","starting")}function St(t){var e=t.commit;e("stream/set/streaming",!0)}function Ot(t){var e=t.commit;e("stream/set/streaming","stopping")}function jt(t){var e=t.commit;e("stream/set/streaming",!1)}function kt(t,e){return Ct.apply(this,arguments)}function Ct(){return Ct=Object(C["a"])(regeneratorRuntime.mark((function t(e,n){var r,s,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.getters.client,s=n.status,i=s?"StartStreaming":"StopStreaming",t.next=5,r.send({"request-type":i});case 5:case"end":return t.stop()}}),t)}))),Ct.apply(this,arguments)}function Rt(t,e){return Pt.apply(this,arguments)}function Pt(){return Pt=Object(C["a"])(regeneratorRuntime.mark((function t(e,n){var r,s,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=e.getters.client,s=n.status,i=s?"StartRecording":"StopRecording",t.next=5,r.send({"request-type":i});case 5:case"end":return t.stop()}}),t)}))),Pt.apply(this,arguments)}function Tt(t){return $t.apply(this,arguments)}function $t(){return $t=Object(C["a"])(regeneratorRuntime.mark((function t(e){var n,r,s,i,o,a,c;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.commit,r=e.getters.client,t.next=3,r.send({"request-type":"GetStreamingStatus"});case 3:s=t.sent,i=s.streaming,o=s.recording,a=s["stream-timecode"],c=s["rec-timecode"],n("stream/set/streaming",i),n("stream/set/recording",o),n("stream/set/streamTimecode",a),n("stream/set/recTimecode",c);case 12:case"end":return t.stop()}}),t)}))),$t.apply(this,arguments)}var Et={"connection/closed":pt,"connection/ready":ht,"event/Heartbeat":gt,"event/RecordingStarted":wt,"event/RecordingStarting":bt,"event/RecordingStopped":_t,"event/RecordingStopping":xt,"event/StreamStarted":St,"event/StreamStarting":yt,"event/StreamStopped":jt,"event/StreamStopping":Ot,"event/StreamStatus":vt,"stream/streaming":kt,"stream/recording":Rt,"stream/reload":Tt},At=n("e0eb"),qt=Object(At["c"])("bytesPerSec"),Dt=Object(At["c"])("fps"),Ft=Object(At["c"])("kbitsPerSec"),It=Object(At["c"])("numDroppedFrames"),zt=Object(At["c"])("numTotalFrames"),Lt=Object(At["c"])("recording"),Bt=Object(At["c"])("recTimecode"),Nt=Object(At["c"])("strain"),Wt=Object(At["c"])("streaming"),Ht=Object(At["c"])("streamTimecode"),Gt=Object(At["c"])("totalStreamTime");function Mt(t){Wt(t,!1),Lt(t,!1),qt(t,0),Ft(t,0),Nt(t,0),Gt(t,0),zt(t,0),It(t,0),Dt(t,0)}function Vt(t,e){Wt(t,e.streaming),Lt(t,e.recording),qt(t,e["bytes-per-sec"]),Ft(t,e["kbits-per-sec"]),Nt(t,e.strain),Gt(t,e["total-stream-time"]),zt(t,e["num-total-frames"]),It(t,e["num-dropped-frames"]),Dt(t,e.fps),Ht(t,e["stream-timecode"]),Bt(t,e["rec-timecode"])}function Ut(t,e){var n=e.stats;Wt(t,e.streaming),Lt(t,e.recording),Dt(t,n.fps),Bt(t,e["rec-timecode"]),Ht(t,e["stream-timecode"])}var Jt={"stream/reset":Mt,"stream/status":Vt,"stream/heartbeat":Ut,"stream/set/recording":Lt,"stream/set/recTimecode":Bt,"stream/set/streaming":Wt,"stream/set/streamTimecode":Ht},Xt={state:{streaming:!1,recording:!1,bytesPerSec:0,kbitsPerSec:0,strain:0,totalStreamTime:0,streamTimecode:0,recTimecode:0,numTotalFrames:0,numDroppedFrames:0,fps:0},actions:Et,getters:{recordingText:function(t){return!0===t.recording?t.recTimecode:!1===t.recording?"Disabled":t.recording},streamingText:function(t){return!0===t.streaming?t.streamTimecode:!1===t.streaming?"Offline":t.streaming}},mutations:Jt},Yt={state:{current:null,list:[]},actions:{"connection/closed":function(t){var e=t.commit;e("transitions/reset")},"connection/ready":function(t){var e=t.dispatch;return e("transitions/reload")},"transitions/reload":function(t){return Object(C["a"])(regeneratorRuntime.mark((function e(){var n,r,s,i,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,r=t.getters.client,e.next=3,r.send({"request-type":"GetTransitionList"});case 3:s=e.sent,i=s["current-transition"],o=s.transitions,n("transitions/list",{transitions:o}),n("transitions/current",{"current-transition":i});case 8:case"end":return e.stop()}}),e)})))()},"transitions/current":function(t,e){var n=t.getters.client,r=e.name;return n.send({"request-type":"SetCurrentTransition","transition-name":r})},"event/SwitchTransition":function(t,e){var n=t.commit;n("transitions/newcurrent",e)},"event/TransitionListChanged":function(t){var e=t.dispatch;return e("transitions/reload")},"event/TransitionBegin":function(){}},mutations:{"transitions/current":function(t,e){var n=e["current-transition"];t.current=n},"transitions/newcurrent":function(t,e){var n=e["transition-name"];t.current=n},"transitions/list":function(t,e){var n=e.transitions;t.list=n},"transitions/reset":function(t){t.current=null,t.list=[]}}},Kt={state:{list:[100,300,600,1e3,1500],current:null},actions:{"connection/closed":function(t){var e=t.commit;e("transitions/reset")},"connection/ready":function(t){var e=t.dispatch;return e("durations/reload")},"durations/reload":function(t){return Object(C["a"])(regeneratorRuntime.mark((function e(){var n,r,s,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,r=t.getters.client,e.next=3,r.send({"request-type":"GetTransitionDuration"});case 3:s=e.sent,i=s["transition-duration"],n("durations/current",{duration:i});case 6:case"end":return e.stop()}}),e)})))()},"durations/current":function(t,e){var n=t.getters.client,r=e.ms;return n.send({"request-type":"SetTransitionDuration",duration:r})},"event/TransitionDurationChanged":function(t,e){var n=t.commit;n("durations/durationChanged",e)}},mutations:{"durations/current":function(t,e){var n=e.duration;t.current=n},"durations/reset":function(t){t.list=[100,300,600,1e3,1500],t.current=null},"durations/durationChanged":function(t,e){var n=e["new-duration"];t.current=n}}},Qt={scenes:at,sources:d,stream:Xt,transitions:Yt,durations:Kt};function Zt(t){t.connection="connecting"}function te(t){t.connection="connected"}function ee(t){t.connection="auth"}function ne(t){t.connection="ok"}function re(t){t.connection=!1}var se={connection:!1},ie=function(t){var e=new U;t._obs=e,t.registerModule("obs",{namespaced:!0,state:se,actions:Object(x["a"])(Object(x["a"])({},u),{},{"connection/authNeeded":function(t){var e=t.commit;e("connectionAuthNeeded")},"connection/closed":function(t){var e=t.commit;e("connectionClosed")},"connection/ready":function(t){var e=t.commit;e("connectionReady")},"connection/started":function(t){var e=t.commit;e("connectionStarted")}}),mutations:m,getters:Object(x["a"])(Object(x["a"])({},l),{},{client:function(){return e}}),modules:Qt}),e.on("socket.open",(function(){return t.dispatch("obs/connection/started")})),e.on("socket.auth",(function(){return t.dispatch("obs/connection/authNeeded")})),e.on("socket.ready",(function(){return t.dispatch("obs/connection/ready")})),e.on("socket.close",(function(){return t.dispatch("obs/connection/closed")})),e.on("event",(function(e){t.dispatch("obs/event/".concat(e["update-type"]),e)}))};p["a"].use(h["b"]);var oe={editing:!1,showingSettings:!1},ae=new h["a"]({state:oe,getters:s,actions:r,mutations:i,modules:{layout:I,settings:z},plugins:[ie,Object(f["a"])({key:"obs-remote-tablet-vuex",filter:function(t){var e=t.type;return e.startsWith("layout")||e.startsWith("settings")},paths:["layout","settings"]}),S]});0===ae.state.layout.tabs.length&&ae.commit("layout/resetLayout");e["a"]=ae},"56d7":function(t,e,n){"use strict";n.r(e),function(t){n("e260"),n("e6cf"),n("cca6"),n("a79d");var e=n("2b0e"),r=(n("b75f"),n("4360")),s=n("7fe4"),i=new e["a"]({el:"#app",store:r["a"],render:function(t){return t(s["a"],{ref:"app"})}});t.app=i.$refs.app}.call(this,n("c8ba"))},7934:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"fixed inset-0 bg-overlay z-30 flex items-center justify-center",on:{click:function(e){return e.target!==e.currentTarget?null:t.$emit("close")}}},[n("div",{staticClass:"w-full md:w-2/5 bg-white text-gray-800 color-modal max-h-full overflow-y-auto",class:t.modalClass},[n("div",{staticClass:"p-4"},[n("div",{staticClass:"flex mb-4 justify-between items-start"},[n("h2",{staticClass:"text-2xl leading-none"},[t._t("title")],2),n("button",{staticClass:"bg-gray-400 hover:bg-gray-500 text-gray-800 leading-none text-center w-8 h-8 rounded-full",attrs:{title:"Close"},on:{click:function(e){return t.$emit("close")}}},[n("FontAwesomeIcon",{attrs:{icon:"times",size:"lg","fixed-width":""}})],1)]),t._t("default")],2)])])},s=[],i={props:{show:{type:Boolean,default:!0},wide:{type:Boolean,default:!1}},computed:{modalClass:function(t){var e=t.wide,n=[];return e&&n.push("md:w-4/5"),n}}},o=i,a=n("2877"),c=Object(a["a"])(o,r,s,!1,null,null,null);e["a"]=c.exports},"7fe4":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"w-full h-full overflow-hidden m-0 font-sans flex flex-col",class:"theme-"+t.theme},[n("TopBar"),n(t.activeView,{tag:"component",staticClass:"flex-auto overflow-hidden"}),t.showingSettings?n("Settings"):t._e()],1)},s=[],i=(n("96cf"),n("1da1")),o=n("5530"),a=n("2f62"),c=n("e0eb"),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex flex-col flex-1 items-stretch h-full overflow-hidden"},[n("div",{staticClass:"flex flex-col items-stretch flex-1 flex-grow h-full overflow-hidden",class:{"color-editing":t.editing}},t._l(t.tabs,(function(t){return n("tab",{key:t.id,attrs:{tab:t}})})),1)])},l=[],d=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex-auto flex flex-col items-stretch overflow-hidden h-full"},[t.rootPanel?n("Panel",{attrs:{id:t.tab.root,panel:t.rootPanel,depth:0}}):t._e()],1)},m=[],f=n("ad78"),p={components:{Panel:f["default"]},props:{tab:{type:Object,required:!0}},computed:Object(o["a"])({},Object(a["f"])("layout",{rootPanel:function(t){return t.panels[this.tab.root]}}))},h=p,g=n("2877"),v=Object(g["a"])(h,d,m,!1,null,null,null),b=v.exports,w={components:{Tab:b},computed:Object(o["a"])(Object(o["a"])({},Object(a["f"])(["editing"])),Object(a["f"])("layout",["tabs"]))},x=w,_=Object(g["a"])(x,u,l,!1,null,null,null),y=_.exports,S=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex overflow-y-auto flex-col"},[n("div",{staticClass:"flex flex-col md:flex-row max-w-5xl self-center"},[n("div",{staticClass:"connect-panel md:w-1/3 px-4 py-2"},[n("connect",{on:{"update:query":function(e){return t.urlArgs=e}}}),n("div",{staticClass:"card"},[t._m(0),n("div",{staticClass:"card-content"},[n("p",{staticClass:"mb-2 text-sm"},[t._v(" URLに#!autoがあれば自動ログインしてもらえます． ")]),n("label",{staticClass:"label"},[t._v("次のリンクをお気に入りに入れましょう！:")]),n("a",{staticClass:"block break-all mb-2",attrs:{href:t.exampleURL},on:{click:function(t){t.preventDefault()}}},[t._v(t._s(t.exampleURL))]),n("p",{staticClass:"text-sm"},[t._v(" パスワードをURLに加えるにはURLの最後に &password={password} を足します．全てのフィールドは & と = を含んではいけません． ")])])])],1),n("div",{staticClass:"md:w-2/3 px-4 py-2"},[n("h1",{staticClass:"text-3xl mb-2"},[t._v(" Monaca OBSリモコン ")]),t._m(1),t.showHTTPSWarning?n("div",{staticClass:"alert warning"},[n("h2",[t._v("HTTPSで接続されています！")]),n("p",[t._v("このプログラムの仕様でHTTPSを使用できません．何か言われるかもしれませんが "),n("a",{attrs:{href:t.httpURL}},[t._v("こっちのページに進んでください")])])]):t._e(),t._m(2),n("h2",{staticClass:"text-2xl mb-2"},[t._v(" バグや機能追加の要望 ")]),t._m(3)])])])},O=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card-title"},[n("h2",[t._v("自動ログイン")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",{staticClass:"mb-2"},[n("a",{attrs:{href:"https://obsproject.com/",target:"_blank"}},[t._v("OBS")]),t._v(" をWEBブラウザから操作します． ")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",{staticClass:"mb-2"},[t._v(" OBSリモコンを使うには "),n("a",{attrs:{href:"https://obsproject.com/forum/resources/websocket-plugin.466/",target:"_blank"}},[t._v("Websocket Plugin for OBS Studio")]),t._v("をインストールしなければなりません．このソフトは "),n("strong",[t._v("4.6.0")]),t._v(" 以降のバージョンに対応しています． ")])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("p",{staticClass:"mb-2"},[t._v(" 元ソフトの方へお願いします→ "),n("a",{attrs:{href:"https://github.com/t2t2/obs-tablet-remote/issues",target:"_blank"}},[t._v("GitHub Issues")])])}],j=(n("99af"),n("ac1f"),n("5319"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card"},[n("div",{staticClass:"card-title"},[n("h2",[t._v(t._s(t.needAuth?"Password Required":"接続"))])]),t.error?n("div",{staticClass:"alert error"},[t._v(" "+t._s(t.error.message)+" ")]):t._e(),n("div",{staticClass:"card-content"},[t.needAuth?t._e():n("form",{on:{submit:function(e){return e.preventDefault(),t.connect(e)}}},[n("div",{staticClass:"field"},[n("label",{staticClass:"label",attrs:{for:"connect-host"}},[t._v("ホスト（IPアドレス）")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.host,expression:"host"}],staticClass:"input",attrs:{id:"connect-host",type:"text",placeholder:"localhost (Current computer)"},domProps:{value:t.host},on:{input:function(e){e.target.composing||(t.host=e.target.value)}}})]),n("div",{staticClass:"field"},[n("label",{staticClass:"label",attrs:{for:"connect-port"}},[t._v(" ポート ")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.port,expression:"port"}],staticClass:"input",attrs:{id:"connect-port",type:"number",placeholder:"4444"},domProps:{value:t.port},on:{input:function(e){e.target.composing||(t.port=e.target.value)}}})]),n("div",{staticClass:"field"},[n("button",{staticClass:"button is-primary",attrs:{disabled:t.connecting},domProps:{textContent:t._s(t.connecting?"Connecting...":"Connect")}})])]),t.needAuth?n("form",{on:{submit:function(e){return e.preventDefault(),t.login(e)}}},[n("div",{staticClass:"field"},[n("label",{staticClass:"label",attrs:{for:"connect-password"}},[t._v("パスワード")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.password,expression:"password"}],staticClass:"input",attrs:{id:"connect-password",type:"password"},domProps:{value:t.password},on:{input:function(e){e.target.composing||(t.password=e.target.value)}}})]),n("div",{staticClass:"field"},[n("button",{staticClass:"button is-primary",attrs:{disabled:t.authenticating},domProps:{textContent:t._s(t.authenticating?"Checking...":"Log In")}})])]):t._e()])])}),k=[],C=(n("a9e3"),n("25eb"),n("0d03"),n("d3b7"),n("25f0"),0),R={beforeCreate:function(){this.uuid=C.toString(),C+=1}},P={mixins:[R],data:function(){var t={authenticating:!1,connecting:!1,error:null,host:"",password:"",port:4444},e=Object(c["a"])();return e.host?t.host=e.host:t.host=this.$store.state.settings.defaultHost,e.port?t.port=Number.parseInt(e.port,10):t.port=this.$store.state.settings.defaultPort,e.password&&(t.password=e.password),t},computed:Object(o["a"])(Object(o["a"])({},Object(a["f"])("obs",{needAuth:function(t){return"auth"===t.connection}})),{},{urlified:function(){var t="";return this.host&&(t+="&host="+this.host),this.port&&4444!==this.port&&(t+="&port="+this.port),t}}),watch:{urlified:{handler:function(t){this.$emit("update:query",t)},immediate:!0}},methods:{connect:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.connecting=!0,t.error=null,e.prev=2,e.next=5,t.$store.dispatch("obs/connect",{host:t.host.length>0?t.host:void 0,port:t.port});case 5:t.host.length>0&&t.$store.commit("settings/set",{key:"defaultHost",value:t.host}),t.port&&t.$store.commit("settings/set",{key:"defaultPort",value:t.port}),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](2),t.error=e.t0;case 12:t.connecting=!1;case 13:case"end":return e.stop()}}),e,null,[[2,9]])})))()},login:function(){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(0!==t.password.length){e.next=2;break}return e.abrupt("return");case 2:return t.authenticating=!0,t.error=null,e.prev=4,e.next=7,t.$store.dispatch("obs/authenticate",{password:t.password});case 7:e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](4),t.error=e.t0;case 12:t.authenticating=!1;case 13:case"end":return e.stop()}}),e,null,[[4,9]])})))()}}},T=P,$=Object(g["a"])(T,j,k,!1,null,null,null),E=$.exports,A={components:{Connect:E},data:function(){return{urlArgs:""}},computed:{exampleURL:function(){return"".concat(location.origin+location.pathname,"#!auto").concat(this.urlArgs)},httpURL:function(){return location.href.replace("https://","http://")},showHTTPSWarning:function(){return"https:"===location.protocol}}},q=A,D=(n("2cf8"),Object(g["a"])(q,S,O,!1,null,null,null)),F=D.exports,I=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("overlay",{attrs:{wide:""},on:{close:function(e){return t.showSettings(!1)}},scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" 総合設定 ")]},proxy:!0}])},[n("div",{staticClass:"flex -mx-2"},[n("div",{staticClass:"w-1/2 px-2"},[n("div",{staticClass:"field"},[n("label",{staticClass:"label",attrs:{for:"settings-theme"}},[t._v("テーマ")]),n("select",{directives:[{name:"model",rawName:"v-model",value:t.theme,expression:"theme"}],staticClass:"select",attrs:{id:"settings-theme"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.theme=e.target.multiple?n:n[0]}}},[n("option",{attrs:{value:"default"}},[t._v(" 標準 ")]),n("option",{attrs:{value:"dark-blue"}},[t._v(" ダーク・ブルー ")]),n("option",{attrs:{value:"pure"}},[t._v(" ピュア ")])])])]),n("div",{staticClass:"w-1/2 px-2"},[n("h3",{staticClass:"text-xl mb-2"},[t._v(" 一考すべきゾーン ")]),n("button",{staticClass:"button is-primary",on:{click:t.askForReset}},[t._v(" レイアウトを元に戻す ")])])])])},z=[],L=n("7934"),B={components:{Overlay:L["a"]},computed:Object(o["a"])(Object(o["a"])({},Object(a["f"])(["settings"])),{},{theme:{get:function(t){var e=t.settings;return e.theme},set:function(t){this.setSetting({key:"theme",value:t})}}}),methods:Object(o["a"])(Object(o["a"])(Object(o["a"])({askForReset:function(){confirm("Are you sure you want to reset the layout?")&&this.resetLayout()}},Object(a["e"])(["showSettings"])),Object(a["e"])("settings",{setSetting:"set"})),Object(a["e"])("layout",["resetLayout"]))},N=B,W=Object(g["a"])(N,I,z,!1,null,null,null),H=W.exports,G=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex-none color-ui h-8 md:h-12 px-2 flex items-center justify-between leading-none"},[n("div",{staticClass:"mx-2"},[t._v(" Monaca OBSリモコン ")]),n("div",{staticClass:"self-stretch flex-grow"}),t.connectionReady?n("button",{key:"editing-button",staticClass:"button is-primary ml-2 md:h-12",class:{"is-highlighted":!t.hasEdited},on:{click:t.toggleEditing}},[n("FontAwesomeIcon",{attrs:{icon:t.editing?"check":"pencil-alt"}})],1):t._e(),n("button",{staticClass:"button is-primary",on:{click:function(e){return t.showSettings(!t.showingSettings)}}},[n("FontAwesomeIcon",{attrs:{icon:"cog"}})],1),n("button",{staticClass:"button is-primary",on:{click:t.toggleFullscreen}},[n("FontAwesomeIcon",{attrs:{icon:"expand"}})],1),t.connectionReady?n("button",{key:"disconnect-button",staticClass:"button is-primary",on:{click:t.disconnect}},[n("FontAwesomeIcon",{attrs:{icon:"power-off"}})],1):t._e()])},M=[],V=document.documentElement,U=V.requestFullscreen||V.mozRequestFullScreen||V.webkitRequestFullScreen||V.msRequestFullscreen,J=document.exitFullscreen||document.mozCancelFullScreen||document.webkitCancelFullScreen||document.msExitFullscreen,X={methods:{toggleFullscreen:function(){var t=document.fullscreen||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement;t?J.apply(document):U.apply(V)}}},Y={mixins:[X],computed:Object(o["a"])(Object(o["a"])(Object(o["a"])({},Object(a["f"])(["editing","showingSettings"])),Object(a["f"])("settings",["hasEdited"])),Object(a["d"])("obs",["connectionReady"])),methods:Object(o["a"])(Object(o["a"])(Object(o["a"])(Object(o["a"])({toggleEditing:function(){this.hasEdited||this.editing||this.setSetting({key:"hasEdited",value:!0}),this.setEditing(!this.editing)}},Object(a["c"])({setEditing:"editing"})),Object(a["c"])("obs",["disconnect"])),Object(a["e"])(["showSettings"])),Object(a["e"])("settings",{setSetting:"set"}))},K=Y,Q=(n("9e1d"),Object(g["a"])(K,G,M,!1,null,"1a42e49a",null)),Z=Q.exports,tt={components:{Dashboard:y,Home:F,Settings:H,TopBar:Z},computed:Object(o["a"])(Object(o["a"])(Object(o["a"])({},Object(a["d"])(["activeView"])),Object(a["f"])(["showingSettings"])),Object(a["f"])("settings",["theme"])),mounted:function(){var t=Object(c["a"])();"auto"in t&&this.doAutoconnect(t)},methods:{doAutoconnect:function(t){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function n(){var r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$store.dispatch("obs/connect",{host:t.host,port:t.port});case 2:if(r=n.sent,!r.authRequired||!t.password){n.next=6;break}return n.next=6,e.$store.dispatch("obs/authenticate",{password:t.password});case 6:case"end":return n.stop()}}),n)})))()}}},et=tt,nt=(n("fffb"),Object(g["a"])(et,r,s,!1,null,null,null));e["a"]=nt.exports},"9e1d":function(t,e,n){"use strict";var r=n("dea3"),s=n.n(r);s.a},a210:function(t,e,n){},ad78:function(t,e,n){"use strict";n.r(e);var r=n("5530"),s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("panel-wrapper",{attrs:{"content-class":["flex items-stretch w-full h-full",t.directionClass],"is-grid":!0},nativeOn:{mouseleave:function(e){return t.stopResizing(e)},mousemove:function(e){return t.handleResize(e)},mouseup:function(e){return t.stopResizing(e)},touchend:function(e){return t.stopResizing(e)},touchmove:function(e){return t.handleResize(e)}},scopedSlots:t._u([{key:"name",fn:function(){return[t._v(" "+t._s(t.isHorizontal?"水平":"垂直")+"メニュー ")]},proxy:!0},{key:"settings",fn:function(){return[n("div",{staticClass:"field"},[n("p",{staticClass:"label"},[t._v(" Direction: ")]),n("button",{staticClass:"button has-icon",class:"row"===t.settings.direction?"is-active":"is-inactive",on:{click:function(e){return t.setSetting("direction","row")}}},[n("FontAwesomeIcon",{attrs:{icon:"columns",size:"lg","fixed-width":""}})],1),n("button",{staticClass:"button has-icon",class:"column"===t.settings.direction?"is-active":"is-inactive",on:{click:function(e){return t.setSetting("direction","column")}}},[n("FontAwesomeIcon",{attrs:{rotation:270,icon:"columns","fixed-width":"",size:"lg"}})],1)])]},proxy:!0}])},[t._l(t.childPanels,(function(e,r,s){return[t.editing&&s>0?n("div",{key:r+"-resize",staticClass:"flex justify-center cursor-move p-2",class:[t.isHorizontal?"flex-col":"flex-row"],attrs:{draggable:"true"},on:{mousedown:function(e){return e.preventDefault(),t.startResize(e,s-1)},touchstart:function(e){return e.preventDefault(),t.startResize(e,s-1)}}},t._l(3,(function(e){return n("span",{key:e,staticClass:"block w-2 h-2 bg-editing-dot rounded-full",class:[t.isHorizontal?"mb-2":"ml-2"]})})),0):t._e(),n("panel",{key:r,ref:"panels",refInFor:!0,style:{flexBasis:100*(t.weights[s]||1)/t.childCount+"%"},attrs:{id:r,panel:e,depth:t.depth+1}})]})),t.editing?n("button",{ref:"addButton",staticClass:"button is-add-panel p-2",class:[t.isHorizontal?"ml-2":"mt-2"],on:{click:function(e){t.showAddPanel=!0}}},[n("FontAwesomeIcon",{attrs:{icon:"plus-square",size:"lg","fixed-width":""}})],1):t._e(),t.showAddPanel?n("overlay",{on:{close:function(e){t.showAddPanel=!1}},scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" Add Panel ")]},proxy:!0}],null,!1,364916906)},[n("panel-list",{attrs:{"parent-id":t.id,"parent-depth":t.depth},on:{close:function(e){t.showAddPanel=!1}}})],1):t._e()],2)},i=[],o=(n("4160"),n("d81d"),n("4e82"),n("a434"),n("c0b6"),n("b64b"),n("159b"),n("0f32")),a=n.n(o),c=n("d180"),u=n.n(c),l=n("2f62"),d=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",t._l(t.list,(function(e){return n("button",{key:e.name,staticClass:"button is-list-item flex w-full px-1 py-2",attrs:{disabled:!t.canBeAdded(e)},on:{click:function(n){return t.addPanel(e)}}},[n("div",{staticClass:"w-16 text-5xl mr-2"},[n("FontAwesomeIcon",t._b({attrs:{icon:e.icon,"fixed-width":""}},"FontAwesomeIcon",e.iconSettings,!1))],1),n("div",{staticClass:"text-left"},[n("h3",{staticClass:"text-xl mb-2"},[t._v(" "+t._s(e.name)+" ")]),n("p",[t._v(t._s(e.description))])])])})),0)},m=[],f=(n("a9e3"),[{name:"水平切り替えメニュー",description:"右に右にパネルが切り替わります",icon:"columns",iconSettings:{},type:"Grid",maxDepth:2,defaults:function(){return{direction:"row"}}},{name:"垂直メニュー",description:"縦にメニューが積まれていきます",icon:"columns",iconSettings:{rotation:270},type:"Grid",maxDepth:2,defaults:function(){return{direction:"column"}}},{name:"シーン切り替え",description:"今のシーンを切り替えます",icon:"tv",iconSettings:{},type:"Scenes"},{name:"入力ソース一覧",description:"入力ソースのオン・オフを切り替えます",icon:"video",iconSettings:{},type:"Sources"},{name:"音響デバイス",description:"接続しているマイクなどの音響デバイスを切り替えます",icon:"volume-up",iconSettings:{},type:"Mixer"},{name:"画面切り替え効果の選択",description:"画面切り替え効果（トランジション）を選択します",icon:"chart-bar",iconSettings:{},type:"Transitions"},{name:"画面切り替え効果にかかる時間",description:"画面切り替え効果にかかる時間を設定します",icon:"clock",iconSettings:{},type:"Durations"},{name:"配信・録画状況",description:"配信・録画の状況を確かめます",icon:"dot-circle",iconSettings:{},type:"Stream"},{name:"iframe埋め込み",description:"このページにiframeタグを埋め込めます．",icon:"window-maximize",iconSettings:{},type:"Iframe"}]),p={props:{parentId:{type:[Number,String],required:!0},parentDepth:{type:Number,required:!0}},computed:{list:function(){return f}},methods:{addPanel:function(t){this.canBeAdded(t)&&(this.$store.dispatch("layout/addPanel",{type:t.type,parent:this.parentId,settings:t.defaults?t.defaults():{}}),this.$emit("close"))},canBeAdded:function(t){return!t.maxDepth||this.parentDepth<t.maxDepth}}},h=p,g=n("2877"),v=Object(g["a"])(h,d,m,!1,null,null,null),b=v.exports,w=n("7934"),x={beforeCreate:function(){this.$options.components.Panel=n("ad78")["default"]},computed:{childPanels:function(){return this.$store.getters["layout/getPanelsFor"](this.id)}}},_=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex flex-auto flex-col overflow-hidden h-full",class:{"color-editing-panel border p-2":t.editing}},[t.editing?n("div",{staticClass:"pb-2 flex"},[n("div",{staticClass:"flex-1 min-w-0 overflow-hidden whitespace-no-wrap text-overflow-ellipsis"},[t._t("name")],2),t.hasSettings?n("button",{staticClass:"button is-panel",on:{click:function(e){t.settingsOpen=!t.settingsOpen}}},[n("FontAwesomeIcon",{attrs:{icon:"cog","fixed-width":""}})],1):t._e(),t.depth>0?n("button",{staticClass:"button is-panel",on:{click:t.remove}},[n("FontAwesomeIcon",{attrs:{icon:"trash-alt","fixed-width":""}})],1):t._e()]):t._e(),!t.editing||t.isGrid?n("div",{staticClass:"flex-grow overflow-hidden",class:t.contentClass},[t._t("default")],2):t._e(),t.settingsOpen?n("overlay",{on:{close:function(e){t.settingsOpen=!1}},scopedSlots:t._u([{key:"title",fn:function(){return[t._v(" Settings ")]},proxy:!0}],null,!1,1086348952)},[t._t("settings")],2):t._e()],1)},y=[],S={components:{Overlay:w["a"]},props:{contentClass:{type:null,default:""},isGrid:{type:Boolean,default:function(){return!1}}},data:function(){return{settingsOpen:!1}},computed:Object(r["a"])(Object(r["a"])({},Object(l["f"])(["editing"])),{},{depth:function(){return this.$parent.depth},id:function(){return this.$parent.id},panel:function(){return this.$parent.panel},hasSettings:function(){return Boolean(this.$slots.settings)}}),watch:{editing:function(t){t||(this.settingsOpen=!1)}},methods:{remove:function(){this.$store.dispatch("layout/removePanel",{id:this.id})}}},O=S,j=Object(g["a"])(O,_,y,!1,null,null,null),k=j.exports,C={components:{PanelWrapper:k},computed:{settings:function(){return this.panel.settings||{}}},methods:{setSetting:function(t,e){this.$store.dispatch("layout/setSetting",{id:this.id,key:t,value:e})}},props:{depth:{type:Number},id:{type:[Number,String],required:!0},panel:{type:Object,required:!0}}},R=.05,P={components:{PanelList:b,Overlay:w["a"]},mixins:[x,C],data:function(){return{dragging:!1,draggingWeights:null,showAddPanel:!1}},computed:Object(r["a"])(Object(r["a"])({},Object(l["f"])(["editing"])),{},{childCount:function(){return Object.keys(this.childPanels).length},isHorizontal:function(){return"row"===this.settings.direction},directionClass:function(t){var e=t.isHorizontal;return e?"flex-row":"flex-col"},shouldClosePanel:function(){return this.showAddPanel&&!this.editing},weights:function(){return this.draggingWeights?this.draggingWeights:this.settings.weights?this.settings.weights:[]}}),watch:{shouldClosePanel:function(t){t&&(this.showAddPanel=!1)}},methods:{startResize:function(t,e){var n="row"===this.settings.direction?"width":"height",r=this.$refs.panels.map((function(t){return t.$el.getBoundingClientRect()[n]})),s=u()(r),i=r.length;this.dragging=e,this.draggingWeights=r.map((function(t){return t/s*i}))},handleResize:function(t){this._resizeThrottle||(this._resizeThrottle=a()(this.doResize.bind(this),33)),!1!==this.dragging&&(t.preventDefault(),this._resizeThrottle(t))},stopResizing:function(t){!1!==this.dragging&&(t.preventDefault(),this.setSetting("weights",this.draggingWeights),this.dragging=!1,this.draggingWeights=null)},doResize:function(t){var e=this;if(!1!==this.dragging){var n,r=this.dragging,s=t;t.targetTouches&&t.targetTouches.length>0&&(s=t.targetTouches[0]),n="row"===this.settings.direction?{mouse:"pageX",from:"left",to:"right"}:{mouse:"pageY",from:"top",to:"bottom"};var i=this.$refs.panels.map((function(t){return t.$el.getBoundingClientRect()})).sort((function(t,e){return t[n.from]-e[n.from]})),o=s[n.mouse],a=i[0][n.from],c=i[i.length-1][n.to]-a,u=(o-a)/c*this.draggingWeights.length,l=[0,this.draggingWeights.length];this.draggingWeights.forEach((function(t,n){n<e.dragging?l[0]+=t:n-1>e.dragging&&(l[1]-=t)}));var d=R*this.draggingWeights.length;u<l[0]+d?u=l[0]+d:u>l[1]-d&&(u=l[1]-d);var m=u-l[0],f=l[1]-l[0]-m;this.draggingWeights.splice(r,2,m,f)}}}},T=P,$=Object(g["a"])(T,s,i,!1,null,null,null),E=$.exports,A=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("panel-wrapper",{attrs:{"content-class":["flex flex-col"]},scopedSlots:t._u([{key:"settings",fn:function(){return[n("div",{staticClass:"field"},[n("label",{staticClass:"label",attrs:{for:"settings-"+t.id+"-url"}},[t._v("URL")]),n("input",{directives:[{name:"model",rawName:"v-model",value:t.url,expression:"url"}],staticClass:"input",attrs:{id:"settings-"+t.id+"-url",type:"text"},domProps:{value:t.url},on:{input:function(e){e.target.composing||(t.url=e.target.value)}}})])]},proxy:!0}])},[n("template",{slot:"name"},[t._v(" Frame ")]),n("iframe",{staticClass:"flex-grow",staticStyle:{width:"100%",height:"100%"},attrs:{src:t.url,frameborder:"0"}})],2)},q=[],D={mixins:[C],computed:{url:{get:function(){return this.settings.url?this.settings.url:"about:blank"},set:function(t){this.setSetting("url",t)}}}},F=D,I=Object(g["a"])(F,A,q,!1,null,null,null),z=I.exports,L=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("panel-wrapper",{attrs:{"content-class":["panel-invalid","is-scrollable"]}},[n("template",{slot:"name"},[t._v(" 不明のパネル ")]),n("div",{staticClass:"panel-invalid-content"},[n("p",[t._v("パネルが見つかりません")]),n("p",[t._v('"'+t._s(t.panel.type)+'"は見つかりませんでした．このパネルを外してください．')])])],2)},B=[],N={mixins:[C]},W=N,H=Object(g["a"])(W,L,B,!1,null,null,null),G=H.exports,M=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("panel-wrapper",{attrs:{"content-class":["button-grid","has-per-row-"+t.perRow,"overflow-y-auto","flex-wrap","text-3xl"]},scopedSlots:t._u([{key:"name",fn:function(){return[t._v(" シーンセレクト ")]},proxy:!0},{key:"settings",fn:function(){return[n("div",{staticClass:"field"},[n("label",{staticClass:"label",attrs:{for:"settings-"+t.id+"-per-row"}},[t._v("Scenes per row")]),n("div",{staticClass:"flex"},[n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.perRow,expression:"perRow",modifiers:{number:!0}}],staticClass:"flex-grow",attrs:{type:"range",min:"1",max:"12"},domProps:{value:t.perRow},on:{__r:function(e){t.perRow=t._n(e.target.value)},blur:function(e){return t.$forceUpdate()}}}),n("span",{staticClass:"w-10 p-2",domProps:{textContent:t._s(t.perRow)}})])]),n("h3",{staticClass:"text-xl mb-2"},[t._v(" シーン切り替え ")]),n("div",{staticClass:"field"},[n("label",{staticClass:"label",attrs:{for:"settings-"+t.id+"-transition-scene"}},[t._v("Transition Scene")]),n("select",{directives:[{name:"model",rawName:"v-model",value:t.transitionScene,expression:"transitionScene"}],staticClass:"select",attrs:{id:"settings-"+t.id+"-transition-scene"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.transitionScene=e.target.multiple?n:n[0]}}},[n("option",{domProps:{value:void 0}},[t._v(" None ")]),t._l(t.scenes,(function(e){return n("option",{key:e.name,domProps:{value:e.name}},[t._v(" "+t._s(e.name)+" ")])}))],2)]),n("div",{staticClass:"field"},[n("label",{staticClass:"label",attrs:{for:"settings-"+t.id+"-transition-time"}},[t._v("切り替え時間")]),n("input",{directives:[{name:"model",rawName:"v-model.number",value:t.transitionSeconds,expression:"transitionSeconds",modifiers:{number:!0}}],staticClass:"input",attrs:{id:"settings-"+t.id+"-transition-time",type:"number",min:"0",step:"0.1"},domProps:{value:t.transitionSeconds},on:{input:function(e){e.target.composing||(t.transitionSeconds=t._n(e.target.value))},blur:function(e){return t.$forceUpdate()}}})])]},proxy:!0}])},t._l(t.scenes,(function(e){return n("button",{key:e.name,staticClass:"button",class:[e.name===t.currentScene?"is-active":"is-inactive"],on:{click:function(n){return t.switchScenes(e.name)}}},[t._v(" "+t._s(e.name)+" ")])})),0)},V=[],U=(n("96cf"),n("1da1")),J=n("e0eb"),X={mixins:[C],computed:Object(r["a"])({perRow:{get:function(){return this.settings.perRow?this.settings.perRow:4},set:function(t){this.setSetting("perRow",t)}},transitionScene:{get:function(){return this.settings.transitionScene},set:function(t){this.setSetting("transitionScene",t)}},transitionSeconds:{get:function(){return this.settings.transitionSeconds||0},set:function(t){this.setSetting("transitionSeconds",t)}}},Object(l["f"])("obs",{currentScene:function(t){return t.scenes.current},scenes:function(t){return t.scenes.list}})),methods:Object(r["a"])({switchScenes:function(t){var e=this;return Object(U["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!(e.transitionScene&&e.transitionSeconds>0)){n.next=4;break}return e.setScene({name:e.transitionScene}),n.next=4,Object(J["b"])(1e3*e.transitionSeconds);case 4:return n.next=6,e.setScene({name:t});case 6:case"end":return n.stop()}}),n)})))()}},Object(l["c"])("obs",{setScene:"scenes/current"}))},Y=X,K=Object(g["a"])(Y,M,V,!1,null,null,null),Q=K.exports,Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("panel-wrapper",{attrs:{"content-class":"flex flex-col"}},[n("template",{slot:"name"},[t._v(" 入力そーす ")]),n("h3",{staticClass:"p-2 text-center font-bold"},[t._v(" "+t._s(t.currentScene?t.currentScene.name:"不明なシーン")+" ")]),t.currentScene?n("div",{staticClass:"flex-grow button-grid has-per-row-1 overflow-y-auto"},t._l(t.currentScene.sources,(function(e){return n("button",{key:e.name,staticClass:"button",class:[e.render?"is-active":"is-inactive"],on:{click:function(n){return t.setRender({scene:t.currentScene.name,source:e.name,render:!e.render})}}},[t._v(" "+t._s(e.name)+" ")])})),0):n("div",[t._v(" 不明なシーンです．なんで発生したエラーなのでしょうか... :( ")])],2)},tt=[],et={mixins:[C],computed:Object(r["a"])({},Object(l["d"])("obs",["currentScene"])),methods:Object(r["a"])({},Object(l["c"])({setRender:"obs/sources/render"}))},nt=et,rt=Object(g["a"])(nt,Z,tt,!1,null,null,null),st=rt.exports,it=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("panel-wrapper",{attrs:{"content-class":["overflow-y-auto","flex","flex-col"]}},[n("template",{slot:"name"},[t._v(" ミキサー ")]),t.audioSources?t._l(t.audioSources,(function(t){return n("AudioSource",{key:t.name,attrs:{source:t}})})):[t._v(" オーディオデバイスはどこでしょう？ ¯\\_(ツ)_/¯ ")]],2)},ot=[],at=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"flex flex-col"},[n("h5",{staticClass:"px-2"},[t._v(" "+t._s(t.source.name)+" ")]),n("div",{staticClass:"flex"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.volume,expression:"volume"}],staticClass:"flex-1 w-full mx-2 slider",attrs:{type:"range",min:"0",max:"1",step:"0.01"},domProps:{value:t.volume},on:{__r:function(e){t.volume=e.target.value}}}),n("button",{staticClass:"button",class:[t.source.muted?"is-off":"is-inactive"],on:{click:function(e){return t.toggleMute({source:t.source.name,mute:!t.source.muted})}}},[n("FontAwesomeIcon",{attrs:{icon:t.source.muted?"volume-mute":"volume-up","fixed-width":""}})],1)])])},ct=[],ut=(n("b0c0"),{props:{source:{type:Object,required:!0}},computed:{volume:{get:function(t){var e=t.source.volume;return Math.sqrt(e)},set:function(t){this.setVolume({source:this.source.name,volume:Math.pow(t,2)})}}},methods:Object(r["a"])({},Object(l["c"])("obs",{setVolume:"sources/volume",toggleMute:"sources/mute"}))}),lt=ut,dt=Object(g["a"])(lt,at,ct,!1,null,null,null),mt=dt.exports,ft={components:{AudioSource:mt},mixins:[C],computed:Object(r["a"])({},Object(l["d"])("obs",{audioSources:"sources/audioSources"}))},pt=ft,ht=Object(g["a"])(pt,it,ot,!1,null,null,null),gt=ht.exports,vt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("panel-wrapper",{attrs:{"content-class":["button-grid","has-per-row-1","overflow-y-auto"]}},[n("template",{slot:"name"},[t._v(" 配信・録画状況 ")]),n("DangerousButton",{class:[t.streaming?"is-active":"is-inactive"],attrs:{vibrate:!0},on:{click:function(e){return t.setStreaming({status:!t.streaming})}}},[t._v(" 配信: "+t._s(t.streamingText)+" ")]),n("DangerousButton",{class:[t.recording?"is-active":"is-inactive"],attrs:{vibrate:!0},on:{click:function(e){return t.setRecording({status:!t.recording})}}},[t._v(" 録画: "+t._s(t.recordingText)+" ")])],2)},bt=[],wt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"button",on:{click:t.buttonClick}},[t.isPrimed?n("span",[t._v(" もう一度押して再確認します "),t.cooldown?n("strong",[t._v("(1秒待つ)")]):t._e()]):t._t("default")],2)},xt=[],_t=(n("4795"),{props:{vibrate:Boolean},data:function(){return{cooldown:!1,isPrimed:!1}},methods:{buttonClick:function(){var t=this;if(!this.cooldown){if(this.isPrimed)return this.isPrimed=!1,this.$emit("click"),void clearTimeout(this._timeout);this.isPrimed=!0,this.cooldown=!0,this._timeout=setTimeout((function(){t.cooldown=!1,t._timeout=setTimeout((function(){t.isPrimed=!1,t._timeout=null}),5e3)}),1e3),this.vibrate&&window.navigator.vibrate&&window.navigator.vibrate(200)}}}}),yt=_t,St=Object(g["a"])(yt,wt,xt,!1,null,null,null),Ot=St.exports,jt={components:{DangerousButton:Ot},mixins:[C],computed:Object(r["a"])(Object(r["a"])({},Object(l["f"])("obs",{recording:function(t){return t.stream.recording},recTimecode:function(t){return t.stream.recTimecode},streaming:function(t){return t.stream.streaming},streamTimecode:function(t){return t.stream.streamTimecode}})),Object(l["d"])("obs",["recordingText","streamingText"])),methods:Object(r["a"])({},Object(l["c"])("obs",{setRecording:"stream/recording",setStreaming:"stream/streaming"}))},kt=jt,Ct=Object(g["a"])(kt,vt,bt,!1,null,null,null),Rt=Ct.exports,Pt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("panel-wrapper",{attrs:{"content-class":["button-grid","has-per-row-1","overflow-y-auto"]}},[n("template",{slot:"name"},[t._v(" 画面切り替え ")]),t.allTransitions?t._l(t.allTransitions,(function(e){return n("button",{key:e.name,staticClass:"button",class:[e.name===t.currentTransition?"is-active":"is-inactive"],domProps:{textContent:t._s(e.name)},on:{click:function(n){return t.switchTransitions(e.name)}}})})):[t._v(" トランジションが存在しません．フェードとかそんな感じなのを設定しておいてください． ")]],2)},Tt=[],$t={mixins:[C],computed:Object(r["a"])({},Object(l["f"])("obs",{currentTransition:function(t){return t.transitions.current},allTransitions:function(t){return t.transitions.list}})),methods:Object(r["a"])({switchTransitions:function(t){var e=this;return Object(U["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.setTransition({name:t});case 2:case"end":return n.stop()}}),n)})))()}},Object(l["c"])("obs",{setTransition:"transitions/current"}))},Et=$t,At=Object(g["a"])(Et,Pt,Tt,!1,null,null,null),qt=At.exports,Dt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("panel-wrapper",{attrs:{"content-class":["button-grid","has-per-row-1","overflow-y-auto"]}},[n("template",{slot:"name"},[t._v(" Durations ")]),t.allDurations?t._l(t.allDurations,(function(e){return n("button",{key:e,staticClass:"button",class:[e===t.currentDuration?"is-active":"is-inactive"],on:{click:function(n){return t.changeDuration(e)}}},[t._v(" "+t._s(e)+"ms ")])})):t._e()],2)},Ft=[],It={mixins:[C],data:function(){var t={staticDurations:[{duration:100},{duration:300},{duration:600},{duration:1e3},{duration:1500}]};return t},computed:Object(r["a"])({},Object(l["f"])("obs",{currentDuration:function(t){return t.durations.current},allDurations:function(t){return t.durations.list}})),methods:Object(r["a"])({changeDuration:function(t){var e=this;return Object(U["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.setDuration({ms:t});case 2:case"end":return n.stop()}}),n)})))()}},Object(l["c"])("obs",{setDuration:"durations/current"}))},zt=It,Lt=Object(g["a"])(zt,Dt,Ft,!1,null,null,null),Bt=Lt.exports,Nt={Grid:E,Iframe:z,Invalid:G,Scenes:Q,Sources:st,Mixer:gt,Transitions:qt,Durations:Bt,Stream:Rt};e["default"]={functional:!0,render:function(t,e){var n=e.props.panel?e.props.panel.type:"Invalid",s=n in Nt?Nt[n]:Nt.Invalid;return t(s,Object(r["a"])(Object(r["a"])({},e.data),{},{props:e.props}),e.children)},props:C.props}},b75f:function(t,e,n){"use strict";var r=n("2b0e"),s=n("ecee"),i=n("c074"),o=n("ad3d");s["c"].add(i["a"],i["b"],i["c"],i["e"],i["d"],i["f"],i["g"],i["h"],i["i"],i["j"],i["k"],i["l"],i["m"],i["n"],i["o"],i["p"],i["q"]),r["a"].component("FontAwesomeIcon",o["a"])},dd90:function(t,e,n){},dea3:function(t,e,n){},e0eb:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return i}));n("c975"),n("fb6a"),n("d3b7"),n("ac1f"),n("1276"),n("4795");function r(){for(var t={},e=location.hash.slice(location.hash.indexOf("#!")+2).split("&"),n=e.length;n--;){var r=e[n].split("=");t[r[0]]=r.length>1?r[1]:null}return t}function s(t){return new Promise((function(e){setTimeout(e,t)}))}function i(t){return function(e,n){e[t]=n}}},fffb:function(t,e,n){"use strict";var r=n("a210"),s=n.n(r);s.a}});
  //# sourceMappingURL=app.1c8de4f1.js.map