ss-component-new 1.1.76 → 1.1.78

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.
Files changed (48) hide show
  1. package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +1 -0
  2. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  3. package/dist/array-DQ6meJk7.cjs +9 -0
  4. package/dist/{array-BejyPB_1.js → array-Dsurpc08.js} +247 -241
  5. package/dist/cloneDeep-BH_aXSAH.cjs +1 -0
  6. package/dist/cloneDeep-MKlVykeI.js +318 -0
  7. package/dist/{index-ChCXzsYf.js → index-54P6MUQ5.js} +2 -2
  8. package/dist/index-BCHKDSAB.cjs +1 -0
  9. package/dist/index-Bc2TP6E4.cjs +1 -0
  10. package/dist/index-C8abtcPh.cjs +87 -0
  11. package/dist/index-CBzgTVRc.cjs +1 -0
  12. package/dist/index-CRm-Cd9v.cjs +1 -0
  13. package/dist/index-CTc_dwbb.js +3133 -0
  14. package/dist/index-ChZ6L8qy.js +371 -0
  15. package/dist/index-ClguzCrn.js +131 -0
  16. package/dist/{menu-oGClEGzK.js → index-D0v2_dMz.js} +1945 -1834
  17. package/dist/{index-BT8Pkr84.js → index-D9tWUDyO.js} +8 -6
  18. package/dist/index-DB-XsCH7.cjs +1 -0
  19. package/dist/{index-BvoThyOF.js → index-DBKxwOZZ.js} +2 -2
  20. package/dist/index-DtmWzVIG.cjs +6 -0
  21. package/dist/{index-10n3uNlg.js → index-HDBRQNLs.js} +4 -3
  22. package/dist/index-YSJ2XYuj.cjs +1 -0
  23. package/dist/index-qogZoGJJ.js +351 -0
  24. package/dist/index-sjmLPf8w.cjs +1 -0
  25. package/dist/index-zIb6b0kg.cjs +6 -0
  26. package/dist/index.vue_vue_type_script_setup_true_lang-D0K1veK2.cjs +1 -0
  27. package/dist/index.vue_vue_type_style_index_0_scoped_876d48c6_lang-BWOIM9wH.js +254 -0
  28. package/dist/index.vue_vue_type_style_index_0_scoped_876d48c6_lang-Csg3VsXp.cjs +4 -0
  29. package/dist/{index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-DG5vph3h.js → index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-DHffsUIJ.js} +39 -38
  30. package/dist/index.vue_vue_type_style_index_0_scoped_dc84a8f7_lang-DzfJEE_l.cjs +1 -0
  31. package/dist/main-RfdttOpi.js +288 -0
  32. package/dist/main-u6M32FUn.cjs +1 -0
  33. package/dist/menu-BIINB-0Y.js +1013 -0
  34. package/dist/menu-B_Az9K_F.cjs +11 -0
  35. package/dist/{modelComp-CqA1NVfH.js → modelComp-B3sxj_Kp.js} +1 -1
  36. package/dist/modelComp-DAsVXKA0.cjs +1 -0
  37. package/dist/router.d.ts +1 -0
  38. package/dist/ss-component.cjs +1 -0
  39. package/dist/ss-component.css +1 -1
  40. package/dist/ss-component.js +26 -24
  41. package/dist/ss-component2.cjs +1 -0
  42. package/dist/ss-component2.js +5 -0
  43. package/package.json +11 -5
  44. package/dist/_plugin-vue_export-helper-B7R8Jogt.js +0 -524
  45. package/dist/index-CCr_UQBn.js +0 -3749
  46. package/dist/main-BUjoLIJC.js +0 -404
  47. package/dist/ss-component.umd.cjs +0 -115
  48. /package/dist/{ss-component.d.ts → main.d.ts} +0 -0
@@ -0,0 +1,1013 @@
1
+ import { hasInjectionContext as be, inject as Se, effectScope as Oe, ref as re, markRaw as $, toRaw as L, computed as ie, isRef as R, isReactive as q, toRef as J, getCurrentInstance as Fe, reactive as He, nextTick as he, watch as we, unref as Ge, getCurrentScope as Je, onScopeDispose as We, toRefs as pe } from "vue";
2
+ function G(e, o, n) {
3
+ return Array.isArray(e) ? (e.length = Math.max(e.length, o), e.splice(o, 1, n), n) : (e[o] = n, n);
4
+ }
5
+ function ee(e, o) {
6
+ if (Array.isArray(e)) {
7
+ e.splice(o, 1);
8
+ return;
9
+ }
10
+ delete e[o];
11
+ }
12
+ function Be() {
13
+ return Ne().__VUE_DEVTOOLS_GLOBAL_HOOK__;
14
+ }
15
+ function Ne() {
16
+ return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
17
+ }
18
+ const Qe = typeof Proxy == "function", Ye = "devtools-plugin:setup", ze = "plugin:settings:set";
19
+ let j, ne;
20
+ function qe() {
21
+ var e;
22
+ return j !== void 0 || (typeof window < "u" && window.performance ? (j = !0, ne = window.performance) : typeof globalThis < "u" && (!((e = globalThis.perf_hooks) === null || e === void 0) && e.performance) ? (j = !0, ne = globalThis.perf_hooks.performance) : j = !1), j;
23
+ }
24
+ function Ke() {
25
+ return qe() ? ne.now() : Date.now();
26
+ }
27
+ class Xe {
28
+ constructor(o, n) {
29
+ this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = o, this.hook = n;
30
+ const t = {};
31
+ if (o.settings)
32
+ for (const i in o.settings) {
33
+ const r = o.settings[i];
34
+ t[i] = r.defaultValue;
35
+ }
36
+ const s = `__vue-devtools-plugin-settings__${o.id}`;
37
+ let c = Object.assign({}, t);
38
+ try {
39
+ const i = localStorage.getItem(s), r = JSON.parse(i);
40
+ Object.assign(c, r);
41
+ } catch {
42
+ }
43
+ this.fallbacks = {
44
+ getSettings() {
45
+ return c;
46
+ },
47
+ setSettings(i) {
48
+ try {
49
+ localStorage.setItem(s, JSON.stringify(i));
50
+ } catch {
51
+ }
52
+ c = i;
53
+ },
54
+ now() {
55
+ return Ke();
56
+ }
57
+ }, n && n.on(ze, (i, r) => {
58
+ i === this.plugin.id && this.fallbacks.setSettings(r);
59
+ }), this.proxiedOn = new Proxy({}, {
60
+ get: (i, r) => this.target ? this.target.on[r] : (...l) => {
61
+ this.onQueue.push({
62
+ method: r,
63
+ args: l
64
+ });
65
+ }
66
+ }), this.proxiedTarget = new Proxy({}, {
67
+ get: (i, r) => this.target ? this.target[r] : r === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(r) ? (...l) => (this.targetQueue.push({
68
+ method: r,
69
+ args: l,
70
+ resolve: () => {
71
+ }
72
+ }), this.fallbacks[r](...l)) : (...l) => new Promise((d) => {
73
+ this.targetQueue.push({
74
+ method: r,
75
+ args: l,
76
+ resolve: d
77
+ });
78
+ })
79
+ });
80
+ }
81
+ async setRealTarget(o) {
82
+ this.target = o;
83
+ for (const n of this.onQueue)
84
+ this.target.on[n.method](...n.args);
85
+ for (const n of this.targetQueue)
86
+ n.resolve(await this.target[n.method](...n.args));
87
+ }
88
+ }
89
+ function Pe(e, o) {
90
+ const n = e, t = Ne(), s = Be(), c = Qe && n.enableEarlyProxy;
91
+ if (s && (t.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !c))
92
+ s.emit(Ye, e, o);
93
+ else {
94
+ const i = c ? new Xe(n, s) : null;
95
+ (t.__VUE_DEVTOOLS_PLUGINS__ = t.__VUE_DEVTOOLS_PLUGINS__ || []).push({
96
+ pluginDescriptor: n,
97
+ setupFn: o,
98
+ proxy: i
99
+ }), i && o(i.proxiedTarget);
100
+ }
101
+ }
102
+ /*!
103
+ * pinia v2.2.8
104
+ * (c) 2024 Eduardo San Martin Morote
105
+ * @license MIT
106
+ */
107
+ let x;
108
+ const F = (e) => x = e, St = () => be() && Se(ce) || x, ce = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
109
+ /* istanbul ignore next */
110
+ Symbol()
111
+ );
112
+ function A(e) {
113
+ return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
114
+ }
115
+ var w;
116
+ (function(e) {
117
+ e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
118
+ })(w || (w = {}));
119
+ const I = typeof window < "u", ge = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
120
+ function Ze(e, { autoBom: o = !1 } = {}) {
121
+ return o && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
122
+ }
123
+ function ae(e, o, n) {
124
+ const t = new XMLHttpRequest();
125
+ t.open("GET", e), t.responseType = "blob", t.onload = function() {
126
+ Ve(t.response, o, n);
127
+ }, t.onerror = function() {
128
+ console.error("could not download file");
129
+ }, t.send();
130
+ }
131
+ function Ie(e) {
132
+ const o = new XMLHttpRequest();
133
+ o.open("HEAD", e, !1);
134
+ try {
135
+ o.send();
136
+ } catch {
137
+ }
138
+ return o.status >= 200 && o.status <= 299;
139
+ }
140
+ function W(e) {
141
+ try {
142
+ e.dispatchEvent(new MouseEvent("click"));
143
+ } catch {
144
+ const n = document.createEvent("MouseEvents");
145
+ n.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(n);
146
+ }
147
+ }
148
+ const B = typeof navigator == "object" ? navigator : { userAgent: "" }, Te = /Macintosh/.test(B.userAgent) && /AppleWebKit/.test(B.userAgent) && !/Safari/.test(B.userAgent), Ve = I ? (
149
+ // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
150
+ typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Te ? et : (
151
+ // Use msSaveOrOpenBlob as a second approach
152
+ "msSaveOrOpenBlob" in B ? tt : (
153
+ // Fallback to using FileReader and a popup
154
+ nt
155
+ )
156
+ )
157
+ ) : () => {
158
+ };
159
+ function et(e, o = "download", n) {
160
+ const t = document.createElement("a");
161
+ t.download = o, t.rel = "noopener", typeof e == "string" ? (t.href = e, t.origin !== location.origin ? Ie(t.href) ? ae(e, o, n) : (t.target = "_blank", W(t)) : W(t)) : (t.href = URL.createObjectURL(e), setTimeout(function() {
162
+ URL.revokeObjectURL(t.href);
163
+ }, 4e4), setTimeout(function() {
164
+ W(t);
165
+ }, 0));
166
+ }
167
+ function tt(e, o = "download", n) {
168
+ if (typeof e == "string")
169
+ if (Ie(e))
170
+ ae(e, o, n);
171
+ else {
172
+ const t = document.createElement("a");
173
+ t.href = e, t.target = "_blank", setTimeout(function() {
174
+ W(t);
175
+ });
176
+ }
177
+ else
178
+ navigator.msSaveOrOpenBlob(Ze(e, n), o);
179
+ }
180
+ function nt(e, o, n, t) {
181
+ if (t = t || open("", "_blank"), t && (t.document.title = t.document.body.innerText = "downloading..."), typeof e == "string")
182
+ return ae(e, o, n);
183
+ const s = e.type === "application/octet-stream", c = /constructor/i.test(String(ge.HTMLElement)) || "safari" in ge, i = /CriOS\/[\d]+/.test(navigator.userAgent);
184
+ if ((i || s && c || Te) && typeof FileReader < "u") {
185
+ const r = new FileReader();
186
+ r.onloadend = function() {
187
+ let l = r.result;
188
+ if (typeof l != "string")
189
+ throw t = null, new Error("Wrong reader.result type");
190
+ l = i ? l : l.replace(/^data:[^;]*;/, "data:attachment/file;"), t ? t.location.href = l : location.assign(l), t = null;
191
+ }, r.readAsDataURL(e);
192
+ } else {
193
+ const r = URL.createObjectURL(e);
194
+ t ? t.location.assign(r) : location.href = r, t = null, setTimeout(function() {
195
+ URL.revokeObjectURL(r);
196
+ }, 4e4);
197
+ }
198
+ }
199
+ function _(e, o) {
200
+ const n = "🍍 " + e;
201
+ typeof __VUE_DEVTOOLS_TOAST__ == "function" ? __VUE_DEVTOOLS_TOAST__(n, o) : o === "error" ? console.error(n) : o === "warn" ? console.warn(n) : console.log(n);
202
+ }
203
+ function ue(e) {
204
+ return "_a" in e && "install" in e;
205
+ }
206
+ function $e() {
207
+ if (!("clipboard" in navigator))
208
+ return _("Your browser doesn't support the Clipboard API", "error"), !0;
209
+ }
210
+ function Ae(e) {
211
+ return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (_('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
212
+ }
213
+ async function ot(e) {
214
+ if (!$e())
215
+ try {
216
+ await navigator.clipboard.writeText(JSON.stringify(e.state.value)), _("Global state copied to clipboard.");
217
+ } catch (o) {
218
+ if (Ae(o))
219
+ return;
220
+ _("Failed to serialize the state. Check the console for more details.", "error"), console.error(o);
221
+ }
222
+ }
223
+ async function st(e) {
224
+ if (!$e())
225
+ try {
226
+ De(e, JSON.parse(await navigator.clipboard.readText())), _("Global state pasted from clipboard.");
227
+ } catch (o) {
228
+ if (Ae(o))
229
+ return;
230
+ _("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(o);
231
+ }
232
+ }
233
+ async function rt(e) {
234
+ try {
235
+ Ve(new Blob([JSON.stringify(e.state.value)], {
236
+ type: "text/plain;charset=utf-8"
237
+ }), "pinia-state.json");
238
+ } catch (o) {
239
+ _("Failed to export the state as JSON. Check the console for more details.", "error"), console.error(o);
240
+ }
241
+ }
242
+ let N;
243
+ function it() {
244
+ N || (N = document.createElement("input"), N.type = "file", N.accept = ".json");
245
+ function e() {
246
+ return new Promise((o, n) => {
247
+ N.onchange = async () => {
248
+ const t = N.files;
249
+ if (!t)
250
+ return o(null);
251
+ const s = t.item(0);
252
+ return o(s ? { text: await s.text(), file: s } : null);
253
+ }, N.oncancel = () => o(null), N.onerror = n, N.click();
254
+ });
255
+ }
256
+ return e;
257
+ }
258
+ async function ct(e) {
259
+ try {
260
+ const n = await it()();
261
+ if (!n)
262
+ return;
263
+ const { text: t, file: s } = n;
264
+ De(e, JSON.parse(t)), _(`Global state imported from "${s.name}".`);
265
+ } catch (o) {
266
+ _("Failed to import the state from JSON. Check the console for more details.", "error"), console.error(o);
267
+ }
268
+ }
269
+ function De(e, o) {
270
+ for (const n in o) {
271
+ const t = e.state.value[n];
272
+ t ? Object.assign(t, o[n]) : e.state.value[n] = o[n];
273
+ }
274
+ }
275
+ function O(e) {
276
+ return {
277
+ _custom: {
278
+ display: e
279
+ }
280
+ };
281
+ }
282
+ const je = "🍍 Pinia (root)", Q = "_root";
283
+ function at(e) {
284
+ return ue(e) ? {
285
+ id: Q,
286
+ label: je
287
+ } : {
288
+ id: e.$id,
289
+ label: e.$id
290
+ };
291
+ }
292
+ function ut(e) {
293
+ if (ue(e)) {
294
+ const n = Array.from(e._s.keys()), t = e._s;
295
+ return {
296
+ state: n.map((c) => ({
297
+ editable: !0,
298
+ key: c,
299
+ value: e.state.value[c]
300
+ })),
301
+ getters: n.filter((c) => t.get(c)._getters).map((c) => {
302
+ const i = t.get(c);
303
+ return {
304
+ editable: !1,
305
+ key: c,
306
+ value: i._getters.reduce((r, l) => (r[l] = i[l], r), {})
307
+ };
308
+ })
309
+ };
310
+ }
311
+ const o = {
312
+ state: Object.keys(e.$state).map((n) => ({
313
+ editable: !0,
314
+ key: n,
315
+ value: e.$state[n]
316
+ }))
317
+ };
318
+ return e._getters && e._getters.length && (o.getters = e._getters.map((n) => ({
319
+ editable: !1,
320
+ key: n,
321
+ value: e[n]
322
+ }))), e._customProperties.size && (o.customProperties = Array.from(e._customProperties).map((n) => ({
323
+ editable: !0,
324
+ key: n,
325
+ value: e[n]
326
+ }))), o;
327
+ }
328
+ function lt(e) {
329
+ return e ? Array.isArray(e) ? e.reduce((o, n) => (o.keys.push(n.key), o.operations.push(n.type), o.oldValue[n.key] = n.oldValue, o.newValue[n.key] = n.newValue, o), {
330
+ oldValue: {},
331
+ keys: [],
332
+ operations: [],
333
+ newValue: {}
334
+ }) : {
335
+ operation: O(e.type),
336
+ key: O(e.key),
337
+ oldValue: e.oldValue,
338
+ newValue: e.newValue
339
+ } : {};
340
+ }
341
+ function ft(e) {
342
+ switch (e) {
343
+ case w.direct:
344
+ return "mutation";
345
+ case w.patchFunction:
346
+ return "$patch";
347
+ case w.patchObject:
348
+ return "$patch";
349
+ default:
350
+ return "unknown";
351
+ }
352
+ }
353
+ let C = !0;
354
+ const Y = [], V = "pinia:mutations", m = "pinia", { assign: dt } = Object, z = (e) => "🍍 " + e;
355
+ function ht(e, o) {
356
+ Pe({
357
+ id: "dev.esm.pinia",
358
+ label: "Pinia 🍍",
359
+ logo: "https://pinia.vuejs.org/logo.svg",
360
+ packageName: "pinia",
361
+ homepage: "https://pinia.vuejs.org",
362
+ componentStateTypes: Y,
363
+ app: e
364
+ }, (n) => {
365
+ typeof n.now != "function" && _("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), n.addTimelineLayer({
366
+ id: V,
367
+ label: "Pinia 🍍",
368
+ color: 15064968
369
+ }), n.addInspector({
370
+ id: m,
371
+ label: "Pinia 🍍",
372
+ icon: "storage",
373
+ treeFilterPlaceholder: "Search stores",
374
+ actions: [
375
+ {
376
+ icon: "content_copy",
377
+ action: () => {
378
+ ot(o);
379
+ },
380
+ tooltip: "Serialize and copy the state"
381
+ },
382
+ {
383
+ icon: "content_paste",
384
+ action: async () => {
385
+ await st(o), n.sendInspectorTree(m), n.sendInspectorState(m);
386
+ },
387
+ tooltip: "Replace the state with the content of your clipboard"
388
+ },
389
+ {
390
+ icon: "save",
391
+ action: () => {
392
+ rt(o);
393
+ },
394
+ tooltip: "Save the state as a JSON file"
395
+ },
396
+ {
397
+ icon: "folder_open",
398
+ action: async () => {
399
+ await ct(o), n.sendInspectorTree(m), n.sendInspectorState(m);
400
+ },
401
+ tooltip: "Import the state from a JSON file"
402
+ }
403
+ ],
404
+ nodeActions: [
405
+ {
406
+ icon: "restore",
407
+ tooltip: 'Reset the state (with "$reset")',
408
+ action: (t) => {
409
+ const s = o._s.get(t);
410
+ s ? typeof s.$reset != "function" ? _(`Cannot reset "${t}" store because it doesn't have a "$reset" method implemented.`, "warn") : (s.$reset(), _(`Store "${t}" reset.`)) : _(`Cannot reset "${t}" store because it wasn't found.`, "warn");
411
+ }
412
+ }
413
+ ]
414
+ }), n.on.inspectComponent((t, s) => {
415
+ const c = t.componentInstance && t.componentInstance.proxy;
416
+ if (c && c._pStores) {
417
+ const i = t.componentInstance.proxy._pStores;
418
+ Object.values(i).forEach((r) => {
419
+ t.instanceData.state.push({
420
+ type: z(r.$id),
421
+ key: "state",
422
+ editable: !0,
423
+ value: r._isOptionsAPI ? {
424
+ _custom: {
425
+ value: L(r.$state),
426
+ actions: [
427
+ {
428
+ icon: "restore",
429
+ tooltip: "Reset the state of this store",
430
+ action: () => r.$reset()
431
+ }
432
+ ]
433
+ }
434
+ } : (
435
+ // NOTE: workaround to unwrap transferred refs
436
+ Object.keys(r.$state).reduce((l, d) => (l[d] = r.$state[d], l), {})
437
+ )
438
+ }), r._getters && r._getters.length && t.instanceData.state.push({
439
+ type: z(r.$id),
440
+ key: "getters",
441
+ editable: !1,
442
+ value: r._getters.reduce((l, d) => {
443
+ try {
444
+ l[d] = r[d];
445
+ } catch (g) {
446
+ l[d] = g;
447
+ }
448
+ return l;
449
+ }, {})
450
+ });
451
+ });
452
+ }
453
+ }), n.on.getInspectorTree((t) => {
454
+ if (t.app === e && t.inspectorId === m) {
455
+ let s = [o];
456
+ s = s.concat(Array.from(o._s.values())), t.rootNodes = (t.filter ? s.filter((c) => "$id" in c ? c.$id.toLowerCase().includes(t.filter.toLowerCase()) : je.toLowerCase().includes(t.filter.toLowerCase())) : s).map(at);
457
+ }
458
+ }), globalThis.$pinia = o, n.on.getInspectorState((t) => {
459
+ if (t.app === e && t.inspectorId === m) {
460
+ const s = t.nodeId === Q ? o : o._s.get(t.nodeId);
461
+ if (!s)
462
+ return;
463
+ s && (t.nodeId !== Q && (globalThis.$store = L(s)), t.state = ut(s));
464
+ }
465
+ }), n.on.editInspectorState((t, s) => {
466
+ if (t.app === e && t.inspectorId === m) {
467
+ const c = t.nodeId === Q ? o : o._s.get(t.nodeId);
468
+ if (!c)
469
+ return _(`store "${t.nodeId}" not found`, "error");
470
+ const { path: i } = t;
471
+ ue(c) ? i.unshift("state") : (i.length !== 1 || !c._customProperties.has(i[0]) || i[0] in c.$state) && i.unshift("$state"), C = !1, t.set(c, i, t.state.value), C = !0;
472
+ }
473
+ }), n.on.editComponentState((t) => {
474
+ if (t.type.startsWith("🍍")) {
475
+ const s = t.type.replace(/^🍍\s*/, ""), c = o._s.get(s);
476
+ if (!c)
477
+ return _(`store "${s}" not found`, "error");
478
+ const { path: i } = t;
479
+ if (i[0] !== "state")
480
+ return _(`Invalid path for store "${s}":
481
+ ${i}
482
+ Only state can be modified.`);
483
+ i[0] = "$state", C = !1, t.set(c, i, t.state.value), C = !0;
484
+ }
485
+ });
486
+ });
487
+ }
488
+ function pt(e, o) {
489
+ Y.includes(z(o.$id)) || Y.push(z(o.$id)), Pe({
490
+ id: "dev.esm.pinia",
491
+ label: "Pinia 🍍",
492
+ logo: "https://pinia.vuejs.org/logo.svg",
493
+ packageName: "pinia",
494
+ homepage: "https://pinia.vuejs.org",
495
+ componentStateTypes: Y,
496
+ app: e,
497
+ settings: {
498
+ logStoreChanges: {
499
+ label: "Notify about new/deleted stores",
500
+ type: "boolean",
501
+ defaultValue: !0
502
+ }
503
+ // useEmojis: {
504
+ // label: 'Use emojis in messages ⚡️',
505
+ // type: 'boolean',
506
+ // defaultValue: true,
507
+ // },
508
+ }
509
+ }, (n) => {
510
+ const t = typeof n.now == "function" ? n.now.bind(n) : Date.now;
511
+ o.$onAction(({ after: i, onError: r, name: l, args: d }) => {
512
+ const g = ke++;
513
+ n.addTimelineEvent({
514
+ layerId: V,
515
+ event: {
516
+ time: t(),
517
+ title: "🛫 " + l,
518
+ subtitle: "start",
519
+ data: {
520
+ store: O(o.$id),
521
+ action: O(l),
522
+ args: d
523
+ },
524
+ groupId: g
525
+ }
526
+ }), i((p) => {
527
+ T = void 0, n.addTimelineEvent({
528
+ layerId: V,
529
+ event: {
530
+ time: t(),
531
+ title: "🛬 " + l,
532
+ subtitle: "end",
533
+ data: {
534
+ store: O(o.$id),
535
+ action: O(l),
536
+ args: d,
537
+ result: p
538
+ },
539
+ groupId: g
540
+ }
541
+ });
542
+ }), r((p) => {
543
+ T = void 0, n.addTimelineEvent({
544
+ layerId: V,
545
+ event: {
546
+ time: t(),
547
+ logType: "error",
548
+ title: "💥 " + l,
549
+ subtitle: "end",
550
+ data: {
551
+ store: O(o.$id),
552
+ action: O(l),
553
+ args: d,
554
+ error: p
555
+ },
556
+ groupId: g
557
+ }
558
+ });
559
+ });
560
+ }, !0), o._customProperties.forEach((i) => {
561
+ we(() => Ge(o[i]), (r, l) => {
562
+ n.notifyComponentUpdate(), n.sendInspectorState(m), C && n.addTimelineEvent({
563
+ layerId: V,
564
+ event: {
565
+ time: t(),
566
+ title: "Change",
567
+ subtitle: i,
568
+ data: {
569
+ newValue: r,
570
+ oldValue: l
571
+ },
572
+ groupId: T
573
+ }
574
+ });
575
+ }, { deep: !0 });
576
+ }), o.$subscribe(({ events: i, type: r }, l) => {
577
+ if (n.notifyComponentUpdate(), n.sendInspectorState(m), !C)
578
+ return;
579
+ const d = {
580
+ time: t(),
581
+ title: ft(r),
582
+ data: dt({ store: O(o.$id) }, lt(i)),
583
+ groupId: T
584
+ };
585
+ r === w.patchFunction ? d.subtitle = "⤵️" : r === w.patchObject ? d.subtitle = "🧩" : i && !Array.isArray(i) && (d.subtitle = i.type), i && (d.data["rawEvent(s)"] = {
586
+ _custom: {
587
+ display: "DebuggerEvent",
588
+ type: "object",
589
+ tooltip: "raw DebuggerEvent[]",
590
+ value: i
591
+ }
592
+ }), n.addTimelineEvent({
593
+ layerId: V,
594
+ event: d
595
+ });
596
+ }, { detached: !0, flush: "sync" });
597
+ const s = o._hotUpdate;
598
+ o._hotUpdate = $((i) => {
599
+ s(i), n.addTimelineEvent({
600
+ layerId: V,
601
+ event: {
602
+ time: t(),
603
+ title: "🔥 " + o.$id,
604
+ subtitle: "HMR update",
605
+ data: {
606
+ store: O(o.$id),
607
+ info: O("HMR update")
608
+ }
609
+ }
610
+ }), n.notifyComponentUpdate(), n.sendInspectorTree(m), n.sendInspectorState(m);
611
+ });
612
+ const { $dispose: c } = o;
613
+ o.$dispose = () => {
614
+ c(), n.notifyComponentUpdate(), n.sendInspectorTree(m), n.sendInspectorState(m), n.getSettings().logStoreChanges && _(`Disposed "${o.$id}" store 🗑`);
615
+ }, n.notifyComponentUpdate(), n.sendInspectorTree(m), n.sendInspectorState(m), n.getSettings().logStoreChanges && _(`"${o.$id}" store installed 🆕`);
616
+ });
617
+ }
618
+ let ke = 0, T;
619
+ function _e(e, o, n) {
620
+ const t = o.reduce((s, c) => (s[c] = L(e)[c], s), {});
621
+ for (const s in t)
622
+ e[s] = function() {
623
+ const c = ke, i = n ? new Proxy(e, {
624
+ get(...l) {
625
+ return T = c, Reflect.get(...l);
626
+ },
627
+ set(...l) {
628
+ return T = c, Reflect.set(...l);
629
+ }
630
+ }) : e;
631
+ T = c;
632
+ const r = t[s].apply(i, arguments);
633
+ return T = void 0, r;
634
+ };
635
+ }
636
+ function gt({ app: e, store: o, options: n }) {
637
+ if (!o.$id.startsWith("__hot:")) {
638
+ if (o._isOptionsAPI = !!n.state, !o._p._testing) {
639
+ _e(o, Object.keys(n.actions), o._isOptionsAPI);
640
+ const t = o._hotUpdate;
641
+ L(o)._hotUpdate = function(s) {
642
+ t.apply(this, arguments), _e(o, Object.keys(s._hmrPayload.actions), !!o._isOptionsAPI);
643
+ };
644
+ }
645
+ pt(
646
+ e,
647
+ // FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
648
+ o
649
+ );
650
+ }
651
+ }
652
+ function Ot() {
653
+ const e = Oe(!0), o = e.run(() => re({}));
654
+ let n = [], t = [];
655
+ const s = $({
656
+ install(c) {
657
+ F(s), s._a = c, c.provide(ce, s), c.config.globalProperties.$pinia = s, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && I && ht(c, s), t.forEach((i) => n.push(i)), t = [];
658
+ },
659
+ use(c) {
660
+ return this._a ? n.push(c) : t.push(c), this;
661
+ },
662
+ _p: n,
663
+ // it's actually undefined here
664
+ // @ts-expect-error
665
+ _a: null,
666
+ _e: e,
667
+ _s: /* @__PURE__ */ new Map(),
668
+ state: o
669
+ });
670
+ return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && I && typeof Proxy < "u" && s.use(gt), s;
671
+ }
672
+ function xe(e, o) {
673
+ for (const n in o) {
674
+ const t = o[n];
675
+ if (!(n in e))
676
+ continue;
677
+ const s = e[n];
678
+ A(s) && A(t) && !R(t) && !q(t) ? e[n] = xe(s, t) : e[n] = t;
679
+ }
680
+ return e;
681
+ }
682
+ const Ce = () => {
683
+ };
684
+ function me(e, o, n, t = Ce) {
685
+ e.push(o);
686
+ const s = () => {
687
+ const c = e.indexOf(o);
688
+ c > -1 && (e.splice(c, 1), t());
689
+ };
690
+ return !n && Je() && We(s), s;
691
+ }
692
+ function k(e, ...o) {
693
+ e.slice().forEach((n) => {
694
+ n(...o);
695
+ });
696
+ }
697
+ const _t = (e) => e(), ye = Symbol(), te = Symbol();
698
+ function oe(e, o) {
699
+ e instanceof Map && o instanceof Map ? o.forEach((n, t) => e.set(t, n)) : e instanceof Set && o instanceof Set && o.forEach(e.add, e);
700
+ for (const n in o) {
701
+ if (!o.hasOwnProperty(n))
702
+ continue;
703
+ const t = o[n], s = e[n];
704
+ A(s) && A(t) && e.hasOwnProperty(n) && !R(t) && !q(t) ? e[n] = oe(s, t) : e[n] = t;
705
+ }
706
+ return e;
707
+ }
708
+ const mt = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
709
+ /* istanbul ignore next */
710
+ Symbol()
711
+ );
712
+ function yt(e) {
713
+ return !A(e) || !e.hasOwnProperty(mt);
714
+ }
715
+ const { assign: S } = Object;
716
+ function ve(e) {
717
+ return !!(R(e) && e.effect);
718
+ }
719
+ function Ee(e, o, n, t) {
720
+ const { state: s, actions: c, getters: i } = o, r = n.state.value[e];
721
+ let l;
722
+ function d() {
723
+ !r && (process.env.NODE_ENV === "production" || !t) && (n.state.value[e] = s ? s() : {});
724
+ const g = process.env.NODE_ENV !== "production" && t ? (
725
+ // use ref() to unwrap refs inside state TODO: check if this is still necessary
726
+ pe(re(s ? s() : {}).value)
727
+ ) : pe(n.state.value[e]);
728
+ return S(g, c, Object.keys(i || {}).reduce((p, y) => (process.env.NODE_ENV !== "production" && y in g && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${y}" in store "${e}".`), p[y] = $(ie(() => {
729
+ F(n);
730
+ const v = n._s.get(e);
731
+ return i[y].call(v, v);
732
+ })), p), {}));
733
+ }
734
+ return l = se(e, d, o, n, t, !0), l;
735
+ }
736
+ function se(e, o, n = {}, t, s, c) {
737
+ let i;
738
+ const r = S({ actions: {} }, n);
739
+ if (process.env.NODE_ENV !== "production" && !t._e.active)
740
+ throw new Error("Pinia destroyed");
741
+ const l = { deep: !0 };
742
+ process.env.NODE_ENV !== "production" && (l.onTrigger = (u) => {
743
+ d ? v = u : d == !1 && !f._hotUpdating && (Array.isArray(v) ? v.push(u) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
744
+ });
745
+ let d, g, p = [], y = [], v;
746
+ const D = t.state.value[e];
747
+ !c && !D && (process.env.NODE_ENV === "production" || !s) && (t.state.value[e] = {});
748
+ const K = re({});
749
+ let le;
750
+ function fe(u) {
751
+ let a;
752
+ d = g = !1, process.env.NODE_ENV !== "production" && (v = []), typeof u == "function" ? (u(t.state.value[e]), a = {
753
+ type: w.patchFunction,
754
+ storeId: e,
755
+ events: v
756
+ }) : (oe(t.state.value[e], u), a = {
757
+ type: w.patchObject,
758
+ payload: u,
759
+ storeId: e,
760
+ events: v
761
+ });
762
+ const h = le = Symbol();
763
+ he().then(() => {
764
+ le === h && (d = !0);
765
+ }), g = !0, k(p, a, t.state.value[e]);
766
+ }
767
+ const Le = c ? function() {
768
+ const { state: a } = n, h = a ? a() : {};
769
+ this.$patch((E) => {
770
+ S(E, h);
771
+ });
772
+ } : (
773
+ /* istanbul ignore next */
774
+ process.env.NODE_ENV !== "production" ? () => {
775
+ throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`);
776
+ } : Ce
777
+ );
778
+ function Re() {
779
+ i.stop(), p = [], y = [], t._s.delete(e);
780
+ }
781
+ const X = (u, a = "") => {
782
+ if (ye in u)
783
+ return u[te] = a, u;
784
+ const h = function() {
785
+ F(t);
786
+ const E = Array.from(arguments), U = [], Z = [];
787
+ function Ue(b) {
788
+ U.push(b);
789
+ }
790
+ function Me(b) {
791
+ Z.push(b);
792
+ }
793
+ k(y, {
794
+ args: E,
795
+ name: h[te],
796
+ store: f,
797
+ after: Ue,
798
+ onError: Me
799
+ });
800
+ let M;
801
+ try {
802
+ M = u.apply(this && this.$id === e ? this : f, E);
803
+ } catch (b) {
804
+ throw k(Z, b), b;
805
+ }
806
+ return M instanceof Promise ? M.then((b) => (k(U, b), b)).catch((b) => (k(Z, b), Promise.reject(b))) : (k(U, M), M);
807
+ };
808
+ return h[ye] = !0, h[te] = a, h;
809
+ }, H = /* @__PURE__ */ $({
810
+ actions: {},
811
+ getters: {},
812
+ state: [],
813
+ hotState: K
814
+ }), de = {
815
+ _p: t,
816
+ // _s: scope,
817
+ $id: e,
818
+ $onAction: me.bind(null, y),
819
+ $patch: fe,
820
+ $reset: Le,
821
+ $subscribe(u, a = {}) {
822
+ const h = me(p, u, a.detached, () => E()), E = i.run(() => we(() => t.state.value[e], (U) => {
823
+ (a.flush === "sync" ? g : d) && u({
824
+ storeId: e,
825
+ type: w.direct,
826
+ events: v
827
+ }, U);
828
+ }, S({}, l, a)));
829
+ return h;
830
+ },
831
+ $dispose: Re
832
+ }, f = He(process.env.NODE_ENV !== "production" || process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && I ? S(
833
+ {
834
+ _hmrPayload: H,
835
+ _customProperties: $(/* @__PURE__ */ new Set())
836
+ // devtools custom properties
837
+ },
838
+ de
839
+ // must be added later
840
+ // setupStore
841
+ ) : de);
842
+ t._s.set(e, f);
843
+ const P = (t._a && t._a.runWithContext || _t)(() => t._e.run(() => (i = Oe()).run(() => o({ action: X }))));
844
+ for (const u in P) {
845
+ const a = P[u];
846
+ if (R(a) && !ve(a) || q(a))
847
+ process.env.NODE_ENV !== "production" && s ? G(K.value, u, J(P, u)) : c || (D && yt(a) && (R(a) ? a.value = D[u] : oe(a, D[u])), t.state.value[e][u] = a), process.env.NODE_ENV !== "production" && H.state.push(u);
848
+ else if (typeof a == "function") {
849
+ const h = process.env.NODE_ENV !== "production" && s ? a : X(a, u);
850
+ P[u] = h, process.env.NODE_ENV !== "production" && (H.actions[u] = a), r.actions[u] = a;
851
+ } else process.env.NODE_ENV !== "production" && ve(a) && (H.getters[u] = c ? (
852
+ // @ts-expect-error
853
+ n.getters[u]
854
+ ) : a, I && (P._getters || // @ts-expect-error: same
855
+ (P._getters = $([]))).push(u));
856
+ }
857
+ if (S(f, P), S(L(f), P), Object.defineProperty(f, "$state", {
858
+ get: () => process.env.NODE_ENV !== "production" && s ? K.value : t.state.value[e],
859
+ set: (u) => {
860
+ if (process.env.NODE_ENV !== "production" && s)
861
+ throw new Error("cannot set hotState");
862
+ fe((a) => {
863
+ S(a, u);
864
+ });
865
+ }
866
+ }), process.env.NODE_ENV !== "production" && (f._hotUpdate = $((u) => {
867
+ f._hotUpdating = !0, u._hmrPayload.state.forEach((a) => {
868
+ if (a in f.$state) {
869
+ const h = u.$state[a], E = f.$state[a];
870
+ typeof h == "object" && A(h) && A(E) ? xe(h, E) : u.$state[a] = E;
871
+ }
872
+ G(f, a, J(u.$state, a));
873
+ }), Object.keys(f.$state).forEach((a) => {
874
+ a in u.$state || ee(f, a);
875
+ }), d = !1, g = !1, t.state.value[e] = J(u._hmrPayload, "hotState"), g = !0, he().then(() => {
876
+ d = !0;
877
+ });
878
+ for (const a in u._hmrPayload.actions) {
879
+ const h = u[a];
880
+ G(f, a, X(h, a));
881
+ }
882
+ for (const a in u._hmrPayload.getters) {
883
+ const h = u._hmrPayload.getters[a], E = c ? (
884
+ // special handling of options api
885
+ ie(() => (F(t), h.call(f, f)))
886
+ ) : h;
887
+ G(f, a, E);
888
+ }
889
+ Object.keys(f._hmrPayload.getters).forEach((a) => {
890
+ a in u._hmrPayload.getters || ee(f, a);
891
+ }), Object.keys(f._hmrPayload.actions).forEach((a) => {
892
+ a in u._hmrPayload.actions || ee(f, a);
893
+ }), f._hmrPayload = u._hmrPayload, f._getters = u._getters, f._hotUpdating = !1;
894
+ })), process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && I) {
895
+ const u = {
896
+ writable: !0,
897
+ configurable: !0,
898
+ // avoid warning on devtools trying to display this property
899
+ enumerable: !1
900
+ };
901
+ ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((a) => {
902
+ Object.defineProperty(f, a, S({ value: f[a] }, u));
903
+ });
904
+ }
905
+ return t._p.forEach((u) => {
906
+ if (process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && I) {
907
+ const a = i.run(() => u({
908
+ store: f,
909
+ app: t._a,
910
+ pinia: t,
911
+ options: r
912
+ }));
913
+ Object.keys(a || {}).forEach((h) => f._customProperties.add(h)), S(f, a);
914
+ } else
915
+ S(f, i.run(() => u({
916
+ store: f,
917
+ app: t._a,
918
+ pinia: t,
919
+ options: r
920
+ })));
921
+ }), process.env.NODE_ENV !== "production" && f.$state && typeof f.$state == "object" && typeof f.$state.constructor == "function" && !f.$state.constructor.toString().includes("[native code]") && console.warn(`[🍍]: The "state" must be a plain object. It cannot be
922
+ state: () => new MyClass()
923
+ Found in store "${f.$id}".`), D && c && n.hydrate && n.hydrate(f.$state, D), d = !0, g = !0, f;
924
+ }
925
+ /*! #__NO_SIDE_EFFECTS__ */
926
+ // @__NO_SIDE_EFFECTS__
927
+ function vt(e, o, n) {
928
+ let t, s;
929
+ const c = typeof o == "function";
930
+ if (typeof e == "string")
931
+ t = e, s = c ? n : o;
932
+ else if (s = e, t = e.id, process.env.NODE_ENV !== "production" && typeof t != "string")
933
+ throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');
934
+ function i(r, l) {
935
+ const d = be();
936
+ if (r = // in test mode, ignore the argument provided as we can always retrieve a
937
+ // pinia instance with getActivePinia()
938
+ (process.env.NODE_ENV === "test" && x && x._testing ? null : r) || (d ? Se(ce, null) : null), r && F(r), process.env.NODE_ENV !== "production" && !x)
939
+ throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
940
+ See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
941
+ This will fail in production.`);
942
+ r = x, r._s.has(t) || (c ? se(t, o, s, r) : Ee(t, s, r), process.env.NODE_ENV !== "production" && (i._pinia = r));
943
+ const g = r._s.get(t);
944
+ if (process.env.NODE_ENV !== "production" && l) {
945
+ const p = "__hot:" + t, y = c ? se(p, o, s, r, !0) : Ee(p, S({}, s), r, !0);
946
+ l._hotUpdate(y), delete r.state.value[p], r._s.delete(p);
947
+ }
948
+ if (process.env.NODE_ENV !== "production" && I) {
949
+ const p = Fe();
950
+ if (p && p.proxy && // avoid adding stores that are just built for hot module replacement
951
+ !l) {
952
+ const y = p.proxy, v = "_pStores" in y ? y._pStores : y._pStores = {};
953
+ v[t] = g;
954
+ }
955
+ }
956
+ return g;
957
+ }
958
+ return i.$id = t, i;
959
+ }
960
+ function wt(e) {
961
+ {
962
+ const o = L(e), n = {};
963
+ for (const t in o) {
964
+ const s = o[t];
965
+ s.effect ? n[t] = // ...
966
+ ie({
967
+ get: () => e[t],
968
+ set(c) {
969
+ e[t] = c;
970
+ }
971
+ }) : (R(s) || q(s)) && (n[t] = // ---
972
+ J(e, t));
973
+ }
974
+ return n;
975
+ }
976
+ }
977
+ const Nt = /* @__PURE__ */ vt("menuState", {
978
+ state: () => ({
979
+ rawMenu: {},
980
+ menus: [],
981
+ activeMenuPath: "",
982
+ activeMenuOpenPaths: [],
983
+ systemKey: "",
984
+ menuTriggerType: "open"
985
+ }),
986
+ actions: {
987
+ setMenus(e) {
988
+ this.menus = e;
989
+ },
990
+ setMenuTriggerType(e) {
991
+ this.menuTriggerType = e;
992
+ },
993
+ setSystemKey(e) {
994
+ this.systemKey = e;
995
+ },
996
+ setActiveMenuPath(e) {
997
+ this.activeMenuPath = e, console.log("setActiveMenuPath:", e);
998
+ },
999
+ setActiveMenuOpenPaths(e) {
1000
+ this.activeMenuOpenPaths = e, console.log("setActiveMenuPath-open:", e);
1001
+ },
1002
+ setRawMenu(e) {
1003
+ this.rawMenu = e;
1004
+ }
1005
+ }
1006
+ });
1007
+ export {
1008
+ Ot as c,
1009
+ vt as d,
1010
+ St as g,
1011
+ wt as s,
1012
+ Nt as u
1013
+ };