@ozdao/prometheus-framework 0.1.55 → 0.1.57
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_virtual/vue.runtime.esm-bundler.cjs +1 -0
- package/dist/_virtual/vue.runtime.esm-bundler.js +6 -0
- package/dist/node_modules/@intlify/core-base/dist/core-base.esm-bundler.cjs +6 -0
- package/dist/node_modules/@intlify/core-base/dist/core-base.esm-bundler.js +887 -0
- package/dist/node_modules/@intlify/devtools-if/dist/devtools-if.esm-bundler.cjs +5 -0
- package/dist/node_modules/@intlify/devtools-if/dist/devtools-if.esm-bundler.js +12 -0
- package/dist/node_modules/@intlify/message-compiler/dist/message-compiler.esm-bundler.cjs +5 -0
- package/dist/node_modules/@intlify/message-compiler/dist/message-compiler.esm-bundler.js +54 -0
- package/dist/node_modules/@intlify/shared/dist/shared.esm-bundler.cjs +6 -0
- package/dist/node_modules/@intlify/shared/dist/shared.esm-bundler.js +109 -0
- package/dist/node_modules/@intlify/vue-devtools/dist/vue-devtools.esm-bundler.cjs +5 -0
- package/dist/node_modules/@intlify/vue-devtools/dist/vue-devtools.esm-bundler.js +19 -0
- package/dist/node_modules/vue-i18n/dist/vue-i18n.runtime.esm-bundler.cjs +5 -0
- package/dist/node_modules/vue-i18n/dist/vue-i18n.runtime.esm-bundler.js +1111 -0
- package/dist/node_modules/vue-router/dist/vue-router.cjs +5 -0
- package/dist/node_modules/vue-router/dist/vue-router.js +37 -0
- package/dist/prometheus-framework/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.cjs +1 -0
- package/dist/prometheus-framework/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +700 -0
- package/dist/prometheus-framework/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.cjs +14 -0
- package/dist/prometheus-framework/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +3863 -0
- package/dist/prometheus-framework/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.cjs +1 -0
- package/dist/prometheus-framework/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +1023 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.cjs +1 -0
- package/dist/prometheus-framework/node_modules/@vue/shared/dist/shared.esm-bundler.js +176 -0
- package/dist/prometheus-framework/node_modules/vue/dist/vue.runtime.esm-bundler.cjs +1 -0
- package/dist/prometheus-framework/node_modules/vue/dist/vue.runtime.esm-bundler.js +163 -0
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +17 -18
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/backoffice/components/pages/Dashboard.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue.js +2 -11
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/modules/mobile/components/Menu/Menu.vue2.js +11 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Members.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/modules/auth/store/auth.js +5 -8
@@ -0,0 +1,700 @@
|
|
1
|
+
import { isSymbol as q, isObject as z, hasChanged as J, toRawType as ae, isArray as w, extend as A, NOOP as Me, hasOwn as H, isIntegerKey as Q, def as Ie, isFunction as Ve, isMap as D, makeMap as ye, capitalize as xe } from "../../shared/dist/shared.esm-bundler.js";
|
2
|
+
function P(e, ...t) {
|
3
|
+
console.warn(`[Vue warn] ${e}`, ...t);
|
4
|
+
}
|
5
|
+
let u;
|
6
|
+
class Ke {
|
7
|
+
constructor(t = !1) {
|
8
|
+
this.detached = t, this._active = !0, this.effects = [], this.cleanups = [], this.parent = u, !t && u && (this.index = (u.scopes || (u.scopes = [])).push(this) - 1);
|
9
|
+
}
|
10
|
+
get active() {
|
11
|
+
return this._active;
|
12
|
+
}
|
13
|
+
run(t) {
|
14
|
+
if (this._active) {
|
15
|
+
const n = u;
|
16
|
+
try {
|
17
|
+
return u = this, t();
|
18
|
+
} finally {
|
19
|
+
u = n;
|
20
|
+
}
|
21
|
+
} else
|
22
|
+
process.env.NODE_ENV !== "production" && P("cannot run an inactive effect scope.");
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* This should only be called on non-detached scopes
|
26
|
+
* @internal
|
27
|
+
*/
|
28
|
+
on() {
|
29
|
+
u = this;
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* This should only be called on non-detached scopes
|
33
|
+
* @internal
|
34
|
+
*/
|
35
|
+
off() {
|
36
|
+
u = this.parent;
|
37
|
+
}
|
38
|
+
stop(t) {
|
39
|
+
if (this._active) {
|
40
|
+
let n, s;
|
41
|
+
for (n = 0, s = this.effects.length; n < s; n++)
|
42
|
+
this.effects[n].stop();
|
43
|
+
for (n = 0, s = this.cleanups.length; n < s; n++)
|
44
|
+
this.cleanups[n]();
|
45
|
+
if (this.scopes)
|
46
|
+
for (n = 0, s = this.scopes.length; n < s; n++)
|
47
|
+
this.scopes[n].stop(!0);
|
48
|
+
if (!this.detached && this.parent && !t) {
|
49
|
+
const r = this.parent.scopes.pop();
|
50
|
+
r && r !== this && (this.parent.scopes[this.index] = r, r.index = this.index);
|
51
|
+
}
|
52
|
+
this.parent = void 0, this._active = !1;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
function Et(e) {
|
57
|
+
return new Ke(e);
|
58
|
+
}
|
59
|
+
function fe(e, t = u) {
|
60
|
+
t && t.active && t.effects.push(e);
|
61
|
+
}
|
62
|
+
function Rt() {
|
63
|
+
return u;
|
64
|
+
}
|
65
|
+
function Nt(e) {
|
66
|
+
u ? u.cleanups.push(e) : process.env.NODE_ENV !== "production" && P("onScopeDispose() is called when there is no active effect scope to be associated with.");
|
67
|
+
}
|
68
|
+
const T = (e) => {
|
69
|
+
const t = new Set(e);
|
70
|
+
return t.w = 0, t.n = 0, t;
|
71
|
+
}, ue = (e) => (e.w & E) > 0, le = (e) => (e.n & E) > 0, Pe = ({ deps: e }) => {
|
72
|
+
if (e.length)
|
73
|
+
for (let t = 0; t < e.length; t++)
|
74
|
+
e[t].w |= E;
|
75
|
+
}, $e = (e) => {
|
76
|
+
const { deps: t } = e;
|
77
|
+
if (t.length) {
|
78
|
+
let n = 0;
|
79
|
+
for (let s = 0; s < t.length; s++) {
|
80
|
+
const r = t[s];
|
81
|
+
ue(r) && !le(r) ? r.delete(e) : t[n++] = r, r.w &= ~E, r.n &= ~E;
|
82
|
+
}
|
83
|
+
t.length = n;
|
84
|
+
}
|
85
|
+
}, $ = /* @__PURE__ */ new WeakMap();
|
86
|
+
let O = 0, E = 1;
|
87
|
+
const B = 30;
|
88
|
+
let f;
|
89
|
+
const m = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), L = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
|
90
|
+
class he {
|
91
|
+
constructor(t, n = null, s) {
|
92
|
+
this.fn = t, this.scheduler = n, this.active = !0, this.deps = [], this.parent = void 0, fe(this, s);
|
93
|
+
}
|
94
|
+
run() {
|
95
|
+
if (!this.active)
|
96
|
+
return this.fn();
|
97
|
+
let t = f, n = g;
|
98
|
+
for (; t; ) {
|
99
|
+
if (t === this)
|
100
|
+
return;
|
101
|
+
t = t.parent;
|
102
|
+
}
|
103
|
+
try {
|
104
|
+
return this.parent = f, f = this, g = !0, E = 1 << ++O, O <= B ? Pe(this) : te(this), this.fn();
|
105
|
+
} finally {
|
106
|
+
O <= B && $e(this), E = 1 << --O, f = this.parent, g = n, this.parent = void 0, this.deferStop && this.stop();
|
107
|
+
}
|
108
|
+
}
|
109
|
+
stop() {
|
110
|
+
f === this ? this.deferStop = !0 : this.active && (te(this), this.onStop && this.onStop(), this.active = !1);
|
111
|
+
}
|
112
|
+
}
|
113
|
+
function te(e) {
|
114
|
+
const { deps: t } = e;
|
115
|
+
if (t.length) {
|
116
|
+
for (let n = 0; n < t.length; n++)
|
117
|
+
t[n].delete(e);
|
118
|
+
t.length = 0;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
function mt(e, t) {
|
122
|
+
e.effect && (e = e.effect.fn);
|
123
|
+
const n = new he(e);
|
124
|
+
t && (A(n, t), t.scope && fe(n, t.scope)), (!t || !t.lazy) && n.run();
|
125
|
+
const s = n.run.bind(n);
|
126
|
+
return s.effect = n, s;
|
127
|
+
}
|
128
|
+
function St(e) {
|
129
|
+
e.effect.stop();
|
130
|
+
}
|
131
|
+
let g = !0;
|
132
|
+
const pe = [];
|
133
|
+
function ze() {
|
134
|
+
pe.push(g), g = !1;
|
135
|
+
}
|
136
|
+
function Ae() {
|
137
|
+
const e = pe.pop();
|
138
|
+
g = e === void 0 ? !0 : e;
|
139
|
+
}
|
140
|
+
function l(e, t, n) {
|
141
|
+
if (g && f) {
|
142
|
+
let s = $.get(e);
|
143
|
+
s || $.set(e, s = /* @__PURE__ */ new Map());
|
144
|
+
let r = s.get(n);
|
145
|
+
r || s.set(n, r = T());
|
146
|
+
const i = process.env.NODE_ENV !== "production" ? { effect: f, target: e, type: t, key: n } : void 0;
|
147
|
+
U(r, i);
|
148
|
+
}
|
149
|
+
}
|
150
|
+
function U(e, t) {
|
151
|
+
let n = !1;
|
152
|
+
O <= B ? le(e) || (e.n |= E, n = !ue(e)) : n = !e.has(f), n && (e.add(f), f.deps.push(e), process.env.NODE_ENV !== "production" && f.onTrack && f.onTrack(Object.assign({ effect: f }, t)));
|
153
|
+
}
|
154
|
+
function R(e, t, n, s, r, i) {
|
155
|
+
const o = $.get(e);
|
156
|
+
if (!o)
|
157
|
+
return;
|
158
|
+
let c = [];
|
159
|
+
if (t === "clear")
|
160
|
+
c = [...o.values()];
|
161
|
+
else if (n === "length" && w(e)) {
|
162
|
+
const _ = Number(s);
|
163
|
+
o.forEach((h, N) => {
|
164
|
+
(N === "length" || N >= _) && c.push(h);
|
165
|
+
});
|
166
|
+
} else
|
167
|
+
switch (n !== void 0 && c.push(o.get(n)), t) {
|
168
|
+
case "add":
|
169
|
+
w(e) ? Q(n) && c.push(o.get("length")) : (c.push(o.get(m)), D(e) && c.push(o.get(L)));
|
170
|
+
break;
|
171
|
+
case "delete":
|
172
|
+
w(e) || (c.push(o.get(m)), D(e) && c.push(o.get(L)));
|
173
|
+
break;
|
174
|
+
case "set":
|
175
|
+
D(e) && c.push(o.get(m));
|
176
|
+
break;
|
177
|
+
}
|
178
|
+
const d = process.env.NODE_ENV !== "production" ? { target: e, type: t, key: n, newValue: s, oldValue: r, oldTarget: i } : void 0;
|
179
|
+
if (c.length === 1)
|
180
|
+
c[0] && (process.env.NODE_ENV !== "production" ? S(c[0], d) : S(c[0]));
|
181
|
+
else {
|
182
|
+
const _ = [];
|
183
|
+
for (const h of c)
|
184
|
+
h && _.push(...h);
|
185
|
+
process.env.NODE_ENV !== "production" ? S(T(_), d) : S(T(_));
|
186
|
+
}
|
187
|
+
}
|
188
|
+
function S(e, t) {
|
189
|
+
const n = w(e) ? e : [...e];
|
190
|
+
for (const s of n)
|
191
|
+
s.computed && ne(s, t);
|
192
|
+
for (const s of n)
|
193
|
+
s.computed || ne(s, t);
|
194
|
+
}
|
195
|
+
function ne(e, t) {
|
196
|
+
(e !== f || e.allowRecurse) && (process.env.NODE_ENV !== "production" && e.onTrigger && e.onTrigger(A({ effect: e }, t)), e.scheduler ? e.scheduler() : e.run());
|
197
|
+
}
|
198
|
+
function He(e, t) {
|
199
|
+
var n;
|
200
|
+
return (n = $.get(e)) === null || n === void 0 ? void 0 : n.get(t);
|
201
|
+
}
|
202
|
+
const je = /* @__PURE__ */ ye("__proto__,__v_isRef,__isVue"), de = new Set(
|
203
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(q)
|
204
|
+
), Ce = /* @__PURE__ */ j(), Ge = /* @__PURE__ */ j(!1, !0), We = /* @__PURE__ */ j(!0), Fe = /* @__PURE__ */ j(!0, !0), se = /* @__PURE__ */ Ye();
|
205
|
+
function Ye() {
|
206
|
+
const e = {};
|
207
|
+
return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
|
208
|
+
e[t] = function(...n) {
|
209
|
+
const s = a(this);
|
210
|
+
for (let i = 0, o = this.length; i < o; i++)
|
211
|
+
l(s, "get", i + "");
|
212
|
+
const r = s[t](...n);
|
213
|
+
return r === -1 || r === !1 ? s[t](...n.map(a)) : r;
|
214
|
+
};
|
215
|
+
}), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
|
216
|
+
e[t] = function(...n) {
|
217
|
+
ze();
|
218
|
+
const s = a(this)[t].apply(this, n);
|
219
|
+
return Ae(), s;
|
220
|
+
};
|
221
|
+
}), e;
|
222
|
+
}
|
223
|
+
function Be(e) {
|
224
|
+
const t = a(this);
|
225
|
+
return l(t, "has", e), t.hasOwnProperty(e);
|
226
|
+
}
|
227
|
+
function j(e = !1, t = !1) {
|
228
|
+
return function(s, r, i) {
|
229
|
+
if (r === "__v_isReactive")
|
230
|
+
return !e;
|
231
|
+
if (r === "__v_isReadonly")
|
232
|
+
return e;
|
233
|
+
if (r === "__v_isShallow")
|
234
|
+
return t;
|
235
|
+
if (r === "__v_raw" && i === (e ? t ? me : Ne : t ? Re : Ee).get(s))
|
236
|
+
return s;
|
237
|
+
const o = w(s);
|
238
|
+
if (!e) {
|
239
|
+
if (o && H(se, r))
|
240
|
+
return Reflect.get(se, r, i);
|
241
|
+
if (r === "hasOwnProperty")
|
242
|
+
return Be;
|
243
|
+
}
|
244
|
+
const c = Reflect.get(s, r, i);
|
245
|
+
return (q(r) ? de.has(r) : je(r)) || (e || l(s, "get", r), t) ? c : p(c) ? o && Q(r) ? c : c.value : z(c) ? e ? be(c) : Se(c) : c;
|
246
|
+
};
|
247
|
+
}
|
248
|
+
const Le = /* @__PURE__ */ _e(), Ue = /* @__PURE__ */ _e(!0);
|
249
|
+
function _e(e = !1) {
|
250
|
+
return function(n, s, r, i) {
|
251
|
+
let o = n[s];
|
252
|
+
if (b(o) && p(o) && !p(r))
|
253
|
+
return !1;
|
254
|
+
if (!e && (!Oe(r) && !b(r) && (o = a(o), r = a(r)), !w(n) && p(o) && !p(r)))
|
255
|
+
return o.value = r, !0;
|
256
|
+
const c = w(n) && Q(s) ? Number(s) < n.length : H(n, s), d = Reflect.set(n, s, r, i);
|
257
|
+
return n === a(i) && (c ? J(r, o) && R(n, "set", s, r, o) : R(n, "add", s, r)), d;
|
258
|
+
};
|
259
|
+
}
|
260
|
+
function qe(e, t) {
|
261
|
+
const n = H(e, t), s = e[t], r = Reflect.deleteProperty(e, t);
|
262
|
+
return r && n && R(e, "delete", t, void 0, s), r;
|
263
|
+
}
|
264
|
+
function Je(e, t) {
|
265
|
+
const n = Reflect.has(e, t);
|
266
|
+
return (!q(t) || !de.has(t)) && l(e, "has", t), n;
|
267
|
+
}
|
268
|
+
function Qe(e) {
|
269
|
+
return l(e, "iterate", w(e) ? "length" : m), Reflect.ownKeys(e);
|
270
|
+
}
|
271
|
+
const we = {
|
272
|
+
get: Ce,
|
273
|
+
set: Le,
|
274
|
+
deleteProperty: qe,
|
275
|
+
has: Je,
|
276
|
+
ownKeys: Qe
|
277
|
+
}, ve = {
|
278
|
+
get: We,
|
279
|
+
set(e, t) {
|
280
|
+
return process.env.NODE_ENV !== "production" && P(`Set operation on key "${String(t)}" failed: target is readonly.`, e), !0;
|
281
|
+
},
|
282
|
+
deleteProperty(e, t) {
|
283
|
+
return process.env.NODE_ENV !== "production" && P(`Delete operation on key "${String(t)}" failed: target is readonly.`, e), !0;
|
284
|
+
}
|
285
|
+
}, Xe = /* @__PURE__ */ A({}, we, {
|
286
|
+
get: Ge,
|
287
|
+
set: Ue
|
288
|
+
}), Ze = /* @__PURE__ */ A({}, ve, {
|
289
|
+
get: Fe
|
290
|
+
}), X = (e) => e, C = (e) => Reflect.getPrototypeOf(e);
|
291
|
+
function I(e, t, n = !1, s = !1) {
|
292
|
+
e = e.__v_raw;
|
293
|
+
const r = a(e), i = a(t);
|
294
|
+
n || (t !== i && l(r, "get", t), l(r, "get", i));
|
295
|
+
const { has: o } = C(r), c = s ? X : n ? k : M;
|
296
|
+
if (o.call(r, t))
|
297
|
+
return c(e.get(t));
|
298
|
+
if (o.call(r, i))
|
299
|
+
return c(e.get(i));
|
300
|
+
e !== r && e.get(t);
|
301
|
+
}
|
302
|
+
function V(e, t = !1) {
|
303
|
+
const n = this.__v_raw, s = a(n), r = a(e);
|
304
|
+
return t || (e !== r && l(s, "has", e), l(s, "has", r)), e === r ? n.has(e) : n.has(e) || n.has(r);
|
305
|
+
}
|
306
|
+
function y(e, t = !1) {
|
307
|
+
return e = e.__v_raw, !t && l(a(e), "iterate", m), Reflect.get(e, "size", e);
|
308
|
+
}
|
309
|
+
function re(e) {
|
310
|
+
e = a(e);
|
311
|
+
const t = a(this);
|
312
|
+
return C(t).has.call(t, e) || (t.add(e), R(t, "add", e, e)), this;
|
313
|
+
}
|
314
|
+
function ie(e, t) {
|
315
|
+
t = a(t);
|
316
|
+
const n = a(this), { has: s, get: r } = C(n);
|
317
|
+
let i = s.call(n, e);
|
318
|
+
i ? process.env.NODE_ENV !== "production" && ge(n, s, e) : (e = a(e), i = s.call(n, e));
|
319
|
+
const o = r.call(n, e);
|
320
|
+
return n.set(e, t), i ? J(t, o) && R(n, "set", e, t, o) : R(n, "add", e, t), this;
|
321
|
+
}
|
322
|
+
function oe(e) {
|
323
|
+
const t = a(this), { has: n, get: s } = C(t);
|
324
|
+
let r = n.call(t, e);
|
325
|
+
r ? process.env.NODE_ENV !== "production" && ge(t, n, e) : (e = a(e), r = n.call(t, e));
|
326
|
+
const i = s ? s.call(t, e) : void 0, o = t.delete(e);
|
327
|
+
return r && R(t, "delete", e, void 0, i), o;
|
328
|
+
}
|
329
|
+
function ce() {
|
330
|
+
const e = a(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? D(e) ? new Map(e) : new Set(e) : void 0, s = e.clear();
|
331
|
+
return t && R(e, "clear", void 0, void 0, n), s;
|
332
|
+
}
|
333
|
+
function x(e, t) {
|
334
|
+
return function(s, r) {
|
335
|
+
const i = this, o = i.__v_raw, c = a(o), d = t ? X : e ? k : M;
|
336
|
+
return !e && l(c, "iterate", m), o.forEach((_, h) => s.call(r, d(_), d(h), i));
|
337
|
+
};
|
338
|
+
}
|
339
|
+
function K(e, t, n) {
|
340
|
+
return function(...s) {
|
341
|
+
const r = this.__v_raw, i = a(r), o = D(i), c = e === "entries" || e === Symbol.iterator && o, d = e === "keys" && o, _ = r[e](...s), h = n ? X : t ? k : M;
|
342
|
+
return !t && l(i, "iterate", d ? L : m), {
|
343
|
+
// iterator protocol
|
344
|
+
next() {
|
345
|
+
const { value: N, done: Y } = _.next();
|
346
|
+
return Y ? { value: N, done: Y } : {
|
347
|
+
value: c ? [h(N[0]), h(N[1])] : h(N),
|
348
|
+
done: Y
|
349
|
+
};
|
350
|
+
},
|
351
|
+
// iterable protocol
|
352
|
+
[Symbol.iterator]() {
|
353
|
+
return this;
|
354
|
+
}
|
355
|
+
};
|
356
|
+
};
|
357
|
+
}
|
358
|
+
function v(e) {
|
359
|
+
return function(...t) {
|
360
|
+
if (process.env.NODE_ENV !== "production") {
|
361
|
+
const n = t[0] ? `on key "${t[0]}" ` : "";
|
362
|
+
console.warn(`${xe(e)} operation ${n}failed: target is readonly.`, a(this));
|
363
|
+
}
|
364
|
+
return e === "delete" ? !1 : this;
|
365
|
+
};
|
366
|
+
}
|
367
|
+
function ke() {
|
368
|
+
const e = {
|
369
|
+
get(i) {
|
370
|
+
return I(this, i);
|
371
|
+
},
|
372
|
+
get size() {
|
373
|
+
return y(this);
|
374
|
+
},
|
375
|
+
has: V,
|
376
|
+
add: re,
|
377
|
+
set: ie,
|
378
|
+
delete: oe,
|
379
|
+
clear: ce,
|
380
|
+
forEach: x(!1, !1)
|
381
|
+
}, t = {
|
382
|
+
get(i) {
|
383
|
+
return I(this, i, !1, !0);
|
384
|
+
},
|
385
|
+
get size() {
|
386
|
+
return y(this);
|
387
|
+
},
|
388
|
+
has: V,
|
389
|
+
add: re,
|
390
|
+
set: ie,
|
391
|
+
delete: oe,
|
392
|
+
clear: ce,
|
393
|
+
forEach: x(!1, !0)
|
394
|
+
}, n = {
|
395
|
+
get(i) {
|
396
|
+
return I(this, i, !0);
|
397
|
+
},
|
398
|
+
get size() {
|
399
|
+
return y(this, !0);
|
400
|
+
},
|
401
|
+
has(i) {
|
402
|
+
return V.call(this, i, !0);
|
403
|
+
},
|
404
|
+
add: v(
|
405
|
+
"add"
|
406
|
+
/* TriggerOpTypes.ADD */
|
407
|
+
),
|
408
|
+
set: v(
|
409
|
+
"set"
|
410
|
+
/* TriggerOpTypes.SET */
|
411
|
+
),
|
412
|
+
delete: v(
|
413
|
+
"delete"
|
414
|
+
/* TriggerOpTypes.DELETE */
|
415
|
+
),
|
416
|
+
clear: v(
|
417
|
+
"clear"
|
418
|
+
/* TriggerOpTypes.CLEAR */
|
419
|
+
),
|
420
|
+
forEach: x(!0, !1)
|
421
|
+
}, s = {
|
422
|
+
get(i) {
|
423
|
+
return I(this, i, !0, !0);
|
424
|
+
},
|
425
|
+
get size() {
|
426
|
+
return y(this, !0);
|
427
|
+
},
|
428
|
+
has(i) {
|
429
|
+
return V.call(this, i, !0);
|
430
|
+
},
|
431
|
+
add: v(
|
432
|
+
"add"
|
433
|
+
/* TriggerOpTypes.ADD */
|
434
|
+
),
|
435
|
+
set: v(
|
436
|
+
"set"
|
437
|
+
/* TriggerOpTypes.SET */
|
438
|
+
),
|
439
|
+
delete: v(
|
440
|
+
"delete"
|
441
|
+
/* TriggerOpTypes.DELETE */
|
442
|
+
),
|
443
|
+
clear: v(
|
444
|
+
"clear"
|
445
|
+
/* TriggerOpTypes.CLEAR */
|
446
|
+
),
|
447
|
+
forEach: x(!0, !0)
|
448
|
+
};
|
449
|
+
return ["keys", "values", "entries", Symbol.iterator].forEach((i) => {
|
450
|
+
e[i] = K(i, !1, !1), n[i] = K(i, !0, !1), t[i] = K(i, !1, !0), s[i] = K(i, !0, !0);
|
451
|
+
}), [
|
452
|
+
e,
|
453
|
+
n,
|
454
|
+
t,
|
455
|
+
s
|
456
|
+
];
|
457
|
+
}
|
458
|
+
const [et, tt, nt, st] = /* @__PURE__ */ ke();
|
459
|
+
function G(e, t) {
|
460
|
+
const n = t ? e ? st : nt : e ? tt : et;
|
461
|
+
return (s, r, i) => r === "__v_isReactive" ? !e : r === "__v_isReadonly" ? e : r === "__v_raw" ? s : Reflect.get(H(n, r) && r in s ? n : s, r, i);
|
462
|
+
}
|
463
|
+
const rt = {
|
464
|
+
get: /* @__PURE__ */ G(!1, !1)
|
465
|
+
}, it = {
|
466
|
+
get: /* @__PURE__ */ G(!1, !0)
|
467
|
+
}, ot = {
|
468
|
+
get: /* @__PURE__ */ G(!0, !1)
|
469
|
+
}, ct = {
|
470
|
+
get: /* @__PURE__ */ G(!0, !0)
|
471
|
+
};
|
472
|
+
function ge(e, t, n) {
|
473
|
+
const s = a(n);
|
474
|
+
if (s !== n && t.call(e, s)) {
|
475
|
+
const r = ae(e);
|
476
|
+
console.warn(`Reactive ${r} contains both the raw and reactive versions of the same object${r === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`);
|
477
|
+
}
|
478
|
+
}
|
479
|
+
const Ee = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakMap();
|
480
|
+
function at(e) {
|
481
|
+
switch (e) {
|
482
|
+
case "Object":
|
483
|
+
case "Array":
|
484
|
+
return 1;
|
485
|
+
case "Map":
|
486
|
+
case "Set":
|
487
|
+
case "WeakMap":
|
488
|
+
case "WeakSet":
|
489
|
+
return 2;
|
490
|
+
default:
|
491
|
+
return 0;
|
492
|
+
}
|
493
|
+
}
|
494
|
+
function ft(e) {
|
495
|
+
return e.__v_skip || !Object.isExtensible(e) ? 0 : at(ae(e));
|
496
|
+
}
|
497
|
+
function Se(e) {
|
498
|
+
return b(e) ? e : W(e, !1, we, rt, Ee);
|
499
|
+
}
|
500
|
+
function bt(e) {
|
501
|
+
return W(e, !1, Xe, it, Re);
|
502
|
+
}
|
503
|
+
function be(e) {
|
504
|
+
return W(e, !0, ve, ot, Ne);
|
505
|
+
}
|
506
|
+
function Ot(e) {
|
507
|
+
return W(e, !0, Ze, ct, me);
|
508
|
+
}
|
509
|
+
function W(e, t, n, s, r) {
|
510
|
+
if (!z(e))
|
511
|
+
return process.env.NODE_ENV !== "production" && console.warn(`value cannot be made reactive: ${String(e)}`), e;
|
512
|
+
if (e.__v_raw && !(t && e.__v_isReactive))
|
513
|
+
return e;
|
514
|
+
const i = r.get(e);
|
515
|
+
if (i)
|
516
|
+
return i;
|
517
|
+
const o = ft(e);
|
518
|
+
if (o === 0)
|
519
|
+
return e;
|
520
|
+
const c = new Proxy(e, o === 2 ? s : n);
|
521
|
+
return r.set(e, c), c;
|
522
|
+
}
|
523
|
+
function Z(e) {
|
524
|
+
return b(e) ? Z(e.__v_raw) : !!(e && e.__v_isReactive);
|
525
|
+
}
|
526
|
+
function b(e) {
|
527
|
+
return !!(e && e.__v_isReadonly);
|
528
|
+
}
|
529
|
+
function Oe(e) {
|
530
|
+
return !!(e && e.__v_isShallow);
|
531
|
+
}
|
532
|
+
function ut(e) {
|
533
|
+
return Z(e) || b(e);
|
534
|
+
}
|
535
|
+
function a(e) {
|
536
|
+
const t = e && e.__v_raw;
|
537
|
+
return t ? a(t) : e;
|
538
|
+
}
|
539
|
+
function Dt(e) {
|
540
|
+
return Ie(e, "__v_skip", !0), e;
|
541
|
+
}
|
542
|
+
const M = (e) => z(e) ? Se(e) : e, k = (e) => z(e) ? be(e) : e;
|
543
|
+
function ee(e) {
|
544
|
+
g && f && (e = a(e), process.env.NODE_ENV !== "production" ? U(e.dep || (e.dep = T()), {
|
545
|
+
target: e,
|
546
|
+
type: "get",
|
547
|
+
key: "value"
|
548
|
+
}) : U(e.dep || (e.dep = T())));
|
549
|
+
}
|
550
|
+
function F(e, t) {
|
551
|
+
e = a(e);
|
552
|
+
const n = e.dep;
|
553
|
+
n && (process.env.NODE_ENV !== "production" ? S(n, {
|
554
|
+
target: e,
|
555
|
+
type: "set",
|
556
|
+
key: "value",
|
557
|
+
newValue: t
|
558
|
+
}) : S(n));
|
559
|
+
}
|
560
|
+
function p(e) {
|
561
|
+
return !!(e && e.__v_isRef === !0);
|
562
|
+
}
|
563
|
+
function Tt(e) {
|
564
|
+
return De(e, !1);
|
565
|
+
}
|
566
|
+
function Mt(e) {
|
567
|
+
return De(e, !0);
|
568
|
+
}
|
569
|
+
function De(e, t) {
|
570
|
+
return p(e) ? e : new lt(e, t);
|
571
|
+
}
|
572
|
+
class lt {
|
573
|
+
constructor(t, n) {
|
574
|
+
this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : a(t), this._value = n ? t : M(t);
|
575
|
+
}
|
576
|
+
get value() {
|
577
|
+
return ee(this), this._value;
|
578
|
+
}
|
579
|
+
set value(t) {
|
580
|
+
const n = this.__v_isShallow || Oe(t) || b(t);
|
581
|
+
t = n ? t : a(t), J(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : M(t), F(this, t));
|
582
|
+
}
|
583
|
+
}
|
584
|
+
function It(e) {
|
585
|
+
F(e, process.env.NODE_ENV !== "production" ? e.value : void 0);
|
586
|
+
}
|
587
|
+
function ht(e) {
|
588
|
+
return p(e) ? e.value : e;
|
589
|
+
}
|
590
|
+
const pt = {
|
591
|
+
get: (e, t, n) => ht(Reflect.get(e, t, n)),
|
592
|
+
set: (e, t, n, s) => {
|
593
|
+
const r = e[t];
|
594
|
+
return p(r) && !p(n) ? (r.value = n, !0) : Reflect.set(e, t, n, s);
|
595
|
+
}
|
596
|
+
};
|
597
|
+
function Vt(e) {
|
598
|
+
return Z(e) ? e : new Proxy(e, pt);
|
599
|
+
}
|
600
|
+
class dt {
|
601
|
+
constructor(t) {
|
602
|
+
this.dep = void 0, this.__v_isRef = !0;
|
603
|
+
const { get: n, set: s } = t(() => ee(this), () => F(this));
|
604
|
+
this._get = n, this._set = s;
|
605
|
+
}
|
606
|
+
get value() {
|
607
|
+
return this._get();
|
608
|
+
}
|
609
|
+
set value(t) {
|
610
|
+
this._set(t);
|
611
|
+
}
|
612
|
+
}
|
613
|
+
function yt(e) {
|
614
|
+
return new dt(e);
|
615
|
+
}
|
616
|
+
function xt(e) {
|
617
|
+
process.env.NODE_ENV !== "production" && !ut(e) && console.warn("toRefs() expects a reactive object but received a plain one.");
|
618
|
+
const t = w(e) ? new Array(e.length) : {};
|
619
|
+
for (const n in e)
|
620
|
+
t[n] = wt(e, n);
|
621
|
+
return t;
|
622
|
+
}
|
623
|
+
class _t {
|
624
|
+
constructor(t, n, s) {
|
625
|
+
this._object = t, this._key = n, this._defaultValue = s, this.__v_isRef = !0;
|
626
|
+
}
|
627
|
+
get value() {
|
628
|
+
const t = this._object[this._key];
|
629
|
+
return t === void 0 ? this._defaultValue : t;
|
630
|
+
}
|
631
|
+
set value(t) {
|
632
|
+
this._object[this._key] = t;
|
633
|
+
}
|
634
|
+
get dep() {
|
635
|
+
return He(a(this._object), this._key);
|
636
|
+
}
|
637
|
+
}
|
638
|
+
function wt(e, t, n) {
|
639
|
+
const s = e[t];
|
640
|
+
return p(s) ? s : new _t(e, t, n);
|
641
|
+
}
|
642
|
+
var Te;
|
643
|
+
class vt {
|
644
|
+
constructor(t, n, s, r) {
|
645
|
+
this._setter = n, this.dep = void 0, this.__v_isRef = !0, this[Te] = !1, this._dirty = !0, this.effect = new he(t, () => {
|
646
|
+
this._dirty || (this._dirty = !0, F(this));
|
647
|
+
}), this.effect.computed = this, this.effect.active = this._cacheable = !r, this.__v_isReadonly = s;
|
648
|
+
}
|
649
|
+
get value() {
|
650
|
+
const t = a(this);
|
651
|
+
return ee(t), (t._dirty || !t._cacheable) && (t._dirty = !1, t._value = t.effect.run()), t._value;
|
652
|
+
}
|
653
|
+
set value(t) {
|
654
|
+
this._setter(t);
|
655
|
+
}
|
656
|
+
}
|
657
|
+
Te = "__v_isReadonly";
|
658
|
+
function Kt(e, t, n = !1) {
|
659
|
+
let s, r;
|
660
|
+
const i = Ve(e);
|
661
|
+
i ? (s = e, r = process.env.NODE_ENV !== "production" ? () => {
|
662
|
+
console.warn("Write operation failed: computed value is readonly");
|
663
|
+
} : Me) : (s = e.get, r = e.set);
|
664
|
+
const o = new vt(s, r, i || !r, n);
|
665
|
+
return process.env.NODE_ENV !== "production" && t && !n && (o.effect.onTrack = t.onTrack, o.effect.onTrigger = t.onTrigger), o;
|
666
|
+
}
|
667
|
+
export {
|
668
|
+
Ke as EffectScope,
|
669
|
+
m as ITERATE_KEY,
|
670
|
+
he as ReactiveEffect,
|
671
|
+
Kt as computed,
|
672
|
+
yt as customRef,
|
673
|
+
mt as effect,
|
674
|
+
Et as effectScope,
|
675
|
+
Rt as getCurrentScope,
|
676
|
+
ut as isProxy,
|
677
|
+
Z as isReactive,
|
678
|
+
b as isReadonly,
|
679
|
+
p as isRef,
|
680
|
+
Oe as isShallow,
|
681
|
+
Dt as markRaw,
|
682
|
+
Nt as onScopeDispose,
|
683
|
+
ze as pauseTracking,
|
684
|
+
Vt as proxyRefs,
|
685
|
+
Se as reactive,
|
686
|
+
be as readonly,
|
687
|
+
Tt as ref,
|
688
|
+
Ae as resetTracking,
|
689
|
+
bt as shallowReactive,
|
690
|
+
Ot as shallowReadonly,
|
691
|
+
Mt as shallowRef,
|
692
|
+
St as stop,
|
693
|
+
a as toRaw,
|
694
|
+
wt as toRef,
|
695
|
+
xt as toRefs,
|
696
|
+
l as track,
|
697
|
+
R as trigger,
|
698
|
+
It as triggerRef,
|
699
|
+
ht as unref
|
700
|
+
};
|