21b6f9dc9df538b1e84c.js 86 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{0:function(e,t,n){"use strict";n.d(t,"i",function(){return h}),n.d(t,"j",function(){return f}),n.d(t,"a",function(){return m}),n.d(t,"o",function(){return v}),n.d(t,"e",function(){return w}),n.d(t,"f",function(){return _}),n.d(t,"c",function(){return x}),n.d(t,"n",function(){return y}),n.d(t,"h",function(){return O}),n.d(t,"p",function(){return C}),n.d(t,"k",function(){return E}),n.d(t,"m",function(){return S}),n.d(t,"d",function(){return $}),n.d(t,"b",function(){return T}),n.d(t,"g",function(){return V}),n.d(t,"l",function(){return R});var r=n(44),o=(n(118),n(189),n(250),n(12)),c=(n(72),n(73),n(119),n(168),n(26),n(37),n(4)),l=(n(120),n(22),n(8),n(71),n(24),n(3)),d=n(1);function h(e){d.default.config.errorHandler&&d.default.config.errorHandler(e)}function f(e){return e.then(function(e){return e.default||e})}function m(e,t){if(t||!e.options.__hasNuxtData){var n=e.options._originDataFn||e.options.data||function(){return{}};e.options._originDataFn=n,e.options.data=function(){var data=n.call(this);return this.$ssrContext&&(t=this.$ssrContext.asyncData[e.cid]),Object(l.a)({},data,t)},e.options.__hasNuxtData=!0,e._Ctor&&e._Ctor.options&&(e._Ctor.options.data=e.options.data)}}function v(e){return e.options&&e._Ctor===e?e:(e.options?(e._Ctor=e,e.extendOptions=e.options):(e=d.default.extend(e))._Ctor=e,!e.options.name&&e.options.__file&&(e.options.name=e.options.__file),e)}function w(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Array.prototype.concat.apply([],e.matched.map(function(e,n){return Object.keys(e.components).map(function(r){return t&&t.push(n),e.components[r]})}))}function _(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Array.prototype.concat.apply([],e.matched.map(function(e,n){return Object.keys(e.instances).map(function(r){return t&&t.push(n),e.instances[r]})}))}function x(e,t){return Array.prototype.concat.apply([],e.matched.map(function(e,n){return Object.keys(e.components).reduce(function(r,o){return e.components[o]?r.push(t(e.components[o],e.instances[o],e,o,n)):delete e.components[o],r},[])}))}function y(e){return Promise.all(x(e,function(){var e=Object(c.a)(regeneratorRuntime.mark(function e(t,n,r,o){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return r.components[o]=v(t),e.abrupt("return",r.components[o]);case 6:case"end":return e.stop()}},e)}));return function(t,n,r,o){return e.apply(this,arguments)}}()))}function O(e){return j.apply(this,arguments)}function j(){return(j=Object(c.a)(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,y(t);case 4:return e.abrupt("return",Object(l.a)({},t,{meta:w(t).map(function(e,n){return Object(l.a)({},e.options.meta,(t.matched[n]||{}).meta)})}));case 5:case"end":return e.stop()}},e)}))).apply(this,arguments)}function C(e,t){return k.apply(this,arguments)}function k(){return(k=Object(c.a)(regeneratorRuntime.mark(function e(t,n){var c,l,d,h;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.context||(t.context={isStatic:!0,isDev:!1,isHMR:!1,app:t,store:t.store,payload:n.payload,error:n.error,base:"/",env:{NODE_ENV:"production"}},n.req&&(t.context.req=n.req),n.res&&(t.context.res=n.res),n.ssrContext&&(t.context.ssrContext=n.ssrContext),t.context.redirect=function(e,path,n){if(e){t.context._redirected=!0;var r=Object(o.a)(path);if("number"==typeof e||"undefined"!==r&&"object"!==r||(n=path||{},path=e,r=Object(o.a)(path),e=302),"object"===r&&(path=t.router.resolve(path).route.fullPath),!/(^[.]{1,2}\/)|(^\/(?!\/))/.test(path))throw path=I(path,n),window.location.replace(path),new Error("ERR_REDIRECT");t.context.next({path:path,query:n,status:e})}},t.context.nuxtState=window.__NUXT__),e.next=3,Promise.all([O(n.route),O(n.from)]);case 3:c=e.sent,l=Object(r.a)(c,2),d=l[0],h=l[1],n.route&&(t.context.route=d),n.from&&(t.context.from=h),t.context.next=n.next,t.context._redirected=!1,t.context._errored=!1,t.context.isHMR=Boolean(n.isHMR),t.context.params=t.context.route.params||{},t.context.query=t.context.route.query||{};case 15:case"end":return e.stop()}},e)}))).apply(this,arguments)}function E(e,t){return!e.length||t._redirected||t._errored?Promise.resolve():S(e[0],t).then(function(){return E(e.slice(1),t)})}function S(e,t){var n;return(n=2===e.length?new Promise(function(n){e(t,function(e,data){e&&t.error(e),n(data=data||{})})}):e(t))&&(n instanceof Promise||"function"==typeof n.then)||(n=Promise.resolve(n)),n}function $(base,e){var path=decodeURI(window.location.pathname);return"hash"===e?window.location.hash.replace(/^#\//,""):(base&&0===path.indexOf(base)&&(path=path.slice(base.length)),(path||"/")+window.location.search+window.location.hash)}function T(e,t){return function(e){for(var t=new Array(e.length),i=0;i<e.length;i++)"object"===Object(o.a)(e[i])&&(t[i]=new RegExp("^(?:"+e[i].pattern+")$"));return function(n,r){for(var path="",data=n||{},o=r||{},c=o.pretty?A:encodeURIComponent,l=0;l<e.length;l++){var d=e[l];if("string"!=typeof d){var h=data[d.name||"pathMatch"],f=void 0;if(null==h){if(d.optional){d.partial&&(path+=d.prefix);continue}throw new TypeError('Expected "'+d.name+'" to be defined')}if(Array.isArray(h)){if(!d.repeat)throw new TypeError('Expected "'+d.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(d.optional)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var m=0;m<h.length;m++){if(f=c(h[m]),!t[l].test(f))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(f)+"`");path+=(0===m?d.prefix:d.delimiter)+f}}else{if(f=d.asterisk?encodeURI(h).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}):c(h),!t[l].test(f))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+f+'"');path+=d.prefix+f}}else path+=d}return path}}(function(e,t){var n,r=[],o=0,c=0,path="",l=t&&t.delimiter||"/";for(;null!=(n=L.exec(e));){var d=n[0],h=n[1],f=n.index;if(path+=e.slice(c,f),c=f+d.length,h)path+=h[1];else{var m=e[c],v=n[2],w=n[3],_=n[4],x=n[5],y=n[6],O=n[7];path&&(r.push(path),path="");var j=null!=v&&null!=m&&m!==v,C="+"===y||"*"===y,k="?"===y||"*"===y,E=n[2]||l,pattern=_||x;r.push({name:w||o++,prefix:v||"",delimiter:E,optional:k,repeat:C,partial:j,asterisk:Boolean(O),pattern:pattern?D(pattern):O?".*":"[^"+P(E)+"]+?"})}}c<e.length&&(path+=e.substr(c));path&&r.push(path);return r}(e,t))}function V(e,t){var n={},r=Object(l.a)({},e,t);for(var o in r)String(e[o])!==String(t[o])&&(n[o]=!0);return n}function R(e){var t;if(e.message||"string"==typeof e)t=e.message||e;else try{t=JSON.stringify(e,null,2)}catch(n){t="[".concat(e.constructor.name,"]")}return Object(l.a)({},e,{message:t,statusCode:e.statusCode||e.status||e.response&&e.response.status||500})}window.onNuxtReadyCbs=[],window.onNuxtReady=function(e){window.onNuxtReadyCbs.push(e)};var L=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function A(e){return encodeURI(e).replace(/[/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function P(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function D(e){return e.replace(/([=!:$/()])/g,"\\$1")}function I(e,t){var n,o=e.indexOf("://");-1!==o?(n=e.substring(0,o),e=e.substring(o+3)):e.startsWith("//")&&(e=e.substring(2));var c,l=e.split("/"),d=(n?n+"://":"//")+l.shift(),path=l.filter(Boolean).join("/");if(2===(l=path.split("#")).length){var h=l,f=Object(r.a)(h,2);path=f[0],c=f[1]}return d+=path?"/"+path:"",t&&"{}"!==JSON.stringify(t)&&(d+=(2===e.split("?").length?"&":"?")+function(e){return Object.keys(e).sort().map(function(t){var n=e[t];return null==n?"":Array.isArray(n)?n.slice().map(function(e){return[t,"=",e].join("")}).join("&"):t+"="+n}).filter(Boolean).join("&")}(t)),d+=c?"#"+c:""}},100:function(e,t,n){},101:function(e,t,n){},102:function(e,t,n){},103:function(e,t,n){},104:function(e,t,n){},105:function(e,t,n){},106:function(e,t,n){},107:function(e,t,n){},108:function(e,t,n){},109:function(e,t,n){},110:function(e,t,n){},111:function(e,t,n){},112:function(e,t,n){},113:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},114:function(e,t,n){},115:function(e,t,n){"use strict";(function(e){n(8);var r=n(55),o=n.n(r),c=n(57),l=n(23),d=n(35),h=o.a.create({baseURL:e.env.VUE_APP_BASE_API,timeout:5e3});h.interceptors.request.use(function(e){return l.default.getters.token&&(e.headers["X-Token"]=Object(d.a)()),e},function(e){return console.log(e),Promise.reject(e)}),h.interceptors.response.use(function(e){var t=e.data;return 2e4!==t.code?(Object(c.Message)({message:t.message||"Error",type:"error",duration:5e3}),50008!==t.code&&50012!==t.code&&50014!==t.code||c.MessageBox.confirm("You have been logged out, you can cancel to stay on this page, or log in again","Confirm logout",{confirmButtonText:"Re-Login",cancelButtonText:"Cancel",type:"warning"}).then(function(){l.default.dispatch("user/resetToken").then(function(){location.reload()})}),Promise.reject(new Error(t.message||"Error"))):t},function(e){return console.log("err"+e),Object(c.Message)({message:e.message,type:"error",duration:5e3}),Promise.reject(e)}),t.a=h}).call(this,n(85))},116:function(e,t,n){"use strict";n(8),n(49),n(50),n(22),n(64),n(84);var r=n(1),o=window.requestIdleCallback||function(e){var t=Date.now();return setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},c=window.IntersectionObserver&&new window.IntersectionObserver(function(e){e.forEach(function(e){var t=e.intersectionRatio,link=e.target;t<=0||link.__prefetch()})});t.a={name:"NuxtLink",extends:r.default.component("RouterLink"),props:{noPrefetch:{type:Boolean,default:!1}},mounted:function(){this.noPrefetch||o(this.observe,{timeout:2e3})},beforeDestroy:function(){this.__observed&&(c.unobserve(this.$el),delete this.$el.__prefetch)},methods:{observe:function(){c&&this.shouldPrefetch()&&(this.$el.__prefetch=this.prefetch.bind(this),c.observe(this.$el),this.__observed=!0)},shouldPrefetch:function(){return this.getPrefetchComponents().length>0},canPrefetch:function(){var e=navigator.connection;return!(this.$nuxt.isOffline||e&&((e.effectiveType||"").includes("2g")||e.saveData))},getPrefetchComponents:function(){return this.$router.resolve(this.to,this.$route,this.append).resolved.matched.map(function(e){return e.components.default}).filter(function(e){return"function"==typeof e&&!e.options&&!e.__prefetched})},prefetch:function(){if(this.canPrefetch()){c.unobserve(this.$el);var e=this.getPrefetchComponents(),t=!0,n=!1,r=void 0;try{for(var o,l=e[Symbol.iterator]();!(t=(o=l.next()).done);t=!0){var d=o.value,h=d();h instanceof Promise&&h.catch(function(){}),d.__prefetched=!0}}catch(e){n=!0,r=e}finally{try{t||null==l.return||l.return()}finally{if(n)throw r}}}}}}},163:function(e,t,n){"use strict";n.r(t);n(24);t.default={sidebar:function(e){return e.app.sidebar},size:function(e){return e.app.size},device:function(e){return e.app.device},visitedViews:function(e){return e.tagsView.visitedViews},cachedViews:function(e){return e.tagsView.cachedViews},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},introduction:function(e){return e.user.introduction},roles:function(e){return e.user.roles},permission_routes:function(e){return e.permission.routes},errorLogs:function(e){return e.errorLog.logs}}},165:function(e,t,n){"use strict";t.a={}},191:function(e,t,n){"use strict";n.r(t);var r=n(20),o=n.n(r),c={sidebar:{opened:!o.a.get("sidebarStatus")||!!+o.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop",size:o.a.get("size")||"medium"},l={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?o.a.set("sidebarStatus",1):o.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){o.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t},SET_SIZE:function(e,t){e.size=t,o.a.set("size",t)}};t.default={namespaced:!0,state:c,mutations:l,actions:{toggleSideBar:function(e){(0,e.commit)("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){(0,e.commit)("CLOSE_SIDEBAR",t.withoutAnimation)},toggleDevice:function(e,t){(0,e.commit)("TOGGLE_DEVICE",t)},setSize:function(e,t){(0,e.commit)("SET_SIZE",t)}}}},192:function(e,t,n){"use strict";n.r(t);t.default={namespaced:!0,state:{logs:[]},mutations:{ADD_ERROR_LOG:function(e,t){e.logs.push(t)},CLEAR_ERROR_LOG:function(e){e.logs.splice(0)}},actions:{addErrorLog:function(e,t){(0,e.commit)("ADD_ERROR_LOG",t)},clearErrorLog:function(e){(0,e.commit)("CLEAR_ERROR_LOG")}}}},193:function(e,t,n){"use strict";n.r(t),n.d(t,"filterAsyncRoutes",function(){return c});n(8);var r=n(3),o=(n(64),n(84),n(21));function c(e,t){var n=[];return e.forEach(function(e){var o=Object(r.a)({},e);(function(e,t){return!t.meta||!t.meta.roles||e.some(function(e){return t.meta.roles.includes(e)})})(t,o)&&(o.children&&(o.children=c(o.children,t)),n.push(o))}),n}var l={SET_ROUTES:function(e,t){e.addRoutes=t,e.routes=o.constantRoutes.concat(t)}},d={generateRoutes:function(e,t){var n=e.commit;return new Promise(function(e){var r;r=t.includes("admin")?o.asyncRoutes||[]:c(o.asyncRoutes,t),n("SET_ROUTES",r),e(r)})}};t.default={namespaced:!0,state:{routes:[],addRoutes:[]},mutations:l,actions:d}},194:function(e,t,n){"use strict";n.r(t);var r=n(70),o=n.n(r),c={showSettings:o.a.showSettings,tagsView:o.a.tagsView,fixedHeader:o.a.fixedHeader,sidebarLogo:o.a.sidebarLogo};t.default={namespaced:!0,state:c,mutations:{CHANGE_SETTING:function(e,t){var n=t.key,r=t.value;e.hasOwnProperty(n)&&(e[n]=r)}},actions:{changeSetting:function(e,data){(0,e.commit)("CHANGE_SETTING",data)}}}},195:function(e,t,n){"use strict";n.r(t);var r=n(5),o=n(44),c=(n(49),n(50),n(8),n(22),n(24),n(64),n(84),{ADD_VISITED_VIEW:function(e,view){e.visitedViews.some(function(e){return e.path===view.path})||e.visitedViews.push(Object.assign({},view,{title:view.meta.title||"no-name"}))},ADD_CACHED_VIEW:function(e,view){e.cachedViews.includes(view.name)||view.meta.noCache||e.cachedViews.push(view.name)},DEL_VISITED_VIEW:function(e,view){var t=!0,n=!1,r=void 0;try{for(var c,l=e.visitedViews.entries()[Symbol.iterator]();!(t=(c=l.next()).done);t=!0){var d=Object(o.a)(c.value,2),i=d[0];if(d[1].path===view.path){e.visitedViews.splice(i,1);break}}}catch(e){n=!0,r=e}finally{try{t||null==l.return||l.return()}finally{if(n)throw r}}},DEL_CACHED_VIEW:function(e,view){var t=!0,n=!1,r=void 0;try{for(var o,c=e.cachedViews[Symbol.iterator]();!(t=(o=c.next()).done);t=!0){var i=o.value;if(i===view.name){var l=e.cachedViews.indexOf(i);e.cachedViews.splice(l,1);break}}}catch(e){n=!0,r=e}finally{try{t||null==c.return||c.return()}finally{if(n)throw r}}},DEL_OTHERS_VISITED_VIEWS:function(e,view){e.visitedViews=e.visitedViews.filter(function(e){return e.meta.affix||e.path===view.path})},DEL_OTHERS_CACHED_VIEWS:function(e,view){var t=!0,n=!1,r=void 0;try{for(var o,c=e.cachedViews[Symbol.iterator]();!(t=(o=c.next()).done);t=!0){var i=o.value;if(i===view.name){var l=e.cachedViews.indexOf(i);e.cachedViews=e.cachedViews.slice(l,l+1);break}}}catch(e){n=!0,r=e}finally{try{t||null==c.return||c.return()}finally{if(n)throw r}}},DEL_ALL_VISITED_VIEWS:function(e){var t=e.visitedViews.filter(function(e){return e.meta.affix});e.visitedViews=t},DEL_ALL_CACHED_VIEWS:function(e){e.cachedViews=[]},UPDATE_VISITED_VIEW:function(e,view){var t=!0,n=!1,r=void 0;try{for(var o,c=e.visitedViews[Symbol.iterator]();!(t=(o=c.next()).done);t=!0){var l=o.value;if(l.path===view.path){l=Object.assign(l,view);break}}}catch(e){n=!0,r=e}finally{try{t||null==c.return||c.return()}finally{if(n)throw r}}}}),l={addView:function(e,view){var t=e.dispatch;t("addVisitedView",view),t("addCachedView",view)},addVisitedView:function(e,view){(0,e.commit)("ADD_VISITED_VIEW",view)},addCachedView:function(e,view){(0,e.commit)("ADD_CACHED_VIEW",view)},delView:function(e,view){var t=e.dispatch,n=e.state;return new Promise(function(e){t("delVisitedView",view),t("delCachedView",view),e({visitedViews:Object(r.a)(n.visitedViews),cachedViews:Object(r.a)(n.cachedViews)})})},delVisitedView:function(e,view){var t=e.commit,n=e.state;return new Promise(function(e){t("DEL_VISITED_VIEW",view),e(Object(r.a)(n.visitedViews))})},delCachedView:function(e,view){var t=e.commit,n=e.state;return new Promise(function(e){t("DEL_CACHED_VIEW",view),e(Object(r.a)(n.cachedViews))})},delOthersViews:function(e,view){var t=e.dispatch,n=e.state;return new Promise(function(e){t("delOthersVisitedViews",view),t("delOthersCachedViews",view),e({visitedViews:Object(r.a)(n.visitedViews),cachedViews:Object(r.a)(n.cachedViews)})})},delOthersVisitedViews:function(e,view){var t=e.commit,n=e.state;return new Promise(function(e){t("DEL_OTHERS_VISITED_VIEWS",view),e(Object(r.a)(n.visitedViews))})},delOthersCachedViews:function(e,view){var t=e.commit,n=e.state;return new Promise(function(e){t("DEL_OTHERS_CACHED_VIEWS",view),e(Object(r.a)(n.cachedViews))})},delAllViews:function(e,view){var t=e.dispatch,n=e.state;return new Promise(function(e){t("delAllVisitedViews",view),t("delAllCachedViews",view),e({visitedViews:Object(r.a)(n.visitedViews),cachedViews:Object(r.a)(n.cachedViews)})})},delAllVisitedViews:function(e){var t=e.commit,n=e.state;return new Promise(function(e){t("DEL_ALL_VISITED_VIEWS"),e(Object(r.a)(n.visitedViews))})},delAllCachedViews:function(e){var t=e.commit,n=e.state;return new Promise(function(e){t("DEL_ALL_CACHED_VIEWS"),e(Object(r.a)(n.cachedViews))})},updateVisitedView:function(e,view){(0,e.commit)("UPDATE_VISITED_VIEW",view)}};t.default={namespaced:!0,state:{visitedViews:[],cachedViews:[]},mutations:c,actions:l}},222:function(e,t,n){"use strict";n.r(t);n(37);var r=n(4),o=(n(8),n(24),n(115));var c=n(35),l=n(21),d={token:Object(c.a)(),name:"",avatar:"https://picsum.photos/80/80",introduction:"",roles:[]},h={login:function(e,t){var n=e.commit,r=t.username,l=t.password;return new Promise(function(e,t){var data;(data={username:r.trim(),password:l},Object(o.a)({url:"/user/login",method:"post",data:data})).then(function(t){var data=t.data;n("SET_TOKEN",data.token),Object(c.c)(data.token),e()}).catch(function(e){t(e)})})},getInfo:function(e){var t=e.commit,n=e.state;return new Promise(function(e,r){var c;(c=n.token,Object(o.a)({url:"/user/info",method:"get",params:{token:c}})).then(function(n){var data=n.data;data||r("Verification failed, please Login again.");var o=data.roles,c=data.name,l=data.avatar,d=data.introduction;(!o||o.length<=0)&&r("getInfo: roles must be a non-null array!"),t("SET_ROLES",o),t("SET_NAME",c),t("SET_AVATAR",l),t("SET_INTRODUCTION",d),e(data)}).catch(function(e){r(e)})})},logout:function(e){var t=e.commit,n=e.state;return new Promise(function(e,r){(n.token,Object(o.a)({url:"/user/logout",method:"post"})).then(function(){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(c.b)(),Object(l.resetRouter)(),e()}).catch(function(e){r(e)})})},resetToken:function(e){var t=e.commit;return new Promise(function(e){t("SET_TOKEN",""),t("SET_ROLES",[]),Object(c.b)(),e()})},changeRoles:function(e,t){var n=e.commit,o=e.dispatch;return new Promise(function(){var e=Object(r.a)(regeneratorRuntime.mark(function e(r){var d,h,f,m;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n("SET_TOKEN",d=t+"-token"),Object(c.c)(d),e.next=5,o("getInfo");case 5:return h=e.sent,f=h.roles,Object(l.resetRouter)(),e.next=10,o("permission/generateRoutes",f,{root:!0});case 10:m=e.sent,l.c.addRoutes(m),o("tagsView/delAllViews",null,{root:!0}),r();case 14:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}())}};t.default={namespaced:!0,state:d,mutations:{SET_TOKEN:function(e,t){e.token=t},SET_INTRODUCTION:function(e,t){e.introduction=t},SET_NAME:function(e,t){e.name=t},SET_AVATAR:function(e,t){e.avatar=t},SET_ROLES:function(e,t){e.roles=t}},actions:h}},228:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},23:function(e,t,n){"use strict";n.r(t);n(26),n(22),n(8);var r=n(1),o=n(18),c=n(163);r.default.use(o.a);var l=n(289),d=l.keys().reduce(function(e,t){var n=t.replace(/^\.\/(.*)\.\w+$/,"$1"),r=l(t);return e[n]=r.default,e},{}),h=new o.a.Store({modules:d,getters:c.default});t.default=function(){return h}},231:function(e,t,n){e.exports=n(232)},232:function(e,t,n){"use strict";n.r(t),function(e){n(120),n(49),n(50);var t=n(12),r=(n(37),n(169),n(4)),o=(n(64),n(84),n(22),n(8),n(71),n(24),n(181),n(242),n(247),n(249),n(1)),c=n(223),l=n(165),d=n(0),h=n(46),f=n(116);o.default.component(f.a.name,f.a),o.default.component("NLink",f.a),e.fetch||(e.fetch=c.a);var m,v,w=[],_=window.__NUXT__||{};Object.assign(o.default.config,{silent:!0,performance:!1});var x=o.default.config.errorHandler||console.error;function y(e,t,n){var r=function(component){var e=function(component,e){if(!component||!component.options||!component.options[e])return{};var option=component.options[e];if("function"==typeof option){for(var t=arguments.length,n=new Array(t>2?t-2:0),r=2;r<t;r++)n[r-2]=arguments[r];return option.apply(void 0,n)}return option}(component,"transition",t,n)||{};return"string"==typeof e?{name:e}:e};return e.map(function(e){var t=Object.assign({},r(e));if(n&&n.matched.length&&n.matched[0].components.default){var o=r(n.matched[0].components.default);Object.keys(o).filter(function(e){return o[e]&&e.toLowerCase().includes("leave")}).forEach(function(e){t[e]=o[e]})}return t})}function O(e,t,n){return j.apply(this,arguments)}function j(){return(j=Object(r.a)(regeneratorRuntime.mark(function e(t,n,r){var o,c,l,h,f=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._pathChanged=Boolean(m.nuxt.err)||n.path!==t.path,this._queryChanged=JSON.stringify(t.query)!==JSON.stringify(n.query),this._diffQuery=this._queryChanged?Object(d.g)(t.query,n.query):[],this._pathChanged&&this.$loading.start&&!this.$loading.manual&&this.$loading.start(),e.prev=4,e.next=7,Object(d.n)(t);case 7:o=e.sent,!this._pathChanged&&this._queryChanged&&o.some(function(e){var t=e.options.watchQuery;return!0===t||!!Array.isArray(t)&&t.some(function(e){return f._diffQuery[e]})})&&this.$loading.start&&!this.$loading.manual&&this.$loading.start(),r(),e.next=23;break;case 12:if(e.prev=12,e.t0=e.catch(4),c=e.t0||{},l=c.statusCode||c.status||c.response&&c.response.status||500,h=c.message||"",!/^Loading( CSS)? chunk (\d)+ failed\./.test(h)){e.next=20;break}return window.location.reload(!0),e.abrupt("return");case 20:this.error({statusCode:l,message:h}),this.$nuxt.$emit("routeChanged",t,n,c),r();case 23:case"end":return e.stop()}},e,this,[[4,12]])}))).apply(this,arguments)}function C(e,t){return _.serverRendered&&t&&Object(d.a)(e,t),e._Ctor=e,e}function k(e){var path=Object(d.d)(e.options.base,e.options.mode);return Object(d.c)(e.match(path),function(){var e=Object(r.a)(regeneratorRuntime.mark(function e(t,n,r,o,c){var l;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof t||t.options){e.next=4;break}return e.next=3,t();case 3:t=e.sent;case 4:return l=C(Object(d.o)(t),_.data?_.data[c]:null),r.components[o]=l,e.abrupt("return",l);case 7:case"end":return e.stop()}},e)}));return function(t,n,r,o,c){return e.apply(this,arguments)}}())}function E(e,t,n){var r=this,o=[],c=!1;if(void 0!==n&&(o=[],(n=Object(d.o)(n)).options.middleware&&(o=o.concat(n.options.middleware)),e.forEach(function(e){e.options.middleware&&(o=o.concat(e.options.middleware))})),o=o.map(function(e){return"function"==typeof e?e:("function"!=typeof l.a[e]&&(c=!0,r.error({statusCode:500,message:"Unknown middleware "+e})),l.a[e])}),!c)return Object(d.k)(o,t)}function S(e,t,n){return $.apply(this,arguments)}function $(){return($=Object(r.a)(regeneratorRuntime.mark(function e(t,n,r){var o,c,l,f,v,_,x,O,j,C,k,S,$,T,V,R,L=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!1!==this._pathChanged||!1!==this._queryChanged){e.next=2;break}return e.abrupt("return",r());case 2:return t===n?w=[]:(o=[],w=Object(d.e)(n,o).map(function(e,i){return Object(d.b)(n.matched[o[i]].path)(n.params)})),c=!1,l=function(path){n.path===path.path&&L.$loading.finish&&L.$loading.finish(),n.path!==path.path&&L.$loading.pause&&L.$loading.pause(),c||(c=!0,r(path))},e.next=7,Object(d.p)(m,{route:t,from:n,next:l.bind(this)});case 7:if(this._dateLastError=m.nuxt.dateErr,this._hadError=Boolean(m.nuxt.err),f=[],(v=Object(d.e)(t,f)).length){e.next=25;break}return e.next=14,E.call(this,v,m.context);case 14:if(!c){e.next=16;break}return e.abrupt("return");case 16:return e.next=18,this.loadLayout("function"==typeof h.a.layout?h.a.layout(m.context):h.a.layout);case 18:return _=e.sent,e.next=21,E.call(this,v,m.context,_);case 21:if(!c){e.next=23;break}return e.abrupt("return");case 23:return m.context.error({statusCode:404,message:"This page could not be found"}),e.abrupt("return",r());case 25:return v.forEach(function(e){e._Ctor&&e._Ctor.options&&(e.options.asyncData=e._Ctor.options.asyncData,e.options.fetch=e._Ctor.options.fetch)}),this.setTransitions(y(v,t,n)),e.prev=27,e.next=30,E.call(this,v,m.context);case 30:if(!c){e.next=32;break}return e.abrupt("return");case 32:if(!m.context._errored){e.next=34;break}return e.abrupt("return",r());case 34:return"function"==typeof(x=v[0].options.layout)&&(x=x(m.context)),e.next=38,this.loadLayout(x);case 38:return x=e.sent,e.next=41,E.call(this,v,m.context,x);case 41:if(!c){e.next=43;break}return e.abrupt("return");case 43:if(!m.context._errored){e.next=45;break}return e.abrupt("return",r());case 45:O=!0,e.prev=46,j=!0,C=!1,k=void 0,e.prev=50,S=v[Symbol.iterator]();case 52:if(j=($=S.next()).done){e.next=64;break}if("function"==typeof(T=$.value).options.validate){e.next=56;break}return e.abrupt("continue",61);case 56:return e.next=58,T.options.validate(m.context);case 58:if(O=e.sent){e.next=61;break}return e.abrupt("break",64);case 61:j=!0,e.next=52;break;case 64:e.next=70;break;case 66:e.prev=66,e.t0=e.catch(50),C=!0,k=e.t0;case 70:e.prev=70,e.prev=71,j||null==S.return||S.return();case 73:if(e.prev=73,!C){e.next=76;break}throw k;case 76:return e.finish(73);case 77:return e.finish(70);case 78:e.next=84;break;case 80:return e.prev=80,e.t1=e.catch(46),this.error({statusCode:e.t1.statusCode||"500",message:e.t1.message}),e.abrupt("return",r());case 84:if(O){e.next=87;break}return this.error({statusCode:404,message:"This page could not be found"}),e.abrupt("return",r());case 87:return e.next=89,Promise.all(v.map(function(e,i){if(e._path=Object(d.b)(t.matched[f[i]].path)(t.params),e._dataRefresh=!1,L._pathChanged&&L._queryChanged||e._path!==w[i])e._dataRefresh=!0;else if(!L._pathChanged&&L._queryChanged){var n=e.options.watchQuery;!0===n?e._dataRefresh=!0:Array.isArray(n)&&(e._dataRefresh=n.some(function(e){return L._diffQuery[e]}))}if(!L._hadError&&L._isMounted&&!e._dataRefresh)return Promise.resolve();var r=[],o=e.options.asyncData&&"function"==typeof e.options.asyncData,c=Boolean(e.options.fetch),l=o&&c?30:45;if(o){var h=Object(d.m)(e.options.asyncData,m.context).then(function(t){Object(d.a)(e,t),L.$loading.increase&&L.$loading.increase(l)});r.push(h)}if(L.$loading.manual=!1===e.options.loading,c){var p=e.options.fetch(m.context);p&&(p instanceof Promise||"function"==typeof p.then)||(p=Promise.resolve(p)),p.then(function(e){L.$loading.increase&&L.$loading.increase(l)}),r.push(p)}return Promise.all(r)}));case 89:c||(this.$loading.finish&&!this.$loading.manual&&this.$loading.finish(),r()),e.next=106;break;case 92:if(e.prev=92,e.t2=e.catch(27),"ERR_REDIRECT"!==(V=e.t2||{}).message){e.next=97;break}return e.abrupt("return",this.$nuxt.$emit("routeChanged",t,n,V));case 97:return w=[],Object(d.i)(V),"function"==typeof(R=h.a.layout)&&(R=R(m.context)),e.next=103,this.loadLayout(R);case 103:this.error(V),this.$nuxt.$emit("routeChanged",t,n,V),r();case 106:case"end":return e.stop()}},e,this,[[27,92],[46,80],[50,66,70,78],[71,,73,77]])}))).apply(this,arguments)}function T(e,n){Object(d.c)(e,function(e,n,r,c){return"object"!==Object(t.a)(e)||e.options||((e=o.default.extend(e))._Ctor=e,r.components[c]=e),e})}function V(e){this._hadError&&this._dateLastError===this.$options.nuxt.dateErr&&this.error();var t=this.$options.nuxt.err?h.a.layout:e.matched[0].components.default.options.layout;"function"==typeof t&&(t=t(m.context)),this.setLayout(t)}function R(e,t){var n=this;if(!1!==this._pathChanged||!1!==this._queryChanged){var r=[],c=Object(d.f)(e,r),l=Object(d.e)(e,r);o.default.nextTick(function(){c.forEach(function(e,i){if(e&&!e._isDestroyed&&e.constructor._dataRefresh&&l[i]===e.constructor&&!0!==e.$vnode.data.keepAlive&&"function"==typeof e.constructor.options.data){var t=e.constructor.options.data.call(e);for(var n in t)o.default.set(e.$data,n,t[n]);window.$nuxt.$nextTick(function(){window.$nuxt.$emit("triggerScroll")})}}),V.call(n,e)})}}function L(e){window.onNuxtReadyCbs.forEach(function(t){"function"==typeof t&&t(e)}),"function"==typeof window._onNuxtLoaded&&window._onNuxtLoaded(e),v.afterEach(function(t,n){o.default.nextTick(function(){return e.$nuxt.$emit("routeChanged",t,n)})})}function A(){return(A=Object(r.a)(regeneratorRuntime.mark(function e(t){var n,r,c,l;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return m=t.app,v=t.router,t.store,e.next=5,Promise.all(k(v));case 5:if(n=e.sent,r=new o.default(m),c=function(){r.$mount("#__nuxt"),v.afterEach(T),v.afterEach(R.bind(r)),o.default.nextTick(function(){L(r)})},r.setTransitions=r.$options.nuxt.setTransitions.bind(r),n.length&&(r.setTransitions(y(n,v.currentRoute)),w=v.currentRoute.matched.map(function(e){return Object(d.b)(e.path)(v.currentRoute.params)})),r.$loading={},_.error&&r.error(_.error),v.beforeEach(O.bind(r)),v.beforeEach(S.bind(r)),!_.serverRendered){e.next=17;break}return c(),e.abrupt("return");case 17:l=function(){T(v.currentRoute,v.currentRoute),V.call(r,v.currentRoute),c()},S.call(r,v.currentRoute,v.currentRoute,function(path){if(path){var e=v.afterEach(function(t,n){e(),l()});v.push(path,void 0,function(e){e&&x(e)})}else l()});case 19:case"end":return e.stop()}},e)}))).apply(this,arguments)}Object(h.b)().then(function(e){return A.apply(this,arguments)}).catch(x)}.call(this,n(27))},257:function(e,t,n){"use strict";var r=n(95);n.n(r).a},258:function(e,t,n){"use strict";var r=n(96);n.n(r).a},260:function(e,t,n){},261:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},262:function(e,t,n){"use strict";var r=n(97);n.n(r).a},263:function(e,t,n){"use strict";var r=n(98);n.n(r).a},264:function(e,t,n){"use strict";var r=n(99);n.n(r).a},265:function(e,t,n){"use strict";var r=n(100);n.n(r).a},266:function(e,t,n){"use strict";var r=n(101);n.n(r).a},267:function(e,t,n){"use strict";var r=n(102);n.n(r).a},268:function(e,t,n){"use strict";var r=n(103);n.n(r).a},269:function(e,t,n){"use strict";var r=n(104);n.n(r).a},273:function(e,t,n){"use strict";var r=n(105);n.n(r).a},274:function(e,t,n){"use strict";var r=n(106);n.n(r).a},275:function(e,t,n){"use strict";var r=n(107);n.n(r).a},279:function(e,t,n){"use strict";var r=n(108);n.n(r).a},280:function(e,t,n){"use strict";var r=n(109);n.n(r).a},281:function(e,t,n){"use strict";var r=n(110);n.n(r).a},287:function(e,t,n){"use strict";var r=n(111);n.n(r).a},288:function(e,t,n){"use strict";var r=n(112);n.n(r).a},289:function(e,t,n){var map={"./app.js":191,"./errorLog.js":192,"./permission.js":193,"./settings.js":194,"./tagsView.js":195,"./user.js":222};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(map,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return map[e]}r.keys=function(){return Object.keys(map)},r.resolve=o,e.exports=r,r.id=289},35:function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"c",function(){return d}),n.d(t,"b",function(){return h});var r=n(20),o=n.n(r),c="Admin-Token";function l(){return o.a.get(c)}function d(e){return o.a.set(c,e)}function h(){return o.a.remove(c)}},363:function(e,t,n){"use strict";var r=n(113);n.n(r).a},364:function(e,t,n){"use strict";var r=n(114);n.n(r).a},46:function(e,t,n){"use strict";n(8);var r=n(3),o=(n(37),n(4)),c=(n(24),n(1)),l=n(224),d=n.n(l),h=n(21),f=n(0),m=function(){return Object(f.j)(n.e(3).then(n.bind(null,461)))},v=function(){return Object(f.j)(n.e(4).then(n.bind(null,460)))},w=function(){return Object(f.j)(n.e(23).then(n.bind(null,462)))},_=function(){return Object(f.j)(n.e(5).then(n.bind(null,500)))},x=function(){return Object(f.j)(n.e(6).then(n.bind(null,463)))},y=function(){return Object(f.j)(n.e(7).then(n.bind(null,464)))},O=function(){return Object(f.j)(n.e(8).then(n.bind(null,465)))},j=function(){return Object(f.j)(n.e(9).then(n.bind(null,466)))},C=function(){return Object(f.j)(n.e(10).then(n.bind(null,467)))},k=function(){return Object(f.j)(n.e(11).then(n.bind(null,468)))},E=function(){return Object(f.j)(n.e(12).then(n.bind(null,469)))},S=function(){return Object(f.j)(n.e(13).then(n.bind(null,470)))},$=function(){return Object(f.j)(n.e(14).then(n.bind(null,471)))},T=function(){return Object(f.j)(n.e(15).then(n.bind(null,472)))},V=function(){return Object(f.j)(n.e(16).then(n.bind(null,473)))},R=function(){return Object(f.j)(n.e(17).then(n.bind(null,474)))},L=function(){return Object(f.j)(n.e(18).then(n.bind(null,475)))},A=function(){return Object(f.j)(n.e(19).then(n.bind(null,476)))},P=function(){return Object(f.j)(n.e(20).then(n.bind(null,477)))},D=function(){return Object(f.j)(n.e(21).then(n.bind(null,478)))},I=function(){return Object(f.j)(n.e(22).then(n.bind(null,479)))},N=function(){return Object(f.j)(n.e(24).then(n.bind(null,480)))},M=function(){return Object(f.j)(n.e(25).then(n.bind(null,481)))},B=function(){return Object(f.j)(n.e(26).then(n.bind(null,482)))},H=function(){return Object(f.j)(n.e(27).then(n.bind(null,483)))},z=function(){return Object(f.j)(n.e(28).then(n.bind(null,484)))},W=function(){return Object(f.j)(n.e(29).then(n.bind(null,485)))},U=function(){return Object(f.j)(n.e(30).then(n.bind(null,486)))},F=function(){return Object(f.j)(n.e(31).then(n.bind(null,487)))},G=function(){return Object(f.j)(n.e(32).then(n.bind(null,488)))},K=function(){return Object(f.j)(n.e(33).then(n.bind(null,489)))},J=function(){return Object(f.j)(n.e(34).then(n.bind(null,490)))},X=function(){return Object(f.j)(n.e(35).then(n.bind(null,491)))},Q=function(){return Object(f.j)(n.e(36).then(n.bind(null,492)))},Y=function(){return Object(f.j)(n.e(37).then(n.bind(null,493)))},Z=function(){return Object(f.j)(n.e(38).then(n.bind(null,494)))},ee=function(){return Object(f.j)(n.e(39).then(n.bind(null,495)))},te=function(){return Object(f.j)(n.e(40).then(n.bind(null,496)))},ne=function(){return Object(f.j)(n.e(41).then(n.bind(null,497)))},re=function(){return Object(f.j)(n.e(42).then(n.bind(null,498)))},ie=function(){return Object(f.j)(n.e(2).then(n.bind(null,499)))};c.default.use(h.c),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual",window.addEventListener("beforeunload",function(){window.history.scrollRestoration="auto"}),window.addEventListener("load",function(){window.history.scrollRestoration="manual"}));var ae=function(e,t,n){var r=!1;return e.matched.length<2&&e.matched.every(function(e){return!1!==e.components.default.options.scrollToTop})?r={x:0,y:0}:e.matched.some(function(e){return e.components.default.options.scrollToTop})&&(r={x:0,y:0}),n&&(r=n),new Promise(function(t){window.$nuxt.$once("triggerScroll",function(){if(e.hash){var n=e.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(e){console.warn("Failed to save scroll position. Please add CSS.escape() polyfill (https://github.com/mathiasbynens/CSS.escape).")}}t(r)})})};for(var oe=n(225),se=n.n(oe),ce=Object(r.a)({},se.a,{name:"NoSsr"}),ue={name:"NuxtChild",functional:!0,props:{nuxtChildKey:{type:String,default:""},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0}},render:function(e,t){var n=t.parent,data=t.data,r=t.props;data.nuxtChild=!0;for(var o=n,c=n.$nuxt.nuxt.transitions,l=n.$nuxt.nuxt.defaultTransition,d=0;n;)n.$vnode&&n.$vnode.data.nuxtChild&&d++,n=n.$parent;data.nuxtChildDepth=d;var h=c[d]||l,f={};le.forEach(function(e){void 0!==h[e]&&(f[e]=h[e])});var m={};de.forEach(function(e){"function"==typeof h[e]&&(m[e]=h[e].bind(o))});var v=m.beforeEnter;m.beforeEnter=function(e){if(window.$nuxt.$nextTick(function(){window.$nuxt.$emit("triggerScroll")}),v)return v.call(o,e)};var w=[e("router-view",data)];return r.keepAlive&&(w=[e("keep-alive",{props:r.keepAliveProps},w)]),e("transition",{props:f,on:m},w)}},le=["name","mode","appear","css","type","duration","enterClass","leaveClass","appearClass","enterActiveClass","enterActiveClass","leaveActiveClass","appearActiveClass","enterToClass","leaveToClass","appearToClass"],de=["beforeEnter","enter","afterEnter","enterCancelled","beforeLeave","leave","afterLeave","leaveCancelled","beforeAppear","appear","afterAppear","appearCancelled"],he={name:"NuxtError",props:{error:{type:Object,default:null}},head:function(){return{title:this.message,meta:[{name:"viewport",content:"width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"}]}},computed:{statusCode:function(){return this.error&&this.error.statusCode||500},message:function(){return this.error.message||"Error"}}},fe=(n(257),n(2)),pe=Object(fe.a)(he,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"__nuxt-error-page"},[n("div",{staticClass:"error"},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"90",height:"90",fill:"#DBE1EC",viewBox:"0 0 48 48"}},[n("path",{attrs:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z"}})]),e._v(" "),n("div",{staticClass:"title"},[e._v(e._s(e.message))]),e._v(" "),404===e.statusCode?n("p",{staticClass:"description"},[n("NuxtLink",{staticClass:"error-link",attrs:{to:"/"}},[e._v("Back to the home page")])],1):e._e(),e._v(" "),e._m(0)])])},[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"logo"},[t("a",{attrs:{href:"https://nuxtjs.org",target:"_blank",rel:"noopener"}},[this._v("Nuxt.js")])])}],!1,null,null,null).exports,me=(n(26),n(44)),ve={name:"Nuxt",components:{NuxtChild:ue,NuxtError:pe},props:{nuxtChildKey:{type:String,default:void 0},keepAlive:Boolean,keepAliveProps:{type:Object,default:void 0},name:{type:String,default:"default"}},computed:{routerViewKey:function(){if(void 0!==this.nuxtChildKey||this.$route.matched.length>1)return this.nuxtChildKey||Object(f.b)(this.$route.matched[0].path)(this.$route.params);var e=Object(me.a)(this.$route.matched,1)[0];if(!e)return this.$route.path;var t=e.components.default;if(t&&t.options){var n=t.options;if(n.key)return"function"==typeof n.key?n.key(this.$route):n.key}return/\/$/.test(e.path)?this.$route.path:this.$route.path.replace(/\/$/,"")}},beforeCreate:function(){c.default.util.defineReactive(this,"nuxt",this.$root.$options.nuxt)},render:function(e){return this.nuxt.err?e("NuxtError",{props:{error:this.nuxt.err}}):e("NuxtChild",{key:this.routerViewKey,props:this.$props})}},ge={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 e=this;return this.clear(),this.percent=0,this.reversed=!1,this.skipTimerCount=0,this.canSucceed=!0,this.throttle?this._throttle=setTimeout(function(){return e.startTimer()},this.throttle):this.startTimer(),this},set:function(e){return this.show=!0,this.canSucceed=!0,this.percent=Math.min(100,Math.max(0,Math.floor(e))),this},get:function(){return this.percent},increase:function(e){return this.percent=Math.min(100,Math.floor(this.percent+e)),this},decrease:function(e){return this.percent=Math.max(0,Math.floor(this.percent-e)),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 e=this;return this.clear(),setTimeout(function(){e.show=!1,e.$nextTick(function(){e.percent=0,e.reversed=!1})},500),this},fail:function(){return this.canSucceed=!1,this},startTimer:function(){var e=this;this.show||(this.show=!0),void 0===this._cut&&(this._cut=1e4/Math.floor(this.duration)),this._timer=setInterval(function(){e.skipTimerCount>0?e.skipTimerCount--:(e.reversed?e.decrease(e._cut):e.increase(e._cut),e.continuous&&(e.percent>=100?(e.skipTimerCount=1,e.reversed=!e.reversed):e.percent<=0&&(e.skipTimerCount=1,e.reversed=!e.reversed)))},100)}},render:function(e){var t=e(!1);return this.show&&(t=e("div",{staticClass:"nuxt-progress",class:{"nuxt-progress-notransition":this.skipTimerCount>0,"nuxt-progress-failed":!this.canSucceed},style:{width:this.percent+"%",left:this.left}})),t}},be=(n(258),Object(fe.a)(ge,void 0,void 0,!1,null,null,null).exports),we=(n(259),n(260),n(261),{name:"AppMain",computed:{cachedViews:function(){return this.$store.state.tagsView.cachedViews},key:function(){return this.$route.path}}}),_e=(n(262),n(263),Object(fe.a)(we,function(){var e=this.$createElement,t=this._self._c||e;return t("section",{staticClass:"app-main"},[t("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[t("keep-alive",{attrs:{include:this.cachedViews}},[t("nuxt")],1)],1)],1)},[],!1,null,"ec5cc9d0",null).exports),xe=n(18),ye=(n(189),n(226)),Oe=n.n(ye),je=n(68),Ce={},i=0,ke=je.a.length;i<ke;i++)for(var Ee=je.a[i],Se=Ee.subs,$e=0,Te=Se.length;$e<Te;$e++)Ce[Se[$e].path]=[Object(r.a)({},Ee),Object(r.a)({},Se[$e])];var Ve={data:function(){return{levelList:null}},watch:{$route:function(e){e.path.startsWith("/redirect/")||this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.matched.filter(function(e){return e.name}),t=e[0];this.isDashboard(t)||(e=[{path:"/",title:"Home",redirect:"noRedirect"}].concat(e)),this.levelList=[{path:"/",title:"首页"}].concat(Ce[t.path]),this.levelList=this.levelList.filter(function(e){return!!e}),console.log(this.levelList)},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="".toLocaleLowerCase()},pathCompile:function(path){var e=this.$route.params;return Oe.a.compile(path)(e)},handleLink:function(e){var t=e.redirect,path=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(path))}}},Re=(n(264),Object(fe.a)(Ve,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,function(t,r){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||r==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.title))])])}),1)],1)},[],!1,null,"051ae504",null).exports),Le={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},Ae=(n(265),Object(fe.a)(Le,function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticStyle:{padding:"0 15px"},on:{click:this.toggleClick}},[t("svg",{staticClass:"hamburger",class:{"is-active":this.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[t("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},[],!1,null,"571a2ee0",null).exports),Pe={name:"ErrorLog",data:function(){return{dialogTableVisible:!1}},computed:{errorLogs:function(){return this.$store.getters.errorLogs}},methods:{clearAll:function(){this.dialogTableVisible=!1,this.$store.dispatch("errorLog/clearErrorLog")}}},De=(n(266),Object(fe.a)(Pe,function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.errorLogs.length>0?n("div",[n("el-badge",{staticStyle:{"line-height":"25px","margin-top":"-5px"},attrs:{"is-dot":!0},nativeOn:{click:function(t){e.dialogTableVisible=!0}}},[n("el-button",{staticStyle:{padding:"8px 10px"},attrs:{size:"small",type:"danger"}},[n("svg-icon",{attrs:{"icon-class":"bug"}})],1)],1),e._v(" "),n("el-dialog",{attrs:{visible:e.dialogTableVisible,width:"80%","append-to-body":""},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[n("div",{attrs:{slot:"title"},slot:"title"},[n("span",{staticStyle:{"padding-right":"10px"}},[e._v("Error Log")]),e._v(" "),n("el-button",{attrs:{size:"mini",type:"primary",icon:"el-icon-delete"},on:{click:e.clearAll}},[e._v("Clear All")])],1),e._v(" "),n("el-table",{attrs:{data:e.errorLogs,border:""}},[n("el-table-column",{attrs:{label:"Message"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[n("div",[n("span",{staticClass:"message-title"},[e._v("Msg:")]),e._v(" "),n("el-tag",{attrs:{type:"danger"}},[e._v("\n "+e._s(r.err.message)+"\n ")])],1),e._v(" "),n("br"),e._v(" "),n("div",[n("span",{staticClass:"message-title",staticStyle:{"padding-right":"10px"}},[e._v("Info: ")]),e._v(" "),n("el-tag",{attrs:{type:"warning"}},[e._v("\n "+e._s(r.vm.$vnode.tag)+" error in "+e._s(r.info)+"\n ")])],1),e._v(" "),n("br"),e._v(" "),n("div",[n("span",{staticClass:"message-title",staticStyle:{"padding-right":"16px"}},[e._v("Url: ")]),e._v(" "),n("el-tag",{attrs:{type:"success"}},[e._v("\n "+e._s(r.url)+"\n ")])],1)]}}],null,!1,3621415002)}),e._v(" "),n("el-table-column",{attrs:{label:"Stack"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.err.stack)+"\n ")]}}],null,!1,1726869048)})],1)],1)],1):e._e()},[],!1,null,"3cae5798",null).exports),Ie=n(36),Ne=n.n(Ie),Me={name:"Screenfull",data:function(){return{isFullscreen:!1}},mounted:function(){this.init()},beforeDestroy:function(){this.destroy()},methods:{click:function(){if(!Ne.a.enabled)return this.$message({message:"you browser can not work",type:"warning"}),!1;Ne.a.toggle()},change:function(){this.isFullscreen=Ne.a.isFullscreen},init:function(){Ne.a.enabled&&Ne.a.on("change",this.change)},destroy:function(){Ne.a.enabled&&Ne.a.off("change",this.change)}}},Be=(n(267),Object(fe.a)(Me,function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("svg-icon",{attrs:{"icon-class":this.isFullscreen?"exit-fullscreen":"fullscreen"},on:{click:this.click}})],1)},[],!1,null,"8ebc1b7c",null).exports),He={data:function(){return{sizeOptions:[{label:"Default",value:"default"},{label:"Medium",value:"medium"},{label:"Small",value:"small"},{label:"Mini",value:"mini"}]}},computed:{size:function(){return this.$store.getters.size}},methods:{handleSetSize:function(e){this.$ELEMENT.size=e,this.$store.dispatch("app/setSize",e),this.refreshView(),this.$message({message:"Switch Size Success",type:"success"})},refreshView:function(){var e=this;this.$store.dispatch("tagsView/delAllCachedViews",this.$route);var t=this.$route.fullPath;this.$nextTick(function(){e.$router.replace({path:"/redirect"+t})})}}},qe=Object(fe.a)(He,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dropdown",{attrs:{trigger:"click"},on:{command:e.handleSetSize}},[n("div",[n("svg-icon",{attrs:{"class-name":"size-icon","icon-class":"size"}})],1),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.sizeOptions,function(t){return n("el-dropdown-item",{key:t.value,attrs:{disabled:e.size===t.value,command:t.value}},[e._v("\n "+e._s(t.label)+"\n ")])}),1)],1)},[],!1,null,null,null).exports,ze=n(5),We=(n(49),n(50),n(22),n(168),n(227)),Ue=n.n(We),Fe=n(56),Ge=n.n(Fe),Ke={name:"HeaderSearch",data:function(){return{search:"",options:[],searchPool:[],show:!1,fuse:void 0}},computed:{routes:function(){return this.$store.getters.permission_routes}},watch:{routes:function(){this.searchPool=this.generateRoutes(this.routes)},searchPool:function(e){this.initFuse(e)},show:function(e){e?document.body.addEventListener("click",this.close):document.body.removeEventListener("click",this.close)}},mounted:function(){this.searchPool=this.generateRoutes(this.routes)},methods:{click:function(){this.show=!this.show,this.show&&this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.focus()},close:function(){this.$refs.headerSearchSelect&&this.$refs.headerSearchSelect.blur(),this.options=[],this.show=!1},change:function(e){var t=this;this.$router.push(e.path),this.search="",this.options=[],this.$nextTick(function(){t.show=!1})},initFuse:function(e){this.fuse=new Ue.a(e,{shouldSort:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:1,keys:[{name:"title",weight:.7},{name:"path",weight:.3}]})},generateRoutes:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=[],o=!0,c=!1,l=void 0;try{for(var d,h=e[Symbol.iterator]();!(o=(d=h.next()).done);o=!0){var f=d.value;if(!f.hidden){var data={path:Ge.a.resolve(t,f.path),title:Object(ze.a)(n)};if(f.meta&&f.meta.title&&(data.title=[].concat(Object(ze.a)(data.title),[f.meta.title]),"noRedirect"!==f.redirect&&r.push(data)),f.children){var m=this.generateRoutes(f.children,data.path,data.title);m.length>=1&&(r=[].concat(Object(ze.a)(r),Object(ze.a)(m)))}}}}catch(e){c=!0,l=e}finally{try{o||null==h.return||h.return()}finally{if(c)throw l}}return r},querySearch:function(e){this.options=""!==e?this.fuse.search(e):[]}}},Je=(n(268),{components:{Breadcrumb:Re,Hamburger:Ae,ErrorLog:De,Screenfull:Be,SizeSelect:qe,Search:Object(fe.a)(Ke,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"header-search",class:{show:e.show}},[n("svg-icon",{attrs:{"class-name":"search-icon","icon-class":"search"},on:{click:function(t){return t.stopPropagation(),e.click(t)}}}),e._v(" "),n("el-select",{ref:"headerSearchSelect",staticClass:"header-search-select",attrs:{"remote-method":e.querySearch,filterable:"","default-first-option":"",remote:"",placeholder:"Search"},on:{change:e.change},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}},e._l(e.options,function(e){return n("el-option",{key:e.path,attrs:{value:e,label:e.title.join(" > ")}})}),1)],1)},[],!1,null,"7c1cd94b",null).exports},computed:Object(r.a)({},Object(xe.b)(["sidebar","avatar","device"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=Object(o.a)(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.$store.dispatch("user/logout");case 2:this.$router.push("/login?redirect=".concat(this.$route.fullPath));case 3:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()}}),Xe=(n(269),Object(fe.a)(Je,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"navbar"},[n("hamburger",{staticClass:"hamburger-container",attrs:{id:"hamburger-container","is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),e._v(" "),n("breadcrumb",{staticClass:"breadcrumb-container",attrs:{id:"breadcrumb-container"}}),e._v(" "),n("div",{staticClass:"right-menu"},["mobile"!==e.device?[n("search",{staticClass:"right-menu-item",attrs:{id:"header-search"}}),e._v(" "),n("error-log",{staticClass:"errLog-container right-menu-item hover-effect"}),e._v(" "),n("screenfull",{staticClass:"right-menu-item hover-effect",attrs:{id:"screenfull"}}),e._v(" "),n("el-tooltip",{attrs:{content:"Global Size",effect:"dark",placement:"bottom"}},[n("size-select",{staticClass:"right-menu-item hover-effect",attrs:{id:"size-select"}})],1)]:e._e(),e._v(" "),n("el-dropdown",{staticClass:"avatar-container right-menu-item hover-effect",attrs:{trigger:"click"}},[n("div",{staticClass:"avatar-wrapper"},[n("img",{staticClass:"user-avatar",attrs:{src:e.avatar+"?imageView2/1/w/80/h/80"}}),e._v(" "),n("i",{staticClass:"el-icon-caret-bottom"})]),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("router-link",{attrs:{to:"/"}},[n("el-dropdown-item",[e._v("Dashboard")])],1),e._v(" "),n("el-dropdown-item",{attrs:{divided:""}},[n("span",{staticStyle:{display:"block"},on:{click:e.logout}},[e._v("Log Out")])])],1)],1)],2)],1)},[],!1,null,"c75afa50",null).exports),Qe=(n(167),n(72),n(73),n(119),n(272).version),Ye={data:function(){return{chalk:"",theme:""}},computed:{defaultTheme:function(){return this.$store.state.settings.theme}},watch:{defaultTheme:{handler:function(e,t){this.theme=e},immediate:!0},theme:function(){var e=Object(o.a)(regeneratorRuntime.mark(function e(t){var n,r,o,c,l,d,h=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.chalk?this.theme:"#409EFF","string"==typeof t){e.next=3;break}return e.abrupt("return");case 3:if(r=this.getThemeCluster(t.replace("#","")),o=this.getThemeCluster(n.replace("#","")),console.log(r,o),c=this.$message({message:" Compiling the theme",customClass:"theme-message",type:"success",duration:0,iconClass:"el-icon-loading"}),l=function(e,t){return function(){var n=h.getThemeCluster("#409EFF".replace("#","")),o=h.updateStyle(h[e],n,r),c=document.getElementById(t);c||((c=document.createElement("style")).setAttribute("id",t),document.head.appendChild(c)),c.innerText=o}},this.chalk){e.next=12;break}return d="https://unpkg.com/element-ui@".concat(Qe,"/lib/theme-chalk/index.css"),e.next=12,this.getCSSString(d,"chalk");case 12:l("chalk","chalk-style")(),[].slice.call(document.querySelectorAll("style")).filter(function(style){var text=style.innerText;return new RegExp(n,"i").test(text)&&!/Chalk Variables/.test(text)}).forEach(function(style){var e=style.innerText;"string"==typeof e&&(style.innerText=h.updateStyle(e,o,r))}),this.$emit("change",t),c.close();case 18:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()},methods:{updateStyle:function(style,e,t){var n=style;return e.forEach(function(e,r){n=n.replace(new RegExp(e,"ig"),t[r])}),n},getCSSString:function(e,t){var n=this;return new Promise(function(r){var o=new XMLHttpRequest;o.onreadystatechange=function(){4===o.readyState&&200===o.status&&(n[t]=o.responseText.replace(/@font-face{[^}]+}/,""),r())},o.open("GET",e),o.send()})},getThemeCluster:function(e){for(var t,n,r,o,c,l=[e],i=0;i<=9;i++)l.push((t=e,n=Number((i/10).toFixed(2)),r=void 0,o=void 0,c=void 0,r=parseInt(t.slice(0,2),16),o=parseInt(t.slice(2,4),16),c=parseInt(t.slice(4,6),16),0===n?[r,o,c].join(","):(r+=Math.round(n*(255-r)),o+=Math.round(n*(255-o)),c+=Math.round(n*(255-c)),r=r.toString(16),o=o.toString(16),c=c.toString(16),"#".concat(r).concat(o).concat(c))));return l.push(function(e,t){var n=parseInt(e.slice(0,2),16),r=parseInt(e.slice(2,4),16),o=parseInt(e.slice(4,6),16);return n=Math.round((1-t)*n),r=Math.round((1-t)*r),o=Math.round((1-t)*o),n=n.toString(16),r=r.toString(16),o=o.toString(16),"#".concat(n).concat(r).concat(o)}(e,.1)),l}}},Ze=(n(273),{components:{ThemePicker:Object(fe.a)(Ye,function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-color-picker",{staticClass:"theme-picker",attrs:{predefine:["#409EFF","#1890ff","#304156","#212121","#11a983","#13c2c2","#6959CD","#f5222d"],"popper-class":"theme-picker-dropdown"},model:{value:e.theme,callback:function(t){e.theme=t},expression:"theme"}})},[],!1,null,null,null).exports},data:function(){return{}},computed:{fixedHeader:{get:function(){return this.$store.state.settings.fixedHeader},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"fixedHeader",value:e})}},tagsView:{get:function(){return this.$store.state.settings.tagsView},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"tagsView",value:e})}},sidebarLogo:{get:function(){return this.$store.state.settings.sidebarLogo},set:function(e){this.$store.dispatch("settings/changeSetting",{key:"sidebarLogo",value:e})}}},methods:{themeChange:function(e){this.$store.dispatch("settings/changeSetting",{key:"theme",value:e})}}}),et=(n(274),Object(fe.a)(Ze,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"drawer-container"},[n("div",[n("h3",{staticClass:"drawer-title"},[e._v("Page style setting")]),e._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[e._v("Theme Color")]),e._v(" "),n("theme-picker",{staticStyle:{float:"right",height:"26px",margin:"-3px 8px 0 0"},on:{change:e.themeChange}})],1),e._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[e._v("Open Tags-View")]),e._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:e.tagsView,callback:function(t){e.tagsView=t},expression:"tagsView"}})],1),e._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[e._v("Fixed Header")]),e._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:e.fixedHeader,callback:function(t){e.fixedHeader=t},expression:"fixedHeader"}})],1),e._v(" "),n("div",{staticClass:"drawer-item"},[n("span",[e._v("Sidebar Logo")]),e._v(" "),n("el-switch",{staticClass:"drawer-switch",model:{value:e.sidebarLogo,callback:function(t){e.sidebarLogo=t},expression:"sidebarLogo"}})],1)])])},[],!1,null,"22800621",null).exports),tt={name:"SidebarLogo",props:{collapse:{type:Boolean,required:!0}},data:function(){return{title:"Proginn Admin",logo:"https://stacdn.proginn.com/image/common/logo3.png"}}},nt=(n(275),Object(fe.a)(tt,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"sidebar-logo-container",class:{collapse:e.collapse}},[n("transition",{attrs:{name:"sidebarLogoFade"}},[e.collapse?n("router-link",{key:"collapse",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e()]):n("router-link",{key:"expand",staticClass:"sidebar-logo-link",attrs:{to:"/"}},[e.logo?n("img",{staticClass:"sidebar-logo",attrs:{src:e.logo}}):e._e()])],1)],1)},[],!1,null,"ebb28a52",null).exports),it=n(69),at={name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,r=n.icon,title=n.title,o=[];return r&&o.push(e("i",{class:"svg-icon el-icon-"+r})),title&&o.push(e("span",{slot:"title"},[title])),o}},ot=Object(fe.a)(at,void 0,void 0,!1,null,null,null).exports,st={props:{to:{type:String,required:!0}},methods:{linkProps:function(e){return Object(it.a)(e)?{is:"a",href:e,target:"_blank",rel:"noopener"}:{is:"router-link",to:e}}}},ct=Object(fe.a)(st,function(){var e=this.$createElement;return(this._self._c||e)("component",this._b({},"component",this.linkProps(this.to),!1),[this._t("default")],2)},[],!1,null,null,null).exports,ut={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},lt={name:"SidebarItem",components:{Item:ot,AppLink:ct},mixins:[ut],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,o=t.filter(function(t){return!t.hidden&&(e.onlyOneChild=t,!0)});return 1!==o.length&&(0===o.length&&(this.onlyOneChild=Object(r.a)({},n,{path:"",noShowingChildren:!0}),!0))},resolvePath:function(e){return Object(it.a)(e)?e:Object(it.a)(this.basePath)?this.basePath:Ge.a.resolve(this.basePath,e)}}},ht=Object(fe.a)(lt,function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",{staticClass:"menu-wrapper"},[!e.hasOneShowingChild(e.item.subs,e.item)||e.onlyOneChild.subs&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.title),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item?n("item",{attrs:{icon:e.item&&e.item.icon,title:e.item.title}}):e._e()],1),e._v(" "),e._l(e.item.subs,function(t){return n("sidebar-item",{key:t.title+Math.random(),staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})})],2):[e.onlyOneChild?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.icon||e.item&&e.item.icon,title:e.onlyOneChild.title}})],1)],1):e._e()]],2)},[],!1,null,null,null).exports,ft=n(228),pt=n.n(ft),mt={data:function(){return{permission_routes:je.a}},components:{SidebarItem:ht,Logo:nt},computed:Object(r.a)({},Object(xe.b)(["sidebar"]),{activeMenu:function(){var e=this.$route,meta=e.meta,path=e.path;return meta.activeMenu?meta.activeMenu:path},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return pt.a},isCollapse:function(){return!this.sidebar.opened}})},vt=Object(fe.a)(mt,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),e._v(" "),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},e._l(e.permission_routes,function(e){return n("sidebar-item",{key:e.path+Math.random(),attrs:{item:e,isNest:!0,"base-path":e.path}})}),1)],1)],1)},[],!1,null,null,null).exports,gt=(n(276),{name:"ScrollPane",data:function(){return{left:0}},computed:{scrollWrapper:function(){return this.$refs.scrollContainer.$refs.wrap}},methods:{handleScroll:function(e){var t=e.wheelDelta||40*-e.deltaY,n=this.scrollWrapper;n.scrollLeft=n.scrollLeft+t/4},moveToTarget:function(e){var t=this.$refs.scrollContainer.$el.offsetWidth,n=this.scrollWrapper,r=this.$parent.$refs.tag,o=null,c=null;if(r.length>0&&(o=r[0],c=r[r.length-1]),o===e)n.scrollLeft=0;else if(c===e)n.scrollLeft=n.scrollWidth-t;else{var l=r.findIndex(function(t){return t===e}),d=r[l-1],h=r[l+1],f=h.$el.offsetLeft+h.$el.offsetWidth+4,m=d.$el.offsetLeft-4;f>n.scrollLeft+t?n.scrollLeft=f-t:m<n.scrollLeft&&(n.scrollLeft=m)}}}}),bt=(n(279),Object(fe.a)(gt,function(){var e=this,t=e.$createElement;return(e._self._c||t)("el-scrollbar",{ref:"scrollContainer",staticClass:"scroll-container",attrs:{vertical:!1},nativeOn:{wheel:function(t){return t.preventDefault(),e.handleScroll(t)}}},[e._t("default")],2)},[],!1,null,"b991e648",null).exports),wt={components:{ScrollPane:bt},data:function(){return{visible:!1,top:0,left:0,selectedTag:{},affixTags:[]}},computed:{visitedViews:function(){return this.$store.state.tagsView.visitedViews},routes:function(){return this.$store.state.permission.routes}},watch:{$route:function(){this.addTags(),this.moveToCurrentTag()},visible:function(e){e?document.body.addEventListener("click",this.closeMenu):document.body.removeEventListener("click",this.closeMenu)}},mounted:function(){this.initTags(),this.addTags()},methods:{isActive:function(e){return e.path===this.$route.path},filterAffixTags:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",o=[];return e.forEach(function(e){if(e.meta&&e.meta.affix){var c=Ge.a.resolve(n,e.path);o.push({fullPath:c,path:c,name:e.name,meta:Object(r.a)({},e.meta)})}if(e.children){var l=t.filterAffixTags(e.children,e.path);l.length>=1&&(o=[].concat(Object(ze.a)(o),Object(ze.a)(l)))}}),o},initTags:function(){var e=this.affixTags=this.filterAffixTags(this.routes),t=!0,n=!1,r=void 0;try{for(var o,c=e[Symbol.iterator]();!(t=(o=c.next()).done);t=!0){var l=o.value;l.name&&this.$store.dispatch("tagsView/addVisitedView",l)}}catch(e){n=!0,r=e}finally{try{t||null==c.return||c.return()}finally{if(n)throw r}}},addTags:function(){return this.$route.name&&this.$store.dispatch("tagsView/addView",this.$route),!1},moveToCurrentTag:function(){var e=this,t=this.$refs.tag;this.$nextTick(function(){var n=!0,r=!1,o=void 0;try{for(var c,l=t[Symbol.iterator]();!(n=(c=l.next()).done);n=!0){var d=c.value;if(d.to.path===e.$route.path){e.$refs.scrollPane.moveToTarget(d),d.to.fullPath!==e.$route.fullPath&&e.$store.dispatch("tagsView/updateVisitedView",e.$route);break}}}catch(e){r=!0,o=e}finally{try{n||null==l.return||l.return()}finally{if(r)throw o}}})},refreshSelectedTag:function(view){var e=this;this.$store.dispatch("tagsView/delCachedView",view).then(function(){var t=view.fullPath;e.$nextTick(function(){e.$router.replace({path:"/redirect"+t})})})},closeSelectedTag:function(view){var e=this;this.$store.dispatch("tagsView/delView",view).then(function(t){var n=t.visitedViews;e.isActive(view)&&e.toLastView(n,view)})},closeOthersTags:function(){var e=this;this.$router.push(this.selectedTag),this.$store.dispatch("tagsView/delOthersViews",this.selectedTag).then(function(){e.moveToCurrentTag()})},closeAllTags:function(view){var e=this;this.$store.dispatch("tagsView/delAllViews").then(function(t){var n=t.visitedViews;e.affixTags.some(function(e){return e.path===view.path})||e.toLastView(n,view)})},toLastView:function(e,view){var t=e.slice(-1)[0];t?this.$router.push(t):"Dashboard"===view.name?this.$router.replace({path:"/redirect"+view.fullPath}):this.$router.push("/")},openMenu:function(e,t){var n=this.$el.getBoundingClientRect().left,r=this.$el.offsetWidth-105,o=t.clientX-n+15;this.left=o>r?r:o,this.top=t.clientY,this.visible=!0,this.selectedTag=e},closeMenu:function(){this.visible=!1}}},_t=(n(280),n(281),Object(fe.a)(wt,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tags-view-container",attrs:{id:"tags-view-container"}},[n("scroll-pane",{ref:"scrollPane",staticClass:"tags-view-wrapper"},e._l(e.visitedViews,function(t){return n("router-link",{key:t.path,ref:"tag",refInFor:!0,staticClass:"tags-view-item",class:e.isActive(t)?"active":"",attrs:{to:{path:t.path,query:t.query,fullPath:t.fullPath},tag:"span"},nativeOn:{mouseup:function(n){return"button"in n&&1!==n.button?null:e.closeSelectedTag(t)},contextmenu:function(n){return n.preventDefault(),e.openMenu(t,n)}}},[e._v("\n "+e._s(t.title)+"\n "),t.meta.affix?e._e():n("span",{staticClass:"el-icon-close",on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.closeSelectedTag(t)}}})])}),1),e._v(" "),n("ul",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"contextmenu",style:{left:e.left+"px",top:e.top+"px"}},[n("li",{on:{click:function(t){return e.refreshSelectedTag(e.selectedTag)}}},[e._v("Refresh")]),e._v(" "),e.selectedTag.meta&&e.selectedTag.meta.affix?e._e():n("li",{on:{click:function(t){return e.closeSelectedTag(e.selectedTag)}}},[e._v("Close")]),e._v(" "),n("li",{on:{click:e.closeOthersTags}},[e._v("Close Others")]),e._v(" "),n("li",{on:{click:function(t){return e.closeAllTags(e.selectedTag)}}},[e._v("Close All")])])],1)},[],!1,null,"3edef373",null).exports),xt=(n(169),n(282),n(120),n(285),n(118),n(71),n(12));function yt(e,t){return!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}var Ot={name:"RightPanel",props:{clickNotClose:{default:!1,type:Boolean},buttonTop:{default:250,type:Number}},data:function(){return{show:!1}},computed:{theme:function(){return this.$store.state.settings.theme}},watch:{show:function(e){var t,n;e&&!this.clickNotClose&&this.addEventClick(),e?yt(t=document.body,n="showRightPanel")||(t.className+=" "+n):function(e,t){if(yt(e,t)){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}(document.body,"showRightPanel")}},mounted:function(){this.insertToBody()},beforeDestroy:function(){this.$refs.rightPanel.remove()},methods:{addEventClick:function(){window.addEventListener("click",this.closeSidebar)},closeSidebar:function(e){e.target.closest(".rightPanel")||(this.show=!1,window.removeEventListener("click",this.closeSidebar))},insertToBody:function(){var e=this.$refs.rightPanel,body=document.querySelector("body");body.insertBefore(e,body.firstChild)}}},jt=(n(287),n(288),Object(fe.a)(Ot,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"rightPanel",staticClass:"rightPanel-container",class:{show:e.show}},[n("div",{staticClass:"rightPanel-background"}),e._v(" "),n("div",{staticClass:"rightPanel"},[n("div",{staticClass:"handle-button",style:{top:e.buttonTop+"px","background-color":e.theme},on:{click:function(t){e.show=!e.show}}},[n("i",{class:e.show?"el-icon-close":"el-icon-setting"})]),e._v(" "),n("div",{staticClass:"rightPanel-items"},[e._t("default")],2)])])},[],!1,null,"4b83cfcf",null).exports),Ct=n(23),kt=document.body,Et={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&Ct.default.dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){this.$_isMobile()&&(Ct.default.dispatch("app/toggleDevice","mobile"),Ct.default.dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){return kt.getBoundingClientRect().width-1<992},$_resizeHandler:function(){if(!document.hidden){var e=this.$_isMobile();Ct.default.dispatch("app/toggleDevice",e?"mobile":"desktop"),e&&Ct.default.dispatch("app/closeSideBar",{withoutAnimation:!0})}}}},St={name:"Layout",components:{AppMain:_e,Navbar:Xe,RightPanel:jt,Settings:et,Sidebar:vt,TagsView:_t},mixins:[Et],computed:Object(r.a)({},Object(xe.c)({sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},showSettings:function(e){return e.settings.showSettings},needTagsView:function(e){return e.settings.tagsView},fixedHeader:function(e){return e.settings.fixedHeader}}),{classObj:function(){return{hideSidebar:!this.sidebar.opened,openSidebar:this.sidebar.opened,withoutAnimation:this.sidebar.withoutAnimation,mobile:"mobile"===this.device}}}),methods:{handleClickOutside:function(){this.$store.dispatch("app/closeSideBar",{withoutAnimation:!1})}}},$t=(n(363),Object(fe.a)(St,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),e._v(" "),n("sidebar",{staticClass:"sidebar-container"}),e._v(" "),n("div",{staticClass:"main-container",class:{hasTagsView:e.needTagsView}},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar")],1),e._v(" "),n("app-main")],1)],1)},[],!1,null,null,null).exports),Tt=(n(364),{"_components/AppMain":_e,"_components/index":void 0,"_components/Navbar":Xe,"_components/Settings/index":et,"_components/Sidebar/FixiOSBug":ut,"_components/Sidebar/index":vt,"_components/Sidebar/Item":ot,"_components/Sidebar/Link":ct,"_components/Sidebar/Logo":nt,"_components/Sidebar/SidebarItem":ht,"_components/TagsView/index":_t,"_components/TagsView/ScrollPane":bt,_default:$t,_empty:Object(fe.a)({},function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("nuxt")],1)},[],!1,null,null,null).exports,"_mixin/ResizeHandler":Et}),Vt={head:{title:"程序员客栈后台",meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{hid:"description",name:"description",content:"程序员客栈后台"}],link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"}],style:[],script:[]},render:function(e,t){var n=e("NuxtLoading",{ref:"loading"}),r=e(this.layout||"nuxt"),o=e("div",{domProps:{id:"__layout"},key:this.layoutName},[r]),c=e("transition",{props:{name:"layout",mode:"out-in"},on:{beforeEnter:function(e){window.$nuxt.$nextTick(function(){window.$nuxt.$emit("triggerScroll")})}}},[o]);return e("div",{domProps:{id:"__nuxt"}},[n,c])},data:function(){return{isOnline:!0,layout:null,layoutName:""}},beforeCreate:function(){c.default.util.defineReactive(this,"nuxt",this.$options.nuxt)},created:function(){c.default.prototype.$nuxt=this,window.$nuxt=this,this.refreshOnlineStatus(),window.addEventListener("online",this.refreshOnlineStatus),window.addEventListener("offline",this.refreshOnlineStatus),this.error=this.nuxt.error},mounted:function(){this.$loading=this.$refs.loading},watch:{"nuxt.err":"errorChanged"},computed:{isOffline:function(){return!this.isOnline}},methods:{refreshOnlineStatus:function(){void 0===window.navigator.onLine?this.isOnline=!0:this.isOnline=window.navigator.onLine},errorChanged:function(){this.nuxt.err&&this.$loading&&(this.$loading.fail&&this.$loading.fail(),this.$loading.finish&&this.$loading.finish())},setLayout:function(e){return e&&Tt["_"+e]||(e="default"),this.layoutName=e,this.layout=Tt["_"+e],this.layout},loadLayout:function(e){return e&&Tt["_"+e]||(e="default"),Promise.resolve(Tt["_"+e])}},components:{NuxtLoading:be}};n(64);c.default.use(xe.a);var Rt=["state","getters","actions","mutations"],Lt={};(Lt=function(e,t){if((e=e.default||e).commit)throw new Error("[nuxt] ".concat(t," should export a method that returns a Vuex instance."));return"function"!=typeof e&&(e=Object.assign({},e)),Dt(e,t)}(n(23),"store/index.js")).modules=Lt.modules||{},Pt(n(163),"getters.js"),Pt(n(191),"modules/app.js"),Pt(n(192),"modules/errorLog.js"),Pt(n(193),"modules/permission.js"),Pt(n(194),"modules/settings.js"),Pt(n(195),"modules/tagsView.js"),Pt(n(222),"modules/user.js");var At=Lt instanceof Function?Lt:function(){return new xe.a.Store(Object.assign({strict:!1},Lt))};function Pt(e,t){e=e.default||e;var n=t.replace(/\.(js|mjs|ts)$/,"").split("/"),r=n[n.length-1],o="store/".concat(t);if(e="state"===r?function(e,t){if("function"!=typeof e){console.warn("".concat(t," should export a method that returns an object"));var n=Object.assign({},e);return function(){return n}}return Dt(e,t)}(e,o):Dt(e,o),Rt.includes(r)){var c=r;Nt(It(Lt,n,{isProperty:!0}),e,c)}else{"index"===r&&(n.pop(),r=n[n.length-1]);for(var l=It(Lt,n),d=0,h=Rt;d<h.length;d++){var f=h[d];Nt(l,e[f],f)}!1===e.namespaced&&delete l.namespaced}}function Dt(e,t){if(e.state&&"function"!=typeof e.state){console.warn("'state' should be a method that returns an object in ".concat(t));var n=Object.assign({},e.state);e=Object.assign({},e,{state:function(){return n}})}return e}function It(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).isProperty,r=void 0!==n&&n;if(!t.length||r&&1===t.length)return e;var o=t.shift();return e.modules[o]=e.modules[o]||{},e.modules[o].namespaced=!0,e.modules[o].modules=e.modules[o].modules||{},It(e.modules[o],t,{isProperty:r})}function Nt(e,t,n){t&&("state"===n?e.state=t||e.state:e[n]=Object.assign({},e[n],t))}for(var Mt=n(55),Bt=n.n(Mt),Ht={setHeader:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=!0,o=!1,c=void 0;try{for(var l,d=(Array.isArray(n)?n:[n])[Symbol.iterator]();!(r=(l=d.next()).done);r=!0){var h=l.value;if(!t)return void delete this.defaults.headers[h][e];this.defaults.headers[h][e]=t}}catch(e){o=!0,c=e}finally{try{r||null==d.return||d.return()}finally{if(o)throw c}}},setToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"common",r=e?(t?t+" ":"")+e:null;this.setHeader("Authorization",r,n)},onRequest:function(e){this.interceptors.request.use(function(t){return e(t)||t})},onResponse:function(e){this.interceptors.response.use(function(t){return e(t)||t})},onRequestError:function(e){this.interceptors.request.use(void 0,function(t){return e(t)||Promise.reject(t)})},onResponseError:function(e){this.interceptors.response.use(void 0,function(t){return e(t)||Promise.reject(t)})},onError:function(e){this.onRequestError(e),this.onResponseError(e)}},qt=function(){var e=Wt[zt];Ht["$"+e]=function(){return this[e].apply(this,arguments).then(function(e){return e&&e.data})}},zt=0,Wt=["request","delete","get","head","options","post","put","patch"];zt<Wt.length;zt++)qt();var Ut=function(e,t){var n={baseURL:"http://localhost:3001/",headers:{common:{Accept:"application/json, text/plain, */*"},delete:{},get:{},head:{},post:{},put:{},patch:{}}};n.headers.common=e.req&&e.req.headers?Object.assign({},e.req.headers):{},delete n.headers.common.accept,delete n.headers.common.host,delete n.headers.common["cf-ray"],delete n.headers.common["cf-connecting-ip"],delete n.headers.common["content-length"];var r=Bt.a.create(n);!function(e){for(var t in Ht)e[t]=Ht[t].bind(e)}(r),function(e,t){var n={finish:function(){},start:function(){},fail:function(){},set:function(){}},r=function(){return window.$nuxt&&window.$nuxt.$loading&&window.$nuxt.$loading.set?window.$nuxt.$loading:n},o=0;e.onRequest(function(e){e&&!1===e.progress||o++}),e.onResponse(function(e){e&&e.config&&!1===e.config.progress||--o<=0&&(o=0,r().finish())}),e.onError(function(e){e&&e.config&&!1===e.config.progress||(o--,r().fail(),r().finish())});var c=function(e){if(o){var progress=100*e.loaded/(e.total*o);r().set(Math.min(100,progress))}};e.defaults.onUploadProgress=c,e.defaults.onDownloadProgress=c}(r),e.$axios=r,t("axios",r)},Ft=n(57),Gt=n.n(Ft),Kt=n(164),Jt=n.n(Kt),Xt=function(){c.default.use(Gt.a,{locale:Jt.a})},Qt=function(){var e=Object(o.a)(regeneratorRuntime.mark(function e(path,data,t){var n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Zt("get",path,data,t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),Yt=function(){var e=Object(o.a)(regeneratorRuntime.mark(function e(path){var data,t,n,element,r,o=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(n in data=o.length>1&&void 0!==o[1]?o[1]:{},o.length>2?o[2]:void 0,t="",data)data.hasOwnProperty(n)&&((element=data[n])||0===element)&&(t+="".concat(n,"=").concat(element,"&"));return t=t.slice(0,t.length-1),e.next=7,Zt("post",path,t,{config:{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}});case 7:return r=e.sent,e.abrupt("return",r);case 9:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}(),Zt=function(){var e=Object(o.a)(regeneratorRuntime.mark(function e(t,path,data){var n,body,r,o,l=arguments;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=l.length>3&&void 0!==l[3]?l[3]:{},"",body={url:""+path,data:data,method:t,params:data},n.config&&Object.assign(body,n.config,{params:""}),en({body:body}),e.next=8,Bt.a.request(body);case 8:if(r=e.sent,o=r.data,"object"!==Object(xt.a)(o)&&(o=JSON.parse(o)),1!==o.status){e.next=15;break}return e.abrupt("return",o);case 15:if(-99!==o.status){e.next=20;break}return location.href="/login",e.abrupt("return");case 20:return c.default.prototype.$message.error(o.info),o.status=0,e.abrupt("return",o);case 23:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),en=function(e){Object.keys(e)[0]};c.default.prototype.$get=Qt,c.default.prototype.$post=Yt,c.default.prototype.$request=Zt;var tn=n(166),nn=n.n(tn),rn=(n(370),n(371),n(229)),an=n.n(rn);nn.a.Quill.register("modules/imageResize",an.a),c.default.use(nn.a),n.d(t,"b",function(){return sn}),n.d(t,"a",function(){return pe}),c.default.component(ce.name,ce),c.default.component(ue.name,ue),c.default.component("NChild",ue),c.default.component(ve.name,ve),c.default.use(d.a,{keyName:"head",attribute:"data-n-head",ssrAttribute:"data-n-head-ssr",tagIDKeyName:"hid"});var on={name:"page",mode:"out-in",appear:!0,appearClass:"appear",appearActiveClass:"appear-active",appearToClass:"appear-to"};function sn(e){return cn.apply(this,arguments)}function cn(){return(cn=Object(o.a)(regeneratorRuntime.mark(function e(t){var n,o,l,d,oe,path,se;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new h.c({mode:"history",base:decodeURI("/"),linkActiveClass:"nuxt-link-active",linkExactActiveClass:"nuxt-link-exact-active",scrollBehavior:ae,routes:[{path:"/login",component:m,name:"login"},{path:"/main",component:v,children:[{path:"",component:w,name:"main-index"},{path:"404",component:_,name:"main-index-404"},{path:"artificial_order",component:x,name:"main-index-artificial_order"},{path:"artificial_orders",component:y,name:"main-index-artificial_orders"},{path:"balance_change",component:O,name:"main-index-balance_change"},{path:"cats",component:j,name:"main-index-cats"},{path:"cats copy",component:C,name:"main-index-cats copy"},{path:"cert_check",component:k,name:"main-index-cert_check"},{path:"cert_edit",component:E,name:"main-index-cert_edit"},{path:"cert_pro",component:S,name:"main-index-cert_pro"},{path:"cloud_balance",component:$,name:"main-index-cloud_balance"},{path:"cloud_developer",component:T,name:"main-index-cloud_developer"},{path:"cloud_job",component:V,name:"main-index-cloud_job"},{path:"cloud_order copy",component:R,name:"main-index-cloud_order copy"},{path:"dev_check",component:L,name:"main-index-dev_check"},{path:"dev_check_detail",component:A,name:"main-index-dev_check_detail"},{path:"dev_show",component:P,name:"main-index-dev_show"},{path:"gongmall",component:D,name:"main-index-gongmall"},{path:"group_list",component:I,name:"main-index-group_list"},{path:"job",component:N,name:"main-index-job"},{path:"jobs",component:M,name:"main-index-jobs"},{path:"orders",component:B,name:"main-index-orders"},{path:"orders_detail",component:H,name:"main-index-orders_detail"},{path:"orders_frozen",component:z,name:"main-index-orders_frozen"},{path:"outsource_bill",component:W,name:"main-index-outsource_bill"},{path:"present_job_apply",component:U,name:"main-index-present_job_apply"},{path:"publish_present",component:F,name:"main-index-publish_present"},{path:"solution",component:G,name:"main-index-solution"},{path:"solution_detail",component:K,name:"main-index-solution_detail"},{path:"user_bills",component:J,name:"main-index-user_bills"},{path:"vip_manager",component:X,name:"main-index-vip_manager"},{path:"vip_order",component:Q,name:"main-index-vip_order"},{path:"vip_setting",component:Y,name:"main-index-vip_setting"},{path:"wage_details",component:Z,name:"main-index-wage_details"},{path:"wage_settlement",component:ee,name:"main-index-wage_settlement"},{path:"wait_expend",component:te,name:"main-index-wait_expend"},{path:"withdraw",component:ne,name:"main-index-withdraw"},{path:"work_bill",component:re,name:"main-index-work_bill"}]},{path:"/",component:ie,name:"index"}],fallback:!1});case 2:return n=e.sent,(o=At(t)).$router=n,l=Object(r.a)({router:n,store:o,nuxt:{defaultTransition:on,transitions:[on],setTransitions:function(e){return Array.isArray(e)||(e=[e]),e=e.map(function(e){return e=e?"string"==typeof e?Object.assign({},on,{name:e}):Object.assign({},on,e):on}),this.$options.nuxt.transitions=e,e},err:null,dateErr:null,error:function(e){e=e||null,l.context._errored=Boolean(e),e=e?Object(f.l)(e):null;var n=this.nuxt||this.$options.nuxt;return n.dateErr=Date.now(),n.err=e,t&&(t.nuxt.error=e),e}}},Vt),o.app=l,d=t?t.next:function(e){return l.router.push(e)},t?oe=n.resolve(t.url).route:(path=Object(f.d)(n.options.base),oe=n.resolve(path).route),e.next=11,Object(f.p)(l,{route:oe,next:d,error:l.nuxt.error.bind(l),store:o,payload:t?t.payload:void 0,req:t?t.req:void 0,res:t?t.res:void 0,beforeRenderFns:t?t.beforeRenderFns:void 0,ssrContext:t});case 11:if(se=function(e,t){if(!e)throw new Error("inject(key, value) has no key provided");if(void 0===t)throw new Error("inject(key, value) has no value provided");l[e="$"+e]=t,o[e]=l[e];var n="__nuxt_"+e+"_installed__";c.default[n]||(c.default[n]=!0,c.default.use(function(){c.default.prototype.hasOwnProperty(e)||Object.defineProperty(c.default.prototype,e,{get:function(){return this.$root.$options[e]}})}))},window.__NUXT__&&window.__NUXT__.state&&o.replaceState(window.__NUXT__.state),"function"!=typeof Ut){e.next=16;break}return e.next=16,Ut(l.context,se);case 16:if("function"!=typeof Xt){e.next=19;break}return e.next=19,Xt(l.context,se);case 19:e.next=22;break;case 22:e.next=25;break;case 25:e.next=28;break;case 28:return e.abrupt("return",{app:l,store:o,router:n});case 29:case"end":return e.stop()}},e)}))).apply(this,arguments)}},68:function(e,t,n){"use strict";t.a=[{title:"管理中心",icon:"location",path:"",subs:[{title:"管理中心",path:"https://www.proginn.com/rooter"}]},{title:"财务",icon:"coin",path:"",subs:[{title:"交易订单",path:"/main/orders"},{title:"人工订单",path:"/main/artificial_orders"},{title:"云端结算",path:"/main/cloud_balance"},{title:"人工财务表单",path:"/main/artificial_order",hidden:!0},{title:"余额变动管理",path:"/main/balance_change"},{title:"提现账单",path:"/main/withdraw"},{title:"工资结算",path:"/main/wage_settlement",hidden:!0},{title:"冻结订单",path:"/main/orders_frozen",hidden:!1},{title:"待支出订单",path:"/main/wait_expend",hidden:!1},{title:"账单详情",path:"/main/bills",hidden:!0},{title:"财务订单详情",path:"/main/orders_detail",hidden:!0},{title:"整包账单明细",path:"/main/outsource_bill",hidden:!0},{title:"工资账单明细",path:"/main/work_bill",hidden:!0},{title:"用户账单列表",path:"/main/user_bills",hidden:!0},{title:"工资账单明细",path:"/main/wage_details",hidden:!0}]},{title:"运营",icon:"service",path:"",subs:[{title:"云端开发者展示",path:"/main/dev_show"}]},{title:"项目",icon:"s-management",path:"",subs:[{title:"解决方案",path:"/main/solution"},{title:"企业入驻审核",path:"/main/solution_detail",hidden:!0},{title:"兼职招聘",path:"/main/jobs"},{title:"兼职招聘详情",path:"/main/job",hidden:!0},{title:"云端工作",path:"/main/cloud_job"},{title:"协作群组",path:"/main/group_list"},{title:"工猫结算订单",path:"/main/gongmall"},{title:"驻场招聘信息",path:"/main/publish_present",hidden:!0},{title:"驻场招聘申请列表",path:"/main/present_job_apply",hidden:!0}]},{title:"用户与认证",icon:"s-check",path:"",subs:[{title:"开发者管理",path:"/main/cats"},{title:"开发者审核",path:"/main/dev_check"},{title:"认证开发者",path:"/main/cert_check"},{title:"认证产品",path:"/main/cert_pro"},{title:"云端开发者认证表",path:"/main/cloud_developer"}]},{title:"会员",icon:"user-solid",path:"",subs:[{title:"会员管理",path:"/main/vip_manager"},{title:"会员订单",path:"/main/vip_order"},{title:"会员设置",path:"/main/vip_setting"}]}]},69:function(e,t,n){"use strict";n.d(t,"a",function(){return r});n(72),n(73),n(8);function r(path){return/^(https?:|mailto:|tel:)/.test(path)}},70:function(e,t){e.exports={title:"程序员客栈后台",showSettings:!0,tagsView:!0,fixedHeader:!1,sidebarLogo:!0,errorLog:"production"}},95:function(e,t,n){},96:function(e,t,n){},97:function(e,t,n){},98:function(e,t,n){},99:function(e,t,n){}},[[231,43,1,44]]]);