fec-dev-designer 1.0.0 → 1.0.2

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.
@@ -0,0 +1,667 @@
1
+ import { watch as I, effectScope as B, reactive as K, inject as W, computed as Y } from "vue";
2
+ import { setupDevtoolsPlugin as q } from "../../@vue/devtools-api/lib/esm/index.js";
3
+ /*!
4
+ * vuex v4.1.0
5
+ * (c) 2022 Evan You
6
+ * @license MIT
7
+ */
8
+ var V = "store";
9
+ function ht(e) {
10
+ return e === void 0 && (e = null), W(e !== null ? e : V);
11
+ }
12
+ function _(e, t) {
13
+ Object.keys(e).forEach(function(n) {
14
+ return t(e[n], n);
15
+ });
16
+ }
17
+ function J(e) {
18
+ return e !== null && typeof e == "object";
19
+ }
20
+ function X(e) {
21
+ return e && typeof e.then == "function";
22
+ }
23
+ function h(e, t) {
24
+ if (!e)
25
+ throw new Error("[vuex] " + t);
26
+ }
27
+ function z(e, t) {
28
+ return function() {
29
+ return e(t);
30
+ };
31
+ }
32
+ function M(e, t, n) {
33
+ return t.indexOf(e) < 0 && (n && n.prepend ? t.unshift(e) : t.push(e)), function() {
34
+ var r = t.indexOf(e);
35
+ r > -1 && t.splice(r, 1);
36
+ };
37
+ }
38
+ function T(e, t) {
39
+ e._actions = /* @__PURE__ */ Object.create(null), e._mutations = /* @__PURE__ */ Object.create(null), e._wrappedGetters = /* @__PURE__ */ Object.create(null), e._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
40
+ var n = e.state;
41
+ E(e, n, [], e._modules.root, !0), w(e, n, t);
42
+ }
43
+ function w(e, t, n) {
44
+ var r = e._state, o = e._scope;
45
+ e.getters = {}, e._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
46
+ var i = e._wrappedGetters, s = {}, f = {}, a = B(!0);
47
+ a.run(function() {
48
+ _(i, function(p, c) {
49
+ s[c] = z(p, e), f[c] = Y(function() {
50
+ return s[c]();
51
+ }), Object.defineProperty(e.getters, c, {
52
+ get: function() {
53
+ return f[c].value;
54
+ },
55
+ enumerable: !0
56
+ // for local getters
57
+ });
58
+ });
59
+ }), e._state = K({
60
+ data: t
61
+ }), e._scope = a, e.strict && rt(e), r && n && e._withCommit(function() {
62
+ r.data = null;
63
+ }), o && o.stop();
64
+ }
65
+ function E(e, t, n, r, o) {
66
+ var i = !n.length, s = e._modules.getNamespace(n);
67
+ if (r.namespaced && (e._modulesNamespaceMap[s] && process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate namespace " + s + " for the namespaced module " + n.join("/")), e._modulesNamespaceMap[s] = r), !i && !o) {
68
+ var f = C(t, n.slice(0, -1)), a = n[n.length - 1];
69
+ e._withCommit(function() {
70
+ process.env.NODE_ENV !== "production" && a in f && console.warn(
71
+ '[vuex] state field "' + a + '" was overridden by a module with the same name at "' + n.join(".") + '"'
72
+ ), f[a] = r.state;
73
+ });
74
+ }
75
+ var p = r.context = Q(e, s, n);
76
+ r.forEachMutation(function(c, u) {
77
+ var d = s + u;
78
+ Z(e, d, c, p);
79
+ }), r.forEachAction(function(c, u) {
80
+ var d = c.root ? u : s + u, l = c.handler || c;
81
+ tt(e, d, l, p);
82
+ }), r.forEachGetter(function(c, u) {
83
+ var d = s + u;
84
+ et(e, d, c, p);
85
+ }), r.forEachChild(function(c, u) {
86
+ E(e, t, n.concat(u), c, o);
87
+ });
88
+ }
89
+ function Q(e, t, n) {
90
+ var r = t === "", o = {
91
+ dispatch: r ? e.dispatch : function(i, s, f) {
92
+ var a = y(i, s, f), p = a.payload, c = a.options, u = a.type;
93
+ if ((!c || !c.root) && (u = t + u, process.env.NODE_ENV !== "production" && !e._actions[u])) {
94
+ console.error("[vuex] unknown local action type: " + a.type + ", global type: " + u);
95
+ return;
96
+ }
97
+ return e.dispatch(u, p);
98
+ },
99
+ commit: r ? e.commit : function(i, s, f) {
100
+ var a = y(i, s, f), p = a.payload, c = a.options, u = a.type;
101
+ if ((!c || !c.root) && (u = t + u, process.env.NODE_ENV !== "production" && !e._mutations[u])) {
102
+ console.error("[vuex] unknown local mutation type: " + a.type + ", global type: " + u);
103
+ return;
104
+ }
105
+ e.commit(u, p, c);
106
+ }
107
+ };
108
+ return Object.defineProperties(o, {
109
+ getters: {
110
+ get: r ? function() {
111
+ return e.getters;
112
+ } : function() {
113
+ return G(e, t);
114
+ }
115
+ },
116
+ state: {
117
+ get: function() {
118
+ return C(e.state, n);
119
+ }
120
+ }
121
+ }), o;
122
+ }
123
+ function G(e, t) {
124
+ if (!e._makeLocalGettersCache[t]) {
125
+ var n = {}, r = t.length;
126
+ Object.keys(e.getters).forEach(function(o) {
127
+ if (o.slice(0, r) === t) {
128
+ var i = o.slice(r);
129
+ Object.defineProperty(n, i, {
130
+ get: function() {
131
+ return e.getters[o];
132
+ },
133
+ enumerable: !0
134
+ });
135
+ }
136
+ }), e._makeLocalGettersCache[t] = n;
137
+ }
138
+ return e._makeLocalGettersCache[t];
139
+ }
140
+ function Z(e, t, n, r) {
141
+ var o = e._mutations[t] || (e._mutations[t] = []);
142
+ o.push(function(s) {
143
+ n.call(e, r.state, s);
144
+ });
145
+ }
146
+ function tt(e, t, n, r) {
147
+ var o = e._actions[t] || (e._actions[t] = []);
148
+ o.push(function(s) {
149
+ var f = n.call(e, {
150
+ dispatch: r.dispatch,
151
+ commit: r.commit,
152
+ getters: r.getters,
153
+ state: r.state,
154
+ rootGetters: e.getters,
155
+ rootState: e.state
156
+ }, s);
157
+ return X(f) || (f = Promise.resolve(f)), e._devtoolHook ? f.catch(function(a) {
158
+ throw e._devtoolHook.emit("vuex:error", a), a;
159
+ }) : f;
160
+ });
161
+ }
162
+ function et(e, t, n, r) {
163
+ if (e._wrappedGetters[t]) {
164
+ process.env.NODE_ENV !== "production" && console.error("[vuex] duplicate getter key: " + t);
165
+ return;
166
+ }
167
+ e._wrappedGetters[t] = function(i) {
168
+ return n(
169
+ r.state,
170
+ // local state
171
+ r.getters,
172
+ // local getters
173
+ i.state,
174
+ // root state
175
+ i.getters
176
+ // root getters
177
+ );
178
+ };
179
+ }
180
+ function rt(e) {
181
+ I(function() {
182
+ return e._state.data;
183
+ }, function() {
184
+ process.env.NODE_ENV !== "production" && h(e._committing, "do not mutate vuex store state outside mutation handlers.");
185
+ }, { deep: !0, flush: "sync" });
186
+ }
187
+ function C(e, t) {
188
+ return t.reduce(function(n, r) {
189
+ return n[r];
190
+ }, e);
191
+ }
192
+ function y(e, t, n) {
193
+ return J(e) && e.type && (n = t, t = e, e = e.type), process.env.NODE_ENV !== "production" && h(typeof e == "string", "expects string as the type, but found " + typeof e + "."), { type: e, payload: t, options: n };
194
+ }
195
+ var nt = "vuex bindings", S = "vuex:mutations", O = "vuex:actions", b = "vuex", ot = 0;
196
+ function it(e, t) {
197
+ q(
198
+ {
199
+ id: "org.vuejs.vuex",
200
+ app: e,
201
+ label: "Vuex",
202
+ homepage: "https://next.vuex.vuejs.org/",
203
+ logo: "https://vuejs.org/images/icons/favicon-96x96.png",
204
+ packageName: "vuex",
205
+ componentStateTypes: [nt]
206
+ },
207
+ function(n) {
208
+ n.addTimelineLayer({
209
+ id: S,
210
+ label: "Vuex Mutations",
211
+ color: j
212
+ }), n.addTimelineLayer({
213
+ id: O,
214
+ label: "Vuex Actions",
215
+ color: j
216
+ }), n.addInspector({
217
+ id: b,
218
+ label: "Vuex",
219
+ icon: "storage",
220
+ treeFilterPlaceholder: "Filter stores..."
221
+ }), n.on.getInspectorTree(function(r) {
222
+ if (r.app === e && r.inspectorId === b)
223
+ if (r.filter) {
224
+ var o = [];
225
+ P(o, t._modules.root, r.filter, ""), r.rootNodes = o;
226
+ } else
227
+ r.rootNodes = [
228
+ R(t._modules.root, "")
229
+ ];
230
+ }), n.on.getInspectorState(function(r) {
231
+ if (r.app === e && r.inspectorId === b) {
232
+ var o = r.nodeId;
233
+ G(t, o), r.state = at(
234
+ ft(t._modules, o),
235
+ o === "root" ? t.getters : t._makeLocalGettersCache,
236
+ o
237
+ );
238
+ }
239
+ }), n.on.editInspectorState(function(r) {
240
+ if (r.app === e && r.inspectorId === b) {
241
+ var o = r.nodeId, i = r.path;
242
+ o !== "root" && (i = o.split("/").filter(Boolean).concat(i)), t._withCommit(function() {
243
+ r.set(t._state.data, i, r.state.value);
244
+ });
245
+ }
246
+ }), t.subscribe(function(r, o) {
247
+ var i = {};
248
+ r.payload && (i.payload = r.payload), i.state = o, n.notifyComponentUpdate(), n.sendInspectorTree(b), n.sendInspectorState(b), n.addTimelineEvent({
249
+ layerId: S,
250
+ event: {
251
+ time: Date.now(),
252
+ title: r.type,
253
+ data: i
254
+ }
255
+ });
256
+ }), t.subscribeAction({
257
+ before: function(r, o) {
258
+ var i = {};
259
+ r.payload && (i.payload = r.payload), r._id = ot++, r._time = Date.now(), i.state = o, n.addTimelineEvent({
260
+ layerId: O,
261
+ event: {
262
+ time: r._time,
263
+ title: r.type,
264
+ groupId: r._id,
265
+ subtitle: "start",
266
+ data: i
267
+ }
268
+ });
269
+ },
270
+ after: function(r, o) {
271
+ var i = {}, s = Date.now() - r._time;
272
+ i.duration = {
273
+ _custom: {
274
+ type: "duration",
275
+ display: s + "ms",
276
+ tooltip: "Action duration",
277
+ value: s
278
+ }
279
+ }, r.payload && (i.payload = r.payload), i.state = o, n.addTimelineEvent({
280
+ layerId: O,
281
+ event: {
282
+ time: Date.now(),
283
+ title: r.type,
284
+ groupId: r._id,
285
+ subtitle: "end",
286
+ data: i
287
+ }
288
+ });
289
+ }
290
+ });
291
+ }
292
+ );
293
+ }
294
+ var j = 8702998, st = 6710886, ct = 16777215, L = {
295
+ label: "namespaced",
296
+ textColor: ct,
297
+ backgroundColor: st
298
+ };
299
+ function $(e) {
300
+ return e && e !== "root" ? e.split("/").slice(-2, -1)[0] : "Root";
301
+ }
302
+ function R(e, t) {
303
+ return {
304
+ id: t || "root",
305
+ // all modules end with a `/`, we want the last segment only
306
+ // cart/ -> cart
307
+ // nested/cart/ -> cart
308
+ label: $(t),
309
+ tags: e.namespaced ? [L] : [],
310
+ children: Object.keys(e._children).map(
311
+ function(n) {
312
+ return R(
313
+ e._children[n],
314
+ t + n + "/"
315
+ );
316
+ }
317
+ )
318
+ };
319
+ }
320
+ function P(e, t, n, r) {
321
+ r.includes(n) && e.push({
322
+ id: r || "root",
323
+ label: r.endsWith("/") ? r.slice(0, r.length - 1) : r || "Root",
324
+ tags: t.namespaced ? [L] : []
325
+ }), Object.keys(t._children).forEach(function(o) {
326
+ P(e, t._children[o], n, r + o + "/");
327
+ });
328
+ }
329
+ function at(e, t, n) {
330
+ t = n === "root" ? t : t[n];
331
+ var r = Object.keys(t), o = {
332
+ state: Object.keys(e.state).map(function(s) {
333
+ return {
334
+ key: s,
335
+ editable: !0,
336
+ value: e.state[s]
337
+ };
338
+ })
339
+ };
340
+ if (r.length) {
341
+ var i = ut(t);
342
+ o.getters = Object.keys(i).map(function(s) {
343
+ return {
344
+ key: s.endsWith("/") ? $(s) : s,
345
+ editable: !1,
346
+ value: N(function() {
347
+ return i[s];
348
+ })
349
+ };
350
+ });
351
+ }
352
+ return o;
353
+ }
354
+ function ut(e) {
355
+ var t = {};
356
+ return Object.keys(e).forEach(function(n) {
357
+ var r = n.split("/");
358
+ if (r.length > 1) {
359
+ var o = t, i = r.pop();
360
+ r.forEach(function(s) {
361
+ o[s] || (o[s] = {
362
+ _custom: {
363
+ value: {},
364
+ display: s,
365
+ tooltip: "Module",
366
+ abstract: !0
367
+ }
368
+ }), o = o[s]._custom.value;
369
+ }), o[i] = N(function() {
370
+ return e[n];
371
+ });
372
+ } else
373
+ t[n] = N(function() {
374
+ return e[n];
375
+ });
376
+ }), t;
377
+ }
378
+ function ft(e, t) {
379
+ var n = t.split("/").filter(function(r) {
380
+ return r;
381
+ });
382
+ return n.reduce(
383
+ function(r, o, i) {
384
+ var s = r[o];
385
+ if (!s)
386
+ throw new Error('Missing module "' + o + '" for path "' + t + '".');
387
+ return i === n.length - 1 ? s : s._children;
388
+ },
389
+ t === "root" ? e : e.root._children
390
+ );
391
+ }
392
+ function N(e) {
393
+ try {
394
+ return e();
395
+ } catch (t) {
396
+ return t;
397
+ }
398
+ }
399
+ var m = function(t, n) {
400
+ this.runtime = n, this._children = /* @__PURE__ */ Object.create(null), this._rawModule = t;
401
+ var r = t.state;
402
+ this.state = (typeof r == "function" ? r() : r) || {};
403
+ }, k = { namespaced: { configurable: !0 } };
404
+ k.namespaced.get = function() {
405
+ return !!this._rawModule.namespaced;
406
+ };
407
+ m.prototype.addChild = function(t, n) {
408
+ this._children[t] = n;
409
+ };
410
+ m.prototype.removeChild = function(t) {
411
+ delete this._children[t];
412
+ };
413
+ m.prototype.getChild = function(t) {
414
+ return this._children[t];
415
+ };
416
+ m.prototype.hasChild = function(t) {
417
+ return t in this._children;
418
+ };
419
+ m.prototype.update = function(t) {
420
+ this._rawModule.namespaced = t.namespaced, t.actions && (this._rawModule.actions = t.actions), t.mutations && (this._rawModule.mutations = t.mutations), t.getters && (this._rawModule.getters = t.getters);
421
+ };
422
+ m.prototype.forEachChild = function(t) {
423
+ _(this._children, t);
424
+ };
425
+ m.prototype.forEachGetter = function(t) {
426
+ this._rawModule.getters && _(this._rawModule.getters, t);
427
+ };
428
+ m.prototype.forEachAction = function(t) {
429
+ this._rawModule.actions && _(this._rawModule.actions, t);
430
+ };
431
+ m.prototype.forEachMutation = function(t) {
432
+ this._rawModule.mutations && _(this._rawModule.mutations, t);
433
+ };
434
+ Object.defineProperties(m.prototype, k);
435
+ var g = function(t) {
436
+ this.register([], t, !1);
437
+ };
438
+ g.prototype.get = function(t) {
439
+ return t.reduce(function(n, r) {
440
+ return n.getChild(r);
441
+ }, this.root);
442
+ };
443
+ g.prototype.getNamespace = function(t) {
444
+ var n = this.root;
445
+ return t.reduce(function(r, o) {
446
+ return n = n.getChild(o), r + (n.namespaced ? o + "/" : "");
447
+ }, "");
448
+ };
449
+ g.prototype.update = function(t) {
450
+ F([], this.root, t);
451
+ };
452
+ g.prototype.register = function(t, n, r) {
453
+ var o = this;
454
+ r === void 0 && (r = !0), process.env.NODE_ENV !== "production" && U(t, n);
455
+ var i = new m(n, r);
456
+ if (t.length === 0)
457
+ this.root = i;
458
+ else {
459
+ var s = this.get(t.slice(0, -1));
460
+ s.addChild(t[t.length - 1], i);
461
+ }
462
+ n.modules && _(n.modules, function(f, a) {
463
+ o.register(t.concat(a), f, r);
464
+ });
465
+ };
466
+ g.prototype.unregister = function(t) {
467
+ var n = this.get(t.slice(0, -1)), r = t[t.length - 1], o = n.getChild(r);
468
+ if (!o) {
469
+ process.env.NODE_ENV !== "production" && console.warn(
470
+ "[vuex] trying to unregister module '" + r + "', which is not registered"
471
+ );
472
+ return;
473
+ }
474
+ o.runtime && n.removeChild(r);
475
+ };
476
+ g.prototype.isRegistered = function(t) {
477
+ var n = this.get(t.slice(0, -1)), r = t[t.length - 1];
478
+ return n ? n.hasChild(r) : !1;
479
+ };
480
+ function F(e, t, n) {
481
+ if (process.env.NODE_ENV !== "production" && U(e, n), t.update(n), n.modules)
482
+ for (var r in n.modules) {
483
+ if (!t.getChild(r)) {
484
+ process.env.NODE_ENV !== "production" && console.warn(
485
+ "[vuex] trying to add a new module '" + r + "' on hot reloading, manual reload is needed"
486
+ );
487
+ return;
488
+ }
489
+ F(
490
+ e.concat(r),
491
+ t.getChild(r),
492
+ n.modules[r]
493
+ );
494
+ }
495
+ }
496
+ var D = {
497
+ assert: function(e) {
498
+ return typeof e == "function";
499
+ },
500
+ expected: "function"
501
+ }, lt = {
502
+ assert: function(e) {
503
+ return typeof e == "function" || typeof e == "object" && typeof e.handler == "function";
504
+ },
505
+ expected: 'function or object with "handler" function'
506
+ }, A = {
507
+ getters: D,
508
+ mutations: D,
509
+ actions: lt
510
+ };
511
+ function U(e, t) {
512
+ Object.keys(A).forEach(function(n) {
513
+ if (t[n]) {
514
+ var r = A[n];
515
+ _(t[n], function(o, i) {
516
+ h(
517
+ r.assert(o),
518
+ dt(e, n, i, o, r.expected)
519
+ );
520
+ });
521
+ }
522
+ });
523
+ }
524
+ function dt(e, t, n, r, o) {
525
+ var i = t + " should be " + o + ' but "' + t + "." + n + '"';
526
+ return e.length > 0 && (i += ' in module "' + e.join(".") + '"'), i += " is " + JSON.stringify(r) + ".", i;
527
+ }
528
+ function mt(e) {
529
+ return new v(e);
530
+ }
531
+ var v = function e(t) {
532
+ var n = this;
533
+ t === void 0 && (t = {}), process.env.NODE_ENV !== "production" && (h(typeof Promise < "u", "vuex requires a Promise polyfill in this browser."), h(this instanceof e, "store must be called with the new operator."));
534
+ var r = t.plugins;
535
+ r === void 0 && (r = []);
536
+ var o = t.strict;
537
+ o === void 0 && (o = !1);
538
+ var i = t.devtools;
539
+ this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new g(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = i;
540
+ var s = this, f = this, a = f.dispatch, p = f.commit;
541
+ this.dispatch = function(d, l) {
542
+ return a.call(s, d, l);
543
+ }, this.commit = function(d, l, H) {
544
+ return p.call(s, d, l, H);
545
+ }, this.strict = o;
546
+ var c = this._modules.root.state;
547
+ E(this, c, [], this._modules.root), w(this, c), r.forEach(function(u) {
548
+ return u(n);
549
+ });
550
+ }, x = { state: { configurable: !0 } };
551
+ v.prototype.install = function(t, n) {
552
+ t.provide(n || V, this), t.config.globalProperties.$store = this;
553
+ var r = this._devtools !== void 0 ? this._devtools : process.env.NODE_ENV !== "production" || !1;
554
+ r && it(t, this);
555
+ };
556
+ x.state.get = function() {
557
+ return this._state.data;
558
+ };
559
+ x.state.set = function(e) {
560
+ process.env.NODE_ENV !== "production" && h(!1, "use store.replaceState() to explicit replace store state.");
561
+ };
562
+ v.prototype.commit = function(t, n, r) {
563
+ var o = this, i = y(t, n, r), s = i.type, f = i.payload, a = i.options, p = { type: s, payload: f }, c = this._mutations[s];
564
+ if (!c) {
565
+ process.env.NODE_ENV !== "production" && console.error("[vuex] unknown mutation type: " + s);
566
+ return;
567
+ }
568
+ this._withCommit(function() {
569
+ c.forEach(function(d) {
570
+ d(f);
571
+ });
572
+ }), this._subscribers.slice().forEach(function(u) {
573
+ return u(p, o.state);
574
+ }), process.env.NODE_ENV !== "production" && a && a.silent && console.warn(
575
+ "[vuex] mutation type: " + s + ". Silent option has been removed. Use the filter functionality in the vue-devtools"
576
+ );
577
+ };
578
+ v.prototype.dispatch = function(t, n) {
579
+ var r = this, o = y(t, n), i = o.type, s = o.payload, f = { type: i, payload: s }, a = this._actions[i];
580
+ if (!a) {
581
+ process.env.NODE_ENV !== "production" && console.error("[vuex] unknown action type: " + i);
582
+ return;
583
+ }
584
+ try {
585
+ this._actionSubscribers.slice().filter(function(c) {
586
+ return c.before;
587
+ }).forEach(function(c) {
588
+ return c.before(f, r.state);
589
+ });
590
+ } catch (c) {
591
+ process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in before action subscribers: "), console.error(c));
592
+ }
593
+ var p = a.length > 1 ? Promise.all(a.map(function(c) {
594
+ return c(s);
595
+ })) : a[0](s);
596
+ return new Promise(function(c, u) {
597
+ p.then(function(d) {
598
+ try {
599
+ r._actionSubscribers.filter(function(l) {
600
+ return l.after;
601
+ }).forEach(function(l) {
602
+ return l.after(f, r.state);
603
+ });
604
+ } catch (l) {
605
+ process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(l));
606
+ }
607
+ c(d);
608
+ }, function(d) {
609
+ try {
610
+ r._actionSubscribers.filter(function(l) {
611
+ return l.error;
612
+ }).forEach(function(l) {
613
+ return l.error(f, r.state, d);
614
+ });
615
+ } catch (l) {
616
+ process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error(l));
617
+ }
618
+ u(d);
619
+ });
620
+ });
621
+ };
622
+ v.prototype.subscribe = function(t, n) {
623
+ return M(t, this._subscribers, n);
624
+ };
625
+ v.prototype.subscribeAction = function(t, n) {
626
+ var r = typeof t == "function" ? { before: t } : t;
627
+ return M(r, this._actionSubscribers, n);
628
+ };
629
+ v.prototype.watch = function(t, n, r) {
630
+ var o = this;
631
+ return process.env.NODE_ENV !== "production" && h(typeof t == "function", "store.watch only accepts a function."), I(function() {
632
+ return t(o.state, o.getters);
633
+ }, n, Object.assign({}, r));
634
+ };
635
+ v.prototype.replaceState = function(t) {
636
+ var n = this;
637
+ this._withCommit(function() {
638
+ n._state.data = t;
639
+ });
640
+ };
641
+ v.prototype.registerModule = function(t, n, r) {
642
+ r === void 0 && (r = {}), typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && (h(Array.isArray(t), "module path must be a string or an Array."), h(t.length > 0, "cannot register the root module by using registerModule.")), this._modules.register(t, n), E(this, this.state, t, this._modules.get(t), r.preserveState), w(this, this.state);
643
+ };
644
+ v.prototype.unregisterModule = function(t) {
645
+ var n = this;
646
+ typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && h(Array.isArray(t), "module path must be a string or an Array."), this._modules.unregister(t), this._withCommit(function() {
647
+ var r = C(n.state, t.slice(0, -1));
648
+ delete r[t[t.length - 1]];
649
+ }), T(this);
650
+ };
651
+ v.prototype.hasModule = function(t) {
652
+ return typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && h(Array.isArray(t), "module path must be a string or an Array."), this._modules.isRegistered(t);
653
+ };
654
+ v.prototype.hotUpdate = function(t) {
655
+ this._modules.update(t), T(this, !0);
656
+ };
657
+ v.prototype._withCommit = function(t) {
658
+ var n = this._committing;
659
+ this._committing = !0, t(), this._committing = n;
660
+ };
661
+ Object.defineProperties(v.prototype, x);
662
+ export {
663
+ v as Store,
664
+ mt as createStore,
665
+ V as storeKey,
666
+ ht as useStore
667
+ };