@arbocollab/arbo-plugin-item-table 0.0.7 → 0.0.8
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/lib/es/index.es.js +77 -81
- package/lib/umd/index.umd.js +16 -16
- package/package.json +1 -1
package/lib/es/index.es.js
CHANGED
|
@@ -1738,7 +1738,7 @@ function ZM() {
|
|
|
1738
1738
|
isUnmounting: !1,
|
|
1739
1739
|
leavingVNodes: /* @__PURE__ */ new Map()
|
|
1740
1740
|
};
|
|
1741
|
-
return
|
|
1741
|
+
return dn(() => {
|
|
1742
1742
|
e.isMounted = !0;
|
|
1743
1743
|
}), $n(() => {
|
|
1744
1744
|
e.isUnmounting = !0;
|
|
@@ -2021,7 +2021,7 @@ function Vp(e, t, n = An, i = !1) {
|
|
|
2021
2021
|
}
|
|
2022
2022
|
const Go = (e) => (t, n = An) => {
|
|
2023
2023
|
(!ku || e === "sp") && Vp(e, (...i) => t(...i), n);
|
|
2024
|
-
}, xC = Go("bm"),
|
|
2024
|
+
}, xC = Go("bm"), dn = Go("m"), Bx = Go(
|
|
2025
2025
|
"bu"
|
|
2026
2026
|
), Bp = Go("u"), $n = Go(
|
|
2027
2027
|
"bum"
|
|
@@ -2432,7 +2432,7 @@ function fL(e) {
|
|
|
2432
2432
|
function U(V, J) {
|
|
2433
2433
|
at(J) ? J.forEach((G) => V(G.bind(n))) : J && V(J.bind(n));
|
|
2434
2434
|
}
|
|
2435
|
-
if (U(xC, d), U(
|
|
2435
|
+
if (U(xC, d), U(dn, h), U(Bx, f), U(Bp, g), U(XM, y), U(eL, v), U(oL, I), U(sL, S), U(iL, F), U($n, E), U(lc, w), U(nL, k), at(O))
|
|
2436
2436
|
if (O.length) {
|
|
2437
2437
|
const V = e.exposed || (e.exposed = {});
|
|
2438
2438
|
O.forEach((J) => {
|
|
@@ -5238,7 +5238,7 @@ function vN(e) {
|
|
|
5238
5238
|
};
|
|
5239
5239
|
Bx(() => {
|
|
5240
5240
|
SC(i);
|
|
5241
|
-
}),
|
|
5241
|
+
}), dn(() => {
|
|
5242
5242
|
ft(i, In, { flush: "post" });
|
|
5243
5243
|
const s = new MutationObserver(i);
|
|
5244
5244
|
s.observe(t.subTree.el.parentNode, { childList: !0 }), lc(() => s.disconnect());
|
|
@@ -8717,7 +8717,7 @@ var n_ = { exports: {} };
|
|
|
8717
8717
|
function Vd(p) {
|
|
8718
8718
|
return new Me(et, !1, p);
|
|
8719
8719
|
}
|
|
8720
|
-
function
|
|
8720
|
+
function cn(p, m) {
|
|
8721
8721
|
var C = ve;
|
|
8722
8722
|
return function() {
|
|
8723
8723
|
var D = Yo(), T = ve;
|
|
@@ -9297,7 +9297,7 @@ var n_ = { exports: {} };
|
|
|
9297
9297
|
return Bb(Vb(p, D, C), Br(p.algorithm, T), m, !p.keysOnly && p.valueMapper);
|
|
9298
9298
|
}
|
|
9299
9299
|
function Bb(p, m, C, D) {
|
|
9300
|
-
var T =
|
|
9300
|
+
var T = cn(D ? function(A, M, B) {
|
|
9301
9301
|
return C(D(A), M, B);
|
|
9302
9302
|
} : C);
|
|
9303
9303
|
return p.then(function(A) {
|
|
@@ -9796,7 +9796,7 @@ var n_ = { exports: {} };
|
|
|
9796
9796
|
function Vn() {
|
|
9797
9797
|
}
|
|
9798
9798
|
function Ts(p) {
|
|
9799
|
-
return
|
|
9799
|
+
return cn(function(m) {
|
|
9800
9800
|
return Dc(m), p(m.target.error), !1;
|
|
9801
9801
|
});
|
|
9802
9802
|
}
|
|
@@ -9829,11 +9829,11 @@ var n_ = { exports: {} };
|
|
|
9829
9829
|
throw new Ze.OpenFailed(D);
|
|
9830
9830
|
}
|
|
9831
9831
|
if (!this.active) throw new Ze.TransactionInactive();
|
|
9832
|
-
return w(this._completion._state === null), (p = this.idbtrans = p || (this.db.core || C).transaction(this.storeNames, this.mode, { durability: this.chromeTransactionDurability })).onerror =
|
|
9832
|
+
return w(this._completion._state === null), (p = this.idbtrans = p || (this.db.core || C).transaction(this.storeNames, this.mode, { durability: this.chromeTransactionDurability })).onerror = cn(function(T) {
|
|
9833
9833
|
Dc(T), m._reject(p.error);
|
|
9834
|
-
}), p.onabort =
|
|
9834
|
+
}), p.onabort = cn(function(T) {
|
|
9835
9835
|
Dc(T), m.active && m._reject(new Ze.Abort(p.error)), m.active = !1, m.on("abort").fire(T);
|
|
9836
|
-
}), p.oncomplete =
|
|
9836
|
+
}), p.oncomplete = cn(function() {
|
|
9837
9837
|
m.active = !1, m._resolve(), "mutatedParts" in p && tr.storagemutated.fire(p.mutatedParts);
|
|
9838
9838
|
}), this;
|
|
9839
9839
|
}, _s.prototype._promise = function(p, m, C) {
|
|
@@ -9873,9 +9873,9 @@ var n_ = { exports: {} };
|
|
|
9873
9873
|
var T = C._waitingFor;
|
|
9874
9874
|
return new Me(function(A, M) {
|
|
9875
9875
|
D.then(function(B) {
|
|
9876
|
-
return C._waitingQueue.push(
|
|
9876
|
+
return C._waitingQueue.push(cn(A.bind(null, B)));
|
|
9877
9877
|
}, function(B) {
|
|
9878
|
-
return C._waitingQueue.push(
|
|
9878
|
+
return C._waitingQueue.push(cn(M.bind(null, B)));
|
|
9879
9879
|
}).finally(function() {
|
|
9880
9880
|
C._waitingFor === T && (C._waitingFor = null);
|
|
9881
9881
|
});
|
|
@@ -9946,7 +9946,7 @@ var n_ = { exports: {} };
|
|
|
9946
9946
|
return { name: te, schema: oe, mutate: function(se) {
|
|
9947
9947
|
var X = se.trans, le = se.type, de = se.keys, fe = se.values, Ee = se.range;
|
|
9948
9948
|
return new Promise(function(Ve, je) {
|
|
9949
|
-
Ve =
|
|
9949
|
+
Ve = cn(Ve);
|
|
9950
9950
|
var Be = X.objectStore(te), Ge = Be.keyPath == null, Ke = le === "put" || le === "add";
|
|
9951
9951
|
if (!Ke && le !== "delete" && le !== "deleteRange") throw new Error("Invalid operation type: " + le);
|
|
9952
9952
|
var Ue, Xe = (de || fe || { length: 1 }).length;
|
|
@@ -9978,7 +9978,7 @@ var n_ = { exports: {} };
|
|
|
9978
9978
|
}, getMany: function(se) {
|
|
9979
9979
|
var X = se.trans, le = se.keys;
|
|
9980
9980
|
return new Promise(function(de, fe) {
|
|
9981
|
-
de =
|
|
9981
|
+
de = cn(de);
|
|
9982
9982
|
for (var Ee, Ve = X.objectStore(te), je = le.length, Be = new Array(je), Ge = 0, Ke = 0, Ue = function(Ot) {
|
|
9983
9983
|
Ot = Ot.target, Be[Ot._pos] = Ot.result, ++Ke === Ge && de(Be);
|
|
9984
9984
|
}, Xe = Ts(fe), It = 0; It < je; ++It) le[It] != null && ((Ee = Ve.get(le[It]))._pos = It, Ee.onsuccess = Ue, Ee.onerror = Xe, ++Ge);
|
|
@@ -9987,7 +9987,7 @@ var n_ = { exports: {} };
|
|
|
9987
9987
|
}, get: function(se) {
|
|
9988
9988
|
var X = se.trans, le = se.key;
|
|
9989
9989
|
return new Promise(function(de, fe) {
|
|
9990
|
-
de =
|
|
9990
|
+
de = cn(de);
|
|
9991
9991
|
var Ee = X.objectStore(te).get(le);
|
|
9992
9992
|
Ee.onsuccess = function(Ve) {
|
|
9993
9993
|
return de(Ve.target.result);
|
|
@@ -9995,7 +9995,7 @@ var n_ = { exports: {} };
|
|
|
9995
9995
|
});
|
|
9996
9996
|
}, query: (Z = Q, function(se) {
|
|
9997
9997
|
return new Promise(function(X, le) {
|
|
9998
|
-
X =
|
|
9998
|
+
X = cn(X);
|
|
9999
9999
|
var de, fe, Ee, Ge = se.trans, Ve = se.values, je = se.limit, Ue = se.query, Be = je === 1 / 0 ? void 0 : je, Ke = Ue.index, Ue = Ue.range, Ge = Ge.objectStore(te), Ke = Ke.isPrimaryKey ? Ge : Ge.index(Ke.name), Ue = D(Ue);
|
|
10000
10000
|
if (je === 0) return X({ result: [] });
|
|
10001
10001
|
Z ? ((Be = Ve ? Ke.getAll(Ue, Be) : Ke.getAllKeys(Ue, Be)).onsuccess = function(Xe) {
|
|
@@ -10008,15 +10008,15 @@ var n_ = { exports: {} };
|
|
|
10008
10008
|
}), openCursor: function(se) {
|
|
10009
10009
|
var X = se.trans, le = se.values, de = se.query, fe = se.reverse, Ee = se.unique;
|
|
10010
10010
|
return new Promise(function(Ve, je) {
|
|
10011
|
-
Ve =
|
|
10011
|
+
Ve = cn(Ve);
|
|
10012
10012
|
var Ke = de.index, Be = de.range, Ge = X.objectStore(te), Ge = Ke.isPrimaryKey ? Ge : Ge.index(Ke.name), Ke = fe ? Ee ? "prevunique" : "prev" : Ee ? "nextunique" : "next", Ue = !le && "openKeyCursor" in Ge ? Ge.openKeyCursor(D(Be), Ke) : Ge.openCursor(D(Be), Ke);
|
|
10013
|
-
Ue.onerror = Ts(je), Ue.onsuccess =
|
|
10013
|
+
Ue.onerror = Ts(je), Ue.onsuccess = cn(function(Xe) {
|
|
10014
10014
|
var It, Ot, Mt, Ei, _t = Ue.result;
|
|
10015
10015
|
_t ? (_t.___id = ++gO, _t.done = !1, It = _t.continue.bind(_t), Ot = (Ot = _t.continuePrimaryKey) && Ot.bind(_t), Mt = _t.advance.bind(_t), Ei = function() {
|
|
10016
10016
|
throw new Error("Cursor not stopped");
|
|
10017
10017
|
}, _t.trans = X, _t.stop = _t.continue = _t.continuePrimaryKey = _t.advance = function() {
|
|
10018
10018
|
throw new Error("Cursor not started");
|
|
10019
|
-
}, _t.fail =
|
|
10019
|
+
}, _t.fail = cn(je), _t.next = function() {
|
|
10020
10020
|
var qn = this, Yn = 1;
|
|
10021
10021
|
return this.start(function() {
|
|
10022
10022
|
return Yn-- ? qn.continue() : qn.stop();
|
|
@@ -10035,11 +10035,11 @@ var n_ = { exports: {} };
|
|
|
10035
10035
|
}, _t.stop();
|
|
10036
10036
|
}
|
|
10037
10037
|
var rh = new Promise(function(oi, $r) {
|
|
10038
|
-
oi =
|
|
10038
|
+
oi = cn(oi), Ue.onerror = Ts($r), _t.fail = $r, _t.stop = function(Zg) {
|
|
10039
10039
|
_t.stop = _t.continue = _t.continuePrimaryKey = _t.advance = Ei, oi(Zg);
|
|
10040
10040
|
};
|
|
10041
10041
|
});
|
|
10042
|
-
return Ue.onsuccess =
|
|
10042
|
+
return Ue.onsuccess = cn(function(oi) {
|
|
10043
10043
|
Ue.onsuccess = Yn, Yn();
|
|
10044
10044
|
}), _t.continue = It, _t.continuePrimaryKey = Ot, _t.advance = Mt, Yn(), rh;
|
|
10045
10045
|
}, Ve(_t)) : Ve(null);
|
|
@@ -10049,7 +10049,7 @@ var n_ = { exports: {} };
|
|
|
10049
10049
|
var X = se.query, le = se.trans, de = X.index, fe = X.range;
|
|
10050
10050
|
return new Promise(function(Ee, Ve) {
|
|
10051
10051
|
var je = le.objectStore(te), Be = de.isPrimaryKey ? je : je.index(de.name), je = D(fe), Be = je ? Be.count(je) : Be.count();
|
|
10052
|
-
Be.onsuccess =
|
|
10052
|
+
Be.onsuccess = cn(function(Ge) {
|
|
10053
10053
|
return Ee(Ge.target.result);
|
|
10054
10054
|
}), Be.onerror = Ts(Ve);
|
|
10055
10055
|
});
|
|
@@ -10435,12 +10435,12 @@ var n_ = { exports: {} };
|
|
|
10435
10435
|
if (M(), !C) throw new Ze.MissingAPI();
|
|
10436
10436
|
var te = p.name, se = m.autoSchema || !T ? C.open(te) : C.open(te, T);
|
|
10437
10437
|
if (!se) throw new Ze.MissingAPI();
|
|
10438
|
-
se.onerror = Ts(Z), se.onblocked =
|
|
10438
|
+
se.onerror = Ts(Z), se.onblocked = cn(p._fireOnBlocked), se.onupgradeneeded = cn(function(X) {
|
|
10439
10439
|
var le;
|
|
10440
|
-
ne = se.transaction, m.autoSchema && !p._options.allowEmptyDB ? (se.onerror = Dc, ne.abort(), se.result.close(), (le = C.deleteDatabase(te)).onsuccess = le.onerror =
|
|
10440
|
+
ne = se.transaction, m.autoSchema && !p._options.allowEmptyDB ? (se.onerror = Dc, ne.abort(), se.result.close(), (le = C.deleteDatabase(te)).onsuccess = le.onerror = cn(function() {
|
|
10441
10441
|
Z(new Ze.NoSuchDatabase("Database ".concat(te, " doesnt exist")));
|
|
10442
10442
|
})) : (ne.onerror = Ts(Z), X = X.oldVersion > Math.pow(2, 62) ? 0 : X.oldVersion, $ = X < 1, p.idbdb = se.result, A && wO(p, ne), CO(p, X / 10, ne, Z));
|
|
10443
|
-
}, Z), se.onsuccess =
|
|
10443
|
+
}, Z), se.onsuccess = cn(function() {
|
|
10444
10444
|
ne = null;
|
|
10445
10445
|
var X, le, de, fe, Ee, Ve = p.idbdb = se.result, je = E(Ve.objectStoreNames);
|
|
10446
10446
|
if (0 < je.length) try {
|
|
@@ -10452,9 +10452,9 @@ var n_ = { exports: {} };
|
|
|
10452
10452
|
qd(p, Be);
|
|
10453
10453
|
} catch {
|
|
10454
10454
|
}
|
|
10455
|
-
Ka.push(p), Ve.onversionchange =
|
|
10455
|
+
Ka.push(p), Ve.onversionchange = cn(function(Ge) {
|
|
10456
10456
|
m.vcFired = !0, p.on("versionchange").fire(Ge);
|
|
10457
|
-
}), Ve.onclose =
|
|
10457
|
+
}), Ve.onclose = cn(function(Ge) {
|
|
10458
10458
|
p.on("close").fire(Ge);
|
|
10459
10459
|
}), $ && (Ee = p._deps, Be = te, Ve = Ee.indexedDB, Ee = Ee.IDBKeyRange, Ng(Ve) || Be === Wd || Lg(Ve, Ee).put({ name: Be }).catch(At)), oe();
|
|
10460
10460
|
}, Z);
|
|
@@ -11021,7 +11021,7 @@ var n_ = { exports: {} };
|
|
|
11021
11021
|
function M() {
|
|
11022
11022
|
m.close(p);
|
|
11023
11023
|
var B = m._deps.indexedDB.deleteDatabase(m.name);
|
|
11024
|
-
B.onsuccess =
|
|
11024
|
+
B.onsuccess = cn(function() {
|
|
11025
11025
|
var Y, Q, ne;
|
|
11026
11026
|
Y = m._deps, Q = m.name, ne = Y.indexedDB, Y = Y.IDBKeyRange, Ng(ne) || Q === Wd || Lg(ne, Y).delete(Q).catch(At), T();
|
|
11027
11027
|
}), B.onerror = Ts(A), B.onblocked = m._fireOnBlocked;
|
|
@@ -19864,7 +19864,7 @@ function k4(e = {}) {
|
|
|
19864
19864
|
}
|
|
19865
19865
|
t.showOnInit && l();
|
|
19866
19866
|
};
|
|
19867
|
-
return
|
|
19867
|
+
return dn(() => {
|
|
19868
19868
|
h();
|
|
19869
19869
|
}), $n(() => {
|
|
19870
19870
|
d();
|
|
@@ -24531,7 +24531,7 @@ function zo(e) {
|
|
|
24531
24531
|
const u = c.value || c;
|
|
24532
24532
|
return (u instanceof HTMLElement ? u : u == null ? void 0 : u.$el) || null;
|
|
24533
24533
|
};
|
|
24534
|
-
return
|
|
24534
|
+
return dn(() => {
|
|
24535
24535
|
const c = l(e.value.inputRef), u = l(e.value.wrapperRef);
|
|
24536
24536
|
c && (c.addEventListener("focus", s), c.addEventListener("blur", o)), u && (u.addEventListener("mouseenter", r), u.addEventListener("mouseleave", a));
|
|
24537
24537
|
}), $n(() => {
|
|
@@ -24546,7 +24546,7 @@ function zo(e) {
|
|
|
24546
24546
|
}
|
|
24547
24547
|
const Iw = (e) => {
|
|
24548
24548
|
const t = ie(!1), n = j(() => t.value);
|
|
24549
|
-
return
|
|
24549
|
+
return dn(() => {
|
|
24550
24550
|
var a, l, c, u;
|
|
24551
24551
|
const i = (a = e.params) == null ? void 0 : a.api, s = (l = e.params) == null ? void 0 : l.node, o = s == null ? void 0 : s.rowIndex, r = (u = (c = e.params) == null ? void 0 : c.colDef) == null ? void 0 : u.field;
|
|
24552
24552
|
return i == null || i.addEventListener("cellEditingStarted", (d) => {
|
|
@@ -24682,7 +24682,7 @@ const Iw = (e) => {
|
|
|
24682
24682
|
() => {
|
|
24683
24683
|
x(), s.enableAutoRefresh && s.apiUpdateFunction && E();
|
|
24684
24684
|
}
|
|
24685
|
-
),
|
|
24685
|
+
), dn(async () => {
|
|
24686
24686
|
s.apiUpdateFunction && (await b(), E());
|
|
24687
24687
|
}), $n(x);
|
|
24688
24688
|
const I = j(() => ({
|
|
@@ -25489,7 +25489,7 @@ const Iw = (e) => {
|
|
|
25489
25489
|
var G, re;
|
|
25490
25490
|
(G = u.value) == null || G.removeEventListener("scroll", H), (re = c.value) == null || re.removeEventListener("keydown", E);
|
|
25491
25491
|
};
|
|
25492
|
-
|
|
25492
|
+
dn(() => {
|
|
25493
25493
|
W();
|
|
25494
25494
|
}), $n(() => {
|
|
25495
25495
|
me();
|
|
@@ -25765,7 +25765,7 @@ const Iw = (e) => {
|
|
|
25765
25765
|
}, H = to(async (J) => {
|
|
25766
25766
|
v.value = J, await _(1, J, !1);
|
|
25767
25767
|
}, Rd), W = () => _(1, v.value, !1), me = j(fw);
|
|
25768
|
-
|
|
25768
|
+
dn(() => {
|
|
25769
25769
|
var J;
|
|
25770
25770
|
_(1), (J = V.value) == null || J.focus();
|
|
25771
25771
|
}), t({
|
|
@@ -25793,7 +25793,7 @@ const Iw = (e) => {
|
|
|
25793
25793
|
}).url;
|
|
25794
25794
|
window.open(G, "_blank");
|
|
25795
25795
|
}, V = ie(null);
|
|
25796
|
-
return
|
|
25796
|
+
return dn(() => {
|
|
25797
25797
|
Qt(() => {
|
|
25798
25798
|
var J;
|
|
25799
25799
|
(J = V.value) == null || J.focus();
|
|
@@ -26000,7 +26000,7 @@ const Iw = (e) => {
|
|
|
26000
26000
|
}, { triggerRef: r, popupRef: a, hide: l, isVisible: c } = ao(), u = ie(null), d = (h) => {
|
|
26001
26001
|
h.key === "Escape" && a.value && l();
|
|
26002
26002
|
};
|
|
26003
|
-
return
|
|
26003
|
+
return dn(() => {
|
|
26004
26004
|
var f;
|
|
26005
26005
|
const h = u.value instanceof HTMLElement ? u.value : (f = u.value) == null ? void 0 : f.$el;
|
|
26006
26006
|
h && h.addEventListener("keydown", d);
|
|
@@ -27232,7 +27232,7 @@ const Y8 = ["disabled", "readonly", "placeholder"], Z8 = /* @__PURE__ */ ut({
|
|
|
27232
27232
|
const l = (c) => {
|
|
27233
27233
|
c.key === "Escape" && s.value && n();
|
|
27234
27234
|
};
|
|
27235
|
-
return
|
|
27235
|
+
return dn(() => {
|
|
27236
27236
|
var u;
|
|
27237
27237
|
const c = i.value instanceof HTMLElement ? i.value : (u = i.value) == null ? void 0 : u.$el;
|
|
27238
27238
|
c && c.addEventListener("keydown", l);
|
|
@@ -27392,7 +27392,7 @@ const Y8 = ["disabled", "readonly", "placeholder"], Z8 = /* @__PURE__ */ ut({
|
|
|
27392
27392
|
loadMore: S
|
|
27393
27393
|
});
|
|
27394
27394
|
const k = ie(null);
|
|
27395
|
-
return
|
|
27395
|
+
return dn(() => {
|
|
27396
27396
|
Qt(() => {
|
|
27397
27397
|
var O;
|
|
27398
27398
|
(O = k.value) == null || O.focus();
|
|
@@ -27439,7 +27439,7 @@ const Y8 = ["disabled", "readonly", "placeholder"], Z8 = /* @__PURE__ */ ut({
|
|
|
27439
27439
|
})), d = ie(null), h = (f) => {
|
|
27440
27440
|
f.key === "Escape" && s.value && a();
|
|
27441
27441
|
};
|
|
27442
|
-
return
|
|
27442
|
+
return dn(() => {
|
|
27443
27443
|
var g;
|
|
27444
27444
|
const f = d.value instanceof HTMLElement ? d.value : (g = d.value) == null ? void 0 : g.$el;
|
|
27445
27445
|
f && f.addEventListener("keydown", h);
|
|
@@ -28003,7 +28003,7 @@ const FK = ["placeholder", "maxlength"], xK = {
|
|
|
28003
28003
|
h.value = !0, (R = l.value) == null || R.focus();
|
|
28004
28004
|
}
|
|
28005
28005
|
};
|
|
28006
|
-
|
|
28006
|
+
dn(() => {
|
|
28007
28007
|
const R = c.value.$el;
|
|
28008
28008
|
R && (R.__sceneNameEditor = E);
|
|
28009
28009
|
}), $n(() => {
|
|
@@ -28248,7 +28248,7 @@ const kK = ["href"], OK = /* @__PURE__ */ ut({
|
|
|
28248
28248
|
(I) => {
|
|
28249
28249
|
l.value = I, c.value = I;
|
|
28250
28250
|
}
|
|
28251
|
-
),
|
|
28251
|
+
), dn(() => {
|
|
28252
28252
|
const I = F();
|
|
28253
28253
|
I && (I.__sceneNameEditor = S);
|
|
28254
28254
|
}), $n(() => {
|
|
@@ -28705,7 +28705,7 @@ const kK = ["href"], OK = /* @__PURE__ */ ut({
|
|
|
28705
28705
|
emits: ["closed"],
|
|
28706
28706
|
setup(e, { expose: t, emit: n }) {
|
|
28707
28707
|
const i = ie(null);
|
|
28708
|
-
|
|
28708
|
+
dn(() => {
|
|
28709
28709
|
Qt(() => {
|
|
28710
28710
|
i.value && i.value.focus();
|
|
28711
28711
|
});
|
|
@@ -28772,7 +28772,7 @@ const kK = ["href"], OK = /* @__PURE__ */ ut({
|
|
|
28772
28772
|
setup(e, { emit: t }) {
|
|
28773
28773
|
const n = ie(null), i = ie(0);
|
|
28774
28774
|
let s = null;
|
|
28775
|
-
|
|
28775
|
+
dn(() => {
|
|
28776
28776
|
n.value && (s = new ResizeObserver((r) => {
|
|
28777
28777
|
for (const a of r)
|
|
28778
28778
|
i.value = a.contentRect.height;
|
|
@@ -29693,7 +29693,7 @@ const x7 = ["width", "height", "viewBox"], T7 = ["d"], _7 = "M12 17.27L18.18 21l
|
|
|
29693
29693
|
w.value = d.value[H].value;
|
|
29694
29694
|
} else F.key === "Escape" && ((P = S.value) == null || P.hide());
|
|
29695
29695
|
}, S = ie(null);
|
|
29696
|
-
return
|
|
29696
|
+
return dn(() => {
|
|
29697
29697
|
var F, I;
|
|
29698
29698
|
(I = (F = S.value) == null ? void 0 : F.$el) == null || I.addEventListener("keydown", R);
|
|
29699
29699
|
}), lc(() => {
|
|
@@ -29905,7 +29905,7 @@ const x7 = ["width", "height", "viewBox"], T7 = ["d"], _7 = "M12 17.27L18.18 21l
|
|
|
29905
29905
|
}[v] });
|
|
29906
29906
|
};
|
|
29907
29907
|
let g = [];
|
|
29908
|
-
|
|
29908
|
+
dn(() => {
|
|
29909
29909
|
var x;
|
|
29910
29910
|
const v = (x = t.params) == null ? void 0 : x.api;
|
|
29911
29911
|
if (!v) return;
|
|
@@ -29922,7 +29922,7 @@ const x7 = ["width", "height", "viewBox"], T7 = ["d"], _7 = "M12 17.27L18.18 21l
|
|
|
29922
29922
|
g.forEach((v) => v());
|
|
29923
29923
|
});
|
|
29924
29924
|
const y = `header-checkbox-${Math.random().toString(36).substr(2, 9)}`;
|
|
29925
|
-
return
|
|
29925
|
+
return dn(() => {
|
|
29926
29926
|
}), (v, b) => (q(), Je(Ow, {
|
|
29927
29927
|
options: l.value,
|
|
29928
29928
|
size: 24,
|
|
@@ -30062,7 +30062,7 @@ const x7 = ["width", "height", "viewBox"], T7 = ["d"], _7 = "M12 17.27L18.18 21l
|
|
|
30062
30062
|
}), a = (l) => {
|
|
30063
30063
|
n.closeOnEscape && l.key === "Escape" && r.value && o();
|
|
30064
30064
|
};
|
|
30065
|
-
return
|
|
30065
|
+
return dn(() => {
|
|
30066
30066
|
document.addEventListener("keydown", a);
|
|
30067
30067
|
}), $n(() => {
|
|
30068
30068
|
document.removeEventListener("keydown", a);
|
|
@@ -30903,11 +30903,7 @@ const x7 = ["width", "height", "viewBox"], T7 = ["d"], _7 = "M12 17.27L18.18 21l
|
|
|
30903
30903
|
return ((c = (l = t.params) == null ? void 0 : l.column) == null ? void 0 : c.getColId()) || "template_col_id";
|
|
30904
30904
|
}), o = (l) => {
|
|
30905
30905
|
s.value && n.setSort(s.value, l);
|
|
30906
|
-
}, r = j(() => t.params.headerType || void 0);
|
|
30907
|
-
cn(() => {
|
|
30908
|
-
console.log("HeaderSorting mounted with colId:", s.value, t.params.headerType);
|
|
30909
|
-
});
|
|
30910
|
-
const a = ie("none");
|
|
30906
|
+
}, r = j(() => t.params.headerType || void 0), a = ie("none");
|
|
30911
30907
|
return ft(
|
|
30912
30908
|
() => i.value,
|
|
30913
30909
|
to(() => {
|
|
@@ -31049,7 +31045,7 @@ const i9 = /* @__PURE__ */ ut({
|
|
|
31049
31045
|
y && y.length > 0 && d(y[0]);
|
|
31050
31046
|
}, d = (f) => {
|
|
31051
31047
|
};
|
|
31052
|
-
|
|
31048
|
+
dn(() => {
|
|
31053
31049
|
Qt(() => {
|
|
31054
31050
|
});
|
|
31055
31051
|
}), t({
|
|
@@ -53017,7 +53013,7 @@ function mb(e, t = {}) {
|
|
|
53017
53013
|
let { rowNode: l } = t;
|
|
53018
53014
|
return l || (i ? l = ote(e, i, o) : n != null && (l = r.getRow(n))), (c = a.getRowCtrls(l ? [l] : [])) == null ? void 0 : c[0];
|
|
53019
53015
|
}
|
|
53020
|
-
function
|
|
53016
|
+
function un(e, t = {}) {
|
|
53021
53017
|
var u;
|
|
53022
53018
|
const { cellCtrl: n, colId: i, columnId: s, column: o } = t;
|
|
53023
53019
|
if (n)
|
|
@@ -53076,7 +53072,7 @@ function Nse(e, t, n, i, s, o) {
|
|
|
53076
53072
|
t.length === 0 && (n != null && n.rowNode) && (n != null && n.column) && oc(e, n, { key: i, event: s, cellStartedEdit: o });
|
|
53077
53073
|
const { valueSvc: r, editSvc: a, editModelSvc: l } = e, { rowNode: c, column: u } = n ?? {};
|
|
53078
53074
|
for (const h of t) {
|
|
53079
|
-
const { rowNode: f, column: g } = h, y =
|
|
53075
|
+
const { rowNode: f, column: g } = h, y = un(e, h);
|
|
53080
53076
|
if (!y) {
|
|
53081
53077
|
if (f && g) {
|
|
53082
53078
|
const b = r.getValue(g, f, void 0, "api"), w = ((n == null ? void 0 : n.rowNode) === f && (n == null ? void 0 : n.column) === g && i || void 0) ?? (a == null ? void 0 : a.getCellDataValue(h, !1)) ?? ((d = r.getValueForDisplay(g, f)) == null ? void 0 : d.value) ?? b ?? is;
|
|
@@ -53108,7 +53104,7 @@ function xo({
|
|
|
53108
53104
|
}
|
|
53109
53105
|
function oc(e, t, n) {
|
|
53110
53106
|
var b, E, x, w, R, S, F, I, k, O;
|
|
53111
|
-
const i = e.gos.get("enableGroupEdit"), { key: s, event: o, cellStartedEdit: r, silent: a } = n ?? {}, l =
|
|
53107
|
+
const i = e.gos.get("enableGroupEdit"), { key: s, event: o, cellStartedEdit: r, silent: a } = n ?? {}, l = un(e, t), c = (b = l == null ? void 0 : l.comp) == null ? void 0 : b.getCellEditor(), u = JI(e, t, s, r && !a), d = (E = e.editModelSvc) == null ? void 0 : E.getEdit(t);
|
|
53112
53108
|
let h = u.value;
|
|
53113
53109
|
if (h === void 0 && (h = d == null ? void 0 : d.sourceValue), (x = e.editModelSvc) == null || x.setEdit(t, {
|
|
53114
53110
|
editorValue: h,
|
|
@@ -53154,7 +53150,7 @@ function ZI(e, t, n) {
|
|
|
53154
53150
|
}
|
|
53155
53151
|
function JI(e, t, n, i) {
|
|
53156
53152
|
var E, x, w, R;
|
|
53157
|
-
const { valueSvc: s, gos: o, editSvc: r } = e, a = e.gos.get("enableGroupEdit"), l =
|
|
53153
|
+
const { valueSvc: s, gos: o, editSvc: r } = e, a = e.gos.get("enableGroupEdit"), l = un(e, t), c = ((E = t.rowNode) == null ? void 0 : E.rowIndex) ?? void 0, u = r == null ? void 0 : r.isBatchEditing(), d = e.colModel.getCol(t.column.getId()), { rowNode: h, column: f } = t, g = (x = l.comp) == null ? void 0 : x.getCellEditor(), y = r == null ? void 0 : r.getCellDataValue(t, !1), v = y === void 0 ? g ? (w = ZI(e, g)) == null ? void 0 : w.editorValue : void 0 : y, b = v === is ? (R = s.getValueForDisplay(d, h)) == null ? void 0 : R.value : v;
|
|
53158
53154
|
return ct(o, {
|
|
53159
53155
|
value: a ? v : b,
|
|
53160
53156
|
eventKey: n ?? null,
|
|
@@ -53199,7 +53195,7 @@ function QI(e, t) {
|
|
|
53199
53195
|
function la(e, t) {
|
|
53200
53196
|
var n, i, s;
|
|
53201
53197
|
for (const o of ((n = e.editModelSvc) == null ? void 0 : n.getEditPositions()) ?? []) {
|
|
53202
|
-
const r =
|
|
53198
|
+
const r = un(e, o);
|
|
53203
53199
|
if (!r)
|
|
53204
53200
|
continue;
|
|
53205
53201
|
const a = (i = r.comp) == null ? void 0 : i.getCellEditor();
|
|
@@ -53238,7 +53234,7 @@ function Bl(e, t, n) {
|
|
|
53238
53234
|
}
|
|
53239
53235
|
function Dp(e, t, n) {
|
|
53240
53236
|
var c, u;
|
|
53241
|
-
const i = e.gos.get("enableGroupEdit"), { editModelSvc: s } = e, o =
|
|
53237
|
+
const i = e.gos.get("enableGroupEdit"), { editModelSvc: s } = e, o = un(e, t), r = s == null ? void 0 : s.getEdit(t, !0);
|
|
53242
53238
|
if (!o) {
|
|
53243
53239
|
r && (s == null || s.setEdit(t, { state: "changed" }));
|
|
53244
53240
|
return;
|
|
@@ -63504,7 +63500,7 @@ function ole(e, t = !1) {
|
|
|
63504
63500
|
}
|
|
63505
63501
|
function rle(e, t) {
|
|
63506
63502
|
var i;
|
|
63507
|
-
const n =
|
|
63503
|
+
const n = un(e, t);
|
|
63508
63504
|
return ((i = e.editSvc) == null ? void 0 : i.isEditing(n)) ?? !1;
|
|
63509
63505
|
}
|
|
63510
63506
|
function ale(e, t) {
|
|
@@ -63755,7 +63751,7 @@ var mle = class extends ge {
|
|
|
63755
63751
|
const { startedEdit: n = !0, event: i = null, source: s = "ui", ignoreEventKey: o = !1, silent: r } = t;
|
|
63756
63752
|
if (this.strategy ?? (this.strategy = this.createStrategy()), !this.isCellEditable(e, "api"))
|
|
63757
63753
|
return;
|
|
63758
|
-
const a =
|
|
63754
|
+
const a = un(this.beans, e);
|
|
63759
63755
|
if (a && !a.comp) {
|
|
63760
63756
|
a.onCompAttachedFuncs.push(() => this.startEditing(e, t));
|
|
63761
63757
|
return;
|
|
@@ -63783,7 +63779,7 @@ var mle = class extends ge {
|
|
|
63783
63779
|
if (!(this.committing || this.isEditing(e) || this.isBatchEditing() && l.hasEdits(e, rl)) || !this.strategy || this.stopping)
|
|
63784
63780
|
return !1;
|
|
63785
63781
|
this.stopping = !0;
|
|
63786
|
-
const d =
|
|
63782
|
+
const d = un(a, e);
|
|
63787
63783
|
d && (d.onEditorAttachedFuncs = []);
|
|
63788
63784
|
let h = l.getEditMap(!0), f = !1;
|
|
63789
63785
|
const g = !i && (!!this.shouldStopEditing(e, n, c) || this.committing && !this.batch) || (r ?? !1), y = i && !!this.shouldCancelEditing(e, n, c) || (o ?? !1);
|
|
@@ -63795,7 +63791,7 @@ var mle = class extends ge {
|
|
|
63795
63791
|
l.clearEditValue(R);
|
|
63796
63792
|
this.bulkRefresh(void 0, h);
|
|
63797
63793
|
for (const R of l.getEditPositions(x)) {
|
|
63798
|
-
const S =
|
|
63794
|
+
const S = un(a, R), F = xo(R);
|
|
63799
63795
|
S == null || S.refreshCell({ force: !0, suppressFlash: !F });
|
|
63800
63796
|
}
|
|
63801
63797
|
h = x, f || (f = g);
|
|
@@ -63831,7 +63827,7 @@ var mle = class extends ge {
|
|
|
63831
63827
|
return o;
|
|
63832
63828
|
}
|
|
63833
63829
|
setNodeDataValue(e, t, n, i, s = "edit") {
|
|
63834
|
-
const { beans: o } = this, r =
|
|
63830
|
+
const { beans: o } = this, r = un(o, { rowNode: e, column: t }), a = Sle.has(s) ? "edit" : s;
|
|
63835
63831
|
r && (r.suppressRefreshCell = !0), this.commitNextEdit();
|
|
63836
63832
|
const l = e.setDataValue(t, n, a);
|
|
63837
63833
|
return r && (r.suppressRefreshCell = !1), i && (r == null || r.refreshCell(Wc)), l;
|
|
@@ -63883,9 +63879,9 @@ var mle = class extends ge {
|
|
|
63883
63879
|
for (const g of r)
|
|
63884
63880
|
this.dispatchEditValuesChanged({ rowNode: g, column: t }, n);
|
|
63885
63881
|
for (const g of r)
|
|
63886
|
-
(h =
|
|
63882
|
+
(h = un(s, { rowNode: g, column: t })) == null || h.refreshCell(i);
|
|
63887
63883
|
for (const g of a)
|
|
63888
|
-
(f =
|
|
63884
|
+
(f = un(s, { rowNode: g, column: t })) == null || f.refreshCell(i);
|
|
63889
63885
|
}
|
|
63890
63886
|
stopAllEditing(e = !1, t = "ui") {
|
|
63891
63887
|
this.isEditing() && this.stopEditing(void 0, { cancel: e, source: t });
|
|
@@ -63908,20 +63904,20 @@ var mle = class extends ge {
|
|
|
63908
63904
|
checkNavWithValidation(e, t, n = !0) {
|
|
63909
63905
|
var i, s, o, r;
|
|
63910
63906
|
if (this.hasValidationErrors(e)) {
|
|
63911
|
-
const a =
|
|
63907
|
+
const a = un(this.beans, e);
|
|
63912
63908
|
return this.cellEditingInvalidCommitBlocks() ? ((i = t == null ? void 0 : t.preventDefault) == null || i.call(t), n && (!(a != null && a.hasBrowserFocus()) && (a == null || a.focusCell()), (r = (o = (s = a == null ? void 0 : a.comp) == null ? void 0 : s.getCellEditor()) == null ? void 0 : o.focusIn) == null || r.call(o)), "block-stop") : (a && this.revertSingleCellEdit(a), "revert-continue");
|
|
63913
63909
|
}
|
|
63914
63910
|
return "continue";
|
|
63915
63911
|
}
|
|
63916
63912
|
revertSingleCellEdit(e, t = !1) {
|
|
63917
63913
|
var i, s, o, r;
|
|
63918
|
-
const n =
|
|
63914
|
+
const n = un(this.beans, e);
|
|
63919
63915
|
(i = n == null ? void 0 : n.comp) != null && i.getCellEditor() && (Bl(this.beans, [e], { silent: !0 }), this.model.clearEditValue(e), oc(this.beans, e, { silent: !0 }), Ma(this.beans), n == null || n.refreshCell(Wc), t && (n == null || n.focusCell(), (r = (o = (s = n == null ? void 0 : n.comp) == null ? void 0 : s.getCellEditor()) == null ? void 0 : o.focusIn) == null || r.call(o)));
|
|
63920
63916
|
}
|
|
63921
63917
|
hasValidationErrors(e) {
|
|
63922
63918
|
var i;
|
|
63923
63919
|
Ma(this.beans);
|
|
63924
|
-
const t =
|
|
63920
|
+
const t = un(this.beans, e);
|
|
63925
63921
|
t && (t.refreshCell(Wc), (i = t.rowCtrl.rowEditStyleFeature) == null || i.applyRowStyles());
|
|
63926
63922
|
let n = !1;
|
|
63927
63923
|
return e != null && e.rowNode ? (n || (n = this.model.getRowValidationModel().hasRowValidation({ rowNode: e.rowNode })), e.column && (n || (n = this.model.getCellValidationModel().hasCellValidation({ rowNode: e.rowNode, column: e.column })))) : (n || (n = this.model.getCellValidationModel().getCellValidationMap().size > 0), n || (n = this.model.getRowValidationModel().getRowValidationMap().size > 0)), n;
|
|
@@ -64066,7 +64062,7 @@ var mle = class extends ge {
|
|
|
64066
64062
|
}
|
|
64067
64063
|
this.commitNextEdit(), this.stopEditing(void 0, { source: "bulk" }), this.eventSvc.dispatchEvent({ type: "bulkEditingStopped", changes: this.toEventChangeList(r) });
|
|
64068
64064
|
}), this.bulkRefresh();
|
|
64069
|
-
const l =
|
|
64065
|
+
const l = un(i, { rowNode: e, column: t });
|
|
64070
64066
|
l && l.focusCell(!0);
|
|
64071
64067
|
}
|
|
64072
64068
|
createCellStyleFeature(e, t) {
|
|
@@ -64103,7 +64099,7 @@ var mle = class extends ge {
|
|
|
64103
64099
|
}
|
|
64104
64100
|
onCellFocused(e) {
|
|
64105
64101
|
var o;
|
|
64106
|
-
const t =
|
|
64102
|
+
const t = un(this.beans, e);
|
|
64107
64103
|
if (!t || !this.isEditing(t, rl))
|
|
64108
64104
|
return;
|
|
64109
64105
|
const n = this.model.getEdit(t);
|
|
@@ -64113,7 +64109,7 @@ var mle = class extends ge {
|
|
|
64113
64109
|
(o = this.beans.ariaAnnounce) == null || o.announceValue(s, "pendingChange");
|
|
64114
64110
|
}
|
|
64115
64111
|
allowedFocusTargetOnValidation(e) {
|
|
64116
|
-
return
|
|
64112
|
+
return un(this.beans, e);
|
|
64117
64113
|
}
|
|
64118
64114
|
};
|
|
64119
64115
|
function xle(e) {
|
|
@@ -64139,7 +64135,7 @@ var xk = class extends ge {
|
|
|
64139
64135
|
onCellFocusChanged(e) {
|
|
64140
64136
|
let t;
|
|
64141
64137
|
const n = e.previousParams, { editSvc: i, beans: s } = this, o = e.type === "cellFocused" ? e.sourceEvent : null;
|
|
64142
|
-
n && (t =
|
|
64138
|
+
n && (t = un(s, n));
|
|
64143
64139
|
const { gos: r, editModelSvc: a } = s, l = e.type === "cellFocusCleared";
|
|
64144
64140
|
if (i.isEditing(void 0, { withOpenEditor: !0 })) {
|
|
64145
64141
|
const { column: c, rowIndex: u, rowPinned: d } = e, h = {
|
|
@@ -64179,7 +64175,7 @@ var xk = class extends ge {
|
|
|
64179
64175
|
Dp(this.beans, a, { event: t, cancel: e }), this.model.stop(a);
|
|
64180
64176
|
if (r.keep.length > 0)
|
|
64181
64177
|
for (const a of r.keep) {
|
|
64182
|
-
const l =
|
|
64178
|
+
const l = un(this.beans, a);
|
|
64183
64179
|
(o = this.editSvc) != null && o.cellEditingInvalidCommitBlocks() || l && this.editSvc.revertSingleCellEdit(l);
|
|
64184
64180
|
}
|
|
64185
64181
|
}
|
|
@@ -64217,7 +64213,7 @@ var xk = class extends ge {
|
|
|
64217
64213
|
Nse(this.beans, o, s, r, t, i);
|
|
64218
64214
|
}
|
|
64219
64215
|
dispatchCellEvent(e, t, n, i) {
|
|
64220
|
-
const s =
|
|
64216
|
+
const s = un(this.beans, e);
|
|
64221
64217
|
s && this.eventSvc.dispatchEvent({ ...s.createEvent(t ?? null, n), ...i });
|
|
64222
64218
|
}
|
|
64223
64219
|
dispatchRowEvent(e, t, n) {
|
|
@@ -64245,7 +64241,7 @@ var xk = class extends ge {
|
|
|
64245
64241
|
}), t != null && t.update && (e = new Map([...this.model.getEditMap(), ...e])), (i = this.model) == null || i.setEditMap(e), n.length > 0) {
|
|
64246
64242
|
const s = n.at(-1), o = s.pendingValue === is ? void 0 : s.pendingValue;
|
|
64247
64243
|
this.start({ position: s, event: new KeyboardEvent("keydown", { key: o }), source: "api" });
|
|
64248
|
-
const r =
|
|
64244
|
+
const r = un(this.beans, s);
|
|
64249
64245
|
r && this.setFocusInOnEditor(r);
|
|
64250
64246
|
}
|
|
64251
64247
|
}
|
|
@@ -64323,7 +64319,7 @@ var xk = class extends ge {
|
|
|
64323
64319
|
const { rowIndex: t } = e, n = e.previousParams;
|
|
64324
64320
|
if ((n == null ? void 0 : n.rowIndex) === t || e.sourceEvent instanceof KeyboardEvent)
|
|
64325
64321
|
return;
|
|
64326
|
-
const i =
|
|
64322
|
+
const i = un(this.beans, n);
|
|
64327
64323
|
this.gos.get("invalidEditValueMode") === "block" && i && (this.model.getCellValidationModel().getCellValidation(i) || this.model.getRowValidationModel().getRowValidation(i)) || super.onCellFocusChanged(e);
|
|
64328
64324
|
}
|
|
64329
64325
|
cleanupEditors(e = {}, t) {
|
|
@@ -64367,7 +64363,7 @@ var xk = class extends ge {
|
|
|
64367
64363
|
var o;
|
|
64368
64364
|
if (n !== "editing")
|
|
64369
64365
|
return;
|
|
64370
|
-
const s =
|
|
64366
|
+
const s = un(this.beans, {
|
|
64371
64367
|
rowNode: t,
|
|
64372
64368
|
column: i
|
|
64373
64369
|
});
|
|
@@ -70406,7 +70402,7 @@ const kde = $I.withParams(
|
|
|
70406
70402
|
var v, b;
|
|
70407
70403
|
(b = (v = r.value) == null ? void 0 : v.getApi()) == null || b.sizeColumnsToFit();
|
|
70408
70404
|
}, Ode);
|
|
70409
|
-
return
|
|
70405
|
+
return dn(() => {
|
|
70410
70406
|
c(), window.addEventListener("resize", y);
|
|
70411
70407
|
}), $n(() => {
|
|
70412
70408
|
h(), window.removeEventListener("resize", y);
|
|
@@ -70617,7 +70613,7 @@ const $de = (e, t) => {
|
|
|
70617
70613
|
cellClass: "ag-cell-optimized",
|
|
70618
70614
|
headerComponent: op(ta),
|
|
70619
70615
|
headerComponentParams: (I) => ({
|
|
70620
|
-
headerType: F.metric_type.code == "number" ? "number" : "default"
|
|
70616
|
+
headerType: F.metric_type.code == "number" || F.metric_type.code == "formula" ? "number" : "default"
|
|
70621
70617
|
})
|
|
70622
70618
|
})
|
|
70623
70619
|
)) || []).map(
|
|
@@ -73860,7 +73856,7 @@ const Pfe = `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="
|
|
|
73860
73856
|
itemSearchBox: Lfe
|
|
73861
73857
|
}, Vfe = {
|
|
73862
73858
|
$style: Nfe
|
|
73863
|
-
}, Bfe = /* @__PURE__ */ Rt(Afe, [["__cssModules", Vfe]]), Hfe = "0.0.
|
|
73859
|
+
}, Bfe = /* @__PURE__ */ Rt(Afe, [["__cssModules", Vfe]]), Hfe = "0.0.8", Gfe = { key: 0 }, $fe = /* @__PURE__ */ ut({
|
|
73864
73860
|
__name: "app",
|
|
73865
73861
|
setup(e) {
|
|
73866
73862
|
const t = j(() => n.id.length === 0 || n.workspaceId.length === 0), n = so({
|