text: (function(e){function t(t){for(var r,a,o=t[0],u=t[1],c=t[2],l=0,d=[];l<o.length;l++)a=o[l],Object.prototype.hasOwnProperty.call(s,a)&&s[a]&&d.push(s[a][0]),s[a]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);f&&f(t);while(d.length)d.shift()();return i.push.apply(i,c||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,a=1;a<n.length;a++){var o=n[a];0!==s[o]&&(r=!1)}r&&(i.splice(t--,1),e=u(u.s=n[0]))}return e}var r={},a={app:0},s={app:0},i=[];function o(e){return u.p+"js/"+({}[e]||e)+"."+{"chunk-d2bbbdb8":"e8fde632","chunk-10baf0f2":"1ab8294e","chunk-740eee44":"647831b0","chunk-0fe4fe7a":"c798ce30","chunk-760d9bf4":"079ebb87"}[e]+".js"}function u(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.e=function(e){var t=[],n={"chunk-d2bbbdb8":1,"chunk-10baf0f2":1,"chunk-740eee44":1,"chunk-0fe4fe7a":1,"chunk-760d9bf4":1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var r="css/"+({}[e]||e)+"."+{"chunk-d2bbbdb8":"c88164fb","chunk-10baf0f2":"8ad0bb85","chunk-740eee44":"ea3c4e9d","chunk-0fe4fe7a":"7c224902","chunk-760d9bf4":"4eb9c227"}[e]+".css",s=u.p+r,i=document.getElementsByTagName("link"),o=0;o<i.length;o++){var c=i[o],l=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(l===r||l===s))return t()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){c=d[o],l=c.getAttribute("data-href");if(l===r||l===s)return t()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=t,f.onerror=function(t){var r=t&&t.target&&t.target.src||s,i=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=r,delete a[e],f.parentNode.removeChild(f),n(i)},f.href=s;var h=document.getElementsByTagName("head")[0];h.appendChild(f)})).then((function(){a[e]=0})));var r=s[e];if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((function(t,n){r=s[e]=[t,n]}));t.push(r[2]=i);var c,l=document.createElement("script");l.charset="utf-8",l.timeout=120,u.nc&&l.setAttribute("nonce",u.nc),l.src=o(e);var d=new Error;c=function(t){l.onerror=l.onload=null,clearTimeout(f);var n=s[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",d.name="ChunkLoadError",d.type=r,d.request=a,n[1](d)}s[e]=void 0}};var f=setTimeout((function(){c({type:"timeout",target:l})}),12e4);l.onerror=l.onload=c,document.head.appendChild(l)}return Promise.all(t)},u.m=e,u.c=r,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)u.d(n,r,function(t){return e[t]}.bind(null,r));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/quik-messenger/",u.oe=function(e){throw console.error(e),e};var c=window["webpackJsonp"]=window["webpackJsonp"]||[],l=c.push.bind(c);c.push=t,c=c.slice();for(var d=0;d<c.length;d++)t(c[d]);var f=l;i.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"034f":function(e,t,n){"use strict";n("85ec")},"17e1":function(e,t,n){"use strict";n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return v})),n.d(t,"e",(function(){return b})),n.d(t,"b",(function(){return y})),n.d(t,"a",(function(){return w}));var r,a,s=n("260b"),i=(n("e71f"),n("ea7b"),n("66ce"),n("4360")),o=n("a18c"),u=n("d4ec"),c=n("bee2"),l=n("2591"),d={online:!1,last_changed:l["a"].database.ServerValue.TIMESTAMP},f={online:!0,last_changed:l["a"].database.ServerValue.TIMESTAMP},h=function(){function e(t){Object(u["a"])(this,e),r=this,this.connectionRef=b.ref(".info/connected"),this.user=t,this.connectionListener=this.connectionRef.on("value",this.onConnection)}return Object(c["a"])(e,[{key:"setUserOnline",value:function(){r.userStatusDatabaseRef.set(f)}},{key:"setUserOffline",value:function(){r.userStatusDatabaseRef.set(d)}},{key:"onConnection",value:function(e){console.log("Connection Change Detected",e.val()),0!=e.val()&&(r.userStatusDatabaseRef=b.ref("/status/"+r.user.uid),r.userStatusDatabaseRef.onDisconnect().set(d).then((function(){console.log("Setted onDisconnect"),r.setUserOnline()})),window.addEventListener("blur",r.setUserOffline,!1),window.addEventListener("focus",r.setUserOnline,!1))}},{key:"dispose",value:function(){r=null,this.connectionListener&&(this.connectionRef.off("value",this.onConnection),window.removeEventListener("blur",r.setUserOffline),window.removeEventListener("focus",r.setUserOnline),this.userStatusDatabaseRef&&(this.userStatusDatabaseRef.onDisconnect().cancel(),this.userStatusDatabaseRef.set(d),console.log("OnlineListener Disposed")))}}]),e}(),m=s["a"].initializeApp({apiKey:"AIzaSyA1klxmi6nGNAiNu0dRyLVQR9Klv7452tM",authDomain:"quik-messenger.firebaseapp.com",projectId:"quik-messenger",storageBucket:"quik-messenger.appspot.com",messagingSenderId:"424280930236",appId:"1:424280930236:web:df63712d5c6277cea3ddb9",measurementId:"G-ML8E8MLKMJ",databaseURL:"https://quik-messenger-default-rtdb.asia-southeast1.firebasedatabase.app/"}),p=m.auth(),v=m.firestore(),b=m.database(),g=s["a"].firestore,y=g.Timestamp,w=(g.GeoPoint,g.FieldValue);v.enablePersistence({cacheSizeBytes:s["a"].firestore.CACHE_SIZE_UNLIMITED}).then((function(){return console.log("Cache Enabled")})),p.onAuthStateChanged((function(e){console.log("Auth state changed",e);var t=i["a"].getters.currentUser;if(setTimeout((function(){i["a"].state.authLoading=!1}),100),e)i["a"].commit("setUser",e),o["a"].push("/chats"),a=new h(e);else{if(null==t)return;i["a"].dispatch("logout"),o["a"].push("/login"),a&&a.dispose()}}))},4360:function(e,t,n){"use strict";var r=n("1da1"),a=n("ade3"),s=n("5530"),i=(n("96cf"),n("2b0e")),o=n("2f62"),u=n("17e1"),c=n("3317");i["a"].use(o["a"]),t["a"]=new o["a"].Store({state:{user:null,authLoading:!0,chats:[],chatUsers:{},isTouch:!1},getters:{currentUser:function(e){return e.user},chats:function(e){return e.chats},chatUsers:function(e){return e.chatUsers},isTouch:function(e){return e.isTouch}},mutations:Object(s["a"])({setUser:function(e,t){e.user=t},setChatUsers:function(e,t){var n=t.chatId,r=t.userData;e.chatUsers=Object(s["a"])(Object(s["a"])({},e.chatUsers),{},Object(a["a"])({},n,r))}},c["b"]),actions:{bindChats:Object(c["a"])((function(e,t){var n=e.bindFirestoreRef,r=t.getters;return n("chats",u["d"].collection("chats").where("users","array-contains",r.currentUser.uid).orderBy("updated","desc"))})),unbindChats:Object(c["a"])((function(e){var t=e.unbindFirestoreRef;t("chats")})),logout:function(e){var t=e.dispatch,n=e.commit,r=e.getters,a=e.state;n("setUser",null),t("unbindChats"),a.chatUsers={},console.log("Chats after unbind",r.chats)},deleteChat:function(e,t){return Object(r["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,u["d"].collection("chats").doc(t.id).delete();case 2:case"end":return e.stop()}}),e)})))()}},modules:{}})},4625:function(e,t,n){"use strict";n("b90b")},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var r=n("2b0e"),a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{on:{contextmenu:function(e){return e.preventDefault()}}},[n("v-app",{directives:[{name:"touch",rawName:"v-touch",value:{start:e.onInteraction},expression:"{\n      start: onInteraction,\n    }"}]},[n("router-view"),n("v-fade-transition",[e.$store.state.authLoading?n("loader"):e._e()],1)],1)],1)},s=[],i=(n("99af"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-overlay",{attrs:{opacity:"1"}},[n("v-progress-circular",{attrs:{indeterminate:""}})],1)}),o=[],u={},c=u,l=n("2877"),d=n("6544"),f=n.n(d),h=n("a797"),m=n("490a"),p=Object(l["a"])(c,i,o,!1,null,null,null),v=p.exports;f()(p,{VOverlay:h["a"],VProgressCircular:m["a"]});var b=n("ed08"),g={name:"App",data:function(){return{}},components:{Loader:v},methods:{setCssHeightVar:function(){var e=.01*window.innerHeight;document.documentElement.style.setProperty("--vh","".concat(e,"px"))},onInteraction:function(e){e&&"touchstart"==(null===e||void 0===e?void 0:e.type)&&(this.$store.state.isTouch=!0)}},created:function(){var e=this.$vuetify.theme,t=e.isDark?e.themes.dark.primary:e.themes.light.primary;Object(b["a"])("::-webkit-scrollbar-thumb {\n  background: ".concat(t,";\n  border-radius: 10px;\n}\n::-webkit-scrollbar-track {\n  background: ").concat(t,"50;\n}"),"custom-scroll-bar")},mounted:function(){this.setCssHeightVar(),window.addEventListener("resize",this.setCssHeightVar,!1)},destroyed:function(){window.removeEventListener("resize",this.setCssHeightVar,!1)}},y=g,w=(n("034f"),n("7496")),k=n("0789"),$=n("269a"),E=n.n($),C=n("c3f0"),O=Object(l["a"])(y,a,s,!1,null,null,null),x=O.exports;f()(O,{VApp:w["a"],VFadeTransition:k["c"]}),E()(O,{Touch:C["a"]});var j=n("a18c"),U=n("4360"),L=n("0ff2"),_=n("f309"),q=n("fcf4");r["a"].use(_["a"]);var S=new _["a"]({theme:{dark:!0,themes:{dark:{primary:q["a"].blue.base,secondary:q["a"].teal.base,accent:q["a"].indigo.base,error:"#ff0000"}}}}),P=n("1dce"),V=n.n(P),A=(n("aeb7"),n("4eb5")),R=n.n(A);r["a"].use(L["a"]),r["a"].use(L["b"]),r["a"].use(V.a),r["a"].use(R.a),r["a"].config.productionTip=!1,new r["a"]({router:j["a"],store:U["a"],vuetify:S,render:function(e){return e(x)}}).$mount("#app")},"85ec":function(e,t,n){},a18c:function(e,t,n){"use strict";n("d3b7"),n("3ca3"),n("ddb0");var r=n("2b0e"),a=n("8c4f"),s=n("4360"),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",["Chat"!=e.$route.name?n("v-app-bar",{attrs:{app:""}},[n("div",{staticClass:"d-flex align-center"},[n("v-img",{staticClass:"shrink mr-2",attrs:{alt:"Vuetify Logo",contain:"",src:"https://cdn.vuetifyjs.com/images/logos/vuetify-logo-dark.png",transition:"scale-transition",width:"40"}}),n("span",{staticClass:"shrink mt-1 text-h6"},[e._v("Quik Messenger")])],1)]):e._e(),n("v-main",[n("v-container",{staticClass:"fixed-appbar-full-body d-flex align-center"},[n("keep-alive",[n("router-view")],1)],1)],1)],1)},o=[],u=n("ed08"),c={name:"UnAuth",created:function(){Object(u["a"])("html{\n  overflow-y: auto;\n}","html-overflow")},destroyed:function(){Object(u["b"])("html-overflow")}},l=c,d=n("2877"),f=n("6544"),h=n.n(f),m=n("40dc"),p=n("a523"),v=n("adda"),b=n("f6c4"),g=Object(d["a"])(l,i,o,!1,null,null,null),y=g.exports;h()(g,{VAppBar:m["a"],VContainer:p["a"],VImg:v["a"],VMain:b["a"]});var w=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("keep-alive",[n("router-view")],1)],1)},k=[],$=(n("7db0"),n("caad"),n("2532"),n("d81d"),n("b0c0"),n("ac1f"),n("5319"),n("07ac"),n("4de4"),n("159b"),n("b64b"),n("17e1"));function E(e,t){if(t){var n=e.find((function(e){return e.users.includes(t.uid)}));n&&s["a"].commit("setChatUsers",{chatId:n.id,userData:t})}}var C=function(e){if(e){var t=e.map((function(e){return e.users.find((function(e){return e!=s["a"].getters.currentUser.uid}))})),n=e.map((function(e){return e.id}));if("Chat"!=te.currentRoute.name||n.includes(te.currentRoute.params.id)||te.replace({name:"Chats"}),0!=t.length){var r=Object.values(s["a"].state.chatUsers).map((function(e){return e.uid})),a=t;r.length>0&&(a=t.filter((function(e){return!r.includes(e)})),0==a.length)?e.forEach((function(t){if(!Object.keys(s["a"].state.chatUsers).includes(t.id)){var n=Object.values(s["a"].state.chatUsers).find((function(e){return e.uid==t.users.find((function(e){return e!=s["a"].getters.currentUser.uid}))}));E(e,n)}})):a.forEach((function(t){var n=$["e"].ref("users/"+t);n.once("value",(function(t){t.exists()&&E(e,t.val())}))}))}}},O={name:"Auth",created:function(){this.$store.dispatch("bindChats",this.$store),this.unwatch=this.$store.watch((function(e,t){return t.chats}),C),Object(u["a"])("html {\n  overflow: hidden;\n}\n\nbody {\n  width: 100%;\n  height: 100%;\n  position: fixed;\n  top: 0;\n  left: 0;\n  overflow-y: hidden;\n  -webkit-overflow-scrolling: touch;\n  overscroll-behavior: none;\n}","scroll-limiter")},beforeDestroy:function(){this.$store.dispatch("unbindChats"),this.unwatch()},destroyed:function(){Object(u["b"])("scroll-limiter")}},x=O,j=Object(d["a"])(x,w,k,!1,null,null,null),U=j.exports,L=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-row",{attrs:{justify:"center"}},[n("v-col",{attrs:{cols:"12"}},[n("welcome",{attrs:{action:"signup"}})],1),n("v-col",{staticClass:"text-center",attrs:{cols:"12",md:"4"}},[n("v-form",{on:{submit:function(t){return t.preventDefault(),e.register.apply(null,arguments)}}},[n("v-text-field",{attrs:{outlined:"",label:"Name",placeholder:"Enter Name","error-messages":e.nameErrors},on:{input:function(t){return e.$v.name.$touch()},blur:function(t){return e.$v.name.$touch()}},model:{value:e.name,callback:function(t){e.name=t},expression:"name"}}),n("v-text-field",{attrs:{outlined:"",label:"Email",placeholder:"Enter Email","error-messages":e.emailErrors},on:{input:function(t){return e.$v.email.$touch()},blur:function(t){return e.$v.email.$touch()}},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}}),n("v-text-field",{attrs:{outlined:"",label:"Password",placeholder:"Enter Password",type:"password",autocomplete:"off","error-messages":e.passwordErrors},on:{input:function(t){return e.$v.password.$touch()},blur:function(t){return e.$v.password.$touch()}},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}),n("v-btn",{attrs:{disabled:e.$v.$invalid||e.loading,type:"submit",loading:e.loading}},[e._v("Register")])],1),n("p",{staticClass:"mt-3"},[e._v(" Already have an account? "),n("router-link",{attrs:{to:"/login",replace:""}},[e._v("Login")])],1)],1)],1)},_=[],q=n("b5ae"),S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"text-center"},[n("div",{staticClass:"welcome-logo"},[n("v-img",{staticClass:"shrink mx-auto",attrs:{alt:"Vuetify Logo",contain:"",src:"https://cdn.vuetifyjs.com/images/logos/vuetify-logo-dark.png",transition:"scale-transition",width:"100"}})],1),n("h3",{staticClass:"v-heading text-h4 my-3 font-weight-bold"},[e._v(" Sign "+e._s("signin"==e.action?"in":"up")+" to Quik Messenger ")])])},P=[],V={props:["action"]},A=V,R=(n("4625"),Object(d["a"])(A,S,P,!1,null,"5930a482",null)),T=R.exports;h()(R,{VImg:v["a"]});var D={name:"Register",data:function(){return{name:"",email:"",password:"",loading:!1}},components:{Welcome:T},validations:{name:{required:q["required"],minLength:Object(q["minLength"])(6)},password:{required:q["required"],minLength:Object(q["minLength"])(6)},email:{required:q["required"],email:q["email"]}},methods:{register:function(){var e=this;this.$v.$touch(),this.$v.$invalid||this.loading||(this.loading=!0,$["c"].createUserWithEmailAndPassword(this.email,this.password).then((function(t){t.user.updateProfile({displayName:e.name}).then((function(){var e=t.user,n={uid:e.uid,displayName:e.displayName};$["e"].ref("users/"+e.uid).set(n)}))})).catch((function(e){console.log(e.message)})).finally((function(){e.loading=!1})))}},computed:{nameErrors:function(){var e=[];return this.$v.name.$dirty?(!this.$v.name.required&&e.push("Name is required"),!this.$v.name.minLength&&e.push("Name must be at least 6 characters long"),e):e},passwordErrors:function(){var e=[];return this.$v.password.$dirty?(!this.$v.password.required&&e.push("Password is required"),!this.$v.password.minLength&&e.push("Password must be at least 6 characters long"),e):e},emailErrors:function(){var e=[];return this.$v.email.$dirty?(!this.$v.email.required&&e.push("Email is required"),!this.$v.email.email&&e.push("Enter a valid email"),e):e}}},I=D,N=n("8336"),M=n("62ad"),B=n("4bd4"),F=n("0fd9"),H=n("8654"),z=Object(d["a"])(I,L,_,!1,null,null,null),K=z.exports;h()(z,{VBtn:N["a"],VCol:M["a"],VForm:B["a"],VRow:F["a"],VTextField:H["a"]});var W=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-row",{attrs:{justify:"center"}},[n("v-col",{attrs:{cols:"12"}},[n("welcome",{attrs:{action:"signin"}})],1),n("v-col",{staticClass:"text-center mb-4",attrs:{cols:"12",md:"4"}},[n("v-text-field",{attrs:{outlined:"",label:"Email",placeholder:"Enter Email","error-messages":e.emailErrors},on:{input:function(t){return e.$v.email.$touch()},blur:function(t){return e.$v.email.$touch()},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(){return e.$refs.password.focus()}.apply(null,arguments)}},model:{value:e.email,callback:function(t){e.email=t},expression:"email"}}),n("v-text-field",{ref:"password",attrs:{outlined:"",label:"Password",placeholder:"Enter Password",type:"password",autocomplete:"off","error-messages":e.passwordErrors},on:{input:function(t){return e.$v.password.$touch()},blur:function(t){return e.$v.password.$touch()},keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.login.apply(null,arguments)}},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}),n("v-btn",{attrs:{disabled:e.$v.$invalid||e.loading,loading:e.loading},on:{click:e.login}},[e._v("Login")]),n("p",{staticClass:"mt-3"},[e._v(" Does't have an account? "),n("router-link",{attrs:{to:"/register",replace:""}},[e._v("Register")])],1)],1)],1)},G=[],J={name:"Login",data:function(){return{email:"",password:"",loading:!1}},components:{Welcome:T},validations:{password:{required:q["required"],minLength:Object(q["minLength"])(6)},email:{required:q["required"],email:q["email"]}},methods:{login:function(){var e=this;this.$v.$invalid||this.loading||(this.loading=!0,$["c"].signInWithEmailAndPassword(this.email,this.password).catch((function(e){console.log(e.message)})).finally((function(){e.loading=!1})))}},computed:{passwordErrors:function(){var e=[];return this.$v.password.$dirty?(!this.$v.password.required&&e.push("Password is required"),!this.$v.password.minLength&&e.push("Password must be at least 6 characters long"),e):e},emailErrors:function(){var e=[];return this.$v.email.$dirty?(!this.$v.email.required&&e.push("Email is required"),!this.$v.email.email&&e.push("Enter a valid email"),e):e}}},Q=J,Z=Object(d["a"])(Q,W,G,!1,null,null,null),X=Z.exports;h()(Z,{VBtn:N["a"],VCol:M["a"],VRow:F["a"],VTextField:H["a"]}),r["a"].use(a["a"]);var Y=[{path:"",name:"Home",redirect:function(){var e=s["a"].getters.currentUser;return e?"/chats":"/login"}},{path:"",name:"UnAuth",component:y,children:[{path:"register",name:"Register",component:K,meta:{guest:!0}},{path:"login",name:"Login",component:X,meta:{guest:!0}}],meta:{guest:!0}},{path:"",name:"Auth",component:U,children:[{path:"chats",name:"Chats",component:function(){return Promise.all([n.e("chunk-d2bbbdb8"),n.e("chunk-740eee44"),n.e("chunk-0fe4fe7a")]).then(n.bind(null,"c98b"))},meta:{requiresUser:!0},children:[{path:"users",name:"Users",component:function(){return Promise.all([n.e("chunk-d2bbbdb8"),n.e("chunk-10baf0f2")]).then(n.bind(null,"dbef"))},meta:{requiresUser:!0}},{path:":id",name:"Chat",component:function(){return Promise.all([n.e("chunk-d2bbbdb8"),n.e("chunk-740eee44"),n.e("chunk-760d9bf4")]).then(n.bind(null,"293a"))},meta:{requiresUser:!0}}]}],meta:{requiresUser:!0}}],ee=new a["a"]({routes:Y});ee.beforeEach((function(e,t,n){var r,a;return null!==(r=e.meta)&&void 0!==r&&r.requiresUser?s["a"].getters.currentUser?void n():void n("/"):null!==(a=e.meta)&&void 0!==a&&a.guest&&s["a"].getters.currentUser?void n("/chats"):void n()}));var te=t["a"]=ee},aeb7:function(e,t){var n={get:function(){return 0==this.length}},r={get:function(){return 0==this.length?null:this[this.length-1]}};Object.defineProperty(Array.prototype,"isEmpty",n),Object.defineProperty(Array.prototype,"last",r),Object.defineProperty(NodeList.prototype,"isEmpty",n),Object.defineProperty(NodeList.prototype,"last",r)},b90b:function(e,t,n){},ed08:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r=function(e,t){var n=document.querySelector('style[id="'.concat(t,'"]'))||document.createElement("style");n.id=t,n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),document.querySelector("body").appendChild(n)},a=function(e){var t=document.querySelector('style[id="'.concat(e,'"]'));t?document.querySelector("body").removeChild(t):console.warn("Style element with ".concat(e," does not exist!"))}}});
  //# sourceMappingURL=app.2880e029.js.map