From e2a35571cfb9af6e17fd7d32ce8630111d913b9d Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Sat, 23 May 2020 17:32:25 -0400 Subject: [PATCH] Finally users can update their avatar --- app/Controllers/Http/ClientApiController.js | 18 +++++++++ .../scripts/applications/admin/app.bundle.js | 8 ++-- .../scripts/applications/home/app.bundle.js | 4 +- .../scripts/components/navbar/app.bundle.js | 2 +- public/scripts/views/register/app.bundle.js | 2 +- .../applications/home/views/child_profile.vue | 4 +- .../scripts/applications/home/views/home.vue | 38 +++++++++++++++---- .../applications/services/api.service.ts | 16 ++++++++ start/routes.js | 1 + 9 files changed, 75 insertions(+), 18 deletions(-) diff --git a/app/Controllers/Http/ClientApiController.js b/app/Controllers/Http/ClientApiController.js index 506174d..21c7f26 100644 --- a/app/Controllers/Http/ClientApiController.js +++ b/app/Controllers/Http/ClientApiController.js @@ -159,6 +159,24 @@ class ClientApiController { // } + async updateUser({request, auth, response}) { + const user = auth.user; + const {name, email, profile_cover, avatar} = request.body; + // TODO: Validation + user.name = name || user.name; + user.email = email || user.email; + if (profile_cover) { + const file = await FileUtils.saveBase64File(profile_cover); + user.profile_cover = `/u/images/${file.fileName}`; + } + if (avatar) { + const file = await FileUtils.saveBase64File(avatar); + user.avatar = `/u/images/${file.fileName}`; + } + await user.save(); + return {code: 0, data: {user}}; + }; + async updateChild({request, auth, response}) { const childId = request.params.id; const userId = auth.user.id; diff --git a/public/scripts/applications/admin/app.bundle.js b/public/scripts/applications/admin/app.bundle.js index 1ccaede..08bca37 100644 --- a/public/scripts/applications/admin/app.bundle.js +++ b/public/scripts/applications/admin/app.bundle.js @@ -1,18 +1,18 @@ -!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,n){!function(e,t){if(!w[e]||!b[e])return;for(var n in b[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(v[n]=t[n]);0==--y&&0===g&&k()}(e,n),t&&t(e,n)};var n,r=!0,i="8c4d45210225619fc987",o={},a=[],s=[];function c(e){var t=j[e];if(!t)return T;var r=function(r){return t.hot.active?(j[r]?-1===j[r].parents.indexOf(e)&&j[r].parents.push(e):(a=[e],n=r),-1===t.children.indexOf(r)&&t.children.push(r)):(console.warn("[HMR] unexpected require("+r+") from disposed module "+e),a=[]),T(r)},i=function(e){return{configurable:!0,enumerable:!0,get:function(){return T[e]},set:function(t){T[e]=t}}};for(var o in T)Object.prototype.hasOwnProperty.call(T,o)&&"e"!==o&&"t"!==o&&Object.defineProperty(r,o,i(o));return r.e=function(e){return"ready"===p&&f("prepare"),g++,T.e(e).then(t,(function(e){throw t(),e}));function t(){g--,"prepare"===p&&(_[e]||$(e),0===g&&0===y&&k())}},r.t=function(e,t){return 1&t&&(e=r(e)),T.t(e,-2&t)},r}function u(t){var r={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:n!==t,active:!0,accept:function(e,t){if(void 0===e)r._selfAccepted=!0;else if("function"==typeof e)r._selfAccepted=e;else if("object"==typeof e)for(var n=0;n=0&&r._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,p){case"idle":(v={})[t]=e[t],f("ready");break;case"ready":S(t);break;case"prepare":case"check":case"dispose":case"apply":(m=m||[]).push(t)}},check:C,apply:O,status:function(e){if(!e)return p;l.push(e)},addStatusHandler:function(e){l.push(e)},removeStatusHandler:function(e){var t=l.indexOf(e);t>=0&&l.splice(t,1)},data:o[t]};return n=void 0,r}var l=[],p="idle";function f(e){p=e;for(var t=0;t0;){var i=r.pop(),o=i.id,a=i.chain;if((l=j[o])&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:o};if(l.hot._main)return{type:"unaccepted",chain:a,moduleId:o};for(var s=0;s ")),k.type){case"self-declined":r.onDeclined&&r.onDeclined(k),r.ignoreDeclined||(O=new Error("Aborted because of self decline: "+k.moduleId+R));break;case"declined":r.onDeclined&&r.onDeclined(k),r.ignoreDeclined||(O=new Error("Aborted because of declined dependency: "+k.moduleId+" in "+k.parentId+R));break;case"unaccepted":r.onUnaccepted&&r.onUnaccepted(k),r.ignoreUnaccepted||(O=new Error("Aborted because "+p+" is not accepted"+R));break;case"accepted":r.onAccepted&&r.onAccepted(k),S=!0;break;case"disposed":r.onDisposed&&r.onDisposed(k),E=!0;break;default:throw new Error("Unexception type "+k.type)}if(O)return f("abort"),Promise.reject(O);if(S)for(p in b[p]=v[p],y(_,k.outdatedModules),k.outdatedDependencies)Object.prototype.hasOwnProperty.call(k.outdatedDependencies,p)&&(g[p]||(g[p]=[]),y(g[p],k.outdatedDependencies[p]));E&&(y(_,[k.moduleId]),b[p]=C)}var M,L=[];for(c=0;c<_.length;c++)p=_[c],j[p]&&j[p].hot._selfAccepted&&b[p]!==C&&!j[p].hot._selfInvalidated&&L.push({module:p,parents:j[p].parents.slice(),errorHandler:j[p].hot._selfAccepted});f("dispose"),Object.keys(w).forEach((function(e){!1===w[e]&&function(e){delete installedChunks[e]}(e)}));var N,P,I=_.slice();for(;I.length>0;)if(p=I.pop(),l=j[p]){var F={},D=l.hot._disposeHandlers;for(u=0;u=0&&H.parents.splice(M,1))}}for(p in g)if(Object.prototype.hasOwnProperty.call(g,p)&&(l=j[p]))for(P=g[p],u=0;u=0&&l.children.splice(M,1);f("apply"),void 0!==h&&(i=h,h=void 0);for(p in v=void 0,b)Object.prototype.hasOwnProperty.call(b,p)&&(e[p]=b[p]);var U=null;for(p in g)if(Object.prototype.hasOwnProperty.call(g,p)&&(l=j[p])){P=g[p];var B=[];for(c=0;c1)for(var n=1;n=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},"./node_modules/setimmediate/setImmediate.js":function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,c=1,u={},l=!1,p=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){v(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){v(e.data)},r=function(e){o.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(i=p.documentElement,r=function(e){var t=p.createElement("script");t.onreadystatechange=function(){v(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(v,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&v(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/vue-hot-reload-api/dist/index.js":function(e,t){var n,r,i=Object.create(null);"undefined"!=typeof window&&(window.__VUE_HOT_MAP__=i);var o=!1,a="beforeCreate";function s(e,t){if(t.functional){var n=t.render;t.render=function(t,r){var o=i[e].instances;return r&&o.indexOf(r.parent)<0&&o.push(r.parent),n(t,r)}}else c(t,a,(function(){var t=i[e];t.Ctor||(t.Ctor=this.constructor),t.instances.push(this)})),c(t,"beforeDestroy",(function(){var t=i[e].instances;t.splice(t.indexOf(this),1)}))}function c(e,t,n){var r=e[t];e[t]=r?Array.isArray(r)?r.concat(n):[r,n]:[n]}function u(e){return function(t,n){try{e(t,n)}catch(e){console.error(e),console.warn("Something went wrong during Vue component hot-reload. Full reload required.")}}}function l(e,t){for(var n in e)n in t||delete e[n];for(var r in t)e[r]=t[r]}t.install=function(e,i){o||(o=!0,n=e.__esModule?e.default:e,r=n.version.split(".").map(Number),i,n.config._lifecycleHooks.indexOf("init")>-1&&(a="init"),t.compatible=r[0]>=2,t.compatible||console.warn("[HMR] You are using a version of vue-hot-reload-api that is only compatible with Vue.js core ^2.0.0."))},t.createRecord=function(e,t){if(!i[e]){var n=null;"function"==typeof t&&(t=(n=t).options),s(e,t),i[e]={Ctor:n,options:t,instances:[]}}},t.isRecorded=function(e){return void 0!==i[e]},t.rerender=u((function(e,t){var n=i[e];if(t){if("function"==typeof t&&(t=t.options),n.Ctor)n.Ctor.options.render=t.render,n.Ctor.options.staticRenderFns=t.staticRenderFns,n.instances.slice().forEach((function(e){e.$options.render=t.render,e.$options.staticRenderFns=t.staticRenderFns,e._staticTrees&&(e._staticTrees=[]),Array.isArray(n.Ctor.options.cached)&&(n.Ctor.options.cached=[]),Array.isArray(e.$options.cached)&&(e.$options.cached=[]);var r=function(e){if(!e._u)return;var t=e._u;return e._u=function(e){try{return t(e,!0)}catch(n){return t(e,null,!0)}},function(){e._u=t}}(e);e.$forceUpdate(),e.$nextTick(r)}));else if(n.options.render=t.render,n.options.staticRenderFns=t.staticRenderFns,n.options.functional){if(Object.keys(t).length>2)l(n.options,t);else{var r=n.options._injectStyles;if(r){var o=t.render;n.options.render=function(e,t){return r.call(t),o(e,t)}}}n.options._Ctor=null,Array.isArray(n.options.cached)&&(n.options.cached=[]),n.instances.slice().forEach((function(e){e.$forceUpdate()}))}}else n.instances.slice().forEach((function(e){e.$forceUpdate()}))})),t.reload=u((function(e,t){var n=i[e];if(t)if("function"==typeof t&&(t=t.options),s(e,t),n.Ctor){r[1]<2&&(n.Ctor.extendOptions=t);var o=n.Ctor.super.extend(t);o.options._Ctor=n.options._Ctor,n.Ctor.options=o.options,n.Ctor.cid=o.cid,n.Ctor.prototype=o.prototype,o.release&&o.release()}else l(n.options,t);n.instances.slice().forEach((function(e){e.$vnode&&e.$vnode.context?e.$vnode.context.$forceUpdate():console.warn("Root or manually mounted instance modified. Full reload required.")}))}))},"./node_modules/vue-loader/lib/runtime/componentNormalizer.js":function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},"./node_modules/vue-router/dist/vue-router.esm.js":function(e,t,n){"use strict"; +!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,n){!function(e,t){if(!w[e]||!b[e])return;for(var n in b[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(v[n]=t[n]);0==--y&&0===g&&k()}(e,n),t&&t(e,n)};var n,r=!0,i="e0f4f8c7ecb3618f2fa8",o={},a=[],s=[];function c(e){var t=j[e];if(!t)return T;var r=function(r){return t.hot.active?(j[r]?-1===j[r].parents.indexOf(e)&&j[r].parents.push(e):(a=[e],n=r),-1===t.children.indexOf(r)&&t.children.push(r)):(console.warn("[HMR] unexpected require("+r+") from disposed module "+e),a=[]),T(r)},i=function(e){return{configurable:!0,enumerable:!0,get:function(){return T[e]},set:function(t){T[e]=t}}};for(var o in T)Object.prototype.hasOwnProperty.call(T,o)&&"e"!==o&&"t"!==o&&Object.defineProperty(r,o,i(o));return r.e=function(e){return"ready"===p&&f("prepare"),g++,T.e(e).then(t,(function(e){throw t(),e}));function t(){g--,"prepare"===p&&(_[e]||$(e),0===g&&0===y&&k())}},r.t=function(e,t){return 1&t&&(e=r(e)),T.t(e,-2&t)},r}function u(t){var r={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:n!==t,active:!0,accept:function(e,t){if(void 0===e)r._selfAccepted=!0;else if("function"==typeof e)r._selfAccepted=e;else if("object"==typeof e)for(var n=0;n=0&&r._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,p){case"idle":(v={})[t]=e[t],f("ready");break;case"ready":S(t);break;case"prepare":case"check":case"dispose":case"apply":(m=m||[]).push(t)}},check:C,apply:O,status:function(e){if(!e)return p;l.push(e)},addStatusHandler:function(e){l.push(e)},removeStatusHandler:function(e){var t=l.indexOf(e);t>=0&&l.splice(t,1)},data:o[t]};return n=void 0,r}var l=[],p="idle";function f(e){p=e;for(var t=0;t0;){var i=r.pop(),o=i.id,a=i.chain;if((l=j[o])&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:o};if(l.hot._main)return{type:"unaccepted",chain:a,moduleId:o};for(var s=0;s ")),k.type){case"self-declined":r.onDeclined&&r.onDeclined(k),r.ignoreDeclined||(O=new Error("Aborted because of self decline: "+k.moduleId+R));break;case"declined":r.onDeclined&&r.onDeclined(k),r.ignoreDeclined||(O=new Error("Aborted because of declined dependency: "+k.moduleId+" in "+k.parentId+R));break;case"unaccepted":r.onUnaccepted&&r.onUnaccepted(k),r.ignoreUnaccepted||(O=new Error("Aborted because "+p+" is not accepted"+R));break;case"accepted":r.onAccepted&&r.onAccepted(k),S=!0;break;case"disposed":r.onDisposed&&r.onDisposed(k),E=!0;break;default:throw new Error("Unexception type "+k.type)}if(O)return f("abort"),Promise.reject(O);if(S)for(p in b[p]=v[p],y(_,k.outdatedModules),k.outdatedDependencies)Object.prototype.hasOwnProperty.call(k.outdatedDependencies,p)&&(g[p]||(g[p]=[]),y(g[p],k.outdatedDependencies[p]));E&&(y(_,[k.moduleId]),b[p]=C)}var M,L=[];for(c=0;c<_.length;c++)p=_[c],j[p]&&j[p].hot._selfAccepted&&b[p]!==C&&!j[p].hot._selfInvalidated&&L.push({module:p,parents:j[p].parents.slice(),errorHandler:j[p].hot._selfAccepted});f("dispose"),Object.keys(w).forEach((function(e){!1===w[e]&&function(e){delete installedChunks[e]}(e)}));var N,P,I=_.slice();for(;I.length>0;)if(p=I.pop(),l=j[p]){var F={},D=l.hot._disposeHandlers;for(u=0;u=0&&H.parents.splice(M,1))}}for(p in g)if(Object.prototype.hasOwnProperty.call(g,p)&&(l=j[p]))for(P=g[p],u=0;u=0&&l.children.splice(M,1);f("apply"),void 0!==h&&(i=h,h=void 0);for(p in v=void 0,b)Object.prototype.hasOwnProperty.call(b,p)&&(e[p]=b[p]);var U=null;for(p in g)if(Object.prototype.hasOwnProperty.call(g,p)&&(l=j[p])){P=g[p];var B=[];for(c=0;c1)for(var n=1;n=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),w(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},"./node_modules/setimmediate/setImmediate.js":function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,c=1,u={},l=!1,p=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){v(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){v(e.data)},r=function(e){o.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(i=p.documentElement,r=function(e){var t=p.createElement("script");t.onreadystatechange=function(){v(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(v,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&v(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/vue-hot-reload-api/dist/index.js":function(e,t){var n,r,i=Object.create(null);"undefined"!=typeof window&&(window.__VUE_HOT_MAP__=i);var o=!1,a="beforeCreate";function s(e,t){if(t.functional){var n=t.render;t.render=function(t,r){var o=i[e].instances;return r&&o.indexOf(r.parent)<0&&o.push(r.parent),n(t,r)}}else c(t,a,(function(){var t=i[e];t.Ctor||(t.Ctor=this.constructor),t.instances.push(this)})),c(t,"beforeDestroy",(function(){var t=i[e].instances;t.splice(t.indexOf(this),1)}))}function c(e,t,n){var r=e[t];e[t]=r?Array.isArray(r)?r.concat(n):[r,n]:[n]}function u(e){return function(t,n){try{e(t,n)}catch(e){console.error(e),console.warn("Something went wrong during Vue component hot-reload. Full reload required.")}}}function l(e,t){for(var n in e)n in t||delete e[n];for(var r in t)e[r]=t[r]}t.install=function(e,i){o||(o=!0,n=e.__esModule?e.default:e,r=n.version.split(".").map(Number),i,n.config._lifecycleHooks.indexOf("init")>-1&&(a="init"),t.compatible=r[0]>=2,t.compatible||console.warn("[HMR] You are using a version of vue-hot-reload-api that is only compatible with Vue.js core ^2.0.0."))},t.createRecord=function(e,t){if(!i[e]){var n=null;"function"==typeof t&&(t=(n=t).options),s(e,t),i[e]={Ctor:n,options:t,instances:[]}}},t.isRecorded=function(e){return void 0!==i[e]},t.rerender=u((function(e,t){var n=i[e];if(t){if("function"==typeof t&&(t=t.options),n.Ctor)n.Ctor.options.render=t.render,n.Ctor.options.staticRenderFns=t.staticRenderFns,n.instances.slice().forEach((function(e){e.$options.render=t.render,e.$options.staticRenderFns=t.staticRenderFns,e._staticTrees&&(e._staticTrees=[]),Array.isArray(n.Ctor.options.cached)&&(n.Ctor.options.cached=[]),Array.isArray(e.$options.cached)&&(e.$options.cached=[]);var r=function(e){if(!e._u)return;var t=e._u;return e._u=function(e){try{return t(e,!0)}catch(n){return t(e,null,!0)}},function(){e._u=t}}(e);e.$forceUpdate(),e.$nextTick(r)}));else if(n.options.render=t.render,n.options.staticRenderFns=t.staticRenderFns,n.options.functional){if(Object.keys(t).length>2)l(n.options,t);else{var r=n.options._injectStyles;if(r){var o=t.render;n.options.render=function(e,t){return r.call(t),o(e,t)}}}n.options._Ctor=null,Array.isArray(n.options.cached)&&(n.options.cached=[]),n.instances.slice().forEach((function(e){e.$forceUpdate()}))}}else n.instances.slice().forEach((function(e){e.$forceUpdate()}))})),t.reload=u((function(e,t){var n=i[e];if(t)if("function"==typeof t&&(t=t.options),s(e,t),n.Ctor){r[1]<2&&(n.Ctor.extendOptions=t);var o=n.Ctor.super.extend(t);o.options._Ctor=n.options._Ctor,n.Ctor.options=o.options,n.Ctor.cid=o.cid,n.Ctor.prototype=o.prototype,o.release&&o.release()}else l(n.options,t);n.instances.slice().forEach((function(e){e.$vnode&&e.$vnode.context?e.$vnode.context.$forceUpdate():console.warn("Root or manually mounted instance modified. Full reload required.")}))}))},"./node_modules/vue-loader/lib/runtime/componentNormalizer.js":function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},"./node_modules/vue-router/dist/vue-router.esm.js":function(e,t,n){"use strict"; /*! * vue-router v3.1.6 * (c) 2020 Evan You * @license MIT - */function r(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function i(e,t){return t instanceof e||t&&(t.name===e.name||t._name===e._name)}function o(e,t){for(var n in t)e[n]=t[n];return e}var a={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,i=t.parent,a=t.data;a.routerView=!0;for(var c=i.$createElement,u=n.name,l=i.$route,p=i._routerViewCache||(i._routerViewCache={}),f=0,d=!1;i&&i._routerRoot!==i;){var v=i.$vnode?i.$vnode.data:{};v.routerView&&f++,v.keepAlive&&i._directInactive&&i._inactive&&(d=!0),i=i.$parent}if(a.routerViewDepth=f,d){var h=p[u],m=h&&h.component;return m?(h.configProps&&s(m,a,h.route,h.configProps),c(m,a,r)):c()}var y=l.matched[f],g=y&&y.components[u];if(!y||!g)return p[u]=null,c();p[u]={component:g},a.registerRouteInstance=function(e,t){var n=y.instances[u];(t&&n!==e||!t&&n===e)&&(y.instances[u]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){y.instances[u]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==y.instances[u]&&(y.instances[u]=e.componentInstance)};var _=y.props&&y.props[u];return _&&(o(p[u],{route:l,configProps:_}),s(g,a,l,_)),c(g,a,r)}};function s(e,t,n,r){var i=t.props=function(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}(n,r);if(i){i=t.props=o({},i);var a=t.attrs=t.attrs||{};for(var s in i)e.props&&s in e.props||(a[s]=i[s],delete i[s])}}var c=/[!'()*]/g,u=function(e){return"%"+e.charCodeAt(0).toString(16)},l=/%2C/g,p=function(e){return encodeURIComponent(e).replace(c,u).replace(l,",")},f=decodeURIComponent;function d(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=f(n.shift()),i=n.length>0?f(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),t):t}function v(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return p(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(p(t)):r.push(p(t)+"="+p(e)))})),r.join("&")}return p(t)+"="+p(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var h=/\/?$/;function m(e,t,n,r){var i=r&&r.options.stringifyQuery,o=t.query||{};try{o=y(o)}catch(e){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:b(t,i),matched:e?_(e):[]};return n&&(a.redirectedFrom=b(n,i)),Object.freeze(a)}function y(e){if(Array.isArray(e))return e.map(y);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=y(e[n]);return t}return e}var g=m(null,{path:"/"});function _(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function b(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var i=e.hash;return void 0===i&&(i=""),(n||"/")+(t||v)(r)+i}function w(e,t){return t===g?e===t:!!t&&(e.path&&t.path?e.path.replace(h,"")===t.path.replace(h,"")&&e.hash===t.hash&&x(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&x(e.query,t.query)&&x(e.params,t.params)))}function x(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){var r=e[n],i=t[n];return"object"==typeof r&&"object"==typeof i?x(r,i):String(r)===String(i)}))}function C(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var i=t.split("/");n&&i[i.length-1]||i.pop();for(var o=e.replace(/^\//,"").split("/"),a=0;a=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}(i.path||""),l=t&&t.path||"/",p=u.path?C(u.path,l,n||i.append):l,f=function(e,t,n){void 0===t&&(t={});var r,i=n||d;try{r=i(e||"")}catch(e){r={}}for(var o in t)r[o]=t[o];return r}(u.query,i.query,r&&r.options.parseQuery),v=i.hash||u.hash;return v&&"#"!==v.charAt(0)&&(v="#"+v),{_normalized:!0,path:p,query:f,hash:v}}var V,q=function(){},G={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:[String,Array],default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),a=i.location,s=i.route,c=i.href,u={},l=n.options.linkActiveClass,p=n.options.linkExactActiveClass,f=null==l?"router-link-active":l,d=null==p?"router-link-exact-active":p,v=null==this.activeClass?f:this.activeClass,y=null==this.exactActiveClass?d:this.exactActiveClass,g=s.redirectedFrom?m(null,z(s.redirectedFrom),null,n):s;u[y]=w(r,g),u[v]=this.exact?u[y]:function(e,t){return 0===e.path.replace(h,"/").indexOf(t.path.replace(h,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(r,g);var _=function(e){K(e)&&(t.replace?n.replace(a,q):n.push(a,q))},b={click:K};Array.isArray(this.event)?this.event.forEach((function(e){b[e]=_})):b[this.event]=_;var x={class:u},C=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:c,route:s,navigate:_,isActive:u[v],isExactActive:u[y]});if(C){if(1===C.length)return C[0];if(C.length>1||!C.length)return 0===C.length?e():e("span",{},C)}if("a"===this.tag)x.on=b,x.attrs={href:c};else{var $=function e(t){var n;if(t)for(var r=0;r-1&&(s.params[f]=n.params[f]);return s.path=B(l.path,s.params),c(l,s,a)}if(s.path){s.params={};for(var d=0;d=e.length?n():e[i]?t(e[i],(function(){r(i+1)})):r(i+1)};r(0)}function ge(e){return function(t,n,i){var o=!1,a=0,s=null;_e(e,(function(e,t,n,c){if("function"==typeof e&&void 0===e.cid){o=!0,a++;var u,l=xe((function(t){var r;((r=t).__esModule||we&&"Module"===r[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:V.extend(t),n.components[c]=t,--a<=0&&i()})),p=xe((function(e){var t="Failed to resolve async component "+c+": "+e;s||(s=r(e)?e:new Error(t),i(s))}));try{u=e(l,p)}catch(e){p(e)}if(u)if("function"==typeof u.then)u.then(l,p);else{var f=u.component;f&&"function"==typeof f.then&&f.then(l,p)}}})),o||i()}}function _e(e,t){return be(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function be(e){return Array.prototype.concat.apply([],e)}var we="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function xe(e){var t=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var Ce=function(e){function t(t){e.call(this),this.name=this._name="NavigationDuplicated",this.message='Navigating to current location ("'+t.fullPath+'") is not allowed',Object.defineProperty(this,"stack",{value:(new e).stack,writable:!0,configurable:!0})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error);Ce._name="NavigationDuplicated";var $e=function(e,t){this.router=e,this.base=function(e){if(!e)if(J){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function ke(e,t,n,r){var i=_e(e,(function(e,r,i,o){var a=function(e,t){"function"!=typeof e&&(e=V.extend(e));return e.options[t]}(e,t);if(a)return Array.isArray(a)?a.map((function(e){return n(e,r,i,o)})):n(a,r,i,o)}));return be(r?i.reverse():i)}function Oe(e,t){if(t)return function(){return e.apply(t,arguments)}}$e.prototype.listen=function(e){this.cb=e},$e.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},$e.prototype.onError=function(e){this.errorCbs.push(e)},$e.prototype.transitionTo=function(e,t,n){var r=this,i=this.router.match(e,this.current);this.confirmTransition(i,(function(){r.updateRoute(i),t&&t(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(i)})))}),(function(e){n&&n(e),e&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach((function(t){t(e)})))}))},$e.prototype.confirmTransition=function(e,t,n){var o=this,a=this.current,s=function(e){!i(Ce,e)&&r(e)&&(o.errorCbs.length?o.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)};if(w(e,a)&&e.matched.length===a.matched.length)return this.ensureURL(),s(new Ce(e));var c=function(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n-1?decodeURI(e.slice(0,r))+e.slice(r):decodeURI(e)}else e=decodeURI(e.slice(0,n))+e.slice(n);return e}function Re(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function Me(e){ve?he(Re(e)):window.location.hash=e}function Le(e){ve?me(Re(e)):window.location.replace(Re(e))}var Ne=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){t.index=n,t.updateRoute(r)}),(function(e){i(Ce,e)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}($e),Pe=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Z(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!ve&&!1!==e.fallback,this.fallback&&(t="hash"),J||(t="abstract"),this.mode=t,t){case"history":this.history=new Ae(this,e.base);break;case"hash":this.history=new je(this,e.base,this.fallback);break;case"abstract":this.history=new Ne(this,e.base);break;default:0}},Ie={currentRoute:{configurable:!0}};function Fe(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}Pe.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},Ie.currentRoute.get=function(){return this.history&&this.history.current},Pe.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null)})),!this.app){this.app=e;var n=this.history;if(n instanceof Ae)n.transitionTo(n.getCurrentLocation());else if(n instanceof je){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},Pe.prototype.beforeEach=function(e){return Fe(this.beforeHooks,e)},Pe.prototype.beforeResolve=function(e){return Fe(this.resolveHooks,e)},Pe.prototype.afterEach=function(e){return Fe(this.afterHooks,e)},Pe.prototype.onReady=function(e,t){this.history.onReady(e,t)},Pe.prototype.onError=function(e){this.history.onError(e)},Pe.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},Pe.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},Pe.prototype.go=function(e){this.history.go(e)},Pe.prototype.back=function(){this.go(-1)},Pe.prototype.forward=function(){this.go(1)},Pe.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},Pe.prototype.resolve=function(e,t,n){var r=z(e,t=t||this.history.current,n,this),i=this.match(r,t),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(e,t,n){var r="hash"===n?"#"+t:t;return e?$(e+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Pe.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Pe.prototype,Ie),Pe.install=function e(t){if(!e.installed||V!==t){e.installed=!0,V=t;var n=function(e){return void 0!==e},r=function(e,t){var r=e.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(e,t)};t.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",a),t.component("RouterLink",G);var i=t.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Pe.version="3.1.6",J&&window.Vue&&window.Vue.use(Pe),t.a=Pe},"./node_modules/vue/dist/vue.esm.js":function(e,t,n){"use strict";n.r(t),function(e,n){ + */function r(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function i(e,t){return t instanceof e||t&&(t.name===e.name||t._name===e._name)}function o(e,t){for(var n in t)e[n]=t[n];return e}var a={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,i=t.parent,a=t.data;a.routerView=!0;for(var c=i.$createElement,u=n.name,l=i.$route,p=i._routerViewCache||(i._routerViewCache={}),f=0,d=!1;i&&i._routerRoot!==i;){var v=i.$vnode?i.$vnode.data:{};v.routerView&&f++,v.keepAlive&&i._directInactive&&i._inactive&&(d=!0),i=i.$parent}if(a.routerViewDepth=f,d){var h=p[u],m=h&&h.component;return m?(h.configProps&&s(m,a,h.route,h.configProps),c(m,a,r)):c()}var y=l.matched[f],g=y&&y.components[u];if(!y||!g)return p[u]=null,c();p[u]={component:g},a.registerRouteInstance=function(e,t){var n=y.instances[u];(t&&n!==e||!t&&n===e)&&(y.instances[u]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){y.instances[u]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==y.instances[u]&&(y.instances[u]=e.componentInstance)};var _=y.props&&y.props[u];return _&&(o(p[u],{route:l,configProps:_}),s(g,a,l,_)),c(g,a,r)}};function s(e,t,n,r){var i=t.props=function(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}(n,r);if(i){i=t.props=o({},i);var a=t.attrs=t.attrs||{};for(var s in i)e.props&&s in e.props||(a[s]=i[s],delete i[s])}}var c=/[!'()*]/g,u=function(e){return"%"+e.charCodeAt(0).toString(16)},l=/%2C/g,p=function(e){return encodeURIComponent(e).replace(c,u).replace(l,",")},f=decodeURIComponent;function d(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=f(n.shift()),i=n.length>0?f(n.join("=")):null;void 0===t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),t):t}function v(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return p(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(p(t)):r.push(p(t)+"="+p(e)))})),r.join("&")}return p(t)+"="+p(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var h=/\/?$/;function m(e,t,n,r){var i=r&&r.options.stringifyQuery,o=t.query||{};try{o=y(o)}catch(e){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:b(t,i),matched:e?_(e):[]};return n&&(a.redirectedFrom=b(n,i)),Object.freeze(a)}function y(e){if(Array.isArray(e))return e.map(y);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=y(e[n]);return t}return e}var g=m(null,{path:"/"});function _(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function b(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var i=e.hash;return void 0===i&&(i=""),(n||"/")+(t||v)(r)+i}function w(e,t){return t===g?e===t:!!t&&(e.path&&t.path?e.path.replace(h,"")===t.path.replace(h,"")&&e.hash===t.hash&&x(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&x(e.query,t.query)&&x(e.params,t.params)))}function x(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){var r=e[n],i=t[n];return"object"==typeof r&&"object"==typeof i?x(r,i):String(r)===String(i)}))}function C(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var i=t.split("/");n&&i[i.length-1]||i.pop();for(var o=e.replace(/^\//,"").split("/"),a=0;a=0&&(t=e.slice(r),e=e.slice(0,r));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}(i.path||""),l=t&&t.path||"/",p=u.path?C(u.path,l,n||i.append):l,f=function(e,t,n){void 0===t&&(t={});var r,i=n||d;try{r=i(e||"")}catch(e){r={}}for(var o in t)r[o]=t[o];return r}(u.query,i.query,r&&r.options.parseQuery),v=i.hash||u.hash;return v&&"#"!==v.charAt(0)&&(v="#"+v),{_normalized:!0,path:p,query:f,hash:v}}var V,q=function(){},G={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:[String,Array],default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),a=i.location,s=i.route,c=i.href,u={},l=n.options.linkActiveClass,p=n.options.linkExactActiveClass,f=null==l?"router-link-active":l,d=null==p?"router-link-exact-active":p,v=null==this.activeClass?f:this.activeClass,y=null==this.exactActiveClass?d:this.exactActiveClass,g=s.redirectedFrom?m(null,z(s.redirectedFrom),null,n):s;u[y]=w(r,g),u[v]=this.exact?u[y]:function(e,t){return 0===e.path.replace(h,"/").indexOf(t.path.replace(h,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(r,g);var _=function(e){J(e)&&(t.replace?n.replace(a,q):n.push(a,q))},b={click:J};Array.isArray(this.event)?this.event.forEach((function(e){b[e]=_})):b[this.event]=_;var x={class:u},C=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:c,route:s,navigate:_,isActive:u[v],isExactActive:u[y]});if(C){if(1===C.length)return C[0];if(C.length>1||!C.length)return 0===C.length?e():e("span",{},C)}if("a"===this.tag)x.on=b,x.attrs={href:c};else{var $=function e(t){var n;if(t)for(var r=0;r-1&&(s.params[f]=n.params[f]);return s.path=B(l.path,s.params),c(l,s,a)}if(s.path){s.params={};for(var d=0;d=e.length?n():e[i]?t(e[i],(function(){r(i+1)})):r(i+1)};r(0)}function ge(e){return function(t,n,i){var o=!1,a=0,s=null;_e(e,(function(e,t,n,c){if("function"==typeof e&&void 0===e.cid){o=!0,a++;var u,l=xe((function(t){var r;((r=t).__esModule||we&&"Module"===r[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:V.extend(t),n.components[c]=t,--a<=0&&i()})),p=xe((function(e){var t="Failed to resolve async component "+c+": "+e;s||(s=r(e)?e:new Error(t),i(s))}));try{u=e(l,p)}catch(e){p(e)}if(u)if("function"==typeof u.then)u.then(l,p);else{var f=u.component;f&&"function"==typeof f.then&&f.then(l,p)}}})),o||i()}}function _e(e,t){return be(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function be(e){return Array.prototype.concat.apply([],e)}var we="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function xe(e){var t=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var Ce=function(e){function t(t){e.call(this),this.name=this._name="NavigationDuplicated",this.message='Navigating to current location ("'+t.fullPath+'") is not allowed',Object.defineProperty(this,"stack",{value:(new e).stack,writable:!0,configurable:!0})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Error);Ce._name="NavigationDuplicated";var $e=function(e,t){this.router=e,this.base=function(e){if(!e)if(K){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";"/"!==e.charAt(0)&&(e="/"+e);return e.replace(/\/$/,"")}(t),this.current=g,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function ke(e,t,n,r){var i=_e(e,(function(e,r,i,o){var a=function(e,t){"function"!=typeof e&&(e=V.extend(e));return e.options[t]}(e,t);if(a)return Array.isArray(a)?a.map((function(e){return n(e,r,i,o)})):n(a,r,i,o)}));return be(r?i.reverse():i)}function Oe(e,t){if(t)return function(){return e.apply(t,arguments)}}$e.prototype.listen=function(e){this.cb=e},$e.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},$e.prototype.onError=function(e){this.errorCbs.push(e)},$e.prototype.transitionTo=function(e,t,n){var r=this,i=this.router.match(e,this.current);this.confirmTransition(i,(function(){r.updateRoute(i),t&&t(i),r.ensureURL(),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(i)})))}),(function(e){n&&n(e),e&&!r.ready&&(r.ready=!0,r.readyErrorCbs.forEach((function(t){t(e)})))}))},$e.prototype.confirmTransition=function(e,t,n){var o=this,a=this.current,s=function(e){!i(Ce,e)&&r(e)&&(o.errorCbs.length?o.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)};if(w(e,a)&&e.matched.length===a.matched.length)return this.ensureURL(),s(new Ce(e));var c=function(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n-1?decodeURI(e.slice(0,r))+e.slice(r):decodeURI(e)}else e=decodeURI(e.slice(0,n))+e.slice(n);return e}function Re(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function Me(e){ve?he(Re(e)):window.location.hash=e}function Le(e){ve?me(Re(e)):window.location.replace(Re(e))}var Ne=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){t.index=n,t.updateRoute(r)}),(function(e){i(Ce,e)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}($e),Pe=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Z(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!ve&&!1!==e.fallback,this.fallback&&(t="hash"),K||(t="abstract"),this.mode=t,t){case"history":this.history=new Ae(this,e.base);break;case"hash":this.history=new je(this,e.base,this.fallback);break;case"abstract":this.history=new Ne(this,e.base);break;default:0}},Ie={currentRoute:{configurable:!0}};function Fe(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}Pe.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},Ie.currentRoute.get=function(){return this.history&&this.history.current},Pe.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null)})),!this.app){this.app=e;var n=this.history;if(n instanceof Ae)n.transitionTo(n.getCurrentLocation());else if(n instanceof je){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},Pe.prototype.beforeEach=function(e){return Fe(this.beforeHooks,e)},Pe.prototype.beforeResolve=function(e){return Fe(this.resolveHooks,e)},Pe.prototype.afterEach=function(e){return Fe(this.afterHooks,e)},Pe.prototype.onReady=function(e,t){this.history.onReady(e,t)},Pe.prototype.onError=function(e){this.history.onError(e)},Pe.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},Pe.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},Pe.prototype.go=function(e){this.history.go(e)},Pe.prototype.back=function(){this.go(-1)},Pe.prototype.forward=function(){this.go(1)},Pe.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},Pe.prototype.resolve=function(e,t,n){var r=z(e,t=t||this.history.current,n,this),i=this.match(r,t),o=i.redirectedFrom||i.fullPath;return{location:r,route:i,href:function(e,t,n){var r="hash"===n?"#"+t:t;return e?$(e+"/"+r):r}(this.history.base,o,this.mode),normalizedTo:r,resolved:i}},Pe.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==g&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Pe.prototype,Ie),Pe.install=function e(t){if(!e.installed||V!==t){e.installed=!0,V=t;var n=function(e){return void 0!==e},r=function(e,t){var r=e.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(e,t)};t.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",a),t.component("RouterLink",G);var i=t.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},Pe.version="3.1.6",K&&window.Vue&&window.Vue.use(Pe),t.a=Pe},"./node_modules/vue/dist/vue.esm.js":function(e,t,n){"use strict";n.r(t),function(e,n){ /*! * Vue.js v2.6.11 * (c) 2014-2019 Evan You * Released under the MIT License. */ -var r=Object.freeze({});function i(e){return null==e}function o(e){return null!=e}function a(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function c(e){return null!==e&&"object"==typeof e}var u=Object.prototype.toString;function l(e){return"[object Object]"===u.call(e)}function p(e){return"[object RegExp]"===u.call(e)}function f(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function h(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function w(e,t){return b.call(e,t)}function x(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var C=/-(\w)/g,$=x((function(e){return e.replace(C,(function(e,t){return t?t.toUpperCase():""}))})),k=x((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),O=/\B([A-Z])/g,A=x((function(e){return e.replace(O,"-$1").toLowerCase()}));var S=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function j(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function T(e,t){for(var n in t)e[n]=t[n];return e}function E(e){for(var t={},n=0;n0,Q=X&&X.indexOf("edge/")>0,ee=(X&&X.indexOf("android"),X&&/iphone|ipad|ipod|ios/.test(X)||"ios"===W),te=(X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X),X&&X.match(/firefox\/(\d+)/)),ne={}.watch,re=!1;if(K)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){re=!0}}),window.addEventListener("test-passive",null,ie)}catch(e){}var oe=function(){return void 0===q&&(q=!K&&!J&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),q},ae=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function se(e){return"function"==typeof e&&/native code/.test(e.toString())}var ce,ue="undefined"!=typeof Symbol&&se(Symbol)&&"undefined"!=typeof Reflect&&se(Reflect.ownKeys);ce="undefined"!=typeof Set&&se(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var le=R,pe=0,fe=function(){this.id=pe++,this.subs=[]};fe.prototype.addSub=function(e){this.subs.push(e)},fe.prototype.removeSub=function(e){_(this.subs,e)},fe.prototype.depend=function(){fe.target&&fe.target.addDep(this)},fe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(o&&!w(i,"default"))a=!1;else if(""===a||a===A(e)){var c=ze(String,i.type);(c<0||s0&&(ft((c=e(c,(n||"")+"_"+r))[0])&&ft(l)&&(p[u]=_e(l.text+c[0].text),c.shift()),p.push.apply(p,c)):s(c)?ft(l)?p[u]=_e(l.text+c):""!==c&&p.push(_e(c)):ft(c)&&ft(l)?p[u]=_e(l.text+c.text):(a(t._isVList)&&o(c.tag)&&i(c.key)&&o(n)&&(c.key="__vlist"+n+"_"+r+"__"),p.push(c)));return p}(e):void 0}function ft(e){return o(e)&&o(e.text)&&!1===e.isComment}function dt(e,t){if(e){for(var n=Object.create(null),r=ue?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=yt(t,c,e[c]))}else i={};for(var u in t)u in i||(i[u]=gt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),z(i,"$stable",a),z(i,"$key",s),z(i,"$hasNormal",o),i}function yt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:pt(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function gt(e,t){return function(){return e[t]}}function _t(e,t){var n,r,i,a,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;rdocument.createEvent("Event").timeStamp&&(ln=function(){return pn.now()})}function fn(){var e,t;for(un=ln(),sn=!0,nn.sort((function(e,t){return e.id-t.id})),cn=0;cncn&&nn[n].id>e.id;)n--;nn.splice(n+1,0,e)}else nn.push(e);an||(an=!0,rt(fn))}}(this)},vn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Ve(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},vn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},vn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},vn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||_(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var hn={enumerable:!0,configurable:!0,get:R,set:R};function mn(e,t,n){hn.get=function(){return this[t][n]},hn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,hn)}function yn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&ke(!1);var o=function(o){i.push(o);var a=He(o,t,n,e);Se(r,o,a),o in e||mn(e,"_props",o)};for(var a in t)o(a);ke(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?R:S(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;l(t=e._data="function"==typeof t?function(e,t){ve();try{return e.call(t,t)}catch(e){return Ve(e,t,"data()"),{}}finally{he()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&w(r,o)||B(o)||mn(e,"_data",o)}Ae(t,!0)}(e):Ae(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=oe();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new vn(e,a||R,R,gn)),i in e||_n(e,i,o)}}(e,t.computed),t.watch&&t.watch!==ne&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!p(e)&&e.test(t)}function jn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=An(a.componentOptions);s&&!t(s)&&Tn(n,o,r,i)}}}function Tn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,_(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Cn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Fe($n(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Xt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=vt(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return Ut(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ut(e,t,n,r,i,!0)};var o=n&&n.data;Se(e,"$attrs",o&&o.attrs||r,null,!0),Se(e,"$listeners",t._parentListeners||r,null,!0)}(t),tn(t,"beforeCreate"),function(e){var t=dt(e.$options.inject,e);t&&(ke(!1),Object.keys(t).forEach((function(n){Se(e,n,t[n])})),ke(!0))}(t),yn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),tn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(kn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=je,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,n){if(l(t))return xn(this,e,t,n);(n=n||{}).user=!0;var r=new vn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){Ve(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(kn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?j(n):n;for(var r=j(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;oparseInt(this.max)&&Tn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return H}};Object.defineProperty(e,"config",t),e.util={warn:le,extend:T,mergeOptions:Fe,defineReactive:Se},e.set=je,e.delete=Te,e.nextTick=rt,e.observable=function(e){return Ae(e),e},e.options=Object.create(null),F.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,Rn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=j(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Fe(this.options,e),this}}(e),On(e),function(e){F.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(kn),Object.defineProperty(kn.prototype,"$isServer",{get:oe}),Object.defineProperty(kn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(kn,"FunctionalRenderContext",{value:Lt}),kn.version="2.6.11";var Mn=m("style,class"),Ln=m("input,textarea,option,select,progress"),Nn=function(e,t,n){return"value"===n&&Ln(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Pn=m("contenteditable,draggable,spellcheck"),In=m("events,caret,typing,plaintext-only"),Fn=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Dn="http://www.w3.org/1999/xlink",Hn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Un=function(e){return Hn(e)?e.slice(6,e.length):""},Bn=function(e){return null==e||!1===e};function zn(e){for(var t=e.data,n=e,r=e;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Vn(r.data,t));for(;o(n=n.parent);)n&&n.data&&(t=Vn(t,n.data));return function(e,t){if(o(e)||o(t))return qn(e,Gn(t));return""}(t.staticClass,t.class)}function Vn(e,t){return{staticClass:qn(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function qn(e,t){return e?t?e+" "+t:e:t||""}function Gn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r-1?yr(e,t,n):Fn(t)?Bn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Pn(t)?e.setAttribute(t,function(e,t){return Bn(t)||"false"===t?"false":"contenteditable"===e&&In(t)?t:"true"}(t,n)):Hn(t)?Bn(n)?e.removeAttributeNS(Dn,Un(t)):e.setAttributeNS(Dn,t,n):yr(e,t,n)}function yr(e,t,n){if(Bn(n))e.removeAttribute(t);else{if(Z&&!Y&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var gr={create:hr,update:hr};function _r(e,t){var n=t.elm,r=t.data,a=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=zn(t),c=n._transitionClasses;o(c)&&(s=qn(s,Gn(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var br,wr,xr,Cr,$r,kr,Or={create:_r,update:_r},Ar=/[\w).+\-_$\]]/;function Sr(e){var t,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,p=0,f=0,d=0;for(r=0;r=0&&" "===(h=e.charAt(v));v--);h&&Ar.test(h)||(u=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r-1?{exp:e.slice(0,Cr),key:'"'+e.slice(Cr+1)+'"'}:{exp:e,key:null};wr=e,Cr=$r=kr=0;for(;!qr();)Gr(xr=Vr())?Jr(xr):91===xr&&Kr(xr);return{exp:e.slice(0,$r),key:e.slice($r+1,kr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Vr(){return wr.charCodeAt(++Cr)}function qr(){return Cr>=br}function Gr(e){return 34===e||39===e}function Kr(e){var t=1;for($r=Cr;!qr();)if(Gr(e=Vr()))Jr(e);else if(91===e&&t++,93===e&&t--,0===t){kr=Cr;break}}function Jr(e){for(var t=e;!qr()&&(e=Vr())!==t;);}var Wr;function Xr(e,t,n){var r=Wr;return function i(){var o=t.apply(null,arguments);null!==o&&Qr(e,i,n,r)}}var Zr=We&&!(te&&Number(te[1])<=53);function Yr(e,t,n,r){if(Zr){var i=un,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Wr.addEventListener(e,t,re?{capture:n,passive:r}:n)}function Qr(e,t,n,r){(r||Wr).removeEventListener(e,t._wrapper||t,n)}function ei(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Wr=t.elm,function(e){if(o(e.__r)){var t=Z?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}o(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),ct(n,r,Yr,Qr,Xr,t.context),Wr=void 0}}var ti,ni={create:ei,update:ei};function ri(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in o(c.__ob__)&&(c=t.data.domProps=T({},c)),s)n in c||(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var u=i(r)?"":String(r);ii(a,u)&&(a.value=u)}else if("innerHTML"===n&&Wn(a.tagName)&&i(a.innerHTML)){(ti=ti||document.createElement("div")).innerHTML=""+r+"";for(var l=ti.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(r!==s[n])try{a[n]=r}catch(e){}}}}function ii(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(o(r)){if(r.number)return h(n)!==h(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var oi={create:ri,update:ri},ai=x((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function si(e){var t=ci(e.style);return e.staticStyle?T(e.staticStyle,t):t}function ci(e){return Array.isArray(e)?E(e):"string"==typeof e?ai(e):e}var ui,li=/^--/,pi=/\s*!important$/,fi=function(e,t,n){if(li.test(t))e.style.setProperty(t,n);else if(pi.test(n))e.style.setProperty(A(t),n.replace(pi,""),"important");else{var r=vi(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(yi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function _i(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(yi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function bi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,wi(e.name||"v")),T(t,e),t}return"string"==typeof e?wi(e):void 0}}var wi=x((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),xi=K&&!Y,Ci="transition",$i="transitionend",ki="animation",Oi="animationend";xi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ci="WebkitTransition",$i="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ki="WebkitAnimation",Oi="webkitAnimationEnd"));var Ai=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Si(e){Ai((function(){Ai(e)}))}function ji(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),gi(e,t))}function Ti(e,t){e._transitionClasses&&_(e._transitionClasses,t),_i(e,t)}function Ei(e,t,n){var r=Mi(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s="transition"===i?$i:Oi,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout((function(){c0&&(n="transition",l=a,p=o.length):"animation"===t?u>0&&(n="animation",l=u,p=c.length):p=(n=(l=Math.max(a,u))>0?a>u?"transition":"animation":null)?"transition"===n?o.length:c.length:0,{type:n,timeout:l,propCount:p,hasTransform:"transition"===n&&Ri.test(r[Ci+"Property"])}}function Li(e,t){for(;e.length1}function Hi(e,t){!0!==t.data.show&&Pi(t)}var Ui=function(e){var t,n,r={},c=e.modules,u=e.nodeOps;for(t=0;tv?_(e,i(n[y+1])?null:n[y+1].elm,n,d,y,r):d>y&&w(t,f,v)}(f,m,y,n,l):o(y)?(o(e.text)&&u.setTextContent(f,""),_(f,null,y,0,y.length-1,n)):o(m)?w(m,0,m.length-1):o(e.text)&&u.setTextContent(f,""):e.text!==t.text&&u.setTextContent(f,t.text),o(v)&&o(d=v.hook)&&o(d=d.postpatch)&&d(e,t)}}}function k(e,t,n){if(a(n)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(N(Gi(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function qi(e,t){return t.every((function(t){return!N(t,e)}))}function Gi(e){return"_value"in e?e._value:e.value}function Ki(e){e.target.composing=!0}function Ji(e){e.target.composing&&(e.target.composing=!1,Wi(e.target,"input"))}function Wi(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Xi(e){return!e.componentInstance||e.data&&e.data.transition?e:Xi(e.componentInstance._vnode)}var Zi={model:Bi,show:{bind:function(e,t,n){var r=t.value,i=(n=Xi(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Pi(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Xi(n)).data&&n.data.transition?(n.data.show=!0,r?Pi(n,(function(){e.style.display=e.__vOriginalDisplay})):Ii(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Yi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Qi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Qi(Gt(t.children)):e}function eo(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[$(o)]=i[o];return t}function to(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var no=function(e){return e.tag||qt(e)},ro=function(e){return"show"===e.name},io={name:"transition",props:Yi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(no)).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Qi(i);if(!o)return i;if(this._leaving)return to(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=eo(this),u=this._vnode,l=Qi(u);if(o.data.directives&&o.data.directives.some(ro)&&(o.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,l)&&!qt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var p=l.data.transition=T({},c);if("out-in"===r)return this._leaving=!0,ut(p,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),to(e,i);if("in-out"===r){if(qt(o))return u;var f,d=function(){f()};ut(c,"afterEnter",d),ut(c,"enterCancelled",d),ut(p,"delayLeave",(function(e){f=e}))}}return i}}},oo=T({tag:String,moveClass:String},Yi);function ao(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function so(e){e.data.newPos=e.elm.getBoundingClientRect()}function co(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete oo.mode;var uo={Transition:io,TransitionGroup:{props:oo,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Yt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=eo(this),s=0;s-1?Yn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Yn[e]=/HTMLUnknownElement/.test(t.toString())},T(kn.options.directives,Zi),T(kn.options.components,uo),kn.prototype.__patch__=K?Ui:R,kn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ge),tn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new vn(e,r,R,{before:function(){e._isMounted&&!e._isDestroyed&&tn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,tn(e,"mounted")),e}(this,e=e&&K?er(e):void 0,t)},K&&setTimeout((function(){H.devtools&&ae&&ae.emit("init",kn)}),0);var lo=/\{\{((?:.|\r?\n)+?)\}\}/g,po=/[-.*+?^${}()|[\]\/\\]/g,fo=x((function(e){var t=e[0].replace(po,"\\$&"),n=e[1].replace(po,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var vo={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Dr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Fr(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var ho,mo={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Dr(e,"style");n&&(e.staticStyle=JSON.stringify(ai(n)));var r=Fr(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},yo=function(e){return(ho=ho||document.createElement("div")).innerHTML=e,ho.textContent},go=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),_o=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),bo=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),wo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,xo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Co="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+U.source+"]*",$o="((?:"+Co+"\\:)?"+Co+")",ko=new RegExp("^<"+$o),Oo=/^\s*(\/?)>/,Ao=new RegExp("^<\\/"+$o+"[^>]*>"),So=/^]+>/i,jo=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Lo=/&(?:lt|gt|quot|amp|#39);/g,No=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Po=m("pre,textarea",!0),Io=function(e,t){return e&&Po(e)&&"\n"===t[0]};function Fo(e,t){var n=t?No:Lo;return e.replace(n,(function(e){return Mo[e]}))}var Do,Ho,Uo,Bo,zo,Vo,qo,Go,Ko=/^@|^v-on:/,Jo=/^v-|^@|^:|^#/,Wo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Xo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Zo=/^\(|\)$/g,Yo=/^\[.*\]$/,Qo=/:(.*)$/,ea=/^:|^\.|^v-bind:/,ta=/\.[^.\]]+(?=[^\]]*$)/g,na=/^v-slot(:|$)|^#/,ra=/[\r\n]/,ia=/\s+/g,oa=x(yo);function aa(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:da(t),rawAttrsMap:{},parent:n,children:[]}}function sa(e,t){Do=t.warn||Tr,Vo=t.isPreTag||M,qo=t.mustUseProp||M,Go=t.getTagNamespace||M;var n=t.isReservedTag||M;(function(e){return!!e.component||!n(e.tag)}),Uo=Er(t.modules,"transformNode"),Bo=Er(t.modules,"preTransformNode"),zo=Er(t.modules,"postTransformNode"),Ho=t.delimiters;var r,i,o=[],a=!1!==t.preserveWhitespace,s=t.whitespace,c=!1,u=!1;function l(e){if(p(e),c||e.processed||(e=ca(e,t)),o.length||e===r||r.if&&(e.elseif||e.else)&&la(r,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)a=e,(s=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(i.children))&&s.if&&la(s,{exp:a.elseif,block:a});else{if(e.slotScope){var n=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=e}i.children.push(e),e.parent=i}var a,s;e.children=e.children.filter((function(e){return!e.slotScope})),p(e),e.pre&&(c=!1),Vo(e.tag)&&(u=!1);for(var l=0;l]*>)","i")),f=e.replace(p,(function(e,n,r){return u=r.length,Eo(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),Io(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));c+=e.length-f.length,e=f,O(l,c-u,c)}else{var d=e.indexOf("<");if(0===d){if(jo.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v),c,c+v+3),C(v+3);continue}}if(To.test(e)){var h=e.indexOf("]>");if(h>=0){C(h+2);continue}}var m=e.match(So);if(m){C(m[0].length);continue}var y=e.match(Ao);if(y){var g=c;C(y[0].length),O(y[1],g,c);continue}var _=$();if(_){k(_),Io(_.tagName,e)&&C(1);continue}}var b=void 0,w=void 0,x=void 0;if(d>=0){for(w=e.slice(d);!(Ao.test(w)||ko.test(w)||jo.test(w)||To.test(w)||(x=w.indexOf("<",1))<0);)d+=x,w=e.slice(d);b=e.substring(0,d)}d<0&&(b=e),b&&C(b.length),t.chars&&b&&t.chars(b,c-b.length,c)}if(e===n){t.chars&&t.chars(e);break}}function C(t){c+=t,e=e.substring(t)}function $(){var t=e.match(ko);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(C(t[0].length);!(n=e.match(Oo))&&(r=e.match(xo)||e.match(wo));)r.start=c,C(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],C(n[0].length),i.end=c,i}}function k(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&bo(n)&&O(r),s(n)&&r===n&&O(n));for(var u=a(n)||!!c,l=e.attrs.length,p=new Array(l),f=0;f=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}O()}(e,{warn:Do,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,a,s,p){var f=i&&i.ns||Go(e);Z&&"svg"===f&&(n=function(e){for(var t=[],n=0;nc&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var u=Sr(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Ir(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+zr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+zr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+zr(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Fr(e,"value")||"null";Rr(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Ir(e,"change",zr(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type;0;var i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?"__r":"input",l="$event.target.value";s&&(l="$event.target.value.trim()");a&&(l="_n("+l+")");var p=zr(t,l);c&&(p="if($event.target.composing)return;"+p);Rr(e,"value","("+t+")"),Ir(e,u,p,null,!0),(s||a)&&Ir(e,"blur","$forceUpdate()")}(e,r,i);else{if(!H.isReservedTag(o))return Br(e,r,i),!1}return!0},text:function(e,t){t.value&&Rr(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Rr(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:go,mustUseProp:Nn,canBeLeftOpenTag:_o,isReservedTag:Xn,getTagNamespace:Zn,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(ya)},wa=x((function(e){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function xa(e,t){e&&(ga=wa(t.staticKeys||""),_a=t.isReservedTag||M,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||y(e.tag)||!_a(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(ga)))}(t),1===t.type){if(!_a(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,$a=/\([^)]*?\);*$/,ka=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Oa={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Aa={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Sa=function(e){return"if("+e+")return null;"},ja={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Sa("$event.target !== $event.currentTarget"),ctrl:Sa("!$event.ctrlKey"),shift:Sa("!$event.shiftKey"),alt:Sa("!$event.altKey"),meta:Sa("!$event.metaKey"),left:Sa("'button' in $event && $event.button !== 0"),middle:Sa("'button' in $event && $event.button !== 1"),right:Sa("'button' in $event && $event.button !== 2")};function Ta(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=Ea(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Ea(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Ea(e)})).join(",")+"]";var t=ka.test(e.value),n=Ca.test(e.value),r=ka.test(e.value.replace($a,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(ja[s])o+=ja[s],Oa[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=Sa(["ctrl","shift","alt","meta"].filter((function(e){return!c[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ra).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Ra(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Oa[e],r=Aa[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ma={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:R},La=function(e){this.options=e,this.warn=e.warn||Tr,this.transforms=Er(e.modules,"transformCode"),this.dataGenFns=Er(e.modules,"genData"),this.directives=T(T({},Ma),e.directives);var t=e.isReservedTag||M;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Na(e,t){var n=new La(t);return{render:"with(this){return "+(e?Pa(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Pa(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ia(e,t);if(e.once&&!e.onceProcessed)return Fa(e,t);if(e.for&&!e.forProcessed)return Ha(e,t);if(e.if&&!e.ifProcessed)return Da(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=Va(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?Ka((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:$(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:Va(t,n,!0);return"_c("+e+","+Ua(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Ua(e,t));var i=e.inlineTemplate?null:Va(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=Na(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Ka(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ba(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ba))}function za(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Da(e,t,za,"null");if(e.for&&!e.forProcessed)return Ha(e,t,za);var r="_empty_"===e.slotScope?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Va(e,t)||"undefined")+":undefined":Va(e,t)||"undefined":Pa(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function Va(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||Pa)(a,t)+s}var c=n?function(e,t){for(var n=0,r=0;r':'
',Ya.innerHTML.indexOf(" ")>0}var ns=!!K&&ts(!1),rs=!!K&&ts(!0),is=x((function(e){var t=er(e);return t&&t.innerHTML})),os=kn.prototype.$mount;kn.prototype.$mount=function(e,t){if((e=e&&er(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=is(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var i=es(r,{outputSourceRange:!1,shouldDecodeNewlines:ns,shouldDecodeNewlinesForHref:rs,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return os.call(this,e,t)},kn.compile=es,t.default=kn}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate)},"./node_modules/vuex/dist/vuex.esm.js":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return x})),n.d(t,"d",(function(){return w}));var r=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function o(e){return null!==e&&"object"==typeof e}var a=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},s={namespaced:{configurable:!0}};s.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(e,t){this._children[e]=t},a.prototype.removeChild=function(e){delete this._children[e]},a.prototype.getChild=function(e){return this._children[e]},a.prototype.hasChild=function(e){return e in this._children},a.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},a.prototype.forEachChild=function(e){i(this._children,e)},a.prototype.forEachGetter=function(e){this._rawModule.getters&&i(this._rawModule.getters,e)},a.prototype.forEachAction=function(e){this._rawModule.actions&&i(this._rawModule.actions,e)},a.prototype.forEachMutation=function(e){this._rawModule.mutations&&i(this._rawModule.mutations,e)},Object.defineProperties(a.prototype,s);var c=function(e){this.register([],e,!1)};c.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},c.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},c.prototype.update=function(e){!function e(t,n,r){0;if(n.update(r),r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;e(t.concat(i),n.getChild(i),r.modules[i])}}([],this.root,e)},c.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var o=new a(t,n);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o);t.modules&&i(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},c.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];t.getChild(n).runtime&&t.removeChild(n)},c.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return t.hasChild(n)};var u;var l=function(e){var t=this;void 0===e&&(e={}),!u&&"undefined"!=typeof window&&window.Vue&&g(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new c(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(e,t){return a.call(o,e,t)},this.commit=function(e,t,n){return s.call(o,e,t,n)},this.strict=i;var l=this._modules.root.state;h(this,l,[],this._modules.root),v(this,l),n.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:u.config.devtools)&&function(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){r.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},p={state:{configurable:!0}};function f(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function d(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;h(e,n,[],e._modules.root,!0),v(e,n,t)}function v(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,a={};i(o,(function(t,n){a[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=u.config.silent;u.config.silent=!0,e._vm=new u({data:{$$state:t},computed:a}),u.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),u.nextTick((function(){return r.$destroy()})))}function h(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=m(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){u.set(s,c,r.state)}))}var l=r.context=function(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=y(n,r,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:r?e.commit:function(n,r,i){var o=y(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return m(e.state,n)}}}),i}(e,a,n);r.forEachMutation((function(t,n){!function(e,t,n,r){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,r.state,t)}))}(e,a+n,t,l)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;!function(e,t,n,r){(e._actions[t]||(e._actions[t]=[])).push((function(t){var i,o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(i=o)&&"function"==typeof i.then||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}(e,r,i,l)})),r.forEachGetter((function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,a+n,t,l)})),r.forEachChild((function(r,o){h(e,t,n.concat(o),r,i)}))}function m(e,t){return t.reduce((function(e,t){return e[t]}),e)}function y(e,t,n){return o(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function g(e){u&&e===u|| +var r=Object.freeze({});function i(e){return null==e}function o(e){return null!=e}function a(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function c(e){return null!==e&&"object"==typeof e}var u=Object.prototype.toString;function l(e){return"[object Object]"===u.call(e)}function p(e){return"[object RegExp]"===u.call(e)}function f(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function h(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function w(e,t){return b.call(e,t)}function x(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var C=/-(\w)/g,$=x((function(e){return e.replace(C,(function(e,t){return t?t.toUpperCase():""}))})),k=x((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),O=/\B([A-Z])/g,A=x((function(e){return e.replace(O,"-$1").toLowerCase()}));var S=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function j(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function T(e,t){for(var n in t)e[n]=t[n];return e}function E(e){for(var t={},n=0;n0,Q=X&&X.indexOf("edge/")>0,ee=(X&&X.indexOf("android"),X&&/iphone|ipad|ipod|ios/.test(X)||"ios"===W),te=(X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X),X&&X.match(/firefox\/(\d+)/)),ne={}.watch,re=!1;if(J)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){re=!0}}),window.addEventListener("test-passive",null,ie)}catch(e){}var oe=function(){return void 0===q&&(q=!J&&!K&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),q},ae=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function se(e){return"function"==typeof e&&/native code/.test(e.toString())}var ce,ue="undefined"!=typeof Symbol&&se(Symbol)&&"undefined"!=typeof Reflect&&se(Reflect.ownKeys);ce="undefined"!=typeof Set&&se(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var le=R,pe=0,fe=function(){this.id=pe++,this.subs=[]};fe.prototype.addSub=function(e){this.subs.push(e)},fe.prototype.removeSub=function(e){_(this.subs,e)},fe.prototype.depend=function(){fe.target&&fe.target.addDep(this)},fe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(o&&!w(i,"default"))a=!1;else if(""===a||a===A(e)){var c=ze(String,i.type);(c<0||s0&&(ft((c=e(c,(n||"")+"_"+r))[0])&&ft(l)&&(p[u]=_e(l.text+c[0].text),c.shift()),p.push.apply(p,c)):s(c)?ft(l)?p[u]=_e(l.text+c):""!==c&&p.push(_e(c)):ft(c)&&ft(l)?p[u]=_e(l.text+c.text):(a(t._isVList)&&o(c.tag)&&i(c.key)&&o(n)&&(c.key="__vlist"+n+"_"+r+"__"),p.push(c)));return p}(e):void 0}function ft(e){return o(e)&&o(e.text)&&!1===e.isComment}function dt(e,t){if(e){for(var n=Object.create(null),r=ue?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=yt(t,c,e[c]))}else i={};for(var u in t)u in i||(i[u]=gt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),z(i,"$stable",a),z(i,"$key",s),z(i,"$hasNormal",o),i}function yt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:pt(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function gt(e,t){return function(){return e[t]}}function _t(e,t){var n,r,i,a,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;rdocument.createEvent("Event").timeStamp&&(ln=function(){return pn.now()})}function fn(){var e,t;for(un=ln(),sn=!0,nn.sort((function(e,t){return e.id-t.id})),cn=0;cncn&&nn[n].id>e.id;)n--;nn.splice(n+1,0,e)}else nn.push(e);an||(an=!0,rt(fn))}}(this)},vn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Ve(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},vn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},vn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},vn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||_(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var hn={enumerable:!0,configurable:!0,get:R,set:R};function mn(e,t,n){hn.get=function(){return this[t][n]},hn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,hn)}function yn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&ke(!1);var o=function(o){i.push(o);var a=He(o,t,n,e);Se(r,o,a),o in e||mn(e,"_props",o)};for(var a in t)o(a);ke(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?R:S(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;l(t=e._data="function"==typeof t?function(e,t){ve();try{return e.call(t,t)}catch(e){return Ve(e,t,"data()"),{}}finally{he()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&w(r,o)||B(o)||mn(e,"_data",o)}Ae(t,!0)}(e):Ae(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=oe();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new vn(e,a||R,R,gn)),i in e||_n(e,i,o)}}(e,t.computed),t.watch&&t.watch!==ne&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!p(e)&&e.test(t)}function jn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=An(a.componentOptions);s&&!t(s)&&Tn(n,o,r,i)}}}function Tn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,_(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=Cn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Fe($n(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Xt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=vt(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return Ut(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ut(e,t,n,r,i,!0)};var o=n&&n.data;Se(e,"$attrs",o&&o.attrs||r,null,!0),Se(e,"$listeners",t._parentListeners||r,null,!0)}(t),tn(t,"beforeCreate"),function(e){var t=dt(e.$options.inject,e);t&&(ke(!1),Object.keys(t).forEach((function(n){Se(e,n,t[n])})),ke(!0))}(t),yn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),tn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(kn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=je,e.prototype.$delete=Te,e.prototype.$watch=function(e,t,n){if(l(t))return xn(this,e,t,n);(n=n||{}).user=!0;var r=new vn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){Ve(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(kn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?j(n):n;for(var r=j(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;oparseInt(this.max)&&Tn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return H}};Object.defineProperty(e,"config",t),e.util={warn:le,extend:T,mergeOptions:Fe,defineReactive:Se},e.set=je,e.delete=Te,e.nextTick=rt,e.observable=function(e){return Ae(e),e},e.options=Object.create(null),F.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,Rn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=j(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Fe(this.options,e),this}}(e),On(e),function(e){F.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&l(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(kn),Object.defineProperty(kn.prototype,"$isServer",{get:oe}),Object.defineProperty(kn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(kn,"FunctionalRenderContext",{value:Lt}),kn.version="2.6.11";var Mn=m("style,class"),Ln=m("input,textarea,option,select,progress"),Nn=function(e,t,n){return"value"===n&&Ln(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Pn=m("contenteditable,draggable,spellcheck"),In=m("events,caret,typing,plaintext-only"),Fn=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Dn="http://www.w3.org/1999/xlink",Hn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Un=function(e){return Hn(e)?e.slice(6,e.length):""},Bn=function(e){return null==e||!1===e};function zn(e){for(var t=e.data,n=e,r=e;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Vn(r.data,t));for(;o(n=n.parent);)n&&n.data&&(t=Vn(t,n.data));return function(e,t){if(o(e)||o(t))return qn(e,Gn(t));return""}(t.staticClass,t.class)}function Vn(e,t){return{staticClass:qn(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function qn(e,t){return e?t?e+" "+t:e:t||""}function Gn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r-1?yr(e,t,n):Fn(t)?Bn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Pn(t)?e.setAttribute(t,function(e,t){return Bn(t)||"false"===t?"false":"contenteditable"===e&&In(t)?t:"true"}(t,n)):Hn(t)?Bn(n)?e.removeAttributeNS(Dn,Un(t)):e.setAttributeNS(Dn,t,n):yr(e,t,n)}function yr(e,t,n){if(Bn(n))e.removeAttribute(t);else{if(Z&&!Y&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var gr={create:hr,update:hr};function _r(e,t){var n=t.elm,r=t.data,a=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=zn(t),c=n._transitionClasses;o(c)&&(s=qn(s,Gn(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var br,wr,xr,Cr,$r,kr,Or={create:_r,update:_r},Ar=/[\w).+\-_$\]]/;function Sr(e){var t,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,p=0,f=0,d=0;for(r=0;r=0&&" "===(h=e.charAt(v));v--);h&&Ar.test(h)||(u=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r-1?{exp:e.slice(0,Cr),key:'"'+e.slice(Cr+1)+'"'}:{exp:e,key:null};wr=e,Cr=$r=kr=0;for(;!qr();)Gr(xr=Vr())?Kr(xr):91===xr&&Jr(xr);return{exp:e.slice(0,$r),key:e.slice($r+1,kr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Vr(){return wr.charCodeAt(++Cr)}function qr(){return Cr>=br}function Gr(e){return 34===e||39===e}function Jr(e){var t=1;for($r=Cr;!qr();)if(Gr(e=Vr()))Kr(e);else if(91===e&&t++,93===e&&t--,0===t){kr=Cr;break}}function Kr(e){for(var t=e;!qr()&&(e=Vr())!==t;);}var Wr;function Xr(e,t,n){var r=Wr;return function i(){var o=t.apply(null,arguments);null!==o&&Qr(e,i,n,r)}}var Zr=We&&!(te&&Number(te[1])<=53);function Yr(e,t,n,r){if(Zr){var i=un,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Wr.addEventListener(e,t,re?{capture:n,passive:r}:n)}function Qr(e,t,n,r){(r||Wr).removeEventListener(e,t._wrapper||t,n)}function ei(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Wr=t.elm,function(e){if(o(e.__r)){var t=Z?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}o(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),ct(n,r,Yr,Qr,Xr,t.context),Wr=void 0}}var ti,ni={create:ei,update:ei};function ri(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in o(c.__ob__)&&(c=t.data.domProps=T({},c)),s)n in c||(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var u=i(r)?"":String(r);ii(a,u)&&(a.value=u)}else if("innerHTML"===n&&Wn(a.tagName)&&i(a.innerHTML)){(ti=ti||document.createElement("div")).innerHTML=""+r+"";for(var l=ti.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(r!==s[n])try{a[n]=r}catch(e){}}}}function ii(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(o(r)){if(r.number)return h(n)!==h(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var oi={create:ri,update:ri},ai=x((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function si(e){var t=ci(e.style);return e.staticStyle?T(e.staticStyle,t):t}function ci(e){return Array.isArray(e)?E(e):"string"==typeof e?ai(e):e}var ui,li=/^--/,pi=/\s*!important$/,fi=function(e,t,n){if(li.test(t))e.style.setProperty(t,n);else if(pi.test(n))e.style.setProperty(A(t),n.replace(pi,""),"important");else{var r=vi(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(yi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function _i(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(yi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function bi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&T(t,wi(e.name||"v")),T(t,e),t}return"string"==typeof e?wi(e):void 0}}var wi=x((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),xi=J&&!Y,Ci="transition",$i="transitionend",ki="animation",Oi="animationend";xi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ci="WebkitTransition",$i="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ki="WebkitAnimation",Oi="webkitAnimationEnd"));var Ai=J?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Si(e){Ai((function(){Ai(e)}))}function ji(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),gi(e,t))}function Ti(e,t){e._transitionClasses&&_(e._transitionClasses,t),_i(e,t)}function Ei(e,t,n){var r=Mi(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s="transition"===i?$i:Oi,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout((function(){c0&&(n="transition",l=a,p=o.length):"animation"===t?u>0&&(n="animation",l=u,p=c.length):p=(n=(l=Math.max(a,u))>0?a>u?"transition":"animation":null)?"transition"===n?o.length:c.length:0,{type:n,timeout:l,propCount:p,hasTransform:"transition"===n&&Ri.test(r[Ci+"Property"])}}function Li(e,t){for(;e.length1}function Hi(e,t){!0!==t.data.show&&Pi(t)}var Ui=function(e){var t,n,r={},c=e.modules,u=e.nodeOps;for(t=0;tv?_(e,i(n[y+1])?null:n[y+1].elm,n,d,y,r):d>y&&w(t,f,v)}(f,m,y,n,l):o(y)?(o(e.text)&&u.setTextContent(f,""),_(f,null,y,0,y.length-1,n)):o(m)?w(m,0,m.length-1):o(e.text)&&u.setTextContent(f,""):e.text!==t.text&&u.setTextContent(f,t.text),o(v)&&o(d=v.hook)&&o(d=d.postpatch)&&d(e,t)}}}function k(e,t,n){if(a(n)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(N(Gi(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function qi(e,t){return t.every((function(t){return!N(t,e)}))}function Gi(e){return"_value"in e?e._value:e.value}function Ji(e){e.target.composing=!0}function Ki(e){e.target.composing&&(e.target.composing=!1,Wi(e.target,"input"))}function Wi(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Xi(e){return!e.componentInstance||e.data&&e.data.transition?e:Xi(e.componentInstance._vnode)}var Zi={model:Bi,show:{bind:function(e,t,n){var r=t.value,i=(n=Xi(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Pi(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Xi(n)).data&&n.data.transition?(n.data.show=!0,r?Pi(n,(function(){e.style.display=e.__vOriginalDisplay})):Ii(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Yi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Qi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Qi(Gt(t.children)):e}function eo(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[$(o)]=i[o];return t}function to(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var no=function(e){return e.tag||qt(e)},ro=function(e){return"show"===e.name},io={name:"transition",props:Yi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(no)).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Qi(i);if(!o)return i;if(this._leaving)return to(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=eo(this),u=this._vnode,l=Qi(u);if(o.data.directives&&o.data.directives.some(ro)&&(o.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,l)&&!qt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var p=l.data.transition=T({},c);if("out-in"===r)return this._leaving=!0,ut(p,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),to(e,i);if("in-out"===r){if(qt(o))return u;var f,d=function(){f()};ut(c,"afterEnter",d),ut(c,"enterCancelled",d),ut(p,"delayLeave",(function(e){f=e}))}}return i}}},oo=T({tag:String,moveClass:String},Yi);function ao(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function so(e){e.data.newPos=e.elm.getBoundingClientRect()}function co(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete oo.mode;var uo={Transition:io,TransitionGroup:{props:oo,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Yt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=eo(this),s=0;s-1?Yn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Yn[e]=/HTMLUnknownElement/.test(t.toString())},T(kn.options.directives,Zi),T(kn.options.components,uo),kn.prototype.__patch__=J?Ui:R,kn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ge),tn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new vn(e,r,R,{before:function(){e._isMounted&&!e._isDestroyed&&tn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,tn(e,"mounted")),e}(this,e=e&&J?er(e):void 0,t)},J&&setTimeout((function(){H.devtools&&ae&&ae.emit("init",kn)}),0);var lo=/\{\{((?:.|\r?\n)+?)\}\}/g,po=/[-.*+?^${}()|[\]\/\\]/g,fo=x((function(e){var t=e[0].replace(po,"\\$&"),n=e[1].replace(po,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var vo={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Dr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Fr(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var ho,mo={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Dr(e,"style");n&&(e.staticStyle=JSON.stringify(ai(n)));var r=Fr(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},yo=function(e){return(ho=ho||document.createElement("div")).innerHTML=e,ho.textContent},go=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),_o=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),bo=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),wo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,xo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Co="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+U.source+"]*",$o="((?:"+Co+"\\:)?"+Co+")",ko=new RegExp("^<"+$o),Oo=/^\s*(\/?)>/,Ao=new RegExp("^<\\/"+$o+"[^>]*>"),So=/^]+>/i,jo=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Lo=/&(?:lt|gt|quot|amp|#39);/g,No=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Po=m("pre,textarea",!0),Io=function(e,t){return e&&Po(e)&&"\n"===t[0]};function Fo(e,t){var n=t?No:Lo;return e.replace(n,(function(e){return Mo[e]}))}var Do,Ho,Uo,Bo,zo,Vo,qo,Go,Jo=/^@|^v-on:/,Ko=/^v-|^@|^:|^#/,Wo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Xo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Zo=/^\(|\)$/g,Yo=/^\[.*\]$/,Qo=/:(.*)$/,ea=/^:|^\.|^v-bind:/,ta=/\.[^.\]]+(?=[^\]]*$)/g,na=/^v-slot(:|$)|^#/,ra=/[\r\n]/,ia=/\s+/g,oa=x(yo);function aa(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:da(t),rawAttrsMap:{},parent:n,children:[]}}function sa(e,t){Do=t.warn||Tr,Vo=t.isPreTag||M,qo=t.mustUseProp||M,Go=t.getTagNamespace||M;var n=t.isReservedTag||M;(function(e){return!!e.component||!n(e.tag)}),Uo=Er(t.modules,"transformNode"),Bo=Er(t.modules,"preTransformNode"),zo=Er(t.modules,"postTransformNode"),Ho=t.delimiters;var r,i,o=[],a=!1!==t.preserveWhitespace,s=t.whitespace,c=!1,u=!1;function l(e){if(p(e),c||e.processed||(e=ca(e,t)),o.length||e===r||r.if&&(e.elseif||e.else)&&la(r,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)a=e,(s=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(i.children))&&s.if&&la(s,{exp:a.elseif,block:a});else{if(e.slotScope){var n=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=e}i.children.push(e),e.parent=i}var a,s;e.children=e.children.filter((function(e){return!e.slotScope})),p(e),e.pre&&(c=!1),Vo(e.tag)&&(u=!1);for(var l=0;l]*>)","i")),f=e.replace(p,(function(e,n,r){return u=r.length,Eo(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),Io(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));c+=e.length-f.length,e=f,O(l,c-u,c)}else{var d=e.indexOf("<");if(0===d){if(jo.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v),c,c+v+3),C(v+3);continue}}if(To.test(e)){var h=e.indexOf("]>");if(h>=0){C(h+2);continue}}var m=e.match(So);if(m){C(m[0].length);continue}var y=e.match(Ao);if(y){var g=c;C(y[0].length),O(y[1],g,c);continue}var _=$();if(_){k(_),Io(_.tagName,e)&&C(1);continue}}var b=void 0,w=void 0,x=void 0;if(d>=0){for(w=e.slice(d);!(Ao.test(w)||ko.test(w)||jo.test(w)||To.test(w)||(x=w.indexOf("<",1))<0);)d+=x,w=e.slice(d);b=e.substring(0,d)}d<0&&(b=e),b&&C(b.length),t.chars&&b&&t.chars(b,c-b.length,c)}if(e===n){t.chars&&t.chars(e);break}}function C(t){c+=t,e=e.substring(t)}function $(){var t=e.match(ko);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(C(t[0].length);!(n=e.match(Oo))&&(r=e.match(xo)||e.match(wo));)r.start=c,C(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],C(n[0].length),i.end=c,i}}function k(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&bo(n)&&O(r),s(n)&&r===n&&O(n));for(var u=a(n)||!!c,l=e.attrs.length,p=new Array(l),f=0;f=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}O()}(e,{warn:Do,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,a,s,p){var f=i&&i.ns||Go(e);Z&&"svg"===f&&(n=function(e){for(var t=[],n=0;nc&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var u=Sr(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Ir(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+zr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+zr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+zr(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Fr(e,"value")||"null";Rr(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Ir(e,"change",zr(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type;0;var i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?"__r":"input",l="$event.target.value";s&&(l="$event.target.value.trim()");a&&(l="_n("+l+")");var p=zr(t,l);c&&(p="if($event.target.composing)return;"+p);Rr(e,"value","("+t+")"),Ir(e,u,p,null,!0),(s||a)&&Ir(e,"blur","$forceUpdate()")}(e,r,i);else{if(!H.isReservedTag(o))return Br(e,r,i),!1}return!0},text:function(e,t){t.value&&Rr(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Rr(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:go,mustUseProp:Nn,canBeLeftOpenTag:_o,isReservedTag:Xn,getTagNamespace:Zn,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(ya)},wa=x((function(e){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function xa(e,t){e&&(ga=wa(t.staticKeys||""),_a=t.isReservedTag||M,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||y(e.tag)||!_a(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(ga)))}(t),1===t.type){if(!_a(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,$a=/\([^)]*?\);*$/,ka=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Oa={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Aa={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Sa=function(e){return"if("+e+")return null;"},ja={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Sa("$event.target !== $event.currentTarget"),ctrl:Sa("!$event.ctrlKey"),shift:Sa("!$event.shiftKey"),alt:Sa("!$event.altKey"),meta:Sa("!$event.metaKey"),left:Sa("'button' in $event && $event.button !== 0"),middle:Sa("'button' in $event && $event.button !== 1"),right:Sa("'button' in $event && $event.button !== 2")};function Ta(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=Ea(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Ea(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Ea(e)})).join(",")+"]";var t=ka.test(e.value),n=Ca.test(e.value),r=ka.test(e.value.replace($a,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(ja[s])o+=ja[s],Oa[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=Sa(["ctrl","shift","alt","meta"].filter((function(e){return!c[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ra).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Ra(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Oa[e],r=Aa[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ma={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:R},La=function(e){this.options=e,this.warn=e.warn||Tr,this.transforms=Er(e.modules,"transformCode"),this.dataGenFns=Er(e.modules,"genData"),this.directives=T(T({},Ma),e.directives);var t=e.isReservedTag||M;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Na(e,t){var n=new La(t);return{render:"with(this){return "+(e?Pa(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Pa(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ia(e,t);if(e.once&&!e.onceProcessed)return Fa(e,t);if(e.for&&!e.forProcessed)return Ha(e,t);if(e.if&&!e.ifProcessed)return Da(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=Va(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?Ja((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:$(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:Va(t,n,!0);return"_c("+e+","+Ua(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Ua(e,t));var i=e.inlineTemplate?null:Va(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=Na(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Ja(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ba(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ba))}function za(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Da(e,t,za,"null");if(e.for&&!e.forProcessed)return Ha(e,t,za);var r="_empty_"===e.slotScope?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Va(e,t)||"undefined")+":undefined":Va(e,t)||"undefined":Pa(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function Va(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||Pa)(a,t)+s}var c=n?function(e,t){for(var n=0,r=0;r':'
',Ya.innerHTML.indexOf(" ")>0}var ns=!!J&&ts(!1),rs=!!J&&ts(!0),is=x((function(e){var t=er(e);return t&&t.innerHTML})),os=kn.prototype.$mount;kn.prototype.$mount=function(e,t){if((e=e&&er(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=is(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var i=es(r,{outputSourceRange:!1,shouldDecodeNewlines:ns,shouldDecodeNewlinesForHref:rs,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return os.call(this,e,t)},kn.compile=es,t.default=kn}.call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/timers-browserify/main.js").setImmediate)},"./node_modules/vuex/dist/vuex.esm.js":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return x})),n.d(t,"d",(function(){return w}));var r=("undefined"!=typeof window?window:void 0!==e?e:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function o(e){return null!==e&&"object"==typeof e}var a=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},s={namespaced:{configurable:!0}};s.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(e,t){this._children[e]=t},a.prototype.removeChild=function(e){delete this._children[e]},a.prototype.getChild=function(e){return this._children[e]},a.prototype.hasChild=function(e){return e in this._children},a.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},a.prototype.forEachChild=function(e){i(this._children,e)},a.prototype.forEachGetter=function(e){this._rawModule.getters&&i(this._rawModule.getters,e)},a.prototype.forEachAction=function(e){this._rawModule.actions&&i(this._rawModule.actions,e)},a.prototype.forEachMutation=function(e){this._rawModule.mutations&&i(this._rawModule.mutations,e)},Object.defineProperties(a.prototype,s);var c=function(e){this.register([],e,!1)};c.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},c.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},c.prototype.update=function(e){!function e(t,n,r){0;if(n.update(r),r.modules)for(var i in r.modules){if(!n.getChild(i))return void 0;e(t.concat(i),n.getChild(i),r.modules[i])}}([],this.root,e)},c.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var o=new a(t,n);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o);t.modules&&i(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},c.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];t.getChild(n).runtime&&t.removeChild(n)},c.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return t.hasChild(n)};var u;var l=function(e){var t=this;void 0===e&&(e={}),!u&&"undefined"!=typeof window&&window.Vue&&g(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new c(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,s=this.commit;this.dispatch=function(e,t){return a.call(o,e,t)},this.commit=function(e,t,n){return s.call(o,e,t,n)},this.strict=i;var l=this._modules.root.state;h(this,l,[],this._modules.root),v(this,l),n.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:u.config.devtools)&&function(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){r.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},p={state:{configurable:!0}};function f(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function d(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;h(e,n,[],e._modules.root,!0),v(e,n,t)}function v(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,a={};i(o,(function(t,n){a[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=u.config.silent;u.config.silent=!0,e._vm=new u({data:{$$state:t},computed:a}),u.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),u.nextTick((function(){return r.$destroy()})))}function h(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=m(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){u.set(s,c,r.state)}))}var l=r.context=function(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=y(n,r,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:r?e.commit:function(n,r,i){var o=y(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return m(e.state,n)}}}),i}(e,a,n);r.forEachMutation((function(t,n){!function(e,t,n,r){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,r.state,t)}))}(e,a+n,t,l)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;!function(e,t,n,r){(e._actions[t]||(e._actions[t]=[])).push((function(t){var i,o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(i=o)&&"function"==typeof i.then||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}(e,r,i,l)})),r.forEachGetter((function(t,n){!function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}}(e,a+n,t,l)})),r.forEachChild((function(r,o){h(e,t,n.concat(o),r,i)}))}function m(e,t){return t.reduce((function(e,t){return e[t]}),e)}function y(e,t,n){return o(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function g(e){u&&e===u|| /*! * vuex v3.4.0 * (c) 2020 Evan You * @license MIT */ -function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(u=e)}p.state.get=function(){return this._vm._data.$$state},p.state.set=function(e){0},l.prototype.commit=function(e,t,n){var r=this,i=y(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},l.prototype.dispatch=function(e,t){var n=this,r=y(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(e){0}var c=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(e){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(e){0}t(e)}))}))}},l.prototype.subscribe=function(e,t){return f(e,this._subscribers,t)},l.prototype.subscribeAction=function(e,t){return f("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},l.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},l.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},l.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),h(this,this.state,e,this._modules.get(e),n.preserveState),v(this,this.state)},l.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=m(t.state,e.slice(0,-1));u.delete(n,e[e.length-1])})),d(this)},l.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},l.prototype.hotUpdate=function(e){this._modules.update(e),d(this,!0)},l.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(l.prototype,p);var _=$((function(e,t){var n={};return C(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=k(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),b=$((function(e,t){var n={};return C(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=k(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),w=$((function(e,t){var n={};return C(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||k(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),x=$((function(e,t){var n={};return C(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=k(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n}));function C(e){return function(e){return Array.isArray(e)||o(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function $(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function k(e,t,n){return e._modulesNamespaceMap[n]}var O={Store:l,install:g,version:"3.4.0",mapState:_,mapMutations:b,mapGetters:w,mapActions:x,createNamespacedHelpers:function(e){return{mapState:_.bind(null,e),mapGetters:w.bind(null,e),mapMutations:b.bind(null,e),mapActions:x.bind(null,e)}}};t.b=O}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./resources/scripts/applications/admin/app.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/admin/app.vue?vue&type=template&id=a74b4bd8&"),i=n("./resources/scripts/applications/admin/app.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("a74b4bd8")?s.reload("a74b4bd8",a.options):s.createRecord("a74b4bd8",a.options),e.hot.accept("./resources/scripts/applications/admin/app.vue?vue&type=template&id=a74b4bd8&",function(e){r=n("./resources/scripts/applications/admin/app.vue?vue&type=template&id=a74b4bd8&"),s.rerender("a74b4bd8",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/admin/app.vue",t.a=a.exports},"./resources/scripts/applications/admin/app.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/admin/components/Header.vue"),i=n("./resources/scripts/applications/shared/components/SideBar/SideBar.vue");const o=[{href:"/",text:"Home",isRouterLink:!0,icon:"fa fa-home"},{href:"/applications",text:"Applications",isRouterLink:!0,icon:"fa fa-puzzle-piece"},{href:"/settings",isRouterLink:!0,text:"Settings",icon:"fa fa-gears"},{isRouterLink:!1,href:"/logout",text:"Logout",icon:"fa fa-sign-out"}];var a={name:"App",components:{SideBar:i.a,Header:r.a},created(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:console.log(e.$store.getters.users);case 1:case"end":return t.stop()}}),null,null,null,Promise)},data:()=>({appName:"Admin",menu:o})};t.a=a},"./resources/scripts/applications/admin/app.vue?vue&type=template&id=a74b4bd8&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"app"},[t("Header",{attrs:{appName:this.appName}}),this._v(" "),t("div",{staticClass:"columns m-t-xs is-fullheight"},[t("div",{staticClass:"column sidebar"},[t("SideBar",{attrs:{title:this.appName,menu:this.menu,appName:this.appName}})],1),this._v(" "),t("section",{staticClass:"section column app-content"},[t("div",{staticClass:"container"},[t("router-view")],1)])])],1)},i=[];r._withStripped=!0},"./resources/scripts/applications/admin/components/Header.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/admin/components/Header.vue?vue&type=template&id=1df951f9&"),i=n("./resources/scripts/applications/admin/components/Header.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("1df951f9")?s.reload("1df951f9",a.options):s.createRecord("1df951f9",a.options),e.hot.accept("./resources/scripts/applications/admin/components/Header.vue?vue&type=template&id=1df951f9&",function(e){r=n("./resources/scripts/applications/admin/components/Header.vue?vue&type=template&id=1df951f9&"),s.rerender("1df951f9",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/admin/components/Header.vue",t.a=a.exports},"./resources/scripts/applications/admin/components/Header.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";t.a={name:"Header",props:["appName"]}},"./resources/scripts/applications/admin/components/Header.vue?vue&type=template&id=1df951f9&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this.$createElement,t=this._self._c||e;return t("section",{staticClass:"hero is-small is-primary hero-bg-landing01"},[t("div",{staticClass:"hero-body"},[t("div",{staticClass:"container"},[t("h1",{staticClass:"title"},[this._v(this._s(this.appName))])])])])},i=[];r._withStripped=!0},"./resources/scripts/applications/admin/components/child_avatar.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/admin/components/child_avatar.vue?vue&type=template&id=36b9a2b0&"),i=n("./resources/scripts/applications/admin/components/child_avatar.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("36b9a2b0")?s.reload("36b9a2b0",a.options):s.createRecord("36b9a2b0",a.options),e.hot.accept("./resources/scripts/applications/admin/components/child_avatar.vue?vue&type=template&id=36b9a2b0&",function(e){r=n("./resources/scripts/applications/admin/components/child_avatar.vue?vue&type=template&id=36b9a2b0&"),s.rerender("36b9a2b0",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/admin/components/child_avatar.vue",t.a=a.exports},"./resources/scripts/applications/admin/components/child_avatar.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var r={name:"ChildAvatar",props:["child"],created(){}};t.a=r},"./resources/scripts/applications/admin/components/child_avatar.vue?vue&type=template&id=36b9a2b0&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"chiled-avatar has-text-centered"},[t("div",{staticClass:"child-avatar-image"},[t("figure",{staticClass:"image is-48x48"},[t("img",{staticClass:"is-rounded is-avatar",attrs:{src:this.child.avatar,alt:"Placeholder image"}})])]),this._v(" "),t("div",{staticClass:"chiled-avatar-name"},[this._v(this._s(this.child.name))])])},i=[];r._withStripped=!0},"./resources/scripts/applications/admin/main.vue":function(e,t,n){"use strict";n.r(t);n("./node_modules/regenerator-runtime/runtime.js");var r=n("./node_modules/vue/dist/vue.esm.js"),i=n("./resources/scripts/applications/admin/app.vue"),o=n("./node_modules/vue-router/dist/vue-router.esm.js"),a=n("./resources/scripts/applications/admin/views/home.vue"),s=n("./resources/scripts/applications/admin/views/settings.vue"),c=n("./resources/scripts/applications/admin/views/application.vue");r.default.use(o.a);const u={routes:[{path:"/",component:a.a,name:"root"},{path:"/settings",component:s.a},{path:"/applications",component:c.a}],mode:"history",base:"/admin"};var l=new o.a(u),p=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),f=Object(p.a)(l,void 0,void 0,!1,null,null,null),d=n("./node_modules/vue-hot-reload-api/dist/index.js");d.install(n("./node_modules/vue/dist/vue.esm.js")),d.compatible&&(e.hot.accept(),d.isRecorded("6b815002")?d.reload("6b815002",f.options):d.createRecord("6b815002",f.options)),f.options.__file="resources/scripts/applications/admin/router/router.vue";var v=f.exports,h=n("./node_modules/vuex/dist/vuex.esm.js"),m=n("./resources/scripts/applications/services/index.ts");r.default.use(h.b);var y=new h.a({strict:!0,state:{users:null},getters:{users:e=>e.users},mutations:{setUsers:(e,t)=>{e.users=t}},actions:{getUsers:e=>{var t;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("store get users"),n.next=3,regeneratorRuntime.awrap(m.a.ApiService.getAllUsers());case 3:t=n.sent,e.commit("setUsers",t);case 5:case"end":return n.stop()}}),null,null,null,Promise)}}});var g=new r.default({router:v,store:y,render:e=>e(i.a)}).$mount("#app");console.log("ADMIN");var _=g,b=Object(p.a)(_,void 0,void 0,!1,null,null,null),w=n("./node_modules/vue-hot-reload-api/dist/index.js");w.install(n("./node_modules/vue/dist/vue.esm.js")),w.compatible&&(e.hot.accept(),w.isRecorded("c9166d54")?w.reload("c9166d54",b.options):w.createRecord("c9166d54",b.options)),b.options.__file="resources/scripts/applications/admin/main.vue";t.default=b.exports},"./resources/scripts/applications/admin/views/application.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/admin/views/application.vue?vue&type=template&id=8833d63c&"),i=n("./resources/scripts/applications/admin/views/application.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("8833d63c")?s.reload("8833d63c",a.options):s.createRecord("8833d63c",a.options),e.hot.accept("./resources/scripts/applications/admin/views/application.vue?vue&type=template&id=8833d63c&",function(e){r=n("./resources/scripts/applications/admin/views/application.vue?vue&type=template&id=8833d63c&"),s.rerender("8833d63c",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/admin/views/application.vue",t.a=a.exports},"./resources/scripts/applications/admin/views/application.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var r={name:"Applications",beforeCreate:()=>{console.log("before create home vue")}};t.a=r},"./resources/scripts/applications/admin/views/application.vue?vue&type=template&id=8833d63c&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this.$createElement;this._self._c;return this._m(0)},i=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"wrapper"},[t("h1",{staticClass:"is-1"},[this._v("Applications!!!")])])}];r._withStripped=!0},"./resources/scripts/applications/admin/views/home.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/admin/views/home.vue?vue&type=template&id=f9003f86&"),i=n("./resources/scripts/applications/admin/views/home.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("f9003f86")?s.reload("f9003f86",a.options):s.createRecord("f9003f86",a.options),e.hot.accept("./resources/scripts/applications/admin/views/home.vue?vue&type=template&id=f9003f86&",function(e){r=n("./resources/scripts/applications/admin/views/home.vue?vue&type=template&id=f9003f86&"),s.rerender("f9003f86",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/admin/views/home.vue",t.a=a.exports},"./resources/scripts/applications/admin/views/home.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/admin/components/child_avatar.vue"),i=n("./node_modules/vuex/dist/vuex.esm.js"),o=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),a={name:"Home",components:{ChildAvatar:r.a,Modal:o.a},methods:{createUser(){alert("created")},...Object(i.c)(["getUsers"])},created(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,null!==e.users){t.next=4;break}return t.next=4,regeneratorRuntime.awrap(e.getUsers());case 4:e.loading=!1;case 5:case"end":return t.stop()}}),null,null,null,Promise)},computed:{...Object(i.d)(["users"])},data:()=>({loading:!0,showCreateUser:!1})};t.a=a},"./resources/scripts/applications/admin/views/home.vue?vue&type=template&id=f9003f86&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("Modal",{attrs:{title:"CreateUser",isActive:e.showCreateUser,acceptText:"Create"},on:{close:function(t){e.showCreateUser=!1},accept:function(t){return e.createUser()}}},[e._v("\n test\n ")]),e._v(" "),n("nav",{staticClass:"level"},[e._m(0),e._v(" "),n("div",{staticClass:"level-right"},[n("div",{staticClass:"level-item"},[n("a",{staticClass:"button is-primary",on:{click:function(t){e.showCreateUser=!0}}},[n("i",{staticClass:"fa fa-plus"}),e._v(" Create User\n ")])])])]),e._v(" "),n("table",{staticClass:"table is-striped is-bordered is-narrow is-hoverable is-fullwidth",staticStyle:{"vertical-align":"center"}},[e._m(1),e._v(" "),e._l(e.users,(function(t){return n("tr",{key:t.id},[n("td",{staticClass:"m-t-a m-b-a"},[e._v(e._s(t.id))]),e._v(" "),n("td",[n("figure",{staticClass:"image is-48x48"},[n("img",{staticClass:"is-avatar is-rounded",attrs:{src:t.avatar}})])]),e._v(" "),n("td",[e._v(e._s(t.name))]),e._v(" "),n("td",[e._v(e._s(t.email))]),e._v(" "),n("td",[n("input",{staticClass:"checkbox",attrs:{type:"checkbox"},domProps:{checked:t.is_admin}})])])}))],2)],1)},i=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"level-left"},[t("div",{staticClass:"level-item"},[t("p",{staticClass:"subtitle"},[t("i",{staticClass:"fa fa-users"}),this._v(" Users\n ")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("thead",[n("tr",[n("th",[e._v("uid")]),e._v(" "),n("th",[e._v("avatar")]),e._v(" "),n("th",[e._v("name")]),e._v(" "),n("th",[e._v("email")]),e._v(" "),n("th",[e._v("admin")])])])}];r._withStripped=!0},"./resources/scripts/applications/admin/views/settings.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/admin/views/settings.vue?vue&type=template&id=184ed281&"),i=n("./resources/scripts/applications/admin/views/settings.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("184ed281")?s.reload("184ed281",a.options):s.createRecord("184ed281",a.options),e.hot.accept("./resources/scripts/applications/admin/views/settings.vue?vue&type=template&id=184ed281&",function(e){r=n("./resources/scripts/applications/admin/views/settings.vue?vue&type=template&id=184ed281&"),s.rerender("184ed281",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/admin/views/settings.vue",t.a=a.exports},"./resources/scripts/applications/admin/views/settings.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";let r={name:"LOADING...",isAdmin:!1};var i={name:"Settings",beforeCreate(){},created(){var e,t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,regeneratorRuntime.awrap(fetch("/users/profile/"));case 2:return e=n.sent,n.next=5,regeneratorRuntime.awrap(e.json());case 5:t.user=n.sent;case 6:case"end":return n.stop()}}),null,null,null,Promise)},data:()=>({user:r})};t.a=i},"./resources/scripts/applications/admin/views/settings.vue?vue&type=template&id=184ed281&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this.$createElement;this._self._c;return this._m(0)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{staticClass:"has-text-centered"},[n("h3",{staticClass:"title"},[e._v("Settings")])]),e._v(" "),n("div",{staticClass:"columns"},[n("div",{staticClass:"column is-one-quarter"},[n("figure",{staticClass:"image is-128x128 m-auto"},[n("img",{staticClass:"is-rounded is-avatar",attrs:{src:"//external-content.duckduckgo.com/iu/?u=http%3A%2F%2F0.gravatar.com%2Favatar%2F3e9dc6179a412b170e6a8d779a84c341.png&f=1"}})]),e._v(" "),n("div",{staticClass:"card m-t-lg"},[n("header",{staticClass:"card-header"},[n("p",{staticClass:"card-header-title"},[e._v("My Children")])]),e._v(" "),n("div",{staticClass:"card-content"},[e._v("bla bla bla")]),e._v(" "),n("footer",{staticClass:"card-footer"},[n("a",{staticClass:"card-footer-item",attrs:{href:"#"}},[e._v("Add a New Child")])])])]),e._v(" "),n("div",{staticClass:"column"},[n("form",{staticClass:"form"},[n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Name")]),e._v(" "),n("div",{staticClass:"control"},[n("input",{staticClass:"input",attrs:{type:"text",placeholder:"Text input"}})])]),e._v(" "),n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Email")]),e._v(" "),n("div",{staticClass:"control"},[n("input",{staticClass:"input",attrs:{type:"text",placeholder:"Text input"}})])])])])])])}];r._withStripped=!0},"./resources/scripts/applications/services/index.ts":function(e,t,n){"use strict";const r={ApiService:class{static getUser(e){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,regeneratorRuntime.awrap(fetch("/api/v1/client/user/"));case 3:return e.abrupt("return",e.sent.json());case 6:return e.prev=6,e.t0=e.catch(0),console.error("getUser ERROR: "+e.t0.message),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),null,null,[[0,6]],Promise)}static getAllUsers(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,regeneratorRuntime.awrap(fetch("/api/v1/admin/users"));case 3:return e.abrupt("return",e.sent.json());case 6:return e.prev=6,e.t0=e.catch(0),console.error("getAllUsers ERROR: "+e.t0.message),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),null,null,[[0,6]],Promise)}static getChild(e){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,regeneratorRuntime.awrap(fetch("/api/v1/client/child/"+e));case 3:return t.abrupt("return",t.sent.json());case 6:return t.prev=6,t.t0=t.catch(0),console.error("getChild ERROR: "+t.t0.message),t.abrupt("return",t.t0);case 10:case"end":return t.stop()}}),null,null,[[0,6]],Promise)}static createConnection(e){return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t={method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},n.prev=1,n.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/connections/create",t));case 4:return n.abrupt("return",n.sent.json());case 7:return n.prev=7,n.t0=n.catch(1),console.error("createConnection ERROR: "+n.t0.message),n.abrupt("return",n.t0);case 11:case"end":return n.stop()}}),null,null,[[1,7]],Promise);var t}static updateChild(e,t){return regeneratorRuntime.async((function(i){for(;;)switch(i.prev=i.next){case 0:return n={method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"}},i.prev=1,i.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/child/"+e,n));case 4:return r=i.sent,console.log(r),i.abrupt("return",r.json());case 9:return i.prev=9,i.t0=i.catch(1),console.error("updateChildCover ERROR: "+i.t0.message),i.abrupt("return",!1);case 13:case"end":return i.stop()}}),null,null,[[1,9]],Promise);var n,r}static createCall(e){return regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t={method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},r.prev=1,r.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/call/create",t));case 4:return n=r.sent,r.abrupt("return",n.json());case 8:return r.prev=8,r.t0=r.catch(1),console.error("createCall ERROR: "+r.t0.message),r.abrupt("return",!1);case 12:case"end":return r.stop()}}),null,null,[[1,8]],Promise);var t,n}static createChild(e,t,n){return regeneratorRuntime.async((function(o){for(;;)switch(o.prev=o.next){case 0:return r={method:"POST",body:JSON.stringify({name:e,dob:t,avatar:n}),headers:{"Content-Type":"application/json"}},o.prev=1,o.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/child/",r));case 4:return i=o.sent,o.abrupt("return",i.json());case 8:return o.prev=8,o.t0=o.catch(1),console.error("createChild ERROR: "+o.t0.message),o.abrupt("return",!1);case 12:case"end":return o.stop()}}),null,null,[[1,8]],Promise);var r,i}}};t.a=r},"./resources/scripts/applications/shared/components/Modal/Modal.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&"),i=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("1625ddaf")?s.reload("1625ddaf",a.options):s.createRecord("1625ddaf",a.options),e.hot.accept("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&",function(e){r=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&"),s.rerender("1625ddaf",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/shared/components/Modal/Modal.vue",t.a=a.exports},"./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var r={props:["title","isActive","acceptText","rejectText"],data(){return{showTitle:!!this.title,showButtons:this.acceptText||this.rejectText}},methods:{close(){this.$emit("close")}}};t.a=r},"./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"fade"}},[e.isActive?n("div",{class:["modal",{"is-active":!!e.isActive}]},[n("div",{staticClass:"modal-background",on:{click:function(t){return e.close()}}}),e._v(" "),n("div",{staticClass:"modal-card"},[e.showTitle?n("header",{staticClass:"modal-card-head"},[n("p",{staticClass:"modal-card-title"},[e._v(e._s(e.title))]),e._v(" "),n("button",{staticClass:"delete",attrs:{"aria-label":"close"},on:{click:function(t){return e.close()}}})]):e._e(),e._v(" "),n("section",{staticClass:"modal-card-body"},[e._t("default")],2),e._v(" "),e.showButtons?n("footer",{staticClass:"modal-card-foot"},[e.acceptText?n("button",{staticClass:"button is-success",on:{click:function(t){return e.$emit("accept")}}},[e._v(e._s(e.acceptText))]):e._e(),e._v(" "),e.rejectText?n("button",{staticClass:"button",on:{click:function(t){return e.close()}}},[e._v(e._s(e.rejectText))]):e._e()]):e._e()])]):e._e()])},i=[];r._withStripped=!0},"./resources/scripts/applications/shared/components/SideBar/SideBar.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/shared/components/SideBar/SideBar.vue?vue&type=template&id=32f39966&"),i=n("./resources/scripts/applications/shared/components/SideBar/SideBar.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("32f39966")?s.reload("32f39966",a.options):s.createRecord("32f39966",a.options),e.hot.accept("./resources/scripts/applications/shared/components/SideBar/SideBar.vue?vue&type=template&id=32f39966&",function(e){r=n("./resources/scripts/applications/shared/components/SideBar/SideBar.vue?vue&type=template&id=32f39966&"),s.rerender("32f39966",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/shared/components/SideBar/SideBar.vue",t.a=a.exports},"./resources/scripts/applications/shared/components/SideBar/SideBar.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var r={components:{SidewayText:n("./resources/scripts/applications/shared/components/SidewayText/SidewayText.vue").a},beforeCreate(){},created(){let e=this.$router.currentRoute.path.split("/")[1];e?e[0].toUpperCase:e=this.menu[0].text,this.selectedItem=e},methods:{onItemClicked(e){this.selectedItem=e.text}},data:()=>({selectedItem:""}),name:"SideBar",props:["menu","title","appName"]};t.a=r},"./resources/scripts/applications/shared/components/SideBar/SideBar.vue?vue&type=template&id=32f39966&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"section"},[n("div",{staticClass:"menu-titles"},[n("router-link",{attrs:{to:"/"}},[n("SidewayText",{attrs:{textSize:"is-size-6",text:e.appName,bold:!0}})],1),e._v(" "),n("SidewayText",{staticClass:"is-size-6",attrs:{text:e.selectedItem}})],1),e._v(" "),n("aside",{staticClass:"menu is-primary sidebar-menu"},[n("ul",{staticClass:"menu-list"},e._l(e.menu,(function(t){return n("li",{key:t.text,staticClass:"m-t-md m-b-md",on:{click:function(n){return e.onItemClicked(t)}}},[t.isRouterLink?n("router-link",{staticClass:"button",attrs:{"active-class":"is-active",to:t.href,exact:"",title:t.text}},[n("i",{class:["icon",t.icon]})]):n("a",{class:["button",{"is-active":!!t.isActive}],attrs:{href:t.href,title:t.text}},[n("i",{class:["icon",t.icon]})])],1)})),0)])])])},i=[];r._withStripped=!0},"./resources/scripts/applications/shared/components/SidewayText/SidewayText.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/shared/components/SidewayText/SidewayText.vue?vue&type=template&id=596842df&"),i=n("./resources/scripts/applications/shared/components/SidewayText/SidewayText.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("596842df")?s.reload("596842df",a.options):s.createRecord("596842df",a.options),e.hot.accept("./resources/scripts/applications/shared/components/SidewayText/SidewayText.vue?vue&type=template&id=596842df&",function(e){r=n("./resources/scripts/applications/shared/components/SidewayText/SidewayText.vue?vue&type=template&id=596842df&"),s.rerender("596842df",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/shared/components/SidewayText/SidewayText.vue",t.a=a.exports},"./resources/scripts/applications/shared/components/SidewayText/SidewayText.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";t.a={name:"SidewayText",props:["text","bold","textSize"],data:()=>({})}},"./resources/scripts/applications/shared/components/SidewayText/SidewayText.vue?vue&type=template&id=596842df&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sideway-text m-b-lg"},e._l(e.text.split("").slice().reverse(),(function(t){return n("div",{class:[{"has-text-weight-bold":e.bold},e.textSize,"sideway-letter","has-text-centered"]},[e._v(e._s(" "===t?" ":t))])})),0)},i=[];r._withStripped=!0}}); \ No newline at end of file +function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(u=e)}p.state.get=function(){return this._vm._data.$$state},p.state.set=function(e){0},l.prototype.commit=function(e,t,n){var r=this,i=y(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},l.prototype.dispatch=function(e,t){var n=this,r=y(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(e){0}var c=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(e){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(e){0}t(e)}))}))}},l.prototype.subscribe=function(e,t){return f(e,this._subscribers,t)},l.prototype.subscribeAction=function(e,t){return f("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},l.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},l.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},l.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),h(this,this.state,e,this._modules.get(e),n.preserveState),v(this,this.state)},l.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=m(t.state,e.slice(0,-1));u.delete(n,e[e.length-1])})),d(this)},l.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},l.prototype.hotUpdate=function(e){this._modules.update(e),d(this,!0)},l.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(l.prototype,p);var _=$((function(e,t){var n={};return C(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=k(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),b=$((function(e,t){var n={};return C(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=k(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),w=$((function(e,t){var n={};return C(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||k(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),x=$((function(e,t){var n={};return C(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=k(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"==typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n}));function C(e){return function(e){return Array.isArray(e)||o(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function $(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function k(e,t,n){return e._modulesNamespaceMap[n]}var O={Store:l,install:g,version:"3.4.0",mapState:_,mapMutations:b,mapGetters:w,mapActions:x,createNamespacedHelpers:function(e){return{mapState:_.bind(null,e),mapGetters:w.bind(null,e),mapMutations:b.bind(null,e),mapActions:x.bind(null,e)}}};t.b=O}).call(this,n("./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./resources/scripts/applications/admin/app.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/admin/app.vue?vue&type=template&id=a74b4bd8&"),i=n("./resources/scripts/applications/admin/app.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("a74b4bd8")?s.reload("a74b4bd8",a.options):s.createRecord("a74b4bd8",a.options),e.hot.accept("./resources/scripts/applications/admin/app.vue?vue&type=template&id=a74b4bd8&",function(e){r=n("./resources/scripts/applications/admin/app.vue?vue&type=template&id=a74b4bd8&"),s.rerender("a74b4bd8",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/admin/app.vue",t.a=a.exports},"./resources/scripts/applications/admin/app.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/admin/components/Header.vue"),i=n("./resources/scripts/applications/shared/components/SideBar/SideBar.vue");const o=[{href:"/",text:"Home",isRouterLink:!0,icon:"fa fa-home"},{href:"/applications",text:"Applications",isRouterLink:!0,icon:"fa fa-puzzle-piece"},{href:"/settings",isRouterLink:!0,text:"Settings",icon:"fa fa-gears"},{isRouterLink:!1,href:"/logout",text:"Logout",icon:"fa fa-sign-out"}];var a={name:"App",components:{SideBar:i.a,Header:r.a},created(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:console.log(e.$store.getters.users);case 1:case"end":return t.stop()}}),null,null,null,Promise)},data:()=>({appName:"Admin",menu:o})};t.a=a},"./resources/scripts/applications/admin/app.vue?vue&type=template&id=a74b4bd8&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"app"},[t("Header",{attrs:{appName:this.appName}}),this._v(" "),t("div",{staticClass:"columns m-t-xs is-fullheight"},[t("div",{staticClass:"column sidebar"},[t("SideBar",{attrs:{title:this.appName,menu:this.menu,appName:this.appName}})],1),this._v(" "),t("section",{staticClass:"section column app-content"},[t("div",{staticClass:"container"},[t("router-view")],1)])])],1)},i=[];r._withStripped=!0},"./resources/scripts/applications/admin/components/Header.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/admin/components/Header.vue?vue&type=template&id=1df951f9&"),i=n("./resources/scripts/applications/admin/components/Header.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("1df951f9")?s.reload("1df951f9",a.options):s.createRecord("1df951f9",a.options),e.hot.accept("./resources/scripts/applications/admin/components/Header.vue?vue&type=template&id=1df951f9&",function(e){r=n("./resources/scripts/applications/admin/components/Header.vue?vue&type=template&id=1df951f9&"),s.rerender("1df951f9",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/admin/components/Header.vue",t.a=a.exports},"./resources/scripts/applications/admin/components/Header.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";t.a={name:"Header",props:["appName"]}},"./resources/scripts/applications/admin/components/Header.vue?vue&type=template&id=1df951f9&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this.$createElement,t=this._self._c||e;return t("section",{staticClass:"hero is-small is-primary hero-bg-landing01"},[t("div",{staticClass:"hero-body"},[t("div",{staticClass:"container"},[t("h1",{staticClass:"title"},[this._v(this._s(this.appName))])])])])},i=[];r._withStripped=!0},"./resources/scripts/applications/admin/components/child_avatar.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/admin/components/child_avatar.vue?vue&type=template&id=36b9a2b0&"),i=n("./resources/scripts/applications/admin/components/child_avatar.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("36b9a2b0")?s.reload("36b9a2b0",a.options):s.createRecord("36b9a2b0",a.options),e.hot.accept("./resources/scripts/applications/admin/components/child_avatar.vue?vue&type=template&id=36b9a2b0&",function(e){r=n("./resources/scripts/applications/admin/components/child_avatar.vue?vue&type=template&id=36b9a2b0&"),s.rerender("36b9a2b0",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/admin/components/child_avatar.vue",t.a=a.exports},"./resources/scripts/applications/admin/components/child_avatar.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var r={name:"ChildAvatar",props:["child"],created(){}};t.a=r},"./resources/scripts/applications/admin/components/child_avatar.vue?vue&type=template&id=36b9a2b0&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"chiled-avatar has-text-centered"},[t("div",{staticClass:"child-avatar-image"},[t("figure",{staticClass:"image is-48x48"},[t("img",{staticClass:"is-rounded is-avatar",attrs:{src:this.child.avatar,alt:"Placeholder image"}})])]),this._v(" "),t("div",{staticClass:"chiled-avatar-name"},[this._v(this._s(this.child.name))])])},i=[];r._withStripped=!0},"./resources/scripts/applications/admin/main.vue":function(e,t,n){"use strict";n.r(t);n("./node_modules/regenerator-runtime/runtime.js");var r=n("./node_modules/vue/dist/vue.esm.js"),i=n("./resources/scripts/applications/admin/app.vue"),o=n("./node_modules/vue-router/dist/vue-router.esm.js"),a=n("./resources/scripts/applications/admin/views/home.vue"),s=n("./resources/scripts/applications/admin/views/settings.vue"),c=n("./resources/scripts/applications/admin/views/application.vue");r.default.use(o.a);const u={routes:[{path:"/",component:a.a,name:"root"},{path:"/settings",component:s.a},{path:"/applications",component:c.a}],mode:"history",base:"/admin"};var l=new o.a(u),p=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),f=Object(p.a)(l,void 0,void 0,!1,null,null,null),d=n("./node_modules/vue-hot-reload-api/dist/index.js");d.install(n("./node_modules/vue/dist/vue.esm.js")),d.compatible&&(e.hot.accept(),d.isRecorded("6b815002")?d.reload("6b815002",f.options):d.createRecord("6b815002",f.options)),f.options.__file="resources/scripts/applications/admin/router/router.vue";var v=f.exports,h=n("./node_modules/vuex/dist/vuex.esm.js"),m=n("./resources/scripts/applications/services/index.ts");r.default.use(h.b);var y=new h.a({strict:!0,state:{users:null},getters:{users:e=>e.users},mutations:{setUsers:(e,t)=>{e.users=t}},actions:{getUsers:e=>{var t;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("store get users"),n.next=3,regeneratorRuntime.awrap(m.a.ApiService.getAllUsers());case 3:t=n.sent,e.commit("setUsers",t);case 5:case"end":return n.stop()}}),null,null,null,Promise)}}});var g=new r.default({router:v,store:y,render:e=>e(i.a)}).$mount("#app");console.log("ADMIN");var _=g,b=Object(p.a)(_,void 0,void 0,!1,null,null,null),w=n("./node_modules/vue-hot-reload-api/dist/index.js");w.install(n("./node_modules/vue/dist/vue.esm.js")),w.compatible&&(e.hot.accept(),w.isRecorded("c9166d54")?w.reload("c9166d54",b.options):w.createRecord("c9166d54",b.options)),b.options.__file="resources/scripts/applications/admin/main.vue";t.default=b.exports},"./resources/scripts/applications/admin/views/application.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/admin/views/application.vue?vue&type=template&id=8833d63c&"),i=n("./resources/scripts/applications/admin/views/application.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("8833d63c")?s.reload("8833d63c",a.options):s.createRecord("8833d63c",a.options),e.hot.accept("./resources/scripts/applications/admin/views/application.vue?vue&type=template&id=8833d63c&",function(e){r=n("./resources/scripts/applications/admin/views/application.vue?vue&type=template&id=8833d63c&"),s.rerender("8833d63c",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/admin/views/application.vue",t.a=a.exports},"./resources/scripts/applications/admin/views/application.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var r={name:"Applications",beforeCreate:()=>{console.log("before create home vue")}};t.a=r},"./resources/scripts/applications/admin/views/application.vue?vue&type=template&id=8833d63c&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this.$createElement;this._self._c;return this._m(0)},i=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"wrapper"},[t("h1",{staticClass:"is-1"},[this._v("Applications!!!")])])}];r._withStripped=!0},"./resources/scripts/applications/admin/views/home.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/admin/views/home.vue?vue&type=template&id=f9003f86&"),i=n("./resources/scripts/applications/admin/views/home.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("f9003f86")?s.reload("f9003f86",a.options):s.createRecord("f9003f86",a.options),e.hot.accept("./resources/scripts/applications/admin/views/home.vue?vue&type=template&id=f9003f86&",function(e){r=n("./resources/scripts/applications/admin/views/home.vue?vue&type=template&id=f9003f86&"),s.rerender("f9003f86",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/admin/views/home.vue",t.a=a.exports},"./resources/scripts/applications/admin/views/home.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/admin/components/child_avatar.vue"),i=n("./node_modules/vuex/dist/vuex.esm.js"),o=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),a={name:"Home",components:{ChildAvatar:r.a,Modal:o.a},methods:{createUser(){alert("created")},...Object(i.c)(["getUsers"])},created(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.loading=!0,null!==e.users){t.next=4;break}return t.next=4,regeneratorRuntime.awrap(e.getUsers());case 4:e.loading=!1;case 5:case"end":return t.stop()}}),null,null,null,Promise)},computed:{...Object(i.d)(["users"])},data:()=>({loading:!0,showCreateUser:!1})};t.a=a},"./resources/scripts/applications/admin/views/home.vue?vue&type=template&id=f9003f86&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("Modal",{attrs:{title:"CreateUser",isActive:e.showCreateUser,acceptText:"Create"},on:{close:function(t){e.showCreateUser=!1},accept:function(t){return e.createUser()}}},[e._v("\n test\n ")]),e._v(" "),n("nav",{staticClass:"level"},[e._m(0),e._v(" "),n("div",{staticClass:"level-right"},[n("div",{staticClass:"level-item"},[n("a",{staticClass:"button is-primary",on:{click:function(t){e.showCreateUser=!0}}},[n("i",{staticClass:"fa fa-plus"}),e._v(" Create User\n ")])])])]),e._v(" "),n("table",{staticClass:"table is-striped is-bordered is-narrow is-hoverable is-fullwidth",staticStyle:{"vertical-align":"center"}},[e._m(1),e._v(" "),e._l(e.users,(function(t){return n("tr",{key:t.id},[n("td",{staticClass:"m-t-a m-b-a"},[e._v(e._s(t.id))]),e._v(" "),n("td",[n("figure",{staticClass:"image is-48x48"},[n("img",{staticClass:"is-avatar is-rounded",attrs:{src:t.avatar}})])]),e._v(" "),n("td",[e._v(e._s(t.name))]),e._v(" "),n("td",[e._v(e._s(t.email))]),e._v(" "),n("td",[n("input",{staticClass:"checkbox",attrs:{type:"checkbox"},domProps:{checked:t.is_admin}})])])}))],2)],1)},i=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"level-left"},[t("div",{staticClass:"level-item"},[t("p",{staticClass:"subtitle"},[t("i",{staticClass:"fa fa-users"}),this._v(" Users\n ")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("thead",[n("tr",[n("th",[e._v("uid")]),e._v(" "),n("th",[e._v("avatar")]),e._v(" "),n("th",[e._v("name")]),e._v(" "),n("th",[e._v("email")]),e._v(" "),n("th",[e._v("admin")])])])}];r._withStripped=!0},"./resources/scripts/applications/admin/views/settings.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/admin/views/settings.vue?vue&type=template&id=184ed281&"),i=n("./resources/scripts/applications/admin/views/settings.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("184ed281")?s.reload("184ed281",a.options):s.createRecord("184ed281",a.options),e.hot.accept("./resources/scripts/applications/admin/views/settings.vue?vue&type=template&id=184ed281&",function(e){r=n("./resources/scripts/applications/admin/views/settings.vue?vue&type=template&id=184ed281&"),s.rerender("184ed281",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/admin/views/settings.vue",t.a=a.exports},"./resources/scripts/applications/admin/views/settings.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";let r={name:"LOADING...",isAdmin:!1};var i={name:"Settings",beforeCreate(){},created(){var e,t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,regeneratorRuntime.awrap(fetch("/users/profile/"));case 2:return e=n.sent,n.next=5,regeneratorRuntime.awrap(e.json());case 5:t.user=n.sent;case 6:case"end":return n.stop()}}),null,null,null,Promise)},data:()=>({user:r})};t.a=i},"./resources/scripts/applications/admin/views/settings.vue?vue&type=template&id=184ed281&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this.$createElement;this._self._c;return this._m(0)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{staticClass:"has-text-centered"},[n("h3",{staticClass:"title"},[e._v("Settings")])]),e._v(" "),n("div",{staticClass:"columns"},[n("div",{staticClass:"column is-one-quarter"},[n("figure",{staticClass:"image is-128x128 m-auto"},[n("img",{staticClass:"is-rounded is-avatar",attrs:{src:"//external-content.duckduckgo.com/iu/?u=http%3A%2F%2F0.gravatar.com%2Favatar%2F3e9dc6179a412b170e6a8d779a84c341.png&f=1"}})]),e._v(" "),n("div",{staticClass:"card m-t-lg"},[n("header",{staticClass:"card-header"},[n("p",{staticClass:"card-header-title"},[e._v("My Children")])]),e._v(" "),n("div",{staticClass:"card-content"},[e._v("bla bla bla")]),e._v(" "),n("footer",{staticClass:"card-footer"},[n("a",{staticClass:"card-footer-item",attrs:{href:"#"}},[e._v("Add a New Child")])])])]),e._v(" "),n("div",{staticClass:"column"},[n("form",{staticClass:"form"},[n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Name")]),e._v(" "),n("div",{staticClass:"control"},[n("input",{staticClass:"input",attrs:{type:"text",placeholder:"Text input"}})])]),e._v(" "),n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v("Email")]),e._v(" "),n("div",{staticClass:"control"},[n("input",{staticClass:"input",attrs:{type:"text",placeholder:"Text input"}})])])])])])])}];r._withStripped=!0},"./resources/scripts/applications/services/index.ts":function(e,t,n){"use strict";const r={ApiService:class{static getUser(e){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,regeneratorRuntime.awrap(fetch("/api/v1/client/user/"));case 3:return e.abrupt("return",e.sent.json());case 6:return e.prev=6,e.t0=e.catch(0),console.error("getUser ERROR: "+e.t0.message),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),null,null,[[0,6]],Promise)}static getAllUsers(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,regeneratorRuntime.awrap(fetch("/api/v1/admin/users"));case 3:return e.abrupt("return",e.sent.json());case 6:return e.prev=6,e.t0=e.catch(0),console.error("getAllUsers ERROR: "+e.t0.message),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),null,null,[[0,6]],Promise)}static updateUser(e){return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t={method:"PUT",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},n.prev=1,n.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/user/",t));case 4:return n.abrupt("return",n.sent.json());case 7:return n.prev=7,n.t0=n.catch(1),console.error("updateUser ERROR: "+n.t0.message),n.abrupt("return",n.t0);case 11:case"end":return n.stop()}}),null,null,[[1,7]],Promise);var t}static getChild(e){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,regeneratorRuntime.awrap(fetch("/api/v1/client/child/"+e));case 3:return t.abrupt("return",t.sent.json());case 6:return t.prev=6,t.t0=t.catch(0),console.error("getChild ERROR: "+t.t0.message),t.abrupt("return",t.t0);case 10:case"end":return t.stop()}}),null,null,[[0,6]],Promise)}static createConnection(e){return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t={method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},n.prev=1,n.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/connections/create",t));case 4:return n.abrupt("return",n.sent.json());case 7:return n.prev=7,n.t0=n.catch(1),console.error("createConnection ERROR: "+n.t0.message),n.abrupt("return",n.t0);case 11:case"end":return n.stop()}}),null,null,[[1,7]],Promise);var t}static updateChild(e,t){return regeneratorRuntime.async((function(i){for(;;)switch(i.prev=i.next){case 0:return n={method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"}},i.prev=1,i.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/child/"+e,n));case 4:return r=i.sent,console.log(r),i.abrupt("return",r.json());case 9:return i.prev=9,i.t0=i.catch(1),console.error("updateChildCover ERROR: "+i.t0.message),i.abrupt("return",!1);case 13:case"end":return i.stop()}}),null,null,[[1,9]],Promise);var n,r}static createCall(e){return regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:return t={method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},r.prev=1,r.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/call/create",t));case 4:return n=r.sent,r.abrupt("return",n.json());case 8:return r.prev=8,r.t0=r.catch(1),console.error("createCall ERROR: "+r.t0.message),r.abrupt("return",!1);case 12:case"end":return r.stop()}}),null,null,[[1,8]],Promise);var t,n}static createChild(e,t,n){return regeneratorRuntime.async((function(o){for(;;)switch(o.prev=o.next){case 0:return r={method:"POST",body:JSON.stringify({name:e,dob:t,avatar:n}),headers:{"Content-Type":"application/json"}},o.prev=1,o.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/child/",r));case 4:return i=o.sent,o.abrupt("return",i.json());case 8:return o.prev=8,o.t0=o.catch(1),console.error("createChild ERROR: "+o.t0.message),o.abrupt("return",!1);case 12:case"end":return o.stop()}}),null,null,[[1,8]],Promise);var r,i}}};t.a=r},"./resources/scripts/applications/shared/components/Modal/Modal.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&"),i=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("1625ddaf")?s.reload("1625ddaf",a.options):s.createRecord("1625ddaf",a.options),e.hot.accept("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&",function(e){r=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&"),s.rerender("1625ddaf",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/shared/components/Modal/Modal.vue",t.a=a.exports},"./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var r={props:["title","isActive","acceptText","rejectText"],data(){return{showTitle:!!this.title,showButtons:this.acceptText||this.rejectText}},methods:{close(){this.$emit("close")}}};t.a=r},"./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"fade"}},[e.isActive?n("div",{class:["modal",{"is-active":!!e.isActive}]},[n("div",{staticClass:"modal-background",on:{click:function(t){return e.close()}}}),e._v(" "),n("div",{staticClass:"modal-card"},[e.showTitle?n("header",{staticClass:"modal-card-head"},[n("p",{staticClass:"modal-card-title"},[e._v(e._s(e.title))]),e._v(" "),n("button",{staticClass:"delete",attrs:{"aria-label":"close"},on:{click:function(t){return e.close()}}})]):e._e(),e._v(" "),n("section",{staticClass:"modal-card-body"},[e._t("default")],2),e._v(" "),e.showButtons?n("footer",{staticClass:"modal-card-foot"},[e.acceptText?n("button",{staticClass:"button is-success",on:{click:function(t){return e.$emit("accept")}}},[e._v(e._s(e.acceptText))]):e._e(),e._v(" "),e.rejectText?n("button",{staticClass:"button",on:{click:function(t){return e.close()}}},[e._v(e._s(e.rejectText))]):e._e()]):e._e()])]):e._e()])},i=[];r._withStripped=!0},"./resources/scripts/applications/shared/components/SideBar/SideBar.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/shared/components/SideBar/SideBar.vue?vue&type=template&id=32f39966&"),i=n("./resources/scripts/applications/shared/components/SideBar/SideBar.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("32f39966")?s.reload("32f39966",a.options):s.createRecord("32f39966",a.options),e.hot.accept("./resources/scripts/applications/shared/components/SideBar/SideBar.vue?vue&type=template&id=32f39966&",function(e){r=n("./resources/scripts/applications/shared/components/SideBar/SideBar.vue?vue&type=template&id=32f39966&"),s.rerender("32f39966",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/shared/components/SideBar/SideBar.vue",t.a=a.exports},"./resources/scripts/applications/shared/components/SideBar/SideBar.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var r={components:{SidewayText:n("./resources/scripts/applications/shared/components/SidewayText/SidewayText.vue").a},beforeCreate(){},created(){let e=this.$router.currentRoute.path.split("/")[1];e?e[0].toUpperCase:e=this.menu[0].text,this.selectedItem=e},methods:{onItemClicked(e){this.selectedItem=e.text}},data:()=>({selectedItem:""}),name:"SideBar",props:["menu","title","appName"]};t.a=r},"./resources/scripts/applications/shared/components/SideBar/SideBar.vue?vue&type=template&id=32f39966&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"section"},[n("div",{staticClass:"menu-titles"},[n("router-link",{attrs:{to:"/"}},[n("SidewayText",{attrs:{textSize:"is-size-6",text:e.appName,bold:!0}})],1),e._v(" "),n("SidewayText",{staticClass:"is-size-6",attrs:{text:e.selectedItem}})],1),e._v(" "),n("aside",{staticClass:"menu is-primary sidebar-menu"},[n("ul",{staticClass:"menu-list"},e._l(e.menu,(function(t){return n("li",{key:t.text,staticClass:"m-t-md m-b-md",on:{click:function(n){return e.onItemClicked(t)}}},[t.isRouterLink?n("router-link",{staticClass:"button",attrs:{"active-class":"is-active",to:t.href,exact:"",title:t.text}},[n("i",{class:["icon",t.icon]})]):n("a",{class:["button",{"is-active":!!t.isActive}],attrs:{href:t.href,title:t.text}},[n("i",{class:["icon",t.icon]})])],1)})),0)])])])},i=[];r._withStripped=!0},"./resources/scripts/applications/shared/components/SidewayText/SidewayText.vue":function(e,t,n){"use strict";var r=n("./resources/scripts/applications/shared/components/SidewayText/SidewayText.vue?vue&type=template&id=596842df&"),i=n("./resources/scripts/applications/shared/components/SidewayText/SidewayText.vue?vue&type=script&lang=ts&"),o=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),a=Object(o.a)(i.a,r.render,r.staticRenderFns,!1,null,null,null),s=n("./node_modules/vue-hot-reload-api/dist/index.js");s.install(n("./node_modules/vue/dist/vue.esm.js")),s.compatible&&(e.hot.accept(),s.isRecorded("596842df")?s.reload("596842df",a.options):s.createRecord("596842df",a.options),e.hot.accept("./resources/scripts/applications/shared/components/SidewayText/SidewayText.vue?vue&type=template&id=596842df&",function(e){r=n("./resources/scripts/applications/shared/components/SidewayText/SidewayText.vue?vue&type=template&id=596842df&"),s.rerender("596842df",{render:r.render,staticRenderFns:r.staticRenderFns})}.bind(this))),a.options.__file="resources/scripts/applications/shared/components/SidewayText/SidewayText.vue",t.a=a.exports},"./resources/scripts/applications/shared/components/SidewayText/SidewayText.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";t.a={name:"SidewayText",props:["text","bold","textSize"],data:()=>({})}},"./resources/scripts/applications/shared/components/SidewayText/SidewayText.vue?vue&type=template&id=596842df&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return r})),n.d(t,"staticRenderFns",(function(){return i}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sideway-text m-b-lg"},e._l(e.text.split("").slice().reverse(),(function(t){return n("div",{class:[{"has-text-weight-bold":e.bold},e.textSize,"sideway-letter","has-text-centered"]},[e._v(e._s(" "===t?" ":t))])})),0)},i=[];r._withStripped=!0}}); \ No newline at end of file diff --git a/public/scripts/applications/home/app.bundle.js b/public/scripts/applications/home/app.bundle.js index 753066b..4b80e89 100644 --- a/public/scripts/applications/home/app.bundle.js +++ b/public/scripts/applications/home/app.bundle.js @@ -1,4 +1,4 @@ -!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,n){!function(e,t){if(!L[e]||!M[e])return;for(var n in M[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(h[n]=t[n]);0==--v&&0===y&&Y()}(e,n),t&&t(e,n)};var n,a=!0,s="8c4d45210225619fc987",r={},i=[],o=[];function d(e){var t=S[e];if(!t)return x;var a=function(a){return t.hot.active?(S[a]?-1===S[a].parents.indexOf(e)&&S[a].parents.push(e):(i=[e],n=a),-1===t.children.indexOf(a)&&t.children.push(a)):(console.warn("[HMR] unexpected require("+a+") from disposed module "+e),i=[]),x(a)},s=function(e){return{configurable:!0,enumerable:!0,get:function(){return x[e]},set:function(t){x[e]=t}}};for(var r in x)Object.prototype.hasOwnProperty.call(x,r)&&"e"!==r&&"t"!==r&&Object.defineProperty(a,r,s(r));return a.e=function(e){return"ready"===c&&m("prepare"),y++,x.e(e).then(t,(function(e){throw t(),e}));function t(){y--,"prepare"===c&&(g[e]||k(e),0===y&&0===v&&Y())}},a.t=function(e,t){return 1&t&&(e=a(e)),x.t(e,-2&t)},a}function l(t){var a={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:n!==t,active:!0,accept:function(e,t){if(void 0===e)a._selfAccepted=!0;else if("function"==typeof e)a._selfAccepted=e;else if("object"==typeof e)for(var n=0;n=0&&a._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,c){case"idle":(h={})[t]=e[t],m("ready");break;case"ready":j(t);break;case"prepare":case"check":case"dispose":case"apply":(f=f||[]).push(t)}},check:w,apply:D,status:function(e){if(!e)return c;u.push(e)},addStatusHandler:function(e){u.push(e)},removeStatusHandler:function(e){var t=u.indexOf(e);t>=0&&u.splice(t,1)},data:r[t]};return n=void 0,a}var u=[],c="idle";function m(e){c=e;for(var t=0;t0;){var s=a.pop(),r=s.id,i=s.chain;if((u=S[r])&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:i,moduleId:r};if(u.hot._main)return{type:"unaccepted",chain:i,moduleId:r};for(var o=0;o ")),Y.type){case"self-declined":a.onDeclined&&a.onDeclined(Y),a.ignoreDeclined||(D=new Error("Aborted because of self decline: "+Y.moduleId+H));break;case"declined":a.onDeclined&&a.onDeclined(Y),a.ignoreDeclined||(D=new Error("Aborted because of declined dependency: "+Y.moduleId+" in "+Y.parentId+H));break;case"unaccepted":a.onUnaccepted&&a.onUnaccepted(Y),a.ignoreUnaccepted||(D=new Error("Aborted because "+c+" is not accepted"+H));break;case"accepted":a.onAccepted&&a.onAccepted(Y),j=!0;break;case"disposed":a.onDisposed&&a.onDisposed(Y),C=!0;break;default:throw new Error("Unexception type "+Y.type)}if(D)return m("abort"),Promise.reject(D);if(j)for(c in M[c]=h[c],v(g,Y.outdatedModules),Y.outdatedDependencies)Object.prototype.hasOwnProperty.call(Y.outdatedDependencies,c)&&(y[c]||(y[c]=[]),v(y[c],Y.outdatedDependencies[c]));C&&(v(g,[Y.moduleId]),M[c]=w)}var O,P=[];for(d=0;d0;)if(c=R.pop(),u=S[c]){var F={},I=u.hot._disposeHandlers;for(l=0;l=0&&N.parents.splice(O,1))}}for(c in y)if(Object.prototype.hasOwnProperty.call(y,c)&&(u=S[c]))for(E=y[c],l=0;l=0&&u.children.splice(O,1);m("apply"),void 0!==p&&(s=p,p=void 0);for(c in h=void 0,M)Object.prototype.hasOwnProperty.call(M,c)&&(e[c]=M[c]);var W=null;for(c in y)if(Object.prototype.hasOwnProperty.call(y,c)&&(u=S[c])){E=y[c];var $=[];for(d=0;d0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"days":case"day":case"d":return n*Y;case"hours":case"hour":case"hrs":case"hr":case"h":return n*k;case"minutes":case"minute":case"mins":case"min":case"m":return n*w;case"seconds":case"second":case"secs":case"sec":case"s":return n*b;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(t);if("number"===a&&!1===isNaN(t))return n.long?function(e){return T(e,Y,"day")||T(e,k,"hour")||T(e,w,"minute")||T(e,b,"second")||e+" ms"}(t):function(e){return e>=Y?Math.round(e/Y)+"d":e>=k?Math.round(e/k)+"h":e>=w?Math.round(e/w)+"m":e>=b?Math.round(e/b)+"s":e+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function T(e,t,n){if(!(e=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},a.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),a.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],a.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},a.enable(s())}))),x=(S.log,S.formatArgs,S.save,S.load,S.useColors,S.storage,S.colors,M((function(e){var t=S;t.enable("adonis:*"),e.exports=t("adonis:websocket")}))),C=function(){function e(t,n){s(this,e),this.topic=t,this.connection=n,this.emitter=new v,this._state="pending",this._emitBuffer=[]}return r(e,[{key:"joinAck",value:function(){var e=this;this.state="open",this.emitter.emit("ready",this),x("clearing emit buffer for %s topic after subscription ack",this.topic),this._emitBuffer.forEach((function(t){return e.emit(t.event,t.data)})),this._emitBuffer=[]}},{key:"joinError",value:function(e){this.state="error",this.emitter.emit("error",e),this.serverClose()}},{key:"leaveAck",value:function(){this.state="closed",this.serverClose()}},{key:"leaveError",value:function(e){this.emitter.emit("leaveError",e)}},{key:"on",value:function(){var e;(e=this.emitter).on.apply(e,arguments)}},{key:"once",value:function(){var e;(e=this.emitter).once.apply(e,arguments)}},{key:"off",value:function(){var e;(e=this.emitter).off.apply(e,arguments)}},{key:"emit",value:function(e,t){"pending"!==this.state?this.connection.sendEvent(this.topic,e,t):this._emitBuffer.push({event:e,data:t})}},{key:"serverClose",value:function(){var e=this;return this.emitter.emit("close",this).then((function(){e._emitBuffer=[],e.emitter.clearListeners()})).catch((function(){e._emitBuffer=[],e.emitter.clearListeners()}))}},{key:"serverEvent",value:function(e){var t=e.event,n=e.data;this.emitter.emit(t,n)}},{key:"serverError",value:function(){this.state="error"}},{key:"close",value:function(){this.state="closing",x("closing subscription for %s topic with server",this.topic),this.connection.sendPacket(L.leavePacket(this.topic))}},{key:"terminate",value:function(){this.leaveAck()}},{key:"state",get:function(){return this._state},set:function(e){if(-1===!this.constructor.states.indexOf(e))throw new Error(e+" is not a valid socket state");this._state=e}}],[{key:"states",get:function(){return["pending","open","closed","closing","error"]}}]),e}(),H={name:"json",encode:function(e,t){var n=null;try{n=JSON.stringify(e)}catch(e){return t(e)}t(null,n)},decode:function(e,t){var n=null;try{n=JSON.parse(e)}catch(e){return t(e)}t(null,n)}},O="https:"===window.location.protocol?"wss":"ws",P=function(e){function t(e,n){s(this,t);var a=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e=e||O+"://"+window.location.host,a.options=i({path:"adonis-ws",reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3,query:null,encoder:H},n),x("connection options %o",a.options),a._connectionState="idle",a._reconnectionAttempts=0,a._packetsQueue=[],a._processingQueue=!1,a._pingTimer=null,a._extendedQuery={},a._url=e.replace(/\/$/,"")+"/"+a.options.path,a.subscriptions={},a.removeSubscription=function(e){var t=e.topic;delete a.subscriptions[t]},a}return o(t,e),r(t,[{key:"_cleanup",value:function(){clearInterval(this._pingTimer),this.ws=null,this._pingTimer=null}},{key:"_subscriptionsIterator",value:function(e){var t=this;Object.keys(this.subscriptions).forEach((function(n){return e(t.subscriptions[n],n)}))}},{key:"_ensureSubscription",value:function(e,t){var n=this.getSubscription(e.d.topic);n?t(n,e):x("cannot consume packet since %s topic has no active subscription %j",e.d.topic,e)}},{key:"_processQueue",value:function(){var e=this;!this._processingQueue&&this._packetsQueue.length&&(this._processingQueue=!0,this.options.encoder.encode(this._packetsQueue.shift(),(function(t,n){t?x("encode error %j",t):(e.write(n),e._processingQueue=!1,e._processQueue())})))}},{key:"_onOpen",value:function(){x("opened")}},{key:"_onError",value:function(e){x("error %O",e),this._subscriptionsIterator((function(e){return e.serverError()})),this.emit("error",e)}},{key:"_reconnect",value:function(){var e=this;this._reconnectionAttempts++,this.emit("reconnect",this._reconnectionAttempts),setTimeout((function(){e._connectionState="reconnect",e.connect()}),this.options.reconnectionDelay*this._reconnectionAttempts)}},{key:"_onClose",value:function(e){var t=this;x("closing from %s state",this._connectionState),this._cleanup(),this._subscriptionsIterator((function(e){return e.terminate()})),this.emit("close",this).then((function(){t.shouldReconnect?t._reconnect():t.clearListeners()})).catch((function(){t.shouldReconnect?t._reconnect():t.clearListeners()}))}},{key:"_onMessage",value:function(e){var t=this;this.options.encoder.decode(e.data,(function(e,n){e?x("packet dropped, decode error %o",e):t._handleMessage(n)}))}},{key:"_handleMessage",value:function(e){return L.isOpenPacket(e)?(x("open packet"),void this._handleOpen(e)):L.isJoinAckPacket(e)?(x("join ack packet"),void this._handleJoinAck(e)):L.isJoinErrorPacket(e)?(x("join error packet"),void this._handleJoinError(e)):L.isLeaveAckPacket(e)?(x("leave ack packet"),void this._handleLeaveAck(e)):L.isLeaveErrorPacket(e)?(x("leave error packet"),void this._handleLeaveError(e)):L.isLeavePacket(e)?(x("leave packet"),void this._handleServerLeave(e)):L.isEventPacket(e)?(x("event packet"),void this._handleEvent(e)):void(L.isPongPacket(e)?x("pong packet"):x("invalid packet type %d",e.t))}},{key:"_handleOpen",value:function(e){var t=this;this._connectionState="open",this.emit("open",e.d),this._pingTimer=setInterval((function(){t.sendPacket(L.pingPacket())}),e.d.clientInterval),x("processing pre connection subscriptions %o",Object.keys(this.subscriptions)),this._subscriptionsIterator((function(e){t._sendSubscriptionPacket(e.topic)}))}},{key:"_handleJoinAck",value:function(e){this._ensureSubscription(e,(function(e){return e.joinAck()}))}},{key:"_handleJoinError",value:function(e){this._ensureSubscription(e,(function(e,t){return e.joinError(t.d)}))}},{key:"_handleLeaveAck",value:function(e){this._ensureSubscription(e,(function(e){return e.leaveAck()}))}},{key:"_handleLeaveError",value:function(e){this._ensureSubscription(e,(function(e,t){return e.leaveError(t.d)}))}},{key:"_handleServerLeave",value:function(e){this._ensureSubscription(e,(function(e,t){return e.leaveAck()}))}},{key:"_handleEvent",value:function(e){this._ensureSubscription(e,(function(e,t){return e.serverEvent(t.d)}))}},{key:"_sendSubscriptionPacket",value:function(e){x("initiating subscription for %s topic with server",e),this.sendPacket(L.joinPacket(e))}},{key:"connect",value:function(){var e=this,t=g(i({},this.options.query,this._extendedQuery)),n=t?this._url+"?"+t:this._url;return x("creating socket connection on %s url",n),this.ws=new window.WebSocket(n),this.ws.onclose=function(t){return e._onClose(t)},this.ws.onerror=function(t){return e._onError(t)},this.ws.onopen=function(t){return e._onOpen(t)},this.ws.onmessage=function(t){return e._onMessage(t)},this}},{key:"write",value:function(e){this.ws.readyState===window.WebSocket.OPEN?this.ws.send(e):x("connection is not in open state, current state %s",this.ws.readyState)}},{key:"sendPacket",value:function(e){this._packetsQueue.push(e),this._processQueue()}},{key:"getSubscription",value:function(e){return this.subscriptions[e]}},{key:"hasSubcription",value:function(e){return!!this.getSubscription(e)}},{key:"subscribe",value:function(e){if(!e||"string"!=typeof e)throw new Error("subscribe method expects topic to be a valid string");if(this.subscriptions[e])throw new Error("Cannot subscribe to same topic twice. Instead use getSubscription");var t=new C(e,this);return t.on("close",this.removeSubscription),this.subscriptions[e]=t,"open"===this._connectionState&&this._sendSubscriptionPacket(e),t}},{key:"sendEvent",value:function(e,t,n){if(!e||!t)throw new Error("topic and event name is required to call sendEvent method");var a=this.getSubscription(e);if(!a)throw new Error("There is no active subscription for "+e+" topic");if("open"!==a.state)throw new Error("Cannot emit since subscription socket is in "+this.state+" state");x("sending event on %s topic",e),this.sendPacket(L.eventPacket(e,t,n))}},{key:"withJwtToken",value:function(e){return this._extendedQuery.token=e,this}},{key:"withBasicAuth",value:function(e,t){return this._extendedQuery.basic=window.btoa(e+":"+t),this}},{key:"withApiToken",value:function(e){return this._extendedQuery.token=e,this}},{key:"close",value:function(){this._connectionState="terminated",this.ws.close()}},{key:"shouldReconnect",get:function(){return"terminated"!==this._connectionState&&this.options.reconnection&&this.options.reconnectionAttempts>this._reconnectionAttempts}}]),t}(v);return function(e,t){return new P(e,t)}},e.exports=a()}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"./node_modules/events/events.js":function(e,t,n){"use strict";var a,s="object"==typeof Reflect?Reflect:null,r=s&&"function"==typeof s.apply?s.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};a=s&&"function"==typeof s.ownKeys?s.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var d=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,a){var s,r,i,o;if(l(n),void 0===(r=e._events)?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),r=e._events),i=r[t]),void 0===i)i=r[t]=n,++e._eventsCount;else if("function"==typeof i?i=r[t]=a?[n,i]:[i,n]:a?i.unshift(n):i.push(n),(s=u(e))>0&&i.length>s&&!i.warned){i.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=t,d.count=i.length,o=d,console&&console.warn&&console.warn(o)}return e}function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(e,t,n){var a={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},s=m.bind(a);return s.listener=n,a.wrapFn=s,s}function h(e,t,n){var a=e._events;if(void 0===a)return[];var s=a[t];return void 0===s?[]:"function"==typeof s?n?[s.listener||s]:[s]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(i=t[0]),i instanceof Error)throw i;var o=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw o.context=i,o}var d=s[e];if(void 0===d)return!1;if("function"==typeof d)r(d,this,t);else{var l=d.length,u=f(d,l);for(n=0;n=0;r--)if(n[r]===t||n[r].listener===t){i=n[r].listener,s=r;break}if(s<0)return this;0===s?n.shift():function(e,t){for(;t+1=0;a--)this.removeListener(e,t[a]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},"./node_modules/moment/locale sync recursive ^\\.\\/.*$":function(e,t,n){var a={"./af":"./node_modules/moment/locale/af.js","./af.js":"./node_modules/moment/locale/af.js","./ar":"./node_modules/moment/locale/ar.js","./ar-dz":"./node_modules/moment/locale/ar-dz.js","./ar-dz.js":"./node_modules/moment/locale/ar-dz.js","./ar-kw":"./node_modules/moment/locale/ar-kw.js","./ar-kw.js":"./node_modules/moment/locale/ar-kw.js","./ar-ly":"./node_modules/moment/locale/ar-ly.js","./ar-ly.js":"./node_modules/moment/locale/ar-ly.js","./ar-ma":"./node_modules/moment/locale/ar-ma.js","./ar-ma.js":"./node_modules/moment/locale/ar-ma.js","./ar-sa":"./node_modules/moment/locale/ar-sa.js","./ar-sa.js":"./node_modules/moment/locale/ar-sa.js","./ar-tn":"./node_modules/moment/locale/ar-tn.js","./ar-tn.js":"./node_modules/moment/locale/ar-tn.js","./ar.js":"./node_modules/moment/locale/ar.js","./az":"./node_modules/moment/locale/az.js","./az.js":"./node_modules/moment/locale/az.js","./be":"./node_modules/moment/locale/be.js","./be.js":"./node_modules/moment/locale/be.js","./bg":"./node_modules/moment/locale/bg.js","./bg.js":"./node_modules/moment/locale/bg.js","./bm":"./node_modules/moment/locale/bm.js","./bm.js":"./node_modules/moment/locale/bm.js","./bn":"./node_modules/moment/locale/bn.js","./bn.js":"./node_modules/moment/locale/bn.js","./bo":"./node_modules/moment/locale/bo.js","./bo.js":"./node_modules/moment/locale/bo.js","./br":"./node_modules/moment/locale/br.js","./br.js":"./node_modules/moment/locale/br.js","./bs":"./node_modules/moment/locale/bs.js","./bs.js":"./node_modules/moment/locale/bs.js","./ca":"./node_modules/moment/locale/ca.js","./ca.js":"./node_modules/moment/locale/ca.js","./cs":"./node_modules/moment/locale/cs.js","./cs.js":"./node_modules/moment/locale/cs.js","./cv":"./node_modules/moment/locale/cv.js","./cv.js":"./node_modules/moment/locale/cv.js","./cy":"./node_modules/moment/locale/cy.js","./cy.js":"./node_modules/moment/locale/cy.js","./da":"./node_modules/moment/locale/da.js","./da.js":"./node_modules/moment/locale/da.js","./de":"./node_modules/moment/locale/de.js","./de-at":"./node_modules/moment/locale/de-at.js","./de-at.js":"./node_modules/moment/locale/de-at.js","./de-ch":"./node_modules/moment/locale/de-ch.js","./de-ch.js":"./node_modules/moment/locale/de-ch.js","./de.js":"./node_modules/moment/locale/de.js","./dv":"./node_modules/moment/locale/dv.js","./dv.js":"./node_modules/moment/locale/dv.js","./el":"./node_modules/moment/locale/el.js","./el.js":"./node_modules/moment/locale/el.js","./en-au":"./node_modules/moment/locale/en-au.js","./en-au.js":"./node_modules/moment/locale/en-au.js","./en-ca":"./node_modules/moment/locale/en-ca.js","./en-ca.js":"./node_modules/moment/locale/en-ca.js","./en-gb":"./node_modules/moment/locale/en-gb.js","./en-gb.js":"./node_modules/moment/locale/en-gb.js","./en-ie":"./node_modules/moment/locale/en-ie.js","./en-ie.js":"./node_modules/moment/locale/en-ie.js","./en-il":"./node_modules/moment/locale/en-il.js","./en-il.js":"./node_modules/moment/locale/en-il.js","./en-in":"./node_modules/moment/locale/en-in.js","./en-in.js":"./node_modules/moment/locale/en-in.js","./en-nz":"./node_modules/moment/locale/en-nz.js","./en-nz.js":"./node_modules/moment/locale/en-nz.js","./en-sg":"./node_modules/moment/locale/en-sg.js","./en-sg.js":"./node_modules/moment/locale/en-sg.js","./eo":"./node_modules/moment/locale/eo.js","./eo.js":"./node_modules/moment/locale/eo.js","./es":"./node_modules/moment/locale/es.js","./es-do":"./node_modules/moment/locale/es-do.js","./es-do.js":"./node_modules/moment/locale/es-do.js","./es-us":"./node_modules/moment/locale/es-us.js","./es-us.js":"./node_modules/moment/locale/es-us.js","./es.js":"./node_modules/moment/locale/es.js","./et":"./node_modules/moment/locale/et.js","./et.js":"./node_modules/moment/locale/et.js","./eu":"./node_modules/moment/locale/eu.js","./eu.js":"./node_modules/moment/locale/eu.js","./fa":"./node_modules/moment/locale/fa.js","./fa.js":"./node_modules/moment/locale/fa.js","./fi":"./node_modules/moment/locale/fi.js","./fi.js":"./node_modules/moment/locale/fi.js","./fil":"./node_modules/moment/locale/fil.js","./fil.js":"./node_modules/moment/locale/fil.js","./fo":"./node_modules/moment/locale/fo.js","./fo.js":"./node_modules/moment/locale/fo.js","./fr":"./node_modules/moment/locale/fr.js","./fr-ca":"./node_modules/moment/locale/fr-ca.js","./fr-ca.js":"./node_modules/moment/locale/fr-ca.js","./fr-ch":"./node_modules/moment/locale/fr-ch.js","./fr-ch.js":"./node_modules/moment/locale/fr-ch.js","./fr.js":"./node_modules/moment/locale/fr.js","./fy":"./node_modules/moment/locale/fy.js","./fy.js":"./node_modules/moment/locale/fy.js","./ga":"./node_modules/moment/locale/ga.js","./ga.js":"./node_modules/moment/locale/ga.js","./gd":"./node_modules/moment/locale/gd.js","./gd.js":"./node_modules/moment/locale/gd.js","./gl":"./node_modules/moment/locale/gl.js","./gl.js":"./node_modules/moment/locale/gl.js","./gom-deva":"./node_modules/moment/locale/gom-deva.js","./gom-deva.js":"./node_modules/moment/locale/gom-deva.js","./gom-latn":"./node_modules/moment/locale/gom-latn.js","./gom-latn.js":"./node_modules/moment/locale/gom-latn.js","./gu":"./node_modules/moment/locale/gu.js","./gu.js":"./node_modules/moment/locale/gu.js","./he":"./node_modules/moment/locale/he.js","./he.js":"./node_modules/moment/locale/he.js","./hi":"./node_modules/moment/locale/hi.js","./hi.js":"./node_modules/moment/locale/hi.js","./hr":"./node_modules/moment/locale/hr.js","./hr.js":"./node_modules/moment/locale/hr.js","./hu":"./node_modules/moment/locale/hu.js","./hu.js":"./node_modules/moment/locale/hu.js","./hy-am":"./node_modules/moment/locale/hy-am.js","./hy-am.js":"./node_modules/moment/locale/hy-am.js","./id":"./node_modules/moment/locale/id.js","./id.js":"./node_modules/moment/locale/id.js","./is":"./node_modules/moment/locale/is.js","./is.js":"./node_modules/moment/locale/is.js","./it":"./node_modules/moment/locale/it.js","./it-ch":"./node_modules/moment/locale/it-ch.js","./it-ch.js":"./node_modules/moment/locale/it-ch.js","./it.js":"./node_modules/moment/locale/it.js","./ja":"./node_modules/moment/locale/ja.js","./ja.js":"./node_modules/moment/locale/ja.js","./jv":"./node_modules/moment/locale/jv.js","./jv.js":"./node_modules/moment/locale/jv.js","./ka":"./node_modules/moment/locale/ka.js","./ka.js":"./node_modules/moment/locale/ka.js","./kk":"./node_modules/moment/locale/kk.js","./kk.js":"./node_modules/moment/locale/kk.js","./km":"./node_modules/moment/locale/km.js","./km.js":"./node_modules/moment/locale/km.js","./kn":"./node_modules/moment/locale/kn.js","./kn.js":"./node_modules/moment/locale/kn.js","./ko":"./node_modules/moment/locale/ko.js","./ko.js":"./node_modules/moment/locale/ko.js","./ku":"./node_modules/moment/locale/ku.js","./ku.js":"./node_modules/moment/locale/ku.js","./ky":"./node_modules/moment/locale/ky.js","./ky.js":"./node_modules/moment/locale/ky.js","./lb":"./node_modules/moment/locale/lb.js","./lb.js":"./node_modules/moment/locale/lb.js","./lo":"./node_modules/moment/locale/lo.js","./lo.js":"./node_modules/moment/locale/lo.js","./lt":"./node_modules/moment/locale/lt.js","./lt.js":"./node_modules/moment/locale/lt.js","./lv":"./node_modules/moment/locale/lv.js","./lv.js":"./node_modules/moment/locale/lv.js","./me":"./node_modules/moment/locale/me.js","./me.js":"./node_modules/moment/locale/me.js","./mi":"./node_modules/moment/locale/mi.js","./mi.js":"./node_modules/moment/locale/mi.js","./mk":"./node_modules/moment/locale/mk.js","./mk.js":"./node_modules/moment/locale/mk.js","./ml":"./node_modules/moment/locale/ml.js","./ml.js":"./node_modules/moment/locale/ml.js","./mn":"./node_modules/moment/locale/mn.js","./mn.js":"./node_modules/moment/locale/mn.js","./mr":"./node_modules/moment/locale/mr.js","./mr.js":"./node_modules/moment/locale/mr.js","./ms":"./node_modules/moment/locale/ms.js","./ms-my":"./node_modules/moment/locale/ms-my.js","./ms-my.js":"./node_modules/moment/locale/ms-my.js","./ms.js":"./node_modules/moment/locale/ms.js","./mt":"./node_modules/moment/locale/mt.js","./mt.js":"./node_modules/moment/locale/mt.js","./my":"./node_modules/moment/locale/my.js","./my.js":"./node_modules/moment/locale/my.js","./nb":"./node_modules/moment/locale/nb.js","./nb.js":"./node_modules/moment/locale/nb.js","./ne":"./node_modules/moment/locale/ne.js","./ne.js":"./node_modules/moment/locale/ne.js","./nl":"./node_modules/moment/locale/nl.js","./nl-be":"./node_modules/moment/locale/nl-be.js","./nl-be.js":"./node_modules/moment/locale/nl-be.js","./nl.js":"./node_modules/moment/locale/nl.js","./nn":"./node_modules/moment/locale/nn.js","./nn.js":"./node_modules/moment/locale/nn.js","./oc-lnc":"./node_modules/moment/locale/oc-lnc.js","./oc-lnc.js":"./node_modules/moment/locale/oc-lnc.js","./pa-in":"./node_modules/moment/locale/pa-in.js","./pa-in.js":"./node_modules/moment/locale/pa-in.js","./pl":"./node_modules/moment/locale/pl.js","./pl.js":"./node_modules/moment/locale/pl.js","./pt":"./node_modules/moment/locale/pt.js","./pt-br":"./node_modules/moment/locale/pt-br.js","./pt-br.js":"./node_modules/moment/locale/pt-br.js","./pt.js":"./node_modules/moment/locale/pt.js","./ro":"./node_modules/moment/locale/ro.js","./ro.js":"./node_modules/moment/locale/ro.js","./ru":"./node_modules/moment/locale/ru.js","./ru.js":"./node_modules/moment/locale/ru.js","./sd":"./node_modules/moment/locale/sd.js","./sd.js":"./node_modules/moment/locale/sd.js","./se":"./node_modules/moment/locale/se.js","./se.js":"./node_modules/moment/locale/se.js","./si":"./node_modules/moment/locale/si.js","./si.js":"./node_modules/moment/locale/si.js","./sk":"./node_modules/moment/locale/sk.js","./sk.js":"./node_modules/moment/locale/sk.js","./sl":"./node_modules/moment/locale/sl.js","./sl.js":"./node_modules/moment/locale/sl.js","./sq":"./node_modules/moment/locale/sq.js","./sq.js":"./node_modules/moment/locale/sq.js","./sr":"./node_modules/moment/locale/sr.js","./sr-cyrl":"./node_modules/moment/locale/sr-cyrl.js","./sr-cyrl.js":"./node_modules/moment/locale/sr-cyrl.js","./sr.js":"./node_modules/moment/locale/sr.js","./ss":"./node_modules/moment/locale/ss.js","./ss.js":"./node_modules/moment/locale/ss.js","./sv":"./node_modules/moment/locale/sv.js","./sv.js":"./node_modules/moment/locale/sv.js","./sw":"./node_modules/moment/locale/sw.js","./sw.js":"./node_modules/moment/locale/sw.js","./ta":"./node_modules/moment/locale/ta.js","./ta.js":"./node_modules/moment/locale/ta.js","./te":"./node_modules/moment/locale/te.js","./te.js":"./node_modules/moment/locale/te.js","./tet":"./node_modules/moment/locale/tet.js","./tet.js":"./node_modules/moment/locale/tet.js","./tg":"./node_modules/moment/locale/tg.js","./tg.js":"./node_modules/moment/locale/tg.js","./th":"./node_modules/moment/locale/th.js","./th.js":"./node_modules/moment/locale/th.js","./tl-ph":"./node_modules/moment/locale/tl-ph.js","./tl-ph.js":"./node_modules/moment/locale/tl-ph.js","./tlh":"./node_modules/moment/locale/tlh.js","./tlh.js":"./node_modules/moment/locale/tlh.js","./tr":"./node_modules/moment/locale/tr.js","./tr.js":"./node_modules/moment/locale/tr.js","./tzl":"./node_modules/moment/locale/tzl.js","./tzl.js":"./node_modules/moment/locale/tzl.js","./tzm":"./node_modules/moment/locale/tzm.js","./tzm-latn":"./node_modules/moment/locale/tzm-latn.js","./tzm-latn.js":"./node_modules/moment/locale/tzm-latn.js","./tzm.js":"./node_modules/moment/locale/tzm.js","./ug-cn":"./node_modules/moment/locale/ug-cn.js","./ug-cn.js":"./node_modules/moment/locale/ug-cn.js","./uk":"./node_modules/moment/locale/uk.js","./uk.js":"./node_modules/moment/locale/uk.js","./ur":"./node_modules/moment/locale/ur.js","./ur.js":"./node_modules/moment/locale/ur.js","./uz":"./node_modules/moment/locale/uz.js","./uz-latn":"./node_modules/moment/locale/uz-latn.js","./uz-latn.js":"./node_modules/moment/locale/uz-latn.js","./uz.js":"./node_modules/moment/locale/uz.js","./vi":"./node_modules/moment/locale/vi.js","./vi.js":"./node_modules/moment/locale/vi.js","./x-pseudo":"./node_modules/moment/locale/x-pseudo.js","./x-pseudo.js":"./node_modules/moment/locale/x-pseudo.js","./yo":"./node_modules/moment/locale/yo.js","./yo.js":"./node_modules/moment/locale/yo.js","./zh-cn":"./node_modules/moment/locale/zh-cn.js","./zh-cn.js":"./node_modules/moment/locale/zh-cn.js","./zh-hk":"./node_modules/moment/locale/zh-hk.js","./zh-hk.js":"./node_modules/moment/locale/zh-hk.js","./zh-mo":"./node_modules/moment/locale/zh-mo.js","./zh-mo.js":"./node_modules/moment/locale/zh-mo.js","./zh-tw":"./node_modules/moment/locale/zh-tw.js","./zh-tw.js":"./node_modules/moment/locale/zh-tw.js"};function s(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}s.keys=function(){return Object.keys(a)},s.resolve=r,e.exports=s,s.id="./node_modules/moment/locale sync recursive ^\\.\\/.*$"},"./node_modules/moment/locale/af.js":function(e,t,n){!function(e){"use strict"; +!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,n){!function(e,t){if(!L[e]||!M[e])return;for(var n in M[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(h[n]=t[n]);0==--v&&0===y&&Y()}(e,n),t&&t(e,n)};var n,a=!0,s="e0f4f8c7ecb3618f2fa8",r={},i=[],o=[];function d(e){var t=S[e];if(!t)return x;var a=function(a){return t.hot.active?(S[a]?-1===S[a].parents.indexOf(e)&&S[a].parents.push(e):(i=[e],n=a),-1===t.children.indexOf(a)&&t.children.push(a)):(console.warn("[HMR] unexpected require("+a+") from disposed module "+e),i=[]),x(a)},s=function(e){return{configurable:!0,enumerable:!0,get:function(){return x[e]},set:function(t){x[e]=t}}};for(var r in x)Object.prototype.hasOwnProperty.call(x,r)&&"e"!==r&&"t"!==r&&Object.defineProperty(a,r,s(r));return a.e=function(e){return"ready"===c&&m("prepare"),y++,x.e(e).then(t,(function(e){throw t(),e}));function t(){y--,"prepare"===c&&(g[e]||k(e),0===y&&0===v&&Y())}},a.t=function(e,t){return 1&t&&(e=a(e)),x.t(e,-2&t)},a}function l(t){var a={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:n!==t,active:!0,accept:function(e,t){if(void 0===e)a._selfAccepted=!0;else if("function"==typeof e)a._selfAccepted=e;else if("object"==typeof e)for(var n=0;n=0&&a._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,c){case"idle":(h={})[t]=e[t],m("ready");break;case"ready":j(t);break;case"prepare":case"check":case"dispose":case"apply":(f=f||[]).push(t)}},check:w,apply:D,status:function(e){if(!e)return c;u.push(e)},addStatusHandler:function(e){u.push(e)},removeStatusHandler:function(e){var t=u.indexOf(e);t>=0&&u.splice(t,1)},data:r[t]};return n=void 0,a}var u=[],c="idle";function m(e){c=e;for(var t=0;t0;){var s=a.pop(),r=s.id,i=s.chain;if((u=S[r])&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:i,moduleId:r};if(u.hot._main)return{type:"unaccepted",chain:i,moduleId:r};for(var o=0;o ")),Y.type){case"self-declined":a.onDeclined&&a.onDeclined(Y),a.ignoreDeclined||(D=new Error("Aborted because of self decline: "+Y.moduleId+H));break;case"declined":a.onDeclined&&a.onDeclined(Y),a.ignoreDeclined||(D=new Error("Aborted because of declined dependency: "+Y.moduleId+" in "+Y.parentId+H));break;case"unaccepted":a.onUnaccepted&&a.onUnaccepted(Y),a.ignoreUnaccepted||(D=new Error("Aborted because "+c+" is not accepted"+H));break;case"accepted":a.onAccepted&&a.onAccepted(Y),j=!0;break;case"disposed":a.onDisposed&&a.onDisposed(Y),C=!0;break;default:throw new Error("Unexception type "+Y.type)}if(D)return m("abort"),Promise.reject(D);if(j)for(c in M[c]=h[c],v(g,Y.outdatedModules),Y.outdatedDependencies)Object.prototype.hasOwnProperty.call(Y.outdatedDependencies,c)&&(y[c]||(y[c]=[]),v(y[c],Y.outdatedDependencies[c]));C&&(v(g,[Y.moduleId]),M[c]=w)}var O,P=[];for(d=0;d0;)if(c=R.pop(),u=S[c]){var F={},I=u.hot._disposeHandlers;for(l=0;l=0&&N.parents.splice(O,1))}}for(c in y)if(Object.prototype.hasOwnProperty.call(y,c)&&(u=S[c]))for(E=y[c],l=0;l=0&&u.children.splice(O,1);m("apply"),void 0!==p&&(s=p,p=void 0);for(c in h=void 0,M)Object.prototype.hasOwnProperty.call(M,c)&&(e[c]=M[c]);var W=null;for(c in y)if(Object.prototype.hasOwnProperty.call(y,c)&&(u=S[c])){E=y[c];var $=[];for(d=0;d0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"days":case"day":case"d":return n*Y;case"hours":case"hour":case"hrs":case"hr":case"h":return n*k;case"minutes":case"minute":case"mins":case"min":case"m":return n*w;case"seconds":case"second":case"secs":case"sec":case"s":return n*b;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(t);if("number"===a&&!1===isNaN(t))return n.long?function(e){return T(e,Y,"day")||T(e,k,"hour")||T(e,w,"minute")||T(e,b,"second")||e+" ms"}(t):function(e){return e>=Y?Math.round(e/Y)+"d":e>=k?Math.round(e/k)+"h":e>=w?Math.round(e/w)+"m":e>=b?Math.round(e/b)+"s":e+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function T(e,t,n){if(!(e=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},a.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),a.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],a.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},a.enable(s())}))),x=(S.log,S.formatArgs,S.save,S.load,S.useColors,S.storage,S.colors,M((function(e){var t=S;t.enable("adonis:*"),e.exports=t("adonis:websocket")}))),C=function(){function e(t,n){s(this,e),this.topic=t,this.connection=n,this.emitter=new v,this._state="pending",this._emitBuffer=[]}return r(e,[{key:"joinAck",value:function(){var e=this;this.state="open",this.emitter.emit("ready",this),x("clearing emit buffer for %s topic after subscription ack",this.topic),this._emitBuffer.forEach((function(t){return e.emit(t.event,t.data)})),this._emitBuffer=[]}},{key:"joinError",value:function(e){this.state="error",this.emitter.emit("error",e),this.serverClose()}},{key:"leaveAck",value:function(){this.state="closed",this.serverClose()}},{key:"leaveError",value:function(e){this.emitter.emit("leaveError",e)}},{key:"on",value:function(){var e;(e=this.emitter).on.apply(e,arguments)}},{key:"once",value:function(){var e;(e=this.emitter).once.apply(e,arguments)}},{key:"off",value:function(){var e;(e=this.emitter).off.apply(e,arguments)}},{key:"emit",value:function(e,t){"pending"!==this.state?this.connection.sendEvent(this.topic,e,t):this._emitBuffer.push({event:e,data:t})}},{key:"serverClose",value:function(){var e=this;return this.emitter.emit("close",this).then((function(){e._emitBuffer=[],e.emitter.clearListeners()})).catch((function(){e._emitBuffer=[],e.emitter.clearListeners()}))}},{key:"serverEvent",value:function(e){var t=e.event,n=e.data;this.emitter.emit(t,n)}},{key:"serverError",value:function(){this.state="error"}},{key:"close",value:function(){this.state="closing",x("closing subscription for %s topic with server",this.topic),this.connection.sendPacket(L.leavePacket(this.topic))}},{key:"terminate",value:function(){this.leaveAck()}},{key:"state",get:function(){return this._state},set:function(e){if(-1===!this.constructor.states.indexOf(e))throw new Error(e+" is not a valid socket state");this._state=e}}],[{key:"states",get:function(){return["pending","open","closed","closing","error"]}}]),e}(),H={name:"json",encode:function(e,t){var n=null;try{n=JSON.stringify(e)}catch(e){return t(e)}t(null,n)},decode:function(e,t){var n=null;try{n=JSON.parse(e)}catch(e){return t(e)}t(null,n)}},O="https:"===window.location.protocol?"wss":"ws",P=function(e){function t(e,n){s(this,t);var a=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e=e||O+"://"+window.location.host,a.options=i({path:"adonis-ws",reconnection:!0,reconnectionAttempts:10,reconnectionDelay:1e3,query:null,encoder:H},n),x("connection options %o",a.options),a._connectionState="idle",a._reconnectionAttempts=0,a._packetsQueue=[],a._processingQueue=!1,a._pingTimer=null,a._extendedQuery={},a._url=e.replace(/\/$/,"")+"/"+a.options.path,a.subscriptions={},a.removeSubscription=function(e){var t=e.topic;delete a.subscriptions[t]},a}return o(t,e),r(t,[{key:"_cleanup",value:function(){clearInterval(this._pingTimer),this.ws=null,this._pingTimer=null}},{key:"_subscriptionsIterator",value:function(e){var t=this;Object.keys(this.subscriptions).forEach((function(n){return e(t.subscriptions[n],n)}))}},{key:"_ensureSubscription",value:function(e,t){var n=this.getSubscription(e.d.topic);n?t(n,e):x("cannot consume packet since %s topic has no active subscription %j",e.d.topic,e)}},{key:"_processQueue",value:function(){var e=this;!this._processingQueue&&this._packetsQueue.length&&(this._processingQueue=!0,this.options.encoder.encode(this._packetsQueue.shift(),(function(t,n){t?x("encode error %j",t):(e.write(n),e._processingQueue=!1,e._processQueue())})))}},{key:"_onOpen",value:function(){x("opened")}},{key:"_onError",value:function(e){x("error %O",e),this._subscriptionsIterator((function(e){return e.serverError()})),this.emit("error",e)}},{key:"_reconnect",value:function(){var e=this;this._reconnectionAttempts++,this.emit("reconnect",this._reconnectionAttempts),setTimeout((function(){e._connectionState="reconnect",e.connect()}),this.options.reconnectionDelay*this._reconnectionAttempts)}},{key:"_onClose",value:function(e){var t=this;x("closing from %s state",this._connectionState),this._cleanup(),this._subscriptionsIterator((function(e){return e.terminate()})),this.emit("close",this).then((function(){t.shouldReconnect?t._reconnect():t.clearListeners()})).catch((function(){t.shouldReconnect?t._reconnect():t.clearListeners()}))}},{key:"_onMessage",value:function(e){var t=this;this.options.encoder.decode(e.data,(function(e,n){e?x("packet dropped, decode error %o",e):t._handleMessage(n)}))}},{key:"_handleMessage",value:function(e){return L.isOpenPacket(e)?(x("open packet"),void this._handleOpen(e)):L.isJoinAckPacket(e)?(x("join ack packet"),void this._handleJoinAck(e)):L.isJoinErrorPacket(e)?(x("join error packet"),void this._handleJoinError(e)):L.isLeaveAckPacket(e)?(x("leave ack packet"),void this._handleLeaveAck(e)):L.isLeaveErrorPacket(e)?(x("leave error packet"),void this._handleLeaveError(e)):L.isLeavePacket(e)?(x("leave packet"),void this._handleServerLeave(e)):L.isEventPacket(e)?(x("event packet"),void this._handleEvent(e)):void(L.isPongPacket(e)?x("pong packet"):x("invalid packet type %d",e.t))}},{key:"_handleOpen",value:function(e){var t=this;this._connectionState="open",this.emit("open",e.d),this._pingTimer=setInterval((function(){t.sendPacket(L.pingPacket())}),e.d.clientInterval),x("processing pre connection subscriptions %o",Object.keys(this.subscriptions)),this._subscriptionsIterator((function(e){t._sendSubscriptionPacket(e.topic)}))}},{key:"_handleJoinAck",value:function(e){this._ensureSubscription(e,(function(e){return e.joinAck()}))}},{key:"_handleJoinError",value:function(e){this._ensureSubscription(e,(function(e,t){return e.joinError(t.d)}))}},{key:"_handleLeaveAck",value:function(e){this._ensureSubscription(e,(function(e){return e.leaveAck()}))}},{key:"_handleLeaveError",value:function(e){this._ensureSubscription(e,(function(e,t){return e.leaveError(t.d)}))}},{key:"_handleServerLeave",value:function(e){this._ensureSubscription(e,(function(e,t){return e.leaveAck()}))}},{key:"_handleEvent",value:function(e){this._ensureSubscription(e,(function(e,t){return e.serverEvent(t.d)}))}},{key:"_sendSubscriptionPacket",value:function(e){x("initiating subscription for %s topic with server",e),this.sendPacket(L.joinPacket(e))}},{key:"connect",value:function(){var e=this,t=g(i({},this.options.query,this._extendedQuery)),n=t?this._url+"?"+t:this._url;return x("creating socket connection on %s url",n),this.ws=new window.WebSocket(n),this.ws.onclose=function(t){return e._onClose(t)},this.ws.onerror=function(t){return e._onError(t)},this.ws.onopen=function(t){return e._onOpen(t)},this.ws.onmessage=function(t){return e._onMessage(t)},this}},{key:"write",value:function(e){this.ws.readyState===window.WebSocket.OPEN?this.ws.send(e):x("connection is not in open state, current state %s",this.ws.readyState)}},{key:"sendPacket",value:function(e){this._packetsQueue.push(e),this._processQueue()}},{key:"getSubscription",value:function(e){return this.subscriptions[e]}},{key:"hasSubcription",value:function(e){return!!this.getSubscription(e)}},{key:"subscribe",value:function(e){if(!e||"string"!=typeof e)throw new Error("subscribe method expects topic to be a valid string");if(this.subscriptions[e])throw new Error("Cannot subscribe to same topic twice. Instead use getSubscription");var t=new C(e,this);return t.on("close",this.removeSubscription),this.subscriptions[e]=t,"open"===this._connectionState&&this._sendSubscriptionPacket(e),t}},{key:"sendEvent",value:function(e,t,n){if(!e||!t)throw new Error("topic and event name is required to call sendEvent method");var a=this.getSubscription(e);if(!a)throw new Error("There is no active subscription for "+e+" topic");if("open"!==a.state)throw new Error("Cannot emit since subscription socket is in "+this.state+" state");x("sending event on %s topic",e),this.sendPacket(L.eventPacket(e,t,n))}},{key:"withJwtToken",value:function(e){return this._extendedQuery.token=e,this}},{key:"withBasicAuth",value:function(e,t){return this._extendedQuery.basic=window.btoa(e+":"+t),this}},{key:"withApiToken",value:function(e){return this._extendedQuery.token=e,this}},{key:"close",value:function(){this._connectionState="terminated",this.ws.close()}},{key:"shouldReconnect",get:function(){return"terminated"!==this._connectionState&&this.options.reconnection&&this.options.reconnectionAttempts>this._reconnectionAttempts}}]),t}(v);return function(e,t){return new P(e,t)}},e.exports=a()}).call(this,n("./node_modules/webpack/buildin/global.js"),n("./node_modules/process/browser.js"))},"./node_modules/events/events.js":function(e,t,n){"use strict";var a,s="object"==typeof Reflect?Reflect:null,r=s&&"function"==typeof s.apply?s.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};a=s&&"function"==typeof s.ownKeys?s.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var d=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function c(e,t,n,a){var s,r,i,o;if(l(n),void 0===(r=e._events)?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),r=e._events),i=r[t]),void 0===i)i=r[t]=n,++e._eventsCount;else if("function"==typeof i?i=r[t]=a?[n,i]:[i,n]:a?i.unshift(n):i.push(n),(s=u(e))>0&&i.length>s&&!i.warned){i.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=t,d.count=i.length,o=d,console&&console.warn&&console.warn(o)}return e}function m(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _(e,t,n){var a={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},s=m.bind(a);return s.listener=n,a.wrapFn=s,s}function h(e,t,n){var a=e._events;if(void 0===a)return[];var s=a[t];return void 0===s?[]:"function"==typeof s?n?[s.listener||s]:[s]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(i=t[0]),i instanceof Error)throw i;var o=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw o.context=i,o}var d=s[e];if(void 0===d)return!1;if("function"==typeof d)r(d,this,t);else{var l=d.length,u=f(d,l);for(n=0;n=0;r--)if(n[r]===t||n[r].listener===t){i=n[r].listener,s=r;break}if(s<0)return this;0===s?n.shift():function(e,t){for(;t+1=0;a--)this.removeListener(e,t[a]);return this},o.prototype.listeners=function(e){return h(this,e,!0)},o.prototype.rawListeners=function(e){return h(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},o.prototype.listenerCount=p,o.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},"./node_modules/moment/locale sync recursive ^\\.\\/.*$":function(e,t,n){var a={"./af":"./node_modules/moment/locale/af.js","./af.js":"./node_modules/moment/locale/af.js","./ar":"./node_modules/moment/locale/ar.js","./ar-dz":"./node_modules/moment/locale/ar-dz.js","./ar-dz.js":"./node_modules/moment/locale/ar-dz.js","./ar-kw":"./node_modules/moment/locale/ar-kw.js","./ar-kw.js":"./node_modules/moment/locale/ar-kw.js","./ar-ly":"./node_modules/moment/locale/ar-ly.js","./ar-ly.js":"./node_modules/moment/locale/ar-ly.js","./ar-ma":"./node_modules/moment/locale/ar-ma.js","./ar-ma.js":"./node_modules/moment/locale/ar-ma.js","./ar-sa":"./node_modules/moment/locale/ar-sa.js","./ar-sa.js":"./node_modules/moment/locale/ar-sa.js","./ar-tn":"./node_modules/moment/locale/ar-tn.js","./ar-tn.js":"./node_modules/moment/locale/ar-tn.js","./ar.js":"./node_modules/moment/locale/ar.js","./az":"./node_modules/moment/locale/az.js","./az.js":"./node_modules/moment/locale/az.js","./be":"./node_modules/moment/locale/be.js","./be.js":"./node_modules/moment/locale/be.js","./bg":"./node_modules/moment/locale/bg.js","./bg.js":"./node_modules/moment/locale/bg.js","./bm":"./node_modules/moment/locale/bm.js","./bm.js":"./node_modules/moment/locale/bm.js","./bn":"./node_modules/moment/locale/bn.js","./bn.js":"./node_modules/moment/locale/bn.js","./bo":"./node_modules/moment/locale/bo.js","./bo.js":"./node_modules/moment/locale/bo.js","./br":"./node_modules/moment/locale/br.js","./br.js":"./node_modules/moment/locale/br.js","./bs":"./node_modules/moment/locale/bs.js","./bs.js":"./node_modules/moment/locale/bs.js","./ca":"./node_modules/moment/locale/ca.js","./ca.js":"./node_modules/moment/locale/ca.js","./cs":"./node_modules/moment/locale/cs.js","./cs.js":"./node_modules/moment/locale/cs.js","./cv":"./node_modules/moment/locale/cv.js","./cv.js":"./node_modules/moment/locale/cv.js","./cy":"./node_modules/moment/locale/cy.js","./cy.js":"./node_modules/moment/locale/cy.js","./da":"./node_modules/moment/locale/da.js","./da.js":"./node_modules/moment/locale/da.js","./de":"./node_modules/moment/locale/de.js","./de-at":"./node_modules/moment/locale/de-at.js","./de-at.js":"./node_modules/moment/locale/de-at.js","./de-ch":"./node_modules/moment/locale/de-ch.js","./de-ch.js":"./node_modules/moment/locale/de-ch.js","./de.js":"./node_modules/moment/locale/de.js","./dv":"./node_modules/moment/locale/dv.js","./dv.js":"./node_modules/moment/locale/dv.js","./el":"./node_modules/moment/locale/el.js","./el.js":"./node_modules/moment/locale/el.js","./en-au":"./node_modules/moment/locale/en-au.js","./en-au.js":"./node_modules/moment/locale/en-au.js","./en-ca":"./node_modules/moment/locale/en-ca.js","./en-ca.js":"./node_modules/moment/locale/en-ca.js","./en-gb":"./node_modules/moment/locale/en-gb.js","./en-gb.js":"./node_modules/moment/locale/en-gb.js","./en-ie":"./node_modules/moment/locale/en-ie.js","./en-ie.js":"./node_modules/moment/locale/en-ie.js","./en-il":"./node_modules/moment/locale/en-il.js","./en-il.js":"./node_modules/moment/locale/en-il.js","./en-in":"./node_modules/moment/locale/en-in.js","./en-in.js":"./node_modules/moment/locale/en-in.js","./en-nz":"./node_modules/moment/locale/en-nz.js","./en-nz.js":"./node_modules/moment/locale/en-nz.js","./en-sg":"./node_modules/moment/locale/en-sg.js","./en-sg.js":"./node_modules/moment/locale/en-sg.js","./eo":"./node_modules/moment/locale/eo.js","./eo.js":"./node_modules/moment/locale/eo.js","./es":"./node_modules/moment/locale/es.js","./es-do":"./node_modules/moment/locale/es-do.js","./es-do.js":"./node_modules/moment/locale/es-do.js","./es-us":"./node_modules/moment/locale/es-us.js","./es-us.js":"./node_modules/moment/locale/es-us.js","./es.js":"./node_modules/moment/locale/es.js","./et":"./node_modules/moment/locale/et.js","./et.js":"./node_modules/moment/locale/et.js","./eu":"./node_modules/moment/locale/eu.js","./eu.js":"./node_modules/moment/locale/eu.js","./fa":"./node_modules/moment/locale/fa.js","./fa.js":"./node_modules/moment/locale/fa.js","./fi":"./node_modules/moment/locale/fi.js","./fi.js":"./node_modules/moment/locale/fi.js","./fil":"./node_modules/moment/locale/fil.js","./fil.js":"./node_modules/moment/locale/fil.js","./fo":"./node_modules/moment/locale/fo.js","./fo.js":"./node_modules/moment/locale/fo.js","./fr":"./node_modules/moment/locale/fr.js","./fr-ca":"./node_modules/moment/locale/fr-ca.js","./fr-ca.js":"./node_modules/moment/locale/fr-ca.js","./fr-ch":"./node_modules/moment/locale/fr-ch.js","./fr-ch.js":"./node_modules/moment/locale/fr-ch.js","./fr.js":"./node_modules/moment/locale/fr.js","./fy":"./node_modules/moment/locale/fy.js","./fy.js":"./node_modules/moment/locale/fy.js","./ga":"./node_modules/moment/locale/ga.js","./ga.js":"./node_modules/moment/locale/ga.js","./gd":"./node_modules/moment/locale/gd.js","./gd.js":"./node_modules/moment/locale/gd.js","./gl":"./node_modules/moment/locale/gl.js","./gl.js":"./node_modules/moment/locale/gl.js","./gom-deva":"./node_modules/moment/locale/gom-deva.js","./gom-deva.js":"./node_modules/moment/locale/gom-deva.js","./gom-latn":"./node_modules/moment/locale/gom-latn.js","./gom-latn.js":"./node_modules/moment/locale/gom-latn.js","./gu":"./node_modules/moment/locale/gu.js","./gu.js":"./node_modules/moment/locale/gu.js","./he":"./node_modules/moment/locale/he.js","./he.js":"./node_modules/moment/locale/he.js","./hi":"./node_modules/moment/locale/hi.js","./hi.js":"./node_modules/moment/locale/hi.js","./hr":"./node_modules/moment/locale/hr.js","./hr.js":"./node_modules/moment/locale/hr.js","./hu":"./node_modules/moment/locale/hu.js","./hu.js":"./node_modules/moment/locale/hu.js","./hy-am":"./node_modules/moment/locale/hy-am.js","./hy-am.js":"./node_modules/moment/locale/hy-am.js","./id":"./node_modules/moment/locale/id.js","./id.js":"./node_modules/moment/locale/id.js","./is":"./node_modules/moment/locale/is.js","./is.js":"./node_modules/moment/locale/is.js","./it":"./node_modules/moment/locale/it.js","./it-ch":"./node_modules/moment/locale/it-ch.js","./it-ch.js":"./node_modules/moment/locale/it-ch.js","./it.js":"./node_modules/moment/locale/it.js","./ja":"./node_modules/moment/locale/ja.js","./ja.js":"./node_modules/moment/locale/ja.js","./jv":"./node_modules/moment/locale/jv.js","./jv.js":"./node_modules/moment/locale/jv.js","./ka":"./node_modules/moment/locale/ka.js","./ka.js":"./node_modules/moment/locale/ka.js","./kk":"./node_modules/moment/locale/kk.js","./kk.js":"./node_modules/moment/locale/kk.js","./km":"./node_modules/moment/locale/km.js","./km.js":"./node_modules/moment/locale/km.js","./kn":"./node_modules/moment/locale/kn.js","./kn.js":"./node_modules/moment/locale/kn.js","./ko":"./node_modules/moment/locale/ko.js","./ko.js":"./node_modules/moment/locale/ko.js","./ku":"./node_modules/moment/locale/ku.js","./ku.js":"./node_modules/moment/locale/ku.js","./ky":"./node_modules/moment/locale/ky.js","./ky.js":"./node_modules/moment/locale/ky.js","./lb":"./node_modules/moment/locale/lb.js","./lb.js":"./node_modules/moment/locale/lb.js","./lo":"./node_modules/moment/locale/lo.js","./lo.js":"./node_modules/moment/locale/lo.js","./lt":"./node_modules/moment/locale/lt.js","./lt.js":"./node_modules/moment/locale/lt.js","./lv":"./node_modules/moment/locale/lv.js","./lv.js":"./node_modules/moment/locale/lv.js","./me":"./node_modules/moment/locale/me.js","./me.js":"./node_modules/moment/locale/me.js","./mi":"./node_modules/moment/locale/mi.js","./mi.js":"./node_modules/moment/locale/mi.js","./mk":"./node_modules/moment/locale/mk.js","./mk.js":"./node_modules/moment/locale/mk.js","./ml":"./node_modules/moment/locale/ml.js","./ml.js":"./node_modules/moment/locale/ml.js","./mn":"./node_modules/moment/locale/mn.js","./mn.js":"./node_modules/moment/locale/mn.js","./mr":"./node_modules/moment/locale/mr.js","./mr.js":"./node_modules/moment/locale/mr.js","./ms":"./node_modules/moment/locale/ms.js","./ms-my":"./node_modules/moment/locale/ms-my.js","./ms-my.js":"./node_modules/moment/locale/ms-my.js","./ms.js":"./node_modules/moment/locale/ms.js","./mt":"./node_modules/moment/locale/mt.js","./mt.js":"./node_modules/moment/locale/mt.js","./my":"./node_modules/moment/locale/my.js","./my.js":"./node_modules/moment/locale/my.js","./nb":"./node_modules/moment/locale/nb.js","./nb.js":"./node_modules/moment/locale/nb.js","./ne":"./node_modules/moment/locale/ne.js","./ne.js":"./node_modules/moment/locale/ne.js","./nl":"./node_modules/moment/locale/nl.js","./nl-be":"./node_modules/moment/locale/nl-be.js","./nl-be.js":"./node_modules/moment/locale/nl-be.js","./nl.js":"./node_modules/moment/locale/nl.js","./nn":"./node_modules/moment/locale/nn.js","./nn.js":"./node_modules/moment/locale/nn.js","./oc-lnc":"./node_modules/moment/locale/oc-lnc.js","./oc-lnc.js":"./node_modules/moment/locale/oc-lnc.js","./pa-in":"./node_modules/moment/locale/pa-in.js","./pa-in.js":"./node_modules/moment/locale/pa-in.js","./pl":"./node_modules/moment/locale/pl.js","./pl.js":"./node_modules/moment/locale/pl.js","./pt":"./node_modules/moment/locale/pt.js","./pt-br":"./node_modules/moment/locale/pt-br.js","./pt-br.js":"./node_modules/moment/locale/pt-br.js","./pt.js":"./node_modules/moment/locale/pt.js","./ro":"./node_modules/moment/locale/ro.js","./ro.js":"./node_modules/moment/locale/ro.js","./ru":"./node_modules/moment/locale/ru.js","./ru.js":"./node_modules/moment/locale/ru.js","./sd":"./node_modules/moment/locale/sd.js","./sd.js":"./node_modules/moment/locale/sd.js","./se":"./node_modules/moment/locale/se.js","./se.js":"./node_modules/moment/locale/se.js","./si":"./node_modules/moment/locale/si.js","./si.js":"./node_modules/moment/locale/si.js","./sk":"./node_modules/moment/locale/sk.js","./sk.js":"./node_modules/moment/locale/sk.js","./sl":"./node_modules/moment/locale/sl.js","./sl.js":"./node_modules/moment/locale/sl.js","./sq":"./node_modules/moment/locale/sq.js","./sq.js":"./node_modules/moment/locale/sq.js","./sr":"./node_modules/moment/locale/sr.js","./sr-cyrl":"./node_modules/moment/locale/sr-cyrl.js","./sr-cyrl.js":"./node_modules/moment/locale/sr-cyrl.js","./sr.js":"./node_modules/moment/locale/sr.js","./ss":"./node_modules/moment/locale/ss.js","./ss.js":"./node_modules/moment/locale/ss.js","./sv":"./node_modules/moment/locale/sv.js","./sv.js":"./node_modules/moment/locale/sv.js","./sw":"./node_modules/moment/locale/sw.js","./sw.js":"./node_modules/moment/locale/sw.js","./ta":"./node_modules/moment/locale/ta.js","./ta.js":"./node_modules/moment/locale/ta.js","./te":"./node_modules/moment/locale/te.js","./te.js":"./node_modules/moment/locale/te.js","./tet":"./node_modules/moment/locale/tet.js","./tet.js":"./node_modules/moment/locale/tet.js","./tg":"./node_modules/moment/locale/tg.js","./tg.js":"./node_modules/moment/locale/tg.js","./th":"./node_modules/moment/locale/th.js","./th.js":"./node_modules/moment/locale/th.js","./tl-ph":"./node_modules/moment/locale/tl-ph.js","./tl-ph.js":"./node_modules/moment/locale/tl-ph.js","./tlh":"./node_modules/moment/locale/tlh.js","./tlh.js":"./node_modules/moment/locale/tlh.js","./tr":"./node_modules/moment/locale/tr.js","./tr.js":"./node_modules/moment/locale/tr.js","./tzl":"./node_modules/moment/locale/tzl.js","./tzl.js":"./node_modules/moment/locale/tzl.js","./tzm":"./node_modules/moment/locale/tzm.js","./tzm-latn":"./node_modules/moment/locale/tzm-latn.js","./tzm-latn.js":"./node_modules/moment/locale/tzm-latn.js","./tzm.js":"./node_modules/moment/locale/tzm.js","./ug-cn":"./node_modules/moment/locale/ug-cn.js","./ug-cn.js":"./node_modules/moment/locale/ug-cn.js","./uk":"./node_modules/moment/locale/uk.js","./uk.js":"./node_modules/moment/locale/uk.js","./ur":"./node_modules/moment/locale/ur.js","./ur.js":"./node_modules/moment/locale/ur.js","./uz":"./node_modules/moment/locale/uz.js","./uz-latn":"./node_modules/moment/locale/uz-latn.js","./uz-latn.js":"./node_modules/moment/locale/uz-latn.js","./uz.js":"./node_modules/moment/locale/uz.js","./vi":"./node_modules/moment/locale/vi.js","./vi.js":"./node_modules/moment/locale/vi.js","./x-pseudo":"./node_modules/moment/locale/x-pseudo.js","./x-pseudo.js":"./node_modules/moment/locale/x-pseudo.js","./yo":"./node_modules/moment/locale/yo.js","./yo.js":"./node_modules/moment/locale/yo.js","./zh-cn":"./node_modules/moment/locale/zh-cn.js","./zh-cn.js":"./node_modules/moment/locale/zh-cn.js","./zh-hk":"./node_modules/moment/locale/zh-hk.js","./zh-hk.js":"./node_modules/moment/locale/zh-hk.js","./zh-mo":"./node_modules/moment/locale/zh-mo.js","./zh-mo.js":"./node_modules/moment/locale/zh-mo.js","./zh-tw":"./node_modules/moment/locale/zh-tw.js","./zh-tw.js":"./node_modules/moment/locale/zh-tw.js"};function s(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}s.keys=function(){return Object.keys(a)},s.resolve=r,e.exports=s,s.id="./node_modules/moment/locale sync recursive ^\\.\\/.*$"},"./node_modules/moment/locale/af.js":function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("./node_modules/moment/moment.js"))},"./node_modules/moment/locale/ar-dz.js":function(e,t,n){!function(e){"use strict"; //! moment.js locale configuration @@ -310,4 +310,4 @@ function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else * flipbook-vue v0.8.1 * Copyright © 2020 Takeshi Sone. * Released under the MIT License. - */var a,s,r,i,o=n("./node_modules/rematrix/dist/rematrix.es.js"),d=function(){function e(e){e?e.m?this.m=[].concat(e.m):this.m=[].concat(e):this.m=o.identity()}return e.prototype.clone=function(){return new e(this)},e.prototype.multiply=function(e){return this.m=o.multiply(this.m,e)},e.prototype.perspective=function(e){return this.multiply(o.perspective(e))},e.prototype.transformX=function(e){return(e*this.m[0]+this.m[12])/(e*this.m[3]+this.m[15])},e.prototype.translate=function(e,t){return this.multiply(o.translate(e,t))},e.prototype.translate3d=function(e,t,n){return this.multiply(o.translate3d(e,t,n))},e.prototype.rotateY=function(e){return this.multiply(o.rotateY(e))},e.prototype.toString=function(){return o.toString(this.m)},e}();s=function(e){return Math.pow(e,2)},i=function(e){return 1-s(1-e)},r=function(e){return e<.5?s(2*e)/2:.5+i(2*(e-.5))/2},a=/Trident/.test(navigator.userAgent);var l={props:{enabled:{type:Boolean,required:!0},pages:{type:Array,required:!0},pagesHiRes:{type:Array,default:function(){return[]}},flipDuration:{type:Number,default:1e3},zoomDuration:{type:Number,default:500},zooms:{type:Array,default:function(){return[1,2,4]}},perspective:{type:Number,default:2400},nPolygons:{type:Number,default:10},ambient:{type:Number,default:.4},gloss:{type:Number,default:.6},swipeMin:{type:Number,default:3},singlePage:{type:Boolean,default:!1},forwardDirection:{validator:function(e){return"right"===e||"left"===e},default:"right"},centering:{type:Boolean,default:!0},startPage:{type:Number,default:null}},data:function(){return{viewWidth:0,viewHeight:0,imageWidth:null,imageHeight:null,displayedPages:1,nImageLoad:0,nImageLoadTrigger:0,imageLoadCallback:null,currentPage:0,firstPage:0,secondPage:1,zoomIndex:0,zoom:1,zooming:!1,touchStartX:null,touchStartY:null,maxMove:0,activeCursor:null,hasTouchEvents:!1,hasPointerEvents:!1,minX:Infinity,maxX:-Infinity,preloadedImages:{},flip:{progress:0,direction:null,frontImage:null,backImage:null,auto:!1,opacity:1},currentCenterOffset:null,animatingCenter:!1,startScrollLeft:0,startScrollTop:0,scrollLeft:0,scrollTop:0}},computed:{canFlipLeft:function(){return"left"===this.forwardDirection?this.canGoForward:this.canGoBack},canFlipRight:function(){return"right"===this.forwardDirection?this.canGoForward:this.canGoBack},canZoomIn:function(){return!this.zooming&&this.zoomIndex0},numPages:function(){return null===this.pages[0]?this.pages.length-1:this.pages.length},page:function(){return null!==this.pages[0]?this.currentPage+1:Math.max(1,this.currentPage)},zooms_:function(){return this.zooms||[1]},canGoForward:function(){return!this.flip.direction&&this.currentPage=this.displayedPages&&!(1===this.displayedPages&&!this.pageUrl(this.firstPage-1))},leftPage:function(){return"right"===this.forwardDirection||1===this.displayedPages?this.firstPage:this.secondPage},rightPage:function(){return"left"===this.forwardDirection?this.firstPage:this.secondPage},showLeftPage:function(){return this.pageUrl(this.leftPage)},showRightPage:function(){return this.pageUrl(this.rightPage)&&2===this.displayedPages},cursor:function(){return this.activeCursor?this.activeCursor:a?"auto":this.canZoomIn?"zoom-in":this.canZoomOut?"zoom-out":"grab"},pageScale:function(){var e,t,n;return(e=(t=this.viewWidth/this.displayedPages/this.imageWidth)<(n=this.viewHeight/this.imageHeight)?t:n)<1?e:1},pageWidth:function(){return Math.round(this.imageWidth*this.pageScale)},pageHeight:function(){return Math.round(this.imageHeight*this.pageScale)},xMargin:function(){return(this.viewWidth-this.pageWidth*this.displayedPages)/2},yMargin:function(){return(this.viewHeight-this.pageHeight)/2},polygonWidth:function(){var e;return e=this.pageWidth/this.nPolygons,(e=Math.ceil(e+1/this.zoom))+"px"},polygonHeight:function(){return this.pageHeight+"px"},polygonBgSize:function(){return this.pageWidth+"px "+this.pageHeight+"px"},polygonArray:function(){return this.makePolygonArray("front").concat(this.makePolygonArray("back"))},boundingLeft:function(){var e;return 1===this.displayedPages?this.xMargin:(e=this.pageUrl(this.leftPage)?this.xMargin:this.viewWidth/2)this.maxX?e:this.maxX},centerOffset:function(){var e;return e=this.centering?Math.round(this.viewWidth/2-(this.boundingLeft+this.boundingRight)/2):0,null===this.currentCenterOffset&&null!==this.imageWidth&&(this.currentCenterOffset=e),e},centerOffsetSmoothed:function(){return Math.round(this.currentCenterOffset)},dragToScroll:function(){return!this.hasTouchEvents},scrollLeftMin:function(){var e;return(e=(this.boundingRight-this.boundingLeft)*this.zoom)this.viewHeight&&!this.singlePage?2:1,2===this.displayedPages&&(this.currentPage&=-2),this.fixFirstPage(),this.minX=Infinity,this.maxX=-Infinity,console.log("Flipbook resized")},fixFirstPage:function(){if(1===this.displayedPages&&0===this.currentPage&&this.pages.length&&!this.pageUrl(0))return this.currentPage++},pageUrl:function(e,t){var n;return void 0===t&&(t=!1),t&&this.zoom>1&&!this.zooming&&(n=this.pagesHiRes[e])?n:this.pages[e]||null},flipLeft:function(){if(this.canFlipLeft)return this.flipStart("left",!0)},flipRight:function(){if(this.canFlipRight)return this.flipStart("right",!0)},makePolygonArray:function(e){var t,n,a,s,r,i,o,l,u,c,m,_,h,p,f,v,y,g,M,L,b,w,k,Y,D,T,j;if(!this.flip.direction)return[];for(v=this.flip.progress,r=this.flip.direction,1===this.displayedPages&&r!==this.forwardDirection&&(v=1-v,r=this.forwardDirection),this.flip.opacity=1===this.displayedPages&&v>.7?1-(v-.7)/.3:1,t=(o="front"===e?this.flip.frontImage:this.flip.backImage)&&"url('"+o+"')",f=this.pageWidth/this.nPolygons,p=this.xMargin,m=!1,1===this.displayedPages?"right"===this.forwardDirection?"back"===e&&(m=!0,p=this.xMargin-this.pageWidth):"left"===r?"back"===e?p=this.pageWidth-this.xMargin:m=!0:"front"===e?p=this.pageWidth-this.xMargin:m=!0:"left"===r?"back"===e?p=this.viewWidth/2:m=!0:"front"===e?p=this.viewWidth/2:m=!0,(_=new d).translate(this.viewWidth/2),_.perspective(this.perspective),_.translate(-this.viewWidth/2),_.translate(p,this.yMargin),h=0,v>.5&&(h=2*-(v-.5)*180),"left"===r&&(h=-h),"back"===e&&(h+=180),h&&(m&&_.translate(this.pageWidth),_.rotateY(h),m&&_.translate(-this.pageWidth)),0===(k=v<.5?2*v*Math.PI:(1-2*(v-.5))*Math.PI)&&(k=1e-9),M=this.pageWidth/k,g=0,w=(a=k/this.nPolygons)/2/Math.PI*180,s=a/Math.PI*180,m&&(w=-k/Math.PI*180+s/2),"back"===e&&(w=-w,s=-s),this.minX=Infinity,this.maxX=-Infinity,b=[],i=l=0,L=this.nPolygons;0<=L?lL;i=0<=L?++l:--l)n=i/(this.nPolygons-1)*100+"% 0px",c=_.clone(),y=m?k-g:g,Y=Math.sin(y)*M,m&&(Y=this.pageWidth-Y),j=(1-Math.cos(y))*M,"back"===e&&(j=-j),c.translate3d(Y,0,j),c.rotateY(-w),D=c.transformX(0),T=c.transformX(f),this.maxX=Math.max(Math.max(D,T),this.maxX),this.minX=Math.min(Math.min(D,T),this.minX),u=this.computeLighting(h-w,s),g+=a,w+=s,b.push([e+i,t,u,n,c.toString(),Math.abs(Math.round(j))]);return b},computeLighting:function(e,t){var n,s,r,i,o;return r=[],i=[-.5,-.25,0,.25,.5],this.ambient<1&&(n=1-this.ambient,s=i.map((function(a){return(1-Math.cos((e-t*a)/180*Math.PI))*n})),r.push("linear-gradient(to right,\n rgba(0, 0, 0, "+s[0]+"),\n rgba(0, 0, 0, "+s[1]+") 25%,\n rgba(0, 0, 0, "+s[2]+") 50%,\n rgba(0, 0, 0, "+s[3]+") 75%,\n rgba(0, 0, 0, "+s[4]+"))")),this.gloss>0&&!a&&(30,200,o=i.map((function(n){return Math.max(Math.pow(Math.cos((e+30-t*n)/180*Math.PI),200),Math.pow(Math.cos((e-30-t*n)/180*Math.PI),200))})),r.push("linear-gradient(to right,\n rgba(255, 255, 255, "+o[0]*this.gloss+"),\n rgba(255, 255, 255, "+o[1]*this.gloss+") 25%,\n rgba(255, 255, 255, "+o[2]*this.gloss+") 50%,\n rgba(255, 255, 255, "+o[3]*this.gloss+") 75%,\n rgba(255, 255, 255, "+o[4]*this.gloss+"))")),r.join(",")},flipStart:function(e,t){var n=this;return e!==this.forwardDirection?1===this.displayedPages?(this.flip.frontImage=this.pageUrl(this.currentPage-1),this.flip.backImage=null):(this.flip.frontImage=this.pageUrl(this.firstPage),this.flip.backImage=this.pageUrl(this.currentPage-this.displayedPages+1)):1===this.displayedPages?(this.flip.frontImage=this.pageUrl(this.currentPage),this.flip.backImage=null):(this.flip.frontImage=this.pageUrl(this.secondPage),this.flip.backImage=this.pageUrl(this.currentPage+this.displayedPages)),this.flip.direction=e,this.flip.progress=0,requestAnimationFrame((function(){return requestAnimationFrame((function(){if(n.flip.direction!==n.forwardDirection?2===n.displayedPages&&(n.firstPage=n.currentPage-n.displayedPages):1===n.displayedPages?n.firstPage=n.currentPage+n.displayedPages:n.secondPage=n.currentPage+1+n.displayedPages,t)return n.flipAuto(!0)}))}))},flipAuto:function(e){var t,n,a,s,i=this;return s=Date.now(),n=this.flipDuration*(1-this.flip.progress),a=this.flip.progress,this.flip.auto=!0,this.$emit("flip-"+this.flip.direction+"-start",this.page),(t=function(){return requestAnimationFrame((function(){var o,d;return d=Date.now()-s,(o=a+d/n)>1&&(o=1),i.flip.progress=e?r(o):o,o<1?t():(i.flip.direction!==i.forwardDirection?i.currentPage-=i.displayedPages:i.currentPage+=i.displayedPages,i.$emit("flip-"+i.flip.direction+"-end",i.page),1===i.displayedPages&&i.flip.direction===i.forwardDirection?i.flip.direction=null:i.onImageLoad(1,(function(){return i.flip.direction=null})),i.flip.auto=!1)}))})()},flipRevert:function(){var e,t,n,a,s=this;return a=Date.now(),t=this.flipDuration*this.flip.progress,n=this.flip.progress,this.flip.auto=!0,(e=function(){return requestAnimationFrame((function(){var r,i;return i=Date.now()-a,(r=n-n*i/t)<0&&(r=0),s.flip.progress=r,r>0?e():(s.firstPage=s.currentPage,s.secondPage=s.currentPage+1,1===s.displayedPages&&s.flip.direction!==s.forwardDirection?s.flip.direction=null:s.onImageLoad(1,(function(){return s.flip.direction=null})),s.flip.auto=!1)}))})()},onImageLoad:function(e,t){return this.nImageLoad=0,this.nImageLoadTrigger=e,this.imageLoadCallback=t},didLoadImage:function(e){if(null===this.imageWidth&&(this.imageWidth=(e.target||e.path[0]).naturalWidth,this.imageHeight=(e.target||e.path[0]).naturalHeight),this.imageLoadCallback)return++this.nImageLoad>=this.nImageLoadTrigger?(this.imageLoadCallback(),this.imageLoadCallback=null):void 0},zoomIn:function(){if(this.canZoomIn)return this.zoomIndex+=1,this.zoomTo(this.zooms_[this.zoomIndex])},zoomOut:function(){if(this.canZoomOut)return this.zoomIndex-=1,this.zoomTo(this.zooms_[this.zoomIndex])},zoomTo:function(e,t,n){var s,i,o,d,l,u,c,m,_,h=this;if(l=this.zoom,i=e,_=this.$refs.viewport,u=_.scrollLeft,c=_.scrollTop,t||(t=_.clientWidth/2),n||(n=_.clientHeight/2),o=(t+u)/l*i-t,d=(n+c)/l*i-n,m=Date.now(),this.zooming=!0,this.$emit("zoom-start",e),(s=function(){return requestAnimationFrame((function(){var t,n;return((t=(n=Date.now()-m)/h.zoomDuration)>1||a)&&(t=1),t=r(t),h.zoom=l+(i-l)*t,h.scrollLeft=u+(o-u)*t,h.scrollTop=c+(d-c)*t,n1)return this.preloadImages(!0)},zoomAt:function(e){var t,n,a;return t=this.$refs.viewport.getBoundingClientRect(),n=e.pageX-t.left,a=e.pageY-t.top,this.zoomIndex=(this.zoomIndex+1)%this.zooms_.length,this.zoomTo(this.zooms_[this.zoomIndex],n,a)},swipeStart:function(e){},swipeMove:function(e){var t,n;if(null!=this.touchStartX)if(t=e.pageX-this.touchStartX,n=e.pageY-this.touchStartY,this.maxMove=Math.max(this.maxMove,Math.abs(t)),this.maxMove=Math.max(this.maxMove,Math.abs(n)),this.zoom>1)this.dragToScroll&&this.dragScroll(t,n);else if(!(Math.abs(n)>Math.abs(t)))return this.activeCursor="grabbing",t>0?(null===this.flip.direction&&this.canFlipLeft&&t>=this.swipeMin&&this.flipStart("left",!1),"left"===this.flip.direction&&(this.flip.progress=t/this.pageWidth,this.flip.progress>1&&(this.flip.progress=1))):(null===this.flip.direction&&this.canFlipRight&&t<=-this.swipeMin&&this.flipStart("right",!1),"right"===this.flip.direction&&(this.flip.progress=-t/this.pageWidth,this.flip.progress>1&&(this.flip.progress=1))),!0},swipeEnd:function(e){if(null!=this.touchStartX)return this.maxMove1/4?this.flipAuto(!1):this.flipRevert()),this.touchStartX=null,this.activeCursor=null},onTouchStart:function(e){return this.hasTouchEvents=!0,this.swipeStart(e.changedTouches[0])},onTouchMove:function(e){if(this.swipeMove(e.changedTouches[0])&&e.cancelable)return e.preventDefault()},onTouchEnd:function(e){return this.swipeEnd(e.changedTouches[0])},onPointerDown:function(e){if(this.hasPointerEvents=!0,!(this.hasTouchEvents||e.which&&1!==e.which)){this.swipeStart(e);try{return e.target.setPointerCapture(e.pointerId)}catch(e){}}},onPointerMove:function(e){if(!this.hasTouchEvents)return this.swipeMove(e)},onPointerUp:function(e){if(!this.hasTouchEvents){this.swipeEnd(e);try{return e.target.releasePointerCapture(e.pointerId)}catch(e){}}},onMouseDown:function(e){if(!(this.hasTouchEvents||this.hasPointerEvents||e.which&&1!==e.which))return this.swipeStart(e)},onMouseMove:function(e){if(!this.hasTouchEvents&&!this.hasPointerEvents)return this.swipeMove(e)},onMouseUp:function(e){if(!this.hasTouchEvents&&!this.hasPointerEvents)return this.swipeEnd(e)},dragScroll:function(e,t){return this.scrollLeft=this.startScrollLeft-e,this.scrollTop=this.startScrollTop-t},onWheel:function(e){if(this.zoom>1&&this.dragToScroll&&(this.scrollLeft=this.$refs.viewport.scrollLeft+e.deltaX,this.scrollTop=this.$refs.viewport.scrollTop+e.deltaY,e.cancelable))return e.preventDefault()},preloadImages:function(e){var t,n,a,s,r,i,o,d,l;for(void 0===e&&(e=!1),Object.keys(this.preloadedImages).length>=10&&(this.preloadedImages={}),t=a=r=this.currentPage-3,i=this.currentPage+3;r<=i?a<=i:a>=i;t=r<=i?++a:--a)(l=this.pageUrl(t))&&(this.preloadedImages[l]||((n=new Image).src=l,this.preloadedImages[l]=n));if(e)for(t=s=o=this.currentPage,d=this.currentPage+this.displayedPages;o<=d?sd;t=o<=d?++s:--s)(l=this.pagesHiRes[t])&&(this.preloadedImages[l]||((n=new Image).src=l,this.preloadedImages[l]=n))},goToPage:function(e){if(null!==e&&e!==this.page)return null===this.pages[0]?2===this.displayedPages&&1===e?this.currentPage=0:this.currentPage=e:this.currentPage=e-1,this.minX=Infinity,this.maxX=-Infinity,this.currentCenterOffset=this.centerOffset}},watch:{currentPage:function(){return this.firstPage=this.currentPage,this.secondPage=this.currentPage+1,this.preloadImages()},centerOffset:function(){var e,t=this;if(!this.animatingCenter)return e=function(){return requestAnimationFrame((function(){var n;return.1,n=t.centerOffset-t.currentCenterOffset,Math.abs(n)<.5?(t.currentCenterOffset=t.centerOffset,t.animatingCenter=!1):(t.currentCenterOffset+=.1*n,e())}))},this.animatingCenter=!0,e()},scrollLeftLimited:function(e){var t=this;return a?requestAnimationFrame((function(){return t.$refs.viewport.scrollLeft=e})):this.$refs.viewport.scrollLeft=e},scrollTopLimited:function(e){var t=this;return a?requestAnimationFrame((function(){return t.$refs.viewport.scrollTop=e})):this.$refs.viewport.scrollTop=e},pages:function(e,t){if(this.fixFirstPage(),!(null!=t?t.length:void 0)&&(null!=e?e.length:void 0)&&this.startPage>1&&null===e[0])return this.currentPage++},startPage:function(e){return this.goToPage(e)}}};var u,c="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var m={};var _=function(e,t,n,a,s,r,i,o,d,l){"boolean"!=typeof i&&(d=o,o=i,i=!1);var u,c="function"==typeof n?n.options:n;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,s&&(c.functional=!0)),a&&(c._scopeId=a),r?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,d(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=u):t&&(u=i?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,o(e))}),u)if(c.functional){var m=c.render;c.render=function(e,t){return u.call(t),m(e,t)}}else{var _=c.beforeCreate;c.beforeCreate=_?[].concat(_,u):[u]}return n}({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._t("default",null,null,{canFlipLeft:e.canFlipLeft,canFlipRight:e.canFlipRight,canZoomIn:e.canZoomIn,canZoomOut:e.canZoomOut,page:e.page,numPages:e.numPages,flipLeft:e.flipLeft,flipRight:e.flipRight,zoomIn:e.zoomIn,zoomOut:e.zoomOut}),e._v(" "),n("div",{ref:"viewport",staticClass:"viewport",class:{zoom:e.zooming||e.zoom>1,"drag-to-scroll":e.dragToScroll},style:{cursor:"grabbing"==e.cursor?"grabbing":"auto"},on:{touchmove:e.onTouchMove,pointermove:e.onPointerMove,mousemove:e.onMouseMove,touchend:e.onTouchEnd,touchcancel:e.onTouchEnd,pointerup:e.onPointerUp,pointercancel:e.onPointerUp,mouseup:e.onMouseUp,wheel:e.onWheel}},[n("div",{staticClass:"book-container",style:{transform:"scale("+e.zoom+")"}},[n("div",{style:{transform:"translateX("+e.centerOffsetSmoothed+"px)"}},[e.showLeftPage?n("img",{staticClass:"page fixed",style:{width:e.pageWidth+"px",height:e.pageHeight+"px",left:e.xMargin+"px",top:e.yMargin+"px"},attrs:{src:e.pageUrl(e.leftPage,!0)},on:{load:function(t){return e.didLoadImage(t)}}}):e._e(),e._v(" "),e.showRightPage?n("img",{staticClass:"page fixed",style:{width:e.pageWidth+"px",height:e.pageHeight+"px",left:e.viewWidth/2+"px",top:e.yMargin+"px"},attrs:{src:e.pageUrl(e.rightPage,!0)},on:{load:function(t){return e.didLoadImage(t)}}}):e._e(),e._v(" "),n("div",{style:{opacity:e.flip.opacity}},e._l(e.polygonArray,(function(t){var a=t[0],s=t[1],r=t[2],i=t[3],o=t[4],d=t[5];return n("div",{key:a,staticClass:"polygon",class:{blank:!s},style:{backgroundImage:s,backgroundSize:e.polygonBgSize,backgroundPosition:i,width:e.polygonWidth,height:e.polygonHeight,transform:o,zIndex:d}},[n("div",{directives:[{name:"show",rawName:"v-show",value:r.length,expression:"lighting.length"}],staticClass:"lighting",style:{backgroundImage:r}})])})),0),e._v(" "),n("div",{staticClass:"bounding-box",style:{left:e.boundingLeft+"px",top:e.yMargin+"px",width:e.boundingRight-e.boundingLeft+"px",height:e.pageHeight+"px",cursor:e.cursor},on:{touchstart:e.onTouchStart,pointerdown:e.onPointerDown,mousedown:e.onMouseDown}})])])])],2)},staticRenderFns:[]},(function(e){e&&e("data-v-1b72a150_0",{source:".viewport[data-v-1b72a150]{-webkit-overflow-scrolling:touch;width:100%;height:100%}.viewport.zoom[data-v-1b72a150]{overflow:scroll}.viewport.zoom.drag-to-scroll[data-v-1b72a150]{overflow:hidden}.book-container[data-v-1b72a150]{position:relative;width:100%;height:100%;transform-origin:top left;-webkit-user-select:none;-ms-user-select:none;user-select:none}.click-to-flip[data-v-1b72a150]{position:absolute;width:50%;height:100%;top:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.click-to-flip.left[data-v-1b72a150]{left:0}.click-to-flip.right[data-v-1b72a150]{right:0}.bounding-box[data-v-1b72a150]{position:absolute;-webkit-user-select:none;-ms-user-select:none;user-select:none}.page[data-v-1b72a150]{position:absolute;-webkit-backface-visibility:hidden;backface-visibility:hidden;box-shadow:0 0 15px -4px rgba(0,0,0,.75)}.polygon[data-v-1b72a150]{position:absolute;top:0;left:0;background-repeat:no-repeat;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform-origin:center left}.polygon.blank[data-v-1b72a150]{background-color:#ddd}.polygon .lighting[data-v-1b72a150]{width:100%;height:100%}",map:void 0,media:void 0})}),l,"data-v-1b72a150",!1,void 0,!1,(function(e){return function(e,t){return function(e,t){var n=c?t.media||"default":e,a=m[n]||(m[n]={ids:new Set,styles:[]});if(!a.ids.has(e)){a.ids.add(e);var s=t.source;if(t.map&&(s+="\n/*# sourceURL="+t.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),a.element||(a.element=document.createElement("style"),a.element.type="text/css",t.media&&a.element.setAttribute("media",t.media),void 0===u&&(u=document.head||document.getElementsByTagName("head")[0]),u.appendChild(a.element)),"styleSheet"in a.element)a.styles.push(s),a.element.styleSheet.cssText=a.styles.filter(Boolean).join("\n");else{var r=a.ids.size-1,i=document.createTextNode(s),o=a.element.childNodes;o[r]&&a.element.removeChild(o[r]),o.length?a.element.insertBefore(i,o[r]):a.element.appendChild(i)}}}(e,t)}}),void 0,void 0);e.exports=_},"./resources/scripts/applications/home/main.vue":function(e,t,n){"use strict";n.r(t);n("./node_modules/regenerator-runtime/runtime.js");var a=n("./node_modules/vue/dist/vue.esm.js"),s=n("./node_modules/vuex/dist/vuex.esm.js"),r=n("./resources/scripts/applications/home/app.vue"),i=n("./node_modules/vue-router/dist/vue-router.esm.js"),o=n("./resources/scripts/applications/home/views/home.vue"),d=n("./resources/scripts/applications/home/views/settings.vue"),l=n("./resources/scripts/applications/home/views/call.vue"),u=n("./resources/scripts/applications/home/views/child_profile.vue"),c=n("./resources/scripts/applications/home/views/call_views/Lobby.vue"),m=n("./resources/scripts/applications/home/views/call_views/Book.vue");a.default.use(i.a);const _=[{path:"/",component:o.a,name:"root"},{path:"/settings",component:d.a},{path:"/call/:id",component:l.a,children:[{path:"",component:c.a,name:"lobby"},{path:"book",component:m.a,name:"book"}]},{path:"/child/:id",component:u.a},{path:"*",redirect:{name:"root"}}];var h=new i.a({routes:_,mode:"history"}),p=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),f=Object(p.a)(h,void 0,void 0,!1,null,null,null),v=n("./node_modules/vue-hot-reload-api/dist/index.js");v.install(n("./node_modules/vue/dist/vue.esm.js")),v.compatible&&(e.hot.accept(),v.isRecorded("1c72787c")?v.reload("1c72787c",f.options):v.createRecord("1c72787c",f.options)),f.options.__file="resources/scripts/applications/home/router/router.vue";var y=f.exports,g=n("./resources/scripts/applications/services/index.ts");a.default.use(s.b);var M=new s.a({strict:!0,state:{inCall:!1,user:{name:"loading...",is_admin:!1,id:null,books:[]},notifications:[]},getters:{user:e=>e.user,notifications:e=>e.notifications,inCall:e=>e.inCall},mutations:{setUser(e,t){e.user=t},notify(e,t){const n=Math.ceil(1e3*Math.random());e.notifications.push({...t,id:n});const a=this.dispatch;setTimeout(()=>{a("dismissNotification",n)},5e3)},dismissNotification(e,t){e.notifications=e.notifications.filter(e=>e.id!=t)},callEnded(e){e.inCall=!1},callStarted(e){e.inCall=!0}},actions:{getUser(e,t){return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,regeneratorRuntime.awrap(g.a.ApiService.getUser(t));case 2:return n=a.sent,e.commit("setUser",n),a.abrupt("return",n);case 5:case"end":return a.stop()}}),null,null,null,Promise);var n},notify(e,t){e.commit("notify",t)},dismissNotification(e,t){e.commit("dismissNotification",t)},callEnded(e){e.commit("callEnded")},callStarted(e){e.commit("callStarted")}}});a.default.use(s.b);var L=new a.default({router:y,store:M,render:e=>e(r.a)}).$mount("#app"),b=Object(p.a)(L,void 0,void 0,!1,null,null,null),w=n("./node_modules/vue-hot-reload-api/dist/index.js");w.install(n("./node_modules/vue/dist/vue.esm.js")),w.compatible&&(e.hot.accept(),w.isRecorded("550f4f9c")?w.reload("550f4f9c",b.options):w.createRecord("550f4f9c",b.options)),b.options.__file="resources/scripts/applications/home/main.vue";t.default=b.exports},"./resources/scripts/applications/home/views/call.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/call.vue?vue&type=template&id=2e42c802&"),s=n("./resources/scripts/applications/home/views/call.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("2e42c802")?o.reload("2e42c802",i.options):o.createRecord("2e42c802",i.options),e.hot.accept("./resources/scripts/applications/home/views/call.vue?vue&type=template&id=2e42c802&",function(e){a=n("./resources/scripts/applications/home/views/call.vue?vue&type=template&id=2e42c802&"),o.rerender("2e42c802",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/call.vue",t.a=i.exports},"./resources/scripts/applications/home/views/call.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),s=n("./resources/scripts/applications/home/ws/call.manager.ts"),r=n("./resources/scripts/applications/home/ws/websocket.service.ts"),i=n("./resources/scripts/applications/home/views/call_views/VideoStrip.vue"),o=n("./node_modules/vuex/dist/vuex.esm.js"),d={components:{Loading:a.a,VideoStrip:i.a},name:"Call",created(){var e,t,n,a=this;return regeneratorRuntime.async((function(i){for(;;)switch(i.prev=i.next){case 0:return a.loading=!0,i.prev=1,e=Number(a.$route.params.id),i.next=5,regeneratorRuntime.awrap(r.a.getInstance());case 5:return t=i.sent,a.callManager=t.callManager,a.callManager.on(s.a.CLOSE,a.endCall),i.next=10,regeneratorRuntime.awrap(a.callManager.connectToCall(a.user.id,{video:!0,audio:!0},e));case 10:if(n=i.sent,a.callManager.on(s.a.CALL_HOST_CHANGED,a.onRemoteHostChanged),n){i.next=16;break}return a.notify({message:"Can find this call...",level:"danger"}),a.$router.push({path:"/"}),i.abrupt("return",!1);case 16:return a.callStarted(),i.next=19,regeneratorRuntime.awrap(a.callManager.getUserMedia());case 19:a.localStream=i.sent,a.remoteStream=a.callManager.getRemoteStream(),a.notify({message:"Connected!",level:"success"}),i.next=28;break;case 24:i.prev=24,i.t0=i.catch(1),console.error(i.t0),a.notify({message:i.t0.message,level:"danger"});case 28:a.loading=!1;case 29:case"end":return i.stop()}}),null,null,[[1,24]],Promise)},beforeDestroy(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("destroyed"),e.callManager.close(),e.callEnded(),t.abrupt("return",!0);case 4:case"end":return t.stop()}}),null,null,null,Promise)},methods:{setupCall:()=>regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),null,null,null,Promise),endCall(e){this.notify({message:`Call #${e} Ended`}),this.$router.replace({path:"/"})},onRemoteHostChanged(e){console.log("-----------"),console.log(e),this.peer=this.callManager.peer},changeHost(){this.callManager.changeHost()},...Object(o.c)(["notify","callStarted","callEnded"])},computed:{...Object(o.d)(["user","inCall"])},watch:{$route(e,t){const n=e.path.split("/").length,a=t.path.split("/").length;this.stateTransitionName=n({loading:!0,localStream:null,remoteStream:null,callManager:null,stateTransitionName:"slide-left"}),beforeCreate:()=>{}};t.a=d},"./resources/scripts/applications/home/views/call.vue?vue&type=template&id=2e42c802&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"is-fullwidth"},[this.loading?t("div",[t("Loading")],1):t("div",{staticClass:"columns"},[t("VideoStrip",{staticClass:"column is-3",attrs:{localStream:this.localStream,remoteStream:this.remoteStream,remotePoster:this.callManager.peer.avatar}}),this._v(" "),t("transition",{attrs:{name:this.stateTransitionName}},[t("router-view",{staticClass:"column"})],1)],1)])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/views/call_views/Book.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=template&id=39118a17&"),s=n("./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("39118a17")?o.reload("39118a17",i.options):o.createRecord("39118a17",i.options),e.hot.accept("./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=template&id=39118a17&",function(e){a=n("./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=template&id=39118a17&"),o.rerender("39118a17",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/call_views/Book.vue",t.a=i.exports},"./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/flipbook/flipbook.cjs.js"),s=n.n(a),r=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),i=n("./resources/scripts/applications/home/ws/call.manager.ts"),o=n("./resources/scripts/applications/home/ws/websocket.service.ts"),d=n("./node_modules/vuex/dist/vuex.esm.js"),l={name:"CallBook",components:{Flipbook:s.a,Loading:r.a},created(){var e,t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,regeneratorRuntime.awrap(o.a.getInstance());case 2:return e=n.sent,t.callManager=e.callManager,t.callManager.on(i.a.ACTION_BOOK_FLIP,t.onRemoteFlip.bind(t)),t.loading=!1,n.abrupt("return",!0);case 7:case"end":return n.stop()}}),null,null,null,Promise)},destroyed(){this.callManager.removeListener(i.a.ACTION_BOOK_FLIP,this.onRemoteFlip.bind(this))},data:()=>({loading:!0,localStream:null,remoteStream:null,flipbookRef:!1,callManager:{isHost:!1}}),computed:{canFlipLeft(){return this.flipbookRef&&this.$refs.flipbook.canFlipLeft},canFlipRight(){return this.flipbookRef&&this.$refs.flipbook.canFlipRight},createPages(){const e=[null];for(let t=1;t({callManager:{books:[]}}),methods:{goToBook(e,t,n){(n||this.callManager.isHost)&&(this.callManager.selectBook(t,n),this.$router.replace({name:"book"}))},remoteBookSelected({bookId:e}){for(let t=0;t!!e||n.id===t.user.id,t.isParent),n.next=15;break;case 13:t.notify({message:"Sorry, Child not found!",level:"danger"}),t.$router.push({path:"/"});case 15:return n.abrupt("return",!0);case 16:case"end":return n.stop()}}),null,null,null,Promise)},data:()=>({loading:!0,child:null,isParent:!1,inEditMode:!1,showCoverModal:!1,showAddConnectionModal:!1,showChangeAvatarModal:!1,childCoverModalImage:null}),methods:{onDeleteClicked(){this.notify({message:"Delete button clicked. Still not working"})},goToUserProfile(e){this.user.id===e.id?this.$router.push({path:"/"}):this.$router.push({path:"/user/"+e.id})},addConnection(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,n.loading=!0,a.next=4,regeneratorRuntime.awrap(r.a.ApiService.createConnection({...e,child_id:n.child.id}));case 4:if(409!==(t=a.sent).code){a.next=11;break}return n.loading=!1,n.showAddConnectionModal=!1,a.abrupt("return",n.notify({message:t.message,level:"warning"}));case 11:if(0===t.code){a.next=15;break}return n.loading=!1,n.showAddConnectionModal=!1,a.abrupt("return",n.notify({message:t.message,level:"danger"}));case 15:return n.notify({message:`Awesome!\n${t.data.user.name} is connected to ${n.child.name}`,level:"success"}),t.data.is_parent?n.child.parents.push(t.data.user):n.child.connections.push(t.data.user),a.next=19,regeneratorRuntime.awrap(n.getUser());case 19:a.next=24;break;case 21:a.prev=21,a.t0=a.catch(0),console.error(a.t0);case 24:return n.loading=!1,n.showAddConnectionModal=!1,a.abrupt("return",!0);case 27:case"end":return a.stop()}}),null,null,[[0,21]],Promise)},onAvatarClicked(){this.isParent&&(this.showChangeAvatarModal=!0)},updateAvatar(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:if(e.isDefaultImage){a.next=11;break}return a.prev=1,a.next=4,regeneratorRuntime.awrap(r.a.ApiService.updateChild(n.child.id,{avatar:e.image}));case 4:0===(t=a.sent).code&&(n.notify({message:"Updated Successfully!",level:"success"}),n.child.avatar=t.data.child.avatar),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(1),console.error(a.t0);case 11:return n.showChangeAvatarModal=!1,a.abrupt("return",!0);case 13:case"end":return a.stop()}}),null,null,[[1,8]],Promise)},changeCover(){var e,t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.childCoverModalImage){n.next=13;break}return t.loading=!0,n.prev=2,n.next=5,regeneratorRuntime.awrap(r.a.ApiService.updateChild(t.child.id,{profile_cover:t.childCoverModalImage}));case 5:0===(e=n.sent).code&&(t.child.profile_cover=e.data.child.profile_cover),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),console.error(n.t0.message);case 12:t.loading=!1;case 13:return t.showCoverModal=!1,t.this.childCoverModalImage=null,n.abrupt("return",!0);case 16:case"end":return n.stop()}}),null,null,[[2,9]],Promise)},togleEditMode(){this.inEditMode=!this.inEditMode,this.inEditMode&&(this.showCoverModal=!0)},...Object(a.c)(["getUser","getConnections","notify"])},computed:{age(){const e=m()().diff(this.child.dob,"years"),t=m()().diff(this.child.dob,"months")%12;let n="a new boarn!";return!e&&!t||(n="",e&&(n+=e+" years"),e&&t&&(n+=" and"),t&&(n+=` ${t} months`),n+=" old"),""+n},...Object(a.d)(["user","connections"])}};t.a=p},"./resources/scripts/applications/home/views/child_profile.vue?vue&type=template&id=5e105c92&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container is-fullwidth"},[e.loading?n("div",{staticClass:"loading"},[n("Loading")],1):n("div",{},[n("Modal",{attrs:{title:"Change Cover",isActive:e.showCoverModal,acceptText:"Change",rejectText:"Cancel"},on:{accept:function(t){return e.changeCover()},close:function(t){e.showCoverModal=!1}}},[n("ProfileHeader",{attrs:{title:e.child.name,background:e.childCoverModalImage?e.childCoverModalImage:e.child.profile_cover}}),e._v(" "),n("file-select",{attrs:{accept:"image/*",lable:"Select Cover:"},model:{value:e.childCoverModalImage,callback:function(t){e.childCoverModalImage=t},expression:"childCoverModalImage"}})],1),e._v(" "),n("ChangeAvatarModal",{attrs:{isActive:e.showChangeAvatarModal,defaultImage:e.child.avatar},on:{onAvatarSelected:function(t){return e.updateAvatar(t)},onClose:function(t){e.showChangeAvatarModal=!1}}}),e._v(" "),n("AddConnectionModal",{attrs:{isActive:e.showAddConnectionModal,childName:e.child.name},on:{createNewConnection:function(t){return e.addConnection(t)},dismiss:function(t){e.showAddConnectionModal=!1}}}),e._v(" "),n("ProfileHeader",{attrs:{title:e.child.name,background:e.child.profile_cover}}),e._v(" "),n("div",{staticClass:"columns is-fullheight m-t-md"},[n("div",{staticClass:"column is-2"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-image p-md is-relative"},[n("figure",{class:"image is-1by1 is-light "+(e.isParent?"editable-image":""),on:{click:function(t){return e.onAvatarClicked()}}},[n("img",{staticClass:"is-rounded is-avatar",attrs:{src:e.child.avatar}})])]),e._v(" "),n("div",{staticClass:"card-content"},[n("div",{staticClass:"content"},[n("p",[e._v("Hi!")]),e._v(" "),n("p",[e._v("Im "+e._s(e.age))]),e._v(" "),n("br")])]),e._v(" "),e.isParent?n("footer",{staticClass:"card-footer"},[n("a",{staticClass:"card-footer-item",on:{click:function(t){return e.togleEditMode()}}},[e._v(e._s(e.inEditMode?"Cancel":"Edit"))]),e._v(" "),n("a",{staticClass:"card-footer-item is-danger",on:{click:function(t){return e.onDeleteClicked()}}},[e._v("Delete")])]):e._e()])]),e._v(" "),n("div",{staticClass:"column"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-content"},[n("nav",{staticClass:"level"},[n("div",{staticClass:"level-left"},[n("div",{staticClass:"level-item"},[n("h1",{staticClass:"title"},[e._v(e._s(e.child.name.split(" ")[0]+"'s Room"))])])])]),e._v(" "),n("nav",{staticClass:"level"},[e._m(0),e._v(" "),n("div",{staticClass:"level-right"},[e.isParent?n("div",{staticClass:"level-item"},[n("button",{staticClass:"button",on:{click:function(t){e.showAddConnectionModal=!0}}},[n("i",{staticClass:"fa fa-fw fa-plus"}),e._v(" Add Connection\n ")])]):e._e()])]),e._v(" "),n("div",{staticClass:"parents"},[n("div",{staticClass:"is-flex"},e._l(e.child.parents,(function(t){return n("AvatarBadge",{key:t.id,staticClass:"column",attrs:{img:t.avatar,text:t.name,isLink:e.user.id===t.id},on:{onClick:function(n){return e.goToUserProfile(t)}}})})),1)]),e._v(" "),e._m(1),e._v(" "),n("div",{staticClass:"columns"},e._l(e.child.connections,(function(t){return n("AvatarBadge",{key:t.id,staticClass:"column",attrs:{img:t.avatar,text:t.name,isLink:e.user.id===t.id},on:{onClick:function(n){return e.goToUserProfile(t)}}})})),1)])])])])],1)])},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"level-left"},[t("div",{staticClass:"level-item"},[t("h1",{staticClass:"subtitle"},[this._v("Parents")])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("nav",{staticClass:"level"},[t("div",{staticClass:"level-left"},[t("div",{staticClass:"level-item"},[t("h1",{staticClass:"subtitle"},[this._v("Connections")])])])])}];a._withStripped=!0},"./resources/scripts/applications/home/views/home.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/home.vue?vue&type=template&id=1b921a03&"),s=n("./resources/scripts/applications/home/views/home.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("1b921a03")?o.reload("1b921a03",i.options):o.createRecord("1b921a03",i.options),e.hot.accept("./resources/scripts/applications/home/views/home.vue?vue&type=template&id=1b921a03&",function(e){a=n("./resources/scripts/applications/home/views/home.vue?vue&type=template&id=1b921a03&"),o.rerender("1b921a03",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/home.vue",t.a=i.exports},"./resources/scripts/applications/home/views/home.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/vuex/dist/vuex.esm.js"),s=n("./resources/scripts/applications/home/components/Child_Card.vue"),r=n("./resources/scripts/applications/services/index.ts"),i=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),o=n("./resources/scripts/applications/home/components/ProfileHeader.vue"),d=n("./resources/scripts/applications/home/components/AddChildModal.vue"),l=n("./resources/scripts/applications/home/components/AddConnectionModal.vue"),u=n("./resources/scripts/applications/home/components/ConfigureNewCallModal.vue"),c=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue"),m=n("./resources/scripts/applications/home/components/AvatarBadge.vue"),_=n("./node_modules/moment/moment.js"),h=n.n(_),p=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),f={name:"Home",components:{Loading:i.a,ProfileHeader:o.a,Modal:p.a,FileSelect:c.a,AvatarBadge:m.a,AddConnectionModal:l.a,ConfigureNewCallModal:u.a,ChildCard:s.a,AddChildModal:d.a},beforeCreate(){},created(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!1,t.abrupt("return",!0);case 2:case"end":return t.stop()}}),null,null,null,Promise)},data:()=>({loading:!0,child:null,isParent:!1,inEditMode:!1,showCoverModal:!1,showCreateCallModal:!1,showAddChildModal:!1,showAddConnectionModal:!1,childCoverModalImage:null,addMenuOpen:!1}),methods:{onAddClicked(e){switch(e){case"child":this.showAddChildModal=!0;break;default:this.notify({message:`Add ${e} button clicked. Still not working`})}this.addMenuOpen=!1},onChangeAvatarClicked(){this.notify({message:"Upload avatar clicked. Still not working"})},onDeleteClicked(){this.notify({message:"Delete button clicked. Still not working"})},goChildProfile(e){this.$router.push({path:"/child/"+e.id})},onChildCreated(e){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t.loading=!0,n.next=3,regeneratorRuntime.awrap(t.getUser());case 3:t.loading=!1,t.showAddChildModal=!1,t.notify({message:`Woohoo! ${e.name} created!`,level:"success"}),t.goChildProfile(e);case 7:case"end":return n.stop()}}),null,null,null,Promise)},onCreateChildFailed(e){this.notify({message:"ERROR: "+e,level:"danger"}),this.showAddChildModal=!1},makeCall(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,regeneratorRuntime.awrap(r.a.ApiService.createCall(e));case 3:t=a.sent,n.notify({message:"Connecting..."}),n.$router.push({path:"/call/"+t.data.id}),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(0),console.error(a.t0);case 11:return a.abrupt("return",!0);case 12:case"end":return a.stop()}}),null,null,[[0,8]],Promise)},changeCover(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.childCoverModalImage){t.next=12;break}return e.loading=!0,t.prev=2,t.next=5,regeneratorRuntime.awrap(r.a.ApiService.updateChild(e.child.id,{profile_cover:e.childCoverModalImage}));case 5:e.child.profile_cover=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t.catch(2),console.error(t.t0);case 11:e.loading=!1;case 12:e.showCoverModal=!1,e.this.childCoverModalImage=null;case 14:case"end":return t.stop()}}),null,null,[[2,8]],Promise)},togleEditMode(){this.inEditMode=!this.inEditMode,this.inEditMode&&(this.showCoverModal=!0)},...Object(a.c)(["getUser","notify"])},computed:{age(){const e=h()().diff(this.child.dob,"years"),t=h()().diff(this.child.dob,"months")%12;let n="a new boarn!";return!e&&!t||(n="",e&&(n+=e+" years"),e&&t&&(n+=" and"),t&&(n+=` ${t} months`),n+=" old"),""+n},...Object(a.d)(["user"])}};t.a=f},"./resources/scripts/applications/home/views/home.vue?vue&type=template&id=1b921a03&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container is-fullwidth"},[e.loading?n("div",{staticClass:"loading"},[n("Loading")],1):n("div",{},[n("AddChildModal",{attrs:{isActive:e.showAddChildModal},on:{onFail:function(t){return e.onCreateChildFailed(t)},onCreated:function(t){return e.onChildCreated(t)},onClose:function(t){e.showAddChildModal=!1}}}),e._v(" "),n("Modal",{attrs:{title:"Change Cover",isActive:e.showCoverModal,acceptText:"Change",rejectText:"Cancel"},on:{accept:function(t){return e.changeCover()},close:function(t){e.showCoverModal=!1}}},[n("ProfileHeader",{attrs:{title:e.user.name,background:e.childCoverModalImage?e.childCoverModalImage:e.user.profile_cover}}),e._v(" "),n("file-select",{attrs:{accept:"image/*",lable:"Select Cover:"},model:{value:e.childCoverModalImage,callback:function(t){e.childCoverModalImage=t},expression:"childCoverModalImage"}})],1),e._v(" "),n("ConfigureNewCallModal",{attrs:{isActive:e.showCreateCallModal},on:{newCall:function(t){return e.makeCall(t)},dismiss:function(t){e.showCreateCallModal=!1}}}),e._v(" "),n("ProfileHeader",{attrs:{title:e.user.name,background:e.user.profile_cover}}),e._v(" "),n("div",{staticClass:"columns is-fullheight m-t-md"},[n("div",{staticClass:"column is-2"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-image p-md is-relative"},[n("figure",{staticClass:"image is-1by1 editable-image is-light",on:{click:function(t){return e.onChangeAvatarClicked()}}},[n("img",{staticClass:"is-rounded is-avatar",attrs:{src:e.user.avatar}})])]),e._v(" "),n("div",{staticClass:"card-content"},[e.user.connections.children.concat(e.user.connections.connections).length?n("div",[n("p",{staticClass:"card-header-title"},[e._v("Connections")]),e._v(" "),e._l(e.user.connections.children.concat(e.user.connections.connections),(function(e){return n("ChildCard",{key:e.id,attrs:{child:e}})})),e._v(" "),n("br")],2):n("div",[n("p",{staticClass:"card-header-title"},[e._v("No Connections yet...")])])])])]),e._v(" "),n("div",{staticClass:"column"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-content"},[n("nav",{staticClass:"level"},[n("div",{staticClass:"level-left"},[n("div",{staticClass:"level-item"},[n("h1",{staticClass:"title"},[e._v(e._s(e.user.name.split(" ")[0]+"'s Room"))])])]),e._v(" "),n("div",{staticClass:"level-right"},[n("div",{staticClass:"level-item"},[n("div",{class:"dropdown "+(e.addMenuOpen?"is-active":"")},[n("div",{staticClass:"dropdown-trigger"},[n("button",{staticClass:"button",attrs:{"aria-haspopup":"true","aria-controls":"dropdown-menu"},on:{click:function(t){e.addMenuOpen=!e.addMenuOpen}}},[n("span",[e._v("Add")]),e._v(" "),n("span",{staticClass:"icon is-small"},[n("i",{class:"fa fa-angle-"+(e.addMenuOpen?"up":"down"),attrs:{"aria-hidden":"true"}})])])]),e._v(" "),n("div",{staticClass:"dropdown-menu",attrs:{id:"dropdown-menu",role:"menu"}},[n("div",{staticClass:"dropdown-content"},[n("a",{staticClass:"dropdown-item",on:{click:function(t){return e.onAddClicked("book")}}},[n("i",{staticClass:"fa fa-fw fa-book"}),e._v(" Add a book\n ")]),e._v(" "),n("a",{staticClass:"dropdown-item",on:{click:function(t){return e.onAddClicked("slideshow")}}},[n("i",{staticClass:"fa fa-fw fa-photo"}),e._v(" New slideshow\n ")]),e._v(" "),n("a",{staticClass:"dropdown-item",on:{click:function(t){return e.onAddClicked("puzzle")}}},[n("i",{staticClass:"fa fa-fw fa-puzzle-piece"}),e._v(" Create a puzzle\n ")]),e._v(" "),n("hr",{staticClass:"dropdown-divider"}),e._v(" "),n("a",{staticClass:"dropdown-item",on:{click:function(t){return e.onAddClicked("child")}}},[n("i",{staticClass:"fa fa-fw fa-child"}),e._v(" Add a child\n ")])])])]),e._v(" "),n("button",{staticClass:"button is-success m-l-md",attrs:{disabled:!e.user.connections.children.length,title:e.user.connections.children.length?"Start a new call":"Only a parent of a child can start a call"},on:{click:function(t){e.showCreateCallModal=!0}}},[n("i",{staticClass:"fa fa-fw fa-phone"}),e._v(" Call\n ")])])])]),e._v(" "),n("div",{staticClass:"Books"},[e._m(0),e._v(" "),n("div",{staticClass:"is-flex m-b-md is-justify-centered"},e._l(e.user.books,(function(t){return n("div",{key:t.id,staticClass:"book-thumb m-l-md"},[n("div",{staticClass:"book-cover"},[n("figure",{staticClass:"image is-2by3 m-a"},[n("img",{attrs:{src:"/u/books/"+t.id+"/thumbnail"}})])]),e._v(" "),n("div",{staticClass:"book-text"},[n("div",[e._v(e._s(t.title))])])])})),0)])])])])])],1)])},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"subtitle"},[t("i",{staticClass:"fa fa-fw fa-book"}),this._v(" My Books\n ")])}];a._withStripped=!0},"./resources/scripts/applications/home/views/settings.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/settings.vue?vue&type=template&id=f4fa8d72&"),s=n("./resources/scripts/applications/home/views/settings.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("f4fa8d72")?o.reload("f4fa8d72",i.options):o.createRecord("f4fa8d72",i.options),e.hot.accept("./resources/scripts/applications/home/views/settings.vue?vue&type=template&id=f4fa8d72&",function(e){a=n("./resources/scripts/applications/home/views/settings.vue?vue&type=template&id=f4fa8d72&"),o.rerender("f4fa8d72",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/settings.vue",t.a=i.exports},"./resources/scripts/applications/home/views/settings.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/vuex/dist/vuex.esm.js"),s=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),r=n("./resources/scripts/applications/home/components/Child_Card.vue"),i=n("./resources/scripts/applications/services/index.ts"),o=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue"),d=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),l={components:{Modal:s.a,FileSelect:o.a,ChildCard:r.a,Loading:d.a},name:"Settings",beforeCreate:()=>regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),null,null,null,Promise),created(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.user){t.next=9;break}return t.prev=1,t.next=4,regeneratorRuntime.awrap(e.getUser());case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),console.error("Failed to fetch user");case 9:return e.loading=!1,t.abrupt("return",!0);case 11:case"end":return t.stop()}}),null,null,[[1,6]],Promise)},methods:{addChild(){var e,t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return n.childValidation.enableInput=!1,e={name:n.childValidation.name,dob:n.childValidation.dob,avatar:n.childValidation.avatar},console.log(e),a.next=5,regeneratorRuntime.awrap(i.a.ApiService.createChild(e.name,e.dob,e.avatar));case 5:return t=a.sent,e.avatar&&console.log(e.avatar.length),n.childValidation.name=null,n.childValidation.dob=null,n.childValidation.avatar=null,n.childValidation.enableInput=!0,n.enableChildModel=!1,a.next=14,regeneratorRuntime.awrap(n.getUser());case 14:return n.notify({message:`Yay!, ${t.name} was cretated`,level:"success"}),a.abrupt("return",!0);case 16:case"end":return a.stop()}}),null,null,null,Promise)},...Object(a.c)(["getUser","notify"])},computed:{...Object(a.d)(["user"])},data:()=>({loading:!0,childValidation:{enableInput:!0,name:null,dob:null,avatar:null},enableChildModel:!1})};t.a=l},"./resources/scripts/applications/home/views/settings.vue?vue&type=template&id=f4fa8d72&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"container is-fullwidth"},[this.loading?t("div",{staticClass:"loading"},[t("Loading")],1):t("div",{},[t("h1",{staticClass:"is-1"},[this._v("Under a complete remake.")]),this._v(" "),t("h2",{staticClass:"subtitle"},[this._v("Add a child from your homepage")])])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/ws/call.manager.ts":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var a=n("./node_modules/events/events.js");let s=null;class r{constructor(e){this.ws=e,this.emitter=new a.EventEmitter,this.peer={avatar:""},this.isHost=!1,this.books=[],this.currentActivity=null,this.inCall=!1,this.peerId=null,this.pc=null,this.remoteStream=new MediaStream}connectToCall(e,t,n){var a=this;return function(){var s,r;return regeneratorRuntime.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(!a.inCall){i.next=2;break}throw new Error("Already connected to call");case 2:return a.callId=n,a.userId=e,console.log("connecting to call"),i.next=7,regeneratorRuntime.awrap(a.getUserMedia(t));case 7:return a.signalingChannel=a.ws.subscribe("call:"+a.callId),s=a.signalingChannel,r=a,i.abrupt("return",new Promise((e,t)=>{s.on("close",r.close.bind(r)),s.on("call:start",r.onCallStart.bind(r)),s.on("call:standby",r.onCallStandby.bind(r)),s.on("wrtc:sdp:offer",r.onRemoteOffer.bind(r)),s.on("wrtc:sdp:answer",r.onRemoteAnswer.bind(r)),s.on("wrtc:ice",r.onRemoteIce.bind(r)),s.on("book:action:flip-page",r.onActionBookFlip.bind(r)),s.on("call:host:changed",r.onRemoteHostChanged.bind(r)),s.on("call:view:lobby",r.onRemoteViewLobby.bind(r)),s.on("call:view:book",r.onRemoteViewBook.bind(r)),s.on("error",t=>{console.error(t),e(!1)}),s.on("ready",()=>{console.log("in Ready"),r.inCall=!0,e(!0)})}));case 11:case"end":return i.stop()}}),null,null,null,Promise)}()}on(e,t){this.emitter.on(e,t)}removeListener(e,t){this.emitter.removeListener(e,t)}emit(e,t){this.emitter.emit(e,t)}send(e,t){console.log("Sending event: "+e),this.signalingChannel.emit(e,{userId:this.userId,peerId:this.peerId,...t})}onCallStart(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return console.log("onCallStart"),console.log(e),n.peerId=e.peerId,n.books=e.books,n.isHost=n.userId===e.hostId,n.pc=new RTCPeerConnection({iceServers:e.iceServers}),n.child=e.child,e.users.forEach(e=>{e.id===n.peerId&&(n.peer=e)}),n.emit(i.CALL_HOST_CHANGED,{hostId:e.hostId}),console.log("Created PeerConnection"),console.log("adding tracks to pc"),n.localStream.getTracks().forEach(e=>n.pc.addTrack(e,n.localStream)),n.setupPeerConnectionListeners(),a.next=15,regeneratorRuntime.awrap(n.pc.createOffer());case 15:return t=a.sent,a.next=18,regeneratorRuntime.awrap(n.pc.setLocalDescription(t));case 18:return console.log("Local description Set",t.sdp),n.send("wrtc:sdp:offer",{sdp:t}),a.abrupt("return",!0);case 21:case"end":return a.stop()}}),null,null,null,Promise)}onCallStandby(e){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("onCallStandby"),console.log(e),t.peerId=e.peerId,t.books=e.books,t.isHost=t.userId===e.hostId,t.pc=new RTCPeerConnection({iceServers:e.iceServers}),t.child=e.child,e.users.forEach(e=>{e.id===t.peerId&&(t.peer=e)}),t.emit(i.CALL_HOST_CHANGED,{hostId:e.hostId}),console.log("Created PeerConnection"),console.log("adding tracks to pc"),t.localStream.getTracks().forEach(e=>t.pc.addTrack(e,t.localStream)),t.setupPeerConnectionListeners(),n.abrupt("return",!0);case 14:case"end":return n.stop()}}),null,null,null,Promise)}selectBook(e,t){this.currentActivity=this.books[e],console.log("-------\x3e Selected Book ",e,"bookId:",this.currentActivity.id),t||this.send("call:view:book",{bookId:this.currentActivity.id})}backToLobby(){console.log("-------\x3e backToLobby"),this.emitter.removeAllListeners(i.ACTION_BOOK_FLIP),this.send("call:view:lobby",{})}setupPeerConnectionListeners(){this.pc.addEventListener("icecandidate",this.onLocalIce.bind(this)),this.pc.addEventListener("connectionstatechange",e=>{console.log("PC Connection state: "+this.pc.connectionState)}),this.pc.addEventListener("iceconnectionstatechange",e=>{console.log("iceconnectionstatechange"),console.log(this.pc.iceConnectionState)}),this.pc.addEventListener("track",e=>regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:console.log("On remote track!"),this.remoteStream.addTrack(e.track);case 2:case"end":return t.stop()}}),null,this,null,Promise)),this.pc.addEventListener("icegatheringstatechange",e=>{console.log("icegatheringstatechange",this.pc.iceGatheringState)})}onLocalIce(e){e.candidate&&(console.log("Sending candidate"),this.send("wrtc:ice",{ice:e.candidate}))}onRemoteOffer(e){var t,n,a=this;return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=new RTCSessionDescription(e.sdp),s.next=3,regeneratorRuntime.awrap(a.pc.setRemoteDescription(t));case 3:return console.log("Remote offer Set",t.sdp),s.next=6,regeneratorRuntime.awrap(a.pc.createAnswer());case 6:return n=s.sent,a.send("wrtc:sdp:answer",{sdp:n}),s.next=10,regeneratorRuntime.awrap(a.pc.setLocalDescription(n));case 10:return console.log("Local answer Set",n.sdp),s.abrupt("return",!0);case 12:case"end":return s.stop()}}),null,null,null,Promise)}onRemoteAnswer(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return t=new RTCSessionDescription(e.sdp),a.next=3,regeneratorRuntime.awrap(n.pc.setRemoteDescription(t));case 3:return console.log("Remote answer Set",t.sdp),a.abrupt("return",!0);case 5:case"end":return a.stop()}}),null,null,null,Promise)}onRemoteIce(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.ice,a.next=3,regeneratorRuntime.awrap(n.pc.addIceCandidate(t));case 3:return a.abrupt("return",!0);case 4:case"end":return a.stop()}}),null,null,null,Promise)}getUserMedia(e={video:!0,audio:!0}){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.localStream){n.next=2;break}return n.abrupt("return",t.localStream);case 2:return n.next=4,regeneratorRuntime.awrap(navigator.mediaDevices.getUserMedia(e));case 4:return t.localStream=n.sent,n.abrupt("return",t.localStream);case 6:case"end":return n.stop()}}),null,null,null,Promise)}getRemoteStream(){return this.remoteStream}onActionBookFlip(e){this.emit(i.ACTION_BOOK_FLIP,e)}changeHost(){this.send("call:host:changed",{})}onRemoteHostChanged(e){this.isHost=this.userId===e.hostId,this.emit(i.CALL_HOST_CHANGED,e)}onRemoteViewLobby(e){this.emitter.removeAllListeners(i.ACTION_BOOK_FLIP),this.emit(i.CALL_VIEW_LOBBY,null)}onRemoteViewBook(e){this.emit(i.CALL_VIEW_BOOK,e)}close(){this.inCall&&(console.log("Closing..."),this.emit(i.CLOSE,this.callId),this.signalingChannel&&this.signalingChannel.close(),this.signalingChannel=null,this.pc&&this.pc.close(),this.localStream&&this.localStream.getTracks().forEach(e=>e.stop()),this.localStream=null,this.remoteStream=null,this.emitter.removeAllListeners(),this.inCall=!1,s=null)}}var i;!function(e){e.CLOSE="CLOSE",e.REMOTE_STREAM="REMOTE_STREAM",e.ACTION_BOOK_FLIP="ACTION_BOOK_FLIP",e.CALL_HOST_CHANGED="CALL_HOST_CHANGED",e.CALL_VIEW_LOBBY="CALL_VIEW_LOBBY",e.CALL_VIEW_BOOK="CALL_VIEW_BOOK"}(i||(i={}))},"./resources/scripts/applications/home/ws/websocket.service.ts":function(e,t,n){"use strict";var a=n("./node_modules/@adonisjs/websocket-client/dist/Ws.browser.js"),s=n.n(a);let r=null;class i{constructor(e){this.ws=e,this.subscription=null}connect(){var e=this;return function(){var t,n;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return e.subscription=e.ws.subscribe("user_channel"),t=e.subscription,n=e,a.abrupt("return",new Promise((e,a)=>{t.on("error",()=>{e(!1)}),t.on("ready",()=>{e(!0)}),t.on("close",n.close)}));case 4:case"end":return a.stop()}}),null,null,null,Promise)}()}on(e,t){this.subscription&&this.subscription.on(e,t)}static getInstance(e){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=2;break}return t.abrupt("return",r);case 2:return r=new i(e),t.abrupt("return",r);case 4:case"end":return t.stop()}}),null,null,null,Promise)}close(){this.subscription.close(),r=null}}var o=n("./node_modules/events/events.js"),d=n("./resources/scripts/applications/home/ws/call.manager.ts");let l=null;var u;!function(e){e[e.NEW_CONNECTION=0]="NEW_CONNECTION",e[e.CONNECTION_ONLINE=1]="CONNECTION_ONLINE",e[e.CONNECTION_OFFLINE=2]="CONNECTION_OFFLINE",e[e.INCOMING_CALL=3]="INCOMING_CALL"}(u||(u={}));let c=(()=>{class e{constructor(e,t){this.ws=e,this.userChannelService=t,this.emitter=new o.EventEmitter,this.userChannelService.on("new:connection",this.onUserNewConnection.bind(this)),this.userChannelService.on("connection:online",this.onUserConnectionOnline.bind(this)),this.userChannelService.on("connection:offline",this.onUserConnectionOffline.bind(this)),this.userChannelService.on("call:incoming",this.onIncomingCall.bind(this)),this.callManager=new d.b(this)}on(e,t){this.emitter.on(e,t)}removeListener(e,t){this.emitter.removeListener(e,t)}subscribe(e){const t=this.ws.subscribe(e);return console.log(t),t}onIncomingCall(e){this.emitter.emit(u.INCOMING_CALL,e)}onUserNewConnection(e){this.emitter.emit(u.NEW_CONNECTION,e)}onUserConnectionOnline(e){this.emitter.emit(u.CONNECTION_ONLINE,e)}onUserConnectionOffline(e){this.emitter.emit(u.CONNECTION_OFFLINE,e)}static getInstance(){return new Promise((t,n)=>{if(l)return t(l);const a=s()("",{path:"connect"});a.connect(),a.on("open",()=>{var n,s;return regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(i.getInstance(a));case 2:return n=r.sent,r.next=5,regeneratorRuntime.awrap(n.connect());case 5:s=r.sent,console.log("Connected to user socket:",s),l=new e(a,n),t(l);case 9:case"end":return r.stop()}}),null,null,null,Promise)}),a.on("error",e=>{console.log(e),n(new Error("Failed to connect"))}),a.on("close",e=>{console.log("Socket Closed")})})}}return e.Events=u,e})();t.a=c},"./resources/scripts/applications/services/index.ts":function(e,t,n){"use strict";const a={ApiService:class{static getUser(e){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,regeneratorRuntime.awrap(fetch("/api/v1/client/user/"));case 3:return e.abrupt("return",e.sent.json());case 6:return e.prev=6,e.t0=e.catch(0),console.error("getUser ERROR: "+e.t0.message),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),null,null,[[0,6]],Promise)}static getAllUsers(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,regeneratorRuntime.awrap(fetch("/api/v1/admin/users"));case 3:return e.abrupt("return",e.sent.json());case 6:return e.prev=6,e.t0=e.catch(0),console.error("getAllUsers ERROR: "+e.t0.message),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),null,null,[[0,6]],Promise)}static getChild(e){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,regeneratorRuntime.awrap(fetch("/api/v1/client/child/"+e));case 3:return t.abrupt("return",t.sent.json());case 6:return t.prev=6,t.t0=t.catch(0),console.error("getChild ERROR: "+t.t0.message),t.abrupt("return",t.t0);case 10:case"end":return t.stop()}}),null,null,[[0,6]],Promise)}static createConnection(e){return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t={method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},n.prev=1,n.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/connections/create",t));case 4:return n.abrupt("return",n.sent.json());case 7:return n.prev=7,n.t0=n.catch(1),console.error("createConnection ERROR: "+n.t0.message),n.abrupt("return",n.t0);case 11:case"end":return n.stop()}}),null,null,[[1,7]],Promise);var t}static updateChild(e,t){return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:return n={method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"}},s.prev=1,s.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/child/"+e,n));case 4:return a=s.sent,console.log(a),s.abrupt("return",a.json());case 9:return s.prev=9,s.t0=s.catch(1),console.error("updateChildCover ERROR: "+s.t0.message),s.abrupt("return",!1);case 13:case"end":return s.stop()}}),null,null,[[1,9]],Promise);var n,a}static createCall(e){return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return t={method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},a.prev=1,a.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/call/create",t));case 4:return n=a.sent,a.abrupt("return",n.json());case 8:return a.prev=8,a.t0=a.catch(1),console.error("createCall ERROR: "+a.t0.message),a.abrupt("return",!1);case 12:case"end":return a.stop()}}),null,null,[[1,8]],Promise);var t,n}static createChild(e,t,n){return regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:return a={method:"POST",body:JSON.stringify({name:e,dob:t,avatar:n}),headers:{"Content-Type":"application/json"}},r.prev=1,r.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/child/",a));case 4:return s=r.sent,r.abrupt("return",s.json());case 8:return r.prev=8,r.t0=r.catch(1),console.error("createChild ERROR: "+r.t0.message),r.abrupt("return",!1);case 12:case"end":return r.stop()}}),null,null,[[1,8]],Promise);var a,s}}};t.a=a},"./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=template&id=46c93e93&"),s=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("46c93e93")?o.reload("46c93e93",i.options):o.createRecord("46c93e93",i.options),e.hot.accept("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=template&id=46c93e93&",function(e){a=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=template&id=46c93e93&"),o.rerender("46c93e93",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/FileSelect/FileSelect.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";const a=e=>new Promise((t,n)=>{const a=new FileReader;a.readAsDataURL(e),a.onload=()=>t(a.result),a.onerror=e=>n(e)});var s={props:["accept","lable"],data:()=>({filename:null}),created(){this.filename=null},methods:{handleFileChange(e){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=t,n.next=3,regeneratorRuntime.awrap(a(e.target.files[0]));case 3:n.t1=n.sent,n.t0.$emit.call(n.t0,"input",n.t1),t.filename=e.target.files[0];case 6:case"end":return n.stop()}}),null,null,null,Promise)}}};t.a=s},"./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=template&id=46c93e93&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v(e._s(e.lable))]),e._v(" "),n("div",{staticClass:"control"},[n("label",{staticClass:"button"},[e._v("\n Select File\n "),e._v(" "),n("input",{staticClass:"is-hidden",attrs:{type:"file",accept:e.accept},on:{change:e.handleFileChange}})]),e._v(" "),e.filename?n("span",[e._v(e._s(e.filename.name))]):e._e()])])},s=[];a._withStripped=!0},"./resources/scripts/applications/shared/components/Loading/Loading.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=template&id=c18e6166&"),s=n("./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("c18e6166")?o.reload("c18e6166",i.options):o.createRecord("c18e6166",i.options),e.hot.accept("./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=template&id=c18e6166&",function(e){a=n("./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=template&id=c18e6166&"),o.rerender("c18e6166",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/Loading/Loading.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";t.a={}},"./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=template&id=c18e6166&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement;this._self._c;return this._m(0)},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"wrapper is-fullheight"},[t("div",{staticClass:"css-loader"},[t("div",{staticClass:"dot"}),this._v(" "),t("div",{staticClass:"dot delay-1"}),this._v(" "),t("div",{staticClass:"dot delay-2"})])])}];a._withStripped=!0},"./resources/scripts/applications/shared/components/Modal/Modal.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&"),s=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("1625ddaf")?o.reload("1625ddaf",i.options):o.createRecord("1625ddaf",i.options),e.hot.accept("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&",function(e){a=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&"),o.rerender("1625ddaf",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/Modal/Modal.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a={props:["title","isActive","acceptText","rejectText"],data(){return{showTitle:!!this.title,showButtons:this.acceptText||this.rejectText}},methods:{close(){this.$emit("close")}}};t.a=a},"./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"fade"}},[e.isActive?n("div",{class:["modal",{"is-active":!!e.isActive}]},[n("div",{staticClass:"modal-background",on:{click:function(t){return e.close()}}}),e._v(" "),n("div",{staticClass:"modal-card"},[e.showTitle?n("header",{staticClass:"modal-card-head"},[n("p",{staticClass:"modal-card-title"},[e._v(e._s(e.title))]),e._v(" "),n("button",{staticClass:"delete",attrs:{"aria-label":"close"},on:{click:function(t){return e.close()}}})]):e._e(),e._v(" "),n("section",{staticClass:"modal-card-body"},[e._t("default")],2),e._v(" "),e.showButtons?n("footer",{staticClass:"modal-card-foot"},[e.acceptText?n("button",{staticClass:"button is-success",on:{click:function(t){return e.$emit("accept")}}},[e._v(e._s(e.acceptText))]):e._e(),e._v(" "),e.rejectText?n("button",{staticClass:"button",on:{click:function(t){return e.close()}}},[e._v(e._s(e.rejectText))]):e._e()]):e._e()])]):e._e()])},s=[];a._withStripped=!0},"./resources/scripts/applications/shared/components/Notification.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Notification.vue?vue&type=template&id=7fc5b0d2&"),s=n("./resources/scripts/applications/shared/components/Notification.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("7fc5b0d2")?o.reload("7fc5b0d2",i.options):o.createRecord("7fc5b0d2",i.options),e.hot.accept("./resources/scripts/applications/shared/components/Notification.vue?vue&type=template&id=7fc5b0d2&",function(e){a=n("./resources/scripts/applications/shared/components/Notification.vue?vue&type=template&id=7fc5b0d2&"),o.rerender("7fc5b0d2",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/Notification.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/Notification.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a={name:"Notification",props:["notification"],mounted(){this.ready=!0},data:()=>({ready:!1}),methods:{close(){this.$emit("onClose")}}};t.a=a},"./resources/scripts/applications/shared/components/Notification.vue?vue&type=template&id=7fc5b0d2&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"fade"}},[e.ready?n("div",{class:["notification","is-light","is-"+(e.notification.level||"info")]},[n("button",{staticClass:"delete",on:{click:function(t){return e.close()}}}),e._v("\n "+e._s(e.notification.message)+"\n ")]):e._e()])},s=[];a._withStripped=!0},"./resources/scripts/applications/shared/components/TopNavbar.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=template&id=ff71a66e&"),s=n("./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("ff71a66e")?o.reload("ff71a66e",i.options):o.createRecord("ff71a66e",i.options),e.hot.accept("./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=template&id=ff71a66e&",function(e){a=n("./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=template&id=ff71a66e&"),o.rerender("ff71a66e",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/TopNavbar.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/vuex/dist/vuex.esm.js"),s=n("./resources/scripts/applications/home/ws/call.manager.ts"),r={name:"TobNavbar",props:["ws"],components:{Modal:n("./resources/scripts/applications/shared/components/Modal/Modal.vue").a},watch:{ws(e,t){null!=e&&(this.callManager=this.ws.callManager)}},created:()=>regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),null,null,null,Promise),updated(){this.inCall||(this.subscribedToLobbyEvents=!1)},data:()=>({showConfirmEndCall:!1,showMenu:!1,subscribedToLobbyEvents:!1,callManager:null}),computed:{host(){return this.inCall?(this.subscribedToLobbyEvents||(console.log("TopNav subscribe to back_to_lobby"),this.subscribedToLobbyEvents=!0,this.callManager.on(s.a.CALL_VIEW_LOBBY,this.remoteBackToLobby.bind(this))),this.callManager.isHost?this.user:this.callManager.peer):null},...Object(a.d)(["user","inCall"])},methods:{onConfirmedEndCall(){this.showConfirmEndCall=!1,this.$router.replace({path:"/"})},changeHost(){this.callManager.changeHost()},backToLobby(e){this.callManager.backToLobby(),this.$router.replace({path:"/call/"+this.callManager.callId})},remoteBackToLobby(e){this.$router.replace({path:"/call/"+this.callManager.callId})},...Object(a.c)([])}};t.a=r},"./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=template&id=ff71a66e&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Modal",{attrs:{title:"Are You Sure?",isActive:e.showConfirmEndCall,acceptText:"End",rejectText:"Cancel"},on:{accept:function(t){return e.onConfirmedEndCall()},close:function(t){e.showConfirmEndCall=!1}}},[n("p",[e._v("End Call?")])]),e._v(" "),n("nav",{staticClass:"navbar is-light",attrs:{role:"navigation","aria-label":"main navigation"}},[n("div",{staticClass:"navbar-brand"},[e.inCall?e._e():n("router-link",{staticClass:"navbar-item",attrs:{to:"/",exact:""}},[n("strong",[e._v("Seepur")])]),e._v(" "),n("a",{staticClass:"navbar-burger burger",attrs:{id:"menu-button",role:"button","aria-label":"menu","aria-expanded":"false","data-target":"navbarBasicExample"},on:{click:function(t){e.showMenu=!e.showMenu}}},[n("span",{attrs:{"aria-hidden":"true"}}),e._v(" "),n("span",{attrs:{"aria-hidden":"true"}}),e._v(" "),n("span",{attrs:{"aria-hidden":"true"}})])],1),e._v(" "),n("div",{class:["navbar-menu",{"is-active":e.showMenu}],attrs:{id:"nav-menu"}},[n("div",{staticClass:"navbar-start"},[e.inCall?e._e():n("router-link",{staticClass:"navbar-item",attrs:{"active-class":"is-active",to:"/",exact:""}},[e._v("Home")]),e._v(" "),e.inCall?e._e():n("router-link",{staticClass:"navbar-item",attrs:{"active-class":"is-active",to:"/about",exact:""}},[e._v("About")]),e._v(" "),e.inCall?n("div",{staticClass:"navbar-item"},[n("div",{staticClass:"field is-grouped"},[n("p",{staticClass:"control"},[e.inCall?n("button",{staticClass:"button is-danger",on:{click:function(t){e.showConfirmEndCall=!0}}},[n("i",{staticClass:"fa fa-fw fa-times-circle-o"}),e._v(" End Call\n ")]):e._e()]),e._v(" "),n("p",{staticClass:"control"},[e.inCall&&"book"===e.$route.name?n("button",{staticClass:"button is-info",attrs:{append:"",replace:"",disabled:!e.callManager.isHost},on:{click:function(t){return e.backToLobby(!0)}}},[n("i",{staticClass:"fa fa-fw fa-arrow-circle-o-left"}),e._v(" Back\n ")]):e._e()])])]):e._e()],1),e._v(" "),n("div",{staticClass:"navbar-end"},[e.inCall?e._e():n("div",{staticClass:"navbar-item has-dropdown is-hoverable is-dark"},[n("a",{staticClass:"navbar-link"},[e._v(e._s(e.user.name))]),e._v(" "),n("div",{staticClass:"navbar-dropdown"},[n("router-link",{staticClass:"navbar-item",attrs:{"active-class":"is-active",to:"/settings",exact:""}},[e._v("Settings")]),e._v(" "),n("a",{staticClass:"navbar-item",attrs:{href:"/logout"}},[e._v("Logout")]),e._v(" "),e.user.is_admin?n("hr",{staticClass:"navbar-divider"}):e._e(),e._v(" "),e.user.is_admin?n("a",{staticClass:"navbar-item",attrs:{href:"/admin/"}},[e._v("Admin Settigns")]):e._e()],1)]),e._v(" "),e.inCall?n("div",{staticClass:"navbar-item"},[n("p",{staticClass:"control"},[n("button",{staticClass:"button",on:{click:function(t){return e.changeHost()}}},[n("i",{staticClass:"fa fa-fw fa-refresh"}),e._v(" Change Host\n ")])])]):e._e(),e._v(" "),e.inCall?n("div",{staticClass:"navbar-item"},[e._v("Current Host: "+e._s(e.host.name))]):e._e()])])])],1)},s=[];a._withStripped=!0}}); \ No newline at end of file + */var a,s,r,i,o=n("./node_modules/rematrix/dist/rematrix.es.js"),d=function(){function e(e){e?e.m?this.m=[].concat(e.m):this.m=[].concat(e):this.m=o.identity()}return e.prototype.clone=function(){return new e(this)},e.prototype.multiply=function(e){return this.m=o.multiply(this.m,e)},e.prototype.perspective=function(e){return this.multiply(o.perspective(e))},e.prototype.transformX=function(e){return(e*this.m[0]+this.m[12])/(e*this.m[3]+this.m[15])},e.prototype.translate=function(e,t){return this.multiply(o.translate(e,t))},e.prototype.translate3d=function(e,t,n){return this.multiply(o.translate3d(e,t,n))},e.prototype.rotateY=function(e){return this.multiply(o.rotateY(e))},e.prototype.toString=function(){return o.toString(this.m)},e}();s=function(e){return Math.pow(e,2)},i=function(e){return 1-s(1-e)},r=function(e){return e<.5?s(2*e)/2:.5+i(2*(e-.5))/2},a=/Trident/.test(navigator.userAgent);var l={props:{enabled:{type:Boolean,required:!0},pages:{type:Array,required:!0},pagesHiRes:{type:Array,default:function(){return[]}},flipDuration:{type:Number,default:1e3},zoomDuration:{type:Number,default:500},zooms:{type:Array,default:function(){return[1,2,4]}},perspective:{type:Number,default:2400},nPolygons:{type:Number,default:10},ambient:{type:Number,default:.4},gloss:{type:Number,default:.6},swipeMin:{type:Number,default:3},singlePage:{type:Boolean,default:!1},forwardDirection:{validator:function(e){return"right"===e||"left"===e},default:"right"},centering:{type:Boolean,default:!0},startPage:{type:Number,default:null}},data:function(){return{viewWidth:0,viewHeight:0,imageWidth:null,imageHeight:null,displayedPages:1,nImageLoad:0,nImageLoadTrigger:0,imageLoadCallback:null,currentPage:0,firstPage:0,secondPage:1,zoomIndex:0,zoom:1,zooming:!1,touchStartX:null,touchStartY:null,maxMove:0,activeCursor:null,hasTouchEvents:!1,hasPointerEvents:!1,minX:Infinity,maxX:-Infinity,preloadedImages:{},flip:{progress:0,direction:null,frontImage:null,backImage:null,auto:!1,opacity:1},currentCenterOffset:null,animatingCenter:!1,startScrollLeft:0,startScrollTop:0,scrollLeft:0,scrollTop:0}},computed:{canFlipLeft:function(){return"left"===this.forwardDirection?this.canGoForward:this.canGoBack},canFlipRight:function(){return"right"===this.forwardDirection?this.canGoForward:this.canGoBack},canZoomIn:function(){return!this.zooming&&this.zoomIndex0},numPages:function(){return null===this.pages[0]?this.pages.length-1:this.pages.length},page:function(){return null!==this.pages[0]?this.currentPage+1:Math.max(1,this.currentPage)},zooms_:function(){return this.zooms||[1]},canGoForward:function(){return!this.flip.direction&&this.currentPage=this.displayedPages&&!(1===this.displayedPages&&!this.pageUrl(this.firstPage-1))},leftPage:function(){return"right"===this.forwardDirection||1===this.displayedPages?this.firstPage:this.secondPage},rightPage:function(){return"left"===this.forwardDirection?this.firstPage:this.secondPage},showLeftPage:function(){return this.pageUrl(this.leftPage)},showRightPage:function(){return this.pageUrl(this.rightPage)&&2===this.displayedPages},cursor:function(){return this.activeCursor?this.activeCursor:a?"auto":this.canZoomIn?"zoom-in":this.canZoomOut?"zoom-out":"grab"},pageScale:function(){var e,t,n;return(e=(t=this.viewWidth/this.displayedPages/this.imageWidth)<(n=this.viewHeight/this.imageHeight)?t:n)<1?e:1},pageWidth:function(){return Math.round(this.imageWidth*this.pageScale)},pageHeight:function(){return Math.round(this.imageHeight*this.pageScale)},xMargin:function(){return(this.viewWidth-this.pageWidth*this.displayedPages)/2},yMargin:function(){return(this.viewHeight-this.pageHeight)/2},polygonWidth:function(){var e;return e=this.pageWidth/this.nPolygons,(e=Math.ceil(e+1/this.zoom))+"px"},polygonHeight:function(){return this.pageHeight+"px"},polygonBgSize:function(){return this.pageWidth+"px "+this.pageHeight+"px"},polygonArray:function(){return this.makePolygonArray("front").concat(this.makePolygonArray("back"))},boundingLeft:function(){var e;return 1===this.displayedPages?this.xMargin:(e=this.pageUrl(this.leftPage)?this.xMargin:this.viewWidth/2)this.maxX?e:this.maxX},centerOffset:function(){var e;return e=this.centering?Math.round(this.viewWidth/2-(this.boundingLeft+this.boundingRight)/2):0,null===this.currentCenterOffset&&null!==this.imageWidth&&(this.currentCenterOffset=e),e},centerOffsetSmoothed:function(){return Math.round(this.currentCenterOffset)},dragToScroll:function(){return!this.hasTouchEvents},scrollLeftMin:function(){var e;return(e=(this.boundingRight-this.boundingLeft)*this.zoom)this.viewHeight&&!this.singlePage?2:1,2===this.displayedPages&&(this.currentPage&=-2),this.fixFirstPage(),this.minX=Infinity,this.maxX=-Infinity,console.log("Flipbook resized")},fixFirstPage:function(){if(1===this.displayedPages&&0===this.currentPage&&this.pages.length&&!this.pageUrl(0))return this.currentPage++},pageUrl:function(e,t){var n;return void 0===t&&(t=!1),t&&this.zoom>1&&!this.zooming&&(n=this.pagesHiRes[e])?n:this.pages[e]||null},flipLeft:function(){if(this.canFlipLeft)return this.flipStart("left",!0)},flipRight:function(){if(this.canFlipRight)return this.flipStart("right",!0)},makePolygonArray:function(e){var t,n,a,s,r,i,o,l,u,c,m,_,h,p,f,v,y,g,M,L,b,w,k,Y,D,T,j;if(!this.flip.direction)return[];for(v=this.flip.progress,r=this.flip.direction,1===this.displayedPages&&r!==this.forwardDirection&&(v=1-v,r=this.forwardDirection),this.flip.opacity=1===this.displayedPages&&v>.7?1-(v-.7)/.3:1,t=(o="front"===e?this.flip.frontImage:this.flip.backImage)&&"url('"+o+"')",f=this.pageWidth/this.nPolygons,p=this.xMargin,m=!1,1===this.displayedPages?"right"===this.forwardDirection?"back"===e&&(m=!0,p=this.xMargin-this.pageWidth):"left"===r?"back"===e?p=this.pageWidth-this.xMargin:m=!0:"front"===e?p=this.pageWidth-this.xMargin:m=!0:"left"===r?"back"===e?p=this.viewWidth/2:m=!0:"front"===e?p=this.viewWidth/2:m=!0,(_=new d).translate(this.viewWidth/2),_.perspective(this.perspective),_.translate(-this.viewWidth/2),_.translate(p,this.yMargin),h=0,v>.5&&(h=2*-(v-.5)*180),"left"===r&&(h=-h),"back"===e&&(h+=180),h&&(m&&_.translate(this.pageWidth),_.rotateY(h),m&&_.translate(-this.pageWidth)),0===(k=v<.5?2*v*Math.PI:(1-2*(v-.5))*Math.PI)&&(k=1e-9),M=this.pageWidth/k,g=0,w=(a=k/this.nPolygons)/2/Math.PI*180,s=a/Math.PI*180,m&&(w=-k/Math.PI*180+s/2),"back"===e&&(w=-w,s=-s),this.minX=Infinity,this.maxX=-Infinity,b=[],i=l=0,L=this.nPolygons;0<=L?lL;i=0<=L?++l:--l)n=i/(this.nPolygons-1)*100+"% 0px",c=_.clone(),y=m?k-g:g,Y=Math.sin(y)*M,m&&(Y=this.pageWidth-Y),j=(1-Math.cos(y))*M,"back"===e&&(j=-j),c.translate3d(Y,0,j),c.rotateY(-w),D=c.transformX(0),T=c.transformX(f),this.maxX=Math.max(Math.max(D,T),this.maxX),this.minX=Math.min(Math.min(D,T),this.minX),u=this.computeLighting(h-w,s),g+=a,w+=s,b.push([e+i,t,u,n,c.toString(),Math.abs(Math.round(j))]);return b},computeLighting:function(e,t){var n,s,r,i,o;return r=[],i=[-.5,-.25,0,.25,.5],this.ambient<1&&(n=1-this.ambient,s=i.map((function(a){return(1-Math.cos((e-t*a)/180*Math.PI))*n})),r.push("linear-gradient(to right,\n rgba(0, 0, 0, "+s[0]+"),\n rgba(0, 0, 0, "+s[1]+") 25%,\n rgba(0, 0, 0, "+s[2]+") 50%,\n rgba(0, 0, 0, "+s[3]+") 75%,\n rgba(0, 0, 0, "+s[4]+"))")),this.gloss>0&&!a&&(30,200,o=i.map((function(n){return Math.max(Math.pow(Math.cos((e+30-t*n)/180*Math.PI),200),Math.pow(Math.cos((e-30-t*n)/180*Math.PI),200))})),r.push("linear-gradient(to right,\n rgba(255, 255, 255, "+o[0]*this.gloss+"),\n rgba(255, 255, 255, "+o[1]*this.gloss+") 25%,\n rgba(255, 255, 255, "+o[2]*this.gloss+") 50%,\n rgba(255, 255, 255, "+o[3]*this.gloss+") 75%,\n rgba(255, 255, 255, "+o[4]*this.gloss+"))")),r.join(",")},flipStart:function(e,t){var n=this;return e!==this.forwardDirection?1===this.displayedPages?(this.flip.frontImage=this.pageUrl(this.currentPage-1),this.flip.backImage=null):(this.flip.frontImage=this.pageUrl(this.firstPage),this.flip.backImage=this.pageUrl(this.currentPage-this.displayedPages+1)):1===this.displayedPages?(this.flip.frontImage=this.pageUrl(this.currentPage),this.flip.backImage=null):(this.flip.frontImage=this.pageUrl(this.secondPage),this.flip.backImage=this.pageUrl(this.currentPage+this.displayedPages)),this.flip.direction=e,this.flip.progress=0,requestAnimationFrame((function(){return requestAnimationFrame((function(){if(n.flip.direction!==n.forwardDirection?2===n.displayedPages&&(n.firstPage=n.currentPage-n.displayedPages):1===n.displayedPages?n.firstPage=n.currentPage+n.displayedPages:n.secondPage=n.currentPage+1+n.displayedPages,t)return n.flipAuto(!0)}))}))},flipAuto:function(e){var t,n,a,s,i=this;return s=Date.now(),n=this.flipDuration*(1-this.flip.progress),a=this.flip.progress,this.flip.auto=!0,this.$emit("flip-"+this.flip.direction+"-start",this.page),(t=function(){return requestAnimationFrame((function(){var o,d;return d=Date.now()-s,(o=a+d/n)>1&&(o=1),i.flip.progress=e?r(o):o,o<1?t():(i.flip.direction!==i.forwardDirection?i.currentPage-=i.displayedPages:i.currentPage+=i.displayedPages,i.$emit("flip-"+i.flip.direction+"-end",i.page),1===i.displayedPages&&i.flip.direction===i.forwardDirection?i.flip.direction=null:i.onImageLoad(1,(function(){return i.flip.direction=null})),i.flip.auto=!1)}))})()},flipRevert:function(){var e,t,n,a,s=this;return a=Date.now(),t=this.flipDuration*this.flip.progress,n=this.flip.progress,this.flip.auto=!0,(e=function(){return requestAnimationFrame((function(){var r,i;return i=Date.now()-a,(r=n-n*i/t)<0&&(r=0),s.flip.progress=r,r>0?e():(s.firstPage=s.currentPage,s.secondPage=s.currentPage+1,1===s.displayedPages&&s.flip.direction!==s.forwardDirection?s.flip.direction=null:s.onImageLoad(1,(function(){return s.flip.direction=null})),s.flip.auto=!1)}))})()},onImageLoad:function(e,t){return this.nImageLoad=0,this.nImageLoadTrigger=e,this.imageLoadCallback=t},didLoadImage:function(e){if(null===this.imageWidth&&(this.imageWidth=(e.target||e.path[0]).naturalWidth,this.imageHeight=(e.target||e.path[0]).naturalHeight),this.imageLoadCallback)return++this.nImageLoad>=this.nImageLoadTrigger?(this.imageLoadCallback(),this.imageLoadCallback=null):void 0},zoomIn:function(){if(this.canZoomIn)return this.zoomIndex+=1,this.zoomTo(this.zooms_[this.zoomIndex])},zoomOut:function(){if(this.canZoomOut)return this.zoomIndex-=1,this.zoomTo(this.zooms_[this.zoomIndex])},zoomTo:function(e,t,n){var s,i,o,d,l,u,c,m,_,h=this;if(l=this.zoom,i=e,_=this.$refs.viewport,u=_.scrollLeft,c=_.scrollTop,t||(t=_.clientWidth/2),n||(n=_.clientHeight/2),o=(t+u)/l*i-t,d=(n+c)/l*i-n,m=Date.now(),this.zooming=!0,this.$emit("zoom-start",e),(s=function(){return requestAnimationFrame((function(){var t,n;return((t=(n=Date.now()-m)/h.zoomDuration)>1||a)&&(t=1),t=r(t),h.zoom=l+(i-l)*t,h.scrollLeft=u+(o-u)*t,h.scrollTop=c+(d-c)*t,n1)return this.preloadImages(!0)},zoomAt:function(e){var t,n,a;return t=this.$refs.viewport.getBoundingClientRect(),n=e.pageX-t.left,a=e.pageY-t.top,this.zoomIndex=(this.zoomIndex+1)%this.zooms_.length,this.zoomTo(this.zooms_[this.zoomIndex],n,a)},swipeStart:function(e){},swipeMove:function(e){var t,n;if(null!=this.touchStartX)if(t=e.pageX-this.touchStartX,n=e.pageY-this.touchStartY,this.maxMove=Math.max(this.maxMove,Math.abs(t)),this.maxMove=Math.max(this.maxMove,Math.abs(n)),this.zoom>1)this.dragToScroll&&this.dragScroll(t,n);else if(!(Math.abs(n)>Math.abs(t)))return this.activeCursor="grabbing",t>0?(null===this.flip.direction&&this.canFlipLeft&&t>=this.swipeMin&&this.flipStart("left",!1),"left"===this.flip.direction&&(this.flip.progress=t/this.pageWidth,this.flip.progress>1&&(this.flip.progress=1))):(null===this.flip.direction&&this.canFlipRight&&t<=-this.swipeMin&&this.flipStart("right",!1),"right"===this.flip.direction&&(this.flip.progress=-t/this.pageWidth,this.flip.progress>1&&(this.flip.progress=1))),!0},swipeEnd:function(e){if(null!=this.touchStartX)return this.maxMove1/4?this.flipAuto(!1):this.flipRevert()),this.touchStartX=null,this.activeCursor=null},onTouchStart:function(e){return this.hasTouchEvents=!0,this.swipeStart(e.changedTouches[0])},onTouchMove:function(e){if(this.swipeMove(e.changedTouches[0])&&e.cancelable)return e.preventDefault()},onTouchEnd:function(e){return this.swipeEnd(e.changedTouches[0])},onPointerDown:function(e){if(this.hasPointerEvents=!0,!(this.hasTouchEvents||e.which&&1!==e.which)){this.swipeStart(e);try{return e.target.setPointerCapture(e.pointerId)}catch(e){}}},onPointerMove:function(e){if(!this.hasTouchEvents)return this.swipeMove(e)},onPointerUp:function(e){if(!this.hasTouchEvents){this.swipeEnd(e);try{return e.target.releasePointerCapture(e.pointerId)}catch(e){}}},onMouseDown:function(e){if(!(this.hasTouchEvents||this.hasPointerEvents||e.which&&1!==e.which))return this.swipeStart(e)},onMouseMove:function(e){if(!this.hasTouchEvents&&!this.hasPointerEvents)return this.swipeMove(e)},onMouseUp:function(e){if(!this.hasTouchEvents&&!this.hasPointerEvents)return this.swipeEnd(e)},dragScroll:function(e,t){return this.scrollLeft=this.startScrollLeft-e,this.scrollTop=this.startScrollTop-t},onWheel:function(e){if(this.zoom>1&&this.dragToScroll&&(this.scrollLeft=this.$refs.viewport.scrollLeft+e.deltaX,this.scrollTop=this.$refs.viewport.scrollTop+e.deltaY,e.cancelable))return e.preventDefault()},preloadImages:function(e){var t,n,a,s,r,i,o,d,l;for(void 0===e&&(e=!1),Object.keys(this.preloadedImages).length>=10&&(this.preloadedImages={}),t=a=r=this.currentPage-3,i=this.currentPage+3;r<=i?a<=i:a>=i;t=r<=i?++a:--a)(l=this.pageUrl(t))&&(this.preloadedImages[l]||((n=new Image).src=l,this.preloadedImages[l]=n));if(e)for(t=s=o=this.currentPage,d=this.currentPage+this.displayedPages;o<=d?sd;t=o<=d?++s:--s)(l=this.pagesHiRes[t])&&(this.preloadedImages[l]||((n=new Image).src=l,this.preloadedImages[l]=n))},goToPage:function(e){if(null!==e&&e!==this.page)return null===this.pages[0]?2===this.displayedPages&&1===e?this.currentPage=0:this.currentPage=e:this.currentPage=e-1,this.minX=Infinity,this.maxX=-Infinity,this.currentCenterOffset=this.centerOffset}},watch:{currentPage:function(){return this.firstPage=this.currentPage,this.secondPage=this.currentPage+1,this.preloadImages()},centerOffset:function(){var e,t=this;if(!this.animatingCenter)return e=function(){return requestAnimationFrame((function(){var n;return.1,n=t.centerOffset-t.currentCenterOffset,Math.abs(n)<.5?(t.currentCenterOffset=t.centerOffset,t.animatingCenter=!1):(t.currentCenterOffset+=.1*n,e())}))},this.animatingCenter=!0,e()},scrollLeftLimited:function(e){var t=this;return a?requestAnimationFrame((function(){return t.$refs.viewport.scrollLeft=e})):this.$refs.viewport.scrollLeft=e},scrollTopLimited:function(e){var t=this;return a?requestAnimationFrame((function(){return t.$refs.viewport.scrollTop=e})):this.$refs.viewport.scrollTop=e},pages:function(e,t){if(this.fixFirstPage(),!(null!=t?t.length:void 0)&&(null!=e?e.length:void 0)&&this.startPage>1&&null===e[0])return this.currentPage++},startPage:function(e){return this.goToPage(e)}}};var u,c="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());var m={};var _=function(e,t,n,a,s,r,i,o,d,l){"boolean"!=typeof i&&(d=o,o=i,i=!1);var u,c="function"==typeof n?n.options:n;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,s&&(c.functional=!0)),a&&(c._scopeId=a),r?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,d(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=u):t&&(u=i?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,o(e))}),u)if(c.functional){var m=c.render;c.render=function(e,t){return u.call(t),m(e,t)}}else{var _=c.beforeCreate;c.beforeCreate=_?[].concat(_,u):[u]}return n}({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._t("default",null,null,{canFlipLeft:e.canFlipLeft,canFlipRight:e.canFlipRight,canZoomIn:e.canZoomIn,canZoomOut:e.canZoomOut,page:e.page,numPages:e.numPages,flipLeft:e.flipLeft,flipRight:e.flipRight,zoomIn:e.zoomIn,zoomOut:e.zoomOut}),e._v(" "),n("div",{ref:"viewport",staticClass:"viewport",class:{zoom:e.zooming||e.zoom>1,"drag-to-scroll":e.dragToScroll},style:{cursor:"grabbing"==e.cursor?"grabbing":"auto"},on:{touchmove:e.onTouchMove,pointermove:e.onPointerMove,mousemove:e.onMouseMove,touchend:e.onTouchEnd,touchcancel:e.onTouchEnd,pointerup:e.onPointerUp,pointercancel:e.onPointerUp,mouseup:e.onMouseUp,wheel:e.onWheel}},[n("div",{staticClass:"book-container",style:{transform:"scale("+e.zoom+")"}},[n("div",{style:{transform:"translateX("+e.centerOffsetSmoothed+"px)"}},[e.showLeftPage?n("img",{staticClass:"page fixed",style:{width:e.pageWidth+"px",height:e.pageHeight+"px",left:e.xMargin+"px",top:e.yMargin+"px"},attrs:{src:e.pageUrl(e.leftPage,!0)},on:{load:function(t){return e.didLoadImage(t)}}}):e._e(),e._v(" "),e.showRightPage?n("img",{staticClass:"page fixed",style:{width:e.pageWidth+"px",height:e.pageHeight+"px",left:e.viewWidth/2+"px",top:e.yMargin+"px"},attrs:{src:e.pageUrl(e.rightPage,!0)},on:{load:function(t){return e.didLoadImage(t)}}}):e._e(),e._v(" "),n("div",{style:{opacity:e.flip.opacity}},e._l(e.polygonArray,(function(t){var a=t[0],s=t[1],r=t[2],i=t[3],o=t[4],d=t[5];return n("div",{key:a,staticClass:"polygon",class:{blank:!s},style:{backgroundImage:s,backgroundSize:e.polygonBgSize,backgroundPosition:i,width:e.polygonWidth,height:e.polygonHeight,transform:o,zIndex:d}},[n("div",{directives:[{name:"show",rawName:"v-show",value:r.length,expression:"lighting.length"}],staticClass:"lighting",style:{backgroundImage:r}})])})),0),e._v(" "),n("div",{staticClass:"bounding-box",style:{left:e.boundingLeft+"px",top:e.yMargin+"px",width:e.boundingRight-e.boundingLeft+"px",height:e.pageHeight+"px",cursor:e.cursor},on:{touchstart:e.onTouchStart,pointerdown:e.onPointerDown,mousedown:e.onMouseDown}})])])])],2)},staticRenderFns:[]},(function(e){e&&e("data-v-1b72a150_0",{source:".viewport[data-v-1b72a150]{-webkit-overflow-scrolling:touch;width:100%;height:100%}.viewport.zoom[data-v-1b72a150]{overflow:scroll}.viewport.zoom.drag-to-scroll[data-v-1b72a150]{overflow:hidden}.book-container[data-v-1b72a150]{position:relative;width:100%;height:100%;transform-origin:top left;-webkit-user-select:none;-ms-user-select:none;user-select:none}.click-to-flip[data-v-1b72a150]{position:absolute;width:50%;height:100%;top:0;-webkit-user-select:none;-ms-user-select:none;user-select:none}.click-to-flip.left[data-v-1b72a150]{left:0}.click-to-flip.right[data-v-1b72a150]{right:0}.bounding-box[data-v-1b72a150]{position:absolute;-webkit-user-select:none;-ms-user-select:none;user-select:none}.page[data-v-1b72a150]{position:absolute;-webkit-backface-visibility:hidden;backface-visibility:hidden;box-shadow:0 0 15px -4px rgba(0,0,0,.75)}.polygon[data-v-1b72a150]{position:absolute;top:0;left:0;background-repeat:no-repeat;-webkit-backface-visibility:hidden;backface-visibility:hidden;transform-origin:center left}.polygon.blank[data-v-1b72a150]{background-color:#ddd}.polygon .lighting[data-v-1b72a150]{width:100%;height:100%}",map:void 0,media:void 0})}),l,"data-v-1b72a150",!1,void 0,!1,(function(e){return function(e,t){return function(e,t){var n=c?t.media||"default":e,a=m[n]||(m[n]={ids:new Set,styles:[]});if(!a.ids.has(e)){a.ids.add(e);var s=t.source;if(t.map&&(s+="\n/*# sourceURL="+t.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),a.element||(a.element=document.createElement("style"),a.element.type="text/css",t.media&&a.element.setAttribute("media",t.media),void 0===u&&(u=document.head||document.getElementsByTagName("head")[0]),u.appendChild(a.element)),"styleSheet"in a.element)a.styles.push(s),a.element.styleSheet.cssText=a.styles.filter(Boolean).join("\n");else{var r=a.ids.size-1,i=document.createTextNode(s),o=a.element.childNodes;o[r]&&a.element.removeChild(o[r]),o.length?a.element.insertBefore(i,o[r]):a.element.appendChild(i)}}}(e,t)}}),void 0,void 0);e.exports=_},"./resources/scripts/applications/home/main.vue":function(e,t,n){"use strict";n.r(t);n("./node_modules/regenerator-runtime/runtime.js");var a=n("./node_modules/vue/dist/vue.esm.js"),s=n("./node_modules/vuex/dist/vuex.esm.js"),r=n("./resources/scripts/applications/home/app.vue"),i=n("./node_modules/vue-router/dist/vue-router.esm.js"),o=n("./resources/scripts/applications/home/views/home.vue"),d=n("./resources/scripts/applications/home/views/settings.vue"),l=n("./resources/scripts/applications/home/views/call.vue"),u=n("./resources/scripts/applications/home/views/child_profile.vue"),c=n("./resources/scripts/applications/home/views/call_views/Lobby.vue"),m=n("./resources/scripts/applications/home/views/call_views/Book.vue");a.default.use(i.a);const _=[{path:"/",component:o.a,name:"root"},{path:"/settings",component:d.a},{path:"/call/:id",component:l.a,children:[{path:"",component:c.a,name:"lobby"},{path:"book",component:m.a,name:"book"}]},{path:"/child/:id",component:u.a},{path:"*",redirect:{name:"root"}}];var h=new i.a({routes:_,mode:"history"}),p=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),f=Object(p.a)(h,void 0,void 0,!1,null,null,null),v=n("./node_modules/vue-hot-reload-api/dist/index.js");v.install(n("./node_modules/vue/dist/vue.esm.js")),v.compatible&&(e.hot.accept(),v.isRecorded("1c72787c")?v.reload("1c72787c",f.options):v.createRecord("1c72787c",f.options)),f.options.__file="resources/scripts/applications/home/router/router.vue";var y=f.exports,g=n("./resources/scripts/applications/services/index.ts");a.default.use(s.b);var M=new s.a({strict:!0,state:{inCall:!1,user:{name:"loading...",is_admin:!1,id:null,books:[]},notifications:[]},getters:{user:e=>e.user,notifications:e=>e.notifications,inCall:e=>e.inCall},mutations:{setUser(e,t){e.user=t},notify(e,t){const n=Math.ceil(1e3*Math.random());e.notifications.push({...t,id:n});const a=this.dispatch;setTimeout(()=>{a("dismissNotification",n)},5e3)},dismissNotification(e,t){e.notifications=e.notifications.filter(e=>e.id!=t)},callEnded(e){e.inCall=!1},callStarted(e){e.inCall=!0}},actions:{getUser(e,t){return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,regeneratorRuntime.awrap(g.a.ApiService.getUser(t));case 2:return n=a.sent,e.commit("setUser",n),a.abrupt("return",n);case 5:case"end":return a.stop()}}),null,null,null,Promise);var n},notify(e,t){e.commit("notify",t)},dismissNotification(e,t){e.commit("dismissNotification",t)},callEnded(e){e.commit("callEnded")},callStarted(e){e.commit("callStarted")}}});a.default.use(s.b);var L=new a.default({router:y,store:M,render:e=>e(r.a)}).$mount("#app"),b=Object(p.a)(L,void 0,void 0,!1,null,null,null),w=n("./node_modules/vue-hot-reload-api/dist/index.js");w.install(n("./node_modules/vue/dist/vue.esm.js")),w.compatible&&(e.hot.accept(),w.isRecorded("550f4f9c")?w.reload("550f4f9c",b.options):w.createRecord("550f4f9c",b.options)),b.options.__file="resources/scripts/applications/home/main.vue";t.default=b.exports},"./resources/scripts/applications/home/views/call.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/call.vue?vue&type=template&id=2e42c802&"),s=n("./resources/scripts/applications/home/views/call.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("2e42c802")?o.reload("2e42c802",i.options):o.createRecord("2e42c802",i.options),e.hot.accept("./resources/scripts/applications/home/views/call.vue?vue&type=template&id=2e42c802&",function(e){a=n("./resources/scripts/applications/home/views/call.vue?vue&type=template&id=2e42c802&"),o.rerender("2e42c802",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/call.vue",t.a=i.exports},"./resources/scripts/applications/home/views/call.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),s=n("./resources/scripts/applications/home/ws/call.manager.ts"),r=n("./resources/scripts/applications/home/ws/websocket.service.ts"),i=n("./resources/scripts/applications/home/views/call_views/VideoStrip.vue"),o=n("./node_modules/vuex/dist/vuex.esm.js"),d={components:{Loading:a.a,VideoStrip:i.a},name:"Call",created(){var e,t,n,a=this;return regeneratorRuntime.async((function(i){for(;;)switch(i.prev=i.next){case 0:return a.loading=!0,i.prev=1,e=Number(a.$route.params.id),i.next=5,regeneratorRuntime.awrap(r.a.getInstance());case 5:return t=i.sent,a.callManager=t.callManager,a.callManager.on(s.a.CLOSE,a.endCall),i.next=10,regeneratorRuntime.awrap(a.callManager.connectToCall(a.user.id,{video:!0,audio:!0},e));case 10:if(n=i.sent,a.callManager.on(s.a.CALL_HOST_CHANGED,a.onRemoteHostChanged),n){i.next=16;break}return a.notify({message:"Can find this call...",level:"danger"}),a.$router.push({path:"/"}),i.abrupt("return",!1);case 16:return a.callStarted(),i.next=19,regeneratorRuntime.awrap(a.callManager.getUserMedia());case 19:a.localStream=i.sent,a.remoteStream=a.callManager.getRemoteStream(),a.notify({message:"Connected!",level:"success"}),i.next=28;break;case 24:i.prev=24,i.t0=i.catch(1),console.error(i.t0),a.notify({message:i.t0.message,level:"danger"});case 28:a.loading=!1;case 29:case"end":return i.stop()}}),null,null,[[1,24]],Promise)},beforeDestroy(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("destroyed"),e.callManager.close(),e.callEnded(),t.abrupt("return",!0);case 4:case"end":return t.stop()}}),null,null,null,Promise)},methods:{setupCall:()=>regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),null,null,null,Promise),endCall(e){this.notify({message:`Call #${e} Ended`}),this.$router.replace({path:"/"})},onRemoteHostChanged(e){console.log("-----------"),console.log(e),this.peer=this.callManager.peer},changeHost(){this.callManager.changeHost()},...Object(o.c)(["notify","callStarted","callEnded"])},computed:{...Object(o.d)(["user","inCall"])},watch:{$route(e,t){const n=e.path.split("/").length,a=t.path.split("/").length;this.stateTransitionName=n({loading:!0,localStream:null,remoteStream:null,callManager:null,stateTransitionName:"slide-left"}),beforeCreate:()=>{}};t.a=d},"./resources/scripts/applications/home/views/call.vue?vue&type=template&id=2e42c802&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"is-fullwidth"},[this.loading?t("div",[t("Loading")],1):t("div",{staticClass:"columns"},[t("VideoStrip",{staticClass:"column is-3",attrs:{localStream:this.localStream,remoteStream:this.remoteStream,remotePoster:this.callManager.peer.avatar}}),this._v(" "),t("transition",{attrs:{name:this.stateTransitionName}},[t("router-view",{staticClass:"column"})],1)],1)])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/views/call_views/Book.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=template&id=39118a17&"),s=n("./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("39118a17")?o.reload("39118a17",i.options):o.createRecord("39118a17",i.options),e.hot.accept("./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=template&id=39118a17&",function(e){a=n("./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=template&id=39118a17&"),o.rerender("39118a17",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/call_views/Book.vue",t.a=i.exports},"./resources/scripts/applications/home/views/call_views/Book.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/components/flipbook/flipbook.cjs.js"),s=n.n(a),r=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),i=n("./resources/scripts/applications/home/ws/call.manager.ts"),o=n("./resources/scripts/applications/home/ws/websocket.service.ts"),d=n("./node_modules/vuex/dist/vuex.esm.js"),l={name:"CallBook",components:{Flipbook:s.a,Loading:r.a},created(){var e,t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,regeneratorRuntime.awrap(o.a.getInstance());case 2:return e=n.sent,t.callManager=e.callManager,t.callManager.on(i.a.ACTION_BOOK_FLIP,t.onRemoteFlip.bind(t)),t.loading=!1,n.abrupt("return",!0);case 7:case"end":return n.stop()}}),null,null,null,Promise)},destroyed(){this.callManager.removeListener(i.a.ACTION_BOOK_FLIP,this.onRemoteFlip.bind(this))},data:()=>({loading:!0,localStream:null,remoteStream:null,flipbookRef:!1,callManager:{isHost:!1}}),computed:{canFlipLeft(){return this.flipbookRef&&this.$refs.flipbook.canFlipLeft},canFlipRight(){return this.flipbookRef&&this.$refs.flipbook.canFlipRight},createPages(){const e=[null];for(let t=1;t({callManager:{books:[]}}),methods:{goToBook(e,t,n){(n||this.callManager.isHost)&&(this.callManager.selectBook(t,n),this.$router.replace({name:"book"}))},remoteBookSelected({bookId:e}){for(let t=0;t!!e||n.id===t.user.id,t.isParent),n.next=15;break;case 13:t.notify({message:"Sorry, Child not found!",level:"danger"}),t.$router.push({path:"/"});case 15:return n.abrupt("return",!0);case 16:case"end":return n.stop()}}),null,null,null,Promise)},data:()=>({loading:!0,child:null,isParent:!1,inEditMode:!1,showCoverModal:!1,showAddConnectionModal:!1,showChangeAvatarModal:!1,childCoverModalImage:null}),methods:{onDeleteClicked(){this.notify({message:"Delete button clicked. Still not working"})},goToUserProfile(e){this.user.id===e.id?this.$router.push({path:"/"}):this.$router.push({path:"/user/"+e.id})},addConnection(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,n.loading=!0,a.next=4,regeneratorRuntime.awrap(r.a.ApiService.createConnection({...e,child_id:n.child.id}));case 4:if(409!==(t=a.sent).code){a.next=11;break}return n.loading=!1,n.showAddConnectionModal=!1,a.abrupt("return",n.notify({message:t.message,level:"warning"}));case 11:if(0===t.code){a.next=15;break}return n.loading=!1,n.showAddConnectionModal=!1,a.abrupt("return",n.notify({message:t.message,level:"danger"}));case 15:return n.notify({message:`Awesome!\n${t.data.user.name} is connected to ${n.child.name}`,level:"success"}),t.data.is_parent?n.child.parents.push(t.data.user):n.child.connections.push(t.data.user),a.next=19,regeneratorRuntime.awrap(n.getUser());case 19:a.next=24;break;case 21:a.prev=21,a.t0=a.catch(0),console.error(a.t0);case 24:return n.loading=!1,n.showAddConnectionModal=!1,a.abrupt("return",!0);case 27:case"end":return a.stop()}}),null,null,[[0,21]],Promise)},onAvatarClicked(){this.isParent&&(this.showChangeAvatarModal=!0)},updateAvatar(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:if(e.isDefaultImage){a.next=11;break}return a.prev=1,a.next=4,regeneratorRuntime.awrap(r.a.ApiService.updateChild(n.child.id,{avatar:e.image}));case 4:0===(t=a.sent).code&&(n.notify({message:"Updated Successfully!",level:"success"}),n.child.avatar=t.data.child.avatar),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(1),console.error(a.t0);case 11:return n.showChangeAvatarModal=!1,a.abrupt("return",!0);case 13:case"end":return a.stop()}}),null,null,[[1,8]],Promise)},changeCover(){var e,t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.childCoverModalImage){n.next=13;break}return t.loading=!0,n.prev=2,n.next=5,regeneratorRuntime.awrap(r.a.ApiService.updateChild(t.child.id,{profile_cover:t.childCoverModalImage}));case 5:0===(e=n.sent).code&&(t.child.profile_cover=e.data.child.profile_cover),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),console.error(n.t0.message);case 12:t.loading=!1;case 13:return t.showCoverModal=!1,t.this.childCoverModalImage=null,n.abrupt("return",!0);case 16:case"end":return n.stop()}}),null,null,[[2,9]],Promise)},togleEditMode(){this.inEditMode=!this.inEditMode,this.inEditMode&&(this.showCoverModal=!0)},...Object(a.c)(["getUser","notify"])},computed:{age(){const e=m()().diff(this.child.dob,"years"),t=m()().diff(this.child.dob,"months")%12;let n="a new boarn!";return!e&&!t||(n="",e&&(n+=e+" years"),e&&t&&(n+=" and"),t&&(n+=` ${t} months`),n+=" old"),""+n},...Object(a.d)(["user"])}};t.a=p},"./resources/scripts/applications/home/views/child_profile.vue?vue&type=template&id=5e105c92&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container is-fullwidth"},[e.loading?n("div",{staticClass:"loading"},[n("Loading")],1):n("div",{},[n("Modal",{attrs:{title:"Change Cover",isActive:e.showCoverModal,acceptText:"Change",rejectText:"Cancel"},on:{accept:function(t){return e.changeCover()},close:function(t){e.showCoverModal=!1}}},[n("ProfileHeader",{attrs:{title:e.child.name,background:e.childCoverModalImage?e.childCoverModalImage:e.child.profile_cover}}),e._v(" "),n("file-select",{attrs:{accept:"image/*",lable:"Select Cover:"},model:{value:e.childCoverModalImage,callback:function(t){e.childCoverModalImage=t},expression:"childCoverModalImage"}})],1),e._v(" "),n("ChangeAvatarModal",{attrs:{isActive:e.showChangeAvatarModal,defaultImage:e.child.avatar},on:{onAvatarSelected:function(t){return e.updateAvatar(t)},onClose:function(t){e.showChangeAvatarModal=!1}}}),e._v(" "),n("AddConnectionModal",{attrs:{isActive:e.showAddConnectionModal,childName:e.child.name},on:{createNewConnection:function(t){return e.addConnection(t)},dismiss:function(t){e.showAddConnectionModal=!1}}}),e._v(" "),n("ProfileHeader",{attrs:{title:e.child.name,background:e.child.profile_cover}}),e._v(" "),n("div",{staticClass:"columns is-fullheight m-t-md"},[n("div",{staticClass:"column is-2"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-image p-md is-relative"},[n("figure",{class:"image is-1by1 is-light "+(e.isParent?"editable-image":""),on:{click:function(t){return e.onAvatarClicked()}}},[n("img",{staticClass:"is-rounded is-avatar",attrs:{src:e.child.avatar}})])]),e._v(" "),n("div",{staticClass:"card-content"},[n("div",{staticClass:"content"},[n("p",[e._v("Hi!")]),e._v(" "),n("p",[e._v("Im "+e._s(e.age))]),e._v(" "),n("br")])]),e._v(" "),e.isParent?n("footer",{staticClass:"card-footer"},[n("a",{staticClass:"card-footer-item",on:{click:function(t){return e.togleEditMode()}}},[e._v(e._s(e.inEditMode?"Cancel":"Edit"))]),e._v(" "),n("a",{staticClass:"card-footer-item is-danger",on:{click:function(t){return e.onDeleteClicked()}}},[e._v("Delete")])]):e._e()])]),e._v(" "),n("div",{staticClass:"column"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-content"},[n("nav",{staticClass:"level"},[n("div",{staticClass:"level-left"},[n("div",{staticClass:"level-item"},[n("h1",{staticClass:"title"},[e._v(e._s(e.child.name.split(" ")[0]+"'s Room"))])])])]),e._v(" "),n("nav",{staticClass:"level"},[e._m(0),e._v(" "),n("div",{staticClass:"level-right"},[e.isParent?n("div",{staticClass:"level-item"},[n("button",{staticClass:"button",on:{click:function(t){e.showAddConnectionModal=!0}}},[n("i",{staticClass:"fa fa-fw fa-plus"}),e._v(" Add Connection\n ")])]):e._e()])]),e._v(" "),n("div",{staticClass:"parents"},[n("div",{staticClass:"is-flex"},e._l(e.child.parents,(function(t){return n("AvatarBadge",{key:t.id,staticClass:"column",attrs:{img:t.avatar,text:t.name,isLink:e.user.id===t.id},on:{onClick:function(n){return e.goToUserProfile(t)}}})})),1)]),e._v(" "),e._m(1),e._v(" "),n("div",{staticClass:"columns"},e._l(e.child.connections,(function(t){return n("AvatarBadge",{key:t.id,staticClass:"column",attrs:{img:t.avatar,text:t.name,isLink:e.user.id===t.id},on:{onClick:function(n){return e.goToUserProfile(t)}}})})),1)])])])])],1)])},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"level-left"},[t("div",{staticClass:"level-item"},[t("h1",{staticClass:"subtitle"},[this._v("Parents")])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("nav",{staticClass:"level"},[t("div",{staticClass:"level-left"},[t("div",{staticClass:"level-item"},[t("h1",{staticClass:"subtitle"},[this._v("Connections")])])])])}];a._withStripped=!0},"./resources/scripts/applications/home/views/home.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/home.vue?vue&type=template&id=1b921a03&"),s=n("./resources/scripts/applications/home/views/home.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("1b921a03")?o.reload("1b921a03",i.options):o.createRecord("1b921a03",i.options),e.hot.accept("./resources/scripts/applications/home/views/home.vue?vue&type=template&id=1b921a03&",function(e){a=n("./resources/scripts/applications/home/views/home.vue?vue&type=template&id=1b921a03&"),o.rerender("1b921a03",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/home.vue",t.a=i.exports},"./resources/scripts/applications/home/views/home.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/vuex/dist/vuex.esm.js"),s=n("./resources/scripts/applications/home/components/Child_Card.vue"),r=n("./resources/scripts/applications/services/index.ts"),i=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),o=n("./resources/scripts/applications/home/components/ProfileHeader.vue"),d=n("./resources/scripts/applications/home/components/AddChildModal.vue"),l=n("./resources/scripts/applications/home/components/AddConnectionModal.vue"),u=n("./resources/scripts/applications/home/components/ConfigureNewCallModal.vue"),c=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue"),m=n("./resources/scripts/applications/home/components/AvatarBadge.vue"),_=n("./node_modules/moment/moment.js"),h=n.n(_),p=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),f=n("./resources/scripts/applications/home/components/ChangeAvatarModal.vue"),v={name:"Home",components:{Loading:i.a,ProfileHeader:o.a,Modal:p.a,FileSelect:c.a,AvatarBadge:m.a,AddConnectionModal:l.a,ConfigureNewCallModal:u.a,ChildCard:s.a,AddChildModal:d.a,ChangeAvatarModal:f.a},beforeCreate(){},created(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return e.loading=!1,t.abrupt("return",!0);case 2:case"end":return t.stop()}}),null,null,null,Promise)},data:()=>({loading:!0,child:null,isParent:!1,inEditMode:!1,showCoverModal:!1,showCreateCallModal:!1,showAddChildModal:!1,showAddConnectionModal:!1,childCoverModalImage:null,addMenuOpen:!1,showChangeAvatarModal:!1}),methods:{updateAvatar(e){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.isDefaultImage){n.next=14;break}return n.prev=1,n.next=4,regeneratorRuntime.awrap(r.a.ApiService.updateUser({avatar:e.image}));case 4:if(0!==n.sent.code){n.next=9;break}return n.next=8,regeneratorRuntime.awrap(t.getUser());case 8:t.notify({message:"Updated Successfully!",level:"success"});case 9:n.next=14;break;case 11:n.prev=11,n.t0=n.catch(1),console.error(n.t0);case 14:return t.showChangeAvatarModal=!1,n.abrupt("return",!0);case 16:case"end":return n.stop()}}),null,null,[[1,11]],Promise)},onAddClicked(e){switch(e){case"child":this.showAddChildModal=!0;break;default:this.notify({message:`Add ${e} button clicked. Still not working`})}this.addMenuOpen=!1},onDeleteClicked(){this.notify({message:"Delete button clicked. Still not working"})},goChildProfile(e){this.$router.push({path:"/child/"+e.id})},onChildCreated(e){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t.loading=!0,n.next=3,regeneratorRuntime.awrap(t.getUser());case 3:t.loading=!1,t.showAddChildModal=!1,t.notify({message:`Woohoo! ${e.name} created!`,level:"success"}),t.goChildProfile(e);case 7:case"end":return n.stop()}}),null,null,null,Promise)},onCreateChildFailed(e){this.notify({message:"ERROR: "+e,level:"danger"}),this.showAddChildModal=!1},makeCall(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,regeneratorRuntime.awrap(r.a.ApiService.createCall(e));case 3:t=a.sent,n.notify({message:"Connecting..."}),n.$router.push({path:"/call/"+t.data.id}),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(0),console.error(a.t0);case 11:return a.abrupt("return",!0);case 12:case"end":return a.stop()}}),null,null,[[0,8]],Promise)},changeCover(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.childCoverModalImage){t.next=12;break}return e.loading=!0,t.prev=2,t.next=5,regeneratorRuntime.awrap(r.a.ApiService.updateChild(e.child.id,{profile_cover:e.childCoverModalImage}));case 5:e.child.profile_cover=t.sent,t.next=11;break;case 8:t.prev=8,t.t0=t.catch(2),console.error(t.t0);case 11:e.loading=!1;case 12:e.showCoverModal=!1,e.this.childCoverModalImage=null;case 14:case"end":return t.stop()}}),null,null,[[2,8]],Promise)},togleEditMode(){this.inEditMode=!this.inEditMode,this.inEditMode&&(this.showCoverModal=!0)},...Object(a.c)(["getUser","notify"])},computed:{age(){const e=h()().diff(this.child.dob,"years"),t=h()().diff(this.child.dob,"months")%12;let n="a new boarn!";return!e&&!t||(n="",e&&(n+=e+" years"),e&&t&&(n+=" and"),t&&(n+=` ${t} months`),n+=" old"),""+n},...Object(a.d)(["user"])}};t.a=v},"./resources/scripts/applications/home/views/home.vue?vue&type=template&id=1b921a03&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"container is-fullwidth"},[e.loading?n("div",{staticClass:"loading"},[n("Loading")],1):n("div",{},[n("AddChildModal",{attrs:{isActive:e.showAddChildModal},on:{onFail:function(t){return e.onCreateChildFailed(t)},onCreated:function(t){return e.onChildCreated(t)},onClose:function(t){e.showAddChildModal=!1}}}),e._v(" "),n("ChangeAvatarModal",{attrs:{isActive:e.showChangeAvatarModal,defaultImage:e.user.avatar},on:{onAvatarSelected:function(t){return e.updateAvatar(t)},onClose:function(t){e.showChangeAvatarModal=!1}}}),e._v(" "),n("Modal",{attrs:{title:"Change Cover",isActive:e.showCoverModal,acceptText:"Change",rejectText:"Cancel"},on:{accept:function(t){return e.changeCover()},close:function(t){e.showCoverModal=!1}}},[n("ProfileHeader",{attrs:{title:e.user.name,background:e.childCoverModalImage?e.childCoverModalImage:e.user.profile_cover}}),e._v(" "),n("file-select",{attrs:{accept:"image/*",lable:"Select Cover:"},model:{value:e.childCoverModalImage,callback:function(t){e.childCoverModalImage=t},expression:"childCoverModalImage"}})],1),e._v(" "),n("ConfigureNewCallModal",{attrs:{isActive:e.showCreateCallModal},on:{newCall:function(t){return e.makeCall(t)},dismiss:function(t){e.showCreateCallModal=!1}}}),e._v(" "),n("ProfileHeader",{attrs:{title:e.user.name,background:e.user.profile_cover}}),e._v(" "),n("div",{staticClass:"columns is-fullheight m-t-md"},[n("div",{staticClass:"column is-2"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-image p-md is-relative"},[n("figure",{staticClass:"image is-1by1 editable-image is-light",on:{click:function(t){e.showChangeAvatarModal=!0}}},[n("img",{staticClass:"is-rounded is-avatar",attrs:{src:e.user.avatar}})])]),e._v(" "),n("div",{staticClass:"card-content"},[e.user.connections.children.concat(e.user.connections.connections).length?n("div",[n("p",{staticClass:"card-header-title"},[e._v("Connections")]),e._v(" "),e._l(e.user.connections.children.concat(e.user.connections.connections),(function(e){return n("ChildCard",{key:e.id,attrs:{child:e}})})),e._v(" "),n("br")],2):n("div",[n("p",{staticClass:"card-header-title"},[e._v("No Connections yet...")])])])])]),e._v(" "),n("div",{staticClass:"column"},[n("div",{staticClass:"card"},[n("div",{staticClass:"card-content"},[n("nav",{staticClass:"level"},[n("div",{staticClass:"level-left"},[n("div",{staticClass:"level-item"},[n("h1",{staticClass:"title"},[e._v(e._s(e.user.name.split(" ")[0]+"'s Room"))])])]),e._v(" "),n("div",{staticClass:"level-right"},[n("div",{staticClass:"level-item"},[n("div",{class:"dropdown "+(e.addMenuOpen?"is-active":"")},[n("div",{staticClass:"dropdown-trigger"},[n("button",{staticClass:"button",attrs:{"aria-haspopup":"true","aria-controls":"dropdown-menu"},on:{click:function(t){e.addMenuOpen=!e.addMenuOpen}}},[n("span",[e._v("Add")]),e._v(" "),n("span",{staticClass:"icon is-small"},[n("i",{class:"fa fa-angle-"+(e.addMenuOpen?"up":"down"),attrs:{"aria-hidden":"true"}})])])]),e._v(" "),n("div",{staticClass:"dropdown-menu",attrs:{id:"dropdown-menu",role:"menu"}},[n("div",{staticClass:"dropdown-content"},[n("a",{staticClass:"dropdown-item",on:{click:function(t){return e.onAddClicked("book")}}},[n("i",{staticClass:"fa fa-fw fa-book"}),e._v(" Add a book\n ")]),e._v(" "),n("a",{staticClass:"dropdown-item",on:{click:function(t){return e.onAddClicked("slideshow")}}},[n("i",{staticClass:"fa fa-fw fa-photo"}),e._v(" New slideshow\n ")]),e._v(" "),n("a",{staticClass:"dropdown-item",on:{click:function(t){return e.onAddClicked("puzzle")}}},[n("i",{staticClass:"fa fa-fw fa-puzzle-piece"}),e._v(" Create a puzzle\n ")]),e._v(" "),n("hr",{staticClass:"dropdown-divider"}),e._v(" "),n("a",{staticClass:"dropdown-item",on:{click:function(t){return e.onAddClicked("child")}}},[n("i",{staticClass:"fa fa-fw fa-child"}),e._v(" Add a child\n ")])])])]),e._v(" "),n("button",{staticClass:"button is-success m-l-md",attrs:{disabled:!e.user.connections.children.length,title:e.user.connections.children.length?"Start a new call":"Only a parent of a child can start a call"},on:{click:function(t){e.showCreateCallModal=!0}}},[n("i",{staticClass:"fa fa-fw fa-phone"}),e._v(" Call\n ")])])])]),e._v(" "),n("div",{staticClass:"Books"},[e._m(0),e._v(" "),n("div",{staticClass:"is-flex m-b-md is-justify-centered"},e._l(e.user.books,(function(t){return n("div",{key:t.id,staticClass:"book-thumb m-l-md"},[n("div",{staticClass:"book-cover"},[n("figure",{staticClass:"image is-2by3 m-a"},[n("img",{attrs:{src:"/u/books/"+t.id+"/thumbnail"}})])]),e._v(" "),n("div",{staticClass:"book-text"},[n("div",[e._v(e._s(t.title))])])])})),0)])])])])])],1)])},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("h2",{staticClass:"subtitle"},[t("i",{staticClass:"fa fa-fw fa-book"}),this._v(" My Books\n ")])}];a._withStripped=!0},"./resources/scripts/applications/home/views/settings.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/home/views/settings.vue?vue&type=template&id=f4fa8d72&"),s=n("./resources/scripts/applications/home/views/settings.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("f4fa8d72")?o.reload("f4fa8d72",i.options):o.createRecord("f4fa8d72",i.options),e.hot.accept("./resources/scripts/applications/home/views/settings.vue?vue&type=template&id=f4fa8d72&",function(e){a=n("./resources/scripts/applications/home/views/settings.vue?vue&type=template&id=f4fa8d72&"),o.rerender("f4fa8d72",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/home/views/settings.vue",t.a=i.exports},"./resources/scripts/applications/home/views/settings.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/vuex/dist/vuex.esm.js"),s=n("./resources/scripts/applications/shared/components/Modal/Modal.vue"),r=n("./resources/scripts/applications/home/components/Child_Card.vue"),i=n("./resources/scripts/applications/services/index.ts"),o=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue"),d=n("./resources/scripts/applications/shared/components/Loading/Loading.vue"),l={components:{Modal:s.a,FileSelect:o.a,ChildCard:r.a,Loading:d.a},name:"Settings",beforeCreate:()=>regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),null,null,null,Promise),created(){var e=this;return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.user){t.next=9;break}return t.prev=1,t.next=4,regeneratorRuntime.awrap(e.getUser());case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),console.error("Failed to fetch user");case 9:return e.loading=!1,t.abrupt("return",!0);case 11:case"end":return t.stop()}}),null,null,[[1,6]],Promise)},methods:{addChild(){var e,t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return n.childValidation.enableInput=!1,e={name:n.childValidation.name,dob:n.childValidation.dob,avatar:n.childValidation.avatar},console.log(e),a.next=5,regeneratorRuntime.awrap(i.a.ApiService.createChild(e.name,e.dob,e.avatar));case 5:return t=a.sent,e.avatar&&console.log(e.avatar.length),n.childValidation.name=null,n.childValidation.dob=null,n.childValidation.avatar=null,n.childValidation.enableInput=!0,n.enableChildModel=!1,a.next=14,regeneratorRuntime.awrap(n.getUser());case 14:return n.notify({message:`Yay!, ${t.name} was cretated`,level:"success"}),a.abrupt("return",!0);case 16:case"end":return a.stop()}}),null,null,null,Promise)},...Object(a.c)(["getUser","notify"])},computed:{...Object(a.d)(["user"])},data:()=>({loading:!0,childValidation:{enableInput:!0,name:null,dob:null,avatar:null},enableChildModel:!1})};t.a=l},"./resources/scripts/applications/home/views/settings.vue?vue&type=template&id=f4fa8d72&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"container is-fullwidth"},[this.loading?t("div",{staticClass:"loading"},[t("Loading")],1):t("div",{},[t("h1",{staticClass:"is-1"},[this._v("Under a complete remake.")]),this._v(" "),t("h2",{staticClass:"subtitle"},[this._v("Add a child from your homepage")])])])},s=[];a._withStripped=!0},"./resources/scripts/applications/home/ws/call.manager.ts":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var a=n("./node_modules/events/events.js");let s=null;class r{constructor(e){this.ws=e,this.emitter=new a.EventEmitter,this.peer={avatar:""},this.isHost=!1,this.books=[],this.currentActivity=null,this.inCall=!1,this.peerId=null,this.pc=null,this.remoteStream=new MediaStream}connectToCall(e,t,n){var a=this;return function(){var s,r;return regeneratorRuntime.async((function(i){for(;;)switch(i.prev=i.next){case 0:if(!a.inCall){i.next=2;break}throw new Error("Already connected to call");case 2:return a.callId=n,a.userId=e,console.log("connecting to call"),i.next=7,regeneratorRuntime.awrap(a.getUserMedia(t));case 7:return a.signalingChannel=a.ws.subscribe("call:"+a.callId),s=a.signalingChannel,r=a,i.abrupt("return",new Promise((e,t)=>{s.on("close",r.close.bind(r)),s.on("call:start",r.onCallStart.bind(r)),s.on("call:standby",r.onCallStandby.bind(r)),s.on("wrtc:sdp:offer",r.onRemoteOffer.bind(r)),s.on("wrtc:sdp:answer",r.onRemoteAnswer.bind(r)),s.on("wrtc:ice",r.onRemoteIce.bind(r)),s.on("book:action:flip-page",r.onActionBookFlip.bind(r)),s.on("call:host:changed",r.onRemoteHostChanged.bind(r)),s.on("call:view:lobby",r.onRemoteViewLobby.bind(r)),s.on("call:view:book",r.onRemoteViewBook.bind(r)),s.on("error",t=>{console.error(t),e(!1)}),s.on("ready",()=>{console.log("in Ready"),r.inCall=!0,e(!0)})}));case 11:case"end":return i.stop()}}),null,null,null,Promise)}()}on(e,t){this.emitter.on(e,t)}removeListener(e,t){this.emitter.removeListener(e,t)}emit(e,t){this.emitter.emit(e,t)}send(e,t){console.log("Sending event: "+e),this.signalingChannel.emit(e,{userId:this.userId,peerId:this.peerId,...t})}onCallStart(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return console.log("onCallStart"),console.log(e),n.peerId=e.peerId,n.books=e.books,n.isHost=n.userId===e.hostId,n.pc=new RTCPeerConnection({iceServers:e.iceServers}),n.child=e.child,e.users.forEach(e=>{e.id===n.peerId&&(n.peer=e)}),n.emit(i.CALL_HOST_CHANGED,{hostId:e.hostId}),console.log("Created PeerConnection"),console.log("adding tracks to pc"),n.localStream.getTracks().forEach(e=>n.pc.addTrack(e,n.localStream)),n.setupPeerConnectionListeners(),a.next=15,regeneratorRuntime.awrap(n.pc.createOffer());case 15:return t=a.sent,a.next=18,regeneratorRuntime.awrap(n.pc.setLocalDescription(t));case 18:return console.log("Local description Set",t.sdp),n.send("wrtc:sdp:offer",{sdp:t}),a.abrupt("return",!0);case 21:case"end":return a.stop()}}),null,null,null,Promise)}onCallStandby(e){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return console.log("onCallStandby"),console.log(e),t.peerId=e.peerId,t.books=e.books,t.isHost=t.userId===e.hostId,t.pc=new RTCPeerConnection({iceServers:e.iceServers}),t.child=e.child,e.users.forEach(e=>{e.id===t.peerId&&(t.peer=e)}),t.emit(i.CALL_HOST_CHANGED,{hostId:e.hostId}),console.log("Created PeerConnection"),console.log("adding tracks to pc"),t.localStream.getTracks().forEach(e=>t.pc.addTrack(e,t.localStream)),t.setupPeerConnectionListeners(),n.abrupt("return",!0);case 14:case"end":return n.stop()}}),null,null,null,Promise)}selectBook(e,t){this.currentActivity=this.books[e],console.log("-------\x3e Selected Book ",e,"bookId:",this.currentActivity.id),t||this.send("call:view:book",{bookId:this.currentActivity.id})}backToLobby(){console.log("-------\x3e backToLobby"),this.emitter.removeAllListeners(i.ACTION_BOOK_FLIP),this.send("call:view:lobby",{})}setupPeerConnectionListeners(){this.pc.addEventListener("icecandidate",this.onLocalIce.bind(this)),this.pc.addEventListener("connectionstatechange",e=>{console.log("PC Connection state: "+this.pc.connectionState)}),this.pc.addEventListener("iceconnectionstatechange",e=>{console.log("iceconnectionstatechange"),console.log(this.pc.iceConnectionState)}),this.pc.addEventListener("track",e=>regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:console.log("On remote track!"),this.remoteStream.addTrack(e.track);case 2:case"end":return t.stop()}}),null,this,null,Promise)),this.pc.addEventListener("icegatheringstatechange",e=>{console.log("icegatheringstatechange",this.pc.iceGatheringState)})}onLocalIce(e){e.candidate&&(console.log("Sending candidate"),this.send("wrtc:ice",{ice:e.candidate}))}onRemoteOffer(e){var t,n,a=this;return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:return t=new RTCSessionDescription(e.sdp),s.next=3,regeneratorRuntime.awrap(a.pc.setRemoteDescription(t));case 3:return console.log("Remote offer Set",t.sdp),s.next=6,regeneratorRuntime.awrap(a.pc.createAnswer());case 6:return n=s.sent,a.send("wrtc:sdp:answer",{sdp:n}),s.next=10,regeneratorRuntime.awrap(a.pc.setLocalDescription(n));case 10:return console.log("Local answer Set",n.sdp),s.abrupt("return",!0);case 12:case"end":return s.stop()}}),null,null,null,Promise)}onRemoteAnswer(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return t=new RTCSessionDescription(e.sdp),a.next=3,regeneratorRuntime.awrap(n.pc.setRemoteDescription(t));case 3:return console.log("Remote answer Set",t.sdp),a.abrupt("return",!0);case 5:case"end":return a.stop()}}),null,null,null,Promise)}onRemoteIce(e){var t,n=this;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return t=e.ice,a.next=3,regeneratorRuntime.awrap(n.pc.addIceCandidate(t));case 3:return a.abrupt("return",!0);case 4:case"end":return a.stop()}}),null,null,null,Promise)}getUserMedia(e={video:!0,audio:!0}){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:if(!t.localStream){n.next=2;break}return n.abrupt("return",t.localStream);case 2:return n.next=4,regeneratorRuntime.awrap(navigator.mediaDevices.getUserMedia(e));case 4:return t.localStream=n.sent,n.abrupt("return",t.localStream);case 6:case"end":return n.stop()}}),null,null,null,Promise)}getRemoteStream(){return this.remoteStream}onActionBookFlip(e){this.emit(i.ACTION_BOOK_FLIP,e)}changeHost(){this.send("call:host:changed",{})}onRemoteHostChanged(e){this.isHost=this.userId===e.hostId,this.emit(i.CALL_HOST_CHANGED,e)}onRemoteViewLobby(e){this.emitter.removeAllListeners(i.ACTION_BOOK_FLIP),this.emit(i.CALL_VIEW_LOBBY,null)}onRemoteViewBook(e){this.emit(i.CALL_VIEW_BOOK,e)}close(){this.inCall&&(console.log("Closing..."),this.emit(i.CLOSE,this.callId),this.signalingChannel&&this.signalingChannel.close(),this.signalingChannel=null,this.pc&&this.pc.close(),this.localStream&&this.localStream.getTracks().forEach(e=>e.stop()),this.localStream=null,this.remoteStream=null,this.emitter.removeAllListeners(),this.inCall=!1,s=null)}}var i;!function(e){e.CLOSE="CLOSE",e.REMOTE_STREAM="REMOTE_STREAM",e.ACTION_BOOK_FLIP="ACTION_BOOK_FLIP",e.CALL_HOST_CHANGED="CALL_HOST_CHANGED",e.CALL_VIEW_LOBBY="CALL_VIEW_LOBBY",e.CALL_VIEW_BOOK="CALL_VIEW_BOOK"}(i||(i={}))},"./resources/scripts/applications/home/ws/websocket.service.ts":function(e,t,n){"use strict";var a=n("./node_modules/@adonisjs/websocket-client/dist/Ws.browser.js"),s=n.n(a);let r=null;class i{constructor(e){this.ws=e,this.subscription=null}connect(){var e=this;return function(){var t,n;return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return e.subscription=e.ws.subscribe("user_channel"),t=e.subscription,n=e,a.abrupt("return",new Promise((e,a)=>{t.on("error",()=>{e(!1)}),t.on("ready",()=>{e(!0)}),t.on("close",n.close)}));case 4:case"end":return a.stop()}}),null,null,null,Promise)}()}on(e,t){this.subscription&&this.subscription.on(e,t)}static getInstance(e){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=2;break}return t.abrupt("return",r);case 2:return r=new i(e),t.abrupt("return",r);case 4:case"end":return t.stop()}}),null,null,null,Promise)}close(){this.subscription.close(),r=null}}var o=n("./node_modules/events/events.js"),d=n("./resources/scripts/applications/home/ws/call.manager.ts");let l=null;var u;!function(e){e[e.NEW_CONNECTION=0]="NEW_CONNECTION",e[e.CONNECTION_ONLINE=1]="CONNECTION_ONLINE",e[e.CONNECTION_OFFLINE=2]="CONNECTION_OFFLINE",e[e.INCOMING_CALL=3]="INCOMING_CALL"}(u||(u={}));let c=(()=>{class e{constructor(e,t){this.ws=e,this.userChannelService=t,this.emitter=new o.EventEmitter,this.userChannelService.on("new:connection",this.onUserNewConnection.bind(this)),this.userChannelService.on("connection:online",this.onUserConnectionOnline.bind(this)),this.userChannelService.on("connection:offline",this.onUserConnectionOffline.bind(this)),this.userChannelService.on("call:incoming",this.onIncomingCall.bind(this)),this.callManager=new d.b(this)}on(e,t){this.emitter.on(e,t)}removeListener(e,t){this.emitter.removeListener(e,t)}subscribe(e){const t=this.ws.subscribe(e);return console.log(t),t}onIncomingCall(e){this.emitter.emit(u.INCOMING_CALL,e)}onUserNewConnection(e){this.emitter.emit(u.NEW_CONNECTION,e)}onUserConnectionOnline(e){this.emitter.emit(u.CONNECTION_ONLINE,e)}onUserConnectionOffline(e){this.emitter.emit(u.CONNECTION_OFFLINE,e)}static getInstance(){return new Promise((t,n)=>{if(l)return t(l);const a=s()("",{path:"connect"});a.connect(),a.on("open",()=>{var n,s;return regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,regeneratorRuntime.awrap(i.getInstance(a));case 2:return n=r.sent,r.next=5,regeneratorRuntime.awrap(n.connect());case 5:s=r.sent,console.log("Connected to user socket:",s),l=new e(a,n),t(l);case 9:case"end":return r.stop()}}),null,null,null,Promise)}),a.on("error",e=>{console.log(e),n(new Error("Failed to connect"))}),a.on("close",e=>{console.log("Socket Closed")})})}}return e.Events=u,e})();t.a=c},"./resources/scripts/applications/services/index.ts":function(e,t,n){"use strict";const a={ApiService:class{static getUser(e){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,regeneratorRuntime.awrap(fetch("/api/v1/client/user/"));case 3:return e.abrupt("return",e.sent.json());case 6:return e.prev=6,e.t0=e.catch(0),console.error("getUser ERROR: "+e.t0.message),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),null,null,[[0,6]],Promise)}static getAllUsers(){return regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,regeneratorRuntime.awrap(fetch("/api/v1/admin/users"));case 3:return e.abrupt("return",e.sent.json());case 6:return e.prev=6,e.t0=e.catch(0),console.error("getAllUsers ERROR: "+e.t0.message),e.abrupt("return",e.t0);case 10:case"end":return e.stop()}}),null,null,[[0,6]],Promise)}static updateUser(e){return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t={method:"PUT",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},n.prev=1,n.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/user/",t));case 4:return n.abrupt("return",n.sent.json());case 7:return n.prev=7,n.t0=n.catch(1),console.error("updateUser ERROR: "+n.t0.message),n.abrupt("return",n.t0);case 11:case"end":return n.stop()}}),null,null,[[1,7]],Promise);var t}static getChild(e){return regeneratorRuntime.async((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,regeneratorRuntime.awrap(fetch("/api/v1/client/child/"+e));case 3:return t.abrupt("return",t.sent.json());case 6:return t.prev=6,t.t0=t.catch(0),console.error("getChild ERROR: "+t.t0.message),t.abrupt("return",t.t0);case 10:case"end":return t.stop()}}),null,null,[[0,6]],Promise)}static createConnection(e){return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return t={method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},n.prev=1,n.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/connections/create",t));case 4:return n.abrupt("return",n.sent.json());case 7:return n.prev=7,n.t0=n.catch(1),console.error("createConnection ERROR: "+n.t0.message),n.abrupt("return",n.t0);case 11:case"end":return n.stop()}}),null,null,[[1,7]],Promise);var t}static updateChild(e,t){return regeneratorRuntime.async((function(s){for(;;)switch(s.prev=s.next){case 0:return n={method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"}},s.prev=1,s.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/child/"+e,n));case 4:return a=s.sent,console.log(a),s.abrupt("return",a.json());case 9:return s.prev=9,s.t0=s.catch(1),console.error("updateChildCover ERROR: "+s.t0.message),s.abrupt("return",!1);case 13:case"end":return s.stop()}}),null,null,[[1,9]],Promise);var n,a}static createCall(e){return regeneratorRuntime.async((function(a){for(;;)switch(a.prev=a.next){case 0:return t={method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}},a.prev=1,a.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/call/create",t));case 4:return n=a.sent,a.abrupt("return",n.json());case 8:return a.prev=8,a.t0=a.catch(1),console.error("createCall ERROR: "+a.t0.message),a.abrupt("return",!1);case 12:case"end":return a.stop()}}),null,null,[[1,8]],Promise);var t,n}static createChild(e,t,n){return regeneratorRuntime.async((function(r){for(;;)switch(r.prev=r.next){case 0:return a={method:"POST",body:JSON.stringify({name:e,dob:t,avatar:n}),headers:{"Content-Type":"application/json"}},r.prev=1,r.next=4,regeneratorRuntime.awrap(fetch("/api/v1/client/child/",a));case 4:return s=r.sent,r.abrupt("return",s.json());case 8:return r.prev=8,r.t0=r.catch(1),console.error("createChild ERROR: "+r.t0.message),r.abrupt("return",!1);case 12:case"end":return r.stop()}}),null,null,[[1,8]],Promise);var a,s}}};t.a=a},"./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=template&id=46c93e93&"),s=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("46c93e93")?o.reload("46c93e93",i.options):o.createRecord("46c93e93",i.options),e.hot.accept("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=template&id=46c93e93&",function(e){a=n("./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=template&id=46c93e93&"),o.rerender("46c93e93",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/FileSelect/FileSelect.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";const a=e=>new Promise((t,n)=>{const a=new FileReader;a.readAsDataURL(e),a.onload=()=>t(a.result),a.onerror=e=>n(e)});var s={props:["accept","lable"],data:()=>({filename:null}),created(){this.filename=null},methods:{handleFileChange(e){var t=this;return regeneratorRuntime.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=t,n.next=3,regeneratorRuntime.awrap(a(e.target.files[0]));case 3:n.t1=n.sent,n.t0.$emit.call(n.t0,"input",n.t1),t.filename=e.target.files[0];case 6:case"end":return n.stop()}}),null,null,null,Promise)}}};t.a=s},"./resources/scripts/applications/shared/components/FileSelect/FileSelect.vue?vue&type=template&id=46c93e93&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"field"},[n("label",{staticClass:"label"},[e._v(e._s(e.lable))]),e._v(" "),n("div",{staticClass:"control"},[n("label",{staticClass:"button"},[e._v("\n Select File\n "),e._v(" "),n("input",{staticClass:"is-hidden",attrs:{type:"file",accept:e.accept},on:{change:e.handleFileChange}})]),e._v(" "),e.filename?n("span",[e._v(e._s(e.filename.name))]):e._e()])])},s=[];a._withStripped=!0},"./resources/scripts/applications/shared/components/Loading/Loading.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=template&id=c18e6166&"),s=n("./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("c18e6166")?o.reload("c18e6166",i.options):o.createRecord("c18e6166",i.options),e.hot.accept("./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=template&id=c18e6166&",function(e){a=n("./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=template&id=c18e6166&"),o.rerender("c18e6166",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/Loading/Loading.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";t.a={}},"./resources/scripts/applications/shared/components/Loading/Loading.vue?vue&type=template&id=c18e6166&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this.$createElement;this._self._c;return this._m(0)},s=[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"wrapper is-fullheight"},[t("div",{staticClass:"css-loader"},[t("div",{staticClass:"dot"}),this._v(" "),t("div",{staticClass:"dot delay-1"}),this._v(" "),t("div",{staticClass:"dot delay-2"})])])}];a._withStripped=!0},"./resources/scripts/applications/shared/components/Modal/Modal.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&"),s=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("1625ddaf")?o.reload("1625ddaf",i.options):o.createRecord("1625ddaf",i.options),e.hot.accept("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&",function(e){a=n("./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&"),o.rerender("1625ddaf",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/Modal/Modal.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a={props:["title","isActive","acceptText","rejectText"],data(){return{showTitle:!!this.title,showButtons:this.acceptText||this.rejectText}},methods:{close(){this.$emit("close")}}};t.a=a},"./resources/scripts/applications/shared/components/Modal/Modal.vue?vue&type=template&id=1625ddaf&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"fade"}},[e.isActive?n("div",{class:["modal",{"is-active":!!e.isActive}]},[n("div",{staticClass:"modal-background",on:{click:function(t){return e.close()}}}),e._v(" "),n("div",{staticClass:"modal-card"},[e.showTitle?n("header",{staticClass:"modal-card-head"},[n("p",{staticClass:"modal-card-title"},[e._v(e._s(e.title))]),e._v(" "),n("button",{staticClass:"delete",attrs:{"aria-label":"close"},on:{click:function(t){return e.close()}}})]):e._e(),e._v(" "),n("section",{staticClass:"modal-card-body"},[e._t("default")],2),e._v(" "),e.showButtons?n("footer",{staticClass:"modal-card-foot"},[e.acceptText?n("button",{staticClass:"button is-success",on:{click:function(t){return e.$emit("accept")}}},[e._v(e._s(e.acceptText))]):e._e(),e._v(" "),e.rejectText?n("button",{staticClass:"button",on:{click:function(t){return e.close()}}},[e._v(e._s(e.rejectText))]):e._e()]):e._e()])]):e._e()])},s=[];a._withStripped=!0},"./resources/scripts/applications/shared/components/Notification.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/Notification.vue?vue&type=template&id=7fc5b0d2&"),s=n("./resources/scripts/applications/shared/components/Notification.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("7fc5b0d2")?o.reload("7fc5b0d2",i.options):o.createRecord("7fc5b0d2",i.options),e.hot.accept("./resources/scripts/applications/shared/components/Notification.vue?vue&type=template&id=7fc5b0d2&",function(e){a=n("./resources/scripts/applications/shared/components/Notification.vue?vue&type=template&id=7fc5b0d2&"),o.rerender("7fc5b0d2",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/Notification.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/Notification.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a={name:"Notification",props:["notification"],mounted(){this.ready=!0},data:()=>({ready:!1}),methods:{close(){this.$emit("onClose")}}};t.a=a},"./resources/scripts/applications/shared/components/Notification.vue?vue&type=template&id=7fc5b0d2&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"fade"}},[e.ready?n("div",{class:["notification","is-light","is-"+(e.notification.level||"info")]},[n("button",{staticClass:"delete",on:{click:function(t){return e.close()}}}),e._v("\n "+e._s(e.notification.message)+"\n ")]):e._e()])},s=[];a._withStripped=!0},"./resources/scripts/applications/shared/components/TopNavbar.vue":function(e,t,n){"use strict";var a=n("./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=template&id=ff71a66e&"),s=n("./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=script&lang=ts&"),r=n("./node_modules/vue-loader/lib/runtime/componentNormalizer.js"),i=Object(r.a)(s.a,a.render,a.staticRenderFns,!1,null,null,null),o=n("./node_modules/vue-hot-reload-api/dist/index.js");o.install(n("./node_modules/vue/dist/vue.esm.js")),o.compatible&&(e.hot.accept(),o.isRecorded("ff71a66e")?o.reload("ff71a66e",i.options):o.createRecord("ff71a66e",i.options),e.hot.accept("./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=template&id=ff71a66e&",function(e){a=n("./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=template&id=ff71a66e&"),o.rerender("ff71a66e",{render:a.render,staticRenderFns:a.staticRenderFns})}.bind(this))),i.options.__file="resources/scripts/applications/shared/components/TopNavbar.vue",t.a=i.exports},"./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=script&lang=ts&":function(e,t,n){"use strict";var a=n("./node_modules/vuex/dist/vuex.esm.js"),s=n("./resources/scripts/applications/home/ws/call.manager.ts"),r={name:"TobNavbar",props:["ws"],components:{Modal:n("./resources/scripts/applications/shared/components/Modal/Modal.vue").a},watch:{ws(e,t){null!=e&&(this.callManager=this.ws.callManager)}},created:()=>regeneratorRuntime.async((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),null,null,null,Promise),updated(){this.inCall||(this.subscribedToLobbyEvents=!1)},data:()=>({showConfirmEndCall:!1,showMenu:!1,subscribedToLobbyEvents:!1,callManager:null}),computed:{host(){return this.inCall?(this.subscribedToLobbyEvents||(console.log("TopNav subscribe to back_to_lobby"),this.subscribedToLobbyEvents=!0,this.callManager.on(s.a.CALL_VIEW_LOBBY,this.remoteBackToLobby.bind(this))),this.callManager.isHost?this.user:this.callManager.peer):null},...Object(a.d)(["user","inCall"])},methods:{onConfirmedEndCall(){this.showConfirmEndCall=!1,this.$router.replace({path:"/"})},changeHost(){this.callManager.changeHost()},backToLobby(e){this.callManager.backToLobby(),this.$router.replace({path:"/call/"+this.callManager.callId})},remoteBackToLobby(e){this.$router.replace({path:"/call/"+this.callManager.callId})},...Object(a.c)([])}};t.a=r},"./resources/scripts/applications/shared/components/TopNavbar.vue?vue&type=template&id=ff71a66e&":function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return a})),n.d(t,"staticRenderFns",(function(){return s}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Modal",{attrs:{title:"Are You Sure?",isActive:e.showConfirmEndCall,acceptText:"End",rejectText:"Cancel"},on:{accept:function(t){return e.onConfirmedEndCall()},close:function(t){e.showConfirmEndCall=!1}}},[n("p",[e._v("End Call?")])]),e._v(" "),n("nav",{staticClass:"navbar is-light",attrs:{role:"navigation","aria-label":"main navigation"}},[n("div",{staticClass:"navbar-brand"},[e.inCall?e._e():n("router-link",{staticClass:"navbar-item",attrs:{to:"/",exact:""}},[n("strong",[e._v("Seepur")])]),e._v(" "),n("a",{staticClass:"navbar-burger burger",attrs:{id:"menu-button",role:"button","aria-label":"menu","aria-expanded":"false","data-target":"navbarBasicExample"},on:{click:function(t){e.showMenu=!e.showMenu}}},[n("span",{attrs:{"aria-hidden":"true"}}),e._v(" "),n("span",{attrs:{"aria-hidden":"true"}}),e._v(" "),n("span",{attrs:{"aria-hidden":"true"}})])],1),e._v(" "),n("div",{class:["navbar-menu",{"is-active":e.showMenu}],attrs:{id:"nav-menu"}},[n("div",{staticClass:"navbar-start"},[e.inCall?e._e():n("router-link",{staticClass:"navbar-item",attrs:{"active-class":"is-active",to:"/",exact:""}},[e._v("Home")]),e._v(" "),e.inCall?e._e():n("router-link",{staticClass:"navbar-item",attrs:{"active-class":"is-active",to:"/about",exact:""}},[e._v("About")]),e._v(" "),e.inCall?n("div",{staticClass:"navbar-item"},[n("div",{staticClass:"field is-grouped"},[n("p",{staticClass:"control"},[e.inCall?n("button",{staticClass:"button is-danger",on:{click:function(t){e.showConfirmEndCall=!0}}},[n("i",{staticClass:"fa fa-fw fa-times-circle-o"}),e._v(" End Call\n ")]):e._e()]),e._v(" "),n("p",{staticClass:"control"},[e.inCall&&"book"===e.$route.name?n("button",{staticClass:"button is-info",attrs:{append:"",replace:"",disabled:!e.callManager.isHost},on:{click:function(t){return e.backToLobby(!0)}}},[n("i",{staticClass:"fa fa-fw fa-arrow-circle-o-left"}),e._v(" Back\n ")]):e._e()])])]):e._e()],1),e._v(" "),n("div",{staticClass:"navbar-end"},[e.inCall?e._e():n("div",{staticClass:"navbar-item has-dropdown is-hoverable is-dark"},[n("a",{staticClass:"navbar-link"},[e._v(e._s(e.user.name))]),e._v(" "),n("div",{staticClass:"navbar-dropdown"},[n("router-link",{staticClass:"navbar-item",attrs:{"active-class":"is-active",to:"/settings",exact:""}},[e._v("Settings")]),e._v(" "),n("a",{staticClass:"navbar-item",attrs:{href:"/logout"}},[e._v("Logout")]),e._v(" "),e.user.is_admin?n("hr",{staticClass:"navbar-divider"}):e._e(),e._v(" "),e.user.is_admin?n("a",{staticClass:"navbar-item",attrs:{href:"/admin/"}},[e._v("Admin Settigns")]):e._e()],1)]),e._v(" "),e.inCall?n("div",{staticClass:"navbar-item"},[n("p",{staticClass:"control"},[n("button",{staticClass:"button",on:{click:function(t){return e.changeHost()}}},[n("i",{staticClass:"fa fa-fw fa-refresh"}),e._v(" Change Host\n ")])])]):e._e(),e._v(" "),e.inCall?n("div",{staticClass:"navbar-item"},[e._v("Current Host: "+e._s(e.host.name))]):e._e()])])])],1)},s=[];a._withStripped=!0}}); \ No newline at end of file diff --git a/public/scripts/components/navbar/app.bundle.js b/public/scripts/components/navbar/app.bundle.js index 2b91086..a726e91 100644 --- a/public/scripts/components/navbar/app.bundle.js +++ b/public/scripts/components/navbar/app.bundle.js @@ -1 +1 @@ -!function(e){var n=window.webpackHotUpdate;window.webpackHotUpdate=function(e,r){!function(e,n){if(!_[e]||!O[e])return;for(var r in O[e]=!1,n)Object.prototype.hasOwnProperty.call(n,r)&&(h[r]=n[r]);0==--m&&0===b&&E()}(e,r),n&&n(e,r)};var r,t=!0,o="8c4d45210225619fc987",c={},i=[],d=[];function a(e){var n=H[e];if(!n)return k;var t=function(t){return n.hot.active?(H[t]?-1===H[t].parents.indexOf(e)&&H[t].parents.push(e):(i=[e],r=t),-1===n.children.indexOf(t)&&n.children.push(t)):(console.warn("[HMR] unexpected require("+t+") from disposed module "+e),i=[]),k(t)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return k[e]},set:function(n){k[e]=n}}};for(var c in k)Object.prototype.hasOwnProperty.call(k,c)&&"e"!==c&&"t"!==c&&Object.defineProperty(t,c,o(c));return t.e=function(e){return"ready"===l&&p("prepare"),b++,k.e(e).then(n,(function(e){throw n(),e}));function n(){b--,"prepare"===l&&(w[e]||D(e),0===b&&0===m&&E())}},t.t=function(e,n){return 1&n&&(e=t(e)),k.t(e,-2&n)},t}function s(n){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==n,active:!0,accept:function(e,n){if(void 0===e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var r=0;r=0&&t._disposeHandlers.splice(n,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":(h={})[n]=e[n],p("ready");break;case"ready":x(n);break;case"prepare":case"check":case"dispose":case"apply":(y=y||[]).push(n)}},check:j,apply:I,status:function(e){if(!e)return l;u.push(e)},addStatusHandler:function(e){u.push(e)},removeStatusHandler:function(e){var n=u.indexOf(e);n>=0&&u.splice(n,1)},data:c[n]};return r=void 0,t}var u=[],l="idle";function p(e){l=e;for(var n=0;n0;){var o=t.pop(),c=o.id,i=o.chain;if((u=H[c])&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:i,moduleId:c};if(u.hot._main)return{type:"unaccepted",chain:i,moduleId:c};for(var d=0;d ")),E.type){case"self-declined":t.onDeclined&&t.onDeclined(E),t.ignoreDeclined||(I=new Error("Aborted because of self decline: "+E.moduleId+A));break;case"declined":t.onDeclined&&t.onDeclined(E),t.ignoreDeclined||(I=new Error("Aborted because of declined dependency: "+E.moduleId+" in "+E.parentId+A));break;case"unaccepted":t.onUnaccepted&&t.onUnaccepted(E),t.ignoreUnaccepted||(I=new Error("Aborted because "+l+" is not accepted"+A));break;case"accepted":t.onAccepted&&t.onAccepted(E),x=!0;break;case"disposed":t.onDisposed&&t.onDisposed(E),M=!0;break;default:throw new Error("Unexception type "+E.type)}if(I)return p("abort"),Promise.reject(I);if(x)for(l in O[l]=h[l],m(w,E.outdatedModules),E.outdatedDependencies)Object.prototype.hasOwnProperty.call(E.outdatedDependencies,l)&&(b[l]||(b[l]=[]),m(b[l],E.outdatedDependencies[l]));M&&(m(w,[E.moduleId]),O[l]=j)}var S,U=[];for(a=0;a0;)if(l=R.pop(),u=H[l]){var T={},C=u.hot._disposeHandlers;for(s=0;s=0&&B.parents.splice(S,1))}}for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)&&(u=H[l]))for(L=b[l],s=0;s=0&&u.children.splice(S,1);p("apply"),void 0!==v&&(o=v,v=void 0);for(l in h=void 0,O)Object.prototype.hasOwnProperty.call(O,l)&&(e[l]=O[l]);var N=null;for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)&&(u=H[l])){L=b[l];var X=[];for(a=0;a{n.classList.toggle("is-active")}}()}))}}); \ No newline at end of file +!function(e){var n=window.webpackHotUpdate;window.webpackHotUpdate=function(e,r){!function(e,n){if(!_[e]||!O[e])return;for(var r in O[e]=!1,n)Object.prototype.hasOwnProperty.call(n,r)&&(h[r]=n[r]);0==--b&&0===m&&E()}(e,r),n&&n(e,r)};var r,t=!0,o="e0f4f8c7ecb3618f2fa8",c={},i=[],d=[];function a(e){var n=H[e];if(!n)return k;var t=function(t){return n.hot.active?(H[t]?-1===H[t].parents.indexOf(e)&&H[t].parents.push(e):(i=[e],r=t),-1===n.children.indexOf(t)&&n.children.push(t)):(console.warn("[HMR] unexpected require("+t+") from disposed module "+e),i=[]),k(t)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return k[e]},set:function(n){k[e]=n}}};for(var c in k)Object.prototype.hasOwnProperty.call(k,c)&&"e"!==c&&"t"!==c&&Object.defineProperty(t,c,o(c));return t.e=function(e){return"ready"===l&&p("prepare"),m++,k.e(e).then(n,(function(e){throw n(),e}));function n(){m--,"prepare"===l&&(w[e]||D(e),0===m&&0===b&&E())}},t.t=function(e,n){return 1&n&&(e=t(e)),k.t(e,-2&n)},t}function s(n){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==n,active:!0,accept:function(e,n){if(void 0===e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var r=0;r=0&&t._disposeHandlers.splice(n,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":(h={})[n]=e[n],p("ready");break;case"ready":x(n);break;case"prepare":case"check":case"dispose":case"apply":(y=y||[]).push(n)}},check:j,apply:I,status:function(e){if(!e)return l;u.push(e)},addStatusHandler:function(e){u.push(e)},removeStatusHandler:function(e){var n=u.indexOf(e);n>=0&&u.splice(n,1)},data:c[n]};return r=void 0,t}var u=[],l="idle";function p(e){l=e;for(var n=0;n0;){var o=t.pop(),c=o.id,i=o.chain;if((u=H[c])&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:i,moduleId:c};if(u.hot._main)return{type:"unaccepted",chain:i,moduleId:c};for(var d=0;d ")),E.type){case"self-declined":t.onDeclined&&t.onDeclined(E),t.ignoreDeclined||(I=new Error("Aborted because of self decline: "+E.moduleId+A));break;case"declined":t.onDeclined&&t.onDeclined(E),t.ignoreDeclined||(I=new Error("Aborted because of declined dependency: "+E.moduleId+" in "+E.parentId+A));break;case"unaccepted":t.onUnaccepted&&t.onUnaccepted(E),t.ignoreUnaccepted||(I=new Error("Aborted because "+l+" is not accepted"+A));break;case"accepted":t.onAccepted&&t.onAccepted(E),x=!0;break;case"disposed":t.onDisposed&&t.onDisposed(E),M=!0;break;default:throw new Error("Unexception type "+E.type)}if(I)return p("abort"),Promise.reject(I);if(x)for(l in O[l]=h[l],b(w,E.outdatedModules),E.outdatedDependencies)Object.prototype.hasOwnProperty.call(E.outdatedDependencies,l)&&(m[l]||(m[l]=[]),b(m[l],E.outdatedDependencies[l]));M&&(b(w,[E.moduleId]),O[l]=j)}var S,U=[];for(a=0;a0;)if(l=R.pop(),u=H[l]){var T={},C=u.hot._disposeHandlers;for(s=0;s=0&&B.parents.splice(S,1))}}for(l in m)if(Object.prototype.hasOwnProperty.call(m,l)&&(u=H[l]))for(L=m[l],s=0;s=0&&u.children.splice(S,1);p("apply"),void 0!==v&&(o=v,v=void 0);for(l in h=void 0,O)Object.prototype.hasOwnProperty.call(O,l)&&(e[l]=O[l]);var N=null;for(l in m)if(Object.prototype.hasOwnProperty.call(m,l)&&(u=H[l])){L=m[l];var X=[];for(a=0;a{n.classList.toggle("is-active")}}()}))}}); \ No newline at end of file diff --git a/public/scripts/views/register/app.bundle.js b/public/scripts/views/register/app.bundle.js index c323b59..5173db7 100644 --- a/public/scripts/views/register/app.bundle.js +++ b/public/scripts/views/register/app.bundle.js @@ -1 +1 @@ -!function(e){var n=window.webpackHotUpdate;window.webpackHotUpdate=function(e,r){!function(e,n){if(!O[e]||!w[e])return;for(var r in w[e]=!1,n)Object.prototype.hasOwnProperty.call(n,r)&&(h[r]=n[r]);0==--m&&0===b&&D()}(e,r),n&&n(e,r)};var r,t=!0,o="8c4d45210225619fc987",i={},c=[],d=[];function a(e){var n=k[e];if(!n)return H;var t=function(t){return n.hot.active?(k[t]?-1===k[t].parents.indexOf(e)&&k[t].parents.push(e):(c=[e],r=t),-1===n.children.indexOf(t)&&n.children.push(t)):(console.warn("[HMR] unexpected require("+t+") from disposed module "+e),c=[]),H(t)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return H[e]},set:function(n){H[e]=n}}};for(var i in H)Object.prototype.hasOwnProperty.call(H,i)&&"e"!==i&&"t"!==i&&Object.defineProperty(t,i,o(i));return t.e=function(e){return"ready"===u&&p("prepare"),b++,H.e(e).then(n,(function(e){throw n(),e}));function n(){b--,"prepare"===u&&(g[e]||j(e),0===b&&0===m&&D())}},t.t=function(e,n){return 1&n&&(e=t(e)),H.t(e,-2&n)},t}function s(n){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==n,active:!0,accept:function(e,n){if(void 0===e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var r=0;r=0&&t._disposeHandlers.splice(n,1)},invalidate:function(){switch(this._selfInvalidated=!0,u){case"idle":(h={})[n]=e[n],p("ready");break;case"ready":P(n);break;case"prepare":case"check":case"dispose":case"apply":(y=y||[]).push(n)}},check:E,apply:I,status:function(e){if(!e)return u;l.push(e)},addStatusHandler:function(e){l.push(e)},removeStatusHandler:function(e){var n=l.indexOf(e);n>=0&&l.splice(n,1)},data:i[n]};return r=void 0,t}var l=[],u="idle";function p(e){u=e;for(var n=0;n0;){var o=t.pop(),i=o.id,c=o.chain;if((l=k[i])&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:c,moduleId:i};if(l.hot._main)return{type:"unaccepted",chain:c,moduleId:i};for(var d=0;d ")),D.type){case"self-declined":t.onDeclined&&t.onDeclined(D),t.ignoreDeclined||(I=new Error("Aborted because of self decline: "+D.moduleId+A));break;case"declined":t.onDeclined&&t.onDeclined(D),t.ignoreDeclined||(I=new Error("Aborted because of declined dependency: "+D.moduleId+" in "+D.parentId+A));break;case"unaccepted":t.onUnaccepted&&t.onUnaccepted(D),t.ignoreUnaccepted||(I=new Error("Aborted because "+u+" is not accepted"+A));break;case"accepted":t.onAccepted&&t.onAccepted(D),P=!0;break;case"disposed":t.onDisposed&&t.onDisposed(D),M=!0;break;default:throw new Error("Unexception type "+D.type)}if(I)return p("abort"),Promise.reject(I);if(P)for(u in w[u]=h[u],m(g,D.outdatedModules),D.outdatedDependencies)Object.prototype.hasOwnProperty.call(D.outdatedDependencies,u)&&(b[u]||(b[u]=[]),m(b[u],D.outdatedDependencies[u]));M&&(m(g,[D.moduleId]),w[u]=E)}var S,U=[];for(a=0;a0;)if(u=L.pop(),l=k[u]){var R={},T=l.hot._disposeHandlers;for(s=0;s=0&&C.parents.splice(S,1))}}for(u in b)if(Object.prototype.hasOwnProperty.call(b,u)&&(l=k[u]))for(B=b[u],s=0;s=0&&l.children.splice(S,1);p("apply"),void 0!==v&&(o=v,v=void 0);for(u in h=void 0,w)Object.prototype.hasOwnProperty.call(w,u)&&(e[u]=w[u]);var N=null;for(u in b)if(Object.prototype.hasOwnProperty.call(b,u)&&(l=k[u])){B=b[u];var X=[];for(a=0;a{let e=!1,n=!1;const r=document.getElementById("form-register"),t=document.getElementById("txt-register-password"),o=document.getElementById("txt-register-confirm-password"),i=document.getElementById("chk-register-terms"),c=document.getElementById("btn-register-submit");function d(){e=r.checkValidity()&&n&&i.checked,c.disabled=!e,i.value=i.checked?"on":""}t&&o&&i||alert("Something Went wrong"),r.oninput=e=>{n=t.value===o.value&&!!t.value.trim().length,d()},d()})}}); \ No newline at end of file +!function(e){var n=window.webpackHotUpdate;window.webpackHotUpdate=function(e,r){!function(e,n){if(!O[e]||!w[e])return;for(var r in w[e]=!1,n)Object.prototype.hasOwnProperty.call(n,r)&&(h[r]=n[r]);0==--m&&0===b&&D()}(e,r),n&&n(e,r)};var r,t=!0,o="e0f4f8c7ecb3618f2fa8",i={},c=[],d=[];function a(e){var n=k[e];if(!n)return H;var t=function(t){return n.hot.active?(k[t]?-1===k[t].parents.indexOf(e)&&k[t].parents.push(e):(c=[e],r=t),-1===n.children.indexOf(t)&&n.children.push(t)):(console.warn("[HMR] unexpected require("+t+") from disposed module "+e),c=[]),H(t)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return H[e]},set:function(n){H[e]=n}}};for(var i in H)Object.prototype.hasOwnProperty.call(H,i)&&"e"!==i&&"t"!==i&&Object.defineProperty(t,i,o(i));return t.e=function(e){return"ready"===u&&p("prepare"),b++,H.e(e).then(n,(function(e){throw n(),e}));function n(){b--,"prepare"===u&&(g[e]||j(e),0===b&&0===m&&D())}},t.t=function(e,n){return 1&n&&(e=t(e)),H.t(e,-2&n)},t}function s(n){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==n,active:!0,accept:function(e,n){if(void 0===e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var r=0;r=0&&t._disposeHandlers.splice(n,1)},invalidate:function(){switch(this._selfInvalidated=!0,u){case"idle":(h={})[n]=e[n],p("ready");break;case"ready":P(n);break;case"prepare":case"check":case"dispose":case"apply":(y=y||[]).push(n)}},check:E,apply:I,status:function(e){if(!e)return u;l.push(e)},addStatusHandler:function(e){l.push(e)},removeStatusHandler:function(e){var n=l.indexOf(e);n>=0&&l.splice(n,1)},data:i[n]};return r=void 0,t}var l=[],u="idle";function p(e){u=e;for(var n=0;n0;){var o=t.pop(),i=o.id,c=o.chain;if((l=k[i])&&(!l.hot._selfAccepted||l.hot._selfInvalidated)){if(l.hot._selfDeclined)return{type:"self-declined",chain:c,moduleId:i};if(l.hot._main)return{type:"unaccepted",chain:c,moduleId:i};for(var d=0;d ")),D.type){case"self-declined":t.onDeclined&&t.onDeclined(D),t.ignoreDeclined||(I=new Error("Aborted because of self decline: "+D.moduleId+A));break;case"declined":t.onDeclined&&t.onDeclined(D),t.ignoreDeclined||(I=new Error("Aborted because of declined dependency: "+D.moduleId+" in "+D.parentId+A));break;case"unaccepted":t.onUnaccepted&&t.onUnaccepted(D),t.ignoreUnaccepted||(I=new Error("Aborted because "+u+" is not accepted"+A));break;case"accepted":t.onAccepted&&t.onAccepted(D),P=!0;break;case"disposed":t.onDisposed&&t.onDisposed(D),M=!0;break;default:throw new Error("Unexception type "+D.type)}if(I)return p("abort"),Promise.reject(I);if(P)for(u in w[u]=h[u],m(g,D.outdatedModules),D.outdatedDependencies)Object.prototype.hasOwnProperty.call(D.outdatedDependencies,u)&&(b[u]||(b[u]=[]),m(b[u],D.outdatedDependencies[u]));M&&(m(g,[D.moduleId]),w[u]=E)}var S,U=[];for(a=0;a0;)if(u=L.pop(),l=k[u]){var R={},T=l.hot._disposeHandlers;for(s=0;s=0&&C.parents.splice(S,1))}}for(u in b)if(Object.prototype.hasOwnProperty.call(b,u)&&(l=k[u]))for(B=b[u],s=0;s=0&&l.children.splice(S,1);p("apply"),void 0!==v&&(o=v,v=void 0);for(u in h=void 0,w)Object.prototype.hasOwnProperty.call(w,u)&&(e[u]=w[u]);var N=null;for(u in b)if(Object.prototype.hasOwnProperty.call(b,u)&&(l=k[u])){B=b[u];var X=[];for(a=0;a{let e=!1,n=!1;const r=document.getElementById("form-register"),t=document.getElementById("txt-register-password"),o=document.getElementById("txt-register-confirm-password"),i=document.getElementById("chk-register-terms"),c=document.getElementById("btn-register-submit");function d(){e=r.checkValidity()&&n&&i.checked,c.disabled=!e,i.value=i.checked?"on":""}t&&o&&i||alert("Something Went wrong"),r.oninput=e=>{n=t.value===o.value&&!!t.value.trim().length,d()},d()})}}); \ No newline at end of file diff --git a/resources/scripts/applications/home/views/child_profile.vue b/resources/scripts/applications/home/views/child_profile.vue index d4f3881..2d926ef 100644 --- a/resources/scripts/applications/home/views/child_profile.vue +++ b/resources/scripts/applications/home/views/child_profile.vue @@ -290,7 +290,7 @@ export default { this.showCoverModal = true; } }, - ...mapActions(["getUser", "getConnections", "notify"]) + ...mapActions(["getUser", "notify"]) }, computed: { age() { @@ -307,7 +307,7 @@ export default { } return `${text}`; }, - ...mapGetters(["user", "connections"]) + ...mapGetters(["user"]) } }; diff --git a/resources/scripts/applications/home/views/home.vue b/resources/scripts/applications/home/views/home.vue index 4a4244c..27fcd94 100644 --- a/resources/scripts/applications/home/views/home.vue +++ b/resources/scripts/applications/home/views/home.vue @@ -11,6 +11,13 @@ @onCreated="onChildCreated($event)" @onClose="showAddChildModal=false" /> + +
@@ -165,6 +172,7 @@ import FileSelect from "../../shared/components/FileSelect/FileSelect.vue"; import AvatarBadge from "../components/AvatarBadge.vue"; import Moment from "moment"; import Modal from "../../shared/components/Modal/Modal.vue"; +import ChangeAvatarModal from "../components/ChangeAvatarModal.vue"; export default { name: "Home", components: { @@ -176,7 +184,8 @@ export default { AddConnectionModal, ConfigureNewCallModal, ChildCard, - AddChildModal + AddChildModal, + ChangeAvatarModal }, beforeCreate() {}, async created() { @@ -194,10 +203,28 @@ export default { showAddChildModal: false, showAddConnectionModal: false, childCoverModalImage: null, - addMenuOpen: false + addMenuOpen: false, + showChangeAvatarModal: false }; }, methods: { + async updateAvatar(event) { + if (!event.isDefaultImage) { + try { + const response = await Services.ApiService.updateUser({ + avatar: event.image + }); + if (response.code === 0) { + await this.getUser(); + this.notify({ message: "Updated Successfully!", level: "success" }); + } + } catch (e) { + console.error(e); + } + } + this.showChangeAvatarModal = false; + return true; + }, onAddClicked(action: "book" | "slideshow" | "puzzle" | "child") { switch (action) { case "child": @@ -210,11 +237,6 @@ export default { } this.addMenuOpen = false; }, - onChangeAvatarClicked() { - this.notify({ - message: `Upload avatar clicked. Still not working` - }); - }, onDeleteClicked() { this.notify({ message: "Delete button clicked. Still not working" }); }, diff --git a/resources/scripts/applications/services/api.service.ts b/resources/scripts/applications/services/api.service.ts index c787c6b..9342893 100644 --- a/resources/scripts/applications/services/api.service.ts +++ b/resources/scripts/applications/services/api.service.ts @@ -19,6 +19,22 @@ export default class ApiService { } } + static async updateUser(payload: { name?: string; avatar?: string; profile_cover?: string; email?: string }) { + const options = { + method: 'PUT', + body: JSON.stringify(payload), + headers: { + 'Content-Type': 'application/json' + } + } + try { + return (await fetch('/api/v1/client/user/', options)).json(); + } catch (e) { + console.error(`updateUser ERROR: ${e.message}`); + return e; + } + } + static async getChild(id: number): Promise { try { return (await fetch(`/api/v1/client/child/${id}`)).json(); diff --git a/start/routes.js b/start/routes.js index b52b0ef..0df5b2f 100644 --- a/start/routes.js +++ b/start/routes.js @@ -44,6 +44,7 @@ Route .group(() => { Route.post('connections/create', 'ClientApiController.createConnection'); Route.get('user', 'ClientApiController.getUser'); + Route.put('user', 'ClientApiController.updateUser'); Route.post('child', 'ClientApiController.createChild'); Route.get('child/:id', 'ClientApiController.getChild'); Route.post('child/:id', 'ClientApiController.updateChild');