@stonecrop/desktop 0.3.1 → 0.3.3
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.
- package/dist/desktop.js +615 -602
- package/dist/desktop.js.map +1 -1
- package/dist/desktop.umd.cjs +20 -20
- package/dist/desktop.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -5
package/dist/desktop.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as ae, ref as C, onMounted as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as ae, ref as C, onMounted as Ke, openBlock as A, createElementBlock as M, normalizeClass as Ve, createElementVNode as U, Fragment as Ae, renderList as Te, toDisplayString as ve, createCommentVNode as ge, withDirectives as lt, vShow as gn, computed as B, createBlock as Ie, resolveDynamicComponent as yn, mergeProps as wn, effectScope as bn, markRaw as re, inject as Oe, onBeforeMount as zr, shallowRef as qr, toRaw as qe, unref as S, shallowReactive as Gr, watch as J, nextTick as xe, hasInjectionContext as Ro, getCurrentInstance as Le, reactive as _n, h as jo, provide as Ft, isRef as de, isReactive as Xe, toRef as De, watchEffect as Jr, getCurrentScope as Rt, onScopeDispose as jt, toRefs as Pt, useTemplateRef as ht, normalizeStyle as le, renderSlot as ke, createVNode as It, withCtx as Dt, readonly as Yr, customRef as Qr, createTextVNode as Lo, onBeforeUnmount as Kr, resolveComponent as Xr, withKeys as yt, vModelText as Zr } from "vue";
|
|
2
|
+
const es = { class: "action-menu-icon" }, ts = ["onclick"], ns = { key: 1 }, os = ["onClick"], rs = { class: "dropdown-container" }, ss = { class: "dropdown" }, as = ["onclick"], is = ["href"], cs = { class: "dropdown-item" }, ls = /* @__PURE__ */ ae({
|
|
3
3
|
__name: "ActionSet",
|
|
4
4
|
props: {
|
|
5
5
|
elements: {}
|
|
6
6
|
},
|
|
7
7
|
setup(e) {
|
|
8
8
|
const t = C(e.elements), n = C(!1), o = C(null), r = C(!1), s = C(!1);
|
|
9
|
-
|
|
9
|
+
Ke(() => {
|
|
10
10
|
a();
|
|
11
11
|
});
|
|
12
12
|
const a = () => {
|
|
@@ -27,7 +27,7 @@ const Zr = { class: "action-menu-icon" }, es = ["onclick"], ts = { key: 1 }, ns
|
|
|
27
27
|
onMouseover: i,
|
|
28
28
|
onMouseleave: c
|
|
29
29
|
}, [
|
|
30
|
-
U("div",
|
|
30
|
+
U("div", es, [
|
|
31
31
|
U("div", {
|
|
32
32
|
id: "chevron",
|
|
33
33
|
onClick: u[0] || (u[0] = (d) => s.value = !s.value)
|
|
@@ -73,14 +73,14 @@ const Zr = { class: "action-menu-icon" }, es = ["onclick"], ts = { key: 1 }, ns
|
|
|
73
73
|
key: 0,
|
|
74
74
|
onclick: d.action,
|
|
75
75
|
class: "button-default"
|
|
76
|
-
}, ve(d.label), 9,
|
|
77
|
-
d.elementType == "dropdown" ? (A(), M("div",
|
|
76
|
+
}, ve(d.label), 9, ts)) : ge("", !0),
|
|
77
|
+
d.elementType == "dropdown" ? (A(), M("div", ns, [
|
|
78
78
|
U("button", {
|
|
79
79
|
class: "button-default",
|
|
80
80
|
onClick: (h) => l(f)
|
|
81
|
-
}, ve(d.label), 9,
|
|
82
|
-
lt(U("div",
|
|
83
|
-
U("div",
|
|
81
|
+
}, ve(d.label), 9, os),
|
|
82
|
+
lt(U("div", rs, [
|
|
83
|
+
U("div", ss, [
|
|
84
84
|
(A(!0), M(Ae, null, Te(d.actions, (h) => (A(), M("div", {
|
|
85
85
|
key: h.label
|
|
86
86
|
}, [
|
|
@@ -88,12 +88,12 @@ const Zr = { class: "action-menu-icon" }, es = ["onclick"], ts = { key: 1 }, ns
|
|
|
88
88
|
key: 0,
|
|
89
89
|
onclick: h.action,
|
|
90
90
|
class: "dropdown-item"
|
|
91
|
-
}, ve(h.label), 9,
|
|
91
|
+
}, ve(h.label), 9, as)) : h.link != null ? (A(), M("a", {
|
|
92
92
|
key: 1,
|
|
93
93
|
href: h.link
|
|
94
94
|
}, [
|
|
95
|
-
U("button",
|
|
96
|
-
], 8,
|
|
95
|
+
U("button", cs, ve(h.label), 1)
|
|
96
|
+
], 8, is)) : ge("", !0)
|
|
97
97
|
]))), 128))
|
|
98
98
|
])
|
|
99
99
|
], 512), [
|
|
@@ -108,18 +108,18 @@ const Zr = { class: "action-menu-icon" }, es = ["onclick"], ts = { key: 1 }, ns
|
|
|
108
108
|
for (const [o, r] of t)
|
|
109
109
|
n[o] = r;
|
|
110
110
|
return n;
|
|
111
|
-
},
|
|
112
|
-
function
|
|
111
|
+
}, us = /* @__PURE__ */ En(ls, [["__scopeId", "data-v-4fb5c934"]]), ds = {};
|
|
112
|
+
function ps(e, t) {
|
|
113
113
|
return A(), M("dialog");
|
|
114
114
|
}
|
|
115
|
-
const
|
|
115
|
+
const fs = /* @__PURE__ */ En(ds, [["render", ps]]), hs = (e, t) => {
|
|
116
116
|
const n = e.__vccOpts || e;
|
|
117
117
|
for (const [o, r] of t)
|
|
118
118
|
n[o] = r;
|
|
119
119
|
return n;
|
|
120
120
|
};
|
|
121
121
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
122
|
-
const
|
|
122
|
+
const ms = { class: "aform" }, vs = /* @__PURE__ */ ae({
|
|
123
123
|
__name: "AForm",
|
|
124
124
|
props: {
|
|
125
125
|
modelValue: {},
|
|
@@ -145,7 +145,7 @@ const hs = { class: "aform" }, ms = /* @__PURE__ */ ae({
|
|
|
145
145
|
set: () => {
|
|
146
146
|
}
|
|
147
147
|
});
|
|
148
|
-
return (a, i) => (A(), M("form",
|
|
148
|
+
return (a, i) => (A(), M("form", ms, [
|
|
149
149
|
(A(!0), M(Ae, null, Te(a.modelValue, (c, l) => (A(), Ie(yn(c.component), wn({
|
|
150
150
|
key: l,
|
|
151
151
|
schema: c,
|
|
@@ -157,9 +157,9 @@ const hs = { class: "aform" }, ms = /* @__PURE__ */ ae({
|
|
|
157
157
|
}, r(c)), null, 16, ["schema", "modelValue", "onUpdate:modelValue", "data", "readonly"]))), 128))
|
|
158
158
|
]));
|
|
159
159
|
}
|
|
160
|
-
}),
|
|
160
|
+
}), gs = /* @__PURE__ */ hs(vs, [["__scopeId", "data-v-68845234"]]);
|
|
161
161
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
162
|
-
var
|
|
162
|
+
var ys = Object.defineProperty, ws = (e, t, n) => t in e ? ys(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, oe = (e, t, n) => ws(e, typeof t != "symbol" ? t + "" : t, n);
|
|
163
163
|
function on(e) {
|
|
164
164
|
this.message = e || "";
|
|
165
165
|
}
|
|
@@ -172,7 +172,7 @@ on.prototype = Object.create(Error.prototype, {
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
});
|
|
175
|
-
const Mo = class
|
|
175
|
+
const Mo = class kt {
|
|
176
176
|
/**
|
|
177
177
|
* @constructor
|
|
178
178
|
* @param {Registry} registry - The immutable registry
|
|
@@ -188,9 +188,9 @@ const Mo = class Et {
|
|
|
188
188
|
* const stonecrop = new Stonecrop(registry, store, schema, workflow, actions)
|
|
189
189
|
*/
|
|
190
190
|
constructor(t, n, o, r, s) {
|
|
191
|
-
if (oe(this, "name", "Stonecrop"), oe(this, "registry"), oe(this, "schema"), oe(this, "workflow"), oe(this, "actions"), oe(this, "store"),
|
|
192
|
-
return
|
|
193
|
-
|
|
191
|
+
if (oe(this, "name", "Stonecrop"), oe(this, "registry"), oe(this, "schema"), oe(this, "workflow"), oe(this, "actions"), oe(this, "store"), kt._root)
|
|
192
|
+
return kt._root;
|
|
193
|
+
kt._root = this, this.registry = t, this.store = n, this.schema = o, this.workflow = r, this.actions = s;
|
|
194
194
|
}
|
|
195
195
|
/**
|
|
196
196
|
* @method setup
|
|
@@ -306,9 +306,9 @@ const Mo = class Et {
|
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
oe(Mo, "_root");
|
|
309
|
-
let
|
|
309
|
+
let bs = Mo;
|
|
310
310
|
var Bo = !1;
|
|
311
|
-
function
|
|
311
|
+
function wt(e, t, n) {
|
|
312
312
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
313
313
|
}
|
|
314
314
|
function zt(e, t) {
|
|
@@ -318,22 +318,22 @@ function zt(e, t) {
|
|
|
318
318
|
}
|
|
319
319
|
delete e[t];
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function _s() {
|
|
322
322
|
return Wo().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
323
323
|
}
|
|
324
324
|
function Wo() {
|
|
325
325
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
326
326
|
}
|
|
327
|
-
const
|
|
327
|
+
const Es = typeof Proxy == "function", ks = "devtools-plugin:setup", $s = "plugin:settings:set";
|
|
328
328
|
let Ze, rn;
|
|
329
|
-
function
|
|
329
|
+
function Ns() {
|
|
330
330
|
var e;
|
|
331
331
|
return Ze !== void 0 || (typeof window < "u" && window.performance ? (Ze = !0, rn = window.performance) : typeof globalThis < "u" && !((e = globalThis.perf_hooks) === null || e === void 0) && e.performance ? (Ze = !0, rn = globalThis.perf_hooks.performance) : Ze = !1), Ze;
|
|
332
332
|
}
|
|
333
|
-
function
|
|
334
|
-
return
|
|
333
|
+
function Os() {
|
|
334
|
+
return Ns() ? rn.now() : Date.now();
|
|
335
335
|
}
|
|
336
|
-
class
|
|
336
|
+
class xs {
|
|
337
337
|
constructor(t, n) {
|
|
338
338
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = t, this.hook = n;
|
|
339
339
|
const o = {};
|
|
@@ -361,9 +361,9 @@ class Os {
|
|
|
361
361
|
s = a;
|
|
362
362
|
},
|
|
363
363
|
now() {
|
|
364
|
-
return
|
|
364
|
+
return Os();
|
|
365
365
|
}
|
|
366
|
-
}, n && n.on(
|
|
366
|
+
}, n && n.on($s, (a, i) => {
|
|
367
367
|
a === this.plugin.id && this.fallbacks.setSettings(i);
|
|
368
368
|
}), this.proxiedOn = new Proxy({}, {
|
|
369
369
|
get: (a, i) => this.target ? this.target.on[i] : (...c) => {
|
|
@@ -396,11 +396,11 @@ class Os {
|
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
function kn(e, t) {
|
|
399
|
-
const n = e, o = Wo(), r =
|
|
399
|
+
const n = e, o = Wo(), r = _s(), s = Es && n.enableEarlyProxy;
|
|
400
400
|
if (r && (o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !s))
|
|
401
|
-
r.emit(
|
|
401
|
+
r.emit(ks, e, t);
|
|
402
402
|
else {
|
|
403
|
-
const a = s ? new
|
|
403
|
+
const a = s ? new xs(n, r) : null;
|
|
404
404
|
(o.__VUE_DEVTOOLS_PLUGINS__ = o.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
405
405
|
pluginDescriptor: n,
|
|
406
406
|
setupFn: t,
|
|
@@ -425,8 +425,8 @@ var ue;
|
|
|
425
425
|
(function(e) {
|
|
426
426
|
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
427
427
|
})(ue || (ue = {}));
|
|
428
|
-
const $e = typeof window < "u",
|
|
429
|
-
function
|
|
428
|
+
const $e = typeof window < "u", Fn = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof global == "object" && global.global === global ? global : typeof globalThis == "object" ? globalThis : { HTMLElement: null };
|
|
429
|
+
function Ss(e, { autoBom: t = !1 } = {}) {
|
|
430
430
|
return t && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
431
431
|
}
|
|
432
432
|
function $n(e, t, n) {
|
|
@@ -437,7 +437,7 @@ function $n(e, t, n) {
|
|
|
437
437
|
console.error("could not download file");
|
|
438
438
|
}, o.send();
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function Ho(e) {
|
|
441
441
|
const t = new XMLHttpRequest();
|
|
442
442
|
t.open("HEAD", e, !1);
|
|
443
443
|
try {
|
|
@@ -446,7 +446,7 @@ function Fo(e) {
|
|
|
446
446
|
}
|
|
447
447
|
return t.status >= 200 && t.status <= 299;
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function $t(e) {
|
|
450
450
|
try {
|
|
451
451
|
e.dispatchEvent(new MouseEvent("click"));
|
|
452
452
|
} catch {
|
|
@@ -454,43 +454,43 @@ function kt(e) {
|
|
|
454
454
|
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
const
|
|
457
|
+
const Nt = typeof navigator == "object" ? navigator : { userAgent: "" }, Fo = /Macintosh/.test(Nt.userAgent) && /AppleWebKit/.test(Nt.userAgent) && !/Safari/.test(Nt.userAgent), zo = $e ? (
|
|
458
458
|
// Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView or mini program
|
|
459
|
-
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !
|
|
459
|
+
typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype && !Fo ? Cs : (
|
|
460
460
|
// Use msSaveOrOpenBlob as a second approach
|
|
461
|
-
"msSaveOrOpenBlob" in
|
|
461
|
+
"msSaveOrOpenBlob" in Nt ? Ps : (
|
|
462
462
|
// Fallback to using FileReader and a popup
|
|
463
|
-
|
|
463
|
+
Is
|
|
464
464
|
)
|
|
465
465
|
)
|
|
466
466
|
) : () => {
|
|
467
467
|
};
|
|
468
|
-
function
|
|
468
|
+
function Cs(e, t = "download", n) {
|
|
469
469
|
const o = document.createElement("a");
|
|
470
|
-
o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin !== location.origin ?
|
|
470
|
+
o.download = t, o.rel = "noopener", typeof e == "string" ? (o.href = e, o.origin !== location.origin ? Ho(o.href) ? $n(e, t, n) : (o.target = "_blank", $t(o)) : $t(o)) : (o.href = URL.createObjectURL(e), setTimeout(function() {
|
|
471
471
|
URL.revokeObjectURL(o.href);
|
|
472
472
|
}, 4e4), setTimeout(function() {
|
|
473
|
-
|
|
473
|
+
$t(o);
|
|
474
474
|
}, 0));
|
|
475
475
|
}
|
|
476
476
|
function Ps(e, t = "download", n) {
|
|
477
477
|
if (typeof e == "string")
|
|
478
|
-
if (
|
|
478
|
+
if (Ho(e))
|
|
479
479
|
$n(e, t, n);
|
|
480
480
|
else {
|
|
481
481
|
const o = document.createElement("a");
|
|
482
482
|
o.href = e, o.target = "_blank", setTimeout(function() {
|
|
483
|
-
|
|
483
|
+
$t(o);
|
|
484
484
|
});
|
|
485
485
|
}
|
|
486
486
|
else
|
|
487
|
-
navigator.msSaveOrOpenBlob(
|
|
487
|
+
navigator.msSaveOrOpenBlob(Ss(e, n), t);
|
|
488
488
|
}
|
|
489
|
-
function
|
|
489
|
+
function Is(e, t, n, o) {
|
|
490
490
|
if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof e == "string")
|
|
491
491
|
return $n(e, t, n);
|
|
492
|
-
const r = e.type === "application/octet-stream", s = /constructor/i.test(String(
|
|
493
|
-
if ((a || r && s ||
|
|
492
|
+
const r = e.type === "application/octet-stream", s = /constructor/i.test(String(Fn.HTMLElement)) || "safari" in Fn, a = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
493
|
+
if ((a || r && s || Fo) && typeof FileReader < "u") {
|
|
494
494
|
const i = new FileReader();
|
|
495
495
|
i.onloadend = function() {
|
|
496
496
|
let c = i.result;
|
|
@@ -519,7 +519,7 @@ function qo() {
|
|
|
519
519
|
function Go(e) {
|
|
520
520
|
return e instanceof Error && e.message.toLowerCase().includes("document is not focused") ? (Y('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.', "warn"), !0) : !1;
|
|
521
521
|
}
|
|
522
|
-
async function
|
|
522
|
+
async function Ds(e) {
|
|
523
523
|
if (!qo())
|
|
524
524
|
try {
|
|
525
525
|
await navigator.clipboard.writeText(JSON.stringify(e.state.value)), Y("Global state copied to clipboard.");
|
|
@@ -529,7 +529,7 @@ async function Is(e) {
|
|
|
529
529
|
Y("Failed to serialize the state. Check the console for more details.", "error"), console.error(t);
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
|
-
async function
|
|
532
|
+
async function Vs(e) {
|
|
533
533
|
if (!qo())
|
|
534
534
|
try {
|
|
535
535
|
Jo(e, JSON.parse(await navigator.clipboard.readText())), Y("Global state pasted from clipboard.");
|
|
@@ -539,7 +539,7 @@ async function Ds(e) {
|
|
|
539
539
|
Y("Failed to deserialize the state from clipboard. Check the console for more details.", "error"), console.error(t);
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
|
-
async function
|
|
542
|
+
async function As(e) {
|
|
543
543
|
try {
|
|
544
544
|
zo(new Blob([JSON.stringify(e.state.value)], {
|
|
545
545
|
type: "text/plain;charset=utf-8"
|
|
@@ -549,7 +549,7 @@ async function Vs(e) {
|
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
let fe;
|
|
552
|
-
function
|
|
552
|
+
function Ts() {
|
|
553
553
|
fe || (fe = document.createElement("input"), fe.type = "file", fe.accept = ".json");
|
|
554
554
|
function e() {
|
|
555
555
|
return new Promise((t, n) => {
|
|
@@ -564,9 +564,9 @@ function As() {
|
|
|
564
564
|
}
|
|
565
565
|
return e;
|
|
566
566
|
}
|
|
567
|
-
async function
|
|
567
|
+
async function Rs(e) {
|
|
568
568
|
try {
|
|
569
|
-
const t = await
|
|
569
|
+
const t = await Ts()();
|
|
570
570
|
if (!t)
|
|
571
571
|
return;
|
|
572
572
|
const { text: n, file: o } = t;
|
|
@@ -588,17 +588,17 @@ function ce(e) {
|
|
|
588
588
|
}
|
|
589
589
|
};
|
|
590
590
|
}
|
|
591
|
-
const Yo = "🍍 Pinia (root)",
|
|
592
|
-
function
|
|
591
|
+
const Yo = "🍍 Pinia (root)", Ot = "_root";
|
|
592
|
+
function js(e) {
|
|
593
593
|
return Nn(e) ? {
|
|
594
|
-
id:
|
|
594
|
+
id: Ot,
|
|
595
595
|
label: Yo
|
|
596
596
|
} : {
|
|
597
597
|
id: e.$id,
|
|
598
598
|
label: e.$id
|
|
599
599
|
};
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function Ls(e) {
|
|
602
602
|
if (Nn(e)) {
|
|
603
603
|
const n = Array.from(e._s.keys()), o = e._s;
|
|
604
604
|
return {
|
|
@@ -634,7 +634,7 @@ function js(e) {
|
|
|
634
634
|
value: e[n]
|
|
635
635
|
}))), t;
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function Ms(e) {
|
|
638
638
|
return e ? Array.isArray(e) ? e.reduce((t, n) => (t.keys.push(n.key), t.operations.push(n.type), t.oldValue[n.key] = n.oldValue, t.newValue[n.key] = n.newValue, t), {
|
|
639
639
|
oldValue: {},
|
|
640
640
|
keys: [],
|
|
@@ -647,7 +647,7 @@ function Ls(e) {
|
|
|
647
647
|
newValue: e.newValue
|
|
648
648
|
} : {};
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function Bs(e) {
|
|
651
651
|
switch (e) {
|
|
652
652
|
case ue.direct:
|
|
653
653
|
return "mutation";
|
|
@@ -659,24 +659,24 @@ function Ms(e) {
|
|
|
659
659
|
return "unknown";
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
let
|
|
663
|
-
const
|
|
664
|
-
function
|
|
662
|
+
let He = !0;
|
|
663
|
+
const xt = [], Pe = "pinia:mutations", Q = "pinia", { assign: Ws } = Object, Vt = (e) => "🍍 " + e;
|
|
664
|
+
function Us(e, t) {
|
|
665
665
|
kn({
|
|
666
666
|
id: "dev.esm.pinia",
|
|
667
667
|
label: "Pinia 🍍",
|
|
668
668
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
669
669
|
packageName: "pinia",
|
|
670
670
|
homepage: "https://pinia.vuejs.org",
|
|
671
|
-
componentStateTypes:
|
|
671
|
+
componentStateTypes: xt,
|
|
672
672
|
app: e
|
|
673
673
|
}, (n) => {
|
|
674
674
|
typeof n.now != "function" && Y("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."), n.addTimelineLayer({
|
|
675
|
-
id:
|
|
675
|
+
id: Pe,
|
|
676
676
|
label: "Pinia 🍍",
|
|
677
677
|
color: 15064968
|
|
678
678
|
}), n.addInspector({
|
|
679
|
-
id:
|
|
679
|
+
id: Q,
|
|
680
680
|
label: "Pinia 🍍",
|
|
681
681
|
icon: "storage",
|
|
682
682
|
treeFilterPlaceholder: "Search stores",
|
|
@@ -684,28 +684,28 @@ function Ws(e, t) {
|
|
|
684
684
|
{
|
|
685
685
|
icon: "content_copy",
|
|
686
686
|
action: () => {
|
|
687
|
-
|
|
687
|
+
Ds(t);
|
|
688
688
|
},
|
|
689
689
|
tooltip: "Serialize and copy the state"
|
|
690
690
|
},
|
|
691
691
|
{
|
|
692
692
|
icon: "content_paste",
|
|
693
693
|
action: async () => {
|
|
694
|
-
await
|
|
694
|
+
await Vs(t), n.sendInspectorTree(Q), n.sendInspectorState(Q);
|
|
695
695
|
},
|
|
696
696
|
tooltip: "Replace the state with the content of your clipboard"
|
|
697
697
|
},
|
|
698
698
|
{
|
|
699
699
|
icon: "save",
|
|
700
700
|
action: () => {
|
|
701
|
-
|
|
701
|
+
As(t);
|
|
702
702
|
},
|
|
703
703
|
tooltip: "Save the state as a JSON file"
|
|
704
704
|
},
|
|
705
705
|
{
|
|
706
706
|
icon: "folder_open",
|
|
707
707
|
action: async () => {
|
|
708
|
-
await
|
|
708
|
+
await Rs(t), n.sendInspectorTree(Q), n.sendInspectorState(Q);
|
|
709
709
|
},
|
|
710
710
|
tooltip: "Import the state from a JSON file"
|
|
711
711
|
}
|
|
@@ -726,7 +726,7 @@ function Ws(e, t) {
|
|
|
726
726
|
const a = o.componentInstance.proxy._pStores;
|
|
727
727
|
Object.values(a).forEach((i) => {
|
|
728
728
|
o.instanceData.state.push({
|
|
729
|
-
type:
|
|
729
|
+
type: Vt(i.$id),
|
|
730
730
|
key: "state",
|
|
731
731
|
editable: !0,
|
|
732
732
|
value: i._isOptionsAPI ? {
|
|
@@ -745,7 +745,7 @@ function Ws(e, t) {
|
|
|
745
745
|
Object.keys(i.$state).reduce((c, l) => (c[l] = i.$state[l], c), {})
|
|
746
746
|
)
|
|
747
747
|
}), i._getters && i._getters.length && o.instanceData.state.push({
|
|
748
|
-
type:
|
|
748
|
+
type: Vt(i.$id),
|
|
749
749
|
key: "getters",
|
|
750
750
|
editable: !1,
|
|
751
751
|
value: i._getters.reduce((c, l) => {
|
|
@@ -760,24 +760,24 @@ function Ws(e, t) {
|
|
|
760
760
|
});
|
|
761
761
|
}
|
|
762
762
|
}), n.on.getInspectorTree((o) => {
|
|
763
|
-
if (o.app === e && o.inspectorId ===
|
|
763
|
+
if (o.app === e && o.inspectorId === Q) {
|
|
764
764
|
let r = [t];
|
|
765
|
-
r = r.concat(Array.from(t._s.values())), o.rootNodes = (o.filter ? r.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(o.filter.toLowerCase()) : Yo.toLowerCase().includes(o.filter.toLowerCase())) : r).map(
|
|
765
|
+
r = r.concat(Array.from(t._s.values())), o.rootNodes = (o.filter ? r.filter((s) => "$id" in s ? s.$id.toLowerCase().includes(o.filter.toLowerCase()) : Yo.toLowerCase().includes(o.filter.toLowerCase())) : r).map(js);
|
|
766
766
|
}
|
|
767
767
|
}), globalThis.$pinia = t, n.on.getInspectorState((o) => {
|
|
768
|
-
if (o.app === e && o.inspectorId ===
|
|
769
|
-
const r = o.nodeId ===
|
|
768
|
+
if (o.app === e && o.inspectorId === Q) {
|
|
769
|
+
const r = o.nodeId === Ot ? t : t._s.get(o.nodeId);
|
|
770
770
|
if (!r)
|
|
771
771
|
return;
|
|
772
|
-
r && (o.nodeId !==
|
|
772
|
+
r && (o.nodeId !== Ot && (globalThis.$store = qe(r)), o.state = Ls(r));
|
|
773
773
|
}
|
|
774
774
|
}), n.on.editInspectorState((o, r) => {
|
|
775
|
-
if (o.app === e && o.inspectorId ===
|
|
776
|
-
const s = o.nodeId ===
|
|
775
|
+
if (o.app === e && o.inspectorId === Q) {
|
|
776
|
+
const s = o.nodeId === Ot ? t : t._s.get(o.nodeId);
|
|
777
777
|
if (!s)
|
|
778
778
|
return Y(`store "${o.nodeId}" not found`, "error");
|
|
779
779
|
const { path: a } = o;
|
|
780
|
-
Nn(s) ? a.unshift("state") : (a.length !== 1 || !s._customProperties.has(a[0]) || a[0] in s.$state) && a.unshift("$state"),
|
|
780
|
+
Nn(s) ? a.unshift("state") : (a.length !== 1 || !s._customProperties.has(a[0]) || a[0] in s.$state) && a.unshift("$state"), He = !1, o.set(s, a, o.state.value), He = !0;
|
|
781
781
|
}
|
|
782
782
|
}), n.on.editComponentState((o) => {
|
|
783
783
|
if (o.type.startsWith("🍍")) {
|
|
@@ -789,19 +789,19 @@ function Ws(e, t) {
|
|
|
789
789
|
return Y(`Invalid path for store "${r}":
|
|
790
790
|
${a}
|
|
791
791
|
Only state can be modified.`);
|
|
792
|
-
a[0] = "$state",
|
|
792
|
+
a[0] = "$state", He = !1, o.set(s, a, o.state.value), He = !0;
|
|
793
793
|
}
|
|
794
794
|
});
|
|
795
795
|
});
|
|
796
796
|
}
|
|
797
|
-
function
|
|
798
|
-
|
|
797
|
+
function Hs(e, t) {
|
|
798
|
+
xt.includes(Vt(t.$id)) || xt.push(Vt(t.$id)), kn({
|
|
799
799
|
id: "dev.esm.pinia",
|
|
800
800
|
label: "Pinia 🍍",
|
|
801
801
|
logo: "https://pinia.vuejs.org/logo.svg",
|
|
802
802
|
packageName: "pinia",
|
|
803
803
|
homepage: "https://pinia.vuejs.org",
|
|
804
|
-
componentStateTypes:
|
|
804
|
+
componentStateTypes: xt,
|
|
805
805
|
app: e,
|
|
806
806
|
settings: {
|
|
807
807
|
logStoreChanges: {
|
|
@@ -818,9 +818,9 @@ function Us(e, t) {
|
|
|
818
818
|
}, (n) => {
|
|
819
819
|
const o = typeof n.now == "function" ? n.now.bind(n) : Date.now;
|
|
820
820
|
t.$onAction(({ after: a, onError: i, name: c, args: l }) => {
|
|
821
|
-
const p =
|
|
821
|
+
const p = Qo++;
|
|
822
822
|
n.addTimelineEvent({
|
|
823
|
-
layerId:
|
|
823
|
+
layerId: Pe,
|
|
824
824
|
event: {
|
|
825
825
|
time: o(),
|
|
826
826
|
title: "🛫 " + c,
|
|
@@ -834,7 +834,7 @@ function Us(e, t) {
|
|
|
834
834
|
}
|
|
835
835
|
}), a((u) => {
|
|
836
836
|
Ne = void 0, n.addTimelineEvent({
|
|
837
|
-
layerId:
|
|
837
|
+
layerId: Pe,
|
|
838
838
|
event: {
|
|
839
839
|
time: o(),
|
|
840
840
|
title: "🛬 " + c,
|
|
@@ -850,7 +850,7 @@ function Us(e, t) {
|
|
|
850
850
|
});
|
|
851
851
|
}), i((u) => {
|
|
852
852
|
Ne = void 0, n.addTimelineEvent({
|
|
853
|
-
layerId:
|
|
853
|
+
layerId: Pe,
|
|
854
854
|
event: {
|
|
855
855
|
time: o(),
|
|
856
856
|
logType: "error",
|
|
@@ -868,8 +868,8 @@ function Us(e, t) {
|
|
|
868
868
|
});
|
|
869
869
|
}, !0), t._customProperties.forEach((a) => {
|
|
870
870
|
J(() => S(t[a]), (i, c) => {
|
|
871
|
-
n.notifyComponentUpdate(), n.sendInspectorState(
|
|
872
|
-
layerId:
|
|
871
|
+
n.notifyComponentUpdate(), n.sendInspectorState(Q), He && n.addTimelineEvent({
|
|
872
|
+
layerId: Pe,
|
|
873
873
|
event: {
|
|
874
874
|
time: o(),
|
|
875
875
|
title: "Change",
|
|
@@ -883,12 +883,12 @@ function Us(e, t) {
|
|
|
883
883
|
});
|
|
884
884
|
}, { deep: !0 });
|
|
885
885
|
}), t.$subscribe(({ events: a, type: i }, c) => {
|
|
886
|
-
if (n.notifyComponentUpdate(), n.sendInspectorState(
|
|
886
|
+
if (n.notifyComponentUpdate(), n.sendInspectorState(Q), !He)
|
|
887
887
|
return;
|
|
888
888
|
const l = {
|
|
889
889
|
time: o(),
|
|
890
|
-
title:
|
|
891
|
-
data:
|
|
890
|
+
title: Bs(i),
|
|
891
|
+
data: Ws({ store: ce(t.$id) }, Ms(a)),
|
|
892
892
|
groupId: Ne
|
|
893
893
|
};
|
|
894
894
|
i === ue.patchFunction ? l.subtitle = "⤵️" : i === ue.patchObject ? l.subtitle = "🧩" : a && !Array.isArray(a) && (l.subtitle = a.type), a && (l.data["rawEvent(s)"] = {
|
|
@@ -899,14 +899,14 @@ function Us(e, t) {
|
|
|
899
899
|
value: a
|
|
900
900
|
}
|
|
901
901
|
}), n.addTimelineEvent({
|
|
902
|
-
layerId:
|
|
902
|
+
layerId: Pe,
|
|
903
903
|
event: l
|
|
904
904
|
});
|
|
905
905
|
}, { detached: !0, flush: "sync" });
|
|
906
906
|
const r = t._hotUpdate;
|
|
907
907
|
t._hotUpdate = re((a) => {
|
|
908
908
|
r(a), n.addTimelineEvent({
|
|
909
|
-
layerId:
|
|
909
|
+
layerId: Pe,
|
|
910
910
|
event: {
|
|
911
911
|
time: o(),
|
|
912
912
|
title: "🔥 " + t.$id,
|
|
@@ -916,20 +916,20 @@ function Us(e, t) {
|
|
|
916
916
|
info: ce("HMR update")
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
|
-
}), n.notifyComponentUpdate(), n.sendInspectorTree(
|
|
919
|
+
}), n.notifyComponentUpdate(), n.sendInspectorTree(Q), n.sendInspectorState(Q);
|
|
920
920
|
});
|
|
921
921
|
const { $dispose: s } = t;
|
|
922
922
|
t.$dispose = () => {
|
|
923
|
-
s(), n.notifyComponentUpdate(), n.sendInspectorTree(
|
|
924
|
-
}, n.notifyComponentUpdate(), n.sendInspectorTree(
|
|
923
|
+
s(), n.notifyComponentUpdate(), n.sendInspectorTree(Q), n.sendInspectorState(Q), n.getSettings().logStoreChanges && Y(`Disposed "${t.$id}" store 🗑`);
|
|
924
|
+
}, n.notifyComponentUpdate(), n.sendInspectorTree(Q), n.sendInspectorState(Q), n.getSettings().logStoreChanges && Y(`"${t.$id}" store installed 🆕`);
|
|
925
925
|
});
|
|
926
926
|
}
|
|
927
|
-
let
|
|
927
|
+
let Qo = 0, Ne;
|
|
928
928
|
function zn(e, t, n) {
|
|
929
929
|
const o = t.reduce((r, s) => (r[s] = qe(e)[s], r), {});
|
|
930
930
|
for (const r in o)
|
|
931
931
|
e[r] = function() {
|
|
932
|
-
const s =
|
|
932
|
+
const s = Qo, a = n ? new Proxy(e, {
|
|
933
933
|
get(...c) {
|
|
934
934
|
return Ne = s, Reflect.get(...c);
|
|
935
935
|
},
|
|
@@ -951,19 +951,19 @@ function Fs({ app: e, store: t, options: n }) {
|
|
|
951
951
|
o.apply(this, arguments), zn(t, Object.keys(r._hmrPayload.actions), !!t._isOptionsAPI);
|
|
952
952
|
};
|
|
953
953
|
}
|
|
954
|
-
|
|
954
|
+
Hs(
|
|
955
955
|
e,
|
|
956
956
|
// FIXME: is there a way to allow the assignment from Store<Id, S, G, A> to StoreGeneric?
|
|
957
957
|
t
|
|
958
958
|
);
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function zs() {
|
|
962
962
|
const e = bn(!0), t = e.run(() => C({}));
|
|
963
963
|
let n = [], o = [];
|
|
964
964
|
const r = re({
|
|
965
965
|
install(s) {
|
|
966
|
-
ut(r), r._a = s, s.provide(Uo, r), s.config.globalProperties.$pinia = r, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && $e &&
|
|
966
|
+
ut(r), r._a = s, s.provide(Uo, r), s.config.globalProperties.$pinia = r, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && $e && Us(s, r), o.forEach((a) => n.push(a)), o = [];
|
|
967
967
|
},
|
|
968
968
|
use(s) {
|
|
969
969
|
return !this._a && !Bo ? o.push(s) : n.push(s), this;
|
|
@@ -978,13 +978,13 @@ function Hs() {
|
|
|
978
978
|
});
|
|
979
979
|
return process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && $e && typeof Proxy < "u" && r.use(Fs), r;
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function Ko(e, t) {
|
|
982
982
|
for (const n in t) {
|
|
983
983
|
const o = t[n];
|
|
984
984
|
if (!(n in e))
|
|
985
985
|
continue;
|
|
986
986
|
const r = e[n];
|
|
987
|
-
Re(r) && Re(o) && !de(o) && !Xe(o) ? e[n] =
|
|
987
|
+
Re(r) && Re(o) && !de(o) && !Xe(o) ? e[n] = Ko(r, o) : e[n] = o;
|
|
988
988
|
}
|
|
989
989
|
return e;
|
|
990
990
|
}
|
|
@@ -996,14 +996,14 @@ function qn(e, t, n, o = Xo) {
|
|
|
996
996
|
const s = e.indexOf(t);
|
|
997
997
|
s > -1 && (e.splice(s, 1), o());
|
|
998
998
|
};
|
|
999
|
-
return !n &&
|
|
999
|
+
return !n && Rt() && jt(r), r;
|
|
1000
1000
|
}
|
|
1001
1001
|
function We(e, ...t) {
|
|
1002
1002
|
e.slice().forEach((n) => {
|
|
1003
1003
|
n(...t);
|
|
1004
1004
|
});
|
|
1005
1005
|
}
|
|
1006
|
-
const
|
|
1006
|
+
const qs = (e) => e(), Gn = Symbol(), qt = Symbol();
|
|
1007
1007
|
function sn(e, t) {
|
|
1008
1008
|
e instanceof Map && t instanceof Map ? t.forEach((n, o) => e.set(o, n)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
|
|
1009
1009
|
for (const n in t) {
|
|
@@ -1014,12 +1014,12 @@ function sn(e, t) {
|
|
|
1014
1014
|
}
|
|
1015
1015
|
return e;
|
|
1016
1016
|
}
|
|
1017
|
-
const
|
|
1017
|
+
const Gs = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
1018
1018
|
/* istanbul ignore next */
|
|
1019
1019
|
Symbol()
|
|
1020
1020
|
);
|
|
1021
|
-
function
|
|
1022
|
-
return !Re(e) || !e.hasOwnProperty(
|
|
1021
|
+
function Js(e) {
|
|
1022
|
+
return !Re(e) || !e.hasOwnProperty(Gs);
|
|
1023
1023
|
}
|
|
1024
1024
|
const { assign: te } = Object;
|
|
1025
1025
|
function Jn(e) {
|
|
@@ -1087,14 +1087,14 @@ function an(e, t, n = {}, o, r, s) {
|
|
|
1087
1087
|
function T() {
|
|
1088
1088
|
a.stop(), u = [], d = [], o._s.delete(e);
|
|
1089
1089
|
}
|
|
1090
|
-
const
|
|
1090
|
+
const H = (b, m = "") => {
|
|
1091
1091
|
if (Gn in b)
|
|
1092
1092
|
return b[qt] = m, b;
|
|
1093
1093
|
const w = function() {
|
|
1094
1094
|
ut(o);
|
|
1095
|
-
const D = Array.from(arguments),
|
|
1095
|
+
const D = Array.from(arguments), F = [], ie = [];
|
|
1096
1096
|
function pe(z) {
|
|
1097
|
-
|
|
1097
|
+
F.push(z);
|
|
1098
1098
|
}
|
|
1099
1099
|
function Me(z) {
|
|
1100
1100
|
ie.push(z);
|
|
@@ -1112,7 +1112,7 @@ function an(e, t, n = {}, o, r, s) {
|
|
|
1112
1112
|
} catch (z) {
|
|
1113
1113
|
throw We(ie, z), z;
|
|
1114
1114
|
}
|
|
1115
|
-
return ee instanceof Promise ? ee.then((z) => (We(
|
|
1115
|
+
return ee instanceof Promise ? ee.then((z) => (We(F, z), z)).catch((z) => (We(ie, z), Promise.reject(z))) : (We(F, ee), ee);
|
|
1116
1116
|
};
|
|
1117
1117
|
return w[Gn] = !0, w[qt] = m, w;
|
|
1118
1118
|
}, N = /* @__PURE__ */ re({
|
|
@@ -1128,12 +1128,12 @@ function an(e, t, n = {}, o, r, s) {
|
|
|
1128
1128
|
$patch: _,
|
|
1129
1129
|
$reset: x,
|
|
1130
1130
|
$subscribe(b, m = {}) {
|
|
1131
|
-
const w = qn(u, b, m.detached, () => D()), D = a.run(() => J(() => o.state.value[e], (
|
|
1131
|
+
const w = qn(u, b, m.detached, () => D()), D = a.run(() => J(() => o.state.value[e], (F) => {
|
|
1132
1132
|
(m.flush === "sync" ? p : l) && b({
|
|
1133
1133
|
storeId: e,
|
|
1134
1134
|
type: ue.direct,
|
|
1135
1135
|
events: f
|
|
1136
|
-
},
|
|
1136
|
+
}, F);
|
|
1137
1137
|
}, te({}, c, m)));
|
|
1138
1138
|
return w;
|
|
1139
1139
|
},
|
|
@@ -1149,13 +1149,13 @@ function an(e, t, n = {}, o, r, s) {
|
|
|
1149
1149
|
// setupStore
|
|
1150
1150
|
) : P);
|
|
1151
1151
|
o._s.set(e, g);
|
|
1152
|
-
const W = (o._a && o._a.runWithContext ||
|
|
1152
|
+
const W = (o._a && o._a.runWithContext || qs)(() => o._e.run(() => (a = bn()).run(() => t({ action: H }))));
|
|
1153
1153
|
for (const b in W) {
|
|
1154
1154
|
const m = W[b];
|
|
1155
1155
|
if (de(m) && !Jn(m) || Xe(m))
|
|
1156
|
-
process.env.NODE_ENV !== "production" && r ?
|
|
1156
|
+
process.env.NODE_ENV !== "production" && r ? wt(y.value, b, De(W, b)) : s || (h && Js(m) && (de(m) ? m.value = h[b] : sn(m, h[b])), o.state.value[e][b] = m), process.env.NODE_ENV !== "production" && N.state.push(b);
|
|
1157
1157
|
else if (typeof m == "function") {
|
|
1158
|
-
const w = process.env.NODE_ENV !== "production" && r ? m :
|
|
1158
|
+
const w = process.env.NODE_ENV !== "production" && r ? m : H(m, b);
|
|
1159
1159
|
W[b] = w, process.env.NODE_ENV !== "production" && (N.actions[b] = m), i.actions[b] = m;
|
|
1160
1160
|
} else process.env.NODE_ENV !== "production" && Jn(m) && (N.getters[b] = s ? (
|
|
1161
1161
|
// @ts-expect-error
|
|
@@ -1176,9 +1176,9 @@ function an(e, t, n = {}, o, r, s) {
|
|
|
1176
1176
|
g._hotUpdating = !0, b._hmrPayload.state.forEach((m) => {
|
|
1177
1177
|
if (m in g.$state) {
|
|
1178
1178
|
const w = b.$state[m], D = g.$state[m];
|
|
1179
|
-
typeof w == "object" && Re(w) && Re(D) ?
|
|
1179
|
+
typeof w == "object" && Re(w) && Re(D) ? Ko(w, D) : b.$state[m] = D;
|
|
1180
1180
|
}
|
|
1181
|
-
|
|
1181
|
+
wt(g, m, De(b.$state, m));
|
|
1182
1182
|
}), Object.keys(g.$state).forEach((m) => {
|
|
1183
1183
|
m in b.$state || zt(g, m);
|
|
1184
1184
|
}), l = !1, p = !1, o.state.value[e] = De(b._hmrPayload, "hotState"), p = !0, xe().then(() => {
|
|
@@ -1186,14 +1186,14 @@ function an(e, t, n = {}, o, r, s) {
|
|
|
1186
1186
|
});
|
|
1187
1187
|
for (const m in b._hmrPayload.actions) {
|
|
1188
1188
|
const w = b[m];
|
|
1189
|
-
|
|
1189
|
+
wt(g, m, H(w, m));
|
|
1190
1190
|
}
|
|
1191
1191
|
for (const m in b._hmrPayload.getters) {
|
|
1192
1192
|
const w = b._hmrPayload.getters[m], D = s ? (
|
|
1193
1193
|
// special handling of options api
|
|
1194
1194
|
B(() => (ut(o), w.call(g, g)))
|
|
1195
1195
|
) : w;
|
|
1196
|
-
|
|
1196
|
+
wt(g, m, D);
|
|
1197
1197
|
}
|
|
1198
1198
|
Object.keys(g._hmrPayload.getters).forEach((m) => {
|
|
1199
1199
|
m in b._hmrPayload.getters || zt(g, m);
|
|
@@ -1233,7 +1233,7 @@ Found in store "${g.$id}".`), h && s && n.hydrate && n.hydrate(g.$state, h), l =
|
|
|
1233
1233
|
}
|
|
1234
1234
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
1235
1235
|
// @__NO_SIDE_EFFECTS__
|
|
1236
|
-
function
|
|
1236
|
+
function Ys(e, t, n) {
|
|
1237
1237
|
let o, r;
|
|
1238
1238
|
const s = typeof t == "function";
|
|
1239
1239
|
o = e, r = s ? n : t;
|
|
@@ -1263,14 +1263,14 @@ This will fail in production.`);
|
|
|
1263
1263
|
}
|
|
1264
1264
|
return a.$id = o, a;
|
|
1265
1265
|
}
|
|
1266
|
-
const
|
|
1266
|
+
const Qs = /* @__PURE__ */ Ys("data", () => {
|
|
1267
1267
|
const e = C([]), t = C({});
|
|
1268
1268
|
return { records: e, record: t };
|
|
1269
1269
|
});
|
|
1270
1270
|
function Zo(e) {
|
|
1271
1271
|
e || (e = Oe("$registry"));
|
|
1272
|
-
const t =
|
|
1273
|
-
return
|
|
1272
|
+
const t = Qs(), n = C(new bs(e, t)), o = C(!1);
|
|
1273
|
+
return zr(async () => {
|
|
1274
1274
|
var r, s;
|
|
1275
1275
|
const a = e.router.currentRoute.value, i = (r = a.params.records) == null ? void 0 : r.toString().toLowerCase(), c = (s = a.params.record) == null ? void 0 : s.toString().toLowerCase();
|
|
1276
1276
|
if (!i && !c)
|
|
@@ -1279,11 +1279,11 @@ function Zo(e) {
|
|
|
1279
1279
|
e.addDoctype(l), n.value.setup(l), i && (c ? await n.value.getRecord(l, c) : await n.value.getRecords(l)), n.value.runAction(l, "LOAD", c ? [c] : void 0), o.value = !0;
|
|
1280
1280
|
}), { stonecrop: n, isReady: o };
|
|
1281
1281
|
}
|
|
1282
|
-
const Ks = class
|
|
1282
|
+
const Ks = class St {
|
|
1283
1283
|
constructor(t, n) {
|
|
1284
|
-
if (oe(this, "name"), oe(this, "router"), oe(this, "registry"), oe(this, "getMeta"),
|
|
1285
|
-
return
|
|
1286
|
-
|
|
1284
|
+
if (oe(this, "name"), oe(this, "router"), oe(this, "registry"), oe(this, "getMeta"), St._root)
|
|
1285
|
+
return St._root;
|
|
1286
|
+
St._root = this, this.name = "Registry", this.router = t, this.registry = {}, this.getMeta = n;
|
|
1287
1287
|
}
|
|
1288
1288
|
addDoctype(t) {
|
|
1289
1289
|
t.doctype in Object.keys(this.registry) || (this.registry[t.slug] = t), this.router.hasRoute(t.doctype) || this.router.addRoute({
|
|
@@ -1303,7 +1303,7 @@ const me = typeof document < "u";
|
|
|
1303
1303
|
function er(e) {
|
|
1304
1304
|
return typeof e == "object" || "displayName" in e || "props" in e || "__vccOpts" in e;
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1306
|
+
function Xs(e) {
|
|
1307
1307
|
return e.__esModule || e[Symbol.toStringTag] === "Module" || // support CF with dynamic imports that do not
|
|
1308
1308
|
// add the Module string tag
|
|
1309
1309
|
e.default && er(e.default);
|
|
@@ -1323,24 +1323,24 @@ function I(e) {
|
|
|
1323
1323
|
const t = Array.from(arguments).slice(1);
|
|
1324
1324
|
console.warn.apply(console, ["[Vue Router warn]: " + e].concat(t));
|
|
1325
1325
|
}
|
|
1326
|
-
const tr = /#/g,
|
|
1326
|
+
const tr = /#/g, Zs = /&/g, ea = /\//g, ta = /=/g, na = /\?/g, nr = /\+/g, oa = /%5B/g, ra = /%5D/g, or = /%5E/g, sa = /%60/g, rr = /%7B/g, aa = /%7C/g, sr = /%7D/g, ia = /%20/g;
|
|
1327
1327
|
function On(e) {
|
|
1328
|
-
return encodeURI("" + e).replace(
|
|
1328
|
+
return encodeURI("" + e).replace(aa, "|").replace(oa, "[").replace(ra, "]");
|
|
1329
1329
|
}
|
|
1330
|
-
function
|
|
1330
|
+
function ca(e) {
|
|
1331
1331
|
return On(e).replace(rr, "{").replace(sr, "}").replace(or, "^");
|
|
1332
1332
|
}
|
|
1333
1333
|
function cn(e) {
|
|
1334
|
-
return On(e).replace(nr, "%2B").replace(
|
|
1335
|
-
}
|
|
1336
|
-
function ca(e) {
|
|
1337
|
-
return cn(e).replace(ea, "%3D");
|
|
1334
|
+
return On(e).replace(nr, "%2B").replace(ia, "+").replace(tr, "%23").replace(Zs, "%26").replace(sa, "`").replace(rr, "{").replace(sr, "}").replace(or, "^");
|
|
1338
1335
|
}
|
|
1339
1336
|
function la(e) {
|
|
1340
|
-
return
|
|
1337
|
+
return cn(e).replace(ta, "%3D");
|
|
1341
1338
|
}
|
|
1342
1339
|
function ua(e) {
|
|
1343
|
-
return e
|
|
1340
|
+
return On(e).replace(tr, "%23").replace(na, "%3F");
|
|
1341
|
+
}
|
|
1342
|
+
function da(e) {
|
|
1343
|
+
return e == null ? "" : ua(e).replace(ea, "%2F");
|
|
1344
1344
|
}
|
|
1345
1345
|
function Ge(e) {
|
|
1346
1346
|
try {
|
|
@@ -1350,26 +1350,26 @@ function Ge(e) {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
return "" + e;
|
|
1352
1352
|
}
|
|
1353
|
-
const
|
|
1353
|
+
const pa = /\/$/, fa = (e) => e.replace(pa, "");
|
|
1354
1354
|
function Jt(e, t, n = "/") {
|
|
1355
1355
|
let o, r = {}, s = "", a = "";
|
|
1356
1356
|
const i = t.indexOf("#");
|
|
1357
1357
|
let c = t.indexOf("?");
|
|
1358
|
-
return i < c && i >= 0 && (c = -1), c > -1 && (o = t.slice(0, c), s = t.slice(c + 1, i > -1 ? i : t.length), r = e(s)), i > -1 && (o = o || t.slice(0, i), a = t.slice(i, t.length)), o =
|
|
1358
|
+
return i < c && i >= 0 && (c = -1), c > -1 && (o = t.slice(0, c), s = t.slice(c + 1, i > -1 ? i : t.length), r = e(s)), i > -1 && (o = o || t.slice(0, i), a = t.slice(i, t.length)), o = va(o ?? t, n), {
|
|
1359
1359
|
fullPath: o + (s && "?") + s + a,
|
|
1360
1360
|
path: o,
|
|
1361
1361
|
query: r,
|
|
1362
1362
|
hash: Ge(a)
|
|
1363
1363
|
};
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function ha(e, t) {
|
|
1366
1366
|
const n = t.query ? e(t.query) : "";
|
|
1367
1367
|
return t.path + (n && "?") + n + (t.hash || "");
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1369
|
+
function Qn(e, t) {
|
|
1370
1370
|
return !t || !e.toLowerCase().startsWith(t.toLowerCase()) ? e : e.slice(t.length) || "/";
|
|
1371
1371
|
}
|
|
1372
|
-
function
|
|
1372
|
+
function Kn(e, t, n) {
|
|
1373
1373
|
const o = t.matched.length - 1, r = n.matched.length - 1;
|
|
1374
1374
|
return o > -1 && o === r && Se(t.matched[o], n.matched[r]) && ar(t.params, n.params) && e(t.query) === e(n.query) && t.hash === n.hash;
|
|
1375
1375
|
}
|
|
@@ -1380,17 +1380,17 @@ function ar(e, t) {
|
|
|
1380
1380
|
if (Object.keys(e).length !== Object.keys(t).length)
|
|
1381
1381
|
return !1;
|
|
1382
1382
|
for (const n in e)
|
|
1383
|
-
if (!
|
|
1383
|
+
if (!ma(e[n], t[n]))
|
|
1384
1384
|
return !1;
|
|
1385
1385
|
return !0;
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1387
|
+
function ma(e, t) {
|
|
1388
1388
|
return Z(e) ? Xn(e, t) : Z(t) ? Xn(t, e) : e === t;
|
|
1389
1389
|
}
|
|
1390
1390
|
function Xn(e, t) {
|
|
1391
1391
|
return Z(t) ? e.length === t.length && e.every((n, o) => n === t[o]) : e.length === 1 && e[0] === t;
|
|
1392
1392
|
}
|
|
1393
|
-
function
|
|
1393
|
+
function va(e, t) {
|
|
1394
1394
|
if (e.startsWith("/"))
|
|
1395
1395
|
return e;
|
|
1396
1396
|
if (process.env.NODE_ENV !== "production" && !t.startsWith("/"))
|
|
@@ -1428,20 +1428,20 @@ var it;
|
|
|
1428
1428
|
(function(e) {
|
|
1429
1429
|
e.back = "back", e.forward = "forward", e.unknown = "";
|
|
1430
1430
|
})(it || (it = {}));
|
|
1431
|
-
function
|
|
1431
|
+
function ga(e) {
|
|
1432
1432
|
if (!e)
|
|
1433
1433
|
if (me) {
|
|
1434
1434
|
const t = document.querySelector("base");
|
|
1435
1435
|
e = t && t.getAttribute("href") || "/", e = e.replace(/^\w+:\/\/[^\/]+/, "");
|
|
1436
1436
|
} else
|
|
1437
1437
|
e = "/";
|
|
1438
|
-
return e[0] !== "/" && e[0] !== "#" && (e = "/" + e),
|
|
1439
|
-
}
|
|
1440
|
-
const ga = /^[^#]+#/;
|
|
1441
|
-
function ya(e, t) {
|
|
1442
|
-
return e.replace(ga, "#") + t;
|
|
1438
|
+
return e[0] !== "/" && e[0] !== "#" && (e = "/" + e), fa(e);
|
|
1443
1439
|
}
|
|
1440
|
+
const ya = /^[^#]+#/;
|
|
1444
1441
|
function wa(e, t) {
|
|
1442
|
+
return e.replace(ya, "#") + t;
|
|
1443
|
+
}
|
|
1444
|
+
function ba(e, t) {
|
|
1445
1445
|
const n = document.documentElement.getBoundingClientRect(), o = e.getBoundingClientRect();
|
|
1446
1446
|
return {
|
|
1447
1447
|
behavior: t.behavior,
|
|
@@ -1453,7 +1453,7 @@ const Lt = () => ({
|
|
|
1453
1453
|
left: window.scrollX,
|
|
1454
1454
|
top: window.scrollY
|
|
1455
1455
|
});
|
|
1456
|
-
function
|
|
1456
|
+
function _a(e) {
|
|
1457
1457
|
let t;
|
|
1458
1458
|
if ("el" in e) {
|
|
1459
1459
|
const n = e.el, o = typeof n == "string" && n.startsWith("#");
|
|
@@ -1473,7 +1473,7 @@ function ba(e) {
|
|
|
1473
1473
|
process.env.NODE_ENV !== "production" && I(`Couldn't find element using selector "${e.el}" returned by scrollBehavior.`);
|
|
1474
1474
|
return;
|
|
1475
1475
|
}
|
|
1476
|
-
t =
|
|
1476
|
+
t = ba(r, e);
|
|
1477
1477
|
} else
|
|
1478
1478
|
t = e;
|
|
1479
1479
|
"scrollBehavior" in document.documentElement.style ? window.scrollTo(t) : window.scrollTo(t.left != null ? t.left : window.scrollX, t.top != null ? t.top : window.scrollY);
|
|
@@ -1482,23 +1482,23 @@ function Zn(e, t) {
|
|
|
1482
1482
|
return (history.state ? history.state.position - t : -1) + e;
|
|
1483
1483
|
}
|
|
1484
1484
|
const ln = /* @__PURE__ */ new Map();
|
|
1485
|
-
function
|
|
1485
|
+
function Ea(e, t) {
|
|
1486
1486
|
ln.set(e, t);
|
|
1487
1487
|
}
|
|
1488
|
-
function
|
|
1488
|
+
function ka(e) {
|
|
1489
1489
|
const t = ln.get(e);
|
|
1490
1490
|
return ln.delete(e), t;
|
|
1491
1491
|
}
|
|
1492
|
-
let
|
|
1492
|
+
let $a = () => location.protocol + "//" + location.host;
|
|
1493
1493
|
function ir(e, t) {
|
|
1494
1494
|
const { pathname: n, search: o, hash: r } = t, s = e.indexOf("#");
|
|
1495
1495
|
if (s > -1) {
|
|
1496
1496
|
let a = r.includes(e.slice(s)) ? e.slice(s).length : 1, i = r.slice(a);
|
|
1497
|
-
return i[0] !== "/" && (i = "/" + i),
|
|
1497
|
+
return i[0] !== "/" && (i = "/" + i), Qn(i, "");
|
|
1498
1498
|
}
|
|
1499
|
-
return
|
|
1499
|
+
return Qn(n, e) + o + r;
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function Na(e, t, n, o) {
|
|
1502
1502
|
let r = [], s = [], a = null;
|
|
1503
1503
|
const i = ({ state: d }) => {
|
|
1504
1504
|
const f = ir(e, location), h = n.value, y = t.value;
|
|
@@ -1557,7 +1557,7 @@ function eo(e, t, n, o = !1, r = !1) {
|
|
|
1557
1557
|
scroll: r ? Lt() : null
|
|
1558
1558
|
};
|
|
1559
1559
|
}
|
|
1560
|
-
function
|
|
1560
|
+
function Oa(e) {
|
|
1561
1561
|
const { history: t, location: n } = window, o = {
|
|
1562
1562
|
value: ir(e, n)
|
|
1563
1563
|
}, r = { value: t.state };
|
|
@@ -1573,7 +1573,7 @@ function Na(e) {
|
|
|
1573
1573
|
scroll: null
|
|
1574
1574
|
}, !0);
|
|
1575
1575
|
function s(c, l, p) {
|
|
1576
|
-
const u = e.indexOf("#"), d = u > -1 ? (n.host && document.querySelector("base") ? e : e.slice(u)) + c :
|
|
1576
|
+
const u = e.indexOf("#"), d = u > -1 ? (n.host && document.querySelector("base") ? e : e.slice(u)) + c : $a() + e + c;
|
|
1577
1577
|
try {
|
|
1578
1578
|
t[p ? "replaceState" : "pushState"](l, "", d), r.value = l;
|
|
1579
1579
|
} catch (f) {
|
|
@@ -1618,9 +1618,9 @@ You can find more information at https://router.vuejs.org/guide/migration/#Usage
|
|
|
1618
1618
|
replace: a
|
|
1619
1619
|
};
|
|
1620
1620
|
}
|
|
1621
|
-
function
|
|
1622
|
-
e =
|
|
1623
|
-
const t =
|
|
1621
|
+
function xa(e) {
|
|
1622
|
+
e = ga(e);
|
|
1623
|
+
const t = Oa(e), n = Na(e, t.state, t.location, t.replace);
|
|
1624
1624
|
function o(s, a = !0) {
|
|
1625
1625
|
a || n.pauseListeners(), history.go(s);
|
|
1626
1626
|
}
|
|
@@ -1629,7 +1629,7 @@ function Oa(e) {
|
|
|
1629
1629
|
location: "",
|
|
1630
1630
|
base: e,
|
|
1631
1631
|
go: o,
|
|
1632
|
-
createHref:
|
|
1632
|
+
createHref: wa.bind(null, e)
|
|
1633
1633
|
}, t, n);
|
|
1634
1634
|
return Object.defineProperty(r, "location", {
|
|
1635
1635
|
enumerable: !0,
|
|
@@ -1639,7 +1639,7 @@ function Oa(e) {
|
|
|
1639
1639
|
get: () => t.state.value
|
|
1640
1640
|
}), r;
|
|
1641
1641
|
}
|
|
1642
|
-
function
|
|
1642
|
+
function At(e) {
|
|
1643
1643
|
return typeof e == "string" || e && typeof e == "object";
|
|
1644
1644
|
}
|
|
1645
1645
|
function cr(e) {
|
|
@@ -1650,7 +1650,7 @@ var to;
|
|
|
1650
1650
|
(function(e) {
|
|
1651
1651
|
e[e.aborted = 4] = "aborted", e[e.cancelled = 8] = "cancelled", e[e.duplicated = 16] = "duplicated";
|
|
1652
1652
|
})(to || (to = {}));
|
|
1653
|
-
const
|
|
1653
|
+
const Sa = {
|
|
1654
1654
|
1({ location: e, currentLocation: t }) {
|
|
1655
1655
|
return `No match for
|
|
1656
1656
|
${JSON.stringify(e)}${t ? `
|
|
@@ -1671,7 +1671,7 @@ while being at
|
|
|
1671
1671
|
}
|
|
1672
1672
|
};
|
|
1673
1673
|
function Je(e, t) {
|
|
1674
|
-
return process.env.NODE_ENV !== "production" ? j(new Error(
|
|
1674
|
+
return process.env.NODE_ENV !== "production" ? j(new Error(Sa[e](t)), {
|
|
1675
1675
|
type: e,
|
|
1676
1676
|
[un]: !0
|
|
1677
1677
|
}, t) : j(new Error(), {
|
|
@@ -1682,25 +1682,25 @@ function Je(e, t) {
|
|
|
1682
1682
|
function he(e, t) {
|
|
1683
1683
|
return e instanceof Error && un in e && (t == null || !!(e.type & t));
|
|
1684
1684
|
}
|
|
1685
|
-
const
|
|
1685
|
+
const Ca = ["params", "query", "hash"];
|
|
1686
1686
|
function Pa(e) {
|
|
1687
1687
|
if (typeof e == "string")
|
|
1688
1688
|
return e;
|
|
1689
1689
|
if (e.path != null)
|
|
1690
1690
|
return e.path;
|
|
1691
1691
|
const t = {};
|
|
1692
|
-
for (const n of
|
|
1692
|
+
for (const n of Ca)
|
|
1693
1693
|
n in e && (t[n] = e[n]);
|
|
1694
1694
|
return JSON.stringify(t, null, 2);
|
|
1695
1695
|
}
|
|
1696
|
-
const no = "[^/]+?",
|
|
1696
|
+
const no = "[^/]+?", Ia = {
|
|
1697
1697
|
sensitive: !1,
|
|
1698
1698
|
strict: !1,
|
|
1699
1699
|
start: !0,
|
|
1700
1700
|
end: !0
|
|
1701
|
-
},
|
|
1702
|
-
function
|
|
1703
|
-
const n = j({},
|
|
1701
|
+
}, Da = /[.+*?^${}()[\]/\\]/g;
|
|
1702
|
+
function Va(e, t) {
|
|
1703
|
+
const n = j({}, Ia, t), o = [];
|
|
1704
1704
|
let r = n.start ? "^" : "";
|
|
1705
1705
|
const s = [];
|
|
1706
1706
|
for (const l of e) {
|
|
@@ -1713,7 +1713,7 @@ function Da(e, t) {
|
|
|
1713
1713
|
const d = l[u];
|
|
1714
1714
|
let f = 40 + (n.sensitive ? 0.25 : 0);
|
|
1715
1715
|
if (d.type === 0)
|
|
1716
|
-
u || (r += "/"), r += d.value.replace(
|
|
1716
|
+
u || (r += "/"), r += d.value.replace(Da, "\\$&"), f += 40;
|
|
1717
1717
|
else if (d.type === 1) {
|
|
1718
1718
|
const { value: h, repeatable: y, optional: k, regexp: _ } = d;
|
|
1719
1719
|
s.push({
|
|
@@ -1726,8 +1726,8 @@ function Da(e, t) {
|
|
|
1726
1726
|
f += 10;
|
|
1727
1727
|
try {
|
|
1728
1728
|
new RegExp(`(${x})`);
|
|
1729
|
-
} catch (
|
|
1730
|
-
throw new Error(`Invalid custom RegExp for param "${h}" (${x}): ` +
|
|
1729
|
+
} catch (H) {
|
|
1730
|
+
throw new Error(`Invalid custom RegExp for param "${h}" (${x}): ` + H.message);
|
|
1731
1731
|
}
|
|
1732
1732
|
}
|
|
1733
1733
|
let T = y ? `((?:${x})(?:/(?:${x}))*)` : `(${x})`;
|
|
@@ -1785,7 +1785,7 @@ function Da(e, t) {
|
|
|
1785
1785
|
stringify: c
|
|
1786
1786
|
};
|
|
1787
1787
|
}
|
|
1788
|
-
function
|
|
1788
|
+
function Aa(e, t) {
|
|
1789
1789
|
let n = 0;
|
|
1790
1790
|
for (; n < e.length && n < t.length; ) {
|
|
1791
1791
|
const o = t[n] - e[n];
|
|
@@ -1799,7 +1799,7 @@ function lr(e, t) {
|
|
|
1799
1799
|
let n = 0;
|
|
1800
1800
|
const o = e.score, r = t.score;
|
|
1801
1801
|
for (; n < o.length && n < r.length; ) {
|
|
1802
|
-
const s =
|
|
1802
|
+
const s = Aa(o[n], r[n]);
|
|
1803
1803
|
if (s)
|
|
1804
1804
|
return s;
|
|
1805
1805
|
n++;
|
|
@@ -1816,15 +1816,15 @@ function oo(e) {
|
|
|
1816
1816
|
const t = e[e.length - 1];
|
|
1817
1817
|
return e.length > 0 && t[t.length - 1] < 0;
|
|
1818
1818
|
}
|
|
1819
|
-
const
|
|
1819
|
+
const Ta = {
|
|
1820
1820
|
type: 0,
|
|
1821
1821
|
value: ""
|
|
1822
|
-
},
|
|
1823
|
-
function
|
|
1822
|
+
}, Ra = /[a-zA-Z0-9_]/;
|
|
1823
|
+
function ja(e) {
|
|
1824
1824
|
if (!e)
|
|
1825
1825
|
return [[]];
|
|
1826
1826
|
if (e === "/")
|
|
1827
|
-
return [[
|
|
1827
|
+
return [[Ta]];
|
|
1828
1828
|
if (!e.startsWith("/"))
|
|
1829
1829
|
throw new Error(process.env.NODE_ENV !== "production" ? `Route paths should start with a "/": "${e}" should be "/${e}".` : `Invalid path "${e}"`);
|
|
1830
1830
|
function t(f) {
|
|
@@ -1865,7 +1865,7 @@ function Ra(e) {
|
|
|
1865
1865
|
d(), n = o;
|
|
1866
1866
|
break;
|
|
1867
1867
|
case 1:
|
|
1868
|
-
c === "(" ? n = 2 :
|
|
1868
|
+
c === "(" ? n = 2 : Ra.test(c) ? d() : (u(), n = 0, c !== "*" && c !== "?" && c !== "+" && i--);
|
|
1869
1869
|
break;
|
|
1870
1870
|
case 2:
|
|
1871
1871
|
c === ")" ? p[p.length - 1] == "\\" ? p = p.slice(0, -1) + c : n = 3 : p += c;
|
|
@@ -1880,8 +1880,8 @@ function Ra(e) {
|
|
|
1880
1880
|
}
|
|
1881
1881
|
return n === 2 && t(`Unfinished custom RegExp for param "${l}"`), u(), a(), r;
|
|
1882
1882
|
}
|
|
1883
|
-
function
|
|
1884
|
-
const o =
|
|
1883
|
+
function La(e, t, n) {
|
|
1884
|
+
const o = Va(ja(e.path), n);
|
|
1885
1885
|
if (process.env.NODE_ENV !== "production") {
|
|
1886
1886
|
const s = /* @__PURE__ */ new Set();
|
|
1887
1887
|
for (const a of o.keys)
|
|
@@ -1896,7 +1896,7 @@ function ja(e, t, n) {
|
|
|
1896
1896
|
});
|
|
1897
1897
|
return t && !r.record.aliasOf == !t.record.aliasOf && t.children.push(r), r;
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1899
|
+
function Ma(e, t) {
|
|
1900
1900
|
const n = [], o = /* @__PURE__ */ new Map();
|
|
1901
1901
|
t = io({ strict: !1, end: !0, sensitive: !1 }, t);
|
|
1902
1902
|
function r(u) {
|
|
@@ -1904,11 +1904,11 @@ function La(e, t) {
|
|
|
1904
1904
|
}
|
|
1905
1905
|
function s(u, d, f) {
|
|
1906
1906
|
const h = !f, y = so(u);
|
|
1907
|
-
process.env.NODE_ENV !== "production" &&
|
|
1907
|
+
process.env.NODE_ENV !== "production" && Ha(y, d), y.aliasOf = f && f.record;
|
|
1908
1908
|
const k = io(t, u), _ = [y];
|
|
1909
1909
|
if ("alias" in u) {
|
|
1910
|
-
const
|
|
1911
|
-
for (const N of
|
|
1910
|
+
const H = typeof u.alias == "string" ? [u.alias] : u.alias;
|
|
1911
|
+
for (const N of H)
|
|
1912
1912
|
_.push(
|
|
1913
1913
|
// we need to normalize again to ensure the `mods` property
|
|
1914
1914
|
// being non enumerable
|
|
@@ -1925,16 +1925,16 @@ function La(e, t) {
|
|
|
1925
1925
|
);
|
|
1926
1926
|
}
|
|
1927
1927
|
let x, T;
|
|
1928
|
-
for (const
|
|
1929
|
-
const { path: N } =
|
|
1928
|
+
for (const H of _) {
|
|
1929
|
+
const { path: N } = H;
|
|
1930
1930
|
if (d && N[0] !== "/") {
|
|
1931
1931
|
const P = d.record.path, g = P[P.length - 1] === "/" ? "" : "/";
|
|
1932
|
-
|
|
1932
|
+
H.path = d.record.path + (N && g + N);
|
|
1933
1933
|
}
|
|
1934
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1934
|
+
if (process.env.NODE_ENV !== "production" && H.path === "*")
|
|
1935
1935
|
throw new Error(`Catch all routes ("*") must now be defined using a param with a custom regexp.
|
|
1936
1936
|
See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-routes.`);
|
|
1937
|
-
if (x =
|
|
1937
|
+
if (x = La(H, d, k), process.env.NODE_ENV !== "production" && d && N[0] === "/" && za(x, d), f ? (f.alias.push(x), process.env.NODE_ENV !== "production" && Ua(f, x)) : (T = T || x, T !== x && T.alias.push(x), h && u.name && !ao(x) && (process.env.NODE_ENV !== "production" && Fa(u, d), a(u.name))), ur(x) && c(x), y.children) {
|
|
1938
1938
|
const P = y.children;
|
|
1939
1939
|
for (let g = 0; g < P.length; g++)
|
|
1940
1940
|
s(P[g], x, f && f.children[g]);
|
|
@@ -1958,7 +1958,7 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
|
1958
1958
|
return n;
|
|
1959
1959
|
}
|
|
1960
1960
|
function c(u) {
|
|
1961
|
-
const d =
|
|
1961
|
+
const d = qa(u, n);
|
|
1962
1962
|
n.splice(d, 0, u), u.record.name && !ao(u) && o.set(u.record.name, u);
|
|
1963
1963
|
}
|
|
1964
1964
|
function l(u, d) {
|
|
@@ -1969,7 +1969,7 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
|
1969
1969
|
location: u
|
|
1970
1970
|
});
|
|
1971
1971
|
if (process.env.NODE_ENV !== "production") {
|
|
1972
|
-
const T = Object.keys(u.params || {}).filter((
|
|
1972
|
+
const T = Object.keys(u.params || {}).filter((H) => !f.keys.find((N) => N.name === H));
|
|
1973
1973
|
T.length && I(`Discarded invalid param(s) "${T.join('", "')}" when navigating. See https://github.com/vuejs/router/blob/main/packages/router/CHANGELOG.md#414-2022-08-22 for more details.`);
|
|
1974
1974
|
}
|
|
1975
1975
|
k = f.record.name, h = j(
|
|
@@ -2003,7 +2003,7 @@ See more at https://router.vuejs.org/guide/migration/#Removed-star-or-catch-all-
|
|
|
2003
2003
|
path: y,
|
|
2004
2004
|
params: h,
|
|
2005
2005
|
matched: _,
|
|
2006
|
-
meta:
|
|
2006
|
+
meta: Wa(_)
|
|
2007
2007
|
};
|
|
2008
2008
|
}
|
|
2009
2009
|
e.forEach((u) => s(u));
|
|
@@ -2033,7 +2033,7 @@ function so(e) {
|
|
|
2033
2033
|
meta: e.meta || {},
|
|
2034
2034
|
aliasOf: e.aliasOf,
|
|
2035
2035
|
beforeEnter: e.beforeEnter,
|
|
2036
|
-
props:
|
|
2036
|
+
props: Ba(e),
|
|
2037
2037
|
children: e.children || [],
|
|
2038
2038
|
instances: {},
|
|
2039
2039
|
leaveGuards: /* @__PURE__ */ new Set(),
|
|
@@ -2047,7 +2047,7 @@ function so(e) {
|
|
|
2047
2047
|
value: {}
|
|
2048
2048
|
}), t;
|
|
2049
2049
|
}
|
|
2050
|
-
function
|
|
2050
|
+
function Ba(e) {
|
|
2051
2051
|
const t = {}, n = e.props || !1;
|
|
2052
2052
|
if ("component" in e)
|
|
2053
2053
|
t.default = n;
|
|
@@ -2064,7 +2064,7 @@ function ao(e) {
|
|
|
2064
2064
|
}
|
|
2065
2065
|
return !1;
|
|
2066
2066
|
}
|
|
2067
|
-
function
|
|
2067
|
+
function Wa(e) {
|
|
2068
2068
|
return e.reduce((t, n) => j(t, n.meta), {});
|
|
2069
2069
|
}
|
|
2070
2070
|
function io(e, t) {
|
|
@@ -2076,7 +2076,7 @@ function io(e, t) {
|
|
|
2076
2076
|
function dn(e, t) {
|
|
2077
2077
|
return e.name === t.name && e.optional === t.optional && e.repeatable === t.repeatable;
|
|
2078
2078
|
}
|
|
2079
|
-
function
|
|
2079
|
+
function Ua(e, t) {
|
|
2080
2080
|
for (const n of e.keys)
|
|
2081
2081
|
if (!n.optional && !t.keys.find(dn.bind(null, n)))
|
|
2082
2082
|
return I(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
|
|
@@ -2084,7 +2084,7 @@ function Wa(e, t) {
|
|
|
2084
2084
|
if (!n.optional && !e.keys.find(dn.bind(null, n)))
|
|
2085
2085
|
return I(`Alias "${t.record.path}" and the original record: "${e.record.path}" must have the exact same param named "${n.name}"`);
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2087
|
+
function Ha(e, t) {
|
|
2088
2088
|
t && t.record.name && !e.name && !e.path && I(`The route named "${String(t.record.name)}" has a child without a name and an empty path. Using that name won't render the empty path child so you probably want to move the name to the child instead. If this is intentional, add a name to the child route to remove the warning.`);
|
|
2089
2089
|
}
|
|
2090
2090
|
function Fa(e, t) {
|
|
@@ -2092,21 +2092,21 @@ function Fa(e, t) {
|
|
|
2092
2092
|
if (n.record.name === e.name)
|
|
2093
2093
|
throw new Error(`A route named "${String(e.name)}" has been added as a ${t === n ? "child" : "descendant"} of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.`);
|
|
2094
2094
|
}
|
|
2095
|
-
function
|
|
2095
|
+
function za(e, t) {
|
|
2096
2096
|
for (const n of t.keys)
|
|
2097
2097
|
if (!e.keys.find(dn.bind(null, n)))
|
|
2098
2098
|
return I(`Absolute path "${e.record.path}" must have the exact same param named "${n.name}" as its parent "${t.record.path}".`);
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2100
|
+
function qa(e, t) {
|
|
2101
2101
|
let n = 0, o = t.length;
|
|
2102
2102
|
for (; n !== o; ) {
|
|
2103
2103
|
const s = n + o >> 1;
|
|
2104
2104
|
lr(e, t[s]) < 0 ? o = s : n = s + 1;
|
|
2105
2105
|
}
|
|
2106
|
-
const r =
|
|
2106
|
+
const r = Ga(e);
|
|
2107
2107
|
return r && (o = t.lastIndexOf(r, o - 1), process.env.NODE_ENV !== "production" && o < 0 && I(`Finding ancestor route "${r.record.path}" failed for "${e.record.path}"`)), o;
|
|
2108
2108
|
}
|
|
2109
|
-
function
|
|
2109
|
+
function Ga(e) {
|
|
2110
2110
|
let t = e;
|
|
2111
2111
|
for (; t = t.parent; )
|
|
2112
2112
|
if (ur(t) && lr(e, t) === 0)
|
|
@@ -2115,7 +2115,7 @@ function qa(e) {
|
|
|
2115
2115
|
function ur({ record: e }) {
|
|
2116
2116
|
return !!(e.name || e.components && Object.keys(e.components).length || e.redirect);
|
|
2117
2117
|
}
|
|
2118
|
-
function
|
|
2118
|
+
function Ja(e) {
|
|
2119
2119
|
const t = {};
|
|
2120
2120
|
if (e === "" || e === "?")
|
|
2121
2121
|
return t;
|
|
@@ -2134,7 +2134,7 @@ function co(e) {
|
|
|
2134
2134
|
let t = "";
|
|
2135
2135
|
for (let n in e) {
|
|
2136
2136
|
const o = e[n];
|
|
2137
|
-
if (n =
|
|
2137
|
+
if (n = la(n), o == null) {
|
|
2138
2138
|
o !== void 0 && (t += (t.length ? "&" : "") + n);
|
|
2139
2139
|
continue;
|
|
2140
2140
|
}
|
|
@@ -2144,7 +2144,7 @@ function co(e) {
|
|
|
2144
2144
|
}
|
|
2145
2145
|
return t;
|
|
2146
2146
|
}
|
|
2147
|
-
function
|
|
2147
|
+
function Ya(e) {
|
|
2148
2148
|
const t = {};
|
|
2149
2149
|
for (const n in e) {
|
|
2150
2150
|
const o = e[n];
|
|
@@ -2152,7 +2152,7 @@ function Ja(e) {
|
|
|
2152
2152
|
}
|
|
2153
2153
|
return t;
|
|
2154
2154
|
}
|
|
2155
|
-
const
|
|
2155
|
+
const Qa = Symbol(process.env.NODE_ENV !== "production" ? "router view location matched" : ""), lo = Symbol(process.env.NODE_ENV !== "production" ? "router view depth" : ""), xn = Symbol(process.env.NODE_ENV !== "production" ? "router" : ""), dr = Symbol(process.env.NODE_ENV !== "production" ? "route location" : ""), pn = Symbol(process.env.NODE_ENV !== "production" ? "router view location" : "");
|
|
2156
2156
|
function et() {
|
|
2157
2157
|
let e = [];
|
|
2158
2158
|
function t(o) {
|
|
@@ -2178,7 +2178,7 @@ function Ee(e, t, n, o, r, s = (a) => a()) {
|
|
|
2178
2178
|
d === !1 ? c(Je(4, {
|
|
2179
2179
|
from: n,
|
|
2180
2180
|
to: t
|
|
2181
|
-
})) : d instanceof Error ? c(d) :
|
|
2181
|
+
})) : d instanceof Error ? c(d) : At(d) ? c(Je(2, {
|
|
2182
2182
|
from: t,
|
|
2183
2183
|
to: d
|
|
2184
2184
|
})) : (a && // since enterCallbackArray is truthy, both record and name also are
|
|
@@ -2230,7 +2230,7 @@ function Yt(e, t, n, o, r = (s) => s()) {
|
|
|
2230
2230
|
process.env.NODE_ENV !== "production" && !("catch" in l) && (I(`Component "${i}" in record with path "${a.path}" is a function that does not return a Promise. If you were passing a functional component, make sure to add a "displayName" to the component. This will break in production if not fixed.`), l = Promise.resolve(l)), s.push(() => l.then((p) => {
|
|
2231
2231
|
if (!p)
|
|
2232
2232
|
throw new Error(`Couldn't resolve component "${i}" at "${a.path}"`);
|
|
2233
|
-
const u =
|
|
2233
|
+
const u = Xs(p) ? p.default : p;
|
|
2234
2234
|
a.mods[i] = p, a.components[i] = u;
|
|
2235
2235
|
const d = (u.__vccOpts || u)[t];
|
|
2236
2236
|
return d && Ee(d, n, o, a, i, r)();
|
|
@@ -2245,7 +2245,7 @@ function uo(e) {
|
|
|
2245
2245
|
let o = !1, r = null;
|
|
2246
2246
|
const s = B(() => {
|
|
2247
2247
|
const p = S(e.to);
|
|
2248
|
-
return process.env.NODE_ENV !== "production" && (!o || p !== r) && (
|
|
2248
|
+
return process.env.NODE_ENV !== "production" && (!o || p !== r) && (At(p) || (o ? I(`Invalid value for prop "to" in useLink()
|
|
2249
2249
|
- to:`, p, `
|
|
2250
2250
|
- previous to:`, r, `
|
|
2251
2251
|
- props:`, e) : I(`Invalid value for prop "to" in useLink()
|
|
@@ -2267,9 +2267,9 @@ function uo(e) {
|
|
|
2267
2267
|
po(d) === y && // avoid comparing the child with its parent
|
|
2268
2268
|
f[f.length - 1].path !== y ? f.findIndex(Se.bind(null, p[u - 2])) : h
|
|
2269
2269
|
);
|
|
2270
|
-
}), i = B(() => a.value > -1 &&
|
|
2270
|
+
}), i = B(() => a.value > -1 && ni(n.params, s.value.params)), c = B(() => a.value > -1 && a.value === n.matched.length - 1 && ar(n.params, s.value.params));
|
|
2271
2271
|
function l(p = {}) {
|
|
2272
|
-
if (
|
|
2272
|
+
if (ti(p)) {
|
|
2273
2273
|
const u = t[S(e.replace) ? "replace" : "push"](
|
|
2274
2274
|
S(e.to)
|
|
2275
2275
|
// avoid uncaught errors are they are logged anyway
|
|
@@ -2287,8 +2287,8 @@ function uo(e) {
|
|
|
2287
2287
|
isExactActive: c.value,
|
|
2288
2288
|
error: null
|
|
2289
2289
|
};
|
|
2290
|
-
p.__vrl_devtools = p.__vrl_devtools || [], p.__vrl_devtools.push(u),
|
|
2291
|
-
u.route = s.value, u.isActive = i.value, u.isExactActive = c.value, u.error =
|
|
2290
|
+
p.__vrl_devtools = p.__vrl_devtools || [], p.__vrl_devtools.push(u), Jr(() => {
|
|
2291
|
+
u.route = s.value, u.isActive = i.value, u.isExactActive = c.value, u.error = At(S(e.to)) ? null : 'Invalid "to" value';
|
|
2292
2292
|
}, { flush: "post" });
|
|
2293
2293
|
}
|
|
2294
2294
|
}
|
|
@@ -2300,10 +2300,10 @@ function uo(e) {
|
|
|
2300
2300
|
navigate: l
|
|
2301
2301
|
};
|
|
2302
2302
|
}
|
|
2303
|
-
function
|
|
2303
|
+
function Xa(e) {
|
|
2304
2304
|
return e.length === 1 ? e[0] : e;
|
|
2305
2305
|
}
|
|
2306
|
-
const
|
|
2306
|
+
const Za = /* @__PURE__ */ ae({
|
|
2307
2307
|
name: "RouterLink",
|
|
2308
2308
|
compatConfig: { MODE: 3 },
|
|
2309
2309
|
props: {
|
|
@@ -2333,7 +2333,7 @@ const Xa = /* @__PURE__ */ ae({
|
|
|
2333
2333
|
[fo(e.exactActiveClass, o.linkExactActiveClass, "router-link-exact-active")]: n.isExactActive
|
|
2334
2334
|
}));
|
|
2335
2335
|
return () => {
|
|
2336
|
-
const s = t.default &&
|
|
2336
|
+
const s = t.default && Xa(t.default(n));
|
|
2337
2337
|
return e.custom ? s : jo("a", {
|
|
2338
2338
|
"aria-current": n.isExactActive ? e.ariaCurrentValue : null,
|
|
2339
2339
|
href: n.href,
|
|
@@ -2344,8 +2344,8 @@ const Xa = /* @__PURE__ */ ae({
|
|
|
2344
2344
|
}, s);
|
|
2345
2345
|
};
|
|
2346
2346
|
}
|
|
2347
|
-
}),
|
|
2348
|
-
function
|
|
2347
|
+
}), ei = Za;
|
|
2348
|
+
function ti(e) {
|
|
2349
2349
|
if (!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && !e.defaultPrevented && !(e.button !== void 0 && e.button !== 0)) {
|
|
2350
2350
|
if (e.currentTarget && e.currentTarget.getAttribute) {
|
|
2351
2351
|
const t = e.currentTarget.getAttribute("target");
|
|
@@ -2355,7 +2355,7 @@ function ei(e) {
|
|
|
2355
2355
|
return e.preventDefault && e.preventDefault(), !0;
|
|
2356
2356
|
}
|
|
2357
2357
|
}
|
|
2358
|
-
function
|
|
2358
|
+
function ni(e, t) {
|
|
2359
2359
|
for (const n in t) {
|
|
2360
2360
|
const o = t[n], r = e[n];
|
|
2361
2361
|
if (typeof o == "string") {
|
|
@@ -2369,7 +2369,7 @@ function ti(e, t) {
|
|
|
2369
2369
|
function po(e) {
|
|
2370
2370
|
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
2371
2371
|
}
|
|
2372
|
-
const fo = (e, t, n) => e ?? t ?? n,
|
|
2372
|
+
const fo = (e, t, n) => e ?? t ?? n, oi = /* @__PURE__ */ ae({
|
|
2373
2373
|
name: "RouterView",
|
|
2374
2374
|
// #674 we manually inherit them
|
|
2375
2375
|
inheritAttrs: !1,
|
|
@@ -2384,7 +2384,7 @@ const fo = (e, t, n) => e ?? t ?? n, ni = /* @__PURE__ */ ae({
|
|
|
2384
2384
|
// https://github.com/vuejs/router/issues/1315
|
|
2385
2385
|
compatConfig: { MODE: 3 },
|
|
2386
2386
|
setup(e, { attrs: t, slots: n }) {
|
|
2387
|
-
process.env.NODE_ENV !== "production" &&
|
|
2387
|
+
process.env.NODE_ENV !== "production" && si();
|
|
2388
2388
|
const o = Oe(pn), r = B(() => e.route || o.value), s = Oe(lo, 0), a = B(() => {
|
|
2389
2389
|
let l = S(s);
|
|
2390
2390
|
const { matched: p } = r.value;
|
|
@@ -2393,7 +2393,7 @@ const fo = (e, t, n) => e ?? t ?? n, ni = /* @__PURE__ */ ae({
|
|
|
2393
2393
|
l++;
|
|
2394
2394
|
return l;
|
|
2395
2395
|
}), i = B(() => r.value.matched[a.value]);
|
|
2396
|
-
|
|
2396
|
+
Ft(lo, B(() => a.value + 1)), Ft(Qa, i), Ft(pn, r);
|
|
2397
2397
|
const c = C();
|
|
2398
2398
|
return J(() => [c.value, i.value, e.name], ([l, p, u], [d, f, h]) => {
|
|
2399
2399
|
p && (p.instances[u] = l, f && f !== p && l && l === d && (p.leaveGuards.size || (p.leaveGuards = f.leaveGuards), p.updateGuards.size || (p.updateGuards = f.updateGuards))), l && p && // if there is no instance but to and from are the same this might be
|
|
@@ -2434,8 +2434,8 @@ function ho(e, t) {
|
|
|
2434
2434
|
const n = e(t);
|
|
2435
2435
|
return n.length === 1 ? n[0] : n;
|
|
2436
2436
|
}
|
|
2437
|
-
const
|
|
2438
|
-
function
|
|
2437
|
+
const ri = oi;
|
|
2438
|
+
function si() {
|
|
2439
2439
|
const e = Le(), t = e.parent && e.parent.type.name, n = e.parent && e.parent.subTree && e.parent.subTree.type;
|
|
2440
2440
|
if (t && (t === "KeepAlive" || t.includes("Transition")) && typeof n == "object" && n.name === "RouterView") {
|
|
2441
2441
|
const o = t === "KeepAlive" ? "keep-alive" : "transition";
|
|
@@ -2452,7 +2452,7 @@ Use slot props instead:
|
|
|
2452
2452
|
function tt(e, t) {
|
|
2453
2453
|
const n = j({}, e, {
|
|
2454
2454
|
// remove variables that can contain vue instances
|
|
2455
|
-
matched: e.matched.map((o) =>
|
|
2455
|
+
matched: e.matched.map((o) => vi(o, ["instances", "children", "aliasOf"]))
|
|
2456
2456
|
});
|
|
2457
2457
|
return {
|
|
2458
2458
|
_custom: {
|
|
@@ -2464,19 +2464,19 @@ function tt(e, t) {
|
|
|
2464
2464
|
}
|
|
2465
2465
|
};
|
|
2466
2466
|
}
|
|
2467
|
-
function
|
|
2467
|
+
function bt(e) {
|
|
2468
2468
|
return {
|
|
2469
2469
|
_custom: {
|
|
2470
2470
|
display: e
|
|
2471
2471
|
}
|
|
2472
2472
|
};
|
|
2473
2473
|
}
|
|
2474
|
-
let
|
|
2475
|
-
function
|
|
2474
|
+
let ai = 0;
|
|
2475
|
+
function ii(e, t, n) {
|
|
2476
2476
|
if (t.__hasDevtools)
|
|
2477
2477
|
return;
|
|
2478
2478
|
t.__hasDevtools = !0;
|
|
2479
|
-
const o =
|
|
2479
|
+
const o = ai++;
|
|
2480
2480
|
kn({
|
|
2481
2481
|
id: "org.vuejs.router" + (o ? "." + o : ""),
|
|
2482
2482
|
label: "Vue Router",
|
|
@@ -2505,7 +2505,7 @@ function ai(e, t, n) {
|
|
|
2505
2505
|
}
|
|
2506
2506
|
Z(u.__vrl_devtools) && (u.__devtoolsApi = r, u.__vrl_devtools.forEach((d) => {
|
|
2507
2507
|
let f = d.route.path, h = mr, y = "", k = 0;
|
|
2508
|
-
d.error ? (f = d.error, h =
|
|
2508
|
+
d.error ? (f = d.error, h = pi, k = fi) : d.isExactActive ? (h = hr, y = "This is exactly active") : d.isActive && (h = fr, y = "This link is active"), p.tags.push({
|
|
2509
2509
|
label: f,
|
|
2510
2510
|
textColor: k,
|
|
2511
2511
|
tooltip: y,
|
|
@@ -2536,7 +2536,7 @@ function ai(e, t, n) {
|
|
|
2536
2536
|
let a = 0;
|
|
2537
2537
|
t.beforeEach((p, u) => {
|
|
2538
2538
|
const d = {
|
|
2539
|
-
guard:
|
|
2539
|
+
guard: bt("beforeEach"),
|
|
2540
2540
|
from: tt(u, "Current Location during this navigation"),
|
|
2541
2541
|
to: tt(p, "Target location")
|
|
2542
2542
|
};
|
|
@@ -2554,7 +2554,7 @@ function ai(e, t, n) {
|
|
|
2554
2554
|
});
|
|
2555
2555
|
}), t.afterEach((p, u, d) => {
|
|
2556
2556
|
const f = {
|
|
2557
|
-
guard:
|
|
2557
|
+
guard: bt("afterEach")
|
|
2558
2558
|
};
|
|
2559
2559
|
d ? (f.failure = {
|
|
2560
2560
|
_custom: {
|
|
@@ -2564,7 +2564,7 @@ function ai(e, t, n) {
|
|
|
2564
2564
|
tooltip: "Navigation Failure",
|
|
2565
2565
|
value: d
|
|
2566
2566
|
}
|
|
2567
|
-
}, f.status =
|
|
2567
|
+
}, f.status = bt("❌")) : f.status = bt("✅"), f.from = tt(u, "Current Location during this navigation"), f.to = tt(p, "Target location"), r.addTimelineEvent({
|
|
2568
2568
|
layerId: s,
|
|
2569
2569
|
event: {
|
|
2570
2570
|
title: "End of navigation",
|
|
@@ -2602,16 +2602,16 @@ function ai(e, t, n) {
|
|
|
2602
2602
|
if (p.app === e && p.inspectorId === i) {
|
|
2603
2603
|
const u = n.getRoutes().find((d) => d.record.__vd_id === p.nodeId);
|
|
2604
2604
|
u && (p.state = {
|
|
2605
|
-
options:
|
|
2605
|
+
options: li(u)
|
|
2606
2606
|
});
|
|
2607
2607
|
}
|
|
2608
2608
|
}), r.sendInspectorTree(i), r.sendInspectorState(i);
|
|
2609
2609
|
});
|
|
2610
2610
|
}
|
|
2611
|
-
function
|
|
2611
|
+
function ci(e) {
|
|
2612
2612
|
return e.optional ? e.repeatable ? "*" : "?" : e.repeatable ? "+" : "";
|
|
2613
2613
|
}
|
|
2614
|
-
function
|
|
2614
|
+
function li(e) {
|
|
2615
2615
|
const { record: t } = e, n = [
|
|
2616
2616
|
{ editable: !1, key: "path", value: t.path }
|
|
2617
2617
|
];
|
|
@@ -2626,7 +2626,7 @@ function ci(e) {
|
|
|
2626
2626
|
_custom: {
|
|
2627
2627
|
type: null,
|
|
2628
2628
|
readOnly: !0,
|
|
2629
|
-
display: e.keys.map((o) => `${o.name}${
|
|
2629
|
+
display: e.keys.map((o) => `${o.name}${ci(o)}`).join(" "),
|
|
2630
2630
|
tooltip: "Param keys",
|
|
2631
2631
|
value: e.keys
|
|
2632
2632
|
}
|
|
@@ -2657,13 +2657,13 @@ function ci(e) {
|
|
|
2657
2657
|
}
|
|
2658
2658
|
}), n;
|
|
2659
2659
|
}
|
|
2660
|
-
const pr = 15485081, fr = 2450411, hr = 8702998,
|
|
2660
|
+
const pr = 15485081, fr = 2450411, hr = 8702998, ui = 2282478, mr = 16486972, di = 6710886, pi = 16704226, fi = 12131356;
|
|
2661
2661
|
function vr(e) {
|
|
2662
2662
|
const t = [], { record: n } = e;
|
|
2663
2663
|
n.name != null && t.push({
|
|
2664
2664
|
label: String(n.name),
|
|
2665
2665
|
textColor: 0,
|
|
2666
|
-
backgroundColor:
|
|
2666
|
+
backgroundColor: ui
|
|
2667
2667
|
}), n.aliasOf && t.push({
|
|
2668
2668
|
label: "alias",
|
|
2669
2669
|
textColor: 0,
|
|
@@ -2683,18 +2683,18 @@ function vr(e) {
|
|
|
2683
2683
|
}), n.redirect && t.push({
|
|
2684
2684
|
label: typeof n.redirect == "string" ? `redirect: ${n.redirect}` : "redirects",
|
|
2685
2685
|
textColor: 16777215,
|
|
2686
|
-
backgroundColor:
|
|
2686
|
+
backgroundColor: di
|
|
2687
2687
|
});
|
|
2688
2688
|
let o = n.__vd_id;
|
|
2689
|
-
return o == null && (o = String(
|
|
2689
|
+
return o == null && (o = String(hi++), n.__vd_id = o), {
|
|
2690
2690
|
id: o,
|
|
2691
2691
|
label: n.path,
|
|
2692
2692
|
tags: t,
|
|
2693
2693
|
children: e.children.map(vr)
|
|
2694
2694
|
};
|
|
2695
2695
|
}
|
|
2696
|
-
let
|
|
2697
|
-
const
|
|
2696
|
+
let hi = 0;
|
|
2697
|
+
const mi = /^\/(.*)\/([a-z]*)$/;
|
|
2698
2698
|
function gr(e, t) {
|
|
2699
2699
|
const n = t.matched.length && Se(t.matched[t.matched.length - 1], e.record);
|
|
2700
2700
|
e.__vd_exactActive = e.__vd_active = n, n || (e.__vd_active = t.matched.some((o) => Se(o, e.record))), e.children.forEach((o) => gr(o, t));
|
|
@@ -2703,7 +2703,7 @@ function yr(e) {
|
|
|
2703
2703
|
e.__vd_match = !1, e.children.forEach(yr);
|
|
2704
2704
|
}
|
|
2705
2705
|
function fn(e, t) {
|
|
2706
|
-
const n = String(e.re).match(
|
|
2706
|
+
const n = String(e.re).match(mi);
|
|
2707
2707
|
if (e.__vd_match = !1, !n || n.length < 3)
|
|
2708
2708
|
return !1;
|
|
2709
2709
|
if (new RegExp(n[1].replace(/\$$/, ""), n[2]).test(t))
|
|
@@ -2711,20 +2711,20 @@ function fn(e, t) {
|
|
|
2711
2711
|
const o = e.record.path.toLowerCase(), r = Ge(o);
|
|
2712
2712
|
return !t.startsWith("/") && (r.includes(t) || o.includes(t)) || r.startsWith(t) || o.startsWith(t) || e.record.name && String(e.record.name).includes(t) ? !0 : e.children.some((s) => fn(s, t));
|
|
2713
2713
|
}
|
|
2714
|
-
function
|
|
2714
|
+
function vi(e, t) {
|
|
2715
2715
|
const n = {};
|
|
2716
2716
|
for (const o in e)
|
|
2717
2717
|
t.includes(o) || (n[o] = e[o]);
|
|
2718
2718
|
return n;
|
|
2719
2719
|
}
|
|
2720
|
-
function
|
|
2721
|
-
const t =
|
|
2720
|
+
function gi(e) {
|
|
2721
|
+
const t = Ma(e.routes, e), n = e.parseQuery || Ja, o = e.stringifyQuery || co, r = e.history;
|
|
2722
2722
|
if (process.env.NODE_ENV !== "production" && !r)
|
|
2723
2723
|
throw new Error('Provide the "history" option when calling "createRouter()": https://router.vuejs.org/api/interfaces/RouterOptions.html#history');
|
|
2724
|
-
const s = et(), a = et(), i = et(), c =
|
|
2724
|
+
const s = et(), a = et(), i = et(), c = qr(_e);
|
|
2725
2725
|
let l = _e;
|
|
2726
2726
|
me && e.scrollBehavior && "scrollRestoration" in history && (history.scrollRestoration = "manual");
|
|
2727
|
-
const p = Gt.bind(null, (v) => "" + v), u = Gt.bind(null,
|
|
2727
|
+
const p = Gt.bind(null, (v) => "" + v), u = Gt.bind(null, da), d = (
|
|
2728
2728
|
// @ts-expect-error: intentionally avoid the type check
|
|
2729
2729
|
Gt.bind(null, Ge)
|
|
2730
2730
|
);
|
|
@@ -2744,15 +2744,15 @@ function vi(e) {
|
|
|
2744
2744
|
}
|
|
2745
2745
|
function _(v, $) {
|
|
2746
2746
|
if ($ = j({}, $ || c.value), typeof v == "string") {
|
|
2747
|
-
const V = Jt(n, v, $.path), q = t.resolve({ path: V.path }, $),
|
|
2748
|
-
return process.env.NODE_ENV !== "production" && (
|
|
2747
|
+
const V = Jt(n, v, $.path), q = t.resolve({ path: V.path }, $), Ce = r.createHref(V.fullPath);
|
|
2748
|
+
return process.env.NODE_ENV !== "production" && (Ce.startsWith("//") ? I(`Location "${v}" resolved to "${Ce}". A resolved location cannot start with multiple slashes.`) : q.matched.length || I(`No match found for location with path "${v}"`)), j(V, q, {
|
|
2749
2749
|
params: d(q.params),
|
|
2750
2750
|
hash: Ge(V.hash),
|
|
2751
2751
|
redirectedFrom: void 0,
|
|
2752
|
-
href:
|
|
2752
|
+
href: Ce
|
|
2753
2753
|
});
|
|
2754
2754
|
}
|
|
2755
|
-
if (process.env.NODE_ENV !== "production" && !
|
|
2755
|
+
if (process.env.NODE_ENV !== "production" && !At(v))
|
|
2756
2756
|
return I(`router.resolve() was passed an invalid location. This will fail in production.
|
|
2757
2757
|
- Location:`, v), _({});
|
|
2758
2758
|
let E;
|
|
@@ -2771,8 +2771,8 @@ function vi(e) {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
const O = t.resolve(E, $), L = v.hash || "";
|
|
2773
2773
|
process.env.NODE_ENV !== "production" && L && !L.startsWith("#") && I(`A \`hash\` should always start with the character "#". Replace "${L}" with "#${L}".`), O.params = p(d(O.params));
|
|
2774
|
-
const G =
|
|
2775
|
-
hash:
|
|
2774
|
+
const G = ha(o, j({}, v, {
|
|
2775
|
+
hash: ca(L),
|
|
2776
2776
|
path: O.path
|
|
2777
2777
|
})), R = r.createHref(G);
|
|
2778
2778
|
return process.env.NODE_ENV !== "production" && (R.startsWith("//") ? I(`Location "${v}" resolved to "${R}". A resolved location cannot start with multiple slashes.`) : O.matched.length || I(`No match found for location with path "${v.path != null ? v.path : v}"`)), j({
|
|
@@ -2786,7 +2786,7 @@ function vi(e) {
|
|
|
2786
2786
|
// numbers at `$route.query`, but at the point, the user will have to
|
|
2787
2787
|
// use their own type anyway.
|
|
2788
2788
|
// https://github.com/vuejs/router/issues/328#issuecomment-649481567
|
|
2789
|
-
o === co ?
|
|
2789
|
+
o === co ? Ya(v.query) : v.query || {}
|
|
2790
2790
|
)
|
|
2791
2791
|
}, O, {
|
|
2792
2792
|
redirectedFrom: void 0,
|
|
@@ -2803,11 +2803,11 @@ function vi(e) {
|
|
|
2803
2803
|
to: v
|
|
2804
2804
|
});
|
|
2805
2805
|
}
|
|
2806
|
-
function
|
|
2806
|
+
function H(v) {
|
|
2807
2807
|
return g(v);
|
|
2808
2808
|
}
|
|
2809
2809
|
function N(v) {
|
|
2810
|
-
return
|
|
2810
|
+
return H(j(x(v), { replace: !0 }));
|
|
2811
2811
|
}
|
|
2812
2812
|
function P(v) {
|
|
2813
2813
|
const $ = v.matched[v.matched.length - 1];
|
|
@@ -2843,8 +2843,8 @@ ${JSON.stringify(O, null, 2)}
|
|
|
2843
2843
|
);
|
|
2844
2844
|
const q = E;
|
|
2845
2845
|
q.redirectedFrom = $;
|
|
2846
|
-
let
|
|
2847
|
-
return !G &&
|
|
2846
|
+
let Ce;
|
|
2847
|
+
return !G && Kn(o, O, E) && (Ce = Je(16, { to: q, from: O }), Hn(
|
|
2848
2848
|
O,
|
|
2849
2849
|
O,
|
|
2850
2850
|
// this is a push, the only way for it to be triggered from a
|
|
@@ -2853,25 +2853,25 @@ ${JSON.stringify(O, null, 2)}
|
|
|
2853
2853
|
// This cannot be the first navigation because the initial location
|
|
2854
2854
|
// cannot be manually navigated to
|
|
2855
2855
|
!1
|
|
2856
|
-
)), (
|
|
2856
|
+
)), (Ce ? Promise.resolve(Ce) : m(q, O)).catch((K) => he(K) ? (
|
|
2857
2857
|
// navigation redirects still mark the router as ready
|
|
2858
2858
|
he(
|
|
2859
|
-
|
|
2859
|
+
K,
|
|
2860
2860
|
2
|
|
2861
2861
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
2862
|
-
) ?
|
|
2862
|
+
) ? K : Wt(K)
|
|
2863
2863
|
) : (
|
|
2864
2864
|
// reject any unknown error
|
|
2865
|
-
z(
|
|
2866
|
-
)).then((
|
|
2867
|
-
if (
|
|
2865
|
+
z(K, q, O)
|
|
2866
|
+
)).then((K) => {
|
|
2867
|
+
if (K) {
|
|
2868
2868
|
if (he(
|
|
2869
|
-
|
|
2869
|
+
K,
|
|
2870
2870
|
2
|
|
2871
2871
|
/* ErrorTypes.NAVIGATION_GUARD_REDIRECT */
|
|
2872
2872
|
))
|
|
2873
2873
|
return process.env.NODE_ENV !== "production" && // we are redirecting to the same location we were already at
|
|
2874
|
-
|
|
2874
|
+
Kn(o, _(K.to), q) && // and we have done it a couple of times
|
|
2875
2875
|
$ && // @ts-expect-error: added only in dev
|
|
2876
2876
|
($._count = $._count ? (
|
|
2877
2877
|
// @ts-expect-error
|
|
@@ -2882,16 +2882,16 @@ ${JSON.stringify(O, null, 2)}
|
|
|
2882
2882
|
j({
|
|
2883
2883
|
// preserve an existing replacement but allow the redirect to override it
|
|
2884
2884
|
replace: R
|
|
2885
|
-
}, x(
|
|
2886
|
-
state: typeof
|
|
2885
|
+
}, x(K.to), {
|
|
2886
|
+
state: typeof K.to == "object" ? j({}, L, K.to.state) : L,
|
|
2887
2887
|
force: G
|
|
2888
2888
|
}),
|
|
2889
2889
|
// preserve the original redirectedFrom if any
|
|
2890
2890
|
$ || q
|
|
2891
2891
|
);
|
|
2892
2892
|
} else
|
|
2893
|
-
|
|
2894
|
-
return w(q, O,
|
|
2893
|
+
K = D(q, O, !0, R, L);
|
|
2894
|
+
return w(q, O, K), K;
|
|
2895
2895
|
});
|
|
2896
2896
|
}
|
|
2897
2897
|
function W(v, $) {
|
|
@@ -2899,12 +2899,12 @@ ${JSON.stringify(O, null, 2)}
|
|
|
2899
2899
|
return E ? Promise.reject(E) : Promise.resolve();
|
|
2900
2900
|
}
|
|
2901
2901
|
function b(v) {
|
|
2902
|
-
const $ =
|
|
2902
|
+
const $ = gt.values().next().value;
|
|
2903
2903
|
return $ && typeof $.runWithContext == "function" ? $.runWithContext(v) : v();
|
|
2904
2904
|
}
|
|
2905
2905
|
function m(v, $) {
|
|
2906
2906
|
let E;
|
|
2907
|
-
const [O, L, G] =
|
|
2907
|
+
const [O, L, G] = yi(v, $);
|
|
2908
2908
|
E = Yt(O.reverse(), "beforeRouteLeave", v, $);
|
|
2909
2909
|
for (const V of O)
|
|
2910
2910
|
V.leaveGuards.forEach((q) => {
|
|
@@ -2954,11 +2954,11 @@ ${JSON.stringify(O, null, 2)}
|
|
|
2954
2954
|
const R = $ === _e, V = me ? history.state : {};
|
|
2955
2955
|
E && (O || R ? r.replace(v.fullPath, j({
|
|
2956
2956
|
scroll: R && V && V.scroll
|
|
2957
|
-
}, L)) : r.push(v.fullPath, L)), c.value = v,
|
|
2957
|
+
}, L)) : r.push(v.fullPath, L)), c.value = v, Hn(v, $, E, R), Wt();
|
|
2958
2958
|
}
|
|
2959
|
-
let
|
|
2959
|
+
let F;
|
|
2960
2960
|
function ie() {
|
|
2961
|
-
|
|
2961
|
+
F || (F = r.listen((v, $, E) => {
|
|
2962
2962
|
const O = _(v), L = P(O);
|
|
2963
2963
|
if (L) {
|
|
2964
2964
|
g(j(L, { replace: !0, force: !0 }), O).catch(at);
|
|
@@ -2966,7 +2966,7 @@ ${JSON.stringify(O, null, 2)}
|
|
|
2966
2966
|
}
|
|
2967
2967
|
l = O;
|
|
2968
2968
|
const G = c.value;
|
|
2969
|
-
me &&
|
|
2969
|
+
me && Ea(Zn(G.fullPath, E.delta), Lt()), m(O, G).catch((R) => he(
|
|
2970
2970
|
R,
|
|
2971
2971
|
12
|
|
2972
2972
|
/* ErrorTypes.NAVIGATION_CANCELLED */
|
|
@@ -3020,16 +3020,16 @@ ${JSON.stringify(O, null, 2)}
|
|
|
3020
3020
|
function Wt(v) {
|
|
3021
3021
|
return ee || (ee = !v, ie(), pe.list().forEach(([$, E]) => v ? E(v) : $()), pe.reset()), v;
|
|
3022
3022
|
}
|
|
3023
|
-
function
|
|
3023
|
+
function Hn(v, $, E, O) {
|
|
3024
3024
|
const { scrollBehavior: L } = e;
|
|
3025
3025
|
if (!me || !L)
|
|
3026
3026
|
return Promise.resolve();
|
|
3027
|
-
const G = !E &&
|
|
3028
|
-
return xe().then(() => L(v, $, G)).then((R) => R &&
|
|
3027
|
+
const G = !E && ka(Zn(v.fullPath, 0)) || (O || !E) && history.state && history.state.scroll || null;
|
|
3028
|
+
return xe().then(() => L(v, $, G)).then((R) => R && _a(R)).catch((R) => z(R, v, $));
|
|
3029
3029
|
}
|
|
3030
3030
|
const Ut = (v) => r.go(v);
|
|
3031
|
-
let
|
|
3032
|
-
const
|
|
3031
|
+
let Ht;
|
|
3032
|
+
const gt = /* @__PURE__ */ new Set(), Fr = {
|
|
3033
3033
|
currentRoute: c,
|
|
3034
3034
|
listening: !0,
|
|
3035
3035
|
addRoute: f,
|
|
@@ -3039,7 +3039,7 @@ ${JSON.stringify(O, null, 2)}
|
|
|
3039
3039
|
getRoutes: y,
|
|
3040
3040
|
resolve: _,
|
|
3041
3041
|
options: e,
|
|
3042
|
-
push:
|
|
3042
|
+
push: H,
|
|
3043
3043
|
replace: N,
|
|
3044
3044
|
go: Ut,
|
|
3045
3045
|
back: () => Ut(-1),
|
|
@@ -3051,12 +3051,12 @@ ${JSON.stringify(O, null, 2)}
|
|
|
3051
3051
|
isReady: X,
|
|
3052
3052
|
install(v) {
|
|
3053
3053
|
const $ = this;
|
|
3054
|
-
v.component("RouterLink",
|
|
3054
|
+
v.component("RouterLink", ei), v.component("RouterView", ri), v.config.globalProperties.$router = $, Object.defineProperty(v.config.globalProperties, "$route", {
|
|
3055
3055
|
enumerable: !0,
|
|
3056
3056
|
get: () => S(c)
|
|
3057
3057
|
}), me && // used for the initial navigation client side to avoid pushing
|
|
3058
3058
|
// multiple times when the router is used in multiple apps
|
|
3059
|
-
!
|
|
3059
|
+
!Ht && c.value === _e && (Ht = !0, H(r.location).catch((L) => {
|
|
3060
3060
|
process.env.NODE_ENV !== "production" && I("Unexpected error when starting the router:", L);
|
|
3061
3061
|
}));
|
|
3062
3062
|
const E = {};
|
|
@@ -3065,11 +3065,11 @@ ${JSON.stringify(O, null, 2)}
|
|
|
3065
3065
|
get: () => c.value[L],
|
|
3066
3066
|
enumerable: !0
|
|
3067
3067
|
});
|
|
3068
|
-
v.provide(xn, $), v.provide(dr,
|
|
3068
|
+
v.provide(xn, $), v.provide(dr, Gr(E)), v.provide(pn, c);
|
|
3069
3069
|
const O = v.unmount;
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
}, process.env.NODE_ENV !== "production" && me &&
|
|
3070
|
+
gt.add(v), v.unmount = function() {
|
|
3071
|
+
gt.delete(v), gt.size < 1 && (l = _e, F && F(), F = null, c.value = _e, Ht = !1, ee = !1), O();
|
|
3072
|
+
}, process.env.NODE_ENV !== "production" && me && ii(v, $, t);
|
|
3073
3073
|
}
|
|
3074
3074
|
};
|
|
3075
3075
|
function Be(v) {
|
|
@@ -3077,7 +3077,7 @@ ${JSON.stringify(O, null, 2)}
|
|
|
3077
3077
|
}
|
|
3078
3078
|
return Fr;
|
|
3079
3079
|
}
|
|
3080
|
-
function
|
|
3080
|
+
function yi(e, t) {
|
|
3081
3081
|
const n = [], o = [], r = [], s = Math.max(t.matched.length, e.matched.length);
|
|
3082
3082
|
for (let a = 0; a < s; a++) {
|
|
3083
3083
|
const i = t.matched[a];
|
|
@@ -3087,11 +3087,11 @@ function gi(e, t) {
|
|
|
3087
3087
|
}
|
|
3088
3088
|
return [n, o, r];
|
|
3089
3089
|
}
|
|
3090
|
-
|
|
3091
|
-
history:
|
|
3090
|
+
gi({
|
|
3091
|
+
history: xa(),
|
|
3092
3092
|
routes: []
|
|
3093
3093
|
});
|
|
3094
|
-
function
|
|
3094
|
+
function wi(e) {
|
|
3095
3095
|
return e && typeof e.then == "function";
|
|
3096
3096
|
}
|
|
3097
3097
|
Promise.resolve(!1);
|
|
@@ -3104,19 +3104,19 @@ function wr(e, t) {
|
|
|
3104
3104
|
}, e);
|
|
3105
3105
|
});
|
|
3106
3106
|
}
|
|
3107
|
-
function
|
|
3107
|
+
function bi(e, t) {
|
|
3108
3108
|
return Math.floor(Math.random() * (t - e + 1) + e);
|
|
3109
3109
|
}
|
|
3110
3110
|
function Sn() {
|
|
3111
3111
|
return Math.random().toString(36).substring(2);
|
|
3112
3112
|
}
|
|
3113
|
-
var mo = 0,
|
|
3113
|
+
var mo = 0, Qt = 0;
|
|
3114
3114
|
function Mt() {
|
|
3115
3115
|
var e = (/* @__PURE__ */ new Date()).getTime();
|
|
3116
|
-
return e === mo ? (
|
|
3116
|
+
return e === mo ? (Qt++, e * 1e3 + Qt) : (mo = e, Qt = 0, e * 1e3);
|
|
3117
3117
|
}
|
|
3118
|
-
var
|
|
3119
|
-
function
|
|
3118
|
+
var _i = Mt, Ei = "native";
|
|
3119
|
+
function ki(e) {
|
|
3120
3120
|
var t = {
|
|
3121
3121
|
messagesCallback: null,
|
|
3122
3122
|
bc: new BroadcastChannel(e),
|
|
@@ -3127,20 +3127,20 @@ function Ei(e) {
|
|
|
3127
3127
|
t.messagesCallback && t.messagesCallback(n.data);
|
|
3128
3128
|
}, t;
|
|
3129
3129
|
}
|
|
3130
|
-
function
|
|
3130
|
+
function $i(e) {
|
|
3131
3131
|
e.bc.close(), e.subFns = [];
|
|
3132
3132
|
}
|
|
3133
|
-
function
|
|
3133
|
+
function Ni(e, t) {
|
|
3134
3134
|
try {
|
|
3135
3135
|
return e.bc.postMessage(t, !1), Ye;
|
|
3136
3136
|
} catch (n) {
|
|
3137
3137
|
return Promise.reject(n);
|
|
3138
3138
|
}
|
|
3139
3139
|
}
|
|
3140
|
-
function
|
|
3140
|
+
function Oi(e, t) {
|
|
3141
3141
|
e.messagesCallback = t;
|
|
3142
3142
|
}
|
|
3143
|
-
function
|
|
3143
|
+
function xi() {
|
|
3144
3144
|
if (typeof window > "u")
|
|
3145
3145
|
return !1;
|
|
3146
3146
|
if (typeof BroadcastChannel == "function") {
|
|
@@ -3150,18 +3150,18 @@ function Oi() {
|
|
|
3150
3150
|
} else
|
|
3151
3151
|
return !1;
|
|
3152
3152
|
}
|
|
3153
|
-
function
|
|
3153
|
+
function Si() {
|
|
3154
3154
|
return 150;
|
|
3155
3155
|
}
|
|
3156
|
-
var
|
|
3157
|
-
create:
|
|
3158
|
-
close:
|
|
3159
|
-
onMessage:
|
|
3160
|
-
postMessage:
|
|
3161
|
-
canBeUsed:
|
|
3162
|
-
type:
|
|
3163
|
-
averageResponseTime:
|
|
3164
|
-
microSeconds:
|
|
3156
|
+
var Ci = {
|
|
3157
|
+
create: ki,
|
|
3158
|
+
close: $i,
|
|
3159
|
+
onMessage: Oi,
|
|
3160
|
+
postMessage: Ni,
|
|
3161
|
+
canBeUsed: xi,
|
|
3162
|
+
type: Ei,
|
|
3163
|
+
averageResponseTime: Si,
|
|
3164
|
+
microSeconds: _i
|
|
3165
3165
|
}, br = (
|
|
3166
3166
|
/** @class */
|
|
3167
3167
|
function() {
|
|
@@ -3195,13 +3195,13 @@ function Pi(e) {
|
|
|
3195
3195
|
function _r() {
|
|
3196
3196
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3197
3197
|
}
|
|
3198
|
-
function
|
|
3198
|
+
function Cn() {
|
|
3199
3199
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = JSON.parse(JSON.stringify(e));
|
|
3200
3200
|
return typeof t.webWorkerSupport > "u" && (t.webWorkerSupport = !0), t.idb || (t.idb = {}), t.idb.ttl || (t.idb.ttl = 1e3 * 45), t.idb.fallbackInterval || (t.idb.fallbackInterval = 150), e.idb && typeof e.idb.onclose == "function" && (t.idb.onclose = e.idb.onclose), t.localstorage || (t.localstorage = {}), t.localstorage.removeTimeout || (t.localstorage.removeTimeout = 1e3 * 60), e.methods && (t.methods = e.methods), t.node || (t.node = {}), t.node.ttl || (t.node.ttl = 1e3 * 60 * 2), t.node.maxParallelWrites || (t.node.maxParallelWrites = 2048), typeof t.node.useFastPath > "u" && (t.node.useFastPath = !0), t;
|
|
3201
3201
|
}
|
|
3202
|
-
var
|
|
3202
|
+
var Ii = Mt, Di = "pubkey.broadcast-channel-0-", ye = "messages", Bt = {
|
|
3203
3203
|
durability: "relaxed"
|
|
3204
|
-
},
|
|
3204
|
+
}, Vi = "idb";
|
|
3205
3205
|
function Er() {
|
|
3206
3206
|
if (typeof indexedDB < "u") return indexedDB;
|
|
3207
3207
|
if (typeof window < "u") {
|
|
@@ -3211,11 +3211,11 @@ function Er() {
|
|
|
3211
3211
|
}
|
|
3212
3212
|
return !1;
|
|
3213
3213
|
}
|
|
3214
|
-
function
|
|
3214
|
+
function Pn(e) {
|
|
3215
3215
|
e.commit && e.commit();
|
|
3216
3216
|
}
|
|
3217
|
-
function
|
|
3218
|
-
var t = Er(), n =
|
|
3217
|
+
function Ai(e) {
|
|
3218
|
+
var t = Er(), n = Di + e, o = t.open(n);
|
|
3219
3219
|
return o.onupgradeneeded = function(r) {
|
|
3220
3220
|
var s = r.target.result;
|
|
3221
3221
|
s.createObjectStore(ye, {
|
|
@@ -3230,7 +3230,7 @@ function Vi(e) {
|
|
|
3230
3230
|
};
|
|
3231
3231
|
});
|
|
3232
3232
|
}
|
|
3233
|
-
function
|
|
3233
|
+
function Ti(e, t, n) {
|
|
3234
3234
|
var o = (/* @__PURE__ */ new Date()).getTime(), r = {
|
|
3235
3235
|
uuid: t,
|
|
3236
3236
|
time: o,
|
|
@@ -3243,10 +3243,10 @@ function Ai(e, t, n) {
|
|
|
3243
3243
|
return i(l);
|
|
3244
3244
|
};
|
|
3245
3245
|
var c = s.objectStore(ye);
|
|
3246
|
-
c.add(r),
|
|
3246
|
+
c.add(r), Pn(s);
|
|
3247
3247
|
});
|
|
3248
3248
|
}
|
|
3249
|
-
function
|
|
3249
|
+
function Ri(e, t) {
|
|
3250
3250
|
var n = e.transaction(ye, "readonly", Bt), o = n.objectStore(ye), r = [], s = IDBKeyRange.bound(t + 1, 1 / 0);
|
|
3251
3251
|
if (o.getAll) {
|
|
3252
3252
|
var a = o.getAll(s);
|
|
@@ -3271,11 +3271,11 @@ function Ti(e, t) {
|
|
|
3271
3271
|
return l(u);
|
|
3272
3272
|
}, p.onsuccess = function(u) {
|
|
3273
3273
|
var d = u.target.result;
|
|
3274
|
-
d ? d.value.id < t + 1 ? d.continue(t + 1) : (r.push(d.value), d.continue()) : (
|
|
3274
|
+
d ? d.value.id < t + 1 ? d.continue(t + 1) : (r.push(d.value), d.continue()) : (Pn(n), c(r));
|
|
3275
3275
|
};
|
|
3276
3276
|
});
|
|
3277
3277
|
}
|
|
3278
|
-
function
|
|
3278
|
+
function ji(e, t) {
|
|
3279
3279
|
if (e.closed)
|
|
3280
3280
|
return Promise.resolve([]);
|
|
3281
3281
|
var n = e.db.transaction(ye, "readwrite", Bt), o = n.objectStore(ye);
|
|
@@ -3288,28 +3288,28 @@ function Ri(e, t) {
|
|
|
3288
3288
|
});
|
|
3289
3289
|
}));
|
|
3290
3290
|
}
|
|
3291
|
-
function
|
|
3291
|
+
function Li(e, t) {
|
|
3292
3292
|
var n = (/* @__PURE__ */ new Date()).getTime() - t, o = e.transaction(ye, "readonly", Bt), r = o.objectStore(ye), s = [];
|
|
3293
3293
|
return new Promise(function(a) {
|
|
3294
3294
|
r.openCursor().onsuccess = function(i) {
|
|
3295
3295
|
var c = i.target.result;
|
|
3296
3296
|
if (c) {
|
|
3297
3297
|
var l = c.value;
|
|
3298
|
-
l.time < n ? (s.push(l), c.continue()) : (
|
|
3298
|
+
l.time < n ? (s.push(l), c.continue()) : (Pn(o), a(s));
|
|
3299
3299
|
} else
|
|
3300
3300
|
a(s);
|
|
3301
3301
|
};
|
|
3302
3302
|
});
|
|
3303
3303
|
}
|
|
3304
|
-
function
|
|
3305
|
-
return
|
|
3306
|
-
return
|
|
3304
|
+
function Mi(e) {
|
|
3305
|
+
return Li(e.db, e.options.idb.ttl).then(function(t) {
|
|
3306
|
+
return ji(e, t.map(function(n) {
|
|
3307
3307
|
return n.id;
|
|
3308
3308
|
}));
|
|
3309
3309
|
});
|
|
3310
3310
|
}
|
|
3311
|
-
function
|
|
3312
|
-
return t =
|
|
3311
|
+
function Bi(e, t) {
|
|
3312
|
+
return t = Cn(t), Ai(e).then(function(n) {
|
|
3313
3313
|
var o = {
|
|
3314
3314
|
closed: !1,
|
|
3315
3315
|
lastCursorId: 0,
|
|
@@ -3340,17 +3340,17 @@ function kr(e) {
|
|
|
3340
3340
|
return kr(e);
|
|
3341
3341
|
});
|
|
3342
3342
|
}
|
|
3343
|
-
function
|
|
3343
|
+
function Wi(e, t) {
|
|
3344
3344
|
return !(e.uuid === t.uuid || t.eMIs.has(e.id) || e.data.time < t.messagesCallbackTime);
|
|
3345
3345
|
}
|
|
3346
3346
|
function $r(e) {
|
|
3347
|
-
return e.closed || !e.messagesCallback ? Ye :
|
|
3347
|
+
return e.closed || !e.messagesCallback ? Ye : Ri(e.db, e.lastCursorId).then(function(t) {
|
|
3348
3348
|
var n = t.filter(function(o) {
|
|
3349
3349
|
return !!o;
|
|
3350
3350
|
}).map(function(o) {
|
|
3351
3351
|
return o.id > e.lastCursorId && (e.lastCursorId = o.id), o;
|
|
3352
3352
|
}).filter(function(o) {
|
|
3353
|
-
return
|
|
3353
|
+
return Wi(o, e);
|
|
3354
3354
|
}).sort(function(o, r) {
|
|
3355
3355
|
return o.time - r.time;
|
|
3356
3356
|
});
|
|
@@ -3359,35 +3359,35 @@ function $r(e) {
|
|
|
3359
3359
|
}), Ye;
|
|
3360
3360
|
});
|
|
3361
3361
|
}
|
|
3362
|
-
function
|
|
3362
|
+
function Ui(e) {
|
|
3363
3363
|
e.closed = !0, e.db.close();
|
|
3364
3364
|
}
|
|
3365
|
-
function
|
|
3365
|
+
function Hi(e, t) {
|
|
3366
3366
|
return e.writeBlockPromise = e.writeBlockPromise.then(function() {
|
|
3367
|
-
return
|
|
3367
|
+
return Ti(e.db, e.uuid, t);
|
|
3368
3368
|
}).then(function() {
|
|
3369
|
-
|
|
3369
|
+
bi(0, 10) === 0 && Mi(e);
|
|
3370
3370
|
}), e.writeBlockPromise;
|
|
3371
3371
|
}
|
|
3372
3372
|
function Fi(e, t, n) {
|
|
3373
3373
|
e.messagesCallbackTime = n, e.messagesCallback = t, $r(e);
|
|
3374
3374
|
}
|
|
3375
|
-
function
|
|
3375
|
+
function zi() {
|
|
3376
3376
|
return !!Er();
|
|
3377
3377
|
}
|
|
3378
|
-
function
|
|
3378
|
+
function qi(e) {
|
|
3379
3379
|
return e.idb.fallbackInterval * 2;
|
|
3380
3380
|
}
|
|
3381
|
-
var
|
|
3382
|
-
create:
|
|
3383
|
-
close:
|
|
3381
|
+
var Gi = {
|
|
3382
|
+
create: Bi,
|
|
3383
|
+
close: Ui,
|
|
3384
3384
|
onMessage: Fi,
|
|
3385
|
-
postMessage:
|
|
3386
|
-
canBeUsed:
|
|
3387
|
-
type:
|
|
3388
|
-
averageResponseTime:
|
|
3389
|
-
microSeconds:
|
|
3390
|
-
},
|
|
3385
|
+
postMessage: Hi,
|
|
3386
|
+
canBeUsed: zi,
|
|
3387
|
+
type: Vi,
|
|
3388
|
+
averageResponseTime: qi,
|
|
3389
|
+
microSeconds: Ii
|
|
3390
|
+
}, Ji = Mt, Yi = "pubkey.broadcastChannel-", Qi = "localstorage";
|
|
3391
3391
|
function Nr() {
|
|
3392
3392
|
var e;
|
|
3393
3393
|
if (typeof window > "u") return null;
|
|
@@ -3398,7 +3398,7 @@ function Nr() {
|
|
|
3398
3398
|
return e;
|
|
3399
3399
|
}
|
|
3400
3400
|
function Or(e) {
|
|
3401
|
-
return
|
|
3401
|
+
return Yi + e;
|
|
3402
3402
|
}
|
|
3403
3403
|
function Ki(e, t) {
|
|
3404
3404
|
return new Promise(function(n) {
|
|
@@ -3415,17 +3415,17 @@ function Ki(e, t) {
|
|
|
3415
3415
|
});
|
|
3416
3416
|
});
|
|
3417
3417
|
}
|
|
3418
|
-
function
|
|
3418
|
+
function Xi(e, t) {
|
|
3419
3419
|
var n = Or(e), o = function(r) {
|
|
3420
3420
|
r.key === n && t(JSON.parse(r.newValue));
|
|
3421
3421
|
};
|
|
3422
3422
|
return window.addEventListener("storage", o), o;
|
|
3423
3423
|
}
|
|
3424
|
-
function
|
|
3424
|
+
function Zi(e) {
|
|
3425
3425
|
window.removeEventListener("storage", e);
|
|
3426
3426
|
}
|
|
3427
|
-
function
|
|
3428
|
-
if (t =
|
|
3427
|
+
function ec(e, t) {
|
|
3428
|
+
if (t = Cn(t), !xr())
|
|
3429
3429
|
throw new Error("BroadcastChannel: localstorage cannot be used");
|
|
3430
3430
|
var n = Sn(), o = new br(t.localstorage.removeTimeout), r = {
|
|
3431
3431
|
channelName: e,
|
|
@@ -3433,14 +3433,14 @@ function Zi(e, t) {
|
|
|
3433
3433
|
eMIs: o
|
|
3434
3434
|
// emittedMessagesIds
|
|
3435
3435
|
};
|
|
3436
|
-
return r.listener =
|
|
3436
|
+
return r.listener = Xi(e, function(s) {
|
|
3437
3437
|
r.messagesCallback && s.uuid !== n && (!s.token || o.has(s.token) || s.data.time && s.data.time < r.messagesCallbackTime || (o.add(s.token), r.messagesCallback(s.data)));
|
|
3438
3438
|
}), r;
|
|
3439
3439
|
}
|
|
3440
|
-
function
|
|
3441
|
-
|
|
3440
|
+
function tc(e) {
|
|
3441
|
+
Zi(e.listener);
|
|
3442
3442
|
}
|
|
3443
|
-
function
|
|
3443
|
+
function nc(e, t, n) {
|
|
3444
3444
|
e.messagesCallbackTime = n, e.messagesCallback = t;
|
|
3445
3445
|
}
|
|
3446
3446
|
function xr() {
|
|
@@ -3454,31 +3454,31 @@ function xr() {
|
|
|
3454
3454
|
}
|
|
3455
3455
|
return !0;
|
|
3456
3456
|
}
|
|
3457
|
-
function
|
|
3457
|
+
function oc() {
|
|
3458
3458
|
var e = 120, t = navigator.userAgent.toLowerCase();
|
|
3459
3459
|
return t.includes("safari") && !t.includes("chrome") ? e * 2 : e;
|
|
3460
3460
|
}
|
|
3461
|
-
var
|
|
3462
|
-
create:
|
|
3463
|
-
close:
|
|
3464
|
-
onMessage:
|
|
3461
|
+
var rc = {
|
|
3462
|
+
create: ec,
|
|
3463
|
+
close: tc,
|
|
3464
|
+
onMessage: nc,
|
|
3465
3465
|
postMessage: Ki,
|
|
3466
3466
|
canBeUsed: xr,
|
|
3467
|
-
type:
|
|
3468
|
-
averageResponseTime:
|
|
3469
|
-
microSeconds:
|
|
3470
|
-
},
|
|
3471
|
-
function
|
|
3467
|
+
type: Qi,
|
|
3468
|
+
averageResponseTime: oc,
|
|
3469
|
+
microSeconds: Ji
|
|
3470
|
+
}, sc = Mt, ac = "simulate", In = /* @__PURE__ */ new Set();
|
|
3471
|
+
function ic(e) {
|
|
3472
3472
|
var t = {
|
|
3473
3473
|
name: e,
|
|
3474
3474
|
messagesCallback: null
|
|
3475
3475
|
};
|
|
3476
3476
|
return In.add(t), t;
|
|
3477
3477
|
}
|
|
3478
|
-
function
|
|
3478
|
+
function cc(e) {
|
|
3479
3479
|
In.delete(e);
|
|
3480
3480
|
}
|
|
3481
|
-
function
|
|
3481
|
+
function lc(e, t) {
|
|
3482
3482
|
return new Promise(function(n) {
|
|
3483
3483
|
return setTimeout(function() {
|
|
3484
3484
|
var o = Array.from(In);
|
|
@@ -3494,35 +3494,35 @@ function cc(e, t) {
|
|
|
3494
3494
|
}, 5);
|
|
3495
3495
|
});
|
|
3496
3496
|
}
|
|
3497
|
-
function
|
|
3497
|
+
function uc(e, t) {
|
|
3498
3498
|
e.messagesCallback = t;
|
|
3499
3499
|
}
|
|
3500
|
-
function
|
|
3500
|
+
function dc() {
|
|
3501
3501
|
return !0;
|
|
3502
3502
|
}
|
|
3503
|
-
function
|
|
3503
|
+
function pc() {
|
|
3504
3504
|
return 5;
|
|
3505
3505
|
}
|
|
3506
|
-
var
|
|
3507
|
-
create:
|
|
3508
|
-
close:
|
|
3509
|
-
onMessage:
|
|
3510
|
-
postMessage:
|
|
3511
|
-
canBeUsed:
|
|
3512
|
-
type:
|
|
3513
|
-
averageResponseTime:
|
|
3514
|
-
microSeconds:
|
|
3506
|
+
var fc = {
|
|
3507
|
+
create: ic,
|
|
3508
|
+
close: cc,
|
|
3509
|
+
onMessage: uc,
|
|
3510
|
+
postMessage: lc,
|
|
3511
|
+
canBeUsed: dc,
|
|
3512
|
+
type: ac,
|
|
3513
|
+
averageResponseTime: pc,
|
|
3514
|
+
microSeconds: sc
|
|
3515
3515
|
}, vo = [
|
|
3516
|
-
|
|
3516
|
+
Ci,
|
|
3517
3517
|
// fastest
|
|
3518
|
-
|
|
3519
|
-
|
|
3518
|
+
Gi,
|
|
3519
|
+
rc
|
|
3520
3520
|
];
|
|
3521
|
-
function
|
|
3521
|
+
function hc(e) {
|
|
3522
3522
|
var t = [].concat(e.methods, vo).filter(Boolean);
|
|
3523
3523
|
if (e.type) {
|
|
3524
3524
|
if (e.type === "simulate")
|
|
3525
|
-
return
|
|
3525
|
+
return fc;
|
|
3526
3526
|
var n = t.find(function(r) {
|
|
3527
3527
|
return r.type === e.type;
|
|
3528
3528
|
});
|
|
@@ -3540,11 +3540,11 @@ function fc(e) {
|
|
|
3540
3540
|
return r.type;
|
|
3541
3541
|
})));
|
|
3542
3542
|
}
|
|
3543
|
-
var Sr = /* @__PURE__ */ new Set(),
|
|
3544
|
-
this.id =
|
|
3543
|
+
var Sr = /* @__PURE__ */ new Set(), mc = 0, Dn = function(e, t) {
|
|
3544
|
+
this.id = mc++, Sr.add(this), this.name = e, this.options = Cn(t), this.method = hc(this.options), this._iL = !1, this._onML = null, this._addEL = {
|
|
3545
3545
|
message: [],
|
|
3546
3546
|
internal: []
|
|
3547
|
-
}, this._uMP = /* @__PURE__ */ new Set(), this._befC = [], this._prepP = null,
|
|
3547
|
+
}, this._uMP = /* @__PURE__ */ new Set(), this._befC = [], this._prepP = null, vc(this);
|
|
3548
3548
|
};
|
|
3549
3549
|
Dn._pubkey = !0;
|
|
3550
3550
|
Dn.prototype = {
|
|
@@ -3617,25 +3617,25 @@ function go(e, t, n) {
|
|
|
3617
3617
|
}), a;
|
|
3618
3618
|
});
|
|
3619
3619
|
}
|
|
3620
|
-
function
|
|
3620
|
+
function vc(e) {
|
|
3621
3621
|
var t = e.method.create(e.name, e.options);
|
|
3622
|
-
|
|
3622
|
+
wi(t) ? (e._prepP = t, t.then(function(n) {
|
|
3623
3623
|
e._state = n;
|
|
3624
3624
|
})) : e._state = t;
|
|
3625
3625
|
}
|
|
3626
|
-
function
|
|
3626
|
+
function Cr(e) {
|
|
3627
3627
|
return e._addEL.message.length > 0 || e._addEL.internal.length > 0;
|
|
3628
3628
|
}
|
|
3629
3629
|
function yo(e, t, n) {
|
|
3630
|
-
e._addEL[t].push(n),
|
|
3630
|
+
e._addEL[t].push(n), gc(e);
|
|
3631
3631
|
}
|
|
3632
3632
|
function wo(e, t, n) {
|
|
3633
3633
|
e._addEL[t] = e._addEL[t].filter(function(o) {
|
|
3634
3634
|
return o !== n;
|
|
3635
|
-
}),
|
|
3635
|
+
}), yc(e);
|
|
3636
3636
|
}
|
|
3637
|
-
function
|
|
3638
|
-
if (!e._iL &&
|
|
3637
|
+
function gc(e) {
|
|
3638
|
+
if (!e._iL && Cr(e)) {
|
|
3639
3639
|
var t = function(o) {
|
|
3640
3640
|
e._addEL[o.type].forEach(function(r) {
|
|
3641
3641
|
var s = 1e5, a = r.time - s;
|
|
@@ -3647,14 +3647,14 @@ function vc(e) {
|
|
|
3647
3647
|
}) : (e._iL = !0, e.method.onMessage(e._state, t, n));
|
|
3648
3648
|
}
|
|
3649
3649
|
}
|
|
3650
|
-
function
|
|
3651
|
-
if (e._iL && !
|
|
3650
|
+
function yc(e) {
|
|
3651
|
+
if (e._iL && !Cr(e)) {
|
|
3652
3652
|
e._iL = !1;
|
|
3653
3653
|
var t = e.method.microSeconds();
|
|
3654
3654
|
e.method.onMessage(e._state, null, t);
|
|
3655
3655
|
}
|
|
3656
3656
|
}
|
|
3657
|
-
let
|
|
3657
|
+
let Kt = class extends Error {
|
|
3658
3658
|
/**
|
|
3659
3659
|
* @param {string} message
|
|
3660
3660
|
* @param {string[]} keys
|
|
@@ -3666,17 +3666,17 @@ let Qt = class extends Error {
|
|
|
3666
3666
|
function bo(e) {
|
|
3667
3667
|
return Object(e) !== e;
|
|
3668
3668
|
}
|
|
3669
|
-
const
|
|
3669
|
+
const wc = /* @__PURE__ */ Object.getOwnPropertyNames(
|
|
3670
3670
|
Object.prototype
|
|
3671
3671
|
).sort().join("\0");
|
|
3672
|
-
function
|
|
3672
|
+
function bc(e) {
|
|
3673
3673
|
const t = Object.getPrototypeOf(e);
|
|
3674
|
-
return t === Object.prototype || t === null || Object.getOwnPropertyNames(t).sort().join("\0") ===
|
|
3674
|
+
return t === Object.prototype || t === null || Object.getOwnPropertyNames(t).sort().join("\0") === wc;
|
|
3675
3675
|
}
|
|
3676
|
-
function
|
|
3676
|
+
function _c(e) {
|
|
3677
3677
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
3678
3678
|
}
|
|
3679
|
-
function
|
|
3679
|
+
function Ec(e) {
|
|
3680
3680
|
switch (e) {
|
|
3681
3681
|
case '"':
|
|
3682
3682
|
return '\\"';
|
|
@@ -3703,20 +3703,20 @@ function _c(e) {
|
|
|
3703
3703
|
return e < " " ? `\\u${e.charCodeAt(0).toString(16).padStart(4, "0")}` : "";
|
|
3704
3704
|
}
|
|
3705
3705
|
}
|
|
3706
|
-
function
|
|
3706
|
+
function Fe(e) {
|
|
3707
3707
|
let t = "", n = 0;
|
|
3708
3708
|
const o = e.length;
|
|
3709
3709
|
for (let r = 0; r < o; r += 1) {
|
|
3710
|
-
const s = e[r], a =
|
|
3710
|
+
const s = e[r], a = Ec(s);
|
|
3711
3711
|
a && (t += e.slice(n, r) + a, n = r + 1);
|
|
3712
3712
|
}
|
|
3713
3713
|
return `"${n === 0 ? e : t + e.slice(n)}"`;
|
|
3714
3714
|
}
|
|
3715
|
-
const Vn = -1,
|
|
3715
|
+
const Vn = -1, Pr = -2, Ir = -3, Dr = -4, Vr = -5, An = -6;
|
|
3716
3716
|
function _o(e, t) {
|
|
3717
|
-
return
|
|
3717
|
+
return kc(JSON.parse(e));
|
|
3718
3718
|
}
|
|
3719
|
-
function
|
|
3719
|
+
function kc(e, t) {
|
|
3720
3720
|
if (typeof e == "number") return r(e, !0);
|
|
3721
3721
|
if (!Array.isArray(e) || e.length === 0)
|
|
3722
3722
|
throw new Error("Invalid input");
|
|
@@ -3777,7 +3777,7 @@ function Ec(e, t) {
|
|
|
3777
3777
|
o[s] = c;
|
|
3778
3778
|
for (let l = 0; l < i.length; l += 1) {
|
|
3779
3779
|
const p = i[l];
|
|
3780
|
-
p !==
|
|
3780
|
+
p !== Pr && (c[l] = r(p));
|
|
3781
3781
|
}
|
|
3782
3782
|
}
|
|
3783
3783
|
else {
|
|
@@ -3800,7 +3800,7 @@ function Eo(e, t) {
|
|
|
3800
3800
|
let a = 0;
|
|
3801
3801
|
function i(l) {
|
|
3802
3802
|
if (typeof l == "function")
|
|
3803
|
-
throw new
|
|
3803
|
+
throw new Kt("Cannot stringify a function", s);
|
|
3804
3804
|
if (o.has(l)) return o.get(l);
|
|
3805
3805
|
if (l === void 0) return Vn;
|
|
3806
3806
|
if (Number.isNaN(l)) return Ir;
|
|
@@ -3818,7 +3818,7 @@ function Eo(e, t) {
|
|
|
3818
3818
|
if (bo(l))
|
|
3819
3819
|
u = Xt(l);
|
|
3820
3820
|
else
|
|
3821
|
-
switch (
|
|
3821
|
+
switch (_c(l)) {
|
|
3822
3822
|
case "Number":
|
|
3823
3823
|
case "String":
|
|
3824
3824
|
case "Boolean":
|
|
@@ -3832,12 +3832,12 @@ function Eo(e, t) {
|
|
|
3832
3832
|
break;
|
|
3833
3833
|
case "RegExp":
|
|
3834
3834
|
const { source: d, flags: f } = l;
|
|
3835
|
-
u = f ? `["RegExp",${
|
|
3835
|
+
u = f ? `["RegExp",${Fe(d)},"${f}"]` : `["RegExp",${Fe(d)}]`;
|
|
3836
3836
|
break;
|
|
3837
3837
|
case "Array":
|
|
3838
3838
|
u = "[";
|
|
3839
3839
|
for (let h = 0; h < l.length; h += 1)
|
|
3840
|
-
h > 0 && (u += ","), h in l ? (s.push(`[${h}]`), u += i(l[h]), s.pop()) : u +=
|
|
3840
|
+
h > 0 && (u += ","), h in l ? (s.push(`[${h}]`), u += i(l[h]), s.pop()) : u += Pr;
|
|
3841
3841
|
u += "]";
|
|
3842
3842
|
break;
|
|
3843
3843
|
case "Set":
|
|
@@ -3855,26 +3855,26 @@ function Eo(e, t) {
|
|
|
3855
3855
|
u += "]";
|
|
3856
3856
|
break;
|
|
3857
3857
|
default:
|
|
3858
|
-
if (!
|
|
3859
|
-
throw new
|
|
3858
|
+
if (!bc(l))
|
|
3859
|
+
throw new Kt(
|
|
3860
3860
|
"Cannot stringify arbitrary non-POJOs",
|
|
3861
3861
|
s
|
|
3862
3862
|
);
|
|
3863
3863
|
if (Object.getOwnPropertySymbols(l).length > 0)
|
|
3864
|
-
throw new
|
|
3864
|
+
throw new Kt(
|
|
3865
3865
|
"Cannot stringify POJOs with symbolic keys",
|
|
3866
3866
|
s
|
|
3867
3867
|
);
|
|
3868
3868
|
if (Object.getPrototypeOf(l) === null) {
|
|
3869
3869
|
u = '["null"';
|
|
3870
3870
|
for (const h in l)
|
|
3871
|
-
s.push(`.${h}`), u += `,${
|
|
3871
|
+
s.push(`.${h}`), u += `,${Fe(h)},${i(l[h])}`, s.pop();
|
|
3872
3872
|
u += "]";
|
|
3873
3873
|
} else {
|
|
3874
3874
|
u = "{";
|
|
3875
3875
|
let h = !1;
|
|
3876
3876
|
for (const y in l)
|
|
3877
|
-
h && (u += ","), h = !0, s.push(`.${y}`), u += `${
|
|
3877
|
+
h && (u += ","), h = !0, s.push(`.${y}`), u += `${Fe(y)}:${i(l[y])}`, s.pop();
|
|
3878
3878
|
u += "}";
|
|
3879
3879
|
}
|
|
3880
3880
|
}
|
|
@@ -3885,9 +3885,9 @@ function Eo(e, t) {
|
|
|
3885
3885
|
}
|
|
3886
3886
|
function Xt(e) {
|
|
3887
3887
|
const t = typeof e;
|
|
3888
|
-
return t === "string" ?
|
|
3888
|
+
return t === "string" ? Fe(e) : e instanceof String ? Fe(e.toString()) : e === void 0 ? Vn.toString() : e === 0 && 1 / e < 0 ? An.toString() : t === "bigint" ? `["BigInt","${e}"]` : String(e);
|
|
3889
3889
|
}
|
|
3890
|
-
function
|
|
3890
|
+
function $c(e, t, { initialize: n, type: o }) {
|
|
3891
3891
|
let r = `${t.$id}-${e.toString()}`, s = new Dn(r, { type: o }), a = !1, i = 0;
|
|
3892
3892
|
J(() => t[e], (p) => {
|
|
3893
3893
|
a || (i = Date.now(), s.postMessage({ timestamp: i, state: _o(Eo(p)) })), a = !1;
|
|
@@ -3901,22 +3901,22 @@ function kc(e, t, { initialize: n, type: o }) {
|
|
|
3901
3901
|
let c = () => s.postMessage(void 0), l = () => s.close();
|
|
3902
3902
|
return n && c(), { sync: c, unshare: l };
|
|
3903
3903
|
}
|
|
3904
|
-
var
|
|
3904
|
+
var Nc = (e, t) => Object.keys(t).includes(e), Oc = ({ initialize: e = !0, enable: t = !0, type: n }) => ({ store: o, options: r }) => {
|
|
3905
3905
|
var s, a;
|
|
3906
3906
|
let i = ((s = r == null ? void 0 : r.share) == null ? void 0 : s.enable) ?? t, c = ((a = r == null ? void 0 : r.share) == null ? void 0 : a.omit) ?? [];
|
|
3907
3907
|
!i || Object.keys(o.$state).forEach((l) => {
|
|
3908
3908
|
var p;
|
|
3909
|
-
c.includes(l) ||
|
|
3909
|
+
c.includes(l) || !Nc(l, o.$state) || $c(l, o, { initialize: ((p = r == null ? void 0 : r.share) == null ? void 0 : p.initialize) ?? e, type: n });
|
|
3910
3910
|
});
|
|
3911
3911
|
};
|
|
3912
|
-
const
|
|
3913
|
-
|
|
3914
|
-
|
|
3912
|
+
const xc = zs();
|
|
3913
|
+
xc.use(
|
|
3914
|
+
Oc({
|
|
3915
3915
|
enable: !0,
|
|
3916
3916
|
initialize: !0
|
|
3917
3917
|
})
|
|
3918
3918
|
);
|
|
3919
|
-
const
|
|
3919
|
+
const Sc = /* @__PURE__ */ ae({
|
|
3920
3920
|
__name: "Doctype",
|
|
3921
3921
|
setup(e) {
|
|
3922
3922
|
const { stonecrop: t, isReady: n } = Zo(), o = C([]);
|
|
@@ -3928,7 +3928,7 @@ const xc = /* @__PURE__ */ ae({
|
|
|
3928
3928
|
r[a].value = c;
|
|
3929
3929
|
}), o.value = r;
|
|
3930
3930
|
}
|
|
3931
|
-
}), (r, s) => S(n) ? (A(), Ie(S(
|
|
3931
|
+
}), (r, s) => S(n) ? (A(), Ie(S(gs), {
|
|
3932
3932
|
key: 0,
|
|
3933
3933
|
class: "aform-main",
|
|
3934
3934
|
modelValue: o.value,
|
|
@@ -3936,8 +3936,8 @@ const xc = /* @__PURE__ */ ae({
|
|
|
3936
3936
|
}, null, 8, ["modelValue"])) : ge("", !0);
|
|
3937
3937
|
}
|
|
3938
3938
|
});
|
|
3939
|
-
var
|
|
3940
|
-
function
|
|
3939
|
+
var Cc = !1;
|
|
3940
|
+
function _t(e, t, n) {
|
|
3941
3941
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
3942
3942
|
}
|
|
3943
3943
|
function Zt(e, t) {
|
|
@@ -3953,7 +3953,7 @@ function Zt(e, t) {
|
|
|
3953
3953
|
* @license MIT
|
|
3954
3954
|
*/
|
|
3955
3955
|
let ot;
|
|
3956
|
-
const
|
|
3956
|
+
const Tt = (e) => ot = e, Pc = process.env.NODE_ENV !== "production" ? Symbol("pinia") : (
|
|
3957
3957
|
/* istanbul ignore next */
|
|
3958
3958
|
Symbol()
|
|
3959
3959
|
);
|
|
@@ -3983,14 +3983,14 @@ function ko(e, t, n, o = Tr) {
|
|
|
3983
3983
|
const s = e.indexOf(t);
|
|
3984
3984
|
s > -1 && (e.splice(s, 1), o());
|
|
3985
3985
|
};
|
|
3986
|
-
return !n &&
|
|
3986
|
+
return !n && Rt() && jt(r), r;
|
|
3987
3987
|
}
|
|
3988
3988
|
function Ue(e, ...t) {
|
|
3989
3989
|
e.slice().forEach((n) => {
|
|
3990
3990
|
n(...t);
|
|
3991
3991
|
});
|
|
3992
3992
|
}
|
|
3993
|
-
const
|
|
3993
|
+
const Ic = (e) => e(), $o = Symbol(), en = Symbol();
|
|
3994
3994
|
function hn(e, t) {
|
|
3995
3995
|
e instanceof Map && t instanceof Map ? t.forEach((n, o) => e.set(o, n)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
|
|
3996
3996
|
for (const n in t) {
|
|
@@ -4001,12 +4001,12 @@ function hn(e, t) {
|
|
|
4001
4001
|
}
|
|
4002
4002
|
return e;
|
|
4003
4003
|
}
|
|
4004
|
-
const
|
|
4004
|
+
const Dc = process.env.NODE_ENV !== "production" ? Symbol("pinia:skipHydration") : (
|
|
4005
4005
|
/* istanbul ignore next */
|
|
4006
4006
|
Symbol()
|
|
4007
4007
|
);
|
|
4008
|
-
function
|
|
4009
|
-
return !je(e) || !e.hasOwnProperty(
|
|
4008
|
+
function Vc(e) {
|
|
4009
|
+
return !je(e) || !e.hasOwnProperty(Dc);
|
|
4010
4010
|
}
|
|
4011
4011
|
const { assign: ne } = Object;
|
|
4012
4012
|
function No(e) {
|
|
@@ -4022,7 +4022,7 @@ function Oo(e, t, n, o) {
|
|
|
4022
4022
|
Pt(C(r ? r() : {}).value)
|
|
4023
4023
|
) : Pt(n.state.value[e]);
|
|
4024
4024
|
return ne(p, s, Object.keys(a || {}).reduce((u, d) => (process.env.NODE_ENV !== "production" && d in p && console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${d}" in store "${e}".`), u[d] = re(B(() => {
|
|
4025
|
-
|
|
4025
|
+
Tt(n);
|
|
4026
4026
|
const f = n._s.get(e);
|
|
4027
4027
|
return a[d].call(f, f);
|
|
4028
4028
|
})), u), {}));
|
|
@@ -4035,7 +4035,7 @@ function mn(e, t, n = {}, o, r, s) {
|
|
|
4035
4035
|
if (process.env.NODE_ENV !== "production" && !o._e.active)
|
|
4036
4036
|
throw new Error("Pinia destroyed");
|
|
4037
4037
|
const c = { deep: !0 };
|
|
4038
|
-
process.env.NODE_ENV !== "production" && !
|
|
4038
|
+
process.env.NODE_ENV !== "production" && !Cc && (c.onTrigger = (m) => {
|
|
4039
4039
|
l ? f = m : l == !1 && !g._hotUpdating && (Array.isArray(f) ? f.push(m) : console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
|
4040
4040
|
});
|
|
4041
4041
|
let l, p, u = [], d = [], f;
|
|
@@ -4062,8 +4062,8 @@ function mn(e, t, n = {}, o, r, s) {
|
|
|
4062
4062
|
}
|
|
4063
4063
|
const x = s ? function() {
|
|
4064
4064
|
const { state: w } = n, D = w ? w() : {};
|
|
4065
|
-
this.$patch((
|
|
4066
|
-
ne(
|
|
4065
|
+
this.$patch((F) => {
|
|
4066
|
+
ne(F, D);
|
|
4067
4067
|
});
|
|
4068
4068
|
} : (
|
|
4069
4069
|
/* istanbul ignore next */
|
|
@@ -4074,12 +4074,12 @@ function mn(e, t, n = {}, o, r, s) {
|
|
|
4074
4074
|
function T() {
|
|
4075
4075
|
a.stop(), u = [], d = [], o._s.delete(e);
|
|
4076
4076
|
}
|
|
4077
|
-
const
|
|
4077
|
+
const H = (m, w = "") => {
|
|
4078
4078
|
if ($o in m)
|
|
4079
4079
|
return m[en] = w, m;
|
|
4080
4080
|
const D = function() {
|
|
4081
|
-
|
|
4082
|
-
const
|
|
4081
|
+
Tt(o);
|
|
4082
|
+
const F = Array.from(arguments), ie = [], pe = [];
|
|
4083
4083
|
function Me(X) {
|
|
4084
4084
|
ie.push(X);
|
|
4085
4085
|
}
|
|
@@ -4087,7 +4087,7 @@ function mn(e, t, n = {}, o, r, s) {
|
|
|
4087
4087
|
pe.push(X);
|
|
4088
4088
|
}
|
|
4089
4089
|
Ue(d, {
|
|
4090
|
-
args:
|
|
4090
|
+
args: F,
|
|
4091
4091
|
name: D[en],
|
|
4092
4092
|
store: g,
|
|
4093
4093
|
after: Me,
|
|
@@ -4095,7 +4095,7 @@ function mn(e, t, n = {}, o, r, s) {
|
|
|
4095
4095
|
});
|
|
4096
4096
|
let z;
|
|
4097
4097
|
try {
|
|
4098
|
-
z = m.apply(this && this.$id === e ? this : g,
|
|
4098
|
+
z = m.apply(this && this.$id === e ? this : g, F);
|
|
4099
4099
|
} catch (X) {
|
|
4100
4100
|
throw Ue(pe, X), X;
|
|
4101
4101
|
}
|
|
@@ -4115,7 +4115,7 @@ function mn(e, t, n = {}, o, r, s) {
|
|
|
4115
4115
|
$patch: _,
|
|
4116
4116
|
$reset: x,
|
|
4117
4117
|
$subscribe(m, w = {}) {
|
|
4118
|
-
const D = ko(u, m, w.detached, () =>
|
|
4118
|
+
const D = ko(u, m, w.detached, () => F()), F = a.run(() => J(() => o.state.value[e], (ie) => {
|
|
4119
4119
|
(w.flush === "sync" ? p : l) && m({
|
|
4120
4120
|
storeId: e,
|
|
4121
4121
|
type: ct.direct,
|
|
@@ -4136,13 +4136,13 @@ function mn(e, t, n = {}, o, r, s) {
|
|
|
4136
4136
|
// setupStore
|
|
4137
4137
|
) : P);
|
|
4138
4138
|
o._s.set(e, g);
|
|
4139
|
-
const b = (o._a && o._a.runWithContext ||
|
|
4139
|
+
const b = (o._a && o._a.runWithContext || Ic)(() => o._e.run(() => (a = bn()).run(() => t({ action: H }))));
|
|
4140
4140
|
for (const m in b) {
|
|
4141
4141
|
const w = b[m];
|
|
4142
4142
|
if (de(w) && !No(w) || Xe(w))
|
|
4143
|
-
process.env.NODE_ENV !== "production" && r ?
|
|
4143
|
+
process.env.NODE_ENV !== "production" && r ? _t(y.value, m, De(b, m)) : s || (h && Vc(w) && (de(w) ? w.value = h[m] : hn(w, h[m])), o.state.value[e][m] = w), process.env.NODE_ENV !== "production" && N.state.push(m);
|
|
4144
4144
|
else if (typeof w == "function") {
|
|
4145
|
-
const D = process.env.NODE_ENV !== "production" && r ? w :
|
|
4145
|
+
const D = process.env.NODE_ENV !== "production" && r ? w : H(w, m);
|
|
4146
4146
|
b[m] = D, process.env.NODE_ENV !== "production" && (N.actions[m] = w), i.actions[m] = w;
|
|
4147
4147
|
} else process.env.NODE_ENV !== "production" && No(w) && (N.getters[m] = s ? (
|
|
4148
4148
|
// @ts-expect-error
|
|
@@ -4162,10 +4162,10 @@ function mn(e, t, n = {}, o, r, s) {
|
|
|
4162
4162
|
}), process.env.NODE_ENV !== "production" && (g._hotUpdate = re((m) => {
|
|
4163
4163
|
g._hotUpdating = !0, m._hmrPayload.state.forEach((w) => {
|
|
4164
4164
|
if (w in g.$state) {
|
|
4165
|
-
const D = m.$state[w],
|
|
4166
|
-
typeof D == "object" && je(D) && je(
|
|
4165
|
+
const D = m.$state[w], F = g.$state[w];
|
|
4166
|
+
typeof D == "object" && je(D) && je(F) ? Ar(D, F) : m.$state[w] = F;
|
|
4167
4167
|
}
|
|
4168
|
-
|
|
4168
|
+
_t(g, w, De(m.$state, w));
|
|
4169
4169
|
}), Object.keys(g.$state).forEach((w) => {
|
|
4170
4170
|
w in m.$state || Zt(g, w);
|
|
4171
4171
|
}), l = !1, p = !1, o.state.value[e] = De(m._hmrPayload, "hotState"), p = !0, xe().then(() => {
|
|
@@ -4173,14 +4173,14 @@ function mn(e, t, n = {}, o, r, s) {
|
|
|
4173
4173
|
});
|
|
4174
4174
|
for (const w in m._hmrPayload.actions) {
|
|
4175
4175
|
const D = m[w];
|
|
4176
|
-
|
|
4176
|
+
_t(g, w, H(D, w));
|
|
4177
4177
|
}
|
|
4178
4178
|
for (const w in m._hmrPayload.getters) {
|
|
4179
|
-
const D = m._hmrPayload.getters[w],
|
|
4179
|
+
const D = m._hmrPayload.getters[w], F = s ? (
|
|
4180
4180
|
// special handling of options api
|
|
4181
|
-
B(() => (
|
|
4181
|
+
B(() => (Tt(o), D.call(g, g)))
|
|
4182
4182
|
) : D;
|
|
4183
|
-
|
|
4183
|
+
_t(g, w, F);
|
|
4184
4184
|
}
|
|
4185
4185
|
Object.keys(g._hmrPayload.getters).forEach((w) => {
|
|
4186
4186
|
w in m._hmrPayload.getters || Zt(g, w);
|
|
@@ -4220,7 +4220,7 @@ Found in store "${g.$id}".`), h && s && n.hydrate && n.hydrate(g.$state, h), l =
|
|
|
4220
4220
|
}
|
|
4221
4221
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
4222
4222
|
// @__NO_SIDE_EFFECTS__
|
|
4223
|
-
function
|
|
4223
|
+
function Ac(e, t, n) {
|
|
4224
4224
|
let o, r;
|
|
4225
4225
|
const s = typeof t == "function";
|
|
4226
4226
|
if (typeof e == "string")
|
|
@@ -4231,7 +4231,7 @@ function Vc(e, t, n) {
|
|
|
4231
4231
|
const l = Ro();
|
|
4232
4232
|
if (i = // in test mode, ignore the argument provided as we can always retrieve a
|
|
4233
4233
|
// pinia instance with getActivePinia()
|
|
4234
|
-
(process.env.NODE_ENV === "test" && ot && ot._testing ? null : i) || (l ? Oe(Pc, null) : null), i &&
|
|
4234
|
+
(process.env.NODE_ENV === "test" && ot && ot._testing ? null : i) || (l ? Oe(Pc, null) : null), i && Tt(i), process.env.NODE_ENV !== "production" && !ot)
|
|
4235
4235
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
4236
4236
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
4237
4237
|
This will fail in production.`);
|
|
@@ -4254,15 +4254,15 @@ This will fail in production.`);
|
|
|
4254
4254
|
return a.$id = o, a;
|
|
4255
4255
|
}
|
|
4256
4256
|
function Rr(e) {
|
|
4257
|
-
return
|
|
4257
|
+
return Rt() ? (jt(e), !0) : !1;
|
|
4258
4258
|
}
|
|
4259
4259
|
function Tn(e) {
|
|
4260
4260
|
return typeof e == "function" ? e() : S(e);
|
|
4261
4261
|
}
|
|
4262
|
-
const
|
|
4262
|
+
const Tc = typeof window < "u" && typeof document < "u";
|
|
4263
4263
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4264
|
-
const
|
|
4265
|
-
},
|
|
4264
|
+
const Rc = (e) => e != null, jc = Object.prototype.toString, Lc = (e) => jc.call(e) === "[object Object]", Mc = () => {
|
|
4265
|
+
}, mt = Tc ? window : void 0;
|
|
4266
4266
|
function pt(e) {
|
|
4267
4267
|
var t;
|
|
4268
4268
|
const n = Tn(e);
|
|
@@ -4270,8 +4270,8 @@ function pt(e) {
|
|
|
4270
4270
|
}
|
|
4271
4271
|
function ft(...e) {
|
|
4272
4272
|
let t, n, o, r;
|
|
4273
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t =
|
|
4274
|
-
return
|
|
4273
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = mt) : [t, n, o, r] = e, !t)
|
|
4274
|
+
return Mc;
|
|
4275
4275
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
4276
4276
|
const s = [], a = () => {
|
|
4277
4277
|
s.forEach((p) => p()), s.length = 0;
|
|
@@ -4280,7 +4280,7 @@ function ft(...e) {
|
|
|
4280
4280
|
([p, u]) => {
|
|
4281
4281
|
if (a(), !p)
|
|
4282
4282
|
return;
|
|
4283
|
-
const d =
|
|
4283
|
+
const d = Lc(u) ? { ...u } : u;
|
|
4284
4284
|
s.push(
|
|
4285
4285
|
...n.flatMap((f) => o.map((h) => i(p, f, h, d)))
|
|
4286
4286
|
);
|
|
@@ -4291,23 +4291,23 @@ function ft(...e) {
|
|
|
4291
4291
|
};
|
|
4292
4292
|
return Rr(l), l;
|
|
4293
4293
|
}
|
|
4294
|
-
function
|
|
4294
|
+
function Bc() {
|
|
4295
4295
|
const e = C(!1), t = Le();
|
|
4296
|
-
return t &&
|
|
4296
|
+
return t && Ke(() => {
|
|
4297
4297
|
e.value = !0;
|
|
4298
4298
|
}, t), e;
|
|
4299
4299
|
}
|
|
4300
|
-
function
|
|
4301
|
-
const t =
|
|
4300
|
+
function Wc(e) {
|
|
4301
|
+
const t = Bc();
|
|
4302
4302
|
return B(() => (t.value, !!e()));
|
|
4303
4303
|
}
|
|
4304
|
-
function
|
|
4305
|
-
const { window: o =
|
|
4304
|
+
function Uc(e, t, n = {}) {
|
|
4305
|
+
const { window: o = mt, ...r } = n;
|
|
4306
4306
|
let s;
|
|
4307
|
-
const a =
|
|
4307
|
+
const a = Wc(() => o && "MutationObserver" in o), i = () => {
|
|
4308
4308
|
s && (s.disconnect(), s = void 0);
|
|
4309
4309
|
}, c = B(() => {
|
|
4310
|
-
const d = Tn(e), f = (Array.isArray(d) ? d : [d]).map(pt).filter(
|
|
4310
|
+
const d = Tn(e), f = (Array.isArray(d) ? d : [d]).map(pt).filter(Rc);
|
|
4311
4311
|
return new Set(f);
|
|
4312
4312
|
}), l = J(
|
|
4313
4313
|
() => c.value,
|
|
@@ -4324,10 +4324,10 @@ function Wc(e, t, n = {}) {
|
|
|
4324
4324
|
takeRecords: p
|
|
4325
4325
|
};
|
|
4326
4326
|
}
|
|
4327
|
-
function
|
|
4327
|
+
function Hc(e = {}) {
|
|
4328
4328
|
var t;
|
|
4329
4329
|
const {
|
|
4330
|
-
window: n =
|
|
4330
|
+
window: n = mt,
|
|
4331
4331
|
deep: o = !0,
|
|
4332
4332
|
triggerOnRemoval: r = !1
|
|
4333
4333
|
} = e, s = (t = e.document) != null ? t : n == null ? void 0 : n.document, a = () => {
|
|
@@ -4342,7 +4342,7 @@ function Uc(e = {}) {
|
|
|
4342
4342
|
};
|
|
4343
4343
|
return n && (ft(n, "blur", (l) => {
|
|
4344
4344
|
l.relatedTarget === null && c();
|
|
4345
|
-
}, !0), ft(n, "focus", c, !0)), r &&
|
|
4345
|
+
}, !0), ft(n, "focus", c, !0)), r && Uc(s, (l) => {
|
|
4346
4346
|
l.filter((p) => p.removedNodes.length).map((p) => Array.from(p.removedNodes)).flat().forEach((p) => {
|
|
4347
4347
|
p === i.value && c();
|
|
4348
4348
|
});
|
|
@@ -4351,12 +4351,12 @@ function Uc(e = {}) {
|
|
|
4351
4351
|
subtree: !0
|
|
4352
4352
|
}), c(), i;
|
|
4353
4353
|
}
|
|
4354
|
-
const Fc = "focusin",
|
|
4355
|
-
function
|
|
4356
|
-
const { window: n =
|
|
4357
|
-
return !n || !a.value ? { focused: s } : (ft(o, Fc, () => r.value = !0), ft(o,
|
|
4354
|
+
const Fc = "focusin", zc = "focusout";
|
|
4355
|
+
function qc(e, t = {}) {
|
|
4356
|
+
const { window: n = mt } = t, o = B(() => pt(e)), r = C(!1), s = B(() => r.value), a = Hc(t);
|
|
4357
|
+
return !n || !a.value ? { focused: s } : (ft(o, Fc, () => r.value = !0), ft(o, zc, () => r.value = !1), { focused: s });
|
|
4358
4358
|
}
|
|
4359
|
-
function
|
|
4359
|
+
function Gc(e, { window: t = mt, scrollTarget: n } = {}) {
|
|
4360
4360
|
const o = C(!1), r = () => {
|
|
4361
4361
|
if (!t) return;
|
|
4362
4362
|
const s = t.document, a = pt(e);
|
|
@@ -4377,7 +4377,7 @@ function qc(e, { window: t = ht, scrollTarget: n } = {}) {
|
|
|
4377
4377
|
}), o;
|
|
4378
4378
|
}
|
|
4379
4379
|
const we = (e) => {
|
|
4380
|
-
let t =
|
|
4380
|
+
let t = Gc(e).value;
|
|
4381
4381
|
return t = t && e.offsetHeight > 0, t;
|
|
4382
4382
|
}, be = (e) => e.tabIndex >= 0, xo = (e) => {
|
|
4383
4383
|
const t = e.target;
|
|
@@ -4396,7 +4396,7 @@ const we = (e) => {
|
|
|
4396
4396
|
o && (n = o);
|
|
4397
4397
|
}
|
|
4398
4398
|
return n && (!be(n) || !we(n)) ? Rn(n) : n;
|
|
4399
|
-
},
|
|
4399
|
+
}, Jc = (e) => {
|
|
4400
4400
|
var t;
|
|
4401
4401
|
const n = e.target;
|
|
4402
4402
|
let o;
|
|
@@ -4431,7 +4431,7 @@ const we = (e) => {
|
|
|
4431
4431
|
o && (n = o);
|
|
4432
4432
|
}
|
|
4433
4433
|
return n && (!be(n) || !we(n)) ? jn(n) : n;
|
|
4434
|
-
},
|
|
4434
|
+
}, Yc = (e) => {
|
|
4435
4435
|
var t;
|
|
4436
4436
|
const n = e.target;
|
|
4437
4437
|
let o;
|
|
@@ -4449,7 +4449,7 @@ const we = (e) => {
|
|
|
4449
4449
|
}
|
|
4450
4450
|
}
|
|
4451
4451
|
return o && (!be(o) || !we(o)) ? Rn(o) : o;
|
|
4452
|
-
},
|
|
4452
|
+
}, Co = (e) => {
|
|
4453
4453
|
const t = e.target;
|
|
4454
4454
|
return Ln(t);
|
|
4455
4455
|
}, Ln = (e) => {
|
|
@@ -4462,7 +4462,7 @@ const we = (e) => {
|
|
|
4462
4462
|
n = o == null ? void 0 : o.lastElementChild;
|
|
4463
4463
|
}
|
|
4464
4464
|
return n && (!be(n) || !we(n)) ? Ln(n) : n;
|
|
4465
|
-
},
|
|
4465
|
+
}, Po = (e) => {
|
|
4466
4466
|
const t = e.target;
|
|
4467
4467
|
return Mn(t);
|
|
4468
4468
|
}, Mn = (e) => {
|
|
@@ -4481,7 +4481,7 @@ const we = (e) => {
|
|
|
4481
4481
|
}, Do = (e) => {
|
|
4482
4482
|
const t = e.target.parentElement.lastElementChild;
|
|
4483
4483
|
return t && (!be(t) || !we(t)) ? Ln(t) : t;
|
|
4484
|
-
},
|
|
4484
|
+
}, Et = ["alt", "control", "shift", "meta"], Qc = {
|
|
4485
4485
|
ArrowUp: "up",
|
|
4486
4486
|
ArrowDown: "down",
|
|
4487
4487
|
ArrowLeft: "left",
|
|
@@ -4496,19 +4496,19 @@ const we = (e) => {
|
|
|
4496
4496
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
4497
4497
|
},
|
|
4498
4498
|
"keydown.left": (e) => {
|
|
4499
|
-
const t =
|
|
4499
|
+
const t = Co(e);
|
|
4500
4500
|
e.preventDefault(), e.stopPropagation(), t && t.focus();
|
|
4501
4501
|
},
|
|
4502
4502
|
"keydown.right": (e) => {
|
|
4503
|
-
const t =
|
|
4503
|
+
const t = Po(e);
|
|
4504
4504
|
e.preventDefault(), e.stopPropagation(), t && t.focus();
|
|
4505
4505
|
},
|
|
4506
4506
|
"keydown.control.up": (e) => {
|
|
4507
|
-
const t =
|
|
4507
|
+
const t = Jc(e);
|
|
4508
4508
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
4509
4509
|
},
|
|
4510
4510
|
"keydown.control.down": (e) => {
|
|
4511
|
-
const t =
|
|
4511
|
+
const t = Yc(e);
|
|
4512
4512
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
4513
4513
|
},
|
|
4514
4514
|
"keydown.control.left": (e) => {
|
|
@@ -4542,11 +4542,11 @@ const we = (e) => {
|
|
|
4542
4542
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
4543
4543
|
},
|
|
4544
4544
|
"keydown.tab": (e) => {
|
|
4545
|
-
const t =
|
|
4545
|
+
const t = Po(e);
|
|
4546
4546
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
4547
4547
|
},
|
|
4548
4548
|
"keydown.shift.tab": (e) => {
|
|
4549
|
-
const t =
|
|
4549
|
+
const t = Co(e);
|
|
4550
4550
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
4551
4551
|
}
|
|
4552
4552
|
};
|
|
@@ -4575,19 +4575,19 @@ function jr(e) {
|
|
|
4575
4575
|
let c = [];
|
|
4576
4576
|
return a.selectors ? c = n(a) : i && (c = Array.from(i.children).filter((l) => be(l) && we(l))), c;
|
|
4577
4577
|
}, r = (a) => (i) => {
|
|
4578
|
-
const c =
|
|
4579
|
-
if (
|
|
4578
|
+
const c = Qc[i.key] || i.key.toLowerCase();
|
|
4579
|
+
if (Et.includes(c)) return;
|
|
4580
4580
|
const l = a.handlers || Bn;
|
|
4581
4581
|
for (const p of Object.keys(l)) {
|
|
4582
4582
|
const [u, ...d] = p.split(".");
|
|
4583
4583
|
if (u === "keydown" && d.includes(c)) {
|
|
4584
|
-
const f = l[p], h = d.filter((k) =>
|
|
4584
|
+
const f = l[p], h = d.filter((k) => Et.includes(k)), y = Et.some((k) => {
|
|
4585
4585
|
const _ = k.charAt(0).toUpperCase() + k.slice(1);
|
|
4586
4586
|
return i.getModifierState(_);
|
|
4587
4587
|
});
|
|
4588
4588
|
if (h.length > 0) {
|
|
4589
4589
|
if (y) {
|
|
4590
|
-
for (const k of
|
|
4590
|
+
for (const k of Et)
|
|
4591
4591
|
if (d.includes(k)) {
|
|
4592
4592
|
const _ = k.charAt(0).toUpperCase() + k.slice(1);
|
|
4593
4593
|
i.getModifierState(_) && f(i);
|
|
@@ -4598,11 +4598,11 @@ function jr(e) {
|
|
|
4598
4598
|
}
|
|
4599
4599
|
}
|
|
4600
4600
|
}, s = [];
|
|
4601
|
-
|
|
4601
|
+
Ke(() => {
|
|
4602
4602
|
for (const a of e) {
|
|
4603
4603
|
const i = t(a), c = o(a), l = r(a), p = i ? [i] : c;
|
|
4604
4604
|
for (const u of p) {
|
|
4605
|
-
const { focused: d } =
|
|
4605
|
+
const { focused: d } = qc(C(u)), f = J(d, (h) => {
|
|
4606
4606
|
h ? u.addEventListener("keydown", l) : u.removeEventListener("keydown", l);
|
|
4607
4607
|
});
|
|
4608
4608
|
s.push(f);
|
|
@@ -4613,34 +4613,34 @@ function jr(e) {
|
|
|
4613
4613
|
a();
|
|
4614
4614
|
});
|
|
4615
4615
|
}
|
|
4616
|
-
function
|
|
4617
|
-
return
|
|
4616
|
+
function vt(e) {
|
|
4617
|
+
return Rt() ? (jt(e), !0) : !1;
|
|
4618
4618
|
}
|
|
4619
4619
|
function se(e) {
|
|
4620
4620
|
return typeof e == "function" ? e() : S(e);
|
|
4621
4621
|
}
|
|
4622
4622
|
const Wn = typeof window < "u" && typeof document < "u";
|
|
4623
4623
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4624
|
-
const Kc = (e) => e != null,
|
|
4625
|
-
}, vn = /* @__PURE__ */
|
|
4626
|
-
function
|
|
4624
|
+
const Kc = (e) => e != null, Xc = Object.prototype.toString, Lr = (e) => Xc.call(e) === "[object Object]", ze = () => {
|
|
4625
|
+
}, vn = /* @__PURE__ */ Zc();
|
|
4626
|
+
function Zc() {
|
|
4627
4627
|
var e, t;
|
|
4628
4628
|
return Wn && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window == null ? void 0 : window.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
4629
4629
|
}
|
|
4630
|
-
function
|
|
4630
|
+
function el(e) {
|
|
4631
4631
|
return Le();
|
|
4632
4632
|
}
|
|
4633
|
-
function
|
|
4633
|
+
function tl(...e) {
|
|
4634
4634
|
if (e.length !== 1)
|
|
4635
4635
|
return De(...e);
|
|
4636
4636
|
const t = e[0];
|
|
4637
|
-
return typeof t == "function" ?
|
|
4637
|
+
return typeof t == "function" ? Yr(Qr(() => ({ get: t, set: ze }))) : C(t);
|
|
4638
4638
|
}
|
|
4639
|
-
function
|
|
4640
|
-
|
|
4639
|
+
function nl(e, t = !0, n) {
|
|
4640
|
+
el() ? Ke(e, n) : t ? e() : xe(e);
|
|
4641
4641
|
}
|
|
4642
4642
|
const Un = Wn ? window : void 0;
|
|
4643
|
-
function
|
|
4643
|
+
function Qe(e) {
|
|
4644
4644
|
var t;
|
|
4645
4645
|
const n = se(e);
|
|
4646
4646
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
@@ -4653,7 +4653,7 @@ function Vo(...e) {
|
|
|
4653
4653
|
const s = [], a = () => {
|
|
4654
4654
|
s.forEach((p) => p()), s.length = 0;
|
|
4655
4655
|
}, i = (p, u, d, f) => (p.addEventListener(u, d, f), () => p.removeEventListener(u, d, f)), c = J(
|
|
4656
|
-
() => [
|
|
4656
|
+
() => [Qe(t), se(r)],
|
|
4657
4657
|
([p, u]) => {
|
|
4658
4658
|
if (a(), !p)
|
|
4659
4659
|
return;
|
|
@@ -4666,16 +4666,16 @@ function Vo(...e) {
|
|
|
4666
4666
|
), l = () => {
|
|
4667
4667
|
c(), a();
|
|
4668
4668
|
};
|
|
4669
|
-
return
|
|
4669
|
+
return vt(l), l;
|
|
4670
4670
|
}
|
|
4671
|
-
function
|
|
4671
|
+
function ol() {
|
|
4672
4672
|
const e = C(!1), t = Le();
|
|
4673
|
-
return t &&
|
|
4673
|
+
return t && Ke(() => {
|
|
4674
4674
|
e.value = !0;
|
|
4675
4675
|
}, t), e;
|
|
4676
4676
|
}
|
|
4677
4677
|
function Mr(e) {
|
|
4678
|
-
const t =
|
|
4678
|
+
const t = ol();
|
|
4679
4679
|
return B(() => (t.value, !!e()));
|
|
4680
4680
|
}
|
|
4681
4681
|
function Br(e, t, n = {}) {
|
|
@@ -4684,7 +4684,7 @@ function Br(e, t, n = {}) {
|
|
|
4684
4684
|
const a = Mr(() => o && "MutationObserver" in o), i = () => {
|
|
4685
4685
|
s && (s.disconnect(), s = void 0);
|
|
4686
4686
|
}, c = B(() => {
|
|
4687
|
-
const d = se(e), f = (Array.isArray(d) ? d : [d]).map(
|
|
4687
|
+
const d = se(e), f = (Array.isArray(d) ? d : [d]).map(Qe).filter(Kc);
|
|
4688
4688
|
return new Set(f);
|
|
4689
4689
|
}), l = J(
|
|
4690
4690
|
() => c.value,
|
|
@@ -4695,20 +4695,20 @@ function Br(e, t, n = {}) {
|
|
|
4695
4695
|
), p = () => s == null ? void 0 : s.takeRecords(), u = () => {
|
|
4696
4696
|
l(), i();
|
|
4697
4697
|
};
|
|
4698
|
-
return
|
|
4698
|
+
return vt(u), {
|
|
4699
4699
|
isSupported: a,
|
|
4700
4700
|
stop: u,
|
|
4701
4701
|
takeRecords: p
|
|
4702
4702
|
};
|
|
4703
4703
|
}
|
|
4704
|
-
function
|
|
4704
|
+
function rl(e, t, n = {}) {
|
|
4705
4705
|
const { window: o = Un, ...r } = n;
|
|
4706
4706
|
let s;
|
|
4707
4707
|
const a = Mr(() => o && "ResizeObserver" in o), i = () => {
|
|
4708
4708
|
s && (s.disconnect(), s = void 0);
|
|
4709
4709
|
}, c = B(() => {
|
|
4710
4710
|
const u = se(e);
|
|
4711
|
-
return Array.isArray(u) ? u.map((d) =>
|
|
4711
|
+
return Array.isArray(u) ? u.map((d) => Qe(d)) : [Qe(u)];
|
|
4712
4712
|
}), l = J(
|
|
4713
4713
|
c,
|
|
4714
4714
|
(u) => {
|
|
@@ -4722,12 +4722,12 @@ function ol(e, t, n = {}) {
|
|
|
4722
4722
|
), p = () => {
|
|
4723
4723
|
i(), l();
|
|
4724
4724
|
};
|
|
4725
|
-
return
|
|
4725
|
+
return vt(p), {
|
|
4726
4726
|
isSupported: a,
|
|
4727
4727
|
stop: p
|
|
4728
4728
|
};
|
|
4729
4729
|
}
|
|
4730
|
-
function
|
|
4730
|
+
function Wr(e, t = {}) {
|
|
4731
4731
|
const {
|
|
4732
4732
|
reset: n = !0,
|
|
4733
4733
|
windowResize: o = !0,
|
|
@@ -4736,7 +4736,7 @@ function rl(e, t = {}) {
|
|
|
4736
4736
|
updateTiming: a = "sync"
|
|
4737
4737
|
} = t, i = C(0), c = C(0), l = C(0), p = C(0), u = C(0), d = C(0), f = C(0), h = C(0);
|
|
4738
4738
|
function y() {
|
|
4739
|
-
const _ =
|
|
4739
|
+
const _ = Qe(e);
|
|
4740
4740
|
if (!_) {
|
|
4741
4741
|
n && (i.value = 0, c.value = 0, l.value = 0, p.value = 0, u.value = 0, d.value = 0, f.value = 0, h.value = 0);
|
|
4742
4742
|
return;
|
|
@@ -4747,9 +4747,9 @@ function rl(e, t = {}) {
|
|
|
4747
4747
|
function k() {
|
|
4748
4748
|
a === "sync" ? y() : a === "next-frame" && requestAnimationFrame(() => y());
|
|
4749
4749
|
}
|
|
4750
|
-
return
|
|
4750
|
+
return rl(e, k), J(() => Qe(e), (_) => !_ && k()), Br(e, k, {
|
|
4751
4751
|
attributeFilter: ["style", "class"]
|
|
4752
|
-
}), r && Vo("scroll", k, { capture: !0, passive: !0 }), o && Vo("resize", k, { passive: !0 }),
|
|
4752
|
+
}), r && Vo("scroll", k, { capture: !0, passive: !0 }), o && Vo("resize", k, { passive: !0 }), nl(() => {
|
|
4753
4753
|
s && k();
|
|
4754
4754
|
}), {
|
|
4755
4755
|
height: i,
|
|
@@ -4777,7 +4777,14 @@ const sl = (e) => {
|
|
|
4777
4777
|
pinned: { type: Boolean }
|
|
4778
4778
|
},
|
|
4779
4779
|
setup(e) {
|
|
4780
|
-
const t =
|
|
4780
|
+
const t = ht("cell"), { width: n, height: o } = Wr(t), r = e.store.getCellData(e.colIndex, e.rowIndex), s = C(e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), a = C(""), i = C(!1), c = e.store.columns[e.colIndex], l = e.store.rows[e.rowIndex], p = c.align || "center", u = c.width || "40ch";
|
|
4781
|
+
J(
|
|
4782
|
+
() => e.store.getCellData(e.colIndex, e.rowIndex),
|
|
4783
|
+
(_) => {
|
|
4784
|
+
s.value = e.store.getFormattedValue(e.colIndex, e.rowIndex, _);
|
|
4785
|
+
}
|
|
4786
|
+
);
|
|
4787
|
+
const d = B(() => typeof s.value == "string" ? sl(s.value) : !1), f = B(() => {
|
|
4781
4788
|
var _;
|
|
4782
4789
|
return {
|
|
4783
4790
|
textAlign: p,
|
|
@@ -4788,7 +4795,7 @@ const sl = (e) => {
|
|
|
4788
4795
|
};
|
|
4789
4796
|
}), h = () => {
|
|
4790
4797
|
c.mask, c.modalComponent && e.store.$patch((_) => {
|
|
4791
|
-
_.modal.visible = !0, _.modal.colIndex = e.colIndex, _.modal.rowIndex = e.rowIndex, _.modal.parent = t.value, _.modal.top =
|
|
4798
|
+
_.modal.visible = !0, _.modal.colIndex = e.colIndex, _.modal.rowIndex = e.rowIndex, _.modal.parent = t.value, _.modal.top = t.value.offsetTop + t.value.offsetHeight, _.modal.left = t.value.offsetLeft, _.modal.width = n.value, _.modal.height = o.value, typeof c.modalComponent == "function" ? _.modal.component = c.modalComponent({ table: _.table, row: l, column: c }) : _.modal.component = c.modalComponent, _.modal.componentProps = c.modalComponentExtraProps;
|
|
4792
4799
|
});
|
|
4793
4800
|
};
|
|
4794
4801
|
if (e.addNavigation) {
|
|
@@ -4833,11 +4840,11 @@ const sl = (e) => {
|
|
|
4833
4840
|
}, [
|
|
4834
4841
|
S(c).cellComponent ? (A(), Ie(yn(S(c).cellComponent), wn({
|
|
4835
4842
|
key: 0,
|
|
4836
|
-
value:
|
|
4843
|
+
value: s.value
|
|
4837
4844
|
}, S(c).cellComponentProps), null, 16, ["value"])) : d.value ? (A(), M("span", {
|
|
4838
4845
|
key: 1,
|
|
4839
|
-
innerHTML:
|
|
4840
|
-
}, null, 8, il)) : (A(), M("span", cl, ve(
|
|
4846
|
+
innerHTML: s.value
|
|
4847
|
+
}, null, 8, il)) : (A(), M("span", cl, ve(s.value), 1))
|
|
4841
4848
|
], 46, al));
|
|
4842
4849
|
}
|
|
4843
4850
|
}), ul = ["tabindex"], dl = /* @__PURE__ */ ae({
|
|
@@ -4849,7 +4856,7 @@ const sl = (e) => {
|
|
|
4849
4856
|
addNavigation: { type: [Boolean, Object], default: !1 }
|
|
4850
4857
|
},
|
|
4851
4858
|
setup(e) {
|
|
4852
|
-
const t =
|
|
4859
|
+
const t = ht("rowEl"), n = e.store.isRowVisible(e.rowIndex), o = e.store.getRowExpandSymbol(e.rowIndex);
|
|
4853
4860
|
if (e.addNavigation) {
|
|
4854
4861
|
let r = Bn;
|
|
4855
4862
|
typeof e.addNavigation == "object" && (r = {
|
|
@@ -4884,15 +4891,15 @@ const sl = (e) => {
|
|
|
4884
4891
|
[gn, S(n)]
|
|
4885
4892
|
]);
|
|
4886
4893
|
}
|
|
4887
|
-
}),
|
|
4894
|
+
}), Ur = Wn ? window : void 0;
|
|
4888
4895
|
function st(e) {
|
|
4889
4896
|
var t;
|
|
4890
4897
|
const n = se(e);
|
|
4891
4898
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
4892
4899
|
}
|
|
4893
|
-
function
|
|
4900
|
+
function Ct(...e) {
|
|
4894
4901
|
let t, n, o, r;
|
|
4895
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t =
|
|
4902
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = Ur) : [t, n, o, r] = e, !t)
|
|
4896
4903
|
return ze;
|
|
4897
4904
|
Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
|
|
4898
4905
|
const s = [], a = () => {
|
|
@@ -4911,11 +4918,11 @@ function St(...e) {
|
|
|
4911
4918
|
), l = () => {
|
|
4912
4919
|
c(), a();
|
|
4913
4920
|
};
|
|
4914
|
-
return
|
|
4921
|
+
return vt(l), l;
|
|
4915
4922
|
}
|
|
4916
4923
|
let Ao = !1;
|
|
4917
4924
|
function To(e, t, n = {}) {
|
|
4918
|
-
const { window: o =
|
|
4925
|
+
const { window: o = Ur, ignore: r = [], capture: s = !0, detectIframe: a = !1 } = n;
|
|
4919
4926
|
if (!o)
|
|
4920
4927
|
return ze;
|
|
4921
4928
|
vn && !Ao && (Ao = !0, Array.from(o.document.body.children).forEach((h) => h.addEventListener("click", ze)), o.document.documentElement.addEventListener("click", ze));
|
|
@@ -4948,16 +4955,16 @@ function To(e, t, n = {}) {
|
|
|
4948
4955
|
};
|
|
4949
4956
|
let d = !1;
|
|
4950
4957
|
const f = [
|
|
4951
|
-
|
|
4958
|
+
Ct(o, "click", (h) => {
|
|
4952
4959
|
d || (d = !0, setTimeout(() => {
|
|
4953
4960
|
d = !1;
|
|
4954
4961
|
}, 0), u(h));
|
|
4955
4962
|
}, { passive: !0, capture: s }),
|
|
4956
|
-
|
|
4963
|
+
Ct(o, "pointerdown", (h) => {
|
|
4957
4964
|
const y = st(e);
|
|
4958
4965
|
i = !c(h) && !!(y && !h.composedPath().includes(y));
|
|
4959
4966
|
}, { passive: !0 }),
|
|
4960
|
-
a &&
|
|
4967
|
+
a && Ct(o, "blur", (h) => {
|
|
4961
4968
|
setTimeout(() => {
|
|
4962
4969
|
var y;
|
|
4963
4970
|
const k = st(e);
|
|
@@ -4984,24 +4991,24 @@ const pl = {
|
|
|
4984
4991
|
function tn(e) {
|
|
4985
4992
|
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
4986
4993
|
}
|
|
4987
|
-
function
|
|
4994
|
+
function Hr(e) {
|
|
4988
4995
|
const t = window.getComputedStyle(e);
|
|
4989
4996
|
if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientWidth < e.scrollWidth || t.overflowY === "auto" && e.clientHeight < e.scrollHeight)
|
|
4990
4997
|
return !0;
|
|
4991
4998
|
{
|
|
4992
4999
|
const n = e.parentNode;
|
|
4993
|
-
return !n || n.tagName === "BODY" ? !1 :
|
|
5000
|
+
return !n || n.tagName === "BODY" ? !1 : Hr(n);
|
|
4994
5001
|
}
|
|
4995
5002
|
}
|
|
4996
5003
|
function fl(e) {
|
|
4997
5004
|
const t = e || window.event, n = t.target;
|
|
4998
|
-
return
|
|
5005
|
+
return Hr(n) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
|
|
4999
5006
|
}
|
|
5000
5007
|
const nn = /* @__PURE__ */ new WeakMap();
|
|
5001
5008
|
function hl(e, t = !1) {
|
|
5002
5009
|
const n = C(t);
|
|
5003
5010
|
let o = null, r = "";
|
|
5004
|
-
J(
|
|
5011
|
+
J(tl(e), (i) => {
|
|
5005
5012
|
const c = tn(se(i));
|
|
5006
5013
|
if (c) {
|
|
5007
5014
|
const l = c;
|
|
@@ -5015,7 +5022,7 @@ function hl(e, t = !1) {
|
|
|
5015
5022
|
});
|
|
5016
5023
|
const s = () => {
|
|
5017
5024
|
const i = tn(se(e));
|
|
5018
|
-
!i || n.value || (vn && (o =
|
|
5025
|
+
!i || n.value || (vn && (o = Ct(
|
|
5019
5026
|
i,
|
|
5020
5027
|
"touchmove",
|
|
5021
5028
|
(c) => {
|
|
@@ -5027,7 +5034,7 @@ function hl(e, t = !1) {
|
|
|
5027
5034
|
const i = tn(se(e));
|
|
5028
5035
|
!i || !n.value || (vn && (o == null || o()), i.style.overflow = r, nn.delete(i), n.value = !1);
|
|
5029
5036
|
};
|
|
5030
|
-
return
|
|
5037
|
+
return vt(a), B({
|
|
5031
5038
|
get() {
|
|
5032
5039
|
return n.value;
|
|
5033
5040
|
},
|
|
@@ -5090,24 +5097,34 @@ const vl = {
|
|
|
5090
5097
|
props: {
|
|
5091
5098
|
colIndex: {},
|
|
5092
5099
|
rowIndex: {},
|
|
5093
|
-
store: {}
|
|
5100
|
+
store: {},
|
|
5101
|
+
container: {}
|
|
5094
5102
|
},
|
|
5095
5103
|
setup(e) {
|
|
5096
|
-
const t = (n) => {
|
|
5097
|
-
|
|
5104
|
+
const t = ht("amodal"), { width: n, height: o } = Wr(t), r = B(() => {
|
|
5105
|
+
var a, i;
|
|
5106
|
+
const c = ((a = e.container) == null ? void 0 : a.offsetWidth) || 0, l = ((i = e.container) == null ? void 0 : i.offsetHeight) || 0, p = e.store.modal.left + n.value > c ? e.store.modal.left - (n.value - e.store.modal.width) : e.store.modal.left, u = e.store.modal.top + o.value > l ? e.store.modal.top - o.value - e.store.modal.height : e.store.modal.top;
|
|
5107
|
+
return {
|
|
5108
|
+
left: `${p}px`,
|
|
5109
|
+
top: `${u}px`
|
|
5110
|
+
};
|
|
5111
|
+
}), s = (a) => {
|
|
5112
|
+
a.stopPropagation();
|
|
5098
5113
|
};
|
|
5099
|
-
return (
|
|
5114
|
+
return (a, i) => (A(), M("div", {
|
|
5100
5115
|
class: "amodal",
|
|
5116
|
+
ref: "amodal",
|
|
5101
5117
|
tabindex: "-1",
|
|
5102
|
-
onClick:
|
|
5103
|
-
onInput:
|
|
5118
|
+
onClick: s,
|
|
5119
|
+
onInput: s,
|
|
5120
|
+
style: le(r.value)
|
|
5104
5121
|
}, [
|
|
5105
|
-
ke(
|
|
5106
|
-
],
|
|
5122
|
+
ke(a.$slots, "default")
|
|
5123
|
+
], 36));
|
|
5107
5124
|
}
|
|
5108
5125
|
}), bl = (e) => {
|
|
5109
5126
|
const t = e.id || crypto.randomUUID();
|
|
5110
|
-
return (/* @__PURE__ */
|
|
5127
|
+
return (/* @__PURE__ */ Ac(`table-${t}`, () => {
|
|
5111
5128
|
const n = () => {
|
|
5112
5129
|
const N = {};
|
|
5113
5130
|
for (const [P, g] of r.value.entries())
|
|
@@ -5148,8 +5165,8 @@ const vl = {
|
|
|
5148
5165
|
} else a.value.view === "list-expansion" && (c.value[N].expanded = !c.value[N].expanded);
|
|
5149
5166
|
}, T = (N, P) => {
|
|
5150
5167
|
const g = f(N, P);
|
|
5151
|
-
return
|
|
5152
|
-
},
|
|
5168
|
+
return H(N, P, g);
|
|
5169
|
+
}, H = (N, P, g) => {
|
|
5153
5170
|
const W = r.value[N], b = s.value[P], m = W.format;
|
|
5154
5171
|
return m ? typeof m == "function" ? m(g, { table: i.value, row: b, column: W }) : typeof m == "string" ? Function(`"use strict";return (${m})`)()(g, { table: i.value, row: b, column: W }) : g : g;
|
|
5155
5172
|
};
|
|
@@ -5172,7 +5189,7 @@ const vl = {
|
|
|
5172
5189
|
},
|
|
5173
5190
|
getCellData: f,
|
|
5174
5191
|
getCellDisplayValue: T,
|
|
5175
|
-
getFormattedValue:
|
|
5192
|
+
getFormattedValue: H,
|
|
5176
5193
|
getHeaderCellStyle: y,
|
|
5177
5194
|
getIndent: (N, P) => P && N === 0 && P > 0 ? `${P}ch` : "inherit",
|
|
5178
5195
|
getRowExpandSymbol: _,
|
|
@@ -5192,7 +5209,7 @@ const vl = {
|
|
|
5192
5209
|
},
|
|
5193
5210
|
emits: ["update:modelValue", "cellUpdate"],
|
|
5194
5211
|
setup(e, { expose: t, emit: n }) {
|
|
5195
|
-
const o = n, r =
|
|
5212
|
+
const o = n, r = ht("table"), s = e.modelValue ? e.modelValue : e.rows, a = bl({ columns: e.columns, rows: s, id: e.id, config: e.config });
|
|
5196
5213
|
a.$onAction(({ name: c, store: l, args: p }) => {
|
|
5197
5214
|
if (c === "setCellData") {
|
|
5198
5215
|
const [u, d, f] = p, h = l.getCellData(u, d);
|
|
@@ -5204,7 +5221,7 @@ const vl = {
|
|
|
5204
5221
|
o("update:modelValue", c);
|
|
5205
5222
|
},
|
|
5206
5223
|
{ deep: !0 }
|
|
5207
|
-
),
|
|
5224
|
+
), Ke(() => {
|
|
5208
5225
|
e.columns.some((c) => c.pinned) && (i(), a.config.view === "tree" && Br(r, i, { childList: !0, subtree: !0 }));
|
|
5209
5226
|
});
|
|
5210
5227
|
const i = () => {
|
|
@@ -5235,7 +5252,7 @@ const vl = {
|
|
|
5235
5252
|
style: le({ width: S(a).config.fullWidth ? "100%" : "auto" })
|
|
5236
5253
|
}, [
|
|
5237
5254
|
ke(c.$slots, "header", { data: S(a) }, () => [
|
|
5238
|
-
|
|
5255
|
+
It(yl, {
|
|
5239
5256
|
columns: S(a).columns,
|
|
5240
5257
|
store: S(a)
|
|
5241
5258
|
}, null, 8, ["columns", "store"])
|
|
@@ -5248,7 +5265,7 @@ const vl = {
|
|
|
5248
5265
|
rowIndex: u,
|
|
5249
5266
|
store: S(a)
|
|
5250
5267
|
}, {
|
|
5251
|
-
default:
|
|
5268
|
+
default: Dt(() => [
|
|
5252
5269
|
(A(!0), M(Ae, null, Te(S(a).columns, (d, f) => (A(), Ie(ll, {
|
|
5253
5270
|
key: d.name,
|
|
5254
5271
|
store: S(a),
|
|
@@ -5271,17 +5288,13 @@ const vl = {
|
|
|
5271
5288
|
]),
|
|
5272
5289
|
ke(c.$slots, "footer", { data: S(a) }, void 0, !0),
|
|
5273
5290
|
ke(c.$slots, "modal", { data: S(a) }, () => [
|
|
5274
|
-
lt(
|
|
5291
|
+
lt(It(wl, {
|
|
5275
5292
|
colIndex: S(a).modal.colIndex,
|
|
5276
5293
|
rowIndex: S(a).modal.rowIndex,
|
|
5277
5294
|
store: S(a),
|
|
5278
|
-
|
|
5279
|
-
left: S(a).modal.left + "px",
|
|
5280
|
-
top: S(a).modal.top + "px",
|
|
5281
|
-
maxWidth: S(a).modal.width + "px"
|
|
5282
|
-
})
|
|
5295
|
+
container: S(r)
|
|
5283
5296
|
}, {
|
|
5284
|
-
default:
|
|
5297
|
+
default: Dt(() => [
|
|
5285
5298
|
(A(), Ie(yn(S(a).modal.component), wn({
|
|
5286
5299
|
key: `${S(a).modal.rowIndex}:${S(a).modal.colIndex}`,
|
|
5287
5300
|
colIndex: S(a).modal.colIndex,
|
|
@@ -5290,7 +5303,7 @@ const vl = {
|
|
|
5290
5303
|
}, S(a).modal.componentProps), null, 16, ["colIndex", "rowIndex", "store"]))
|
|
5291
5304
|
]),
|
|
5292
5305
|
_: 1
|
|
5293
|
-
}, 8, ["colIndex", "rowIndex", "store", "
|
|
5306
|
+
}, 8, ["colIndex", "rowIndex", "store", "container"]), [
|
|
5294
5307
|
[gn, S(a).modal.visible]
|
|
5295
5308
|
])
|
|
5296
5309
|
], !0)
|
|
@@ -5303,7 +5316,7 @@ const vl = {
|
|
|
5303
5316
|
for (const [o, r] of t)
|
|
5304
5317
|
n[o] = r;
|
|
5305
5318
|
return n;
|
|
5306
|
-
}, kl = /* @__PURE__ */ El(_l, [["__scopeId", "data-v-
|
|
5319
|
+
}, kl = /* @__PURE__ */ El(_l, [["__scopeId", "data-v-7a1c014a"]]), $l = /* @__PURE__ */ ae({
|
|
5307
5320
|
__name: "Records",
|
|
5308
5321
|
setup(e) {
|
|
5309
5322
|
const { stonecrop: t, isReady: n } = Zo(), o = { view: "list" };
|
|
@@ -5324,13 +5337,13 @@ const vl = {
|
|
|
5324
5337
|
viewBox: "0 0 424.098 424.098",
|
|
5325
5338
|
style: { "enable-background": "new 0 0 424.098 424.098" },
|
|
5326
5339
|
"xml:space": "preserve"
|
|
5327
|
-
}, Sl = { tabindex: "0" },
|
|
5340
|
+
}, Sl = { tabindex: "0" }, Cl = { style: { width: "11pt" } }, Pl = /* @__PURE__ */ ae({
|
|
5328
5341
|
__name: "SheetNav",
|
|
5329
5342
|
props: {
|
|
5330
5343
|
breadcrumbs: { default: () => [] }
|
|
5331
5344
|
},
|
|
5332
5345
|
setup(e) {
|
|
5333
|
-
const t = C(!0), n = C(!1), o = C(""), r =
|
|
5346
|
+
const t = C(!0), n = C(!1), o = C(""), r = ht("searchinput"), s = B(() => t.value ? "unrotated" : "rotated"), a = () => {
|
|
5334
5347
|
t.value = !t.value;
|
|
5335
5348
|
}, i = async () => {
|
|
5336
5349
|
n.value = !n.value, await xe(() => {
|
|
@@ -5343,13 +5356,13 @@ const vl = {
|
|
|
5343
5356
|
}, p = () => {
|
|
5344
5357
|
};
|
|
5345
5358
|
return (u, d) => {
|
|
5346
|
-
const f =
|
|
5359
|
+
const f = Xr("router-link");
|
|
5347
5360
|
return A(), M("footer", null, [
|
|
5348
5361
|
U("ul", Nl, [
|
|
5349
5362
|
U("li", {
|
|
5350
5363
|
class: "hidebreadcrumbs",
|
|
5351
5364
|
onClick: a,
|
|
5352
|
-
onKeydown:
|
|
5365
|
+
onKeydown: yt(a, ["enter"])
|
|
5353
5366
|
}, [
|
|
5354
5367
|
U("a", Ol, [
|
|
5355
5368
|
U("div", {
|
|
@@ -5360,14 +5373,14 @@ const vl = {
|
|
|
5360
5373
|
U("li", {
|
|
5361
5374
|
class: "hometab",
|
|
5362
5375
|
onClick: p,
|
|
5363
|
-
onKeydown:
|
|
5376
|
+
onKeydown: yt(p, ["enter"]),
|
|
5364
5377
|
style: le({ display: t.value ? "block" : "none" })
|
|
5365
5378
|
}, [
|
|
5366
|
-
|
|
5379
|
+
It(f, {
|
|
5367
5380
|
to: "/home",
|
|
5368
5381
|
tabindex: "0"
|
|
5369
5382
|
}, {
|
|
5370
|
-
default:
|
|
5383
|
+
default: Dt(() => [
|
|
5371
5384
|
(A(), M("svg", xl, d[5] || (d[5] = [
|
|
5372
5385
|
U("g", null, [
|
|
5373
5386
|
U("path", {
|
|
@@ -5391,14 +5404,14 @@ const vl = {
|
|
|
5391
5404
|
U("li", {
|
|
5392
5405
|
class: "searchtab",
|
|
5393
5406
|
onClick: i,
|
|
5394
|
-
onKeydown:
|
|
5407
|
+
onKeydown: yt(i, ["enter"]),
|
|
5395
5408
|
style: le({ display: t.value ? "block" : "none" })
|
|
5396
5409
|
}, [
|
|
5397
5410
|
U("a", Sl, [
|
|
5398
5411
|
U("span", {
|
|
5399
5412
|
style: le({ display: n.value ? "none" : "block" })
|
|
5400
5413
|
}, [
|
|
5401
|
-
(A(), M("svg",
|
|
5414
|
+
(A(), M("svg", Cl, d[6] || (d[6] = [
|
|
5402
5415
|
U("g", { transform: "matrix(-0.08088215,0,0,0.08088215,9.8016177,3.1263021e-6)" }, [
|
|
5403
5416
|
U("path", {
|
|
5404
5417
|
d: "M 93.148438,80.832031 C 109.5,57.742188 104.03125,25.769531 80.941406,9.421875 57.851562,-6.925781 25.878906,-1.460938 9.53125,21.632812 -6.816406,44.722656 -1.351562,76.691406 21.742188,93.039062 38.222656,104.70703 60.011719,105.60547 77.394531,95.339844 l 37.769529,37.542966 c 4.07813,4.29297 10.86328,4.46485 15.15625,0.38672 4.29297,-4.07422 4.46485,-10.85937 0.39063,-15.15234 -0.12891,-0.13672 -0.25391,-0.26172 -0.39063,-0.39063 z m -41.839844,3.5 C 33.0625,84.335938 18.269531,69.554688 18.257812,51.308594 18.253906,33.0625 33.035156,18.269531 51.285156,18.261719 c 18.222656,-0.0078 33.007813,14.75 33.042969,32.972656 0.03125,18.25 -14.742187,33.066406 -32.996094,33.097656 -0.0078,0 -0.01172,0 -0.02344,0 z m 0,0",
|
|
@@ -5415,10 +5428,10 @@ const vl = {
|
|
|
5415
5428
|
onClick: d[1] || (d[1] = (h) => c(h)),
|
|
5416
5429
|
onInput: d[2] || (d[2] = (h) => c(h)),
|
|
5417
5430
|
onBlur: d[3] || (d[3] = (h) => l(h)),
|
|
5418
|
-
onKeydown: d[4] || (d[4] =
|
|
5431
|
+
onKeydown: d[4] || (d[4] = yt((h) => l(h), ["enter"])),
|
|
5419
5432
|
type: "text"
|
|
5420
5433
|
}, null, 36), [
|
|
5421
|
-
[
|
|
5434
|
+
[Zr, o.value]
|
|
5422
5435
|
])
|
|
5423
5436
|
])
|
|
5424
5437
|
], 36),
|
|
@@ -5426,11 +5439,11 @@ const vl = {
|
|
|
5426
5439
|
key: h.title,
|
|
5427
5440
|
style: le({ display: t.value ? "block" : "none" })
|
|
5428
5441
|
}, [
|
|
5429
|
-
|
|
5442
|
+
It(f, {
|
|
5430
5443
|
tabindex: "0",
|
|
5431
5444
|
to: h.to
|
|
5432
5445
|
}, {
|
|
5433
|
-
default:
|
|
5446
|
+
default: Dt(() => [
|
|
5434
5447
|
Lo(ve(h.title), 1)
|
|
5435
5448
|
]),
|
|
5436
5449
|
_: 2
|
|
@@ -5440,15 +5453,15 @@ const vl = {
|
|
|
5440
5453
|
]);
|
|
5441
5454
|
};
|
|
5442
5455
|
}
|
|
5443
|
-
}), Il = /* @__PURE__ */ En(
|
|
5456
|
+
}), Il = /* @__PURE__ */ En(Pl, [["__scopeId", "data-v-a650f215"]]), Al = {
|
|
5444
5457
|
install: (e) => {
|
|
5445
|
-
e.component("ActionSet",
|
|
5458
|
+
e.component("ActionSet", us), e.component("CommandPalette", fs), e.component("Doctype", Sc), e.component("Records", $l), e.component("SheetNav", Il);
|
|
5446
5459
|
}
|
|
5447
5460
|
};
|
|
5448
5461
|
export {
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5462
|
+
us as ActionSet,
|
|
5463
|
+
fs as CommandPalette,
|
|
5464
|
+
Sc as Doctype,
|
|
5452
5465
|
$l as Records,
|
|
5453
5466
|
Il as SheetNav,
|
|
5454
5467
|
Al as StonecropDesktop
|