(function(e){function t(t){for(var r,c,s=t[0],a=t[1],u=t[2],l=0,d=[];l1&&void 0!==arguments[1]?arguments[1]:6e4,r={};return"target"in e&&e["target"]||(e["target"]="localhost"),"type"in e&&e["type"]||(e["type"]="request"),n&&(r.timeout=n),new Promise((function(n,o){c.a.post("/execute",e,r).then((function(e){if(e=e.data.response,e.errors.length){var r=e.errors[0];t.notify({text:r,error:!0}),o(r)}else n(e.output)})).catch((function(e){t.notify({text:e,error:!0}),o(e)}))}))},request:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return this.execute({type:"request",action:e,args:t},n)}}},i=o,s={name:"DateTime",methods:{formatDate:function(e){return e.toDateString().substring(0,10)},formatTime:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.toTimeString().substring(0,t?8:5)}}},a=s,u=n("f5ef"),l={name:"Events",methods:{subscribe:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r