@webitel/ui-sdk 25.12.26 → 25.12.27

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,950 @@
1
+ import { p as d } from "./install-A9G4M7-6.js";
2
+ import { inject as lt, effectScope as dt, reactive as vt, watch as J, computed as pt } from "vue";
3
+ function ht() {
4
+ return W().__VUE_DEVTOOLS_GLOBAL_HOOK__;
5
+ }
6
+ function W() {
7
+ return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
8
+ }
9
+ const gt = typeof Proxy == "function", mt = "devtools-plugin:setup", _t = "plugin:settings:set";
10
+ let E, M;
11
+ function yt() {
12
+ var t;
13
+ return E !== void 0 || (typeof window < "u" && window.performance ? (E = !0, M = window.performance) : typeof globalThis < "u" && (!((t = globalThis.perf_hooks) === null || t === void 0) && t.performance) ? (E = !0, M = globalThis.perf_hooks.performance) : E = !1), E;
14
+ }
15
+ function bt() {
16
+ return yt() ? M.now() : Date.now();
17
+ }
18
+ class Et {
19
+ constructor(e, n) {
20
+ this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = n;
21
+ const r = {};
22
+ if (e.settings)
23
+ for (const a in e.settings) {
24
+ const s = e.settings[a];
25
+ r[a] = s.defaultValue;
26
+ }
27
+ const i = `__vue-devtools-plugin-settings__${e.id}`;
28
+ let o = Object.assign({}, r);
29
+ try {
30
+ const a = localStorage.getItem(i), s = JSON.parse(a);
31
+ Object.assign(o, s);
32
+ } catch {
33
+ }
34
+ this.fallbacks = {
35
+ getSettings() {
36
+ return o;
37
+ },
38
+ setSettings(a) {
39
+ try {
40
+ localStorage.setItem(i, JSON.stringify(a));
41
+ } catch {
42
+ }
43
+ o = a;
44
+ },
45
+ now() {
46
+ return bt();
47
+ }
48
+ }, n && n.on(_t, (a, s) => {
49
+ a === this.plugin.id && this.fallbacks.setSettings(s);
50
+ }), this.proxiedOn = new Proxy({}, {
51
+ get: (a, s) => this.target ? this.target.on[s] : (...u) => {
52
+ this.onQueue.push({
53
+ method: s,
54
+ args: u
55
+ });
56
+ }
57
+ }), this.proxiedTarget = new Proxy({}, {
58
+ get: (a, s) => this.target ? this.target[s] : s === "on" ? this.proxiedOn : Object.keys(this.fallbacks).includes(s) ? (...u) => (this.targetQueue.push({
59
+ method: s,
60
+ args: u,
61
+ resolve: () => {
62
+ }
63
+ }), this.fallbacks[s](...u)) : (...u) => new Promise((f) => {
64
+ this.targetQueue.push({
65
+ method: s,
66
+ args: u,
67
+ resolve: f
68
+ });
69
+ })
70
+ });
71
+ }
72
+ async setRealTarget(e) {
73
+ this.target = e;
74
+ for (const n of this.onQueue)
75
+ this.target.on[n.method](...n.args);
76
+ for (const n of this.targetQueue)
77
+ n.resolve(await this.target[n.method](...n.args));
78
+ }
79
+ }
80
+ function Ot(t, e) {
81
+ const n = t, r = W(), i = ht(), o = gt && n.enableEarlyProxy;
82
+ if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !o))
83
+ i.emit(mt, t, e);
84
+ else {
85
+ const a = o ? new Et(n, i) : null;
86
+ (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
87
+ pluginDescriptor: n,
88
+ setupFn: e,
89
+ proxy: a
90
+ }), a && e(a.proxiedTarget);
91
+ }
92
+ }
93
+ var $ = "store";
94
+ function Nt(t) {
95
+ return t === void 0 && (t = null), lt(t !== null ? t : $);
96
+ }
97
+ function wt(t, e) {
98
+ return t.filter(e)[0];
99
+ }
100
+ function I(t, e) {
101
+ if (e === void 0 && (e = []), t === null || typeof t != "object")
102
+ return t;
103
+ var n = wt(e, function(i) {
104
+ return i.original === t;
105
+ });
106
+ if (n)
107
+ return n.copy;
108
+ var r = Array.isArray(t) ? [] : {};
109
+ return e.push({
110
+ original: t,
111
+ copy: r
112
+ }), Object.keys(t).forEach(function(i) {
113
+ r[i] = I(t[i], e);
114
+ }), r;
115
+ }
116
+ function y(t, e) {
117
+ Object.keys(t).forEach(function(n) {
118
+ return e(t[n], n);
119
+ });
120
+ }
121
+ function z(t) {
122
+ return t !== null && typeof t == "object";
123
+ }
124
+ function St(t) {
125
+ return t && typeof t.then == "function";
126
+ }
127
+ function g(t, e) {
128
+ if (!t)
129
+ throw new Error("[vuex] " + e);
130
+ }
131
+ function xt(t, e) {
132
+ return function() {
133
+ return t(e);
134
+ };
135
+ }
136
+ function Y(t, e, n) {
137
+ return e.indexOf(t) < 0 && (n && n.prepend ? e.unshift(t) : e.push(t)), function() {
138
+ var r = e.indexOf(t);
139
+ r > -1 && e.splice(r, 1);
140
+ };
141
+ }
142
+ function q(t, e) {
143
+ t._actions = /* @__PURE__ */ Object.create(null), t._mutations = /* @__PURE__ */ Object.create(null), t._wrappedGetters = /* @__PURE__ */ Object.create(null), t._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
144
+ var n = t.state;
145
+ x(t, n, [], t._modules.root, !0), L(t, n, e);
146
+ }
147
+ function L(t, e, n) {
148
+ var r = t._state, i = t._scope;
149
+ t.getters = {}, t._makeLocalGettersCache = /* @__PURE__ */ Object.create(null);
150
+ var o = t._wrappedGetters, a = {}, s = {}, u = dt(!0);
151
+ u.run(function() {
152
+ y(o, function(f, c) {
153
+ a[c] = xt(f, t), s[c] = pt(function() {
154
+ return a[c]();
155
+ }), Object.defineProperty(t.getters, c, {
156
+ get: function() {
157
+ return s[c].value;
158
+ },
159
+ enumerable: !0
160
+ // for local getters
161
+ });
162
+ });
163
+ }), t._state = vt({
164
+ data: e
165
+ }), t._scope = u, t.strict && Tt(t), r && n && t._withCommit(function() {
166
+ r.data = null;
167
+ }), i && i.stop();
168
+ }
169
+ function x(t, e, n, r, i) {
170
+ var o = !n.length, a = t._modules.getNamespace(n);
171
+ if (r.namespaced && (t._modulesNamespaceMap[a] && d.env.NODE_ENV !== "production" && console.error("[vuex] duplicate namespace " + a + " for the namespaced module " + n.join("/")), t._modulesNamespaceMap[a] = r), !o && !i) {
172
+ var s = P(e, n.slice(0, -1)), u = n[n.length - 1];
173
+ t._withCommit(function() {
174
+ d.env.NODE_ENV !== "production" && u in s && console.warn(
175
+ '[vuex] state field "' + u + '" was overridden by a module with the same name at "' + n.join(".") + '"'
176
+ ), s[u] = r.state;
177
+ });
178
+ }
179
+ var f = r.context = At(t, a, n);
180
+ r.forEachMutation(function(c, l) {
181
+ var v = a + l;
182
+ Dt(t, v, c, f);
183
+ }), r.forEachAction(function(c, l) {
184
+ var v = c.root ? l : a + l, p = c.handler || c;
185
+ Ct(t, v, p, f);
186
+ }), r.forEachGetter(function(c, l) {
187
+ var v = a + l;
188
+ Vt(t, v, c, f);
189
+ }), r.forEachChild(function(c, l) {
190
+ x(t, e, n.concat(l), c, i);
191
+ });
192
+ }
193
+ function At(t, e, n) {
194
+ var r = e === "", i = {
195
+ dispatch: r ? t.dispatch : function(o, a, s) {
196
+ var u = S(o, a, s), f = u.payload, c = u.options, l = u.type;
197
+ if ((!c || !c.root) && (l = e + l, d.env.NODE_ENV !== "production" && !t._actions[l])) {
198
+ console.error("[vuex] unknown local action type: " + u.type + ", global type: " + l);
199
+ return;
200
+ }
201
+ return t.dispatch(l, f);
202
+ },
203
+ commit: r ? t.commit : function(o, a, s) {
204
+ var u = S(o, a, s), f = u.payload, c = u.options, l = u.type;
205
+ if ((!c || !c.root) && (l = e + l, d.env.NODE_ENV !== "production" && !t._mutations[l])) {
206
+ console.error("[vuex] unknown local mutation type: " + u.type + ", global type: " + l);
207
+ return;
208
+ }
209
+ t.commit(l, f, c);
210
+ }
211
+ };
212
+ return Object.defineProperties(i, {
213
+ getters: {
214
+ get: r ? function() {
215
+ return t.getters;
216
+ } : function() {
217
+ return X(t, e);
218
+ }
219
+ },
220
+ state: {
221
+ get: function() {
222
+ return P(t.state, n);
223
+ }
224
+ }
225
+ }), i;
226
+ }
227
+ function X(t, e) {
228
+ if (!t._makeLocalGettersCache[e]) {
229
+ var n = {}, r = e.length;
230
+ Object.keys(t.getters).forEach(function(i) {
231
+ if (i.slice(0, r) === e) {
232
+ var o = i.slice(r);
233
+ Object.defineProperty(n, o, {
234
+ get: function() {
235
+ return t.getters[i];
236
+ },
237
+ enumerable: !0
238
+ });
239
+ }
240
+ }), t._makeLocalGettersCache[e] = n;
241
+ }
242
+ return t._makeLocalGettersCache[e];
243
+ }
244
+ function Dt(t, e, n, r) {
245
+ var i = t._mutations[e] || (t._mutations[e] = []);
246
+ i.push(function(a) {
247
+ n.call(t, r.state, a);
248
+ });
249
+ }
250
+ function Ct(t, e, n, r) {
251
+ var i = t._actions[e] || (t._actions[e] = []);
252
+ i.push(function(a) {
253
+ var s = n.call(t, {
254
+ dispatch: r.dispatch,
255
+ commit: r.commit,
256
+ getters: r.getters,
257
+ state: r.state,
258
+ rootGetters: t.getters,
259
+ rootState: t.state
260
+ }, a);
261
+ return St(s) || (s = Promise.resolve(s)), t._devtoolHook ? s.catch(function(u) {
262
+ throw t._devtoolHook.emit("vuex:error", u), u;
263
+ }) : s;
264
+ });
265
+ }
266
+ function Vt(t, e, n, r) {
267
+ if (t._wrappedGetters[e]) {
268
+ d.env.NODE_ENV !== "production" && console.error("[vuex] duplicate getter key: " + e);
269
+ return;
270
+ }
271
+ t._wrappedGetters[e] = function(o) {
272
+ return n(
273
+ r.state,
274
+ // local state
275
+ r.getters,
276
+ // local getters
277
+ o.state,
278
+ // root state
279
+ o.getters
280
+ // root getters
281
+ );
282
+ };
283
+ }
284
+ function Tt(t) {
285
+ J(function() {
286
+ return t._state.data;
287
+ }, function() {
288
+ d.env.NODE_ENV !== "production" && g(t._committing, "do not mutate vuex store state outside mutation handlers.");
289
+ }, { deep: !0, flush: "sync" });
290
+ }
291
+ function P(t, e) {
292
+ return e.reduce(function(n, r) {
293
+ return n[r];
294
+ }, t);
295
+ }
296
+ function S(t, e, n) {
297
+ return z(t) && t.type && (n = e, e = t, t = t.type), d.env.NODE_ENV !== "production" && g(typeof t == "string", "expects string as the type, but found " + typeof t + "."), { type: t, payload: e, options: n };
298
+ }
299
+ var jt = "vuex bindings", R = "vuex:mutations", j = "vuex:actions", O = "vuex", Mt = 0;
300
+ function It(t, e) {
301
+ Ot(
302
+ {
303
+ id: "org.vuejs.vuex",
304
+ app: t,
305
+ label: "Vuex",
306
+ homepage: "https://next.vuex.vuejs.org/",
307
+ logo: "https://vuejs.org/images/icons/favicon-96x96.png",
308
+ packageName: "vuex",
309
+ componentStateTypes: [jt]
310
+ },
311
+ function(n) {
312
+ n.addTimelineLayer({
313
+ id: R,
314
+ label: "Vuex Mutations",
315
+ color: U
316
+ }), n.addTimelineLayer({
317
+ id: j,
318
+ label: "Vuex Actions",
319
+ color: U
320
+ }), n.addInspector({
321
+ id: O,
322
+ label: "Vuex",
323
+ icon: "storage",
324
+ treeFilterPlaceholder: "Filter stores..."
325
+ }), n.on.getInspectorTree(function(r) {
326
+ if (r.app === t && r.inspectorId === O)
327
+ if (r.filter) {
328
+ var i = [];
329
+ rt(i, e._modules.root, r.filter, ""), r.rootNodes = i;
330
+ } else
331
+ r.rootNodes = [
332
+ et(e._modules.root, "")
333
+ ];
334
+ }), n.on.getInspectorState(function(r) {
335
+ if (r.app === t && r.inspectorId === O) {
336
+ var i = r.nodeId;
337
+ X(e, i), r.state = Lt(
338
+ kt(e._modules, i),
339
+ i === "root" ? e.getters : e._makeLocalGettersCache,
340
+ i
341
+ );
342
+ }
343
+ }), n.on.editInspectorState(function(r) {
344
+ if (r.app === t && r.inspectorId === O) {
345
+ var i = r.nodeId, o = r.path;
346
+ i !== "root" && (o = i.split("/").filter(Boolean).concat(o)), e._withCommit(function() {
347
+ r.set(e._state.data, o, r.state.value);
348
+ });
349
+ }
350
+ }), e.subscribe(function(r, i) {
351
+ var o = {};
352
+ r.payload && (o.payload = r.payload), o.state = i, n.notifyComponentUpdate(), n.sendInspectorTree(O), n.sendInspectorState(O), n.addTimelineEvent({
353
+ layerId: R,
354
+ event: {
355
+ time: Date.now(),
356
+ title: r.type,
357
+ data: o
358
+ }
359
+ });
360
+ }), e.subscribeAction({
361
+ before: function(r, i) {
362
+ var o = {};
363
+ r.payload && (o.payload = r.payload), r._id = Mt++, r._time = Date.now(), o.state = i, n.addTimelineEvent({
364
+ layerId: j,
365
+ event: {
366
+ time: r._time,
367
+ title: r.type,
368
+ groupId: r._id,
369
+ subtitle: "start",
370
+ data: o
371
+ }
372
+ });
373
+ },
374
+ after: function(r, i) {
375
+ var o = {}, a = Date.now() - r._time;
376
+ o.duration = {
377
+ _custom: {
378
+ type: "duration",
379
+ display: a + "ms",
380
+ tooltip: "Action duration",
381
+ value: a
382
+ }
383
+ }, r.payload && (o.payload = r.payload), o.state = i, n.addTimelineEvent({
384
+ layerId: j,
385
+ event: {
386
+ time: Date.now(),
387
+ title: r.type,
388
+ groupId: r._id,
389
+ subtitle: "end",
390
+ data: o
391
+ }
392
+ });
393
+ }
394
+ });
395
+ }
396
+ );
397
+ }
398
+ var U = 8702998, Gt = 6710886, $t = 16777215, Z = {
399
+ label: "namespaced",
400
+ textColor: $t,
401
+ backgroundColor: Gt
402
+ };
403
+ function tt(t) {
404
+ return t && t !== "root" ? t.split("/").slice(-2, -1)[0] : "Root";
405
+ }
406
+ function et(t, e) {
407
+ return {
408
+ id: e || "root",
409
+ // all modules end with a `/`, we want the last segment only
410
+ // cart/ -> cart
411
+ // nested/cart/ -> cart
412
+ label: tt(e),
413
+ tags: t.namespaced ? [Z] : [],
414
+ children: Object.keys(t._children).map(
415
+ function(n) {
416
+ return et(
417
+ t._children[n],
418
+ e + n + "/"
419
+ );
420
+ }
421
+ )
422
+ };
423
+ }
424
+ function rt(t, e, n, r) {
425
+ r.includes(n) && t.push({
426
+ id: r || "root",
427
+ label: r.endsWith("/") ? r.slice(0, r.length - 1) : r || "Root",
428
+ tags: e.namespaced ? [Z] : []
429
+ }), Object.keys(e._children).forEach(function(i) {
430
+ rt(t, e._children[i], n, r + i + "/");
431
+ });
432
+ }
433
+ function Lt(t, e, n) {
434
+ e = n === "root" ? e : e[n];
435
+ var r = Object.keys(e), i = {
436
+ state: Object.keys(t.state).map(function(a) {
437
+ return {
438
+ key: a,
439
+ editable: !0,
440
+ value: t.state[a]
441
+ };
442
+ })
443
+ };
444
+ if (r.length) {
445
+ var o = Pt(e);
446
+ i.getters = Object.keys(o).map(function(a) {
447
+ return {
448
+ key: a.endsWith("/") ? tt(a) : a,
449
+ editable: !1,
450
+ value: G(function() {
451
+ return o[a];
452
+ })
453
+ };
454
+ });
455
+ }
456
+ return i;
457
+ }
458
+ function Pt(t) {
459
+ var e = {};
460
+ return Object.keys(t).forEach(function(n) {
461
+ var r = n.split("/");
462
+ if (r.length > 1) {
463
+ var i = e, o = r.pop();
464
+ r.forEach(function(a) {
465
+ i[a] || (i[a] = {
466
+ _custom: {
467
+ value: {},
468
+ display: a,
469
+ tooltip: "Module",
470
+ abstract: !0
471
+ }
472
+ }), i = i[a]._custom.value;
473
+ }), i[o] = G(function() {
474
+ return t[n];
475
+ });
476
+ } else
477
+ e[n] = G(function() {
478
+ return t[n];
479
+ });
480
+ }), e;
481
+ }
482
+ function kt(t, e) {
483
+ var n = e.split("/").filter(function(r) {
484
+ return r;
485
+ });
486
+ return n.reduce(
487
+ function(r, i, o) {
488
+ var a = r[i];
489
+ if (!a)
490
+ throw new Error('Missing module "' + i + '" for path "' + e + '".');
491
+ return o === n.length - 1 ? a : a._children;
492
+ },
493
+ e === "root" ? t : t.root._children
494
+ );
495
+ }
496
+ function G(t) {
497
+ try {
498
+ return t();
499
+ } catch (e) {
500
+ return e;
501
+ }
502
+ }
503
+ var m = function(e, n) {
504
+ this.runtime = n, this._children = /* @__PURE__ */ Object.create(null), this._rawModule = e;
505
+ var r = e.state;
506
+ this.state = (typeof r == "function" ? r() : r) || {};
507
+ }, nt = { namespaced: { configurable: !0 } };
508
+ nt.namespaced.get = function() {
509
+ return !!this._rawModule.namespaced;
510
+ };
511
+ m.prototype.addChild = function(e, n) {
512
+ this._children[e] = n;
513
+ };
514
+ m.prototype.removeChild = function(e) {
515
+ delete this._children[e];
516
+ };
517
+ m.prototype.getChild = function(e) {
518
+ return this._children[e];
519
+ };
520
+ m.prototype.hasChild = function(e) {
521
+ return e in this._children;
522
+ };
523
+ m.prototype.update = function(e) {
524
+ this._rawModule.namespaced = e.namespaced, e.actions && (this._rawModule.actions = e.actions), e.mutations && (this._rawModule.mutations = e.mutations), e.getters && (this._rawModule.getters = e.getters);
525
+ };
526
+ m.prototype.forEachChild = function(e) {
527
+ y(this._children, e);
528
+ };
529
+ m.prototype.forEachGetter = function(e) {
530
+ this._rawModule.getters && y(this._rawModule.getters, e);
531
+ };
532
+ m.prototype.forEachAction = function(e) {
533
+ this._rawModule.actions && y(this._rawModule.actions, e);
534
+ };
535
+ m.prototype.forEachMutation = function(e) {
536
+ this._rawModule.mutations && y(this._rawModule.mutations, e);
537
+ };
538
+ Object.defineProperties(m.prototype, nt);
539
+ var b = function(e) {
540
+ this.register([], e, !1);
541
+ };
542
+ b.prototype.get = function(e) {
543
+ return e.reduce(function(n, r) {
544
+ return n.getChild(r);
545
+ }, this.root);
546
+ };
547
+ b.prototype.getNamespace = function(e) {
548
+ var n = this.root;
549
+ return e.reduce(function(r, i) {
550
+ return n = n.getChild(i), r + (n.namespaced ? i + "/" : "");
551
+ }, "");
552
+ };
553
+ b.prototype.update = function(e) {
554
+ it([], this.root, e);
555
+ };
556
+ b.prototype.register = function(e, n, r) {
557
+ var i = this;
558
+ r === void 0 && (r = !0), d.env.NODE_ENV !== "production" && ot(e, n);
559
+ var o = new m(n, r);
560
+ if (e.length === 0)
561
+ this.root = o;
562
+ else {
563
+ var a = this.get(e.slice(0, -1));
564
+ a.addChild(e[e.length - 1], o);
565
+ }
566
+ n.modules && y(n.modules, function(s, u) {
567
+ i.register(e.concat(u), s, r);
568
+ });
569
+ };
570
+ b.prototype.unregister = function(e) {
571
+ var n = this.get(e.slice(0, -1)), r = e[e.length - 1], i = n.getChild(r);
572
+ if (!i) {
573
+ d.env.NODE_ENV !== "production" && console.warn(
574
+ "[vuex] trying to unregister module '" + r + "', which is not registered"
575
+ );
576
+ return;
577
+ }
578
+ i.runtime && n.removeChild(r);
579
+ };
580
+ b.prototype.isRegistered = function(e) {
581
+ var n = this.get(e.slice(0, -1)), r = e[e.length - 1];
582
+ return n ? n.hasChild(r) : !1;
583
+ };
584
+ function it(t, e, n) {
585
+ if (d.env.NODE_ENV !== "production" && ot(t, n), e.update(n), n.modules)
586
+ for (var r in n.modules) {
587
+ if (!e.getChild(r)) {
588
+ d.env.NODE_ENV !== "production" && console.warn(
589
+ "[vuex] trying to add a new module '" + r + "' on hot reloading, manual reload is needed"
590
+ );
591
+ return;
592
+ }
593
+ it(
594
+ t.concat(r),
595
+ e.getChild(r),
596
+ n.modules[r]
597
+ );
598
+ }
599
+ }
600
+ var H = {
601
+ assert: function(t) {
602
+ return typeof t == "function";
603
+ },
604
+ expected: "function"
605
+ }, Rt = {
606
+ assert: function(t) {
607
+ return typeof t == "function" || typeof t == "object" && typeof t.handler == "function";
608
+ },
609
+ expected: 'function or object with "handler" function'
610
+ }, F = {
611
+ getters: H,
612
+ mutations: H,
613
+ actions: Rt
614
+ };
615
+ function ot(t, e) {
616
+ Object.keys(F).forEach(function(n) {
617
+ if (e[n]) {
618
+ var r = F[n];
619
+ y(e[n], function(i, o) {
620
+ g(
621
+ r.assert(i),
622
+ Ut(t, n, o, i, r.expected)
623
+ );
624
+ });
625
+ }
626
+ });
627
+ }
628
+ function Ut(t, e, n, r, i) {
629
+ var o = e + " should be " + i + ' but "' + e + "." + n + '"';
630
+ return t.length > 0 && (o += ' in module "' + t.join(".") + '"'), o += " is " + JSON.stringify(r) + ".", o;
631
+ }
632
+ function Ht(t) {
633
+ return new h(t);
634
+ }
635
+ var h = function t(e) {
636
+ var n = this;
637
+ e === void 0 && (e = {}), d.env.NODE_ENV !== "production" && (g(typeof Promise < "u", "vuex requires a Promise polyfill in this browser."), g(this instanceof t, "store must be called with the new operator."));
638
+ var r = e.plugins;
639
+ r === void 0 && (r = []);
640
+ var i = e.strict;
641
+ i === void 0 && (i = !1);
642
+ var o = e.devtools;
643
+ 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 b(e), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = o;
644
+ var a = this, s = this, u = s.dispatch, f = s.commit;
645
+ this.dispatch = function(v, p) {
646
+ return u.call(a, v, p);
647
+ }, this.commit = function(v, p, _) {
648
+ return f.call(a, v, p, _);
649
+ }, this.strict = i;
650
+ var c = this._modules.root.state;
651
+ x(this, c, [], this._modules.root), L(this, c), r.forEach(function(l) {
652
+ return l(n);
653
+ });
654
+ }, k = { state: { configurable: !0 } };
655
+ h.prototype.install = function(e, n) {
656
+ e.provide(n || $, this), e.config.globalProperties.$store = this;
657
+ var r = this._devtools !== void 0 ? this._devtools : d.env.NODE_ENV !== "production" || !1;
658
+ r && It(e, this);
659
+ };
660
+ k.state.get = function() {
661
+ return this._state.data;
662
+ };
663
+ k.state.set = function(t) {
664
+ d.env.NODE_ENV !== "production" && g(!1, "use store.replaceState() to explicit replace store state.");
665
+ };
666
+ h.prototype.commit = function(e, n, r) {
667
+ var i = this, o = S(e, n, r), a = o.type, s = o.payload, u = o.options, f = { type: a, payload: s }, c = this._mutations[a];
668
+ if (!c) {
669
+ d.env.NODE_ENV !== "production" && console.error("[vuex] unknown mutation type: " + a);
670
+ return;
671
+ }
672
+ this._withCommit(function() {
673
+ c.forEach(function(v) {
674
+ v(s);
675
+ });
676
+ }), this._subscribers.slice().forEach(function(l) {
677
+ return l(f, i.state);
678
+ }), d.env.NODE_ENV !== "production" && u && u.silent && console.warn(
679
+ "[vuex] mutation type: " + a + ". Silent option has been removed. Use the filter functionality in the vue-devtools"
680
+ );
681
+ };
682
+ h.prototype.dispatch = function(e, n) {
683
+ var r = this, i = S(e, n), o = i.type, a = i.payload, s = { type: o, payload: a }, u = this._actions[o];
684
+ if (!u) {
685
+ d.env.NODE_ENV !== "production" && console.error("[vuex] unknown action type: " + o);
686
+ return;
687
+ }
688
+ try {
689
+ this._actionSubscribers.slice().filter(function(c) {
690
+ return c.before;
691
+ }).forEach(function(c) {
692
+ return c.before(s, r.state);
693
+ });
694
+ } catch (c) {
695
+ d.env.NODE_ENV !== "production" && (console.warn("[vuex] error in before action subscribers: "), console.error(c));
696
+ }
697
+ var f = u.length > 1 ? Promise.all(u.map(function(c) {
698
+ return c(a);
699
+ })) : u[0](a);
700
+ return new Promise(function(c, l) {
701
+ f.then(function(v) {
702
+ try {
703
+ r._actionSubscribers.filter(function(p) {
704
+ return p.after;
705
+ }).forEach(function(p) {
706
+ return p.after(s, r.state);
707
+ });
708
+ } catch (p) {
709
+ d.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(p));
710
+ }
711
+ c(v);
712
+ }, function(v) {
713
+ try {
714
+ r._actionSubscribers.filter(function(p) {
715
+ return p.error;
716
+ }).forEach(function(p) {
717
+ return p.error(s, r.state, v);
718
+ });
719
+ } catch (p) {
720
+ d.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error(p));
721
+ }
722
+ l(v);
723
+ });
724
+ });
725
+ };
726
+ h.prototype.subscribe = function(e, n) {
727
+ return Y(e, this._subscribers, n);
728
+ };
729
+ h.prototype.subscribeAction = function(e, n) {
730
+ var r = typeof e == "function" ? { before: e } : e;
731
+ return Y(r, this._actionSubscribers, n);
732
+ };
733
+ h.prototype.watch = function(e, n, r) {
734
+ var i = this;
735
+ return d.env.NODE_ENV !== "production" && g(typeof e == "function", "store.watch only accepts a function."), J(function() {
736
+ return e(i.state, i.getters);
737
+ }, n, Object.assign({}, r));
738
+ };
739
+ h.prototype.replaceState = function(e) {
740
+ var n = this;
741
+ this._withCommit(function() {
742
+ n._state.data = e;
743
+ });
744
+ };
745
+ h.prototype.registerModule = function(e, n, r) {
746
+ r === void 0 && (r = {}), typeof e == "string" && (e = [e]), d.env.NODE_ENV !== "production" && (g(Array.isArray(e), "module path must be a string or an Array."), g(e.length > 0, "cannot register the root module by using registerModule.")), this._modules.register(e, n), x(this, this.state, e, this._modules.get(e), r.preserveState), L(this, this.state);
747
+ };
748
+ h.prototype.unregisterModule = function(e) {
749
+ var n = this;
750
+ typeof e == "string" && (e = [e]), d.env.NODE_ENV !== "production" && g(Array.isArray(e), "module path must be a string or an Array."), this._modules.unregister(e), this._withCommit(function() {
751
+ var r = P(n.state, e.slice(0, -1));
752
+ delete r[e[e.length - 1]];
753
+ }), q(this);
754
+ };
755
+ h.prototype.hasModule = function(e) {
756
+ return typeof e == "string" && (e = [e]), d.env.NODE_ENV !== "production" && g(Array.isArray(e), "module path must be a string or an Array."), this._modules.isRegistered(e);
757
+ };
758
+ h.prototype.hotUpdate = function(e) {
759
+ this._modules.update(e), q(this, !0);
760
+ };
761
+ h.prototype._withCommit = function(e) {
762
+ var n = this._committing;
763
+ this._committing = !0, e(), this._committing = n;
764
+ };
765
+ Object.defineProperties(h.prototype, k);
766
+ var at = D(function(t, e) {
767
+ var n = {};
768
+ return d.env.NODE_ENV !== "production" && !N(e) && console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"), A(e).forEach(function(r) {
769
+ var i = r.key, o = r.val;
770
+ n[i] = function() {
771
+ var s = this.$store.state, u = this.$store.getters;
772
+ if (t) {
773
+ var f = C(this.$store, "mapState", t);
774
+ if (!f)
775
+ return;
776
+ s = f.context.state, u = f.context.getters;
777
+ }
778
+ return typeof o == "function" ? o.call(this, s, u) : s[o];
779
+ }, n[i].vuex = !0;
780
+ }), n;
781
+ }), st = D(function(t, e) {
782
+ var n = {};
783
+ return d.env.NODE_ENV !== "production" && !N(e) && console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"), A(e).forEach(function(r) {
784
+ var i = r.key, o = r.val;
785
+ n[i] = function() {
786
+ for (var s = [], u = arguments.length; u--; ) s[u] = arguments[u];
787
+ var f = this.$store.commit;
788
+ if (t) {
789
+ var c = C(this.$store, "mapMutations", t);
790
+ if (!c)
791
+ return;
792
+ f = c.context.commit;
793
+ }
794
+ return typeof o == "function" ? o.apply(this, [f].concat(s)) : f.apply(this.$store, [o].concat(s));
795
+ };
796
+ }), n;
797
+ }), ct = D(function(t, e) {
798
+ var n = {};
799
+ return d.env.NODE_ENV !== "production" && !N(e) && console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"), A(e).forEach(function(r) {
800
+ var i = r.key, o = r.val;
801
+ o = t + o, n[i] = function() {
802
+ if (!(t && !C(this.$store, "mapGetters", t))) {
803
+ if (d.env.NODE_ENV !== "production" && !(o in this.$store.getters)) {
804
+ console.error("[vuex] unknown getter: " + o);
805
+ return;
806
+ }
807
+ return this.$store.getters[o];
808
+ }
809
+ }, n[i].vuex = !0;
810
+ }), n;
811
+ }), ut = D(function(t, e) {
812
+ var n = {};
813
+ return d.env.NODE_ENV !== "production" && !N(e) && console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"), A(e).forEach(function(r) {
814
+ var i = r.key, o = r.val;
815
+ n[i] = function() {
816
+ for (var s = [], u = arguments.length; u--; ) s[u] = arguments[u];
817
+ var f = this.$store.dispatch;
818
+ if (t) {
819
+ var c = C(this.$store, "mapActions", t);
820
+ if (!c)
821
+ return;
822
+ f = c.context.dispatch;
823
+ }
824
+ return typeof o == "function" ? o.apply(this, [f].concat(s)) : f.apply(this.$store, [o].concat(s));
825
+ };
826
+ }), n;
827
+ }), Ft = function(t) {
828
+ return {
829
+ mapState: at.bind(null, t),
830
+ mapGetters: ct.bind(null, t),
831
+ mapMutations: st.bind(null, t),
832
+ mapActions: ut.bind(null, t)
833
+ };
834
+ };
835
+ function A(t) {
836
+ return N(t) ? Array.isArray(t) ? t.map(function(e) {
837
+ return { key: e, val: e };
838
+ }) : Object.keys(t).map(function(e) {
839
+ return { key: e, val: t[e] };
840
+ }) : [];
841
+ }
842
+ function N(t) {
843
+ return Array.isArray(t) || z(t);
844
+ }
845
+ function D(t) {
846
+ return function(e, n) {
847
+ return typeof e != "string" ? (n = e, e = "") : e.charAt(e.length - 1) !== "/" && (e += "/"), t(e, n);
848
+ };
849
+ }
850
+ function C(t, e, n) {
851
+ var r = t._modulesNamespaceMap[n];
852
+ return d.env.NODE_ENV !== "production" && !r && console.error("[vuex] module namespace not found in " + e + "(): " + n), r;
853
+ }
854
+ function Bt(t) {
855
+ t === void 0 && (t = {});
856
+ var e = t.collapsed;
857
+ e === void 0 && (e = !0);
858
+ var n = t.filter;
859
+ n === void 0 && (n = function(c, l, v) {
860
+ return !0;
861
+ });
862
+ var r = t.transformer;
863
+ r === void 0 && (r = function(c) {
864
+ return c;
865
+ });
866
+ var i = t.mutationTransformer;
867
+ i === void 0 && (i = function(c) {
868
+ return c;
869
+ });
870
+ var o = t.actionFilter;
871
+ o === void 0 && (o = function(c, l) {
872
+ return !0;
873
+ });
874
+ var a = t.actionTransformer;
875
+ a === void 0 && (a = function(c) {
876
+ return c;
877
+ });
878
+ var s = t.logMutations;
879
+ s === void 0 && (s = !0);
880
+ var u = t.logActions;
881
+ u === void 0 && (u = !0);
882
+ var f = t.logger;
883
+ return f === void 0 && (f = console), function(c) {
884
+ var l = I(c.state);
885
+ typeof f > "u" || (s && c.subscribe(function(v, p) {
886
+ var _ = I(p);
887
+ if (n(v, l, _)) {
888
+ var V = K(), T = i(v), ft = "mutation " + v.type + V;
889
+ B(f, ft, e), f.log("%c prev state", "color: #9E9E9E; font-weight: bold", r(l)), f.log("%c mutation", "color: #03A9F4; font-weight: bold", T), f.log("%c next state", "color: #4CAF50; font-weight: bold", r(_)), Q(f);
890
+ }
891
+ l = _;
892
+ }), u && c.subscribeAction(function(v, p) {
893
+ if (o(v, p)) {
894
+ var _ = K(), V = a(v), T = "action " + v.type + _;
895
+ B(f, T, e), f.log("%c action", "color: #03A9F4; font-weight: bold", V), Q(f);
896
+ }
897
+ }));
898
+ };
899
+ }
900
+ function B(t, e, n) {
901
+ var r = n ? t.groupCollapsed : t.group;
902
+ try {
903
+ r.call(t, e);
904
+ } catch {
905
+ t.log(e);
906
+ }
907
+ }
908
+ function Q(t) {
909
+ try {
910
+ t.groupEnd();
911
+ } catch {
912
+ t.log("—— log end ——");
913
+ }
914
+ }
915
+ function K() {
916
+ var t = /* @__PURE__ */ new Date();
917
+ return " @ " + w(t.getHours(), 2) + ":" + w(t.getMinutes(), 2) + ":" + w(t.getSeconds(), 2) + "." + w(t.getMilliseconds(), 3);
918
+ }
919
+ function Qt(t, e) {
920
+ return new Array(e + 1).join(t);
921
+ }
922
+ function w(t, e) {
923
+ return Qt("0", e - t.toString().length) + t;
924
+ }
925
+ var Wt = {
926
+ version: "4.1.0",
927
+ Store: h,
928
+ storeKey: $,
929
+ createStore: Ht,
930
+ useStore: Nt,
931
+ mapState: at,
932
+ mapMutations: st,
933
+ mapGetters: ct,
934
+ mapActions: ut,
935
+ createNamespacedHelpers: Ft,
936
+ createLogger: Bt
937
+ };
938
+ export {
939
+ h as Store,
940
+ Bt as createLogger,
941
+ Ft as createNamespacedHelpers,
942
+ Ht as createStore,
943
+ Wt as default,
944
+ ut as mapActions,
945
+ ct as mapGetters,
946
+ st as mapMutations,
947
+ at as mapState,
948
+ $ as storeKey,
949
+ Nt as useStore
950
+ };