Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/js/vue-settings-apps-users-management.js')
-rw-r--r--apps/settings/js/vue-settings-apps-users-management.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings/js/vue-settings-apps-users-management.js b/apps/settings/js/vue-settings-apps-users-management.js
index 12e54dc5204..8866115115b 100644
--- a/apps/settings/js/vue-settings-apps-users-management.js
+++ b/apps/settings/js/vue-settings-apps-users-management.js
@@ -35,7 +35,7 @@ var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typ
* (c) 2021 Evan You
* @license MIT
*/
-function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(u=t)}l.state.get=function(){return this._vm._data.$$state},l.state.set=function(t){0},f.prototype.commit=function(t,e,n){var r=this,o=y(t,e,n),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},f.prototype.dispatch=function(t,e){var n=this,r=y(t,e),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(t){0}var c=s.length>1?Promise.all(s.map((function(t){return t(i)}))):s[0](i);return new Promise((function(t,e){c.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(t){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(t){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return p(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){return p("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},f.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),n.preserveState),h(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=m(e.state,t.slice(0,-1));u.delete(n,t[t.length-1])})),d(this)},f.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype.hotUpdate=function(t){this._modules.update(t),d(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,l);var b=x((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=A(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0})),n})),_=x((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var i=A(this.$store,"mapMutations",t);if(!i)return;r=i.context.commit}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n})),w=x((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||A(this.$store,"mapGetters",t))return this.$store.getters[o]},n[r].vuex=!0})),n})),O=x((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var i=A(this.$store,"mapActions",t);if(!i)return;r=i.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n}));function E(t){return function(t){return Array.isArray(t)||i(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function x(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function A(t,e,n){return t._modulesNamespaceMap[n]}function C(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(n){t.log(e)}}function S(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function T(){var t=new Date;return" @ "+I(t.getHours(),2)+":"+I(t.getMinutes(),2)+":"+I(t.getSeconds(),2)+"."+I(t.getMilliseconds(),3)}function I(t,e){return n="0",r=e-t.toString().length,new Array(r+1).join(n)+t;var n,r}var j={Store:f,install:g,version:"3.6.2",mapState:b,mapMutations:_,mapGetters:w,mapActions:O,createNamespacedHelpers:function(t){return{mapState:b.bind(null,t),mapGetters:w.bind(null,t),mapMutations:_.bind(null,t),mapActions:O.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var o=t.transformer;void 0===o&&(o=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var u=t.logActions;void 0===u&&(u=!0);var f=t.logger;return void 0===f&&(f=console),function(t){var l=r(t.state);void 0!==f&&(c&&t.subscribe((function(t,a){var s=r(a);if(n(t,l,s)){var c=T(),u=i(t),p="mutation "+t.type+c;C(f,p,e),f.log("%c prev state","color: #9E9E9E; font-weight: bold",o(l)),f.log("%c mutation","color: #03A9F4; font-weight: bold",u),f.log("%c next state","color: #4CAF50; font-weight: bold",o(s)),S(f)}l=s})),u&&t.subscribeAction((function(t,n){if(a(t,n)){var r=T(),o=s(t),i="action "+t.type+r;C(f,i,e),f.log("%c action","color: #03A9F4; font-weight: bold",o),S(f)}})))}}};e.a=j}).call(this,n(14))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){function n(t,e){var r={name:t.name,path:t.path,hash:t.hash,query:t.query,params:t.params,fullPath:t.fullPath,meta:t.meta};return e&&(r.from=n(e)),Object.freeze(r)}e.sync=function(t,e,r){var o=(r||{}).moduleName||"route";t.registerModule(o,{namespaced:!0,state:n(e.currentRoute),mutations:{ROUTE_CHANGED:function(e,r){t.state[o]=n(r.to,r.from)}}});var i,a=!1,s=t.watch((function(t){return t[o]}),(function(t){var n=t.fullPath;n!==i&&(null!=i&&(a=!0,e.push(t)),i=n)}),{sync:!0}),c=e.afterEach((function(e,n){a?a=!1:(i=e.fullPath,t.commit(o+"/ROUTE_CHANGED",{to:e,from:n}))}));return function(){null!=c&&c(),null!=s&&s(),t.unregisterModule(o)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,r,o){"use strict";o.r(r),o.d(r,"app",(function(){return Se})),o.d(r,"router",(function(){return oe})),o.d(r,"store",(function(){return Ce}));var i=o(15),a=o(131),s=o(421),c={name:"App",beforeMount:function(){null!==document.getElementById("serverData")&&this.$store.commit("setServerData",JSON.parse(document.getElementById("serverData").dataset.server))}},u=o(37),f=Object(u.a)(c,(function(){var t=this.$createElement;return(this._self._c||t)("router-view")}),[],!1,null,null,null).exports;function l(t,e){for(var n in e)t[n]=e[n];return t}var p=/[!'()*]/g,d=function(t){return"%"+t.charCodeAt(0).toString(16)},h=/%2C/g,v=function(t){return encodeURIComponent(t).replace(p,d).replace(h,",")};function m(t){try{return decodeURIComponent(t)}catch(t){0}return t}var y=function(t){return null==t||"object"==typeof t?t:String(t)};function g(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=m(n.shift()),o=n.length>0?m(n.join("=")):null;void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]})),e):e}function b(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return v(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(v(e)):r.push(v(e)+"="+v(t)))})),r.join("&")}return v(e)+"="+v(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var _=/\/?$/;function w(t,e,n,r){var o=r&&r.options.stringifyQuery,i=e.query||{};try{i=O(i)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:A(e,o),matched:t?x(t):[]};return n&&(a.redirectedFrom=A(n,o)),Object.freeze(a)}function O(t){if(Array.isArray(t))return t.map(O);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=O(t[n]);return e}return t}var E=w(null,{path:"/"});function x(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function A(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var o=t.hash;return void 0===o&&(o=""),(n||"/")+(e||b)(r)+o}function C(t,e,n){return e===E?t===e:!!e&&(t.path&&e.path?t.path.replace(_,"")===e.path.replace(_,"")&&(n||t.hash===e.hash&&S(t.query,e.query)):!(!t.name||!e.name)&&(t.name===e.name&&(n||t.hash===e.hash&&S(t.query,e.query)&&S(t.params,e.params))))}function S(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((function(n,o){var i=t[n];if(r[o]!==n)return!1;var a=e[n];return null==i||null==a?i===a:"object"==typeof i&&"object"==typeof a?S(i,a):String(i)===String(a)}))}function T(t){for(var e=0;e<t.matched.length;e++){var n=t.matched[e];for(var r in n.instances){var o=n.instances[r],i=n.enteredCbs[r];if(o&&i){delete n.enteredCbs[r];for(var a=0;a<i.length;a++)o._isBeingDestroyed||i[a](o)}}}}var I={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,i=e.data;i.routerView=!0;for(var a=o.$createElement,s=n.name,c=o.$route,u=o._routerViewCache||(o._routerViewCache={}),f=0,p=!1;o&&o._routerRoot!==o;){var d=o.$vnode?o.$vnode.data:{};d.routerView&&f++,d.keepAlive&&o._directInactive&&o._inactive&&(p=!0),o=o.$parent}if(i.routerViewDepth=f,p){var h=u[s],v=h&&h.component;return v?(h.configProps&&j(v,i,h.route,h.configProps),a(v,i,r)):a()}var m=c.matched[f],y=m&&m.components[s];if(!m||!y)return u[s]=null,a();u[s]={component:y},i.registerRouteInstance=function(t,e){var n=m.instances[s];(e&&n!==t||!e&&n===t)&&(m.instances[s]=e)},(i.hook||(i.hook={})).prepatch=function(t,e){m.instances[s]=e.componentInstance},i.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==m.instances[s]&&(m.instances[s]=t.componentInstance),T(c)};var g=m.props&&m.props[s];return g&&(l(u[s],{route:c,configProps:g}),j(y,i,c,g)),a(y,i,r)}};function j(t,e,n,r){var o=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(n,r);if(o){o=e.props=l({},o);var i=e.attrs=e.attrs||{};for(var a in o)t.props&&a in t.props||(i[a]=o[a],delete o[a])}}function k(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var o=e.split("/");n&&o[o.length-1]||o.pop();for(var i=t.replace(/^\//,"").split("/"),a=0;a<i.length;a++){var s=i[a];".."===s?o.pop():"."!==s&&o.push(s)}return""!==o[0]&&o.unshift(""),o.join("/")}function L(t){return t.replace(/\/\//g,"/")}var $=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},R=W,P=F,N=function(t,e){return H(F(t,e),e)},U=H,D=X,M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function F(t,e){for(var n,r=[],o=0,i=0,a="",s=e&&e.delimiter||"/";null!=(n=M.exec(t));){var c=n[0],u=n[1],f=n.index;if(a+=t.slice(i,f),i=f+c.length,u)a+=u[1];else{var l=t[i],p=n[2],d=n[3],h=n[4],v=n[5],m=n[6],y=n[7];a&&(r.push(a),a="");var g=null!=p&&null!=l&&l!==p,b="+"===m||"*"===m,_="?"===m||"*"===m,w=n[2]||s,O=h||v;r.push({name:d||o++,prefix:p||"",delimiter:w,optional:_,repeat:b,partial:g,asterisk:!!y,pattern:O?G(O):y?".*":"[^"+z(w)+"]+?"})}}return i<t.length&&(a+=t.substr(i)),a&&r.push(a),r}function B(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function H(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"==typeof t[r]&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",q(e)));return function(e,r){for(var o="",i=e||{},a=(r||{}).pretty?B:encodeURIComponent,s=0;s<t.length;s++){var c=t[s];if("string"!=typeof c){var u,f=i[c.name];if(null==f){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if($(f)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var l=0;l<f.length;l++){if(u=a(f[l]),!n[s].test(u))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(u)+"`");o+=(0===l?c.prefix:c.delimiter)+u}}else{if(u=c.asterisk?encodeURI(f).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):a(f),!n[s].test(u))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+u+'"');o+=c.prefix+u}}else o+=c}return o}}function z(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function G(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function V(t,e){return t.keys=e,t}function q(t){return t&&t.sensitive?"":"i"}function X(t,e,n){$(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,o=!1!==n.end,i="",a=0;a<t.length;a++){var s=t[a];if("string"==typeof s)i+=z(s);else{var c=z(s.prefix),u="(?:"+s.pattern+")";e.push(s),s.repeat&&(u+="(?:"+c+u+")*"),i+=u=s.optional?s.partial?c+"("+u+")?":"(?:"+c+"("+u+"))?":c+"("+u+")"}}var f=z(n.delimiter||"/"),l=i.slice(-f.length)===f;return r||(i=(l?i.slice(0,-f.length):i)+"(?:"+f+"(?=$))?"),i+=o?"$":r&&l?"":"(?="+f+"|$)",V(new RegExp("^"+i,q(n)),e)}function W(t,e,n){return $(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return V(t,e)}(t,e):$(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(W(t[o],e,n).source);return V(new RegExp("(?:"+r.join("|")+")",q(n)),e)}(t,e,n):function(t,e,n){return X(F(t,n),e,n)}(t,e,n)}R.parse=P,R.compile=N,R.tokensToFunction=U,R.tokensToRegExp=D;var K=Object.create(null);function Y(t,e,n){e=e||{};try{var r=K[t]||(K[t]=R.compile(t));return"string"==typeof e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(t){return""}finally{delete e[0]}}function J(t,e,n,r){var o="string"==typeof t?{path:t}:t;if(o._normalized)return o;if(o.name){var i=(o=l({},t)).params;return i&&"object"==typeof i&&(o.params=l({},i)),o}if(!o.path&&o.params&&e){(o=l({},o))._normalized=!0;var a=l(l({},e.params),o.params);if(e.name)o.name=e.name,o.params=a;else if(e.matched.length){var s=e.matched[e.matched.length-1].path;o.path=Y(s,a,e.path)}else 0;return o}var c=function(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}(o.path||""),u=e&&e.path||"/",f=c.path?k(c.path,u,n||o.append):u,p=function(t,e,n){void 0===e&&(e={});var r,o=n||g;try{r=o(t||"")}catch(t){r={}}for(var i in e){var a=e[i];r[i]=Array.isArray(a)?a.map(y):y(a)}return r}(c.query,o.query,r&&r.options.parseQuery),d=o.hash||c.hash;return d&&"#"!==d.charAt(0)&&(d="#"+d),{_normalized:!0,path:f,query:p,hash:d}}var Q,Z=function(){},tt={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),i=o.location,a=o.route,s=o.href,c={},u=n.options.linkActiveClass,f=n.options.linkExactActiveClass,p=null==u?"router-link-active":u,d=null==f?"router-link-exact-active":f,h=null==this.activeClass?p:this.activeClass,v=null==this.exactActiveClass?d:this.exactActiveClass,m=a.redirectedFrom?w(null,J(a.redirectedFrom),null,n):a;c[v]=C(r,m,this.exactPath),c[h]=this.exact||this.exactPath?c[v]:function(t,e){return 0===t.path.replace(_,"/").indexOf(e.path.replace(_,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,m);var y=c[v]?this.ariaCurrentValue:null,g=function(t){et(t)&&(e.replace?n.replace(i,Z):n.push(i,Z))},b={click:et};Array.isArray(this.event)?this.event.forEach((function(t){b[t]=g})):b[this.event]=g;var O={class:c},E=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:a,navigate:g,isActive:c[h],isExactActive:c[v]});if(E){if(1===E.length)return E[0];if(E.length>1||!E.length)return 0===E.length?t():t("span",{},E)}if("a"===this.tag)O.on=b,O.attrs={href:s,"aria-current":y};else{var x=function t(e){var n;if(e)for(var r=0;r<e.length;r++){if("a"===(n=e[r]).tag)return n;if(n.children&&(n=t(n.children)))return n}}(this.$slots.default);if(x){x.isStatic=!1;var A=x.data=l({},x.data);for(var S in A.on=A.on||{},A.on){var T=A.on[S];S in b&&(A.on[S]=Array.isArray(T)?T:[T])}for(var I in b)I in A.on?A.on[I].push(b[I]):A.on[I]=g;var j=x.data.attrs=l({},x.data.attrs);j.href=s,j["aria-current"]=y}else O.on=b}return t(this.tag,O,this.$slots.default)}};function et(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}var nt="undefined"!=typeof window;function rt(t,e,n,r,o){var i=e||[],a=n||Object.create(null),s=r||Object.create(null);t.forEach((function(t){!function t(e,n,r,o,i,a){var s=o.path,c=o.name;0;var u=o.pathToRegexpOptions||{},f=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return L(e.path+"/"+t)}(s,i,u.strict);"boolean"==typeof o.caseSensitive&&(u.sensitive=o.caseSensitive);var l={path:f,regex:ot(f,u),components:o.components||{default:o.component},alias:o.alias?"string"==typeof o.alias?[o.alias]:o.alias:[],instances:{},enteredCbs:{},name:c,parent:i,matchAs:a,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};o.children&&o.children.forEach((function(o){var i=a?L(a+"/"+o.path):void 0;t(e,n,r,o,l,i)}));n[l.path]||(e.push(l.path),n[l.path]=l);if(void 0!==o.alias)for(var p=Array.isArray(o.alias)?o.alias:[o.alias],d=0;d<p.length;++d){0;var h={path:p[d],children:o.children};t(e,n,r,h,i,l.path||"/")}c&&(r[c]||(r[c]=l))}(i,a,s,t,o)}));for(var c=0,u=i.length;c<u;c++)"*"===i[c]&&(i.push(i.splice(c,1)[0]),u--,c--);return{pathList:i,pathMap:a,nameMap:s}}function ot(t,e){return R(t,[],e)}function it(t,e){var n=rt(t),r=n.pathList,o=n.pathMap,i=n.nameMap;function a(t,n,a){var s=J(t,n,!1,e),u=s.name;if(u){var f=i[u];if(!f)return c(null,s);var l=f.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!=typeof s.params&&(s.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in s.params)&&l.indexOf(p)>-1&&(s.params[p]=n.params[p]);return s.path=Y(f.path,s.params),c(f,s,a)}if(s.path){s.params={};for(var d=0;d<r.length;d++){var h=r[d],v=o[h];if(at(v.regex,s.path,s.params))return c(v,s,a)}}return c(null,s)}function s(t,n){var r=t.redirect,o="function"==typeof r?r(w(t,n,null,e)):r;if("string"==typeof o&&(o={path:o}),!o||"object"!=typeof o)return c(null,n);var s=o,u=s.name,f=s.path,l=n.query,p=n.hash,d=n.params;if(l=s.hasOwnProperty("query")?s.query:l,p=s.hasOwnProperty("hash")?s.hash:p,d=s.hasOwnProperty("params")?s.params:d,u){i[u];return a({_normalized:!0,name:u,query:l,hash:p,params:d},void 0,n)}if(f){var h=function(t,e){return k(t,e.parent?e.parent.path:"/",!0)}(f,t);return a({_normalized:!0,path:Y(h,d),query:l,hash:p},void 0,n)}return c(null,n)}function c(t,n,r){return t&&t.redirect?s(t,r||n):t&&t.matchAs?function(t,e,n){var r=a({_normalized:!0,path:Y(n,e.params)});if(r){var o=r.matched,i=o[o.length-1];return e.params=r.params,c(i,e)}return c(null,e)}(0,n,t.matchAs):w(t,n,r,e)}return{match:a,addRoute:function(t,e){var n="object"!=typeof t?i[t]:void 0;rt([e||t],r,o,i,n),n&&rt(n.alias.map((function(t){return{path:t,children:[e]}})),r,o,i,n)},getRoutes:function(){return r.map((function(t){return o[t]}))},addRoutes:function(t){rt(t,r,o,i)}}}function at(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var o=1,i=r.length;o<i;++o){var a=t.keys[o-1];a&&(n[a.name||"pathMatch"]="string"==typeof r[o]?m(r[o]):r[o])}return!0}var st=nt&&window.performance&&window.performance.now?window.performance:Date;function ct(){return st.now().toFixed(3)}var ut=ct();function ft(){return ut}function lt(t){return ut=t}var pt=Object.create(null);function dt(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),n=l({},window.history.state);return n.key=ft(),window.history.replaceState(n,"",e),window.addEventListener("popstate",mt),function(){window.removeEventListener("popstate",mt)}}function ht(t,e,n,r){if(t.app){var o=t.options.scrollBehavior;o&&t.app.$nextTick((function(){var i=function(){var t=ft();if(t)return pt[t]}(),a=o.call(t,e,n,r?i:null);a&&("function"==typeof a.then?a.then((function(t){wt(t,i)})).catch((function(t){0})):wt(a,i))}))}}function vt(){var t=ft();t&&(pt[t]={x:window.pageXOffset,y:window.pageYOffset})}function mt(t){vt(),t.state&&t.state.key&&lt(t.state.key)}function yt(t){return bt(t.x)||bt(t.y)}function gt(t){return{x:bt(t.x)?t.x:window.pageXOffset,y:bt(t.y)?t.y:window.pageYOffset}}function bt(t){return"number"==typeof t}var _t=/^#\d/;function wt(t,e){var n,r="object"==typeof t;if(r&&"string"==typeof t.selector){var o=_t.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(o){var i=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}(o,i={x:bt((n=i).x)?n.x:0,y:bt(n.y)?n.y:0})}else yt(t)&&(e=gt(t))}else r&&yt(t)&&(e=gt(t));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:t.behavior}):window.scrollTo(e.x,e.y))}var Ot,Et=nt&&((-1===(Ot=window.navigator.userAgent).indexOf("Android 2.")&&-1===Ot.indexOf("Android 4.0")||-1===Ot.indexOf("Mobile Safari")||-1!==Ot.indexOf("Chrome")||-1!==Ot.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState);function xt(t,e){vt();var n=window.history;try{if(e){var r=l({},n.state);r.key=ft(),n.replaceState(r,"",t)}else n.pushState({key:lt(ct())},"",t)}catch(n){window.location[e?"replace":"assign"](t)}}function At(t){xt(t,!0)}function Ct(t,e,n){var r=function(o){o>=t.length?n():t[o]?e(t[o],(function(){r(o+1)})):r(o+1)};r(0)}var St={redirected:2,aborted:4,cancelled:8,duplicated:16};function Tt(t,e){return jt(t,e,St.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return kt.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function It(t,e){return jt(t,e,St.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function jt(t,e,n,r){var o=new Error(r);return o._isRouter=!0,o.from=t,o.to=e,o.type=n,o}var kt=["params","query","hash"];function Lt(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function $t(t,e){return Lt(t)&&t._isRouter&&(null==e||t.type===e)}function Rt(t){return function(e,n,r){var o=!1,i=0,a=null;Pt(t,(function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){o=!0,i++;var c,u=Dt((function(e){var o;((o=e).__esModule||Ut&&"Module"===o[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Q.extend(e),n.components[s]=e,--i<=0&&r()})),f=Dt((function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=Lt(t)?t:new Error(e),r(a))}));try{c=t(u,f)}catch(t){f(t)}if(c)if("function"==typeof c.then)c.then(u,f);else{var l=c.component;l&&"function"==typeof l.then&&l.then(u,f)}}})),o||r()}}function Pt(t,e){return Nt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Nt(t){return Array.prototype.concat.apply([],t)}var Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Dt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Mt=function(t,e){this.router=t,this.base=function(t){if(!t)if(nt){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=E,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Ft(t,e,n,r){var o=Pt(t,(function(t,r,o,i){var a=function(t,e){"function"!=typeof t&&(t=Q.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,o,i)})):n(a,r,o,i)}));return Nt(r?o.reverse():o)}function Bt(t,e){if(e)return function(){return t.apply(e,arguments)}}Mt.prototype.listen=function(t){this.cb=t},Mt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Mt.prototype.onError=function(t){this.errorCbs.push(t)},Mt.prototype.transitionTo=function(t,e,n){var r,o=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var i=this.current;this.confirmTransition(r,(function(){o.updateRoute(r),e&&e(r),o.ensureURL(),o.router.afterHooks.forEach((function(t){t&&t(r,i)})),o.ready||(o.ready=!0,o.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!o.ready&&($t(t,St.redirected)&&i===E||(o.ready=!0,o.readyErrorCbs.forEach((function(e){e(t)}))))}))},Mt.prototype.confirmTransition=function(t,e,n){var r=this,o=this.current;this.pending=t;var i,a,s=function(t){!$t(t)&&Lt(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},c=t.matched.length-1,u=o.matched.length-1;if(C(t,o)&&c===u&&t.matched[c]===o.matched[u])return this.ensureURL(),s(((a=jt(i=o,t,St.duplicated,'Avoided redundant navigation to current location: "'+i.fullPath+'".')).name="NavigationDuplicated",a));var f=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),l=f.updated,p=f.deactivated,d=f.activated,h=[].concat(function(t){return Ft(t,"beforeRouteLeave",Bt,!0)}(p),this.router.beforeHooks,function(t){return Ft(t,"beforeRouteUpdate",Bt)}(l),d.map((function(t){return t.beforeEnter})),Rt(d)),v=function(e,n){if(r.pending!==t)return s(It(o,t));try{e(t,o,(function(e){!1===e?(r.ensureURL(!0),s(function(t,e){return jt(t,e,St.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}(o,t))):Lt(e)?(r.ensureURL(!0),s(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(s(Tt(o,t)),"object"==typeof e&&e.replace?r.replace(e):r.push(e)):n(e)}))}catch(t){s(t)}};Ct(h,v,(function(){Ct(function(t){return Ft(t,"beforeRouteEnter",(function(t,e,n,r){return function(t,e,n){return function(r,o,i){return t(r,o,(function(t){"function"==typeof t&&(e.enteredCbs[n]||(e.enteredCbs[n]=[]),e.enteredCbs[n].push(t)),i(t)}))}}(t,n,r)}))}(d).concat(r.router.resolveHooks),v,(function(){if(r.pending!==t)return s(It(o,t));r.pending=null,e(t),r.router.app&&r.router.app.$nextTick((function(){T(t)}))}))}))},Mt.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},Mt.prototype.setupListeners=function(){},Mt.prototype.teardown=function(){this.listeners.forEach((function(t){t()})),this.listeners=[],this.current=E,this.pending=null};var Ht=function(t){function e(e,n){t.call(this,e,n),this._startLocation=zt(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=Et&&n;r&&this.listeners.push(dt());var o=function(){var n=t.current,o=zt(t.base);t.current===E&&o===t._startLocation||t.transitionTo(o,(function(t){r&&ht(e,t,n,!0)}))};window.addEventListener("popstate",o),this.listeners.push((function(){window.removeEventListener("popstate",o)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){xt(L(r.base+t.fullPath)),ht(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){At(L(r.base+t.fullPath)),ht(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(zt(this.base)!==this.current.fullPath){var e=L(this.base+this.current.fullPath);t?xt(e):At(e)}},e.prototype.getCurrentLocation=function(){return zt(this.base)},e}(Mt);function zt(t){var e=window.location.pathname;return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Gt=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=zt(t);if(!/^\/#/.test(e))return window.location.replace(L(t+"/#"+e)),!0}(this.base)||Vt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=Et&&e;n&&this.listeners.push(dt());var r=function(){var e=t.current;Vt()&&t.transitionTo(qt(),(function(r){n&&ht(t.router,r,e,!0),Et||Kt(r.fullPath)}))},o=Et?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){Wt(t.fullPath),ht(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){Kt(t.fullPath),ht(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;qt()!==e&&(t?Wt(e):Kt(e))},e.prototype.getCurrentLocation=function(){return qt()},e}(Mt);function Vt(){var t=qt();return"/"===t.charAt(0)||(Kt("/"+t),!1)}function qt(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Xt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Wt(t){Et?xt(Xt(t)):window.location.hash=t}function Kt(t){Et?At(Xt(t)):window.location.replace(Xt(t))}var Yt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){$t(t,St.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Mt),Jt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=it(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Et&&!1!==t.fallback,this.fallback&&(e="hash"),nt||(e="abstract"),this.mode=e,e){case"history":this.history=new Ht(this,t.base);break;case"hash":this.history=new Gt(this,t.base,this.fallback);break;case"abstract":this.history=new Yt(this,t.base);break;default:0}},Qt={currentRoute:{configurable:!0}};function Zt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Jt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Qt.currentRoute.get=function(){return this.history&&this.history.current},Jt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof Ht||n instanceof Gt){var r=function(t){n.setupListeners(),function(t){var r=n.current,o=e.options.scrollBehavior;Et&&o&&"fullPath"in t&&ht(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Jt.prototype.beforeEach=function(t){return Zt(this.beforeHooks,t)},Jt.prototype.beforeResolve=function(t){return Zt(this.resolveHooks,t)},Jt.prototype.afterEach=function(t){return Zt(this.afterHooks,t)},Jt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Jt.prototype.onError=function(t){this.history.onError(t)},Jt.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Jt.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Jt.prototype.go=function(t){this.history.go(t)},Jt.prototype.back=function(){this.go(-1)},Jt.prototype.forward=function(){this.go(1)},Jt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Jt.prototype.resolve=function(t,e,n){var r=J(t,e=e||this.history.current,n,this),o=this.match(r,e),i=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?L(t+"/"+r):r}(this.history.base,i,this.mode),normalizedTo:r,resolved:o}},Jt.prototype.getRoutes=function(){return this.matcher.getRoutes()},Jt.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==E&&this.history.transitionTo(this.history.getCurrentLocation())},Jt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==E&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Jt.prototype,Qt),Jt.install=function t(e){if(!t.installed||Q!==e){t.installed=!0,Q=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",I),e.component("RouterLink",tt);var o=e.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},Jt.version="3.5.1",Jt.isNavigationFailure=$t,Jt.NavigationFailureType=St,Jt.START_LOCATION=E,nt&&window.Vue&&window.Vue.use(Jt);var te=Jt,ee=o(11),ne=function(){return Promise.all([o.e(0),o.e(9),o.e(7)]).then(o.bind(null,612))},re=function(){return Promise.all([o.e(0),o.e(8),o.e(2)]).then(o.bind(null,611))};i.default.use(te);var oe=new te({mode:"history",base:Object(ee.generateUrl)(""),linkActiveClass:"active",routes:[{path:"/:index(index.php/)?settings/users",component:ne,props:!0,name:"users",children:[{path:":selectedGroup",name:"group",component:ne}]},{path:"/:index(index.php/)?settings/apps",component:re,props:!0,name:"apps",children:[{path:":category",name:"apps-category",component:re,children:[{path:":id",name:"apps-details",component:re}]}]}]}),ie=o(204),ae=o(25),se=o.n(ae),ce=o(94),ue=o.n(ce),fe=function(t){return t.replace(/\/$/,"")},le=function(){return ue()()},pe=function(t,e){return se.a.get(fe(t),e)},de=function(t,e){return se.a.post(fe(t),e)},he=function(t,e){return se.a.put(fe(t),e)},ve=function(t,e){return se.a.delete(fe(t),{params:e})},me=function(t,e){return 1===e?t.sort((function(t,e){return t.usercount-t.disabled<e.usercount-e.disabled})):t.sort((function(t,e){return t.name.localeCompare(e.name)}))},ye={id:"",name:"",usercount:0,disabled:0,canAdd:!0,canRemove:!0},ge={appendUsers:function(t,e){var n=t.users.concat(Object.keys(e).map((function(t){return e[t]})));t.usersOffset+=t.usersLimit,t.users=n},setPasswordPolicyMinLength:function(t,e){t.minPasswordLength=""!==e?e:0},initGroups:function(t,e){var n=e.groups,r=e.orderBy,o=e.userCount;t.groups=n.map((function(t){return Object.assign({},ye,t)})),t.orderBy=r,t.userCount=o,t.groups=me(t.groups,t.orderBy)},addGroup:function(t,e){var n=e.gid,r=e.displayName;try{if(void 0!==t.groups.find((function(t){return t.id===n})))return;var o=Object.assign({},ye,{id:n,name:r});t.groups.push(o),t.groups=me(t.groups,t.orderBy)}catch(t){console.error("Can't create group",t)}},removeGroup:function(t,e){var n=t.groups.findIndex((function(t){return t.id===e}));n>=0&&t.groups.splice(n,1)},addUserGroup:function(t,e){var n=e.userid,r=e.gid,o=t.groups.find((function(t){return t.id===r})),i=t.users.find((function(t){return t.id===n}));o&&i.enabled&&t.userCount>0&&o.usercount++,i.groups.push(r),t.groups=me(t.groups,t.orderBy)},removeUserGroup:function(t,e){var n=e.userid,r=e.gid,o=t.groups.find((function(t){return t.id===r})),i=t.users.find((function(t){return t.id===n}));o&&i.enabled&&t.userCount>0&&o.usercount--;var a=i.groups;a.splice(a.indexOf(r),1),t.groups=me(t.groups,t.orderBy)},addUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;t.users.find((function(t){return t.id===n})).subadmin.push(r)},removeUserSubAdmin:function(t,e){var n=e.userid,r=e.gid,o=t.users.find((function(t){return t.id===n})).subadmin;o.splice(o.indexOf(r),1)},deleteUser:function(t,e){var n=t.users.findIndex((function(t){return t.id===e}));t.users.splice(n,1)},addUserData:function(t,e){t.users.push(e.data.ocs.data)},enableDisableUser:function(t,e){var n=e.userid,r=e.enabled,o=t.users.find((function(t){return t.id===n}));o.enabled=r,t.userCount>0&&(t.groups.find((function(t){return"disabled"===t.id})).usercount+=r?-1:1,t.userCount+=r?1:-1,o.groups.forEach((function(e){t.groups.find((function(t){return t.id===e})).disabled+=r?-1:1})))},setUserData:function(t,e){var n=e.userid,r=e.key,o=e.value;if("quota"===r){var i=OC.Util.computerFileSize(o);t.users.find((function(t){return t.id===n}))[r][r]=null!==i?i:o}else t.users.find((function(t){return t.id===n}))[r]=o},resetUsers:function(t){t.users=[],t.usersOffset=0}},be=se.a.CancelToken,_e=null,we={state:{users:[],groups:[],orderBy:1,minPasswordLength:0,usersOffset:0,usersLimit:25,userCount:0},mutations:ge,getters:{getUsers:function(t){return t.users},getGroups:function(t){return t.groups},getSubadminGroups:function(t){return t.groups.filter((function(t){return"admin"!==t.id&&"disabled"!==t.id}))},getPasswordPolicyMinLength:function(t){return t.minPasswordLength},getUsersOffset:function(t){return t.usersOffset},getUsersLimit:function(t){return t.usersLimit},getUserCount:function(t){return t.userCount}},actions:{getUsers:function(t,e){var n=e.offset,r=e.limit,o=e.search,i=e.group;return _e&&_e.cancel("Operation canceled by another search request."),_e=be.source(),o="string"==typeof o?o:"",""!==(i="string"==typeof i?i:"")?pe(Object(ee.generateOcsUrl)("cloud/groups/".concat(encodeURIComponent(encodeURIComponent(i)),"/users/details?offset=").concat(n,"&limit=").concat(r,"&search=").concat(o),2),{cancelToken:_e.token}).then((function(e){return Object.keys(e.data.ocs.data.users).length>0&&(t.commit("appendUsers",e.data.ocs.data.users),Object.keys(e.data.ocs.data.users).length>=r)})).catch((function(e){se.a.isCancel(e)||t.commit("API_FAILURE",e)})):pe(Object(ee.generateOcsUrl)("cloud/users/details?offset=".concat(n,"&limit=").concat(r,"&search=").concat(o),2),{cancelToken:_e.token}).then((function(e){return Object.keys(e.data.ocs.data.users).length>0&&(t.commit("appendUsers",e.data.ocs.data.users),Object.keys(e.data.ocs.data.users).length>=r)})).catch((function(e){se.a.isCancel(e)||t.commit("API_FAILURE",e)}))},getGroups:function(t,e){var n=e.offset,r=e.limit,o=e.search;o="string"==typeof o?o:"";var i=-1===r?"":"&limit=".concat(r);return pe(Object(ee.generateOcsUrl)("cloud/groups?offset=".concat(n,"&search=").concat(o).concat(i),2)).then((function(e){return Object.keys(e.data.ocs.data.groups).length>0&&(e.data.ocs.data.groups.forEach((function(e){t.commit("addGroup",{gid:e,displayName:e})})),!0)})).catch((function(e){return t.commit("API_FAILURE",e)}))},getUsersFromList:function(t,e){var n=e.offset,r=e.limit,o=e.search;return o="string"==typeof o?o:"",pe(Object(ee.generateOcsUrl)("cloud/users/details?offset=".concat(n,"&limit=").concat(r,"&search=").concat(o),2)).then((function(e){return Object.keys(e.data.ocs.data.users).length>0&&(t.commit("appendUsers",e.data.ocs.data.users),!0)})).catch((function(e){return t.commit("API_FAILURE",e)}))},getUsersFromGroup:function(t,e){var n=e.groupid,r=e.offset,o=e.limit;return pe(Object(ee.generateOcsUrl)("cloud/users/".concat(encodeURIComponent(encodeURIComponent(n)),"/details?offset=").concat(r,"&limit=").concat(o),2)).then((function(e){return t.commit("getUsersFromList",e.data.ocs.data.users)})).catch((function(e){return t.commit("API_FAILURE",e)}))},getPasswordPolicyMinLength:function(t){return!(!OC.getCapabilities().password_policy||!OC.getCapabilities().password_policy.minLength)&&(t.commit("setPasswordPolicyMinLength",OC.getCapabilities().password_policy.minLength),OC.getCapabilities().password_policy.minLength)},addGroup:function(t,e){return le().then((function(n){return de(Object(ee.generateOcsUrl)("cloud/groups",2),{groupid:e}).then((function(n){return t.commit("addGroup",{gid:e,displayName:e}),{gid:e,displayName:e}})).catch((function(t){throw t}))})).catch((function(n){throw t.commit("API_FAILURE",{gid:e,error:n}),n}))},removeGroup:function(t,e){return le().then((function(n){return ve(Object(ee.generateOcsUrl)("cloud/groups/".concat(encodeURIComponent(encodeURIComponent(e))),2)).then((function(n){return t.commit("removeGroup",e)})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{gid:e,error:n})}))},addUserGroup:function(t,e){var n=e.userid,r=e.gid;return le().then((function(e){return de(Object(ee.generateOcsUrl)("cloud/users/".concat(n,"/groups"),2),{groupid:r}).then((function(e){return t.commit("addUserGroup",{userid:n,gid:r})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})}))},removeUserGroup:function(t,e){var n=e.userid,r=e.gid;return le().then((function(e){return ve(Object(ee.generateOcsUrl)("cloud/users/".concat(n,"/groups"),2),{groupid:r}).then((function(e){return t.commit("removeUserGroup",{userid:n,gid:r})})).catch((function(t){throw t}))})).catch((function(e){throw t.commit("API_FAILURE",{userid:n,error:e}),e}))},addUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;return le().then((function(e){return de(Object(ee.generateOcsUrl)("cloud/users/".concat(n,"/subadmins"),2),{groupid:r}).then((function(e){return t.commit("addUserSubAdmin",{userid:n,gid:r})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})}))},removeUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;return le().then((function(e){return ve(Object(ee.generateOcsUrl)("cloud/users/".concat(n,"/subadmins"),2),{groupid:r}).then((function(e){return t.commit("removeUserSubAdmin",{userid:n,gid:r})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})}))},wipeUserDevices:function(t,e){return le().then((function(t){return de(Object(ee.generateOcsUrl)("cloud/users/".concat(e,"/wipe"),2)).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{userid:e,error:n})}))},deleteUser:function(t,e){return le().then((function(n){return ve(Object(ee.generateOcsUrl)("cloud/users/".concat(e),2)).then((function(n){return t.commit("deleteUser",e)})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{userid:e,error:n})}))},addUser:function(t,e){var n=t.commit,r=t.dispatch,o=e.userid,i=e.password,a=e.displayName,s=e.email,c=e.groups,u=e.subadmin,f=e.quota,l=e.language;return le().then((function(t){return de(Object(ee.generateOcsUrl)("cloud/users",2),{userid:o,password:i,displayName:a,email:s,groups:c,subadmin:u,quota:f,language:l}).then((function(t){return r("addUserData",o||t.data.ocs.data.id)})).catch((function(t){throw t}))})).catch((function(t){throw n("API_FAILURE",{userid:o,error:t}),t}))},addUserData:function(t,e){return le().then((function(n){return pe(Object(ee.generateOcsUrl)("cloud/users/".concat(e),2)).then((function(e){return t.commit("addUserData",e)})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{userid:e,error:n})}))},enableDisableUser:function(t,e){var n=e.userid,r=e.enabled,o=void 0===r||r,i=o?"enable":"disable";return le().then((function(e){return he(Object(ee.generateOcsUrl)("cloud/users/".concat(n,"/").concat(i),2)).then((function(e){return t.commit("enableDisableUser",{userid:n,enabled:o})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})}))},setUserData:function(t,e){var n=e.userid,r=e.key,o=e.value,i=["email","displayname"];return-1!==["email","language","quota","displayname","password"].indexOf(r)&&"string"==typeof o&&(-1===i.indexOf(r)&&o.length>0||-1!==i.indexOf(r))?le().then((function(e){return he(Object(ee.generateOcsUrl)("cloud/users/".concat(n),2),{key:r,value:o}).then((function(e){return t.commit("setUserData",{userid:n,key:r,value:o})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})})):Promise.reject(new Error("Invalid request data"))},sendWelcomeMail:function(t,e){return le().then((function(t){return de(Object(ee.generateOcsUrl)("cloud/users/".concat(e,"/welcome"),2)).then((function(t){return!0})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{userid:e,error:n})}))}}},Oe={state:{apps:[],categories:[],updateCount:0,loading:{},loadingList:!1},mutations:{APPS_API_FAILURE:function(e,n){OC.Notification.showHtml(t("settings","An error occured during the request. Unable to proceed.")+"<br>"+n.error.response.data.data.message,{timeout:7}),console.error(e,n)},initCategories:function(t,e){var n=e.categories,r=e.updateCount;t.categories=n,t.updateCount=r},setUpdateCount:function(t,e){t.updateCount=e},addCategory:function(t,e){t.categories.push(e)},appendCategories:function(t,e){t.categories=e},setAllApps:function(t,e){t.apps=e},setError:function(t,e){var n=e.appId,r=e.error;Array.isArray(n)||(n=[n]),n.forEach((function(e){t.apps.find((function(t){return t.id===e})).error=r}))},clearError:function(t,e){var n=e.appId;e.error;t.apps.find((function(t){return t.id===n})).error=null},enableApp:function(t,e){var n=e.appId,r=e.groups,o=t.apps.find((function(t){return t.id===n}));o.active=!0,o.groups=r},disableApp:function(t,e){var n=t.apps.find((function(t){return t.id===e}));n.active=!1,n.groups=[],n.removable&&(n.canUnInstall=!0)},uninstallApp:function(t,e){t.apps.find((function(t){return t.id===e})).active=!1,t.apps.find((function(t){return t.id===e})).groups=[],t.apps.find((function(t){return t.id===e})).needsDownload=!0,t.apps.find((function(t){return t.id===e})).installed=!1,t.apps.find((function(t){return t.id===e})).canUnInstall=!1,t.apps.find((function(t){return t.id===e})).canInstall=!0},updateApp:function(t,e){var n=t.apps.find((function(t){return t.id===e})),r=n.update;n.update=null,n.version=r,t.updateCount--},resetApps:function(t){t.apps=[]},reset:function(t){t.apps=[],t.categories=[],t.updateCount=0},startLoading:function(t,e){Array.isArray(e)?e.forEach((function(e){i.default.set(t.loading,e,!0)})):i.default.set(t.loading,e,!0)},stopLoading:function(t,e){Array.isArray(e)?e.forEach((function(e){i.default.set(t.loading,e,!1)})):i.default.set(t.loading,e,!1)}},getters:{loading:function(t){return function(e){return t.loading[e]}},getCategories:function(t){return t.categories},getAllApps:function(t){return t.apps},getUpdateCount:function(t){return t.updateCount}},actions:{enableApp:function(e,n){var r,o=n.appId,i=n.groups;return r=Array.isArray(o)?o:[o],le().then((function(n){return e.commit("startLoading",r),e.commit("startLoading","install"),de(Object(ee.generateUrl)("settings/apps/enable"),{appIds:r,groups:i}).then((function(n){return e.commit("stopLoading",r),e.commit("stopLoading","install"),r.forEach((function(t){e.commit("enableApp",{appId:t,groups:i})})),pe(Object(ee.generateUrl)("apps/files")).then((function(){n.data.update_required&&(OC.dialogs.info(t("settings","The app has been enabled but needs to be updated. You will be redirected to the update page in 5 seconds."),t("settings","App update"),(function(){window.location.reload()}),!0),setTimeout((function(){location.reload()}),5e3))})).catch((function(){Array.isArray(o)||e.commit("setError",{appId:r,error:t("settings","Error: This app can not be enabled because it makes the server unstable")})}))})).catch((function(t){e.commit("stopLoading",r),e.commit("stopLoading","install"),e.commit("setError",{appId:r,error:t.response.data.data.message}),e.commit("APPS_API_FAILURE",{appId:o,error:t})}))})).catch((function(t){return e.commit("API_FAILURE",{appId:o,error:t})}))},forceEnableApp:function(t,e){var n,r=e.appId;e.groups;return n=Array.isArray(r)?r:[r],le().then((function(){return t.commit("startLoading",n),t.commit("startLoading","install"),de(Object(ee.generateUrl)("settings/apps/force"),{appId:r}).then((function(t){location.reload()})).catch((function(e){t.commit("stopLoading",n),t.commit("stopLoading","install"),t.commit("setError",{appId:n,error:e.response.data.data.message}),t.commit("APPS_API_FAILURE",{appId:r,error:e})}))})).catch((function(e){return t.commit("API_FAILURE",{appId:r,error:e})}))},disableApp:function(t,e){var n,r=e.appId;return n=Array.isArray(r)?r:[r],le().then((function(e){return t.commit("startLoading",n),de(Object(ee.generateUrl)("settings/apps/disable"),{appIds:n}).then((function(e){return t.commit("stopLoading",n),n.forEach((function(e){t.commit("disableApp",e)})),!0})).catch((function(e){t.commit("stopLoading",n),t.commit("APPS_API_FAILURE",{appId:r,error:e})}))})).catch((function(e){return t.commit("API_FAILURE",{appId:r,error:e})}))},uninstallApp:function(t,e){var n=e.appId;return le().then((function(e){return t.commit("startLoading",n),pe(Object(ee.generateUrl)("settings/apps/uninstall/".concat(n))).then((function(e){return t.commit("stopLoading",n),t.commit("uninstallApp",n),!0})).catch((function(e){t.commit("stopLoading",n),t.commit("APPS_API_FAILURE",{appId:n,error:e})}))})).catch((function(e){return t.commit("API_FAILURE",{appId:n,error:e})}))},updateApp:function(t,e){var n=e.appId;return le().then((function(e){return t.commit("startLoading",n),t.commit("startLoading","install"),pe(Object(ee.generateUrl)("settings/apps/update/".concat(n))).then((function(e){return t.commit("stopLoading","install"),t.commit("stopLoading",n),t.commit("updateApp",n),!0})).catch((function(e){t.commit("stopLoading",n),t.commit("stopLoading","install"),t.commit("APPS_API_FAILURE",{appId:n,error:e})}))})).catch((function(e){return t.commit("API_FAILURE",{appId:n,error:e})}))},getAllApps:function(t){return t.commit("startLoading","list"),pe(Object(ee.generateUrl)("settings/apps/list")).then((function(e){return t.commit("setAllApps",e.data.apps),t.commit("stopLoading","list"),!0})).catch((function(e){return t.commit("API_FAILURE",e)}))},getCategories:function(t){return t.commit("startLoading","categories"),pe(Object(ee.generateUrl)("settings/apps/categories")).then((function(e){return e.data.length>0&&(t.commit("appendCategories",e.data),t.commit("stopLoading","categories"),!0)})).catch((function(e){return t.commit("API_FAILURE",e)}))}}},Ee={state:{serverData:{}},mutations:{setServerData:function(t,e){t.serverData=e}},getters:{getServerData:function(t){return t.serverData}},actions:{}},xe={state:{},mutations:{},getters:{},actions:{setAppConfig:function(t,e){var n=e.app,r=e.key,o=e.value;return le().then((function(t){return de(Object(ee.generateOcsUrl)("apps/provisioning_api/api/v1/config/apps/".concat(n,"/").concat(r),2),{value:o}).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{app:n,key:r,value:o,error:e})}))}}};
+function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(u=t)}l.state.get=function(){return this._vm._data.$$state},l.state.set=function(t){0},f.prototype.commit=function(t,e,n){var r=this,o=y(t,e,n),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,r.state)})))},f.prototype.dispatch=function(t,e){var n=this,r=y(t,e),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(t){0}var c=s.length>1?Promise.all(s.map((function(t){return t(i)}))):s[0](i);return new Promise((function(t,e){c.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(t){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,n.state,t)}))}catch(t){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return p(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){return p("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},f.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),n.preserveState),h(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=m(e.state,t.slice(0,-1));u.delete(n,t[t.length-1])})),d(this)},f.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype.hotUpdate=function(t){this._modules.update(t),d(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,l);var b=x((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=A(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0})),n})),_=x((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var i=A(this.$store,"mapMutations",t);if(!i)return;r=i.context.commit}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n})),w=x((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||A(this.$store,"mapGetters",t))return this.$store.getters[o]},n[r].vuex=!0})),n})),O=x((function(t,e){var n={};return E(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var i=A(this.$store,"mapActions",t);if(!i)return;r=i.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n}));function E(t){return function(t){return Array.isArray(t)||i(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function x(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function A(t,e,n){return t._modulesNamespaceMap[n]}function C(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(n){t.log(e)}}function S(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function T(){var t=new Date;return" @ "+I(t.getHours(),2)+":"+I(t.getMinutes(),2)+":"+I(t.getSeconds(),2)+"."+I(t.getMilliseconds(),3)}function I(t,e){return n="0",r=e-t.toString().length,new Array(r+1).join(n)+t;var n,r}var j={Store:f,install:g,version:"3.6.2",mapState:b,mapMutations:_,mapGetters:w,mapActions:O,createNamespacedHelpers:function(t){return{mapState:b.bind(null,t),mapGetters:w.bind(null,t),mapMutations:_.bind(null,t),mapActions:O.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var o=t.transformer;void 0===o&&(o=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var a=t.actionFilter;void 0===a&&(a=function(t,e){return!0});var s=t.actionTransformer;void 0===s&&(s=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var u=t.logActions;void 0===u&&(u=!0);var f=t.logger;return void 0===f&&(f=console),function(t){var l=r(t.state);void 0!==f&&(c&&t.subscribe((function(t,a){var s=r(a);if(n(t,l,s)){var c=T(),u=i(t),p="mutation "+t.type+c;C(f,p,e),f.log("%c prev state","color: #9E9E9E; font-weight: bold",o(l)),f.log("%c mutation","color: #03A9F4; font-weight: bold",u),f.log("%c next state","color: #4CAF50; font-weight: bold",o(s)),S(f)}l=s})),u&&t.subscribeAction((function(t,n){if(a(t,n)){var r=T(),o=s(t),i="action "+t.type+r;C(f,i,e),f.log("%c action","color: #03A9F4; font-weight: bold",o),S(f)}})))}}};e.a=j}).call(this,n(14))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){function n(t,e){var r={name:t.name,path:t.path,hash:t.hash,query:t.query,params:t.params,fullPath:t.fullPath,meta:t.meta};return e&&(r.from=n(e)),Object.freeze(r)}e.sync=function(t,e,r){var o=(r||{}).moduleName||"route";t.registerModule(o,{namespaced:!0,state:n(e.currentRoute),mutations:{ROUTE_CHANGED:function(e,r){t.state[o]=n(r.to,r.from)}}});var i,a=!1,s=t.watch((function(t){return t[o]}),(function(t){var n=t.fullPath;n!==i&&(null!=i&&(a=!0,e.push(t)),i=n)}),{sync:!0}),c=e.afterEach((function(e,n){a?a=!1:(i=e.fullPath,t.commit(o+"/ROUTE_CHANGED",{to:e,from:n}))}));return function(){null!=c&&c(),null!=s&&s(),t.unregisterModule(o)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,r,o){"use strict";o.r(r),o.d(r,"app",(function(){return Se})),o.d(r,"router",(function(){return oe})),o.d(r,"store",(function(){return Ce}));var i=o(15),a=o(131),s=o(421),c={name:"App",beforeMount:function(){null!==document.getElementById("serverData")&&this.$store.commit("setServerData",JSON.parse(document.getElementById("serverData").dataset.server))}},u=o(37),f=Object(u.a)(c,(function(){var t=this.$createElement;return(this._self._c||t)("router-view")}),[],!1,null,null,null).exports;function l(t,e){for(var n in e)t[n]=e[n];return t}var p=/[!'()*]/g,d=function(t){return"%"+t.charCodeAt(0).toString(16)},h=/%2C/g,v=function(t){return encodeURIComponent(t).replace(p,d).replace(h,",")};function m(t){try{return decodeURIComponent(t)}catch(t){0}return t}var y=function(t){return null==t||"object"==typeof t?t:String(t)};function g(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=m(n.shift()),o=n.length>0?m(n.join("=")):null;void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]})),e):e}function b(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return v(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(v(e)):r.push(v(e)+"="+v(t)))})),r.join("&")}return v(e)+"="+v(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var _=/\/?$/;function w(t,e,n,r){var o=r&&r.options.stringifyQuery,i=e.query||{};try{i=O(i)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:A(e,o),matched:t?x(t):[]};return n&&(a.redirectedFrom=A(n,o)),Object.freeze(a)}function O(t){if(Array.isArray(t))return t.map(O);if(t&&"object"==typeof t){var e={};for(var n in t)e[n]=O(t[n]);return e}return t}var E=w(null,{path:"/"});function x(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function A(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var o=t.hash;return void 0===o&&(o=""),(n||"/")+(e||b)(r)+o}function C(t,e,n){return e===E?t===e:!!e&&(t.path&&e.path?t.path.replace(_,"")===e.path.replace(_,"")&&(n||t.hash===e.hash&&S(t.query,e.query)):!(!t.name||!e.name)&&(t.name===e.name&&(n||t.hash===e.hash&&S(t.query,e.query)&&S(t.params,e.params))))}function S(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t).sort(),r=Object.keys(e).sort();return n.length===r.length&&n.every((function(n,o){var i=t[n];if(r[o]!==n)return!1;var a=e[n];return null==i||null==a?i===a:"object"==typeof i&&"object"==typeof a?S(i,a):String(i)===String(a)}))}function T(t){for(var e=0;e<t.matched.length;e++){var n=t.matched[e];for(var r in n.instances){var o=n.instances[r],i=n.enteredCbs[r];if(o&&i){delete n.enteredCbs[r];for(var a=0;a<i.length;a++)o._isBeingDestroyed||i[a](o)}}}}var I={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,o=e.parent,i=e.data;i.routerView=!0;for(var a=o.$createElement,s=n.name,c=o.$route,u=o._routerViewCache||(o._routerViewCache={}),f=0,p=!1;o&&o._routerRoot!==o;){var d=o.$vnode?o.$vnode.data:{};d.routerView&&f++,d.keepAlive&&o._directInactive&&o._inactive&&(p=!0),o=o.$parent}if(i.routerViewDepth=f,p){var h=u[s],v=h&&h.component;return v?(h.configProps&&j(v,i,h.route,h.configProps),a(v,i,r)):a()}var m=c.matched[f],y=m&&m.components[s];if(!m||!y)return u[s]=null,a();u[s]={component:y},i.registerRouteInstance=function(t,e){var n=m.instances[s];(e&&n!==t||!e&&n===t)&&(m.instances[s]=e)},(i.hook||(i.hook={})).prepatch=function(t,e){m.instances[s]=e.componentInstance},i.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==m.instances[s]&&(m.instances[s]=t.componentInstance),T(c)};var g=m.props&&m.props[s];return g&&(l(u[s],{route:c,configProps:g}),j(y,i,c,g)),a(y,i,r)}};function j(t,e,n,r){var o=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(n,r);if(o){o=e.props=l({},o);var i=e.attrs=e.attrs||{};for(var a in o)t.props&&a in t.props||(i[a]=o[a],delete o[a])}}function k(t,e,n){var r=t.charAt(0);if("/"===r)return t;if("?"===r||"#"===r)return e+t;var o=e.split("/");n&&o[o.length-1]||o.pop();for(var i=t.replace(/^\//,"").split("/"),a=0;a<i.length;a++){var s=i[a];".."===s?o.pop():"."!==s&&o.push(s)}return""!==o[0]&&o.unshift(""),o.join("/")}function L(t){return t.replace(/\/\//g,"/")}var $=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},R=W,P=F,N=function(t,e){return H(F(t,e),e)},U=H,D=X,M=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function F(t,e){for(var n,r=[],o=0,i=0,a="",s=e&&e.delimiter||"/";null!=(n=M.exec(t));){var c=n[0],u=n[1],f=n.index;if(a+=t.slice(i,f),i=f+c.length,u)a+=u[1];else{var l=t[i],p=n[2],d=n[3],h=n[4],v=n[5],m=n[6],y=n[7];a&&(r.push(a),a="");var g=null!=p&&null!=l&&l!==p,b="+"===m||"*"===m,_="?"===m||"*"===m,w=n[2]||s,O=h||v;r.push({name:d||o++,prefix:p||"",delimiter:w,optional:_,repeat:b,partial:g,asterisk:!!y,pattern:O?G(O):y?".*":"[^"+z(w)+"]+?"})}}return i<t.length&&(a+=t.substr(i)),a&&r.push(a),r}function B(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function H(t,e){for(var n=new Array(t.length),r=0;r<t.length;r++)"object"==typeof t[r]&&(n[r]=new RegExp("^(?:"+t[r].pattern+")$",q(e)));return function(e,r){for(var o="",i=e||{},a=(r||{}).pretty?B:encodeURIComponent,s=0;s<t.length;s++){var c=t[s];if("string"!=typeof c){var u,f=i[c.name];if(null==f){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if($(f)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var l=0;l<f.length;l++){if(u=a(f[l]),!n[s].test(u))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(u)+"`");o+=(0===l?c.prefix:c.delimiter)+u}}else{if(u=c.asterisk?encodeURI(f).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):a(f),!n[s].test(u))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+u+'"');o+=c.prefix+u}}else o+=c}return o}}function z(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function G(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function V(t,e){return t.keys=e,t}function q(t){return t&&t.sensitive?"":"i"}function X(t,e,n){$(e)||(n=e||n,e=[]);for(var r=(n=n||{}).strict,o=!1!==n.end,i="",a=0;a<t.length;a++){var s=t[a];if("string"==typeof s)i+=z(s);else{var c=z(s.prefix),u="(?:"+s.pattern+")";e.push(s),s.repeat&&(u+="(?:"+c+u+")*"),i+=u=s.optional?s.partial?c+"("+u+")?":"(?:"+c+"("+u+"))?":c+"("+u+")"}}var f=z(n.delimiter||"/"),l=i.slice(-f.length)===f;return r||(i=(l?i.slice(0,-f.length):i)+"(?:"+f+"(?=$))?"),i+=o?"$":r&&l?"":"(?="+f+"|$)",V(new RegExp("^"+i,q(n)),e)}function W(t,e,n){return $(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return V(t,e)}(t,e):$(t)?function(t,e,n){for(var r=[],o=0;o<t.length;o++)r.push(W(t[o],e,n).source);return V(new RegExp("(?:"+r.join("|")+")",q(n)),e)}(t,e,n):function(t,e,n){return X(F(t,n),e,n)}(t,e,n)}R.parse=P,R.compile=N,R.tokensToFunction=U,R.tokensToRegExp=D;var K=Object.create(null);function Y(t,e,n){e=e||{};try{var r=K[t]||(K[t]=R.compile(t));return"string"==typeof e.pathMatch&&(e[0]=e.pathMatch),r(e,{pretty:!0})}catch(t){return""}finally{delete e[0]}}function J(t,e,n,r){var o="string"==typeof t?{path:t}:t;if(o._normalized)return o;if(o.name){var i=(o=l({},t)).params;return i&&"object"==typeof i&&(o.params=l({},i)),o}if(!o.path&&o.params&&e){(o=l({},o))._normalized=!0;var a=l(l({},e.params),o.params);if(e.name)o.name=e.name,o.params=a;else if(e.matched.length){var s=e.matched[e.matched.length-1].path;o.path=Y(s,a,e.path)}else 0;return o}var c=function(t){var e="",n="",r=t.indexOf("#");r>=0&&(e=t.slice(r),t=t.slice(0,r));var o=t.indexOf("?");return o>=0&&(n=t.slice(o+1),t=t.slice(0,o)),{path:t,query:n,hash:e}}(o.path||""),u=e&&e.path||"/",f=c.path?k(c.path,u,n||o.append):u,p=function(t,e,n){void 0===e&&(e={});var r,o=n||g;try{r=o(t||"")}catch(t){r={}}for(var i in e){var a=e[i];r[i]=Array.isArray(a)?a.map(y):y(a)}return r}(c.query,o.query,r&&r.options.parseQuery),d=o.hash||c.hash;return d&&"#"!==d.charAt(0)&&(d="#"+d),{_normalized:!0,path:f,query:p,hash:d}}var Q,Z=function(){},tt={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,o=n.resolve(this.to,r,this.append),i=o.location,a=o.route,s=o.href,c={},u=n.options.linkActiveClass,f=n.options.linkExactActiveClass,p=null==u?"router-link-active":u,d=null==f?"router-link-exact-active":f,h=null==this.activeClass?p:this.activeClass,v=null==this.exactActiveClass?d:this.exactActiveClass,m=a.redirectedFrom?w(null,J(a.redirectedFrom),null,n):a;c[v]=C(r,m,this.exactPath),c[h]=this.exact||this.exactPath?c[v]:function(t,e){return 0===t.path.replace(_,"/").indexOf(e.path.replace(_,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var n in e)if(!(n in t))return!1;return!0}(t.query,e.query)}(r,m);var y=c[v]?this.ariaCurrentValue:null,g=function(t){et(t)&&(e.replace?n.replace(i,Z):n.push(i,Z))},b={click:et};Array.isArray(this.event)?this.event.forEach((function(t){b[t]=g})):b[this.event]=g;var O={class:c},E=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:a,navigate:g,isActive:c[h],isExactActive:c[v]});if(E){if(1===E.length)return E[0];if(E.length>1||!E.length)return 0===E.length?t():t("span",{},E)}if("a"===this.tag)O.on=b,O.attrs={href:s,"aria-current":y};else{var x=function t(e){var n;if(e)for(var r=0;r<e.length;r++){if("a"===(n=e[r]).tag)return n;if(n.children&&(n=t(n.children)))return n}}(this.$slots.default);if(x){x.isStatic=!1;var A=x.data=l({},x.data);for(var S in A.on=A.on||{},A.on){var T=A.on[S];S in b&&(A.on[S]=Array.isArray(T)?T:[T])}for(var I in b)I in A.on?A.on[I].push(b[I]):A.on[I]=g;var j=x.data.attrs=l({},x.data.attrs);j.href=s,j["aria-current"]=y}else O.on=b}return t(this.tag,O,this.$slots.default)}};function et(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||t.defaultPrevented||void 0!==t.button&&0!==t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}var nt="undefined"!=typeof window;function rt(t,e,n,r,o){var i=e||[],a=n||Object.create(null),s=r||Object.create(null);t.forEach((function(t){!function t(e,n,r,o,i,a){var s=o.path,c=o.name;0;var u=o.pathToRegexpOptions||{},f=function(t,e,n){n||(t=t.replace(/\/$/,""));if("/"===t[0])return t;if(null==e)return t;return L(e.path+"/"+t)}(s,i,u.strict);"boolean"==typeof o.caseSensitive&&(u.sensitive=o.caseSensitive);var l={path:f,regex:ot(f,u),components:o.components||{default:o.component},alias:o.alias?"string"==typeof o.alias?[o.alias]:o.alias:[],instances:{},enteredCbs:{},name:c,parent:i,matchAs:a,redirect:o.redirect,beforeEnter:o.beforeEnter,meta:o.meta||{},props:null==o.props?{}:o.components?o.props:{default:o.props}};o.children&&o.children.forEach((function(o){var i=a?L(a+"/"+o.path):void 0;t(e,n,r,o,l,i)}));n[l.path]||(e.push(l.path),n[l.path]=l);if(void 0!==o.alias)for(var p=Array.isArray(o.alias)?o.alias:[o.alias],d=0;d<p.length;++d){0;var h={path:p[d],children:o.children};t(e,n,r,h,i,l.path||"/")}c&&(r[c]||(r[c]=l))}(i,a,s,t,o)}));for(var c=0,u=i.length;c<u;c++)"*"===i[c]&&(i.push(i.splice(c,1)[0]),u--,c--);return{pathList:i,pathMap:a,nameMap:s}}function ot(t,e){return R(t,[],e)}function it(t,e){var n=rt(t),r=n.pathList,o=n.pathMap,i=n.nameMap;function a(t,n,a){var s=J(t,n,!1,e),u=s.name;if(u){var f=i[u];if(!f)return c(null,s);var l=f.regex.keys.filter((function(t){return!t.optional})).map((function(t){return t.name}));if("object"!=typeof s.params&&(s.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in s.params)&&l.indexOf(p)>-1&&(s.params[p]=n.params[p]);return s.path=Y(f.path,s.params),c(f,s,a)}if(s.path){s.params={};for(var d=0;d<r.length;d++){var h=r[d],v=o[h];if(at(v.regex,s.path,s.params))return c(v,s,a)}}return c(null,s)}function s(t,n){var r=t.redirect,o="function"==typeof r?r(w(t,n,null,e)):r;if("string"==typeof o&&(o={path:o}),!o||"object"!=typeof o)return c(null,n);var s=o,u=s.name,f=s.path,l=n.query,p=n.hash,d=n.params;if(l=s.hasOwnProperty("query")?s.query:l,p=s.hasOwnProperty("hash")?s.hash:p,d=s.hasOwnProperty("params")?s.params:d,u){i[u];return a({_normalized:!0,name:u,query:l,hash:p,params:d},void 0,n)}if(f){var h=function(t,e){return k(t,e.parent?e.parent.path:"/",!0)}(f,t);return a({_normalized:!0,path:Y(h,d),query:l,hash:p},void 0,n)}return c(null,n)}function c(t,n,r){return t&&t.redirect?s(t,r||n):t&&t.matchAs?function(t,e,n){var r=a({_normalized:!0,path:Y(n,e.params)});if(r){var o=r.matched,i=o[o.length-1];return e.params=r.params,c(i,e)}return c(null,e)}(0,n,t.matchAs):w(t,n,r,e)}return{match:a,addRoute:function(t,e){var n="object"!=typeof t?i[t]:void 0;rt([e||t],r,o,i,n),n&&rt(n.alias.map((function(t){return{path:t,children:[e]}})),r,o,i,n)},getRoutes:function(){return r.map((function(t){return o[t]}))},addRoutes:function(t){rt(t,r,o,i)}}}function at(t,e,n){var r=e.match(t);if(!r)return!1;if(!n)return!0;for(var o=1,i=r.length;o<i;++o){var a=t.keys[o-1];a&&(n[a.name||"pathMatch"]="string"==typeof r[o]?m(r[o]):r[o])}return!0}var st=nt&&window.performance&&window.performance.now?window.performance:Date;function ct(){return st.now().toFixed(3)}var ut=ct();function ft(){return ut}function lt(t){return ut=t}var pt=Object.create(null);function dt(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var t=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(t,""),n=l({},window.history.state);return n.key=ft(),window.history.replaceState(n,"",e),window.addEventListener("popstate",mt),function(){window.removeEventListener("popstate",mt)}}function ht(t,e,n,r){if(t.app){var o=t.options.scrollBehavior;o&&t.app.$nextTick((function(){var i=function(){var t=ft();if(t)return pt[t]}(),a=o.call(t,e,n,r?i:null);a&&("function"==typeof a.then?a.then((function(t){wt(t,i)})).catch((function(t){0})):wt(a,i))}))}}function vt(){var t=ft();t&&(pt[t]={x:window.pageXOffset,y:window.pageYOffset})}function mt(t){vt(),t.state&&t.state.key&&lt(t.state.key)}function yt(t){return bt(t.x)||bt(t.y)}function gt(t){return{x:bt(t.x)?t.x:window.pageXOffset,y:bt(t.y)?t.y:window.pageYOffset}}function bt(t){return"number"==typeof t}var _t=/^#\d/;function wt(t,e){var n,r="object"==typeof t;if(r&&"string"==typeof t.selector){var o=_t.test(t.selector)?document.getElementById(t.selector.slice(1)):document.querySelector(t.selector);if(o){var i=t.offset&&"object"==typeof t.offset?t.offset:{};e=function(t,e){var n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{x:r.left-n.left-e.x,y:r.top-n.top-e.y}}(o,i={x:bt((n=i).x)?n.x:0,y:bt(n.y)?n.y:0})}else yt(t)&&(e=gt(t))}else r&&yt(t)&&(e=gt(t));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:t.behavior}):window.scrollTo(e.x,e.y))}var Ot,Et=nt&&((-1===(Ot=window.navigator.userAgent).indexOf("Android 2.")&&-1===Ot.indexOf("Android 4.0")||-1===Ot.indexOf("Mobile Safari")||-1!==Ot.indexOf("Chrome")||-1!==Ot.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState);function xt(t,e){vt();var n=window.history;try{if(e){var r=l({},n.state);r.key=ft(),n.replaceState(r,"",t)}else n.pushState({key:lt(ct())},"",t)}catch(n){window.location[e?"replace":"assign"](t)}}function At(t){xt(t,!0)}function Ct(t,e,n){var r=function(o){o>=t.length?n():t[o]?e(t[o],(function(){r(o+1)})):r(o+1)};r(0)}var St={redirected:2,aborted:4,cancelled:8,duplicated:16};function Tt(t,e){return jt(t,e,St.redirected,'Redirected when going from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return kt.forEach((function(n){n in t&&(e[n]=t[n])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function It(t,e){return jt(t,e,St.cancelled,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function jt(t,e,n,r){var o=new Error(r);return o._isRouter=!0,o.from=t,o.to=e,o.type=n,o}var kt=["params","query","hash"];function Lt(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}function $t(t,e){return Lt(t)&&t._isRouter&&(null==e||t.type===e)}function Rt(t){return function(e,n,r){var o=!1,i=0,a=null;Pt(t,(function(t,e,n,s){if("function"==typeof t&&void 0===t.cid){o=!0,i++;var c,u=Dt((function(e){var o;((o=e).__esModule||Ut&&"Module"===o[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:Q.extend(e),n.components[s]=e,--i<=0&&r()})),f=Dt((function(t){var e="Failed to resolve async component "+s+": "+t;a||(a=Lt(t)?t:new Error(e),r(a))}));try{c=t(u,f)}catch(t){f(t)}if(c)if("function"==typeof c.then)c.then(u,f);else{var l=c.component;l&&"function"==typeof l.then&&l.then(u,f)}}})),o||r()}}function Pt(t,e){return Nt(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function Nt(t){return Array.prototype.concat.apply([],t)}var Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Dt(t){var e=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Mt=function(t,e){this.router=t,this.base=function(t){if(!t)if(nt){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=E,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Ft(t,e,n,r){var o=Pt(t,(function(t,r,o,i){var a=function(t,e){"function"!=typeof t&&(t=Q.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return n(t,r,o,i)})):n(a,r,o,i)}));return Nt(r?o.reverse():o)}function Bt(t,e){if(e)return function(){return t.apply(e,arguments)}}Mt.prototype.listen=function(t){this.cb=t},Mt.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Mt.prototype.onError=function(t){this.errorCbs.push(t)},Mt.prototype.transitionTo=function(t,e,n){var r,o=this;try{r=this.router.match(t,this.current)}catch(t){throw this.errorCbs.forEach((function(e){e(t)})),t}var i=this.current;this.confirmTransition(r,(function(){o.updateRoute(r),e&&e(r),o.ensureURL(),o.router.afterHooks.forEach((function(t){t&&t(r,i)})),o.ready||(o.ready=!0,o.readyCbs.forEach((function(t){t(r)})))}),(function(t){n&&n(t),t&&!o.ready&&($t(t,St.redirected)&&i===E||(o.ready=!0,o.readyErrorCbs.forEach((function(e){e(t)}))))}))},Mt.prototype.confirmTransition=function(t,e,n){var r=this,o=this.current;this.pending=t;var i,a,s=function(t){!$t(t)&&Lt(t)&&(r.errorCbs.length?r.errorCbs.forEach((function(e){e(t)})):console.error(t)),n&&n(t)},c=t.matched.length-1,u=o.matched.length-1;if(C(t,o)&&c===u&&t.matched[c]===o.matched[u])return this.ensureURL(),s(((a=jt(i=o,t,St.duplicated,'Avoided redundant navigation to current location: "'+i.fullPath+'".')).name="NavigationDuplicated",a));var f=function(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n<r&&t[n]===e[n];n++);return{updated:e.slice(0,n),activated:e.slice(n),deactivated:t.slice(n)}}(this.current.matched,t.matched),l=f.updated,p=f.deactivated,d=f.activated,h=[].concat(function(t){return Ft(t,"beforeRouteLeave",Bt,!0)}(p),this.router.beforeHooks,function(t){return Ft(t,"beforeRouteUpdate",Bt)}(l),d.map((function(t){return t.beforeEnter})),Rt(d)),v=function(e,n){if(r.pending!==t)return s(It(o,t));try{e(t,o,(function(e){!1===e?(r.ensureURL(!0),s(function(t,e){return jt(t,e,St.aborted,'Navigation aborted from "'+t.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}(o,t))):Lt(e)?(r.ensureURL(!0),s(e)):"string"==typeof e||"object"==typeof e&&("string"==typeof e.path||"string"==typeof e.name)?(s(Tt(o,t)),"object"==typeof e&&e.replace?r.replace(e):r.push(e)):n(e)}))}catch(t){s(t)}};Ct(h,v,(function(){Ct(function(t){return Ft(t,"beforeRouteEnter",(function(t,e,n,r){return function(t,e,n){return function(r,o,i){return t(r,o,(function(t){"function"==typeof t&&(e.enteredCbs[n]||(e.enteredCbs[n]=[]),e.enteredCbs[n].push(t)),i(t)}))}}(t,n,r)}))}(d).concat(r.router.resolveHooks),v,(function(){if(r.pending!==t)return s(It(o,t));r.pending=null,e(t),r.router.app&&r.router.app.$nextTick((function(){T(t)}))}))}))},Mt.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)},Mt.prototype.setupListeners=function(){},Mt.prototype.teardown=function(){this.listeners.forEach((function(t){t()})),this.listeners=[],this.current=E,this.pending=null};var Ht=function(t){function e(e,n){t.call(this,e,n),this._startLocation=zt(this.base)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router,n=e.options.scrollBehavior,r=Et&&n;r&&this.listeners.push(dt());var o=function(){var n=t.current,o=zt(t.base);t.current===E&&o===t._startLocation||t.transitionTo(o,(function(t){r&&ht(e,t,n,!0)}))};window.addEventListener("popstate",o),this.listeners.push((function(){window.removeEventListener("popstate",o)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){xt(L(r.base+t.fullPath)),ht(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){At(L(r.base+t.fullPath)),ht(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.ensureURL=function(t){if(zt(this.base)!==this.current.fullPath){var e=L(this.base+this.current.fullPath);t?xt(e):At(e)}},e.prototype.getCurrentLocation=function(){return zt(this.base)},e}(Mt);function zt(t){var e=window.location.pathname;return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Gt=function(t){function e(e,n,r){t.call(this,e,n),r&&function(t){var e=zt(t);if(!/^\/#/.test(e))return window.location.replace(L(t+"/#"+e)),!0}(this.base)||Vt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,n=Et&&e;n&&this.listeners.push(dt());var r=function(){var e=t.current;Vt()&&t.transitionTo(qt(),(function(r){n&&ht(t.router,r,e,!0),Et||Kt(r.fullPath)}))},o=Et?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},e.prototype.push=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){Wt(t.fullPath),ht(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this,o=this.current;this.transitionTo(t,(function(t){Kt(t.fullPath),ht(r.router,t,o,!1),e&&e(t)}),n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;qt()!==e&&(t?Wt(e):Kt(e))},e.prototype.getCurrentLocation=function(){return qt()},e}(Mt);function Vt(){var t=qt();return"/"===t.charAt(0)||(Kt("/"+t),!1)}function qt(){var t=window.location.href,e=t.indexOf("#");return e<0?"":t=t.slice(e+1)}function Xt(t){var e=window.location.href,n=e.indexOf("#");return(n>=0?e.slice(0,n):e)+"#"+t}function Wt(t){Et?xt(Xt(t)):window.location.hash=t}function Kt(t){Et?At(Xt(t)):window.location.replace(Xt(t))}var Yt=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var t=e.current;e.index=n,e.updateRoute(r),e.router.afterHooks.forEach((function(e){e&&e(r,t)}))}),(function(t){$t(t,St.duplicated)&&(e.index=n)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Mt),Jt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=it(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Et&&!1!==t.fallback,this.fallback&&(e="hash"),nt||(e="abstract"),this.mode=e,e){case"history":this.history=new Ht(this,t.base);break;case"hash":this.history=new Gt(this,t.base,this.fallback);break;case"abstract":this.history=new Yt(this,t.base);break;default:0}},Qt={currentRoute:{configurable:!0}};function Zt(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}Jt.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},Qt.currentRoute.get=function(){return this.history&&this.history.current},Jt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var n=e.apps.indexOf(t);n>-1&&e.apps.splice(n,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardown()})),!this.app){this.app=t;var n=this.history;if(n instanceof Ht||n instanceof Gt){var r=function(t){n.setupListeners(),function(t){var r=n.current,o=e.options.scrollBehavior;Et&&o&&"fullPath"in t&&ht(e,t,r,!1)}(t)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},Jt.prototype.beforeEach=function(t){return Zt(this.beforeHooks,t)},Jt.prototype.beforeResolve=function(t){return Zt(this.resolveHooks,t)},Jt.prototype.afterEach=function(t){return Zt(this.afterHooks,t)},Jt.prototype.onReady=function(t,e){this.history.onReady(t,e)},Jt.prototype.onError=function(t){this.history.onError(t)},Jt.prototype.push=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.push(t,e,n)}));this.history.push(t,e,n)},Jt.prototype.replace=function(t,e,n){var r=this;if(!e&&!n&&"undefined"!=typeof Promise)return new Promise((function(e,n){r.history.replace(t,e,n)}));this.history.replace(t,e,n)},Jt.prototype.go=function(t){this.history.go(t)},Jt.prototype.back=function(){this.go(-1)},Jt.prototype.forward=function(){this.go(1)},Jt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},Jt.prototype.resolve=function(t,e,n){var r=J(t,e=e||this.history.current,n,this),o=this.match(r,e),i=o.redirectedFrom||o.fullPath;return{location:r,route:o,href:function(t,e,n){var r="hash"===n?"#"+e:e;return t?L(t+"/"+r):r}(this.history.base,i,this.mode),normalizedTo:r,resolved:o}},Jt.prototype.getRoutes=function(){return this.matcher.getRoutes()},Jt.prototype.addRoute=function(t,e){this.matcher.addRoute(t,e),this.history.current!==E&&this.history.transitionTo(this.history.getCurrentLocation())},Jt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==E&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(Jt.prototype,Qt),Jt.install=function t(e){if(!t.installed||Q!==e){t.installed=!0,Q=e;var n=function(t){return void 0!==t},r=function(t,e){var r=t.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(t,e)};e.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",I),e.component("RouterLink",tt);var o=e.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},Jt.version="3.5.1",Jt.isNavigationFailure=$t,Jt.NavigationFailureType=St,Jt.START_LOCATION=E,nt&&window.Vue&&window.Vue.use(Jt);var te=Jt,ee=o(11),ne=function(){return Promise.all([o.e(0),o.e(9),o.e(7)]).then(o.bind(null,612))},re=function(){return Promise.all([o.e(0),o.e(8),o.e(2)]).then(o.bind(null,611))};i.default.use(te);var oe=new te({mode:"history",base:Object(ee.generateUrl)(""),linkActiveClass:"active",routes:[{path:"/:index(index.php/)?settings/users",component:ne,props:!0,name:"users",children:[{path:":selectedGroup",name:"group",component:ne}]},{path:"/:index(index.php/)?settings/apps",component:re,props:!0,name:"apps",children:[{path:":category",name:"apps-category",component:re,children:[{path:":id",name:"apps-details",component:re}]}]}]}),ie=o(204),ae=o(25),se=o.n(ae),ce=o(94),ue=o.n(ce),fe=function(t){return t.replace(/\/$/,"")},le=function(){return ue()()},pe=function(t,e){return se.a.get(fe(t),e)},de=function(t,e){return se.a.post(fe(t),e)},he=function(t,e){return se.a.put(fe(t),e)},ve=function(t,e){return se.a.delete(fe(t),{params:e})},me=function(t,e){return 1===e?t.sort((function(t,e){return t.usercount-t.disabled<e.usercount-e.disabled})):t.sort((function(t,e){return t.name.localeCompare(e.name)}))},ye={id:"",name:"",usercount:0,disabled:0,canAdd:!0,canRemove:!0},ge={appendUsers:function(t,e){var n=t.users.concat(Object.keys(e).map((function(t){return e[t]})));t.usersOffset+=t.usersLimit,t.users=n},setPasswordPolicyMinLength:function(t,e){t.minPasswordLength=""!==e?e:0},initGroups:function(t,e){var n=e.groups,r=e.orderBy,o=e.userCount;t.groups=n.map((function(t){return Object.assign({},ye,t)})),t.orderBy=r,t.userCount=o,t.groups=me(t.groups,t.orderBy)},addGroup:function(t,e){var n=e.gid,r=e.displayName;try{if(void 0!==t.groups.find((function(t){return t.id===n})))return;var o=Object.assign({},ye,{id:n,name:r});t.groups.push(o),t.groups=me(t.groups,t.orderBy)}catch(t){console.error("Can't create group",t)}},removeGroup:function(t,e){var n=t.groups.findIndex((function(t){return t.id===e}));n>=0&&t.groups.splice(n,1)},addUserGroup:function(t,e){var n=e.userid,r=e.gid,o=t.groups.find((function(t){return t.id===r})),i=t.users.find((function(t){return t.id===n}));o&&i.enabled&&t.userCount>0&&o.usercount++,i.groups.push(r),t.groups=me(t.groups,t.orderBy)},removeUserGroup:function(t,e){var n=e.userid,r=e.gid,o=t.groups.find((function(t){return t.id===r})),i=t.users.find((function(t){return t.id===n}));o&&i.enabled&&t.userCount>0&&o.usercount--;var a=i.groups;a.splice(a.indexOf(r),1),t.groups=me(t.groups,t.orderBy)},addUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;t.users.find((function(t){return t.id===n})).subadmin.push(r)},removeUserSubAdmin:function(t,e){var n=e.userid,r=e.gid,o=t.users.find((function(t){return t.id===n})).subadmin;o.splice(o.indexOf(r),1)},deleteUser:function(t,e){var n=t.users.findIndex((function(t){return t.id===e}));t.users.splice(n,1)},addUserData:function(t,e){t.users.push(e.data.ocs.data)},enableDisableUser:function(t,e){var n=e.userid,r=e.enabled,o=t.users.find((function(t){return t.id===n}));o.enabled=r,t.userCount>0&&(t.groups.find((function(t){return"disabled"===t.id})).usercount+=r?-1:1,t.userCount+=r?1:-1,o.groups.forEach((function(e){t.groups.find((function(t){return t.id===e})).disabled+=r?-1:1})))},setUserData:function(t,e){var n=e.userid,r=e.key,o=e.value;if("quota"===r){var i=OC.Util.computerFileSize(o);t.users.find((function(t){return t.id===n}))[r][r]=null!==i?i:o}else t.users.find((function(t){return t.id===n}))[r]=o},resetUsers:function(t){t.users=[],t.usersOffset=0}},be=se.a.CancelToken,_e=null,we={state:{users:[],groups:[],orderBy:1,minPasswordLength:0,usersOffset:0,usersLimit:25,userCount:0},mutations:ge,getters:{getUsers:function(t){return t.users},getGroups:function(t){return t.groups},getSubadminGroups:function(t){return t.groups.filter((function(t){return"admin"!==t.id&&"disabled"!==t.id}))},getPasswordPolicyMinLength:function(t){return t.minPasswordLength},getUsersOffset:function(t){return t.usersOffset},getUsersLimit:function(t){return t.usersLimit},getUserCount:function(t){return t.userCount}},actions:{getUsers:function(t,e){var n=e.offset,r=e.limit,o=e.search,i=e.group;return _e&&_e.cancel("Operation canceled by another search request."),_e=be.source(),o="string"==typeof o?o:"",""!==(i="string"==typeof i?i:"")?pe(Object(ee.generateOcsUrl)("cloud/groups/".concat(encodeURIComponent(encodeURIComponent(i)),"/users/details?offset=").concat(n,"&limit=").concat(r,"&search=").concat(o),2),{cancelToken:_e.token}).then((function(e){return Object.keys(e.data.ocs.data.users).length>0&&(t.commit("appendUsers",e.data.ocs.data.users),Object.keys(e.data.ocs.data.users).length>=r)})).catch((function(e){se.a.isCancel(e)||t.commit("API_FAILURE",e)})):pe(Object(ee.generateOcsUrl)("cloud/users/details?offset=".concat(n,"&limit=").concat(r,"&search=").concat(o),2),{cancelToken:_e.token}).then((function(e){return Object.keys(e.data.ocs.data.users).length>0&&(t.commit("appendUsers",e.data.ocs.data.users),Object.keys(e.data.ocs.data.users).length>=r)})).catch((function(e){se.a.isCancel(e)||t.commit("API_FAILURE",e)}))},getGroups:function(t,e){var n=e.offset,r=e.limit,o=e.search;o="string"==typeof o?o:"";var i=-1===r?"":"&limit=".concat(r);return pe(Object(ee.generateOcsUrl)("cloud/groups?offset=".concat(n,"&search=").concat(o).concat(i),2)).then((function(e){return Object.keys(e.data.ocs.data.groups).length>0&&(e.data.ocs.data.groups.forEach((function(e){t.commit("addGroup",{gid:e,displayName:e})})),!0)})).catch((function(e){return t.commit("API_FAILURE",e)}))},getUsersFromList:function(t,e){var n=e.offset,r=e.limit,o=e.search;return o="string"==typeof o?o:"",pe(Object(ee.generateOcsUrl)("cloud/users/details?offset=".concat(n,"&limit=").concat(r,"&search=").concat(o),2)).then((function(e){return Object.keys(e.data.ocs.data.users).length>0&&(t.commit("appendUsers",e.data.ocs.data.users),!0)})).catch((function(e){return t.commit("API_FAILURE",e)}))},getUsersFromGroup:function(t,e){var n=e.groupid,r=e.offset,o=e.limit;return pe(Object(ee.generateOcsUrl)("cloud/users/".concat(encodeURIComponent(encodeURIComponent(n)),"/details?offset=").concat(r,"&limit=").concat(o),2)).then((function(e){return t.commit("getUsersFromList",e.data.ocs.data.users)})).catch((function(e){return t.commit("API_FAILURE",e)}))},getPasswordPolicyMinLength:function(t){return!(!OC.getCapabilities().password_policy||!OC.getCapabilities().password_policy.minLength)&&(t.commit("setPasswordPolicyMinLength",OC.getCapabilities().password_policy.minLength),OC.getCapabilities().password_policy.minLength)},addGroup:function(t,e){return le().then((function(n){return de(Object(ee.generateOcsUrl)("cloud/groups",2),{groupid:e}).then((function(n){return t.commit("addGroup",{gid:e,displayName:e}),{gid:e,displayName:e}})).catch((function(t){throw t}))})).catch((function(n){throw t.commit("API_FAILURE",{gid:e,error:n}),n}))},removeGroup:function(t,e){return le().then((function(n){return ve(Object(ee.generateOcsUrl)("cloud/groups/".concat(encodeURIComponent(encodeURIComponent(e))),2)).then((function(n){return t.commit("removeGroup",e)})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{gid:e,error:n})}))},addUserGroup:function(t,e){var n=e.userid,r=e.gid;return le().then((function(e){return de(Object(ee.generateOcsUrl)("cloud/users/".concat(n,"/groups"),2),{groupid:r}).then((function(e){return t.commit("addUserGroup",{userid:n,gid:r})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})}))},removeUserGroup:function(t,e){var n=e.userid,r=e.gid;return le().then((function(e){return ve(Object(ee.generateOcsUrl)("cloud/users/".concat(n,"/groups"),2),{groupid:r}).then((function(e){return t.commit("removeUserGroup",{userid:n,gid:r})})).catch((function(t){throw t}))})).catch((function(e){throw t.commit("API_FAILURE",{userid:n,error:e}),e}))},addUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;return le().then((function(e){return de(Object(ee.generateOcsUrl)("cloud/users/".concat(n,"/subadmins"),2),{groupid:r}).then((function(e){return t.commit("addUserSubAdmin",{userid:n,gid:r})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})}))},removeUserSubAdmin:function(t,e){var n=e.userid,r=e.gid;return le().then((function(e){return ve(Object(ee.generateOcsUrl)("cloud/users/".concat(n,"/subadmins"),2),{groupid:r}).then((function(e){return t.commit("removeUserSubAdmin",{userid:n,gid:r})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})}))},wipeUserDevices:function(t,e){return le().then((function(t){return de(Object(ee.generateOcsUrl)("cloud/users/".concat(e,"/wipe"),2)).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{userid:e,error:n})}))},deleteUser:function(t,e){return le().then((function(n){return ve(Object(ee.generateOcsUrl)("cloud/users/".concat(e),2)).then((function(n){return t.commit("deleteUser",e)})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{userid:e,error:n})}))},addUser:function(t,e){var n=t.commit,r=t.dispatch,o=e.userid,i=e.password,a=e.displayName,s=e.email,c=e.groups,u=e.subadmin,f=e.quota,l=e.language;return le().then((function(t){return de(Object(ee.generateOcsUrl)("cloud/users",2),{userid:o,password:i,displayName:a,email:s,groups:c,subadmin:u,quota:f,language:l}).then((function(t){return r("addUserData",o||t.data.ocs.data.id)})).catch((function(t){throw t}))})).catch((function(t){throw n("API_FAILURE",{userid:o,error:t}),t}))},addUserData:function(t,e){return le().then((function(n){return pe(Object(ee.generateOcsUrl)("cloud/users/".concat(e),2)).then((function(e){return t.commit("addUserData",e)})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{userid:e,error:n})}))},enableDisableUser:function(t,e){var n=e.userid,r=e.enabled,o=void 0===r||r,i=o?"enable":"disable";return le().then((function(e){return he(Object(ee.generateOcsUrl)("cloud/users/".concat(n,"/").concat(i),2)).then((function(e){return t.commit("enableDisableUser",{userid:n,enabled:o})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})}))},setUserData:function(t,e){var n=e.userid,r=e.key,o=e.value,i=["email","displayname"];return-1!==["email","language","quota","displayname","password"].indexOf(r)&&"string"==typeof o&&(-1===i.indexOf(r)&&o.length>0||-1!==i.indexOf(r))?le().then((function(e){return he(Object(ee.generateOcsUrl)("cloud/users/".concat(n),2),{key:r,value:o}).then((function(e){return t.commit("setUserData",{userid:n,key:r,value:o})})).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{userid:n,error:e})})):Promise.reject(new Error("Invalid request data"))},sendWelcomeMail:function(t,e){return le().then((function(t){return de(Object(ee.generateOcsUrl)("cloud/users/".concat(e,"/welcome"),2)).then((function(t){return!0})).catch((function(t){throw t}))})).catch((function(n){return t.commit("API_FAILURE",{userid:e,error:n})}))}}},Oe={state:{apps:[],categories:[],updateCount:0,loading:{},loadingList:!1},mutations:{APPS_API_FAILURE:function(e,n){OC.Notification.showHtml(t("settings","An error occured during the request. Unable to proceed.")+"<br>"+n.error.response.data.data.message,{timeout:7}),console.error(e,n)},initCategories:function(t,e){var n=e.categories,r=e.updateCount;t.categories=n,t.updateCount=r},setUpdateCount:function(t,e){t.updateCount=e},addCategory:function(t,e){t.categories.push(e)},appendCategories:function(t,e){t.categories=e},setAllApps:function(t,e){t.apps=e},setError:function(t,e){var n=e.appId,r=e.error;Array.isArray(n)||(n=[n]),n.forEach((function(e){t.apps.find((function(t){return t.id===e})).error=r}))},clearError:function(t,e){var n=e.appId;e.error;t.apps.find((function(t){return t.id===n})).error=null},enableApp:function(t,e){var n=e.appId,r=e.groups,o=t.apps.find((function(t){return t.id===n}));o.active=!0,o.groups=r},disableApp:function(t,e){var n=t.apps.find((function(t){return t.id===e}));n.active=!1,n.groups=[],n.removable&&(n.canUnInstall=!0)},uninstallApp:function(t,e){t.apps.find((function(t){return t.id===e})).active=!1,t.apps.find((function(t){return t.id===e})).groups=[],t.apps.find((function(t){return t.id===e})).needsDownload=!0,t.apps.find((function(t){return t.id===e})).installed=!1,t.apps.find((function(t){return t.id===e})).canUnInstall=!1,t.apps.find((function(t){return t.id===e})).canInstall=!0},updateApp:function(t,e){var n=t.apps.find((function(t){return t.id===e})),r=n.update;n.update=null,n.version=r,t.updateCount--},resetApps:function(t){t.apps=[]},reset:function(t){t.apps=[],t.categories=[],t.updateCount=0},startLoading:function(t,e){Array.isArray(e)?e.forEach((function(e){i.default.set(t.loading,e,!0)})):i.default.set(t.loading,e,!0)},stopLoading:function(t,e){Array.isArray(e)?e.forEach((function(e){i.default.set(t.loading,e,!1)})):i.default.set(t.loading,e,!1)}},getters:{loading:function(t){return function(e){return t.loading[e]}},getCategories:function(t){return t.categories},getAllApps:function(t){return t.apps},getUpdateCount:function(t){return t.updateCount}},actions:{enableApp:function(e,n){var r,o=n.appId,i=n.groups;return r=Array.isArray(o)?o:[o],le().then((function(n){return e.commit("startLoading",r),e.commit("startLoading","install"),de(Object(ee.generateUrl)("settings/apps/enable"),{appIds:r,groups:i}).then((function(n){return e.commit("stopLoading",r),e.commit("stopLoading","install"),r.forEach((function(t){e.commit("enableApp",{appId:t,groups:i})})),pe(Object(ee.generateUrl)("apps/files")).then((function(){n.data.update_required&&(OC.dialogs.info(t("settings","The app has been enabled but needs to be updated. You will be redirected to the update page in 5 seconds."),t("settings","App update"),(function(){window.location.reload()}),!0),setTimeout((function(){location.reload()}),5e3))})).catch((function(){Array.isArray(o)||e.commit("setError",{appId:r,error:t("settings","Error: This app cannot be enabled because it makes the server unstable")})}))})).catch((function(t){e.commit("stopLoading",r),e.commit("stopLoading","install"),e.commit("setError",{appId:r,error:t.response.data.data.message}),e.commit("APPS_API_FAILURE",{appId:o,error:t})}))})).catch((function(t){return e.commit("API_FAILURE",{appId:o,error:t})}))},forceEnableApp:function(t,e){var n,r=e.appId;e.groups;return n=Array.isArray(r)?r:[r],le().then((function(){return t.commit("startLoading",n),t.commit("startLoading","install"),de(Object(ee.generateUrl)("settings/apps/force"),{appId:r}).then((function(t){location.reload()})).catch((function(e){t.commit("stopLoading",n),t.commit("stopLoading","install"),t.commit("setError",{appId:n,error:e.response.data.data.message}),t.commit("APPS_API_FAILURE",{appId:r,error:e})}))})).catch((function(e){return t.commit("API_FAILURE",{appId:r,error:e})}))},disableApp:function(t,e){var n,r=e.appId;return n=Array.isArray(r)?r:[r],le().then((function(e){return t.commit("startLoading",n),de(Object(ee.generateUrl)("settings/apps/disable"),{appIds:n}).then((function(e){return t.commit("stopLoading",n),n.forEach((function(e){t.commit("disableApp",e)})),!0})).catch((function(e){t.commit("stopLoading",n),t.commit("APPS_API_FAILURE",{appId:r,error:e})}))})).catch((function(e){return t.commit("API_FAILURE",{appId:r,error:e})}))},uninstallApp:function(t,e){var n=e.appId;return le().then((function(e){return t.commit("startLoading",n),pe(Object(ee.generateUrl)("settings/apps/uninstall/".concat(n))).then((function(e){return t.commit("stopLoading",n),t.commit("uninstallApp",n),!0})).catch((function(e){t.commit("stopLoading",n),t.commit("APPS_API_FAILURE",{appId:n,error:e})}))})).catch((function(e){return t.commit("API_FAILURE",{appId:n,error:e})}))},updateApp:function(t,e){var n=e.appId;return le().then((function(e){return t.commit("startLoading",n),t.commit("startLoading","install"),pe(Object(ee.generateUrl)("settings/apps/update/".concat(n))).then((function(e){return t.commit("stopLoading","install"),t.commit("stopLoading",n),t.commit("updateApp",n),!0})).catch((function(e){t.commit("stopLoading",n),t.commit("stopLoading","install"),t.commit("APPS_API_FAILURE",{appId:n,error:e})}))})).catch((function(e){return t.commit("API_FAILURE",{appId:n,error:e})}))},getAllApps:function(t){return t.commit("startLoading","list"),pe(Object(ee.generateUrl)("settings/apps/list")).then((function(e){return t.commit("setAllApps",e.data.apps),t.commit("stopLoading","list"),!0})).catch((function(e){return t.commit("API_FAILURE",e)}))},getCategories:function(t){return t.commit("startLoading","categories"),pe(Object(ee.generateUrl)("settings/apps/categories")).then((function(e){return e.data.length>0&&(t.commit("appendCategories",e.data),t.commit("stopLoading","categories"),!0)})).catch((function(e){return t.commit("API_FAILURE",e)}))}}},Ee={state:{serverData:{}},mutations:{setServerData:function(t,e){t.serverData=e}},getters:{getServerData:function(t){return t.serverData}},actions:{}},xe={state:{},mutations:{},getters:{},actions:{setAppConfig:function(t,e){var n=e.app,r=e.key,o=e.value;return le().then((function(t){return de(Object(ee.generateOcsUrl)("apps/provisioning_api/api/v1/config/apps/".concat(n,"/").concat(r),2),{value:o}).catch((function(t){throw t}))})).catch((function(e){return t.commit("API_FAILURE",{app:n,key:r,value:o,error:e})}))}}};
/**
* @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
*
@@ -83,4 +83,4 @@ i.default.use(ie.a);var Ae={API_FAILURE:function(e,n){try{var r=n.error.response
*
*/
i.default.use(a.default,{defaultHtml:!1}),Object(s.sync)(Ce,oe),o.nc=btoa(OC.requestToken),o.p=OC.linkTo("settings","js/"),i.default.prototype.t=t,i.default.prototype.n=n,i.default.prototype.OC=OC,i.default.prototype.OCA=OCA,i.default.prototype.oc_userconfig=oc_userconfig;var Se=new i.default({router:oe,store:Ce,render:function(t){return t(f)}}).$mount("#content")}]);
-//# sourceMappingURL=vue-settings-apps-users-management.js.map?v=602fbe41c0144c229e9c \ No newline at end of file
+//# sourceMappingURL=vue-settings-apps-users-management.js.map?v=14de852cd823ca819cb0 \ No newline at end of file