@svgrid/enterprise 3.1.3 → 3.1.4
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/LICENSE +22 -17
- package/README.md +7 -7
- package/dist/advanced-filter-enable.js +2 -2
- package/dist/alerts.js +2 -2
- package/dist/board.js +2 -2
- package/dist/cdn/svgrid-enterprise.svelte-external.js +13390 -13286
- package/dist/designer/assets/{index-CScGnzuX.js → index-BgVTSVoK.js} +4 -4
- package/dist/designer/assets/src-BqEXoOog.js +58 -0
- package/dist/designer/index.html +2 -2
- package/dist/first-party.d.ts +2 -0
- package/dist/first-party.js +11 -0
- package/dist/gantt/gantt.js +2 -2
- package/dist/install.js +2 -2
- package/dist/license-core.d.ts +1 -0
- package/dist/license-core.js +25 -23
- package/dist/license-hash.d.ts +1 -0
- package/dist/license-hash.js +6 -0
- package/dist/license.js +55 -30
- package/dist/node/studio.js +130 -56
- package/dist/pivot-enable.js +2 -2
- package/dist/scheduler.js +2 -2
- package/dist/selection-bar.js +2 -2
- package/dist/server/enable.js +2 -2
- package/dist/sha256.d.ts +1 -0
- package/dist/sha256.js +69 -0
- package/dist/upgrade-prompt.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/watermark.js +6 -3
- package/dist/wc/sv-sheet-element.js +760 -674
- package/package.json +1 -1
- package/dist/designer/assets/src-DL33yzkY.js +0 -58
|
@@ -33853,103 +33853,181 @@ function cA(e) {
|
|
|
33853
33853
|
});
|
|
33854
33854
|
}
|
|
33855
33855
|
//#endregion
|
|
33856
|
-
//#region src/
|
|
33857
|
-
var lA =
|
|
33858
|
-
|
|
33859
|
-
|
|
33860
|
-
|
|
33856
|
+
//#region src/sha256.ts
|
|
33857
|
+
var lA = new Uint32Array([
|
|
33858
|
+
1116352408,
|
|
33859
|
+
1899447441,
|
|
33860
|
+
3049323471,
|
|
33861
|
+
3921009573,
|
|
33862
|
+
961987163,
|
|
33863
|
+
1508970993,
|
|
33864
|
+
2453635748,
|
|
33865
|
+
2870763221,
|
|
33866
|
+
3624381080,
|
|
33867
|
+
310598401,
|
|
33868
|
+
607225278,
|
|
33869
|
+
1426881987,
|
|
33870
|
+
1925078388,
|
|
33871
|
+
2162078206,
|
|
33872
|
+
2614888103,
|
|
33873
|
+
3248222580,
|
|
33874
|
+
3835390401,
|
|
33875
|
+
4022224774,
|
|
33876
|
+
264347078,
|
|
33877
|
+
604807628,
|
|
33878
|
+
770255983,
|
|
33879
|
+
1249150122,
|
|
33880
|
+
1555081692,
|
|
33881
|
+
1996064986,
|
|
33882
|
+
2554220882,
|
|
33883
|
+
2821834349,
|
|
33884
|
+
2952996808,
|
|
33885
|
+
3210313671,
|
|
33886
|
+
3336571891,
|
|
33887
|
+
3584528711,
|
|
33888
|
+
113926993,
|
|
33889
|
+
338241895,
|
|
33890
|
+
666307205,
|
|
33891
|
+
773529912,
|
|
33892
|
+
1294757372,
|
|
33893
|
+
1396182291,
|
|
33894
|
+
1695183700,
|
|
33895
|
+
1986661051,
|
|
33896
|
+
2177026350,
|
|
33897
|
+
2456956037,
|
|
33898
|
+
2730485921,
|
|
33899
|
+
2820302411,
|
|
33900
|
+
3259730800,
|
|
33901
|
+
3345764771,
|
|
33902
|
+
3516065817,
|
|
33903
|
+
3600352804,
|
|
33904
|
+
4094571909,
|
|
33905
|
+
275423344,
|
|
33906
|
+
430227734,
|
|
33907
|
+
506948616,
|
|
33908
|
+
659060556,
|
|
33909
|
+
883997877,
|
|
33910
|
+
958139571,
|
|
33911
|
+
1322822218,
|
|
33912
|
+
1537002063,
|
|
33913
|
+
1747873779,
|
|
33914
|
+
1955562222,
|
|
33915
|
+
2024104815,
|
|
33916
|
+
2227730452,
|
|
33917
|
+
2361852424,
|
|
33918
|
+
2428436474,
|
|
33919
|
+
2756734187,
|
|
33920
|
+
3204031479,
|
|
33921
|
+
3329325298
|
|
33922
|
+
]), uA = (e, t) => e >>> t | e << 32 - t;
|
|
33861
33923
|
function dA(e) {
|
|
33862
|
-
|
|
33863
|
-
|
|
33864
|
-
|
|
33865
|
-
|
|
33866
|
-
|
|
33867
|
-
|
|
33868
|
-
|
|
33869
|
-
|
|
33870
|
-
|
|
33871
|
-
|
|
33872
|
-
|
|
33873
|
-
|
|
33874
|
-
|
|
33875
|
-
|
|
33876
|
-
|
|
33877
|
-
|
|
33924
|
+
let t = new TextEncoder().encode(e), n = t.length * 8, r = Math.ceil((t.length + 9) / 64) * 64, i = new Uint8Array(r);
|
|
33925
|
+
i.set(t), i[t.length] = 128;
|
|
33926
|
+
let a = new DataView(i.buffer);
|
|
33927
|
+
a.setUint32(r - 8, Math.floor(n / 4294967296)), a.setUint32(r - 4, n >>> 0);
|
|
33928
|
+
let o = new Uint32Array([
|
|
33929
|
+
1779033703,
|
|
33930
|
+
3144134277,
|
|
33931
|
+
1013904242,
|
|
33932
|
+
2773480762,
|
|
33933
|
+
1359893119,
|
|
33934
|
+
2600822924,
|
|
33935
|
+
528734635,
|
|
33936
|
+
1541459225
|
|
33937
|
+
]), s = /* @__PURE__ */ new Uint32Array(64);
|
|
33938
|
+
for (let e = 0; e < r; e += 64) {
|
|
33939
|
+
for (let t = 0; t < 16; t++) s[t] = a.getUint32(e + t * 4);
|
|
33940
|
+
for (let e = 16; e < 64; e++) {
|
|
33941
|
+
let t = uA(s[e - 15], 7) ^ uA(s[e - 15], 18) ^ s[e - 15] >>> 3, n = uA(s[e - 2], 17) ^ uA(s[e - 2], 19) ^ s[e - 2] >>> 10;
|
|
33942
|
+
s[e] = s[e - 16] + t + s[e - 7] + n >>> 0;
|
|
33943
|
+
}
|
|
33944
|
+
let t = o[0], n = o[1], r = o[2], i = o[3], c = o[4], l = o[5], u = o[6], d = o[7];
|
|
33945
|
+
for (let e = 0; e < 64; e++) {
|
|
33946
|
+
let a = uA(c, 6) ^ uA(c, 11) ^ uA(c, 25), o = c & l ^ ~c & u, f = d + a + o + lA[e] + s[e] >>> 0, p = (uA(t, 2) ^ uA(t, 13) ^ uA(t, 22)) + (t & n ^ t & r ^ n & r) >>> 0;
|
|
33947
|
+
d = u, u = l, l = c, c = i + f >>> 0, i = r, r = n, n = t, t = f + p >>> 0;
|
|
33948
|
+
}
|
|
33949
|
+
o[0] = o[0] + t >>> 0, o[1] = o[1] + n >>> 0, o[2] = o[2] + r >>> 0, o[3] = o[3] + i >>> 0, o[4] = o[4] + c >>> 0, o[5] = o[5] + l >>> 0, o[6] = o[6] + u >>> 0, o[7] = o[7] + d >>> 0;
|
|
33950
|
+
}
|
|
33951
|
+
let c = "";
|
|
33952
|
+
for (let e of o) c += e.toString(16).padStart(8, "0");
|
|
33953
|
+
return c;
|
|
33878
33954
|
}
|
|
33879
|
-
|
|
33880
|
-
|
|
33955
|
+
//#endregion
|
|
33956
|
+
//#region src/license-core.ts
|
|
33957
|
+
function fA(e, t) {
|
|
33958
|
+
return e === "suite" || t === "grid";
|
|
33959
|
+
}
|
|
33960
|
+
function pA(e, t = /* @__PURE__ */ new Date()) {
|
|
33961
|
+
return e == null || e.trim() === "" ? {
|
|
33881
33962
|
status: "unset",
|
|
33882
33963
|
valid: !1,
|
|
33883
33964
|
edition: "suite"
|
|
33884
|
-
}
|
|
33885
|
-
|
|
33886
|
-
|
|
33887
|
-
valid: !1,
|
|
33965
|
+
} : dA(e.trim().toLowerCase()) === "dabe98638cdc5760637bb2a741e65680a6ff0fb590d8b1018c9597650486cb10" ? {
|
|
33966
|
+
status: "licensed",
|
|
33967
|
+
valid: !0,
|
|
33888
33968
|
edition: "suite"
|
|
33889
|
-
}
|
|
33890
|
-
|
|
33891
|
-
status: "revoked",
|
|
33969
|
+
} : {
|
|
33970
|
+
status: "invalid",
|
|
33892
33971
|
valid: !1,
|
|
33893
33972
|
edition: "suite"
|
|
33894
33973
|
};
|
|
33895
|
-
|
|
33896
|
-
|
|
33897
|
-
|
|
33898
|
-
|
|
33899
|
-
|
|
33900
|
-
|
|
33901
|
-
|
|
33902
|
-
};
|
|
33974
|
+
}
|
|
33975
|
+
//#endregion
|
|
33976
|
+
//#region src/first-party.ts
|
|
33977
|
+
var mA = /* @__PURE__ */ new Set(["svgrid.com", "www.svgrid.com"]);
|
|
33978
|
+
function hA() {
|
|
33979
|
+
let e = globalThis.location?.hostname;
|
|
33980
|
+
return typeof e == "string" && mA.has(e.toLowerCase());
|
|
33903
33981
|
}
|
|
33904
33982
|
//#endregion
|
|
33905
33983
|
//#region src/watermark.ts
|
|
33906
|
-
var
|
|
33907
|
-
function
|
|
33908
|
-
|
|
33984
|
+
var gA = "data-svgrid-enterprise-watermark", _A = "data-svgrid-enterprise-nudged", vA = "https://svgrid.com/pricing/?utm_source=svgrid-enterprise&utm_medium=watermark", yA = "www.svgrid.com", bA = 5e3, xA = 700, SA = !1, CA = null;
|
|
33985
|
+
function wA() {
|
|
33986
|
+
hA() || (TA(), !(typeof document > "u" || typeof window > "u") && (queueMicrotask(() => EA()), CA || (CA = new MutationObserver(() => EA()), CA.observe(document.body, {
|
|
33909
33987
|
childList: !0,
|
|
33910
33988
|
subtree: !0
|
|
33911
|
-
})));
|
|
33989
|
+
}))));
|
|
33912
33990
|
}
|
|
33913
|
-
function
|
|
33914
|
-
|
|
33991
|
+
function TA() {
|
|
33992
|
+
SA || (SA = !0, !(typeof console > "u") && console.log("%c @svgrid/enterprise %c User is using a Commercial version which requires a license.\nContact sales@jqwidgets.com for details or visit the license page: https://svgrid.com/pricing/?utm_source=svgrid-enterprise&utm_medium=console", "background:#4f46e5;color:#fff;padding:2px 6px;border-radius:3px;font-weight:600", "color:inherit"));
|
|
33915
33993
|
}
|
|
33916
|
-
function
|
|
33994
|
+
function EA() {
|
|
33917
33995
|
if (typeof document > "u") return;
|
|
33918
33996
|
let e = document.querySelectorAll(".sv-grid-root, [role=\"grid\"]");
|
|
33919
33997
|
if (e.length === 0) {
|
|
33920
|
-
|
|
33998
|
+
kA();
|
|
33921
33999
|
return;
|
|
33922
34000
|
}
|
|
33923
|
-
document.querySelectorAll(`[${
|
|
34001
|
+
document.querySelectorAll(`[${gA}="fixed"]`).forEach((e) => e.remove());
|
|
33924
34002
|
let t = /* @__PURE__ */ new Set();
|
|
33925
34003
|
e.forEach((e) => {
|
|
33926
|
-
let n =
|
|
34004
|
+
let n = DA(e);
|
|
33927
34005
|
n && t.add(n);
|
|
33928
|
-
}), t.forEach(
|
|
34006
|
+
}), t.forEach(OA);
|
|
33929
34007
|
}
|
|
33930
|
-
function
|
|
34008
|
+
function DA(e) {
|
|
33931
34009
|
let t = e.closest(".sv-grid-root");
|
|
33932
34010
|
if (t) return t;
|
|
33933
34011
|
let n = e;
|
|
33934
34012
|
for (; n && /^(TABLE|THEAD|TBODY|TFOOT|TR|COLGROUP)$/.test(n.tagName);) n = n.parentElement;
|
|
33935
34013
|
return n;
|
|
33936
34014
|
}
|
|
33937
|
-
function
|
|
33938
|
-
if (e.hasAttribute(
|
|
33939
|
-
e.setAttribute(
|
|
33940
|
-
let t =
|
|
33941
|
-
|
|
34015
|
+
function OA(e) {
|
|
34016
|
+
if (e.hasAttribute(_A)) return;
|
|
34017
|
+
e.setAttribute(_A, "1"), getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
34018
|
+
let t = AA("grid");
|
|
34019
|
+
MA(t, !1), e.appendChild(t), jA(t);
|
|
33942
34020
|
}
|
|
33943
|
-
function
|
|
33944
|
-
if (typeof document > "u" || document.querySelector(`[${
|
|
33945
|
-
let e =
|
|
33946
|
-
|
|
34021
|
+
function kA() {
|
|
34022
|
+
if (typeof document > "u" || document.querySelector(`[${gA}="fixed"]`)) return;
|
|
34023
|
+
let e = AA("fixed");
|
|
34024
|
+
MA(e, !0), document.body.appendChild(e), jA(e);
|
|
33947
34025
|
}
|
|
33948
|
-
function
|
|
34026
|
+
function AA(e) {
|
|
33949
34027
|
let t = document.createElement("a");
|
|
33950
|
-
return t.setAttribute(
|
|
34028
|
+
return t.setAttribute(gA, e), t.href = vA, t.target = "_blank", t.rel = "noopener noreferrer", t.textContent = yA, t.title = "Unlicensed @svgrid/enterprise. Contact sales@jqwidgets.com or visit www.svgrid.com.", t;
|
|
33951
34029
|
}
|
|
33952
|
-
function
|
|
34030
|
+
function jA(e) {
|
|
33953
34031
|
if (typeof window > "u") {
|
|
33954
34032
|
e.remove();
|
|
33955
34033
|
return;
|
|
@@ -33959,10 +34037,10 @@ function OA(e) {
|
|
|
33959
34037
|
e.remove();
|
|
33960
34038
|
return;
|
|
33961
34039
|
}
|
|
33962
|
-
e.style.opacity = "0", window.setTimeout(() => e.remove(),
|
|
33963
|
-
},
|
|
34040
|
+
e.style.opacity = "0", window.setTimeout(() => e.remove(), xA);
|
|
34041
|
+
}, bA);
|
|
33964
34042
|
}
|
|
33965
|
-
function
|
|
34043
|
+
function MA(e, t) {
|
|
33966
34044
|
Object.assign(e.style, {
|
|
33967
34045
|
position: t ? "fixed" : "absolute",
|
|
33968
34046
|
bottom: t ? "12px" : "6px",
|
|
@@ -33981,26 +34059,26 @@ function kA(e, t) {
|
|
|
33981
34059
|
pointerEvents: "auto",
|
|
33982
34060
|
letterSpacing: "0.02em",
|
|
33983
34061
|
opacity: "1",
|
|
33984
|
-
transition: `opacity ${
|
|
34062
|
+
transition: `opacity ${xA}ms ease`
|
|
33985
34063
|
});
|
|
33986
34064
|
}
|
|
33987
34065
|
//#endregion
|
|
33988
34066
|
//#region src/upgrade-prompt.ts
|
|
33989
|
-
var
|
|
33990
|
-
function
|
|
33991
|
-
if (
|
|
33992
|
-
|
|
33993
|
-
let n =
|
|
34067
|
+
var NA = "data-svgrid-enterprise-upgrade", PA = "https://svgrid.com/pricing", FA = "https://svgrid.com/pricing?ref=in-app&utm_source=svgrid-enterprise&utm_medium=upgrade-prompt", IA = !1;
|
|
34068
|
+
function LA(e, t) {
|
|
34069
|
+
if (IA || typeof document > "u" || typeof window > "u" || hA() || document.querySelector(`[${NA}]`)) return;
|
|
34070
|
+
IA = !0;
|
|
34071
|
+
let n = zA(e, t?.expired === !0);
|
|
33994
34072
|
document.body.appendChild(n), requestAnimationFrame(() => {
|
|
33995
34073
|
n.style.opacity = "1", n.style.transform = "translateY(0)";
|
|
33996
34074
|
});
|
|
33997
34075
|
}
|
|
33998
|
-
function
|
|
34076
|
+
function RA(e) {
|
|
33999
34077
|
e.style.opacity = "0", e.style.transform = "translateY(8px)", window.setTimeout(() => e.remove(), 220);
|
|
34000
34078
|
}
|
|
34001
|
-
function
|
|
34079
|
+
function zA(e, t = !1) {
|
|
34002
34080
|
let n = document.createElement("div");
|
|
34003
|
-
n.setAttribute(
|
|
34081
|
+
n.setAttribute(NA, "1"), n.setAttribute("role", "dialog"), n.setAttribute("aria-label", t ? "Your trial has ended" : "Unlock SvGrid Pro"), Object.assign(n.style, {
|
|
34004
34082
|
position: "fixed",
|
|
34005
34083
|
bottom: "16px",
|
|
34006
34084
|
right: "16px",
|
|
@@ -34021,7 +34099,7 @@ function IA(e, t = !1) {
|
|
|
34021
34099
|
transform: "translateY(8px)",
|
|
34022
34100
|
transition: "opacity 220ms ease, transform 220ms ease"
|
|
34023
34101
|
});
|
|
34024
|
-
let r = e ? `<strong style="color:#fff">${
|
|
34102
|
+
let r = e ? `<strong style="color:#fff">${BA(e ? String(e) : "This")}</strong> is a Pro feature.` : "You just used a <strong style=\"color:#fff\">Pro</strong> feature.", i = t ? "TRIAL ENDED" : "PRO", a = t ? "Your trial has ended" : "Unlock SvGrid Pro", o = t ? `${r} Your evaluation period is over - everything still works,
|
|
34025
34103
|
but this notice stays until a licence key is set.` : `${r} It runs in evaluation with a watermark - start a free trial
|
|
34026
34104
|
to remove it and ship to production.`;
|
|
34027
34105
|
return n.innerHTML = `
|
|
@@ -34038,77 +34116,85 @@ function IA(e, t = !1) {
|
|
|
34038
34116
|
${o}
|
|
34039
34117
|
</p>
|
|
34040
34118
|
<div style="display:flex;gap:8px;align-items:center;">
|
|
34041
|
-
<a data-act="trial" href="${
|
|
34119
|
+
<a data-act="trial" href="${FA}" target="_blank" rel="noopener noreferrer"
|
|
34042
34120
|
style="flex:1;text-align:center;background:#6366f1;color:#fff;font-weight:600;
|
|
34043
34121
|
text-decoration:none;padding:8px 12px;border-radius:8px;">${t ? "Buy a licence" : "Start free trial"}</a>
|
|
34044
|
-
<a data-act="pricing" href="${
|
|
34122
|
+
<a data-act="pricing" href="${PA}" target="_blank" rel="noopener noreferrer"
|
|
34045
34123
|
style="color:#a5b4fc;text-decoration:none;padding:8px 6px;font-weight:600;">Pricing</a>
|
|
34046
34124
|
</div>
|
|
34047
34125
|
<p style="margin:10px 0 0;font-size:11px;color:#64748b;">
|
|
34048
34126
|
Already licensed? Call <code style="color:#94a3b8;">setLicenseKey()</code> at startup to hide this.
|
|
34049
34127
|
</p>
|
|
34050
|
-
`, n.querySelector("[data-act=\"x\"]")?.addEventListener("click", () =>
|
|
34128
|
+
`, n.querySelector("[data-act=\"x\"]")?.addEventListener("click", () => RA(n)), n.querySelector("[data-act=\"trial\"]")?.addEventListener("click", () => RA(n)), n.querySelector("[data-act=\"pricing\"]")?.addEventListener("click", () => RA(n)), n;
|
|
34051
34129
|
}
|
|
34052
|
-
function
|
|
34130
|
+
function BA(e) {
|
|
34053
34131
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
34054
34132
|
}
|
|
34055
34133
|
//#endregion
|
|
34056
34134
|
//#region src/license.ts
|
|
34057
|
-
var
|
|
34058
|
-
function
|
|
34059
|
-
if (
|
|
34060
|
-
|
|
34135
|
+
var VA = null, HA = !1, UA = /* @__PURE__ */ new Set();
|
|
34136
|
+
function WA(e) {
|
|
34137
|
+
if (HA) return;
|
|
34138
|
+
HA = !0;
|
|
34061
34139
|
let t = e.expiresAt ? ` on ${e.expiresAt.toISOString().slice(0, 10)}` : "";
|
|
34062
34140
|
console.info(`@svgrid/enterprise: your evaluation license expired${t}. Everything still works, but the watermark and upgrade notice stay until a license key is set. Contact sales@jqwidgets.com or see https://svgrid.com/pricing/?utm_source=svgrid-enterprise&utm_medium=console`);
|
|
34063
34141
|
}
|
|
34064
|
-
|
|
34142
|
+
function GA(e) {
|
|
34143
|
+
return e.status === "dev" || e.status === "eval";
|
|
34144
|
+
}
|
|
34145
|
+
var KA = !1;
|
|
34146
|
+
function qA(e) {
|
|
34147
|
+
KA || e.status !== "invalid" && e.status !== "revoked" || hA() || (KA = !0, console.warn("@svgrid/enterprise: the license key passed to setLicenseKey() is not valid, so the watermark stays. Copy the key from your order email, or contact sales@jqwidgets.com."));
|
|
34148
|
+
}
|
|
34149
|
+
var JA = {
|
|
34065
34150
|
grid: "the enterprise grid",
|
|
34066
34151
|
spreadsheet: "the spreadsheet",
|
|
34067
34152
|
studio: "the Studio"
|
|
34068
34153
|
};
|
|
34069
|
-
function
|
|
34070
|
-
|
|
34154
|
+
function YA(e) {
|
|
34155
|
+
UA.has(e) || (UA.add(e), console.info(`@svgrid/enterprise: your Grid license does not cover ${JA[e]}. Everything still works, but the watermark and upgrade notice stay until the license is upgraded to Suite. Contact sales@jqwidgets.com or see https://svgrid.com/pricing/?utm_source=svgrid-enterprise&utm_medium=console`));
|
|
34071
34156
|
}
|
|
34072
|
-
function
|
|
34073
|
-
let n =
|
|
34074
|
-
if (r && !
|
|
34075
|
-
|
|
34076
|
-
|
|
34157
|
+
function XA(e, t) {
|
|
34158
|
+
let n = pA(VA), r = n.valid && fA(n.edition, e), i = GA(n) && n.expired === !0;
|
|
34159
|
+
if (r && !i) return;
|
|
34160
|
+
qA(n);
|
|
34161
|
+
let a = n.valid && !i && !r;
|
|
34162
|
+
wA(), a ? YA(e) : i && WA(n), LA(t, { expired: i });
|
|
34077
34163
|
}
|
|
34078
34164
|
//#endregion
|
|
34079
34165
|
//#region src/sheet-enable.ts
|
|
34080
|
-
var
|
|
34081
|
-
function
|
|
34082
|
-
|
|
34166
|
+
var ZA = !1;
|
|
34167
|
+
function QA() {
|
|
34168
|
+
ZA || (ZA = !0, gr(vf, {
|
|
34083
34169
|
id: "svgrid-sheet",
|
|
34084
34170
|
priority: 100
|
|
34085
|
-
}), _l((e, t) => Bu(e, t.rows, t.cols)),
|
|
34171
|
+
}), _l((e, t) => Bu(e, t.rows, t.cols)), XA("spreadsheet", "Spreadsheet"));
|
|
34086
34172
|
}
|
|
34087
34173
|
//#endregion
|
|
34088
34174
|
//#region src/pivot.ts
|
|
34089
|
-
var
|
|
34090
|
-
sum: (e) =>
|
|
34175
|
+
var $A = (e) => e.map((e) => typeof e == "number" ? e : Number(e)).filter((e) => !Number.isNaN(e)), ej = {
|
|
34176
|
+
sum: (e) => $A(e).reduce((e, t) => e + t, 0),
|
|
34091
34177
|
avg: (e) => {
|
|
34092
|
-
let t =
|
|
34178
|
+
let t = $A(e);
|
|
34093
34179
|
return t.length === 0 ? null : t.reduce((e, t) => e + t, 0) / t.length;
|
|
34094
34180
|
},
|
|
34095
|
-
min: (e) =>
|
|
34096
|
-
max: (e) =>
|
|
34181
|
+
min: (e) => $A(e).length === 0 ? null : Math.min(...$A(e)),
|
|
34182
|
+
max: (e) => $A(e).length === 0 ? null : Math.max(...$A(e)),
|
|
34097
34183
|
count: (e) => e.length,
|
|
34098
34184
|
countDistinct: (e) => new Set(e).size,
|
|
34099
34185
|
first: (e) => e[0] ?? null,
|
|
34100
34186
|
last: (e) => e[e.length - 1] ?? null
|
|
34101
34187
|
};
|
|
34102
|
-
function
|
|
34188
|
+
function tj(e) {
|
|
34103
34189
|
if (typeof e == "function") return e;
|
|
34104
|
-
let t =
|
|
34190
|
+
let t = ej[e];
|
|
34105
34191
|
if (!t) throw Error(`pivot: unknown aggregator '${String(e)}'`);
|
|
34106
34192
|
return t;
|
|
34107
34193
|
}
|
|
34108
|
-
function
|
|
34194
|
+
function nj(e, t) {
|
|
34109
34195
|
return e === t ? 0 : e == null ? -1 : t == null ? 1 : typeof e == "number" && typeof t == "number" ? e - t : String(e).localeCompare(String(t), void 0, { numeric: !0 });
|
|
34110
34196
|
}
|
|
34111
|
-
function
|
|
34197
|
+
function rj(e, t, n) {
|
|
34112
34198
|
let r = {
|
|
34113
34199
|
level: 0,
|
|
34114
34200
|
value: null,
|
|
@@ -34131,20 +34217,20 @@ function ZA(e, t, n) {
|
|
|
34131
34217
|
}, e.children.set(a, o)), o.rows.push(n), e = o;
|
|
34132
34218
|
}
|
|
34133
34219
|
}
|
|
34134
|
-
return
|
|
34220
|
+
return ij(r, n), r;
|
|
34135
34221
|
}
|
|
34136
|
-
function
|
|
34222
|
+
function ij(e, t) {
|
|
34137
34223
|
let n = Array.from(e.children.entries());
|
|
34138
|
-
n.sort(([, e], [, n]) => (t ??
|
|
34139
|
-
for (let n of e.children.values())
|
|
34224
|
+
n.sort(([, e], [, n]) => (t ?? nj)(e.value, n.value, e.level - 1)), e.children = new Map(n);
|
|
34225
|
+
for (let n of e.children.values()) ij(n, t);
|
|
34140
34226
|
}
|
|
34141
|
-
function
|
|
34142
|
-
return `pv__${e.length === 0 ? "all" : e.map((e) =>
|
|
34227
|
+
function aj(e, t) {
|
|
34228
|
+
return `pv__${e.length === 0 ? "all" : e.map((e) => oj(e)).join("__")}__m${t}`;
|
|
34143
34229
|
}
|
|
34144
|
-
function
|
|
34230
|
+
function oj(e) {
|
|
34145
34231
|
return e == null ? "null" : String(e).replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
34146
34232
|
}
|
|
34147
|
-
function
|
|
34233
|
+
function sj(e, t, n, r) {
|
|
34148
34234
|
let i = {
|
|
34149
34235
|
id: "__pivotRowHeader",
|
|
34150
34236
|
header: r,
|
|
@@ -34153,7 +34239,7 @@ function tj(e, t, n, r) {
|
|
|
34153
34239
|
};
|
|
34154
34240
|
function a(e) {
|
|
34155
34241
|
return e.children.size === 0 ? t.map((t, n) => {
|
|
34156
|
-
let r =
|
|
34242
|
+
let r = aj(e.path, n);
|
|
34157
34243
|
return {
|
|
34158
34244
|
id: r,
|
|
34159
34245
|
header: t.label ?? `${t.field} (${typeof t.agg == "function" ? "custom" : t.agg})`,
|
|
@@ -34173,7 +34259,7 @@ function tj(e, t, n, r) {
|
|
|
34173
34259
|
id: "pv_group__grand_total",
|
|
34174
34260
|
header: "Total",
|
|
34175
34261
|
columns: t.map((e, t) => {
|
|
34176
|
-
let n =
|
|
34262
|
+
let n = aj(["__total"], t);
|
|
34177
34263
|
return {
|
|
34178
34264
|
id: n,
|
|
34179
34265
|
header: e.label ?? `${e.field} (${typeof e.agg == "function" ? "custom" : e.agg})`,
|
|
@@ -34189,35 +34275,35 @@ function tj(e, t, n, r) {
|
|
|
34189
34275
|
s
|
|
34190
34276
|
];
|
|
34191
34277
|
}
|
|
34192
|
-
function
|
|
34278
|
+
function cj(e, t) {
|
|
34193
34279
|
if (e.children.size === 0) {
|
|
34194
34280
|
t.push(e.path);
|
|
34195
34281
|
return;
|
|
34196
34282
|
}
|
|
34197
|
-
for (let n of e.children.values())
|
|
34283
|
+
for (let n of e.children.values()) cj(n, t);
|
|
34198
34284
|
}
|
|
34199
|
-
function
|
|
34285
|
+
function lj(e, t, n, r, i) {
|
|
34200
34286
|
let a = {};
|
|
34201
34287
|
for (let i of t) {
|
|
34202
34288
|
let t = i.length === 0 ? e : e.filter((e) => i.every((t, r) => e[n[r]] === t));
|
|
34203
34289
|
for (let e = 0; e < r.length; e += 1) {
|
|
34204
|
-
let n = r[e], o =
|
|
34290
|
+
let n = r[e], o = tj(n.agg), s = aj(i, e);
|
|
34205
34291
|
a[s] = o(t.map((e) => e[n.field]));
|
|
34206
34292
|
}
|
|
34207
34293
|
}
|
|
34208
34294
|
if (i) for (let t = 0; t < r.length; t += 1) {
|
|
34209
|
-
let n = r[t], i =
|
|
34295
|
+
let n = r[t], i = tj(n.agg), o = aj(["__total"], t);
|
|
34210
34296
|
a[o] = i(e.map((e) => e[n.field]));
|
|
34211
34297
|
}
|
|
34212
34298
|
return a;
|
|
34213
34299
|
}
|
|
34214
|
-
function
|
|
34300
|
+
function uj(e, t, n) {
|
|
34215
34301
|
let r = {};
|
|
34216
|
-
for (let n of e) for (let e = 0; e < t.length; e += 1) r[
|
|
34217
|
-
if (n) for (let e = 0; e < t.length; e += 1) r[
|
|
34302
|
+
for (let n of e) for (let e = 0; e < t.length; e += 1) r[aj(n, e)] = null;
|
|
34303
|
+
if (n) for (let e = 0; e < t.length; e += 1) r[aj(["__total"], e)] = null;
|
|
34218
34304
|
return r;
|
|
34219
34305
|
}
|
|
34220
|
-
function
|
|
34306
|
+
function dj(e, t, n, r, i, a, o, s) {
|
|
34221
34307
|
let c = a.grandTotalCol !== !1, l = a.rowSubtotals !== !1;
|
|
34222
34308
|
if (e.children.size === 0) {
|
|
34223
34309
|
t.push({
|
|
@@ -34227,7 +34313,7 @@ function aj(e, t, n, r, i, a, o, s) {
|
|
|
34227
34313
|
__pivotLabel: e.value === null ? "(All)" : String(e.value),
|
|
34228
34314
|
__pivotParentId: s,
|
|
34229
34315
|
__pivotExpandable: !1,
|
|
34230
|
-
...
|
|
34316
|
+
...lj(e.rows, n, r, i, c)
|
|
34231
34317
|
});
|
|
34232
34318
|
return;
|
|
34233
34319
|
}
|
|
@@ -34241,15 +34327,15 @@ function aj(e, t, n, r, i, a, o, s) {
|
|
|
34241
34327
|
__pivotLabel: String(e.value ?? "(All)"),
|
|
34242
34328
|
__pivotParentId: s,
|
|
34243
34329
|
__pivotExpandable: !0,
|
|
34244
|
-
...l ?
|
|
34330
|
+
...l ? lj(e.rows, n, r, i, c) : uj(n, i, c)
|
|
34245
34331
|
}), d = a;
|
|
34246
34332
|
}
|
|
34247
|
-
for (let s of e.children.values())
|
|
34333
|
+
for (let s of e.children.values()) dj(s, t, n, r, i, a, o, d);
|
|
34248
34334
|
}
|
|
34249
|
-
function
|
|
34335
|
+
function fj(e, t) {
|
|
34250
34336
|
if (t.values.length === 0) throw Error("pivot: at least one value config is required");
|
|
34251
|
-
let n = t.rows, r = t.cols, i = t.values, a =
|
|
34252
|
-
|
|
34337
|
+
let n = t.rows, r = t.cols, i = t.values, a = rj(e, n, t.rowSort), o = rj(e, r, t.colSort), s = [];
|
|
34338
|
+
cj(o, s);
|
|
34253
34339
|
let c = [];
|
|
34254
34340
|
return n.length === 0 ? c.push({
|
|
34255
34341
|
__pivotId: "row__all",
|
|
@@ -34258,32 +34344,32 @@ function oj(e, t) {
|
|
|
34258
34344
|
__pivotLabel: "(All)",
|
|
34259
34345
|
__pivotParentId: null,
|
|
34260
34346
|
__pivotExpandable: !1,
|
|
34261
|
-
...
|
|
34262
|
-
}) :
|
|
34347
|
+
...lj(e, s, r, i, t.grandTotalCol !== !1)
|
|
34348
|
+
}) : dj(a, c, s, r, i, t, n, null), t.grandTotalRow !== !1 && c.push({
|
|
34263
34349
|
__pivotId: "row__grand_total",
|
|
34264
34350
|
__pivotKind: "grandTotal",
|
|
34265
34351
|
__pivotDepth: 0,
|
|
34266
34352
|
__pivotLabel: "Grand total",
|
|
34267
34353
|
__pivotParentId: null,
|
|
34268
34354
|
__pivotExpandable: !1,
|
|
34269
|
-
...
|
|
34355
|
+
...lj(e, s, r, i, t.grandTotalCol !== !1)
|
|
34270
34356
|
}), {
|
|
34271
34357
|
rows: c,
|
|
34272
|
-
columns:
|
|
34358
|
+
columns: sj(o, i, t, n.length > 0 ? n.join(" / ") : "")
|
|
34273
34359
|
};
|
|
34274
34360
|
}
|
|
34275
|
-
({ ...
|
|
34361
|
+
({ ...ej });
|
|
34276
34362
|
//#endregion
|
|
34277
34363
|
//#region src/sheet/pivot-range.ts
|
|
34278
|
-
var
|
|
34364
|
+
var pj = [
|
|
34279
34365
|
"sum",
|
|
34280
34366
|
"avg",
|
|
34281
34367
|
"count",
|
|
34282
34368
|
"countDistinct",
|
|
34283
34369
|
"min",
|
|
34284
34370
|
"max"
|
|
34285
|
-
],
|
|
34286
|
-
function
|
|
34371
|
+
], mj = 1, hj = () => `pivot-${Date.now().toString(36)}-${(mj += 1).toString(36)}`;
|
|
34372
|
+
function gj(e) {
|
|
34287
34373
|
return {
|
|
34288
34374
|
...e,
|
|
34289
34375
|
source: [...e.source],
|
|
@@ -34295,12 +34381,12 @@ function uj(e) {
|
|
|
34295
34381
|
...e.written ? { written: [...e.written] } : {}
|
|
34296
34382
|
};
|
|
34297
34383
|
}
|
|
34298
|
-
function
|
|
34384
|
+
function _j(e, t) {
|
|
34299
34385
|
let n = Y_(e.source, t);
|
|
34300
34386
|
if (!n) return null;
|
|
34301
34387
|
let r = tv(t), i = t.kind === "insertRows" || t.kind === "deleteRows", a = r(i ? e.target.row : e.target.col);
|
|
34302
34388
|
if (a === null) return null;
|
|
34303
|
-
let o =
|
|
34389
|
+
let o = gj(e);
|
|
34304
34390
|
if (o.source = n, o.target = i ? {
|
|
34305
34391
|
...o.target,
|
|
34306
34392
|
row: a
|
|
@@ -34313,10 +34399,10 @@ function dj(e, t) {
|
|
|
34313
34399
|
}
|
|
34314
34400
|
return o;
|
|
34315
34401
|
}
|
|
34316
|
-
function
|
|
34317
|
-
return e.map((e) =>
|
|
34402
|
+
function vj(e, t) {
|
|
34403
|
+
return e.map((e) => _j(e, t)).filter((e) => e !== null);
|
|
34318
34404
|
}
|
|
34319
|
-
function
|
|
34405
|
+
function yj(e, t) {
|
|
34320
34406
|
let [n, r, , i] = e, a = [], o = /* @__PURE__ */ new Set();
|
|
34321
34407
|
for (let e = r; e <= i; e += 1) {
|
|
34322
34408
|
let r = t(n, e).trim() || `Column ${Z(e)}`;
|
|
@@ -34325,8 +34411,8 @@ function pj(e, t) {
|
|
|
34325
34411
|
}
|
|
34326
34412
|
return a;
|
|
34327
34413
|
}
|
|
34328
|
-
function
|
|
34329
|
-
let [r, i, a, o] = e, s =
|
|
34414
|
+
function bj(e, t, n) {
|
|
34415
|
+
let [r, i, a, o] = e, s = yj(e, n), c = [];
|
|
34330
34416
|
for (let e = r + 1; e <= a; e += 1) {
|
|
34331
34417
|
let n = {}, r = !1;
|
|
34332
34418
|
for (let a = i; a <= o; a += 1) {
|
|
@@ -34337,7 +34423,7 @@ function mj(e, t, n) {
|
|
|
34337
34423
|
}
|
|
34338
34424
|
return c;
|
|
34339
34425
|
}
|
|
34340
|
-
function
|
|
34426
|
+
function xj(e) {
|
|
34341
34427
|
let t = e, n = (e) => e.reduce((e, t) => Math.max(e, t.columns?.length ? 1 + n(t.columns) : 1), 0), r = n(t), i = Array.from({ length: r }, () => []), a = [], o = (e, t) => {
|
|
34342
34428
|
for (let n of e) {
|
|
34343
34429
|
let e = n.header === void 0 || n.header === null ? "" : String(n.header);
|
|
@@ -34363,25 +34449,25 @@ function hj(e) {
|
|
|
34363
34449
|
leaves: a
|
|
34364
34450
|
};
|
|
34365
34451
|
}
|
|
34366
|
-
function
|
|
34452
|
+
function Sj(e, t) {
|
|
34367
34453
|
let n = (e.filters ?? []).filter((e) => e.field && e.value !== "");
|
|
34368
34454
|
return n.length ? t.filter((e) => n.every((t) => String(e[t.field] ?? "") === t.value)) : [...t];
|
|
34369
34455
|
}
|
|
34370
|
-
function
|
|
34456
|
+
function Cj(e, t, n, r) {
|
|
34371
34457
|
let i = [];
|
|
34372
|
-
for (let a of
|
|
34458
|
+
for (let a of bj(t, n, r)) {
|
|
34373
34459
|
let t = String(a[e] ?? "");
|
|
34374
34460
|
t !== "" && !i.includes(t) && i.push(t);
|
|
34375
34461
|
}
|
|
34376
34462
|
return i;
|
|
34377
34463
|
}
|
|
34378
|
-
function
|
|
34464
|
+
function wj(e) {
|
|
34379
34465
|
return e == null || e === "" ? "" : typeof e == "number" ? Number.isFinite(e) ? String(Number(e.toPrecision(12))) : "" : typeof e == "boolean" ? e ? "TRUE" : "FALSE" : String(e);
|
|
34380
34466
|
}
|
|
34381
|
-
function
|
|
34382
|
-
return
|
|
34467
|
+
function Tj(e, t, n) {
|
|
34468
|
+
return Ej(e, t, n).cells;
|
|
34383
34469
|
}
|
|
34384
|
-
function
|
|
34470
|
+
function Ej(e, t, n) {
|
|
34385
34471
|
let r = {
|
|
34386
34472
|
cells: [],
|
|
34387
34473
|
headerCount: 0,
|
|
@@ -34389,7 +34475,7 @@ function bj(e, t, n) {
|
|
|
34389
34475
|
colPaths: []
|
|
34390
34476
|
};
|
|
34391
34477
|
if (!e.values.length) return r;
|
|
34392
|
-
let i =
|
|
34478
|
+
let i = fj(Sj(e, bj(e.source, t, n)), {
|
|
34393
34479
|
rows: e.rows,
|
|
34394
34480
|
cols: e.cols,
|
|
34395
34481
|
values: e.values.map((e) => ({
|
|
@@ -34400,7 +34486,7 @@ function bj(e, t, n) {
|
|
|
34400
34486
|
grandTotalRow: e.grandTotalRow !== !1,
|
|
34401
34487
|
grandTotalCol: e.cols.length ? e.grandTotalCol !== !1 : !1,
|
|
34402
34488
|
rowSubtotals: e.rowSubtotals !== !1
|
|
34403
|
-
}), { headerRows: a, leaves: o } =
|
|
34489
|
+
}), { headerRows: a, leaves: o } = xj(i.columns), s = o[0]?.id === "__pivotRowHeader" ? o.shift() : void 0, c = s?.header ?? "", l = +!!s, u = a.map((e, t) => [t === a.length - 1 ? c : "", ...e.slice(l)]);
|
|
34404
34490
|
if (e.values.length === 1 && u.length > 1) {
|
|
34405
34491
|
let e = u.pop();
|
|
34406
34492
|
u[u.length - 1][0] = e[0] ?? "";
|
|
@@ -34411,12 +34497,12 @@ function bj(e, t, n) {
|
|
|
34411
34497
|
for (; t.length < Math.max(e, 2);) t.push("");
|
|
34412
34498
|
return t;
|
|
34413
34499
|
};
|
|
34414
|
-
u.unshift(...d.map((e) => t([e.field, e.value === "" ?
|
|
34500
|
+
u.unshift(...d.map((e) => t([e.field, e.value === "" ? Dj : e.value])), t([]));
|
|
34415
34501
|
}
|
|
34416
34502
|
let f = u.length, p = Array.from({ length: f }, () => null), m = [];
|
|
34417
34503
|
for (let e of i.rows) {
|
|
34418
34504
|
let t = " ".repeat(Math.max(0, e.__pivotDepth - 1));
|
|
34419
|
-
u.push([`${t}${e.__pivotLabel}`, ...o.map((t) =>
|
|
34505
|
+
u.push([`${t}${e.__pivotLabel}`, ...o.map((t) => wj(e[t.id]))]);
|
|
34420
34506
|
let n = Math.max(0, e.__pivotDepth);
|
|
34421
34507
|
if (e.__pivotKind === "grandTotal") {
|
|
34422
34508
|
p.push([]);
|
|
@@ -34447,15 +34533,15 @@ function bj(e, t, n) {
|
|
|
34447
34533
|
colPaths: g
|
|
34448
34534
|
};
|
|
34449
34535
|
}
|
|
34450
|
-
var
|
|
34451
|
-
function
|
|
34452
|
-
let a =
|
|
34536
|
+
var Dj = "(All)";
|
|
34537
|
+
function Oj(e, t, n, r, i) {
|
|
34538
|
+
let a = Ej(e, r, i);
|
|
34453
34539
|
if (!a.cells.length) return null;
|
|
34454
34540
|
let o = t - e.target.row, s = n - e.target.col;
|
|
34455
34541
|
if (o < 0 || o >= a.cells.length || s < 0 || s >= (a.cells[o]?.length ?? 0)) return null;
|
|
34456
34542
|
let c = a.rowPaths[o], l = a.colPaths[s];
|
|
34457
34543
|
if (!c || !l) return null;
|
|
34458
|
-
let u =
|
|
34544
|
+
let u = Sj(e, bj(e.source, r, i)).filter((t) => {
|
|
34459
34545
|
for (let n = 0; n < c.length; n += 1) {
|
|
34460
34546
|
let r = e.rows[n];
|
|
34461
34547
|
if (r === void 0 || String(t[r] ?? "") !== c[n]) return !1;
|
|
@@ -34470,10 +34556,10 @@ function Sj(e, t, n, r, i) {
|
|
|
34470
34556
|
rowPath: [...c],
|
|
34471
34557
|
colPath: [...l],
|
|
34472
34558
|
records: u,
|
|
34473
|
-
fields:
|
|
34559
|
+
fields: yj(e.source, i)
|
|
34474
34560
|
};
|
|
34475
34561
|
}
|
|
34476
|
-
function
|
|
34562
|
+
function kj(e, t) {
|
|
34477
34563
|
let n = Math.max(1, t.length), r = Math.max(1, t.reduce((e, t) => Math.max(e, t.length), 0)), { row: i, col: a } = e.target;
|
|
34478
34564
|
return [
|
|
34479
34565
|
i,
|
|
@@ -34482,10 +34568,10 @@ function Cj(e, t) {
|
|
|
34482
34568
|
a + r - 1
|
|
34483
34569
|
];
|
|
34484
34570
|
}
|
|
34485
|
-
function
|
|
34571
|
+
function Aj(e, t) {
|
|
34486
34572
|
let [n, , , r] = e;
|
|
34487
34573
|
return {
|
|
34488
|
-
id:
|
|
34574
|
+
id: hj(),
|
|
34489
34575
|
source: [...e],
|
|
34490
34576
|
target: {
|
|
34491
34577
|
row: n,
|
|
@@ -34501,7 +34587,7 @@ function wj(e, t) {
|
|
|
34501
34587
|
}
|
|
34502
34588
|
//#endregion
|
|
34503
34589
|
//#region src/sheet/conditional-formats.ts
|
|
34504
|
-
var
|
|
34590
|
+
var jj = [
|
|
34505
34591
|
{
|
|
34506
34592
|
id: "light-red",
|
|
34507
34593
|
label: "Light Red Fill with Dark Red Text",
|
|
@@ -34536,7 +34622,7 @@ var Tj = [
|
|
|
34536
34622
|
label: "Red Text",
|
|
34537
34623
|
style: { color: "#9C0006" }
|
|
34538
34624
|
}
|
|
34539
|
-
],
|
|
34625
|
+
], Mj = "#638EC6", Nj = {
|
|
34540
34626
|
"green-yellow-red": [
|
|
34541
34627
|
"#63BE7B",
|
|
34542
34628
|
"#FFEB84",
|
|
@@ -34549,11 +34635,11 @@ var Tj = [
|
|
|
34549
34635
|
],
|
|
34550
34636
|
"green-white": ["#63BE7B", "#FCFCFF"],
|
|
34551
34637
|
"white-red": ["#FCFCFF", "#F8696B"]
|
|
34552
|
-
},
|
|
34553
|
-
function
|
|
34554
|
-
return
|
|
34638
|
+
}, Pj = 1;
|
|
34639
|
+
function Fj() {
|
|
34640
|
+
return Pj += 1, `cf${Date.now().toString(36)}${Pj}`;
|
|
34555
34641
|
}
|
|
34556
|
-
function
|
|
34642
|
+
function Ij(e, t, n) {
|
|
34557
34643
|
let r = [], i = /* @__PURE__ */ new Map(), a = 0;
|
|
34558
34644
|
for (let [o, s, c, l] of e.rects) for (let u = o; u <= c; u += 1) for (let o = s; o <= l; o += 1) {
|
|
34559
34645
|
let s = t(u, o);
|
|
@@ -34570,19 +34656,19 @@ function Aj(e, t, n) {
|
|
|
34570
34656
|
counts: i
|
|
34571
34657
|
};
|
|
34572
34658
|
}
|
|
34573
|
-
function
|
|
34659
|
+
function Lj(e, t) {
|
|
34574
34660
|
let n = t.evaluate(e);
|
|
34575
34661
|
if (bu(n) || typeof n == "boolean") return null;
|
|
34576
34662
|
let r = typeof n == "number" ? n : Number(n);
|
|
34577
34663
|
return Number.isFinite(r) ? r : null;
|
|
34578
34664
|
}
|
|
34579
|
-
function
|
|
34665
|
+
function Rj(e, t) {
|
|
34580
34666
|
let n = e.trim();
|
|
34581
34667
|
if (!n.startsWith("=")) return n;
|
|
34582
34668
|
let r = t.evaluate(n);
|
|
34583
34669
|
return bu(r) ? "" : Mm(r);
|
|
34584
34670
|
}
|
|
34585
|
-
function
|
|
34671
|
+
function zj(e, t, n, r) {
|
|
34586
34672
|
if (n === null) return !1;
|
|
34587
34673
|
switch (t) {
|
|
34588
34674
|
case "greater": return e > n;
|
|
@@ -34595,18 +34681,18 @@ function Nj(e, t, n, r) {
|
|
|
34595
34681
|
case "notBetween": return r !== null && (e < Math.min(n, r) || e > Math.max(n, r));
|
|
34596
34682
|
}
|
|
34597
34683
|
}
|
|
34598
|
-
function
|
|
34684
|
+
function Bj(e, t, n, r, i, a) {
|
|
34599
34685
|
switch (e.kind) {
|
|
34600
34686
|
case "cellIs": {
|
|
34601
|
-
let r = e.operator === "equal" || e.operator === "notEqual", a =
|
|
34602
|
-
if (typeof t == "number" && (a !== null || !r)) return
|
|
34687
|
+
let r = e.operator === "equal" || e.operator === "notEqual", a = Lj(e.value1, i);
|
|
34688
|
+
if (typeof t == "number" && (a !== null || !r)) return zj(t, e.operator, a, e.value2 === void 0 ? null : Lj(e.value2, i));
|
|
34603
34689
|
if (!r) return !1;
|
|
34604
|
-
let o = n !== "" && n.toLowerCase() ===
|
|
34690
|
+
let o = n !== "" && n.toLowerCase() === Rj(e.value1, i).toLowerCase();
|
|
34605
34691
|
return e.operator === "equal" ? o : n !== "" && !o;
|
|
34606
34692
|
}
|
|
34607
34693
|
case "text": {
|
|
34608
34694
|
if (n === "") return !1;
|
|
34609
|
-
let t = n.toLowerCase(), r =
|
|
34695
|
+
let t = n.toLowerCase(), r = Rj(e.value, i).toLowerCase();
|
|
34610
34696
|
if (r === "") return !1;
|
|
34611
34697
|
switch (e.match) {
|
|
34612
34698
|
case "contains": return t.includes(r);
|
|
@@ -34638,7 +34724,7 @@ function Pj(e, t, n, r, i, a) {
|
|
|
34638
34724
|
default: return !1;
|
|
34639
34725
|
}
|
|
34640
34726
|
}
|
|
34641
|
-
function
|
|
34727
|
+
function Vj(e, t) {
|
|
34642
34728
|
let n = Math.min(0, t.min), r = Math.max(0, t.max) - n, i = e < 0;
|
|
34643
34729
|
if (r === 0) return {
|
|
34644
34730
|
ratio: 0,
|
|
@@ -34652,16 +34738,16 @@ function Fj(e, t) {
|
|
|
34652
34738
|
negative: i
|
|
34653
34739
|
};
|
|
34654
34740
|
}
|
|
34655
|
-
function
|
|
34741
|
+
function Hj(e, t) {
|
|
34656
34742
|
return t.max === t.min ? .5 : Math.min(1, Math.max(0, (e - t.min) / (t.max - t.min)));
|
|
34657
34743
|
}
|
|
34658
|
-
function
|
|
34659
|
-
let r =
|
|
34744
|
+
function Uj(e, t, n) {
|
|
34745
|
+
let r = Wj(e), i = Wj(t);
|
|
34660
34746
|
if (!r || !i) return e;
|
|
34661
34747
|
let a = Math.min(1, Math.max(0, n)), o = (e) => Math.round(r[e] + (i[e] - r[e]) * a).toString(16).padStart(2, "0");
|
|
34662
34748
|
return `#${o(0)}${o(1)}${o(2)}`;
|
|
34663
34749
|
}
|
|
34664
|
-
function
|
|
34750
|
+
function Wj(e) {
|
|
34665
34751
|
let t = /^#?([0-9a-f]{6})$/i.exec(e.trim());
|
|
34666
34752
|
if (!t) return null;
|
|
34667
34753
|
let n = parseInt(t[1], 16);
|
|
@@ -34671,20 +34757,20 @@ function Rj(e) {
|
|
|
34671
34757
|
n & 255
|
|
34672
34758
|
];
|
|
34673
34759
|
}
|
|
34674
|
-
function
|
|
34675
|
-
return e.length === 2 ?
|
|
34760
|
+
function Gj(e, t) {
|
|
34761
|
+
return e.length === 2 ? Uj(e[0], e[1], t) : t <= .5 ? Uj(e[0], e[1], t * 2) : Uj(e[1], e[2], (t - .5) * 2);
|
|
34676
34762
|
}
|
|
34677
|
-
function
|
|
34763
|
+
function Kj(e) {
|
|
34678
34764
|
return e >= 2 / 3 ? 0 : e >= 1 / 3 ? 1 : 2;
|
|
34679
34765
|
}
|
|
34680
|
-
function
|
|
34766
|
+
function qj(e, t, n, r, i, a, o) {
|
|
34681
34767
|
let s = null;
|
|
34682
34768
|
for (let c of e) {
|
|
34683
34769
|
if (!c.rects.some((e) => Z_(e, t, n))) continue;
|
|
34684
34770
|
let e = !1;
|
|
34685
34771
|
if (c.kind === "dataBar") {
|
|
34686
34772
|
if (typeof r == "number" && !s?.dataBar) {
|
|
34687
|
-
let t =
|
|
34773
|
+
let t = Vj(r, a(c));
|
|
34688
34774
|
s = {
|
|
34689
34775
|
...s ?? {},
|
|
34690
34776
|
dataBar: {
|
|
@@ -34701,7 +34787,7 @@ function Vj(e, t, n, r, i, a, o) {
|
|
|
34701
34787
|
...t,
|
|
34702
34788
|
style: {
|
|
34703
34789
|
...t.style ?? {},
|
|
34704
|
-
fill:
|
|
34790
|
+
fill: Gj(c.colors, Hj(r, n))
|
|
34705
34791
|
}
|
|
34706
34792
|
}, e = !0;
|
|
34707
34793
|
}
|
|
@@ -34712,11 +34798,11 @@ function Vj(e, t, n, r, i, a, o) {
|
|
|
34712
34798
|
...s ?? {},
|
|
34713
34799
|
icon: {
|
|
34714
34800
|
set: c.set,
|
|
34715
|
-
index:
|
|
34801
|
+
index: Kj(Hj(r, t))
|
|
34716
34802
|
}
|
|
34717
34803
|
}, e = !0;
|
|
34718
34804
|
}
|
|
34719
|
-
} else if (
|
|
34805
|
+
} else if (eM(c) && Bj(c, r, i, a(c), o, {
|
|
34720
34806
|
row: t,
|
|
34721
34807
|
col: n
|
|
34722
34808
|
})) {
|
|
@@ -34731,10 +34817,10 @@ function Vj(e, t, n, r, i, a, o) {
|
|
|
34731
34817
|
}
|
|
34732
34818
|
return s;
|
|
34733
34819
|
}
|
|
34734
|
-
function
|
|
34820
|
+
function Jj(e, t) {
|
|
34735
34821
|
return X_(e, t);
|
|
34736
34822
|
}
|
|
34737
|
-
function
|
|
34823
|
+
function Yj(e, t) {
|
|
34738
34824
|
let n = [];
|
|
34739
34825
|
for (let r of e) {
|
|
34740
34826
|
let e = [...r.rects];
|
|
@@ -34746,10 +34832,10 @@ function Uj(e, t) {
|
|
|
34746
34832
|
}
|
|
34747
34833
|
return n;
|
|
34748
34834
|
}
|
|
34749
|
-
function
|
|
34835
|
+
function Xj(e, t) {
|
|
34750
34836
|
return e.filter((e) => e.rects.some((e) => t.some((t) => Q_(e, t))));
|
|
34751
34837
|
}
|
|
34752
|
-
var
|
|
34838
|
+
var Zj = {
|
|
34753
34839
|
greater: "greater than",
|
|
34754
34840
|
less: "less than",
|
|
34755
34841
|
between: "between",
|
|
@@ -34758,16 +34844,16 @@ var Gj = {
|
|
|
34758
34844
|
notEqual: "not equal to",
|
|
34759
34845
|
greaterOrEqual: "greater than or equal to",
|
|
34760
34846
|
lessOrEqual: "less than or equal to"
|
|
34761
|
-
},
|
|
34847
|
+
}, Qj = {
|
|
34762
34848
|
contains: "contains",
|
|
34763
34849
|
notContains: "does not contain",
|
|
34764
34850
|
beginsWith: "begins with",
|
|
34765
34851
|
endsWith: "ends with"
|
|
34766
34852
|
};
|
|
34767
|
-
function
|
|
34853
|
+
function $j(e) {
|
|
34768
34854
|
switch (e.kind) {
|
|
34769
|
-
case "cellIs": return e.operator === "between" || e.operator === "notBetween" ? `Cell Value ${
|
|
34770
|
-
case "text": return `Cell Value ${
|
|
34855
|
+
case "cellIs": return e.operator === "between" || e.operator === "notBetween" ? `Cell Value ${Zj[e.operator]} ${e.value1} and ${e.value2 ?? ""}` : `Cell Value ${Zj[e.operator]} ${e.value1}`;
|
|
34856
|
+
case "text": return `Cell Value ${Qj[e.match]} '${e.value}'`;
|
|
34771
34857
|
case "duplicates": return e.unique ? "Unique Values" : "Duplicate Values";
|
|
34772
34858
|
case "topBottom": return `${e.top ? "Top" : "Bottom"} ${e.rank}${e.percent ? "%" : ""}`;
|
|
34773
34859
|
case "average": return e.above ? "Above Average" : "Below Average";
|
|
@@ -34777,37 +34863,37 @@ function qj(e) {
|
|
|
34777
34863
|
case "iconSet": return "Icon Set";
|
|
34778
34864
|
}
|
|
34779
34865
|
}
|
|
34780
|
-
function
|
|
34866
|
+
function eM(e) {
|
|
34781
34867
|
return "style" in e;
|
|
34782
34868
|
}
|
|
34783
|
-
var
|
|
34784
|
-
function
|
|
34869
|
+
var tM = 0, nM = () => `ct${tM += 1}`;
|
|
34870
|
+
function rM(e, t, n) {
|
|
34785
34871
|
for (let r = e.length - 1; r >= 0; --r) {
|
|
34786
34872
|
let i = e[r];
|
|
34787
34873
|
if (i.rects.some((e) => Z_(e, t, n))) return i;
|
|
34788
34874
|
}
|
|
34789
34875
|
return null;
|
|
34790
34876
|
}
|
|
34791
|
-
var
|
|
34877
|
+
var iM = (e) => ({
|
|
34792
34878
|
on: e.checked ?? "TRUE",
|
|
34793
34879
|
off: e.unchecked ?? "FALSE"
|
|
34794
34880
|
});
|
|
34795
|
-
function
|
|
34796
|
-
let { on: n } =
|
|
34881
|
+
function aM(e, t) {
|
|
34882
|
+
let { on: n } = iM(e);
|
|
34797
34883
|
return Mm(t).trim().toLowerCase() === n.trim().toLowerCase();
|
|
34798
34884
|
}
|
|
34799
|
-
function
|
|
34800
|
-
let { on: n, off: r } =
|
|
34801
|
-
return
|
|
34885
|
+
function oM(e, t) {
|
|
34886
|
+
let { on: n, off: r } = iM(e);
|
|
34887
|
+
return aM(e, t) ? r : n;
|
|
34802
34888
|
}
|
|
34803
|
-
function
|
|
34889
|
+
function sM(e, t) {
|
|
34804
34890
|
let n = e.choices ?? [], r = Mm(t).trim().toLowerCase();
|
|
34805
34891
|
return n.findIndex((e) => e.trim().toLowerCase() === r);
|
|
34806
34892
|
}
|
|
34807
|
-
function
|
|
34893
|
+
function cM(e, t) {
|
|
34808
34894
|
return X_(e, t);
|
|
34809
34895
|
}
|
|
34810
|
-
function
|
|
34896
|
+
function lM(e, t) {
|
|
34811
34897
|
let n = [];
|
|
34812
34898
|
for (let r of e) {
|
|
34813
34899
|
let e = [...r.rects];
|
|
@@ -34819,20 +34905,20 @@ function rM(e, t) {
|
|
|
34819
34905
|
}
|
|
34820
34906
|
return n;
|
|
34821
34907
|
}
|
|
34822
|
-
function
|
|
34823
|
-
return [...
|
|
34908
|
+
function uM(e, t) {
|
|
34909
|
+
return [...lM(e, t.rects), t];
|
|
34824
34910
|
}
|
|
34825
|
-
var
|
|
34911
|
+
var dM = (e) => ({
|
|
34826
34912
|
...e,
|
|
34827
34913
|
rects: e.rects.map((e) => [...e]),
|
|
34828
34914
|
...e.choices ? { choices: [...e.choices] } : {}
|
|
34829
34915
|
});
|
|
34830
34916
|
//#endregion
|
|
34831
34917
|
//#region src/sheet/from-rows.ts
|
|
34832
|
-
function
|
|
34918
|
+
function fM(e) {
|
|
34833
34919
|
return e == null ? "" : typeof e == "number" ? Number.isFinite(e) ? String(e) : "" : typeof e == "boolean" ? e ? "TRUE" : "FALSE" : e instanceof Date ? Number.isNaN(e.getTime()) ? "" : e.toISOString().slice(0, 10) : typeof e == "string" ? e.startsWith("=") ? `'${e}` : e : typeof e == "bigint" ? e.toString() : typeof e == "object" ? JSON.stringify(e) : String(e);
|
|
34834
34920
|
}
|
|
34835
|
-
function
|
|
34921
|
+
function pM(e, t, n = {}) {
|
|
34836
34922
|
let r = t.map((e) => typeof e == "string" ? {
|
|
34837
34923
|
field: e,
|
|
34838
34924
|
label: e
|
|
@@ -34842,7 +34928,7 @@ function sM(e, t, n = {}) {
|
|
|
34842
34928
|
}), i = [r.map((e) => e.label)], a = r.map(() => !1);
|
|
34843
34929
|
for (let t of e) i.push(r.map((e, n) => {
|
|
34844
34930
|
let r = t[e.field];
|
|
34845
|
-
return typeof r == "number" && Number.isFinite(r) && (a[n] = !0),
|
|
34931
|
+
return typeof r == "number" && Number.isFinite(r) && (a[n] = !0), fM(r);
|
|
34846
34932
|
}));
|
|
34847
34933
|
if (n.totals && e.length) {
|
|
34848
34934
|
let t = e.length + 1, o = r.map((e, n) => a[n] ? `=SUM(${Z(n)}2:${Z(n)}${t})` : "");
|
|
@@ -34852,16 +34938,16 @@ function sM(e, t, n = {}) {
|
|
|
34852
34938
|
}
|
|
34853
34939
|
//#endregion
|
|
34854
34940
|
//#region src/sheet/sheet-kinds.ts
|
|
34855
|
-
function
|
|
34856
|
-
return
|
|
34941
|
+
function mM(e) {
|
|
34942
|
+
return pM(e.rows, e.fields, e.totals ? { totals: !0 } : {});
|
|
34857
34943
|
}
|
|
34858
|
-
var
|
|
34944
|
+
var hM = (e) => ({
|
|
34859
34945
|
fields: e.fields.map((e) => ({ ...e })),
|
|
34860
34946
|
rows: e.rows.map((e) => ({ ...e })),
|
|
34861
34947
|
...e.editable === void 0 ? {} : { editable: e.editable },
|
|
34862
34948
|
...e.totals === void 0 ? {} : { totals: e.totals }
|
|
34863
34949
|
});
|
|
34864
|
-
function
|
|
34950
|
+
function gM(e, t) {
|
|
34865
34951
|
if (t == null || t === "") return t === "" ? "" : null;
|
|
34866
34952
|
switch (e.type) {
|
|
34867
34953
|
case "number": {
|
|
@@ -34883,15 +34969,15 @@ function uM(e, t) {
|
|
|
34883
34969
|
}
|
|
34884
34970
|
//#endregion
|
|
34885
34971
|
//#region src/sheet/document.ts
|
|
34886
|
-
var
|
|
34972
|
+
var _M = (e) => e ? {
|
|
34887
34973
|
levels: { ...e.levels },
|
|
34888
34974
|
collapsed: [...e.collapsed]
|
|
34889
34975
|
} : eS();
|
|
34890
|
-
function
|
|
34976
|
+
function vM(e) {
|
|
34891
34977
|
let t = [];
|
|
34892
34978
|
return e.formats !== void 0 && t.push({ kind: "formats" }), (e.columnWidths !== void 0 || e.rowHeights !== void 0) && t.push({ kind: "sizes" }), (e.hidden !== void 0 || e.sheetHidden !== void 0) && t.push({ kind: "hidden" }), e.freeze !== void 0 && t.push({ kind: "freeze" }), e.comments !== void 0 && t.push({ kind: "comments" }), (e.protected !== void 0 || e.protection !== void 0) && t.push({ kind: "protection" }), e.pageSetup !== void 0 && t.push({ kind: "page-setup" }), e.objects !== void 0 && t.push({ kind: "objects" }), e.sparklines !== void 0 && t.push({ kind: "sparklines" }), e.pivots !== void 0 && t.push({ kind: "pivots" }), e.links !== void 0 && t.push({ kind: "links" }), e.merges !== void 0 && t.push({ kind: "merges" }), e.validation !== void 0 && t.push({ kind: "validation" }), e.conditionalFormats !== void 0 && t.push({ kind: "conditional-formats" }), e.autoFilter !== void 0 && t.push({ kind: "filter" }), t;
|
|
34893
34979
|
}
|
|
34894
|
-
function
|
|
34980
|
+
function yM() {
|
|
34895
34981
|
return {
|
|
34896
34982
|
formats: Zx(),
|
|
34897
34983
|
widths: {},
|
|
@@ -34926,7 +35012,7 @@ function pM() {
|
|
|
34926
35012
|
filterHidden: /* @__PURE__ */ new Set()
|
|
34927
35013
|
};
|
|
34928
35014
|
}
|
|
34929
|
-
function
|
|
35015
|
+
function bM(e = {}) {
|
|
34930
35016
|
let t = e.workbook ?? fy(e.state ? e.state.workbook.sheets.map((e) => ({
|
|
34931
35017
|
name: e.name,
|
|
34932
35018
|
cells: e.cells
|
|
@@ -34939,7 +35025,7 @@ function mM(e = {}) {
|
|
|
34939
35025
|
}), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), i = [], a = !1, o = 0, s = (e) => e.toLowerCase();
|
|
34940
35026
|
function c(e) {
|
|
34941
35027
|
let t = n.get(s(e));
|
|
34942
|
-
return t || (t =
|
|
35028
|
+
return t || (t = yM(), n.set(s(e), t)), t;
|
|
34943
35029
|
}
|
|
34944
35030
|
function l() {
|
|
34945
35031
|
a = !1;
|
|
@@ -34968,8 +35054,8 @@ function mM(e = {}) {
|
|
|
34968
35054
|
cols: [...e.hidden.cols]
|
|
34969
35055
|
},
|
|
34970
35056
|
outline: {
|
|
34971
|
-
rows:
|
|
34972
|
-
cols:
|
|
35057
|
+
rows: _M(e.outline.rows),
|
|
35058
|
+
cols: _M(e.outline.cols)
|
|
34973
35059
|
},
|
|
34974
35060
|
freeze: { ...e.freeze },
|
|
34975
35061
|
comments: Object.fromEntries(Object.entries(e.notes).map(([e, t]) => [e, d(t)])),
|
|
@@ -34978,11 +35064,11 @@ function mM(e = {}) {
|
|
|
34978
35064
|
pageSetup: HS(e.pageSetup),
|
|
34979
35065
|
objects: e.objects.map(RC),
|
|
34980
35066
|
sparklines: e.sparklines.map(YC),
|
|
34981
|
-
pivots: e.pivots.map(
|
|
35067
|
+
pivots: e.pivots.map(gj),
|
|
34982
35068
|
links: MS(e.links),
|
|
34983
35069
|
sheetHidden: e.sheetHidden,
|
|
34984
35070
|
kind: e.kind,
|
|
34985
|
-
...e.grid ? { grid:
|
|
35071
|
+
...e.grid ? { grid: hM(e.grid) } : {},
|
|
34986
35072
|
merges: e.merges.map(([e, t, n, r]) => [
|
|
34987
35073
|
e,
|
|
34988
35074
|
t,
|
|
@@ -34998,7 +35084,7 @@ function mM(e = {}) {
|
|
|
34998
35084
|
...e,
|
|
34999
35085
|
rects: e.rects.map((e) => [...e])
|
|
35000
35086
|
})),
|
|
35001
|
-
cellTypes: e.cellTypes.map(
|
|
35087
|
+
cellTypes: e.cellTypes.map(dM),
|
|
35002
35088
|
autoFilter: e.autoFilter ? {
|
|
35003
35089
|
range: [...e.autoFilter.range],
|
|
35004
35090
|
filters: { ...e.autoFilter.filters }
|
|
@@ -35010,8 +35096,8 @@ function mM(e = {}) {
|
|
|
35010
35096
|
rows: new Set(t.hidden.rows ?? []),
|
|
35011
35097
|
cols: new Set(t.hidden.cols ?? [])
|
|
35012
35098
|
}), t.outline !== void 0 && (e.outline = {
|
|
35013
|
-
rows:
|
|
35014
|
-
cols:
|
|
35099
|
+
rows: _M(t.outline.rows),
|
|
35100
|
+
cols: _M(t.outline.cols)
|
|
35015
35101
|
}), t.freeze !== void 0 && (e.freeze = {
|
|
35016
35102
|
rows: t.freeze.rows ?? 0,
|
|
35017
35103
|
cols: t.freeze.cols ?? 0
|
|
@@ -35021,7 +35107,7 @@ function mM(e = {}) {
|
|
|
35021
35107
|
})), t.pageSetup !== void 0 && (e.pageSetup = HS({
|
|
35022
35108
|
...VS(),
|
|
35023
35109
|
...t.pageSetup
|
|
35024
|
-
})), t.objects !== void 0 && (e.objects = t.objects.map(RC)), t.sparklines !== void 0 && (e.sparklines = t.sparklines.map(YC)), t.pivots !== void 0 && (e.pivots = t.pivots.map(
|
|
35110
|
+
})), t.objects !== void 0 && (e.objects = t.objects.map(RC)), t.sparklines !== void 0 && (e.sparklines = t.sparklines.map(YC)), t.pivots !== void 0 && (e.pivots = t.pivots.map(gj)), t.links !== void 0 && (e.links = MS(t.links)), t.sheetHidden !== void 0 && (e.sheetHidden = t.sheetHidden), t.kind !== void 0 && (e.kind = t.kind), t.grid !== void 0 && (e.grid = hM(t.grid)), t.merges !== void 0 && (e.merges = t.merges.map(([e, t, n, r]) => [
|
|
35025
35111
|
e,
|
|
35026
35112
|
t,
|
|
35027
35113
|
n,
|
|
@@ -35043,7 +35129,7 @@ function mM(e = {}) {
|
|
|
35043
35129
|
n,
|
|
35044
35130
|
r
|
|
35045
35131
|
])
|
|
35046
|
-
}))), t.cellTypes !== void 0 && (e.cellTypes = t.cellTypes.map(
|
|
35132
|
+
}))), t.cellTypes !== void 0 && (e.cellTypes = t.cellTypes.map(dM)), t.autoFilter !== void 0) {
|
|
35047
35133
|
let n = t.autoFilter;
|
|
35048
35134
|
e.autoFilter = n ? {
|
|
35049
35135
|
range: [
|
|
@@ -35061,8 +35147,8 @@ function mM(e = {}) {
|
|
|
35061
35147
|
rows: new Set(t.hidden?.rows ?? []),
|
|
35062
35148
|
cols: new Set(t.hidden?.cols ?? [])
|
|
35063
35149
|
}, e.outline = {
|
|
35064
|
-
rows:
|
|
35065
|
-
cols:
|
|
35150
|
+
rows: _M(t.outline?.rows),
|
|
35151
|
+
cols: _M(t.outline?.cols)
|
|
35066
35152
|
}, e.freeze = {
|
|
35067
35153
|
rows: t.freeze?.rows ?? 0,
|
|
35068
35154
|
cols: t.freeze?.cols ?? 0
|
|
@@ -35072,7 +35158,7 @@ function mM(e = {}) {
|
|
|
35072
35158
|
}) : ip(), e.pageSetup = t.pageSetup ? HS({
|
|
35073
35159
|
...VS(),
|
|
35074
35160
|
...t.pageSetup
|
|
35075
|
-
}) : VS(), e.objects = (t.objects ?? []).map(RC), e.sparklines = (t.sparklines ?? []).map(YC), e.pivots = (t.pivots ?? []).map(
|
|
35161
|
+
}) : VS(), e.objects = (t.objects ?? []).map(RC), e.sparklines = (t.sparklines ?? []).map(YC), e.pivots = (t.pivots ?? []).map(gj), e.links = MS(t.links ?? {}), e.sheetHidden = t.sheetHidden ?? !1, e.kind = t.kind ?? "cells", e.grid = t.grid ? hM(t.grid) : void 0, e.merges = (t.merges ?? []).map(([e, t, n, r]) => [
|
|
35076
35162
|
e,
|
|
35077
35163
|
t,
|
|
35078
35164
|
n,
|
|
@@ -35094,7 +35180,7 @@ function mM(e = {}) {
|
|
|
35094
35180
|
n,
|
|
35095
35181
|
r
|
|
35096
35182
|
])
|
|
35097
|
-
})), e.cellTypes = (t.cellTypes ?? []).map(
|
|
35183
|
+
})), e.cellTypes = (t.cellTypes ?? []).map(dM);
|
|
35098
35184
|
let n = t.autoFilter;
|
|
35099
35185
|
e.autoFilter = n ? {
|
|
35100
35186
|
range: [
|
|
@@ -35111,7 +35197,7 @@ function mM(e = {}) {
|
|
|
35111
35197
|
get: c,
|
|
35112
35198
|
patch(e, t) {
|
|
35113
35199
|
p(c(e), t);
|
|
35114
|
-
for (let e of
|
|
35200
|
+
for (let e of vM(t)) u(e);
|
|
35115
35201
|
},
|
|
35116
35202
|
has: (e) => n.has(s(e)),
|
|
35117
35203
|
rename(e, t) {
|
|
@@ -35133,7 +35219,7 @@ function mM(e = {}) {
|
|
|
35133
35219
|
id: JC()
|
|
35134
35220
|
})), i.pivots = i.pivots?.map((e) => ({
|
|
35135
35221
|
...e,
|
|
35136
|
-
id:
|
|
35222
|
+
id: hj()
|
|
35137
35223
|
})), m(c(r), i), u({ kind: "sheets" }), r;
|
|
35138
35224
|
},
|
|
35139
35225
|
names: () => [...n.keys()],
|
|
@@ -35183,7 +35269,7 @@ function mM(e = {}) {
|
|
|
35183
35269
|
cols: mS(n.outline.cols, t.at, t.count * (t.kind === "deleteCols" ? -1 : 1))
|
|
35184
35270
|
}, n.notes = ev(n.notes, "cols", r);
|
|
35185
35271
|
}
|
|
35186
|
-
n.merges = n.merges.map((e) => Y_(e, t)).filter((e) => e !== null), n.validation = Kw(n.validation, t), n.conditionalFormats =
|
|
35272
|
+
n.merges = n.merges.map((e) => Y_(e, t)).filter((e) => e !== null), n.validation = Kw(n.validation, t), n.conditionalFormats = Jj(n.conditionalFormats, t), n.cellTypes = cM(n.cellTypes, t), n.autoFilter = uT(n.autoFilter, t), n.pageSetup = WS(n.pageSetup, t), n.objects = BC(n.objects, t), n.sparklines = ZC(n.sparklines, t), n.pivots = vj(n.pivots, t), n.links = jS(n.links, t), n.protection = {
|
|
35187
35273
|
allow: n.protection.allow,
|
|
35188
35274
|
ranges: n.protection.ranges.map((e) => ({
|
|
35189
35275
|
...e,
|
|
@@ -35250,32 +35336,32 @@ function mM(e = {}) {
|
|
|
35250
35336
|
}
|
|
35251
35337
|
//#endregion
|
|
35252
35338
|
//#region src/sheet/paste-special.ts
|
|
35253
|
-
var
|
|
35254
|
-
function
|
|
35339
|
+
var xM = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
35340
|
+
function SM(e) {
|
|
35255
35341
|
return `"${e.replace(/\\/g, "\\\\").replace(/"/g, "\\0022").replace(/([^A-Za-z0-9 \\])/g, "\\$1")}"`;
|
|
35256
35342
|
}
|
|
35257
|
-
function
|
|
35343
|
+
function CM(e, t) {
|
|
35258
35344
|
let n = e.map((e) => e.map((e) => e.text).join(" ")).join("\n"), r = e.map((e) => `<tr>${e.map((e) => {
|
|
35259
|
-
let t = e.format?.numFmt, n = [Qx(e.format), t ? `mso-number-format:${
|
|
35345
|
+
let t = e.format?.numFmt, n = [Qx(e.format), t ? `mso-number-format:${SM(t)}` : ""].filter(Boolean).join(";"), r = e.value !== void 0 && e.value !== "" && Number.isFinite(Number(e.value));
|
|
35260
35346
|
return `<td${[
|
|
35261
|
-
n ? ` style="${
|
|
35262
|
-
r ? ` x:num="${
|
|
35263
|
-
e.formula ? ` data-formula="${
|
|
35264
|
-
t ? ` data-numfmt="${
|
|
35265
|
-
].join("")}>${
|
|
35347
|
+
n ? ` style="${xM(n)}"` : "",
|
|
35348
|
+
r ? ` x:num="${xM(e.value)}"` : "",
|
|
35349
|
+
e.formula ? ` data-formula="${xM(e.formula)}"` : "",
|
|
35350
|
+
t ? ` data-numfmt="${xM(t)}"` : ""
|
|
35351
|
+
].join("")}>${xM(e.text)}</td>`;
|
|
35266
35352
|
}).join("")}</tr>`);
|
|
35267
35353
|
return {
|
|
35268
35354
|
text: n,
|
|
35269
35355
|
html: `<table class="svgrid-clipboard" xmlns:x="urn:schemas-microsoft-com:office:excel"${t ? ` data-origin="${t.row} ${t.col}"` : ""}><tbody>` + r.join("") + "</tbody></table>"
|
|
35270
35356
|
};
|
|
35271
35357
|
}
|
|
35272
|
-
var
|
|
35273
|
-
function
|
|
35274
|
-
|
|
35358
|
+
var wM = /\bR(?:\[(-?\d+)\]|(\d+))?C(?:\[(-?\d+)\]|(\d+))?(?![A-Za-z0-9_(])/g;
|
|
35359
|
+
function TM(e) {
|
|
35360
|
+
wM.lastIndex = 0;
|
|
35275
35361
|
let t = e.replace(/"[^"]*"|'[^']*'/g, (e) => " ".repeat(e.length));
|
|
35276
|
-
return
|
|
35362
|
+
return wM.test(t);
|
|
35277
35363
|
}
|
|
35278
|
-
function
|
|
35364
|
+
function EM(e, t, n) {
|
|
35279
35365
|
let r = (e) => {
|
|
35280
35366
|
let t = e + 1, n = "";
|
|
35281
35367
|
for (; t > 0;) {
|
|
@@ -35283,18 +35369,18 @@ function bM(e, t, n) {
|
|
|
35283
35369
|
n = String.fromCharCode(65 + e) + n, t = Math.floor((t - 1) / 26);
|
|
35284
35370
|
}
|
|
35285
35371
|
return n;
|
|
35286
|
-
}, i = (e) => e.replace(
|
|
35372
|
+
}, i = (e) => e.replace(wM, (e, i, a, o, s) => {
|
|
35287
35373
|
let c = a === void 0 ? t + Number(i ?? 0) : Number(a) - 1, l = s === void 0 ? n + Number(o ?? 0) : Number(s) - 1;
|
|
35288
35374
|
return c < 0 || l < 0 ? e : `${s === void 0 ? "" : "$"}${r(l)}${a === void 0 ? "" : "$"}${c + 1}`;
|
|
35289
35375
|
}), a = "", o = 0, s = /"[^"]*"|'[^']*'/g, c;
|
|
35290
35376
|
for (; c = s.exec(e);) a += i(e.slice(o, c.index)) + c[0], o = c.index + c[0].length;
|
|
35291
35377
|
return a + i(e.slice(o));
|
|
35292
35378
|
}
|
|
35293
|
-
function
|
|
35379
|
+
function DM(e) {
|
|
35294
35380
|
let t = e.replace(/\r\n/g, "\n").split("\n");
|
|
35295
35381
|
return t.length > 0 && t[t.length - 1] === "" && t.pop(), t.map((e) => e.split(" ").map((e) => ({ text: e })));
|
|
35296
35382
|
}
|
|
35297
|
-
function
|
|
35383
|
+
function OM(e) {
|
|
35298
35384
|
let t = /* @__PURE__ */ new Map(), n = null, r = 0, i = (e) => {
|
|
35299
35385
|
let n = e.indexOf(":");
|
|
35300
35386
|
if (n < 0) return;
|
|
@@ -35307,7 +35393,7 @@ function SM(e) {
|
|
|
35307
35393
|
}
|
|
35308
35394
|
return i(e.slice(r)), t;
|
|
35309
35395
|
}
|
|
35310
|
-
var
|
|
35396
|
+
var kM = /^(?:windowtext|black|#000|#000000)$/i, AM = {
|
|
35311
35397
|
"font-weight": (e, t) => {
|
|
35312
35398
|
/^(?:bold|bolder|[6-9]00)$/i.test(e) ? t.bold = !0 : delete t.bold;
|
|
35313
35399
|
},
|
|
@@ -35318,7 +35404,7 @@ var CM = /^(?:windowtext|black|#000|#000000)$/i, wM = {
|
|
|
35318
35404
|
/underline/i.test(e) ? t.underline = !0 : delete t.underline, /line-through/i.test(e) ? t.strike = !0 : delete t.strike;
|
|
35319
35405
|
},
|
|
35320
35406
|
color: (e, t) => {
|
|
35321
|
-
|
|
35407
|
+
kM.test(e) ? delete t.color : t.color = e;
|
|
35322
35408
|
},
|
|
35323
35409
|
background: (e, t) => {
|
|
35324
35410
|
/^(?:transparent|none|auto)$/i.test(e) ? delete t.fill : t.fill = e;
|
|
@@ -35339,7 +35425,7 @@ var CM = /^(?:windowtext|black|#000|#000000)$/i, wM = {
|
|
|
35339
35425
|
"white-space": (e, t) => {
|
|
35340
35426
|
/^(?:pre-wrap|normal|pre-line)$/i.test(e) ? t.wrap = !0 : delete t.wrap;
|
|
35341
35427
|
}
|
|
35342
|
-
},
|
|
35428
|
+
}, jM = {
|
|
35343
35429
|
general: void 0,
|
|
35344
35430
|
"general number": void 0,
|
|
35345
35431
|
standard: "#,##0.00",
|
|
@@ -35355,22 +35441,22 @@ var CM = /^(?:windowtext|black|#000|#000000)$/i, wM = {
|
|
|
35355
35441
|
"long time": "h:mm:ss AM/PM",
|
|
35356
35442
|
"@": "@"
|
|
35357
35443
|
};
|
|
35358
|
-
function
|
|
35444
|
+
function MM(e) {
|
|
35359
35445
|
let t = e.trim().replace(/^["']|["']$/g, "");
|
|
35360
35446
|
if (!t) return;
|
|
35361
|
-
let n =
|
|
35362
|
-
return t.toLowerCase() in
|
|
35447
|
+
let n = jM[t.toLowerCase()];
|
|
35448
|
+
return t.toLowerCase() in jM ? n : t.replace(/\\0022/g, "\"").replace(/\\([^A-Za-z0-9])/g, "$1");
|
|
35363
35449
|
}
|
|
35364
|
-
function
|
|
35450
|
+
function NM(e, t) {
|
|
35365
35451
|
let n = {};
|
|
35366
|
-
if (e) for (let [r, i] of
|
|
35452
|
+
if (e) for (let [r, i] of OM(e)) if (r === "mso-number-format") {
|
|
35367
35453
|
if (t !== null) continue;
|
|
35368
|
-
let e =
|
|
35454
|
+
let e = MM(i);
|
|
35369
35455
|
e ? n.numFmt = e : delete n.numFmt;
|
|
35370
|
-
} else
|
|
35456
|
+
} else AM[r]?.(i, n);
|
|
35371
35457
|
return t && (n.numFmt = t), Object.keys(n).length > 0 ? n : void 0;
|
|
35372
35458
|
}
|
|
35373
|
-
function
|
|
35459
|
+
function PM(e) {
|
|
35374
35460
|
let t = /* @__PURE__ */ new Map();
|
|
35375
35461
|
for (let n of e.querySelectorAll("style")) {
|
|
35376
35462
|
let e = n.textContent ?? "", r = /([^{}]+)\{([^{}]*)\}/g, i;
|
|
@@ -35384,7 +35470,7 @@ function OM(e) {
|
|
|
35384
35470
|
}
|
|
35385
35471
|
return t;
|
|
35386
35472
|
}
|
|
35387
|
-
function
|
|
35473
|
+
function FM(e) {
|
|
35388
35474
|
let t = e.getAttribute("data-formula");
|
|
35389
35475
|
if (t) return t;
|
|
35390
35476
|
let n = e.getAttribute("x:fmla");
|
|
@@ -35392,7 +35478,7 @@ function kM(e) {
|
|
|
35392
35478
|
let r = e.getAttribute("data-sheets-formula");
|
|
35393
35479
|
if (r) return r.startsWith("=") ? r : `=${r}`;
|
|
35394
35480
|
}
|
|
35395
|
-
function
|
|
35481
|
+
function IM(e) {
|
|
35396
35482
|
let t = e.getAttribute("x:num");
|
|
35397
35483
|
if (t !== null && t !== "" && Number.isFinite(Number(t))) return t;
|
|
35398
35484
|
let n = e.getAttribute("data-sheets-value");
|
|
@@ -35403,7 +35489,7 @@ function AM(e) {
|
|
|
35403
35489
|
if (typeof e[4] == "boolean") return e[4] ? "TRUE" : "FALSE";
|
|
35404
35490
|
} catch {}
|
|
35405
35491
|
}
|
|
35406
|
-
function
|
|
35492
|
+
function LM(e) {
|
|
35407
35493
|
let t = e.getAttribute("data-sheets-numberformat");
|
|
35408
35494
|
if (!t) return null;
|
|
35409
35495
|
try {
|
|
@@ -35413,7 +35499,7 @@ function jM(e) {
|
|
|
35413
35499
|
return null;
|
|
35414
35500
|
}
|
|
35415
35501
|
}
|
|
35416
|
-
function
|
|
35502
|
+
function RM(e) {
|
|
35417
35503
|
if (typeof DOMParser > "u") return null;
|
|
35418
35504
|
try {
|
|
35419
35505
|
let t = new DOMParser().parseFromString(e, "text/html").querySelector("table")?.getAttribute("data-origin");
|
|
@@ -35427,7 +35513,7 @@ function MM(e) {
|
|
|
35427
35513
|
return null;
|
|
35428
35514
|
}
|
|
35429
35515
|
}
|
|
35430
|
-
function
|
|
35516
|
+
function zM(e) {
|
|
35431
35517
|
if (typeof DOMParser > "u") return null;
|
|
35432
35518
|
let t;
|
|
35433
35519
|
try {
|
|
@@ -35437,16 +35523,16 @@ function NM(e) {
|
|
|
35437
35523
|
}
|
|
35438
35524
|
let n = t.querySelector("table");
|
|
35439
35525
|
if (!n) return null;
|
|
35440
|
-
let r =
|
|
35526
|
+
let r = PM(t), i = [];
|
|
35441
35527
|
for (let e of n.querySelectorAll("tr")) {
|
|
35442
35528
|
let t = [];
|
|
35443
35529
|
for (let n of e.querySelectorAll("td, th")) {
|
|
35444
|
-
let e =
|
|
35530
|
+
let e = FM(n), i = [...(n.getAttribute("class") ?? "").split(/\s+/).map((e) => r.get(e)).filter((e) => !!e), n.getAttribute("style") ?? ""].filter(Boolean).join(";"), a = IM(n);
|
|
35445
35531
|
t.push({
|
|
35446
35532
|
text: a ?? (n.textContent ?? "").replace(/ /g, " ").trim(),
|
|
35447
35533
|
...e ? { formula: e } : {},
|
|
35448
35534
|
...(() => {
|
|
35449
|
-
let e =
|
|
35535
|
+
let e = NM(i || null, n.getAttribute("data-numfmt") ?? LM(n));
|
|
35450
35536
|
return e ? { format: e } : {};
|
|
35451
35537
|
})()
|
|
35452
35538
|
});
|
|
@@ -35455,14 +35541,14 @@ function NM(e) {
|
|
|
35455
35541
|
}
|
|
35456
35542
|
return i.length > 0 ? i : null;
|
|
35457
35543
|
}
|
|
35458
|
-
function
|
|
35544
|
+
function BM(e) {
|
|
35459
35545
|
if (e.html) {
|
|
35460
|
-
let t =
|
|
35546
|
+
let t = zM(e.html);
|
|
35461
35547
|
if (t) return t;
|
|
35462
35548
|
}
|
|
35463
|
-
return
|
|
35549
|
+
return DM(e.text ?? "");
|
|
35464
35550
|
}
|
|
35465
|
-
function
|
|
35551
|
+
function VM(e) {
|
|
35466
35552
|
let t = e.length, n = Math.max(0, ...e.map((e) => e.length)), r = [];
|
|
35467
35553
|
for (let i = 0; i < n; i += 1) {
|
|
35468
35554
|
let n = [];
|
|
@@ -35471,7 +35557,7 @@ function FM(e) {
|
|
|
35471
35557
|
}
|
|
35472
35558
|
return r;
|
|
35473
35559
|
}
|
|
35474
|
-
function
|
|
35560
|
+
function HM(e, t, n) {
|
|
35475
35561
|
let r = Number(e), i = Number(t);
|
|
35476
35562
|
if (!Number.isFinite(r) || !Number.isFinite(i)) return null;
|
|
35477
35563
|
switch (n) {
|
|
@@ -35482,7 +35568,7 @@ function IM(e, t, n) {
|
|
|
35482
35568
|
default: return null;
|
|
35483
35569
|
}
|
|
35484
35570
|
}
|
|
35485
|
-
function
|
|
35571
|
+
function UM(e, t, n, r = {
|
|
35486
35572
|
rows: 0,
|
|
35487
35573
|
cols: 0
|
|
35488
35574
|
}, i, a) {
|
|
@@ -35494,13 +35580,13 @@ function LM(e, t, n, r = {
|
|
|
35494
35580
|
format: e.format
|
|
35495
35581
|
};
|
|
35496
35582
|
if (s !== "none") {
|
|
35497
|
-
let n =
|
|
35583
|
+
let n = HM(t, e.text, s);
|
|
35498
35584
|
return n === null ? { kind: "skip" } : {
|
|
35499
35585
|
kind: "value",
|
|
35500
35586
|
value: String(n)
|
|
35501
35587
|
};
|
|
35502
35588
|
}
|
|
35503
|
-
let c = (o === "all" || o === "formulas") && e.formula ? i &&
|
|
35589
|
+
let c = (o === "all" || o === "formulas") && e.formula ? i && TM(e.formula) ? EM(e.formula, i.row, i.col) : String(a ? Vu(e.formula, a.source, a.dest) : Bu(e.formula, r.rows, r.cols)) : e.text;
|
|
35504
35590
|
return o === "values" || o === "formulas" ? {
|
|
35505
35591
|
kind: "value",
|
|
35506
35592
|
value: c
|
|
@@ -35510,11 +35596,11 @@ function LM(e, t, n, r = {
|
|
|
35510
35596
|
format: e.format
|
|
35511
35597
|
};
|
|
35512
35598
|
}
|
|
35513
|
-
function
|
|
35599
|
+
function WM(e) {
|
|
35514
35600
|
let t = e.length, n = Math.max(0, ...e.map((e) => e.length)), r = !1;
|
|
35515
35601
|
return {
|
|
35516
35602
|
grid: e.map((e) => e.map((e) => {
|
|
35517
|
-
if (!e.formula ||
|
|
35603
|
+
if (!e.formula || TM(e.formula)) return e;
|
|
35518
35604
|
let i = !0;
|
|
35519
35605
|
try {
|
|
35520
35606
|
Tu(Pu(e.formula), (e) => {
|
|
@@ -35535,8 +35621,8 @@ function RM(e) {
|
|
|
35535
35621
|
} : null
|
|
35536
35622
|
};
|
|
35537
35623
|
}
|
|
35538
|
-
function
|
|
35539
|
-
let a = n.transpose ?
|
|
35624
|
+
function GM(e, t, n = {}, r, i) {
|
|
35625
|
+
let a = n.transpose ? VM(e) : e, o = a.length, s = a.reduce((e, t) => Math.max(e, t.length), 0), c = i && o > 0 && s > 0 && i.rows % o === 0 && i.cols % s === 0 && (i.rows > o || i.cols > s) ? {
|
|
35540
35626
|
rows: i.rows / o,
|
|
35541
35627
|
cols: i.cols / s
|
|
35542
35628
|
} : {
|
|
@@ -35582,12 +35668,12 @@ function zM(e, t, n = {}, r, i) {
|
|
|
35582
35668
|
}
|
|
35583
35669
|
//#endregion
|
|
35584
35670
|
//#region src/SvSheetProtectSheet.svelte
|
|
35585
|
-
var
|
|
35671
|
+
var KM = g("<div class=\"sv-sheet-dialog-buttons\"><button type=\"button\" class=\"btn primary\"> </button> <button type=\"button\" class=\"btn\"> </button></div>"), qM = g("<input type=\"checkbox\"/>"), JM = g("<input type=\"checkbox\"/>"), YM = g("<label class=\"check\"><!> </label>"), XM = g("<form class=\"sv-sheet-dialog\"><div class=\"lead\"> </div> <div class=\"checks column svelte-14dy1xh\" role=\"group\"></div> <p class=\"hint\"> </p></form>"), ZM = {
|
|
35586
35672
|
hash: "svelte-14dy1xh",
|
|
35587
35673
|
code: ".checks.column.svelte-14dy1xh {display:flex;flex-direction:column;gap:4px;padding:4px 0;}"
|
|
35588
35674
|
};
|
|
35589
|
-
function
|
|
35590
|
-
M(t, !0), v(e,
|
|
35675
|
+
function QM(e, t) {
|
|
35676
|
+
M(t, !0), v(e, ZM);
|
|
35591
35677
|
let n = V(t, "open", 15, !1), r = Cp(), i = D(K({})), a = D(null);
|
|
35592
35678
|
S(() => {
|
|
35593
35679
|
if (!n()) return;
|
|
@@ -35605,7 +35691,7 @@ function KM(e, t) {
|
|
|
35605
35691
|
}
|
|
35606
35692
|
{
|
|
35607
35693
|
let u = (e) => {
|
|
35608
|
-
var t =
|
|
35694
|
+
var t = KM(), n = N(t), i = N(n, !0);
|
|
35609
35695
|
B(n);
|
|
35610
35696
|
var a = H(n, 2), o = N(a, !0);
|
|
35611
35697
|
B(a), B(t), C((e, t) => {
|
|
@@ -35628,15 +35714,15 @@ function KM(e, t) {
|
|
|
35628
35714
|
},
|
|
35629
35715
|
footer: u,
|
|
35630
35716
|
children: (e, t) => {
|
|
35631
|
-
var n =
|
|
35717
|
+
var n = XM(), l = N(n), u = N(l, !0);
|
|
35632
35718
|
B(l);
|
|
35633
35719
|
var d = H(l, 2);
|
|
35634
35720
|
p(d, 22, () => rp, (e) => e, (e, t, n) => {
|
|
35635
|
-
var s =
|
|
35636
|
-
var n =
|
|
35721
|
+
var s = YM(), l = N(s), u = (e) => {
|
|
35722
|
+
var n = qM();
|
|
35637
35723
|
W(n), E(n, (e) => L(a, e), () => o(a)), q(n, () => o(i)[t], (e) => o(i)[t] = e), c(e, n);
|
|
35638
35724
|
}, d = (e) => {
|
|
35639
|
-
var n =
|
|
35725
|
+
var n = JM();
|
|
35640
35726
|
W(n), q(n, () => o(i)[t], (e) => o(i)[t] = e), c(e, n);
|
|
35641
35727
|
};
|
|
35642
35728
|
R(l, (e) => {
|
|
@@ -35667,12 +35753,12 @@ function KM(e, t) {
|
|
|
35667
35753
|
s(["click"]);
|
|
35668
35754
|
//#endregion
|
|
35669
35755
|
//#region src/SvSheetEditRanges.svelte
|
|
35670
|
-
var
|
|
35756
|
+
var $M = g("<div class=\"sv-sheet-dialog-buttons\"><button type=\"button\" class=\"btn\"> </button> <span class=\"spacer svelte-c3ygrd\"></span> <button type=\"button\" class=\"btn primary\"> </button> <button type=\"button\" class=\"btn\"> </button></div>"), eN = g("<td class=\"svelte-c3ygrd\"><input type=\"text\" spellcheck=\"false\" class=\"svelte-c3ygrd\"/></td> <td class=\"mono svelte-c3ygrd\"><input type=\"text\" spellcheck=\"false\" class=\"svelte-c3ygrd\"/></td> <td class=\"actions svelte-c3ygrd\"><button type=\"button\" class=\"link svelte-c3ygrd\"> </button> <button type=\"button\" class=\"link svelte-c3ygrd\"> </button></td>", 1), tN = g("<td class=\"svelte-c3ygrd\"> </td> <td class=\"mono svelte-c3ygrd\"> </td> <td class=\"actions svelte-c3ygrd\"><button type=\"button\" class=\"link svelte-c3ygrd\"> </button> <button type=\"button\" class=\"link svelte-c3ygrd\"> </button></td>", 1), nN = g("<tr><!></tr>"), rN = g("<tr><td colspan=\"3\" class=\"empty svelte-c3ygrd\"> </td></tr>"), iN = g("<p class=\"status problem\" role=\"alert\"> </p>"), aN = g("<div class=\"sv-sheet-dialog ranges svelte-c3ygrd\" role=\"group\"><div class=\"lead\"> </div> <table class=\"list svelte-c3ygrd\"><thead><tr><th class=\"svelte-c3ygrd\"> </th><th class=\"svelte-c3ygrd\"> </th><th class=\"svelte-c3ygrd\"></th></tr></thead><tbody></tbody></table> <form class=\"new svelte-c3ygrd\"><label class=\"svelte-c3ygrd\"><span> </span> <input type=\"text\" spellcheck=\"false\" class=\"svelte-c3ygrd\"/></label> <label class=\"svelte-c3ygrd\"><span> </span> <input type=\"text\" spellcheck=\"false\" class=\"svelte-c3ygrd\"/></label> <button type=\"submit\" class=\"btn\"> </button></form> <!></div>"), oN = {
|
|
35671
35757
|
hash: "svelte-c3ygrd",
|
|
35672
35758
|
code: ".ranges.svelte-c3ygrd {min-width:460px;}.list.svelte-c3ygrd {width:100%;border-collapse:collapse;font-size:12px;}.list.svelte-c3ygrd th:where(.svelte-c3ygrd) {padding:4px 8px;text-align:left;font-weight:600;color:var(--sg-muted, #616161);border-bottom:1px solid var(--sg-border, #d1d1d1);}.list.svelte-c3ygrd td:where(.svelte-c3ygrd) {padding:4px 8px;border-bottom:1px solid var(--sg-border, #e5e5e5);vertical-align:middle;}.list.svelte-c3ygrd td:where(.svelte-c3ygrd) input:where(.svelte-c3ygrd) {width:100%;box-sizing:border-box;padding:3px 6px;font:inherit;color:inherit;background:var(--sg-bg, #fff);border:1px solid var(--sg-border, #d1d1d1);border-radius:3px;}.mono.svelte-c3ygrd {font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;}.empty.svelte-c3ygrd {color:var(--sg-muted, #616161);text-align:center;}.actions.svelte-c3ygrd {white-space:nowrap;text-align:right;}.link.svelte-c3ygrd {padding:0 4px;font:inherit;color:var(--sg-accent, #107c41);background:none;border:0;cursor:pointer;}.link.svelte-c3ygrd:hover {text-decoration:underline;}.new.svelte-c3ygrd {display:grid;grid-template-columns:1fr 2fr auto;gap:8px;align-items:end;margin-top:6px;}.new.svelte-c3ygrd label:where(.svelte-c3ygrd) {display:flex;flex-direction:column;gap:3px;font-size:12px;}.new.svelte-c3ygrd input:where(.svelte-c3ygrd) {padding:4px 8px;font:inherit;color:inherit;background:var(--sg-bg, #fff);border:1px solid var(--sg-border, #d1d1d1);border-radius:3px;}.spacer.svelte-c3ygrd {flex:1;}"
|
|
35673
35759
|
};
|
|
35674
|
-
function
|
|
35675
|
-
M(t, !0), v(e,
|
|
35760
|
+
function sN(e, t) {
|
|
35761
|
+
M(t, !0), v(e, oN);
|
|
35676
35762
|
let n = V(t, "open", 15, !1), r = Cp(), i = D(K([])), a = D(""), s = D(""), l = D(null), u = D(""), d = D(""), f = D(null), h = D(null);
|
|
35677
35763
|
S(() => {
|
|
35678
35764
|
if (!n()) return;
|
|
@@ -35729,7 +35815,7 @@ function tN(e, t) {
|
|
|
35729
35815
|
}
|
|
35730
35816
|
{
|
|
35731
35817
|
let v = (e) => {
|
|
35732
|
-
var t =
|
|
35818
|
+
var t = $M(), n = N(t), i = N(n, !0);
|
|
35733
35819
|
B(n);
|
|
35734
35820
|
var a = H(n, 4), o = N(a, !0);
|
|
35735
35821
|
B(a);
|
|
@@ -35758,7 +35844,7 @@ function tN(e, t) {
|
|
|
35758
35844
|
},
|
|
35759
35845
|
footer: v,
|
|
35760
35846
|
children: (e, t) => {
|
|
35761
|
-
var n =
|
|
35847
|
+
var n = aN(), v = N(n), S = N(v, !0);
|
|
35762
35848
|
B(v);
|
|
35763
35849
|
var T = H(v, 2), D = N(T), O = N(D), k = N(O), A = N(k, !0);
|
|
35764
35850
|
B(k);
|
|
@@ -35766,8 +35852,8 @@ function tN(e, t) {
|
|
|
35766
35852
|
B(j), G(), B(O), B(D);
|
|
35767
35853
|
var P = H(D);
|
|
35768
35854
|
p(P, 21, () => o(i), (e) => e.id, (e, t) => {
|
|
35769
|
-
var n =
|
|
35770
|
-
var t =
|
|
35855
|
+
var n = nN(), i = N(n), a = (e) => {
|
|
35856
|
+
var t = eN(), n = Y(t), i = N(n);
|
|
35771
35857
|
W(i), B(n);
|
|
35772
35858
|
var a = H(n, 2), s = N(a);
|
|
35773
35859
|
W(s), B(a);
|
|
@@ -35785,7 +35871,7 @@ function tN(e, t) {
|
|
|
35785
35871
|
e.key === "Enter" && (e.preventDefault(), b()), e.key === "Escape" && (e.stopPropagation(), L(l, null));
|
|
35786
35872
|
}), ie(s, () => o(d), (e) => L(d, e)), y("click", p, b), y("click", g, () => L(l, null)), c(e, t);
|
|
35787
35873
|
}, s = (e) => {
|
|
35788
|
-
var n =
|
|
35874
|
+
var n = tN(), i = Y(n), a = N(i, !0);
|
|
35789
35875
|
B(i);
|
|
35790
35876
|
var s = H(i, 2), l = N(s, !0);
|
|
35791
35877
|
B(s);
|
|
@@ -35804,7 +35890,7 @@ function tN(e, t) {
|
|
|
35804
35890
|
o(l) === o(t).id ? e(a) : e(s, -1);
|
|
35805
35891
|
}), B(n), c(e, n);
|
|
35806
35892
|
}, (e) => {
|
|
35807
|
-
var t =
|
|
35893
|
+
var t = rN(), n = N(t), i = N(n, !0);
|
|
35808
35894
|
B(n), B(t), C((e) => m(i, e), [() => r("editRanges.empty")]), c(e, t);
|
|
35809
35895
|
}), B(P), B(T);
|
|
35810
35896
|
var F = H(T, 2), ee = N(F), te = N(ee), I = N(te, !0);
|
|
@@ -35818,7 +35904,7 @@ function tN(e, t) {
|
|
|
35818
35904
|
var oe = H(re, 2), se = N(oe, !0);
|
|
35819
35905
|
B(oe), B(F);
|
|
35820
35906
|
var K = H(F, 2), q = (e) => {
|
|
35821
|
-
var t =
|
|
35907
|
+
var t = iN(), n = N(t, !0);
|
|
35822
35908
|
B(t), C(() => m(n, o(f))), c(e, t);
|
|
35823
35909
|
};
|
|
35824
35910
|
R(K, (e) => {
|
|
@@ -35850,12 +35936,12 @@ function tN(e, t) {
|
|
|
35850
35936
|
s(["click", "keydown"]);
|
|
35851
35937
|
//#endregion
|
|
35852
35938
|
//#region src/SvSheetPageSetup.svelte
|
|
35853
|
-
var
|
|
35939
|
+
var cN = g("<div class=\"sv-sheet-dialog-buttons\"><button type=\"button\" class=\"btn\"> </button> <span class=\"spacer svelte-1uzkr5r\"></span> <button type=\"button\" class=\"btn primary\"> </button> <button type=\"button\" class=\"btn\"> </button></div>"), lN = g("<option> </option>"), uN = g("<option> </option>"), dN = g("<p class=\"status problem\" role=\"alert\"> </p>"), fN = g("<form class=\"sv-sheet-dialog\"><label class=\"field\"><span> </span> <select><option> </option><option> </option></select></label> <label class=\"field\"><span> </span> <select></select></label> <label class=\"field\"><span> </span> <select><option> </option><option> </option><option> </option><!></select></label> <label class=\"field\"><span> </span> <input type=\"number\" min=\"10\" max=\"400\"/></label> <label class=\"field\"><span> </span> <input type=\"text\" spellcheck=\"false\"/></label> <label class=\"field\"><span> </span> <input type=\"text\" spellcheck=\"false\"/></label> <div class=\"checks\"><label class=\"check\"><input type=\"checkbox\"/> </label> <label class=\"check\"><input type=\"checkbox\"/> </label></div> <!></form>"), pN = {
|
|
35854
35940
|
hash: "svelte-1uzkr5r",
|
|
35855
35941
|
code: ".spacer.svelte-1uzkr5r {flex:1;}"
|
|
35856
35942
|
};
|
|
35857
|
-
function
|
|
35858
|
-
M(t, !0), v(e,
|
|
35943
|
+
function mN(e, t) {
|
|
35944
|
+
M(t, !0), v(e, pN);
|
|
35859
35945
|
let n = V(t, "open", 15, !1), r = Cp(), i = D("portrait"), a = D("A4"), s = D("normal"), l = D("100"), u = D(""), d = D(""), f = D(!1), h = D(!1), g = D(null), _ = D(null), b = Object.keys(zS);
|
|
35860
35946
|
S(() => {
|
|
35861
35947
|
n() && (L(i, t.setup.orientation, !0), L(a, t.setup.paper, !0), L(s, US(t.setup.margins) ?? "custom", !0), L(l, String(t.setup.scale), !0), L(u, t.setup.printArea ? mp(t.setup.printArea) : "", !0), L(d, t.setup.printTitleRows ? `${t.setup.printTitleRows[0] + 1}:${t.setup.printTitleRows[1] + 1}` : "", !0), L(f, t.setup.gridlines, !0), L(h, t.setup.headings, !0), L(g, null), queueMicrotask(() => o(_)?.focus()));
|
|
@@ -35891,7 +35977,7 @@ function cN(e, t) {
|
|
|
35891
35977
|
}
|
|
35892
35978
|
{
|
|
35893
35979
|
let v = (e) => {
|
|
35894
|
-
var t =
|
|
35980
|
+
var t = cN(), n = N(t), i = N(n, !0);
|
|
35895
35981
|
B(n);
|
|
35896
35982
|
var a = H(n, 4), o = N(a, !0);
|
|
35897
35983
|
B(a);
|
|
@@ -35921,7 +36007,7 @@ function cN(e, t) {
|
|
|
35921
36007
|
},
|
|
35922
36008
|
footer: v,
|
|
35923
36009
|
children: (e, t) => {
|
|
35924
|
-
var n =
|
|
36010
|
+
var n = fN(), v = N(n), y = N(v), S = N(y, !0);
|
|
35925
36011
|
B(y);
|
|
35926
36012
|
var w = H(y, 2), D = N(w), O = N(D, !0);
|
|
35927
36013
|
B(D), D.value = D.__value = "portrait";
|
|
@@ -35931,7 +36017,7 @@ function cN(e, t) {
|
|
|
35931
36017
|
B(M);
|
|
35932
36018
|
var F = H(M, 2);
|
|
35933
36019
|
p(F, 20, () => b, (e) => e, (e, t) => {
|
|
35934
|
-
var n =
|
|
36020
|
+
var n = lN(), r = N(n, !0);
|
|
35935
36021
|
B(n);
|
|
35936
36022
|
var i = {};
|
|
35937
36023
|
C(() => {
|
|
@@ -35947,7 +36033,7 @@ function cN(e, t) {
|
|
|
35947
36033
|
var G = H(V), oe = N(G, !0);
|
|
35948
36034
|
B(G), G.value = G.__value = "wide";
|
|
35949
36035
|
var se = H(G), K = (e) => {
|
|
35950
|
-
var t =
|
|
36036
|
+
var t = uN(), n = N(t, !0);
|
|
35951
36037
|
B(t), t.value = t.__value = "custom", C((e) => m(n, e), [() => r("pageSetup.margins.custom")]), c(e, t);
|
|
35952
36038
|
};
|
|
35953
36039
|
R(se, (e) => {
|
|
@@ -35974,7 +36060,7 @@ function cN(e, t) {
|
|
|
35974
36060
|
var Te = H(we);
|
|
35975
36061
|
B(Ce), B(ye);
|
|
35976
36062
|
var Ee = H(ye, 2), De = (e) => {
|
|
35977
|
-
var t =
|
|
36063
|
+
var t = dN(), n = N(t, !0);
|
|
35978
36064
|
B(t), C(() => m(n, o(g))), c(e, t);
|
|
35979
36065
|
};
|
|
35980
36066
|
R(Ee, (e) => {
|
|
@@ -36012,12 +36098,12 @@ function cN(e, t) {
|
|
|
36012
36098
|
s(["click"]);
|
|
36013
36099
|
//#endregion
|
|
36014
36100
|
//#region src/SvSheetChartSetup.svelte
|
|
36015
|
-
var
|
|
36101
|
+
var hN = g("<div class=\"sv-sheet-dialog-buttons\"><button type=\"button\" class=\"btn\"> </button> <span class=\"spacer svelte-137w244\"></span> <button type=\"button\" class=\"btn primary\"> </button> <button type=\"button\" class=\"btn\"> </button></div>"), gN = g("<option> </option>"), _N = g("<option> </option>"), vN = g("<option> </option>"), yN = g("<label class=\"field\"><span> </span> <select><option> </option><!></select></label>"), bN = g("<label class=\"field\"><span> </span> <select><option> </option><!></select></label> <!>", 1), xN = g("<label class=\"check\"><input type=\"checkbox\"/> </label>"), SN = g("<form class=\"sv-sheet-dialog\"><div class=\"where\"> </div> <label class=\"field\"><span> </span> <select></select></label> <label class=\"field\"><span> </span> <input type=\"text\" spellcheck=\"false\"/></label> <label class=\"field\"><span> </span> <select><option> </option><option> </option></select></label> <!> <div class=\"checks\"><label class=\"check\"><input type=\"checkbox\"/> </label> <!></div> <p class=\"hint\"> </p></form>"), CN = {
|
|
36016
36102
|
hash: "svelte-137w244",
|
|
36017
36103
|
code: ".spacer.svelte-137w244 {flex:1;}"
|
|
36018
36104
|
};
|
|
36019
|
-
function
|
|
36020
|
-
M(t, !0), v(e,
|
|
36105
|
+
function wN(e, t) {
|
|
36106
|
+
M(t, !0), v(e, CN);
|
|
36021
36107
|
let n = V(t, "open", 15, !1), r = V(t, "seriesLabels", 19, () => []), i = Cp(), a = D("bar"), s = D(""), l = D(!0), u = D("columns"), d = D(!1), f = D(""), h = D(""), g = D(null);
|
|
36022
36108
|
S(() => {
|
|
36023
36109
|
n() && (L(a, t.chart.type, !0), L(s, t.chart.title ?? "", !0), L(l, t.chart.headers, !0), L(u, t.chart.series, !0), L(d, !!t.chart.stacked, !0), L(f, t.chart.trend ?? "", !0), L(h, t.chart.secondary ?? "", !0), queueMicrotask(() => o(g)?.focus()));
|
|
@@ -36035,7 +36121,7 @@ function vN(e, t) {
|
|
|
36035
36121
|
}
|
|
36036
36122
|
{
|
|
36037
36123
|
let v = (e) => {
|
|
36038
|
-
var r =
|
|
36124
|
+
var r = hN(), a = N(r), o = N(a, !0);
|
|
36039
36125
|
B(a);
|
|
36040
36126
|
var s = H(a, 4), l = N(s, !0);
|
|
36041
36127
|
B(s);
|
|
@@ -36066,13 +36152,13 @@ function vN(e, t) {
|
|
|
36066
36152
|
},
|
|
36067
36153
|
footer: v,
|
|
36068
36154
|
children: (e, t) => {
|
|
36069
|
-
var n =
|
|
36155
|
+
var n = SN(), v = N(n), y = N(v, !0);
|
|
36070
36156
|
B(v);
|
|
36071
36157
|
var S = H(v, 2), D = N(S), O = N(D, !0);
|
|
36072
36158
|
B(D);
|
|
36073
36159
|
var k = H(D, 2);
|
|
36074
36160
|
p(k, 20, () => PC, (e) => e, (e, t) => {
|
|
36075
|
-
var n =
|
|
36161
|
+
var n = gN(), r = N(n, !0);
|
|
36076
36162
|
B(n);
|
|
36077
36163
|
var a = {};
|
|
36078
36164
|
C((e) => {
|
|
@@ -36090,13 +36176,13 @@ function vN(e, t) {
|
|
|
36090
36176
|
var ae = H(ne), V = N(ae, !0);
|
|
36091
36177
|
B(ae), ae.value = ae.__value = "rows", B(I), B(F);
|
|
36092
36178
|
var U = H(F, 2), G = (e) => {
|
|
36093
|
-
var t =
|
|
36179
|
+
var t = bN(), n = Y(t), a = N(n), s = N(a, !0);
|
|
36094
36180
|
B(a);
|
|
36095
36181
|
var l = H(a, 2), u = N(l), d = N(u, !0);
|
|
36096
36182
|
B(u), u.value = u.__value = "";
|
|
36097
36183
|
var g = H(u);
|
|
36098
36184
|
p(g, 16, () => FC, (e) => e, (e, t) => {
|
|
36099
|
-
var n =
|
|
36185
|
+
var n = _N(), r = N(n, !0);
|
|
36100
36186
|
B(n);
|
|
36101
36187
|
var a = {};
|
|
36102
36188
|
C((e) => {
|
|
@@ -36104,13 +36190,13 @@ function vN(e, t) {
|
|
|
36104
36190
|
}, [() => i(`chartSetup.trend.${t}`)]), c(e, n);
|
|
36105
36191
|
}), B(l), B(n);
|
|
36106
36192
|
var _ = H(n, 2), v = (e) => {
|
|
36107
|
-
var t =
|
|
36193
|
+
var t = yN(), n = N(t), a = N(n, !0);
|
|
36108
36194
|
B(n);
|
|
36109
36195
|
var s = H(n, 2), l = N(s), u = N(l, !0);
|
|
36110
36196
|
B(l), l.value = l.__value = "";
|
|
36111
36197
|
var d = H(l);
|
|
36112
36198
|
p(d, 16, r, (e) => e, (e, t) => {
|
|
36113
|
-
var n =
|
|
36199
|
+
var n = vN(), r = N(n, !0);
|
|
36114
36200
|
B(n);
|
|
36115
36201
|
var i = {};
|
|
36116
36202
|
C(() => {
|
|
@@ -36134,7 +36220,7 @@ function vN(e, t) {
|
|
|
36134
36220
|
var J = H(K);
|
|
36135
36221
|
B(se);
|
|
36136
36222
|
var ce = H(se, 2), le = (e) => {
|
|
36137
|
-
var t =
|
|
36223
|
+
var t = xN(), n = N(t);
|
|
36138
36224
|
W(n);
|
|
36139
36225
|
var r = H(n);
|
|
36140
36226
|
B(t), C((e) => m(r, ` ${e ?? ""}`), [() => i("chartSetup.stacked")]), q(n, () => o(d), (e) => L(d, e)), c(e, t);
|
|
@@ -36170,12 +36256,12 @@ function vN(e, t) {
|
|
|
36170
36256
|
s(["click"]);
|
|
36171
36257
|
//#endregion
|
|
36172
36258
|
//#region src/SvSheetSparklines.svelte
|
|
36173
|
-
var
|
|
36259
|
+
var TN = g("<button type=\"button\" class=\"btn\"> </button>"), EN = g("<div class=\"sv-sheet-dialog-buttons\"><!> <span class=\"spacer svelte-17ouevn\"></span> <button type=\"button\" class=\"btn primary\"> </button> <button type=\"button\" class=\"btn\"> </button></div>"), DN = g("<option> </option>"), ON = g("<label class=\"field\"><span> </span> <input type=\"color\"/></label>"), kN = g("<label class=\"check\"><input type=\"checkbox\"/> </label>"), AN = g("<p class=\"error svelte-17ouevn\"> </p>"), jN = g("<form class=\"sv-sheet-dialog\"><label class=\"field\"><span> </span> <select></select></label> <label class=\"field\"><span> </span> <input type=\"text\" spellcheck=\"false\"/></label> <label class=\"field\"><span> </span> <input type=\"text\" spellcheck=\"false\"/></label> <label class=\"field\"><span> </span> <input type=\"color\"/></label> <!> <div class=\"checks\"><label class=\"check\"><input type=\"checkbox\"/> </label> <!></div> <!> <p class=\"hint\"> </p></form>"), MN = {
|
|
36174
36260
|
hash: "svelte-17ouevn",
|
|
36175
36261
|
code: ".spacer.svelte-17ouevn {flex:1;}.error.svelte-17ouevn {margin:4px 0 0;color:var(--sg-danger, #c42b1c);font-size:12px;}"
|
|
36176
36262
|
};
|
|
36177
|
-
function
|
|
36178
|
-
M(t, !0), v(e,
|
|
36263
|
+
function NN(e, t) {
|
|
36264
|
+
M(t, !0), v(e, MN);
|
|
36179
36265
|
let n = V(t, "open", 15, !1), r = V(t, "existing", 3, !1), i = Cp(), a = D("line"), s = D(""), l = D(""), u = D(""), d = D(""), f = D(!1), h = D(!1), g = D(""), _ = D(null);
|
|
36180
36266
|
S(() => {
|
|
36181
36267
|
n() && (L(a, t.group.type, !0), L(s, mp([t.group.data]), !0), L(l, mp([t.group.location]), !0), L(u, t.group.color ?? "", !0), L(d, t.group.negativeColor ?? "", !0), L(f, !!t.group.sameScale, !0), L(h, !!t.group.markers, !0), L(g, ""), queueMicrotask(() => o(_)?.focus()));
|
|
@@ -36212,8 +36298,8 @@ function DN(e, t) {
|
|
|
36212
36298
|
}
|
|
36213
36299
|
{
|
|
36214
36300
|
let v = (e) => {
|
|
36215
|
-
var a =
|
|
36216
|
-
var r =
|
|
36301
|
+
var a = EN(), o = N(a), s = (e) => {
|
|
36302
|
+
var r = TN(), a = N(r, !0);
|
|
36217
36303
|
B(r), C((e) => m(a, e), [() => i("delete")]), y("click", r, () => {
|
|
36218
36304
|
n(!1), t.onDelete?.();
|
|
36219
36305
|
}), c(e, r);
|
|
@@ -36244,11 +36330,11 @@ function DN(e, t) {
|
|
|
36244
36330
|
},
|
|
36245
36331
|
footer: v,
|
|
36246
36332
|
children: (e, t) => {
|
|
36247
|
-
var n =
|
|
36333
|
+
var n = jN(), r = N(n), v = N(r), b = N(v, !0);
|
|
36248
36334
|
B(v);
|
|
36249
36335
|
var S = H(v, 2);
|
|
36250
36336
|
p(S, 20, () => KC, (e) => e, (e, t) => {
|
|
36251
|
-
var n =
|
|
36337
|
+
var n = DN(), r = N(n, !0);
|
|
36252
36338
|
B(n);
|
|
36253
36339
|
var a = {};
|
|
36254
36340
|
C((e) => {
|
|
@@ -36268,7 +36354,7 @@ function DN(e, t) {
|
|
|
36268
36354
|
var ne = H(te, 2);
|
|
36269
36355
|
W(ne), B(ee);
|
|
36270
36356
|
var re = H(ee, 2), ae = (e) => {
|
|
36271
|
-
var t =
|
|
36357
|
+
var t = ON(), n = N(t), r = N(n, !0);
|
|
36272
36358
|
B(n);
|
|
36273
36359
|
var a = H(n, 2);
|
|
36274
36360
|
W(a), B(t), C((e) => {
|
|
@@ -36283,7 +36369,7 @@ function DN(e, t) {
|
|
|
36283
36369
|
var oe = H(G);
|
|
36284
36370
|
B(U);
|
|
36285
36371
|
var se = H(U, 2), K = (e) => {
|
|
36286
|
-
var t =
|
|
36372
|
+
var t = kN(), n = N(t);
|
|
36287
36373
|
W(n);
|
|
36288
36374
|
var r = H(n);
|
|
36289
36375
|
B(t), C((e) => m(r, ` ${e ?? ""}`), [() => i("sparklines.markers")]), q(n, () => o(h), (e) => L(h, e)), c(e, t);
|
|
@@ -36292,7 +36378,7 @@ function DN(e, t) {
|
|
|
36292
36378
|
o(a) === "line" && e(K);
|
|
36293
36379
|
}), B(V);
|
|
36294
36380
|
var J = H(V, 2), ce = (e) => {
|
|
36295
|
-
var t =
|
|
36381
|
+
var t = AN(), n = N(t, !0);
|
|
36296
36382
|
B(t), C(() => m(n, o(g))), c(e, t);
|
|
36297
36383
|
};
|
|
36298
36384
|
R(J, (e) => {
|
|
@@ -36325,12 +36411,12 @@ function DN(e, t) {
|
|
|
36325
36411
|
s(["click", "input"]);
|
|
36326
36412
|
//#endregion
|
|
36327
36413
|
//#region src/SvSheetPivot.svelte
|
|
36328
|
-
var
|
|
36414
|
+
var PN = g("<button type=\"button\" class=\"btn\"> </button>"), FN = g("<div class=\"sv-sheet-dialog-buttons\"><!> <span class=\"spacer svelte-1s1zqfr\"></span> <button type=\"button\" class=\"btn primary\"> </button> <button type=\"button\" class=\"btn\"> </button></div>"), IN = g("<option> </option>"), LN = g("<select></select>"), RN = g("<option> </option>"), zN = g("<select><option> </option><!></select>"), BN = g("<span class=\"dash svelte-1s1zqfr\">—</span>"), VN = g("<div class=\"row svelte-1s1zqfr\"><span class=\"name svelte-1s1zqfr\"> </span> <select><option> </option><option> </option><option> </option><option> </option><option> </option></select> <!></div>"), HN = g("<p class=\"error svelte-1s1zqfr\"> </p>"), UN = g("<form class=\"sv-sheet-dialog\"><label class=\"field\"><span> </span> <input type=\"text\" spellcheck=\"false\"/></label> <label class=\"field\"><span> </span> <input type=\"text\" spellcheck=\"false\"/></label> <div class=\"fields svelte-1s1zqfr\"><div class=\"head svelte-1s1zqfr\"><span> </span> <span> </span> <span> </span></div> <!></div> <div class=\"checks\"><label class=\"check\"><input type=\"checkbox\"/> </label> <label class=\"check\"><input type=\"checkbox\"/> </label></div> <!> <p class=\"hint\"> </p></form>"), WN = {
|
|
36329
36415
|
hash: "svelte-1s1zqfr",
|
|
36330
36416
|
code: ".spacer.svelte-1s1zqfr {flex:1;}.error.svelte-1s1zqfr {margin:4px 0 0;color:var(--sg-danger, #c42b1c);font-size:12px;}.fields.svelte-1s1zqfr {margin-top:8px;max-height:220px;overflow:auto;border:1px solid var(--sg-border, #d1d1d1);border-radius:var(--sg-radius, 4px);}.head.svelte-1s1zqfr,\n .row.svelte-1s1zqfr {display:grid;grid-template-columns:1fr 120px 130px;gap:8px;align-items:center;padding:4px 8px;}.head.svelte-1s1zqfr {position:sticky;top:0;background:var(--sg-header-bg, #f3f3f3);color:var(--sg-muted, #616161);font-size:11px;text-transform:uppercase;letter-spacing:0.04em;}.row.svelte-1s1zqfr + .row:where(.svelte-1s1zqfr) {border-top:1px solid var(--sg-border, #ececec);}.name.svelte-1s1zqfr {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.dash.svelte-1s1zqfr {color:var(--sg-muted, #9a9a9a);text-align:center;}"
|
|
36331
36417
|
};
|
|
36332
|
-
function
|
|
36333
|
-
M(t, !0), v(e,
|
|
36418
|
+
function GN(e, t) {
|
|
36419
|
+
M(t, !0), v(e, WN);
|
|
36334
36420
|
let n = V(t, "open", 15, !1), r = V(t, "existing", 3, !1), i = Cp(), a = D(""), s = D(""), l = D(K([])), u = D(K([])), d = D(K([])), f = D(K([])), h = D(!0), g = D(!0), _ = D(""), b = D(null);
|
|
36335
36421
|
S(() => {
|
|
36336
36422
|
n() && (L(a, mp([t.pivot.source]), !0), L(s, vu({
|
|
@@ -36396,8 +36482,8 @@ function zN(e, t) {
|
|
|
36396
36482
|
}
|
|
36397
36483
|
{
|
|
36398
36484
|
let l = (e) => {
|
|
36399
|
-
var a =
|
|
36400
|
-
var r =
|
|
36485
|
+
var a = FN(), o = N(a), s = (e) => {
|
|
36486
|
+
var r = PN(), a = N(r, !0);
|
|
36401
36487
|
B(r), C((e) => m(a, e), [() => i("delete")]), y("click", r, () => {
|
|
36402
36488
|
n(!1), t.onDelete?.();
|
|
36403
36489
|
}), c(e, r);
|
|
@@ -36428,7 +36514,7 @@ function zN(e, t) {
|
|
|
36428
36514
|
},
|
|
36429
36515
|
footer: l,
|
|
36430
36516
|
children: (e, n) => {
|
|
36431
|
-
var r =
|
|
36517
|
+
var r = UN(), l = N(r), u = N(l), v = N(u, !0);
|
|
36432
36518
|
B(u);
|
|
36433
36519
|
var S = H(u, 2);
|
|
36434
36520
|
W(S), E(S, (e) => L(b, e), () => o(b)), B(l);
|
|
@@ -36445,7 +36531,7 @@ function zN(e, t) {
|
|
|
36445
36531
|
var G = H(te, 2);
|
|
36446
36532
|
p(G, 16, () => t.fields, (e) => e, (e, n) => {
|
|
36447
36533
|
let r = J(() => w(n));
|
|
36448
|
-
var a =
|
|
36534
|
+
var a = VN(), s = N(a), l = N(s, !0);
|
|
36449
36535
|
B(s);
|
|
36450
36536
|
var u = H(s, 2), h = N(u), g = N(h, !0);
|
|
36451
36537
|
B(h), h.value = h.__value = "none";
|
|
@@ -36461,9 +36547,9 @@ function zN(e, t) {
|
|
|
36461
36547
|
me(u);
|
|
36462
36548
|
var P = H(u, 2), F = (e) => {
|
|
36463
36549
|
let t = J(() => o(d).find((e) => e.field === n)?.agg ?? "sum");
|
|
36464
|
-
var r =
|
|
36465
|
-
p(r, 20, () =>
|
|
36466
|
-
var n =
|
|
36550
|
+
var r = LN();
|
|
36551
|
+
p(r, 20, () => pj, (e) => e, (e, t) => {
|
|
36552
|
+
var n = IN(), r = N(n, !0);
|
|
36467
36553
|
B(n);
|
|
36468
36554
|
var a = {};
|
|
36469
36555
|
C((e) => {
|
|
@@ -36476,11 +36562,11 @@ function zN(e, t) {
|
|
|
36476
36562
|
}), y("change", r, (e) => A(n, e.currentTarget.value)), c(e, r);
|
|
36477
36563
|
}, ee = (e) => {
|
|
36478
36564
|
let r = J(() => o(f).find((e) => e.field === n)?.value ?? "");
|
|
36479
|
-
var a =
|
|
36565
|
+
var a = zN(), s = N(a), l = N(s, !0);
|
|
36480
36566
|
B(s), s.value = s.__value = "";
|
|
36481
36567
|
var u = H(s);
|
|
36482
36568
|
p(u, 16, () => t.valuesOf?.(n) ?? [], (e) => e, (e, t) => {
|
|
36483
|
-
var n =
|
|
36569
|
+
var n = RN(), r = N(n, !0);
|
|
36484
36570
|
B(n);
|
|
36485
36571
|
var i = {};
|
|
36486
36572
|
C(() => {
|
|
@@ -36489,10 +36575,10 @@ function zN(e, t) {
|
|
|
36489
36575
|
}), B(a);
|
|
36490
36576
|
var d;
|
|
36491
36577
|
me(a), C((e) => {
|
|
36492
|
-
z(a, "aria-label", e), m(l,
|
|
36578
|
+
z(a, "aria-label", e), m(l, Dj), d !== (d = o(r)) && (a.value = (a.__value = o(r)) ?? "", O(a, o(r)));
|
|
36493
36579
|
}, [() => i("pivot.filterValue", { field: n })]), y("change", a, (e) => k(n, e.currentTarget.value)), c(e, a);
|
|
36494
36580
|
}, te = (e) => {
|
|
36495
|
-
var t =
|
|
36581
|
+
var t = BN();
|
|
36496
36582
|
c(e, t);
|
|
36497
36583
|
};
|
|
36498
36584
|
R(P, (e) => {
|
|
@@ -36516,7 +36602,7 @@ function zN(e, t) {
|
|
|
36516
36602
|
var ue = H(le);
|
|
36517
36603
|
B(Y), B(oe);
|
|
36518
36604
|
var de = H(oe, 2), fe = (e) => {
|
|
36519
|
-
var t =
|
|
36605
|
+
var t = HN(), n = N(t, !0);
|
|
36520
36606
|
B(t), C(() => m(n, o(_))), c(e, t);
|
|
36521
36607
|
};
|
|
36522
36608
|
R(de, (e) => {
|
|
@@ -36551,12 +36637,12 @@ function zN(e, t) {
|
|
|
36551
36637
|
s(["click", "change"]);
|
|
36552
36638
|
//#endregion
|
|
36553
36639
|
//#region src/SvSheetLink.svelte
|
|
36554
|
-
var
|
|
36640
|
+
var KN = g("<button type=\"button\" class=\"btn\"> </button>"), qN = g("<div class=\"sv-sheet-dialog-buttons\"><!> <span class=\"spacer svelte-1q1mh7v\"></span> <button type=\"button\" class=\"btn primary\"> </button> <button type=\"button\" class=\"btn\"> </button></div>"), JN = g("<p class=\"error svelte-1q1mh7v\"> </p>"), YN = g("<form class=\"sv-sheet-dialog\"><label class=\"field\"><span> </span> <input type=\"text\" spellcheck=\"false\"/></label> <label class=\"field\"><span> </span> <input type=\"text\"/></label> <label class=\"field\"><span> </span> <input type=\"text\"/></label> <!> <p class=\"hint\"> </p></form>"), XN = {
|
|
36555
36641
|
hash: "svelte-1q1mh7v",
|
|
36556
36642
|
code: ".spacer.svelte-1q1mh7v {flex:1;}.error.svelte-1q1mh7v {margin:4px 0 0;color:var(--sg-danger, #c42b1c);font-size:12px;}"
|
|
36557
36643
|
};
|
|
36558
|
-
function
|
|
36559
|
-
M(t, !0), v(e,
|
|
36644
|
+
function ZN(e, t) {
|
|
36645
|
+
M(t, !0), v(e, XN);
|
|
36560
36646
|
let n = V(t, "open", 15, !1), r = V(t, "existing", 3, !1), i = Cp(), a = D(""), s = D(""), l = D(""), u = D(""), d = D(null);
|
|
36561
36647
|
S(() => {
|
|
36562
36648
|
n() && (L(a, t.link.target, !0), L(s, t.text, !0), L(l, t.link.tip ?? "", !0), L(u, ""), queueMicrotask(() => o(d)?.focus()));
|
|
@@ -36574,8 +36660,8 @@ function GN(e, t) {
|
|
|
36574
36660
|
}
|
|
36575
36661
|
{
|
|
36576
36662
|
let h = (e) => {
|
|
36577
|
-
var a =
|
|
36578
|
-
var r =
|
|
36663
|
+
var a = qN(), o = N(a), s = (e) => {
|
|
36664
|
+
var r = KN(), a = N(r, !0);
|
|
36579
36665
|
B(r), C((e) => m(a, e), [() => i("link.remove")]), y("click", r, () => {
|
|
36580
36666
|
n(!1), t.onRemove?.();
|
|
36581
36667
|
}), c(e, r);
|
|
@@ -36606,7 +36692,7 @@ function GN(e, t) {
|
|
|
36606
36692
|
},
|
|
36607
36693
|
footer: h,
|
|
36608
36694
|
children: (e, t) => {
|
|
36609
|
-
var n =
|
|
36695
|
+
var n = YN(), r = N(n), p = N(r), h = N(p, !0);
|
|
36610
36696
|
B(p);
|
|
36611
36697
|
var g = H(p, 2);
|
|
36612
36698
|
W(g), E(g, (e) => L(d, e), () => o(d)), B(r);
|
|
@@ -36619,7 +36705,7 @@ function GN(e, t) {
|
|
|
36619
36705
|
var D = H(w, 2);
|
|
36620
36706
|
W(D), B(S);
|
|
36621
36707
|
var O = H(S, 2), k = (e) => {
|
|
36622
|
-
var t =
|
|
36708
|
+
var t = JN(), n = N(t, !0);
|
|
36623
36709
|
B(t), C(() => m(n, o(u))), c(e, t);
|
|
36624
36710
|
};
|
|
36625
36711
|
R(O, (e) => {
|
|
@@ -36651,12 +36737,12 @@ function GN(e, t) {
|
|
|
36651
36737
|
s(["click"]);
|
|
36652
36738
|
//#endregion
|
|
36653
36739
|
//#region src/SvSheetTable.svelte
|
|
36654
|
-
var
|
|
36740
|
+
var QN = g("<button type=\"button\" class=\"btn\"> </button>"), $N = g("<div class=\"sv-sheet-dialog-buttons\"><!> <span class=\"spacer svelte-121xnij\"></span> <button type=\"button\" class=\"btn primary\"> </button> <button type=\"button\" class=\"btn\"> </button></div>"), eP = g("<button type=\"button\" role=\"radio\"><span class=\"row head svelte-121xnij\"></span> <span class=\"row svelte-121xnij\"></span> <span class=\"row svelte-121xnij\"></span></button>"), tP = g("<p class=\"error svelte-121xnij\"> </p>"), nP = g("<form class=\"sv-sheet-dialog\"><label class=\"field\"><span> </span> <input type=\"text\" spellcheck=\"false\"/></label> <label class=\"field\"><span> </span> <input type=\"text\" spellcheck=\"false\"/></label> <div class=\"checks\"><label class=\"check\"><input type=\"checkbox\"/> </label> <label class=\"check\"><input type=\"checkbox\"/> </label></div> <fieldset class=\"styles svelte-121xnij\"><legend class=\"svelte-121xnij\"> </legend> <div class=\"gallery svelte-121xnij\" role=\"radiogroup\"><button type=\"button\" role=\"radio\"><span class=\"row head svelte-121xnij\"></span><span class=\"row svelte-121xnij\"></span><span class=\"row svelte-121xnij\"></span></button> <!></div></fieldset> <!> <p class=\"hint\"> </p></form>"), rP = {
|
|
36655
36741
|
hash: "svelte-121xnij",
|
|
36656
36742
|
code: ".spacer.svelte-121xnij {flex:1;}\n /* The gallery: each swatch is a header band over two body rows, which is\n the smallest drawing that still says what the style will look like. */.styles.svelte-121xnij {margin:8px 0 0;padding:0;border:0;}.styles.svelte-121xnij legend:where(.svelte-121xnij) {padding:0 0 4px;color:var(--sg-muted, #64748b);font-size:12px;}.gallery.svelte-121xnij {display:grid;grid-template-columns:repeat(6, 1fr);gap:6px;}.swatch.svelte-121xnij {display:flex;flex-direction:column;gap:1px;padding:2px;border:1px solid var(--sg-border, #d4d4d8);border-radius:3px;background:var(--sg-surface, #fff);cursor:pointer;}.swatch.svelte-121xnij .row:where(.svelte-121xnij) {display:block;height:5px;background:var(--sg-surface-2, #f1f5f9);}.swatch.svelte-121xnij .row.head:where(.svelte-121xnij) {height:7px;}.swatch.none.svelte-121xnij .row.head:where(.svelte-121xnij) {background:var(--sg-border, #d4d4d8);}.swatch.chosen.svelte-121xnij {outline:2px solid var(--sg-accent, #107c41);outline-offset:1px;}.swatch.svelte-121xnij:focus-visible {outline:2px solid var(--sg-accent, #107c41);outline-offset:1px;}.error.svelte-121xnij {margin:4px 0 0;color:var(--sg-danger, #c42b1c);font-size:12px;}"
|
|
36657
36743
|
};
|
|
36658
|
-
function
|
|
36659
|
-
M(t, !0), v(e,
|
|
36744
|
+
function iP(e, t) {
|
|
36745
|
+
M(t, !0), v(e, rP);
|
|
36660
36746
|
let n = V(t, "open", 15, !1), r = V(t, "headers", 3, !0), i = V(t, "totals", 3, !1), a = V(t, "existing", 3, !1), s = V(t, "style", 3, JS), l = Cp(), u = D(""), d = D(""), f = D(!0), h = D(!1), g = D(K(JS)), b = D(""), w = D(null);
|
|
36661
36747
|
S(() => {
|
|
36662
36748
|
n() && (L(u, mp([t.range]), !0), L(d, t.name, !0), L(f, r()), L(h, i()), L(g, s(), !0), L(b, ""), queueMicrotask(() => o(w)?.focus()));
|
|
@@ -36684,8 +36770,8 @@ function QN(e, t) {
|
|
|
36684
36770
|
}
|
|
36685
36771
|
{
|
|
36686
36772
|
let r = (e) => {
|
|
36687
|
-
var r =
|
|
36688
|
-
var r =
|
|
36773
|
+
var r = $N(), i = N(r), o = (e) => {
|
|
36774
|
+
var r = QN(), i = N(r, !0);
|
|
36689
36775
|
B(r), C((e) => m(i, e), [() => l("delete")]), y("click", r, () => {
|
|
36690
36776
|
n(!1), t.onRemove?.();
|
|
36691
36777
|
}), c(e, r);
|
|
@@ -36716,7 +36802,7 @@ function QN(e, t) {
|
|
|
36716
36802
|
},
|
|
36717
36803
|
footer: r,
|
|
36718
36804
|
children: (e, t) => {
|
|
36719
|
-
var n =
|
|
36805
|
+
var n = nP(), r = N(n), i = N(r), a = N(i, !0);
|
|
36720
36806
|
B(i);
|
|
36721
36807
|
var s = H(i, 2);
|
|
36722
36808
|
W(s), E(s, (e) => L(w, e), () => o(w)), B(r);
|
|
@@ -36739,7 +36825,7 @@ function QN(e, t) {
|
|
|
36739
36825
|
var U = H(ae, 2);
|
|
36740
36826
|
p(U, 17, () => qS, (e) => e.id, (e, t) => {
|
|
36741
36827
|
let n = J(() => rC(o(t)));
|
|
36742
|
-
var r =
|
|
36828
|
+
var r = eP();
|
|
36743
36829
|
let i;
|
|
36744
36830
|
var a = N(r), s = H(a, 2);
|
|
36745
36831
|
G(2), B(r), C((e, c) => {
|
|
@@ -36749,7 +36835,7 @@ function QN(e, t) {
|
|
|
36749
36835
|
}), c(e, r);
|
|
36750
36836
|
}), B(re), B(te);
|
|
36751
36837
|
var oe = H(te, 2), se = (e) => {
|
|
36752
|
-
var t =
|
|
36838
|
+
var t = tP(), n = N(t, !0);
|
|
36753
36839
|
B(t), C(() => m(n, o(b))), c(e, t);
|
|
36754
36840
|
};
|
|
36755
36841
|
R(oe, (e) => {
|
|
@@ -36787,7 +36873,7 @@ function QN(e, t) {
|
|
|
36787
36873
|
s(["click"]);
|
|
36788
36874
|
//#endregion
|
|
36789
36875
|
//#region src/sheet/cell-images.ts
|
|
36790
|
-
function
|
|
36876
|
+
function aP(e) {
|
|
36791
36877
|
let t = e.trim(), n = /^=\s*IMAGE\s*\(/i.exec(t);
|
|
36792
36878
|
if (!n) return null;
|
|
36793
36879
|
let r = t.slice(n[0].length), i = [], a = 0, o = !1, s = 0, c = -1;
|
|
@@ -36824,13 +36910,13 @@ function $N(e) {
|
|
|
36824
36910
|
...u ? { alt: u } : {}
|
|
36825
36911
|
};
|
|
36826
36912
|
}
|
|
36827
|
-
function
|
|
36913
|
+
function oP(e) {
|
|
36828
36914
|
let t = e.trim();
|
|
36829
36915
|
return /^data:image\//i.test(t) ? !0 : /^https?:\/\/\S+$/i.test(t);
|
|
36830
36916
|
}
|
|
36831
36917
|
//#endregion
|
|
36832
36918
|
//#region src/sheet/presence.ts
|
|
36833
|
-
var
|
|
36919
|
+
var sP = [
|
|
36834
36920
|
"#e11d48",
|
|
36835
36921
|
"#2563eb",
|
|
36836
36922
|
"#15803d",
|
|
@@ -36840,12 +36926,12 @@ var tP = [
|
|
|
36840
36926
|
"#a16207",
|
|
36841
36927
|
"#db2777"
|
|
36842
36928
|
];
|
|
36843
|
-
function
|
|
36929
|
+
function cP(e) {
|
|
36844
36930
|
let t = 0;
|
|
36845
36931
|
for (let n = 0; n < e.length; n += 1) t = t * 31 + e.charCodeAt(n) >>> 0;
|
|
36846
|
-
return
|
|
36932
|
+
return sP[t % sP.length];
|
|
36847
36933
|
}
|
|
36848
|
-
function
|
|
36934
|
+
function lP(e) {
|
|
36849
36935
|
let t = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(e.trim());
|
|
36850
36936
|
if (!t) return "#fff";
|
|
36851
36937
|
let n = t[1].length === 3 ? [...t[1]].map((e) => e + e).join("") : t[1], r = (e) => {
|
|
@@ -36854,11 +36940,11 @@ function rP(e) {
|
|
|
36854
36940
|
}, i = .2126 * r(0) + .7152 * r(2) + .0722 * r(4);
|
|
36855
36941
|
return 1.05 / (i + .05) >= (i + .05) / .05 ? "#fff" : "#000";
|
|
36856
36942
|
}
|
|
36857
|
-
function
|
|
36943
|
+
function uP(e) {
|
|
36858
36944
|
let t = e.trim().split(/\s+/).filter(Boolean);
|
|
36859
36945
|
return t.length === 0 ? "?" : t.length === 1 ? t[0].slice(0, 2).toUpperCase() : `${t[0][0]}${t[t.length - 1][0]}`.toUpperCase();
|
|
36860
36946
|
}
|
|
36861
|
-
function
|
|
36947
|
+
function dP(e, t = Date.now(), n = 15e3) {
|
|
36862
36948
|
let r = /* @__PURE__ */ new Map();
|
|
36863
36949
|
for (let i of e) {
|
|
36864
36950
|
if (t - (i.at ?? t) > n) continue;
|
|
@@ -36867,10 +36953,10 @@ function aP(e, t = Date.now(), n = 15e3) {
|
|
|
36867
36953
|
}
|
|
36868
36954
|
return [...r.values()];
|
|
36869
36955
|
}
|
|
36870
|
-
function
|
|
36956
|
+
function fP(e, t) {
|
|
36871
36957
|
return e.filter((e) => e.sheet.toLowerCase() === t.toLowerCase()).sort((e, t) => e.id.localeCompare(t.id));
|
|
36872
36958
|
}
|
|
36873
|
-
function
|
|
36959
|
+
function pP(e) {
|
|
36874
36960
|
if (e.active) return e.active;
|
|
36875
36961
|
let [t, n] = e.rect;
|
|
36876
36962
|
return {
|
|
@@ -36880,7 +36966,7 @@ function sP(e) {
|
|
|
36880
36966
|
}
|
|
36881
36967
|
//#endregion
|
|
36882
36968
|
//#region src/sheet/merges.ts
|
|
36883
|
-
function
|
|
36969
|
+
function mP(e) {
|
|
36884
36970
|
return [
|
|
36885
36971
|
Math.min(e[0], e[2]),
|
|
36886
36972
|
Math.min(e[1], e[3]),
|
|
@@ -36888,20 +36974,20 @@ function cP(e) {
|
|
|
36888
36974
|
Math.max(e[1], e[3])
|
|
36889
36975
|
];
|
|
36890
36976
|
}
|
|
36891
|
-
function
|
|
36892
|
-
return e.filter((e) => t.some((t) => Q_(e,
|
|
36977
|
+
function hP(e, t) {
|
|
36978
|
+
return e.filter((e) => t.some((t) => Q_(e, mP(t))));
|
|
36893
36979
|
}
|
|
36894
|
-
function
|
|
36980
|
+
function gP(e, t, n) {
|
|
36895
36981
|
return e.find((e) => Z_(e, t, n));
|
|
36896
36982
|
}
|
|
36897
|
-
function
|
|
36898
|
-
let r =
|
|
36983
|
+
function _P(e, t, n) {
|
|
36984
|
+
let r = gP(e, t, n);
|
|
36899
36985
|
return !!r && (r[0] !== t || r[1] !== n);
|
|
36900
36986
|
}
|
|
36901
|
-
function
|
|
36987
|
+
function vP(e, t, n, r) {
|
|
36902
36988
|
let i = [];
|
|
36903
36989
|
for (let e of t) {
|
|
36904
|
-
let t =
|
|
36990
|
+
let t = mP(e);
|
|
36905
36991
|
if (n === "across") {
|
|
36906
36992
|
if (t[1] === t[3]) continue;
|
|
36907
36993
|
for (let e = t[0]; e <= t[2]; e += 1) i.push([
|
|
@@ -36924,12 +37010,12 @@ function fP(e, t, n, r) {
|
|
|
36924
37010
|
origins: s
|
|
36925
37011
|
};
|
|
36926
37012
|
}
|
|
36927
|
-
function
|
|
36928
|
-
let n =
|
|
37013
|
+
function yP(e, t) {
|
|
37014
|
+
let n = hP(e, t);
|
|
36929
37015
|
return e.filter((e) => !n.includes(e));
|
|
36930
37016
|
}
|
|
36931
|
-
function
|
|
36932
|
-
let n =
|
|
37017
|
+
function bP(e, t) {
|
|
37018
|
+
let n = mP(t);
|
|
36933
37019
|
for (let t = 0; t < 64; t += 1) {
|
|
36934
37020
|
let t = !1;
|
|
36935
37021
|
for (let r of e) {
|
|
@@ -36946,10 +37032,10 @@ function mP(e, t) {
|
|
|
36946
37032
|
}
|
|
36947
37033
|
return n;
|
|
36948
37034
|
}
|
|
36949
|
-
function
|
|
36950
|
-
return
|
|
37035
|
+
function xP(e, t) {
|
|
37036
|
+
return hP(e, t).length > 0;
|
|
36951
37037
|
}
|
|
36952
|
-
function
|
|
37038
|
+
function SP(e) {
|
|
36953
37039
|
return e.map((e) => ({
|
|
36954
37040
|
rowIndex: e[0],
|
|
36955
37041
|
colIndex: e[1],
|
|
@@ -36957,13 +37043,13 @@ function gP(e) {
|
|
|
36957
37043
|
colSpan: e[3] - e[1] + 1
|
|
36958
37044
|
}));
|
|
36959
37045
|
}
|
|
36960
|
-
function
|
|
36961
|
-
let n =
|
|
37046
|
+
function CP(e, t) {
|
|
37047
|
+
let n = mP(t);
|
|
36962
37048
|
for (let t of e) if (Q_(t, n) && (!(t[0] >= n[0] && t[2] <= n[2] && t[1] >= n[1] && t[3] <= n[3]) || t[0] !== t[2])) return !0;
|
|
36963
37049
|
return !1;
|
|
36964
37050
|
}
|
|
36965
|
-
function
|
|
36966
|
-
let r =
|
|
37051
|
+
function wP(e, t, n) {
|
|
37052
|
+
let r = mP(t);
|
|
36967
37053
|
return e.map((e) => {
|
|
36968
37054
|
if (!Q_(e, r)) return e;
|
|
36969
37055
|
let t = n(e[0]);
|
|
@@ -36977,14 +37063,14 @@ function vP(e, t, n) {
|
|
|
36977
37063
|
}
|
|
36978
37064
|
//#endregion
|
|
36979
37065
|
//#region src/sheet/print.ts
|
|
36980
|
-
var
|
|
37066
|
+
var TP = {
|
|
36981
37067
|
"&": "&",
|
|
36982
37068
|
"<": "<",
|
|
36983
37069
|
">": ">",
|
|
36984
37070
|
"\"": """,
|
|
36985
37071
|
"'": "'"
|
|
36986
|
-
},
|
|
36987
|
-
function
|
|
37072
|
+
}, EP = (e) => e.replace(/[&<>"']/g, (e) => TP[e]);
|
|
37073
|
+
function DP(e) {
|
|
36988
37074
|
return e.setup.printArea?.length ? e.setup.printArea : [[
|
|
36989
37075
|
0,
|
|
36990
37076
|
0,
|
|
@@ -36992,8 +37078,8 @@ function xP(e) {
|
|
|
36992
37078
|
Math.max(0, e.colCount - 1)
|
|
36993
37079
|
]];
|
|
36994
37080
|
}
|
|
36995
|
-
function
|
|
36996
|
-
let t =
|
|
37081
|
+
function OP(e) {
|
|
37082
|
+
let t = DP(e);
|
|
36997
37083
|
if (e.setup.printArea?.length || !e.objects?.length) return t;
|
|
36998
37084
|
let [n, r, i, a] = t[0];
|
|
36999
37085
|
for (let t of e.objects) {
|
|
@@ -37010,7 +37096,7 @@ function SP(e) {
|
|
|
37010
37096
|
a
|
|
37011
37097
|
]];
|
|
37012
37098
|
}
|
|
37013
|
-
function
|
|
37099
|
+
function kP(e) {
|
|
37014
37100
|
let { setup: t } = e, n = /* @__PURE__ */ new Map();
|
|
37015
37101
|
for (let t of e.objects ?? []) {
|
|
37016
37102
|
let e = `${t.row},${t.col}`, r = n.get(e);
|
|
@@ -37025,8 +37111,8 @@ function CP(e) {
|
|
|
37025
37111
|
for (let i = t; i <= n; i += 1) e.hidden.cols.has(i) || r.push(i);
|
|
37026
37112
|
return r;
|
|
37027
37113
|
}, a = (t, a, o, s = "td") => {
|
|
37028
|
-
if (
|
|
37029
|
-
let c = e.cellAt(t, a), l =
|
|
37114
|
+
if (_P(e.merges, t, a)) return "";
|
|
37115
|
+
let c = e.cellAt(t, a), l = gP(e.merges, t, a), u = "";
|
|
37030
37116
|
if (l) {
|
|
37031
37117
|
let e = i(Math.max(l[1], o[1]), Math.min(l[3], o[3])).length, t = r(Math.max(l[0], o[0]), Math.min(l[2], o[2])).length;
|
|
37032
37118
|
e > 1 && (u += ` colspan="${e}"`), t > 1 && (u += ` rowspan="${t}"`);
|
|
@@ -37035,9 +37121,9 @@ function CP(e) {
|
|
|
37035
37121
|
f && f !== "left" && d.push(`text-align:${f}`), c.table && (c.table.fill && d.push(`background:${c.table.fill}`), c.table.color && d.push(`color:${c.table.color}`), c.table.bold && d.push("font-weight:600"), c.table.borderTop && d.push(`border-top:1px solid ${c.table.borderTop}`), c.table.borderBottom && d.push(`border-bottom:1px solid ${c.table.borderBottom}`));
|
|
37036
37122
|
let p = Qx(c.entry);
|
|
37037
37123
|
p && d.push(p), c.cf && d.push(Qx(c.cf)), c.color && d.push(`color:${c.color}`);
|
|
37038
|
-
let m = d.length ? ` style="${
|
|
37124
|
+
let m = d.length ? ` style="${EP(d.filter(Boolean).join(";"))}"` : "", h = c.sparkline ? `<span class="sp">${c.sparkline}</span>` : "", g = c.image ? `<span class="im">${c.image}</span>` : "", _ = (n.get(`${t},${a}`) ?? []).map((e) => `<span class="ob" style="inset-inline-start:${e.dx}px;top:${e.dy}px;width:${e.width}px;height:${e.height}px">${e.html}</span>`).join(""), v = [h || g ? "sp-cell" : "", _ ? "ob-cell" : ""].filter(Boolean).join(" "), y = v ? ` class="${v}"` : "", b = EP(c.text ?? ""), x = h || g || _ ? `${h}${g}${_}<span class="tx">${c.image ? "" : b}</span>` : b;
|
|
37039
37125
|
return `<${s}${u}${y}${m}>${x}</${s}>`;
|
|
37040
|
-
}, o = (n, r, i, o = !1) => `<tr style="height:${e.heights.get(n) ?? e.defaultHeight}px">${t.headings ? `<th class="rh">${n + 1}</th>` : ""}${r.map((e) => a(n, e, i, o ? "th" : "td")).join("")}</tr>`, s =
|
|
37126
|
+
}, o = (n, r, i, o = !1) => `<tr style="height:${e.heights.get(n) ?? e.defaultHeight}px">${t.headings ? `<th class="rh">${n + 1}</th>` : ""}${r.map((e) => a(n, e, i, o ? "th" : "td")).join("")}</tr>`, s = OP(e).map((n) => {
|
|
37041
37127
|
let a = i(n[1], n[3]), s = r(n[0], n[2]), c = `<colgroup>${t.headings ? "<col style=\"width:40px\">" : ""}${a.map((t) => `<col style="width:${e.widths[Z(t)] ?? e.defaultWidth}px">`).join("")}</colgroup>`, l = t.headings ? `<tr class="ch"><th class="corner"></th>${a.map((e) => `<th>${Z(e)}</th>`).join("")}</tr>` : "", u = t.printTitleRows, d = u && u[0] <= n[2] ? r(u[0], Math.min(u[1], n[2])).filter((e) => e < n[0] || e <= n[2]) : [], f = s.filter((e) => !d.includes(e));
|
|
37042
37128
|
return `<table>${c}${l || d.length ? `<thead>${l}${d.map((e) => o(e, a, [
|
|
37043
37129
|
Math.min(e, n[0]),
|
|
@@ -37047,7 +37133,7 @@ function CP(e) {
|
|
|
37047
37133
|
], !0)).join("")}</thead>` : ""}<tbody>${f.map((e) => o(e, a, n)).join("")}</tbody></table>`;
|
|
37048
37134
|
}), c = zS[t.paper]?.css ?? "A4", l = t.gridlines ? "td, th { border: 1px solid #d0d0d0; }" : "td, th { border: 1px solid transparent; }";
|
|
37049
37135
|
return `<!DOCTYPE html>
|
|
37050
|
-
<html><head><meta charset="utf-8"><title>${
|
|
37136
|
+
<html><head><meta charset="utf-8"><title>${EP(e.name)}</title>
|
|
37051
37137
|
<style>
|
|
37052
37138
|
@page { size: ${c} ${t.orientation}; margin: ${GS(t.margins)}; }
|
|
37053
37139
|
@media print { body { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
|
|
@@ -37075,12 +37161,12 @@ function CP(e) {
|
|
|
37075
37161
|
}
|
|
37076
37162
|
//#endregion
|
|
37077
37163
|
//#region src/SvSheetComment.svelte
|
|
37078
|
-
var
|
|
37164
|
+
var AP = g("<span class=\"badge svelte-y0szji\"> </span> <button type=\"button\" class=\"link svelte-y0szji\"> </button>", 1), jP = g("<button type=\"button\" class=\"link svelte-y0szji\"> </button>"), MP = g("<button type=\"button\" class=\"btn\"> </button>"), NP = g("<button type=\"button\" class=\"btn\"> </button>"), PP = g("<textarea rows=\"4\" spellcheck=\"false\" class=\"svelte-y0szji\"></textarea> <div class=\"sv-sheet-dialog-buttons\"><span class=\"keys svelte-y0szji\"> </span> <button type=\"button\" class=\"btn primary\"> </button> <!></div>", 1), FP = g("<span class=\"author svelte-y0szji\"> </span>"), IP = g("<span class=\"when\"> </span>"), LP = g("<span class=\"author svelte-y0szji\"> </span>"), RP = g("<span class=\"when\"> </span>"), zP = g("<textarea rows=\"3\" spellcheck=\"false\" class=\"svelte-y0szji\"></textarea> <div class=\"actions svelte-y0szji\"><button type=\"button\" class=\"link svelte-y0szji\"> </button> <button type=\"button\" class=\"link svelte-y0szji\"> </button></div>", 1), BP = g("<div class=\"text svelte-y0szji\"> </div> <div class=\"actions svelte-y0szji\"><button type=\"button\" class=\"link svelte-y0szji\"> </button> <button type=\"button\" class=\"link svelte-y0szji\"> </button></div>", 1), VP = g("<div class=\"entry reply svelte-y0szji\"><div class=\"who svelte-y0szji\"><!> <!></div> <!></div>"), HP = g("<textarea rows=\"2\" spellcheck=\"false\" class=\"svelte-y0szji\"></textarea> <div class=\"sv-sheet-dialog-buttons\"><span class=\"keys svelte-y0szji\"> </span> <button type=\"button\" class=\"btn primary\"> </button></div>", 1), UP = g("<div class=\"entry root svelte-y0szji\"><div class=\"who svelte-y0szji\"><!> <!></div> <div class=\"text svelte-y0szji\"> </div> <div class=\"actions svelte-y0szji\"><button type=\"button\" class=\"link svelte-y0szji\"> </button> <button type=\"button\" class=\"link svelte-y0szji\"> </button></div></div> <!> <!>", 1), WP = g("<div role=\"dialog\" tabindex=\"-1\"><div class=\"head svelte-y0szji\"><span> </span> <!></div> <!></div>"), GP = {
|
|
37079
37165
|
hash: "svelte-y0szji",
|
|
37080
37166
|
code: ".sv-sheet-comment.svelte-y0szji {display:flex;flex-direction:column;gap:6px;width:260px;padding:8px;font-size:12px;color:var(--sg-fg, #242424);}.sv-sheet-comment.threaded.svelte-y0szji {width:300px;max-height:360px;overflow-y:auto;}.head.svelte-y0szji {display:flex;align-items:center;gap:8px;font-weight:600;color:var(--sg-muted, #616161);}.head.svelte-y0szji .link:where(.svelte-y0szji) {margin-left:auto;}.badge.svelte-y0szji {padding:1px 6px;font-size:11px;font-weight:600;color:var(--sg-on-accent, #fff);background:var(--sg-accent, #107c41);border-radius:9px;}.keys.svelte-y0szji {margin-right:auto;font-size:11px;color:var(--sg-muted, #616161);}.entry.svelte-y0szji {display:flex;flex-direction:column;gap:3px;padding:6px 0;border-top:1px solid var(--sg-border, #e5e5e5);}.entry.root.svelte-y0szji {border-top:0;padding-top:0;}.entry.reply.svelte-y0szji {padding-left:12px;}.who.svelte-y0szji {display:flex;gap:8px;align-items:baseline;font-size:11px;color:var(--sg-muted, #616161);}.author.svelte-y0szji {font-weight:600;color:var(--sg-fg, #242424);}.text.svelte-y0szji {white-space:pre-wrap;overflow-wrap:anywhere;}.actions.svelte-y0szji {display:flex;gap:10px;}.link.svelte-y0szji {padding:0;font:inherit;font-size:11px;color:var(--sg-accent, #107c41);background:none;border:0;cursor:pointer;}.link.svelte-y0szji:hover {text-decoration:underline;}textarea.svelte-y0szji {width:100%;box-sizing:border-box;resize:vertical;min-height:40px;padding:6px 8px;font:inherit;line-height:1.4;color:inherit;background:var(--sg-bg, #fff);border:1px solid var(--sg-border, #d1d1d1);border-radius:3px;}textarea.svelte-y0szji:focus-visible {outline:2px solid var(--sg-focus-ring, var(--sg-accent, #107c41));outline-offset:-1px;}"
|
|
37081
37167
|
};
|
|
37082
|
-
function
|
|
37083
|
-
M(t, !0), v(e,
|
|
37168
|
+
function KP(e, t) {
|
|
37169
|
+
M(t, !0), v(e, GP);
|
|
37084
37170
|
let n = Cp(), r = D(""), i = D(!1), a = D(""), s = D(null), l = D(""), d = D(null), f = D(null);
|
|
37085
37171
|
S(() => {
|
|
37086
37172
|
L(r, t.text, !0), L(i, !1), L(s, null), L(a, ""), queueMicrotask(() => {
|
|
@@ -37147,20 +37233,20 @@ function BP(e, t) {
|
|
|
37147
37233
|
function j(e) {
|
|
37148
37234
|
e.key !== "Enter" || !(e.ctrlKey || e.metaKey) || (e.preventDefault(), e.target === o(f) ? T() : o(s) === null ? o(g) && w() : O(o(s)));
|
|
37149
37235
|
}
|
|
37150
|
-
var P =
|
|
37236
|
+
var P = WP();
|
|
37151
37237
|
let F;
|
|
37152
37238
|
var ee = N(P), te = N(ee), I = N(te, !0);
|
|
37153
37239
|
B(te);
|
|
37154
37240
|
var ne = H(te, 2), ae = (e) => {
|
|
37155
37241
|
var r = u(), i = Y(r), a = (e) => {
|
|
37156
|
-
var t =
|
|
37242
|
+
var t = AP(), r = Y(t), i = N(r, !0);
|
|
37157
37243
|
B(r);
|
|
37158
37244
|
var a = H(r, 2), o = N(a, !0);
|
|
37159
37245
|
B(a), C((e, t) => {
|
|
37160
37246
|
m(i, e), m(o, t);
|
|
37161
37247
|
}, [() => n("commentResolved"), () => n("commentReopen")]), y("click", a, () => A(!1)), c(e, t);
|
|
37162
37248
|
}, o = (e) => {
|
|
37163
|
-
var t =
|
|
37249
|
+
var t = jP(), r = N(t, !0);
|
|
37164
37250
|
B(t), C((e) => m(r, e), [() => n("commentResolve")]), y("click", t, () => A(!0)), c(e, t);
|
|
37165
37251
|
};
|
|
37166
37252
|
R(i, (e) => {
|
|
@@ -37171,19 +37257,19 @@ function BP(e, t) {
|
|
|
37171
37257
|
t.thread && e(ae);
|
|
37172
37258
|
}), B(ee);
|
|
37173
37259
|
var V = H(ee, 2), U = (e) => {
|
|
37174
|
-
var a =
|
|
37260
|
+
var a = PP(), s = Y(a);
|
|
37175
37261
|
h(s), E(s, (e) => L(d, e), () => o(d));
|
|
37176
37262
|
var l = H(s, 2), u = N(l), f = N(u, !0);
|
|
37177
37263
|
B(u);
|
|
37178
37264
|
var p = H(u, 2), g = N(p, !0);
|
|
37179
37265
|
B(p);
|
|
37180
37266
|
var _ = H(p, 2), v = (e) => {
|
|
37181
|
-
var a =
|
|
37267
|
+
var a = MP(), o = N(a, !0);
|
|
37182
37268
|
B(a), C((e) => m(o, e), [() => n("cancel")]), y("click", a, () => {
|
|
37183
37269
|
L(r, t.text, !0), t.onDraft(t.text), L(i, !1);
|
|
37184
37270
|
}), c(e, a);
|
|
37185
37271
|
}, b = (e) => {
|
|
37186
|
-
var r =
|
|
37272
|
+
var r = NP(), i = N(r, !0);
|
|
37187
37273
|
B(r), C((e) => m(i, e), [() => n("delete")]), y("click", r, function(...e) {
|
|
37188
37274
|
t.onDelete?.apply(this, e);
|
|
37189
37275
|
}), c(e, r);
|
|
@@ -37199,15 +37285,15 @@ function BP(e, t) {
|
|
|
37199
37285
|
() => n("save")
|
|
37200
37286
|
]), y("input", s, () => t.onDraft(o(r))), ie(s, () => o(r), (e) => L(r, e)), y("click", p, w), c(e, a);
|
|
37201
37287
|
}, W = (e) => {
|
|
37202
|
-
var r =
|
|
37203
|
-
var n =
|
|
37288
|
+
var r = UP(), u = Y(r), g = N(u), _ = N(g), v = (e) => {
|
|
37289
|
+
var n = FP(), r = N(n, !0);
|
|
37204
37290
|
B(n), C(() => m(r, t.thread.author)), c(e, n);
|
|
37205
37291
|
};
|
|
37206
37292
|
R(_, (e) => {
|
|
37207
37293
|
t.thread.author && e(v);
|
|
37208
37294
|
});
|
|
37209
37295
|
var x = H(_, 2), S = (e) => {
|
|
37210
|
-
var n =
|
|
37296
|
+
var n = IP(), r = N(n, !0);
|
|
37211
37297
|
B(n), C((e) => m(r, e), [() => b(t.thread.at)]), c(e, n);
|
|
37212
37298
|
};
|
|
37213
37299
|
R(x, (e) => {
|
|
@@ -37221,22 +37307,22 @@ function BP(e, t) {
|
|
|
37221
37307
|
B(P), B(A), B(u);
|
|
37222
37308
|
var ee = H(u, 2);
|
|
37223
37309
|
p(ee, 17, () => t.thread.replies ?? [], re, (e, t, r) => {
|
|
37224
|
-
var i =
|
|
37225
|
-
var n =
|
|
37310
|
+
var i = VP(), a = N(i), u = N(a), d = (e) => {
|
|
37311
|
+
var n = LP(), r = N(n, !0);
|
|
37226
37312
|
B(n), C(() => m(r, o(t).author)), c(e, n);
|
|
37227
37313
|
};
|
|
37228
37314
|
R(u, (e) => {
|
|
37229
37315
|
o(t).author && e(d);
|
|
37230
37316
|
});
|
|
37231
37317
|
var f = H(u, 2), p = (e) => {
|
|
37232
|
-
var n =
|
|
37318
|
+
var n = RP(), r = N(n, !0);
|
|
37233
37319
|
B(n), C((e) => m(r, e), [() => b(o(t).at)]), c(e, n);
|
|
37234
37320
|
};
|
|
37235
37321
|
R(f, (e) => {
|
|
37236
37322
|
o(t).at && e(p);
|
|
37237
37323
|
}), B(a);
|
|
37238
37324
|
var g = H(a, 2), _ = (e) => {
|
|
37239
|
-
var t =
|
|
37325
|
+
var t = zP(), i = Y(t);
|
|
37240
37326
|
h(i);
|
|
37241
37327
|
var a = H(i, 2), u = N(a), d = N(u, !0);
|
|
37242
37328
|
B(u);
|
|
@@ -37249,7 +37335,7 @@ function BP(e, t) {
|
|
|
37249
37335
|
() => n("cancel")
|
|
37250
37336
|
]), ie(i, () => o(l), (e) => L(l, e)), y("click", u, () => O(r)), y("click", f, () => L(s, null)), c(e, t);
|
|
37251
37337
|
}, v = (e) => {
|
|
37252
|
-
var i =
|
|
37338
|
+
var i = BP(), a = Y(i), u = N(a, !0);
|
|
37253
37339
|
B(a);
|
|
37254
37340
|
var d = H(a, 2), f = N(d), p = N(f, !0);
|
|
37255
37341
|
B(f);
|
|
@@ -37265,7 +37351,7 @@ function BP(e, t) {
|
|
|
37265
37351
|
}), B(i), c(e, i);
|
|
37266
37352
|
});
|
|
37267
37353
|
var te = H(ee, 2), I = (e) => {
|
|
37268
|
-
var t =
|
|
37354
|
+
var t = HP(), r = Y(t);
|
|
37269
37355
|
h(r), E(r, (e) => L(f, e), () => o(f));
|
|
37270
37356
|
var i = H(r, 2), s = N(i), l = N(s, !0);
|
|
37271
37357
|
B(s);
|
|
@@ -37303,12 +37389,12 @@ s([
|
|
|
37303
37389
|
]);
|
|
37304
37390
|
//#endregion
|
|
37305
37391
|
//#region src/SvSheetListPicker.svelte
|
|
37306
|
-
var
|
|
37392
|
+
var qP = g("<div class=\"empty svelte-9et7k5\"> </div>"), JP = g("<div role=\"option\"> </div>"), YP = g("<div class=\"sv-sheet-list-picker svelte-9et7k5\" role=\"listbox\" tabindex=\"0\"><!></div>"), XP = {
|
|
37307
37393
|
hash: "svelte-9et7k5",
|
|
37308
37394
|
code: ".sv-sheet-list-picker.svelte-9et7k5 {min-width:120px;max-width:320px;max-height:200px;overflow-y:auto;padding:4px 0;font-size:12px;color:var(--sg-fg, #242424);outline:none;}.choice.svelte-9et7k5 {padding:4px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:default;}.choice.on.svelte-9et7k5 {background:var(--sg-selection-bg, rgba(16, 124, 65, 0.12));}.empty.svelte-9et7k5 {padding:4px 10px;color:var(--sg-muted, #616161);}"
|
|
37309
37395
|
};
|
|
37310
|
-
function
|
|
37311
|
-
M(t, !0), v(e,
|
|
37396
|
+
function ZP(e, t) {
|
|
37397
|
+
M(t, !0), v(e, XP);
|
|
37312
37398
|
let n = Cp(), r = D(null), i = D(0);
|
|
37313
37399
|
S(() => {
|
|
37314
37400
|
let e = t.choices.findIndex((e) => e.toLowerCase() === t.value.trim().toLowerCase());
|
|
@@ -37328,13 +37414,13 @@ function GP(e, t) {
|
|
|
37328
37414
|
function s() {
|
|
37329
37415
|
o(r)?.querySelector(`[data-index="${o(i)}"]`)?.scrollIntoView({ block: "nearest" });
|
|
37330
37416
|
}
|
|
37331
|
-
var l =
|
|
37332
|
-
var t =
|
|
37417
|
+
var l = YP(), d = N(l), f = (e) => {
|
|
37418
|
+
var t = qP(), r = N(t, !0);
|
|
37333
37419
|
B(t), C((e) => m(r, e), [() => n("listEmpty")]), c(e, t);
|
|
37334
37420
|
}, h = (e) => {
|
|
37335
37421
|
var n = u(), r = Y(n);
|
|
37336
37422
|
p(r, 17, () => t.choices, re, (e, n, r) => {
|
|
37337
|
-
var a =
|
|
37423
|
+
var a = JP();
|
|
37338
37424
|
z(a, "id", `sv-sheet-choice-${r}`);
|
|
37339
37425
|
let s;
|
|
37340
37426
|
z(a, "data-index", r);
|
|
@@ -37357,12 +37443,12 @@ s([
|
|
|
37357
37443
|
]);
|
|
37358
37444
|
//#endregion
|
|
37359
37445
|
//#region src/SvSheetDataValidation.svelte
|
|
37360
|
-
var
|
|
37446
|
+
var QP = g("<div class=\"sv-sheet-dialog-buttons\"><button type=\"button\" class=\"btn\"> </button> <span class=\"spacer svelte-1g381pa\"></span> <button type=\"button\" class=\"btn primary\"> </button> <button type=\"button\" class=\"btn\"> </button></div>"), $P = g("<button type=\"button\" role=\"tab\"> </button>"), eF = g("<option> </option>"), tF = g("<option> </option>"), nF = g("<label class=\"field\"><span> </span> <select></select></label>"), rF = g("<label class=\"field\"><span> </span> <input type=\"text\" spellcheck=\"false\"/></label>"), iF = g("<label class=\"field\"><span> </span> <input type=\"text\" spellcheck=\"false\"/></label>"), aF = g("<label class=\"check\"><input type=\"checkbox\"/> </label>"), oF = g("<p class=\"hint svelte-1g381pa\"> </p>"), sF = g("<p class=\"hint svelte-1g381pa\"> </p>"), cF = g("<p class=\"hint svelte-1g381pa\"> </p>"), lF = g("<div class=\"lead svelte-1g381pa\"> </div> <label class=\"field\"><span> </span> <select></select></label> <!> <!> <!> <div class=\"checks\"><label class=\"check\"><input type=\"checkbox\"/> </label> <!></div> <!>", 1), uF = g("<label class=\"check\"><input type=\"checkbox\"/> </label> <div class=\"lead svelte-1g381pa\"> </div> <label class=\"field\"><span> </span> <input type=\"text\"/></label> <label class=\"field message svelte-1g381pa\"><span> </span> <textarea rows=\"4\" class=\"svelte-1g381pa\"></textarea></label>", 1), dF = g("<div class=\"lead svelte-1g381pa\"> </div> <label class=\"field\"><span> </span> <select><option> </option><option> </option></select></label> <label class=\"field\"><span> </span> <input type=\"text\"/></label> <label class=\"field message svelte-1g381pa\"><span> </span> <textarea rows=\"4\" class=\"svelte-1g381pa\"></textarea></label> <p class=\"hint svelte-1g381pa\"> </p>", 1), fF = g("<form class=\"sv-sheet-dialog validation\"><div class=\"where svelte-1g381pa\"> </div> <div class=\"tabs svelte-1g381pa\" role=\"tablist\"></div> <div class=\"panel svelte-1g381pa\" role=\"tabpanel\"><!></div></form>"), pF = {
|
|
37361
37447
|
hash: "svelte-1g381pa",
|
|
37362
37448
|
code: ".where.svelte-1g381pa {color:var(--sg-muted, #616161);}.tabs.svelte-1g381pa {display:flex;gap:2px;border-bottom:1px solid var(--sg-border, #d1d1d1);}.tab.svelte-1g381pa {padding:5px 12px;font:inherit;font-size:13px;color:var(--sg-muted, #616161);background:transparent;border:1px solid transparent;border-bottom:0;border-radius:var(--sg-radius, 3px) var(--sg-radius, 3px) 0 0;cursor:pointer;}.tab.svelte-1g381pa:hover {color:var(--sg-fg, #242424);}.tab.on.svelte-1g381pa {color:var(--sg-fg, #242424);background:var(--sg-bg, #fff);border-color:var(--sg-border, #d1d1d1);margin-bottom:-1px;}.panel.svelte-1g381pa {display:flex;flex-direction:column;gap:10px;min-height:220px;padding-top:4px;}.lead.svelte-1g381pa {font-weight:600;}.hint.svelte-1g381pa {margin:0;color:var(--sg-muted, #616161);}.field.message.svelte-1g381pa {align-items:start;}textarea.svelte-1g381pa {width:100%;box-sizing:border-box;padding:4px 6px;font:inherit;color:inherit;background:var(--sg-bg, #fff);border:1px solid var(--sg-border, #d1d1d1);border-radius:var(--sg-radius, 3px);resize:vertical;}textarea.svelte-1g381pa:focus {outline:none;border-color:var(--sg-accent, #217346);box-shadow:0 0 0 1px var(--sg-accent, #217346);}.spacer.svelte-1g381pa {flex:1;}"
|
|
37363
37449
|
};
|
|
37364
|
-
function
|
|
37365
|
-
M(t, !0), v(e,
|
|
37450
|
+
function mF(e, t) {
|
|
37451
|
+
M(t, !0), v(e, pF);
|
|
37366
37452
|
let n = V(t, "open", 15, !1), r = Cp(), i = D("settings"), a = [
|
|
37367
37453
|
{
|
|
37368
37454
|
id: "any",
|
|
@@ -37422,7 +37508,7 @@ function cF(e, t) {
|
|
|
37422
37508
|
}
|
|
37423
37509
|
{
|
|
37424
37510
|
let v = (e) => {
|
|
37425
|
-
var t =
|
|
37511
|
+
var t = QP(), n = N(t), i = N(n, !0);
|
|
37426
37512
|
B(n);
|
|
37427
37513
|
var a = H(n, 4), s = N(a, !0);
|
|
37428
37514
|
B(a);
|
|
@@ -37452,7 +37538,7 @@ function cF(e, t) {
|
|
|
37452
37538
|
},
|
|
37453
37539
|
footer: v,
|
|
37454
37540
|
children: (e, n) => {
|
|
37455
|
-
var v =
|
|
37541
|
+
var v = fF(), S = N(v), D = N(S, !0);
|
|
37456
37542
|
B(S);
|
|
37457
37543
|
var M = H(S, 2);
|
|
37458
37544
|
p(M, 20, () => [
|
|
@@ -37460,7 +37546,7 @@ function cF(e, t) {
|
|
|
37460
37546
|
"input",
|
|
37461
37547
|
"alert"
|
|
37462
37548
|
], (e) => e, (e, t) => {
|
|
37463
|
-
var n =
|
|
37549
|
+
var n = $P();
|
|
37464
37550
|
let a;
|
|
37465
37551
|
var s = N(n, !0);
|
|
37466
37552
|
B(n), C((e) => {
|
|
@@ -37468,13 +37554,13 @@ function cF(e, t) {
|
|
|
37468
37554
|
}, [() => r(`validation.tab.${t}`)]), y("click", n, () => L(i, t, !0)), c(e, n);
|
|
37469
37555
|
}), B(M);
|
|
37470
37556
|
var ne = H(M, 2), ae = N(ne), V = (e) => {
|
|
37471
|
-
var t =
|
|
37557
|
+
var t = lF(), n = Y(t), i = N(n, !0);
|
|
37472
37558
|
B(n);
|
|
37473
37559
|
var h = H(n, 2), _ = N(h), v = N(_, !0);
|
|
37474
37560
|
B(_);
|
|
37475
37561
|
var y = H(_, 2);
|
|
37476
37562
|
p(y, 21, () => a, (e) => e.id, (e, t) => {
|
|
37477
|
-
var n =
|
|
37563
|
+
var n = eF(), i = N(n, !0);
|
|
37478
37564
|
B(n);
|
|
37479
37565
|
var a = {};
|
|
37480
37566
|
C((e) => {
|
|
@@ -37482,11 +37568,11 @@ function cF(e, t) {
|
|
|
37482
37568
|
}, [() => r(o(t).label)]), c(e, n);
|
|
37483
37569
|
}), B(y), E(y, (e) => L(P, e), () => o(P)), B(h);
|
|
37484
37570
|
var x = H(h, 2), S = (e) => {
|
|
37485
|
-
var t =
|
|
37571
|
+
var t = nF(), n = N(t), i = N(n, !0);
|
|
37486
37572
|
B(n);
|
|
37487
37573
|
var a = H(n, 2);
|
|
37488
37574
|
p(a, 20, () => s, (e) => e, (e, t) => {
|
|
37489
|
-
var n =
|
|
37575
|
+
var n = tF(), i = N(n, !0);
|
|
37490
37576
|
B(n);
|
|
37491
37577
|
var a = {};
|
|
37492
37578
|
C((e) => {
|
|
@@ -37498,7 +37584,7 @@ function cF(e, t) {
|
|
|
37498
37584
|
o(F) && e(S);
|
|
37499
37585
|
});
|
|
37500
37586
|
var w = H(x, 2), T = (e) => {
|
|
37501
|
-
var t =
|
|
37587
|
+
var t = rF(), n = N(t), i = N(n, !0);
|
|
37502
37588
|
B(n);
|
|
37503
37589
|
var a = H(n, 2);
|
|
37504
37590
|
W(a), B(t), C((e) => {
|
|
@@ -37509,7 +37595,7 @@ function cF(e, t) {
|
|
|
37509
37595
|
o(l) !== "any" && e(T);
|
|
37510
37596
|
});
|
|
37511
37597
|
var D = H(w, 2), O = (e) => {
|
|
37512
|
-
var t =
|
|
37598
|
+
var t = iF(), n = N(t), r = N(n, !0);
|
|
37513
37599
|
B(n);
|
|
37514
37600
|
var i = H(n, 2);
|
|
37515
37601
|
W(i), B(t), C(() => m(r, o(I))), ie(i, () => o(f), (e) => L(f, e)), c(e, t);
|
|
@@ -37522,7 +37608,7 @@ function cF(e, t) {
|
|
|
37522
37608
|
var M = H(j);
|
|
37523
37609
|
B(A);
|
|
37524
37610
|
var ne = H(A, 2), re = (e) => {
|
|
37525
|
-
var t =
|
|
37611
|
+
var t = aF(), n = N(t);
|
|
37526
37612
|
W(n);
|
|
37527
37613
|
var i = H(n);
|
|
37528
37614
|
B(t), C((e) => m(i, ` ${e ?? ""}`), [() => r("validation.inCellDropdown")]), q(n, () => o(b), (e) => L(b, e)), c(e, t);
|
|
@@ -37531,13 +37617,13 @@ function cF(e, t) {
|
|
|
37531
37617
|
o(l) === "list" && e(re);
|
|
37532
37618
|
}), B(k);
|
|
37533
37619
|
var ae = H(k, 2), V = (e) => {
|
|
37534
|
-
var t =
|
|
37620
|
+
var t = oF(), n = N(t, !0);
|
|
37535
37621
|
B(t), C((e) => m(n, e), [() => r("validation.customHint")]), c(e, t);
|
|
37536
37622
|
}, U = (e) => {
|
|
37537
|
-
var t =
|
|
37623
|
+
var t = sF(), n = N(t, !0);
|
|
37538
37624
|
B(t), C((e) => m(n, e), [() => r("validation.listHint")]), c(e, t);
|
|
37539
37625
|
}, G = (e) => {
|
|
37540
|
-
var t =
|
|
37626
|
+
var t = cF(), n = N(t, !0);
|
|
37541
37627
|
B(t), C((e) => m(n, e), [() => r("validation.boundHint")]), c(e, t);
|
|
37542
37628
|
};
|
|
37543
37629
|
R(ae, (e) => {
|
|
@@ -37550,7 +37636,7 @@ function cF(e, t) {
|
|
|
37550
37636
|
() => r("validation.ignoreBlank")
|
|
37551
37637
|
]), de(y, () => o(l), (e) => L(l, e)), q(j, () => o(g), (e) => L(g, e)), c(e, t);
|
|
37552
37638
|
}, U = (e) => {
|
|
37553
|
-
var t =
|
|
37639
|
+
var t = uF(), n = Y(t), i = N(n);
|
|
37554
37640
|
W(i);
|
|
37555
37641
|
var a = H(i);
|
|
37556
37642
|
B(n);
|
|
@@ -37572,7 +37658,7 @@ function cF(e, t) {
|
|
|
37572
37658
|
() => r("validation.inputMessage")
|
|
37573
37659
|
]), q(i, () => o(k), (e) => L(k, e)), ie(p, () => o(A), (e) => L(A, e)), ie(y, () => o(j), (e) => L(j, e)), c(e, t);
|
|
37574
37660
|
}, G = (e) => {
|
|
37575
|
-
var t =
|
|
37661
|
+
var t = dF(), n = Y(t), i = N(n, !0);
|
|
37576
37662
|
B(n);
|
|
37577
37663
|
var a = H(n, 2), s = N(a), l = N(s, !0);
|
|
37578
37664
|
B(s);
|
|
@@ -37620,12 +37706,12 @@ function cF(e, t) {
|
|
|
37620
37706
|
s(["click"]);
|
|
37621
37707
|
//#endregion
|
|
37622
37708
|
//#region src/SvSheetValidationAlert.svelte
|
|
37623
|
-
var
|
|
37709
|
+
var hF = g("<button type=\"button\" class=\"btn primary\"> </button> <button type=\"button\" class=\"btn\"> </button>", 1), gF = g("<button type=\"button\" class=\"btn primary\"> </button>"), _F = g("<div class=\"sv-sheet-dialog-buttons\"><!> <button type=\"button\" class=\"btn\"> </button></div>"), vF = g("<p class=\"message svelte-rgyfuc\"> </p>"), yF = g("<div class=\"sv-sheet-dialog alert svelte-rgyfuc\" role=\"alertdialog\" aria-describedby=\"sv-sheet-validation-message\"><span aria-hidden=\"true\"> </span> <div><p id=\"sv-sheet-validation-message\" class=\"message svelte-rgyfuc\"> </p> <!></div></div>"), bF = {
|
|
37624
37710
|
hash: "svelte-rgyfuc",
|
|
37625
37711
|
code: ".alert.svelte-rgyfuc {flex-direction:row;align-items:flex-start;gap:14px;min-width:300px;max-width:420px;}.mark.svelte-rgyfuc {flex:0 0 auto;width:32px;height:32px;display:grid;place-items:center;font-size:20px;font-weight:700;line-height:1;color:var(--sg-on-accent, #fff);background:var(--sg-danger, #c42b1c);border-radius:50%;}.mark.warning.svelte-rgyfuc {color:#242424;background:var(--sg-warning, #f2c811);}.message.svelte-rgyfuc {margin:0 0 6px;white-space:pre-wrap;}"
|
|
37626
37712
|
};
|
|
37627
|
-
function
|
|
37628
|
-
M(t, !0), v(e,
|
|
37713
|
+
function xF(e, t) {
|
|
37714
|
+
M(t, !0), v(e, bF);
|
|
37629
37715
|
let n = V(t, "open", 15, !1), r = Cp(), i = D(null);
|
|
37630
37716
|
S(() => {
|
|
37631
37717
|
n() && queueMicrotask(() => o(i)?.focus());
|
|
@@ -37635,15 +37721,15 @@ function hF(e, t) {
|
|
|
37635
37721
|
}
|
|
37636
37722
|
{
|
|
37637
37723
|
let s = (e) => {
|
|
37638
|
-
var n =
|
|
37639
|
-
var n =
|
|
37724
|
+
var n = _F(), s = N(n), l = (e) => {
|
|
37725
|
+
var n = hF(), s = Y(n), l = N(s, !0);
|
|
37640
37726
|
B(s), E(s, (e) => L(i, e), () => o(i));
|
|
37641
37727
|
var u = H(s, 2), d = N(u, !0);
|
|
37642
37728
|
B(u), C((e, t) => {
|
|
37643
37729
|
m(l, e), m(d, t);
|
|
37644
37730
|
}, [() => r("yes"), () => r("no")]), y("click", s, () => a(t.onAccept)), y("click", u, () => a(t.onRetry)), c(e, n);
|
|
37645
37731
|
}, u = (e) => {
|
|
37646
|
-
var n =
|
|
37732
|
+
var n = gF(), s = N(n, !0);
|
|
37647
37733
|
B(n), E(n, (e) => L(i, e), () => o(i)), C((e) => m(s, e), [() => r("retry")]), y("click", n, () => a(t.onRetry)), c(e, n);
|
|
37648
37734
|
};
|
|
37649
37735
|
R(s, (e) => {
|
|
@@ -37668,14 +37754,14 @@ function hF(e, t) {
|
|
|
37668
37754
|
},
|
|
37669
37755
|
footer: s,
|
|
37670
37756
|
children: (e, n) => {
|
|
37671
|
-
var i =
|
|
37757
|
+
var i = yF(), a = N(i);
|
|
37672
37758
|
let o;
|
|
37673
37759
|
var s = N(a, !0);
|
|
37674
37760
|
B(a);
|
|
37675
37761
|
var l = H(a, 2), u = N(l), d = N(u, !0);
|
|
37676
37762
|
B(u);
|
|
37677
37763
|
var f = H(u, 2), p = (e) => {
|
|
37678
|
-
var t =
|
|
37764
|
+
var t = vF(), n = N(t, !0);
|
|
37679
37765
|
B(t), C((e) => m(n, e), [() => r("validationContinue")]), c(e, t);
|
|
37680
37766
|
};
|
|
37681
37767
|
R(f, (e) => {
|
|
@@ -37695,27 +37781,27 @@ function hF(e, t) {
|
|
|
37695
37781
|
s(["click"]);
|
|
37696
37782
|
//#endregion
|
|
37697
37783
|
//#region src/SvSheetConditionalFormat.svelte
|
|
37698
|
-
var
|
|
37784
|
+
var SF = g("<div class=\"sv-sheet-dialog-buttons\"><button type=\"button\" class=\"btn primary\"> </button> <button type=\"button\" class=\"btn\"> </button></div>"), CF = g("<input type=\"text\" spellcheck=\"false\" class=\"svelte-1jre45k\"/> <span> </span> <input type=\"text\" spellcheck=\"false\" class=\"svelte-1jre45k\"/>", 1), wF = g("<input type=\"text\" spellcheck=\"false\" class=\"svelte-1jre45k\"/>"), TF = g("<select class=\"svelte-1jre45k\"><option> </option><option> </option></select> <span> </span>", 1), EF = g("<input type=\"number\" min=\"1\" class=\"svelte-1jre45k\"/> <label class=\"check\"><input type=\"checkbox\"/> </label>", 1), DF = g("<option> </option>"), OF = g("<p class=\"hint\"> </p>"), kF = g("<form class=\"sv-sheet-dialog cf\"><div class=\"where svelte-1jre45k\"> </div> <div class=\"lead svelte-1jre45k\"> </div> <div class=\"row svelte-1jre45k\"><!> <span> </span> <select class=\"svelte-1jre45k\"></select></div> <!> <div class=\"sample svelte-1jre45k\">AaBbCcYyZz</div></form>"), AF = {
|
|
37699
37785
|
hash: "svelte-1jre45k",
|
|
37700
37786
|
code: ".where.svelte-1jre45k {color:var(--sg-muted, #616161);}.lead.svelte-1jre45k {font-weight:600;}.row.svelte-1jre45k {display:flex;flex-wrap:wrap;align-items:center;gap:8px;}.row.svelte-1jre45k input[type=\"text\"]:where(.svelte-1jre45k) {flex:1 1 110px;min-width:90px;}.row.svelte-1jre45k input[type=\"number\"]:where(.svelte-1jre45k) {width:64px;}.row.svelte-1jre45k select:where(.svelte-1jre45k) {max-width:240px;}.sample.svelte-1jre45k {width:120px;padding:4px 10px;border:1px solid var(--sg-border, #d1d1d1);border-radius:var(--sg-radius, 3px);text-align:center;}"
|
|
37701
37787
|
};
|
|
37702
|
-
function
|
|
37703
|
-
M(t, !0), v(e,
|
|
37704
|
-
let n = V(t, "open", 15, !1), r = V(t, "rule", 3, null), i = Cp(), a = D(""), s = D(""), l = D("10"), u = D(!1), d = D(!1), f = D(K(
|
|
37788
|
+
function jF(e, t) {
|
|
37789
|
+
M(t, !0), v(e, AF);
|
|
37790
|
+
let n = V(t, "open", 15, !1), r = V(t, "rule", 3, null), i = Cp(), a = D(""), s = D(""), l = D("10"), u = D(!1), d = D(!1), f = D(K(jj[0].id)), h = D(null);
|
|
37705
37791
|
S(() => {
|
|
37706
37792
|
if (!n()) return;
|
|
37707
|
-
L(a, ""), L(s, ""), L(l, "10"), L(u, !1), L(d, !1), L(f,
|
|
37793
|
+
L(a, ""), L(s, ""), L(l, "10"), L(u, !1), L(d, !1), L(f, jj[0].id, !0);
|
|
37708
37794
|
let e = r();
|
|
37709
37795
|
if (e) {
|
|
37710
37796
|
e.kind === "cellIs" ? (L(a, e.value1, !0), L(s, e.value2 ?? "", !0)) : e.kind === "text" ? L(a, e.value, !0) : e.kind === "duplicates" ? L(d, !!e.unique) : e.kind === "topBottom" ? (L(l, String(e.rank), !0), L(u, !!e.percent)) : e.kind === "formula" && L(a, e.formula, !0);
|
|
37711
|
-
let t =
|
|
37797
|
+
let t = jj.find((t) => JSON.stringify(t.style) === JSON.stringify(e.style));
|
|
37712
37798
|
t && L(f, t.id, !0);
|
|
37713
37799
|
}
|
|
37714
37800
|
queueMicrotask(() => o(h)?.focus());
|
|
37715
37801
|
});
|
|
37716
37802
|
let g = J(() => t.preset === "greater" || t.preset === "less" || t.preset === "between" || t.preset === "equal" || t.preset === "text" || t.preset === "formula"), _ = J(() => (!o(g) || o(a).trim() !== "") && (t.preset !== "between" || o(s).trim() !== "") && (t.preset !== "top10" && t.preset !== "bottom10" || Number.isInteger(Number(o(l))) && Number(o(l)) > 0));
|
|
37717
37803
|
function b() {
|
|
37718
|
-
let e =
|
|
37804
|
+
let e = jj.find((e) => e.id === o(f))?.style ?? jj[0].style;
|
|
37719
37805
|
switch (t.preset) {
|
|
37720
37806
|
case "greater": return {
|
|
37721
37807
|
kind: "cellIs",
|
|
@@ -37793,10 +37879,10 @@ function TF(e, t) {
|
|
|
37793
37879
|
function T() {
|
|
37794
37880
|
n(!1), t.onClose?.();
|
|
37795
37881
|
}
|
|
37796
|
-
let O = J(() =>
|
|
37882
|
+
let O = J(() => jj.find((e) => e.id === o(f))?.style ?? {});
|
|
37797
37883
|
{
|
|
37798
37884
|
let r = (e) => {
|
|
37799
|
-
var t =
|
|
37885
|
+
var t = SF(), n = N(t), r = N(n, !0);
|
|
37800
37886
|
B(n);
|
|
37801
37887
|
var a = H(n, 2), s = N(a, !0);
|
|
37802
37888
|
B(a), B(t), C((e, t) => {
|
|
@@ -37820,12 +37906,12 @@ function TF(e, t) {
|
|
|
37820
37906
|
},
|
|
37821
37907
|
footer: r,
|
|
37822
37908
|
children: (e, n) => {
|
|
37823
|
-
var r =
|
|
37909
|
+
var r = kF(), _ = N(r), v = N(_, !0);
|
|
37824
37910
|
B(_);
|
|
37825
37911
|
var y = H(_, 2), b = N(y, !0);
|
|
37826
37912
|
B(y);
|
|
37827
37913
|
var S = H(y, 2), T = N(S), D = (e) => {
|
|
37828
|
-
var t =
|
|
37914
|
+
var t = CF(), n = Y(t);
|
|
37829
37915
|
W(n), E(n, (e) => L(h, e), () => o(h));
|
|
37830
37916
|
var r = H(n, 2), l = N(r, !0);
|
|
37831
37917
|
B(r);
|
|
@@ -37838,12 +37924,12 @@ function TF(e, t) {
|
|
|
37838
37924
|
() => i("cf.upperValue")
|
|
37839
37925
|
]), ie(n, () => o(a), (e) => L(a, e)), ie(u, () => o(s), (e) => L(s, e)), c(e, t);
|
|
37840
37926
|
}, k = (e) => {
|
|
37841
|
-
var n =
|
|
37927
|
+
var n = wF();
|
|
37842
37928
|
W(n), E(n, (e) => L(h, e), () => o(h)), C((e, t) => {
|
|
37843
37929
|
z(n, "aria-label", e), z(n, "placeholder", t);
|
|
37844
37930
|
}, [() => i(t.preset === "formula" ? "cf.formula" : "cf.value"), () => t.preset === "text" ? i("cf.textPlaceholder") : t.preset === "formula" ? "=$B2>100" : i("cf.valuePlaceholder")]), ie(n, () => o(a), (e) => L(a, e)), c(e, n);
|
|
37845
37931
|
}, A = (e) => {
|
|
37846
|
-
var t =
|
|
37932
|
+
var t = TF(), n = Y(t), r = N(n), a = N(r, !0);
|
|
37847
37933
|
B(r), r.value = r.__value = !1;
|
|
37848
37934
|
var s = H(r), l = N(s, !0);
|
|
37849
37935
|
B(s), s.value = s.__value = !0, B(n), E(n, (e) => L(h, e), () => o(h));
|
|
@@ -37857,7 +37943,7 @@ function TF(e, t) {
|
|
|
37857
37943
|
() => i("cf.values")
|
|
37858
37944
|
]), de(n, () => o(d), (e) => L(d, e)), c(e, t);
|
|
37859
37945
|
}, j = (e) => {
|
|
37860
|
-
var t =
|
|
37946
|
+
var t = EF(), n = Y(t);
|
|
37861
37947
|
W(n), E(n, (e) => L(h, e), () => o(h));
|
|
37862
37948
|
var r = H(n, 2), a = N(r);
|
|
37863
37949
|
W(a);
|
|
@@ -37872,8 +37958,8 @@ function TF(e, t) {
|
|
|
37872
37958
|
var M = H(T, 2), P = N(M, !0);
|
|
37873
37959
|
B(M);
|
|
37874
37960
|
var F = H(M, 2);
|
|
37875
|
-
p(F, 21, () =>
|
|
37876
|
-
var n =
|
|
37961
|
+
p(F, 21, () => jj, (e) => e.id, (e, t) => {
|
|
37962
|
+
var n = DF(), r = N(n, !0);
|
|
37877
37963
|
B(n);
|
|
37878
37964
|
var a = {};
|
|
37879
37965
|
C((e) => {
|
|
@@ -37881,7 +37967,7 @@ function TF(e, t) {
|
|
|
37881
37967
|
}, [() => i(`cf.style.${o(t).id}`)]), c(e, n);
|
|
37882
37968
|
}), B(F), B(S);
|
|
37883
37969
|
var ee = H(S, 2), te = (e) => {
|
|
37884
|
-
var t =
|
|
37970
|
+
var t = OF(), n = N(t, !0);
|
|
37885
37971
|
B(t), C((e) => m(n, e), [() => i("cf.formulaHint")]), c(e, t);
|
|
37886
37972
|
};
|
|
37887
37973
|
R(ee, (e) => {
|
|
@@ -37913,12 +37999,12 @@ function TF(e, t) {
|
|
|
37913
37999
|
s(["click"]);
|
|
37914
38000
|
//#endregion
|
|
37915
38001
|
//#region src/SvSheetManageRules.svelte
|
|
37916
|
-
var
|
|
38002
|
+
var MF = g("<div class=\"sv-sheet-dialog-buttons\"><button type=\"button\" class=\"btn primary\"> </button> <button type=\"button\" class=\"btn\"> </button></div>"), NF = g("<div class=\"empty svelte-1du8gjp\"> </div>"), PF = g("<div role=\"row\"><span role=\"gridcell\" class=\"what\"> </span> <span role=\"gridcell\" class=\"sample svelte-1du8gjp\"> </span> <span role=\"gridcell\" class=\"where svelte-1du8gjp\"> </span> <span role=\"gridcell\" class=\"stop svelte-1du8gjp\"><input type=\"checkbox\"/></span></div>"), FF = g("<div class=\"sv-sheet-dialog manage\"><label class=\"field auto\"><span> </span> <select><option> </option><option> </option></select></label> <div class=\"toolbar svelte-1du8gjp\"><button type=\"button\" class=\"btn svelte-1du8gjp\"> </button> <button type=\"button\" class=\"btn svelte-1du8gjp\"> </button> <button type=\"button\" class=\"btn svelte-1du8gjp\">▲</button> <button type=\"button\" class=\"btn svelte-1du8gjp\">▼</button></div> <div class=\"list svelte-1du8gjp\" role=\"grid\"><div class=\"head svelte-1du8gjp\" role=\"row\"><span role=\"columnheader\"> </span> <span role=\"columnheader\"> </span> <span role=\"columnheader\"> </span> <span role=\"columnheader\"> </span></div> <!> <!></div></div>"), IF = {
|
|
37917
38003
|
hash: "svelte-1du8gjp",
|
|
37918
38004
|
code: ".toolbar.svelte-1du8gjp {display:flex;gap:6px;}.toolbar.svelte-1du8gjp .btn:where(.svelte-1du8gjp) {height:26px;padding:0 10px;font:inherit;color:inherit;background:var(--sg-bg, #fff);border:1px solid var(--sg-border, #d1d1d1);border-radius:var(--sg-radius, 3px);cursor:pointer;}.toolbar.svelte-1du8gjp .btn:where(.svelte-1du8gjp):hover:not(:disabled) {background:var(--sg-row-hover-bg, #f5f5f5);}.toolbar.svelte-1du8gjp .btn:where(.svelte-1du8gjp):disabled {opacity:0.5;cursor:default;}.list.svelte-1du8gjp {border:1px solid var(--sg-border, #d1d1d1);border-radius:var(--sg-radius, 3px);max-height:260px;overflow-y:auto;}.head.svelte-1du8gjp, .rule.svelte-1du8gjp {display:grid;grid-template-columns:1fr 120px 130px 84px;align-items:center;gap:8px;padding:4px 8px;}.head.svelte-1du8gjp {font-weight:600;color:var(--sg-muted, #616161);background:var(--sg-bg-subtle, #f3f3f3);border-bottom:1px solid var(--sg-border, #d1d1d1);}.rule.svelte-1du8gjp {cursor:default;}.rule.on.svelte-1du8gjp {background:var(--sg-selection-bg, rgba(16, 124, 65, 0.12));}.rule.svelte-1du8gjp .sample:where(.svelte-1du8gjp) {padding:2px 6px;border:1px solid var(--sg-border, #d1d1d1);text-align:center;min-height:20px;}.rule.svelte-1du8gjp .where:where(.svelte-1du8gjp) {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.rule.svelte-1du8gjp .stop:where(.svelte-1du8gjp) {text-align:center;}.empty.svelte-1du8gjp {padding:10px;color:var(--sg-muted, #616161);}"
|
|
37919
38005
|
};
|
|
37920
|
-
function
|
|
37921
|
-
M(t, !0), v(e,
|
|
38006
|
+
function LF(e, t) {
|
|
38007
|
+
M(t, !0), v(e, IF);
|
|
37922
38008
|
let n = V(t, "open", 15, !1), r = Cp(), i = D(K([])), a = D("sheet"), s = D(null);
|
|
37923
38009
|
S(() => {
|
|
37924
38010
|
if (!n()) return;
|
|
@@ -37928,10 +38014,10 @@ function jF(e, t) {
|
|
|
37928
38014
|
}));
|
|
37929
38015
|
L(i, e, !0), L(a, "sheet"), L(s, e[0]?.id ?? null, !0);
|
|
37930
38016
|
});
|
|
37931
|
-
let l = J(() => o(a) === "sheet" ? o(i) :
|
|
38017
|
+
let l = J(() => o(a) === "sheet" ? o(i) : Xj(o(i), t.selection)), u = J(() => o(i).find((e) => e.id === o(s)) ?? null), d = J(() => o(u) ? o(i).indexOf(o(u)) : -1), f = (e) => e.map(([e, t, n, r]) => {
|
|
37932
38018
|
let i = `${Z(t)}${e + 1}`, a = `${Z(r)}${n + 1}`;
|
|
37933
38019
|
return i === a ? i : `${i}:${a}`;
|
|
37934
|
-
}).join(", "), h = (e) =>
|
|
38020
|
+
}).join(", "), h = (e) => eM(e) ? {
|
|
37935
38021
|
background: e.style.fill,
|
|
37936
38022
|
color: e.style.color,
|
|
37937
38023
|
text: "AaBbCcYyZz"
|
|
@@ -37960,7 +38046,7 @@ function jF(e, t) {
|
|
|
37960
38046
|
}
|
|
37961
38047
|
function w() {
|
|
37962
38048
|
let e = o(u);
|
|
37963
|
-
!e || !
|
|
38049
|
+
!e || !eM(e) || t.onEdit(e, (t) => {
|
|
37964
38050
|
L(i, o(i).map((n) => n.id === e.id ? t : n), !0);
|
|
37965
38051
|
});
|
|
37966
38052
|
}
|
|
@@ -37972,7 +38058,7 @@ function jF(e, t) {
|
|
|
37972
38058
|
}
|
|
37973
38059
|
{
|
|
37974
38060
|
let v = (e) => {
|
|
37975
|
-
var t =
|
|
38061
|
+
var t = MF(), n = N(t), i = N(n, !0);
|
|
37976
38062
|
B(n);
|
|
37977
38063
|
var a = H(n, 2), o = N(a, !0);
|
|
37978
38064
|
B(a), B(t), C((e, t) => {
|
|
@@ -37996,7 +38082,7 @@ function jF(e, t) {
|
|
|
37996
38082
|
},
|
|
37997
38083
|
footer: v,
|
|
37998
38084
|
children: (e, t) => {
|
|
37999
|
-
var n =
|
|
38085
|
+
var n = FF(), v = N(n), S = N(v), T = N(S, !0);
|
|
38000
38086
|
B(S);
|
|
38001
38087
|
var E = H(S, 2), D = N(E), O = N(D, !0);
|
|
38002
38088
|
B(D), D.value = D.__value = "sheet";
|
|
@@ -38017,7 +38103,7 @@ function jF(e, t) {
|
|
|
38017
38103
|
var K = H(oe, 2), q = N(K, !0);
|
|
38018
38104
|
B(K), B(ie);
|
|
38019
38105
|
var ce = H(ie, 2), Y = (e) => {
|
|
38020
|
-
var t =
|
|
38106
|
+
var t = NF(), n = N(t, !0);
|
|
38021
38107
|
B(t), C((e) => m(n, e), [() => r(o(a) === "sheet" ? "manageRules.noneOnSheet" : "manageRules.noneInSelection")]), c(e, t);
|
|
38022
38108
|
};
|
|
38023
38109
|
R(ce, (e) => {
|
|
@@ -38026,7 +38112,7 @@ function jF(e, t) {
|
|
|
38026
38112
|
var le = H(ce, 2);
|
|
38027
38113
|
p(le, 17, () => o(l), (e) => e.id, (e, t) => {
|
|
38028
38114
|
let n = J(() => h(o(t)));
|
|
38029
|
-
var i =
|
|
38115
|
+
var i = PF();
|
|
38030
38116
|
let a;
|
|
38031
38117
|
var l = N(i), u = N(l, !0);
|
|
38032
38118
|
B(l);
|
|
@@ -38043,7 +38129,7 @@ function jF(e, t) {
|
|
|
38043
38129
|
color: o(n).color ?? "inherit"
|
|
38044
38130
|
}), m(g, o(n).text), m(b, r), te(w, !!o(t).stopIfTrue), z(w, "aria-label", c);
|
|
38045
38131
|
}, [
|
|
38046
|
-
() =>
|
|
38132
|
+
() => $j(o(t)),
|
|
38047
38133
|
() => f(o(t).rects),
|
|
38048
38134
|
() => r("manageRules.stopIfTrue")
|
|
38049
38135
|
]), y("click", i, () => L(s, o(t).id, !0)), y("change", w, () => x(o(t))), y("click", w, (e) => e.stopPropagation()), c(e, i);
|
|
@@ -38053,7 +38139,7 @@ function jF(e, t) {
|
|
|
38053
38139
|
() => r("manageRules.showFor"),
|
|
38054
38140
|
() => r("manageRules.thisSheet"),
|
|
38055
38141
|
() => r("manageRules.selection"),
|
|
38056
|
-
() => !o(u) || !
|
|
38142
|
+
() => !o(u) || !eM(o(u)),
|
|
38057
38143
|
() => r("manageRules.editRule"),
|
|
38058
38144
|
() => r("manageRules.deleteRule"),
|
|
38059
38145
|
() => r("manageRules.moveUp"),
|
|
@@ -38078,12 +38164,12 @@ function jF(e, t) {
|
|
|
38078
38164
|
s(["click", "change"]);
|
|
38079
38165
|
//#endregion
|
|
38080
38166
|
//#region src/SvSheetFilterMenu.svelte
|
|
38081
|
-
var
|
|
38167
|
+
var RF = g("<button type=\"button\"><!></button>"), zF = g("<details class=\"conditions colours svelte-1hgn9n4\"><summary class=\"svelte-1hgn9n4\"> </summary> <div class=\"swatches svelte-1hgn9n4\" role=\"group\"></div></details>"), BF = g("<option> </option>"), VF = g("<input type=\"date\" class=\"svelte-1hgn9n4\"/>"), HF = g("<span> </span><input type=\"date\" class=\"svelte-1hgn9n4\"/>", 1), UF = g("<details class=\"conditions svelte-1hgn9n4\"><summary class=\"svelte-1hgn9n4\"> </summary> <div class=\"condition svelte-1hgn9n4\"><select class=\"svelte-1hgn9n4\"></select> <!> <!></div></details>"), WF = g("<option> </option>"), GF = g("<input type=\"text\" class=\"svelte-1hgn9n4\"/>"), KF = g("<span> </span><input type=\"text\" class=\"svelte-1hgn9n4\"/>", 1), qF = g("<option> </option>"), JF = g("<input type=\"text\" class=\"svelte-1hgn9n4\"/>"), YF = g("<span> </span><input type=\"text\" class=\"svelte-1hgn9n4\"/>", 1), XF = g("<details class=\"conditions svelte-1hgn9n4\"><summary class=\"svelte-1hgn9n4\"> </summary> <div class=\"condition top svelte-1hgn9n4\"><select class=\"svelte-1hgn9n4\"><option> </option><option> </option></select> <input type=\"number\" min=\"1\" class=\"svelte-1hgn9n4\"/> <select class=\"svelte-1hgn9n4\"><option> </option><option> </option></select></div></details>"), ZF = g("<label class=\"check svelte-1hgn9n4\"><input type=\"checkbox\"/> <span class=\"text svelte-1hgn9n4\"> </span> <span class=\"count svelte-1hgn9n4\"> </span></label>"), QF = g("<div class=\"none svelte-1hgn9n4\"> </div>"), $F = g("<div class=\"sv-sheet-filter-menu svelte-1hgn9n4\" role=\"dialog\" tabindex=\"-1\"><button type=\"button\" class=\"row svelte-1hgn9n4\"> </button> <button type=\"button\" class=\"row svelte-1hgn9n4\"> </button> <hr class=\"svelte-1hgn9n4\"/> <button type=\"button\" class=\"row svelte-1hgn9n4\"> </button> <!> <!> <details class=\"conditions svelte-1hgn9n4\"><summary class=\"svelte-1hgn9n4\"> </summary> <div class=\"condition svelte-1hgn9n4\"><select class=\"svelte-1hgn9n4\"></select> <!> <!></div> <div class=\"join svelte-1hgn9n4\"><label class=\"check svelte-1hgn9n4\"><input type=\"radio\" name=\"sv-sheet-filter-join\"/> </label> <label class=\"check svelte-1hgn9n4\"><input type=\"radio\" name=\"sv-sheet-filter-join\"/> </label></div> <div class=\"condition svelte-1hgn9n4\"><select class=\"svelte-1hgn9n4\"><option> </option><!></select> <!> <!></div></details> <!> <hr class=\"svelte-1hgn9n4\"/> <input type=\"search\" class=\"search svelte-1hgn9n4\"/> <div class=\"values svelte-1hgn9n4\" role=\"group\"><label class=\"check all svelte-1hgn9n4\"><input type=\"checkbox\"/> </label> <!> <!></div> <div class=\"sv-sheet-dialog-buttons\"><button type=\"button\" class=\"btn primary\"> </button> <button type=\"button\" class=\"btn\"> </button></div></div>"), eI = {
|
|
38082
38168
|
hash: "svelte-1hgn9n4",
|
|
38083
38169
|
code: ".sv-sheet-filter-menu.svelte-1hgn9n4 {display:flex;flex-direction:column;gap:4px;width:260px;padding:6px;font-size:12px;color:var(--sg-fg, #242424);}hr.svelte-1hgn9n4 {width:100%;margin:2px 0;border:0;border-top:1px solid var(--sg-border, #d1d1d1);}.row.svelte-1hgn9n4 {padding:5px 8px;font:inherit;text-align:left;color:inherit;background:transparent;border:0;border-radius:3px;cursor:pointer;}.row.svelte-1hgn9n4:hover:not(:disabled) {background:var(--sg-row-hover-bg, #f0f0f0);}.row.svelte-1hgn9n4:disabled {opacity:0.5;cursor:default;}.conditions.svelte-1hgn9n4 summary:where(.svelte-1hgn9n4) {padding:5px 8px;cursor:pointer;border-radius:3px;}.conditions.svelte-1hgn9n4 summary:where(.svelte-1hgn9n4):hover {background:var(--sg-row-hover-bg, #f0f0f0);}.condition.svelte-1hgn9n4, .join.svelte-1hgn9n4 {display:flex;align-items:center;gap:6px;padding:3px 8px;}.condition.svelte-1hgn9n4 select:where(.svelte-1hgn9n4) {flex:0 0 120px;}.condition.svelte-1hgn9n4 input:where(.svelte-1hgn9n4) {flex:1 1 60px;min-width:40px;}.condition.top.svelte-1hgn9n4 select:where(.svelte-1hgn9n4) {flex:0 0 80px;}.condition.top.svelte-1hgn9n4 input:where(.svelte-1hgn9n4) {flex:0 0 56px;}.swatches.svelte-1hgn9n4 {display:flex;flex-wrap:wrap;gap:6px;padding:4px 8px;}.swatch.svelte-1hgn9n4 {width:22px;height:22px;padding:0;font:inherit;font-size:10px;color:inherit;border:1px solid var(--sg-border, #d1d1d1);border-radius:3px;cursor:pointer;}.swatch.none.svelte-1hgn9n4 {width:auto;padding:0 6px;background:var(--sg-bg, #fff);}.swatch.on.svelte-1hgn9n4 {outline:2px solid var(--sg-accent, #217346);outline-offset:1px;}select.svelte-1hgn9n4, input[type=\"text\"].svelte-1hgn9n4, .search.svelte-1hgn9n4 {height:24px;padding:0 6px;font:inherit;color:inherit;background:var(--sg-bg, #fff);border:1px solid var(--sg-border, #d1d1d1);border-radius:3px;}.search.svelte-1hgn9n4 {width:100%;box-sizing:border-box;}.values.svelte-1hgn9n4 {max-height:180px;overflow-y:auto;padding:2px 4px;border:1px solid var(--sg-border, #d1d1d1);border-radius:3px;}.check.svelte-1hgn9n4 {display:flex;align-items:center;gap:6px;padding:2px 4px;cursor:default;}.check.all.svelte-1hgn9n4 {font-weight:600;}.check.svelte-1hgn9n4 .text:where(.svelte-1hgn9n4) {flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.check.svelte-1hgn9n4 .count:where(.svelte-1hgn9n4) {color:var(--sg-muted, #616161);}.none.svelte-1hgn9n4 {padding:4px;color:var(--sg-muted, #616161);}"
|
|
38084
38170
|
};
|
|
38085
|
-
function
|
|
38086
|
-
M(t, !0), v(e,
|
|
38171
|
+
function tI(e, t) {
|
|
38172
|
+
M(t, !0), v(e, eI);
|
|
38087
38173
|
let n = [], r = V(t, "dates", 3, !1), i = V(t, "fills", 19, () => []), a = Cp(), s = [
|
|
38088
38174
|
"equals",
|
|
38089
38175
|
"before",
|
|
@@ -38190,18 +38276,18 @@ function YF(e, t) {
|
|
|
38190
38276
|
function ye(e) {
|
|
38191
38277
|
e.key === "Enter" && !(e.target instanceof HTMLButtonElement) && (e.preventDefault(), ve());
|
|
38192
38278
|
}
|
|
38193
|
-
var be =
|
|
38279
|
+
var be = $F(), xe = N(be), Se = N(xe, !0);
|
|
38194
38280
|
B(xe);
|
|
38195
38281
|
var Ce = H(xe, 2), we = N(Ce, !0);
|
|
38196
38282
|
B(Ce);
|
|
38197
38283
|
var Te = H(Ce, 4), Ee = N(Te, !0);
|
|
38198
38284
|
B(Te);
|
|
38199
38285
|
var De = H(Te, 2), Oe = (e) => {
|
|
38200
|
-
var n =
|
|
38286
|
+
var n = zF(), r = N(n), s = N(r, !0);
|
|
38201
38287
|
B(r);
|
|
38202
38288
|
var l = H(r, 2);
|
|
38203
38289
|
p(l, 21, i, (e) => e ?? "", (e, n) => {
|
|
38204
|
-
var r =
|
|
38290
|
+
var r = RF();
|
|
38205
38291
|
let i, s;
|
|
38206
38292
|
var l = N(r), u = (e) => {
|
|
38207
38293
|
var t = b();
|
|
@@ -38226,11 +38312,11 @@ function YF(e, t) {
|
|
|
38226
38312
|
i().length > 1 && e(Oe);
|
|
38227
38313
|
});
|
|
38228
38314
|
var ke = H(De, 2), Ae = (e) => {
|
|
38229
|
-
var t =
|
|
38315
|
+
var t = UF(), n = N(t), r = N(n, !0);
|
|
38230
38316
|
B(n);
|
|
38231
38317
|
var i = H(n, 2), u = N(i);
|
|
38232
38318
|
p(u, 20, () => s, (e) => e, (e, t) => {
|
|
38233
|
-
var n =
|
|
38319
|
+
var n = BF(), r = N(n, !0);
|
|
38234
38320
|
B(n);
|
|
38235
38321
|
var i = {};
|
|
38236
38322
|
C((e) => {
|
|
@@ -38238,14 +38324,14 @@ function YF(e, t) {
|
|
|
38238
38324
|
}, [() => a(`filter.period.${t}`)]), c(e, n);
|
|
38239
38325
|
}), B(u);
|
|
38240
38326
|
var d = H(u, 2), f = (e) => {
|
|
38241
|
-
var t =
|
|
38327
|
+
var t = VF();
|
|
38242
38328
|
W(t), C((e) => z(t, "aria-label", e), [() => a("filter.date")]), y("input", t, () => L(w, "date")), ie(t, () => o(O), (e) => L(O, e)), c(e, t);
|
|
38243
38329
|
}, h = J(() => l(o(T)));
|
|
38244
38330
|
R(d, (e) => {
|
|
38245
38331
|
o(h) && e(f);
|
|
38246
38332
|
});
|
|
38247
38333
|
var g = H(d, 2), _ = (e) => {
|
|
38248
|
-
var t =
|
|
38334
|
+
var t = HF(), n = Y(t), r = N(n, !0);
|
|
38249
38335
|
B(n);
|
|
38250
38336
|
var i = H(n);
|
|
38251
38337
|
W(i), C((e, t) => {
|
|
@@ -38267,7 +38353,7 @@ function YF(e, t) {
|
|
|
38267
38353
|
B(Me);
|
|
38268
38354
|
var Pe = H(Me, 2), Fe = N(Pe);
|
|
38269
38355
|
p(Fe, 20, () => o(f), (e) => e, (e, t) => {
|
|
38270
|
-
var n =
|
|
38356
|
+
var n = WF(), r = N(n, !0);
|
|
38271
38357
|
B(n);
|
|
38272
38358
|
var i = {};
|
|
38273
38359
|
C((e) => {
|
|
@@ -38275,14 +38361,14 @@ function YF(e, t) {
|
|
|
38275
38361
|
}, [() => a(`filter.op.${t}`)]), c(e, n);
|
|
38276
38362
|
}), B(Fe);
|
|
38277
38363
|
var Ie = H(Fe, 2), Le = (e) => {
|
|
38278
|
-
var t =
|
|
38364
|
+
var t = GF();
|
|
38279
38365
|
W(t), C((e) => z(t, "aria-label", e), [() => a("filter.firstValue")]), y("input", t, () => L(w, "condition")), ie(t, () => o(I), (e) => L(I, e)), c(e, t);
|
|
38280
38366
|
}, Re = J(() => me(o(ee)));
|
|
38281
38367
|
R(Ie, (e) => {
|
|
38282
38368
|
o(Re) && e(Le);
|
|
38283
38369
|
});
|
|
38284
38370
|
var ze = H(Ie, 2), Be = (e) => {
|
|
38285
|
-
var t =
|
|
38371
|
+
var t = KF(), n = Y(t), r = N(n, !0);
|
|
38286
38372
|
B(n);
|
|
38287
38373
|
var i = H(n);
|
|
38288
38374
|
W(i), C((e, t) => {
|
|
@@ -38304,7 +38390,7 @@ function YF(e, t) {
|
|
|
38304
38390
|
B(Xe), Xe.value = Xe.__value = "";
|
|
38305
38391
|
var Qe = H(Xe);
|
|
38306
38392
|
p(Qe, 16, () => o(f), (e) => e, (e, t) => {
|
|
38307
|
-
var n =
|
|
38393
|
+
var n = qF(), r = N(n, !0);
|
|
38308
38394
|
B(n);
|
|
38309
38395
|
var i = {};
|
|
38310
38396
|
C((e) => {
|
|
@@ -38312,14 +38398,14 @@ function YF(e, t) {
|
|
|
38312
38398
|
}, [() => a(`filter.op.${t}`)]), c(e, n);
|
|
38313
38399
|
}), B(Ye);
|
|
38314
38400
|
var $e = H(Ye, 2), et = (e) => {
|
|
38315
|
-
var t =
|
|
38401
|
+
var t = JF();
|
|
38316
38402
|
W(t), C((e) => z(t, "aria-label", e), [() => a("filter.secondValue")]), ie(t, () => o(U), (e) => L(U, e)), c(e, t);
|
|
38317
38403
|
}, tt = J(() => me(o(ae)));
|
|
38318
38404
|
R($e, (e) => {
|
|
38319
38405
|
o(tt) && e(et);
|
|
38320
38406
|
});
|
|
38321
38407
|
var nt = H($e, 2), rt = (e) => {
|
|
38322
|
-
var t =
|
|
38408
|
+
var t = YF(), n = Y(t), r = N(n, !0);
|
|
38323
38409
|
B(n);
|
|
38324
38410
|
var i = H(n);
|
|
38325
38411
|
W(i), C((e, t) => {
|
|
@@ -38330,7 +38416,7 @@ function YF(e, t) {
|
|
|
38330
38416
|
o(ae) === "between" && e(rt);
|
|
38331
38417
|
}), B(Je), B(je);
|
|
38332
38418
|
var X = H(je, 2), it = (e) => {
|
|
38333
|
-
var t =
|
|
38419
|
+
var t = XF(), n = N(t), r = N(n, !0);
|
|
38334
38420
|
B(n);
|
|
38335
38421
|
var i = H(n, 2), s = N(i), l = N(s), u = N(l, !0);
|
|
38336
38422
|
B(l), l.value = l.__value = "top";
|
|
@@ -38367,7 +38453,7 @@ function YF(e, t) {
|
|
|
38367
38453
|
B(st);
|
|
38368
38454
|
var ut = H(st, 2);
|
|
38369
38455
|
p(ut, 17, () => o(se), (e) => e.text, (e, t) => {
|
|
38370
|
-
var n =
|
|
38456
|
+
var n = ZF(), r = N(n);
|
|
38371
38457
|
W(r);
|
|
38372
38458
|
var i = H(r, 2), s = N(i, !0);
|
|
38373
38459
|
B(i);
|
|
@@ -38377,7 +38463,7 @@ function YF(e, t) {
|
|
|
38377
38463
|
}, [() => o(g).has(o(t).text), () => o(t).text === "" ? a("filter.blanks") : o(t).text]), y("change", r, () => le(o(t).text)), c(e, n);
|
|
38378
38464
|
});
|
|
38379
38465
|
var dt = H(ut, 2), ft = (e) => {
|
|
38380
|
-
var t =
|
|
38466
|
+
var t = QF(), n = N(t, !0);
|
|
38381
38467
|
B(t), C((e) => m(n, e), [() => a("filter.noMatches")]), c(e, t);
|
|
38382
38468
|
};
|
|
38383
38469
|
R(dt, (e) => {
|
|
@@ -38420,43 +38506,43 @@ s([
|
|
|
38420
38506
|
]);
|
|
38421
38507
|
//#endregion
|
|
38422
38508
|
//#region src/SvSheet.svelte
|
|
38423
|
-
var
|
|
38509
|
+
var nI = (e, t = I, n = I) => {
|
|
38424
38510
|
let r = J(() => [
|
|
38425
38511
|
"#3c9b3a",
|
|
38426
38512
|
"#e0b000",
|
|
38427
38513
|
"#d03a2c"
|
|
38428
38514
|
][n()]);
|
|
38429
|
-
var i =
|
|
38515
|
+
var i = kI(), a = N(i), s = (e) => {
|
|
38430
38516
|
var t = u(), i = Y(t), a = (e) => {
|
|
38431
|
-
var t =
|
|
38517
|
+
var t = xI();
|
|
38432
38518
|
C(() => z(t, "stroke", o(r))), c(e, t);
|
|
38433
38519
|
}, s = (e) => {
|
|
38434
|
-
var t =
|
|
38520
|
+
var t = SI();
|
|
38435
38521
|
C(() => z(t, "stroke", o(r))), c(e, t);
|
|
38436
38522
|
}, l = (e) => {
|
|
38437
|
-
var t =
|
|
38523
|
+
var t = CI();
|
|
38438
38524
|
C(() => z(t, "stroke", o(r))), c(e, t);
|
|
38439
38525
|
};
|
|
38440
38526
|
R(i, (e) => {
|
|
38441
38527
|
n() === 0 ? e(a) : n() === 1 ? e(s, 1) : e(l, -1);
|
|
38442
38528
|
}), c(e, t);
|
|
38443
38529
|
}, l = (e) => {
|
|
38444
|
-
var t =
|
|
38530
|
+
var t = wI();
|
|
38445
38531
|
C(() => z(t, "fill", o(r))), c(e, t);
|
|
38446
38532
|
}, d = (e) => {
|
|
38447
|
-
var t =
|
|
38533
|
+
var t = TI();
|
|
38448
38534
|
C(() => {
|
|
38449
38535
|
z(t, "fill", o(r)), z(t, "stroke", o(r));
|
|
38450
38536
|
}), c(e, t);
|
|
38451
38537
|
}, f = (e) => {
|
|
38452
38538
|
var t = u(), i = Y(t), a = (e) => {
|
|
38453
|
-
var t =
|
|
38539
|
+
var t = EI(), n = Y(t);
|
|
38454
38540
|
G(), C(() => z(n, "fill", o(r))), c(e, t);
|
|
38455
38541
|
}, s = (e) => {
|
|
38456
|
-
var t =
|
|
38542
|
+
var t = DI(), n = Y(t);
|
|
38457
38543
|
G(), C(() => z(n, "fill", o(r))), c(e, t);
|
|
38458
38544
|
}, l = (e) => {
|
|
38459
|
-
var t =
|
|
38545
|
+
var t = OI(), n = Y(t);
|
|
38460
38546
|
G(), C(() => z(n, "fill", o(r))), c(e, t);
|
|
38461
38547
|
};
|
|
38462
38548
|
R(i, (e) => {
|
|
@@ -38466,22 +38552,22 @@ var XF = (e, t = I, n = I) => {
|
|
|
38466
38552
|
R(a, (e) => {
|
|
38467
38553
|
t() === "arrows" ? e(s) : t() === "traffic" ? e(l, 1) : t() === "flags" ? e(d, 2) : e(f, -1);
|
|
38468
38554
|
}), B(i), c(e, i);
|
|
38469
|
-
},
|
|
38470
|
-
var t =
|
|
38555
|
+
}, rI = (e) => {
|
|
38556
|
+
var t = AI();
|
|
38471
38557
|
c(e, t);
|
|
38472
|
-
},
|
|
38558
|
+
}, iI = g("<span class=\"sheet-databar-axis svelte-1qw5b1f\"></span>"), aI = g("<span class=\"sheet-databar svelte-1qw5b1f\"></span> <!>", 1), oI = g("<span class=\"sheet-sparkline svelte-1qw5b1f\" aria-hidden=\"true\"><!></span>"), sI = g("<span aria-hidden=\"true\"></span>"), cI = g("<span aria-hidden=\"true\"></span>"), lI = g("<span aria-hidden=\"true\"></span>"), uI = g("<img class=\"sheet-cell-image svelte-1qw5b1f\" draggable=\"false\"/>"), dI = he("<svg viewBox=\"0 0 10 10\" width=\"10\" height=\"10\" aria-hidden=\"true\"><path d=\"M1 1.5h8L6 5.5v3L4 9.5v-4z\" fill=\"currentColor\"></path></svg>"), fI = he("<svg viewBox=\"0 0 10 10\" width=\"10\" height=\"10\" aria-hidden=\"true\"><path d=\"M2 3.5l3 3 3-3\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></svg>"), pI = g("<button type=\"button\"><!></button>"), mI = g("<span class=\"sheet-invalid-circle svelte-1qw5b1f\" role=\"img\"></span>"), hI = g("<button type=\"button\" class=\"sheet-dropdown-arrow svelte-1qw5b1f\"><svg viewBox=\"0 0 10 10\" width=\"10\" height=\"10\" aria-hidden=\"true\"><path d=\"M2 3.5l3 3 3-3\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path></svg></button>"), gI = g("<span class=\"sheet-cell-control checkbox svelte-1qw5b1f\"><input type=\"checkbox\" class=\"svelte-1qw5b1f\"/></span>"), _I = g("<button type=\"button\" class=\"sheet-cell-control button svelte-1qw5b1f\"> </button>"), vI = g("<label class=\"svelte-1qw5b1f\"><input type=\"radio\" class=\"svelte-1qw5b1f\"/> </label>"), yI = g("<span class=\"sheet-cell-control radio svelte-1qw5b1f\" role=\"radiogroup\"></span>"), bI = g("<!> <!> <!> <!> <!> <span><!> </span> <!> <!> <!> <!> <!>", 1), xI = he("<path d=\"M6 10.5V2M2.5 5.5L6 2l3.5 3.5\" fill=\"none\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>"), SI = he("<path d=\"M1.5 6h9M7 2.5L10.5 6 7 9.5\" fill=\"none\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>"), CI = he("<path d=\"M6 1.5V10M2.5 6.5L6 10l3.5-3.5\" fill=\"none\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>"), wI = he("<circle cx=\"6\" cy=\"6\" r=\"4.5\"></circle>"), TI = he("<path d=\"M2.5 11V1.5h6.5L7.5 4l1.5 2.5H2.5\" stroke-width=\"1\" stroke-linejoin=\"round\"></path>"), EI = he("<circle cx=\"6\" cy=\"6\" r=\"5\"></circle><path d=\"M3.5 6.2l1.8 1.8L8.6 4.5\" fill=\"none\" stroke=\"#fff\" stroke-width=\"1.6\" stroke-linecap=\"round\" stroke-linejoin=\"round\"></path>", 1), DI = he("<path d=\"M6 1l5.2 9.5H.8z\"></path><path d=\"M6 4.5v3M6 9.2v.1\" fill=\"none\" stroke=\"#fff\" stroke-width=\"1.5\" stroke-linecap=\"round\"></path>", 1), OI = he("<circle cx=\"6\" cy=\"6\" r=\"5\"></circle><path d=\"M4 4l4 4M8 4l-4 4\" fill=\"none\" stroke=\"#fff\" stroke-width=\"1.6\" stroke-linecap=\"round\"></path>", 1), kI = he("<svg class=\"sheet-cf-icon svelte-1qw5b1f\" viewBox=\"0 0 12 12\" width=\"12\" height=\"12\" aria-hidden=\"true\"><!></svg>"), AI = g("<span class=\"corner svelte-1qw5b1f\" aria-hidden=\"true\"></span>"), jI = g("<span class=\"none svelte-1qw5b1f\"> </span>"), MI = g("<span class=\"author svelte-1qw5b1f\"> </span>"), NI = g("<button type=\"button\" class=\"entry svelte-1qw5b1f\"><span class=\"addr svelte-1qw5b1f\"> </span> <!> <span> </span></button>"), PI = g("<div class=\"sheet-comments svelte-1qw5b1f\"><!></div>"), FI = g("<div aria-hidden=\"true\"></div>"), II = g("<div class=\"sheet-resize-tip svelte-1qw5b1f\" role=\"status\"> </div>"), LI = g("<button type=\"button\" class=\"sheet-outline-level svelte-1qw5b1f\"> </button>"), RI = g("<div class=\"sheet-outline-levels svelte-1qw5b1f\" role=\"group\"></div>"), zI = g("<span class=\"sheet-outline-line svelte-1qw5b1f\" aria-hidden=\"true\"></span>"), BI = g("<!> <button type=\"button\"> </button>", 1), VI = g("<div class=\"sheet-outline-bar svelte-1qw5b1f\"><!> <!></div>"), HI = he("<circle r=\"3\" fill=\"#1d4ed8\"></circle><line class=\"sheet-trace-arrow\" stroke=\"#1d4ed8\" stroke-width=\"1.5\" marker-end=\"url(#sheet-trace-head)\"></line>", 1), UI = he("<svg class=\"sheet-trace-layer svelte-1qw5b1f\" aria-hidden=\"true\"><defs><marker id=\"sheet-trace-head\" viewBox=\"0 0 10 10\" refX=\"9\" refY=\"5\" markerWidth=\"7\" markerHeight=\"7\" orient=\"auto-start-reverse\"><path d=\"M0 0L10 5L0 10z\" fill=\"#1d4ed8\"></path></marker></defs><!></svg>"), WI = g("<div class=\"sheet-presence svelte-1qw5b1f\"></div> <span> </span>", 1), GI = g("<div class=\"sheet-presence-layer svelte-1qw5b1f\" aria-hidden=\"true\"></div>"), KI = g("<div class=\"sheet-object-title svelte-1qw5b1f\"> </div>"), qI = g("<div class=\"sheet-object-inner svelte-1qw5b1f\"><!> <!></div>"), JI = g("<img class=\"sheet-object-image svelte-1qw5b1f\" draggable=\"false\"/>"), YI = g("<span class=\"sheet-object-grip svelte-1qw5b1f\" aria-hidden=\"true\"></span>"), XI = g("<div role=\"figure\"><!> <!></div>"), ZI = g("<div class=\"sheet-object-layer svelte-1qw5b1f\"></div>"), QI = g("<li role=\"option\"><button type=\"button\" tabindex=\"-1\"> </button></li>"), $I = g("<ul class=\"sheet-fn-suggest svelte-1qw5b1f\" role=\"listbox\"></ul>"), eL = g("<div class=\"title svelte-1qw5b1f\"> </div>"), tL = g("<div class=\"text\"> </div>"), nL = g("<div class=\"sheet-input-message svelte-1qw5b1f\" role=\"note\"><!> <!></div>"), rL = g("<span class=\"box svelte-1qw5b1f\"></span>"), iL = g("<div class=\"sheet-cell-anchor svelte-1qw5b1f\"><!></div>"), aL = g("<span> <b class=\"svelte-1qw5b1f\"> </b></span>"), oL = g("<span> <b class=\"svelte-1qw5b1f\"> </b></span>"), sL = g("<!> <span> <b class=\"svelte-1qw5b1f\"> </b></span> <!>", 1), cL = g("<div class=\"status svelte-1qw5b1f\" role=\"status\" aria-live=\"off\"><span class=\"mode svelte-1qw5b1f\"> </span> <span class=\"grow svelte-1qw5b1f\"></span> <!></div>"), lL = g("<div class=\"sv-sheet-dialog-buttons\"><button type=\"button\" class=\"btn primary\"> </button> <button type=\"button\" class=\"btn\"> </button></div>"), uL = g("<div class=\"sv-sheet-dialog\"><p class=\"note\"> </p></div>"), dL = g("<div class=\"sv-sheet-dialog-buttons\"><button type=\"button\" class=\"btn primary\"> </button> <button type=\"button\" class=\"btn\"> </button></div>"), fL = g("<div class=\"sv-sheet-dialog\"><p class=\"note\"> </p></div>"), pL = g("<div><!> <!> <!> <div><!> <!> <!> <!> <!> <!> <!> <!> <!> <!></div> <!> <!> <!> <!> <!> <!> <!> <!> <input class=\"sheet-file-input svelte-1qw5b1f\" type=\"file\" accept=\"image/*\" aria-hidden=\"true\" tabindex=\"-1\"/> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <!> <input class=\"sheet-file-input svelte-1qw5b1f\" type=\"file\" accept=\".xlsx,.xls,.ods,.csv,.tsv,.txt,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel,application/vnd.oasis.opendocument.spreadsheet,text/csv,text/tab-separated-values\" aria-hidden=\"true\" tabindex=\"-1\"/> <!> <!> <!></div>"), mL = {
|
|
38473
38559
|
hash: "svelte-1qw5b1f",
|
|
38474
38560
|
code: "\n /* ---- the dialogs --------------------------------------------------- */\n /* Portalled to <body>, so these rules are global: one look for Find and\n Replace, Paste Special, Format Cells and Insert Function. */.sv-sheet-dialog {display:flex;flex-direction:column;gap:10px;font-family:var(--sg-font, \"Segoe UI\", system-ui, sans-serif);font-size:13px;color:var(--sg-fg, #242424);}.sv-sheet-dialog .field {display:grid;grid-template-columns:110px 1fr;align-items:center;gap:8px;}.sv-sheet-dialog .field.auto {grid-template-columns:auto 1fr;}.sv-sheet-dialog input[type=\"text\"],\n .sv-sheet-dialog input[type=\"number\"],\n .sv-sheet-dialog select {height:26px;padding:0 6px;font:inherit;color:inherit;background:var(--sg-bg, #fff);border:1px solid var(--sg-border, #d1d1d1);border-radius:var(--sg-radius, 3px);}.sv-sheet-dialog input[type=\"number\"] {width:72px;}.sv-sheet-dialog input[type=\"text\"]:focus,\n .sv-sheet-dialog input[type=\"number\"]:focus,\n .sv-sheet-dialog select:focus {outline:none;border-color:var(--sg-accent, #217346);box-shadow:0 0 0 1px var(--sg-accent, #217346);}.sv-sheet-dialog .checks {display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;}.sv-sheet-dialog .check {display:inline-flex;align-items:center;gap:6px;cursor:default;}.sv-sheet-dialog .status {min-height:18px;margin:0;color:var(--sg-muted, #616161);}.sv-sheet-dialog .note {margin:0;line-height:1.5;}.sv-sheet-dialog-buttons {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px;}.sv-sheet-dialog-buttons .btn {height:26px;padding:0 14px;font-family:var(--sg-font, \"Segoe UI\", system-ui, sans-serif);font-size:13px;color:var(--sg-fg, #242424);background:var(--sg-bg, #fff);border:1px solid var(--sg-border, #d1d1d1);border-radius:var(--sg-radius, 3px);cursor:pointer;}.sv-sheet-dialog-buttons .btn:hover:not(:disabled) {background:var(--sg-row-hover-bg, #f5f5f5);}.sv-sheet-dialog-buttons .btn:disabled {opacity:0.5;cursor:default;}.sv-sheet-dialog-buttons .btn.primary {color:var(--sg-on-accent, #fff);background:var(--sg-accent, #217346);border-color:var(--sg-accent, #217346);}.sv-sheet-dialog-buttons .btn.primary:hover:not(:disabled) {background:var(--sg-accent, #217346);filter:brightness(1.08);}.sv-sheet.svelte-1qw5b1f {display:flex;flex-direction:column;gap:0;\n /* A comment's mark is red on a spreadsheet whatever the theme, as the\n fill handle is the accent: the theme's danger colour, Excel's red\n where a theme has none. The grid's own amber is a data-grid\n convention, not a sheet's. */--sg-note-corner: var(--sg-danger, #c42b1c);font-family:var(--sg-font, \"Segoe UI\", system-ui, sans-serif);color:var(--sg-fg, #242424);background:var(--sg-bg-subtle, var(--sg-header-bg, #f3f3f3));\n /* A sheet's headers are 22px whatever a preset asks of a data grid's\n (Ember's are 48px), and its text is set solid: a host page's prose\n line-height must not stretch the rows. */--sg-header-min-height: 0px;line-height:1.3;}\n /* height=\"100%\": the shell is a flex item and the grid takes what the\n chrome leaves. min-height: 0 on both, or the flex item refuses to shrink\n below the grid's content and overflows exactly as a fixed height did. */.sv-sheet.fill.svelte-1qw5b1f {flex:1 1 0;min-height:0;height:100%;}.sheet-grid.svelte-1qw5b1f {display:flex;flex-direction:column;position:relative;border-top:1px solid var(--sg-border, #d9d9d9);}\n /* The comment editor's anchor: an invisible box laid over the cell,\n inert to the pointer so the cell under it still takes clicks. */\n /* Excel's dotted guide at the border being dragged, across the sheet. */\n /* Above the grid's sticky header (z-index 30), as Excel draws it through\n the header band too; the tip above everything the sheet draws. */.sheet-resize-guide.svelte-1qw5b1f {position:absolute;z-index:40;pointer-events:none;}.sheet-resize-guide.col.svelte-1qw5b1f {top:0;bottom:0;width:0;border-left:1px dotted var(--sg-fg, #242424);}.sheet-resize-guide.row.svelte-1qw5b1f {left:0;right:0;height:0;border-top:1px dotted var(--sg-fg, #242424);}\n /* Excel's resize tip, beside the pointer while a border is dragged. */.sheet-resize-tip.svelte-1qw5b1f {position:absolute;z-index:1000;padding:2px 6px;font-size:12px;line-height:1.4;white-space:nowrap;pointer-events:none;color:var(--sg-fg, #242424);background:var(--sg-bg, #fff);border:1px solid var(--sg-border, #d1d1d1);border-radius:3px;box-shadow:0 2px 6px rgba(0, 0, 0, 0.15);}\n /* The sparkline fills its cell, behind the text and out of the way of the\n pointer: the cell is still selected, dragged and edited as a cell. */.sheet-sparkline.svelte-1qw5b1f {position:absolute;inset:3px;display:flex;align-items:center;justify-content:center;pointer-events:none;overflow:hidden;}.sheet-cell-anchor.svelte-1qw5b1f {position:absolute;z-index:7;pointer-events:none;}.sheet-cell-anchor.svelte-1qw5b1f .box:where(.svelte-1qw5b1f) {display:inline-block;}.sheet-file-input.svelte-1qw5b1f {display:none;}\n /* The object layer: charts and pictures over the cells. The layer itself\n lets the pointer through, each object catches it. No z-index on the\n layer, so it makes no stacking context and each object is stacked\n against the grid's sticky cells on its own: an object in the scrolling\n pane under the frozen cells (z-index 30) and the frozen rows (31), one\n hung from a frozen cell over them, and all under the header (35).\n `overflow: clip` because an object's clip-path hides the part below the\n sheet's window but still counts as scrollable overflow: a chart hanging\n past the bottom made the page taller, and scrolling the sheet shrank it\n again, so a scrolled page jumped. `clip` rather than `hidden` keeps the\n layer from becoming a scroll container. */.sheet-object-layer.svelte-1qw5b1f {position:absolute;inset:0;overflow:clip;pointer-events:none;}.sheet-object.svelte-1qw5b1f {position:absolute;z-index:7;pointer-events:auto;background:var(--sg-bg, #fff);border:1px solid var(--sg-border, #d1d1d1);box-shadow:0 1px 4px rgb(0 0 0 / 12%);box-sizing:border-box;overflow:hidden;cursor:move;touch-action:none;}.sheet-object.frozen.svelte-1qw5b1f {z-index:32;}.sheet-object.dragging.svelte-1qw5b1f {z-index:33;}.sheet-object.selected.svelte-1qw5b1f {border-color:var(--sg-accent, #107c41);box-shadow:0 0 0 1px var(--sg-accent, #107c41), 0 2px 8px rgb(0 0 0 / 16%);}.sheet-object-inner.svelte-1qw5b1f {display:flex;flex-direction:column;width:100%;height:100%;padding:4px;box-sizing:border-box;}.sheet-object-title.svelte-1qw5b1f {padding:0 4px 2px;font-size:12px;font-weight:600;text-align:center;color:var(--sg-fg, #242424);}.sheet-object-image.svelte-1qw5b1f {display:block;width:100%;height:100%;object-fit:contain;user-select:none;}.sheet-object-grip.svelte-1qw5b1f {position:absolute;inset-inline-end:-1px;bottom:-1px;width:12px;height:12px;background:var(--sg-accent, #107c41);border:1px solid var(--sg-bg, #fff);cursor:nwse-resize;touch-action:none;}[dir=\"rtl\"] .sheet-object-grip.svelte-1qw5b1f {cursor:nesw-resize;}.sheet-trace-layer.svelte-1qw5b1f {position:absolute;inset:0;width:100%;height:100%;z-index:6;pointer-events:none;overflow:visible;}\n /* A cell drawn as a control. It sits over the cell's own text rather\n than replacing it, so the value stays visible to a screen reader and\n to a column that is only partly controlled. */.sheet-cell-control.svelte-1qw5b1f {position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:6px;pointer-events:none;\n /* The control covers the cell's own TRUE / FALSE, so it has to carry\n the cell's background rather than a colour of its own. `inherit`\n takes whatever the cell computed to, which is the only thing that\n stays right across the themes and the banded rows. */background:inherit;}.sheet-cell-control.svelte-1qw5b1f > :where(.svelte-1qw5b1f),\n .sheet-cell-control.svelte-1qw5b1f input:where(.svelte-1qw5b1f),\n .sheet-cell-control.svelte-1qw5b1f label:where(.svelte-1qw5b1f) {pointer-events:auto;}.sheet-cell-control.checkbox.svelte-1qw5b1f input:where(.svelte-1qw5b1f) {margin:0;cursor:pointer;}.sheet-cell-control.button.svelte-1qw5b1f {font:inherit;font-size:11px;line-height:1;inset:2px;padding:0 8px;border:1px solid var(--sg-border, #c4c4c4);border-radius:3px;background:var(--sg-header-bg, #f3f3f3);color:inherit;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.sheet-cell-control.button.svelte-1qw5b1f:hover:not(:disabled) {background:var(--sg-row-hover-bg, #e8e8e8);}.sheet-cell-control.button.svelte-1qw5b1f:disabled {cursor:default;opacity:0.6;}.sheet-cell-control.radio.svelte-1qw5b1f {justify-content:flex-start;padding-inline:4px;font-size:11px;overflow:hidden;}.sheet-cell-control.radio.svelte-1qw5b1f label:where(.svelte-1qw5b1f) {display:inline-flex;align-items:center;gap:3px;cursor:pointer;white-space:nowrap;}.sheet-cell-control.radio.svelte-1qw5b1f input:where(.svelte-1qw5b1f) {margin:0;}\n /* Excel's outline bar, down the inline-start edge of the grid. Logical\n insets rather than `left`, so it sits on the correct side in RTL.\n\n Its width is a variable because two rules have to agree on it: the\n bar's own, and the inset that moves the grid out from under it. They\n did not agree when the second rule aimed at the wrong class, and the\n bar sat on top of the row numbers with nothing to say it had. */.sheet-grid.svelte-1qw5b1f {--sheet-outline-width: 18px;}.sheet-outline-bar.svelte-1qw5b1f {position:absolute;inset-block:0;inset-inline-start:0;width:var(--sheet-outline-width);z-index:7;pointer-events:none;background:var(--sg-header-bg, #f6f6f6);border-inline-end:1px solid var(--sg-border, #d4d4d4);}.sheet-outline-levels.svelte-1qw5b1f {position:absolute;inset-block-start:0;inset-inline:0;display:flex;flex-direction:column;align-items:center;gap:1px;padding-block-start:2px;pointer-events:auto;}.sheet-outline-level.svelte-1qw5b1f {width:13px;height:13px;padding:0;font:inherit;font-size:9px;line-height:1;border:1px solid var(--sg-border, #b4b4b4);border-radius:2px;background:var(--sg-bg, #fff);color:inherit;cursor:pointer;}.sheet-outline-level.svelte-1qw5b1f:hover {background:var(--sg-row-hover-bg, #eaeaea);}\n /* The bracket: a line down the rows a group owns, with a foot at each\n end, the way Excel draws one. */.sheet-outline-line.svelte-1qw5b1f {position:absolute;inset-inline-start:8px;width:1px;background:var(--sg-muted, #8a8a8a);}.sheet-outline-line.svelte-1qw5b1f::before,\n .sheet-outline-line.svelte-1qw5b1f::after {content:'';position:absolute;inset-inline-start:0;width:4px;height:1px;background:inherit;}.sheet-outline-line.svelte-1qw5b1f::before {top:0;}.sheet-outline-line.svelte-1qw5b1f::after {bottom:0;}.sheet-outline-toggle.svelte-1qw5b1f {position:absolute;inset-inline-start:3px;width:11px;height:11px;margin-block-start:-6px;padding:0;display:grid;place-items:center;font:inherit;font-size:10px;line-height:1;border:1px solid var(--sg-border, #8a8a8a);border-radius:1px;background:var(--sg-bg, #fff);color:inherit;cursor:pointer;pointer-events:auto;}.sheet-outline-toggle.svelte-1qw5b1f:hover {background:var(--sg-row-hover-bg, #eaeaea);}\n /* The grid gets out of the bar's way only while there is one to show.\n The root's class is `sv-grid-root`; aiming this at `.sv-grid` matched\n nothing, so the bar painted straight over the row numbers. */.sheet-grid.svelte-1qw5b1f:has(> .sheet-outline-bar:where(.svelte-1qw5b1f)) > .sv-grid-root {margin-inline-start:var(--sheet-outline-width);width:calc(100% - var(--sheet-outline-width));}\n /* Circle Invalid Data: a red oval on the cell's box, over its content. */.sheet-invalid-circle.svelte-1qw5b1f {position:absolute;inset:0;border:1.5px solid #d03a2c;border-radius:50%;pointer-events:none;z-index:3;}\n /* The Input Message: Excel's small pale box under the selected cell. */.sheet-input-message.svelte-1qw5b1f {position:absolute;z-index:7;max-width:240px;padding:4px 8px;font-size:12px;line-height:1.4;pointer-events:none;color:var(--sg-fg, #242424);background:var(--sg-bg, #fff);border:1px solid var(--sg-border, #d1d1d1);border-radius:3px;box-shadow:0 2px 6px rgba(0, 0, 0, 0.15);white-space:pre-wrap;}.sheet-input-message.svelte-1qw5b1f .title:where(.svelte-1qw5b1f) {font-weight:700;}\n /* Formula AutoComplete under the cell, styled as the formula bar's list. */.sheet-fn-suggest.svelte-1qw5b1f {position:absolute;z-index:40;margin:0;padding:2px;list-style:none;min-width:180px;max-height:220px;overflow-y:auto;border:1px solid var(--sg-border, #d1d1d1);border-radius:4px;background:var(--sg-bg, #fff);color:var(--sg-fg, #242424);box-shadow:0 8px 24px rgb(0 0 0 / 0.14);font-size:12px;}.sheet-fn-suggest.svelte-1qw5b1f button:where(.svelte-1qw5b1f) {display:block;width:100%;text-align:left;font:inherit;border:0;background:transparent;color:inherit;padding:4px 8px;border-radius:3px;cursor:pointer;}.sheet-fn-suggest.svelte-1qw5b1f button.active:where(.svelte-1qw5b1f),\n .sheet-fn-suggest.svelte-1qw5b1f button:where(.svelte-1qw5b1f):hover {background:var(--sg-row-hover-bg, #f0f0f0);}\n /* The in-cell dropdown arrow: a small button at the cell's right edge,\n above the cell text like the note corner. */.sheet-dropdown-arrow.svelte-1qw5b1f {position:absolute;top:50%;right:1px;transform:translateY(-50%);width:16px;height:16px;display:grid;place-items:center;padding:0;color:var(--sg-fg, #242424);background:var(--sg-bg, #fff);border:1px solid var(--sg-border, #d1d1d1);border-radius:2px;cursor:pointer;z-index:6;}.sheet-dropdown-arrow.svelte-1qw5b1f:hover {background:var(--sg-row-hover-bg, #f0f0f0);}\n /* The AutoFilter arrow on a header cell, a funnel once filtered. */.sheet-filter-arrow.svelte-1qw5b1f {position:absolute;top:50%;right:1px;transform:translateY(-50%);width:16px;height:16px;display:grid;place-items:center;padding:0;color:var(--sg-muted, #616161);background:var(--sg-bg, #fff);border:1px solid var(--sg-border, #d1d1d1);border-radius:2px;cursor:pointer;z-index:6;}.sheet-filter-arrow.svelte-1qw5b1f:hover {background:var(--sg-row-hover-bg, #f0f0f0);}.sheet-filter-arrow.filtered.svelte-1qw5b1f {color:color-mix(in srgb, var(--sg-info, #0f6cbd) 80%, var(--sg-fg, #242424));}\n /* Excel turns the row numbers of a filtered region blue. */\n /* Excel's blue row numbers under a filter. Mixed toward the text colour so\n a host theme whose info colour is a light cyan still clears 4.5:1 at the\n gutter's 13px; Excel's own #0f6cbd already does. */.sv-sheet.svelte-1qw5b1f tr.sheet-filtered > td.sv-grid-row-number-cell {color:color-mix(in srgb, var(--sg-info, #0f6cbd) 80%, var(--sg-fg, #242424));}\n /* A data bar behind the cell text, a third of the height off the edges\n as Excel draws it. */.sheet-databar.svelte-1qw5b1f {position:absolute;top:2px;bottom:2px;border-radius:1px;opacity:0.85;pointer-events:none;}.sheet-databar-axis.svelte-1qw5b1f {position:absolute;top:1px;bottom:1px;width:0;border-left:1px dashed var(--sg-muted, #616161);opacity:0.6;pointer-events:none;}\n /* Excel's marching ants: a dashed line on the cell's outline edges, the\n dashes walking clockwise. Drawn as background layers, one per edge, so\n it costs the compositor and nothing else; above the cell text and the\n data bar, under the editor and the note corner (z-index 6). Each layer\n is one 8px tile of the dash repeated along its edge, so sliding it a\n tile per cycle is seamless: a single full-width stretch slid the same\n way opened a gap at one end and closed it at the other, which read as\n a flicker rather than a walk. The walk is the signal that the sheet is\n in copy mode, as it is in Excel, so it is not switched off for\n prefers-reduced-motion: two pixels of dash, nothing else moves. */.sheet-ants.svelte-1qw5b1f {position:absolute;inset:0;z-index:5;pointer-events:none;--ants-on: var(--sg-fg, #242424);--ants-off: var(--sg-bg, #fff);--ants-top: none;--ants-bottom: none;--ants-left: none;--ants-right: none;background-image:var(--ants-top), var(--ants-bottom), var(--ants-left), var(--ants-right);background-repeat:repeat-x, repeat-x, repeat-y, repeat-y;background-size:8px 2px, 8px 2px, 2px 8px, 2px 8px;background-position:0 0, 0 100%, 0 0, 100% 0;\n animation: svelte-1qw5b1f-sheet-ants 0.35s linear infinite;}.sheet-ants.top.svelte-1qw5b1f {--ants-top: linear-gradient(to right, var(--ants-on) 0 4px, var(--ants-off) 4px 8px);}.sheet-ants.bottom.svelte-1qw5b1f {--ants-bottom: linear-gradient(to right, var(--ants-on) 0 4px, var(--ants-off) 4px 8px);}.sheet-ants.left.svelte-1qw5b1f {--ants-left: linear-gradient(to bottom, var(--ants-on) 0 4px, var(--ants-off) 4px 8px);}.sheet-ants.right.svelte-1qw5b1f {--ants-right: linear-gradient(to bottom, var(--ants-on) 0 4px, var(--ants-off) 4px 8px);}\n /* The dynamic array's outline: a thin blue rim on the spill the active cell is in. */.sheet-spill-edge.svelte-1qw5b1f {position:absolute;inset:0;z-index:4;pointer-events:none;--spill-c: var(--sg-accent, #2b6cb0);box-shadow:none;}.sheet-spill-edge.top.svelte-1qw5b1f {border-top:1px solid var(--spill-c);}.sheet-spill-edge.bottom.svelte-1qw5b1f {border-bottom:1px solid var(--spill-c);}.sheet-spill-edge.left.svelte-1qw5b1f {border-left:1px solid var(--spill-c);}.sheet-spill-edge.right.svelte-1qw5b1f {border-right:1px solid var(--spill-c);}\n @keyframes svelte-1qw5b1f-sheet-ants {\n to { background-position: 8px 0, -8px 100%, 0 -8px, 100% 8px; }\n }\n /* An icon at the left of the cell; the text keeps its own alignment. */.sheet-cell.has-icon.svelte-1qw5b1f {padding-left:20px;}.sheet-cf-icon.svelte-1qw5b1f {position:absolute;left:4px;top:50%;transform:translateY(-50%);}\n /* Show All Comments: a strip under the formula bar. */.sheet-comments.svelte-1qw5b1f {display:flex;flex-wrap:wrap;gap:4px 8px;max-height:96px;overflow-y:auto;padding:4px 8px;font-size:12px;border-top:1px solid var(--sg-border, #d9d9d9);background:var(--sg-bg-subtle, #f3f3f3);}.sheet-comments.svelte-1qw5b1f .none:where(.svelte-1qw5b1f) {color:var(--sg-muted, #616161);}.sheet-comments.svelte-1qw5b1f .entry:where(.svelte-1qw5b1f) {display:inline-flex;gap:6px;max-width:320px;padding:2px 8px;font:inherit;color:inherit;background:var(--sg-bg, #fff);border:1px solid var(--sg-border, #d9d9d9);border-radius:3px;cursor:pointer;}.sheet-comments.svelte-1qw5b1f .entry:where(.svelte-1qw5b1f):hover {background:var(--sg-row-hover-bg, #f0f0f0);}.sheet-comments.svelte-1qw5b1f .addr:where(.svelte-1qw5b1f) {font-weight:600;color:var(--sg-muted, #616161);}.sheet-comments.svelte-1qw5b1f .author:where(.svelte-1qw5b1f) {font-weight:600;}.sheet-comments.svelte-1qw5b1f .text.resolved:where(.svelte-1qw5b1f) {text-decoration:line-through;color:var(--sg-muted, #616161);}.sheet-comments.svelte-1qw5b1f .text:where(.svelte-1qw5b1f) {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.sheet-grid.fill.svelte-1qw5b1f {flex:1 1 0;min-height:0;}\n /* The formula bar sits on the ribbon's grey ground, as it does in Excel. */.sv-sheet.svelte-1qw5b1f > .sv-formula-bar {margin:4px 6px;}.sv-sheet.svelte-1qw5b1f > .sv-ribbon {border-left:0;border-right:0;border-top:0;border-radius:0;}\n\n /*\n * Excel's own palette, light and dark with the page, for `look=\"excel\"`.\n * Tokens, so every part underneath - the grid included - picks them up.\n * The default look leaves every token to the host's theme.\n */.sv-sheet.look-excel.svelte-1qw5b1f {\n /* Excel's note mark is a red triangle. */--sg-note-corner: #c42b1c;--sg-bg: #ffffff;--sg-fg: #242424;--sg-muted: #616161;--sg-border: #d9d9d9;--sg-header-bg: #f3f3f3;--sg-header-fg: #444444;--sg-bg-subtle: #f3f3f3;--sg-row-alt-bg: #ffffff;--sg-row-hover-bg: #f0f0f0;--sg-muted-bg: #e6e6e6;--sg-selection-bg: rgba(16, 124, 65, 0.12);--sg-input-bg: #ffffff;--sg-input-border: #c8c6c4;--sg-accent: #107c41;--sg-on-accent: #ffffff;--sg-focus-ring: #107c41;--sg-success: #107c41;--sg-info: #0f6cbd;--sg-warning: #f2c811;--sg-danger: #c42b1c;--sg-radius: 0px;--sg-radius-lg: 6px;--sg-font: \"Aptos\", \"Aptos Narrow\", \"Segoe UI\", Calibri, Arial, sans-serif;}[data-theme=\"dark\"] .sv-sheet.look-excel.svelte-1qw5b1f {--sg-bg: #1f1f1f;--sg-fg: #e6e6e6;--sg-muted: #a6a6a6;--sg-border: #3d3d3d;--sg-header-bg: #2b2b2b;--sg-header-fg: #d0d0d0;--sg-bg-subtle: #292929;--sg-row-alt-bg: #1f1f1f;--sg-row-hover-bg: #363636;--sg-muted-bg: #404040;--sg-selection-bg: rgba(63, 166, 110, 0.2);--sg-input-bg: #262626;--sg-input-border: #4a4a4a;--sg-accent: #3fa66e;--sg-on-accent: #ffffff;--sg-focus-ring: #3fa66e;--sg-success: #3fa66e;--sg-info: #4cc2ff;--sg-warning: #f2c811;--sg-danger: #f1707b;}\n @media (prefers-color-scheme: dark) {:root:not([data-theme=\"light\"]) .sv-sheet.look-excel.svelte-1qw5b1f {--sg-bg: #1f1f1f;--sg-fg: #e6e6e6;--sg-muted: #a6a6a6;--sg-border: #3d3d3d;--sg-header-bg: #2b2b2b;--sg-header-fg: #d0d0d0;--sg-bg-subtle: #292929;--sg-row-alt-bg: #1f1f1f;--sg-row-hover-bg: #363636;--sg-muted-bg: #404040;--sg-selection-bg: rgba(63, 166, 110, 0.2);--sg-input-bg: #262626;--sg-input-border: #4a4a4a;--sg-accent: #3fa66e;--sg-on-accent: #ffffff;--sg-focus-ring: #3fa66e;--sg-success: #3fa66e;--sg-info: #4cc2ff;--sg-warning: #f2c811;--sg-danger: #f1707b;}\n }\n\n /* ---- the sheet's geometry ------------------------------------------ */\n /* Column letters: 22px, centred, plain weight; the gutter to match. */.sv-sheet.svelte-1qw5b1f .sv-grid-head .sv-grid-column {height:22px;padding:0;font-size:12px;font-weight:400;color:var(--sg-header-fg, var(--sg-muted, #444));}.sv-sheet.svelte-1qw5b1f .sv-grid-head .sv-grid-column .sv-grid-header-cell {justify-content:center;}.sv-sheet.svelte-1qw5b1f .sv-grid-head .sv-grid-column .sv-grid-header-sort {justify-content:center;}\n /* Row numbers are centred in the gutter, as Excel's are. */.sv-sheet.svelte-1qw5b1f .sv-grid-row-number-cell {font-size:12px;padding:0 4px;line-height:1.3;text-align:center;}.sv-sheet.svelte-1qw5b1f .sv-grid-head .sv-grid-column,\n .sv-sheet.svelte-1qw5b1f td.sv-grid-cell {line-height:1.3;}\n /*\n * Header borders, as Excel draws them: a hairline between every column\n * letter and under the header row, a hairline between every row number\n * and to the right of the gutter, and the Select All corner framed by\n * both. The grid fuses the gutter into the header band by painting its\n * right edge in the header colour; a sheet wants the line.\n */.sv-sheet.svelte-1qw5b1f .sv-grid-head .sv-grid-column {border-right:1px solid var(--sg-border, #d9d9d9);border-bottom:1px solid var(--sg-border, #d9d9d9);}\n /* A hidden column's letter takes no room at all: the hairline above\n would keep it a pixel wide. Its neighbours' lines meet at the seam,\n which is the doubled line Excel draws where a column is hidden. */.sv-sheet.svelte-1qw5b1f .sv-grid-head .sv-grid-column.sv-grid-column-collapsed {border-right-width:0;}\n /*\n * Where a column or a row is hidden, Excel thickens the header line at\n * the seam so the gap in the letters or numbers has a mark. The letter\n * after the fold carries a 2px left edge (a border, since the header's\n * selection shading uses its box-shadow); the number after hidden rows\n * a 2px top edge painted on a pseudo-element, since a border there would\n * push the row a pixel taller than the virtualizer laid it out.\n */.sv-sheet.svelte-1qw5b1f .sv-grid-head .sv-grid-column.sv-grid-column-collapsed + .sv-grid-column:not(.sv-grid-column-collapsed) {border-left:2px solid var(--sg-muted, #8a8a8a);}.sv-sheet.svelte-1qw5b1f tr.sv-grid-row-collapsed + tr:not(.sv-grid-row-collapsed) > td.sv-grid-row-number-cell::before {content:\"\";position:absolute;left:0;right:0;top:0;height:2px;background:var(--sg-muted, #8a8a8a);pointer-events:none;}.sv-sheet.svelte-1qw5b1f .sv-grid-row-number-column,\n .sv-sheet.svelte-1qw5b1f .sv-grid-row-number-cell {border-right:1px solid var(--sg-border, #d9d9d9);}\n /*\n * Excel shades the headers the selection touches - a step darker than the\n * header band, mixed from the text colour so it lands right on a dark\n * theme too - and marks them with a 2px line in the accent along the edge\n * that faces the cells. The line sits over the hairline, as Excel's does.\n */\n /* A column or row selected whole: the accent, white on green, as Excel's. */.sv-sheet.svelte-1qw5b1f th.sheet-col-whole,\n .sv-sheet.svelte-1qw5b1f th.sheet-col-whole .sv-grid-header-cell,\n .sv-sheet.svelte-1qw5b1f td.sv-grid-row-number-cell.sheet-row-whole {background:var(--sg-accent, #217346) !important;color:var(--sg-on-accent, #fff) !important;}.sv-sheet.svelte-1qw5b1f th.sheet-col-selected {background:color-mix(in srgb, var(--sg-fg, #242424) 13%, var(--sg-header-bg, #f3f3f3) 87%);color:var(--sg-fg, #242424);box-shadow:inset 0 -2px 0 0 var(--sg-accent, #107c41);}.sv-sheet.svelte-1qw5b1f tr:has(> td.sv-grid-cell-active) > td.sv-grid-row-number-cell,\n .sv-sheet.svelte-1qw5b1f tr:has(> td[data-selected-range=\"true\"]) > td.sv-grid-row-number-cell {background:color-mix(in srgb, var(--sg-fg, #242424) 13%, var(--sg-header-bg, #f3f3f3) 87%);color:var(--sg-fg, #242424);box-shadow:inset -2px 0 0 0 var(--sg-accent, #107c41);}\n /* No hover wash on cells: a sheet does not light rows up under the mouse. */.sv-sheet.svelte-1qw5b1f tbody tr:hover > .sv-grid-cell:not([data-selected-range=\"true\"]):not(.sv-grid-row-number-cell) {background-color:var(--sg-bg, #fff);}.sv-sheet.svelte-1qw5b1f .sv-grid-cell {font-size:13px;}\n\n /*\n * The selection rectangle, as Excel draws it: the range tinted and framed\n * by a 2px line in the accent, the active cell inside it left unshaded\n * with no ring of its own (the frame is the ring), and the fill handle a\n * small square on the bottom-right corner, ringed in the sheet colour so\n * it reads against the frame. A lone active cell is a one-cell range and\n * gets the same frame, white inside.\n *\n * Painted on a pseudo-element ABOVE the cell's content rather than on the\n * td itself. The grid draws the tint as the td's background and the frame\n * as inset shadows, both of which sit under the td's children - and the\n * sheet's cell span now covers the whole td, so on a filled cell the\n * selection vanished under the fill. The overlay is translucent, so a\n * fill inside a selection reads a shade darker, which is what Excel shows.\n *\n * The tint is the theme's accent at a low alpha, not `--sg-selection-bg`:\n * that token is an opaque surface in most themes (Ember's is #ffece3),\n * and an opaque overlay above the content hid the text of every selected\n * cell but the active one. Excel's own tint is its green at 12%.\n */.sv-sheet.svelte-1qw5b1f td.sv-grid-cell[data-selected-range=\"true\"],\n .sv-sheet.svelte-1qw5b1f td.sv-grid-cell-active {background:var(--sg-bg, #fff);box-shadow:none;}.sv-sheet.svelte-1qw5b1f td.sv-grid-cell[data-selected-range=\"true\"]::after,\n .sv-sheet.svelte-1qw5b1f td.sv-grid-cell-active::after {content:\"\";position:absolute;inset:0;z-index:2;pointer-events:none;background:color-mix(in srgb, var(--sg-accent, #107c41) 14%, transparent);box-shadow:var(--sv-range-top), var(--sv-range-bottom), var(--sv-range-left), var(--sv-range-right);}\n /* The active cell: no tint, and a frame of its own only when it is not\n inside a range, whose frame it otherwise shares. Written out with the\n range attribute so it outranks the tint rule above; with a shorter\n selector the active cell inside a range was tinted like the rest, and\n Excel leaves it white. */.sv-sheet.svelte-1qw5b1f td.sv-grid-cell-active::after,\n .sv-sheet.svelte-1qw5b1f td.sv-grid-cell.sv-grid-cell-active[data-selected-range=\"true\"]::after {background:transparent;}.sv-sheet.svelte-1qw5b1f td.sv-grid-cell-active:not([data-selected-range=\"true\"])::after {box-shadow:inset 0 0 0 2px var(--sg-accent, #107c41);}\n /* Nothing over the editor while a cell is being typed into. */.sv-sheet.svelte-1qw5b1f td.sv-grid-cell-editing::after {display:none;}.sv-sheet.svelte-1qw5b1f .sv-grid-fill-handle {width:8px;height:8px;right:-1px;bottom:-1px;border:1px solid var(--sg-bg, #fff);border-radius:0;}.sv-sheet.svelte-1qw5b1f .sv-grid-fill-handle:hover {transform:none;}\n\n /* Headers respond to the pointer the way Excel's do: a shade darker under\n it, and the cursor says what a click will select. */.sv-sheet.svelte-1qw5b1f .sv-grid-head .sv-grid-column:hover,\n .sv-sheet.svelte-1qw5b1f td.sv-grid-row-number-cell:hover {background:color-mix(in srgb, var(--sg-fg, #242424) 7%, var(--sg-header-bg, #f3f3f3) 93%);}\n /*\n * Excel's cursors: the white cross over the cells, a black arrow pointing\n * down the column over a letter and along the row over a number (drawn,\n * since no CSS cursor is one; the hotspot is the tip), the plain arrow\n * over the corner, and the double-headed arrows on the borders. The\n * fill handle's crosshair and the selection border's move cursor are\n * the grid's own.\n */.sv-sheet.svelte-1qw5b1f td.sv-grid-cell:not(.sv-grid-row-number-cell):not(.sv-grid-cell-editing) {cursor:cell;}.sv-sheet.svelte-1qw5b1f .sv-grid-head .sv-grid-column[data-svgrid-header-col],\n .sv-sheet.svelte-1qw5b1f .sv-grid-head .sv-grid-column[data-svgrid-header-col] .sv-grid-header-sort,\n .sv-sheet.svelte-1qw5b1f .sv-grid-head .sv-grid-column[data-svgrid-header-col] .sv-grid-header-cell {cursor:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M8 14.5L2.2 8.2h3.6V1.5h4.4v6.7h3.6z' fill='%23000' stroke='%23fff' stroke-width='1.2' stroke-linejoin='round'/></svg>\") 8 15, pointer;}.sv-sheet.svelte-1qw5b1f td.sv-grid-row-number-cell {cursor:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M14.5 8L8.2 13.8v-3.6H1.5V5.8h6.7V2.2z' fill='%23000' stroke='%23fff' stroke-width='1.2' stroke-linejoin='round'/></svg>\") 15 8, pointer;}.sv-sheet.svelte-1qw5b1f th.sv-grid-row-number-column {cursor:default;}.sv-sheet.svelte-1qw5b1f .sv-grid-resize-handle {cursor:col-resize;}.sv-sheet.svelte-1qw5b1f .sv-grid-row-resize-handle {cursor:row-resize;}\n\n /* The in-cell editor, widened over the neighbours while a long formula\n is typed: the cell it sits in is already lifted above the row. */.sv-sheet.svelte-1qw5b1f td.sv-grid-cell-editing {overflow:visible;}.sv-sheet.svelte-1qw5b1f td.sv-grid-cell-editing .sv-grid-cell-editor {position:relative;z-index:2;max-width:none;background:var(--sg-bg, #fff);}\n\n /* A cell a formula in progress refers to, in that reference's colour.\n An overlay too, for the same reason as the selection's: a filled cell\n would otherwise hide it. Translucent, so the fill shows through. */.sv-sheet.svelte-1qw5b1f td[data-sheet-ref]::before {content:\"\";position:absolute;inset:0;z-index:2;pointer-events:none;box-shadow:var(--sheet-ref-edges, none);background:color-mix(in srgb, var(--sheet-ref) 12%, transparent);}\n /* The editor's text under the coloured mirror: only the caret shows. */.sv-sheet.svelte-1qw5b1f .sv-grid-cell-editor.sheet-ref-text {color:transparent;caret-color:var(--sg-fg, #242424);}\n /* Format Painter armed: a brush for a pointer, as Excel shows. */.sheet-grid.painting.svelte-1qw5b1f td.sv-grid-cell {cursor:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'><path d='M10.2 2.4l5.4 5.4-3.6 3.6-5.4-5.4z' fill='%23fff' stroke='%23222' stroke-width='1.4' stroke-linejoin='round'/><path d='M6.6 6L3.2 9.4a1.8 1.8 0 0 0 0 2.6l2.8 2.8a1.8 1.8 0 0 0 2.6 0L12 11.4' fill='none' stroke='%23222' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>\") 3 15, cell;}.sv-sheet.svelte-1qw5b1f .sheet-ref-mirror {position:absolute;z-index:21;overflow:hidden;white-space:pre-wrap;overflow-wrap:break-word;color:var(--sg-fg, #242424);pointer-events:none;background:transparent;}\n\n /* The Select All corner: a triangle pointing into the sheet. */.corner.svelte-1qw5b1f {display:block;width:100%;height:100%;position:relative;}.corner.svelte-1qw5b1f::after {content:\"\";position:absolute;right:3px;bottom:3px;border-style:solid;border-width:0 0 9px 9px;border-color:transparent transparent var(--sg-muted, #b0b0b0) transparent;}\n\n /*\n * A sheet cell fills its td edge to edge, so a fill colour reaches the\n * gridlines the way it does in Excel rather than leaving a halo of cell\n * background around it.\n *\n * The grid pads a left-aligned td by 12px and a block child only rises to\n * its own line height, so a fill used to stop short on the left and leave\n * a hairline top and bottom. The td gives up its padding and the span is\n * laid over the td's whole box instead, and does its own padding. A grid\n * container rather than a block so the text centres vertically at any row\n * height, including one the user has dragged taller. Text that does not\n * fit is cut at the edge, as Excel cuts it, not ellipsised.\n */.sv-sheet.svelte-1qw5b1f td.sv-grid-cell:not(.sv-grid-row-number-cell) {padding:0;position:relative;}.sheet-cell.svelte-1qw5b1f {position:absolute;inset:0;display:grid;align-items:center;padding:0 4px;line-height:1.3;white-space:nowrap;overflow:hidden;}\n /* The table style: a filled header, a tinted band on alternate rows, a\n line over the totals. Behind everything the cell itself draws, and out\n of the pointer's way. */.sheet-table-fill.svelte-1qw5b1f {position:absolute;inset:0;pointer-events:none;}.sheet-table-fill.header.svelte-1qw5b1f {background:var(--sheet-table-header, color-mix(in srgb, var(--sg-accent, #107c41) 16%, transparent));border-bottom:1px solid var(--sheet-table-border, color-mix(in srgb, var(--sg-accent, #107c41) 45%, transparent));}.sheet-table-fill.band.svelte-1qw5b1f {background:var(--sheet-table-band, color-mix(in srgb, var(--sg-accent, #107c41) 7%, transparent));}.sheet-table-fill.totals.svelte-1qw5b1f {background:var(--sheet-table-totals, color-mix(in srgb, var(--sg-accent, #107c41) 12%, transparent));border-top:1px solid var(--sheet-table-border, color-mix(in srgb, var(--sg-accent, #107c41) 45%, transparent));}\n\n /* A picture in the cell: fitted inside it, and out of the pointer's way\n so the cell is selected, dragged and typed into as a cell. */.sheet-cell-image.svelte-1qw5b1f {position:absolute;inset:1px 2px;width:calc(100% - 4px);height:calc(100% - 2px);object-fit:contain;pointer-events:none;}\n\n /* Presence: a thin box in the person's colour around their selection, and\n a tag on their cursor. Over the cells, out of the pointer's way, and\n never in the way of reading a number: the box is a border, not a fill. */.sheet-presence-layer.svelte-1qw5b1f {position:absolute;inset:0;pointer-events:none;z-index:4;}.sheet-presence.svelte-1qw5b1f {position:absolute;border:2px solid var(--sheet-presence-colour, #2563eb);border-radius:2px;background:color-mix(in srgb, var(--sheet-presence-colour, #2563eb) 8%, transparent);}.sheet-presence-tag.svelte-1qw5b1f {position:absolute;transform:translateY(-100%);padding:1px 5px;border-radius:3px 3px 3px 0;z-index:1;background:var(--sheet-presence-colour, #2563eb);color:#fff;font-size:11px;line-height:1.5;white-space:nowrap;max-width:160px;overflow:hidden;text-overflow:ellipsis;}\n /* No room above: under the cell, the corner turned the other way. */.sheet-presence-tag.below.svelte-1qw5b1f {transform:none;border-radius:0 3px 3px 3px;}\n\n /* Excel's link: the theme's link colour, underlined, and a hand over it.\n The cell is still a cell - it is selected, dragged and typed into the\n same way - so this is a span rather than an anchor. */.sheet-cell.linked.svelte-1qw5b1f {color:var(--sg-info, #0f6cbd);text-decoration:underline;text-underline-offset:2px;cursor:pointer;}.sheet-cell.linked.svelte-1qw5b1f:hover {color:color-mix(in srgb, var(--sg-info, #0f6cbd) 80%, var(--sg-fg, #242424));}.sheet-cell.formula.svelte-1qw5b1f {font-family:ui-monospace, Menlo, monospace;color:var(--sg-accent, #107c41);}\n\n /*\n * Text spilling over empty neighbours, as in Excel. The grid's td clips\n * its content; for a spilling cell it is opened up, and the span grows to\n * its text (capped at the run of empty cells) and paints its own\n * background over the neighbours, which also hides the gridlines under\n * the text the way Excel does. z-index lifts it above the later tds in\n * the row, which would otherwise paint over it in DOM order.\n */.sv-sheet.svelte-1qw5b1f td.sv-grid-cell:has(> .sheet-cell.spill) {overflow:visible;}.sheet-cell.spill.svelte-1qw5b1f {right:auto;z-index:1;width:max-content;min-width:100%;background:var(--sg-bg, #fff);}\n\n /* ---- View > Show --------------------------------------------------- */\n /* Gridlines off keeps the cell geometry (the borders go transparent, so\n nothing shifts) and leaves the borders a cell has of its own. */.sv-sheet.no-gridlines.svelte-1qw5b1f td.sv-grid-cell {border-color:transparent;}.sv-sheet.no-headings.svelte-1qw5b1f .sv-grid-head {display:none;}\n\n /* ---- status bar ---------------------------------------------------- */.status.svelte-1qw5b1f {display:flex;align-items:center;gap:18px;height:22px;padding:0 10px;font-size:12px;\n /* Explicit: a host page that uppercases small text turns \"Count\" into\n \"COUNT\", which reads as shouting rather than as a status bar. */text-transform:none;letter-spacing:normal;color:var(--sg-fg, #242424);border-top:1px solid var(--sg-border, #d9d9d9);background:var(--sg-header-bg, #f3f3f3);}.status.svelte-1qw5b1f .grow:where(.svelte-1qw5b1f) {flex:1 1 auto;}.status.svelte-1qw5b1f .mode:where(.svelte-1qw5b1f) {color:var(--sg-muted, #616161);}.status.svelte-1qw5b1f b:where(.svelte-1qw5b1f) {font-weight:400;font-variant-numeric:tabular-nums;}"
|
|
38475
38561
|
};
|
|
38476
|
-
function
|
|
38477
|
-
M(t, !0), v(e,
|
|
38562
|
+
function hL(e, t) {
|
|
38563
|
+
M(t, !0), v(e, mL);
|
|
38478
38564
|
let n = (e, t = I) => {
|
|
38479
38565
|
let n = J(() => o(Zs) !== null && t().r === o(X).rowIndex && t().c === o(X).colIndex), r = J(() => dt().get(`r${t().r}`, Z(t().c))), i = J(() => G.getValue(G.active, t().r, t().c)), a = J(() => o(ot) || o(n) ? null : on(t().r, t().c, o(i))), s = J(() => o(n) ? { text: o(Zs) } : ga(t().r, t().c, o(a)?.style?.numFmt)), l = J(() => o(ot) || o(n) ? null : jr(t().r, t().c)), d = J(() => o(ot) || o(l) || o(a)?.style?.fill ? 0 : ba(t().r, t().c, o(i), o(r))), f = J(() => o(n) ? "left" : o(r)?.align ?? (o(ot) ? "left" : typeof o(i) == "number" ? "right" : typeof o(i) == "boolean" || bu(o(i)) ? "center" : "left")), g = J(() => typeof o(i) == "number" && !o(ot) && !o(n) ? va(o(s).text, t().c, o(r), t().r, o(r)?.numFmt || o(a)?.style?.numFmt ? void 0 : o(i)) : null), v = J(() => o(ot) || o(n) ? null : Mr(t().r, t().c)), b = J(() => Bo(t().r, t().c)), x = J(() => Vo(t().r, t().c)), S = J(() => o(ot) ? void 0 : DS(o(Kr), t().r, t().c)), w = J(() => !!o(S) || !o(ot) && !!RS(ha(t().r, t().c))), T = J(() => o(Pr).length ? Wr(t().r, t().c) : null), E = J(() => In(t().r, t().c));
|
|
38480
|
-
var D =
|
|
38481
|
-
var t =
|
|
38566
|
+
var D = bI(), O = Y(D), k = (e) => {
|
|
38567
|
+
var t = aI(), n = Y(t);
|
|
38482
38568
|
let r;
|
|
38483
38569
|
var i = H(n, 2), s = (e) => {
|
|
38484
|
-
var t =
|
|
38570
|
+
var t = iI();
|
|
38485
38571
|
let n;
|
|
38486
38572
|
C((e) => n = pe(t, "", n, e), [() => ({ left: `${Math.round(o(a).dataBar.axis * 100)}%` })]), c(e, t);
|
|
38487
38573
|
};
|
|
@@ -38497,7 +38583,7 @@ function lL(e, t) {
|
|
|
38497
38583
|
o(a)?.dataBar && e(k);
|
|
38498
38584
|
});
|
|
38499
38585
|
var A = H(O, 2), M = (e) => {
|
|
38500
|
-
var n =
|
|
38586
|
+
var n = oI(), r = N(n);
|
|
38501
38587
|
{
|
|
38502
38588
|
let e = J(() => o(v).group.type === "column" ? "bar" : o(v).group.type === "winloss" ? "winloss" : "line"), n = J(() => Math.max(16, vn(t().r, t().c) - 8)), i = J(() => Math.max(10, (U.get(G.active).heights.get(t().r) ?? h()) - 8)), a = J(() => !!o(v).group.markers), s = J(() => j("sparklineObject", { type: o(v).group.type }));
|
|
38503
38589
|
Uc(r, {
|
|
@@ -38539,21 +38625,21 @@ function lL(e, t) {
|
|
|
38539
38625
|
o(v) && e(M);
|
|
38540
38626
|
});
|
|
38541
38627
|
var P = H(A, 2), F = (e) => {
|
|
38542
|
-
var t =
|
|
38628
|
+
var t = sI();
|
|
38543
38629
|
C(() => _(t, 1, `sheet-spill-edge ${o(b) ?? ""}`, "svelte-1qw5b1f")), c(e, t);
|
|
38544
38630
|
};
|
|
38545
38631
|
R(P, (e) => {
|
|
38546
38632
|
o(b) && e(F);
|
|
38547
38633
|
});
|
|
38548
38634
|
var ee = H(P, 2), ne = (e) => {
|
|
38549
|
-
var t =
|
|
38635
|
+
var t = cI();
|
|
38550
38636
|
C(() => _(t, 1, `sheet-ants ${o(x) ?? ""}`, "svelte-1qw5b1f")), c(e, t);
|
|
38551
38637
|
};
|
|
38552
38638
|
R(ee, (e) => {
|
|
38553
38639
|
o(x) && e(ne);
|
|
38554
38640
|
});
|
|
38555
38641
|
var L = H(ee, 2), re = (e) => {
|
|
38556
|
-
var t =
|
|
38642
|
+
var t = lI();
|
|
38557
38643
|
C(() => {
|
|
38558
38644
|
_(t, 1, `sheet-table-fill ${o(T).part ?? ""}`, "svelte-1qw5b1f"), pe(t, o(T).style);
|
|
38559
38645
|
}), c(e, t);
|
|
@@ -38564,7 +38650,7 @@ function lL(e, t) {
|
|
|
38564
38650
|
var ie = H(L, 2);
|
|
38565
38651
|
let ae;
|
|
38566
38652
|
var V = N(ie), oe = (e) => {
|
|
38567
|
-
|
|
38653
|
+
nI(e, () => o(a).icon.set, () => o(a).icon.index);
|
|
38568
38654
|
};
|
|
38569
38655
|
R(V, (e) => {
|
|
38570
38656
|
o(a)?.icon && e(oe);
|
|
@@ -38572,7 +38658,7 @@ function lL(e, t) {
|
|
|
38572
38658
|
var se = H(V, 1, !0);
|
|
38573
38659
|
B(ie);
|
|
38574
38660
|
var K = H(ie, 2), q = (e) => {
|
|
38575
|
-
var t =
|
|
38661
|
+
var t = uI();
|
|
38576
38662
|
C(() => {
|
|
38577
38663
|
z(t, "src", o(l).src), z(t, "alt", o(l).alt);
|
|
38578
38664
|
}), c(e, t);
|
|
@@ -38581,13 +38667,13 @@ function lL(e, t) {
|
|
|
38581
38667
|
o(l) && e(q);
|
|
38582
38668
|
});
|
|
38583
38669
|
var ce = H(K, 2), le = (e) => {
|
|
38584
|
-
var n =
|
|
38670
|
+
var n = pI();
|
|
38585
38671
|
let r;
|
|
38586
38672
|
var i = N(n), a = (e) => {
|
|
38587
|
-
var t =
|
|
38673
|
+
var t = dI();
|
|
38588
38674
|
c(e, t);
|
|
38589
38675
|
}, s = (e) => {
|
|
38590
|
-
var t =
|
|
38676
|
+
var t = fI();
|
|
38591
38677
|
c(e, t);
|
|
38592
38678
|
};
|
|
38593
38679
|
R(i, (e) => {
|
|
@@ -38602,14 +38688,14 @@ function lL(e, t) {
|
|
|
38602
38688
|
o(E) && e(le);
|
|
38603
38689
|
});
|
|
38604
38690
|
var ue = H(ce, 2), de = (e) => {
|
|
38605
|
-
var t =
|
|
38691
|
+
var t = mI();
|
|
38606
38692
|
C((e) => z(t, "aria-label", e), [() => j("invalidCellMark")]), c(e, t);
|
|
38607
38693
|
}, fe = J(() => o(Zt).has(`${t().r},${t().c}`));
|
|
38608
38694
|
R(ue, (e) => {
|
|
38609
38695
|
o(fe) && e(de);
|
|
38610
38696
|
});
|
|
38611
38697
|
var me = H(ue, 2), he = (e) => {
|
|
38612
|
-
var n =
|
|
38698
|
+
var n = hI();
|
|
38613
38699
|
C((e) => z(n, "aria-label", e), [() => j("openList")]), y("pointerdown", n, (e) => e.stopPropagation()), y("click", n, (e) => {
|
|
38614
38700
|
e.stopPropagation(), er(t().r, t().c);
|
|
38615
38701
|
}), c(e, n);
|
|
@@ -38620,32 +38706,32 @@ function lL(e, t) {
|
|
|
38620
38706
|
var _e = H(me, 2), ve = (e) => {
|
|
38621
38707
|
let n = J(() => Ji(t().r, t().c)), r = J(() => ha(t().r, t().c));
|
|
38622
38708
|
var i = u(), a = Y(i), s = (e) => {
|
|
38623
|
-
var i =
|
|
38709
|
+
var i = gI(), a = N(i);
|
|
38624
38710
|
W(a), B(i), C((e, t, n) => {
|
|
38625
38711
|
te(a, e), a.disabled = t, z(a, "aria-label", n);
|
|
38626
38712
|
}, [
|
|
38627
|
-
() =>
|
|
38713
|
+
() => aM(o(n), o(r)),
|
|
38628
38714
|
() => Tt(t().r, t().c),
|
|
38629
38715
|
() => Qi(t().r, t().c)
|
|
38630
38716
|
]), y("pointerdown", a, (e) => e.stopPropagation()), y("click", a, (e) => {
|
|
38631
38717
|
e.stopPropagation(), Xi(t().r, t().c);
|
|
38632
38718
|
}), c(e, i);
|
|
38633
38719
|
}, l = (e) => {
|
|
38634
|
-
var i =
|
|
38720
|
+
var i = _I(), a = N(i, !0);
|
|
38635
38721
|
B(i), C((e) => {
|
|
38636
38722
|
i.disabled = e, m(a, o(n).label ?? o(r));
|
|
38637
38723
|
}, [() => Tt(t().r, t().c)]), y("pointerdown", i, (e) => e.stopPropagation()), y("click", i, (e) => {
|
|
38638
38724
|
e.stopPropagation(), Zi(t().r, t().c, o(n));
|
|
38639
38725
|
}), c(e, i);
|
|
38640
38726
|
}, d = (e) => {
|
|
38641
|
-
var i =
|
|
38727
|
+
var i = yI();
|
|
38642
38728
|
p(i, 22, () => o(n).choices ?? [], (e) => e, (e, i, a) => {
|
|
38643
|
-
var s =
|
|
38729
|
+
var s = vI(), l = N(s);
|
|
38644
38730
|
W(l);
|
|
38645
38731
|
var u = H(l, 1, !0);
|
|
38646
38732
|
B(s), C((e, r) => {
|
|
38647
38733
|
z(l, "name", `sheet-radio-${o(n).id}-${t().r}-${t().c}`), te(l, e), l.disabled = r, m(u, i);
|
|
38648
|
-
}, [() =>
|
|
38734
|
+
}, [() => sM(o(n), o(r)) === o(a), () => Tt(t().r, t().c)]), y("pointerdown", l, (e) => e.stopPropagation()), y("click", l, (e) => {
|
|
38649
38735
|
e.stopPropagation(), Yi(t().r, t().c, i);
|
|
38650
38736
|
}), c(e, s);
|
|
38651
38737
|
}), B(i), C((e) => z(i, "aria-label", e), [() => Qi(t().r, t().c)]), c(e, i);
|
|
@@ -38672,7 +38758,7 @@ function lL(e, t) {
|
|
|
38672
38758
|
}, r = V(t, "rows", 3, 50), i = V(t, "columns", 3, 12), s = V(t, "height", 3, 420), d = V(t, "columnWidth", 3, 96), h = V(t, "rowHeight", 3, 22), g = V(t, "look", 3, "theme");
|
|
38673
38759
|
V(t, "extras", 19, () => []);
|
|
38674
38760
|
let b = V(t, "showRibbon", 3, !0), w = V(t, "showFormulaBar", 3, !0), T = V(t, "showTabs", 3, !0), O = V(t, "showStatusBar", 3, !0);
|
|
38675
|
-
|
|
38761
|
+
QA();
|
|
38676
38762
|
let k = J(() => yp(t.localization?.text));
|
|
38677
38763
|
Sp(() => o(k));
|
|
38678
38764
|
let j = Cp(), P = J(() => t.localization?.locale ? { locale: t.localization.locale } : void 0), F = J(() => {
|
|
@@ -38689,7 +38775,7 @@ function lL(e, t) {
|
|
|
38689
38775
|
function ae(e) {
|
|
38690
38776
|
return pw(o(F)) || e === "" ? e : /^[+-]?\d+\.\d+$/.test(e) ? e.replace(".", o(F).decimal) : e;
|
|
38691
38777
|
}
|
|
38692
|
-
let U = t.document ??
|
|
38778
|
+
let U = t.document ?? bM(t.workbook ? { workbook: t.workbook } : { sheets: t.data ? [...t.data] : t.gridSheets ? Object.keys(t.gridSheets).map((e) => ({
|
|
38693
38779
|
name: e,
|
|
38694
38780
|
cells: []
|
|
38695
38781
|
})) : [{
|
|
@@ -38822,7 +38908,7 @@ function lL(e, t) {
|
|
|
38822
38908
|
}, we = (e) => e.replace(/[&<>"']/g, (e) => Ce[e]);
|
|
38823
38909
|
function Te() {
|
|
38824
38910
|
let e = G.active, t = U.get(e);
|
|
38825
|
-
return
|
|
38911
|
+
return kP({
|
|
38826
38912
|
name: e,
|
|
38827
38913
|
rowCount: G.rowCount(e),
|
|
38828
38914
|
colCount: G.colCount(e),
|
|
@@ -39258,13 +39344,13 @@ function lL(e, t) {
|
|
|
39258
39344
|
let tn = () => U.get(G.active).conditionalFormats, nn = { evaluate: (e, t) => G.evaluateText(G.active, e, void 0, t) }, rn = /* @__PURE__ */ new Map();
|
|
39259
39345
|
function an(e) {
|
|
39260
39346
|
let t = rn.get(e.id);
|
|
39261
|
-
return t || (t =
|
|
39347
|
+
return t || (t = Ij(e, (e, t) => G.getValue(G.active, e, t), (e, t) => ga(e, t).text), rn.set(e.id, t)), t;
|
|
39262
39348
|
}
|
|
39263
39349
|
function on(e, t, n) {
|
|
39264
39350
|
let r = tn();
|
|
39265
|
-
return r.length ?
|
|
39351
|
+
return r.length ? qj(r, e, t, n, ga(e, t).text, an, nn) : null;
|
|
39266
39352
|
}
|
|
39267
|
-
let sn = D(null), cn = D(!1), ln = J(() => (o(Fe), tn())), un = J(() => (o(Fe), o(it), o(X), Hn())), dn = () => U.get(G.active).merges, fn = J(() => (o(Fe),
|
|
39353
|
+
let sn = D(null), cn = D(!1), ln = J(() => (o(Fe), tn())), un = J(() => (o(Fe), o(it), o(X), Hn())), dn = () => U.get(G.active).merges, fn = J(() => (o(Fe), SP(dn()))), pn = D(null);
|
|
39268
39354
|
function mn(e) {
|
|
39269
39355
|
let t = G.active, n = U.get(t).merges, r = (e) => {
|
|
39270
39356
|
U.get(t).merges = e, Le(), q({ kind: "merges" });
|
|
@@ -39272,7 +39358,7 @@ function lL(e, t) {
|
|
|
39272
39358
|
r(e), Na()?.recordUndo(() => r(n), () => r(e));
|
|
39273
39359
|
}
|
|
39274
39360
|
function hn(e, t) {
|
|
39275
|
-
return
|
|
39361
|
+
return _P(dn(), e, t);
|
|
39276
39362
|
}
|
|
39277
39363
|
let gn = K({});
|
|
39278
39364
|
S(() => {
|
|
@@ -39284,23 +39370,23 @@ function lL(e, t) {
|
|
|
39284
39370
|
return gn[n] ?? t.columnWidths?.[n] ?? d();
|
|
39285
39371
|
};
|
|
39286
39372
|
function vn(e, t) {
|
|
39287
|
-
let n = _n, r =
|
|
39373
|
+
let n = _n, r = gP(dn(), e, t);
|
|
39288
39374
|
if (!r || r[0] !== e || r[1] !== t) return n(t);
|
|
39289
39375
|
let i = 0;
|
|
39290
39376
|
for (let e = r[1]; e <= r[3]; e += 1) i += n(e);
|
|
39291
39377
|
return i;
|
|
39292
39378
|
}
|
|
39293
39379
|
function bn(e, t) {
|
|
39294
|
-
let n = Dt(t).map(
|
|
39380
|
+
let n = Dt(t).map(mP);
|
|
39295
39381
|
if (!bt("formatCells") && cp(dt(), gt, n, yt().ranges)) {
|
|
39296
39382
|
Et();
|
|
39297
39383
|
return;
|
|
39298
39384
|
}
|
|
39299
|
-
if (e === "center" && n.length === 1 &&
|
|
39385
|
+
if (e === "center" && n.length === 1 && hP(dn(), n).some((e) => e.join() === n[0].join())) {
|
|
39300
39386
|
Sn(t);
|
|
39301
39387
|
return;
|
|
39302
39388
|
}
|
|
39303
|
-
let r =
|
|
39389
|
+
let r = vP(dn(), n, e, (e, t) => G.getRaw(G.active, e, t) === "");
|
|
39304
39390
|
if (!(r.merges.length === dn().length && r.merges.every((e, t) => e === dn()[t]))) {
|
|
39305
39391
|
if (r.clear.length) {
|
|
39306
39392
|
L(pn, {
|
|
@@ -39329,10 +39415,10 @@ function lL(e, t) {
|
|
|
39329
39415
|
}), e.origins[0] && (t.setActiveCell(e.origins[0][0], e.origins[0][1]), t.setSelection(e.origins[0][0], e.origins[0][1])), xo(t);
|
|
39330
39416
|
}
|
|
39331
39417
|
function Sn(e) {
|
|
39332
|
-
let t = Dt(e).map(
|
|
39418
|
+
let t = Dt(e).map(mP), n = yP(dn(), t);
|
|
39333
39419
|
n.length !== dn().length && (e.batch(() => mn(n)), xo(e));
|
|
39334
39420
|
}
|
|
39335
|
-
let Cn = () =>
|
|
39421
|
+
let Cn = () => xP(dn(), Dt(Na()).map(mP)), wn = () => U.get(G.active).autoFilter, Tn = J(() => (o(Fe), wn())), En = (e, t) => ga(e, t).text, Dn = (e, t) => G.getValue(G.active, e, t), On = (e, t) => on(e, t, G.getValue(G.active, e, t))?.style?.fill ?? dt().get(`r${e}`, Z(t))?.fill ?? null, kn = () => ({ fillAt: On }), An = (e, t, n) => n === "fill" ? On(e, t) : on(e, t, G.getValue(G.active, e, t))?.style?.color ?? dt().get(`r${e}`, Z(t))?.color ?? null;
|
|
39336
39422
|
function jn(e, t, n) {
|
|
39337
39423
|
let r = G.getValue(e, t, n);
|
|
39338
39424
|
if (bu(r)) return r.error;
|
|
@@ -39373,7 +39459,7 @@ function lL(e, t) {
|
|
|
39373
39459
|
col: o(X).colIndex
|
|
39374
39460
|
}), n = o(it)[o(it).length - 1];
|
|
39375
39461
|
Pn({
|
|
39376
|
-
range: n && (n[0] !== n[2] || n[1] !== n[3]) ?
|
|
39462
|
+
range: n && (n[0] !== n[2] || n[1] !== n[3]) ? mP(n) : t,
|
|
39377
39463
|
filters: {}
|
|
39378
39464
|
}, e);
|
|
39379
39465
|
}
|
|
@@ -39439,7 +39525,7 @@ function lL(e, t) {
|
|
|
39439
39525
|
}
|
|
39440
39526
|
function Un(e) {
|
|
39441
39527
|
Vn([{
|
|
39442
|
-
id:
|
|
39528
|
+
id: Fj(),
|
|
39443
39529
|
rects: Hn(),
|
|
39444
39530
|
...e
|
|
39445
39531
|
}, ...tn()]);
|
|
@@ -39480,19 +39566,19 @@ function lL(e, t) {
|
|
|
39480
39566
|
case "cf-data-bar":
|
|
39481
39567
|
Un({
|
|
39482
39568
|
kind: "dataBar",
|
|
39483
|
-
color:
|
|
39569
|
+
color: Mj
|
|
39484
39570
|
});
|
|
39485
39571
|
break;
|
|
39486
39572
|
case "cf-color-scale-3":
|
|
39487
39573
|
Un({
|
|
39488
39574
|
kind: "colorScale",
|
|
39489
|
-
colors:
|
|
39575
|
+
colors: Nj["green-yellow-red"]
|
|
39490
39576
|
});
|
|
39491
39577
|
break;
|
|
39492
39578
|
case "cf-color-scale-2":
|
|
39493
39579
|
Un({
|
|
39494
39580
|
kind: "colorScale",
|
|
39495
|
-
colors:
|
|
39581
|
+
colors: Nj["green-white"]
|
|
39496
39582
|
});
|
|
39497
39583
|
break;
|
|
39498
39584
|
case "cf-icon-set":
|
|
@@ -39502,7 +39588,7 @@ function lL(e, t) {
|
|
|
39502
39588
|
});
|
|
39503
39589
|
break;
|
|
39504
39590
|
case "cf-clear-selection": {
|
|
39505
|
-
let e =
|
|
39591
|
+
let e = Yj(tn(), Hn());
|
|
39506
39592
|
(e.length !== tn().length || e.some((e, t) => e !== tn()[t])) && Vn(e);
|
|
39507
39593
|
break;
|
|
39508
39594
|
}
|
|
@@ -39685,7 +39771,7 @@ function lL(e, t) {
|
|
|
39685
39771
|
});
|
|
39686
39772
|
return;
|
|
39687
39773
|
}
|
|
39688
|
-
let n = Dt().map(
|
|
39774
|
+
let n = Dt().map(mP), r = n[n.length - 1];
|
|
39689
39775
|
if (!r || r[0] === r[2] && r[1] === r[3]) {
|
|
39690
39776
|
Wa(j("selectRangeForSparklines"));
|
|
39691
39777
|
return;
|
|
@@ -39715,7 +39801,7 @@ function lL(e, t) {
|
|
|
39715
39801
|
Et();
|
|
39716
39802
|
return;
|
|
39717
39803
|
}
|
|
39718
|
-
let e = Dt().map(
|
|
39804
|
+
let e = Dt().map(mP), t = sw(xr(), e);
|
|
39719
39805
|
if (t.length === xr().length) {
|
|
39720
39806
|
Wa(j("noSparklinesHere"));
|
|
39721
39807
|
return;
|
|
@@ -39723,12 +39809,12 @@ function lL(e, t) {
|
|
|
39723
39809
|
wr(t), Wa(j("sparklinesCleared"));
|
|
39724
39810
|
}
|
|
39725
39811
|
function jr(e, t) {
|
|
39726
|
-
let n =
|
|
39812
|
+
let n = aP(ha(e, t));
|
|
39727
39813
|
if (!n) return null;
|
|
39728
39814
|
let r = G.getValue(G.active, e, t);
|
|
39729
39815
|
if (bu(r)) return null;
|
|
39730
39816
|
let i = String(r ?? "");
|
|
39731
|
-
if (!
|
|
39817
|
+
if (!oP(i)) return null;
|
|
39732
39818
|
let a = "";
|
|
39733
39819
|
if (n.alt) {
|
|
39734
39820
|
let r = G.evaluateText(G.active, `=${n.alt}`, void 0, {
|
|
@@ -39813,7 +39899,7 @@ function lL(e, t) {
|
|
|
39813
39899
|
}, !0);
|
|
39814
39900
|
}
|
|
39815
39901
|
function Br(e) {
|
|
39816
|
-
let t = Dt(e).map(
|
|
39902
|
+
let t = Dt(e).map(mP), n = t[t.length - 1];
|
|
39817
39903
|
return n && (n[0] !== n[2] || n[1] !== n[3]) ? n : (e ? fl(Yd(e), {
|
|
39818
39904
|
row: o(X).rowIndex,
|
|
39819
39905
|
col: o(X).colIndex
|
|
@@ -39983,7 +40069,7 @@ function lL(e, t) {
|
|
|
39983
40069
|
return;
|
|
39984
40070
|
}
|
|
39985
40071
|
let e = Gr();
|
|
39986
|
-
for (let [t, n, r, i] of Dt().map(
|
|
40072
|
+
for (let [t, n, r, i] of Dt().map(mP)) for (let a = t; a <= r; a += 1) for (let t = n; t <= i; t += 1) e = kS(e, a, t);
|
|
39987
40073
|
if (e === Gr()) {
|
|
39988
40074
|
Wa(j("noLinkHere"));
|
|
39989
40075
|
return;
|
|
@@ -40046,13 +40132,13 @@ function lL(e, t) {
|
|
|
40046
40132
|
Et();
|
|
40047
40133
|
return;
|
|
40048
40134
|
}
|
|
40049
|
-
let r =
|
|
40135
|
+
let r = Tj(e, ri, ii);
|
|
40050
40136
|
if (!r.length) {
|
|
40051
40137
|
Wa(j("pivot.needValue"));
|
|
40052
40138
|
return;
|
|
40053
40139
|
}
|
|
40054
|
-
let i =
|
|
40055
|
-
...
|
|
40140
|
+
let i = kj(e, r), a = {
|
|
40141
|
+
...gj(e),
|
|
40056
40142
|
written: i
|
|
40057
40143
|
};
|
|
40058
40144
|
oi = !0;
|
|
@@ -40078,7 +40164,7 @@ function lL(e, t) {
|
|
|
40078
40164
|
if (e) {
|
|
40079
40165
|
L(ti, {
|
|
40080
40166
|
pivot: e,
|
|
40081
|
-
fields:
|
|
40167
|
+
fields: yj(e.source, ii),
|
|
40082
40168
|
existing: !0
|
|
40083
40169
|
}, !0);
|
|
40084
40170
|
return;
|
|
@@ -40088,9 +40174,9 @@ function lL(e, t) {
|
|
|
40088
40174
|
Wa(j("selectBlockToPivot"));
|
|
40089
40175
|
return;
|
|
40090
40176
|
}
|
|
40091
|
-
let n =
|
|
40177
|
+
let n = yj(t, ii);
|
|
40092
40178
|
L(ti, {
|
|
40093
|
-
pivot:
|
|
40179
|
+
pivot: Aj(t, n),
|
|
40094
40180
|
fields: n,
|
|
40095
40181
|
existing: !1
|
|
40096
40182
|
}, !0);
|
|
@@ -40109,7 +40195,7 @@ function lL(e, t) {
|
|
|
40109
40195
|
Wa(j("noPivotHere"));
|
|
40110
40196
|
return;
|
|
40111
40197
|
}
|
|
40112
|
-
let t =
|
|
40198
|
+
let t = Oj(e, o(X).rowIndex, o(X).colIndex, ri, ii);
|
|
40113
40199
|
if (!t || !t.records.length) {
|
|
40114
40200
|
Wa(j("noPivotDetails"));
|
|
40115
40201
|
return;
|
|
@@ -40213,7 +40299,7 @@ function lL(e, t) {
|
|
|
40213
40299
|
}
|
|
40214
40300
|
l().then(() => requestAnimationFrame(vi));
|
|
40215
40301
|
});
|
|
40216
|
-
let yi = J(() =>
|
|
40302
|
+
let yi = J(() => fP(dP(t.presence ?? []), G.active)), bi = D(K({}));
|
|
40217
40303
|
function xi() {
|
|
40218
40304
|
let e = o(Pt);
|
|
40219
40305
|
if (!e || !o(yi).length) {
|
|
@@ -40224,7 +40310,7 @@ function lL(e, t) {
|
|
|
40224
40310
|
for (let e of o(yi)) {
|
|
40225
40311
|
let [a, o, s, c] = e.rect, l = n(a, o), u = n(s, c) ?? l;
|
|
40226
40312
|
if (!l || !u) continue;
|
|
40227
|
-
let d = Math.min(hi(l, t), hi(u, t)), f = Math.min(l.top, u.top) - t.top, p = Math.max(hi(l, t) + l.width, hi(u, t) + u.width) - d, m = Math.max(l.bottom, u.bottom) - t.top - f, h =
|
|
40313
|
+
let d = Math.min(hi(l, t), hi(u, t)), f = Math.min(l.top, u.top) - t.top, p = Math.max(hi(l, t) + l.width, hi(u, t) + u.width) - d, m = Math.max(l.bottom, u.bottom) - t.top - f, h = pP(e), g = n(h.row, h.col) ?? l, _ = g.top - r < 20;
|
|
40228
40314
|
i[e.id] = {
|
|
40229
40315
|
left: d,
|
|
40230
40316
|
top: f,
|
|
@@ -40246,7 +40332,7 @@ function lL(e, t) {
|
|
|
40246
40332
|
});
|
|
40247
40333
|
function Si() {
|
|
40248
40334
|
if (!t.onPresence) return;
|
|
40249
|
-
let e = o(it).length ? o(it).map(
|
|
40335
|
+
let e = o(it).length ? o(it).map(mP) : [], n = e[e.length - 1] ?? [
|
|
40250
40336
|
o(X).rowIndex,
|
|
40251
40337
|
o(X).colIndex,
|
|
40252
40338
|
o(X).rowIndex,
|
|
@@ -40405,7 +40491,7 @@ function lL(e, t) {
|
|
|
40405
40491
|
"paper-letter": "Letter",
|
|
40406
40492
|
"paper-legal": "Legal",
|
|
40407
40493
|
"paper-tabloid": "Tabloid"
|
|
40408
|
-
}, Ii = J(() => (o(it), o(X), mp(Dt().map(
|
|
40494
|
+
}, Ii = J(() => (o(it), o(X), mp(Dt().map(mP))));
|
|
40409
40495
|
function Li(e = G.active) {
|
|
40410
40496
|
o(at) && (U.get(e).widths = { ...o(at).getColumnWidths() });
|
|
40411
40497
|
}
|
|
@@ -40455,7 +40541,7 @@ function lL(e, t) {
|
|
|
40455
40541
|
})) : [];
|
|
40456
40542
|
});
|
|
40457
40543
|
function Wi(e, t) {
|
|
40458
|
-
let n =
|
|
40544
|
+
let n = mM(t);
|
|
40459
40545
|
for (let t = 0; t < n.length; t += 1) {
|
|
40460
40546
|
let r = n[t];
|
|
40461
40547
|
for (let n = 0; n < r.length; n += 1) G.setRaw(e, t, n, r[n]);
|
|
@@ -40472,10 +40558,10 @@ function lL(e, t) {
|
|
|
40472
40558
|
let t = o(Hi);
|
|
40473
40559
|
if (!t) return;
|
|
40474
40560
|
let n = t.rows[e.rowIndex], r = t.fields.find((t) => t.field === e.columnId);
|
|
40475
|
-
!n || !r || (n[r.field] =
|
|
40561
|
+
!n || !r || (n[r.field] = gM(r, e.newValue), Gi(), q({ kind: "cells" }), Le());
|
|
40476
40562
|
}
|
|
40477
40563
|
function Ji(e, t) {
|
|
40478
|
-
return o(Fe),
|
|
40564
|
+
return o(Fe), rM(U.get(G.active).cellTypes, e, t);
|
|
40479
40565
|
}
|
|
40480
40566
|
function Yi(e, t, n) {
|
|
40481
40567
|
if (Tt(e, t)) {
|
|
@@ -40487,7 +40573,7 @@ function lL(e, t) {
|
|
|
40487
40573
|
}
|
|
40488
40574
|
function Xi(e, t) {
|
|
40489
40575
|
let n = Ji(e, t);
|
|
40490
|
-
n && Yi(e, t,
|
|
40576
|
+
n && Yi(e, t, oM(n, ha(e, t)));
|
|
40491
40577
|
}
|
|
40492
40578
|
function Zi(e, n, r) {
|
|
40493
40579
|
t.onCellAction?.({
|
|
@@ -40713,7 +40799,7 @@ function lL(e, t) {
|
|
|
40713
40799
|
}
|
|
40714
40800
|
let ya = J(() => (o(Fe), ha(o(X).rowIndex, o(X).colIndex)));
|
|
40715
40801
|
function ba(e, t, n, r) {
|
|
40716
|
-
if (typeof n != "string" || n === "" || r?.wrap ||
|
|
40802
|
+
if (typeof n != "string" || n === "" || r?.wrap || gP(dn(), e, t) || r?.align === "right" || r?.align === "center") return 0;
|
|
40717
40803
|
let i = r?.fill ?? "", a = dt(), s = 0;
|
|
40718
40804
|
for (let n = t + 1; n < o(mt) && G.getRaw(G.active, e, n) === "" && (a.get(`r${e}`, Z(n))?.fill ?? "") === i; n += 1) s += _n(n);
|
|
40719
40805
|
return s;
|
|
@@ -40744,7 +40830,7 @@ function lL(e, t) {
|
|
|
40744
40830
|
Wa(j("nameBoxBadName", { name: e })), Na()?.focus();
|
|
40745
40831
|
return;
|
|
40746
40832
|
}
|
|
40747
|
-
let t = Dt().map(
|
|
40833
|
+
let t = Dt().map(mP), [n, r, i, a] = t[t.length - 1] ?? [
|
|
40748
40834
|
o(X).rowIndex,
|
|
40749
40835
|
o(X).colIndex,
|
|
40750
40836
|
o(X).rowIndex,
|
|
@@ -40819,7 +40905,7 @@ function lL(e, t) {
|
|
|
40819
40905
|
o(X).colIndex
|
|
40820
40906
|
]], t = /* @__PURE__ */ new Set();
|
|
40821
40907
|
for (let n of e) {
|
|
40822
|
-
let [, e, , r] =
|
|
40908
|
+
let [, e, , r] = bP(dn(), [
|
|
40823
40909
|
n[0],
|
|
40824
40910
|
n[1],
|
|
40825
40911
|
n[2],
|
|
@@ -40831,7 +40917,7 @@ function lL(e, t) {
|
|
|
40831
40917
|
if (!n) return;
|
|
40832
40918
|
let r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
|
|
40833
40919
|
for (let t of e) {
|
|
40834
|
-
let [e, n, a, s] =
|
|
40920
|
+
let [e, n, a, s] = bP(dn(), [
|
|
40835
40921
|
t[0],
|
|
40836
40922
|
t[1],
|
|
40837
40923
|
t[2],
|
|
@@ -41062,11 +41148,11 @@ function lL(e, t) {
|
|
|
41062
41148
|
return;
|
|
41063
41149
|
}
|
|
41064
41150
|
let i = U.get(G.active);
|
|
41065
|
-
if (e === "clear-cell-type") i.cellTypes =
|
|
41151
|
+
if (e === "clear-cell-type") i.cellTypes = lM(i.cellTypes, r);
|
|
41066
41152
|
else {
|
|
41067
41153
|
let t = e === "insert-checkbox" ? "checkbox" : "button";
|
|
41068
|
-
i.cellTypes =
|
|
41069
|
-
id:
|
|
41154
|
+
i.cellTypes = uM(i.cellTypes, {
|
|
41155
|
+
id: nM(),
|
|
41070
41156
|
kind: t,
|
|
41071
41157
|
rects: r
|
|
41072
41158
|
});
|
|
@@ -41143,7 +41229,7 @@ function lL(e, t) {
|
|
|
41143
41229
|
bottom: c,
|
|
41144
41230
|
right: l
|
|
41145
41231
|
};
|
|
41146
|
-
let u =
|
|
41232
|
+
let u = bP(dn(), [
|
|
41147
41233
|
a,
|
|
41148
41234
|
s,
|
|
41149
41235
|
c,
|
|
@@ -41179,7 +41265,7 @@ function lL(e, t) {
|
|
|
41179
41265
|
Et();
|
|
41180
41266
|
return;
|
|
41181
41267
|
}
|
|
41182
|
-
if (
|
|
41268
|
+
if (CP(dn(), [
|
|
41183
41269
|
a,
|
|
41184
41270
|
o,
|
|
41185
41271
|
s,
|
|
@@ -41223,12 +41309,12 @@ function lL(e, t) {
|
|
|
41223
41309
|
let e = f.map((e) => Array.from({ length: c - o + 1 }, (t, n) => G.getRaw(_, e, o + n))), t = (e) => {
|
|
41224
41310
|
f.forEach((t, n) => e[n].forEach((e, n) => G.setRaw(_, t, o + n, e))), G.recalculate(), Le(), q({ kind: "cells" });
|
|
41225
41311
|
};
|
|
41226
|
-
r.recordUndo(() => t(v), () => t(e)), q({ kind: "cells" }),
|
|
41312
|
+
r.recordUndo(() => t(v), () => t(e)), q({ kind: "cells" }), hP(dn(), [[
|
|
41227
41313
|
u,
|
|
41228
41314
|
o,
|
|
41229
41315
|
s,
|
|
41230
41316
|
c
|
|
41231
|
-
]]).length && mn(
|
|
41317
|
+
]]).length && mn(wP(dn(), [
|
|
41232
41318
|
u,
|
|
41233
41319
|
o,
|
|
41234
41320
|
s,
|
|
@@ -41373,7 +41459,7 @@ function lL(e, t) {
|
|
|
41373
41459
|
return;
|
|
41374
41460
|
case "print-area-set": {
|
|
41375
41461
|
if (t.onAction?.(e, n) === !0) return;
|
|
41376
|
-
let r = Dt(n).map(
|
|
41462
|
+
let r = Dt(n).map(mP);
|
|
41377
41463
|
Pi({
|
|
41378
41464
|
...ji(),
|
|
41379
41465
|
printArea: r
|
|
@@ -41530,7 +41616,7 @@ function lL(e, t) {
|
|
|
41530
41616
|
let s = o(it)[o(it).length - 1], c = {
|
|
41531
41617
|
row: s ? Math.min(s[0], s[2]) : o(X).rowIndex,
|
|
41532
41618
|
col: s ? Math.min(s[1], s[3]) : o(X).colIndex
|
|
41533
|
-
}, l =
|
|
41619
|
+
}, l = GM(e, c, n, t, s ? {
|
|
41534
41620
|
rows: Math.abs(s[2] - s[0]) + 1,
|
|
41535
41621
|
cols: Math.abs(s[3] - s[1]) + 1
|
|
41536
41622
|
} : void 0);
|
|
@@ -41574,7 +41660,7 @@ function lL(e, t) {
|
|
|
41574
41660
|
let s = {
|
|
41575
41661
|
row: o.row,
|
|
41576
41662
|
col: o.col
|
|
41577
|
-
}, c =
|
|
41663
|
+
}, c = UM(o.source, G.getValue(G.active, o.row, o.col), n, o.offset, s, o.turn);
|
|
41578
41664
|
if (c.kind === "skip") continue;
|
|
41579
41665
|
let l = [[
|
|
41580
41666
|
o.row,
|
|
@@ -41679,7 +41765,7 @@ function lL(e, t) {
|
|
|
41679
41765
|
}
|
|
41680
41766
|
let r = o(vo) ?? await _o();
|
|
41681
41767
|
L(vo, null);
|
|
41682
|
-
let i = r ?
|
|
41768
|
+
let i = r ? BM({
|
|
41683
41769
|
text: r.text,
|
|
41684
41770
|
html: r.html ?? void 0
|
|
41685
41771
|
}) : null;
|
|
@@ -41687,10 +41773,10 @@ function lL(e, t) {
|
|
|
41687
41773
|
Wa(j("nothingToPaste"));
|
|
41688
41774
|
return;
|
|
41689
41775
|
}
|
|
41690
|
-
let a = r?.html ?
|
|
41776
|
+
let a = r?.html ? RM(r.html) : null, s = a ? {
|
|
41691
41777
|
grid: i,
|
|
41692
41778
|
origin: a
|
|
41693
|
-
} :
|
|
41779
|
+
} : WM(i);
|
|
41694
41780
|
mo(s.grid, s.origin, e) && xo(t);
|
|
41695
41781
|
}
|
|
41696
41782
|
function xo(e) {
|
|
@@ -41703,7 +41789,7 @@ function lL(e, t) {
|
|
|
41703
41789
|
let t = ji();
|
|
41704
41790
|
e.push(t.orientation === "landscape" ? "page-landscape" : "page-portrait"), e.push(`paper-${t.paper.toLowerCase()}`);
|
|
41705
41791
|
let n = US(t.margins);
|
|
41706
|
-
return n && e.push(`margins-${n}`), t.gridlines && e.push("print-gridlines"), t.headings && e.push("print-headings"),
|
|
41792
|
+
return n && e.push(`margins-${n}`), t.gridlines && e.push("print-gridlines"), t.headings && e.push("print-headings"), gP(dn(), o(X).rowIndex, o(X).colIndex) && e.push("merge-center"), e;
|
|
41707
41793
|
}), Co = D(null);
|
|
41708
41794
|
function wo() {
|
|
41709
41795
|
let e = Ed();
|
|
@@ -41879,7 +41965,7 @@ function lL(e, t) {
|
|
|
41879
41965
|
if (!a) return;
|
|
41880
41966
|
let o = n.trim() === "(All)" ? "" : n.trim();
|
|
41881
41967
|
o !== a.value && si({
|
|
41882
|
-
...
|
|
41968
|
+
...gj(r),
|
|
41883
41969
|
filters: (r.filters ?? []).map((e, t) => t === i ? {
|
|
41884
41970
|
...e,
|
|
41885
41971
|
value: o
|
|
@@ -41935,7 +42021,7 @@ function lL(e, t) {
|
|
|
41935
42021
|
t,
|
|
41936
42022
|
n,
|
|
41937
42023
|
t
|
|
41938
|
-
]])[0], a = i[0] === i[2] && i[1] === i[3] ?
|
|
42024
|
+
]])[0], a = i[0] === i[2] && i[1] === i[3] ? gP(dn(), n, t) : null, [s, c, l, u] = a && a[0] === n && a[1] === t ? a : i;
|
|
41939
42025
|
if (n === s && t === c && (L(Lo, {
|
|
41940
42026
|
origin: {
|
|
41941
42027
|
row: n,
|
|
@@ -42022,19 +42108,19 @@ function lL(e, t) {
|
|
|
42022
42108
|
}
|
|
42023
42109
|
function Yo() {
|
|
42024
42110
|
let e = o(Lo);
|
|
42025
|
-
return !e || !e.cells.length ? null :
|
|
42111
|
+
return !e || !e.cells.length ? null : CM(qo(e, "shown"), e.origin).html;
|
|
42026
42112
|
}
|
|
42027
42113
|
function Xo(e) {
|
|
42028
42114
|
let t = o(Lo), n = e.text.replace(/\r\n/g, "\n").replace(/\n$/, "");
|
|
42029
42115
|
if (t && t.cells.length && Jo(t) === n) return mo(qo(t, "plain"), t.cut ? null : t.origin, { what: "all" }, Ko(t));
|
|
42030
|
-
let r = e.html ?
|
|
42116
|
+
let r = e.html ? zM(e.html) : null;
|
|
42031
42117
|
if (!r) {
|
|
42032
|
-
let e =
|
|
42118
|
+
let e = DM(n), t = e.reduce((e, t) => Math.max(e, t.length), 0);
|
|
42033
42119
|
return e.length + o(X).rowIndex > o(pt) || t + o(X).colIndex > o(mt) ? mo(e, null, { what: "all" }) : void 0;
|
|
42034
42120
|
}
|
|
42035
|
-
let i =
|
|
42121
|
+
let i = RM(e.html);
|
|
42036
42122
|
if (i) return mo(r, i, { what: "all" });
|
|
42037
|
-
let a =
|
|
42123
|
+
let a = WM(r);
|
|
42038
42124
|
return mo(a.grid, a.origin, { what: "all" });
|
|
42039
42125
|
}
|
|
42040
42126
|
function Zo(e) {
|
|
@@ -42848,7 +42934,7 @@ function lL(e, t) {
|
|
|
42848
42934
|
newWorkbook: De,
|
|
42849
42935
|
refresh: $e,
|
|
42850
42936
|
act: nt
|
|
42851
|
-
}, vc =
|
|
42937
|
+
}, vc = pL();
|
|
42852
42938
|
let yc;
|
|
42853
42939
|
var bc = N(vc), xc = (e) => {
|
|
42854
42940
|
xm(e, {
|
|
@@ -42910,16 +42996,16 @@ function lL(e, t) {
|
|
|
42910
42996
|
w() && o(ct) && e(Cc);
|
|
42911
42997
|
});
|
|
42912
42998
|
var wc = H(Sc, 2), Tc = (e) => {
|
|
42913
|
-
var t =
|
|
42914
|
-
var t =
|
|
42999
|
+
var t = PI(), n = N(t), r = (e) => {
|
|
43000
|
+
var t = jI(), n = N(t, !0);
|
|
42915
43001
|
B(t), C((e) => m(n, e), [() => j("noComments")]), c(e, t);
|
|
42916
43002
|
}, i = (e) => {
|
|
42917
43003
|
var t = u(), n = Y(t);
|
|
42918
43004
|
p(n, 17, () => o(Lt), (e) => `${e.row}:${e.col}`, (e, t) => {
|
|
42919
|
-
var n =
|
|
43005
|
+
var n = NI(), r = N(n), i = N(r);
|
|
42920
43006
|
B(r);
|
|
42921
43007
|
var a = H(r, 2), s = (e) => {
|
|
42922
|
-
var n =
|
|
43008
|
+
var n = MI(), r = N(n);
|
|
42923
43009
|
B(n), C(() => m(r, `${o(t).thread.author ?? ""}:`)), c(e, n);
|
|
42924
43010
|
};
|
|
42925
43011
|
R(a, (e) => {
|
|
@@ -42943,7 +43029,7 @@ function lL(e, t) {
|
|
|
42943
43029
|
var Ec = H(wc, 2);
|
|
42944
43030
|
let Dc;
|
|
42945
43031
|
var Oc = N(Ec), kc = (e) => {
|
|
42946
|
-
var t =
|
|
43032
|
+
var t = FI();
|
|
42947
43033
|
let n, r;
|
|
42948
43034
|
C(() => {
|
|
42949
43035
|
n = _(t, 1, "sheet-resize-guide svelte-1qw5b1f", null, n, {
|
|
@@ -42959,7 +43045,7 @@ function lL(e, t) {
|
|
|
42959
43045
|
o(bs) && e(kc);
|
|
42960
43046
|
});
|
|
42961
43047
|
var Ac = H(Oc, 2), Mc = (e) => {
|
|
42962
|
-
var t =
|
|
43048
|
+
var t = II();
|
|
42963
43049
|
let n;
|
|
42964
43050
|
var r = N(t, !0);
|
|
42965
43051
|
B(t), C(() => {
|
|
@@ -42973,10 +43059,10 @@ function lL(e, t) {
|
|
|
42973
43059
|
o(ys) && e(Mc);
|
|
42974
43060
|
});
|
|
42975
43061
|
var Nc = H(Ac, 2), Pc = (e) => {
|
|
42976
|
-
var t =
|
|
42977
|
-
var t =
|
|
43062
|
+
var t = VI(), n = N(t), r = (e) => {
|
|
43063
|
+
var t = RI();
|
|
42978
43064
|
p(t, 20, () => Array.from({ length: o(Ke) }, (e, t) => t + 1), (e) => e, (e, t) => {
|
|
42979
|
-
var n =
|
|
43065
|
+
var n = LI(), r = N(n, !0);
|
|
42980
43066
|
B(n), C((e, i) => {
|
|
42981
43067
|
z(n, "title", e), z(n, "aria-label", i), m(r, t);
|
|
42982
43068
|
}, [() => j("outlineShowLevel", { level: String(t) }), () => j("outlineShowLevel", { level: String(t) })]), y("click", n, () => {
|
|
@@ -42993,8 +43079,8 @@ function lL(e, t) {
|
|
|
42993
43079
|
});
|
|
42994
43080
|
var i = H(n, 2);
|
|
42995
43081
|
p(i, 17, () => o(We), (e) => e.summary, (e, t) => {
|
|
42996
|
-
var n =
|
|
42997
|
-
var n =
|
|
43082
|
+
var n = BI(), r = Y(n), i = (e) => {
|
|
43083
|
+
var n = zI();
|
|
42998
43084
|
let r;
|
|
42999
43085
|
C((e) => r = pe(n, "", r, e), [() => ({
|
|
43000
43086
|
top: `${o(t).top ?? ""}px`,
|
|
@@ -43022,9 +43108,9 @@ function lL(e, t) {
|
|
|
43022
43108
|
(o(We).length || o(Ke) > 1) && e(Pc);
|
|
43023
43109
|
});
|
|
43024
43110
|
var Fc = H(Nc, 2), Lc = (e) => {
|
|
43025
|
-
var t =
|
|
43111
|
+
var t = UI(), n = H(N(t));
|
|
43026
43112
|
p(n, 17, () => o(Ve), re, (e, t) => {
|
|
43027
|
-
var n =
|
|
43113
|
+
var n = HI(), r = Y(n), i = H(r);
|
|
43028
43114
|
C(() => {
|
|
43029
43115
|
z(r, "cx", o(t).x1), z(r, "cy", o(t).y1), z(i, "x1", o(t).x1), z(i, "y1", o(t).y1), z(i, "x2", o(t).x2), z(i, "y2", o(t).y2);
|
|
43030
43116
|
}), c(e, n);
|
|
@@ -43034,12 +43120,12 @@ function lL(e, t) {
|
|
|
43034
43120
|
o(Ve).length && e(Lc);
|
|
43035
43121
|
});
|
|
43036
43122
|
var Rc = H(Fc, 2), zc = (e) => {
|
|
43037
|
-
var t =
|
|
43123
|
+
var t = GI();
|
|
43038
43124
|
p(t, 21, () => o(yi), (e) => e.id, (e, t) => {
|
|
43039
43125
|
let n = J(() => o(bi)[o(t).id]);
|
|
43040
43126
|
var r = u(), i = Y(r), a = (e) => {
|
|
43041
|
-
let r = J(() => o(t).colour ??
|
|
43042
|
-
var i =
|
|
43127
|
+
let r = J(() => o(t).colour ?? cP(o(t).id));
|
|
43128
|
+
var i = WI(), a = Y(i);
|
|
43043
43129
|
let s;
|
|
43044
43130
|
var l = H(a, 2);
|
|
43045
43131
|
let u, d;
|
|
@@ -43056,8 +43142,8 @@ function lL(e, t) {
|
|
|
43056
43142
|
"inset-inline-start": `${o(n).tagLeft ?? ""}px`,
|
|
43057
43143
|
top: `${o(n).tagTop ?? ""}px`,
|
|
43058
43144
|
"--sheet-presence-colour": o(r),
|
|
43059
|
-
color:
|
|
43060
|
-
}), () => o(t).name.length > 14 ?
|
|
43145
|
+
color: lP(o(r))
|
|
43146
|
+
}), () => o(t).name.length > 14 ? uP(o(t).name) : o(t).name]), c(e, i);
|
|
43061
43147
|
};
|
|
43062
43148
|
R(i, (e) => {
|
|
43063
43149
|
o(n) && e(a);
|
|
@@ -43068,16 +43154,16 @@ function lL(e, t) {
|
|
|
43068
43154
|
o(yi).length && e(zc);
|
|
43069
43155
|
});
|
|
43070
43156
|
var Bc = H(Rc, 2), Vc = (e) => {
|
|
43071
|
-
var t =
|
|
43157
|
+
var t = ZI();
|
|
43072
43158
|
p(t, 21, () => o(lr), (e) => e.id, (e, t) => {
|
|
43073
43159
|
let n = J(() => o(fr)[o(t).id]);
|
|
43074
43160
|
var r = u(), i = Y(r), a = (e) => {
|
|
43075
|
-
var r =
|
|
43161
|
+
var r = XI();
|
|
43076
43162
|
let i, a;
|
|
43077
43163
|
var s = N(r), l = (e) => {
|
|
43078
43164
|
let n = J(() => fi(o(t)));
|
|
43079
|
-
var r =
|
|
43080
|
-
var n =
|
|
43165
|
+
var r = qI(), i = N(r), a = (e) => {
|
|
43166
|
+
var n = KI(), r = N(n, !0);
|
|
43081
43167
|
B(n), C(() => m(r, o(t).title)), c(e, n);
|
|
43082
43168
|
};
|
|
43083
43169
|
R(i, (e) => {
|
|
@@ -43099,7 +43185,7 @@ function lL(e, t) {
|
|
|
43099
43185
|
}
|
|
43100
43186
|
B(r), c(e, r);
|
|
43101
43187
|
}, u = (e) => {
|
|
43102
|
-
var n =
|
|
43188
|
+
var n = JI();
|
|
43103
43189
|
C(() => {
|
|
43104
43190
|
z(n, "src", o(t).src), z(n, "alt", o(t).alt ?? "");
|
|
43105
43191
|
}), c(e, n);
|
|
@@ -43108,7 +43194,7 @@ function lL(e, t) {
|
|
|
43108
43194
|
o(t).kind === "chart" ? e(l) : e(u, -1);
|
|
43109
43195
|
});
|
|
43110
43196
|
var d = H(s, 2), f = (e) => {
|
|
43111
|
-
var n =
|
|
43197
|
+
var n = YI();
|
|
43112
43198
|
y("pointerdown", n, (e) => Ci(e, o(t), "resize")), y("pointermove", n, wi), y("pointerup", n, Ei), x("pointercancel", n, Ti), c(e, n);
|
|
43113
43199
|
};
|
|
43114
43200
|
R(d, (e) => {
|
|
@@ -43138,10 +43224,10 @@ function lL(e, t) {
|
|
|
43138
43224
|
o(lr).length && e(Vc);
|
|
43139
43225
|
});
|
|
43140
43226
|
var Hc = H(Bc, 2), Wc = (e) => {
|
|
43141
|
-
var t =
|
|
43227
|
+
var t = $I();
|
|
43142
43228
|
let n;
|
|
43143
43229
|
p(t, 23, () => o(ac).items, (e) => e.name, (e, t, n) => {
|
|
43144
|
-
var r =
|
|
43230
|
+
var r = QI(), i = N(r);
|
|
43145
43231
|
let a;
|
|
43146
43232
|
var s = N(i, !0);
|
|
43147
43233
|
B(i), B(r), C(() => {
|
|
@@ -43162,17 +43248,17 @@ function lL(e, t) {
|
|
|
43162
43248
|
o(ac) && e(Wc);
|
|
43163
43249
|
});
|
|
43164
43250
|
var Gc = H(Hc, 2), Kc = (e) => {
|
|
43165
|
-
var t =
|
|
43251
|
+
var t = nL();
|
|
43166
43252
|
let n;
|
|
43167
43253
|
var r = N(t), i = (e) => {
|
|
43168
|
-
var t =
|
|
43254
|
+
var t = eL(), n = N(t, !0);
|
|
43169
43255
|
B(t), C(() => m(n, o(Qt).title)), c(e, t);
|
|
43170
43256
|
};
|
|
43171
43257
|
R(r, (e) => {
|
|
43172
43258
|
o(Qt).title && e(i);
|
|
43173
43259
|
});
|
|
43174
43260
|
var a = H(r, 2), s = (e) => {
|
|
43175
|
-
var t =
|
|
43261
|
+
var t = tL(), n = N(t, !0);
|
|
43176
43262
|
B(t), C(() => m(n, o(Qt).message)), c(e, t);
|
|
43177
43263
|
};
|
|
43178
43264
|
R(a, (e) => {
|
|
@@ -43186,12 +43272,12 @@ function lL(e, t) {
|
|
|
43186
43272
|
o(Qt) && o($t) && e(Kc);
|
|
43187
43273
|
});
|
|
43188
43274
|
var qc = H(Gc, 2), Jc = (e) => {
|
|
43189
|
-
var n =
|
|
43275
|
+
var n = iL();
|
|
43190
43276
|
let r;
|
|
43191
43277
|
var i = N(n);
|
|
43192
43278
|
{
|
|
43193
43279
|
let e = (e) => {
|
|
43194
|
-
var t =
|
|
43280
|
+
var t = rL();
|
|
43195
43281
|
let n;
|
|
43196
43282
|
C(() => n = pe(t, "", n, {
|
|
43197
43283
|
width: `${o(Nt).width ?? ""}px`,
|
|
@@ -43221,7 +43307,7 @@ function lL(e, t) {
|
|
|
43221
43307
|
var r = u(), i = Y(r), a = (e) => {
|
|
43222
43308
|
{
|
|
43223
43309
|
let n = J(() => `${Z(o(Mt).c)}${o(Mt).r + 1}`), r = J(() => t.localization?.locale);
|
|
43224
|
-
|
|
43310
|
+
KP(e, {
|
|
43225
43311
|
get thread() {
|
|
43226
43312
|
return o(jt);
|
|
43227
43313
|
},
|
|
@@ -43256,7 +43342,7 @@ function lL(e, t) {
|
|
|
43256
43342
|
}, s = (e) => {
|
|
43257
43343
|
{
|
|
43258
43344
|
let t = J(() => ha(o(Mt).r, o(Mt).c));
|
|
43259
|
-
|
|
43345
|
+
ZP(e, {
|
|
43260
43346
|
get choices() {
|
|
43261
43347
|
return o(Mt).choices;
|
|
43262
43348
|
},
|
|
@@ -43268,7 +43354,7 @@ function lL(e, t) {
|
|
|
43268
43354
|
});
|
|
43269
43355
|
}
|
|
43270
43356
|
}, l = (e) => {
|
|
43271
|
-
|
|
43357
|
+
tI(e, {
|
|
43272
43358
|
get header() {
|
|
43273
43359
|
return o(Mt).header;
|
|
43274
43360
|
},
|
|
@@ -43362,7 +43448,7 @@ function lL(e, t) {
|
|
|
43362
43448
|
}
|
|
43363
43449
|
}, Zc = (e) => {
|
|
43364
43450
|
{
|
|
43365
|
-
let n = J(() => ({ "row-number":
|
|
43451
|
+
let n = J(() => ({ "row-number": rI }));
|
|
43366
43452
|
jc(e, {
|
|
43367
43453
|
get data() {
|
|
43368
43454
|
return o(ht);
|
|
@@ -43471,11 +43557,11 @@ function lL(e, t) {
|
|
|
43471
43557
|
T() && e($c);
|
|
43472
43558
|
});
|
|
43473
43559
|
var el = H(Qc, 2), tl = (e) => {
|
|
43474
|
-
var t =
|
|
43560
|
+
var t = cL(), n = N(t), r = N(n, !0);
|
|
43475
43561
|
B(n);
|
|
43476
43562
|
var i = H(n, 4), a = (e) => {
|
|
43477
|
-
var t =
|
|
43478
|
-
var t =
|
|
43563
|
+
var t = sL(), n = Y(t), r = (e) => {
|
|
43564
|
+
var t = aL(), n = N(t), r = H(n), i = N(r, !0);
|
|
43479
43565
|
B(r), B(t), C((e, t) => {
|
|
43480
43566
|
m(n, `${e ?? ""} `), m(i, t);
|
|
43481
43567
|
}, [() => j("statusAverage"), () => ka(o(Oa).average ?? 0)]), c(e, t);
|
|
@@ -43486,7 +43572,7 @@ function lL(e, t) {
|
|
|
43486
43572
|
var i = H(n, 2), a = N(i), s = H(a), l = N(s, !0);
|
|
43487
43573
|
B(s), B(i);
|
|
43488
43574
|
var u = H(i, 2), d = (e) => {
|
|
43489
|
-
var t =
|
|
43575
|
+
var t = oL(), n = N(t), r = H(n), i = N(r, !0);
|
|
43490
43576
|
B(r), B(t), C((e, t) => {
|
|
43491
43577
|
m(n, `${e ?? ""} `), m(i, t);
|
|
43492
43578
|
}, [() => j("statusSum"), () => ka(o(Oa).sum)]), c(e, t);
|
|
@@ -43590,7 +43676,7 @@ function lL(e, t) {
|
|
|
43590
43676
|
}
|
|
43591
43677
|
});
|
|
43592
43678
|
var cl = H(sl, 2);
|
|
43593
|
-
|
|
43679
|
+
QM(cl, {
|
|
43594
43680
|
get allow() {
|
|
43595
43681
|
return o(St).allow;
|
|
43596
43682
|
},
|
|
@@ -43608,7 +43694,7 @@ function lL(e, t) {
|
|
|
43608
43694
|
var ul = H(ll, 2), dl = (e) => {
|
|
43609
43695
|
{
|
|
43610
43696
|
let t = J(() => !!o(Fr).existing);
|
|
43611
|
-
|
|
43697
|
+
iP(e, {
|
|
43612
43698
|
open: !0,
|
|
43613
43699
|
get range() {
|
|
43614
43700
|
return o(Fr).range;
|
|
@@ -43642,7 +43728,7 @@ function lL(e, t) {
|
|
|
43642
43728
|
o(Fr) && e(dl);
|
|
43643
43729
|
});
|
|
43644
43730
|
var pl = H(ul, 2), ml = (e) => {
|
|
43645
|
-
|
|
43731
|
+
ZN(e, {
|
|
43646
43732
|
open: !0,
|
|
43647
43733
|
get link() {
|
|
43648
43734
|
return o(qr).link;
|
|
@@ -43670,7 +43756,7 @@ function lL(e, t) {
|
|
|
43670
43756
|
o(qr) && e(ml);
|
|
43671
43757
|
});
|
|
43672
43758
|
var hl = H(pl, 2), gl = (e) => {
|
|
43673
|
-
|
|
43759
|
+
GN(e, {
|
|
43674
43760
|
open: !0,
|
|
43675
43761
|
get pivot() {
|
|
43676
43762
|
return o(ti).pivot;
|
|
@@ -43678,7 +43764,7 @@ function lL(e, t) {
|
|
|
43678
43764
|
get fields() {
|
|
43679
43765
|
return o(ti).fields;
|
|
43680
43766
|
},
|
|
43681
|
-
valuesOf: (e) =>
|
|
43767
|
+
valuesOf: (e) => Cj(e, o(ti).pivot.source, ri, ii),
|
|
43682
43768
|
get existing() {
|
|
43683
43769
|
return o(ti).existing;
|
|
43684
43770
|
},
|
|
@@ -43698,7 +43784,7 @@ function lL(e, t) {
|
|
|
43698
43784
|
o(ti) && e(gl);
|
|
43699
43785
|
});
|
|
43700
43786
|
var vl = H(hl, 2), yl = (e) => {
|
|
43701
|
-
|
|
43787
|
+
NN(e, {
|
|
43702
43788
|
open: !0,
|
|
43703
43789
|
get group() {
|
|
43704
43790
|
return o(Cr).group;
|
|
@@ -43724,7 +43810,7 @@ function lL(e, t) {
|
|
|
43724
43810
|
var bl = H(vl, 2), xl = (e) => {
|
|
43725
43811
|
{
|
|
43726
43812
|
let t = J(() => fi(o(dr)).series.map((e) => e.label));
|
|
43727
|
-
|
|
43813
|
+
wN(e, {
|
|
43728
43814
|
open: !0,
|
|
43729
43815
|
get chart() {
|
|
43730
43816
|
return o(dr);
|
|
@@ -43747,7 +43833,7 @@ function lL(e, t) {
|
|
|
43747
43833
|
o(dr) && e(xl);
|
|
43748
43834
|
});
|
|
43749
43835
|
var Sl = H(bl, 2);
|
|
43750
|
-
|
|
43836
|
+
mN(Sl, {
|
|
43751
43837
|
get setup() {
|
|
43752
43838
|
return o(Mi);
|
|
43753
43839
|
},
|
|
@@ -43764,7 +43850,7 @@ function lL(e, t) {
|
|
|
43764
43850
|
}
|
|
43765
43851
|
});
|
|
43766
43852
|
var Cl = H(Sl, 2);
|
|
43767
|
-
|
|
43853
|
+
sN(Cl, {
|
|
43768
43854
|
get ranges() {
|
|
43769
43855
|
return o(St).ranges;
|
|
43770
43856
|
},
|
|
@@ -43914,7 +44000,7 @@ function lL(e, t) {
|
|
|
43914
44000
|
o(ro) && e(Ml);
|
|
43915
44001
|
});
|
|
43916
44002
|
var Nl = H(jl, 2), Pl = (e) => {
|
|
43917
|
-
|
|
44003
|
+
jF(e, {
|
|
43918
44004
|
open: !0,
|
|
43919
44005
|
get preset() {
|
|
43920
44006
|
return o(sn).preset;
|
|
@@ -43935,7 +44021,7 @@ function lL(e, t) {
|
|
|
43935
44021
|
o(sn) && e(Pl);
|
|
43936
44022
|
});
|
|
43937
44023
|
var Fl = H(Nl, 2);
|
|
43938
|
-
|
|
44024
|
+
LF(Fl, {
|
|
43939
44025
|
get rules() {
|
|
43940
44026
|
return o(ln);
|
|
43941
44027
|
},
|
|
@@ -43960,7 +44046,7 @@ function lL(e, t) {
|
|
|
43960
44046
|
}
|
|
43961
44047
|
});
|
|
43962
44048
|
var Il = H(Fl, 2);
|
|
43963
|
-
|
|
44049
|
+
mF(Il, {
|
|
43964
44050
|
get rule() {
|
|
43965
44051
|
return o(co);
|
|
43966
44052
|
},
|
|
@@ -43980,7 +44066,7 @@ function lL(e, t) {
|
|
|
43980
44066
|
var Ll = H(Il, 2);
|
|
43981
44067
|
{
|
|
43982
44068
|
let e = J(() => o(Jt) !== null), t = J(() => o(Jt)?.verdict ?? null);
|
|
43983
|
-
|
|
44069
|
+
xF(Ll, {
|
|
43984
44070
|
get open() {
|
|
43985
44071
|
return o(e);
|
|
43986
44072
|
},
|
|
@@ -44001,7 +44087,7 @@ function lL(e, t) {
|
|
|
44001
44087
|
var zl = H(Rl, 2);
|
|
44002
44088
|
{
|
|
44003
44089
|
let e = (e) => {
|
|
44004
|
-
var t =
|
|
44090
|
+
var t = lL(), n = N(t), r = N(n, !0);
|
|
44005
44091
|
B(n);
|
|
44006
44092
|
var i = H(n, 2), a = N(i, !0);
|
|
44007
44093
|
B(i), B(t), C((e, t) => {
|
|
@@ -44031,7 +44117,7 @@ function lL(e, t) {
|
|
|
44031
44117
|
},
|
|
44032
44118
|
footer: e,
|
|
44033
44119
|
children: (e, t) => {
|
|
44034
|
-
var n =
|
|
44120
|
+
var n = uL(), r = N(n), i = N(r, !0);
|
|
44035
44121
|
B(r), B(n), C((e) => m(i, e), [() => j("newWorkbookMessage")]), c(e, n);
|
|
44036
44122
|
},
|
|
44037
44123
|
$$slots: {
|
|
@@ -44043,7 +44129,7 @@ function lL(e, t) {
|
|
|
44043
44129
|
var Bl = H(zl, 2);
|
|
44044
44130
|
{
|
|
44045
44131
|
let e = (e) => {
|
|
44046
|
-
var t =
|
|
44132
|
+
var t = dL(), n = N(t), r = N(n, !0);
|
|
44047
44133
|
B(n);
|
|
44048
44134
|
var i = H(n, 2), a = N(i, !0);
|
|
44049
44135
|
B(i), B(t), C((e, t) => {
|
|
@@ -44074,7 +44160,7 @@ function lL(e, t) {
|
|
|
44074
44160
|
},
|
|
44075
44161
|
footer: e,
|
|
44076
44162
|
children: (e, t) => {
|
|
44077
|
-
var n =
|
|
44163
|
+
var n = fL(), r = N(n), i = N(r, !0);
|
|
44078
44164
|
B(r), B(n), C((e) => m(i, e), [() => j("mergeCellsMessage")]), c(e, n);
|
|
44079
44165
|
},
|
|
44080
44166
|
$$slots: {
|
|
@@ -44131,7 +44217,7 @@ s([
|
|
|
44131
44217
|
]);
|
|
44132
44218
|
//#endregion
|
|
44133
44219
|
//#region src/wc/surface-sheet.generated.js
|
|
44134
|
-
var
|
|
44220
|
+
var gL = [
|
|
44135
44221
|
{
|
|
44136
44222
|
callback: "onAction",
|
|
44137
44223
|
event: "action",
|
|
@@ -44162,7 +44248,7 @@ var uL = [
|
|
|
44162
44248
|
params: ["me"],
|
|
44163
44249
|
ts: "(me: { sheet: string; rect: Rect; active: { row: number; col: number } }) => void"
|
|
44164
44250
|
}
|
|
44165
|
-
],
|
|
44251
|
+
], _L = [
|
|
44166
44252
|
"getState",
|
|
44167
44253
|
"setState",
|
|
44168
44254
|
"refresh",
|
|
@@ -44175,8 +44261,8 @@ var uL = [
|
|
|
44175
44261
|
"newWorkbook",
|
|
44176
44262
|
"print",
|
|
44177
44263
|
"printHtml"
|
|
44178
|
-
],
|
|
44179
|
-
function
|
|
44264
|
+
], vL = g("<div style=\"display: block; min-width: 0;\"><!></div>");
|
|
44265
|
+
function yL(e, t) {
|
|
44180
44266
|
M(t, !0);
|
|
44181
44267
|
let r = V(t, "host", 7), i = se(t, [
|
|
44182
44268
|
"$$slots",
|
|
@@ -44186,7 +44272,7 @@ function pL(e, t) {
|
|
|
44186
44272
|
"host"
|
|
44187
44273
|
]), a = D(null), s = Symbol.for("svgrid.sheet.parked"), l = D(0), u = J(function() {
|
|
44188
44274
|
let e = {};
|
|
44189
|
-
for (let { callback: n, event: i, params: a } of
|
|
44275
|
+
for (let { callback: n, event: i, params: a } of gL) e[n] = (...e) => {
|
|
44190
44276
|
let c = e.length > 1 ? Object.fromEntries(a.map((t, n) => [t, e[n]])) : e[0];
|
|
44191
44277
|
n === "onReady" && r() && (r().api = e[0], e[1] && (e[1][s] = !0), L(l, o(l) + 1), r().document = e[1]);
|
|
44192
44278
|
let u = t.emit(i, c, n === "onAction");
|
|
@@ -44198,7 +44284,7 @@ function pL(e, t) {
|
|
|
44198
44284
|
cells: []
|
|
44199
44285
|
}])), p = J(() => typeof t.height == "string" && /^\d+(\.\d+)?$/.test(t.height) ? Number(t.height) : t.height);
|
|
44200
44286
|
S(() => {
|
|
44201
|
-
if (!(!r() || !o(a))) for (let e of
|
|
44287
|
+
if (!(!r() || !o(a))) for (let e of _L) r()[e] = (...t) => o(a)?.[e]?.(...t);
|
|
44202
44288
|
});
|
|
44203
44289
|
let m = D(0), h = t.document ?? t.workbook ?? t.data ?? null;
|
|
44204
44290
|
function g() {
|
|
@@ -44215,9 +44301,9 @@ function pL(e, t) {
|
|
|
44215
44301
|
let e = o(d) ?? t.workbook ?? t.data ?? null, n = o(a);
|
|
44216
44302
|
console.log("[probe2] parked=" + !!o(l) + " same=" + (t.document === o(l)) + " wb=" + (!!o(l) && t.document?.workbook === o(l)?.workbook) + " dataLen=" + (t.data ?? []).length + " docType=" + typeof t.document), !(!n || e === null || e === h) && (h = e, g() && L(m, o(m) + 1));
|
|
44217
44303
|
});
|
|
44218
|
-
var _ =
|
|
44304
|
+
var _ = vL(), v = N(_);
|
|
44219
44305
|
n(v, () => o(m), (e) => {
|
|
44220
|
-
E(
|
|
44306
|
+
E(hL(e, ne(() => i, {
|
|
44221
44307
|
get document() {
|
|
44222
44308
|
return o(d);
|
|
44223
44309
|
},
|
|
@@ -44232,7 +44318,7 @@ function pL(e, t) {
|
|
|
44232
44318
|
}
|
|
44233
44319
|
//#endregion
|
|
44234
44320
|
//#region src/wc/sv-sheet-element.svelte
|
|
44235
|
-
function
|
|
44321
|
+
function bL(e, t) {
|
|
44236
44322
|
M(t, !0);
|
|
44237
44323
|
let n = se(t, [
|
|
44238
44324
|
"$$slots",
|
|
@@ -44249,12 +44335,12 @@ function mL(e, t) {
|
|
|
44249
44335
|
});
|
|
44250
44336
|
return t.$$host.dispatchEvent(i), i.defaultPrevented;
|
|
44251
44337
|
}
|
|
44252
|
-
|
|
44338
|
+
yL(e, ne(() => n, {
|
|
44253
44339
|
emit: r,
|
|
44254
44340
|
host: t.$$host
|
|
44255
44341
|
})), ue();
|
|
44256
44342
|
}
|
|
44257
|
-
customElements.define("sv-sheet", ce(
|
|
44343
|
+
customElements.define("sv-sheet", ce(bL, {
|
|
44258
44344
|
document: { type: "Object" },
|
|
44259
44345
|
workbook: { type: "Object" },
|
|
44260
44346
|
data: { type: "Array" },
|
|
@@ -44310,6 +44396,6 @@ customElements.define("sv-sheet", ce(mL, {
|
|
|
44310
44396
|
presence: { type: "Array" }
|
|
44311
44397
|
}, [], []));
|
|
44312
44398
|
//#endregion
|
|
44313
|
-
export {
|
|
44399
|
+
export { bL as default };
|
|
44314
44400
|
|
|
44315
44401
|
;(function(){try{if(typeof document==='undefined')return;var s=document.createElement('style');s.setAttribute('data-svgrid-sv-sheet','');s.textContent=".sv-grid-root{font-family:var(--sg-font,inherit);position:relative}.sv-grid-root[data-selbar]{--sg-selbar-reserve:68px}.sv-grid-root[data-selbar^=upsell]{--sg-selbar-reserve:116px}.sv-grid-root[data-selbar$=bottom] .sv-grid-container{padding-bottom:var(--sg-selbar-reserve)}.sv-grid-root[data-selbar$=top] .sv-grid-container{padding-top:var(--sg-selbar-reserve)}.sv-grid-sr-only{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.sv-grid-loading-overlay{z-index:18;pointer-events:auto;background:color-mix(in srgb, var(--sg-bg,#fff) 35%, transparent);position:absolute;inset:0}.sv-grid-loading-bar{background:color-mix(in srgb, var(--sg-accent,#2563eb) 18%, transparent);height:3px;position:absolute;top:0;left:0;right:0;overflow:hidden}.sv-grid-loading-bar:before{content:\"\";background:var(--sg-accent,#2563eb);width:40%;animation:1.1s ease-in-out infinite sv-grid-loading-slide;position:absolute;inset:0}@keyframes sv-grid-loading-slide{0%{transform:translate(-100%)}to{transform:translate(350%)}}.sv-grid-skeleton{top:var(--sg-thead-h,40px);padding:0;position:absolute;left:0;right:0;overflow:hidden}.sv-grid-skeleton-row{height:var(--sg-pinned-row-h,36px);border-bottom:1px solid var(--sg-border,#e2e8f0);align-items:center;display:flex}.sv-grid-skeleton-cell{box-sizing:border-box;flex-shrink:0;padding:0 12px}.sv-grid-skeleton-bar{background:linear-gradient(90deg, color-mix(in srgb, var(--sg-muted,#94a3b8) 18%, transparent) 25%, color-mix(in srgb, var(--sg-muted,#94a3b8) 32%, transparent) 50%, color-mix(in srgb, var(--sg-muted,#94a3b8) 18%, transparent) 75%);background-size:200% 100%;border-radius:4px;width:70%;height:10px;animation:1.3s linear infinite sv-grid-shimmer;display:block}@keyframes sv-grid-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.sv-grid-toolbar{align-items:center;gap:8px;padding:6px 2px;display:flex}.sv-grid-toolbar-btn{border:1px solid var(--sg-border,#e2e8f0);border-radius:var(--sg-radius,6px);background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);cursor:pointer;align-items:center;gap:6px;padding:6px 12px;font-size:12.5px;font-weight:600;transition:background-color .12s,color .12s,border-color .12s;display:inline-flex}.sv-grid-toolbar-btn:hover{border-color:var(--sg-accent,#2563eb);color:var(--sg-accent,#2563eb)}.sv-grid-toolbar-btn.is-active{background:var(--sg-accent,#2563eb);border-color:var(--sg-accent,#2563eb);color:#fff}.sv-grid-advf-chip>.sv-grid-icon{width:13px;height:13px}.sv-grid-advf-chip{border:1px solid color-mix(in srgb, var(--sg-accent,#2563eb) 35%, transparent);background:color-mix(in srgb, var(--sg-accent,#2563eb) 12%, transparent);color:var(--sg-accent,#2563eb);border-radius:999px;align-items:center;gap:6px;padding:5px 6px 5px 11px;font-size:12.5px;font-weight:600;display:inline-flex}.sv-grid-advf-clear{width:18px;height:18px;color:inherit;cursor:pointer;background:0 0;border:0;border-radius:999px;justify-content:center;align-items:center;font-size:11px;transition:background-color .12s;display:inline-flex}.sv-grid-advf-clear:hover{background:color-mix(in srgb, var(--sg-accent,#2563eb) 25%, transparent)}.sv-grid-tool-panel{z-index:901;background:var(--sg-bg,#fff);border-left:1px solid var(--sg-border,#e2e8f0);flex-direction:column;width:250px;display:flex;position:absolute;top:0;bottom:0;right:0;box-shadow:-8px 0 24px #0000001f}.sv-grid-tool-panel-head{text-transform:uppercase;letter-spacing:.05em;color:var(--sg-muted,#64748b);border-bottom:1px solid var(--sg-border,#e2e8f0);justify-content:space-between;align-items:center;padding:8px 12px;font-size:12px;font-weight:700;display:flex}.sv-grid-tool-panel-close{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;font-size:14px}.sv-grid-tool-panel-list{flex:1;margin:0;padding:6px;list-style:none;overflow-y:auto}.sv-grid-tool-panel-item{border-radius:5px;justify-content:space-between;align-items:center;gap:6px;padding:3px 6px;display:flex}.sv-grid-tool-panel-item:hover{background:var(--sg-row-hover-bg,#94a3b81a)}.sv-grid-tool-panel-vis{min-width:0;color:var(--sg-fg,#0f172a);cursor:pointer;flex:1;align-items:center;gap:8px;font-size:13px;display:flex}.sv-grid-tool-panel-vis input{accent-color:var(--sg-accent,#2563eb)}.sv-grid-tool-panel-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sv-grid-tool-panel-actions{flex-shrink:0;gap:2px;display:inline-flex}.sv-grid-tool-panel-btn{width:22px;height:22px;color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;font-size:13px;display:inline-flex}.sv-grid-tool-panel-btn:hover:not(:disabled){background:var(--sg-row-hover-bg,#94a3b82e);color:var(--sg-fg,#0f172a)}.sv-grid-tool-panel-btn.is-active{color:var(--sg-accent,#2563eb)}.sv-grid-tool-panel-btn:disabled{opacity:.35;cursor:default}.sv-grid-tool-panel-tabs{border-bottom:1px solid var(--sg-border,#e2e8f0);gap:2px;padding:6px 6px 0;display:flex}.sv-grid-tool-panel-tab{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:1;padding:6px 8px;font-size:12px;font-weight:600}.sv-grid-tool-panel-tab:hover{color:var(--sg-fg,#0f172a)}.sv-grid-tool-panel-tab.is-active{color:var(--sg-accent,#2563eb);border-bottom-color:var(--sg-accent,#2563eb)}.sv-grid-tool-panel-filters{flex-direction:column;flex:1;gap:8px;padding:6px;display:flex;overflow-y:auto}.sv-grid-tp-filter{border:1px solid var(--sg-border,#e2e8f0);border-radius:6px;flex-direction:column;gap:4px;padding:6px;display:flex}.sv-grid-tp-filter.is-filtered{border-color:var(--sg-accent,#2563eb)}.sv-grid-tp-filter-head{justify-content:space-between;align-items:center;display:flex}.sv-grid-tp-filter-name{color:var(--sg-fg,#0f172a);font-size:12px;font-weight:600}.sv-grid-tp-filter-clear{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;padding:0 2px;font-size:11px}.sv-grid-tp-filter-clear:hover{color:var(--sg-accent,#2563eb)}.sv-grid-tp-filter-op,.sv-grid-tp-filter-input{box-sizing:border-box;border:1px solid var(--sg-border,#e2e8f0);background:var(--sg-bg,#fff);width:100%;color:var(--sg-fg,#0f172a);border-radius:5px;padding:4px 6px;font-size:12px}.sv-grid-root-fill{flex-direction:column;height:100%;min-height:0;display:flex}.sv-grid-root-fill>.sv-grid-shell{flex:1 1 0;min-height:0;height:auto!important}.sv-grid-shell{border-bottom:1px solid var(--sg-border,#cbd5e1);position:relative}.sv-grid-table{table-layout:fixed;border-collapse:separate;border-spacing:0}.sv-grid-table:focus{outline:none}.sv-grid-column,.sv-grid-cell{box-sizing:border-box;text-overflow:ellipsis;white-space:nowrap;background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);-webkit-user-select:none;user-select:none;border-right:1px solid var(--sg-border,#e2e8f0);border-bottom:1px solid var(--sg-border,#e2e8f0);overflow:hidden}.sv-grid-table tr>:last-child.sv-grid-column,.sv-grid-table tr>:last-child.sv-grid-cell{border-right:0}.sv-grid-table:not(.sv-grid-no-row-hover) tbody tr:hover>.sv-grid-cell:not([data-selected-range=true]){background-color:var(--sg-row-hover-bg,#eef2ff)}.sv-grid-cell-active,.sv-grid-cell-has-fill-handle{position:relative}.sv-grid-cell-has-fill-handle{overflow:visible}.sv-grid-detail-row{height:auto!important}.sv-grid-detail-cell{text-overflow:clip;white-space:normal;background:var(--sg-bg,#fff);-webkit-user-select:text;user-select:text;height:auto;padding:0;overflow:visible}.sv-grid-placeholder-cell{-webkit-user-select:none;user-select:none;cursor:default}.sv-grid-placeholder-skeleton{vertical-align:middle;background:linear-gradient(90deg, color-mix(in srgb, var(--sg-fg,#0f172a) 8%, transparent) 25%, color-mix(in srgb, var(--sg-fg,#0f172a) 3%, transparent) 50%, color-mix(in srgb, var(--sg-fg,#0f172a) 8%, transparent) 75%);background-size:200% 100%;border-radius:5px;width:72%;height:9px;animation:1.2s linear infinite sv-grid-skeleton-shimmer;display:inline-block}.sv-grid-placeholder-cell:nth-child(2n) .sv-grid-placeholder-skeleton{width:54%}.sv-grid-placeholder-cell:nth-child(3n) .sv-grid-placeholder-skeleton{width:84%}@keyframes sv-grid-skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (prefers-reduced-motion:reduce){.sv-grid-placeholder-skeleton{animation:none}}.sv-grid-placeholder-failed .sv-grid-placeholder-cell{background:color-mix(in srgb, var(--sg-danger,#dc2626) 6%, transparent)}.sv-grid-placeholder-failed-body{min-height:100%;padding-left:var(--sg-cell-px,7px);align-items:center;gap:10px;display:flex}.sv-grid-placeholder-failed-cont .sv-grid-placeholder-cell{border-top-color:#0000}.sv-grid-placeholder-error{color:var(--sg-danger,#dc2626);font-size:13px}.sv-grid-placeholder-retry{border:1px solid var(--sg-border,#e2e8f0);border-radius:var(--sg-radius,6px);font:inherit;color:var(--sg-fg,#0f172a);cursor:pointer;background:0 0;padding:2px 10px;font-size:12px}.sv-grid-placeholder-retry:hover{background:color-mix(in srgb, var(--sg-fg,#0f172a) 6%, transparent)}.sv-grid-placeholder-retry:focus-visible{outline:2px solid var(--sg-accent,#2563eb);outline-offset:2px}.sv-grid-cell[data-pinned=left],.sv-grid-column[data-pinned=left]{background:var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 92%, var(--sg-accent,#2563eb) 8%));box-shadow:inset -1px 0 0 var(--sg-pinned-divider,var(--sg-border,#cbd5e1)), 8px 0 12px -6px var(--sg-pinned-shadow-color,#0f172a38)}.sv-grid-cell[data-pinned=right],.sv-grid-column[data-pinned=right]{background:var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 92%, var(--sg-accent,#2563eb) 8%));box-shadow:inset 1px 0 0 var(--sg-pinned-divider,var(--sg-border,#cbd5e1)), -8px 0 12px -6px var(--sg-pinned-shadow-color,#0f172a38)}.sv-grid-head .sv-grid-column[data-pinned=left],.sv-grid-head .sv-grid-column[data-pinned=right]{background:var(--sg-pinned-header-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 86%, var(--sg-accent,#2563eb) 14%));font-weight:600}.sv-grid-row-alt>.sv-grid-cell{background:var(--sg-row-alt-bg,#f8fafc)}.sv-grid-row-alt>.sv-grid-cell[data-pinned]{background:var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 92%, var(--sg-accent,#2563eb) 8%))}.sv-grid-row-selected>.sv-grid-cell[data-pinned]{background:linear-gradient(color-mix(in srgb, var(--sg-selection-bg,#dbeafe) 65%, transparent), color-mix(in srgb, var(--sg-selection-bg,#dbeafe) 65%, transparent)), var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 92%, var(--sg-accent,#2563eb) 8%))}.sv-grid-table:not(.sv-grid-no-row-hover) .sv-grid-row:hover>.sv-grid-cell[data-pinned]:not([data-selected-range=true]){background:linear-gradient(color-mix(in srgb, var(--sg-row-hover-bg,#eef2ff) 55%, transparent), color-mix(in srgb, var(--sg-row-hover-bg,#eef2ff) 55%, transparent)), var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 92%, var(--sg-accent,#2563eb) 8%))}.sv-grid-column{position:relative}.sv-grid-cell[data-align=left],.sv-grid-column[data-align=left]{padding-left:var(--sg-cell-px,7px)}.sv-grid-cell[data-align=right]{text-align:right;padding-right:var(--sg-cell-px,7px)}.sv-grid-cell[data-align=center]{text-align:center}.sv-grid-column[data-align=right]{padding-right:var(--sg-cell-px,7px)}.sv-grid-column[data-align=right] .sv-grid-header-sort{justify-content:flex-end}.sv-grid-has-vscroll:not(.sv-grid-has-hscroll) .sv-grid-table tr>:last-child.sv-grid-cell[data-align=right],.sv-grid-has-vscroll:not(.sv-grid-has-hscroll) .sv-grid-table tr>:last-child.sv-grid-column[data-align=right]{padding-right:calc(var(--sg-cell-px,7px) + 16px)}.sv-grid-container.sv-grid-has-vscroll.sv-grid-has-hscroll{padding-right:16px}.sv-grid-column[data-align=center] .sv-grid-header-sort{justify-content:center}.sv-grid-resize-handle{cursor:col-resize;-webkit-user-select:none;user-select:none;z-index:2;width:5px;height:100%;transition:background-color .1s;position:absolute;top:0;right:0}.sv-grid-resize-handle:after{content:\"\";background:var(--sg-fg,#0f172a);opacity:0;border-radius:1px;width:2px;margin:auto 2px;transition:background-color .1s,opacity .1s;position:absolute;inset:0}.sv-grid-column:hover .sv-grid-resize-handle:after{opacity:.3}.sv-grid-column:hover .sv-grid-resize-handle:hover:after,.sv-grid-resize-handle.is-resizing:after{background:var(--sg-accent,#2563eb);opacity:1}.sv-grid-row-resize-handle{transition:background-color .1s}.sv-grid-row-resize-handle:hover,.sv-grid-row-resize-handle.is-resizing{background:color-mix(in srgb, var(--sg-accent,#0b63f3) 30%, transparent)}.sv-grid-head{z-index:35;background:var(--sg-header-bg,#f5f7fb);position:sticky;top:0}.sv-grid-head .sv-grid-column{background:var(--sg-header-bg,#f5f7fb);color:var(--sg-header-label-color,var(--sg-header-fg,var(--sg-fg,#0f172a)));font-weight:var(--sg-header-weight,600);font-size:var(--sg-header-size,inherit);text-transform:var(--sg-header-transform,none);letter-spacing:var(--sg-header-tracking,normal);border-bottom-color:var(--sg-header-border,var(--sg-border,#e2e8f0))}.sv-grid-column[draggable=true]{cursor:grab}.sv-grid-column[draggable=true]:active{cursor:grabbing}.sv-grid-column.is-dragging{opacity:.55}.sv-grid-column.is-drag-target-before,.sv-grid-column.is-drag-target-after{position:relative}.sv-grid-column.is-drag-target-before:before,.sv-grid-column.is-drag-target-after:after{content:\"\";pointer-events:none;z-index:7;background:linear-gradient(#6366f1,#8b5cf6);border-radius:2px;width:3px;animation:.7s ease-in-out infinite alternate sg-drop-pulse;position:absolute;top:4px;bottom:4px;box-shadow:0 0 6px #6366f1}.sv-grid-column.is-drag-target-before:before{left:-2px}.sv-grid-column.is-drag-target-after:after{right:-2px}@keyframes sg-drop-pulse{0%{opacity:.55}to{opacity:1}}.sv-grid-row-draggable{cursor:grab}.sv-grid-row-draggable:active{cursor:grabbing}.sv-grid-row-drag-active .sv-grid-row-draggable{-webkit-user-select:none;user-select:none}.sv-grid-row-draggable .sv-grid-row-number-cell{padding-left:14px;position:relative}.sv-grid-row-draggable .sv-grid-row-number-cell:before{content:\"⠇\";color:var(--sg-muted,#94a3b8);opacity:.4;pointer-events:none;font-size:13px;line-height:1;transition:opacity .12s;position:absolute;top:50%;left:3px;transform:translateY(-50%)}.sv-grid-row-draggable:hover .sv-grid-row-number-cell:before{opacity:1}.sv-grid-row-dropzone-over{outline:2px dashed var(--sg-accent,#6366f1);outline-offset:-2px;background:color-mix(in srgb, var(--sg-accent,#6366f1) 10%, transparent)}.sv-grid-row-drop-before>td{box-shadow:inset 0 2px 0 0 var(--sg-accent,#6366f1)}.sv-grid-row-drop-after>td{box-shadow:inset 0 -2px 0 0 var(--sg-accent,#6366f1)}.sv-grid-row-drop-into>td{box-shadow:inset 0 2px 0 0 var(--sg-accent,#6366f1), inset 0 -2px 0 0 var(--sg-accent,#6366f1);background:color-mix(in srgb, var(--sg-accent,#6366f1) 10%, transparent)}.sv-grid-pinned-row td{z-index:4;background:var(--sg-pinned-bg,color-mix(in oklab, var(--sg-header-bg,#f1f5f9) 92%, var(--sg-accent,#2563eb) 8%));border-bottom:1px solid var(--sg-pinned-border,color-mix(in oklab, var(--sg-accent,#2563eb) 24%, transparent));font-weight:600;position:sticky}.sv-grid-pinned-row-top td{top:var(--sg-thead-h,36px)}.sv-grid-pinned-row-bottom td{border-top:1px solid var(--sg-pinned-border,color-mix(in oklab, var(--sg-accent,#2563eb) 24%, transparent));bottom:0}.sv-grid-pinned-row-top[data-pinned-index=\"1\"] td{top:calc(var(--sg-thead-h,36px) + var(--sg-pinned-row-h,32px))}.sv-grid-pinned-row-top[data-pinned-index=\"2\"] td{top:calc(var(--sg-thead-h,36px) + var(--sg-pinned-row-h,32px) * 2)}.sv-grid-pinned-row-top[data-pinned-index=\"3\"] td{top:calc(var(--sg-thead-h,36px) + var(--sg-pinned-row-h,32px) * 3)}.sv-grid-pinned-row-bottom[data-pinned-index=\"1\"] td{bottom:var(--sg-pinned-row-h,32px)}.sv-grid-pinned-row-bottom[data-pinned-index=\"2\"] td{bottom:calc(var(--sg-pinned-row-h,32px) * 2)}.sv-grid-pinned-row-bottom[data-pinned-index=\"3\"] td{bottom:calc(var(--sg-pinned-row-h,32px) * 3)}.sv-grid-root[data-selbar$=bottom] .sv-grid-pinned-row-bottom[data-pinned-index=\"0\"] td{box-shadow:0 calc(var(--sg-selbar-reserve) / 2) 0 calc(var(--sg-selbar-reserve) / 2) var(--sg-bg,#fff);clip-path:inset(0 0 calc(-1 * var(--sg-selbar-reserve)) 0)}.sv-grid-root[data-selbar$=top] .sv-grid-head>tr:first-child>th{box-shadow:0 calc(-1 * var(--sg-selbar-reserve) / 2) 0 calc(var(--sg-selbar-reserve) / 2) var(--sg-bg,#fff);clip-path:inset(calc(-1 * var(--sg-selbar-reserve)) 0 0 0)}.sv-grid-pinned-row td[data-pinned]{z-index:5}.sv-grid-group-header-row{background:var(--sg-header-bg,#eef2f8)}.sv-grid-group-header-cell{box-sizing:border-box;border-bottom:1px solid var(--sg-border,#d8dee9);border-right:1px solid var(--sg-border,#e2e8f0);text-align:center;color:var(--sg-header-fg,#475569);text-transform:uppercase;letter-spacing:.04em;padding:4px 8px;font-size:11.5px;font-weight:700}.sv-grid-group-header-placeholder{background:0 0;border-right-color:#0000}.sv-grid-group-header-label{text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:inline-block;overflow:hidden}.sv-grid-group-toggle{max-width:100%;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;background:0 0;border:0;border-radius:5px;align-items:center;gap:5px;padding:2px 6px;display:inline-flex}.sv-grid-group-toggle:hover{background:color-mix(in srgb, var(--sg-accent,#2563eb) 12%, transparent);color:var(--sg-accent,#2563eb)}.sv-grid-group-caret{flex-shrink:0;justify-content:center;align-items:center;width:10px;height:10px;transition:transform .14s;display:inline-flex}.sv-grid-group-caret>.sv-grid-icon{width:100%;height:100%}.sv-grid-group-toggle.is-collapsed .sv-grid-group-caret{transform:rotate(-90deg)}.sv-grid-foot{z-index:6;background:var(--sg-header-bg,#f5f7fb);position:sticky;bottom:0}.sv-grid-container.sv-grid-narrow{-webkit-overflow-scrolling:touch;scroll-behavior:auto}.sv-grid-container{scrollbar-width:auto;-ms-overflow-style:auto;overscroll-behavior:contain;overflow-anchor:none;scroll-padding-top:calc(var(--sg-thead-h,36px) + var(--sg-frozen-h,0px))}.sv-grid-container.sv-grid-container-custom-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.sv-grid-container.sv-grid-container-custom-scrollbars::-webkit-scrollbar{display:none}.sv-grid-scrollbar{z-index:40;position:absolute}.sv-grid-scrollbar-vertical{top:0;width:16px;height:calc(100% - 16px);inset-inline-end:0}.sv-grid-scrollbar-corner{top:0;background:var(--sg-header-bg,#f5f7fb);border-bottom:1px solid var(--sg-header-border,#0f172a14);z-index:41;pointer-events:none;width:16px;position:absolute;inset-inline-end:0}.sv-grid-scrollbar-corner-br{inset-inline-end:0;background:var(--sg-header-bg,#eef2f8);z-index:42;pointer-events:none;width:16px;height:16px;position:absolute;bottom:0;box-shadow:inset 0 0 0 1px #0f172a0d}.sv-grid-scrollbar-horizontal{inset-inline-start:0;width:calc(100% - 16px);height:16px;bottom:0}.sv-grid-selection-column,.sv-grid-selection-cell{text-align:center;z-index:4;padding-inline:6px;position:sticky}.sv-grid-detail-toggle-column,.sv-grid-detail-toggle-cell{text-align:center;z-index:4;background:var(--sg-header-bg,#f5f7fb);vertical-align:middle;padding:0;position:sticky}.sv-grid-detail-toggle{width:24px;height:24px;color:var(--sg-muted,#64748b);cursor:pointer;vertical-align:middle;background:0 0;border:0;border-radius:5px;justify-content:center;align-items:center;padding:0;display:inline-flex}.sv-grid-detail-toggle:hover{background:color-mix(in srgb, var(--sg-accent,#2563eb) 12%, transparent);color:var(--sg-accent,#2563eb)}.sv-grid-detail-toggle:focus-visible{outline:2px solid var(--sg-accent,#2563eb);outline-offset:1px}.sv-grid-detail-toggle>.sv-grid-icon{width:12px;height:12px;transition:transform .15s}.sv-grid-detail-toggle[aria-expanded=true]>.sv-grid-icon{transform:rotate(90deg)}.sv-grid-row-number-column,.sv-grid-row-number-cell{text-align:right;z-index:4;background:var(--sg-header-bg,#f5f7fb);color:var(--sg-muted,#64748b);font-variant-numeric:tabular-nums;padding-inline:8px;position:sticky;inset-inline-start:0}.sv-grid-row-number-head{color:inherit}.sv-grid-filter-row-control{box-sizing:border-box;padding:5px var(--sg-filter-cell-px,var(--sg-cell-px,7px));flex-direction:row;align-items:center;gap:4px;display:flex}.sv-grid-filter-row-control>.sv-field{flex:3 1 0;min-width:0}.sv-grid-filter-operator{box-sizing:border-box;flex:2 1 0;min-width:0}.sv-grid-filter-value{box-sizing:border-box;flex:3 1 0;min-width:0}.sv-grid-filter-value.sv-grid-filter-value-invalid,.sv-grid-tp-filter-input.sv-grid-filter-value-invalid{box-shadow:0 0 0 1px color-mix(in srgb, var(--sg-danger,#dc2626) 45%, transparent);border-color:var(--sg-danger,#dc2626)!important}.sv-grid-filter-chips{box-sizing:border-box;border:1px solid var(--sg-input-border,#8794a8);background:var(--sg-input-bg,#fff);border-radius:4px;flex-wrap:nowrap;flex:3 1 0;align-items:center;gap:3px;min-width:0;padding:2px 4px;display:flex;overflow:hidden}.sv-grid-filter-chip .sv-grid-filter-chip-label{max-width:84px}.sv-grid-filter-chip-more{cursor:pointer;font:inherit;color:var(--sg-text,inherit);border:0;flex:none;font-size:11px;line-height:16px}.sv-grid-filter-chip-more:hover{background:color-mix(in srgb, var(--sg-accent,#0b63f3) 26%, transparent)}.sv-grid-filter-chips:focus-within{border-color:var(--sg-accent,#0b63f3);box-shadow:0 0 0 1px color-mix(in srgb, var(--sg-accent,#0b63f3) 45%, transparent)}.sv-grid-filter-chip{background:color-mix(in srgb, var(--sg-accent,#0b63f3) 16%, transparent);max-width:120px;color:var(--sg-text,inherit);border-radius:3px;align-items:center;gap:2px;padding:0 2px 0 6px;font-size:11px;line-height:16px;display:inline-flex}.sv-grid-filter-chip-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sv-grid-filter-chip-x{width:14px;height:14px;color:inherit;cursor:pointer;opacity:.7;background:0 0;border:0;border-radius:3px;flex:none;justify-content:center;align-items:center;padding:0;font-size:13px;line-height:1;display:inline-flex}.sv-grid-filter-chip-x:hover{opacity:1;background:color-mix(in srgb, var(--sg-accent,#0b63f3) 28%, transparent)}.sv-grid-filter-chips .sv-grid-filter-chip-input{background:0 0;outline:none;flex:14px;min-width:14px;padding:0 2px;box-shadow:none!important;border:0!important}.sv-grid-filter-value.sv-grid-filter-value-pulse{animation:.7s ease-out sv-grid-filter-pulse}@keyframes sv-grid-filter-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb, var(--sg-accent,#0b63f3) 55%, transparent)}70%{box-shadow:0 0 0 6px color-mix(in srgb, var(--sg-accent,#0b63f3) 0%, transparent)}to{box-shadow:0 0 0 0 color-mix(in srgb, var(--sg-accent,#0b63f3) 0%, transparent)}}.sv-grid-checkbox{border:1px solid var(--sg-input-border,#8794a8);background:var(--sg-input-bg,#fff);width:16px;height:16px;color:var(--sg-accent,#0b63f3);cursor:pointer;border-radius:4px;justify-content:center;align-items:center;margin:0 auto;padding:0;transition:border-color .12s,background-color .12s;display:inline-flex;position:relative}.sv-grid-fr-editor{box-sizing:border-box;width:100%}select.sv-grid-fr-editor{height:100%;min-height:26px}.sv-grid-fr-checkbox{width:16px;height:16px;accent-color:var(--sg-accent,#3b82f6);cursor:pointer}.sv-grid-cell-editor-color{cursor:pointer;background:0 0;border:0;width:100%;height:100%;padding:2px}.sv-grid-cell-editor-color::-webkit-color-swatch-wrapper{padding:0}.sv-grid-cell-editor-color::-webkit-color-swatch{border:0;border-radius:4px}.sv-grid-cell-editor-color::-moz-color-swatch{border:0;border-radius:4px}.sv-grid-rating-editor{align-items:center;gap:1px;height:100%;display:inline-flex}.sv-grid-rating-star{cursor:pointer;color:var(--sg-rating-empty,#cbd5e1);background:0 0;border:0;padding:0 1px;font-size:18px;line-height:1;transition:color 80ms,transform 80ms}.sv-grid-rating-star-on{color:var(--sg-rating-on,#f59e0b)}.sv-grid-rating-star:hover{color:var(--sg-rating-hover,#fbbf24);transform:scale(1.12)}.sv-grid-rating-clear{color:var(--sg-muted,#94a3b8);cursor:pointer;background:0 0;border:0;margin-left:4px;font-size:14px}.sv-grid-rating-clear:hover{color:var(--sg-fg,#0f172a)}.sv-grid-checkbox[aria-checked=true],.sv-grid-checkbox[aria-checked=mixed]{border-color:var(--sg-accent,#2563eb);background:var(--sg-accent,#2563eb);color:var(--sg-on-accent,#fff)}.sv-grid-checkbox[aria-checked=true]:after{content:\"\";border-bottom:2px solid;border-right:2px solid;flex:none;width:5px;height:9px;transform:rotate(40deg)translate(-1px,-1px)}.sv-grid-checkbox[aria-checked=mixed]:after{content:\"\";background:currentColor;border-radius:1px;flex:none;width:8px;height:2px}.sv-grid-checkbox:focus-visible{outline:2px solid var(--sg-accent,#0b63f3);outline-offset:1px}.sv-grid-checkbox-readonly{cursor:default;pointer-events:none}@keyframes sv-grid-cell-flash-kf{0%{background-color:var(--sg-cell-flash,color-mix(in oklab, var(--sg-accent,#3b82f6) 42%, transparent))}to{background-color:#0000}}.sv-grid-cell-flash{animation:.7s ease-out sv-grid-cell-flash-kf}@media (prefers-reduced-motion:reduce){.sv-grid-cell-flash{animation:none}}.sv-grid-cell-active,.sv-grid-cell-editing{box-shadow:inset 0 0 0 2px var(--sg-accent,#0b63f3);outline:none;position:relative}.sv-grid-cell-editing{z-index:20;overflow:visible}.sv-grid-cell-active:not(.sv-grid-cell-editing){z-index:3}.sv-grid-active-seeded .sv-grid-cell-active{box-shadow:none}.sv-grid-cell.sv-grid-cell-editing:after{content:\"\";border:2px solid var(--sg-accent,#0b63f3);pointer-events:none;position:absolute;inset:-1px}.sv-grid-cell.sv-grid-cell-editing{box-shadow:none}.sv-grid-cell.sv-grid-cell-editing .sv-grid-cell-editor:focus,.sv-grid-cell.sv-grid-cell-editing .sv-grid-dropdown-trigger:focus,.sv-grid-cell.sv-grid-cell-editing .sv-dtp__field:focus-within,.sv-grid-cell.sv-grid-cell-editing .sv-grid-checkbox:focus-visible{box-shadow:none;outline:none}.sv-grid-cell-note-corner{background:linear-gradient(45deg, transparent 50%, var(--sg-note-corner,#f59e0b) 50%);cursor:help;z-index:6;width:12px;height:12px;position:absolute;top:0;right:0}.sv-grid-cell-note-corner:before{content:\"\";position:absolute;inset:-3px -3px 0 0}.sv-grid-fill-handle{background:var(--sg-accent,#0b63f3);border:1px solid var(--sg-bg,#fff);box-sizing:border-box;cursor:crosshair;z-index:15;touch-action:none;width:9px;height:9px;position:absolute;bottom:0;right:0}.sv-grid-fill-handle:hover{transform-origin:100% 100%;transform:scale(1.3)}.sv-grid-selection-bar-upsell{z-index:45;max-width:calc(100% - 24px);position:absolute;left:50%;transform:translate(-50%)}.sv-grid-selection-bar-upsell[data-position=bottom]{bottom:16px}.sv-grid-selection-bar-upsell[data-position=top]{top:16px}.sv-grid-root[data-move-grab=true],.sv-grid-root[data-move-grab=true] .sv-grid-cell{cursor:move!important}.sv-grid-root[data-move-grab=true] .sv-grid-fill-handle{cursor:crosshair!important}.sv-grid-cell[data-fill-top=true],.sv-grid-cell[data-fill-bottom=true],.sv-grid-cell[data-fill-left=true],.sv-grid-cell[data-fill-right=true]{--sv-fill-top:none;--sv-fill-bottom:none;--sv-fill-left:none;--sv-fill-right:none;--sv-fill-color:var(--sg-fill-marquee,var(--sg-accent,#2563eb))}.sv-grid-cell[data-fill-top=true]{--sv-fill-top:repeating-linear-gradient(to right, var(--sv-fill-color) 0 3px, transparent 3px 6px)}.sv-grid-cell[data-fill-bottom=true]{--sv-fill-bottom:repeating-linear-gradient(to right, var(--sv-fill-color) 0 3px, transparent 3px 6px)}.sv-grid-cell[data-fill-left=true]{--sv-fill-left:repeating-linear-gradient(to bottom, var(--sv-fill-color) 0 3px, transparent 3px 6px)}.sv-grid-cell[data-fill-right=true]{--sv-fill-right:repeating-linear-gradient(to bottom, var(--sv-fill-color) 0 3px, transparent 3px 6px)}.sv-grid-table .sv-grid-cell[data-fill-top=true],.sv-grid-table .sv-grid-cell[data-fill-bottom=true],.sv-grid-table .sv-grid-cell[data-fill-left=true],.sv-grid-table .sv-grid-cell[data-fill-right=true]{background-image:var(--sv-fill-top), var(--sv-fill-bottom), var(--sv-fill-left), var(--sv-fill-right);background-position:0 0,0 100%,0 0,100% 0;background-repeat:no-repeat;background-size:100% 2px,100% 2px,2px 100%,2px 100%}.sv-grid-cell-editing{padding:0}.sv-grid-column.sv-grid-column-collapsed,.sv-grid-cell.sv-grid-cell-collapsed{visibility:hidden;border-left-width:0;border-right-width:0;padding:0;overflow:hidden}.sv-grid-row.sv-grid-row-collapsed{display:none}.sv-grid-cell[data-selected-range=true]{background:var(--sg-selection-bg,#eef4ff);--sv-range-top:0 0 0 transparent;--sv-range-bottom:0 0 0 transparent;--sv-range-left:0 0 0 transparent;--sv-range-right:0 0 0 transparent;box-shadow:var(--sv-range-top), var(--sv-range-bottom), var(--sv-range-left), var(--sv-range-right)}.sv-grid-cell[data-range-top=true]{--sv-range-top:inset 0 2px 0 var(--sg-accent,#0b63f3)}.sv-grid-cell[data-range-bottom=true]{--sv-range-bottom:inset 0 -2px 0 var(--sg-accent,#0b63f3)}.sv-grid-cell[data-range-left=true]{--sv-range-left:inset 2px 0 0 var(--sg-accent,#0b63f3)}.sv-grid-cell[data-range-right=true]{--sv-range-right:inset -2px 0 0 var(--sg-accent,#0b63f3)}.sv-grid-cell[data-range-top=true],.sv-grid-cell[data-range-bottom=true],.sv-grid-cell[data-range-left=true],.sv-grid-cell[data-range-right=true],.sv-grid-cell.sv-merge-edge-right,.sv-grid-cell.sv-merge-edge-bottom{z-index:3;position:relative}.sv-grid-cell.sv-merge-edge-right{box-shadow:inset -2px 0 0 var(--sg-accent,#0b63f3)}.sv-grid-cell.sv-merge-edge-bottom{box-shadow:inset 0 -2px 0 var(--sg-accent,#0b63f3)}.sv-grid-cell.sv-merge-in-range{background:var(--sg-selection-bg,#eef4ff)}.sv-grid-cell-editor{background:var(--sg-input-bg,#fff);box-sizing:border-box;width:100%;height:100%;font:inherit;color:inherit;border:0;outline:none;padding:0 8px;position:absolute;inset:0}.sv-grid-row.sv-grid-row-frozen{z-index:31;background:var(--sg-bg,#fff);position:sticky}.sv-grid-row.sv-grid-row-frozen>.sv-grid-cell{background:var(--sg-bg,#fff)}.sv-grid-row.sv-grid-row-frozen-last>.sv-grid-cell{border-bottom:1px solid var(--sg-frozen-edge,var(--sg-border,#94a3b8))}.sv-grid-row.sv-grid-detail-row.sv-grid-detail-row-sized{height:var(--sv-detail-h)!important}.sv-grid-row.sv-grid-detail-row-sized>.sv-grid-detail-cell{vertical-align:top;box-sizing:border-box;height:var(--sv-detail-h)}.sv-grid-detail-body{box-sizing:border-box;height:100%;overflow:auto}.sv-grid-row.sv-grid-row-sticky-group{z-index:31;background:var(--sg-bg,#fff);position:sticky}.sv-grid-row.sv-grid-row-sticky-group>.sv-grid-cell{background:var(--sg-bg,#fff)}.sv-grid-row.sv-grid-row-sticky-group-last>.sv-grid-cell{border-bottom:1px solid var(--sg-frozen-edge,var(--sg-border,#94a3b8))}.sv-grid-cell-editor-multiline{resize:none;white-space:pre-wrap;height:auto;min-height:100%;line-height:inherit;overflow:hidden}.sv-grid-column-filter,.sv-grid-filter-value,.sv-grid-global-filter input,.sv-grid-menu-search,.sv-grid-menu-condition-value{background:var(--sg-input-bg,#fff);color:var(--sg-fg,#0f172a);border:1px solid var(--sg-input-border,#cbd5e1);box-sizing:border-box;font:inherit;border-radius:5px;padding:0 8px}.sv-grid-column-filter{width:100%;height:28px;font-size:.8125rem}.sv-grid-global-filter{color:var(--sg-muted,#64748b);align-items:center;gap:8px;margin-bottom:8px;font-size:.8125rem;font-weight:550;display:inline-flex}.sv-grid-global-filter input{min-width:220px;height:30px;font-size:.8125rem}.sv-grid-column-filter::placeholder,.sv-grid-filter-value::placeholder,.sv-grid-menu-search::placeholder,.sv-grid-global-filter input::placeholder,.sv-grid-cell-editor::placeholder{color:var(--sg-muted,#64748b);opacity:.7}.sv-grid-global-filter input:focus,.sv-grid-filter-value:focus,.sv-grid-column-filter:focus,.sv-grid-menu-search:focus,.sv-grid-menu-condition-value:focus,.sv-grid-menu-operator:focus,.sv-grid-cell-editor:focus{border-color:var(--sg-accent,#2563eb);box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-accent,#2563eb) 30%, transparent);outline:none}.sv-grid-cell-editor-number,.sv-grid-cell-editor-date,.sv-grid-cell-editor-datetime{width:100%;height:100%}.sv-grid-cell.sv-grid-cell-editing .sv-dtp{width:auto;display:block;position:absolute;inset:0}.sv-grid-cell.sv-grid-cell-editing .sv-dtp__field{height:100%;box-shadow:none;border:0;border-radius:0;padding-inline:0}.sv-grid-cell.sv-grid-cell-editing .sv-dtp__input{font:inherit}.sv-grid-cell.sv-grid-cell-editing .sv-dtp__clear,.sv-grid-cell.sv-grid-cell-editing .sv-dtp__toggle,.sv-grid-filter-row-control>.sv-field .sv-dtp__toggle{width:20px;height:20px}.sv-grid-filter-row-control>.sv-field .sv-dtp__toggle{flex:0 auto;min-width:0}.sv-grid-filter-row-control>.sv-field .sv-dtp__clear{display:none}.sv-grid-filter-row-control>.sv-field .sv-dri__field{gap:3px;padding-inline:4px 2px}.sv-grid-filter-row-control>.sv-field .sv-dri__clear{flex:0 auto;width:20px;min-width:0;height:20px}.sv-grid-cell-editor-list{appearance:auto;width:100%;height:100%;font:inherit;color:inherit;background:var(--sg-input-bg,#fff);box-sizing:border-box;border:0;padding:0 6px}.sv-grid-cell-editor-list[multiple]{z-index:5;border:1px solid var(--sg-accent,#0b63f3);background:var(--sg-input-bg,#fff);height:auto;min-height:100%;max-height:220px;padding:4px;position:absolute;top:0;left:0;right:0;box-shadow:0 8px 24px #0f172a2e}.sv-grid-cell-editor-chips{background:var(--sg-header-bg,var(--sg-bg,#fff));min-height:calc(100% + 2px);color:var(--sg-fg,#0f172a);box-sizing:border-box;z-index:1000;border:1px solid var(--sg-accent,#2563eb);border-radius:var(--sg-radius,6px);align-items:flex-start;padding:4px 6px;display:flex;position:absolute;top:-1px;left:-1px;right:-1px;overflow:visible;box-shadow:0 12px 28px #00000073}.sv-grid-cell-editing:has(.sv-grid-cell-editor-chips){outline:none}.sv-grid-chips-row{flex-wrap:wrap;align-items:center;gap:4px;width:100%;display:flex}.sv-grid-chip-input{min-width:60px;font:inherit;color:inherit;background:0 0;border:0;outline:none;flex:80px;padding:2px 4px}.sv-grid-chip-picker{min-width:80px;font:inherit;color:inherit;background:var(--sg-bg,#fff);border:1px solid #0f172a26;border-radius:4px;flex:100px;padding:2px 4px}.sv-grid-chip-commit{text-transform:uppercase;letter-spacing:.04em;color:#fff;background:var(--sg-accent,#0b63f3);cursor:pointer;border:0;border-radius:4px;padding:3px 8px;font-size:11px}.sv-grid-chip-commit:hover{filter:brightness(1.1)}.sv-grid-chips-display{vertical-align:middle;flex-wrap:nowrap;align-items:center;gap:4px;max-width:100%;display:inline-flex}.sv-grid-sparkline{vertical-align:middle;display:inline-block;overflow:visible}.sv-grid-cf-bg{z-index:0;pointer-events:none;position:absolute;inset:0}.sv-grid-cf-bar{z-index:0;opacity:.85;pointer-events:none;border-radius:0 2px 2px 0;position:absolute;top:0;bottom:0;left:0}.sv-grid-cell-cf{position:relative}.sv-grid-cell-invalid{box-shadow:inset 0 0 0 1px var(--sg-invalid-border,#ef444473);color:var(--sg-invalid-fg,#b91c1c);background-color:var(--sg-invalid-bg,#ef444424)!important}.sv-grid-cell-invalid.sv-grid-cell-active{box-shadow:inset 0 0 0 2px var(--sg-invalid-border,#ef4444b3)}.sv-grid-status-bar{color:var(--sg-fg);background:var(--sg-header-bg,#f1f5f9);border:1px solid var(--sg-border,#e2e8f0);border-top:0;flex-wrap:wrap;flex-shrink:0;align-items:center;gap:18px;padding:6px 14px;font-size:12px;display:flex}.sv-grid-status-item{font-variant-numeric:tabular-nums;font-weight:600}.sv-grid-status-label{color:var(--sg-muted,#64748b);margin-right:5px;font-weight:400}.sv-grid-cf-content{z-index:1;position:relative}.sv-grid-cf-icon{margin-right:5px;font-size:.95em}.sv-grid-chip{background:color-mix(in srgb, var(--sg-accent,#2563eb) 18%, transparent);color:var(--sg-fg,inherit);border:1px solid color-mix(in srgb, var(--sg-accent,#2563eb) 35%, transparent);white-space:nowrap;border-radius:999px;align-items:center;gap:4px;padding:2px 8px;font-size:.85em;line-height:1.4;display:inline-flex}.sv-grid-chip-removable{padding-right:2px}.sv-grid-chip-remove{background:color-mix(in srgb, var(--sg-fg,#0f172a) 18%, transparent);width:16px;height:16px;color:inherit;cursor:pointer;border:0;border-radius:999px;justify-content:center;align-items:center;padding:0;font-size:12px;line-height:1;display:inline-flex}.sv-grid-chip-remove:hover{color:#fff;background:#dc2626b3}.sv-grid-icon{flex:none;width:1em;height:1em;display:block}.sv-grid-icon-custom{justify-content:center;align-items:center;line-height:0;display:inline-flex}.sv-grid-icon-custom>svg,.sv-grid-icon-custom>img{width:100%;height:100%;display:block}.sv-grid-header-cell{width:100%;min-width:0;min-height:var(--sg-header-min-height,auto);align-items:center;gap:2px;display:flex}.sv-grid-header-sort{min-width:0;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex:auto;align-items:center;gap:4px;padding:2px;display:flex}.sv-grid-header-custom{text-align:left;cursor:pointer;outline:none;flex:auto;align-items:center;gap:4px;min-width:0;padding:2px;display:flex}.sv-grid-header-label{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;overflow:hidden}.sv-grid-header-icon{color:var(--sg-muted,#5b6b85);flex:none;font-size:13px;display:inline-flex}.sv-grid-header-icon-hint{opacity:0;transition:opacity .12s}.sv-grid-column:hover .sv-grid-header-icon-hint{opacity:.4}.sv-grid-header-icon-flag{color:var(--sg-accent,#0b63f3)}.sv-grid-col-menu-btn{width:0;height:22px;color:var(--sg-muted,#5b6b85);cursor:pointer;opacity:0;pointer-events:none;background:0 0;border:0;border-radius:4px;flex:none;justify-content:center;align-items:center;padding:0;font-size:15px;transition:width .14s,opacity .14s,background-color .12s;display:inline-flex;overflow:hidden}.sv-grid-column:hover .sv-grid-col-menu-btn,.sv-grid-col-menu-btn.is-open,.sv-grid-col-menu-btn:focus-visible,.sv-grid-col-filter-btn.is-active{opacity:1;pointer-events:auto;width:22px}.sv-grid-col-menu-btn:hover,.sv-grid-col-menu-btn.is-open{background:var(--sg-row-hover-bg,#e2e8f3)}.sv-grid-filter-operator-btn{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);height:24px;color:var(--sg-fg,#334155);cursor:pointer;border-radius:4px;flex:none;align-items:center;gap:2px;padding:0 4px;font-size:13px;display:inline-flex}.sv-grid-filter-operator-btn.is-open{border-color:var(--sg-accent,#0b63f3)}.sv-grid-caret{color:var(--sg-muted,#94a3b8);font-size:9px;display:inline-flex}.sv-grid-menu-backdrop{z-index:900;background:0 0;position:fixed;inset:0}.sv-grid-menu{z-index:901;overscroll-behavior:contain;background:var(--sg-bg,#fff);border:1px solid var(--sg-border,#d6dee9);max-height:calc(100vh - 24px);color:var(--sg-fg,#1f2937);border-radius:8px;padding:4px;font-size:13px;position:fixed;overflow:auto;box-shadow:0 12px 28px #0f172a2e}.sv-grid-column-menu{width:260px}.sv-grid-menu-tabs{border-bottom:1px solid var(--sg-border,#e2e8f0);gap:2px;margin:-2px -2px 4px;padding:2px 2px 0;display:flex}.sv-grid-menu-tab{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;flex:1;padding:6px;font-size:12px;font-weight:600}.sv-grid-menu-tab:hover{color:var(--sg-fg,#0f172a)}.sv-grid-menu-tab.is-active{color:var(--sg-accent,#2563eb);border-bottom-color:var(--sg-accent,#2563eb)}.sv-grid-operator-menu{width:184px}.sv-grid-context-menu{min-width:180px}.sv-grid-menu-icon{flex:none;justify-content:center;align-items:center;width:16px;height:16px;display:inline-flex}.sv-grid-menu-icon>svg{display:block}.sv-grid-comment-editor{width:240px;padding:8px}.sv-grid-comment-textarea{resize:vertical;border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);width:100%;min-height:60px;color:var(--sg-fg,#0f172a);font:inherit;border-radius:4px;outline:none;padding:6px 8px;font-size:13px}.sv-grid-comment-textarea:focus{border-color:var(--sg-accent,#6366f1)}.sv-grid-comment-actions{align-items:center;gap:6px;margin-top:8px;display:flex}.sv-grid-comment-spacer{flex:auto}.sv-grid-comment-actions button{border:1px solid var(--sg-border,#cbd5e1);background:var(--sg-bg,#fff);color:var(--sg-fg,#1f2937);font:inherit;cursor:pointer;border-radius:4px;padding:4px 10px;font-size:12px}.sv-grid-comment-save{border-color:var(--sg-accent,#6366f1)!important;background:var(--sg-accent,#6366f1)!important;color:#fff!important}.sv-grid-comment-remove{color:var(--sg-danger,#dc2626)!important}.sv-grid-menu-item{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:5px;align-items:center;gap:8px;padding:7px 10px;display:flex}.sv-grid-menu-item:hover{background:var(--sg-row-hover-bg,#eef2f8)}.sv-grid-menu.sv-grid-in-suggest{min-width:140px;max-width:260px;padding:0;font-size:12px;overflow:visible}.sv-grid-menu-item[aria-checked=true]{background:var(--sg-selection-bg,#eaf2ff);color:var(--sg-accent,#0b63f3)}.sv-grid-menu-sep{background:var(--sg-border,#e6ebf2);height:1px;margin:4px 6px}.sv-grid-menu-filter{padding:4px 6px 6px}.sv-grid-menu-filter-head{color:var(--sg-muted,#475569);align-items:center;gap:6px;padding:2px 0 6px;font-weight:600;display:flex}.sv-grid-menu-head-note{color:var(--sg-muted,#64748b);opacity:.85;margin-inline-start:auto;font-size:.85em;font-weight:500}.sv-grid-menu-search{box-sizing:border-box;border:1px solid var(--sg-input-border,#cbd5e1);width:100%;height:28px;font:inherit;border-radius:5px;margin-bottom:6px;padding:0 8px}.sv-grid-menu-filter-row{gap:4px;margin-bottom:6px;display:flex}.sv-grid-menu-operator-group{gap:2px;margin-bottom:6px;display:flex}.sv-grid-menu-operator-btn{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);height:28px;color:var(--sg-fg,#475569);cursor:pointer;border-radius:4px;flex:1 1 0;justify-content:center;align-items:center;padding:0;transition:background-color .1s,color .1s,border-color .1s;display:inline-flex}.sv-grid-menu-operator-btn:hover{background:var(--sg-row-hover-bg,#eef2f8)}.sv-grid-menu-operator-btn.is-active{background:var(--sg-accent,#0b63f3);border-color:var(--sg-accent,#0b63f3);color:#fff}.sv-grid-menu-condition-value{box-sizing:border-box;border:1px solid var(--sg-input-border,#cbd5e1);min-width:0;height:28px;font:inherit;border-radius:5px;flex:1 1 0;padding:0 8px}.sv-grid-menu-add-cond{color:var(--sg-accent,#3b82f6);border:1px dashed var(--sg-border,#cbd5e1);cursor:pointer;background:0 0;border-radius:5px;align-self:flex-start;margin-top:2px;padding:3px 8px;font-size:11.5px;font-weight:600}.sv-grid-menu-add-cond:hover{background:color-mix(in oklab, var(--sg-accent,#3b82f6) 8%, transparent);border-style:solid}.sv-grid-menu-join{align-items:center;gap:2px;margin:2px 0;display:inline-flex}.sv-grid-menu-join button{color:var(--sg-muted,#64748b);border:1px solid var(--sg-border,#cbd5e1);cursor:pointer;background:0 0;padding:2px 10px;font-size:11px;font-weight:700}.sv-grid-menu-join button:first-child{border-radius:5px 0 0 5px}.sv-grid-menu-join button:nth-child(2){border-left:0;border-radius:0}.sv-grid-menu-join button.is-on{background:var(--sg-accent,#3b82f6);color:#fff;border-color:var(--sg-accent,#3b82f6)}.sv-grid-menu-join-x{margin-left:auto;font-size:14px;line-height:1;border-radius:5px!important;padding:2px 7px!important}.sv-grid-menu .sv-listbox{overscroll-behavior:contain}.sv-grid-facet{cursor:pointer;align-items:center;gap:8px;padding:4px 8px;display:flex}.sv-grid-facet:hover{background:var(--sg-row-hover-bg,#f4f6fa)}.sv-grid-facet-all{padding-inline-start:3px;font-weight:600}.sv-grid-facet input{flex:none}.sv-grid-facet-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sv-grid-facet-empty,.sv-grid-facet-note{color:var(--sg-muted,#94a3b8);padding:6px 8px;font-size:12px}.sv-grid-menu-actions{justify-content:flex-end;gap:6px;padding-top:8px;display:flex}.sv-grid-menu-btn{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);color:var(--sg-fg,#334155);font:inherit;cursor:pointer;border-radius:5px;padding:5px 10px}.sv-grid-menu-btn-primary{background:var(--sg-accent,#0b63f3);border-color:var(--sg-accent,#0b63f3);color:#fff}.sv-grid-menu-item:disabled,.sv-grid-menu-btn:disabled{opacity:.4;cursor:default}.sv-grid-menu-item:disabled:hover{background:0 0}.sv-grid-group-row>.sv-grid-cell{background:var(--sg-header-bg,#eef2f8);cursor:pointer;font-weight:600}.sv-grid-row-selected>.sv-grid-cell{background:var(--sg-selection-bg,#eaf2ff)}.sv-grid-group-footer-row>.sv-grid-cell{background:var(--sg-header-bg,#eef2f8);border-top:1px solid var(--sg-border,#d7dce5);font-weight:600}.sv-grid-row-auto-height>.sv-grid-cell{white-space:normal;overflow-wrap:anywhere;text-overflow:clip;vertical-align:top;padding-top:6px;padding-bottom:6px;overflow:visible}.sv-grid-grand-total-row>.sv-grid-cell{border-top:3px double var(--sg-border,#d7dce5);font-weight:700}.sv-grid-tree-indent{flex:none;display:inline-block}.sv-grid-tree-toggle{width:14px;height:14px;color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-radius:3px;flex:none;justify-content:center;align-items:center;margin-right:3px;padding:0;font-size:10px;line-height:1;display:inline-flex}.sv-grid-tree-toggle:hover{background:var(--sg-header-bg,#eef2f8);color:var(--sg-fg,#0f172a)}.sv-grid-tree-toggle>.sv-grid-icon,.sv-grid-group-toggle>.sv-grid-icon{width:12px;height:12px;transition:transform .15s}.sv-grid-tree-toggle[aria-expanded=true]>.sv-grid-icon,.sv-grid-group-toggle[aria-expanded=true]>.sv-grid-icon{transform:rotate(90deg)}.sv-grid-tree-toggle:focus-visible{outline:2px solid var(--sg-accent,#2563eb);outline-offset:1px}.sv-grid-autogroup-label{color:var(--sg-fg,#0f172a);text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.sv-grid-tree-spacer{flex:none;width:14px;margin-right:3px;display:inline-block}.sv-grid-group-cell{padding:0 12px}.sv-grid-group-content{align-items:center;gap:6px;display:inline-flex}.sv-grid-group-toggle{color:var(--sg-fg,#334155);cursor:pointer;background:0 0;border:0;padding:0 4px 0 0;font-size:11px;line-height:1}.sv-grid-group-count{color:var(--sg-muted,#64748b);margin-left:6px;font-size:12px;font-weight:400}.sv-grid-group-agg{color:var(--sg-fg);white-space:nowrap;margin-left:10px;font-size:12px;font-weight:600}.sv-grid-group-agg-label{color:var(--sg-muted,#64748b);margin-right:4px;font-weight:400}.sv-grid-group-agg-label:after{content:\":\"}.sv-grid-group-child-indent{width:18px;display:inline-block}.sv-grid-tooltip{z-index:10000;color:#f1f5f9;border-radius:var(--sg-radius,6px);pointer-events:none;white-space:pre-wrap;word-wrap:break-word;background:#0f172a;max-width:280px;padding:8px 10px;font-size:12px;line-height:1.45;position:fixed;box-shadow:0 8px 24px #0f172a47}[data-theme=dark] .sv-grid-tooltip{color:#0f172a;background:#f1f5f9}.sv-grid-cell-editor-textarea{border:1px solid var(--sg-accent,#6366f1);background:var(--sg-bg,#fff);width:100%;min-height:80px;color:var(--sg-fg,#0f172a);resize:vertical;box-shadow:0 0 0 2px var(--sg-focus-ring,#6366f166);border-radius:4px;outline:none;padding:6px 8px;font-family:inherit;font-size:13px;line-height:1.4}.sv-grid-autocomplete{width:100%;position:relative}.sv-grid-autocomplete-list{z-index:30;background:var(--sg-bg,#fff);border:1px solid var(--sg-border,#d6dee9);border-radius:var(--sg-radius,6px);max-height:220px;margin-top:2px;padding:4px;position:absolute;top:100%;left:0;right:0;overflow:auto;box-shadow:0 12px 28px #0f172a2e}.sv-grid-autocomplete-option{text-align:left;width:100%;color:var(--sg-fg,#1f2937);font:inherit;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:0;border-radius:4px;padding:5px 8px;font-size:13px;display:block;overflow:hidden}.sv-grid-autocomplete-option:hover,.sv-grid-autocomplete-option[aria-selected=true]{background:var(--sg-row-hover-bg,#6366f11a)}.sv-grid-find{z-index:60;background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);border:1px solid var(--sg-border,#cbd5e1);border-radius:8px;align-items:center;gap:4px;min-width:280px;padding:6px 8px;display:inline-flex;position:absolute;top:8px;right:8px;box-shadow:0 10px 25px #0f172a2e}.sv-grid-find>.sv-grid-icon{width:14px;height:14px;color:var(--sg-muted,#94a3b8);flex:none;margin-left:2px}.sv-grid-find-input{min-width:0;color:inherit;background:0 0;border:0;outline:none;flex:1;padding:2px 6px;font-size:13px}.sv-grid-find-input::placeholder{color:var(--sg-muted,#94a3b8)}.sv-grid-find-count{color:var(--sg-muted,#64748b);font-variant-numeric:tabular-nums;white-space:nowrap;padding:0 4px;font-size:11px}.sv-grid-find-step,.sv-grid-find-close{width:22px;height:22px;color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;border-radius:4px;justify-content:center;align-items:center;padding:0;font-size:12px;display:inline-flex}.sv-grid-find-step:hover:not(:disabled),.sv-grid-find-close:hover{background:var(--sg-row-hover-bg,#94a3b81f);color:var(--sg-fg,#0f172a)}.sv-grid-find-step:disabled{opacity:.3;cursor:default}.sv-grid-pagination{border:1px solid var(--sg-border,#e2e8f0);border-radius:0 0 var(--sg-radius,6px) var(--sg-radius,6px);background:var(--sg-header-bg,#f1f5f9);color:var(--sg-fg,#0f172a);border-top:0;justify-content:flex-end;align-items:center;gap:24px;margin-top:0;padding:12px 16px;font-size:13px;display:flex}.sv-grid-pagination-top{border-top:1px solid var(--sg-border,#e2e8f0);border-radius:var(--sg-radius,6px) var(--sg-radius,6px) 0 0;border-bottom:0}.sv-grid-pagination-pagesize{color:var(--sg-muted,#64748b);align-items:center;gap:8px;display:inline-flex}.sv-grid-pagination-pagesize-dd{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);border-radius:5px;min-width:62px;height:28px;position:relative}.sv-grid-pagination-pagesize-dd .sv-grid-dropdown{height:100%;color:var(--sg-fg,#0f172a);background:0 0;border-radius:5px;font-size:13px;position:absolute;inset:0}.sv-grid-pagination-pagesize-dd .sv-grid-dropdown-trigger{width:100%;height:100%;min-height:28px;color:var(--sg-fg,#0f172a);font:inherit;text-align:start;cursor:pointer;box-sizing:border-box;background:0 0;border:0;border-radius:5px;outline:none;align-items:center;gap:6px;padding:0 8px;font-size:13px;display:flex}.sv-grid-pagination-pagesize-dd .sv-grid-dropdown-label{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:0;overflow:hidden}.sv-grid-pagination-pagesize-dd .sv-grid-dropdown-caret{opacity:.7;flex:none;font-size:10px;line-height:1}.sv-grid-pagination-pagesize-dd:focus-within{border-color:var(--sg-accent,#2563eb);box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-accent,#2563eb) 30%, transparent)}.sv-grid-pagination-range{color:var(--sg-fg,#0f172a)}.sv-grid-pagination-nav{align-items:center;gap:4px;display:inline-flex}.sv-grid-pagination-btn{width:28px;height:28px;color:var(--sg-fg,#0f172a);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:5px;justify-content:center;align-items:center;padding:0;font-size:16px;transition:background-color .1s,color .1s;display:inline-flex}.sv-grid-pagination-btn:hover:not(:disabled){background:var(--sg-input-bg,#fff);color:var(--sg-accent,#2563eb)}.sv-grid-pagination-btn:disabled{color:var(--sg-muted,#64748b);opacity:.4;cursor:default}.sv-grid-pagination-label{color:var(--sg-fg,#0f172a);margin:0 8px}.sv-grid-no-scroll .sv-grid-scrollbar-corner,.sv-grid-no-scroll .sv-grid-scrollbar{display:none}.sv-grid-scrollbar-corner,.sv-grid-scrollbar-corner-br{border-bottom-color:var(--sg-border,#e2e8f0)}.sv-grid-menu-operator-select{border:1px solid var(--sg-input-border,#cbd5e1);background:var(--sg-input-bg,#fff);width:100%;height:28px;color:var(--sg-fg,#0f172a);font:inherit;cursor:pointer;appearance:none;background-image:linear-gradient(45deg,#0000 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,#0000 50%);background-position:calc(100% - 12px) 12px,calc(100% - 8px) 12px;background-repeat:no-repeat;background-size:4px 4px,4px 4px;border-radius:5px;margin-bottom:6px;padding:0 22px 0 8px;font-size:13px}.sv-grid-menu-operator-select:focus{border-color:var(--sg-accent,#2563eb);box-shadow:0 0 0 2px color-mix(in srgb, var(--sg-accent,#2563eb) 40%, transparent);outline:none}.sv-grid-menu-operator-btn.is-active{color:var(--sg-on-accent,#fff)}.sv-grid-filter-menu{width:260px}.sv-grid-choose-columns-menu{width:240px}.sv-grid-facet input[type=checkbox]{accent-color:var(--sg-accent,#2563eb);cursor:pointer;width:14px;height:14px}.sv-grid-menu-item-chevron{opacity:.55;margin-left:auto;transform:rotate(-90deg)}.sv-grid-menu-item.is-open .sv-grid-menu-item-chevron{opacity:1}.sv-grid-menu-search{padding-left:28px}.sv-grid-menu-search-wrap{display:block;position:relative}.sv-grid-menu-search-wrap>.sv-grid-icon{width:14px;height:14px;color:var(--sg-muted,#94a3b8);pointer-events:none;position:absolute;top:50%;left:8px;transform:translateY(-50%)}.sv-grid-menu-filter>*+*{margin-top:6px}.sv-grid-col-filter-btn.is-active{color:var(--sg-accent,#2563eb)}.sv-grid-row-number-column,.sv-grid-row-number-cell,:is(.sv-grid-row-number-cell:has(+.sv-grid-detail-toggle-cell),.sv-grid-row-number-column:has(+.sv-grid-detail-toggle-column)){border-right-color:var(--sg-header-bg,#f1f5f9)}.sv-grid-group-row>.sv-grid-cell{color:var(--sg-header-fg,#0f172a)}.sv-grid-filter-operator-btn{opacity:.85}.sv-grid-filter-operator-btn:hover{opacity:1;border-color:var(--sg-accent,#2563eb)}.sv-grid-filter-operator-btn.is-open{opacity:1}.sv-grid-board-search>.sv-grid-icon{width:14px;height:14px}.sv-grid-board-search{border:1px solid var(--sg-border,#e4e7ec);border-radius:var(--sg-radius,8px);background:var(--sg-bg,#fff);color:color-mix(in srgb, var(--sg-fg,#101828) 55%, transparent);align-items:center;gap:6px;max-width:280px;margin-bottom:8px;padding:5px 9px;display:flex}.sv-grid-board-search:focus-within{border-color:var(--sg-accent,#3b82f6)}.sv-grid-board-search input{font:inherit;color:var(--sg-fg,#101828);background:0 0;border:0;outline:none;flex:auto;font-size:.82rem}.sv-grid-scheduler-upsell{text-align:left;border:1px dashed var(--sg-border,#e4e7ec);border-radius:var(--sg-radius,8px);background:color-mix(in srgb, var(--sg-fg,#1f2937) 5%, transparent);height:100%;color:color-mix(in srgb, var(--sg-fg,#101828) 70%, transparent);flex-direction:column;justify-content:center;align-items:flex-start;gap:6px;padding:24px;display:flex}.sv-grid-scheduler-upsell strong{font-size:.95rem}.sv-grid-scheduler-upsell p{max-width:42ch;margin:0;font-size:.85rem}.sv-grid-upsell-license{opacity:.85;font-size:.8rem}.sv-grid-upsell-license a{color:inherit;text-underline-offset:2px;text-decoration:underline}.sv-grid-scheduler-upsell code{background:color-mix(in srgb, var(--sg-fg,#101828) 8%, transparent);border-radius:4px;padding:1px 4px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.82em}.sv-grid-chart-toggle svg{flex:none}.sv-grid-chart-panel{z-index:900;background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);flex-direction:column;display:flex;position:absolute}.sv-grid-chart-panel.is-bottom{border-top:1px solid var(--sg-border,#e2e8f0);bottom:0;left:0;right:0;box-shadow:0 -8px 24px #0000001f}.sv-grid-chart-panel.is-right{border-left:1px solid var(--sg-border,#e2e8f0);top:0;bottom:0;right:0;box-shadow:-8px 0 24px #0000001f}.sv-grid-chart-panel.is-floating{border:1px solid var(--sg-border,#e2e8f0);border-radius:calc(var(--sg-radius,6px) + 2px);inset:auto;overflow:hidden;box-shadow:0 12px 40px #00000047}.sv-grid-chart-resizer{z-index:1;touch-action:none;background:0 0;position:absolute}.sv-grid-chart-panel.is-bottom>.sv-grid-chart-resizer{cursor:ns-resize;height:7px;top:-3px;left:0;right:0}.sv-grid-chart-panel.is-right>.sv-grid-chart-resizer{cursor:ew-resize;width:7px;top:0;bottom:0;left:-3px}.sv-grid-chart-resizer:hover,.sv-grid-chart-resizer.is-dragging{background:color-mix(in srgb, var(--sg-accent,#2563eb) 30%, transparent)}.sv-grid-chart-float-resizer{cursor:nwse-resize;touch-action:none;background:linear-gradient(135deg, transparent 50%, color-mix(in srgb, var(--sg-muted,#64748b) 55%, transparent) 50%);border-bottom-right-radius:calc(var(--sg-radius,6px) + 2px);width:16px;height:16px;position:absolute;bottom:0;right:0}.sv-grid-chart-panel-head{border-bottom:1px solid var(--sg-border,#e2e8f0);background:var(--sg-header-bg,#f8fafc);flex-direction:column;align-items:stretch;gap:8px;padding:8px 12px 10px;display:flex}.sv-grid-chart-drawer-title{align-items:center;gap:7px;display:flex}.sv-grid-chart-drawer-title.is-drag-handle{cursor:move;-webkit-user-select:none;user-select:none}.sv-grid-chart-title-icon{color:var(--sg-accent,#2563eb);flex:none}.sv-grid-chart-title{letter-spacing:.01em;color:var(--sg-fg,#0f172a);font-size:13px;font-weight:700}.sv-grid-chart-drawer-title .sv-grid-chart-actions{margin-left:auto}.sv-grid-chart-actions{align-items:center;gap:6px;display:inline-flex}.sv-grid-chart-controls{flex-wrap:wrap;align-items:flex-end;gap:10px;display:flex}.sv-grid-chart-controls:empty{display:none}.sv-grid-chart-controls.is-form{flex-direction:column;align-items:stretch;gap:8px}.sv-grid-chart-controls.is-form .sv-grid-chart-ctl,.sv-grid-chart-controls.is-form .sv-grid-chart-toggle{grid-template-columns:110px 1fr;align-items:center;gap:8px;font-size:12px;font-weight:400;display:grid}.sv-grid-chart-controls.is-form .sv-grid-chart-toggle{grid-template-columns:110px auto;justify-content:start}.sv-grid-chart-controls.is-form .sv-grid-chart-toggle>input{order:1;justify-self:start}.sv-grid-chart-controls.is-form .sv-grid-chart-ctl-lbl{font-size:12px;font-weight:400}.sv-grid-chart-controls.is-form .sv-grid-chart-indicators,.sv-grid-chart-controls.is-form .sv-grid-chart-hint{flex-basis:auto}.sv-grid-chart-hint{color:var(--sg-muted,#64748b);flex-basis:100%;margin:2px 0 0;font-size:11.5px;font-weight:400}.sv-grid-chart-ctl{color:var(--sg-muted,#64748b);flex-direction:column;gap:2px;font-size:11px;font-weight:600;display:flex}.sv-grid-chart-ctl select,.sv-grid-chart-ctl .sv-grid-chart-num{font:inherit;color:var(--sg-fg,#0f172a);background:var(--sg-input-bg,var(--sg-bg,#fff));border:1px solid var(--sg-input-border,var(--sg-border,#e2e8f0));border-radius:var(--sg-radius,6px);padding:4px 8px;font-size:12.5px;font-weight:400}.sv-grid-chart-ctl .sv-grid-chart-num{width:64px}.sv-grid-chart-toggle{color:var(--sg-muted,#64748b);cursor:pointer;white-space:nowrap;align-items:center;gap:5px;font-size:12px;font-weight:600;display:inline-flex}.sv-grid-chart-btn{font:inherit;border:1px solid var(--sg-border,#e2e8f0);border-radius:var(--sg-radius,6px);background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);cursor:pointer;padding:5px 10px;font-size:12px;font-weight:550}.sv-grid-chart-btn:hover:not(:disabled){border-color:var(--sg-accent,#2563eb);color:var(--sg-accent,#2563eb)}.sv-grid-chart-btn:disabled{opacity:.5;cursor:default}.sv-grid-chart-icon-btn{border-radius:var(--sg-radius,6px);width:24px;height:24px;color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:1px solid #0000;justify-content:center;align-items:center;display:inline-flex}.sv-grid-chart-icon-btn:hover{border-color:var(--sg-border,#e2e8f0);color:var(--sg-accent,#2563eb);background:var(--sg-bg,#fff)}.sv-grid-chart-close{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;padding:0 4px;font-size:18px;line-height:1}.sv-grid-chart-close:hover{color:var(--sg-fg,#0f172a)}.sv-grid-chart-panel-body{flex:1;justify-content:center;align-items:stretch;min-height:0;padding:4px 10px 8px;display:flex;overflow:hidden}.sv-grid-chart-panel-body>.sv-grid-chart{justify-content:center;width:100%}.sv-grid-chart-panes-host{width:100%;height:100%;overflow:auto}.sv-grid-chart-build-btn{align-items:center;gap:4px;display:inline-flex}.sv-grid-chart-link-btn.is-unlinked{color:#b45309;border-color:#b4530966}.sv-grid-chart-indicators{flex-basis:100%}.sv-grid-chart-chips{flex-wrap:wrap;gap:3px;display:flex}.sv-grid-chart-chip{font:inherit;border:1px solid var(--sg-border,#e2e8f0);background:var(--sg-bg,#fff);color:var(--sg-fg,#0f172a);cursor:pointer;border-radius:999px;padding:3px 7px;font-size:11px;line-height:1}.sv-grid-chart-chip.is-on{background:var(--sg-accent,#2563eb);border-color:var(--sg-accent,#2563eb);color:#fff}.sv-grid-chart-empty{color:var(--sg-muted,#64748b);text-align:center;max-width:42ch;margin:0;font-size:13px}.sv-grid-chart-export{display:inline-flex;position:relative}.sv-grid-chart-export-menu{z-index:5;background:var(--sg-bg,#fff);border:1px solid var(--sg-border,#e2e8f0);border-radius:var(--sg-radius,6px);flex-direction:column;min-width:150px;padding:4px;display:flex;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 8px 24px #0000002e}.sv-grid-chart-export-menu button{font:inherit;text-align:left;border-radius:calc(var(--sg-radius,6px) - 2px);color:var(--sg-fg,#0f172a);cursor:pointer;white-space:nowrap;background:0 0;border:0;padding:6px 10px;font-size:12.5px}.sv-grid-chart-export-menu button:hover:not(:disabled){background:var(--sg-hover-bg,color-mix(in srgb, var(--sg-accent,#2563eb) 10%, transparent))}.sv-grid-chart-export-menu button:disabled{opacity:.45;cursor:default}.sv-grid-chart-saved-menu{gap:4px;min-width:220px}.sv-grid-chart-saved-row{gap:4px;padding:2px;display:flex}.sv-grid-chart-saved-name{min-width:0;font:inherit;color:var(--sg-fg,#0f172a);background:var(--sg-input-bg,var(--sg-bg,#fff));border:1px solid var(--sg-input-border,var(--sg-border,#e2e8f0));border-radius:var(--sg-radius,6px);flex:1;padding:4px 8px;font-size:12.5px}.sv-grid-chart-saved-name:focus{border-color:var(--sg-accent,#2563eb);outline:none}.sv-grid-chart-saved-list{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.sv-grid-chart-saved-item{align-items:center;display:flex}.sv-grid-chart-saved-item .sv-grid-chart-saved-apply{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.sv-grid-chart-saved-item .sv-grid-chart-saved-x{color:var(--sg-muted,#64748b);flex:none;padding:4px 8px}.sv-grid-chart-saved-empty{color:var(--sg-muted,#64748b);margin:0;padding:4px 8px;font-size:12px}.sv-grid-chart-ai-btn{align-items:center;gap:4px;display:inline-flex}.sv-grid-chart-ai-btn.is-active{border-color:var(--sg-accent,#2563eb);color:var(--sg-accent,#2563eb)}.sv-grid-chart-ai{flex-direction:column;gap:4px;display:flex}.sv-grid-chart-ai-row{align-items:center;gap:6px;display:flex}.sv-grid-chart-ai-input{min-width:0;font:inherit;color:var(--sg-fg,#0f172a);background:var(--sg-input-bg,var(--sg-bg,#fff));border:1px solid var(--sg-input-border,var(--sg-border,#e2e8f0));border-radius:var(--sg-radius,6px);flex:1;padding:5px 9px;font-size:12.5px}.sv-grid-chart-ai-input:focus{border-color:var(--sg-accent,#2563eb);outline:none}.sv-grid-chart-ai-msg{color:var(--sg-muted,#64748b);margin:0;font-size:12px}.sv-grid-chart-ai-msg.is-error{color:var(--sg-danger,#dc2626)}.sv-grid-chart-tabs{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.sv-grid-chart-tab{border:1px solid var(--sg-border,#e2e8f0);border-radius:var(--sg-radius,6px);background:var(--sg-bg,#fff);align-items:center;display:inline-flex;overflow:hidden}.sv-grid-chart-tab.is-active{border-color:var(--sg-accent,#2563eb);background:color-mix(in srgb, var(--sg-accent,#2563eb) 10%, transparent)}.sv-grid-chart-tab-label{font:inherit;color:var(--sg-fg,#0f172a);cursor:pointer;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;max-width:140px;padding:3px 8px;font-size:12px;font-weight:600;overflow:hidden}.sv-grid-chart-tab.is-active .sv-grid-chart-tab-label{color:var(--sg-accent,#2563eb)}.sv-grid-chart-tab-x{color:var(--sg-muted,#64748b);cursor:pointer;background:0 0;border:0;padding:0 6px 0 2px;font-size:14px;line-height:1}.sv-grid-chart-tab-x:hover{color:var(--sg-fg,#0f172a)}\n/*$vite$:1*/";document.head.appendChild(s)}catch(e){}})();
|