@stonecrop/desktop 0.11.8 → 0.11.9
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.css +1 -1
- package/dist/desktop.js +284 -284
- package/dist/desktop.js.map +1 -1
- package/package.json +5 -5
package/dist/desktop.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header" }, Pi = ["disabled", "onClick"], qi = { key: 0 }, Vi = { class: "dropdown-header" }, Li = ["onClick"], Ui = ["onClick"], Fi = { class: "dropdown-container" }, Wi = { class: "dropdown" }, Bi = ["onClick"], Ki = ["href"], Hi = { class: "dropdown-item" }, Ji = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as Le, ref as C, onMounted as yr, openBlock as M, createElementBlock as U, normalizeClass as te, createElementVNode as $, Fragment as ne, renderList as Ne, toDisplayString as At, createCommentVNode as ee, withDirectives as sr, vShow as Br, useTemplateRef as So, computed as N, watch as ot, nextTick as oe, createBlock as ar, Teleport as zi, createVNode as re, Transition as Ri, withCtx as je, withModifiers as Io, vModelText as Eo, renderSlot as zr, createTextVNode as ur, toRaw as Oo, isRef as ie, isReactive as _r, toRef as Bt, hasInjectionContext as Kr, inject as xe, getCurrentInstance as ko, reactive as Do, markRaw as Ie, effectScope as Ci, getCurrentScope as un, onScopeDispose as cn, toRefs as Vn, provide as Hr, shallowRef as Ue, toValue as St, readonly as gr, customRef as ln, unref as or, useModel as Ni, watchEffect as ji, resolveDynamicComponent as Ln, mergeProps as xi, mergeModels as Un, resolveComponent as $i, withKeys as be, normalizeStyle as Rr } from "vue";
|
|
2
|
+
const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header" }, Pi = ["disabled", "onClick"], qi = { key: 0 }, Vi = { class: "dropdown-header" }, Li = ["onClick"], Ui = ["onClick"], Fi = { class: "dropdown-container" }, Wi = { class: "dropdown" }, Bi = ["onClick"], Ki = ["href"], Hi = { class: "dropdown-item" }, Ji = /* @__PURE__ */ Le({
|
|
3
3
|
__name: "ActionSet",
|
|
4
4
|
props: {
|
|
5
5
|
elements: { default: () => [] }
|
|
@@ -31,7 +31,7 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
31
31
|
}, "×", 2)
|
|
32
32
|
]),
|
|
33
33
|
f[0] || (f[0] = $("div", { style: { "margin-right": "30px" } }, null, -1)),
|
|
34
|
-
(M(!0), U(ne, null,
|
|
34
|
+
(M(!0), U(ne, null, Ne(t.elements, (h, d) => (M(), U("div", {
|
|
35
35
|
key: h.label,
|
|
36
36
|
class: "action-element"
|
|
37
37
|
}, [
|
|
@@ -56,7 +56,7 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
56
56
|
]),
|
|
57
57
|
sr($("div", Fi, [
|
|
58
58
|
$("div", Wi, [
|
|
59
|
-
(M(!0), U(ne, null,
|
|
59
|
+
(M(!0), U(ne, null, Ne(h.actions, (y) => (M(), U("div", {
|
|
60
60
|
key: y.label
|
|
61
61
|
}, [
|
|
62
62
|
y.action != null ? (M(), U("button", {
|
|
@@ -89,7 +89,7 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
89
89
|
}, Xi = ["onClick", "onMouseover"], Zi = { class: "result-title" }, ts = { class: "result-content" }, es = {
|
|
90
90
|
key: 1,
|
|
91
91
|
class: "command-palette-no-results"
|
|
92
|
-
}, Ro = /* @__PURE__ */
|
|
92
|
+
}, Ro = /* @__PURE__ */ Le({
|
|
93
93
|
__name: "CommandPalette",
|
|
94
94
|
props: {
|
|
95
95
|
search: { type: Function },
|
|
@@ -130,7 +130,7 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
130
130
|
};
|
|
131
131
|
return (l, f) => (M(), ar(zi, { to: "body" }, [
|
|
132
132
|
re(Ri, { name: "fade" }, {
|
|
133
|
-
default:
|
|
133
|
+
default: je(() => [
|
|
134
134
|
t.isOpen ? (M(), U("div", {
|
|
135
135
|
key: 0,
|
|
136
136
|
class: "command-palette-overlay",
|
|
@@ -155,7 +155,7 @@ const Mi = { class: "action-menu-icon" }, Ti = { class: "action-element-header"
|
|
|
155
155
|
])
|
|
156
156
|
]),
|
|
157
157
|
s.value.length ? (M(), U("div", Yi, [
|
|
158
|
-
(M(!0), U(ne, null,
|
|
158
|
+
(M(!0), U(ne, null, Ne(s.value, (h, d) => (M(), U("div", {
|
|
159
159
|
key: d,
|
|
160
160
|
class: te(["command-palette-result", { selected: d === o.value }]),
|
|
161
161
|
onClick: (y) => c(h),
|
|
@@ -459,7 +459,7 @@ function is(t, e, r) {
|
|
|
459
459
|
const u = Kr();
|
|
460
460
|
if (s = // in test mode, ignore the argument provided as we can always retrieve a
|
|
461
461
|
// pinia instance with getActivePinia()
|
|
462
|
-
(process.env.NODE_ENV === "test" && Wt && Wt._testing ? null : s) || (u ?
|
|
462
|
+
(process.env.NODE_ENV === "test" && Wt && Wt._testing ? null : s) || (u ? xe(Jr, null) : null), s && cr(s), process.env.NODE_ENV !== "production" && !Wt)
|
|
463
463
|
throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
|
|
464
464
|
See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
|
|
465
465
|
This will fail in production.`);
|
|
@@ -586,7 +586,7 @@ function Hn(...t) {
|
|
|
586
586
|
return [
|
|
587
587
|
(n = (o = r.value) === null || o === void 0 ? void 0 : o.map((i) => ms(i))) !== null && n !== void 0 ? n : [lr].filter((i) => i != null),
|
|
588
588
|
Nr(St(r.value ? t[1] : t[0])),
|
|
589
|
-
Nr(
|
|
589
|
+
Nr(or(r.value ? t[2] : t[1])),
|
|
590
590
|
St(r.value ? t[3] : t[2])
|
|
591
591
|
];
|
|
592
592
|
}, ([n, o, i, s], a, u) => {
|
|
@@ -597,9 +597,9 @@ function Hn(...t) {
|
|
|
597
597
|
});
|
|
598
598
|
}, { flush: "post" });
|
|
599
599
|
}
|
|
600
|
-
const
|
|
600
|
+
const Ye = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Xe = "__vueuse_ssr_handlers__", ws = /* @__PURE__ */ bs();
|
|
601
601
|
function bs() {
|
|
602
|
-
return
|
|
602
|
+
return Xe in Ye || (Ye[Xe] = Ye[Xe] || {}), Ye[Xe];
|
|
603
603
|
}
|
|
604
604
|
function Ss(t, e) {
|
|
605
605
|
return ws[t] || e;
|
|
@@ -645,7 +645,7 @@ function Os(t, e, r, n = {}) {
|
|
|
645
645
|
var o;
|
|
646
646
|
const { flush: i = "pre", deep: s = !0, listenToStorageChanges: a = !0, writeDefaults: u = !0, mergeDefaults: c = !1, shallow: l, window: f = lr, eventFilter: h, onError: d = (k) => {
|
|
647
647
|
console.error(k);
|
|
648
|
-
}, initOnMounted: y } = n, m = (l ?
|
|
648
|
+
}, initOnMounted: y } = n, m = (l ? Ue : C)(e), A = N(() => St(t));
|
|
649
649
|
if (!r) try {
|
|
650
650
|
r = Ss("getDefaultStorage", () => lr?.localStorage)();
|
|
651
651
|
} catch (k) {
|
|
@@ -734,7 +734,7 @@ function ks(t, e, r = {}) {
|
|
|
734
734
|
function jr() {
|
|
735
735
|
return typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `${Date.now()}-${Math.random().toString(36).substring(2, 9)}`;
|
|
736
736
|
}
|
|
737
|
-
function
|
|
737
|
+
function Ze(t) {
|
|
738
738
|
const e = {
|
|
739
739
|
type: t.type,
|
|
740
740
|
clientId: t.clientId,
|
|
@@ -936,7 +936,7 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
|
|
|
936
936
|
clientId: n.value,
|
|
937
937
|
timestamp: /* @__PURE__ */ new Date()
|
|
938
938
|
};
|
|
939
|
-
q.postMessage(
|
|
939
|
+
q.postMessage(Ze(I));
|
|
940
940
|
}
|
|
941
941
|
function z(_, I) {
|
|
942
942
|
if (!q) return;
|
|
@@ -946,7 +946,7 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
|
|
|
946
946
|
clientId: n.value,
|
|
947
947
|
timestamp: /* @__PURE__ */ new Date()
|
|
948
948
|
};
|
|
949
|
-
q.postMessage(
|
|
949
|
+
q.postMessage(Ze(E));
|
|
950
950
|
}
|
|
951
951
|
function J(_) {
|
|
952
952
|
if (!q) return;
|
|
@@ -956,7 +956,7 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
|
|
|
956
956
|
clientId: n.value,
|
|
957
957
|
timestamp: /* @__PURE__ */ new Date()
|
|
958
958
|
};
|
|
959
|
-
q.postMessage(
|
|
959
|
+
q.postMessage(Ze(I));
|
|
960
960
|
}
|
|
961
961
|
function k(_) {
|
|
962
962
|
if (!q) return;
|
|
@@ -966,7 +966,7 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
|
|
|
966
966
|
clientId: n.value,
|
|
967
967
|
timestamp: /* @__PURE__ */ new Date()
|
|
968
968
|
};
|
|
969
|
-
q.postMessage(
|
|
969
|
+
q.postMessage(Ze(I));
|
|
970
970
|
}
|
|
971
971
|
const P = ks("stonecrop-operations", null, {
|
|
972
972
|
serializer: {
|
|
@@ -1042,7 +1042,7 @@ const xo = /* @__PURE__ */ is("hst-operation-log", () => {
|
|
|
1042
1042
|
logAction: jt
|
|
1043
1043
|
};
|
|
1044
1044
|
});
|
|
1045
|
-
|
|
1045
|
+
class Ae {
|
|
1046
1046
|
/**
|
|
1047
1047
|
* The root FieldTriggerEngine instance
|
|
1048
1048
|
*/
|
|
@@ -1063,9 +1063,9 @@ let As = class or {
|
|
|
1063
1063
|
* @param options - Configuration options for the field trigger engine
|
|
1064
1064
|
*/
|
|
1065
1065
|
constructor(e = {}) {
|
|
1066
|
-
if (
|
|
1067
|
-
return
|
|
1068
|
-
|
|
1066
|
+
if (Ae._root)
|
|
1067
|
+
return Ae._root;
|
|
1068
|
+
Ae._root = this, this.options = {
|
|
1069
1069
|
defaultTimeout: e.defaultTimeout ?? 5e3,
|
|
1070
1070
|
debug: e.debug ?? !1,
|
|
1071
1071
|
enableRollback: e.enableRollback ?? !0,
|
|
@@ -1385,9 +1385,9 @@ let As = class or {
|
|
|
1385
1385
|
throw console.error("[FieldTriggers] Failed to restore snapshot:", n), n;
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
|
-
}
|
|
1388
|
+
}
|
|
1389
1389
|
function Yr(t) {
|
|
1390
|
-
return new
|
|
1390
|
+
return new Ae(t);
|
|
1391
1391
|
}
|
|
1392
1392
|
function Gn() {
|
|
1393
1393
|
try {
|
|
@@ -1677,10 +1677,10 @@ class fr {
|
|
|
1677
1677
|
return e ? e.replace(/\[(\d+)\]/g, ".$1").split(".").filter((r) => r.length > 0) : [];
|
|
1678
1678
|
}
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function As(t, e) {
|
|
1681
1681
|
return new fr(t, e, "", null);
|
|
1682
1682
|
}
|
|
1683
|
-
class
|
|
1683
|
+
class ze {
|
|
1684
1684
|
/**
|
|
1685
1685
|
* Singleton instance of Stonecrop. Only one Stonecrop instance can exist
|
|
1686
1686
|
* per application, ensuring consistent HST state and registry access.
|
|
@@ -1702,9 +1702,9 @@ class Ae {
|
|
|
1702
1702
|
* @param options - Options including the data client (can be set later via setClient)
|
|
1703
1703
|
*/
|
|
1704
1704
|
constructor(e, r, n) {
|
|
1705
|
-
if (
|
|
1706
|
-
return
|
|
1707
|
-
|
|
1705
|
+
if (ze._root)
|
|
1706
|
+
return ze._root;
|
|
1707
|
+
ze._root = this, this.registry = e, this._operationLogConfig = r, this._client = n?.client, this.initializeHSTStore(), this.setupRegistrySync();
|
|
1708
1708
|
}
|
|
1709
1709
|
/**
|
|
1710
1710
|
* Set the data client for fetching doctype metadata and records.
|
|
@@ -1743,7 +1743,7 @@ class Ae {
|
|
|
1743
1743
|
const e = {};
|
|
1744
1744
|
Object.keys(this.registry.registry).forEach((r) => {
|
|
1745
1745
|
e[r] = {};
|
|
1746
|
-
}), this.hstStore =
|
|
1746
|
+
}), this.hstStore = As(Do(e), "StonecropStore");
|
|
1747
1747
|
}
|
|
1748
1748
|
/**
|
|
1749
1749
|
* Setup automatic sync with Registry when doctypes are added
|
|
@@ -2080,9 +2080,9 @@ function Qn(t, e) {
|
|
|
2080
2080
|
const r = new Error(t);
|
|
2081
2081
|
return r.code = e, r;
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function zs(t) {
|
|
2084
2084
|
t || (t = {});
|
|
2085
|
-
const e = t.registry ||
|
|
2085
|
+
const e = t.registry || xe("$registry"), r = xe("$stonecrop"), n = C(), o = C(), i = C({}), s = C(), a = C(), u = C([]), c = C(!1), l = C(null), f = C(), h = N(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? !0 : n.value.isWorkflowReady(f.value, t.recordId).ready), d = N(() => !n.value || !f.value || !t.recordId || t.recordId === "new" ? [] : n.value.isWorkflowReady(f.value, t.recordId).blockedLinks ?? []), y = r || ze._root;
|
|
2086
2086
|
y && (n.value = y), t?.doctype && typeof t.doctype != "string" && (f.value = t.doctype);
|
|
2087
2087
|
const m = C([]), A = C(-1), T = N(() => n.value?.getOperationLogStore().canUndo ?? !1), rt = N(() => n.value?.getOperationLogStore().canRedo ?? !1), lt = N(() => n.value?.getOperationLogStore().undoCount ?? 0), Ot = N(() => n.value?.getOperationLogStore().redoCount ?? 0), X = N(
|
|
2088
2088
|
() => n.value?.getOperationLogStore().undoRedoState ?? {
|
|
@@ -2220,18 +2220,18 @@ function Rs(t) {
|
|
|
2220
2220
|
if (g.length >= 2) {
|
|
2221
2221
|
const Z = g[0], Y = g[1];
|
|
2222
2222
|
if (o.value.has(`${Z}.${Y}`) || n.value.addRecord(w, Y, { ...i.value }), g.length > 3) {
|
|
2223
|
-
const
|
|
2224
|
-
let Ar =
|
|
2225
|
-
for (let
|
|
2226
|
-
if (Ar += `.${Dr[
|
|
2227
|
-
const Di = Dr[
|
|
2223
|
+
const Ge = `${Z}.${Y}`, Dr = g.slice(2);
|
|
2224
|
+
let Ar = Ge;
|
|
2225
|
+
for (let Qe = 0; Qe < Dr.length - 1; Qe++)
|
|
2226
|
+
if (Ar += `.${Dr[Qe]}`, !o.value.has(Ar)) {
|
|
2227
|
+
const Di = Dr[Qe + 1], Ai = !isNaN(Number(Di));
|
|
2228
2228
|
o.value.set(Ar, Ai ? [] : {});
|
|
2229
2229
|
}
|
|
2230
2230
|
}
|
|
2231
2231
|
}
|
|
2232
2232
|
o.value.set(p.path, p.value);
|
|
2233
2233
|
const D = p.fieldname.split("."), R = { ...i.value };
|
|
2234
|
-
D.length === 1 ? R[D[0]] = p.value :
|
|
2234
|
+
D.length === 1 ? R[D[0]] = p.value : Rs(R, D, p.value), i.value = R;
|
|
2235
2235
|
} catch {
|
|
2236
2236
|
}
|
|
2237
2237
|
};
|
|
@@ -2332,7 +2332,7 @@ function xr(t, e, r, n) {
|
|
|
2332
2332
|
{ deep: !0 }
|
|
2333
2333
|
);
|
|
2334
2334
|
}
|
|
2335
|
-
function
|
|
2335
|
+
function Rs(t, e, r) {
|
|
2336
2336
|
let n = t;
|
|
2337
2337
|
for (let i = 0; i < e.length - 1; i++) {
|
|
2338
2338
|
const s = e[i];
|
|
@@ -2424,15 +2424,15 @@ function wr(t) {
|
|
|
2424
2424
|
if (typeof e == "function")
|
|
2425
2425
|
return e;
|
|
2426
2426
|
}
|
|
2427
|
-
function
|
|
2427
|
+
function Cs(t) {
|
|
2428
2428
|
var e = wr(t);
|
|
2429
2429
|
return e && e === t.entries;
|
|
2430
2430
|
}
|
|
2431
|
-
function
|
|
2431
|
+
function Ns(t) {
|
|
2432
2432
|
var e = wr(t);
|
|
2433
2433
|
return e && e === t.keys;
|
|
2434
2434
|
}
|
|
2435
|
-
var
|
|
2435
|
+
var Fe = "delete", L = 5, dt = 1 << L, at = dt - 1, j = {};
|
|
2436
2436
|
function tn() {
|
|
2437
2437
|
return { value: !1 };
|
|
2438
2438
|
}
|
|
@@ -2459,7 +2459,7 @@ function Po() {
|
|
|
2459
2459
|
function br(t, e, r) {
|
|
2460
2460
|
return (t === 0 && !Vo(t) || r !== void 0 && t <= -r) && (e === void 0 || r !== void 0 && e >= r);
|
|
2461
2461
|
}
|
|
2462
|
-
function
|
|
2462
|
+
function We(t, e) {
|
|
2463
2463
|
return qo(t, e, 0);
|
|
2464
2464
|
}
|
|
2465
2465
|
function Sr(t, e) {
|
|
@@ -2506,7 +2506,7 @@ function Fo(t) {
|
|
|
2506
2506
|
}
|
|
2507
2507
|
var ft = /* @__PURE__ */ (function(t) {
|
|
2508
2508
|
function e(r) {
|
|
2509
|
-
return r == null ? vn() : Ct(r) ? r.toSeq() :
|
|
2509
|
+
return r == null ? vn() : Ct(r) ? r.toSeq() : xs(r);
|
|
2510
2510
|
}
|
|
2511
2511
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.prototype.toSeq = function() {
|
|
2512
2512
|
return this;
|
|
@@ -2622,7 +2622,7 @@ var ae = /* @__PURE__ */ (function(t) {
|
|
|
2622
2622
|
}, e;
|
|
2623
2623
|
})(Ut);
|
|
2624
2624
|
dn.prototype[Vt] = !0;
|
|
2625
|
-
var
|
|
2625
|
+
var js = /* @__PURE__ */ (function(t) {
|
|
2626
2626
|
function e(r) {
|
|
2627
2627
|
this._collection = r, this.size = r.length || r.size;
|
|
2628
2628
|
}
|
|
@@ -2668,10 +2668,10 @@ function Wo(t) {
|
|
|
2668
2668
|
"Expected Array or collection object of values: " + t
|
|
2669
2669
|
);
|
|
2670
2670
|
}
|
|
2671
|
-
function
|
|
2671
|
+
function xs(t) {
|
|
2672
2672
|
var e = _n(t);
|
|
2673
2673
|
if (e)
|
|
2674
|
-
return
|
|
2674
|
+
return Cs(t) ? e.fromEntrySeq() : Ns(t) ? e.toSetSeq() : e;
|
|
2675
2675
|
if (typeof t == "object")
|
|
2676
2676
|
return new dn(t);
|
|
2677
2677
|
throw new TypeError(
|
|
@@ -2679,12 +2679,12 @@ function $s(t) {
|
|
|
2679
2679
|
);
|
|
2680
2680
|
}
|
|
2681
2681
|
function _n(t) {
|
|
2682
|
-
return Fo(t) ? new ae(t) : To(t) ? new
|
|
2682
|
+
return Fo(t) ? new ae(t) : To(t) ? new js(t) : void 0;
|
|
2683
2683
|
}
|
|
2684
|
-
function
|
|
2684
|
+
function Be() {
|
|
2685
2685
|
return this.__ensureOwner();
|
|
2686
2686
|
}
|
|
2687
|
-
function
|
|
2687
|
+
function Ke() {
|
|
2688
2688
|
return this.__ownerID ? this : this.__ensureOwner(new hn());
|
|
2689
2689
|
}
|
|
2690
2690
|
var Se = typeof Math.imul == "function" && Math.imul(4294967295, 2) === -2 ? Math.imul : function(t, e) {
|
|
@@ -2695,27 +2695,27 @@ var Se = typeof Math.imul == "function" && Math.imul(4294967295, 2) === -2 ? Mat
|
|
|
2695
2695
|
function Ir(t) {
|
|
2696
2696
|
return t >>> 1 & 1073741824 | t & 3221225471;
|
|
2697
2697
|
}
|
|
2698
|
-
var
|
|
2698
|
+
var $s = Object.prototype.valueOf;
|
|
2699
2699
|
function ht(t) {
|
|
2700
2700
|
if (t == null)
|
|
2701
2701
|
return Zn(t);
|
|
2702
2702
|
if (typeof t.hashCode == "function")
|
|
2703
2703
|
return Ir(t.hashCode(t));
|
|
2704
|
-
var e =
|
|
2704
|
+
var e = Ls(t);
|
|
2705
2705
|
if (e == null)
|
|
2706
2706
|
return Zn(e);
|
|
2707
2707
|
switch (typeof e) {
|
|
2708
2708
|
case "boolean":
|
|
2709
2709
|
return e ? 1108378657 : 1108378656;
|
|
2710
2710
|
case "number":
|
|
2711
|
-
return
|
|
2711
|
+
return Ms(e);
|
|
2712
2712
|
case "string":
|
|
2713
|
-
return e.length >
|
|
2713
|
+
return e.length > Us ? Ts(e) : en(e);
|
|
2714
2714
|
case "object":
|
|
2715
2715
|
case "function":
|
|
2716
|
-
return Vs(e);
|
|
2717
|
-
case "symbol":
|
|
2718
2716
|
return qs(e);
|
|
2717
|
+
case "symbol":
|
|
2718
|
+
return Ps(e);
|
|
2719
2719
|
default:
|
|
2720
2720
|
if (typeof e.toString == "function")
|
|
2721
2721
|
return en(e.toString());
|
|
@@ -2728,7 +2728,7 @@ function Zn(t) {
|
|
|
2728
2728
|
1108378659
|
|
2729
2729
|
);
|
|
2730
2730
|
}
|
|
2731
|
-
function
|
|
2731
|
+
function Ms(t) {
|
|
2732
2732
|
if (t !== t || t === 1 / 0)
|
|
2733
2733
|
return 0;
|
|
2734
2734
|
var e = t | 0;
|
|
@@ -2736,22 +2736,22 @@ function Ts(t) {
|
|
|
2736
2736
|
t /= 4294967295, e ^= t;
|
|
2737
2737
|
return Ir(e);
|
|
2738
2738
|
}
|
|
2739
|
-
function
|
|
2739
|
+
function Ts(t) {
|
|
2740
2740
|
var e = Tr[t];
|
|
2741
|
-
return e === void 0 && (e = en(t), Mr ===
|
|
2741
|
+
return e === void 0 && (e = en(t), Mr === Fs && (Mr = 0, Tr = {}), Mr++, Tr[t] = e), e;
|
|
2742
2742
|
}
|
|
2743
2743
|
function en(t) {
|
|
2744
2744
|
for (var e = 0, r = 0; r < t.length; r++)
|
|
2745
2745
|
e = 31 * e + t.charCodeAt(r) | 0;
|
|
2746
2746
|
return Ir(e);
|
|
2747
2747
|
}
|
|
2748
|
-
function
|
|
2748
|
+
function Ps(t) {
|
|
2749
2749
|
var e = ro[t];
|
|
2750
2750
|
return e !== void 0 || (e = Bo(), ro[t] = e), e;
|
|
2751
2751
|
}
|
|
2752
|
-
function
|
|
2752
|
+
function qs(t) {
|
|
2753
2753
|
var e;
|
|
2754
|
-
if (rn && (e = nn.get(t), e !== void 0) || (e = t[Ft], e !== void 0) || !eo && (e = t.propertyIsEnumerable && t.propertyIsEnumerable[Ft], e !== void 0 || (e =
|
|
2754
|
+
if (rn && (e = nn.get(t), e !== void 0) || (e = t[Ft], e !== void 0) || !eo && (e = t.propertyIsEnumerable && t.propertyIsEnumerable[Ft], e !== void 0 || (e = Vs(t), e !== void 0)))
|
|
2755
2755
|
return e;
|
|
2756
2756
|
if (e = Bo(), rn)
|
|
2757
2757
|
nn.set(t, e);
|
|
@@ -2787,7 +2787,7 @@ var to = Object.isExtensible, eo = (function() {
|
|
|
2787
2787
|
return !1;
|
|
2788
2788
|
}
|
|
2789
2789
|
})();
|
|
2790
|
-
function
|
|
2790
|
+
function Vs(t) {
|
|
2791
2791
|
if (t && t.nodeType > 0)
|
|
2792
2792
|
switch (t.nodeType) {
|
|
2793
2793
|
case 1:
|
|
@@ -2796,8 +2796,8 @@ function Ls(t) {
|
|
|
2796
2796
|
return t.documentElement && t.documentElement.uniqueID;
|
|
2797
2797
|
}
|
|
2798
2798
|
}
|
|
2799
|
-
function
|
|
2800
|
-
return t.valueOf !==
|
|
2799
|
+
function Ls(t) {
|
|
2800
|
+
return t.valueOf !== $s && typeof t.valueOf == "function" ? (
|
|
2801
2801
|
// @ts-expect-error weird the "obj" parameter as `valueOf` should not have a parameter
|
|
2802
2802
|
t.valueOf(t)
|
|
2803
2803
|
) : t;
|
|
@@ -2810,7 +2810,7 @@ var rn = typeof WeakMap == "function", nn;
|
|
|
2810
2810
|
rn && (nn = /* @__PURE__ */ new WeakMap());
|
|
2811
2811
|
var ro = /* @__PURE__ */ Object.create(null), $r = 0, Ft = "__immutablehash__";
|
|
2812
2812
|
typeof Symbol == "function" && (Ft = Symbol(Ft));
|
|
2813
|
-
var
|
|
2813
|
+
var Us = 16, Fs = 255, Mr = 0, Tr = {}, Er = /* @__PURE__ */ (function(t) {
|
|
2814
2814
|
function e(r, n) {
|
|
2815
2815
|
this._iter = r, this._useKeys = n, this.size = r.size;
|
|
2816
2816
|
}
|
|
@@ -3062,7 +3062,7 @@ function Yo(t, e, r, n) {
|
|
|
3062
3062
|
});
|
|
3063
3063
|
}, o;
|
|
3064
3064
|
}
|
|
3065
|
-
function
|
|
3065
|
+
function Ws(t, e, r) {
|
|
3066
3066
|
var n = ge().asMutable();
|
|
3067
3067
|
return t.__iterate(function(o, i) {
|
|
3068
3068
|
n.update(e.call(r, o, i, t), 0, function(s) {
|
|
@@ -3070,7 +3070,7 @@ function Bs(t, e, r) {
|
|
|
3070
3070
|
});
|
|
3071
3071
|
}), n.asImmutable();
|
|
3072
3072
|
}
|
|
3073
|
-
function
|
|
3073
|
+
function Bs(t, e, r) {
|
|
3074
3074
|
var n = B(t), o = (Rt(t) ? Mt() : ge()).asMutable();
|
|
3075
3075
|
t.__iterate(function(s, a) {
|
|
3076
3076
|
o.update(
|
|
@@ -3085,7 +3085,7 @@ function Ks(t, e, r) {
|
|
|
3085
3085
|
return V(t, i(s));
|
|
3086
3086
|
}).asImmutable();
|
|
3087
3087
|
}
|
|
3088
|
-
function
|
|
3088
|
+
function Ks(t, e, r) {
|
|
3089
3089
|
var n = B(t), o = [[], []];
|
|
3090
3090
|
t.__iterate(function(s, a) {
|
|
3091
3091
|
o[e.call(r, s, a, t) ? 1 : 0].push(
|
|
@@ -3103,7 +3103,7 @@ function mn(t, e, r, n) {
|
|
|
3103
3103
|
return t;
|
|
3104
3104
|
if (typeof o > "u" && (e < 0 || r < 0))
|
|
3105
3105
|
return mn(t.toSeq().cacheResult(), e, r, n);
|
|
3106
|
-
var i =
|
|
3106
|
+
var i = We(e, o), s = Sr(r, o), a = s - i, u;
|
|
3107
3107
|
a === a && (u = a < 0 ? 0 : a);
|
|
3108
3108
|
var c = Nt(t);
|
|
3109
3109
|
return c.size = u === 0 ? u : t.size && u || void 0, !n && pn(t) && u >= 0 && (c.get = function(l, f) {
|
|
@@ -3135,7 +3135,7 @@ function mn(t, e, r, n) {
|
|
|
3135
3135
|
});
|
|
3136
3136
|
}, c;
|
|
3137
3137
|
}
|
|
3138
|
-
function
|
|
3138
|
+
function Hs(t, e, r) {
|
|
3139
3139
|
var n = Nt(t);
|
|
3140
3140
|
return n.__iterateUncached = function(o, i) {
|
|
3141
3141
|
var s = this;
|
|
@@ -3191,7 +3191,7 @@ function Xo(t, e, r, n) {
|
|
|
3191
3191
|
});
|
|
3192
3192
|
}, o;
|
|
3193
3193
|
}
|
|
3194
|
-
var
|
|
3194
|
+
var Js = /* @__PURE__ */ (function(t) {
|
|
3195
3195
|
function e(r) {
|
|
3196
3196
|
this._wrappedIterables = r.flatMap(function(n) {
|
|
3197
3197
|
return n._wrappedIterables ? n._wrappedIterables : [n];
|
|
@@ -3247,7 +3247,7 @@ var Gs = /* @__PURE__ */ (function(t) {
|
|
|
3247
3247
|
});
|
|
3248
3248
|
}, e;
|
|
3249
3249
|
})(ft);
|
|
3250
|
-
function
|
|
3250
|
+
function Gs(t, e) {
|
|
3251
3251
|
var r = B(t), n = [t].concat(e).map(function(i) {
|
|
3252
3252
|
return yt(i) ? r && (i = Et(i)) : i = r ? yn(i) : Wo(Array.isArray(i) ? i : [i]), i;
|
|
3253
3253
|
}).filter(function(i) {
|
|
@@ -3260,7 +3260,7 @@ function Qs(t, e) {
|
|
|
3260
3260
|
if (o === t || r && B(o) || It(t) && It(o))
|
|
3261
3261
|
return o;
|
|
3262
3262
|
}
|
|
3263
|
-
return new
|
|
3263
|
+
return new Js(n);
|
|
3264
3264
|
}
|
|
3265
3265
|
function Zo(t, e, r) {
|
|
3266
3266
|
var n = Nt(t);
|
|
@@ -3295,13 +3295,13 @@ function Zo(t, e, r) {
|
|
|
3295
3295
|
});
|
|
3296
3296
|
}, n;
|
|
3297
3297
|
}
|
|
3298
|
-
function
|
|
3298
|
+
function Qs(t, e, r) {
|
|
3299
3299
|
var n = wn(t);
|
|
3300
3300
|
return t.toSeq().map(function(o, i) {
|
|
3301
3301
|
return n(e.call(r, o, i, t));
|
|
3302
3302
|
}).flatten(!0);
|
|
3303
3303
|
}
|
|
3304
|
-
function
|
|
3304
|
+
function Ys(t, e) {
|
|
3305
3305
|
var r = Nt(t);
|
|
3306
3306
|
return r.size = t.size && t.size * 2 - 1, r.__iterateUncached = function(n, o) {
|
|
3307
3307
|
var i = this, s = 0;
|
|
@@ -3333,7 +3333,7 @@ function ue(t, e, r) {
|
|
|
3333
3333
|
}
|
|
3334
3334
|
), n ? Ut(i) : It(t) ? kt(i) : _e(i);
|
|
3335
3335
|
}
|
|
3336
|
-
function
|
|
3336
|
+
function tr(t, e, r) {
|
|
3337
3337
|
if (e || (e = ti), r) {
|
|
3338
3338
|
var n = t.toSeq().map(function(o, i) {
|
|
3339
3339
|
return [o, r(o, i, t)];
|
|
@@ -3350,7 +3350,7 @@ function no(t, e, r) {
|
|
|
3350
3350
|
var n = t(r, e);
|
|
3351
3351
|
return n === 0 && r !== e && (r == null || r !== r) || n > 0;
|
|
3352
3352
|
}
|
|
3353
|
-
function
|
|
3353
|
+
function er(t, e, r, n) {
|
|
3354
3354
|
var o = Nt(t), i = new ae(r).map(function(s) {
|
|
3355
3355
|
return s.size;
|
|
3356
3356
|
});
|
|
@@ -3464,9 +3464,9 @@ function oi(t, e, r) {
|
|
|
3464
3464
|
n[u].forEach(a);
|
|
3465
3465
|
});
|
|
3466
3466
|
}
|
|
3467
|
-
var
|
|
3468
|
-
function
|
|
3469
|
-
if (!t || typeof t != "object" ||
|
|
3467
|
+
var Xs = Object.prototype.toString;
|
|
3468
|
+
function Zs(t) {
|
|
3469
|
+
if (!t || typeof t != "object" || Xs.call(t) !== "[object Object]")
|
|
3470
3470
|
return !1;
|
|
3471
3471
|
var e = Object.getPrototypeOf(t);
|
|
3472
3472
|
if (e === null)
|
|
@@ -3476,7 +3476,7 @@ function ta(t) {
|
|
|
3476
3476
|
return r === e;
|
|
3477
3477
|
}
|
|
3478
3478
|
function Lt(t) {
|
|
3479
|
-
return typeof t == "object" && (Ct(t) || Array.isArray(t) ||
|
|
3479
|
+
return typeof t == "object" && (Ct(t) || Array.isArray(t) || Zs(t));
|
|
3480
3480
|
}
|
|
3481
3481
|
function Dt(t, e) {
|
|
3482
3482
|
e = e || 0;
|
|
@@ -3493,7 +3493,7 @@ function dr(t) {
|
|
|
3493
3493
|
return e;
|
|
3494
3494
|
}
|
|
3495
3495
|
function Sn(t, e, r) {
|
|
3496
|
-
return In(t, e,
|
|
3496
|
+
return In(t, e, ta(r));
|
|
3497
3497
|
}
|
|
3498
3498
|
function In(t, e, r) {
|
|
3499
3499
|
if (!Lt(t))
|
|
@@ -3511,13 +3511,13 @@ function In(t, e, r) {
|
|
|
3511
3511
|
i(e[a]).forEach(s);
|
|
3512
3512
|
return o;
|
|
3513
3513
|
}
|
|
3514
|
-
function
|
|
3514
|
+
function ta(t) {
|
|
3515
3515
|
function e(r, n, o) {
|
|
3516
|
-
return Lt(r) && Lt(n) &&
|
|
3516
|
+
return Lt(r) && Lt(n) && ea(r, n) ? In(r, [n], e) : t ? t(r, n, o) : n;
|
|
3517
3517
|
}
|
|
3518
3518
|
return e;
|
|
3519
3519
|
}
|
|
3520
|
-
function
|
|
3520
|
+
function ea(t, e) {
|
|
3521
3521
|
var r = ft(t), n = ft(e);
|
|
3522
3522
|
return It(r) === It(n) && B(r) === B(n);
|
|
3523
3523
|
}
|
|
@@ -3546,13 +3546,13 @@ function On(t) {
|
|
|
3546
3546
|
return In(n, e);
|
|
3547
3547
|
});
|
|
3548
3548
|
}
|
|
3549
|
-
function
|
|
3549
|
+
function ra(t, e, r) {
|
|
3550
3550
|
return me(t, e, j, function() {
|
|
3551
3551
|
return r;
|
|
3552
3552
|
});
|
|
3553
3553
|
}
|
|
3554
3554
|
function kn(t, e) {
|
|
3555
|
-
return
|
|
3555
|
+
return ra(this, t, e);
|
|
3556
3556
|
}
|
|
3557
3557
|
function Dn(t, e, r) {
|
|
3558
3558
|
return arguments.length === 1 ? t(this) : ei(this, t, e, r);
|
|
@@ -3563,7 +3563,7 @@ function An(t, e, r) {
|
|
|
3563
3563
|
function zn() {
|
|
3564
3564
|
return this.__altered;
|
|
3565
3565
|
}
|
|
3566
|
-
function
|
|
3566
|
+
function He(t) {
|
|
3567
3567
|
var e = this.asMutable();
|
|
3568
3568
|
return t(e), e.wasAltered() ? e.__ensureOwner(this.__ownerID) : this;
|
|
3569
3569
|
}
|
|
@@ -3572,12 +3572,12 @@ function Rn(t) {
|
|
|
3572
3572
|
return !!(t && // @ts-expect-error: maybeMap is typed as `{}`, need to change in 6.0 to `maybeMap && typeof maybeMap === 'object' && IS_MAP_SYMBOL in maybeMap`
|
|
3573
3573
|
t[ai]);
|
|
3574
3574
|
}
|
|
3575
|
-
function
|
|
3575
|
+
function Re(t, e) {
|
|
3576
3576
|
if (!t)
|
|
3577
3577
|
throw new Error(e);
|
|
3578
3578
|
}
|
|
3579
3579
|
function pt(t) {
|
|
3580
|
-
|
|
3580
|
+
Re(t !== 1 / 0, "Cannot perform this action with an infinite size.");
|
|
3581
3581
|
}
|
|
3582
3582
|
var ge = /* @__PURE__ */ (function(t) {
|
|
3583
3583
|
function e(r) {
|
|
@@ -3617,7 +3617,7 @@ var ge = /* @__PURE__ */ (function(t) {
|
|
|
3617
3617
|
});
|
|
3618
3618
|
});
|
|
3619
3619
|
}, e.prototype.__iterator = function(r, n) {
|
|
3620
|
-
return new
|
|
3620
|
+
return new na(this, r, n);
|
|
3621
3621
|
}, e.prototype.__iterate = function(r, n) {
|
|
3622
3622
|
var o = this, i = 0;
|
|
3623
3623
|
return this._root && this._root.iterate(function(s) {
|
|
@@ -3630,7 +3630,7 @@ var ge = /* @__PURE__ */ (function(t) {
|
|
|
3630
3630
|
ge.isMap = Rn;
|
|
3631
3631
|
var W = ge.prototype;
|
|
3632
3632
|
W[ai] = !0;
|
|
3633
|
-
W[
|
|
3633
|
+
W[Fe] = W.remove;
|
|
3634
3634
|
W.removeAll = W.deleteAll;
|
|
3635
3635
|
W.setIn = kn;
|
|
3636
3636
|
W.removeIn = W.deleteIn = xn;
|
|
@@ -3642,36 +3642,36 @@ W.mergeDeep = ii;
|
|
|
3642
3642
|
W.mergeDeepWith = si;
|
|
3643
3643
|
W.mergeIn = On;
|
|
3644
3644
|
W.mergeDeepIn = En;
|
|
3645
|
-
W.withMutations =
|
|
3645
|
+
W.withMutations = He;
|
|
3646
3646
|
W.wasAltered = zn;
|
|
3647
|
-
W.asImmutable =
|
|
3648
|
-
W["@@transducer/init"] = W.asMutable =
|
|
3647
|
+
W.asImmutable = Be;
|
|
3648
|
+
W["@@transducer/init"] = W.asMutable = Ke;
|
|
3649
3649
|
W["@@transducer/step"] = function(t, e) {
|
|
3650
3650
|
return t.set(e[0], e[1]);
|
|
3651
3651
|
};
|
|
3652
3652
|
W["@@transducer/result"] = function(t) {
|
|
3653
3653
|
return t.asImmutable();
|
|
3654
3654
|
};
|
|
3655
|
-
var
|
|
3655
|
+
var $e = function(t, e) {
|
|
3656
3656
|
this.ownerID = t, this.entries = e;
|
|
3657
3657
|
};
|
|
3658
|
-
|
|
3658
|
+
$e.prototype.get = function(t, e, r, n) {
|
|
3659
3659
|
for (var o = this.entries, i = 0, s = o.length; i < s; i++)
|
|
3660
3660
|
if (vt(r, o[i][0]))
|
|
3661
3661
|
return o[i][1];
|
|
3662
3662
|
return n;
|
|
3663
3663
|
};
|
|
3664
|
-
|
|
3664
|
+
$e.prototype.update = function(t, e, r, n, o, i, s) {
|
|
3665
3665
|
for (var a = o === j, u = this.entries, c = 0, l = u.length; c < l && !vt(n, u[c][0]); c++)
|
|
3666
3666
|
;
|
|
3667
3667
|
var f = c < l;
|
|
3668
3668
|
if (f ? u[c][1] === o : a)
|
|
3669
3669
|
return this;
|
|
3670
3670
|
if (bt(s), (a || !f) && bt(i), !(a && u.length === 1)) {
|
|
3671
|
-
if (!f && !a && u.length >=
|
|
3672
|
-
return
|
|
3671
|
+
if (!f && !a && u.length >= ca)
|
|
3672
|
+
return oa(t, u, n, o);
|
|
3673
3673
|
var h = t && t === this.ownerID, d = h ? u : Dt(u);
|
|
3674
|
-
return f ? a ? c === l - 1 ? d.pop() : d[c] = d.pop() : d[c] = [n, o] : d.push([n, o]), h ? (this.entries = d, this) : new
|
|
3674
|
+
return f ? a ? c === l - 1 ? d.pop() : d[c] = d.pop() : d[c] = [n, o] : d.push([n, o]), h ? (this.entries = d, this) : new $e(t, d);
|
|
3675
3675
|
}
|
|
3676
3676
|
};
|
|
3677
3677
|
var ce = function(t, e, r) {
|
|
@@ -3704,24 +3704,24 @@ ce.prototype.update = function(t, e, r, n, o, i, s) {
|
|
|
3704
3704
|
);
|
|
3705
3705
|
if (y === d)
|
|
3706
3706
|
return this;
|
|
3707
|
-
if (!l && y && h.length >=
|
|
3708
|
-
return
|
|
3707
|
+
if (!l && y && h.length >= la)
|
|
3708
|
+
return sa(t, h, c, a, y);
|
|
3709
3709
|
if (l && !y && h.length === 2 && co(h[f ^ 1]))
|
|
3710
3710
|
return h[f ^ 1];
|
|
3711
3711
|
if (l && y && h.length === 1 && co(y))
|
|
3712
3712
|
return y;
|
|
3713
|
-
var m = t && t === this.ownerID, A = l ? y ? c : c ^ u : c | u, T = l ? y ? ci(h, f, y, m) :
|
|
3713
|
+
var m = t && t === this.ownerID, A = l ? y ? c : c ^ u : c | u, T = l ? y ? ci(h, f, y, m) : ua(h, f, m) : aa(h, f, y, m);
|
|
3714
3714
|
return m ? (this.bitmap = A, this.nodes = T, this) : new ce(t, A, T);
|
|
3715
3715
|
};
|
|
3716
|
-
var
|
|
3716
|
+
var Me = function(t, e, r) {
|
|
3717
3717
|
this.ownerID = t, this.count = e, this.nodes = r;
|
|
3718
3718
|
};
|
|
3719
|
-
|
|
3719
|
+
Me.prototype.get = function(t, e, r, n) {
|
|
3720
3720
|
e === void 0 && (e = ht(r));
|
|
3721
3721
|
var o = (t === 0 ? e : e >>> t) & at, i = this.nodes[o];
|
|
3722
3722
|
return i ? i.get(t + L, e, r, n) : n;
|
|
3723
3723
|
};
|
|
3724
|
-
|
|
3724
|
+
Me.prototype.update = function(t, e, r, n, o, i, s) {
|
|
3725
3725
|
r === void 0 && (r = ht(n));
|
|
3726
3726
|
var a = (e === 0 ? r : r >>> e) & at, u = o === j, c = this.nodes, l = c[a];
|
|
3727
3727
|
if (u && !l)
|
|
@@ -3741,10 +3741,10 @@ $e.prototype.update = function(t, e, r, n, o, i, s) {
|
|
|
3741
3741
|
var h = this.count;
|
|
3742
3742
|
if (!l)
|
|
3743
3743
|
h++;
|
|
3744
|
-
else if (!f && (h--, h <
|
|
3745
|
-
return
|
|
3744
|
+
else if (!f && (h--, h < fa))
|
|
3745
|
+
return ia(t, c, h, a);
|
|
3746
3746
|
var d = t && t === this.ownerID, y = ci(c, a, f, d);
|
|
3747
|
-
return d ? (this.count = h, this.nodes = y, this) : new
|
|
3747
|
+
return d ? (this.count = h, this.nodes = y, this) : new Me(t, h, y);
|
|
3748
3748
|
};
|
|
3749
3749
|
var le = function(t, e, r) {
|
|
3750
3750
|
this.ownerID = t, this.keyHash = e, this.entries = r;
|
|
@@ -3786,12 +3786,12 @@ $t.prototype.update = function(t, e, r, n, o, i, s) {
|
|
|
3786
3786
|
}
|
|
3787
3787
|
return u ? t && t === this.ownerID ? (this.entry[1] = o, this) : new $t(t, this.keyHash, [n, o]) : (bt(i), jn(this, t, e, ht(n), [n, o]));
|
|
3788
3788
|
};
|
|
3789
|
-
|
|
3789
|
+
$e.prototype.iterate = le.prototype.iterate = function(t, e) {
|
|
3790
3790
|
for (var r = this.entries, n = 0, o = r.length - 1; n <= o; n++)
|
|
3791
3791
|
if (t(r[e ? o - n : n]) === !1)
|
|
3792
3792
|
return !1;
|
|
3793
3793
|
};
|
|
3794
|
-
ce.prototype.iterate =
|
|
3794
|
+
ce.prototype.iterate = Me.prototype.iterate = function(t, e) {
|
|
3795
3795
|
for (var r = this.nodes, n = 0, o = r.length - 1; n <= o; n++) {
|
|
3796
3796
|
var i = r[e ? o - n : n];
|
|
3797
3797
|
if (i && i.iterate(t, e) === !1)
|
|
@@ -3801,7 +3801,7 @@ ce.prototype.iterate = $e.prototype.iterate = function(t, e) {
|
|
|
3801
3801
|
$t.prototype.iterate = function(t, e) {
|
|
3802
3802
|
return t(this.entry);
|
|
3803
3803
|
};
|
|
3804
|
-
var
|
|
3804
|
+
var na = /* @__PURE__ */ (function(t) {
|
|
3805
3805
|
function e(r, n, o) {
|
|
3806
3806
|
this._type = n, this._reverse = o, this._stack = r._root && so(r._root);
|
|
3807
3807
|
}
|
|
@@ -3868,7 +3868,7 @@ function uo(t, e, r) {
|
|
|
3868
3868
|
} else {
|
|
3869
3869
|
if (r === j)
|
|
3870
3870
|
return t;
|
|
3871
|
-
o = 1, n = new
|
|
3871
|
+
o = 1, n = new $e(t.__ownerID, [[e, r]]);
|
|
3872
3872
|
}
|
|
3873
3873
|
return t.__ownerID ? (t.size = o, t._root = n, t.__hash = void 0, t.__altered = !0, t) : n ? Cn(o, n) : zt();
|
|
3874
3874
|
}
|
|
@@ -3892,7 +3892,7 @@ function jn(t, e, r, n, o) {
|
|
|
3892
3892
|
var i = (r === 0 ? t.keyHash : t.keyHash >>> r) & at, s = (r === 0 ? n : n >>> r) & at, a, u = i === s ? [jn(t, e, r + L, n, o)] : (a = new $t(e, n, o), i < s ? [t, a] : [a, t]);
|
|
3893
3893
|
return new ce(e, 1 << i | 1 << s, u);
|
|
3894
3894
|
}
|
|
3895
|
-
function
|
|
3895
|
+
function oa(t, e, r, n) {
|
|
3896
3896
|
t || (t = new hn());
|
|
3897
3897
|
for (var o = new $t(t, ht(r), [r, n]), i = 0; i < e.length; i++) {
|
|
3898
3898
|
var s = e[i];
|
|
@@ -3900,17 +3900,17 @@ function ia(t, e, r, n) {
|
|
|
3900
3900
|
}
|
|
3901
3901
|
return o;
|
|
3902
3902
|
}
|
|
3903
|
-
function
|
|
3903
|
+
function ia(t, e, r, n) {
|
|
3904
3904
|
for (var o = 0, i = 0, s = new Array(r), a = 0, u = 1, c = e.length; a < c; a++, u <<= 1) {
|
|
3905
3905
|
var l = e[a];
|
|
3906
3906
|
l !== void 0 && a !== n && (o |= u, s[i++] = l);
|
|
3907
3907
|
}
|
|
3908
3908
|
return new ce(t, o, s);
|
|
3909
3909
|
}
|
|
3910
|
-
function
|
|
3910
|
+
function sa(t, e, r, n, o) {
|
|
3911
3911
|
for (var i = 0, s = new Array(dt), a = 0; r !== 0; a++, r >>>= 1)
|
|
3912
3912
|
s[a] = r & 1 ? e[i++] : void 0;
|
|
3913
|
-
return s[n] = o, new
|
|
3913
|
+
return s[n] = o, new Me(t, i + 1, s);
|
|
3914
3914
|
}
|
|
3915
3915
|
function ui(t) {
|
|
3916
3916
|
return t -= t >> 1 & 1431655765, t = (t & 858993459) + (t >> 2 & 858993459), t = t + (t >> 4) & 252645135, t += t >> 8, t += t >> 16, t & 127;
|
|
@@ -3919,7 +3919,7 @@ function ci(t, e, r, n) {
|
|
|
3919
3919
|
var o = n ? t : Dt(t);
|
|
3920
3920
|
return o[e] = r, o;
|
|
3921
3921
|
}
|
|
3922
|
-
function
|
|
3922
|
+
function aa(t, e, r, n) {
|
|
3923
3923
|
var o = t.length + 1;
|
|
3924
3924
|
if (n && e + 1 === o)
|
|
3925
3925
|
return t[e] = r, t;
|
|
@@ -3927,7 +3927,7 @@ function ua(t, e, r, n) {
|
|
|
3927
3927
|
a === e ? (i[a] = r, s = -1) : i[a] = t[a + s];
|
|
3928
3928
|
return i;
|
|
3929
3929
|
}
|
|
3930
|
-
function
|
|
3930
|
+
function ua(t, e, r) {
|
|
3931
3931
|
var n = t.length - 1;
|
|
3932
3932
|
if (r && e === n)
|
|
3933
3933
|
return t.pop(), t;
|
|
@@ -3935,7 +3935,7 @@ function ca(t, e, r) {
|
|
|
3935
3935
|
s === e && (i = 1), o[s] = t[s + i];
|
|
3936
3936
|
return o;
|
|
3937
3937
|
}
|
|
3938
|
-
var
|
|
3938
|
+
var ca = dt / 4, la = dt / 2, fa = dt / 4;
|
|
3939
3939
|
function li(t) {
|
|
3940
3940
|
if (Fo(t) && typeof t != "string")
|
|
3941
3941
|
return t;
|
|
@@ -3943,14 +3943,14 @@ function li(t) {
|
|
|
3943
3943
|
return t.toArray();
|
|
3944
3944
|
throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: " + t);
|
|
3945
3945
|
}
|
|
3946
|
-
function
|
|
3946
|
+
function Te(t) {
|
|
3947
3947
|
try {
|
|
3948
3948
|
return typeof t == "string" ? JSON.stringify(t) : String(t);
|
|
3949
3949
|
} catch {
|
|
3950
3950
|
return JSON.stringify(t);
|
|
3951
3951
|
}
|
|
3952
3952
|
}
|
|
3953
|
-
function
|
|
3953
|
+
function ha(t, e) {
|
|
3954
3954
|
return Ct(t) ? (
|
|
3955
3955
|
// @ts-expect-error key might be a number or symbol, which is not handled be Record key type
|
|
3956
3956
|
t.has(e)
|
|
@@ -3960,7 +3960,7 @@ function pa(t, e) {
|
|
|
3960
3960
|
);
|
|
3961
3961
|
}
|
|
3962
3962
|
function fi(t, e, r) {
|
|
3963
|
-
return Ct(t) ? t.get(e, r) :
|
|
3963
|
+
return Ct(t) ? t.get(e, r) : ha(t, e) ? (
|
|
3964
3964
|
// @ts-expect-error weird "get" here,
|
|
3965
3965
|
typeof t.get == "function" ? (
|
|
3966
3966
|
// @ts-expect-error weird "get" here,
|
|
@@ -3971,7 +3971,7 @@ function fi(t, e, r) {
|
|
|
3971
3971
|
)
|
|
3972
3972
|
) : r;
|
|
3973
3973
|
}
|
|
3974
|
-
function
|
|
3974
|
+
function pa(t, e) {
|
|
3975
3975
|
if (!Lt(t))
|
|
3976
3976
|
throw new TypeError("Cannot update non-data-structure value: " + t);
|
|
3977
3977
|
if (Ct(t)) {
|
|
@@ -3984,7 +3984,7 @@ function da(t, e) {
|
|
|
3984
3984
|
var r = dr(t);
|
|
3985
3985
|
return Array.isArray(r) ? r.splice(e, 1) : delete r[e], r;
|
|
3986
3986
|
}
|
|
3987
|
-
function
|
|
3987
|
+
function da(t, e, r) {
|
|
3988
3988
|
if (!Lt(t))
|
|
3989
3989
|
throw new TypeError("Cannot update non-data-structure value: " + t);
|
|
3990
3990
|
if (Ct(t)) {
|
|
@@ -4017,7 +4017,7 @@ function hi(t, e, r, n, o, i) {
|
|
|
4017
4017
|
return u === a ? e : u;
|
|
4018
4018
|
}
|
|
4019
4019
|
if (!s && !Lt(e))
|
|
4020
|
-
throw new TypeError("Cannot update within non-data-structure value in path [" + Array.from(r).slice(0, n).map(
|
|
4020
|
+
throw new TypeError("Cannot update within non-data-structure value in path [" + Array.from(r).slice(0, n).map(Te) + "]: " + e);
|
|
4021
4021
|
var c = r[n], l = s ? j : fi(e, c, j), f = hi(
|
|
4022
4022
|
l === j ? t : Ct(l),
|
|
4023
4023
|
// @ts-expect-error mixed type
|
|
@@ -4027,15 +4027,15 @@ function hi(t, e, r, n, o, i) {
|
|
|
4027
4027
|
o,
|
|
4028
4028
|
i
|
|
4029
4029
|
);
|
|
4030
|
-
return f === l ? e : f === j ?
|
|
4030
|
+
return f === l ? e : f === j ? pa(e, c) : da(s ? t ? zt() : {} : e, c, f);
|
|
4031
4031
|
}
|
|
4032
|
-
function
|
|
4032
|
+
function va(t, e) {
|
|
4033
4033
|
return me(t, e, function() {
|
|
4034
4034
|
return j;
|
|
4035
4035
|
});
|
|
4036
4036
|
}
|
|
4037
4037
|
function xn(t) {
|
|
4038
|
-
return
|
|
4038
|
+
return va(this, t);
|
|
4039
4039
|
}
|
|
4040
4040
|
var pi = "@@__IMMUTABLE_LIST__@@";
|
|
4041
4041
|
function di(t) {
|
|
@@ -4050,7 +4050,7 @@ var Or = /* @__PURE__ */ (function(t) {
|
|
|
4050
4050
|
if (di(r))
|
|
4051
4051
|
return r;
|
|
4052
4052
|
var o = t(r), i = o.size;
|
|
4053
|
-
return i === 0 ? n : (pt(i), i > 0 && i < dt ?
|
|
4053
|
+
return i === 0 ? n : (pt(i), i > 0 && i < dt ? Pe(0, i, L, null, new Pt(o.toArray())) : n.withMutations(function(s) {
|
|
4054
4054
|
s.setSize(i), o.forEach(function(a, u) {
|
|
4055
4055
|
return s.set(u, a);
|
|
4056
4056
|
});
|
|
@@ -4068,7 +4068,7 @@ var Or = /* @__PURE__ */ (function(t) {
|
|
|
4068
4068
|
}
|
|
4069
4069
|
return n;
|
|
4070
4070
|
}, e.prototype.set = function(r, n) {
|
|
4071
|
-
return
|
|
4071
|
+
return ya(this, r, n);
|
|
4072
4072
|
}, e.prototype.remove = function(r) {
|
|
4073
4073
|
return this.has(r) ? r === 0 ? this.shift() : r === this.size - 1 ? this.pop() : this.splice(r, 1) : this;
|
|
4074
4074
|
}, e.prototype.insert = function(r, n) {
|
|
@@ -4124,21 +4124,21 @@ var Or = /* @__PURE__ */ (function(t) {
|
|
|
4124
4124
|
var o = this.size;
|
|
4125
4125
|
return br(r, n, o) ? this : Tt(
|
|
4126
4126
|
this,
|
|
4127
|
-
|
|
4127
|
+
We(r, o),
|
|
4128
4128
|
Sr(n, o)
|
|
4129
4129
|
);
|
|
4130
4130
|
}, e.prototype.__iterator = function(r, n) {
|
|
4131
4131
|
var o = n ? this.size : 0, i = lo(this, n);
|
|
4132
4132
|
return new x(function() {
|
|
4133
4133
|
var s = i();
|
|
4134
|
-
return s ===
|
|
4134
|
+
return s === Ce ? ut() : K(r, n ? --o : o++, s);
|
|
4135
4135
|
});
|
|
4136
4136
|
}, e.prototype.__iterate = function(r, n) {
|
|
4137
|
-
for (var o = n ? this.size : 0, i = lo(this, n), s; (s = i()) !==
|
|
4137
|
+
for (var o = n ? this.size : 0, i = lo(this, n), s; (s = i()) !== Ce && r(s, n ? --o : o++, this) !== !1; )
|
|
4138
4138
|
;
|
|
4139
4139
|
return o;
|
|
4140
4140
|
}, e.prototype.__ensureOwner = function(r) {
|
|
4141
|
-
return r === this.__ownerID ? this : r ?
|
|
4141
|
+
return r === this.__ownerID ? this : r ? Pe(
|
|
4142
4142
|
this._origin,
|
|
4143
4143
|
this._capacity,
|
|
4144
4144
|
this._level,
|
|
@@ -4152,7 +4152,7 @@ var Or = /* @__PURE__ */ (function(t) {
|
|
|
4152
4152
|
Or.isList = di;
|
|
4153
4153
|
var Q = Or.prototype;
|
|
4154
4154
|
Q[pi] = !0;
|
|
4155
|
-
Q[
|
|
4155
|
+
Q[Fe] = Q.remove;
|
|
4156
4156
|
Q.merge = Q.concat;
|
|
4157
4157
|
Q.setIn = kn;
|
|
4158
4158
|
Q.deleteIn = Q.removeIn = xn;
|
|
@@ -4160,10 +4160,10 @@ Q.update = Dn;
|
|
|
4160
4160
|
Q.updateIn = An;
|
|
4161
4161
|
Q.mergeIn = On;
|
|
4162
4162
|
Q.mergeDeepIn = En;
|
|
4163
|
-
Q.withMutations =
|
|
4163
|
+
Q.withMutations = He;
|
|
4164
4164
|
Q.wasAltered = zn;
|
|
4165
|
-
Q.asImmutable =
|
|
4166
|
-
Q["@@transducer/init"] = Q.asMutable =
|
|
4165
|
+
Q.asImmutable = Be;
|
|
4166
|
+
Q["@@transducer/init"] = Q.asMutable = Ke;
|
|
4167
4167
|
Q["@@transducer/step"] = function(t, e) {
|
|
4168
4168
|
return t.push(e);
|
|
4169
4169
|
};
|
|
@@ -4208,9 +4208,9 @@ Pt.prototype.removeAfter = function(t, e, r) {
|
|
|
4208
4208
|
var s = fe(this, t);
|
|
4209
4209
|
return s.array.splice(n + 1), o && (s.array[n] = o), s;
|
|
4210
4210
|
};
|
|
4211
|
-
var
|
|
4211
|
+
var Ce = {};
|
|
4212
4212
|
function lo(t, e) {
|
|
4213
|
-
var r = t._origin, n = t._capacity, o =
|
|
4213
|
+
var r = t._origin, n = t._capacity, o = qe(n), i = t._tail;
|
|
4214
4214
|
return s(t._root, t._level, 0);
|
|
4215
4215
|
function s(c, l, f) {
|
|
4216
4216
|
return l === 0 ? a(c, f) : u(c, l, f);
|
|
@@ -4219,7 +4219,7 @@ function lo(t, e) {
|
|
|
4219
4219
|
var f = l === o ? i && i.array : c && c.array, h = l > r ? 0 : r - l, d = n - l;
|
|
4220
4220
|
return d > dt && (d = dt), function() {
|
|
4221
4221
|
if (h === d)
|
|
4222
|
-
return
|
|
4222
|
+
return Ce;
|
|
4223
4223
|
var y = e ? --d : h++;
|
|
4224
4224
|
return f && f[y];
|
|
4225
4225
|
};
|
|
@@ -4230,12 +4230,12 @@ function lo(t, e) {
|
|
|
4230
4230
|
for (; ; ) {
|
|
4231
4231
|
if (h) {
|
|
4232
4232
|
var A = h();
|
|
4233
|
-
if (A !==
|
|
4233
|
+
if (A !== Ce)
|
|
4234
4234
|
return A;
|
|
4235
4235
|
h = null;
|
|
4236
4236
|
}
|
|
4237
4237
|
if (y === m)
|
|
4238
|
-
return
|
|
4238
|
+
return Ce;
|
|
4239
4239
|
var T = e ? --m : y++;
|
|
4240
4240
|
h = s(
|
|
4241
4241
|
d && d[T],
|
|
@@ -4246,14 +4246,14 @@ function lo(t, e) {
|
|
|
4246
4246
|
};
|
|
4247
4247
|
}
|
|
4248
4248
|
}
|
|
4249
|
-
function
|
|
4249
|
+
function Pe(t, e, r, n, o, i, s) {
|
|
4250
4250
|
var a = Object.create(Q);
|
|
4251
4251
|
return a.size = e - t, a._origin = t, a._capacity = e, a._level = r, a._root = n, a._tail = o, a.__ownerID = i, a.__hash = s, a.__altered = !1, a;
|
|
4252
4252
|
}
|
|
4253
4253
|
function ir() {
|
|
4254
|
-
return
|
|
4254
|
+
return Pe(0, 0, L);
|
|
4255
4255
|
}
|
|
4256
|
-
function
|
|
4256
|
+
function ya(t, e, r) {
|
|
4257
4257
|
if (e = qt(t, e), e !== e)
|
|
4258
4258
|
return t;
|
|
4259
4259
|
if (e >= t.size || e < 0)
|
|
@@ -4262,14 +4262,14 @@ function _a(t, e, r) {
|
|
|
4262
4262
|
});
|
|
4263
4263
|
e += t._origin;
|
|
4264
4264
|
var n = t._tail, o = t._root, i = tn();
|
|
4265
|
-
return e >=
|
|
4265
|
+
return e >= qe(t._capacity) ? n = on(n, t.__ownerID, 0, e, r, i) : o = on(
|
|
4266
4266
|
o,
|
|
4267
4267
|
t.__ownerID,
|
|
4268
4268
|
t._level,
|
|
4269
4269
|
e,
|
|
4270
4270
|
r,
|
|
4271
4271
|
i
|
|
4272
|
-
), i.value ? t.__ownerID ? (t._root = o, t._tail = n, t.__hash = void 0, t.__altered = !0, t) :
|
|
4272
|
+
), i.value ? t.__ownerID ? (t._root = o, t._tail = n, t.__hash = void 0, t.__altered = !0, t) : Pe(t._origin, t._capacity, t._level, o, n) : t;
|
|
4273
4273
|
}
|
|
4274
4274
|
function on(t, e, r, n, o, i) {
|
|
4275
4275
|
var s = n >>> r & at, a = t && s < t.array.length;
|
|
@@ -4293,7 +4293,7 @@ function fe(t, e) {
|
|
|
4293
4293
|
return e && t && e === t.ownerID ? t : new Pt(t ? t.array.slice() : [], e);
|
|
4294
4294
|
}
|
|
4295
4295
|
function vi(t, e) {
|
|
4296
|
-
if (e >=
|
|
4296
|
+
if (e >= qe(t._capacity))
|
|
4297
4297
|
return t._tail;
|
|
4298
4298
|
if (e < 1 << t._level + L) {
|
|
4299
4299
|
for (var r = t._root, n = t._level; r && n > 0; )
|
|
@@ -4314,7 +4314,7 @@ function Tt(t, e, r) {
|
|
|
4314
4314
|
n
|
|
4315
4315
|
), u += L, l += 1 << u;
|
|
4316
4316
|
l && (s += l, o += l, a += l, i += l);
|
|
4317
|
-
for (var f =
|
|
4317
|
+
for (var f = qe(i), h = qe(a); h >= 1 << u + L; )
|
|
4318
4318
|
c = new Pt(
|
|
4319
4319
|
c && c.array.length ? [c] : [],
|
|
4320
4320
|
n
|
|
@@ -4343,9 +4343,9 @@ function Tt(t, e, r) {
|
|
|
4343
4343
|
h - l
|
|
4344
4344
|
)), l && (s -= l, a -= l);
|
|
4345
4345
|
}
|
|
4346
|
-
return t.__ownerID ? (t.size = a - s, t._origin = s, t._capacity = a, t._level = u, t._root = c, t._tail = y, t.__hash = void 0, t.__altered = !0, t) :
|
|
4346
|
+
return t.__ownerID ? (t.size = a - s, t._origin = s, t._capacity = a, t._level = u, t._root = c, t._tail = y, t.__hash = void 0, t.__altered = !0, t) : Pe(s, a, u, c, y);
|
|
4347
4347
|
}
|
|
4348
|
-
function
|
|
4348
|
+
function qe(t) {
|
|
4349
4349
|
return t < dt ? 0 : t - 1 >>> L << L;
|
|
4350
4350
|
}
|
|
4351
4351
|
function yi(t) {
|
|
@@ -4392,7 +4392,7 @@ var Mt = /* @__PURE__ */ (function(t) {
|
|
|
4392
4392
|
})(ge);
|
|
4393
4393
|
Mt.isOrderedMap = yi;
|
|
4394
4394
|
Mt.prototype[Vt] = !0;
|
|
4395
|
-
Mt.prototype[
|
|
4395
|
+
Mt.prototype[Fe] = Mt.prototype.remove;
|
|
4396
4396
|
function $n(t, e, r, n) {
|
|
4397
4397
|
var o = Object.create(Mt.prototype);
|
|
4398
4398
|
return o.size = t ? t.size : 0, o._map = t, o._list = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
|
|
@@ -4426,7 +4426,7 @@ function sn(t) {
|
|
|
4426
4426
|
}
|
|
4427
4427
|
var Mn = /* @__PURE__ */ (function(t) {
|
|
4428
4428
|
function e(r) {
|
|
4429
|
-
return r == null ?
|
|
4429
|
+
return r == null ? rr() : sn(r) ? r : rr().pushAll(r);
|
|
4430
4430
|
}
|
|
4431
4431
|
return t && (e.__proto__ = t), e.prototype = Object.create(t && t.prototype), e.prototype.constructor = e, e.of = function() {
|
|
4432
4432
|
return this(arguments);
|
|
@@ -4469,18 +4469,18 @@ var Mn = /* @__PURE__ */ (function(t) {
|
|
|
4469
4469
|
}, e.prototype.pop = function() {
|
|
4470
4470
|
return this.slice(1);
|
|
4471
4471
|
}, e.prototype.clear = function() {
|
|
4472
|
-
return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._head = void 0, this.__hash = void 0, this.__altered = !0, this) :
|
|
4472
|
+
return this.size === 0 ? this : this.__ownerID ? (this.size = 0, this._head = void 0, this.__hash = void 0, this.__altered = !0, this) : rr();
|
|
4473
4473
|
}, e.prototype.slice = function(r, n) {
|
|
4474
4474
|
if (br(r, n, this.size))
|
|
4475
4475
|
return this;
|
|
4476
|
-
var o =
|
|
4476
|
+
var o = We(r, this.size), i = Sr(n, this.size);
|
|
4477
4477
|
if (i !== this.size)
|
|
4478
4478
|
return t.prototype.slice.call(this, r, n);
|
|
4479
4479
|
for (var s = this.size - o, a = this._head; o--; )
|
|
4480
4480
|
a = a.next;
|
|
4481
4481
|
return this.__ownerID ? (this.size = s, this._head = a, this.__hash = void 0, this.__altered = !0, this) : Oe(s, a);
|
|
4482
4482
|
}, e.prototype.__ensureOwner = function(r) {
|
|
4483
|
-
return r === this.__ownerID ? this : r ? Oe(this.size, this._head, r, this.__hash) : this.size === 0 ?
|
|
4483
|
+
return r === this.__ownerID ? this : r ? Oe(this.size, this._head, r, this.__hash) : this.size === 0 ? rr() : (this.__ownerID = r, this.__altered = !1, this);
|
|
4484
4484
|
}, e.prototype.__iterate = function(r, n) {
|
|
4485
4485
|
var o = this;
|
|
4486
4486
|
if (n)
|
|
@@ -4512,10 +4512,10 @@ ct[_i] = !0;
|
|
|
4512
4512
|
ct.shift = ct.pop;
|
|
4513
4513
|
ct.unshift = ct.push;
|
|
4514
4514
|
ct.unshiftAll = ct.pushAll;
|
|
4515
|
-
ct.withMutations =
|
|
4515
|
+
ct.withMutations = He;
|
|
4516
4516
|
ct.wasAltered = zn;
|
|
4517
|
-
ct.asImmutable =
|
|
4518
|
-
ct["@@transducer/init"] = ct.asMutable =
|
|
4517
|
+
ct.asImmutable = Be;
|
|
4518
|
+
ct["@@transducer/init"] = ct.asMutable = Ke;
|
|
4519
4519
|
ct["@@transducer/step"] = function(t, e) {
|
|
4520
4520
|
return t.unshift(e);
|
|
4521
4521
|
};
|
|
@@ -4527,7 +4527,7 @@ function Oe(t, e, r, n) {
|
|
|
4527
4527
|
return o.size = t, o._head = e, o.__ownerID = r, o.__hash = n, o.__altered = !1, o;
|
|
4528
4528
|
}
|
|
4529
4529
|
var po;
|
|
4530
|
-
function
|
|
4530
|
+
function rr() {
|
|
4531
4531
|
return po || (po = Oe(0));
|
|
4532
4532
|
}
|
|
4533
4533
|
function vo(t, e, r, n, o, i) {
|
|
@@ -4535,10 +4535,10 @@ function vo(t, e, r, n, o, i) {
|
|
|
4535
4535
|
o ? (o = !1, r = s) : r = e.call(n, r, s, a, u);
|
|
4536
4536
|
}, i), r;
|
|
4537
4537
|
}
|
|
4538
|
-
function
|
|
4538
|
+
function _a(t, e) {
|
|
4539
4539
|
return e;
|
|
4540
4540
|
}
|
|
4541
|
-
function
|
|
4541
|
+
function ga(t, e) {
|
|
4542
4542
|
return [e, t];
|
|
4543
4543
|
}
|
|
4544
4544
|
function qr(t) {
|
|
@@ -4604,14 +4604,14 @@ function gi(t, e) {
|
|
|
4604
4604
|
return s && // @ts-expect-error size should exists on Collection
|
|
4605
4605
|
t.size === a;
|
|
4606
4606
|
}
|
|
4607
|
-
var
|
|
4607
|
+
var ma = /* @__PURE__ */ (function(t) {
|
|
4608
4608
|
function e(r, n, o) {
|
|
4609
4609
|
if (o === void 0 && (o = 1), !(this instanceof e))
|
|
4610
4610
|
return new e(r, n, o);
|
|
4611
|
-
if (
|
|
4611
|
+
if (Re(o !== 0, "Cannot step a Range by 0"), Re(
|
|
4612
4612
|
r !== void 0,
|
|
4613
4613
|
"You must define a start value when using Range"
|
|
4614
|
-
),
|
|
4614
|
+
), Re(
|
|
4615
4615
|
n !== void 0,
|
|
4616
4616
|
"You must define an end value when using Range"
|
|
4617
4617
|
), o = Math.abs(o), n < r && (o = -o), this._start = r, this._end = n, this._step = o, this.size = Math.max(0, Math.ceil((n - r) / o - 1) + 1), this.size === 0) {
|
|
@@ -4628,7 +4628,7 @@ var wa = /* @__PURE__ */ (function(t) {
|
|
|
4628
4628
|
var n = (r - this._start) / this._step;
|
|
4629
4629
|
return n >= 0 && n < this.size && n === Math.floor(n);
|
|
4630
4630
|
}, e.prototype.slice = function(r, n) {
|
|
4631
|
-
return br(r, n, this.size) ? this : (r =
|
|
4631
|
+
return br(r, n, this.size) ? this : (r = We(r, this.size), n = Sr(n, this.size), n <= r ? new e(0, 0) : new e(
|
|
4632
4632
|
this.get(r, this._end),
|
|
4633
4633
|
this.get(n, this._end),
|
|
4634
4634
|
this._step
|
|
@@ -4685,13 +4685,13 @@ var kr = /* @__PURE__ */ (function(t) {
|
|
|
4685
4685
|
}, e.prototype.has = function(r) {
|
|
4686
4686
|
return this._map.has(r);
|
|
4687
4687
|
}, e.prototype.add = function(r) {
|
|
4688
|
-
return
|
|
4688
|
+
return nr(this, this._map.set(r, r));
|
|
4689
4689
|
}, e.prototype.remove = function(r) {
|
|
4690
|
-
return
|
|
4690
|
+
return nr(this, this._map.remove(r));
|
|
4691
4691
|
}, e.prototype.clear = function() {
|
|
4692
|
-
return
|
|
4692
|
+
return nr(this, this._map.clear());
|
|
4693
4693
|
}, e.prototype.map = function(r, n) {
|
|
4694
|
-
var o = this, i = !1, s =
|
|
4694
|
+
var o = this, i = !1, s = nr(
|
|
4695
4695
|
this,
|
|
4696
4696
|
this._map.mapEntries(function(a) {
|
|
4697
4697
|
var u = a[1], c = r.call(n, u, u, o);
|
|
@@ -4744,9 +4744,9 @@ var kr = /* @__PURE__ */ (function(t) {
|
|
|
4744
4744
|
});
|
|
4745
4745
|
});
|
|
4746
4746
|
}, e.prototype.sort = function(r) {
|
|
4747
|
-
return
|
|
4747
|
+
return Ve(ue(this, r));
|
|
4748
4748
|
}, e.prototype.sortBy = function(r, n) {
|
|
4749
|
-
return
|
|
4749
|
+
return Ve(ue(this, n, r));
|
|
4750
4750
|
}, e.prototype.wasAltered = function() {
|
|
4751
4751
|
return this._map.wasAltered();
|
|
4752
4752
|
}, e.prototype.__iterate = function(r, n) {
|
|
@@ -4766,11 +4766,11 @@ var kr = /* @__PURE__ */ (function(t) {
|
|
|
4766
4766
|
kr.isSet = Tn;
|
|
4767
4767
|
var et = kr.prototype;
|
|
4768
4768
|
et[mi] = !0;
|
|
4769
|
-
et[
|
|
4769
|
+
et[Fe] = et.remove;
|
|
4770
4770
|
et.merge = et.concat = et.union;
|
|
4771
|
-
et.withMutations =
|
|
4772
|
-
et.asImmutable =
|
|
4773
|
-
et["@@transducer/init"] = et.asMutable =
|
|
4771
|
+
et.withMutations = He;
|
|
4772
|
+
et.asImmutable = Be;
|
|
4773
|
+
et["@@transducer/init"] = et.asMutable = Ke;
|
|
4774
4774
|
et["@@transducer/step"] = function(t, e) {
|
|
4775
4775
|
return t.add(e);
|
|
4776
4776
|
};
|
|
@@ -4779,7 +4779,7 @@ et["@@transducer/result"] = function(t) {
|
|
|
4779
4779
|
};
|
|
4780
4780
|
et.__empty = ke;
|
|
4781
4781
|
et.__make = wi;
|
|
4782
|
-
function
|
|
4782
|
+
function nr(t, e) {
|
|
4783
4783
|
return t.__ownerID ? (t.size = e.size, t._map = e, t) : e === t._map ? t : e.size === 0 ? t.__empty() : t.__make(e);
|
|
4784
4784
|
}
|
|
4785
4785
|
function wi(t, e) {
|
|
@@ -4799,11 +4799,11 @@ function bi(t, e, r) {
|
|
|
4799
4799
|
function Si(t, e) {
|
|
4800
4800
|
return bi(this, t, e);
|
|
4801
4801
|
}
|
|
4802
|
-
function
|
|
4802
|
+
function wa(t, e) {
|
|
4803
4803
|
return bi(t, e, j) !== j;
|
|
4804
4804
|
}
|
|
4805
|
-
function
|
|
4806
|
-
return
|
|
4805
|
+
function ba(t) {
|
|
4806
|
+
return wa(this, t);
|
|
4807
4807
|
}
|
|
4808
4808
|
function Ii() {
|
|
4809
4809
|
pt(this.size);
|
|
@@ -4831,7 +4831,7 @@ function vr(t) {
|
|
|
4831
4831
|
r.push(vr(n));
|
|
4832
4832
|
}), r;
|
|
4833
4833
|
}
|
|
4834
|
-
function
|
|
4834
|
+
function Sa(t) {
|
|
4835
4835
|
if (t.size === 1 / 0)
|
|
4836
4836
|
return 0;
|
|
4837
4837
|
var e = Rt(t), r = B(t), n = e ? 1 : 0;
|
|
@@ -4843,9 +4843,9 @@ function Ia(t) {
|
|
|
4843
4843
|
n = 31 * n + ht(o) | 0;
|
|
4844
4844
|
} : function(o) {
|
|
4845
4845
|
n = n + ht(o) | 0;
|
|
4846
|
-
}),
|
|
4846
|
+
}), Ia(t.size, n);
|
|
4847
4847
|
}
|
|
4848
|
-
function
|
|
4848
|
+
function Ia(t, e) {
|
|
4849
4849
|
return e = Se(e, 3432918353), e = Se(e << 15 | e >>> -15, 461845907), e = Se(e << 13 | e >>> -13, 5), e = (e + 3864292196 | 0) ^ t, e = Se(e ^ e >>> 16, 2246822507), e = Se(e ^ e >>> 13, 3266489909), e = Ir(e ^ e >>> 16), e;
|
|
4850
4850
|
}
|
|
4851
4851
|
function mo(t, e) {
|
|
@@ -4884,7 +4884,7 @@ Gt(nt, {
|
|
|
4884
4884
|
return Mt(this.toKeyedSeq());
|
|
4885
4885
|
},
|
|
4886
4886
|
toOrderedSet: function() {
|
|
4887
|
-
return
|
|
4887
|
+
return Ve(B(this) ? this.valueSeq() : this);
|
|
4888
4888
|
},
|
|
4889
4889
|
toSet: function() {
|
|
4890
4890
|
return kr(B(this) ? this.valueSeq() : this);
|
|
@@ -4911,7 +4911,7 @@ Gt(nt, {
|
|
|
4911
4911
|
// ### ES6 Collection methods (ES6 Array and Map)
|
|
4912
4912
|
concat: function() {
|
|
4913
4913
|
for (var t = [], e = arguments.length; e--; ) t[e] = arguments[e];
|
|
4914
|
-
return V(this,
|
|
4914
|
+
return V(this, Gs(this, t));
|
|
4915
4915
|
},
|
|
4916
4916
|
includes: function(t) {
|
|
4917
4917
|
return this.some(function(e) {
|
|
@@ -4933,7 +4933,7 @@ Gt(nt, {
|
|
|
4933
4933
|
return V(this, Yo(this, t, e, !0));
|
|
4934
4934
|
},
|
|
4935
4935
|
partition: function(t, e) {
|
|
4936
|
-
return
|
|
4936
|
+
return Ks(this, t, e);
|
|
4937
4937
|
},
|
|
4938
4938
|
find: function(t, e, r) {
|
|
4939
4939
|
var n = this.findEntry(t, e);
|
|
@@ -5010,7 +5010,7 @@ Gt(nt, {
|
|
|
5010
5010
|
);
|
|
5011
5011
|
},
|
|
5012
5012
|
countBy: function(t, e) {
|
|
5013
|
-
return
|
|
5013
|
+
return Ws(this, t, e);
|
|
5014
5014
|
},
|
|
5015
5015
|
equals: function(t) {
|
|
5016
5016
|
return gi(this, t);
|
|
@@ -5019,7 +5019,7 @@ Gt(nt, {
|
|
|
5019
5019
|
var t = this;
|
|
5020
5020
|
if (t._cache)
|
|
5021
5021
|
return new ae(t._cache);
|
|
5022
|
-
var e = t.toSeq().map(
|
|
5022
|
+
var e = t.toSeq().map(ga).toIndexedSeq();
|
|
5023
5023
|
return e.fromEntrySeq = function() {
|
|
5024
5024
|
return t.toSeq();
|
|
5025
5025
|
}, e;
|
|
@@ -5051,7 +5051,7 @@ Gt(nt, {
|
|
|
5051
5051
|
return this.find(Po, null, t);
|
|
5052
5052
|
},
|
|
5053
5053
|
flatMap: function(t, e) {
|
|
5054
|
-
return V(this,
|
|
5054
|
+
return V(this, Qs(this, t, e));
|
|
5055
5055
|
},
|
|
5056
5056
|
flatten: function(t) {
|
|
5057
5057
|
return V(this, Zo(this, t, !0));
|
|
@@ -5066,12 +5066,12 @@ Gt(nt, {
|
|
|
5066
5066
|
},
|
|
5067
5067
|
getIn: Si,
|
|
5068
5068
|
groupBy: function(t, e) {
|
|
5069
|
-
return
|
|
5069
|
+
return Bs(this, t, e);
|
|
5070
5070
|
},
|
|
5071
5071
|
has: function(t) {
|
|
5072
5072
|
return this.get(t, j) !== j;
|
|
5073
5073
|
},
|
|
5074
|
-
hasIn:
|
|
5074
|
+
hasIn: ba,
|
|
5075
5075
|
isSubset: function(t) {
|
|
5076
5076
|
return t = typeof t.includes == "function" ? t : nt(t), this.every(function(e) {
|
|
5077
5077
|
return t.includes(e);
|
|
@@ -5086,7 +5086,7 @@ Gt(nt, {
|
|
|
5086
5086
|
});
|
|
5087
5087
|
},
|
|
5088
5088
|
keySeq: function() {
|
|
5089
|
-
return this.toSeq().map(
|
|
5089
|
+
return this.toSeq().map(_a).toIndexedSeq();
|
|
5090
5090
|
},
|
|
5091
5091
|
last: function(t) {
|
|
5092
5092
|
return this.toSeq().reverse().first(t);
|
|
@@ -5095,19 +5095,19 @@ Gt(nt, {
|
|
|
5095
5095
|
return this.toKeyedSeq().reverse().keyOf(t);
|
|
5096
5096
|
},
|
|
5097
5097
|
max: function(t) {
|
|
5098
|
-
return
|
|
5098
|
+
return tr(this, t);
|
|
5099
5099
|
},
|
|
5100
5100
|
maxBy: function(t, e) {
|
|
5101
|
-
return
|
|
5101
|
+
return tr(this, e, t);
|
|
5102
5102
|
},
|
|
5103
5103
|
min: function(t) {
|
|
5104
|
-
return
|
|
5104
|
+
return tr(
|
|
5105
5105
|
this,
|
|
5106
5106
|
t ? yo(t) : _o
|
|
5107
5107
|
);
|
|
5108
5108
|
},
|
|
5109
5109
|
minBy: function(t, e) {
|
|
5110
|
-
return
|
|
5110
|
+
return tr(
|
|
5111
5111
|
this,
|
|
5112
5112
|
e ? yo(e) : _o,
|
|
5113
5113
|
t
|
|
@@ -5138,7 +5138,7 @@ Gt(nt, {
|
|
|
5138
5138
|
return this.slice(-Math.max(0, t));
|
|
5139
5139
|
},
|
|
5140
5140
|
takeWhile: function(t, e) {
|
|
5141
|
-
return V(this,
|
|
5141
|
+
return V(this, Hs(this, t, e));
|
|
5142
5142
|
},
|
|
5143
5143
|
takeUntil: function(t, e) {
|
|
5144
5144
|
return this.takeWhile(qr(t), e);
|
|
@@ -5151,7 +5151,7 @@ Gt(nt, {
|
|
|
5151
5151
|
},
|
|
5152
5152
|
// ### Hashable Object
|
|
5153
5153
|
hashCode: function() {
|
|
5154
|
-
return this.__hash || (this.__hash =
|
|
5154
|
+
return this.__hash || (this.__hash = Sa(this));
|
|
5155
5155
|
}
|
|
5156
5156
|
// ### Internal
|
|
5157
5157
|
// abstract __iterate(fn, reverse)
|
|
@@ -5161,7 +5161,7 @@ var it = nt.prototype;
|
|
|
5161
5161
|
it[$o] = !0;
|
|
5162
5162
|
it[mr] = it.values;
|
|
5163
5163
|
it.toJSON = it.toArray;
|
|
5164
|
-
it.__toStringMapper =
|
|
5164
|
+
it.__toStringMapper = Te;
|
|
5165
5165
|
it.inspect = it.toSource = function() {
|
|
5166
5166
|
return this.toString();
|
|
5167
5167
|
};
|
|
@@ -5191,12 +5191,12 @@ Gt(Et, {
|
|
|
5191
5191
|
);
|
|
5192
5192
|
}
|
|
5193
5193
|
});
|
|
5194
|
-
var
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
return
|
|
5194
|
+
var Je = Et.prototype;
|
|
5195
|
+
Je[pr] = !0;
|
|
5196
|
+
Je[mr] = it.entries;
|
|
5197
|
+
Je.toJSON = Ii;
|
|
5198
|
+
Je.__toStringMapper = function(t, e) {
|
|
5199
|
+
return Te(e) + ": " + Te(t);
|
|
5200
5200
|
};
|
|
5201
5201
|
Gt(Ht, {
|
|
5202
5202
|
// ### Conversion to other types
|
|
@@ -5229,7 +5229,7 @@ Gt(Ht, {
|
|
|
5229
5229
|
var r = arguments.length;
|
|
5230
5230
|
if (e = Math.max(e || 0, 0), r === 0 || r === 2 && !e)
|
|
5231
5231
|
return this;
|
|
5232
|
-
t =
|
|
5232
|
+
t = We(t, t < 0 ? this.count() : this.size);
|
|
5233
5233
|
var n = this.slice(0, t);
|
|
5234
5234
|
return V(
|
|
5235
5235
|
this,
|
|
@@ -5256,14 +5256,14 @@ Gt(Ht, {
|
|
|
5256
5256
|
return t = qt(this, t), t >= 0 && (this.size !== void 0 ? this.size === 1 / 0 || t < this.size : this.indexOf(t) !== -1);
|
|
5257
5257
|
},
|
|
5258
5258
|
interpose: function(t) {
|
|
5259
|
-
return V(this,
|
|
5259
|
+
return V(this, Ys(this, t));
|
|
5260
5260
|
},
|
|
5261
5261
|
interleave: function() {
|
|
5262
|
-
var t = [this].concat(Dt(arguments)), e =
|
|
5262
|
+
var t = [this].concat(Dt(arguments)), e = er(this.toSeq(), kt.of, t), r = e.flatten(!0);
|
|
5263
5263
|
return e.size && (r.size = e.size * t.length), V(this, r);
|
|
5264
5264
|
},
|
|
5265
5265
|
keySeq: function() {
|
|
5266
|
-
return
|
|
5266
|
+
return ma(0, this.size);
|
|
5267
5267
|
},
|
|
5268
5268
|
last: function(t) {
|
|
5269
5269
|
return this.get(-1, t);
|
|
@@ -5273,15 +5273,15 @@ Gt(Ht, {
|
|
|
5273
5273
|
},
|
|
5274
5274
|
zip: function() {
|
|
5275
5275
|
var t = [this].concat(Dt(arguments));
|
|
5276
|
-
return V(this,
|
|
5276
|
+
return V(this, er(this, wo, t));
|
|
5277
5277
|
},
|
|
5278
5278
|
zipAll: function() {
|
|
5279
5279
|
var t = [this].concat(Dt(arguments));
|
|
5280
|
-
return V(this,
|
|
5280
|
+
return V(this, er(this, wo, t, !0));
|
|
5281
5281
|
},
|
|
5282
5282
|
zipWith: function(t) {
|
|
5283
5283
|
var e = Dt(arguments);
|
|
5284
|
-
return e[0] = this, V(this,
|
|
5284
|
+
return e[0] = this, V(this, er(this, t, e));
|
|
5285
5285
|
}
|
|
5286
5286
|
});
|
|
5287
5287
|
var we = Ht.prototype;
|
|
@@ -5304,7 +5304,7 @@ var he = de.prototype;
|
|
|
5304
5304
|
he.has = it.includes;
|
|
5305
5305
|
he.contains = he.includes;
|
|
5306
5306
|
he.keys = he.values;
|
|
5307
|
-
Gt(Ut,
|
|
5307
|
+
Gt(Ut, Je);
|
|
5308
5308
|
Gt(kt, we);
|
|
5309
5309
|
Gt(_e, he);
|
|
5310
5310
|
function wo() {
|
|
@@ -5313,7 +5313,7 @@ function wo() {
|
|
|
5313
5313
|
function Ei(t) {
|
|
5314
5314
|
return Tn(t) && Rt(t);
|
|
5315
5315
|
}
|
|
5316
|
-
var
|
|
5316
|
+
var Ve = /* @__PURE__ */ (function(t) {
|
|
5317
5317
|
function e(r) {
|
|
5318
5318
|
return r == null ? an() : Ei(r) ? r : an().withMutations(function(n) {
|
|
5319
5319
|
var o = de(r);
|
|
@@ -5330,8 +5330,8 @@ var qe = /* @__PURE__ */ (function(t) {
|
|
|
5330
5330
|
return this.__toString("OrderedSet {", "}");
|
|
5331
5331
|
}, e;
|
|
5332
5332
|
})(kr);
|
|
5333
|
-
|
|
5334
|
-
var Qt =
|
|
5333
|
+
Ve.isOrderedSet = Ei;
|
|
5334
|
+
var Qt = Ve.prototype;
|
|
5335
5335
|
Qt[Vt] = !0;
|
|
5336
5336
|
Qt.zip = we.zip;
|
|
5337
5337
|
Qt.zipWith = we.zipWith;
|
|
@@ -5346,7 +5346,7 @@ var bo;
|
|
|
5346
5346
|
function an() {
|
|
5347
5347
|
return bo || (bo = Oi(Ee()));
|
|
5348
5348
|
}
|
|
5349
|
-
function
|
|
5349
|
+
function Ea(t) {
|
|
5350
5350
|
if (Jt(t))
|
|
5351
5351
|
throw new Error(
|
|
5352
5352
|
"Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead."
|
|
@@ -5362,7 +5362,7 @@ function Oa(t) {
|
|
|
5362
5362
|
}
|
|
5363
5363
|
var tt = function(t, e) {
|
|
5364
5364
|
var r;
|
|
5365
|
-
|
|
5365
|
+
Ea(t);
|
|
5366
5366
|
var n = function(i) {
|
|
5367
5367
|
var s = this;
|
|
5368
5368
|
if (i instanceof n)
|
|
@@ -5377,7 +5377,7 @@ var tt = function(t, e) {
|
|
|
5377
5377
|
var l = a[c];
|
|
5378
5378
|
u[l] = c, o[l] ? typeof console == "object" && console.warn && console.warn(
|
|
5379
5379
|
"Cannot define " + qn(this) + ' with property "' + l + '" since that property name is part of the Record API.'
|
|
5380
|
-
) :
|
|
5380
|
+
) : Oa(o, l);
|
|
5381
5381
|
}
|
|
5382
5382
|
}
|
|
5383
5383
|
return this.__ownerID = void 0, this._values = Or().withMutations(function(f) {
|
|
@@ -5390,7 +5390,7 @@ var tt = function(t, e) {
|
|
|
5390
5390
|
};
|
|
5391
5391
|
tt.prototype.toString = function() {
|
|
5392
5392
|
for (var t = qn(this) + " { ", e = this._keys, r, n = 0, o = e.length; n !== o; n++)
|
|
5393
|
-
r = e[n], t += (n ? ", " : "") + r + ": " +
|
|
5393
|
+
r = e[n], t += (n ? ", " : "") + r + ": " + Te(this.get(r));
|
|
5394
5394
|
return t + " }";
|
|
5395
5395
|
};
|
|
5396
5396
|
tt.prototype.equals = function(t) {
|
|
@@ -5454,7 +5454,7 @@ tt.isRecord = Jt;
|
|
|
5454
5454
|
tt.getDescriptiveName = qn;
|
|
5455
5455
|
var F = tt.prototype;
|
|
5456
5456
|
F[Lo] = !0;
|
|
5457
|
-
F[
|
|
5457
|
+
F[Fe] = F.remove;
|
|
5458
5458
|
F.deleteIn = F.removeIn = xn;
|
|
5459
5459
|
F.getIn = Si;
|
|
5460
5460
|
F.hasIn = it.hasIn;
|
|
@@ -5467,9 +5467,9 @@ F.mergeDeepIn = En;
|
|
|
5467
5467
|
F.setIn = kn;
|
|
5468
5468
|
F.update = Dn;
|
|
5469
5469
|
F.updateIn = An;
|
|
5470
|
-
F.withMutations =
|
|
5471
|
-
F.asMutable =
|
|
5472
|
-
F.asImmutable =
|
|
5470
|
+
F.withMutations = He;
|
|
5471
|
+
F.asMutable = Ke;
|
|
5472
|
+
F.asImmutable = Be;
|
|
5473
5473
|
F[mr] = F.entries;
|
|
5474
5474
|
F.toJSON = F.toObject = it.toObject;
|
|
5475
5475
|
F.inspect = F.toSource = function() {
|
|
@@ -5487,42 +5487,42 @@ function pe(t) {
|
|
|
5487
5487
|
return [e, t.get(e)];
|
|
5488
5488
|
}));
|
|
5489
5489
|
}
|
|
5490
|
-
function
|
|
5490
|
+
function Oa(t, e) {
|
|
5491
5491
|
try {
|
|
5492
5492
|
Object.defineProperty(t, e, {
|
|
5493
5493
|
get: function() {
|
|
5494
5494
|
return this.get(e);
|
|
5495
5495
|
},
|
|
5496
5496
|
set: function(r) {
|
|
5497
|
-
|
|
5497
|
+
Re(this.__ownerID, "Cannot set on an immutable record."), this.set(e, r);
|
|
5498
5498
|
}
|
|
5499
5499
|
});
|
|
5500
5500
|
} catch {
|
|
5501
5501
|
}
|
|
5502
5502
|
}
|
|
5503
5503
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5504
|
-
function
|
|
5504
|
+
function ka(t, e) {
|
|
5505
5505
|
return un() ? (cn(t, e), !0) : !1;
|
|
5506
5506
|
}
|
|
5507
5507
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5508
|
-
const
|
|
5508
|
+
const Da = () => {
|
|
5509
5509
|
};
|
|
5510
|
-
function
|
|
5510
|
+
function Aa(...t) {
|
|
5511
5511
|
if (t.length !== 1) return Bt(...t);
|
|
5512
5512
|
const e = t[0];
|
|
5513
5513
|
return typeof e == "function" ? gr(ln(() => ({
|
|
5514
5514
|
get: e,
|
|
5515
|
-
set:
|
|
5515
|
+
set: Da
|
|
5516
5516
|
}))) : C(e);
|
|
5517
5517
|
}
|
|
5518
5518
|
function Lr(t) {
|
|
5519
5519
|
return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
|
|
5520
5520
|
}
|
|
5521
5521
|
const Ur = /* @__PURE__ */ new WeakMap();
|
|
5522
|
-
function
|
|
5523
|
-
const r =
|
|
5522
|
+
function za(t, e = !1) {
|
|
5523
|
+
const r = Ue(e);
|
|
5524
5524
|
let n = "";
|
|
5525
|
-
ot(
|
|
5525
|
+
ot(Aa(t), (s) => {
|
|
5526
5526
|
const a = Lr(St(s));
|
|
5527
5527
|
if (a) {
|
|
5528
5528
|
const u = a;
|
|
@@ -5537,7 +5537,7 @@ function Ra(t, e = !1) {
|
|
|
5537
5537
|
const s = Lr(St(t));
|
|
5538
5538
|
!s || !r.value || (s.style.overflow = n, Ur.delete(s), r.value = !1);
|
|
5539
5539
|
};
|
|
5540
|
-
return
|
|
5540
|
+
return ka(i), N({
|
|
5541
5541
|
get() {
|
|
5542
5542
|
return r.value;
|
|
5543
5543
|
},
|
|
@@ -5546,45 +5546,45 @@ function Ra(t, e = !1) {
|
|
|
5546
5546
|
}
|
|
5547
5547
|
});
|
|
5548
5548
|
}
|
|
5549
|
-
function
|
|
5549
|
+
function Ra() {
|
|
5550
5550
|
let t = !1;
|
|
5551
|
-
const e =
|
|
5551
|
+
const e = Ue(!1);
|
|
5552
5552
|
return (r, n) => {
|
|
5553
5553
|
if (e.value = n.value, t) return;
|
|
5554
5554
|
t = !0;
|
|
5555
|
-
const o =
|
|
5555
|
+
const o = za(r, n.value);
|
|
5556
5556
|
ot(e, (i) => o.value = i);
|
|
5557
5557
|
};
|
|
5558
5558
|
}
|
|
5559
|
-
|
|
5560
|
-
const
|
|
5559
|
+
Ra();
|
|
5560
|
+
const Ca = (t, e) => {
|
|
5561
5561
|
const r = t.__vccOpts || t;
|
|
5562
5562
|
for (const [n, o] of e)
|
|
5563
5563
|
r[n] = o;
|
|
5564
5564
|
return r;
|
|
5565
5565
|
};
|
|
5566
|
-
function
|
|
5566
|
+
function Na(t, e) {
|
|
5567
5567
|
return un() ? (cn(t, e), !0) : !1;
|
|
5568
5568
|
}
|
|
5569
5569
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5570
|
-
const
|
|
5570
|
+
const ja = () => {
|
|
5571
5571
|
};
|
|
5572
|
-
function
|
|
5572
|
+
function xa(...t) {
|
|
5573
5573
|
if (t.length !== 1) return Bt(...t);
|
|
5574
5574
|
const e = t[0];
|
|
5575
5575
|
return typeof e == "function" ? gr(ln(() => ({
|
|
5576
5576
|
get: e,
|
|
5577
|
-
set:
|
|
5577
|
+
set: ja
|
|
5578
5578
|
}))) : C(e);
|
|
5579
5579
|
}
|
|
5580
5580
|
function Fr(t) {
|
|
5581
5581
|
return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
|
|
5582
5582
|
}
|
|
5583
5583
|
const Wr = /* @__PURE__ */ new WeakMap();
|
|
5584
|
-
function
|
|
5585
|
-
const r =
|
|
5584
|
+
function $a(t, e = !1) {
|
|
5585
|
+
const r = Ue(e);
|
|
5586
5586
|
let n = "";
|
|
5587
|
-
ot(
|
|
5587
|
+
ot(xa(t), (s) => {
|
|
5588
5588
|
const a = Fr(St(s));
|
|
5589
5589
|
if (a) {
|
|
5590
5590
|
const u = a;
|
|
@@ -5599,7 +5599,7 @@ function Ma(t, e = !1) {
|
|
|
5599
5599
|
const s = Fr(St(t));
|
|
5600
5600
|
!s || !r.value || (s.style.overflow = n, Wr.delete(s), r.value = !1);
|
|
5601
5601
|
};
|
|
5602
|
-
return
|
|
5602
|
+
return Na(i), N({
|
|
5603
5603
|
get() {
|
|
5604
5604
|
return r.value;
|
|
5605
5605
|
},
|
|
@@ -5608,25 +5608,25 @@ function Ma(t, e = !1) {
|
|
|
5608
5608
|
}
|
|
5609
5609
|
});
|
|
5610
5610
|
}
|
|
5611
|
-
function
|
|
5611
|
+
function Ma() {
|
|
5612
5612
|
let t = !1;
|
|
5613
|
-
const e =
|
|
5613
|
+
const e = Ue(!1);
|
|
5614
5614
|
return (r, n) => {
|
|
5615
5615
|
if (e.value = n.value, t) return;
|
|
5616
5616
|
t = !0;
|
|
5617
|
-
const o =
|
|
5617
|
+
const o = $a(r, n.value);
|
|
5618
5618
|
ot(e, (i) => o.value = i);
|
|
5619
5619
|
};
|
|
5620
5620
|
}
|
|
5621
|
-
|
|
5621
|
+
Ma();
|
|
5622
5622
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
5623
|
-
const
|
|
5623
|
+
const Ta = { class: "aform" }, Pa = {
|
|
5624
5624
|
key: 0,
|
|
5625
5625
|
class: "aform-nested-section"
|
|
5626
|
-
},
|
|
5626
|
+
}, qa = {
|
|
5627
5627
|
key: 0,
|
|
5628
5628
|
class: "aform-nested-label"
|
|
5629
|
-
},
|
|
5629
|
+
}, Va = /* @__PURE__ */ Le({
|
|
5630
5630
|
__name: "AForm",
|
|
5631
5631
|
props: /* @__PURE__ */ Un({
|
|
5632
5632
|
schema: {},
|
|
@@ -5675,10 +5675,10 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5675
5675
|
})));
|
|
5676
5676
|
});
|
|
5677
5677
|
const l = N(() => c.value);
|
|
5678
|
-
return (f, h) => (M(), U("form",
|
|
5679
|
-
(M(!0), U(ne, null,
|
|
5680
|
-
"schema" in d && Array.isArray(d.schema) && d.schema.length > 0 ? (M(), U("div",
|
|
5681
|
-
d.label && !("collapsible" in d) ? (M(), U("h4",
|
|
5678
|
+
return (f, h) => (M(), U("form", Ta, [
|
|
5679
|
+
(M(!0), U(ne, null, Ne(t.schema, (d, y) => (M(), U(ne, { key: y }, [
|
|
5680
|
+
"schema" in d && Array.isArray(d.schema) && d.schema.length > 0 ? (M(), U("div", Pa, [
|
|
5681
|
+
d.label && !("collapsible" in d) ? (M(), U("h4", qa, At(d.label), 1)) : ee("", !0),
|
|
5682
5682
|
(M(), ar(Ln(d.component ?? "AForm"), {
|
|
5683
5683
|
data: o.value[d.fieldname],
|
|
5684
5684
|
mode: u(d),
|
|
@@ -5698,7 +5698,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5698
5698
|
], 64))), 128))
|
|
5699
5699
|
]));
|
|
5700
5700
|
}
|
|
5701
|
-
}),
|
|
5701
|
+
}), La = /* @__PURE__ */ Ca(Va, [["__scopeId", "data-v-8d4cd672"]]), Ua = { class: "tabs" }, Fa = { tabindex: "0" }, Wa = { tabindex: "0" }, Ba = /* @__PURE__ */ Le({
|
|
5702
5702
|
__name: "SheetNav",
|
|
5703
5703
|
props: {
|
|
5704
5704
|
breadcrumbs: { default: () => [] }
|
|
@@ -5719,13 +5719,13 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5719
5719
|
return (f, h) => {
|
|
5720
5720
|
const d = $i("router-link");
|
|
5721
5721
|
return M(), U("footer", null, [
|
|
5722
|
-
$("ul",
|
|
5722
|
+
$("ul", Ua, [
|
|
5723
5723
|
$("li", {
|
|
5724
5724
|
class: "hidebreadcrumbs",
|
|
5725
5725
|
onClick: s,
|
|
5726
5726
|
onKeydown: be(s, ["enter"])
|
|
5727
5727
|
}, [
|
|
5728
|
-
$("a",
|
|
5728
|
+
$("a", Fa, [
|
|
5729
5729
|
$("div", {
|
|
5730
5730
|
class: te(i.value)
|
|
5731
5731
|
}, "×", 2)
|
|
@@ -5741,7 +5741,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5741
5741
|
to: "/",
|
|
5742
5742
|
tabindex: "0"
|
|
5743
5743
|
}, {
|
|
5744
|
-
default:
|
|
5744
|
+
default: je(() => [...h[5] || (h[5] = [
|
|
5745
5745
|
$("svg", {
|
|
5746
5746
|
class: "icon",
|
|
5747
5747
|
"aria-label": "Home",
|
|
@@ -5761,7 +5761,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5761
5761
|
class: te(["searchtab", { "search-active": r.value }]),
|
|
5762
5762
|
style: Rr({ display: e.value ? "block" : "none" })
|
|
5763
5763
|
}, [
|
|
5764
|
-
$("a",
|
|
5764
|
+
$("a", Wa, [
|
|
5765
5765
|
sr((M(), U("svg", {
|
|
5766
5766
|
class: "icon search-icon",
|
|
5767
5767
|
role: "button",
|
|
@@ -5801,7 +5801,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5801
5801
|
])
|
|
5802
5802
|
])
|
|
5803
5803
|
], 6),
|
|
5804
|
-
(M(!0), U(ne, null,
|
|
5804
|
+
(M(!0), U(ne, null, Ne(t.breadcrumbs, (y) => (M(), U("li", {
|
|
5805
5805
|
key: y.title,
|
|
5806
5806
|
style: Rr({ display: e.value ? "block" : "none" })
|
|
5807
5807
|
}, [
|
|
@@ -5809,7 +5809,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5809
5809
|
tabindex: "0",
|
|
5810
5810
|
to: y.to
|
|
5811
5811
|
}, {
|
|
5812
|
-
default:
|
|
5812
|
+
default: je(() => [
|
|
5813
5813
|
ur(At(y.title), 1)
|
|
5814
5814
|
]),
|
|
5815
5815
|
_: 2
|
|
@@ -5819,13 +5819,13 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5819
5819
|
]);
|
|
5820
5820
|
};
|
|
5821
5821
|
}
|
|
5822
|
-
}), ki = /* @__PURE__ */ Ao(
|
|
5822
|
+
}), ki = /* @__PURE__ */ Ao(Ba, [["__scopeId", "data-v-eb5bcbb6"]]), Ka = {
|
|
5823
5823
|
key: 1,
|
|
5824
5824
|
class: "loading"
|
|
5825
|
-
},
|
|
5825
|
+
}, Ha = {
|
|
5826
5826
|
key: 2,
|
|
5827
5827
|
class: "loading"
|
|
5828
|
-
},
|
|
5828
|
+
}, Ja = /* @__PURE__ */ Le({
|
|
5829
5829
|
__name: "Desktop",
|
|
5830
5830
|
props: {
|
|
5831
5831
|
availableDoctypes: {},
|
|
@@ -5835,7 +5835,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5835
5835
|
},
|
|
5836
5836
|
emits: ["action", "navigate", "record:open", "load-records", "load-record"],
|
|
5837
5837
|
setup(t, { emit: e }) {
|
|
5838
|
-
const r = t, n = e, { availableDoctypes: o = [] } = r, { stonecrop: i } =
|
|
5838
|
+
const r = t, n = e, { availableDoctypes: o = [] } = r, { stonecrop: i } = zs(), s = C(!1), a = C(!1), u = N({
|
|
5839
5839
|
get() {
|
|
5840
5840
|
if (!i.value || !f.value || !d.value)
|
|
5841
5841
|
return {};
|
|
@@ -5857,7 +5857,7 @@ const Pa = { class: "aform" }, qa = {
|
|
|
5857
5857
|
console.warn("HST update failed:", p);
|
|
5858
5858
|
}
|
|
5859
5859
|
}
|
|
5860
|
-
}), c = N(() => r.routeAdapter ? null :
|
|
5860
|
+
}), c = N(() => r.routeAdapter ? null : or(i.value?.registry.router?.currentRoute)), l = N(() => r.routeAdapter ? null : i.value?.registry.router), f = N(() => {
|
|
5861
5861
|
if (r.routeAdapter) return r.routeAdapter.getCurrentDoctype();
|
|
5862
5862
|
if (!c.value) return "";
|
|
5863
5863
|
if (c.value.meta?.actualDoctype)
|
|
@@ -6170,8 +6170,8 @@ const Pa = { class: "aform" }, qa = {
|
|
|
6170
6170
|
if (D === "View Records" && R) {
|
|
6171
6171
|
const Z = R.querySelectorAll("td");
|
|
6172
6172
|
if (Z.length > 0) {
|
|
6173
|
-
const
|
|
6174
|
-
|
|
6173
|
+
const Ge = Z[1].textContent?.trim();
|
|
6174
|
+
Ge && await jt(Ge);
|
|
6175
6175
|
}
|
|
6176
6176
|
} else if (D?.includes("Edit") && R) {
|
|
6177
6177
|
const Z = _(R);
|
|
@@ -6231,14 +6231,14 @@ const Pa = { class: "aform" }, qa = {
|
|
|
6231
6231
|
elements: T.value,
|
|
6232
6232
|
onActionClick: xt
|
|
6233
6233
|
}, null, 8, ["elements"]),
|
|
6234
|
-
G.value.length > 0 ? (M(), ar(
|
|
6234
|
+
G.value.length > 0 ? (M(), ar(or(La), {
|
|
6235
6235
|
key: 0,
|
|
6236
6236
|
data: u.value,
|
|
6237
6237
|
"onUpdate:data": p[0] || (p[0] = (w) => u.value = w),
|
|
6238
6238
|
schema: G.value
|
|
6239
|
-
}, null, 8, ["data", "schema"])) :
|
|
6239
|
+
}, null, 8, ["data", "schema"])) : or(i) ? (M(), U("div", Ha, [
|
|
6240
6240
|
$("p", null, "Loading " + At(m.value) + " data...", 1)
|
|
6241
|
-
])) : (M(), U("div",
|
|
6241
|
+
])) : (M(), U("div", Ka, [...p[2] || (p[2] = [
|
|
6242
6242
|
$("p", null, "Initializing Stonecrop...", -1)
|
|
6243
6243
|
])])),
|
|
6244
6244
|
re(ki, { breadcrumbs: rt.value }, null, 8, ["breadcrumbs"]),
|
|
@@ -6249,26 +6249,26 @@ const Pa = { class: "aform" }, qa = {
|
|
|
6249
6249
|
onSelect: Ot,
|
|
6250
6250
|
onClose: p[1] || (p[1] = (w) => a.value = !1)
|
|
6251
6251
|
}, {
|
|
6252
|
-
title:
|
|
6252
|
+
title: je(({ result: w }) => [
|
|
6253
6253
|
ur(At(w.title), 1)
|
|
6254
6254
|
]),
|
|
6255
|
-
content:
|
|
6255
|
+
content: je(({ result: w }) => [
|
|
6256
6256
|
ur(At(w.description), 1)
|
|
6257
6257
|
]),
|
|
6258
6258
|
_: 1
|
|
6259
6259
|
}, 8, ["is-open"])
|
|
6260
6260
|
]));
|
|
6261
6261
|
}
|
|
6262
|
-
}),
|
|
6262
|
+
}), Qa = {
|
|
6263
6263
|
install: (t) => {
|
|
6264
|
-
t.component("ActionSet", zo), t.component("CommandPalette", Ro), t.component("Desktop",
|
|
6264
|
+
t.component("ActionSet", zo), t.component("CommandPalette", Ro), t.component("Desktop", Ja), t.component("SheetNav", ki);
|
|
6265
6265
|
}
|
|
6266
6266
|
};
|
|
6267
6267
|
export {
|
|
6268
6268
|
zo as ActionSet,
|
|
6269
6269
|
Ro as CommandPalette,
|
|
6270
|
-
|
|
6270
|
+
Ja as Desktop,
|
|
6271
6271
|
ki as SheetNav,
|
|
6272
|
-
|
|
6272
|
+
Qa as StonecropDesktop
|
|
6273
6273
|
};
|
|
6274
6274
|
//# sourceMappingURL=desktop.js.map
|