pinia-plugin-subscription 0.0.0-beta.13 → 0.0.0-beta.14
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineStore as
|
|
1
|
+
import { defineStore as $t } from "pinia";
|
|
2
2
|
class Pn {
|
|
3
3
|
_console;
|
|
4
4
|
_createInstance;
|
|
@@ -142,10 +142,10 @@ function Fn(t, e, n) {
|
|
|
142
142
|
);
|
|
143
143
|
}
|
|
144
144
|
function de(t, e, n) {
|
|
145
|
-
return
|
|
145
|
+
return $t(t, e, n);
|
|
146
146
|
}
|
|
147
147
|
function _e(t, e, n) {
|
|
148
|
-
return n && (e = { ...e, ...n ?? {} }),
|
|
148
|
+
return n && (e = { ...e, ...n ?? {} }), $t(t, e);
|
|
149
149
|
}
|
|
150
150
|
const ge = /* @__PURE__ */ new Set(["_", "$"]);
|
|
151
151
|
function xt(t) {
|
|
@@ -171,7 +171,7 @@ class be extends Dt {
|
|
|
171
171
|
return this._subscriptions;
|
|
172
172
|
}
|
|
173
173
|
constructor(e, n) {
|
|
174
|
-
super(!!n?.includes(wt), pe), this._pluginDebug = Array.isArray(n) ? n : void 0, this._subscribers = e;
|
|
174
|
+
super(Array.isArray(n) && !!n?.includes(wt), pe), this._pluginDebug = Array.isArray(n) ? n : void 0, this._subscribers = e;
|
|
175
175
|
}
|
|
176
176
|
addResetStoreCallback(e) {
|
|
177
177
|
this._resetStoreCallback.push(e);
|
|
@@ -274,7 +274,7 @@ const at = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {};
|
|
|
274
274
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
275
275
|
const Tt = () => {
|
|
276
276
|
}, ye = (t) => t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && // uppercase letter
|
|
277
|
-
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), F = Object.assign, Se = Object.prototype.hasOwnProperty, ut = (t, e) => Se.call(t, e), d = Array.isArray, K = (t) => Mt(t) === "[object Map]",
|
|
277
|
+
(t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97), F = Object.assign, Se = Object.prototype.hasOwnProperty, ut = (t, e) => Se.call(t, e), d = Array.isArray, K = (t) => Mt(t) === "[object Map]", A = (t) => typeof t == "function", N = (t) => typeof t == "string", U = (t) => typeof t == "symbol", _ = (t) => t !== null && typeof t == "object", Oe = Object.prototype.toString, Mt = (t) => Oe.call(t), Pt = (t) => Mt(t).slice(8, -1), Z = (t) => N(t) && t !== "NaN" && t[0] !== "-" && "" + parseInt(t, 10) === t, Ee = (t) => {
|
|
278
278
|
const e = /* @__PURE__ */ Object.create(null);
|
|
279
279
|
return ((n) => e[n] || (e[n] = t(n)));
|
|
280
280
|
}, we = Ee((t) => t.charAt(0).toUpperCase() + t.slice(1)), dt = (t, e) => !Object.is(t, e);
|
|
@@ -418,7 +418,7 @@ function I(t, e, n, r, s, o) {
|
|
|
418
418
|
}
|
|
419
419
|
mt();
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function Ae(t, e) {
|
|
422
422
|
const n = jt.get(t);
|
|
423
423
|
return n && n.get(e);
|
|
424
424
|
}
|
|
@@ -432,7 +432,7 @@ function yt(t) {
|
|
|
432
432
|
function R(t, e) {
|
|
433
433
|
return O(t) ? St(t) ? L(v(e)) : L(e) : v(e);
|
|
434
434
|
}
|
|
435
|
-
const
|
|
435
|
+
const $e = {
|
|
436
436
|
__proto__: null,
|
|
437
437
|
[Symbol.iterator]() {
|
|
438
438
|
return st(this, Symbol.iterator, (t) => R(this, t));
|
|
@@ -609,7 +609,7 @@ class Kt {
|
|
|
609
609
|
const i = d(e);
|
|
610
610
|
if (!s) {
|
|
611
611
|
let a;
|
|
612
|
-
if (i && (a =
|
|
612
|
+
if (i && (a = $e[n]))
|
|
613
613
|
return a;
|
|
614
614
|
if (n === "hasOwnProperty")
|
|
615
615
|
return xe;
|
|
@@ -945,7 +945,7 @@ class Ye {
|
|
|
945
945
|
this._object[this._key] = e;
|
|
946
946
|
}
|
|
947
947
|
get dep() {
|
|
948
|
-
return
|
|
948
|
+
return Ae(this._raw, this._key);
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
951
|
class Ge {
|
|
@@ -957,23 +957,23 @@ class Ge {
|
|
|
957
957
|
}
|
|
958
958
|
}
|
|
959
959
|
function Qe(t, e, n) {
|
|
960
|
-
return g(t) ? t :
|
|
960
|
+
return g(t) ? t : A(t) ? new Ge(t) : _(t) && arguments.length > 1 ? Xe(t, e, n) : qt(t);
|
|
961
961
|
}
|
|
962
962
|
function Xe(t, e, n) {
|
|
963
963
|
return new Ye(t, e, n);
|
|
964
964
|
}
|
|
965
|
-
const
|
|
965
|
+
const $ = [];
|
|
966
966
|
function Ze(t) {
|
|
967
|
-
|
|
967
|
+
$.push(t);
|
|
968
968
|
}
|
|
969
969
|
function tn() {
|
|
970
|
-
|
|
970
|
+
$.pop();
|
|
971
971
|
}
|
|
972
972
|
let ot = !1;
|
|
973
973
|
function P(t, ...e) {
|
|
974
974
|
if (ot) return;
|
|
975
975
|
ot = !0;
|
|
976
|
-
const n =
|
|
976
|
+
const n = $.length ? $[$.length - 1].component : null, r = n && n.appContext.config.warnHandler, s = en();
|
|
977
977
|
if (r)
|
|
978
978
|
Ot(
|
|
979
979
|
r,
|
|
@@ -1001,7 +1001,7 @@ function P(t, ...e) {
|
|
|
1001
1001
|
ot = !1;
|
|
1002
1002
|
}
|
|
1003
1003
|
function en() {
|
|
1004
|
-
let t =
|
|
1004
|
+
let t = $[$.length - 1];
|
|
1005
1005
|
if (!t)
|
|
1006
1006
|
return [];
|
|
1007
1007
|
const e = [];
|
|
@@ -1038,7 +1038,7 @@ function rn(t) {
|
|
|
1038
1038
|
}), n.length > 3 && e.push(" ..."), e;
|
|
1039
1039
|
}
|
|
1040
1040
|
function Jt(t, e, n) {
|
|
1041
|
-
return N(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : g(e) ? (e = Jt(t, f(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) :
|
|
1041
|
+
return N(e) ? (e = JSON.stringify(e), n ? e : [`${t}=${e}`]) : typeof e == "number" || typeof e == "boolean" || e == null ? n ? e : [`${t}=${e}`] : g(e) ? (e = Jt(t, f(e.value), !0), n ? e : [`${t}=Ref<`, e, ">"]) : A(e) ? [`${t}=fn${e.name ? `<${e.name}>` : ""}`] : (e = f(e), n ? e : [`${t}=`, e]);
|
|
1042
1042
|
}
|
|
1043
1043
|
const Bt = {
|
|
1044
1044
|
sp: "serverPrefetch hook",
|
|
@@ -1223,12 +1223,12 @@ function dn(t, e) {
|
|
|
1223
1223
|
function _n(t, e) {
|
|
1224
1224
|
const n = Y.get(t);
|
|
1225
1225
|
if (!n) return;
|
|
1226
|
-
e = G(e),
|
|
1226
|
+
e = G(e), At(n.initialDef, e);
|
|
1227
1227
|
const r = [...n.instances];
|
|
1228
1228
|
for (let s = 0; s < r.length; s++) {
|
|
1229
1229
|
const o = r[s], i = G(o.type);
|
|
1230
1230
|
let c = it.get(i);
|
|
1231
|
-
c || (i !== n.initialDef &&
|
|
1231
|
+
c || (i !== n.initialDef && At(i, e), it.set(i, c = /* @__PURE__ */ new Set())), c.add(o), o.appContext.propsCache.delete(o.type), o.appContext.emitsCache.delete(o.type), o.appContext.optionsCache.delete(o.type), o.ceReload ? (c.add(o), o.ceReload(e.styles), c.delete(o)) : o.parent ? un(() => {
|
|
1232
1232
|
o.job.flags & 8 || (o.parent.update(), c.delete(o));
|
|
1233
1233
|
}) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn(
|
|
1234
1234
|
"[HMR] Root or manually mounted instance modified. Full reload required."
|
|
@@ -1238,7 +1238,7 @@ function _n(t, e) {
|
|
|
1238
1238
|
it.clear();
|
|
1239
1239
|
});
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1241
|
+
function At(t, e) {
|
|
1242
1242
|
F(t, e);
|
|
1243
1243
|
for (const n in t)
|
|
1244
1244
|
n !== "__file" && !(n in e) && delete t[n];
|
|
@@ -1287,7 +1287,7 @@ const vn = (...t) => re(
|
|
|
1287
1287
|
ref: t,
|
|
1288
1288
|
ref_key: e,
|
|
1289
1289
|
ref_for: n
|
|
1290
|
-
}) => (typeof t == "number" && (t = "" + t), t != null ? N(t) || g(t) ||
|
|
1290
|
+
}) => (typeof t == "number" && (t = "" + t), t != null ? N(t) || g(t) || A(t) ? { i: Q, r: t, k: e, f: !!n } : t : null);
|
|
1291
1291
|
function Rn(t, e = null, n = null, r = 0, s = null, o = t === ne ? 0 : 1, i = !1, c = !1) {
|
|
1292
1292
|
const a = {
|
|
1293
1293
|
__v_isVNode: !0,
|
|
@@ -1336,7 +1336,7 @@ function re(t, e = null, n = null, r = 0, s = null, o = !1) {
|
|
|
1336
1336
|
let { class: c, style: a } = e;
|
|
1337
1337
|
c && !N(c) && (e.class = gt(c)), _(a) && (H(a) && !d(a) && (a = F({}, a)), e.style = _t(a));
|
|
1338
1338
|
}
|
|
1339
|
-
const i = N(t) ? 1 : On(t) ? 128 : bn(t) ? 64 : _(t) ? 4 :
|
|
1339
|
+
const i = N(t) ? 1 : On(t) ? 128 : bn(t) ? 64 : _(t) ? 4 : A(t) ? 2 : 0;
|
|
1340
1340
|
return process.env.NODE_ENV !== "production" && i & 4 && H(t) && (t = f(t), P(
|
|
1341
1341
|
"Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",
|
|
1342
1342
|
`
|
|
@@ -1357,7 +1357,7 @@ function In(t) {
|
|
|
1357
1357
|
return t ? H(t) || ee(t) ? F({}, t) : t : null;
|
|
1358
1358
|
}
|
|
1359
1359
|
function X(t, e, n = !1, r = !1) {
|
|
1360
|
-
const { props: s, ref: o, patchFlag: i, children: c, transition: a } = t, u = e ?
|
|
1360
|
+
const { props: s, ref: o, patchFlag: i, children: c, transition: a } = t, u = e ? $n(s || {}, e) : s, p = {
|
|
1361
1361
|
__v_isVNode: !0,
|
|
1362
1362
|
__v_skip: !0,
|
|
1363
1363
|
type: t.type,
|
|
@@ -1410,7 +1410,7 @@ function oe(t) {
|
|
|
1410
1410
|
const e = X(t);
|
|
1411
1411
|
return d(t.children) && (e.children = t.children.map(oe)), e;
|
|
1412
1412
|
}
|
|
1413
|
-
function
|
|
1413
|
+
function An(t = " ", e = 0) {
|
|
1414
1414
|
return Cn(En, null, t, e);
|
|
1415
1415
|
}
|
|
1416
1416
|
function Et(t, e) {
|
|
@@ -1427,10 +1427,10 @@ function Et(t, e) {
|
|
|
1427
1427
|
return;
|
|
1428
1428
|
} else
|
|
1429
1429
|
n = 32, !e._ && !ee(e) && (e._ctx = Q);
|
|
1430
|
-
else
|
|
1430
|
+
else A(e) ? (e = { default: e, _ctx: Q }, n = 32) : (e = String(e), r & 64 ? (n = 16, e = [An(e)]) : n = 8);
|
|
1431
1431
|
t.children = e, t.shapeFlag |= n;
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function $n(...t) {
|
|
1434
1434
|
const e = {};
|
|
1435
1435
|
for (let n = 0; n < t.length; n++) {
|
|
1436
1436
|
const r = t[n];
|
|
@@ -1464,7 +1464,7 @@ function An(...t) {
|
|
|
1464
1464
|
process.env.NODE_ENV;
|
|
1465
1465
|
const Dn = /(?:^|[-_])\w/g, Vn = (t) => t.replace(Dn, (e) => e.toUpperCase()).replace(/[-_]/g, "");
|
|
1466
1466
|
function ie(t, e = !0) {
|
|
1467
|
-
return
|
|
1467
|
+
return A(t) ? t.displayName || t.name : t.name || e && t.__name;
|
|
1468
1468
|
}
|
|
1469
1469
|
function ce(t, e, n = !1) {
|
|
1470
1470
|
let r = ie(e);
|
|
@@ -1485,7 +1485,7 @@ function ce(t, e, n = !1) {
|
|
|
1485
1485
|
return r ? Vn(r) : n ? "App" : "Anonymous";
|
|
1486
1486
|
}
|
|
1487
1487
|
function le(t) {
|
|
1488
|
-
return
|
|
1488
|
+
return A(t) && "__vccOpts" in t;
|
|
1489
1489
|
}
|
|
1490
1490
|
function xn() {
|
|
1491
1491
|
if (process.env.NODE_ENV === "production" || typeof window > "u")
|
|
@@ -1590,7 +1590,7 @@ function xn() {
|
|
|
1590
1590
|
}
|
|
1591
1591
|
function a(l, h) {
|
|
1592
1592
|
const b = l.type;
|
|
1593
|
-
if (
|
|
1593
|
+
if (A(b))
|
|
1594
1594
|
return;
|
|
1595
1595
|
const S = {};
|
|
1596
1596
|
for (const j in l.ctx)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(_,V){typeof exports=="object"&&typeof module<"u"?V(exports,require("pinia")):typeof define=="function"&&define.amd?define(["exports","pinia"],V):(_=typeof globalThis<"u"?globalThis:_||self,V(_["pinia-plugin-subscription"]={},_.Pinia))})(this,(function(_,V){"use strict";class he{_console;_createInstance;_name;_pluginOptions;_storeInstance;_resetStoreCallback;_storeOnActionSubscription;_storeMutationSubscription;_subscriptions;pluginCreated;get console(){return this._console??console}get name(){return this._name}get pluginOptions(){return this._pluginOptions??{}}set pluginOptions(e){this._pluginOptions=e}get resetStoreCallback(){return this._resetStoreCallback}get storeOnActionSubscription(){return this._storeOnActionSubscription}get storeMutationSubscription(){return this._storeMutationSubscription}get subscriptions(){return this._subscriptions}set subscriptions(e){this._subscriptions=e}constructor(e,n,r){this._name=e,this._createInstance=n,r&&(this._console=r)}invoke({store:e,options:n},r){this._storeInstance=this._createInstance(e,{...n,...this.pluginOptions},r,this.console),this._storeInstance&&(this._subscriptions=this._storeInstance.getSubscriptions(),this._storeMutationSubscription=this._storeInstance.storeSubscribe,this._storeOnActionSubscription=this._storeInstance.onAction,this.pluginCreated&&this.pluginCreated(e))}}class Rt{_console;_debug=!1;get console(){return this._console??console}set console(e){this._console=e}get debug(){return this._debug}set debug(e){this._debug=e}constructor(e,n){this._debug=e,n&&(this._console=n)}debugLog(...e){this._debug&&(Array.isArray(e)&&(e[0]=`${this._className} - ${e[0]}`),this.console.log(...e))}logError(...e){this.console.error(...e)}}const rt="pinia-plugin-subscription",pe=(t,e="white")=>`background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;function de(t,e){if(!t)throw new Error("Style instructions are required");console.log("%c%s",t,e.shift(),...e)}class Ct{_bgColor="#ffec73";_color="green";_icon="🍍⚡";_errorBgColor="#d24545";_errorColor="white";_errorIcon="🍍⚠️";_styles={error:{bgColor:this._errorBgColor,color:this._errorColor,icon:this._errorIcon},info:{bgColor:this._bgColor,color:this._color,icon:this._icon}};formatMessage(e,n){return` [${n} ${rt}] - ${e} `}generateStyle(e){return pe(e.bgColor,e.color)}getStyleDefinition(e){return this._styles[e??"info"]}log(...e){this.useLog(this.getStyleDefinition(),e)}error(...e){this.useLog(this.getStyleDefinition("error"),e)}rebuildArgs(e,n){if(typeof e=="string")return[this.formatMessage(e,n)];if(Array.isArray(e))return[this.formatMessage(e.shift(),n),...e??[]]}useLog(e,n){de(this.generateStyle(e),this.rebuildArgs(n,e.icon))}}class _e extends Ct{_pluginName=rt}const ge=new _e;function be(t,e,n){const r=n?{storeOptions:n}:{};return typeof e=="function"?me(t,e,r):ye(t,e,r)}function me(t,e,n){return V.defineStore(t,e,n)}function ye(t,e,n){return n&&(e={...e,...n??{}}),V.defineStore(t,e)}const Se=new Set(["_","$"]);function It(t){return Se.has(t[0])}function J(t){return t?Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:typeof t=="string"?t.trim()==="":!1:!(typeof t=="boolean"||typeof t=="number")}const $t="PluginSubscription";class At extends Rt{_className=$t;_pluginDebug;_resetStoreCallback=[];_subscribers=[];_subscribersDelivered=new Set;_subscriptions=[];_subscriptionsDelivered=new Set;set subscribers(e){this._subscribers=e}get subscriptions(){if(!J(this._subscriptions))return this._subscriptions}constructor(e,n){super(!!n?.includes($t),ge),this._pluginDebug=Array.isArray(n)?n:void 0,this._subscribers=e}addResetStoreCallback(e){this._resetStoreCallback.push(e)}definePluginDebug(e){return!!this._pluginDebug?.includes(e.name)}executeResetStoreCallbacks(e){this._resetStoreCallback.forEach(n=>n(e))}plugin({store:e,options:n}){if(this._subscribers.length){this.debugLog(`plugin() - ${e.$id}`,["subscriber:",this._subscribers,"store:",e,"options:",n]);try{this._subscribers.forEach(r=>{this._subscribersDelivered.has(`${r.name}-${e.$id}`)||(r.invoke({store:e,options:n},this.definePluginDebug(r)),this._subscribersDelivered.add(`${r.name}-${e.$id}`),r.subscriptions&&this.subscriptionDelivery({store:e,options:n},r.subscriptions),r.storeMutationSubscription&&this.storeMutationSubscription(r.storeMutationSubscription),r.storeOnActionSubscription&&this.storeOnActionSubscription(r.storeOnActionSubscription),r.resetStoreCallback&&this.addResetStoreCallback(r.resetStoreCallback))}),this.rewriteResetStore({store:e},Object.assign({},e.$state),Object.assign({},e))}catch(r){this.logError(r,e,n)}}}rewriteResetStore({store:e},n,r){e.$reset=()=>{this.executeResetStoreCallbacks(e),Object.keys(r).forEach(s=>{It(s)||(e[s]=n[s]??r[s])}),e.$patch(JSON.parse(JSON.stringify(n)))}}storeOnActionSubscription(e){const{store:n,callback:r}=e();n.$onAction(({after:s,args:i,name:o})=>{this.debugLog(`storeOnActionSubscription ${n.$id}`,{after:s,args:i,name:o,store:n}),r({after:s,args:i,name:o})})}storeMutationSubscription(e){const{store:n,callback:r}=e();n.$subscribe(s=>{this.debugLog(`$subscribe ${n.$id}`,{mutation:s,store:n}),r(s)})}subscriptionDelivery({store:e,options:n},r){Object.entries(r).forEach(([s,i])=>{try{if(this._subscriptionsDelivered.has(`${s}-${e.$id}`))return;const{subscription:o,subscriptionOptions:c,stores:u}=i;this.debugLog(`subscriptionDelivery() - store: ${e.$id}`,["pluginName:",s,"subscription:",o,"options:",i]);const a={storeOptions:{...n?.storeOptions??{},...c}};o.invoke({store:e,options:{...n,...a}},this.debug),this._subscriptionsDelivered.add(`${s}-${e.$id}`),J(u)||u?.forEach(p=>o.invoke({store:p,options:{...n,...a,...p?.storeOptions??{}}},this.debug))}catch(o){this.logError("subscriptionDelivery()",o,e,n)}})}}function Oe(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const it=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const Dt=()=>{},Ee=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),T=Object.assign,we=Object.prototype.hasOwnProperty,ot=(t,e)=>we.call(t,e),d=Array.isArray,K=t=>Vt(t)==="[object Map]",C=t=>typeof t=="function",w=t=>typeof t=="string",H=t=>typeof t=="symbol",g=t=>t!==null&&typeof t=="object",Ne=Object.prototype.toString,Vt=t=>Ne.call(t),Tt=t=>Vt(t).slice(8,-1),B=t=>w(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ve=(t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))})(t=>t.charAt(0).toUpperCase()+t.slice(1)),ct=(t,e)=>!Object.is(t,e);let xt;const Y=()=>xt||(xt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function lt(t){if(d(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],s=w(r)?$e(r):lt(r);if(s)for(const i in s)e[i]=s[i]}return e}else if(w(t)||g(t))return t}const Re=/;(?![^(]*\))/g,Ce=/:([^]+)/,Ie=/\/\*[^]*?\*\//g;function $e(t){const e={};return t.replace(Ie,"").split(Re).forEach(n=>{if(n){const r=n.split(Ce);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function ut(t){let e="";if(w(t))e=t;else if(d(t))for(let n=0;n<t.length;n++){const r=ut(t[n]);r&&(e+=r+" ")}else if(g(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function x(t,...e){console.warn(`[Vue warn] ${t}`,...e)}let Pt=0,at;function ft(){Pt++}function ht(){if(--Pt>0)return;let t;for(;at;){let e=at;for(at=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}class Ae{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(e){}trigger(e){this.version++,this.notify(e)}notify(e){ft();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(T({effect:n.sub},e));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ht()}}}const Mt=new WeakMap,pt=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),Ft=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),jt=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function Kn(t,e,n){}function I(t,e,n,r,s,i){const o=Mt.get(t);if(!o)return;const c=u=>{u&&(process.env.NODE_ENV!=="production"?u.trigger({target:t,type:e,key:n,newValue:r,oldValue:s,oldTarget:i}):u.trigger())};if(ft(),e==="clear")o.forEach(c);else{const u=d(t),a=u&&B(n);if(u&&n==="length"){const p=Number(r);o.forEach((l,h)=>{(h==="length"||h===jt||!H(h)&&h>=p)&&c(l)})}else switch((n!==void 0||o.has(void 0))&&c(o.get(n)),a&&c(o.get(jt)),e){case"add":u?a&&c(o.get("length")):(c(o.get(pt)),K(t)&&c(o.get(Ft)));break;case"delete":u||(c(o.get(pt)),K(t)&&c(o.get(Ft)));break;case"set":K(t)&&c(o.get(pt));break}}ht()}function De(t,e){const n=Mt.get(t);return n&&n.get(e)}function P(t){const e=f(t);return e===t||m(t)?e:e.map(v)}function dt(t){return t=f(t),t}function $(t,e){return O(t)?yt(t)?U(v(e)):U(e):v(e)}const Ve={__proto__:null,[Symbol.iterator](){return _t(this,Symbol.iterator,t=>$(this,t))},concat(...t){return P(this).concat(...t.map(e=>d(e)?P(e):e))},entries(){return _t(this,"entries",t=>(t[1]=$(this,t[1]),t))},every(t,e){return N(this,"every",t,e,void 0,arguments)},filter(t,e){return N(this,"filter",t,e,n=>n.map(r=>$(this,r)),arguments)},find(t,e){return N(this,"find",t,e,n=>$(this,n),arguments)},findIndex(t,e){return N(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return N(this,"findLast",t,e,n=>$(this,n),arguments)},findLastIndex(t,e){return N(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return N(this,"forEach",t,e,void 0,arguments)},includes(...t){return gt(this,"includes",t)},indexOf(...t){return gt(this,"indexOf",t)},join(t){return P(this).join(t)},lastIndexOf(...t){return gt(this,"lastIndexOf",t)},map(t,e){return N(this,"map",t,e,void 0,arguments)},pop(){return L(this,"pop")},push(...t){return L(this,"push",t)},reduce(t,...e){return kt(this,"reduce",t,e)},reduceRight(t,...e){return kt(this,"reduceRight",t,e)},shift(){return L(this,"shift")},some(t,e){return N(this,"some",t,e,void 0,arguments)},splice(...t){return L(this,"splice",t)},toReversed(){return P(this).toReversed()},toSorted(t){return P(this).toSorted(t)},toSpliced(...t){return P(this).toSpliced(...t)},unshift(...t){return L(this,"unshift",t)},values(){return _t(this,"values",t=>$(this,t))}};function _t(t,e,n){const r=dt(t),s=r[e]();return r!==t&&!m(t)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const Te=Array.prototype;function N(t,e,n,r,s,i){const o=dt(t),c=o!==t&&!m(t),u=o[e];if(u!==Te[e]){const l=u.apply(t,i);return c?v(l):l}let a=n;o!==t&&(c?a=function(l,h){return n.call(this,$(t,l),h,t)}:n.length>2&&(a=function(l,h){return n.call(this,l,h,t)}));const p=u.call(o,a,r);return c&&s?s(p):p}function kt(t,e,n,r){const s=dt(t);let i=n;return s!==t&&(m(t)?n.length>3&&(i=function(o,c,u){return n.call(this,o,c,u,t)}):i=function(o,c,u){return n.call(this,o,$(t,c),u,t)}),s[e](i,...r)}function gt(t,e,n){const r=f(t),s=r[e](...n);return(s===-1||s===!1)&&z(n[0])?(n[0]=f(n[0]),r[e](...n)):s}function L(t,e,n=[]){ft();const r=f(t)[e].apply(t,n);return ht(),r}const xe=Oe("__proto__,__v_isRef,__isVue"),Kt=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(H));function Pe(t){return H(t)||(t=String(t)),f(this).hasOwnProperty(t)}class Ht{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?We:Wt:i?Ue:Ut).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=d(e);if(!s){let u;if(o&&(u=Ve[n]))return u;if(n==="hasOwnProperty")return Pe}const c=Reflect.get(e,n,b(e)?e:r);if((H(n)?Kt.has(n):xe(n))||i)return c;if(b(c)){const u=o&&B(n)?c:c.value;return s&&g(u)?mt(u):u}return g(c)?s?mt(c):qt(c):c}}class Me extends Ht{constructor(e=!1){super(!1,e)}set(e,n,r,s){let i=e[n];const o=d(e)&&B(n);if(!this._isShallow){const a=O(i);if(!m(r)&&!O(r)&&(i=f(i),r=f(r)),!o&&b(i)&&!b(r))return a?(process.env.NODE_ENV!=="production"&&x(`Set operation on key "${String(n)}" failed: target is readonly.`,e[n]),!0):(i.value=r,!0)}const c=o?Number(n)<e.length:ot(e,n),u=Reflect.set(e,n,r,b(e)?e:s);return e===f(s)&&(c?ct(r,i)&&I(e,"set",n,r,i):I(e,"add",n,r)),u}deleteProperty(e,n){const r=ot(e,n),s=e[n],i=Reflect.deleteProperty(e,n);return i&&r&&I(e,"delete",n,void 0,s),i}has(e,n){const r=Reflect.has(e,n);return!H(n)||Kt.has(n),r}ownKeys(e){return Reflect.ownKeys(e)}}class Fe extends Ht{constructor(e=!1){super(!0,e)}set(e,n){return process.env.NODE_ENV!=="production"&&x(`Set operation on key "${String(n)}" failed: target is readonly.`,e),!0}deleteProperty(e,n){return process.env.NODE_ENV!=="production"&&x(`Delete operation on key "${String(n)}" failed: target is readonly.`,e),!0}}const je=new Me,ke=new Fe,bt=t=>t,G=t=>Reflect.getPrototypeOf(t);function Ke(t,e,n){return function(...r){const s=this.__v_raw,i=f(s),o=K(i),c=t==="entries"||t===Symbol.iterator&&o,u=s[t](...r),a=n?bt:e?U:v;return{next(){const{value:p,done:l}=u.next();return l?{value:p,done:l}:{value:c?[a(p[0]),a(p[1])]:a(p),done:l}},[Symbol.iterator](){return this}}}}function Q(t){return function(...e){if(process.env.NODE_ENV!=="production"){const n=e[0]?`on key "${e[0]}" `:"";x(`${ve(t)} operation ${n}failed: target is readonly.`,f(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function He(t,e){const n={get(s){const i=this.__v_raw,o=f(i),c=f(s),{has:u}=G(o),a=e?bt:t?U:v;if(u.call(o,s))return a(i.get(s));if(u.call(o,c))return a(i.get(c));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!t&&(f(s),void 0),s.size},has(s){const i=this.__v_raw;f(i);const o=f(s);return s===o?i.has(s):i.has(s)||i.has(o)},forEach(s,i){const o=this,c=o.__v_raw;f(c);const u=e?bt:t?U:v;return c.forEach((a,p)=>s.call(i,u(a),u(p),o))}};return T(n,t?{add:Q("add"),set:Q("set"),delete:Q("delete"),clear:Q("clear")}:{add(s){!e&&!m(s)&&!O(s)&&(s=f(s));const i=f(this);return G(i).has.call(i,s)||(i.add(s),I(i,"add",s,s)),this},set(s,i){!e&&!m(i)&&!O(i)&&(i=f(i));const o=f(this),{has:c,get:u}=G(o);let a=c.call(o,s);a?process.env.NODE_ENV!=="production"&&zt(o,c,s):(s=f(s),a=c.call(o,s));const p=u.call(o,s);return o.set(s,i),a?ct(i,p)&&I(o,"set",s,i,p):I(o,"add",s,i),this},delete(s){const i=f(this),{has:o,get:c}=G(i);let u=o.call(i,s);u?process.env.NODE_ENV!=="production"&&zt(i,o,s):(s=f(s),u=o.call(i,s));const a=c?c.call(i,s):void 0,p=i.delete(s);return u&&I(i,"delete",s,void 0,a),p},clear(){const s=f(this),i=s.size!==0,o=process.env.NODE_ENV!=="production"?K(s)?new Map(s):new Set(s):void 0,c=s.clear();return i&&I(s,"clear",void 0,void 0,o),c}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Ke(s,t,e)}),n}function Lt(t,e){const n=He(t,e);return(r,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(ot(n,s)&&s in r?n:r,s,i)}const Le={get:Lt(!1,!1)},ze={get:Lt(!0,!1)};function zt(t,e,n){const r=f(n);if(r!==n&&e.call(t,r)){const s=Tt(t);x(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="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.`)}}const Ut=new WeakMap,Ue=new WeakMap,Wt=new WeakMap,We=new WeakMap;function qe(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Je(t){return t.__v_skip||!Object.isExtensible(t)?0:qe(Tt(t))}function qt(t){return O(t)?t:Jt(t,!1,je,Le,Ut)}function mt(t){return Jt(t,!0,ke,ze,Wt)}function Jt(t,e,n,r,s){if(!g(t))return process.env.NODE_ENV!=="production"&&x(`value cannot be made ${e?"readonly":"reactive"}: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=Je(t);if(i===0)return t;const o=s.get(t);if(o)return o;const c=new Proxy(t,i===2?r:n);return s.set(t,c),c}function yt(t){return O(t)?yt(t.__v_raw):!!(t&&t.__v_isReactive)}function O(t){return!!(t&&t.__v_isReadonly)}function m(t){return!!(t&&t.__v_isShallow)}function z(t){return t?!!t.__v_raw:!1}function f(t){const e=t&&t.__v_raw;return e?f(e):t}const v=t=>g(t)?qt(t):t,U=t=>g(t)?mt(t):t;function b(t){return t?t.__v_isRef===!0:!1}function Bt(t){return Be(t,!1)}function Be(t,e){return b(t)?t:new Ye(t,e)}class Ye{constructor(e,n){this.dep=new Ae,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:f(e),this._value=n?e:v(e),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||m(e)||O(e);e=r?e:f(e),ct(e,n)&&(this._rawValue=e,this._value=r?e:v(e),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:e,oldValue:n}):this.dep.trigger())}}function Ge(t){return b(t)?t.value:t}class Qe{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=f(e);let s=!0,i=e;if(!d(e)||!B(String(n)))do s=!z(i)||m(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let e=this._object[this._key];return this._shallow&&(e=Ge(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&b(this._raw[this._key])){const n=this._object[this._key];if(b(n)){n.value=e;return}}this._object[this._key]=e}get dep(){return De(this._raw,this._key)}}class Xe{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ze(t,e,n){return b(t)?t:C(t)?new Xe(t):g(t)&&arguments.length>1?tn(t,e,n):Bt(t)}function tn(t,e,n){return new Qe(t,e,n)}const D=[];function en(t){D.push(t)}function nn(){D.pop()}let St=!1;function M(t,...e){if(St)return;St=!0;const n=D.length?D[D.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=sn();if(r)Ot(r,n,11,[t+e.map(i=>{var o,c;return(c=(o=i.toString)==null?void 0:o.call(i))!=null?c:JSON.stringify(i)}).join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${ae(n,i.type)}>`).join(`
|
|
1
|
+
(function(_,V){typeof exports=="object"&&typeof module<"u"?V(exports,require("pinia")):typeof define=="function"&&define.amd?define(["exports","pinia"],V):(_=typeof globalThis<"u"?globalThis:_||self,V(_["pinia-plugin-subscription"]={},_.Pinia))})(this,(function(_,V){"use strict";class he{_console;_createInstance;_name;_pluginOptions;_storeInstance;_resetStoreCallback;_storeOnActionSubscription;_storeMutationSubscription;_subscriptions;pluginCreated;get console(){return this._console??console}get name(){return this._name}get pluginOptions(){return this._pluginOptions??{}}set pluginOptions(e){this._pluginOptions=e}get resetStoreCallback(){return this._resetStoreCallback}get storeOnActionSubscription(){return this._storeOnActionSubscription}get storeMutationSubscription(){return this._storeMutationSubscription}get subscriptions(){return this._subscriptions}set subscriptions(e){this._subscriptions=e}constructor(e,n,r){this._name=e,this._createInstance=n,r&&(this._console=r)}invoke({store:e,options:n},r){this._storeInstance=this._createInstance(e,{...n,...this.pluginOptions},r,this.console),this._storeInstance&&(this._subscriptions=this._storeInstance.getSubscriptions(),this._storeMutationSubscription=this._storeInstance.storeSubscribe,this._storeOnActionSubscription=this._storeInstance.onAction,this.pluginCreated&&this.pluginCreated(e))}}class Rt{_console;_debug=!1;get console(){return this._console??console}set console(e){this._console=e}get debug(){return this._debug}set debug(e){this._debug=e}constructor(e,n){this._debug=e,n&&(this._console=n)}debugLog(...e){this._debug&&(Array.isArray(e)&&(e[0]=`${this._className} - ${e[0]}`),this.console.log(...e))}logError(...e){this.console.error(...e)}}const rt="pinia-plugin-subscription",pe=(t,e="white")=>`background-color: ${t}; color: ${e}; padding: 1px; margin-right: 5px; font-size: 12px`;function de(t,e){if(!t)throw new Error("Style instructions are required");console.log("%c%s",t,e.shift(),...e)}class Ct{_bgColor="#ffec73";_color="green";_icon="🍍⚡";_errorBgColor="#d24545";_errorColor="white";_errorIcon="🍍⚠️";_styles={error:{bgColor:this._errorBgColor,color:this._errorColor,icon:this._errorIcon},info:{bgColor:this._bgColor,color:this._color,icon:this._icon}};formatMessage(e,n){return` [${n} ${rt}] - ${e} `}generateStyle(e){return pe(e.bgColor,e.color)}getStyleDefinition(e){return this._styles[e??"info"]}log(...e){this.useLog(this.getStyleDefinition(),e)}error(...e){this.useLog(this.getStyleDefinition("error"),e)}rebuildArgs(e,n){if(typeof e=="string")return[this.formatMessage(e,n)];if(Array.isArray(e))return[this.formatMessage(e.shift(),n),...e??[]]}useLog(e,n){de(this.generateStyle(e),this.rebuildArgs(n,e.icon))}}class _e extends Ct{_pluginName=rt}const ge=new _e;function be(t,e,n){const r=n?{storeOptions:n}:{};return typeof e=="function"?me(t,e,r):ye(t,e,r)}function me(t,e,n){return V.defineStore(t,e,n)}function ye(t,e,n){return n&&(e={...e,...n??{}}),V.defineStore(t,e)}const Se=new Set(["_","$"]);function At(t){return Se.has(t[0])}function J(t){return t?Array.isArray(t)?t.length===0:typeof t=="object"?Object.keys(t).length===0:typeof t=="string"?t.trim()==="":!1:!(typeof t=="boolean"||typeof t=="number")}const It="PluginSubscription";class $t extends Rt{_className=It;_pluginDebug;_resetStoreCallback=[];_subscribers=[];_subscribersDelivered=new Set;_subscriptions=[];_subscriptionsDelivered=new Set;set subscribers(e){this._subscribers=e}get subscriptions(){if(!J(this._subscriptions))return this._subscriptions}constructor(e,n){super(Array.isArray(n)&&!!n?.includes(It),ge),this._pluginDebug=Array.isArray(n)?n:void 0,this._subscribers=e}addResetStoreCallback(e){this._resetStoreCallback.push(e)}definePluginDebug(e){return!!this._pluginDebug?.includes(e.name)}executeResetStoreCallbacks(e){this._resetStoreCallback.forEach(n=>n(e))}plugin({store:e,options:n}){if(this._subscribers.length){this.debugLog(`plugin() - ${e.$id}`,["subscriber:",this._subscribers,"store:",e,"options:",n]);try{this._subscribers.forEach(r=>{this._subscribersDelivered.has(`${r.name}-${e.$id}`)||(r.invoke({store:e,options:n},this.definePluginDebug(r)),this._subscribersDelivered.add(`${r.name}-${e.$id}`),r.subscriptions&&this.subscriptionDelivery({store:e,options:n},r.subscriptions),r.storeMutationSubscription&&this.storeMutationSubscription(r.storeMutationSubscription),r.storeOnActionSubscription&&this.storeOnActionSubscription(r.storeOnActionSubscription),r.resetStoreCallback&&this.addResetStoreCallback(r.resetStoreCallback))}),this.rewriteResetStore({store:e},Object.assign({},e.$state),Object.assign({},e))}catch(r){this.logError(r,e,n)}}}rewriteResetStore({store:e},n,r){e.$reset=()=>{this.executeResetStoreCallbacks(e),Object.keys(r).forEach(s=>{At(s)||(e[s]=n[s]??r[s])}),e.$patch(JSON.parse(JSON.stringify(n)))}}storeOnActionSubscription(e){const{store:n,callback:r}=e();n.$onAction(({after:s,args:i,name:o})=>{this.debugLog(`storeOnActionSubscription ${n.$id}`,{after:s,args:i,name:o,store:n}),r({after:s,args:i,name:o})})}storeMutationSubscription(e){const{store:n,callback:r}=e();n.$subscribe(s=>{this.debugLog(`$subscribe ${n.$id}`,{mutation:s,store:n}),r(s)})}subscriptionDelivery({store:e,options:n},r){Object.entries(r).forEach(([s,i])=>{try{if(this._subscriptionsDelivered.has(`${s}-${e.$id}`))return;const{subscription:o,subscriptionOptions:c,stores:a}=i;this.debugLog(`subscriptionDelivery() - store: ${e.$id}`,["pluginName:",s,"subscription:",o,"options:",i]);const u={storeOptions:{...n?.storeOptions??{},...c}};o.invoke({store:e,options:{...n,...u}},this.debug),this._subscriptionsDelivered.add(`${s}-${e.$id}`),J(a)||a?.forEach(p=>o.invoke({store:p,options:{...n,...u,...p?.storeOptions??{}}},this.debug))}catch(o){this.logError("subscriptionDelivery()",o,e,n)}})}}function Oe(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const it=process.env.NODE_ENV!=="production"?Object.freeze({}):{};process.env.NODE_ENV!=="production"&&Object.freeze([]);const Dt=()=>{},Ee=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),T=Object.assign,we=Object.prototype.hasOwnProperty,ot=(t,e)=>we.call(t,e),d=Array.isArray,K=t=>Vt(t)==="[object Map]",C=t=>typeof t=="function",w=t=>typeof t=="string",H=t=>typeof t=="symbol",g=t=>t!==null&&typeof t=="object",Ne=Object.prototype.toString,Vt=t=>Ne.call(t),Tt=t=>Vt(t).slice(8,-1),B=t=>w(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ve=(t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))})(t=>t.charAt(0).toUpperCase()+t.slice(1)),ct=(t,e)=>!Object.is(t,e);let xt;const Y=()=>xt||(xt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function lt(t){if(d(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],s=w(r)?Ie(r):lt(r);if(s)for(const i in s)e[i]=s[i]}return e}else if(w(t)||g(t))return t}const Re=/;(?![^(]*\))/g,Ce=/:([^]+)/,Ae=/\/\*[^]*?\*\//g;function Ie(t){const e={};return t.replace(Ae,"").split(Re).forEach(n=>{if(n){const r=n.split(Ce);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function at(t){let e="";if(w(t))e=t;else if(d(t))for(let n=0;n<t.length;n++){const r=at(t[n]);r&&(e+=r+" ")}else if(g(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function x(t,...e){console.warn(`[Vue warn] ${t}`,...e)}let Pt=0,ut;function ft(){Pt++}function ht(){if(--Pt>0)return;let t;for(;ut;){let e=ut;for(ut=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}class $e{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0,process.env.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(e){}trigger(e){this.version++,this.notify(e)}notify(e){ft();try{if(process.env.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(T({effect:n.sub},e));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ht()}}}const Mt=new WeakMap,pt=Symbol(process.env.NODE_ENV!=="production"?"Object iterate":""),Ft=Symbol(process.env.NODE_ENV!=="production"?"Map keys iterate":""),jt=Symbol(process.env.NODE_ENV!=="production"?"Array iterate":"");function Kn(t,e,n){}function A(t,e,n,r,s,i){const o=Mt.get(t);if(!o)return;const c=a=>{a&&(process.env.NODE_ENV!=="production"?a.trigger({target:t,type:e,key:n,newValue:r,oldValue:s,oldTarget:i}):a.trigger())};if(ft(),e==="clear")o.forEach(c);else{const a=d(t),u=a&&B(n);if(a&&n==="length"){const p=Number(r);o.forEach((l,h)=>{(h==="length"||h===jt||!H(h)&&h>=p)&&c(l)})}else switch((n!==void 0||o.has(void 0))&&c(o.get(n)),u&&c(o.get(jt)),e){case"add":a?u&&c(o.get("length")):(c(o.get(pt)),K(t)&&c(o.get(Ft)));break;case"delete":a||(c(o.get(pt)),K(t)&&c(o.get(Ft)));break;case"set":K(t)&&c(o.get(pt));break}}ht()}function De(t,e){const n=Mt.get(t);return n&&n.get(e)}function P(t){const e=f(t);return e===t||m(t)?e:e.map(v)}function dt(t){return t=f(t),t}function I(t,e){return O(t)?yt(t)?U(v(e)):U(e):v(e)}const Ve={__proto__:null,[Symbol.iterator](){return _t(this,Symbol.iterator,t=>I(this,t))},concat(...t){return P(this).concat(...t.map(e=>d(e)?P(e):e))},entries(){return _t(this,"entries",t=>(t[1]=I(this,t[1]),t))},every(t,e){return N(this,"every",t,e,void 0,arguments)},filter(t,e){return N(this,"filter",t,e,n=>n.map(r=>I(this,r)),arguments)},find(t,e){return N(this,"find",t,e,n=>I(this,n),arguments)},findIndex(t,e){return N(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return N(this,"findLast",t,e,n=>I(this,n),arguments)},findLastIndex(t,e){return N(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return N(this,"forEach",t,e,void 0,arguments)},includes(...t){return gt(this,"includes",t)},indexOf(...t){return gt(this,"indexOf",t)},join(t){return P(this).join(t)},lastIndexOf(...t){return gt(this,"lastIndexOf",t)},map(t,e){return N(this,"map",t,e,void 0,arguments)},pop(){return L(this,"pop")},push(...t){return L(this,"push",t)},reduce(t,...e){return kt(this,"reduce",t,e)},reduceRight(t,...e){return kt(this,"reduceRight",t,e)},shift(){return L(this,"shift")},some(t,e){return N(this,"some",t,e,void 0,arguments)},splice(...t){return L(this,"splice",t)},toReversed(){return P(this).toReversed()},toSorted(t){return P(this).toSorted(t)},toSpliced(...t){return P(this).toSpliced(...t)},unshift(...t){return L(this,"unshift",t)},values(){return _t(this,"values",t=>I(this,t))}};function _t(t,e,n){const r=dt(t),s=r[e]();return r!==t&&!m(t)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const Te=Array.prototype;function N(t,e,n,r,s,i){const o=dt(t),c=o!==t&&!m(t),a=o[e];if(a!==Te[e]){const l=a.apply(t,i);return c?v(l):l}let u=n;o!==t&&(c?u=function(l,h){return n.call(this,I(t,l),h,t)}:n.length>2&&(u=function(l,h){return n.call(this,l,h,t)}));const p=a.call(o,u,r);return c&&s?s(p):p}function kt(t,e,n,r){const s=dt(t);let i=n;return s!==t&&(m(t)?n.length>3&&(i=function(o,c,a){return n.call(this,o,c,a,t)}):i=function(o,c,a){return n.call(this,o,I(t,c),a,t)}),s[e](i,...r)}function gt(t,e,n){const r=f(t),s=r[e](...n);return(s===-1||s===!1)&&z(n[0])?(n[0]=f(n[0]),r[e](...n)):s}function L(t,e,n=[]){ft();const r=f(t)[e].apply(t,n);return ht(),r}const xe=Oe("__proto__,__v_isRef,__isVue"),Kt=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(H));function Pe(t){return H(t)||(t=String(t)),f(this).hasOwnProperty(t)}class Ht{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return r===(s?i?We:Wt:i?Ue:Ut).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=d(e);if(!s){let a;if(o&&(a=Ve[n]))return a;if(n==="hasOwnProperty")return Pe}const c=Reflect.get(e,n,b(e)?e:r);if((H(n)?Kt.has(n):xe(n))||i)return c;if(b(c)){const a=o&&B(n)?c:c.value;return s&&g(a)?mt(a):a}return g(c)?s?mt(c):qt(c):c}}class Me extends Ht{constructor(e=!1){super(!1,e)}set(e,n,r,s){let i=e[n];const o=d(e)&&B(n);if(!this._isShallow){const u=O(i);if(!m(r)&&!O(r)&&(i=f(i),r=f(r)),!o&&b(i)&&!b(r))return u?(process.env.NODE_ENV!=="production"&&x(`Set operation on key "${String(n)}" failed: target is readonly.`,e[n]),!0):(i.value=r,!0)}const c=o?Number(n)<e.length:ot(e,n),a=Reflect.set(e,n,r,b(e)?e:s);return e===f(s)&&(c?ct(r,i)&&A(e,"set",n,r,i):A(e,"add",n,r)),a}deleteProperty(e,n){const r=ot(e,n),s=e[n],i=Reflect.deleteProperty(e,n);return i&&r&&A(e,"delete",n,void 0,s),i}has(e,n){const r=Reflect.has(e,n);return!H(n)||Kt.has(n),r}ownKeys(e){return Reflect.ownKeys(e)}}class Fe extends Ht{constructor(e=!1){super(!0,e)}set(e,n){return process.env.NODE_ENV!=="production"&&x(`Set operation on key "${String(n)}" failed: target is readonly.`,e),!0}deleteProperty(e,n){return process.env.NODE_ENV!=="production"&&x(`Delete operation on key "${String(n)}" failed: target is readonly.`,e),!0}}const je=new Me,ke=new Fe,bt=t=>t,G=t=>Reflect.getPrototypeOf(t);function Ke(t,e,n){return function(...r){const s=this.__v_raw,i=f(s),o=K(i),c=t==="entries"||t===Symbol.iterator&&o,a=s[t](...r),u=n?bt:e?U:v;return{next(){const{value:p,done:l}=a.next();return l?{value:p,done:l}:{value:c?[u(p[0]),u(p[1])]:u(p),done:l}},[Symbol.iterator](){return this}}}}function Q(t){return function(...e){if(process.env.NODE_ENV!=="production"){const n=e[0]?`on key "${e[0]}" `:"";x(`${ve(t)} operation ${n}failed: target is readonly.`,f(this))}return t==="delete"?!1:t==="clear"?void 0:this}}function He(t,e){const n={get(s){const i=this.__v_raw,o=f(i),c=f(s),{has:a}=G(o),u=e?bt:t?U:v;if(a.call(o,s))return u(i.get(s));if(a.call(o,c))return u(i.get(c));i!==o&&i.get(s)},get size(){const s=this.__v_raw;return!t&&(f(s),void 0),s.size},has(s){const i=this.__v_raw;f(i);const o=f(s);return s===o?i.has(s):i.has(s)||i.has(o)},forEach(s,i){const o=this,c=o.__v_raw;f(c);const a=e?bt:t?U:v;return c.forEach((u,p)=>s.call(i,a(u),a(p),o))}};return T(n,t?{add:Q("add"),set:Q("set"),delete:Q("delete"),clear:Q("clear")}:{add(s){!e&&!m(s)&&!O(s)&&(s=f(s));const i=f(this);return G(i).has.call(i,s)||(i.add(s),A(i,"add",s,s)),this},set(s,i){!e&&!m(i)&&!O(i)&&(i=f(i));const o=f(this),{has:c,get:a}=G(o);let u=c.call(o,s);u?process.env.NODE_ENV!=="production"&&zt(o,c,s):(s=f(s),u=c.call(o,s));const p=a.call(o,s);return o.set(s,i),u?ct(i,p)&&A(o,"set",s,i,p):A(o,"add",s,i),this},delete(s){const i=f(this),{has:o,get:c}=G(i);let a=o.call(i,s);a?process.env.NODE_ENV!=="production"&&zt(i,o,s):(s=f(s),a=o.call(i,s));const u=c?c.call(i,s):void 0,p=i.delete(s);return a&&A(i,"delete",s,void 0,u),p},clear(){const s=f(this),i=s.size!==0,o=process.env.NODE_ENV!=="production"?K(s)?new Map(s):new Set(s):void 0,c=s.clear();return i&&A(s,"clear",void 0,void 0,o),c}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Ke(s,t,e)}),n}function Lt(t,e){const n=He(t,e);return(r,s,i)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?r:Reflect.get(ot(n,s)&&s in r?n:r,s,i)}const Le={get:Lt(!1,!1)},ze={get:Lt(!0,!1)};function zt(t,e,n){const r=f(n);if(r!==n&&e.call(t,r)){const s=Tt(t);x(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="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.`)}}const Ut=new WeakMap,Ue=new WeakMap,Wt=new WeakMap,We=new WeakMap;function qe(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Je(t){return t.__v_skip||!Object.isExtensible(t)?0:qe(Tt(t))}function qt(t){return O(t)?t:Jt(t,!1,je,Le,Ut)}function mt(t){return Jt(t,!0,ke,ze,Wt)}function Jt(t,e,n,r,s){if(!g(t))return process.env.NODE_ENV!=="production"&&x(`value cannot be made ${e?"readonly":"reactive"}: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=Je(t);if(i===0)return t;const o=s.get(t);if(o)return o;const c=new Proxy(t,i===2?r:n);return s.set(t,c),c}function yt(t){return O(t)?yt(t.__v_raw):!!(t&&t.__v_isReactive)}function O(t){return!!(t&&t.__v_isReadonly)}function m(t){return!!(t&&t.__v_isShallow)}function z(t){return t?!!t.__v_raw:!1}function f(t){const e=t&&t.__v_raw;return e?f(e):t}const v=t=>g(t)?qt(t):t,U=t=>g(t)?mt(t):t;function b(t){return t?t.__v_isRef===!0:!1}function Bt(t){return Be(t,!1)}function Be(t,e){return b(t)?t:new Ye(t,e)}class Ye{constructor(e,n){this.dep=new $e,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:f(e),this._value=n?e:v(e),this.__v_isShallow=n}get value(){return process.env.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||m(e)||O(e);e=r?e:f(e),ct(e,n)&&(this._rawValue=e,this._value=r?e:v(e),process.env.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:e,oldValue:n}):this.dep.trigger())}}function Ge(t){return b(t)?t.value:t}class Qe{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=f(e);let s=!0,i=e;if(!d(e)||!B(String(n)))do s=!z(i)||m(i);while(s&&(i=i.__v_raw));this._shallow=s}get value(){let e=this._object[this._key];return this._shallow&&(e=Ge(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&b(this._raw[this._key])){const n=this._object[this._key];if(b(n)){n.value=e;return}}this._object[this._key]=e}get dep(){return De(this._raw,this._key)}}class Xe{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Ze(t,e,n){return b(t)?t:C(t)?new Xe(t):g(t)&&arguments.length>1?tn(t,e,n):Bt(t)}function tn(t,e,n){return new Qe(t,e,n)}const D=[];function en(t){D.push(t)}function nn(){D.pop()}let St=!1;function M(t,...e){if(St)return;St=!0;const n=D.length?D[D.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=sn();if(r)Ot(r,n,11,[t+e.map(i=>{var o,c;return(c=(o=i.toString)==null?void 0:o.call(i))!=null?c:JSON.stringify(i)}).join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${ue(n,i.type)}>`).join(`
|
|
2
2
|
`),s]);else{const i=[`[Vue warn]: ${t}`,...e];s.length&&i.push(`
|
|
3
3
|
`,...rn(s)),console.warn(...i)}St=!1}function sn(){let t=D[D.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const r=t.component&&t.component.parent;t=r&&r.vnode}return e}function rn(t){const e=[];return t.forEach((n,r)=>{e.push(...r===0?[]:[`
|
|
4
|
-
`],...on(n))}),e}function on({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",r=t.component?t.component.parent==null:!1,s=` at <${
|
|
5
|
-
Component that was made reactive: `,t)),
|
|
4
|
+
`],...on(n))}),e}function on({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",r=t.component?t.component.parent==null:!1,s=` at <${ue(t.component,t.type,r)}`,i=">"+n;return t.props?[s,...cn(t.props),i]:[s+i]}function cn(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(r=>{e.push(...Yt(r,t[r]))}),n.length>3&&e.push(" ..."),e}function Yt(t,e,n){return w(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:b(e)?(e=Yt(t,f(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):C(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=f(e),n?e:[`${t}=`,e])}const Gt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Ot(t,e,n,r){try{return r?t(...r):t()}catch(s){Qt(s,e,n)}}function Qt(t,e,n,r=!0){const s=e?e.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||it;if(e){let c=e.parent;const a=e.proxy,u=process.env.NODE_ENV!=="production"?Gt[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;c;){const p=c.ec;if(p){for(let l=0;l<p.length;l++)if(p[l](t,a,u)===!1)return}c=c.parent}if(i){Ot(i,null,10,[t,a,u]);return}}ln(t,n,s,r,o)}function ln(t,e,n,r=!0,s=!1){if(process.env.NODE_ENV!=="production"){const i=Gt[e];if(n&&en(n),M(`Unhandled error${i?` during execution of ${i}`:""}`),n&&nn(),r)throw t;console.error(t)}else{if(s)throw t;console.error(t)}}const y=[];let R=-1;const F=[];let $=null,j=0;const an=Promise.resolve();let Et=null;const un=100;function fn(t){let e=R+1,n=y.length;for(;e<n;){const r=e+n>>>1,s=y[r],i=W(s);i<t||i===t&&s.flags&2?e=r+1:n=r}return e}function hn(t){if(!(t.flags&1)){const e=W(t),n=y[y.length-1];!n||!(t.flags&2)&&e>=W(n)?y.push(t):y.splice(fn(e),0,t),t.flags|=1,Xt()}}function Xt(){Et||(Et=an.then(Zt))}function pn(t){d(t)?F.push(...t):$&&t.id===-1?$.splice(j+1,0,t):t.flags&1||(F.push(t),t.flags|=1),Xt()}function dn(t){if(F.length){const e=[...new Set(F)].sort((n,r)=>W(n)-W(r));if(F.length=0,$){$.push(...e);return}for($=e,process.env.NODE_ENV!=="production"&&(t=t||new Map),j=0;j<$.length;j++){const n=$[j];process.env.NODE_ENV!=="production"&&te(t,n)||(n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2)}$=null,j=0}}const W=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Zt(t){process.env.NODE_ENV!=="production"&&(t=t||new Map);const e=process.env.NODE_ENV!=="production"?n=>te(t,n):Dt;try{for(R=0;R<y.length;R++){const n=y[R];if(n&&!(n.flags&8)){if(process.env.NODE_ENV!=="production"&&e(n))continue;n.flags&4&&(n.flags&=-2),Ot(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2)}}}finally{for(;R<y.length;R++){const n=y[R];n&&(n.flags&=-2)}R=-1,y.length=0,dn(t),Et=null,(y.length||F.length)&&Zt(t)}}function te(t,e){const n=t.get(e)||0;if(n>un){const r=e.i,s=r&&ae(r.type);return Qt(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return t.set(e,n+1),!1}const wt=new Map;process.env.NODE_ENV!=="production"&&(Y().__VUE_HMR_RUNTIME__={createRecord:Nt(_n),rerender:Nt(gn),reload:Nt(bn)});const X=new Map;function _n(t,e){return X.has(t)?!1:(X.set(t,{initialDef:Z(e),instances:new Set}),!0)}function Z(t){return fe(t)?t.__vccOpts:t}function gn(t,e){const n=X.get(t);n&&(n.initialDef.render=e,[...n.instances].forEach(r=>{e&&(r.render=e,Z(r.type).render=e),r.renderCache=[],r.job.flags&8||r.update()}))}function bn(t,e){const n=X.get(t);if(!n)return;e=Z(e),ee(n.initialDef,e);const r=[...n.instances];for(let s=0;s<r.length;s++){const i=r[s],o=Z(i.type);let c=wt.get(o);c||(o!==n.initialDef&&ee(o,e),wt.set(o,c=new Set)),c.add(i),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(c.add(i),i.ceReload(e.styles),c.delete(i)):i.parent?hn(()=>{i.job.flags&8||(i.parent.update(),c.delete(i))}):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),i.root.ce&&i!==i.root&&i.root.ce._removeChildStyle(o)}pn(()=>{wt.clear()})}function ee(t,e){T(t,e);for(const n in t)n!=="__file"&&!(n in e)&&delete t[n]}function Nt(t){return(e,n)=>{try{return t(e,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let k,tt=[];function ne(t,e){var n,r;k=t,k?(k.enabled=!0,tt.forEach(({event:s,args:i})=>k.emit(s,...i)),tt=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((e.__VUE_DEVTOOLS_HOOK_REPLAY__=e.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{ne(i,e)}),setTimeout(()=>{k||(e.__VUE_DEVTOOLS_HOOK_REPLAY__=null,tt=[])},3e3)):tt=[]}let et=null,mn=null;const yn=t=>t.__isTeleport;function se(t,e){t.shapeFlag&6&&t.component?(t.transition=e,se(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}Y().requestIdleCallback,Y().cancelIdleCallback;const Sn=Symbol.for("v-ndc"),On={};process.env.NODE_ENV!=="production"&&(On.ownKeys=t=>(M("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(t)));const En={},re=t=>Object.getPrototypeOf(t)===En,wn=t=>t.__isSuspense,ie=Symbol.for("v-fgt"),Nn=Symbol.for("v-txt"),vn=Symbol.for("v-cmt");function Rn(t){return t?t.__v_isVNode===!0:!1}const Cn=(...t)=>ce(...t),oe=({key:t})=>t??null,nt=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?w(t)||b(t)||C(t)?{i:et,r:t,k:e,f:!!n}:t:null);function An(t,e=null,n=null,r=0,s=null,i=t===ie?0:1,o=!1,c=!1){const a={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&oe(e),ref:e&&nt(e),scopeId:mn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:et};return c?(vt(a,n),i&128&&t.normalize(a)):n&&(a.shapeFlag|=w(n)?8:16),process.env.NODE_ENV!=="production"&&a.key!==a.key&&M("VNode created with invalid key (NaN). VNode type:",a.type),a}const In=process.env.NODE_ENV!=="production"?Cn:ce;function ce(t,e=null,n=null,r=0,s=null,i=!1){if((!t||t===Sn)&&(process.env.NODE_ENV!=="production"&&!t&&M(`Invalid vnode type when creating vnode: ${t}.`),t=vn),Rn(t)){const c=st(t,e,!0);return n&&vt(c,n),c.patchFlag=-2,c}if(fe(t)&&(t=t.__vccOpts),e){e=$n(e);let{class:c,style:a}=e;c&&!w(c)&&(e.class=at(c)),g(a)&&(z(a)&&!d(a)&&(a=T({},a)),e.style=lt(a))}const o=w(t)?1:wn(t)?128:yn(t)?64:g(t)?4:C(t)?2:0;return process.env.NODE_ENV!=="production"&&o&4&&z(t)&&(t=f(t),M("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
5
|
+
Component that was made reactive: `,t)),An(t,e,n,r,s,o,i,!0)}function $n(t){return t?z(t)||re(t)?T({},t):t:null}function st(t,e,n=!1,r=!1){const{props:s,ref:i,patchFlag:o,children:c,transition:a}=t,u=e?Vn(s||{},e):s,p={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&oe(u),ref:e&&e.ref?n&&i?d(i)?i.concat(nt(e)):[i,nt(e)]:nt(e):i,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:process.env.NODE_ENV!=="production"&&o===-1&&d(c)?c.map(le):c,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ie?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:a,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&st(t.ssContent),ssFallback:t.ssFallback&&st(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return a&&r&&se(p,a.clone(p)),p}function le(t){const e=st(t);return d(t.children)&&(e.children=t.children.map(le)),e}function Dn(t=" ",e=0){return In(Nn,null,t,e)}function vt(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(d(e))n=16;else if(typeof e=="object")if(r&65){const s=e.default;s&&(s._c&&(s._d=!1),vt(t,s()),s._c&&(s._d=!0));return}else n=32,!e._&&!re(e)&&(e._ctx=et);else C(e)?(e={default:e,_ctx:et},n=32):(e=String(e),r&64?(n=16,e=[Dn(e)]):n=8);t.children=e,t.shapeFlag|=n}function Vn(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const s in r)if(s==="class")e.class!==r.class&&(e.class=at([e.class,r.class]));else if(s==="style")e.style=lt([e.style,r.style]);else if(Ee(s)){const i=e[s],o=r[s];o&&i!==o&&!(d(i)&&i.includes(o))&&(e[s]=i?[].concat(i,o):o)}else s!==""&&(e[s]=r[s])}return e}{const t=Y(),e=(n,r)=>{let s;return(s=t[n])||(s=t[n]=[]),s.push(r),i=>{s.length>1?s.forEach(o=>o(i)):s[0](i)}};e("__VUE_INSTANCE_SETTERS__",n=>n),e("__VUE_SSR_SETTERS__",n=>n)}process.env.NODE_ENV;const Tn=/(?:^|[-_])\w/g,xn=t=>t.replace(Tn,e=>e.toUpperCase()).replace(/[-_]/g,"");function ae(t,e=!0){return C(t)?t.displayName||t.name:t.name||e&&t.__name}function ue(t,e,n=!1){let r=ae(e);if(!r&&e.__file){const s=e.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&t){const s=i=>{for(const o in i)if(i[o]===e)return o};r=s(t.components)||t.parent&&s(t.parent.type.components)||s(t.appContext.components)}return r?xn(r):n?"App":"Anonymous"}function fe(t){return C(t)&&"__vccOpts"in t}function Pn(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const t={style:"color:#3ba776"},e={style:"color:#1677ff"},n={style:"color:#f5222d"},r={style:"color:#eb2f96"},s={__vue_custom_formatter:!0,header(l){if(!g(l))return null;if(l.__isVue)return["div",t,"VueInstance"];if(b(l)){const h=l.value;return["div",{},["span",t,p(l)],"<",c(h),">"]}else{if(yt(l))return["div",{},["span",t,m(l)?"ShallowReactive":"Reactive"],"<",c(l),`>${O(l)?" (readonly)":""}`];if(O(l))return["div",{},["span",t,m(l)?"ShallowReadonly":"Readonly"],"<",c(l),">"]}return null},hasBody(l){return l&&l.__isVue},body(l){if(l&&l.__isVue)return["div",{},...i(l.$)]}};function i(l){const h=[];l.type.props&&l.props&&h.push(o("props",f(l.props))),l.setupState!==it&&h.push(o("setup",l.setupState)),l.data!==it&&h.push(o("data",f(l.data)));const S=a(l,"computed");S&&h.push(o("computed",S));const E=a(l,"inject");return E&&h.push(o("injected",E)),h.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:l}]]),h}function o(l,h){return h=T({},h),Object.keys(h).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},l],["div",{style:"padding-left:1.25em"},...Object.keys(h).map(S=>["div",{},["span",r,S+": "],c(h[S],!1)])]]:["span",{}]}function c(l,h=!0){return typeof l=="number"?["span",e,l]:typeof l=="string"?["span",n,JSON.stringify(l)]:typeof l=="boolean"?["span",r,l]:g(l)?["object",{object:h?f(l):l}]:["span",n,String(l)]}function a(l,h){const S=l.type;if(C(S))return;const E={};for(const q in l.ctx)u(S,q,h)&&(E[q]=l.ctx[q]);return E}function u(l,h,S){const E=l[S];if(d(E)&&E.includes(h)||g(E)&&h in E||l.extends&&u(l.extends,h,S)||l.mixins&&l.mixins.some(q=>u(q,h,S)))return!0}function p(l){return m(l)?"ShallowRef":l.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;function Mn(){Pn()}process.env.NODE_ENV!=="production"&&Mn();class Fn extends Rt{_className="Store";_onAction;_options;_store;_subscriptions={};_storeSubscribe;static _requiredKeys;get onAction(){if(this._onAction)return()=>({store:this.store,callback:this._onAction})}set onAction(e){this._onAction=e}get options(){return this._options}get state(){return this._store.$state}set state(e){this._store.$state=e}get store(){return this._store}get storeSubscribe(){if(this._storeSubscribe)return()=>({store:this.store,callback:this._storeSubscribe})}set storeSubscribe(e){this._storeSubscribe=e}constructor(e,n,r=!1,s){super(r,s),this._options=n.storeOptions,this._store=e}addToState(e,n){this.isOptionApi()||n?.value||(n=Bt(n)),this.state[e]=n,this.store[e]=Ze(this.state,e)}addSubscription(e,n,r){this._subscriptions[e]={subscription:n,...r??{}}}static customizeStore(e,n,r=!1,s){if(n.storeOptions&&this.hasRequiredKeys(n.storeOptions))return new this(e,n,r,s)}hasDeniedFirstChar(e){return At(e[0])}static hasRequiredKeys(e){return this._requiredKeys===void 0||this._requiredKeys?.every(n=>!!e[n])}getOption(e){return this.options&&this.options[e]}getStatePropertyValue(e){return this.getValue(this.state[e])}getSubscriptions(){if(!J(this._subscriptions))return this._subscriptions}getValue(e){return e?.__v_isRef?e.value:e}isOptionApi(){return this.store._isOptionsAPI}stateHas(e){return this.state.hasOwnProperty(e)}storeHas(e){return this.store.hasOwnProperty(e)}}function jn(t,e){const n=new $t(t,e);return n.plugin.bind(n)}_.CustomConsole=Ct,_.PLUGIN_NAME=rt,_.PluginSubscriber=he,_.PluginSubscription=$t,_.Store=Fn,_.createPlugin=jn,_.defineAStore=be,_.isEmpty=J,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})}));
|