text: (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{151:function(t,e,n){"use strict";e.a={}},18:function(t,e,n){"use strict";n.d(e,"k",(function(){return x})),n.d(e,"m",(function(){return w})),n.d(e,"l",(function(){return _})),n.d(e,"e",(function(){return k})),n.d(e,"b",(function(){return O})),n.d(e,"s",(function(){return $})),n.d(e,"g",(function(){return j})),n.d(e,"h",(function(){return S})),n.d(e,"d",(function(){return C})),n.d(e,"r",(function(){return R})),n.d(e,"j",(function(){return E})),n.d(e,"t",(function(){return A})),n.d(e,"o",(function(){return U})),n.d(e,"q",(function(){return L})),n.d(e,"f",(function(){return N})),n.d(e,"c",(function(){return I})),n.d(e,"i",(function(){return D})),n.d(e,"p",(function(){return M})),n.d(e,"a",(function(){return W})),n.d(e,"v",(function(){return J})),n.d(e,"n",(function(){return Q})),n.d(e,"u",(function(){return X}));n(6),n(46),n(7),n(8);var r=n(17),o=n(31),c=n(1),l=n(16),f=(n(74),n(4),n(274),n(21),n(25),n(20),n(5),n(41),n(40),n(23),n(56),n(72),n(161),n(328),n(48),n(49),n(142),n(38),n(22),n(3)),h=n(88);function d(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function v(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?d(Object(source),!0).forEach((function(e){Object(c.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):d(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function m(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function x(t){f.a.config.errorHandler&&f.a.config.errorHandler(t)}function w(t){return t.then((function(t){return t.default||t}))}function _(t){return t.$options&&"function"==typeof t.$options.fetch&&!t.$options.fetch.length}function k(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.$children||[],o=m(r);try{for(o.s();!(e=o.n()).done;){var c=e.value;c.$fetch?n.push(c):c.$children&&k(c,n)}}catch(t){o.e(t)}finally{o.f()}return n}function O(t,e){if(e||!t.options.__hasNuxtData){var n=t.options._originDataFn||t.options.data||function(){return{}};t.options._originDataFn=n,t.options.data=function(){var data=n.call(this,this);return this.$ssrContext&&(e=this.$ssrContext.asyncData[t.cid]),v(v({},data),e)},t.options.__hasNuxtData=!0,t._Ctor&&t._Ctor.options&&(t._Ctor.options.data=t.options.data)}}function $(t){return t.options&&t._Ctor===t||(t.options?(t._Ctor=t,t.extendOptions=t.options):(t=f.a.extend(t))._Ctor=t,!t.options.name&&t.options.__file&&(t.options.name=t.options.__file)),t}function j(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"components";return Array.prototype.concat.apply([],t.matched.map((function(t,r){return Object.keys(t[n]).map((function(o){return e&&e.push(r),t[n][o]}))})))}function S(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return j(t,e,"instances")}function C(t,e){return Array.prototype.concat.apply([],t.matched.map((function(t,n){return Object.keys(t.components).reduce((function(r,o){return t.components[o]?r.push(e(t.components[o],t.instances[o],t,o,n)):delete t.components[o],r}),[])})))}function R(t,e){return Promise.all(C(t,function(){var t=Object(o.a)(regeneratorRuntime.mark((function t(n,r,o,c){var l,f;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof n||n.options){t.next=11;break}return t.prev=1,t.next=4,n();case 4:n=t.sent,t.next=11;break;case 7:throw t.prev=7,t.t0=t.catch(1),t.t0&&"ChunkLoadError"===t.t0.name&&"undefined"!=typeof window&&window.sessionStorage&&(l=Date.now(),(!(f=parseInt(window.sessionStorage.getItem("nuxt-reload")))||f+6e4<l)&&(window.sessionStorage.setItem("nuxt-reload",l),window.location.reload(!0))),t.t0;case 11:return o.components[c]=n=$(n),t.abrupt("return","function"==typeof e?e(n,r,o,c):n);case 13:case"end":return t.stop()}}),t,null,[[1,7]])})));return function(e,n,r,o){return t.apply(this,arguments)}}()))}function E(t){return P.apply(this,arguments)}function P(){return(P=Object(o.a)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,R(e);case 4:return t.abrupt("return",v(v({},e),{},{meta:j(e).map((function(t,n){return v(v({},t.options.meta),(e.matched[n]||{}).meta)}))}));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function A(t,e){return T.apply(this,arguments)}function T(){return(T=Object(o.a)(regeneratorRuntime.mark((function t(e,n){var o,c,f,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.context||(e.context={isStatic:!0,isDev:!1,isHMR:!1,app:e,store:e.store,payload:n.payload,error:n.error,base:e.router.options.base,env:{baseUrl:"https://mangamark.herokuapp.com/api/"}},n.req&&(e.context.req=n.req),n.res&&(e.context.res=n.res),n.ssrContext&&(e.context.ssrContext=n.ssrContext),e.context.redirect=function(t,path,n){if(t){e.context._redirected=!0;var o=Object(r.a)(path);if("number"==typeof t||"undefined"!==o&&"object"!==o||(n=path||{},path=t,o=Object(r.a)(path),t=302),"object"===o&&(path=e.router.resolve(path).route.fullPath),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path))throw path=Object(h.d)(path,n),window.location.replace(path),new Error("ERR_REDIRECT");e.context.next({path:path,query:n,status:t})}},e.context.nuxtState=window.__NUXT__),t.next=3,Promise.all([E(n.route),E(n.from)]);case 3:o=t.sent,c=Object(l.a)(o,2),f=c[0],d=c[1],n.route&&(e.context.route=f),n.from&&(e.context.from=d),e.context.next=n.next,e.context._redirected=!1,e.context._errored=!1,e.context.isHMR=!1,e.context.params=e.context.route.params||{},e.context.query=e.context.route.query||{};case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function U(t,e){return!t.length||e._redirected||e._errored?Promise.resolve():L(t[0],e).then((function(){return U(t.slice(1),e)}))}function L(t,e){var n;return(n=2===t.length?new Promise((function(n){t(e,(function(t,data){t&&e.error(t),n(data=data||{})}))})):t(e))&&n instanceof Promise&&"function"==typeof n.then?n:Promise.resolve(n)}function N(base,t){if("hash"===t)return window.location.hash.replace(/^#\//,"");base=decodeURI(base).slice(0,-1);var path=decodeURI(window.location.pathname);base&&path.startsWith(base)&&(path=path.slice(base.length));var e=(path||"/")+window.location.search+window.location.hash;return Object(h.c)(e)}function I(t,e){return function(t,e){for(var n=new Array(t.length),i=0;i<t.length;i++)"object"===Object(r.a)(t[i])&&(n[i]=new RegExp("^(?:"+t[i].pattern+")$",z(e)));return function(e,r){for(var path="",data=e||{},o=(r||{}).pretty?V:encodeURIComponent,c=0;c<t.length;c++){var l=t[c];if("string"!=typeof l){var f=data[l.name||"pathMatch"],h=void 0;if(null==f){if(l.optional){l.partial&&(path+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(Array.isArray(f)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<f.length;d++){if(h=o(f[d]),!n[c].test(h))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(h)+"`");path+=(0===d?l.prefix:l.delimiter)+h}}else{if(h=l.asterisk?F(f):o(f),!n[c].test(h))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+h+'"');path+=l.prefix+h}}else path+=l}return path}}(function(t,e){var n,r=[],o=0,c=0,path="",l=e&&e.delimiter||"/";for(;null!=(n=B.exec(t));){var f=n[0],h=n[1],d=n.index;if(path+=t.slice(c,d),c=d+f.length,h)path+=h[1];else{var v=t[c],m=n[2],y=n[3],x=n[4],w=n[5],_=n[6],k=n[7];path&&(r.push(path),path="");var O=null!=m&&null!=v&&v!==m,$="+"===_||"*"===_,j="?"===_||"*"===_,S=n[2]||l,pattern=x||w;r.push({name:y||o++,prefix:m||"",delimiter:S,optional:j,repeat:$,partial:O,asterisk:Boolean(k),pattern:pattern?K(pattern):k?".*":"[^"+H(S)+"]+?"})}}c<t.length&&(path+=t.substr(c));path&&r.push(path);return r}(t,e),e)}function D(t,e){var n={},r=v(v({},t),e);for(var o in r)String(t[o])!==String(e[o])&&(n[o]=!0);return n}function M(t){var e;if(t.message||"string"==typeof t)e=t.message||t;else try{e=JSON.stringify(t,null,2)}catch(n){e="[".concat(t.constructor.name,"]")}return v(v({},t),{},{message:e,statusCode:t.statusCode||t.status||t.response&&t.response.status||500})}window.onNuxtReadyCbs=[],window.onNuxtReady=function(t){window.onNuxtReadyCbs.push(t)};var B=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function V(t,e){var n=e?/[?#]/g:/[/?#]/g;return encodeURI(t).replace(n,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function F(t){return V(t,!0)}function H(t){return t.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function K(t){return t.replace(/([=!:$/()])/g,"\\$1")}function z(t){return t&&t.sensitive?"":"i"}function W(t,e,n){t.$options[e]||(t.$options[e]=[]),t.$options[e].includes(n)||t.$options[e].push(n)}var J=h.b,Q=(h.e,h.a);function X(t){try{window.history.scrollRestoration=t}catch(t){}}},191:function(t,e,n){"use strict";n(38),n(22),n(20),n(4),n(21),n(23),n(25),n(6),n(46),n(41),n(40);var r=n(3);function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,f=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return l=t.done,t},e:function(t){f=!0,o=t},f:function(){try{l||null==n.return||n.return()}finally{if(f)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var l=window.requestIdleCallback||function(t){var e=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-e))}})}),1)},f=window.cancelIdleCallback||function(t){clearTimeout(t)},h=window.IntersectionObserver&&new window.IntersectionObserver((function(t){t.forEach((function(t){var e=t.intersectionRatio,link=t.target;e<=0||!link.__prefetch||link.__prefetch()}))}));e.a={name:"NuxtLink",extends:r.a.component("RouterLink"),props:{prefetch:{type:Boolean,default:!0},noPrefetch:{type:Boolean,default:!1}},mounted:function(){this.prefetch&&!this.noPrefetch&&(this.handleId=l(this.observe,{timeout:2e3}))},beforeDestroy:function(){f(this.handleId),this.__observed&&(h.unobserve(this.$el),delete this.$el.__prefetch)},methods:{observe:function(){h&&this.shouldPrefetch()&&(this.$el.__prefetch=this.prefetchLink.bind(this),h.observe(this.$el),this.__observed=!0)},shouldPrefetch:function(){return this.getPrefetchComponents().length>0},canPrefetch:function(){var t=navigator.connection;return!(this.$nuxt.isOffline||t&&((t.effectiveType||"").includes("2g")||t.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map((function(t){return t.components.default})).filter((function(t){return"function"==typeof t&&!t.options&&!t.__prefetched}))},prefetchLink:function(){if(this.canPrefetch()){h.unobserve(this.$el);var t,e=o(this.getPrefetchComponents());try{for(e.s();!(t=e.n()).done;){var n=t.value,r=n();r instanceof Promise&&r.catch((function(){})),n.__prefetched=!0}}catch(t){e.e(t)}finally{e.f()}}}}}},245:function(t,e,n){var r=n(408);function o(){return(o=r(regeneratorRuntime.mark((function t(){var e,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(!1 in navigator)){t.next=2;break}throw new Error("serviceWorker is not supported in current browser!");case 2:return t.next=4,n.e(12).then(n.bind(null,573));case 4:return e=t.sent,r=e.Workbox,o=new r("/sw.js",{scope:"/"}),t.next=9,o.register();case 9:return t.abrupt("return",o);case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}n(74),window.$workbox=function(){return o.apply(this,arguments)}().catch((function(t){}))},279:function(t,e,n){var content=n(334);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(10).default)("52c366c7",content,!0,{sourceMap:!1})},280:function(t,e,n){var content=n(338);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(10).default)("3191d5ad",content,!0,{sourceMap:!1})},281:function(t,e,n){var content=n(346);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(10).default)("932a8f60",content,!0,{sourceMap:!1})},305:function(t){t.exports=JSON.parse('{"title":"MangaMark","meta":[{"hid":"charset","charset":"utf-8"},{"hid":"viewport","name":"viewport","content":"width=device-width, initial-scale=1"},{"hid":"mobile-web-app-capable","name":"mobile-web-app-capable","content":"yes"},{"hid":"apple-mobile-web-app-title","name":"apple-mobile-web-app-title","content":"MangaMark"},{"hid":"author","name":"author","content":"Quyen Truong"},{"hid":"og:site_name","name":"og:site_name","property":"og:site_name","content":"MangaMark"}],"link":[{"hid":"shortcut-icon","rel":"shortcut icon","href":"/favicon.png"},{"hid":"apple-touch-icon","rel":"apple-touch-icon","href":"/_nuxt/icons/icon_512x512.d3360c.png","sizes":"512x512"},{"rel":"manifest","href":"/_nuxt/manifest.69a46d49.json","hid":"manifest","crossorigin":"use-credentials"}],"htmlAttrs":{"lang":"en"}}')},308:function(t,e,n){"use strict";var r=n(31),o=(n(74),n(21),n(3)),c=n(18),l=window.__NUXT__;function f(){if(!this._hydrated)return this.$fetch()}function h(){if((t=this).$vnode&&t.$vnode.elm&&t.$vnode.elm.dataset&&t.$vnode.elm.dataset.fetchKey){var t;this._hydrated=!0,this._fetchKey=this.$vnode.elm.dataset.fetchKey;var data=l.fetch[this._fetchKey];if(data&&data._error)this.$fetchState.error=data._error;else for(var e in data)o.a.set(this.$data,e,data[e])}}function d(){var t=this;return this._fetchPromise||(this._fetchPromise=v.call(this).then((function(){delete t._fetchPromise}))),this._fetchPromise}function v(){return m.apply(this,arguments)}function m(){return(m=Object(r.a)(regeneratorRuntime.mark((function t(){var e,n,r,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.$nuxt.nbFetching++,this.$fetchState.pending=!0,this.$fetchState.error=null,this._hydrated=!1,e=null,n=Date.now(),t.prev=6,t.next=9,this.$options.fetch.call(this);case 9:t.next=15;break;case 11:t.prev=11,t.t0=t.catch(6),e=Object(c.p)(t.t0);case 15:if(!((r=this._fetchDelay-(Date.now()-n))>0)){t.next=19;break}return t.next=19,new Promise((function(t){return setTimeout(t,r)}));case 19:this.$fetchState.error=e,this.$fetchState.pending=!1,this.$fetchState.timestamp=Date.now(),this.$nextTick((function(){return o.$nuxt.nbFetching--}));case 23:case"end":return t.stop()}}),t,this,[[6,11]])})))).apply(this,arguments)}e.a={beforeCreate:function(){Object(c.l)(this)&&(this._fetchDelay="number"==typeof this.$options.fetchDelay?this.$options.fetchDelay:200,o.a.util.defineReactive(this,"$fetchState",{pending:!1,error:null,timestamp:Date.now()}),this.$fetch=d.bind(this),Object(c.a)(this,"created",h),Object(c.a)(this,"beforeMount",f))}}},309:function(t,e,n){t.exports=n(310)},310:function(t,e,n){"use strict";n.r(e),function(t){n(23),n(6),n(46);var e=n(17),r=n(31),o=(n(265),n(318),n(321),n(323),n(74),n(25),n(4),n(5),n(38),n(22),n(20),n(41),n(21),n(40),n(3)),c=n(297),l=n(151),f=n(18),h=n(89),d=n(308),v=n(191);function m(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}o.a.__nuxt__fetch__mixin__||(o.a.mixin(d.a),o.a.__nuxt__fetch__mixin__=!0),o.a.component(v.a.name,v.a),o.a.component("NLink",v.a),t.fetch||(t.fetch=c.a);var x,w,_=[],k=window.__NUXT__||{},O=k.config||{};O._app&&(n.p=Object(f.v)(O._app.cdnURL,O._app.assetsPath)),Object.assign(o.a.config,{silent:!0,performance:!1});var $=o.a.config.errorHandler||console.error;function j(t,e,n){for(var r=function(component){var t=function(component,t){if(!component||!component.options||!component.options[t])return{};var option=component.options[t];if("function"==typeof option){for(var e=arguments.length,n=new Array(e>2?e-2:0),r=2;r<e;r++)n[r-2]=arguments[r];return option.apply(void 0,n)}return option}(component,"transition",e,n)||{};return"string"==typeof t?{name:t}:t},o=n?Object(f.g)(n):[],c=Math.max(t.length,o.length),l=[],h=function(i){var e=Object.assign({},r(t[i])),n=Object.assign({},r(o[i]));Object.keys(e).filter((function(t){return void 0!==e[t]&&!t.toLowerCase().includes("leave")})).forEach((function(t){n[t]=e[t]})),l.push(n)},i=0;i<c;i++)h(i);return l}function S(t,e,n){return C.apply(this,arguments)}function C(){return(C=Object(r.a)(regeneratorRuntime.mark((function t(e,n,r){var o,c,l,h,d=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._routeChanged=Boolean(x.nuxt.err)||n.name!==e.name,this._paramChanged=!this._routeChanged&&n.path!==e.path,this._queryChanged=!this._paramChanged&&n.fullPath!==e.fullPath,this._diffQuery=this._queryChanged?Object(f.i)(e.query,n.query):[],(this._routeChanged||this._paramChanged)&&this.$loading.start&&!this.$loading.manual&&this.$loading.start(),t.prev=5,!this._queryChanged){t.next=12;break}return t.next=9,Object(f.r)(e,(function(t,e){return{Component:t,instance:e}}));case 9:o=t.sent,o.some((function(t){var r=t.Component,o=t.instance,c=r.options.watchQuery;return!0===c||(Array.isArray(c)?c.some((function(t){return d._diffQuery[t]})):"function"==typeof c&&c.apply(o,[e.query,n.query]))}))&&this.$loading.start&&!this.$loading.manual&&this.$loading.start();case 12:r(),t.next=26;break;case 15:if(t.prev=15,t.t0=t.catch(5),c=t.t0||{},l=c.statusCode||c.status||c.response&&c.response.status||500,h=c.message||"",!/^Loading( CSS)? chunk (\d)+ failed\./.test(h)){t.next=23;break}return window.location.reload(!0),t.abrupt("return");case 23:this.error({statusCode:l,message:h}),this.$nuxt.$emit("routeChanged",e,n,c),r();case 26:case"end":return t.stop()}}),t,this,[[5,15]])})))).apply(this,arguments)}function R(t,e){return k.serverRendered&&e&&Object(f.b)(t,e),t._Ctor=t,t}function E(t){return Object(f.d)(t,function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(e,n,r,o,c){var l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e||e.options){t.next=4;break}return t.next=3,e();case 3:e=t.sent;case 4:return l=R(Object(f.s)(e),k.data?k.data[c]:null),r.components[o]=l,t.abrupt("return",l);case 7:case"end":return t.stop()}}),t)})));return function(e,n,r,o,c){return t.apply(this,arguments)}}())}function P(t,e,n){var r=this,o=["auth"],c=!1;if(void 0!==n&&(o=[],(n=Object(f.s)(n)).options.middleware&&(o=o.concat(n.options.middleware)),t.forEach((function(t){t.options.middleware&&(o=o.concat(t.options.middleware))}))),o=o.map((function(t){return"function"==typeof t?t:("function"!=typeof l.a[t]&&(c=!0,r.error({statusCode:500,message:"Unknown middleware "+t})),l.a[t])})),!c)return Object(f.o)(o,e)}function A(t,e,n){return T.apply(this,arguments)}function T(){return(T=Object(r.a)(regeneratorRuntime.mark((function t(e,n,o){var c,l,d,v,y,w,k,O,$,S,C,R,E,A,T,U=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!1!==this._routeChanged||!1!==this._paramChanged||!1!==this._queryChanged){t.next=2;break}return t.abrupt("return",o());case 2:return!1,e===n?(_=[],!0):(c=[],_=Object(f.g)(n,c).map((function(t,i){return Object(f.c)(n.matched[c[i]].path)(n.params)}))),l=!1,d=function(path){n.path===path.path&&U.$loading.finish&&U.$loading.finish(),n.path!==path.path&&U.$loading.pause&&U.$loading.pause(),l||(l=!0,o(path))},t.next=8,Object(f.t)(x,{route:e,from:n,next:d.bind(this)});case 8:if(this._dateLastError=x.nuxt.dateErr,this._hadError=Boolean(x.nuxt.err),v=[],(y=Object(f.g)(e,v)).length){t.next=27;break}return t.next=15,P.call(this,y,x.context);case 15:if(!l){t.next=17;break}return t.abrupt("return");case 17:return w=(h.a.options||h.a).layout,t.next=20,this.loadLayout("function"==typeof w?w.call(h.a,x.context):w);case 20:return k=t.sent,t.next=23,P.call(this,y,x.context,k);case 23:if(!l){t.next=25;break}return t.abrupt("return");case 25:return x.context.error({statusCode:404,message:"This page could not be found"}),t.abrupt("return",o());case 27:return y.forEach((function(t){t._Ctor&&t._Ctor.options&&(t.options.asyncData=t._Ctor.options.asyncData,t.options.fetch=t._Ctor.options.fetch)})),this.setTransitions(j(y,e,n)),t.prev=29,t.next=32,P.call(this,y,x.context);case 32:if(!l){t.next=34;break}return t.abrupt("return");case 34:if(!x.context._errored){t.next=36;break}return t.abrupt("return",o());case 36:return"function"==typeof(O=y[0].options.layout)&&(O=O(x.context)),t.next=40,this.loadLayout(O);case 40:return O=t.sent,t.next=43,P.call(this,y,x.context,O);case 43:if(!l){t.next=45;break}return t.abrupt("return");case 45:if(!x.context._errored){t.next=47;break}return t.abrupt("return",o());case 47:$=!0,t.prev=48,S=m(y),t.prev=50,S.s();case 52:if((C=S.n()).done){t.next=63;break}if("function"==typeof(R=C.value).options.validate){t.next=56;break}return t.abrupt("continue",61);case 56:return t.next=58,R.options.validate(x.context);case 58:if($=t.sent){t.next=61;break}return t.abrupt("break",63);case 61:t.next=52;break;case 63:t.next=68;break;case 65:t.prev=65,t.t0=t.catch(50),S.e(t.t0);case 68:return t.prev=68,S.f(),t.finish(68);case 71:t.next=77;break;case 73:return t.prev=73,t.t1=t.catch(48),this.error({statusCode:t.t1.statusCode||"500",message:t.t1.message}),t.abrupt("return",o());case 77:if($){t.next=80;break}return this.error({statusCode:404,message:"This page could not be found"}),t.abrupt("return",o());case 80:return t.next=82,Promise.all(y.map(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(r,i){var o,c,l,h,d,m,y,w,p;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r._path=Object(f.c)(e.matched[v[i]].path)(e.params),r._dataRefresh=!1,o=r._path!==_[i],U._routeChanged&&o?r._dataRefresh=!0:U._paramChanged&&o?(c=r.options.watchParam,r._dataRefresh=!1!==c):U._queryChanged&&(!0===(l=r.options.watchQuery)?r._dataRefresh=!0:Array.isArray(l)?r._dataRefresh=l.some((function(t){return U._diffQuery[t]})):"function"==typeof l&&(E||(E=Object(f.h)(e)),r._dataRefresh=l.apply(E[i],[e.query,n.query]))),U._hadError||!U._isMounted||r._dataRefresh){t.next=6;break}return t.abrupt("return");case 6:return h=[],d=r.options.asyncData&&"function"==typeof r.options.asyncData,m=Boolean(r.options.fetch)&&r.options.fetch.length,y=d&&m?30:45,d&&((w=Object(f.q)(r.options.asyncData,x.context)).then((function(t){Object(f.b)(r,t),U.$loading.increase&&U.$loading.increase(y)})),h.push(w)),U.$loading.manual=!1===r.options.loading,m&&((p=r.options.fetch(x.context))&&(p instanceof Promise||"function"==typeof p.then)||(p=Promise.resolve(p)),p.then((function(t){U.$loading.increase&&U.$loading.increase(y)})),h.push(p)),t.abrupt("return",Promise.all(h));case 14:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()));case 82:l||(this.$loading.finish&&!this.$loading.manual&&this.$loading.finish(),o()),t.next=99;break;case 85:if(t.prev=85,t.t2=t.catch(29),"ERR_REDIRECT"!==(A=t.t2||{}).message){t.next=90;break}return t.abrupt("return",this.$nuxt.$emit("routeChanged",e,n,A));case 90:return _=[],Object(f.k)(A),"function"==typeof(T=(h.a.options||h.a).layout)&&(T=T(x.context)),t.next=96,this.loadLayout(T);case 96:this.error(A),this.$nuxt.$emit("routeChanged",e,n,A),o();case 99:case"end":return t.stop()}}),t,this,[[29,85],[48,73],[50,65,68,71]])})))).apply(this,arguments)}function U(t,n){Object(f.d)(t,(function(t,n,r,c){return"object"!==Object(e.a)(t)||t.options||((t=o.a.extend(t))._Ctor=t,r.components[c]=t),t}))}function L(t){var e=Boolean(this.$options.nuxt.err);this._hadError&&this._dateLastError===this.$options.nuxt.dateErr&&(e=!1);var n=e?(h.a.options||h.a).layout:t.matched[0].components.default.options.layout;"function"==typeof n&&(n=n(x.context)),this.setLayout(n)}function N(t){t._hadError&&t._dateLastError===t.$options.nuxt.dateErr&&t.error()}function I(t,e){var n=this;if(!1!==this._routeChanged||!1!==this._paramChanged||!1!==this._queryChanged){var r=Object(f.h)(t),c=Object(f.g)(t),l=!1;o.a.nextTick((function(){r.forEach((function(t,i){if(t&&!t._isDestroyed&&t.constructor._dataRefresh&&c[i]===t.constructor&&!0!==t.$vnode.data.keepAlive&&"function"==typeof t.constructor.options.data){var e=t.constructor.options.data.call(t);for(var n in e)o.a.set(t.$data,n,e[n]);l=!0}})),l&&window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),N(n)}))}}function D(t){window.onNuxtReadyCbs.forEach((function(e){"function"==typeof e&&e(t)})),"function"==typeof window._onNuxtLoaded&&window._onNuxtLoaded(t),w.afterEach((function(e,n){o.a.nextTick((function(){return t.$nuxt.$emit("routeChanged",e,n)}))}))}function M(){return(M=Object(r.a)(regeneratorRuntime.mark((function t(e){var n,r,c,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return x=e.app,w=e.router,e.store,n=new o.a(x),r=function(){n.$mount("#__nuxt"),w.afterEach(U),w.afterEach(L.bind(n)),w.afterEach(I.bind(n)),o.a.nextTick((function(){D(n)}))},t.next=7,Promise.all(E(x.context.route));case 7:if(c=t.sent,n.setTransitions=n.$options.nuxt.setTransitions.bind(n),c.length&&(n.setTransitions(j(c,w.currentRoute)),_=w.currentRoute.matched.map((function(t){return Object(f.c)(t.path)(w.currentRoute.params)}))),n.$loading={},k.error&&n.error(k.error),w.beforeEach(S.bind(n)),w.beforeEach(A.bind(n)),!k.serverRendered||!Object(f.n)(k.routePath,n.context.route.path)){t.next=16;break}return t.abrupt("return",r());case 16:return l=function(){U(w.currentRoute,w.currentRoute),L.call(n,w.currentRoute),N(n),r()},t.next=19,new Promise((function(t){return setTimeout(t,0)}));case 19:A.call(n,w.currentRoute,w.currentRoute,(function(path){if(path){var t=w.afterEach((function(e,n){t(),l()}));w.push(path,void 0,(function(t){t&&$(t)}))}else l()}));case 20:case"end":return t.stop()}}),t)})))).apply(this,arguments)}Object(h.b)(null,k.config).then((function(t){return M.apply(this,arguments)})).catch($)}.call(this,n(104))},333:function(t,e,n){"use strict";n(279)},334:function(t,e,n){var r=n(9)(!1);r.push([t.i,"h1[data-v-fe76af36]{font-size:20px}",""]),t.exports=r},337:function(t,e,n){"use strict";n(280)},338:function(t,e,n){var r=n(9)(!1);r.push([t.i,".nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;opacity:1;transition:width .1s,opacity .4s;background-color:#fff;z-index:999999}.nuxt-progress.nuxt-progress-notransition{transition:none}.nuxt-progress-failed{background-color:red}",""]),t.exports=r},339:function(t,e,n){var content=n(340);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(10).default)("1c60ac70",content,!0,{sourceMap:!1})},340:function(t,e,n){var r=n(9),o=n(341),c=n(342),l=n(343),f=n(344),h=r(!1),d=o(c),v=o(l),m=o(f);h.push([t.i,'@font-face{font-family:"Be Vietnam";src:local("Be Vietnam Regular"),local("BeVietnam-Regular"),url('+d+') format("woff2"),url('+v+') format("woff"),url('+m+') format("truetype");font-weight:400;font-style:normal}',""]),t.exports=h},342:function(t,e,n){t.exports=n.p+"fonts/subset-BeVietnam-Regular.da5a826.woff2"},343:function(t,e,n){t.exports=n.p+"fonts/subset-BeVietnam-Regular.8f6ec8b.woff"},344:function(t,e,n){t.exports=n.p+"fonts/subset-BeVietnam-Regular.f8c90a1.ttf"},345:function(t,e,n){"use strict";n(281)},346:function(t,e,n){var r=n(9)(!1);r.push([t.i,".theme--dark.v-icon,.theme--light.v-icon{opacity:1!important}",""]),t.exports=r},398:function(t,e){},399:function(t,e,n){"use strict";n.r(e),e.default={setSnackbar:function(t,e){var n=t.commit;e.showing=!0,e.timeout=2e3,e.color=e.color||"success",n("SET_SNACKBAR",e)}}},400:function(t,e,n){"use strict";n.r(e);var r=n(117);e.default={passwordConfirmationRules:function(t){return function(t,e){return[function(t){return!!t||"Confirmation Password is required"},function(){return t===e||"Password must match"}]}},getField:r.a}},401:function(t,e,n){"use strict";n.r(e);var r=n(117);e.default={form:function(t,e){t.form[e]=e},setArrayHeader:function(t,e){t.currentHeader[e.slot]=e.array},SET_SNACKBAR:function(t,e){t.snackbars.length>=5&&t.snackbars.shift(),t.snackbars=t.snackbars.concat(e)},updateField:r.d}},402:function(t,e,n){"use strict";n.r(e),e.default=function(){return{itemSlots:[{name:"item.name",value:"name"},{name:"item.season",value:"season"},{name:"item.quantity",value:"quantity"}],headersSlot:{Manga:[{text:"Name",value:"name"},{text:"Chapter",value:"quantity"},{text:"Last Read",value:"updated_at"},{text:"Actions",value:"action",sortable:!1}],Anime:[{text:"Name",value:"name"},{text:"Season",value:"season"},{text:"Episode",value:"quantity"},{text:"Last Watched",value:"updated_at"},{text:"Actions",value:"action",sortable:!1}],TVShow:[{text:"Name",value:"name"},{text:"Season",value:"season"},{text:"Episode",value:"quantity"},{text:"Last Watched",value:"updated_at"},{text:"Actions",value:"action",sortable:!1}]},currentHeader:{},snackbars:[]}}},427:function(t,e){function n(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id=427},89:function(t,e,n){"use strict";n.d(e,"b",(function(){return Me})),n.d(e,"a",(function(){return N}));n(5),n(6),n(4),n(7),n(8);var r=n(31),o=n(1),c=(n(74),n(25),n(20),n(21),n(3)),l=n(153),f=n(298),h=n(243),d=n.n(h),v=n(129),m=n.n(v),y=n(244),x=n(88),w=n(18);"scrollRestoration"in window.history&&(Object(w.u)("manual"),window.addEventListener("beforeunload",(function(){Object(w.u)("auto")})),window.addEventListener("load",(function(){Object(w.u)("manual")})));function _(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function k(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?_(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):_(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var O=function(){};c.a.use(y.a);var $={mode:"history",base:"/",linkActiveClass:"nuxt-link-active",linkExactActiveClass:"nuxt-link-exact-active",scrollBehavior:function(t,e,n){var r=!1,o=t!==e;n?r=n:o&&function(t){var e=Object(w.g)(t);if(1===e.length){var n=e[0].options;return!1!==(void 0===n?{}:n).scrollToTop}return e.some((function(t){var e=t.options;return e&&e.scrollToTop}))}(t)&&(r={x:0,y:0});var c=window.$nuxt;return(!o||t.path===e.path&&t.hash!==e.hash)&&c.$nextTick((function(){return c.$emit("triggerScroll")})),new Promise((function(e){c.$once("triggerScroll",(function(){if(t.hash){var n=t.hash;void 0!==window.CSS&&void 0!==window.CSS.escape&&(n="#"+window.CSS.escape(n.substr(1)));try{document.querySelector(n)&&(r={selector:n})}catch(t){console.warn("Failed to save scroll position. Please add CSS.escape() polyfill (https://github.com/mathiasbynens/CSS.escape).")}}e(r)}))}))},routes:[{path:"/profile",component:function(){return Object(w.m)(n.e(8).then(n.bind(null,581)))},name:"profile"},{path:"/guest/forgot-password",component:function(){return Object(w.m)(n.e(2).then(n.bind(null,582)))},name:"guest-forgot-password"},{path:"/guest/login",component:function(){return Object(w.m)(n.e(3).then(n.bind(null,583)))},name:"guest-login"},{path:"/guest/register",component:function(){return Object(w.m)(n.e(4).then(n.bind(null,584)))},name:"guest-register"},{path:"/guest/reset-password",component:function(){return Object(w.m)(n.e(5).then(n.bind(null,585)))},name:"guest-reset-password"},{path:"/guest/verify",component:function(){return Object(w.m)(n.e(6).then(n.bind(null,586)))},name:"guest-verify"},{path:"/",component:function(){return Object(w.m)(n.e(7).then(n.bind(null,580)))},name:"index"}],fallback:!1};function j(t,e){var base=e._app&&e._app.basePath||$.base,n=new y.a(k(k({},$),{},{base:base})),r=n.push;n.push=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:O,n=arguments.length>2?arguments[2]:void 0;return r.call(this,t,e,n)};var o=n.resolve.bind(n);return n.resolve=function(t,e,n){return"string"==typeof t&&(t=Object(x.c)(t)),o(t,e,n)},n}var S={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(t,e){var n=e.parent,data=e.data,r=e.props,o=n.$createElement;data.nuxtChild=!0;for(var c=n,l=n.$nuxt.nuxt.transitions,f=n.$nuxt.nuxt.defaultTransition,h=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&h++,n=n.$parent;data.nuxtChildDepth=h;var d=l[h]||f,v={};C.forEach((function(t){void 0!==d[t]&&(v[t]=d[t])}));var m={};R.forEach((function(t){"function"==typeof d[t]&&(m[t]=d[t].bind(c))}));var y=m.beforeEnter;if(m.beforeEnter=function(t){if(window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")})),y)return y.call(c,t)},!1===d.css){var x=m.leave;(!x||x.length<2)&&(m.leave=function(t,e){x&&x.call(c,t),c.$nextTick(e)})}var w=o("routerView",data);return r.keepAlive&&(w=o("keep-alive",{props:r.keepAliveProps},[w])),o("transition",{props:v,on:m},[w])}},C=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],R=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],E={layout:"empty",props:{error:{type:Object,default:null}},head:function(){return{title:404===this.error.statusCode?this.pageNotFound:this.otherError}},data:function(){return{pageNotFound:"404 Not Found",otherError:"An error occurred"}}},P=(n(333),n(112)),A=n(160),T=n.n(A),U=n(223),L=Object(P.a)(E,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-app",{attrs:{dark:""}},[404===t.error.statusCode?n("h1",[t._v("\n    "+t._s(t.pageNotFound)+"\n  ")]):n("h1",[t._v("\n    "+t._s(t.otherError)+"\n  ")]),t._v(" "),n("NuxtLink",{attrs:{to:"/"}},[t._v("\n    Home page\n  ")])],1)}),[],!1,null,"fe76af36",null),N=L.exports;T()(L,{VApp:U.a});var I=n(16),D=(n(56),n(48),n(49),{name:"Nuxt",components:{NuxtChild:S,NuxtError:N},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},errorCaptured:function(t){this.displayingNuxtError&&(this.errorFromNuxtError=t,this.$forceUpdate())},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(w.c)(this.$route.matched[0].path)(this.$route.params);var t=Object(I.a)(this.$route.matched,1)[0];if(!t)return this.$route.path;var e=t.components.default;if(e&&e.options){var n=e.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(t.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(t){var e=this;return this.nuxt.err?this.errorFromNuxtError?(this.$nextTick((function(){return e.errorFromNuxtError=!1})),t("div",{},[t("h2","An error occurred while showing the error page"),t("p","Unfortunately an error occurred and while showing the error page another error occurred"),t("p","Error details: ".concat(this.errorFromNuxtError.toString())),t("nuxt-link",{props:{to:"/"}},"Go back to home")])):(this.displayingNuxtError=!0,this.$nextTick((function(){return e.displayingNuxtError=!1})),t(N,{props:{error:this.nuxt.err}})):t("NuxtChild",{key:this.routerViewKey,props:this.$props})}}),M=(n(23),n(46),n(41),n(40),{name:"NuxtLoading",data:function(){return{percent:0,show:!1,canSucceed:!0,reversed:!1,skipTimerCount:0,rtl:!1,throttle:200,duration:5e3,continuous:!1}},computed:{left:function(){return!(!this.continuous&&!this.rtl)&&(this.rtl?this.reversed?"0px":"auto":this.reversed?"auto":"0px")}},beforeDestroy:function(){this.clear()},methods:{clear:function(){clearInterval(this._timer),clearTimeout(this._throttle),this._timer=null},start:function(){var t=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout((function(){return t.startTimer()}),this.throttle):this.startTimer(),this},set:function(t){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(t))),this},get:function(){return this.percent},increase:function(t){return this.percent=Math.min(100,Math.floor(this.percent+t)),this},decrease:function(t){return this.percent=Math.max(0,Math.floor(this.percent-t)),this},pause:function(){return clearInterval(this._timer),this},resume:function(){return this.startTimer(),this},finish:function(){return this.percent=this.reversed?0:100,this.hide(),this},hide:function(){var t=this;return this.clear(),setTimeout((function(){t.show=!1,t.$nextTick((function(){t.percent=0,t.reversed=!1}))}),500),this},fail:function(t){return this.canSucceed=!1,this},startTimer:function(){var t=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval((function(){t.skipTimerCount>0?t.skipTimerCount--:(t.reversed?t.decrease(t._cut):t.increase(t._cut),t.continuous&&(t.percent>=100||t.percent<=0)&&(t.skipTimerCount=1,t.reversed=!t.reversed))}),100)}},render:function(t){var e=t(!1);return this.show&&(e=t("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),e}}),B=(n(337),Object(P.a)(M,undefined,undefined,!1,null,null,null).exports),V=(n(339),n(117));function F(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}var H={computed:function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?F(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):F(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({},Object(V.c)(["snackbars"])),created:function(){this.$vuetify.theme.dark=this.$warehouse.get("dark",!1)},methods:{logout:function(){this.$auth.logout(),this.$store.dispatch("setSnackbar",{text:"Logging out"})},setDark:function(){this.$vuetify.theme.dark=!this.$vuetify.theme.dark,this.$warehouse.set("dark",this.$vuetify.theme.dark)}}},K=(n(345),n(224)),z=n(146),W=n(225),J=n(226),Q=n(120),X=n(227),Y=n(228),Z=n(148),G=n(67),tt=n(121),et=n(122),nt=n(230),ot=n(231),it=n(232),at=n(113),st=Object(P.a)(H,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-app",[n("v-app-bar",{attrs:{color:!0===t.$vuetify.theme.dark?"":"blue",app:"",dark:""}},[n("v-toolbar-title",{staticClass:"white--text"},[n("v-btn",{attrs:{color:!0===t.$vuetify.theme.dark?"":"white",to:"/",icon:""}},[n("v-icon",[t._v("mdi-home")])],1)],1),t._v(" "),n("v-spacer"),t._v(" "),n("v-label",[t._v(t._s(t.$vuetify.breakpoint.name))]),t._v(" "),n("v-spacer"),t._v(" "),n("v-label",[t._v(t._s(t.$vuetify.breakpoint.width))]),t._v(" "),n("v-btn",{attrs:{icon:""},on:{click:t.setDark}},[t.$vuetify.theme.dark?n("v-icon",[t._v("\n        mdi-brightness-6\n      ")]):n("v-icon",[t._v("\n        mdi-brightness-7\n      ")])],1),t._v(" "),n("v-toolbar-items",[t.$auth.loggedIn?[n("v-menu",{attrs:{"offset-y":"","close-on-content-click":""},scopedSlots:t._u([{key:"activator",fn:function(e){var r=e.on;return[n("v-btn",t._g({attrs:{icon:"xs"===t.$vuetify.breakpoint.name,text:"",color:"white",dark:""}},r),["xs"===t.$vuetify.breakpoint.name?n("v-icon",[t._v("\n                mdi-account\n              ")]):n("span",{staticClass:"bartitle",staticStyle:{"text-transform":"none"}},[t._v("Welcome, "+t._s(t.$auth.user.email))])],1)]}}],null,!1,130240441)},[t._v(" "),n("v-list",[n("v-list-item",{attrs:{to:"/profile"}},[n("v-list-item-icon",[n("v-icon",[t._v("mdi-account")])],1),t._v(" "),n("v-list-item-content",[n("v-list-item-title",[t._v("Profile")])],1)],1),t._v(" "),n("v-list-item",{on:{click:t.logout}},[n("v-list-item-icon",[n("v-icon",[t._v("mdi-logout")])],1),t._v(" "),n("v-list-item-content",[n("v-list-item-title",[t._v("Logout")])],1)],1)],1)],1)]:[n("v-btn",{attrs:{to:"/guest/register",color:"white",text:""}},[t._v("\n          Sign Up\n        ")]),t._v(" "),n("v-btn",{attrs:{to:"/guest/login",color:"white",text:""}},[t._v("\n          Login\n        ")])]],2)],1),t._v(" "),n("v-main",[n("v-container",{attrs:{fluid:""}},[n("nuxt")],1)],1),t._v(" "),t._l(t.snackbars.filter((function(s){return s.showing})),(function(e,r){return n("v-snackbar",{key:e.text+Math.random(),style:"bottom: "+(60*r+8)+"px",attrs:{timeout:e.timeout,color:e.color},model:{value:e.showing,callback:function(n){t.$set(e,"showing",n)},expression:"snackbar.showing"}},[t._v("\n    "+t._s(e.text)+"\n\n    "),n("v-btn",{attrs:{text:""},on:{click:function(t){e.showing=!1}}},[t._v("\n      Close\n    ")])],1)})),t._v(" "),n("v-footer",{attrs:{app:""}},[n("span",[t._v("© Quyen Truong "+t._s((new Date).getFullYear()))])])],2)}),[],!1,null,null,null),ut=st.exports;function ct(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return lt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function lt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}T()(st,{VApp:U.a,VAppBar:K.a,VBtn:z.a,VContainer:W.a,VFooter:J.a,VIcon:Q.a,VLabel:X.a,VList:Y.a,VListItem:Z.a,VListItemContent:G.g,VListItemIcon:tt.a,VListItemTitle:G.k,VMain:et.a,VMenu:nt.a,VSnackbar:ot.a,VSpacer:it.a,VToolbarItems:at.b,VToolbarTitle:at.c});var ft={_default:Object(w.s)(ut)},ht={render:function(t,e){var n=t("NuxtLoading",{ref:"loading"}),r=t(this.layout||"nuxt"),o=t("div",{domProps:{id:"__layout"},key:this.layoutName},[r]),c=t("transition",{props:{name:"layout",mode:"out-in"},on:{beforeEnter:function(t){window.$nuxt.$nextTick((function(){window.$nuxt.$emit("triggerScroll")}))}}},[o]);return t("div",{domProps:{id:"__nuxt"}},[n,c])},data:function(){return{isOnline:!0,layout:null,layoutName:"",nbFetching:0}},beforeCreate:function(){c.a.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){this.$root.$options.$nuxt=this,window.$nuxt=this,this.refreshOnlineStatus(),window.addEventListener("online",this.refreshOnlineStatus),window.addEventListener("offline",this.refreshOnlineStatus),this.error=this.nuxt.error,this.context=this.$options.context},mounted:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$loading=t.$refs.loading;case 1:case"end":return e.stop()}}),e)})))()},watch:{"nuxt.err":"errorChanged"},computed:{isOffline:function(){return!this.isOnline},isFetching:function(){return this.nbFetching>0},isPreview:function(){return Boolean(this.$options.previewData)}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},refresh:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((n=Object(w.h)(t.$route)).length){e.next=3;break}return e.abrupt("return");case 3:return t.$loading.start(),r=n.map((function(e){var p=[];if(e.$options.fetch&&e.$options.fetch.length&&p.push(Object(w.q)(e.$options.fetch,t.context)),e.$fetch)p.push(e.$fetch());else{var n,r=ct(Object(w.e)(e.$vnode.componentInstance));try{for(r.s();!(n=r.n()).done;){var component=n.value;p.push(component.$fetch())}}catch(t){r.e(t)}finally{r.f()}}return e.$options.asyncData&&p.push(Object(w.q)(e.$options.asyncData,t.context).then((function(t){for(var n in t)c.a.set(e.$data,n,t[n])}))),Promise.all(p)})),e.prev=5,e.next=8,Promise.all(r);case 8:e.next=15;break;case 10:e.prev=10,e.t0=e.catch(5),t.$loading.fail(e.t0),Object(w.k)(e.t0),t.error(e.t0);case 15:t.$loading.finish();case 16:case"end":return e.stop()}}),e,null,[[5,10]])})))()},errorChanged:function(){if(this.nuxt.err){this.$loading&&(this.$loading.fail&&this.$loading.fail(this.nuxt.err),this.$loading.finish&&this.$loading.finish());var t=(N.options||N).layout;"function"==typeof t&&(t=t(this.context)),this.setLayout(t)}},setLayout:function(t){return t&&ft["_"+t]||(t="default"),this.layoutName=t,this.layout=ft["_"+t],this.layout},loadLayout:function(t){return t&&ft["_"+t]||(t="default"),Promise.resolve(ft["_"+t])}},components:{NuxtLoading:B}};n(39),n(22);function pt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return vt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}c.a.use(l.a);var mt=["state","getters","actions","mutations"],gt={};(gt=function(t,e){if((t=t.default||t).commit)throw new Error("[nuxt] ".concat(e," should export a method that returns a Vuex instance."));return"function"!=typeof t&&(t=Object.assign({},t)),bt(t,e)}(n(398),"store/index.js")).modules=gt.modules||{},xt(n(399),"actions.js"),xt(n(400),"getters.js"),xt(n(401),"mutations.js"),xt(n(402),"state.js");var yt=gt instanceof Function?gt:function(){return new l.a.Store(Object.assign({strict:!1},gt))};function bt(t,e){if(t.state&&"function"!=typeof t.state){console.warn("'state' should be a method that returns an object in ".concat(e));var n=Object.assign({},t.state);t=Object.assign({},t,{state:function(){return n}})}return t}function xt(t,e){t=t.default||t;var n=e.replace(/\.(js|mjs)$/,"").split("/"),r=n[n.length-1],o="store/".concat(e);if(t="state"===r?function(t,e){if("function"!=typeof t){console.warn("".concat(e," should export a method that returns an object"));var n=Object.assign({},t);return function(){return n}}return bt(t,e)}(t,o):bt(t,o),mt.includes(r)){var c=r;_t(wt(gt,n,{isProperty:!0}),t,c)}else{"index"===r&&(n.pop(),r=n[n.length-1]);var l,f=wt(gt,n),h=pt(mt);try{for(h.s();!(l=h.n()).done;){var d=l.value;_t(f,t[d],d)}}catch(t){h.e(t)}finally{h.f()}!1===t.namespaced&&delete f.namespaced}}function wt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.isProperty,o=void 0!==r&&r;if(!e.length||o&&1===e.length)return t;var c=e.shift();return t.modules[c]=t.modules[c]||{},t.modules[c].namespaced=!0,t.modules[c].modules=t.modules[c].modules||{},wt(t.modules[c],e,{isProperty:o})}function _t(t,e,n){e&&("state"===n?t.state=e||t.state:t[n]=Object.assign({},t[n],e))}var kt=n(111),Ot={theme:{dark:!1,themes:{dark:{primary:"#1976d2",accent:"#424242",secondary:"#ff8f00",info:"#26a69a",warning:"#ffc107",error:"#dd2c00",success:"#00e676"}}}};c.a.use(kt.a,{});var $t=function(t){var e="function"==typeof Ot?Ot(t):Ot;e.icons=e.icons||{},e.icons.iconfont="mdi";var n=new kt.a(e);t.app.vuetify=n,t.$vuetify=n.framework},jt=n(301),St=n.n(jt),Ct=n(302),Rt=n.n(Ct),Et=n(303),Pt=n.n(Et),At="warehouse",Tt=function(t,e){var n=St()({moduleName:At,store:Pt.a});Rt()(t.store,n,{moduleName:"warehouse"}),t.$warehouse=n,e(At,n)},Ut=n(15),Lt=n(32),Nt=n(42),It=(n(38),n(304)),Dt="https://www.google.com/recaptcha/api.js",qt=function(){function t(e){var n=e.hideBadge,r=e.language,o=e.siteKey,c=e.version,l=e.size;if(Object(Lt.a)(this,t),!o)throw new Error("ReCaptcha error: No key provided");if(!c)throw new Error("ReCaptcha error: No version provided");this._elements={},this._eventBus=null,this._ready=!1,this.hideBadge=n,this.language=r||"en",this.siteKey=o,this.version=c,this.size=l}var e;return Object(Nt.a)(t,[{key:"destroy",value:function(){if(this._ready){this._ready=!1;var head=document.head,style=this._elements.style,t=Object(Ut.a)(document.head.querySelectorAll("script")).filter((function(script){return script.src.includes("recaptcha")}));t.length&&t.forEach((function(script){return head.removeChild(script)})),head.contains(style)&&head.removeChild(style)}}},{key:"execute",value:(e=Object(r.a)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.init();case 3:if(!("grecaptcha"in window)){t.next=5;break}return t.abrupt("return",window.grecaptcha.execute(this.siteKey,{action:e}));case 5:t.next=10;break;case 7:throw t.prev=7,t.t0=t.catch(0),new Error("ReCaptcha error: Failed to execute");case 10:case"end":return t.stop()}}),t,this,[[0,7]])}))),function(t){return e.apply(this,arguments)})},{key:"getResponse",value:function(){var t=this;return new Promise((function(e,n){if("grecaptcha"in window)if("invisible"==t.size)window.grecaptcha.execute(),window.recaptchaSuccessCallback=function(n){t._eventBus.emit("recaptcha-success",n),e(n)},window.recaptchaErrorCallback=function(e){t._eventBus.emit("recaptcha-error",e),n(e)};else{var r=window.grecaptcha.getResponse();if(r)t._eventBus.emit("recaptcha-success",r),e(r);else{var o="Failed to execute";t._eventBus.emit("recaptcha-error",o),n(o)}}}))}},{key:"init",value:function(){var t=this;if(this._ready)return Promise.resolve();this._eventBus=new It.EventEmitter,this._elements={script:document.createElement("script"),style:document.createElement("style")};var e=this._elements,script=e.script,style=e.style;return script.addEventListener("error",(function(){throw document.head.removeChild(script),new Error("ReCaptcha error: Failed to load script")})),script.setAttribute("async",""),script.setAttribute("defer",""),2===this.version?script.setAttribute("src",Dt+"?hl="+this.language):script.setAttribute("src",Dt+"?render="+this.siteKey),document.head.appendChild(script),window.recaptchaSuccessCallback=function(e){return t._eventBus.emit("recaptcha-success",e)},window.recaptchaExpiredCallback=function(){return t._eventBus.emit("recaptcha-expired")},window.recaptchaErrorCallback=function(){return t._eventBus.emit("recaptcha-error","Failed to execute")},this._ready=new Promise((function(e){script.addEventListener("load",(function(){3===t.version&&t.hideBadge?(style.innerHTML=".grecaptcha-badge { display: none }",document.head.appendChild(style)):2===t.version&&t.hideBadge&&(style.innerHTML=".grecaptcha-badge { visibility: hidden; }",document.head.appendChild(style)),window.grecaptcha.ready(e)}))})),this._ready}},{key:"on",value:function(t,e){return this._eventBus.on(t,e)}},{key:"reset",value:function(){2===this.version&&window.grecaptcha.reset()}}]),t}(),Mt=function(t,e){c.a.component("recaptcha",(function(){return n.e(11).then(n.bind(null,587))})),e("recaptcha",new qt({siteKey:"6LdA47AUAAAAAHgoSOBrxHt_gpgtvodDhBs9Atl4",version:2}))},Bt=n(245),Vt=n.n(Bt),Ft=n(17);n(55);function Ht(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Kt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function Kt(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function zt(t,e,n){return t.find((function(t){return n?t[e]===n:t[e]}))}var meta=n(305),Wt=function(t){!function(t,e){if("function"!=typeof t)for(var n in e){var r=e[n];if(Array.isArray(r)){t[n]=t[n]||[];var o,c=Ht(r);try{for(c.s();!(o=c.n()).done;){var l=o.value;l.hid&&zt(t[n],"hid",l.hid)||l.name&&zt(t[n],"name",l.name)||t[n].push(l)}}catch(t){c.e(t)}finally{c.f()}}else if("object"===Object(Ft.a)(r))for(var f in t[n]=t[n]||{},r)t[n][f]=r[f];else void 0===t[n]&&(t[n]=r)}else console.warn("Cannot merge meta. Avoid using head as a function!")}(t.app.head,meta)},Jt=function(t,e){return Qt.apply(this,arguments)};function Qt(){return(Qt=Object(r.a)(regeneratorRuntime.mark((function t(e,n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r={"64x64":"/_nuxt/icons/icon_64x64.d3360c.png","120x120":"/_nuxt/icons/icon_120x120.d3360c.png","144x144":"/_nuxt/icons/icon_144x144.d3360c.png","152x152":"/_nuxt/icons/icon_152x152.d3360c.png","192x192":"/_nuxt/icons/icon_192x192.d3360c.png","384x384":"/_nuxt/icons/icon_384x384.d3360c.png","512x512":"/_nuxt/icons/icon_512x512.d3360c.png",ipad_1536x2048:"/_nuxt/icons/splash_ipad_1536x2048.d3360c.png",ipadpro9_1536x2048:"/_nuxt/icons/splash_ipadpro9_1536x2048.d3360c.png",ipadpro10_1668x2224:"/_nuxt/icons/splash_ipadpro10_1668x2224.d3360c.png",ipadpro12_2048x2732:"/_nuxt/icons/splash_ipadpro12_2048x2732.d3360c.png",iphonese_640x1136:"/_nuxt/icons/splash_iphonese_640x1136.d3360c.png",iphone6_50x1334:"/_nuxt/icons/splash_iphone6_50x1334.d3360c.png",iphoneplus_1080x1920:"/_nuxt/icons/splash_iphoneplus_1080x1920.d3360c.png",iphonex_1125x2436:"/_nuxt/icons/splash_iphonex_1125x2436.d3360c.png",iphonexr_828x1792:"/_nuxt/icons/splash_iphonexr_828x1792.d3360c.png",iphonexsmax_1242x2688:"/_nuxt/icons/splash_iphonexsmax_1242x2688.d3360c.png"},n("icon",(function(t){return r[t+"x"+t]||""}));case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var Xt=n(158),Yt=n.n(Xt),Zt=n(306),Gt=n.n(Zt);function te(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function ee(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?te(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):te(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function ne(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return re(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return re(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function re(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}for(var oe={setBaseURL:function(t){this.defaults.baseURL=t},setHeader:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",o=ne(Array.isArray(r)?r:[r]);try{for(o.s();!(n=o.n()).done;){var c=n.value;if(!e)return void delete this.defaults.headers[c][t];this.defaults.headers[c][t]=e}}catch(t){o.e(t)}finally{o.f()}},setToken:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=t?(e?e+" ":"")+t:null;this.setHeader("Authorization",r,n)},onRequest:function(t){this.interceptors.request.use((function(e){return t(e)||e}))},onResponse:function(t){this.interceptors.response.use((function(e){return t(e)||e}))},onRequestError:function(t){this.interceptors.request.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onResponseError:function(t){this.interceptors.response.use(void 0,(function(e){return t(e)||Promise.reject(e)}))},onError:function(t){this.onRequestError(t),this.onResponseError(t)},create:function(t){return ue(Gt()(t,this.defaults))}},ie=function(){var t=se[ae];oe["$"+t]=function(){return this[t].apply(this,arguments).then((function(t){return t&&t.data}))}},ae=0,se=["request","delete","get","head","options","post","put","patch"];ae<se.length;ae++)ie();var ue=function(t){var e=Yt.a.create(t);return e.CancelToken=Yt.a.CancelToken,e.isCancel=Yt.a.isCancel,function(t){for(var e in oe)t[e]=oe[e].bind(t)}(e),e.onRequest((function(t){t.headers=ee(ee({},e.defaults.headers.common),t.headers)})),ce(e),e},ce=function(t){var e={finish:function(){},start:function(){},fail:function(){},set:function(){}},n=function(){var t="undefined"!=typeof window&&window.$nuxt;return t&&t.$loading&&t.$loading.set?t.$loading:e},r=0;t.onRequest((function(t){t&&!1===t.progress||r++})),t.onResponse((function(t){t&&t.config&&!1===t.config.progress||--r<=0&&(r=0,n().finish())})),t.onError((function(t){t&&t.config&&!1===t.config.progress||(r--,Yt.a.isCancel(t)?r<=0&&(r=0,n().finish()):(n().fail(),n().finish()))}));var o=function(t){if(r&&t.total){var progress=100*t.loaded/(t.total*r);n().set(Math.min(100,progress))}};t.defaults.onUploadProgress=o,t.defaults.onDownloadProgress=o},le=function(t,e){var n=t.$config&&t.$config.axios||{},r=n.browserBaseURL||n.browserBaseUrl||n.baseURL||n.baseUrl||"https://mangamark.herokuapp.com/api/";var o=ue({baseURL:r,headers:{common:{Accept:"application/json, text/plain, */*"},delete:{},get:{},head:{},post:{},put:{},patch:{}}});t.$axios=o,e("axios",o)},fe=n(246),he=n.n(fe),pe=function(t,e){t.$moment=he.a,e("moment",he.a)},de=n(247),ve=n.n(de);ve.a.config.autoSetContainer=!0,c.a.use(ve.a);var me=n(307),ge=n.n(me),ye=function(t){var e=t.app;c.a.use(ge.a,{vuetify:e.vuetify})},be=function(t,e){var n=function(t){return t.charAt(0).toUpperCase()+t.slice(1)};e("capitalize",n),t.$capitalize=n},xe=n(248),we=(n(274),n(130),function(t){return null==t}),_e=function(t){return!we(t)},ke=function(a,b){return a.split("?")[0].replace(/\/+$/,"")===b.split("?")[0].replace(/\/+$/,"")},Oe=function(u){return u&&u.length&&/^\/([a-zA-Z0-9@\-%_~][/a-zA-Z0-9@\-%_~]*)?([?][^#]*)?(#[^#]*)?$/.test(u)},$e=function(t,e,n){return t.matched.some((function(t){return Object.values(t.components).some((function(component){return component.options&&component.options[e]===n}))}))};function je(){var path=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=path.split("?")[0];return"/"===t.charAt(t.length-1)&&(t=t.slice(0,-1)),t}function Se(t){return"string"==typeof t?t:JSON.stringify(t)}function Ce(t){if("string"==typeof t)try{return JSON.parse(t)}catch(t){}return t}function Re(t,e){if(!e||!t)return t;if(e in t)return t[e];for(var n=Array.isArray(e)?e:(e+"").split("."),r=t;n.length&&r;)r=r[n.shift()];return r}var Ee=function(){function t(e,n){Object(Lt.a)(this,t),this.ctx=e,this.options=n,this._initState()}return Object(Nt.a)(t,[{key:"setUniversal",value:function(t,e){return we(e)?this.removeUniversal(t):(this.setState(t,e),this.setCookie(t,e),this.setLocalStorage(t,e),e)}},{key:"getUniversal",value:function(t){var e=this.getState(t);return we(e)&&(e=this.getCookie(t)),we(e)&&(e=this.getLocalStorage(t)),e}},{key:"syncUniversal",value:function(t,e){var n=this.getUniversal(t);return we(n)&&_e(e)&&(n=e),_e(n)&&this.setUniversal(t,n),n}},{key:"removeUniversal",value:function(t){this.removeState(t),this.removeLocalStorage(t),this.removeCookie(t)}},{key:"_initState",value:function(){var t=this;if(c.a.set(this,"_state",{}),this._useVuex=this.options.vuex&&this.ctx.store,this._useVuex){var e={namespaced:!0,state:function(){return t.options.initialState},mutations:{SET:function(t,e){c.a.set(t,e.key,e.value)}}};this.ctx.store.registerModule(this.options.vuex.namespace,e,{preserveState:Boolean(this.ctx.store.state[this.options.vuex.namespace])}),this.state=this.ctx.store.state[this.options.vuex.namespace]}else c.a.set(this,"state",{})}},{key:"setState",value:function(t,e){return"_"===t[0]?c.a.set(this._state,t,e):this._useVuex?this.ctx.store.commit(this.options.vuex.namespace+"/SET",{key:t,value:e}):c.a.set(this.state,t,e),e}},{key:"getState",value:function(t){return"_"!==t[0]?this.state[t]:this._state[t]}},{key:"watchState",value:function(t,e){var n=this;if(this._useVuex)return this.ctx.store.watch((function(e){return Re(e[n.options.vuex.namespace],t)}),e)}},{key:"removeState",value:function(t){this.setState(t,void 0)}},{key:"setLocalStorage",value:function(t,e){if(we(e))return this.removeLocalStorage(t);if("undefined"!=typeof localStorage&&this.options.localStorage){var n=this.options.localStorage.prefix+t;try{localStorage.setItem(n,Se(e))}catch(t){if(!this.options.ignoreExceptions)throw t}return e}}},{key:"getLocalStorage",value:function(t){if("undefined"!=typeof localStorage&&this.options.localStorage){var e=this.options.localStorage.prefix+t;return Ce(localStorage.getItem(e))}}},{key:"removeLocalStorage",value:function(t){if("undefined"!=typeof localStorage&&this.options.localStorage){var e=this.options.localStorage.prefix+t;localStorage.removeItem(e)}}},{key:"getCookies",value:function(){var t=document.cookie;return Object(xe.parse)(t||"")||{}}},{key:"setCookie",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.options.cookie){var r=this.options.cookie.prefix+t,o=Object.assign({},this.options.cookie.options,n),c=Se(e);we(e)&&(o.maxAge=-1),"number"==typeof o.expires&&(o.expires=new Date(1*new Date+864e5*o.expires));var l=Object(xe.serialize)(r,c,o);return document.cookie=l,e}}},{key:"getCookie",value:function(t){if(this.options.cookie){var e=this.options.cookie.prefix+t,n=this.getCookies();return Ce(n[e]?decodeURIComponent(n[e]):void 0)}}},{key:"removeCookie",value:function(t,e){this.setCookie(t,void 0,e)}}]),t}();function Pe(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Ae(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ae(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,c=!0,l=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){l=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(l)throw o}}}}function Ae(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var Te=function(){function t(e,n){Object(Lt.a)(this,t),this.ctx=e,this.options=n,this.strategies={},this._errorListeners=[],this._redirectListeners=[],n.initialState={user:null,loggedIn:!1};var r=new Ee(e,n);this.$storage=r,this.$state=r.state}var e;return Object(Nt.a)(t,[{key:"init",value:(e=Object(r.a)(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.options.resetOnError&&this.onError((function(){var t;("function"!=typeof e.options.resetOnError||(t=e.options).resetOnError.apply(t,arguments))&&e.reset()})),this.$storage.syncUniversal("strategy",this.options.defaultStrategy),this.strategy){t.next=6;break}if(this.$storage.setUniversal("strategy",this.options.defaultStrategy),this.strategy){t.next=6;break}return t.abrupt("return",Promise.resolve());case 6:return t.prev=6,t.next=9,this.mounted();case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(6),this.callOnError(t.t0);case 14:return t.prev=14,this.options.watchLoggedIn&&this.$storage.watchState("loggedIn",(function(t){$e(e.ctx.route,"auth",!1)||e.redirect(t?"home":"logout")})),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[6,11,14,17]])}))),function(){return e.apply(this,arguments)})},{key:"state",get:function(){return this._state_warn_shown||(this._state_warn_shown=!0,console.warn("[AUTH] $auth.state is deprecated. Please use $auth.$state or top level props like $auth.loggedIn")),this.$state}},{key:"getState",value:function(t){return this._get_state_warn_shown||(this._get_state_warn_shown=!0,console.warn("[AUTH] $auth.getState is deprecated. Please use $auth.$storage.getState() or top level props like $auth.loggedIn")),this.$storage.getState(t)}},{key:"strategy",get:function(){return this.strategies[this.$state.strategy]}},{key:"registerStrategy",value:function(t,e){this.strategies[t]=e}},{key:"setStrategy",value:function(t){return t===this.$storage.getUniversal("strategy")?Promise.resolve():(this.$storage.setUniversal("strategy",t),this.mounted())}},{key:"mounted",value:function(){var t,e=this;return this.strategy.mounted?Promise.resolve((t=this.strategy).mounted.apply(t,arguments)).catch((function(t){return e.callOnError(t,{method:"mounted"}),Promise.reject(t)})):this.fetchUserOnce()}},{key:"loginWith",value:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return this.setStrategy(t).then((function(){return e.login.apply(e,r)}))}},{key:"login",value:function(){var t,e=this;return this.strategy.login?this.wrapLogin((t=this.strategy).login.apply(t,arguments)).catch((function(t){return e.callOnError(t,{method:"login"}),Promise.reject(t)})):Promise.resolve()}},{key:"fetchUser",value:function(){var t,e=this;return this.strategy.fetchUser?Promise.resolve((t=this.strategy).fetchUser.apply(t,arguments)).catch((function(t){return e.callOnError(t,{method:"fetchUser"}),Promise.reject(t)})):Promise.resolve()}},{key:"logout",value:function(){var t,e=this;return this.strategy.logout?Promise.resolve((t=this.strategy).logout.apply(t,arguments)).catch((function(t){return e.callOnError(t,{method:"logout"}),Promise.reject(t)})):(this.reset(),Promise.resolve())}},{key:"setUserToken",value:function(t){var e=this;return this.strategy.setUserToken?Promise.resolve(this.strategy.setUserToken(t)).catch((function(t){return e.callOnError(t,{method:"setUserToken"}),Promise.reject(t)})):(this.setToken(this.strategy.name,t),Promise.resolve())}},{key:"reset",value:function(){var t,e=this;return this.strategy.reset?Promise.resolve((t=this.strategy).reset.apply(t,arguments)).catch((function(t){return e.callOnError(t,{method:"reset"}),Promise.reject(t)})):(this.setUser(!1),this.setToken(this.$state.strategy,!1),this.setRefreshToken(this.$state.strategy,!1),Promise.resolve())}},{key:"getToken",value:function(t){var e=this.options.token.prefix+t;return this.$storage.getUniversal(e)}},{key:"setToken",value:function(t,e){var n=this.options.token.prefix+t;return this.$storage.setUniversal(n,e)}},{key:"syncToken",value:function(t){var e=this.options.token.prefix+t;return this.$storage.syncUniversal(e)}},{key:"getRefreshToken",value:function(t){var e=this.options.refresh_token.prefix+t;return this.$storage.getUniversal(e)}},{key:"setRefreshToken",value:function(t,e){var n=this.options.refresh_token.prefix+t;return this.$storage.setUniversal(n,e)}},{key:"syncRefreshToken",value:function(t){var e=this.options.refresh_token.prefix+t;return this.$storage.syncUniversal(e)}},{key:"user",get:function(){return this.$state.user}},{key:"loggedIn",get:function(){return this.$state.loggedIn}},{key:"fetchUserOnce",value:function(){return this.$state.user?Promise.resolve():this.fetchUser.apply(this,arguments)}},{key:"setUser",value:function(t){this.$storage.setState("user",t),this.$storage.setState("loggedIn",Boolean(t))}},{key:"busy",get:function(){return this.$storage.getState("busy")}},{key:"request",value:function(t,e,n){var r=this,o="object"===Object(Ft.a)(e)?Object.assign({},e,t):t;if(this.ctx.app.$axios)return this.ctx.app.$axios.request(o).then((function(t){var e=o.propertyName?Re(t.data,o.propertyName):t.data;return n?{response:t,result:e}:e})).catch((function(t){return r.callOnError(t,{method:"request"}),Promise.reject(t)}));console.error("[AUTH] add the @nuxtjs/axios module to nuxt.config file")}},{key:"requestWith",value:function(t,e,n,r){var o=this.getToken(t),c=Object.assign({},n,e),l=this.strategies[t].options.tokenName||"Authorization";return c.headers||(c.headers={}),!c.headers[l]&&_e(o)&&o&&(c.headers[l]=o),this.request(c,!1,r)}},{key:"wrapLogin",value:function(t){var e=this;return this.$storage.setState("busy",!0),this.error=null,Promise.resolve(t).then((function(t){return e.$storage.setState("busy",!1),t})).catch((function(t){return e.$storage.setState("busy",!1),Promise.reject(t)}))}},{key:"onError",value:function(t){this._errorListeners.push(t)}},{key:"callOnError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.error=t;var n,r=Pe(this._errorListeners);try{for(r.s();!(n=r.n()).done;){var o=n.value;o(t,e)}}catch(t){r.e(t)}finally{r.f()}}},{key:"redirect",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.options.redirect){var n=this.options.fullPathRedirect?this.ctx.route.fullPath:this.ctx.route.path,r=this.options.redirect[t];if(r){if(this.options.rewriteRedirects&&("login"===t&&Oe(n)&&!ke(r,n)&&this.$storage.setUniversal("redirect",n),"home"===t)){var o=this.$storage.getUniversal("redirect");this.$storage.setUniversal("redirect",null),Oe(o)&&(r=o)}r=this.callOnRedirect(r,n)||r,ke(r,n)||(e?window.location.replace(r):this.ctx.redirect(r,this.ctx.query))}}}},{key:"onRedirect",value:function(t){this._redirectListeners.push(t)}},{key:"callOnRedirect",value:function(t,e){var n,r=Pe(this._redirectListeners);try{for(r.s();!(n=r.n()).done;){t=(0,n.value)(t,e)||t}}catch(t){r.e(t)}finally{r.f()}return t}},{key:"hasScope",value:function(t){var e=this.$state.user&&Re(this.$state.user,this.options.scopeKey);return!!e&&(Array.isArray(e)?e.includes(t):Boolean(Re(e,t)))}}]),t}();n(151).a.auth=function(t){if(!$e(t.route,"auth",!1)){if(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return[].concat.apply([],t.matched.map((function(t,n){return Object.keys(t.components).map((function(r){return e&&e.push(n),t.components[r]}))})))}(t.route,[]).length){var e=t.$auth.options.redirect,n=e.login,r=e.callback,o=$e(t.route,"auth","guest"),c=function(e){return je(t.route.path)===je(e)};t.$auth.$state.loggedIn?(!n||c(n)||o)&&t.$auth.redirect("home"):o||r&&c(r)||t.$auth.redirect("login")}}};var Ue=function(){function t(e,n){Object(Lt.a)(this,t),this.$auth=e,this.name=n._name,this.options=Object.assign({},Le,n)}var e,n,o,c,l;return Object(Nt.a)(t,[{key:"_setToken",value:function(t){this.options.globalToken&&this.$auth.ctx.app.$axios.setHeader(this.options.tokenName,t)}},{key:"_clearToken",value:function(){this.options.globalToken&&this.$auth.ctx.app.$axios.setHeader(this.options.tokenName,!1)}},{key:"mounted",value:function(){if(this.options.tokenRequired){var t=this.$auth.syncToken(this.name);this._setToken(t)}return this.$auth.fetchUserOnce()}},{key:"login",value:(l=Object(r.a)(regeneratorRuntime.mark((function t(e){var n,r,o,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.options.endpoints.login){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.$auth.reset();case 4:return t.next=6,this.$auth.request(e,this.options.endpoints.login,!0);case 6:if(n=t.sent,r=n.response,o=n.result,this.options.tokenRequired&&(c=this.options.tokenType?this.options.tokenType+" "+o:o,this.$auth.setToken(this.name,c),this._setToken(c)),!this.options.autoFetchUser){t.next=13;break}return t.next=13,this.fetchUser();case 13:return t.abrupt("return",r);case 14:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"setUserToken",value:(c=Object(r.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.options.tokenType?this.options.tokenType+" "+e:e,this.$auth.setToken(this.name,n),this._setToken(n),t.abrupt("return",this.fetchUser());case 4:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"fetchUser",value:(o=Object(r.a)(regeneratorRuntime.mark((function t(e){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.options.tokenRequired||this.$auth.getToken(this.name)){t.next=2;break}return t.abrupt("return");case 2:if(this.options.endpoints.user){t.next=5;break}return this.$auth.setUser({}),t.abrupt("return");case 5:return t.next=7,this.$auth.requestWith(this.name,e,this.options.endpoints.user);case 7:n=t.sent,this.$auth.setUser(n);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"logout",value:(n=Object(r.a)(regeneratorRuntime.mark((function t(e){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.options.endpoints.logout){t.next=3;break}return t.next=3,this.$auth.requestWith(this.name,e,this.options.endpoints.logout).catch((function(){}));case 3:return t.abrupt("return",this.$auth.reset());case 4:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"reset",value:(e=Object(r.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.options.tokenRequired&&this._clearToken(),this.$auth.setUser(!1),this.$auth.setToken(this.name,!1),this.$auth.setRefreshToken(this.name,!1),t.abrupt("return",Promise.resolve());case 5:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}]),t}(),Le={tokenRequired:!0,tokenType:"Bearer",globalToken:!0,tokenName:"Authorization",autoFetchUser:!0},Ne=function(t,e){var n=new Te(t,{resetOnError:!1,scopeKey:"scope",rewriteRedirects:!0,fullPathRedirect:!1,watchLoggedIn:!0,redirect:{login:"/guest/login",logout:"/guest/login",home:"/",callback:"/login"},vuex:{namespace:"auth"},cookie:{prefix:"auth.",options:{path:"/",sameSite:!0,secure:!0}},localStorage:{prefix:"auth."},token:{prefix:"_token."},refresh_token:{prefix:"_refresh_token."},defaultStrategy:"local"});return n.registerStrategy("local",new Ue(n,{endpoints:{login:{url:"auth/login",method:"post",propertyName:"token"},logout:{url:"logout",method:"post"},user:{url:"profile",method:"get",propertyName:"data"}},_name:"local"})),e("auth",n),t.$auth=n,n.init().catch((function(t){console.error("[ERROR] [AUTH]",t)}))};function Ie(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(object);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,n)}return e}function De(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?Ie(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):Ie(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}c.a.component(d.a.name,d.a),c.a.component(m.a.name,De(De({},m.a),{},{render:function(t,e){return m.a._warned||(m.a._warned=!0,console.warn("<no-ssr> has been deprecated and will be removed in Nuxt 3, please use <client-only> instead")),m.a.render(t,e)}})),c.a.component(S.name,S),c.a.component("NChild",S),c.a.component(D.name,D),Object.defineProperty(c.a.prototype,"$nuxt",{get:function(){var t=this.$root.$options.$nuxt;return t||"undefined"==typeof window?t:window.$nuxt},configurable:!0}),c.a.use(f.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var qe={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"};l.a.Store.prototype.registerModule;function Me(t){return Be.apply(this,arguments)}function Be(){return(Be=Object(r.a)(regeneratorRuntime.mark((function t(e){var n,o,l,f,h,d,path,v,m=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return v=function(t,e){if(!t)throw new Error("inject(key, value) has no key provided");if(void 0===e)throw new Error("inject('".concat(t,"', value) has no value provided"));f[t="$"+t]=e,f.context[t]||(f.context[t]=e),l[t]=f[t];var n="__nuxt_"+t+"_installed__";c.a[n]||(c.a[n]=!0,c.a.use((function(){Object.prototype.hasOwnProperty.call(c.a.prototype,t)||Object.defineProperty(c.a.prototype,t,{get:function(){return this.$root.$options[t]}})})))},n=m.length>1&&void 0!==m[1]?m[1]:{},t.next=4,j(0,n);case 4:return o=t.sent,(l=yt(e)).$router=o,f=De({head:{titleTemplate:"%s - MangaMark",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"charset",charset:"utf-8"},{hid:"mobile-web-app-capable",name:"mobile-web-app-capable",content:"yes"},{hid:"apple-mobile-web-app-title",name:"apple-mobile-web-app-title",content:"MangaMark"},{hid:"author",name:"author",content:"Quyen Truong"},{hid:"og:site_name",name:"og:site_name",property:"og:site_name",content:"MangaMark"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.png"},{hid:"shortcut-icon",rel:"shortcut icon",href:"/favicon.png"},{hid:"apple-touch-icon",rel:"apple-touch-icon",href:"/_nuxt/icons/icon_512x512.d3360c.png",sizes:"512x512"},{rel:"manifest",href:"/_nuxt/manifest.7398543d.json",hid:"manifest",crossorigin:"use-credentials"},{rel:"stylesheet",type:"text/css",href:"https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900&display=swap"},{rel:"stylesheet",type:"text/css",href:"https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"}],style:[],script:[],title:"MangaMark",htmlAttrs:{lang:"en"}},store:l,router:o,nuxt:{defaultTransition:qe,transitions:[qe],setTransitions:function(t){return Array.isArray(t)||(t=[t]),t=t.map((function(t){return t=t?"string"==typeof t?Object.assign({},qe,{name:t}):Object.assign({},qe,t):qe})),this.$options.nuxt.transitions=t,t},err:null,dateErr:null,error:function(t){t=t||null,f.context._errored=Boolean(t),t=t?Object(w.p)(t):null;var n=f.nuxt;return this&&(n=this.nuxt||this.$options.nuxt),n.dateErr=Date.now(),n.err=t,e&&(e.nuxt.error=t),t}}},ht),l.app=f,h=e?e.next:function(t){return f.router.push(t)},e?d=o.resolve(e.url).route:(path=Object(w.f)(o.options.base,o.options.mode),d=o.resolve(path).route),t.next=13,Object(w.t)(f,{store:l,route:d,next:h,error:f.nuxt.error.bind(f),payload:e?e.payload:void 0,req:e?e.req:void 0,res:e?e.res:void 0,beforeRenderFns:e?e.beforeRenderFns:void 0,ssrContext:e});case 13:return v("config",n),window.__NUXT__&&window.__NUXT__.state&&l.replaceState(window.__NUXT__.state),f.context.enablePreview=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};f.previewData=Object.assign({},t),v("preview",t)},t.next=19,$t(f.context);case 19:return t.next=22,Tt(f.context,v);case 22:return t.next=25,Mt(f.context,v);case 25:if("function"!=typeof Vt.a){t.next=28;break}return t.next=28,Vt()(f.context,v);case 28:return t.next=31,Wt(f.context);case 31:return t.next=34,Jt(f.context,v);case 34:return t.next=37,le(f.context,v);case 37:return t.next=40,pe(f.context,v);case 40:t.next=43;break;case 43:return t.next=46,ye(f.context);case 46:return t.next=49,be(f.context,v);case 49:return t.next=52,Ne(f.context,v);case 52:return f.context.enablePreview=function(){console.warn("You cannot call enablePreview() outside a plugin.")},t.next=55,new Promise((function(t,e){o.push(f.context.route.fullPath,t,(function(n){if(!n._isRouter)return e(n);if(2!==n.type)return t();var c=o.afterEach(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(n,r){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Object(w.j)(n);case 3:f.context.route=e.sent,f.context.params=n.params||{},f.context.query=n.query||{},c(),t();case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}))}));case 55:return t.abrupt("return",{store:l,app:f,router:o});case 56:case"end":return t.stop()}}),t)})))).apply(this,arguments)}}},[[309,9,1,10]]]);