mooho-base-admin-plus 2.0.41 → 2.0.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1297,6 +1297,105 @@ function init$4(converter, defaultAttributes) {
1297
1297
  );
1298
1298
  }
1299
1299
  var api = init$4(defaultConverter, { path: "/" });
1300
+ const Setting = {
1301
+ info: {},
1302
+ appID: "app",
1303
+ titleSuffix: "Admin Plus",
1304
+ routerMode: "history",
1305
+ showProgressBar: true,
1306
+ cookiesExpires: 1,
1307
+ i18n: {
1308
+ default: "zh-CN",
1309
+ auto: false,
1310
+ refresh: false
1311
+ },
1312
+ lodop: {
1313
+ name: "\u5357\u4EAC\u6469\u8D6B\u4FE1\u606F\u6280\u672F\u6709\u9650\u516C\u53F8",
1314
+ key: "58C4DF8932E17DEBE409D1E7F683CAFE"
1315
+ },
1316
+ menuSideWidth: 256,
1317
+ headerHeight: 64,
1318
+ menuSideCollapseWidth: 80,
1319
+ layout: {
1320
+ siderTheme: "dark",
1321
+ headerTheme: "light",
1322
+ headerStick: false,
1323
+ tabs: false,
1324
+ showTabsIcon: true,
1325
+ tabsFix: true,
1326
+ tabsReload: false,
1327
+ tabsOrder: true,
1328
+ siderFix: true,
1329
+ headerFix: true,
1330
+ headerHide: true,
1331
+ headerMenu: false,
1332
+ menuAccordion: true,
1333
+ showSiderCollapse: true,
1334
+ menuCollapse: false,
1335
+ menuSiderReload: false,
1336
+ menuHeaderReload: false,
1337
+ showCollapseMenuTitle: false,
1338
+ showReload: false,
1339
+ showSearch: false,
1340
+ showNotice: false,
1341
+ showFullscreen: true,
1342
+ showMobileLogo: true,
1343
+ showBreadcrumb: true,
1344
+ showBreadcrumbIcon: false,
1345
+ showLog: false,
1346
+ showI18n: false,
1347
+ enableSetting: false,
1348
+ logoutConfirm: true,
1349
+ autoFixRatio: true,
1350
+ maskClosable: true,
1351
+ draggable: true,
1352
+ alertStyle: "SweetAlert",
1353
+ filterWidth: 125
1354
+ },
1355
+ page: {
1356
+ opened: [],
1357
+ loadOpenedTabs: true
1358
+ },
1359
+ waterMark: {
1360
+ show: false,
1361
+ text: "MOOHO",
1362
+ options: {}
1363
+ },
1364
+ sameRouteForceUpdate: false
1365
+ };
1366
+ const copyTo = (source2, target) => {
1367
+ for (let key in source2) {
1368
+ if (typeof source2[key] === "object") {
1369
+ if (target[key] == null) {
1370
+ target[key] = {};
1371
+ }
1372
+ copyTo(source2[key], target[key]);
1373
+ } else {
1374
+ target[key] = source2[key];
1375
+ }
1376
+ }
1377
+ };
1378
+ let localSetting = window.setting;
1379
+ if (localSetting) {
1380
+ copyTo(localSetting, Setting);
1381
+ }
1382
+ const cookies$2 = {};
1383
+ cookies$2.set = function(name = "default", value = "", cookieSetting = {}) {
1384
+ let currentCookieSetting = {};
1385
+ if (Setting.cookiesExpires !== 0)
1386
+ currentCookieSetting.expires = Setting.cookiesExpires;
1387
+ Object.assign(currentCookieSetting, cookieSetting);
1388
+ api.set(`admin-plus-${Setting.appID}-${name}`, value, currentCookieSetting);
1389
+ };
1390
+ cookies$2.get = function(name = "default") {
1391
+ return api.get(`admin-plus-${Setting.appID}-${name}`);
1392
+ };
1393
+ cookies$2.getAll = function() {
1394
+ return api.get();
1395
+ };
1396
+ cookies$2.remove = function(name = "default") {
1397
+ return api.remove(`admin-plus-${Setting.appID}-${name}`);
1398
+ };
1300
1399
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
1301
1400
  function getDefaultExportFromCjs(x2) {
1302
1401
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
@@ -6754,93 +6853,6 @@ var lodash$1 = { exports: {} };
6754
6853
  }
6755
6854
  }).call(commonjsGlobal);
6756
6855
  })(lodash$1, lodash$1.exports);
6757
- const Setting = {
6758
- info: {},
6759
- appID: "app",
6760
- titleSuffix: "Admin Plus",
6761
- routerMode: "history",
6762
- showProgressBar: true,
6763
- cookiesExpires: 1,
6764
- i18n: {
6765
- default: "zh-CN",
6766
- auto: false,
6767
- refresh: false
6768
- },
6769
- lodop: {
6770
- name: "\u5357\u4EAC\u6469\u8D6B\u4FE1\u606F\u6280\u672F\u6709\u9650\u516C\u53F8",
6771
- key: "58C4DF8932E17DEBE409D1E7F683CAFE"
6772
- },
6773
- menuSideWidth: 256,
6774
- headerHeight: 64,
6775
- menuSideCollapseWidth: 80,
6776
- layout: {
6777
- siderTheme: "dark",
6778
- headerTheme: "light",
6779
- headerStick: false,
6780
- tabs: false,
6781
- showTabsIcon: true,
6782
- tabsFix: true,
6783
- tabsReload: false,
6784
- tabsOrder: true,
6785
- siderFix: true,
6786
- headerFix: true,
6787
- headerHide: true,
6788
- headerMenu: false,
6789
- menuAccordion: true,
6790
- showSiderCollapse: true,
6791
- menuCollapse: false,
6792
- menuSiderReload: false,
6793
- menuHeaderReload: false,
6794
- showCollapseMenuTitle: false,
6795
- showReload: false,
6796
- showSearch: false,
6797
- showNotice: false,
6798
- showFullscreen: true,
6799
- showMobileLogo: true,
6800
- showBreadcrumb: true,
6801
- showBreadcrumbIcon: false,
6802
- showLog: false,
6803
- showI18n: false,
6804
- enableSetting: false,
6805
- logoutConfirm: true,
6806
- autoFixRatio: true,
6807
- maskClosable: true,
6808
- draggable: true,
6809
- alertStyle: "SweetAlert",
6810
- filterWidth: 125
6811
- },
6812
- page: {
6813
- opened: [],
6814
- loadOpenedTabs: true
6815
- },
6816
- waterMark: {
6817
- show: false,
6818
- text: "MOOHO",
6819
- options: {}
6820
- },
6821
- sameRouteForceUpdate: false
6822
- };
6823
- let localSetting = window.setting;
6824
- if (localSetting) {
6825
- lodash$1.exports.assign(Setting, localSetting);
6826
- }
6827
- const cookies$2 = {};
6828
- cookies$2.set = function(name = "default", value = "", cookieSetting = {}) {
6829
- let currentCookieSetting = {};
6830
- if (Setting.cookiesExpires !== 0)
6831
- currentCookieSetting.expires = Setting.cookiesExpires;
6832
- Object.assign(currentCookieSetting, cookieSetting);
6833
- api.set(`admin-plus-${Setting.appID}-${name}`, value, currentCookieSetting);
6834
- };
6835
- cookies$2.get = function(name = "default") {
6836
- return api.get(`admin-plus-${Setting.appID}-${name}`);
6837
- };
6838
- cookies$2.getAll = function() {
6839
- return api.get();
6840
- };
6841
- cookies$2.remove = function(name = "default") {
6842
- return api.remove(`admin-plus-${Setting.appID}-${name}`);
6843
- };
6844
6856
  var isPromise$4 = { exports: {} };
6845
6857
  isPromise$4.exports = isPromise$3;
6846
6858
  isPromise$4.exports.default = isPromise$3;
@@ -2,7 +2,7 @@
2
2
  * vuex v4.1.0
3
3
  * (c) 2022 Evan You
4
4
  * @license MIT
5
- */var storeKey="store";function forEachValue(a,r){Object.keys(a).forEach(function(o){return r(a[o],o)})}function isObject$6(a){return a!==null&&typeof a=="object"}function isPromise$5(a){return a&&typeof a.then=="function"}function assert$1(a,r){if(!a)throw new Error("[vuex] "+r)}function partial(a,r){return function(){return a(r)}}function genericSubscribe(a,r,o){return r.indexOf(a)<0&&(o&&o.prepend?r.unshift(a):r.push(a)),function(){var s=r.indexOf(a);s>-1&&r.splice(s,1)}}function resetStore(a,r){a._actions=Object.create(null),a._mutations=Object.create(null),a._wrappedGetters=Object.create(null),a._modulesNamespaceMap=Object.create(null);var o=a.state;installModule(a,o,[],a._modules.root,!0),resetStoreState(a,o,r)}function resetStoreState(a,r,o){var s=a._state,l=a._scope;a.getters={},a._makeLocalGettersCache=Object.create(null);var u=a._wrappedGetters,c={},d={},f=require$$0.effectScope(!0);f.run(function(){forEachValue(u,function(h,p){c[p]=partial(h,a),d[p]=require$$0.computed(function(){return c[p]()}),Object.defineProperty(a.getters,p,{get:function(){return d[p].value},enumerable:!0})})}),a._state=require$$0.reactive({data:r}),a._scope=f,a.strict&&enableStrictMode(a),s&&o&&a._withCommit(function(){s.data=null}),l&&l.stop()}function installModule(a,r,o,s,l){var u=!o.length,c=a._modules.getNamespace(o);if(s.namespaced&&(a._modulesNamespaceMap[c]&&console.error("[vuex] duplicate namespace "+c+" for the namespaced module "+o.join("/")),a._modulesNamespaceMap[c]=s),!u&&!l){var d=getNestedState(r,o.slice(0,-1)),f=o[o.length-1];a._withCommit(function(){f in d&&console.warn('[vuex] state field "'+f+'" was overridden by a module with the same name at "'+o.join(".")+'"'),d[f]=s.state})}var h=s.context=makeLocalContext(a,c,o);s.forEachMutation(function(p,v){var g=c+v;registerMutation(a,g,p,h)}),s.forEachAction(function(p,v){var g=p.root?v:c+v,y=p.handler||p;registerAction$1(a,g,y,h)}),s.forEachGetter(function(p,v){var g=c+v;registerGetter(a,g,p,h)}),s.forEachChild(function(p,v){installModule(a,r,o.concat(v),p,l)})}function makeLocalContext(a,r,o){var s=r==="",l={dispatch:s?a.dispatch:function(u,c,d){var f=unifyObjectStyle(u,c,d),h=f.payload,p=f.options,v=f.type;if((!p||!p.root)&&(v=r+v,!a._actions[v])){console.error("[vuex] unknown local action type: "+f.type+", global type: "+v);return}return a.dispatch(v,h)},commit:s?a.commit:function(u,c,d){var f=unifyObjectStyle(u,c,d),h=f.payload,p=f.options,v=f.type;if((!p||!p.root)&&(v=r+v,!a._mutations[v])){console.error("[vuex] unknown local mutation type: "+f.type+", global type: "+v);return}a.commit(v,h,p)}};return Object.defineProperties(l,{getters:{get:s?function(){return a.getters}:function(){return makeLocalGetters(a,r)}},state:{get:function(){return getNestedState(a.state,o)}}}),l}function makeLocalGetters(a,r){if(!a._makeLocalGettersCache[r]){var o={},s=r.length;Object.keys(a.getters).forEach(function(l){if(l.slice(0,s)===r){var u=l.slice(s);Object.defineProperty(o,u,{get:function(){return a.getters[l]},enumerable:!0})}}),a._makeLocalGettersCache[r]=o}return a._makeLocalGettersCache[r]}function registerMutation(a,r,o,s){var l=a._mutations[r]||(a._mutations[r]=[]);l.push(function(c){o.call(a,s.state,c)})}function registerAction$1(a,r,o,s){var l=a._actions[r]||(a._actions[r]=[]);l.push(function(c){var d=o.call(a,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:a.getters,rootState:a.state},c);return isPromise$5(d)||(d=Promise.resolve(d)),a._devtoolHook?d.catch(function(f){throw a._devtoolHook.emit("vuex:error",f),f}):d})}function registerGetter(a,r,o,s){if(a._wrappedGetters[r]){console.error("[vuex] duplicate getter key: "+r);return}a._wrappedGetters[r]=function(u){return o(s.state,s.getters,u.state,u.getters)}}function enableStrictMode(a){require$$0.watch(function(){return a._state.data},function(){assert$1(a._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function getNestedState(a,r){return r.reduce(function(o,s){return o[s]},a)}function unifyObjectStyle(a,r,o){return isObject$6(a)&&a.type&&(o=r,r=a,a=a.type),assert$1(typeof a=="string","expects string as the type, but found "+typeof a+"."),{type:a,payload:r,options:o}}var LABEL_VUEX_BINDINGS="vuex bindings",MUTATIONS_LAYER_ID="vuex:mutations",ACTIONS_LAYER_ID="vuex:actions",INSPECTOR_ID="vuex",actionId=0;function addDevtools$1(a,r){setupDevtoolsPlugin({id:"org.vuejs.vuex",app:a,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[LABEL_VUEX_BINDINGS]},function(o){o.addTimelineLayer({id:MUTATIONS_LAYER_ID,label:"Vuex Mutations",color:COLOR_LIME_500}),o.addTimelineLayer({id:ACTIONS_LAYER_ID,label:"Vuex Actions",color:COLOR_LIME_500}),o.addInspector({id:INSPECTOR_ID,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),o.on.getInspectorTree(function(s){if(s.app===a&&s.inspectorId===INSPECTOR_ID)if(s.filter){var l=[];flattenStoreForInspectorTree(l,r._modules.root,s.filter,""),s.rootNodes=l}else s.rootNodes=[formatStoreForInspectorTree(r._modules.root,"")]}),o.on.getInspectorState(function(s){if(s.app===a&&s.inspectorId===INSPECTOR_ID){var l=s.nodeId;makeLocalGetters(r,l),s.state=formatStoreForInspectorState(getStoreModule(r._modules,l),l==="root"?r.getters:r._makeLocalGettersCache,l)}}),o.on.editInspectorState(function(s){if(s.app===a&&s.inspectorId===INSPECTOR_ID){var l=s.nodeId,u=s.path;l!=="root"&&(u=l.split("/").filter(Boolean).concat(u)),r._withCommit(function(){s.set(r._state.data,u,s.state.value)})}}),r.subscribe(function(s,l){var u={};s.payload&&(u.payload=s.payload),u.state=l,o.notifyComponentUpdate(),o.sendInspectorTree(INSPECTOR_ID),o.sendInspectorState(INSPECTOR_ID),o.addTimelineEvent({layerId:MUTATIONS_LAYER_ID,event:{time:Date.now(),title:s.type,data:u}})}),r.subscribeAction({before:function(s,l){var u={};s.payload&&(u.payload=s.payload),s._id=actionId++,s._time=Date.now(),u.state=l,o.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:u}})},after:function(s,l){var u={},c=Date.now()-s._time;u.duration={_custom:{type:"duration",display:c+"ms",tooltip:"Action duration",value:c}},s.payload&&(u.payload=s.payload),u.state=l,o.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:u}})}})})}var COLOR_LIME_500=8702998,COLOR_DARK=6710886,COLOR_WHITE=16777215,TAG_NAMESPACED={label:"namespaced",textColor:COLOR_WHITE,backgroundColor:COLOR_DARK};function extractNameFromPath(a){return a&&a!=="root"?a.split("/").slice(-2,-1)[0]:"Root"}function formatStoreForInspectorTree(a,r){return{id:r||"root",label:extractNameFromPath(r),tags:a.namespaced?[TAG_NAMESPACED]:[],children:Object.keys(a._children).map(function(o){return formatStoreForInspectorTree(a._children[o],r+o+"/")})}}function flattenStoreForInspectorTree(a,r,o,s){s.includes(o)&&a.push({id:s||"root",label:s.endsWith("/")?s.slice(0,s.length-1):s||"Root",tags:r.namespaced?[TAG_NAMESPACED]:[]}),Object.keys(r._children).forEach(function(l){flattenStoreForInspectorTree(a,r._children[l],o,s+l+"/")})}function formatStoreForInspectorState(a,r,o){r=o==="root"?r:r[o];var s=Object.keys(r),l={state:Object.keys(a.state).map(function(c){return{key:c,editable:!0,value:a.state[c]}})};if(s.length){var u=transformPathsToObjectTree(r);l.getters=Object.keys(u).map(function(c){return{key:c.endsWith("/")?extractNameFromPath(c):c,editable:!1,value:canThrow(function(){return u[c]})}})}return l}function transformPathsToObjectTree(a){var r={};return Object.keys(a).forEach(function(o){var s=o.split("/");if(s.length>1){var l=r,u=s.pop();s.forEach(function(c){l[c]||(l[c]={_custom:{value:{},display:c,tooltip:"Module",abstract:!0}}),l=l[c]._custom.value}),l[u]=canThrow(function(){return a[o]})}else r[o]=canThrow(function(){return a[o]})}),r}function getStoreModule(a,r){var o=r.split("/").filter(function(s){return s});return o.reduce(function(s,l,u){var c=s[l];if(!c)throw new Error('Missing module "'+l+'" for path "'+r+'".');return u===o.length-1?c:c._children},r==="root"?a:a.root._children)}function canThrow(a){try{return a()}catch(r){return r}}var Module=function(r,o){this.runtime=o,this._children=Object.create(null),this._rawModule=r;var s=r.state;this.state=(typeof s=="function"?s():s)||{}},prototypeAccessors$1={namespaced:{configurable:!0}};prototypeAccessors$1.namespaced.get=function(){return!!this._rawModule.namespaced},Module.prototype.addChild=function(r,o){this._children[r]=o},Module.prototype.removeChild=function(r){delete this._children[r]},Module.prototype.getChild=function(r){return this._children[r]},Module.prototype.hasChild=function(r){return r in this._children},Module.prototype.update=function(r){this._rawModule.namespaced=r.namespaced,r.actions&&(this._rawModule.actions=r.actions),r.mutations&&(this._rawModule.mutations=r.mutations),r.getters&&(this._rawModule.getters=r.getters)},Module.prototype.forEachChild=function(r){forEachValue(this._children,r)},Module.prototype.forEachGetter=function(r){this._rawModule.getters&&forEachValue(this._rawModule.getters,r)},Module.prototype.forEachAction=function(r){this._rawModule.actions&&forEachValue(this._rawModule.actions,r)},Module.prototype.forEachMutation=function(r){this._rawModule.mutations&&forEachValue(this._rawModule.mutations,r)},Object.defineProperties(Module.prototype,prototypeAccessors$1);var ModuleCollection=function(r){this.register([],r,!1)};ModuleCollection.prototype.get=function(r){return r.reduce(function(o,s){return o.getChild(s)},this.root)},ModuleCollection.prototype.getNamespace=function(r){var o=this.root;return r.reduce(function(s,l){return o=o.getChild(l),s+(o.namespaced?l+"/":"")},"")},ModuleCollection.prototype.update=function(r){update$1([],this.root,r)},ModuleCollection.prototype.register=function(r,o,s){var l=this;s===void 0&&(s=!0),assertRawModule(r,o);var u=new Module(o,s);if(r.length===0)this.root=u;else{var c=this.get(r.slice(0,-1));c.addChild(r[r.length-1],u)}o.modules&&forEachValue(o.modules,function(d,f){l.register(r.concat(f),d,s)})},ModuleCollection.prototype.unregister=function(r){var o=this.get(r.slice(0,-1)),s=r[r.length-1],l=o.getChild(s);if(!l){console.warn("[vuex] trying to unregister module '"+s+"', which is not registered");return}!l.runtime||o.removeChild(s)},ModuleCollection.prototype.isRegistered=function(r){var o=this.get(r.slice(0,-1)),s=r[r.length-1];return o?o.hasChild(s):!1};function update$1(a,r,o){if(assertRawModule(a,o),r.update(o),o.modules)for(var s in o.modules){if(!r.getChild(s)){console.warn("[vuex] trying to add a new module '"+s+"' on hot reloading, manual reload is needed");return}update$1(a.concat(s),r.getChild(s),o.modules[s])}}var functionAssert={assert:function(a){return typeof a=="function"},expected:"function"},objectAssert={assert:function(a){return typeof a=="function"||typeof a=="object"&&typeof a.handler=="function"},expected:'function or object with "handler" function'},assertTypes={getters:functionAssert,mutations:functionAssert,actions:objectAssert};function assertRawModule(a,r){Object.keys(assertTypes).forEach(function(o){if(!!r[o]){var s=assertTypes[o];forEachValue(r[o],function(l,u){assert$1(s.assert(l),makeAssertionMessage(a,o,u,l,s.expected))})}})}function makeAssertionMessage(a,r,o,s,l){var u=r+" should be "+l+' but "'+r+"."+o+'"';return a.length>0&&(u+=' in module "'+a.join(".")+'"'),u+=" is "+JSON.stringify(s)+".",u}function createStore(a){return new Store(a)}var Store=function a(r){var o=this;r===void 0&&(r={}),assert$1(typeof Promise!="undefined","vuex requires a Promise polyfill in this browser."),assert$1(this instanceof a,"store must be called with the new operator.");var s=r.plugins;s===void 0&&(s=[]);var l=r.strict;l===void 0&&(l=!1);var u=r.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ModuleCollection(r),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=u;var c=this,d=this,f=d.dispatch,h=d.commit;this.dispatch=function(g,y){return f.call(c,g,y)},this.commit=function(g,y,$){return h.call(c,g,y,$)},this.strict=l;var p=this._modules.root.state;installModule(this,p,[],this._modules.root),resetStoreState(this,p),s.forEach(function(v){return v(o)})},prototypeAccessors={state:{configurable:!0}};Store.prototype.install=function(r,o){r.provide(o||storeKey,this),r.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:!0;s&&addDevtools$1(r,this)},prototypeAccessors.state.get=function(){return this._state.data},prototypeAccessors.state.set=function(a){assert$1(!1,"use store.replaceState() to explicit replace store state.")},Store.prototype.commit=function(r,o,s){var l=this,u=unifyObjectStyle(r,o,s),c=u.type,d=u.payload,f=u.options,h={type:c,payload:d},p=this._mutations[c];if(!p){console.error("[vuex] unknown mutation type: "+c);return}this._withCommit(function(){p.forEach(function(g){g(d)})}),this._subscribers.slice().forEach(function(v){return v(h,l.state)}),f&&f.silent&&console.warn("[vuex] mutation type: "+c+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Store.prototype.dispatch=function(r,o){var s=this,l=unifyObjectStyle(r,o),u=l.type,c=l.payload,d={type:u,payload:c},f=this._actions[u];if(!f){console.error("[vuex] unknown action type: "+u);return}try{this._actionSubscribers.slice().filter(function(p){return p.before}).forEach(function(p){return p.before(d,s.state)})}catch(p){console.warn("[vuex] error in before action subscribers: "),console.error(p)}var h=f.length>1?Promise.all(f.map(function(p){return p(c)})):f[0](c);return new Promise(function(p,v){h.then(function(g){try{s._actionSubscribers.filter(function(y){return y.after}).forEach(function(y){return y.after(d,s.state)})}catch(y){console.warn("[vuex] error in after action subscribers: "),console.error(y)}p(g)},function(g){try{s._actionSubscribers.filter(function(y){return y.error}).forEach(function(y){return y.error(d,s.state,g)})}catch(y){console.warn("[vuex] error in error action subscribers: "),console.error(y)}v(g)})})},Store.prototype.subscribe=function(r,o){return genericSubscribe(r,this._subscribers,o)},Store.prototype.subscribeAction=function(r,o){var s=typeof r=="function"?{before:r}:r;return genericSubscribe(s,this._actionSubscribers,o)},Store.prototype.watch=function(r,o,s){var l=this;return assert$1(typeof r=="function","store.watch only accepts a function."),require$$0.watch(function(){return r(l.state,l.getters)},o,Object.assign({},s))},Store.prototype.replaceState=function(r){var o=this;this._withCommit(function(){o._state.data=r})},Store.prototype.registerModule=function(r,o,s){s===void 0&&(s={}),typeof r=="string"&&(r=[r]),assert$1(Array.isArray(r),"module path must be a string or an Array."),assert$1(r.length>0,"cannot register the root module by using registerModule."),this._modules.register(r,o),installModule(this,this.state,r,this._modules.get(r),s.preserveState),resetStoreState(this,this.state)},Store.prototype.unregisterModule=function(r){var o=this;typeof r=="string"&&(r=[r]),assert$1(Array.isArray(r),"module path must be a string or an Array."),this._modules.unregister(r),this._withCommit(function(){var s=getNestedState(o.state,r.slice(0,-1));delete s[r[r.length-1]]}),resetStore(this)},Store.prototype.hasModule=function(r){return typeof r=="string"&&(r=[r]),assert$1(Array.isArray(r),"module path must be a string or an Array."),this._modules.isRegistered(r)},Store.prototype.hotUpdate=function(r){this._modules.update(r),resetStore(this,!0)},Store.prototype._withCommit=function(r){var o=this._committing;this._committing=!0,r(),this._committing=o},Object.defineProperties(Store.prototype,prototypeAccessors);var mapState=normalizeNamespace(function(a,r){var o={};return isValidMap(r)||console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),normalizeMap(r).forEach(function(s){var l=s.key,u=s.val;o[l]=function(){var d=this.$store.state,f=this.$store.getters;if(a){var h=getModuleByNamespace(this.$store,"mapState",a);if(!h)return;d=h.context.state,f=h.context.getters}return typeof u=="function"?u.call(this,d,f):d[u]},o[l].vuex=!0}),o}),mapMutations=normalizeNamespace(function(a,r){var o={};return isValidMap(r)||console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),normalizeMap(r).forEach(function(s){var l=s.key,u=s.val;o[l]=function(){for(var d=[],f=arguments.length;f--;)d[f]=arguments[f];var h=this.$store.commit;if(a){var p=getModuleByNamespace(this.$store,"mapMutations",a);if(!p)return;h=p.context.commit}return typeof u=="function"?u.apply(this,[h].concat(d)):h.apply(this.$store,[u].concat(d))}}),o}),mapGetters=normalizeNamespace(function(a,r){var o={};return isValidMap(r)||console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),normalizeMap(r).forEach(function(s){var l=s.key,u=s.val;u=a+u,o[l]=function(){if(!(a&&!getModuleByNamespace(this.$store,"mapGetters",a))){if(!(u in this.$store.getters)){console.error("[vuex] unknown getter: "+u);return}return this.$store.getters[u]}},o[l].vuex=!0}),o}),mapActions=normalizeNamespace(function(a,r){var o={};return isValidMap(r)||console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),normalizeMap(r).forEach(function(s){var l=s.key,u=s.val;o[l]=function(){for(var d=[],f=arguments.length;f--;)d[f]=arguments[f];var h=this.$store.dispatch;if(a){var p=getModuleByNamespace(this.$store,"mapActions",a);if(!p)return;h=p.context.dispatch}return typeof u=="function"?u.apply(this,[h].concat(d)):h.apply(this.$store,[u].concat(d))}}),o});function normalizeMap(a){return isValidMap(a)?Array.isArray(a)?a.map(function(r){return{key:r,val:r}}):Object.keys(a).map(function(r){return{key:r,val:a[r]}}):[]}function isValidMap(a){return Array.isArray(a)||isObject$6(a)}function normalizeNamespace(a){return function(r,o){return typeof r!="string"?(o=r,r=""):r.charAt(r.length-1)!=="/"&&(r+="/"),a(r,o)}}function getModuleByNamespace(a,r,o){var s=a._modulesNamespaceMap[o];return s||console.error("[vuex] module namespace not found in "+r+"(): "+o),s}/*! js-cookie v3.0.1 | MIT */function assign$2(a){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var s in o)a[s]=o[s]}return a}var defaultConverter={read:function(a){return a[0]==='"'&&(a=a.slice(1,-1)),a.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(a){return encodeURIComponent(a).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init$4(a,r){function o(l,u,c){if(typeof document!="undefined"){c=assign$2({},r,c),typeof c.expires=="number"&&(c.expires=new Date(Date.now()+c.expires*864e5)),c.expires&&(c.expires=c.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var f in c)!c[f]||(d+="; "+f,c[f]!==!0&&(d+="="+c[f].split(";")[0]));return document.cookie=l+"="+a.write(u,l)+d}}function s(l){if(!(typeof document=="undefined"||arguments.length&&!l)){for(var u=document.cookie?document.cookie.split("; "):[],c={},d=0;d<u.length;d++){var f=u[d].split("="),h=f.slice(1).join("=");try{var p=decodeURIComponent(f[0]);if(c[p]=a.read(h,p),l===p)break}catch{}}return l?c[l]:c}}return Object.create({set:o,get:s,remove:function(l,u){o(l,"",assign$2({},u,{expires:-1}))},withAttributes:function(l){return init$4(this.converter,assign$2({},this.attributes,l))},withConverter:function(l){return init$4(assign$2({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(a)}})}var api=init$4(defaultConverter,{path:"/"}),commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function getAugmentedNamespace(a){if(a.__esModule)return a;var r=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(a).forEach(function(o){var s=Object.getOwnPropertyDescriptor(a,o);Object.defineProperty(r,o,s.get?s:{enumerable:!0,get:function(){return a[o]}})}),r}var lodash$1={exports:{}};/**
5
+ */var storeKey="store";function forEachValue(a,r){Object.keys(a).forEach(function(o){return r(a[o],o)})}function isObject$6(a){return a!==null&&typeof a=="object"}function isPromise$5(a){return a&&typeof a.then=="function"}function assert$1(a,r){if(!a)throw new Error("[vuex] "+r)}function partial(a,r){return function(){return a(r)}}function genericSubscribe(a,r,o){return r.indexOf(a)<0&&(o&&o.prepend?r.unshift(a):r.push(a)),function(){var s=r.indexOf(a);s>-1&&r.splice(s,1)}}function resetStore(a,r){a._actions=Object.create(null),a._mutations=Object.create(null),a._wrappedGetters=Object.create(null),a._modulesNamespaceMap=Object.create(null);var o=a.state;installModule(a,o,[],a._modules.root,!0),resetStoreState(a,o,r)}function resetStoreState(a,r,o){var s=a._state,l=a._scope;a.getters={},a._makeLocalGettersCache=Object.create(null);var u=a._wrappedGetters,c={},d={},f=require$$0.effectScope(!0);f.run(function(){forEachValue(u,function(h,p){c[p]=partial(h,a),d[p]=require$$0.computed(function(){return c[p]()}),Object.defineProperty(a.getters,p,{get:function(){return d[p].value},enumerable:!0})})}),a._state=require$$0.reactive({data:r}),a._scope=f,a.strict&&enableStrictMode(a),s&&o&&a._withCommit(function(){s.data=null}),l&&l.stop()}function installModule(a,r,o,s,l){var u=!o.length,c=a._modules.getNamespace(o);if(s.namespaced&&(a._modulesNamespaceMap[c]&&console.error("[vuex] duplicate namespace "+c+" for the namespaced module "+o.join("/")),a._modulesNamespaceMap[c]=s),!u&&!l){var d=getNestedState(r,o.slice(0,-1)),f=o[o.length-1];a._withCommit(function(){f in d&&console.warn('[vuex] state field "'+f+'" was overridden by a module with the same name at "'+o.join(".")+'"'),d[f]=s.state})}var h=s.context=makeLocalContext(a,c,o);s.forEachMutation(function(p,v){var g=c+v;registerMutation(a,g,p,h)}),s.forEachAction(function(p,v){var g=p.root?v:c+v,y=p.handler||p;registerAction$1(a,g,y,h)}),s.forEachGetter(function(p,v){var g=c+v;registerGetter(a,g,p,h)}),s.forEachChild(function(p,v){installModule(a,r,o.concat(v),p,l)})}function makeLocalContext(a,r,o){var s=r==="",l={dispatch:s?a.dispatch:function(u,c,d){var f=unifyObjectStyle(u,c,d),h=f.payload,p=f.options,v=f.type;if((!p||!p.root)&&(v=r+v,!a._actions[v])){console.error("[vuex] unknown local action type: "+f.type+", global type: "+v);return}return a.dispatch(v,h)},commit:s?a.commit:function(u,c,d){var f=unifyObjectStyle(u,c,d),h=f.payload,p=f.options,v=f.type;if((!p||!p.root)&&(v=r+v,!a._mutations[v])){console.error("[vuex] unknown local mutation type: "+f.type+", global type: "+v);return}a.commit(v,h,p)}};return Object.defineProperties(l,{getters:{get:s?function(){return a.getters}:function(){return makeLocalGetters(a,r)}},state:{get:function(){return getNestedState(a.state,o)}}}),l}function makeLocalGetters(a,r){if(!a._makeLocalGettersCache[r]){var o={},s=r.length;Object.keys(a.getters).forEach(function(l){if(l.slice(0,s)===r){var u=l.slice(s);Object.defineProperty(o,u,{get:function(){return a.getters[l]},enumerable:!0})}}),a._makeLocalGettersCache[r]=o}return a._makeLocalGettersCache[r]}function registerMutation(a,r,o,s){var l=a._mutations[r]||(a._mutations[r]=[]);l.push(function(c){o.call(a,s.state,c)})}function registerAction$1(a,r,o,s){var l=a._actions[r]||(a._actions[r]=[]);l.push(function(c){var d=o.call(a,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:a.getters,rootState:a.state},c);return isPromise$5(d)||(d=Promise.resolve(d)),a._devtoolHook?d.catch(function(f){throw a._devtoolHook.emit("vuex:error",f),f}):d})}function registerGetter(a,r,o,s){if(a._wrappedGetters[r]){console.error("[vuex] duplicate getter key: "+r);return}a._wrappedGetters[r]=function(u){return o(s.state,s.getters,u.state,u.getters)}}function enableStrictMode(a){require$$0.watch(function(){return a._state.data},function(){assert$1(a._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function getNestedState(a,r){return r.reduce(function(o,s){return o[s]},a)}function unifyObjectStyle(a,r,o){return isObject$6(a)&&a.type&&(o=r,r=a,a=a.type),assert$1(typeof a=="string","expects string as the type, but found "+typeof a+"."),{type:a,payload:r,options:o}}var LABEL_VUEX_BINDINGS="vuex bindings",MUTATIONS_LAYER_ID="vuex:mutations",ACTIONS_LAYER_ID="vuex:actions",INSPECTOR_ID="vuex",actionId=0;function addDevtools$1(a,r){setupDevtoolsPlugin({id:"org.vuejs.vuex",app:a,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[LABEL_VUEX_BINDINGS]},function(o){o.addTimelineLayer({id:MUTATIONS_LAYER_ID,label:"Vuex Mutations",color:COLOR_LIME_500}),o.addTimelineLayer({id:ACTIONS_LAYER_ID,label:"Vuex Actions",color:COLOR_LIME_500}),o.addInspector({id:INSPECTOR_ID,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),o.on.getInspectorTree(function(s){if(s.app===a&&s.inspectorId===INSPECTOR_ID)if(s.filter){var l=[];flattenStoreForInspectorTree(l,r._modules.root,s.filter,""),s.rootNodes=l}else s.rootNodes=[formatStoreForInspectorTree(r._modules.root,"")]}),o.on.getInspectorState(function(s){if(s.app===a&&s.inspectorId===INSPECTOR_ID){var l=s.nodeId;makeLocalGetters(r,l),s.state=formatStoreForInspectorState(getStoreModule(r._modules,l),l==="root"?r.getters:r._makeLocalGettersCache,l)}}),o.on.editInspectorState(function(s){if(s.app===a&&s.inspectorId===INSPECTOR_ID){var l=s.nodeId,u=s.path;l!=="root"&&(u=l.split("/").filter(Boolean).concat(u)),r._withCommit(function(){s.set(r._state.data,u,s.state.value)})}}),r.subscribe(function(s,l){var u={};s.payload&&(u.payload=s.payload),u.state=l,o.notifyComponentUpdate(),o.sendInspectorTree(INSPECTOR_ID),o.sendInspectorState(INSPECTOR_ID),o.addTimelineEvent({layerId:MUTATIONS_LAYER_ID,event:{time:Date.now(),title:s.type,data:u}})}),r.subscribeAction({before:function(s,l){var u={};s.payload&&(u.payload=s.payload),s._id=actionId++,s._time=Date.now(),u.state=l,o.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:u}})},after:function(s,l){var u={},c=Date.now()-s._time;u.duration={_custom:{type:"duration",display:c+"ms",tooltip:"Action duration",value:c}},s.payload&&(u.payload=s.payload),u.state=l,o.addTimelineEvent({layerId:ACTIONS_LAYER_ID,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:u}})}})})}var COLOR_LIME_500=8702998,COLOR_DARK=6710886,COLOR_WHITE=16777215,TAG_NAMESPACED={label:"namespaced",textColor:COLOR_WHITE,backgroundColor:COLOR_DARK};function extractNameFromPath(a){return a&&a!=="root"?a.split("/").slice(-2,-1)[0]:"Root"}function formatStoreForInspectorTree(a,r){return{id:r||"root",label:extractNameFromPath(r),tags:a.namespaced?[TAG_NAMESPACED]:[],children:Object.keys(a._children).map(function(o){return formatStoreForInspectorTree(a._children[o],r+o+"/")})}}function flattenStoreForInspectorTree(a,r,o,s){s.includes(o)&&a.push({id:s||"root",label:s.endsWith("/")?s.slice(0,s.length-1):s||"Root",tags:r.namespaced?[TAG_NAMESPACED]:[]}),Object.keys(r._children).forEach(function(l){flattenStoreForInspectorTree(a,r._children[l],o,s+l+"/")})}function formatStoreForInspectorState(a,r,o){r=o==="root"?r:r[o];var s=Object.keys(r),l={state:Object.keys(a.state).map(function(c){return{key:c,editable:!0,value:a.state[c]}})};if(s.length){var u=transformPathsToObjectTree(r);l.getters=Object.keys(u).map(function(c){return{key:c.endsWith("/")?extractNameFromPath(c):c,editable:!1,value:canThrow(function(){return u[c]})}})}return l}function transformPathsToObjectTree(a){var r={};return Object.keys(a).forEach(function(o){var s=o.split("/");if(s.length>1){var l=r,u=s.pop();s.forEach(function(c){l[c]||(l[c]={_custom:{value:{},display:c,tooltip:"Module",abstract:!0}}),l=l[c]._custom.value}),l[u]=canThrow(function(){return a[o]})}else r[o]=canThrow(function(){return a[o]})}),r}function getStoreModule(a,r){var o=r.split("/").filter(function(s){return s});return o.reduce(function(s,l,u){var c=s[l];if(!c)throw new Error('Missing module "'+l+'" for path "'+r+'".');return u===o.length-1?c:c._children},r==="root"?a:a.root._children)}function canThrow(a){try{return a()}catch(r){return r}}var Module=function(r,o){this.runtime=o,this._children=Object.create(null),this._rawModule=r;var s=r.state;this.state=(typeof s=="function"?s():s)||{}},prototypeAccessors$1={namespaced:{configurable:!0}};prototypeAccessors$1.namespaced.get=function(){return!!this._rawModule.namespaced},Module.prototype.addChild=function(r,o){this._children[r]=o},Module.prototype.removeChild=function(r){delete this._children[r]},Module.prototype.getChild=function(r){return this._children[r]},Module.prototype.hasChild=function(r){return r in this._children},Module.prototype.update=function(r){this._rawModule.namespaced=r.namespaced,r.actions&&(this._rawModule.actions=r.actions),r.mutations&&(this._rawModule.mutations=r.mutations),r.getters&&(this._rawModule.getters=r.getters)},Module.prototype.forEachChild=function(r){forEachValue(this._children,r)},Module.prototype.forEachGetter=function(r){this._rawModule.getters&&forEachValue(this._rawModule.getters,r)},Module.prototype.forEachAction=function(r){this._rawModule.actions&&forEachValue(this._rawModule.actions,r)},Module.prototype.forEachMutation=function(r){this._rawModule.mutations&&forEachValue(this._rawModule.mutations,r)},Object.defineProperties(Module.prototype,prototypeAccessors$1);var ModuleCollection=function(r){this.register([],r,!1)};ModuleCollection.prototype.get=function(r){return r.reduce(function(o,s){return o.getChild(s)},this.root)},ModuleCollection.prototype.getNamespace=function(r){var o=this.root;return r.reduce(function(s,l){return o=o.getChild(l),s+(o.namespaced?l+"/":"")},"")},ModuleCollection.prototype.update=function(r){update$1([],this.root,r)},ModuleCollection.prototype.register=function(r,o,s){var l=this;s===void 0&&(s=!0),assertRawModule(r,o);var u=new Module(o,s);if(r.length===0)this.root=u;else{var c=this.get(r.slice(0,-1));c.addChild(r[r.length-1],u)}o.modules&&forEachValue(o.modules,function(d,f){l.register(r.concat(f),d,s)})},ModuleCollection.prototype.unregister=function(r){var o=this.get(r.slice(0,-1)),s=r[r.length-1],l=o.getChild(s);if(!l){console.warn("[vuex] trying to unregister module '"+s+"', which is not registered");return}!l.runtime||o.removeChild(s)},ModuleCollection.prototype.isRegistered=function(r){var o=this.get(r.slice(0,-1)),s=r[r.length-1];return o?o.hasChild(s):!1};function update$1(a,r,o){if(assertRawModule(a,o),r.update(o),o.modules)for(var s in o.modules){if(!r.getChild(s)){console.warn("[vuex] trying to add a new module '"+s+"' on hot reloading, manual reload is needed");return}update$1(a.concat(s),r.getChild(s),o.modules[s])}}var functionAssert={assert:function(a){return typeof a=="function"},expected:"function"},objectAssert={assert:function(a){return typeof a=="function"||typeof a=="object"&&typeof a.handler=="function"},expected:'function or object with "handler" function'},assertTypes={getters:functionAssert,mutations:functionAssert,actions:objectAssert};function assertRawModule(a,r){Object.keys(assertTypes).forEach(function(o){if(!!r[o]){var s=assertTypes[o];forEachValue(r[o],function(l,u){assert$1(s.assert(l),makeAssertionMessage(a,o,u,l,s.expected))})}})}function makeAssertionMessage(a,r,o,s,l){var u=r+" should be "+l+' but "'+r+"."+o+'"';return a.length>0&&(u+=' in module "'+a.join(".")+'"'),u+=" is "+JSON.stringify(s)+".",u}function createStore(a){return new Store(a)}var Store=function a(r){var o=this;r===void 0&&(r={}),assert$1(typeof Promise!="undefined","vuex requires a Promise polyfill in this browser."),assert$1(this instanceof a,"store must be called with the new operator.");var s=r.plugins;s===void 0&&(s=[]);var l=r.strict;l===void 0&&(l=!1);var u=r.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ModuleCollection(r),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=u;var c=this,d=this,f=d.dispatch,h=d.commit;this.dispatch=function(g,y){return f.call(c,g,y)},this.commit=function(g,y,$){return h.call(c,g,y,$)},this.strict=l;var p=this._modules.root.state;installModule(this,p,[],this._modules.root),resetStoreState(this,p),s.forEach(function(v){return v(o)})},prototypeAccessors={state:{configurable:!0}};Store.prototype.install=function(r,o){r.provide(o||storeKey,this),r.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:!0;s&&addDevtools$1(r,this)},prototypeAccessors.state.get=function(){return this._state.data},prototypeAccessors.state.set=function(a){assert$1(!1,"use store.replaceState() to explicit replace store state.")},Store.prototype.commit=function(r,o,s){var l=this,u=unifyObjectStyle(r,o,s),c=u.type,d=u.payload,f=u.options,h={type:c,payload:d},p=this._mutations[c];if(!p){console.error("[vuex] unknown mutation type: "+c);return}this._withCommit(function(){p.forEach(function(g){g(d)})}),this._subscribers.slice().forEach(function(v){return v(h,l.state)}),f&&f.silent&&console.warn("[vuex] mutation type: "+c+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Store.prototype.dispatch=function(r,o){var s=this,l=unifyObjectStyle(r,o),u=l.type,c=l.payload,d={type:u,payload:c},f=this._actions[u];if(!f){console.error("[vuex] unknown action type: "+u);return}try{this._actionSubscribers.slice().filter(function(p){return p.before}).forEach(function(p){return p.before(d,s.state)})}catch(p){console.warn("[vuex] error in before action subscribers: "),console.error(p)}var h=f.length>1?Promise.all(f.map(function(p){return p(c)})):f[0](c);return new Promise(function(p,v){h.then(function(g){try{s._actionSubscribers.filter(function(y){return y.after}).forEach(function(y){return y.after(d,s.state)})}catch(y){console.warn("[vuex] error in after action subscribers: "),console.error(y)}p(g)},function(g){try{s._actionSubscribers.filter(function(y){return y.error}).forEach(function(y){return y.error(d,s.state,g)})}catch(y){console.warn("[vuex] error in error action subscribers: "),console.error(y)}v(g)})})},Store.prototype.subscribe=function(r,o){return genericSubscribe(r,this._subscribers,o)},Store.prototype.subscribeAction=function(r,o){var s=typeof r=="function"?{before:r}:r;return genericSubscribe(s,this._actionSubscribers,o)},Store.prototype.watch=function(r,o,s){var l=this;return assert$1(typeof r=="function","store.watch only accepts a function."),require$$0.watch(function(){return r(l.state,l.getters)},o,Object.assign({},s))},Store.prototype.replaceState=function(r){var o=this;this._withCommit(function(){o._state.data=r})},Store.prototype.registerModule=function(r,o,s){s===void 0&&(s={}),typeof r=="string"&&(r=[r]),assert$1(Array.isArray(r),"module path must be a string or an Array."),assert$1(r.length>0,"cannot register the root module by using registerModule."),this._modules.register(r,o),installModule(this,this.state,r,this._modules.get(r),s.preserveState),resetStoreState(this,this.state)},Store.prototype.unregisterModule=function(r){var o=this;typeof r=="string"&&(r=[r]),assert$1(Array.isArray(r),"module path must be a string or an Array."),this._modules.unregister(r),this._withCommit(function(){var s=getNestedState(o.state,r.slice(0,-1));delete s[r[r.length-1]]}),resetStore(this)},Store.prototype.hasModule=function(r){return typeof r=="string"&&(r=[r]),assert$1(Array.isArray(r),"module path must be a string or an Array."),this._modules.isRegistered(r)},Store.prototype.hotUpdate=function(r){this._modules.update(r),resetStore(this,!0)},Store.prototype._withCommit=function(r){var o=this._committing;this._committing=!0,r(),this._committing=o},Object.defineProperties(Store.prototype,prototypeAccessors);var mapState=normalizeNamespace(function(a,r){var o={};return isValidMap(r)||console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),normalizeMap(r).forEach(function(s){var l=s.key,u=s.val;o[l]=function(){var d=this.$store.state,f=this.$store.getters;if(a){var h=getModuleByNamespace(this.$store,"mapState",a);if(!h)return;d=h.context.state,f=h.context.getters}return typeof u=="function"?u.call(this,d,f):d[u]},o[l].vuex=!0}),o}),mapMutations=normalizeNamespace(function(a,r){var o={};return isValidMap(r)||console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),normalizeMap(r).forEach(function(s){var l=s.key,u=s.val;o[l]=function(){for(var d=[],f=arguments.length;f--;)d[f]=arguments[f];var h=this.$store.commit;if(a){var p=getModuleByNamespace(this.$store,"mapMutations",a);if(!p)return;h=p.context.commit}return typeof u=="function"?u.apply(this,[h].concat(d)):h.apply(this.$store,[u].concat(d))}}),o}),mapGetters=normalizeNamespace(function(a,r){var o={};return isValidMap(r)||console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),normalizeMap(r).forEach(function(s){var l=s.key,u=s.val;u=a+u,o[l]=function(){if(!(a&&!getModuleByNamespace(this.$store,"mapGetters",a))){if(!(u in this.$store.getters)){console.error("[vuex] unknown getter: "+u);return}return this.$store.getters[u]}},o[l].vuex=!0}),o}),mapActions=normalizeNamespace(function(a,r){var o={};return isValidMap(r)||console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),normalizeMap(r).forEach(function(s){var l=s.key,u=s.val;o[l]=function(){for(var d=[],f=arguments.length;f--;)d[f]=arguments[f];var h=this.$store.dispatch;if(a){var p=getModuleByNamespace(this.$store,"mapActions",a);if(!p)return;h=p.context.dispatch}return typeof u=="function"?u.apply(this,[h].concat(d)):h.apply(this.$store,[u].concat(d))}}),o});function normalizeMap(a){return isValidMap(a)?Array.isArray(a)?a.map(function(r){return{key:r,val:r}}):Object.keys(a).map(function(r){return{key:r,val:a[r]}}):[]}function isValidMap(a){return Array.isArray(a)||isObject$6(a)}function normalizeNamespace(a){return function(r,o){return typeof r!="string"?(o=r,r=""):r.charAt(r.length-1)!=="/"&&(r+="/"),a(r,o)}}function getModuleByNamespace(a,r,o){var s=a._modulesNamespaceMap[o];return s||console.error("[vuex] module namespace not found in "+r+"(): "+o),s}/*! js-cookie v3.0.1 | MIT */function assign$2(a){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var s in o)a[s]=o[s]}return a}var defaultConverter={read:function(a){return a[0]==='"'&&(a=a.slice(1,-1)),a.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(a){return encodeURIComponent(a).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init$4(a,r){function o(l,u,c){if(typeof document!="undefined"){c=assign$2({},r,c),typeof c.expires=="number"&&(c.expires=new Date(Date.now()+c.expires*864e5)),c.expires&&(c.expires=c.expires.toUTCString()),l=encodeURIComponent(l).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var f in c)!c[f]||(d+="; "+f,c[f]!==!0&&(d+="="+c[f].split(";")[0]));return document.cookie=l+"="+a.write(u,l)+d}}function s(l){if(!(typeof document=="undefined"||arguments.length&&!l)){for(var u=document.cookie?document.cookie.split("; "):[],c={},d=0;d<u.length;d++){var f=u[d].split("="),h=f.slice(1).join("=");try{var p=decodeURIComponent(f[0]);if(c[p]=a.read(h,p),l===p)break}catch{}}return l?c[l]:c}}return Object.create({set:o,get:s,remove:function(l,u){o(l,"",assign$2({},u,{expires:-1}))},withAttributes:function(l){return init$4(this.converter,assign$2({},this.attributes,l))},withConverter:function(l){return init$4(assign$2({},this.converter,l),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(a)}})}var api=init$4(defaultConverter,{path:"/"});const Setting={info:{},appID:"app",titleSuffix:"Admin Plus",routerMode:"history",showProgressBar:!0,cookiesExpires:1,i18n:{default:"zh-CN",auto:!1,refresh:!1},lodop:{name:"\u5357\u4EAC\u6469\u8D6B\u4FE1\u606F\u6280\u672F\u6709\u9650\u516C\u53F8",key:"58C4DF8932E17DEBE409D1E7F683CAFE"},menuSideWidth:256,headerHeight:64,menuSideCollapseWidth:80,layout:{siderTheme:"dark",headerTheme:"light",headerStick:!1,tabs:!1,showTabsIcon:!0,tabsFix:!0,tabsReload:!1,tabsOrder:!0,siderFix:!0,headerFix:!0,headerHide:!0,headerMenu:!1,menuAccordion:!0,showSiderCollapse:!0,menuCollapse:!1,menuSiderReload:!1,menuHeaderReload:!1,showCollapseMenuTitle:!1,showReload:!1,showSearch:!1,showNotice:!1,showFullscreen:!0,showMobileLogo:!0,showBreadcrumb:!0,showBreadcrumbIcon:!1,showLog:!1,showI18n:!1,enableSetting:!1,logoutConfirm:!0,autoFixRatio:!0,maskClosable:!0,draggable:!0,alertStyle:"SweetAlert",filterWidth:125},page:{opened:[],loadOpenedTabs:!0},waterMark:{show:!1,text:"MOOHO",options:{}},sameRouteForceUpdate:!1},copyTo=(a,r)=>{for(let o in a)typeof a[o]=="object"?(r[o]==null&&(r[o]={}),copyTo(a[o],r[o])):r[o]=a[o]};let localSetting=window.setting;localSetting&&copyTo(localSetting,Setting);const cookies$2={};cookies$2.set=function(a="default",r="",o={}){let s={};Setting.cookiesExpires!==0&&(s.expires=Setting.cookiesExpires),Object.assign(s,o),api.set(`admin-plus-${Setting.appID}-${a}`,r,s)},cookies$2.get=function(a="default"){return api.get(`admin-plus-${Setting.appID}-${a}`)},cookies$2.getAll=function(){return api.get()},cookies$2.remove=function(a="default"){return api.remove(`admin-plus-${Setting.appID}-${a}`)};var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function getAugmentedNamespace(a){if(a.__esModule)return a;var r=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(a).forEach(function(o){var s=Object.getOwnPropertyDescriptor(a,o);Object.defineProperty(r,o,s.get?s:{enumerable:!0,get:function(){return a[o]}})}),r}var lodash$1={exports:{}};/**
6
6
  * @license
7
7
  * Lodash <https://lodash.com/>
8
8
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
@@ -28,7 +28,7 @@ __p += '`),Je&&(be+=`' +
28
28
  function print() { __p += __j.call(arguments, '') }
29
29
  `:`;
30
30
  `)+be+`return __p
31
- }`;var ze=qs(function(){return at(j,Me+"return "+be).apply(o,K)});if(ze.source=be,Qn(ze))throw ze;return ze}function $p(S){return nt(S).toLowerCase()}function _p(S){return nt(S).toUpperCase()}function Sp(S,T,I){if(S=nt(S),S&&(I||T===o))return Ui(S);if(!S||!(T=Ot(T)))return S;var V=Zt(S),G=Zt(T),j=zi(V,G),K=Hi(V,G)+1;return yr(V,j,K).join("")}function Cp(S,T,I){if(S=nt(S),S&&(I||T===o))return S.slice(0,ji(S)+1);if(!S||!(T=Ot(T)))return S;var V=Zt(S),G=Hi(V,Zt(T))+1;return yr(V,0,G).join("")}function bp(S,T,I){if(S=nt(S),S&&(I||T===o))return S.replace(Ka,"");if(!S||!(T=Ot(T)))return S;var V=Zt(S),G=zi(V,Zt(T));return yr(V,G).join("")}function wp(S,T){var I=M,V=R;if(pt(T)){var G="separator"in T?T.separator:G;I="length"in T?Ue(T.length):I,V="omission"in T?Ot(T.omission):V}S=nt(S);var j=S.length;if(Mr(S)){var K=Zt(S);j=K.length}if(I>=j)return S;var Q=I-Nr(V);if(Q<1)return V;var oe=K?yr(K,0,Q).join(""):S.slice(0,Q);if(G===o)return oe+V;if(K&&(Q+=oe.length-Q),ei(G)){if(S.slice(Q).search(G)){var ye,$e=oe;for(G.global||(G=vn(G.source,nt(di.exec(G))+"g")),G.lastIndex=0;ye=G.exec($e);)var be=ye.index;oe=oe.slice(0,be===o?Q:be)}}else if(S.indexOf(Ot(G),Q)!=Q){var Ee=oe.lastIndexOf(G);Ee>-1&&(oe=oe.slice(0,Ee))}return oe+V}function Tp(S){return S=nt(S),S&&wt.test(S)?S.replace(We,Jl):S}var xp=Br(function(S,T,I){return S+(I?" ":"")+T.toUpperCase()}),ai=Lo("toUpperCase");function ks(S,T,I){return S=nt(S),T=I?o:T,T===o?jl(S)?tu(S):Vl(S):S.match(T)||[]}var qs=He(function(S,T){try{return qt(S,o,T)}catch(I){return Qn(I)?I:new Fe(I)}}),Dp=or(function(S,T){return Gt(T,function(I){I=tr(I),nr(S,I,Kn(S[I],S))}),S});function Ep(S){var T=S==null?0:S.length,I=qe();return S=T?ft(S,function(V){if(typeof V[1]!="function")throw new Ut(c);return[I(V[0]),V[1]]}):[],He(function(V){for(var G=-1;++G<T;){var j=S[G];if(qt(j[0],this,V))return qt(j[1],this,V)}})}function Ap(S){return Ju(Ht(S,v))}function ni(S){return function(){return S}}function Ip(S,T){return S==null||S!==S?T:S}var Pp=Vo(),Mp=Vo(!0);function kt(S){return S}function ii(S){return po(typeof S=="function"?S:Ht(S,v))}function Np(S){return vo(Ht(S,v))}function kp(S,T){return go(S,Ht(T,v))}var qp=He(function(S,T){return function(I){return Qr(I,S,T)}}),Lp=He(function(S,T){return function(I){return Qr(S,I,T)}});function oi(S,T,I){var V=_t(T),G=Aa(T,V);I==null&&!(pt(T)&&(G.length||!V.length))&&(I=T,T=S,S=this,G=Aa(T,_t(T)));var j=!(pt(I)&&"chain"in I)||!!I.chain,K=lr(S);return Gt(G,function(Q){var oe=T[Q];S[Q]=oe,K&&(S.prototype[Q]=function(){var ye=this.__chain__;if(j||ye){var $e=S(this.__wrapped__),be=$e.__actions__=Pt(this.__actions__);return be.push({func:oe,args:arguments,thisArg:S}),$e.__chain__=ye,$e}return oe.apply(S,fr([this.value()],arguments))})}),S}function Op(){return Ct._===this&&(Ct._=su),this}function si(){}function Vp(S){return S=Ue(S),He(function(T){return yo(T,S)})}var Rp=Vn(ft),Bp=Vn(Vi),Fp=Vn(un);function Ls(S){return Hn(S)?cn(tr(S)):mc(S)}function Gp(S){return function(T){return S==null?o:Tr(S,T)}}var Up=Bo(),zp=Bo(!0);function li(){return[]}function ui(){return!1}function Hp(){return{}}function Wp(){return""}function jp(){return!0}function Yp(S,T){if(S=Ue(S),S<1||S>J)return[];var I=Y,V=Tt(S,Y);T=qe(T),S-=Y;for(var G=hn(V,T);++I<S;)T(I);return G}function Zp(S){return Ge(S)?ft(S,tr):Vt(S)?[S]:Pt(rs(nt(S)))}function Xp(S){var T=++iu;return nt(S)+T}var Kp=qa(function(S,T){return S+T},0),Jp=Rn("ceil"),Qp=qa(function(S,T){return S/T},1),em=Rn("floor");function tm(S){return S&&S.length?Ea(S,kt,wn):o}function rm(S,T){return S&&S.length?Ea(S,qe(T,2),wn):o}function am(S){return Fi(S,kt)}function nm(S,T){return Fi(S,qe(T,2))}function im(S){return S&&S.length?Ea(S,kt,En):o}function om(S,T){return S&&S.length?Ea(S,qe(T,2),En):o}var sm=qa(function(S,T){return S*T},1),lm=Rn("round"),um=qa(function(S,T){return S-T},0);function cm(S){return S&&S.length?fn(S,kt):0}function dm(S,T){return S&&S.length?fn(S,qe(T,2)):0}return U.after=Nf,U.ary=hs,U.assign=_h,U.assignIn=Ds,U.assignInWith=Ya,U.assignWith=Sh,U.at=Ch,U.before=ps,U.bind=Kn,U.bindAll=Dp,U.bindKey=ms,U.castArray=Hf,U.chain=cs,U.chunk=Qc,U.compact=ed,U.concat=td,U.cond=Ep,U.conforms=Ap,U.constant=ni,U.countBy=cf,U.create=bh,U.curry=vs,U.curryRight=gs,U.debounce=ys,U.defaults=wh,U.defaultsDeep=Th,U.defer=kf,U.delay=qf,U.difference=rd,U.differenceBy=ad,U.differenceWith=nd,U.drop=id,U.dropRight=od,U.dropRightWhile=sd,U.dropWhile=ld,U.fill=ud,U.filter=ff,U.flatMap=mf,U.flatMapDeep=vf,U.flatMapDepth=gf,U.flatten=os,U.flattenDeep=cd,U.flattenDepth=dd,U.flip=Lf,U.flow=Pp,U.flowRight=Mp,U.fromPairs=fd,U.functions=Mh,U.functionsIn=Nh,U.groupBy=yf,U.initial=pd,U.intersection=md,U.intersectionBy=vd,U.intersectionWith=gd,U.invert=qh,U.invertBy=Lh,U.invokeMap=_f,U.iteratee=ii,U.keyBy=Sf,U.keys=_t,U.keysIn=Nt,U.map=Ga,U.mapKeys=Vh,U.mapValues=Rh,U.matches=Np,U.matchesProperty=kp,U.memoize=za,U.merge=Bh,U.mergeWith=Es,U.method=qp,U.methodOf=Lp,U.mixin=oi,U.negate=Ha,U.nthArg=Vp,U.omit=Fh,U.omitBy=Gh,U.once=Of,U.orderBy=Cf,U.over=Rp,U.overArgs=Vf,U.overEvery=Bp,U.overSome=Fp,U.partial=Jn,U.partialRight=$s,U.partition=bf,U.pick=Uh,U.pickBy=As,U.property=Ls,U.propertyOf=Gp,U.pull=Sd,U.pullAll=ls,U.pullAllBy=Cd,U.pullAllWith=bd,U.pullAt=wd,U.range=Up,U.rangeRight=zp,U.rearg=Rf,U.reject=xf,U.remove=Td,U.rest=Bf,U.reverse=Zn,U.sampleSize=Ef,U.set=Hh,U.setWith=Wh,U.shuffle=Af,U.slice=xd,U.sortBy=Mf,U.sortedUniq=Nd,U.sortedUniqBy=kd,U.split=mp,U.spread=Ff,U.tail=qd,U.take=Ld,U.takeRight=Od,U.takeRightWhile=Vd,U.takeWhile=Rd,U.tap=ef,U.throttle=Gf,U.thru=Fa,U.toArray=ws,U.toPairs=Is,U.toPairsIn=Ps,U.toPath=Zp,U.toPlainObject=xs,U.transform=jh,U.unary=Uf,U.union=Bd,U.unionBy=Fd,U.unionWith=Gd,U.uniq=Ud,U.uniqBy=zd,U.uniqWith=Hd,U.unset=Yh,U.unzip=Xn,U.unzipWith=us,U.update=Zh,U.updateWith=Xh,U.values=Ur,U.valuesIn=Kh,U.without=Wd,U.words=ks,U.wrap=zf,U.xor=jd,U.xorBy=Yd,U.xorWith=Zd,U.zip=Xd,U.zipObject=Kd,U.zipObjectDeep=Jd,U.zipWith=Qd,U.entries=Is,U.entriesIn=Ps,U.extend=Ds,U.extendWith=Ya,oi(U,U),U.add=Kp,U.attempt=qs,U.camelCase=tp,U.capitalize=Ms,U.ceil=Jp,U.clamp=Jh,U.clone=Wf,U.cloneDeep=Yf,U.cloneDeepWith=Zf,U.cloneWith=jf,U.conformsTo=Xf,U.deburr=Ns,U.defaultTo=Ip,U.divide=Qp,U.endsWith=rp,U.eq=Kt,U.escape=ap,U.escapeRegExp=np,U.every=df,U.find=hf,U.findIndex=ns,U.findKey=xh,U.findLast=pf,U.findLastIndex=is,U.findLastKey=Dh,U.floor=em,U.forEach=ds,U.forEachRight=fs,U.forIn=Eh,U.forInRight=Ah,U.forOwn=Ih,U.forOwnRight=Ph,U.get=ti,U.gt=Kf,U.gte=Jf,U.has=kh,U.hasIn=ri,U.head=ss,U.identity=kt,U.includes=$f,U.indexOf=hd,U.inRange=Qh,U.invoke=Oh,U.isArguments=Er,U.isArray=Ge,U.isArrayBuffer=Qf,U.isArrayLike=Mt,U.isArrayLikeObject=vt,U.isBoolean=eh,U.isBuffer=$r,U.isDate=th,U.isElement=rh,U.isEmpty=ah,U.isEqual=nh,U.isEqualWith=ih,U.isError=Qn,U.isFinite=oh,U.isFunction=lr,U.isInteger=_s,U.isLength=Wa,U.isMap=Ss,U.isMatch=sh,U.isMatchWith=lh,U.isNaN=uh,U.isNative=ch,U.isNil=fh,U.isNull=dh,U.isNumber=Cs,U.isObject=pt,U.isObjectLike=mt,U.isPlainObject=ia,U.isRegExp=ei,U.isSafeInteger=hh,U.isSet=bs,U.isString=ja,U.isSymbol=Vt,U.isTypedArray=Gr,U.isUndefined=ph,U.isWeakMap=mh,U.isWeakSet=vh,U.join=yd,U.kebabCase=ip,U.last=jt,U.lastIndexOf=$d,U.lowerCase=op,U.lowerFirst=sp,U.lt=gh,U.lte=yh,U.max=tm,U.maxBy=rm,U.mean=am,U.meanBy=nm,U.min=im,U.minBy=om,U.stubArray=li,U.stubFalse=ui,U.stubObject=Hp,U.stubString=Wp,U.stubTrue=jp,U.multiply=sm,U.nth=_d,U.noConflict=Op,U.noop=si,U.now=Ua,U.pad=lp,U.padEnd=up,U.padStart=cp,U.parseInt=dp,U.random=ep,U.reduce=wf,U.reduceRight=Tf,U.repeat=fp,U.replace=hp,U.result=zh,U.round=lm,U.runInContext=ie,U.sample=Df,U.size=If,U.snakeCase=pp,U.some=Pf,U.sortedIndex=Dd,U.sortedIndexBy=Ed,U.sortedIndexOf=Ad,U.sortedLastIndex=Id,U.sortedLastIndexBy=Pd,U.sortedLastIndexOf=Md,U.startCase=vp,U.startsWith=gp,U.subtract=um,U.sum=cm,U.sumBy=dm,U.template=yp,U.times=Yp,U.toFinite=ur,U.toInteger=Ue,U.toLength=Ts,U.toLower=$p,U.toNumber=Yt,U.toSafeInteger=$h,U.toString=nt,U.toUpper=_p,U.trim=Sp,U.trimEnd=Cp,U.trimStart=bp,U.truncate=wp,U.unescape=Tp,U.uniqueId=Xp,U.upperCase=xp,U.upperFirst=ai,U.each=ds,U.eachRight=fs,U.first=ss,oi(U,function(){var S={};return Qt(U,function(T,I){it.call(U.prototype,I)||(S[I]=T)}),S}(),{chain:!1}),U.VERSION=s,Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(S){U[S].placeholder=U}),Gt(["drop","take"],function(S,T){Xe.prototype[S]=function(I){I=I===o?1:$t(Ue(I),0);var V=this.__filtered__&&!T?new Xe(this):this.clone();return V.__filtered__?V.__takeCount__=Tt(I,V.__takeCount__):V.__views__.push({size:Tt(I,Y),type:S+(V.__dir__<0?"Right":"")}),V},Xe.prototype[S+"Right"]=function(I){return this.reverse()[S](I).reverse()}}),Gt(["filter","map","takeWhile"],function(S,T){var I=T+1,V=I==q||I==B;Xe.prototype[S]=function(G){var j=this.clone();return j.__iteratees__.push({iteratee:qe(G,3),type:I}),j.__filtered__=j.__filtered__||V,j}}),Gt(["head","last"],function(S,T){var I="take"+(T?"Right":"");Xe.prototype[S]=function(){return this[I](1).value()[0]}}),Gt(["initial","tail"],function(S,T){var I="drop"+(T?"":"Right");Xe.prototype[S]=function(){return this.__filtered__?new Xe(this):this[I](1)}}),Xe.prototype.compact=function(){return this.filter(kt)},Xe.prototype.find=function(S){return this.filter(S).head()},Xe.prototype.findLast=function(S){return this.reverse().find(S)},Xe.prototype.invokeMap=He(function(S,T){return typeof S=="function"?new Xe(this):this.map(function(I){return Qr(I,S,T)})}),Xe.prototype.reject=function(S){return this.filter(Ha(qe(S)))},Xe.prototype.slice=function(S,T){S=Ue(S);var I=this;return I.__filtered__&&(S>0||T<0)?new Xe(I):(S<0?I=I.takeRight(-S):S&&(I=I.drop(S)),T!==o&&(T=Ue(T),I=T<0?I.dropRight(-T):I.take(T-S)),I)},Xe.prototype.takeRightWhile=function(S){return this.reverse().takeWhile(S).reverse()},Xe.prototype.toArray=function(){return this.take(Y)},Qt(Xe.prototype,function(S,T){var I=/^(?:filter|find|map|reject)|While$/.test(T),V=/^(?:head|last)$/.test(T),G=U[V?"take"+(T=="last"?"Right":""):T],j=V||/^find/.test(T);!G||(U.prototype[T]=function(){var K=this.__wrapped__,Q=V?[1]:arguments,oe=K instanceof Xe,ye=Q[0],$e=oe||Ge(K),be=function(je){var Je=G.apply(U,fr([je],Q));return V&&Ee?Je[0]:Je};$e&&I&&typeof ye=="function"&&ye.length!=1&&(oe=$e=!1);var Ee=this.__chain__,Me=!!this.__actions__.length,Le=j&&!Ee,ze=oe&&!Me;if(!j&&$e){K=ze?K:new Xe(this);var Oe=S.apply(K,Q);return Oe.__actions__.push({func:Fa,args:[be],thisArg:o}),new zt(Oe,Ee)}return Le&&ze?S.apply(this,Q):(Oe=this.thru(be),Le?V?Oe.value()[0]:Oe.value():Oe)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(S){var T=fa[S],I=/^(?:push|sort|unshift)$/.test(S)?"tap":"thru",V=/^(?:pop|shift)$/.test(S);U.prototype[S]=function(){var G=arguments;if(V&&!this.__chain__){var j=this.value();return T.apply(Ge(j)?j:[],G)}return this[I](function(K){return T.apply(Ge(K)?K:[],G)})}}),Qt(Xe.prototype,function(S,T){var I=U[T];if(I){var V=I.name+"";it.call(Or,V)||(Or[V]=[]),Or[V].push({name:T,func:I})}}),Or[ka(o,b).name]=[{name:"wrapper",func:o}],Xe.prototype.clone=bu,Xe.prototype.reverse=wu,Xe.prototype.value=Tu,U.prototype.at=tf,U.prototype.chain=rf,U.prototype.commit=af,U.prototype.next=nf,U.prototype.plant=sf,U.prototype.reverse=lf,U.prototype.toJSON=U.prototype.valueOf=U.prototype.value=uf,U.prototype.first=U.prototype.head,Wr&&(U.prototype[Wr]=of),U},kr=ru();_r?((_r.exports=kr)._=kr,an._=kr):Ct._=kr}).call(commonjsGlobal)})(lodash$1,lodash$1.exports);const Setting={info:{},appID:"app",titleSuffix:"Admin Plus",routerMode:"history",showProgressBar:!0,cookiesExpires:1,i18n:{default:"zh-CN",auto:!1,refresh:!1},lodop:{name:"\u5357\u4EAC\u6469\u8D6B\u4FE1\u606F\u6280\u672F\u6709\u9650\u516C\u53F8",key:"58C4DF8932E17DEBE409D1E7F683CAFE"},menuSideWidth:256,headerHeight:64,menuSideCollapseWidth:80,layout:{siderTheme:"dark",headerTheme:"light",headerStick:!1,tabs:!1,showTabsIcon:!0,tabsFix:!0,tabsReload:!1,tabsOrder:!0,siderFix:!0,headerFix:!0,headerHide:!0,headerMenu:!1,menuAccordion:!0,showSiderCollapse:!0,menuCollapse:!1,menuSiderReload:!1,menuHeaderReload:!1,showCollapseMenuTitle:!1,showReload:!1,showSearch:!1,showNotice:!1,showFullscreen:!0,showMobileLogo:!0,showBreadcrumb:!0,showBreadcrumbIcon:!1,showLog:!1,showI18n:!1,enableSetting:!1,logoutConfirm:!0,autoFixRatio:!0,maskClosable:!0,draggable:!0,alertStyle:"SweetAlert",filterWidth:125},page:{opened:[],loadOpenedTabs:!0},waterMark:{show:!1,text:"MOOHO",options:{}},sameRouteForceUpdate:!1};let localSetting=window.setting;localSetting&&lodash$1.exports.assign(Setting,localSetting);const cookies$2={};cookies$2.set=function(a="default",r="",o={}){let s={};Setting.cookiesExpires!==0&&(s.expires=Setting.cookiesExpires),Object.assign(s,o),api.set(`admin-plus-${Setting.appID}-${a}`,r,s)},cookies$2.get=function(a="default"){return api.get(`admin-plus-${Setting.appID}-${a}`)},cookies$2.getAll=function(){return api.get()},cookies$2.remove=function(a="default"){return api.remove(`admin-plus-${Setting.appID}-${a}`)};var isPromise$4={exports:{}};isPromise$4.exports=isPromise$3,isPromise$4.exports.default=isPromise$3;function isPromise$3(a){return!!a&&(typeof a=="object"||typeof a=="function")&&typeof a.then=="function"}var lodash=lodash$1.exports,isPromise$2=isPromise$4.exports,main=function(a){if(typeof a!="object")throw new Error("An adapter must be provided, see https://github.com/typicode/lowdb/#usage");var r=lodash.runInContext(),o=r.chain({});r.prototype.write=r.wrap(r.prototype.value,function(l){var u=l.apply(this);return o.write(u)});function s(l){return o.__wrapped__=l,o}return o._=r,o.read=function(){var l=a.read();return isPromise$2(l)?l.then(s):s(l)},o.write=function(l){var u=a.write(o.getState());return isPromise$2(u)?u.then(function(){return l}):l},o.getState=function(){return o.__wrapped__},o.setState=function(l){return s(l)},o.read()},_stringify=function(r){return JSON.stringify(r,null,2)};function _classCallCheck$1(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}var stringify$1=_stringify,Base$1=function a(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.defaultValue,l=s===void 0?{}:s,u=o.serialize,c=u===void 0?stringify$1:u,d=o.deserialize,f=d===void 0?JSON.parse:d;_classCallCheck$1(this,a),this.source=r,this.defaultValue=l,this.serialize=c,this.deserialize=f},Base_1=Base$1,_createClass=function(){function a(r,o){for(var s=0;s<o.length;s++){var l=o[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(r,l.key,l)}}return function(r,o,s){return o&&a(r.prototype,o),s&&a(r,s),r}}();function _classCallCheck(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function _inherits(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var Base=Base_1,LocalStorage=function(a){_inherits(r,a);function r(){return _classCallCheck(this,r),_possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return _createClass(r,[{key:"read",value:function(){var s=localStorage.getItem(this.source);return s?this.deserialize(s):(localStorage.setItem(this.source,this.serialize(this.defaultValue)),this.defaultValue)}},{key:"write",value:function(s){localStorage.setItem(this.source,this.serialize(s))}}]),r}(Base),LocalStorage_1=LocalStorage;const adapter=new LocalStorage_1(`admin-plus-${Setting.appID}`),db$1=main(adapter);db$1.defaults({sys:{},database:{}}).write();const util$8={cookies:cookies$2,db:db$1};/*!
31
+ }`;var ze=qs(function(){return at(j,Me+"return "+be).apply(o,K)});if(ze.source=be,Qn(ze))throw ze;return ze}function $p(S){return nt(S).toLowerCase()}function _p(S){return nt(S).toUpperCase()}function Sp(S,T,I){if(S=nt(S),S&&(I||T===o))return Ui(S);if(!S||!(T=Ot(T)))return S;var V=Zt(S),G=Zt(T),j=zi(V,G),K=Hi(V,G)+1;return yr(V,j,K).join("")}function Cp(S,T,I){if(S=nt(S),S&&(I||T===o))return S.slice(0,ji(S)+1);if(!S||!(T=Ot(T)))return S;var V=Zt(S),G=Hi(V,Zt(T))+1;return yr(V,0,G).join("")}function bp(S,T,I){if(S=nt(S),S&&(I||T===o))return S.replace(Ka,"");if(!S||!(T=Ot(T)))return S;var V=Zt(S),G=zi(V,Zt(T));return yr(V,G).join("")}function wp(S,T){var I=M,V=R;if(pt(T)){var G="separator"in T?T.separator:G;I="length"in T?Ue(T.length):I,V="omission"in T?Ot(T.omission):V}S=nt(S);var j=S.length;if(Mr(S)){var K=Zt(S);j=K.length}if(I>=j)return S;var Q=I-Nr(V);if(Q<1)return V;var oe=K?yr(K,0,Q).join(""):S.slice(0,Q);if(G===o)return oe+V;if(K&&(Q+=oe.length-Q),ei(G)){if(S.slice(Q).search(G)){var ye,$e=oe;for(G.global||(G=vn(G.source,nt(di.exec(G))+"g")),G.lastIndex=0;ye=G.exec($e);)var be=ye.index;oe=oe.slice(0,be===o?Q:be)}}else if(S.indexOf(Ot(G),Q)!=Q){var Ee=oe.lastIndexOf(G);Ee>-1&&(oe=oe.slice(0,Ee))}return oe+V}function Tp(S){return S=nt(S),S&&wt.test(S)?S.replace(We,Jl):S}var xp=Br(function(S,T,I){return S+(I?" ":"")+T.toUpperCase()}),ai=Lo("toUpperCase");function ks(S,T,I){return S=nt(S),T=I?o:T,T===o?jl(S)?tu(S):Vl(S):S.match(T)||[]}var qs=He(function(S,T){try{return qt(S,o,T)}catch(I){return Qn(I)?I:new Fe(I)}}),Dp=or(function(S,T){return Gt(T,function(I){I=tr(I),nr(S,I,Kn(S[I],S))}),S});function Ep(S){var T=S==null?0:S.length,I=qe();return S=T?ft(S,function(V){if(typeof V[1]!="function")throw new Ut(c);return[I(V[0]),V[1]]}):[],He(function(V){for(var G=-1;++G<T;){var j=S[G];if(qt(j[0],this,V))return qt(j[1],this,V)}})}function Ap(S){return Ju(Ht(S,v))}function ni(S){return function(){return S}}function Ip(S,T){return S==null||S!==S?T:S}var Pp=Vo(),Mp=Vo(!0);function kt(S){return S}function ii(S){return po(typeof S=="function"?S:Ht(S,v))}function Np(S){return vo(Ht(S,v))}function kp(S,T){return go(S,Ht(T,v))}var qp=He(function(S,T){return function(I){return Qr(I,S,T)}}),Lp=He(function(S,T){return function(I){return Qr(S,I,T)}});function oi(S,T,I){var V=_t(T),G=Aa(T,V);I==null&&!(pt(T)&&(G.length||!V.length))&&(I=T,T=S,S=this,G=Aa(T,_t(T)));var j=!(pt(I)&&"chain"in I)||!!I.chain,K=lr(S);return Gt(G,function(Q){var oe=T[Q];S[Q]=oe,K&&(S.prototype[Q]=function(){var ye=this.__chain__;if(j||ye){var $e=S(this.__wrapped__),be=$e.__actions__=Pt(this.__actions__);return be.push({func:oe,args:arguments,thisArg:S}),$e.__chain__=ye,$e}return oe.apply(S,fr([this.value()],arguments))})}),S}function Op(){return Ct._===this&&(Ct._=su),this}function si(){}function Vp(S){return S=Ue(S),He(function(T){return yo(T,S)})}var Rp=Vn(ft),Bp=Vn(Vi),Fp=Vn(un);function Ls(S){return Hn(S)?cn(tr(S)):mc(S)}function Gp(S){return function(T){return S==null?o:Tr(S,T)}}var Up=Bo(),zp=Bo(!0);function li(){return[]}function ui(){return!1}function Hp(){return{}}function Wp(){return""}function jp(){return!0}function Yp(S,T){if(S=Ue(S),S<1||S>J)return[];var I=Y,V=Tt(S,Y);T=qe(T),S-=Y;for(var G=hn(V,T);++I<S;)T(I);return G}function Zp(S){return Ge(S)?ft(S,tr):Vt(S)?[S]:Pt(rs(nt(S)))}function Xp(S){var T=++iu;return nt(S)+T}var Kp=qa(function(S,T){return S+T},0),Jp=Rn("ceil"),Qp=qa(function(S,T){return S/T},1),em=Rn("floor");function tm(S){return S&&S.length?Ea(S,kt,wn):o}function rm(S,T){return S&&S.length?Ea(S,qe(T,2),wn):o}function am(S){return Fi(S,kt)}function nm(S,T){return Fi(S,qe(T,2))}function im(S){return S&&S.length?Ea(S,kt,En):o}function om(S,T){return S&&S.length?Ea(S,qe(T,2),En):o}var sm=qa(function(S,T){return S*T},1),lm=Rn("round"),um=qa(function(S,T){return S-T},0);function cm(S){return S&&S.length?fn(S,kt):0}function dm(S,T){return S&&S.length?fn(S,qe(T,2)):0}return U.after=Nf,U.ary=hs,U.assign=_h,U.assignIn=Ds,U.assignInWith=Ya,U.assignWith=Sh,U.at=Ch,U.before=ps,U.bind=Kn,U.bindAll=Dp,U.bindKey=ms,U.castArray=Hf,U.chain=cs,U.chunk=Qc,U.compact=ed,U.concat=td,U.cond=Ep,U.conforms=Ap,U.constant=ni,U.countBy=cf,U.create=bh,U.curry=vs,U.curryRight=gs,U.debounce=ys,U.defaults=wh,U.defaultsDeep=Th,U.defer=kf,U.delay=qf,U.difference=rd,U.differenceBy=ad,U.differenceWith=nd,U.drop=id,U.dropRight=od,U.dropRightWhile=sd,U.dropWhile=ld,U.fill=ud,U.filter=ff,U.flatMap=mf,U.flatMapDeep=vf,U.flatMapDepth=gf,U.flatten=os,U.flattenDeep=cd,U.flattenDepth=dd,U.flip=Lf,U.flow=Pp,U.flowRight=Mp,U.fromPairs=fd,U.functions=Mh,U.functionsIn=Nh,U.groupBy=yf,U.initial=pd,U.intersection=md,U.intersectionBy=vd,U.intersectionWith=gd,U.invert=qh,U.invertBy=Lh,U.invokeMap=_f,U.iteratee=ii,U.keyBy=Sf,U.keys=_t,U.keysIn=Nt,U.map=Ga,U.mapKeys=Vh,U.mapValues=Rh,U.matches=Np,U.matchesProperty=kp,U.memoize=za,U.merge=Bh,U.mergeWith=Es,U.method=qp,U.methodOf=Lp,U.mixin=oi,U.negate=Ha,U.nthArg=Vp,U.omit=Fh,U.omitBy=Gh,U.once=Of,U.orderBy=Cf,U.over=Rp,U.overArgs=Vf,U.overEvery=Bp,U.overSome=Fp,U.partial=Jn,U.partialRight=$s,U.partition=bf,U.pick=Uh,U.pickBy=As,U.property=Ls,U.propertyOf=Gp,U.pull=Sd,U.pullAll=ls,U.pullAllBy=Cd,U.pullAllWith=bd,U.pullAt=wd,U.range=Up,U.rangeRight=zp,U.rearg=Rf,U.reject=xf,U.remove=Td,U.rest=Bf,U.reverse=Zn,U.sampleSize=Ef,U.set=Hh,U.setWith=Wh,U.shuffle=Af,U.slice=xd,U.sortBy=Mf,U.sortedUniq=Nd,U.sortedUniqBy=kd,U.split=mp,U.spread=Ff,U.tail=qd,U.take=Ld,U.takeRight=Od,U.takeRightWhile=Vd,U.takeWhile=Rd,U.tap=ef,U.throttle=Gf,U.thru=Fa,U.toArray=ws,U.toPairs=Is,U.toPairsIn=Ps,U.toPath=Zp,U.toPlainObject=xs,U.transform=jh,U.unary=Uf,U.union=Bd,U.unionBy=Fd,U.unionWith=Gd,U.uniq=Ud,U.uniqBy=zd,U.uniqWith=Hd,U.unset=Yh,U.unzip=Xn,U.unzipWith=us,U.update=Zh,U.updateWith=Xh,U.values=Ur,U.valuesIn=Kh,U.without=Wd,U.words=ks,U.wrap=zf,U.xor=jd,U.xorBy=Yd,U.xorWith=Zd,U.zip=Xd,U.zipObject=Kd,U.zipObjectDeep=Jd,U.zipWith=Qd,U.entries=Is,U.entriesIn=Ps,U.extend=Ds,U.extendWith=Ya,oi(U,U),U.add=Kp,U.attempt=qs,U.camelCase=tp,U.capitalize=Ms,U.ceil=Jp,U.clamp=Jh,U.clone=Wf,U.cloneDeep=Yf,U.cloneDeepWith=Zf,U.cloneWith=jf,U.conformsTo=Xf,U.deburr=Ns,U.defaultTo=Ip,U.divide=Qp,U.endsWith=rp,U.eq=Kt,U.escape=ap,U.escapeRegExp=np,U.every=df,U.find=hf,U.findIndex=ns,U.findKey=xh,U.findLast=pf,U.findLastIndex=is,U.findLastKey=Dh,U.floor=em,U.forEach=ds,U.forEachRight=fs,U.forIn=Eh,U.forInRight=Ah,U.forOwn=Ih,U.forOwnRight=Ph,U.get=ti,U.gt=Kf,U.gte=Jf,U.has=kh,U.hasIn=ri,U.head=ss,U.identity=kt,U.includes=$f,U.indexOf=hd,U.inRange=Qh,U.invoke=Oh,U.isArguments=Er,U.isArray=Ge,U.isArrayBuffer=Qf,U.isArrayLike=Mt,U.isArrayLikeObject=vt,U.isBoolean=eh,U.isBuffer=$r,U.isDate=th,U.isElement=rh,U.isEmpty=ah,U.isEqual=nh,U.isEqualWith=ih,U.isError=Qn,U.isFinite=oh,U.isFunction=lr,U.isInteger=_s,U.isLength=Wa,U.isMap=Ss,U.isMatch=sh,U.isMatchWith=lh,U.isNaN=uh,U.isNative=ch,U.isNil=fh,U.isNull=dh,U.isNumber=Cs,U.isObject=pt,U.isObjectLike=mt,U.isPlainObject=ia,U.isRegExp=ei,U.isSafeInteger=hh,U.isSet=bs,U.isString=ja,U.isSymbol=Vt,U.isTypedArray=Gr,U.isUndefined=ph,U.isWeakMap=mh,U.isWeakSet=vh,U.join=yd,U.kebabCase=ip,U.last=jt,U.lastIndexOf=$d,U.lowerCase=op,U.lowerFirst=sp,U.lt=gh,U.lte=yh,U.max=tm,U.maxBy=rm,U.mean=am,U.meanBy=nm,U.min=im,U.minBy=om,U.stubArray=li,U.stubFalse=ui,U.stubObject=Hp,U.stubString=Wp,U.stubTrue=jp,U.multiply=sm,U.nth=_d,U.noConflict=Op,U.noop=si,U.now=Ua,U.pad=lp,U.padEnd=up,U.padStart=cp,U.parseInt=dp,U.random=ep,U.reduce=wf,U.reduceRight=Tf,U.repeat=fp,U.replace=hp,U.result=zh,U.round=lm,U.runInContext=ie,U.sample=Df,U.size=If,U.snakeCase=pp,U.some=Pf,U.sortedIndex=Dd,U.sortedIndexBy=Ed,U.sortedIndexOf=Ad,U.sortedLastIndex=Id,U.sortedLastIndexBy=Pd,U.sortedLastIndexOf=Md,U.startCase=vp,U.startsWith=gp,U.subtract=um,U.sum=cm,U.sumBy=dm,U.template=yp,U.times=Yp,U.toFinite=ur,U.toInteger=Ue,U.toLength=Ts,U.toLower=$p,U.toNumber=Yt,U.toSafeInteger=$h,U.toString=nt,U.toUpper=_p,U.trim=Sp,U.trimEnd=Cp,U.trimStart=bp,U.truncate=wp,U.unescape=Tp,U.uniqueId=Xp,U.upperCase=xp,U.upperFirst=ai,U.each=ds,U.eachRight=fs,U.first=ss,oi(U,function(){var S={};return Qt(U,function(T,I){it.call(U.prototype,I)||(S[I]=T)}),S}(),{chain:!1}),U.VERSION=s,Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(S){U[S].placeholder=U}),Gt(["drop","take"],function(S,T){Xe.prototype[S]=function(I){I=I===o?1:$t(Ue(I),0);var V=this.__filtered__&&!T?new Xe(this):this.clone();return V.__filtered__?V.__takeCount__=Tt(I,V.__takeCount__):V.__views__.push({size:Tt(I,Y),type:S+(V.__dir__<0?"Right":"")}),V},Xe.prototype[S+"Right"]=function(I){return this.reverse()[S](I).reverse()}}),Gt(["filter","map","takeWhile"],function(S,T){var I=T+1,V=I==q||I==B;Xe.prototype[S]=function(G){var j=this.clone();return j.__iteratees__.push({iteratee:qe(G,3),type:I}),j.__filtered__=j.__filtered__||V,j}}),Gt(["head","last"],function(S,T){var I="take"+(T?"Right":"");Xe.prototype[S]=function(){return this[I](1).value()[0]}}),Gt(["initial","tail"],function(S,T){var I="drop"+(T?"":"Right");Xe.prototype[S]=function(){return this.__filtered__?new Xe(this):this[I](1)}}),Xe.prototype.compact=function(){return this.filter(kt)},Xe.prototype.find=function(S){return this.filter(S).head()},Xe.prototype.findLast=function(S){return this.reverse().find(S)},Xe.prototype.invokeMap=He(function(S,T){return typeof S=="function"?new Xe(this):this.map(function(I){return Qr(I,S,T)})}),Xe.prototype.reject=function(S){return this.filter(Ha(qe(S)))},Xe.prototype.slice=function(S,T){S=Ue(S);var I=this;return I.__filtered__&&(S>0||T<0)?new Xe(I):(S<0?I=I.takeRight(-S):S&&(I=I.drop(S)),T!==o&&(T=Ue(T),I=T<0?I.dropRight(-T):I.take(T-S)),I)},Xe.prototype.takeRightWhile=function(S){return this.reverse().takeWhile(S).reverse()},Xe.prototype.toArray=function(){return this.take(Y)},Qt(Xe.prototype,function(S,T){var I=/^(?:filter|find|map|reject)|While$/.test(T),V=/^(?:head|last)$/.test(T),G=U[V?"take"+(T=="last"?"Right":""):T],j=V||/^find/.test(T);!G||(U.prototype[T]=function(){var K=this.__wrapped__,Q=V?[1]:arguments,oe=K instanceof Xe,ye=Q[0],$e=oe||Ge(K),be=function(je){var Je=G.apply(U,fr([je],Q));return V&&Ee?Je[0]:Je};$e&&I&&typeof ye=="function"&&ye.length!=1&&(oe=$e=!1);var Ee=this.__chain__,Me=!!this.__actions__.length,Le=j&&!Ee,ze=oe&&!Me;if(!j&&$e){K=ze?K:new Xe(this);var Oe=S.apply(K,Q);return Oe.__actions__.push({func:Fa,args:[be],thisArg:o}),new zt(Oe,Ee)}return Le&&ze?S.apply(this,Q):(Oe=this.thru(be),Le?V?Oe.value()[0]:Oe.value():Oe)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(S){var T=fa[S],I=/^(?:push|sort|unshift)$/.test(S)?"tap":"thru",V=/^(?:pop|shift)$/.test(S);U.prototype[S]=function(){var G=arguments;if(V&&!this.__chain__){var j=this.value();return T.apply(Ge(j)?j:[],G)}return this[I](function(K){return T.apply(Ge(K)?K:[],G)})}}),Qt(Xe.prototype,function(S,T){var I=U[T];if(I){var V=I.name+"";it.call(Or,V)||(Or[V]=[]),Or[V].push({name:T,func:I})}}),Or[ka(o,b).name]=[{name:"wrapper",func:o}],Xe.prototype.clone=bu,Xe.prototype.reverse=wu,Xe.prototype.value=Tu,U.prototype.at=tf,U.prototype.chain=rf,U.prototype.commit=af,U.prototype.next=nf,U.prototype.plant=sf,U.prototype.reverse=lf,U.prototype.toJSON=U.prototype.valueOf=U.prototype.value=uf,U.prototype.first=U.prototype.head,Wr&&(U.prototype[Wr]=of),U},kr=ru();_r?((_r.exports=kr)._=kr,an._=kr):Ct._=kr}).call(commonjsGlobal)})(lodash$1,lodash$1.exports);var isPromise$4={exports:{}};isPromise$4.exports=isPromise$3,isPromise$4.exports.default=isPromise$3;function isPromise$3(a){return!!a&&(typeof a=="object"||typeof a=="function")&&typeof a.then=="function"}var lodash=lodash$1.exports,isPromise$2=isPromise$4.exports,main=function(a){if(typeof a!="object")throw new Error("An adapter must be provided, see https://github.com/typicode/lowdb/#usage");var r=lodash.runInContext(),o=r.chain({});r.prototype.write=r.wrap(r.prototype.value,function(l){var u=l.apply(this);return o.write(u)});function s(l){return o.__wrapped__=l,o}return o._=r,o.read=function(){var l=a.read();return isPromise$2(l)?l.then(s):s(l)},o.write=function(l){var u=a.write(o.getState());return isPromise$2(u)?u.then(function(){return l}):l},o.getState=function(){return o.__wrapped__},o.setState=function(l){return s(l)},o.read()},_stringify=function(r){return JSON.stringify(r,null,2)};function _classCallCheck$1(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}var stringify$1=_stringify,Base$1=function a(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=o.defaultValue,l=s===void 0?{}:s,u=o.serialize,c=u===void 0?stringify$1:u,d=o.deserialize,f=d===void 0?JSON.parse:d;_classCallCheck$1(this,a),this.source=r,this.defaultValue=l,this.serialize=c,this.deserialize=f},Base_1=Base$1,_createClass=function(){function a(r,o){for(var s=0;s<o.length;s++){var l=o[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(r,l.key,l)}}return function(r,o,s){return o&&a(r.prototype,o),s&&a(r,s),r}}();function _classCallCheck(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:a}function _inherits(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}var Base=Base_1,LocalStorage=function(a){_inherits(r,a);function r(){return _classCallCheck(this,r),_possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return _createClass(r,[{key:"read",value:function(){var s=localStorage.getItem(this.source);return s?this.deserialize(s):(localStorage.setItem(this.source,this.serialize(this.defaultValue)),this.defaultValue)}},{key:"write",value:function(s){localStorage.setItem(this.source,this.serialize(s))}}]),r}(Base),LocalStorage_1=LocalStorage;const adapter=new LocalStorage_1(`admin-plus-${Setting.appID}`),db$1=main(adapter);db$1.defaults({sys:{},database:{}}).write();const util$8={cookies:cookies$2,db:db$1};/*!
32
32
  * vue-router v4.1.6
33
33
  * (c) 2022 Eduardo San Martin Morote
34
34
  * @license MIT
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "2.0.41",
4
+ "version": "2.0.43",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
package/src/setting.js CHANGED
@@ -1,5 +1,3 @@
1
- import { assign } from 'lodash';
2
-
3
1
  /**
4
2
  * 默认配置
5
3
  * */
@@ -178,23 +176,23 @@ const Setting = {
178
176
  sameRouteForceUpdate: false
179
177
  };
180
178
 
181
- // const copyTo = (source, target) => {
182
- // for (let key in source) {
183
- // if (typeof source[key] === 'object') {
184
- // if (target[key] == null) {
185
- // target[key] = {};
186
- // }
187
- // copyTo(source[key], target[key]);
188
- // } else {
189
- // target[key] = source[key];
190
- // }
191
- // }
192
- // };
179
+ const copyTo = (source, target) => {
180
+ for (let key in source) {
181
+ if (typeof source[key] === 'object') {
182
+ if (target[key] == null) {
183
+ target[key] = {};
184
+ }
185
+ copyTo(source[key], target[key]);
186
+ } else {
187
+ target[key] = source[key];
188
+ }
189
+ }
190
+ };
193
191
 
194
192
  let localSetting = window.setting;
195
193
 
196
194
  if (localSetting) {
197
- assign(Setting, localSetting);
195
+ copyTo(localSetting, Setting);
198
196
  }
199
197
 
200
198
  export default Setting;