@gui-chat-plugin/spreadsheet 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/index.d.ts +1 -1
- package/dist/core.js +1 -2
- package/dist/index.js +1 -2
- package/dist/style.css +1 -1
- package/dist/vue/index.d.ts +1 -1
- package/dist/vue.cjs +19 -19
- package/dist/vue.js +279 -375
- package/package.json +22 -11
package/dist/vue.js
CHANGED
|
@@ -1162,15 +1162,10 @@ function Nt(e, t, n) {
|
|
|
1162
1162
|
function Pt(e, t) {
|
|
1163
1163
|
if (typeof t != "number") {
|
|
1164
1164
|
t = +t || -1;
|
|
1165
|
-
for (var n = 0; n < 392; ++n)
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
}
|
|
1170
|
-
if (P[n] == e) {
|
|
1171
|
-
t = n;
|
|
1172
|
-
break;
|
|
1173
|
-
}
|
|
1165
|
+
for (var n = 0; n < 392; ++n) if (P[n] == null) t < 0 && (t = n);
|
|
1166
|
+
else if (P[n] == e) {
|
|
1167
|
+
t = n;
|
|
1168
|
+
break;
|
|
1174
1169
|
}
|
|
1175
1170
|
t < 0 && (t = 391);
|
|
1176
1171
|
}
|
|
@@ -1581,13 +1576,13 @@ var Ht = /*#__PURE__*/ (function() {
|
|
|
1581
1576
|
for (c = 0; c < 17; ++c) i.write_shift(4, 0);
|
|
1582
1577
|
for (c = 0; c < 3; ++c) i.write_shift(4, -1);
|
|
1583
1578
|
for (c = 0; c < 12; ++c) i.write_shift(4, 0);
|
|
1584
|
-
|
|
1579
|
+
} else {
|
|
1580
|
+
u = e.FileIndex[a], a === 0 && (u.start = u.size ? u.start - 1 : O);
|
|
1581
|
+
var f = a === 0 && n.root || u.name;
|
|
1582
|
+
if (f.length > 31 && (console.error("Name " + f + " will be truncated to " + f.slice(0, 31)), f = f.slice(0, 31)), l = 2 * (f.length + 1), i.write_shift(64, f, "utf16le"), i.write_shift(2, l), i.write_shift(1, u.type), i.write_shift(1, u.color), i.write_shift(-4, u.L), i.write_shift(-4, u.R), i.write_shift(-4, u.C), u.clsid) i.write_shift(16, u.clsid, "hex");
|
|
1583
|
+
else for (c = 0; c < 4; ++c) i.write_shift(4, 0);
|
|
1584
|
+
i.write_shift(4, u.state || 0), i.write_shift(4, 0), i.write_shift(4, 0), i.write_shift(4, 0), i.write_shift(4, 0), i.write_shift(4, u.start), i.write_shift(4, u.size), i.write_shift(4, 0);
|
|
1585
1585
|
}
|
|
1586
|
-
u = e.FileIndex[a], a === 0 && (u.start = u.size ? u.start - 1 : O);
|
|
1587
|
-
var f = a === 0 && n.root || u.name;
|
|
1588
|
-
if (f.length > 31 && (console.error("Name " + f + " will be truncated to " + f.slice(0, 31)), f = f.slice(0, 31)), l = 2 * (f.length + 1), i.write_shift(64, f, "utf16le"), i.write_shift(2, l), i.write_shift(1, u.type), i.write_shift(1, u.color), i.write_shift(-4, u.L), i.write_shift(-4, u.R), i.write_shift(-4, u.C), u.clsid) i.write_shift(16, u.clsid, "hex");
|
|
1589
|
-
else for (c = 0; c < 4; ++c) i.write_shift(4, 0);
|
|
1590
|
-
i.write_shift(4, u.state || 0), i.write_shift(4, 0), i.write_shift(4, 0), i.write_shift(4, 0), i.write_shift(4, 0), i.write_shift(4, u.start), i.write_shift(4, u.size), i.write_shift(4, 0);
|
|
1591
1586
|
}
|
|
1592
1587
|
for (a = 1; a < e.FileIndex.length; ++a) if (u = e.FileIndex[a], u.size >= 4096) {
|
|
1593
1588
|
if (i.l = u.start + 1 << 9, N && Buffer.isBuffer(u.content)) u.content.copy(i, i.l, 0, u.size), i.l += u.size + 511 & -512;
|
|
@@ -1886,25 +1881,25 @@ var Ht = /*#__PURE__*/ (function() {
|
|
|
1886
1881
|
if (s < 10) {
|
|
1887
1882
|
for (i = De(n, i, +(a + s == t.length)), i & 7 && (i += 8 - (i & 7)), n.l = i / 8 | 0, n.write_shift(2, s), n.write_shift(2, ~s & 65535); s-- > 0;) n[n.l++] = t[a++];
|
|
1888
1883
|
i = n.l * 8;
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
}
|
|
1884
|
+
} else {
|
|
1885
|
+
i = De(n, i, +(a + s == t.length) + 2);
|
|
1886
|
+
for (var c = 0; s-- > 0;) {
|
|
1887
|
+
var l = t[a];
|
|
1888
|
+
c = (c << 5 ^ l) & 32767;
|
|
1889
|
+
var u = -1, d = 0;
|
|
1890
|
+
if ((u = o[c]) && (u |= a & -32768, u > a && (u -= 32768), u < a)) for (; t[u + d] == t[a + d] && d < 250;) ++d;
|
|
1891
|
+
if (d > 2) {
|
|
1892
|
+
l = r[d], l <= 22 ? i = Ae(n, i, pe[l + 1] >> 1) - 1 : (Ae(n, i, 3), i += 5, Ae(n, i, pe[l - 23] >> 5), i += 3);
|
|
1893
|
+
var f = l < 8 ? 0 : l - 4 >> 2;
|
|
1894
|
+
f > 0 && (Ne(n, i, d - ue[l]), i += f), l = e[a - u], i = Ae(n, i, pe[l] >> 3), i -= 3;
|
|
1895
|
+
var p = l < 4 ? 0 : l - 2 >> 1;
|
|
1896
|
+
p > 0 && (Ne(n, i, a - u - de[l]), i += p);
|
|
1897
|
+
for (var m = 0; m < d; ++m) o[c] = a & 32767, c = (c << 5 ^ t[a]) & 32767, ++a;
|
|
1898
|
+
s -= d - 1;
|
|
1899
|
+
} else l <= 143 ? l += 48 : i = Oe(n, i, 1), i = Ae(n, i, pe[l]), o[c] = a & 32767, ++a;
|
|
1900
|
+
}
|
|
1901
|
+
i = Ae(n, i, 0) - 1;
|
|
1906
1902
|
}
|
|
1907
|
-
i = Ae(n, i, 0) - 1;
|
|
1908
1903
|
}
|
|
1909
1904
|
return n.l = (i + 7) / 8 | 0, n.l;
|
|
1910
1905
|
}
|
|
@@ -2097,11 +2092,8 @@ var Ht = /*#__PURE__*/ (function() {
|
|
|
2097
2092
|
t = t.replace(/ $/gm, "=20").replace(/\t$/gm, "=09"), t.charAt(0) == "\n" && (t = "=0D" + t.slice(1)), t = t.replace(/\r(?!\n)/gm, "=0D").replace(/\n\n/gm, "\n=0A").replace(/([^\r\n])\n/gm, "$1=0A");
|
|
2098
2093
|
for (var n = [], r = t.split("\r\n"), i = 0; i < r.length; ++i) {
|
|
2099
2094
|
var a = r[i];
|
|
2100
|
-
if (a.length == 0)
|
|
2101
|
-
|
|
2102
|
-
continue;
|
|
2103
|
-
}
|
|
2104
|
-
for (var o = 0; o < a.length;) {
|
|
2095
|
+
if (a.length == 0) n.push("");
|
|
2096
|
+
else for (var o = 0; o < a.length;) {
|
|
2105
2097
|
var s = 76, c = a.slice(o, o + s);
|
|
2106
2098
|
c.charAt(s - 1) == "=" ? s-- : c.charAt(s - 2) == "=" ? s -= 2 : c.charAt(s - 3) == "=" && (s -= 3), c = a.slice(o, o + s), o += s, o < a.length && (c += "="), n.push(c);
|
|
2107
2099
|
}
|
|
@@ -2510,21 +2502,7 @@ function jn(e) {
|
|
|
2510
2502
|
return !1;
|
|
2511
2503
|
}
|
|
2512
2504
|
function Mn(e) {
|
|
2513
|
-
for (var t = "", n = 0, r = 0, i = 0, a = 0, o = 0, s = 0; n < e.length;)
|
|
2514
|
-
if (r = e.charCodeAt(n++), r < 128) {
|
|
2515
|
-
t += String.fromCharCode(r);
|
|
2516
|
-
continue;
|
|
2517
|
-
}
|
|
2518
|
-
if (i = e.charCodeAt(n++), r > 191 && r < 224) {
|
|
2519
|
-
o = (r & 31) << 6, o |= i & 63, t += String.fromCharCode(o);
|
|
2520
|
-
continue;
|
|
2521
|
-
}
|
|
2522
|
-
if (a = e.charCodeAt(n++), r < 240) {
|
|
2523
|
-
t += String.fromCharCode((r & 15) << 12 | (i & 63) << 6 | a & 63);
|
|
2524
|
-
continue;
|
|
2525
|
-
}
|
|
2526
|
-
o = e.charCodeAt(n++), s = ((r & 7) << 18 | (i & 63) << 12 | (a & 63) << 6 | o & 63) - 65536, t += String.fromCharCode(55296 + (s >>> 10 & 1023)), t += String.fromCharCode(56320 + (s & 1023));
|
|
2527
|
-
}
|
|
2505
|
+
for (var t = "", n = 0, r = 0, i = 0, a = 0, o = 0, s = 0; n < e.length;) r = e.charCodeAt(n++), r < 128 ? t += String.fromCharCode(r) : (i = e.charCodeAt(n++), r > 191 && r < 224 ? (o = (r & 31) << 6, o |= i & 63, t += String.fromCharCode(o)) : (a = e.charCodeAt(n++), r < 240 ? t += String.fromCharCode((r & 15) << 12 | (i & 63) << 6 | a & 63) : (o = e.charCodeAt(n++), s = ((r & 7) << 18 | (i & 63) << 12 | (a & 63) << 6 | o & 63) - 65536, t += String.fromCharCode(55296 + (s >>> 10 & 1023)), t += String.fromCharCode(56320 + (s & 1023)))));
|
|
2528
2506
|
return t;
|
|
2529
2507
|
}
|
|
2530
2508
|
function Nn(e) {
|
|
@@ -4616,77 +4594,72 @@ var So = /*#__PURE__*/ (function() {
|
|
|
4616
4594
|
i.l = u;
|
|
4617
4595
|
var g = 0, _ = 0;
|
|
4618
4596
|
for (r[0] = [], _ = 0; _ != f.length; ++_) r[0][_] = f[_].name;
|
|
4619
|
-
for (; l-- > 0;)
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4639
|
-
|
|
4640
|
-
|
|
4641
|
-
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
case "":
|
|
4653
|
-
case "\0":
|
|
4654
|
-
case "?": break;
|
|
4655
|
-
default: throw Error("DBF Unrecognized L:|" + y + "|");
|
|
4656
|
-
}
|
|
4657
|
-
break;
|
|
4658
|
-
case "M":
|
|
4659
|
-
if (!o) throw Error("DBF Unexpected MEMO for type " + a.toString(16));
|
|
4660
|
-
r[g][_] = "##MEMO##" + (c ? parseInt(y.trim(), 10) : v.read_shift(4));
|
|
4661
|
-
break;
|
|
4662
|
-
case "N":
|
|
4663
|
-
y = y.replace(/\u0000/g, "").trim(), y && y != "." && (r[g][_] = +y || 0);
|
|
4664
|
-
break;
|
|
4665
|
-
case "@":
|
|
4666
|
-
r[g][_] = /* @__PURE__ */ new Date(v.read_shift(-8, "f") - 621356832e5);
|
|
4667
|
-
break;
|
|
4668
|
-
case "T":
|
|
4669
|
-
var b = v.read_shift(4), x = v.read_shift(4);
|
|
4670
|
-
if (b == 0 && x == 0) break;
|
|
4671
|
-
r[g][_] = new Date((b - 2440588) * 864e5 + x), n && n.UTC || (r[g][_] = yn(r[g][_]));
|
|
4672
|
-
break;
|
|
4673
|
-
case "Y":
|
|
4674
|
-
r[g][_] = v.read_shift(4, "i") / 1e4 + v.read_shift(4, "i") / 1e4 * 2 ** 32;
|
|
4675
|
-
break;
|
|
4676
|
-
case "O":
|
|
4677
|
-
r[g][_] = -v.read_shift(-8, "f");
|
|
4678
|
-
break;
|
|
4679
|
-
case "B": if (s && f[_].len == 8) {
|
|
4680
|
-
r[g][_] = v.read_shift(8, "f");
|
|
4681
|
-
break;
|
|
4597
|
+
for (; l-- > 0;) if (i[i.l] === 42) i.l += d;
|
|
4598
|
+
else for (++i.l, r[++g] = [], _ = 0, _ = 0; _ != f.length; ++_) {
|
|
4599
|
+
var v = i.slice(i.l, i.l + f[_].len);
|
|
4600
|
+
i.l += f[_].len, Or(v, 0);
|
|
4601
|
+
var y = De(v);
|
|
4602
|
+
switch (f[_].type) {
|
|
4603
|
+
case "C":
|
|
4604
|
+
y.trim().length && (r[g][_] = y.replace(/([^\s])\s+$/, "$1"));
|
|
4605
|
+
break;
|
|
4606
|
+
case "D":
|
|
4607
|
+
y.length === 8 ? (r[g][_] = new Date(Date.UTC(+y.slice(0, 4), y.slice(4, 6) - 1, +y.slice(6, 8), 0, 0, 0, 0)), n && n.UTC || (r[g][_] = yn(r[g][_]))) : r[g][_] = y;
|
|
4608
|
+
break;
|
|
4609
|
+
case "F":
|
|
4610
|
+
r[g][_] = parseFloat(y.trim());
|
|
4611
|
+
break;
|
|
4612
|
+
case "+":
|
|
4613
|
+
case "I":
|
|
4614
|
+
r[g][_] = c ? v.read_shift(-4, "i") ^ 2147483648 : v.read_shift(4, "i");
|
|
4615
|
+
break;
|
|
4616
|
+
case "L":
|
|
4617
|
+
switch (y.trim().toUpperCase()) {
|
|
4618
|
+
case "Y":
|
|
4619
|
+
case "T":
|
|
4620
|
+
r[g][_] = !0;
|
|
4621
|
+
break;
|
|
4622
|
+
case "N":
|
|
4623
|
+
case "F":
|
|
4624
|
+
r[g][_] = !1;
|
|
4625
|
+
break;
|
|
4626
|
+
case "":
|
|
4627
|
+
case "\0":
|
|
4628
|
+
case "?": break;
|
|
4629
|
+
default: throw Error("DBF Unrecognized L:|" + y + "|");
|
|
4682
4630
|
}
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4631
|
+
break;
|
|
4632
|
+
case "M":
|
|
4633
|
+
if (!o) throw Error("DBF Unexpected MEMO for type " + a.toString(16));
|
|
4634
|
+
r[g][_] = "##MEMO##" + (c ? parseInt(y.trim(), 10) : v.read_shift(4));
|
|
4635
|
+
break;
|
|
4636
|
+
case "N":
|
|
4637
|
+
y = y.replace(/\u0000/g, "").trim(), y && y != "." && (r[g][_] = +y || 0);
|
|
4638
|
+
break;
|
|
4639
|
+
case "@":
|
|
4640
|
+
r[g][_] = /* @__PURE__ */ new Date(v.read_shift(-8, "f") - 621356832e5);
|
|
4641
|
+
break;
|
|
4642
|
+
case "T":
|
|
4643
|
+
var b = v.read_shift(4), x = v.read_shift(4);
|
|
4644
|
+
if (b == 0 && x == 0) break;
|
|
4645
|
+
r[g][_] = new Date((b - 2440588) * 864e5 + x), n && n.UTC || (r[g][_] = yn(r[g][_]));
|
|
4646
|
+
break;
|
|
4647
|
+
case "Y":
|
|
4648
|
+
r[g][_] = v.read_shift(4, "i") / 1e4 + v.read_shift(4, "i") / 1e4 * 2 ** 32;
|
|
4649
|
+
break;
|
|
4650
|
+
case "O":
|
|
4651
|
+
r[g][_] = -v.read_shift(-8, "f");
|
|
4652
|
+
break;
|
|
4653
|
+
case "B": if (s && f[_].len == 8) {
|
|
4654
|
+
r[g][_] = v.read_shift(8, "f");
|
|
4655
|
+
break;
|
|
4689
4656
|
}
|
|
4657
|
+
case "G":
|
|
4658
|
+
case "P":
|
|
4659
|
+
v.l += f[_].len;
|
|
4660
|
+
break;
|
|
4661
|
+
case "0": if (f[_].name === "_NullFlags") break;
|
|
4662
|
+
default: throw Error("DBF Unsupported data type " + f[_].type);
|
|
4690
4663
|
}
|
|
4691
4664
|
}
|
|
4692
4665
|
if (a != 2 && i.l < i.length && i[i.l++] != 26) throw Error("DBF EOF Marker missing " + (i.l - 1) + " of " + i.length + " " + i[i.l - 1].toString(16));
|
|
@@ -4732,18 +4705,13 @@ var So = /*#__PURE__*/ (function() {
|
|
|
4732
4705
|
raw: !0,
|
|
4733
4706
|
cellDates: !0
|
|
4734
4707
|
}), l = c[0], u = c.slice(1), d = n["!cols"] || [], f = 0, p = 0, m = 0, h = 1;
|
|
4735
|
-
for (f = 0; f < l.length; ++f) {
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
if (l.indexOf(l[f]) !== f) {
|
|
4743
|
-
for (p = 0; p < 1024; ++p) if (l.indexOf(l[f] + "_" + p) == -1) {
|
|
4744
|
-
l[f] += "_" + p;
|
|
4745
|
-
break;
|
|
4746
|
-
}
|
|
4708
|
+
for (f = 0; f < l.length; ++f) if (((d[f] || {}).DBF || {}).name) l[f] = d[f].DBF.name, ++m;
|
|
4709
|
+
else if (l[f] != null) {
|
|
4710
|
+
if (++m, typeof l[f] == "number" && (l[f] = l[f].toString(10)), typeof l[f] != "string") throw Error("DBF Invalid column name " + l[f] + " |" + typeof l[f] + "|");
|
|
4711
|
+
if (l.indexOf(l[f]) !== f) {
|
|
4712
|
+
for (p = 0; p < 1024; ++p) if (l.indexOf(l[f] + "_" + p) == -1) {
|
|
4713
|
+
l[f] += "_" + p;
|
|
4714
|
+
break;
|
|
4747
4715
|
}
|
|
4748
4716
|
}
|
|
4749
4717
|
}
|
|
@@ -4751,34 +4719,33 @@ var So = /*#__PURE__*/ (function() {
|
|
|
4751
4719
|
for (f = 0; f <= g.e.c - g.s.c; ++f) {
|
|
4752
4720
|
var b = "", x = "", S = 0, C = [];
|
|
4753
4721
|
for (p = 0; p < u.length; ++p) u[p][f] != null && C.push(u[p][f]);
|
|
4754
|
-
if (C.length == 0 || l[f] == null)
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
x =
|
|
4771
|
-
|
|
4772
|
-
|
|
4722
|
+
if (C.length == 0 || l[f] == null) _[f] = "?";
|
|
4723
|
+
else {
|
|
4724
|
+
for (p = 0; p < C.length; ++p) {
|
|
4725
|
+
switch (typeof C[p]) {
|
|
4726
|
+
case "number":
|
|
4727
|
+
x = "B";
|
|
4728
|
+
break;
|
|
4729
|
+
case "string":
|
|
4730
|
+
x = "C";
|
|
4731
|
+
break;
|
|
4732
|
+
case "boolean":
|
|
4733
|
+
x = "L";
|
|
4734
|
+
break;
|
|
4735
|
+
case "object":
|
|
4736
|
+
x = C[p] instanceof Date ? "D" : "C";
|
|
4737
|
+
break;
|
|
4738
|
+
default: x = "C";
|
|
4739
|
+
}
|
|
4740
|
+
S = Math.max(S, String(C[p]).length), b = b && b != x ? "C" : x;
|
|
4773
4741
|
}
|
|
4774
|
-
S
|
|
4742
|
+
S > 250 && (S = 250), x = ((d[f] || {}).DBF || {}).type, x == "C" && d[f].DBF.len > S && (S = d[f].DBF.len), b == "B" && x == "N" && (b = "N", y[f] = d[f].DBF.dec, S = d[f].DBF.len), v[f] = b == "C" || x == "N" ? S : a[b] || 0, h += v[f], _[f] = b;
|
|
4775
4743
|
}
|
|
4776
|
-
S > 250 && (S = 250), x = ((d[f] || {}).DBF || {}).type, x == "C" && d[f].DBF.len > S && (S = d[f].DBF.len), b == "B" && x == "N" && (b = "N", y[f] = d[f].DBF.dec, S = d[f].DBF.len), v[f] = b == "C" || x == "N" ? S : a[b] || 0, h += v[f], _[f] = b;
|
|
4777
4744
|
}
|
|
4778
4745
|
var w = s.next(32);
|
|
4779
4746
|
for (w.write_shift(4, 318902576), w.write_shift(4, u.length), w.write_shift(2, 296 + 32 * m), w.write_shift(2, h), f = 0; f < 4; ++f) w.write_shift(4, 0);
|
|
4780
4747
|
var T = +t[se] || 3;
|
|
4781
|
-
for (w.write_shift(4,
|
|
4748
|
+
for (w.write_shift(4, T << 8), e[T] != +i.codepage && (i.codepage && console.error("DBF Unsupported codepage " + se + ", using 1252"), se = 1252), f = 0, p = 0; f < l.length; ++f) if (l[f] != null) {
|
|
4782
4749
|
var E = s.next(32), D = (l[f].slice(-10) + "\0\0\0\0\0\0\0\0\0\0\0").slice(0, 11);
|
|
4783
4750
|
E.write_shift(1, D, "sbcs"), E.write_shift(1, _[f] == "?" ? "C" : _[f], "sbcs"), E.write_shift(4, p), E.write_shift(1, v[f] || a[_[f]] || 0), E.write_shift(1, y[f] || 0), E.write_shift(1, 2), E.write_shift(4, 0), E.write_shift(1, 0), E.write_shift(4, 0), E.write_shift(4, 0), p += v[f] || a[_[f]] || 0;
|
|
4784
4751
|
}
|
|
@@ -5155,30 +5122,25 @@ var So = /*#__PURE__*/ (function() {
|
|
|
5155
5122
|
throw Error("Unrecognized type " + n.type);
|
|
5156
5123
|
}
|
|
5157
5124
|
function t(e, t) {
|
|
5158
|
-
for (var n = e.split("\n"), r = -1, i = -1, a = 0, o = []; a !== n.length; ++a)
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
case 0:
|
|
5176
|
-
u === "TRUE" ? o[r][i] = !0 : u === "FALSE" ? o[r][i] = !1 : isNaN(un(l)) ? isNaN(vn(l).getDate()) ? o[r][i] = l : (o[r][i] = on(l), t && t.UTC || (o[r][i] = yn(o[r][i]))) : o[r][i] = un(l), ++i;
|
|
5177
|
-
break;
|
|
5178
|
-
case 1: u = u.slice(1, u.length - 1), u = u.replace(/""/g, "\""), ge && u && u.match(/^=".*"$/) && (u = u.slice(2, -1)), o[r][i++] = u === "" ? null : u;
|
|
5179
|
-
}
|
|
5180
|
-
if (u === "EOD") break;
|
|
5125
|
+
for (var n = e.split("\n"), r = -1, i = -1, a = 0, o = []; a !== n.length; ++a) if (n[a].trim() === "BOT") o[++r] = [], i = 0;
|
|
5126
|
+
else if (!(r < 0)) {
|
|
5127
|
+
var s = n[a].trim().split(","), c = s[0], l = s[1];
|
|
5128
|
+
++a;
|
|
5129
|
+
for (var u = n[a] || ""; (u.match(/["]/g) || []).length & 1 && a < n.length - 1;) u += "\n" + n[++a];
|
|
5130
|
+
switch (u = u.trim(), +c) {
|
|
5131
|
+
case -1:
|
|
5132
|
+
if (u === "BOT") {
|
|
5133
|
+
o[++r] = [], i = 0;
|
|
5134
|
+
continue;
|
|
5135
|
+
}
|
|
5136
|
+
if (u !== "EOD") throw Error("Unrecognized DIF special command " + u);
|
|
5137
|
+
break;
|
|
5138
|
+
case 0:
|
|
5139
|
+
u === "TRUE" ? o[r][i] = !0 : u === "FALSE" ? o[r][i] = !1 : isNaN(un(l)) ? isNaN(vn(l).getDate()) ? o[r][i] = l : (o[r][i] = on(l), t && t.UTC || (o[r][i] = yn(o[r][i]))) : o[r][i] = un(l), ++i;
|
|
5140
|
+
break;
|
|
5141
|
+
case 1: u = u.slice(1, u.length - 1), u = u.replace(/""/g, "\""), ge && u && u.match(/^=".*"$/) && (u = u.slice(2, -1)), o[r][i++] = u === "" ? null : u;
|
|
5181
5142
|
}
|
|
5143
|
+
if (u === "EOD") break;
|
|
5182
5144
|
}
|
|
5183
5145
|
return t && t.sheetRows && (o = o.slice(0, t.sheetRows)), o;
|
|
5184
5146
|
}
|
|
@@ -5209,26 +5171,25 @@ var So = /*#__PURE__*/ (function() {
|
|
|
5209
5171
|
r: s,
|
|
5210
5172
|
c: u
|
|
5211
5173
|
})];
|
|
5212
|
-
if (d == null)
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5174
|
+
if (d == null) l += "1,0\r\n\"\"\r\n";
|
|
5175
|
+
else {
|
|
5176
|
+
switch (d.t) {
|
|
5177
|
+
case "n":
|
|
5178
|
+
t ? d.w == null ? d.v == null ? d.f != null && !d.F ? l += a("=" + d.f) : l += "1,0\r\n\"\"" : l += i(d.v, "V") : l += "0," + d.w + "\r\nV" : d.v == null ? l += "1,0\r\n\"\"" : l += i(d.v, "V");
|
|
5179
|
+
break;
|
|
5180
|
+
case "b":
|
|
5181
|
+
l += d.v ? i(1, "TRUE") : i(0, "FALSE");
|
|
5182
|
+
break;
|
|
5183
|
+
case "s":
|
|
5184
|
+
l += a(!t || isNaN(+d.v) ? d.v : "=\"" + d.v + "\"");
|
|
5185
|
+
break;
|
|
5186
|
+
case "d":
|
|
5187
|
+
d.w ||= Nt(d.z || P[14], en(on(d.v))), l += t ? i(d.w, "V") : a(d.w);
|
|
5188
|
+
break;
|
|
5189
|
+
default: l += "1,0\r\n\"\"";
|
|
5190
|
+
}
|
|
5191
|
+
l += "\r\n";
|
|
5230
5192
|
}
|
|
5231
|
-
l += "\r\n";
|
|
5232
5193
|
}
|
|
5233
5194
|
o.push(l);
|
|
5234
5195
|
}
|
|
@@ -5452,12 +5413,11 @@ var So = /*#__PURE__*/ (function() {
|
|
|
5452
5413
|
r: a,
|
|
5453
5414
|
c: s
|
|
5454
5415
|
});
|
|
5455
|
-
if (r = i ? (e["!data"][a] || [])[s] : e[c], !r || r.v == null)
|
|
5456
|
-
|
|
5457
|
-
|
|
5416
|
+
if (r = i ? (e["!data"][a] || [])[s] : e[c], !r || r.v == null) o.push(" ");
|
|
5417
|
+
else {
|
|
5418
|
+
for (var l = (r.w || (Xr(r), r.w) || "").slice(0, 10); l.length < 10;) l += " ";
|
|
5419
|
+
o.push(l + (s === 0 ? " " : ""));
|
|
5458
5420
|
}
|
|
5459
|
-
for (var l = (r.w || (Xr(r), r.w) || "").slice(0, 10); l.length < 10;) l += " ";
|
|
5460
|
-
o.push(l + (s === 0 ? " " : ""));
|
|
5461
5421
|
}
|
|
5462
5422
|
t.push(o.join(""));
|
|
5463
5423
|
}
|
|
@@ -6506,11 +6466,7 @@ function Io(e, t) {
|
|
|
6506
6466
|
r: s,
|
|
6507
6467
|
c
|
|
6508
6468
|
});
|
|
6509
|
-
|
|
6510
|
-
n.push(" \\cell");
|
|
6511
|
-
continue;
|
|
6512
|
-
}
|
|
6513
|
-
n.push(" " + (i.w || (Xr(i), i.w) || "").replace(/[\r\n]/g, "\\par ")), n.push("\\cell");
|
|
6469
|
+
i = a ? o[c] : e[l], !i || i.v == null && (!i.f || i.F) ? n.push(" \\cell") : (n.push(" " + (i.w || (Xr(i), i.w) || "").replace(/[\r\n]/g, "\\par ")), n.push("\\cell"));
|
|
6514
6470
|
}
|
|
6515
6471
|
n.push("\\pard\\intbl\\row");
|
|
6516
6472
|
}
|
|
@@ -6889,16 +6845,15 @@ function Ps(e, t, n) {
|
|
|
6889
6845
|
return e.forEach(function(e) {
|
|
6890
6846
|
var i = "";
|
|
6891
6847
|
(e[1] || []).forEach(function(a, o) {
|
|
6892
|
-
if (!a.T)
|
|
6893
|
-
|
|
6894
|
-
|
|
6848
|
+
if (!a.T) delete a.ID;
|
|
6849
|
+
else {
|
|
6850
|
+
a.a && t.indexOf(a.a) == -1 && t.push(a.a);
|
|
6851
|
+
var s = {
|
|
6852
|
+
ref: e[0],
|
|
6853
|
+
id: "{54EE7951-7262-4200-6969-" + ("000000000000" + n.tcid++).slice(-12) + "}"
|
|
6854
|
+
};
|
|
6855
|
+
o == 0 ? i = s.id : s.parentId = i, a.ID = s.id, a.a && (s.personId = "{54EE7950-7262-4200-6969-" + ("000000000000" + t.indexOf(a.a)).slice(-12) + "}"), r.push(R("threadedComment", Bn("text", a.t || ""), s));
|
|
6895
6856
|
}
|
|
6896
|
-
a.a && t.indexOf(a.a) == -1 && t.push(a.a);
|
|
6897
|
-
var s = {
|
|
6898
|
-
ref: e[0],
|
|
6899
|
-
id: "{54EE7951-7262-4200-6969-" + ("000000000000" + n.tcid++).slice(-12) + "}"
|
|
6900
|
-
};
|
|
6901
|
-
o == 0 ? i = s.id : s.parentId = i, a.ID = s.id, a.a && (s.personId = "{54EE7950-7262-4200-6969-" + ("000000000000" + t.indexOf(a.a)).slice(-12) + "}"), r.push(R("threadedComment", Bn("text", a.t || ""), s));
|
|
6902
6857
|
});
|
|
6903
6858
|
}), r.push("</ThreadedComments>"), r.join("");
|
|
6904
6859
|
}
|
|
@@ -9931,11 +9886,7 @@ function _d(e, t, n, r, i) {
|
|
|
9931
9886
|
if (f <= a.e.r) for (var m = a.s.c; m <= a.e.c; ++m) {
|
|
9932
9887
|
f === a.s.r && (s[m] = H(m));
|
|
9933
9888
|
var h = l ? u[m] : t[s[m] + o];
|
|
9934
|
-
|
|
9935
|
-
p = !1;
|
|
9936
|
-
continue;
|
|
9937
|
-
}
|
|
9938
|
-
p = gd(e, h, f, m, r, t, p, c);
|
|
9889
|
+
p = h ? gd(e, h, f, m, r, t, p, c) : !1;
|
|
9939
9890
|
}
|
|
9940
9891
|
}
|
|
9941
9892
|
B(e, 146);
|
|
@@ -11535,11 +11486,8 @@ function kf(e, t) {
|
|
|
11535
11486
|
}
|
|
11536
11487
|
function Af(e, t, n, r, i, a) {
|
|
11537
11488
|
var o = 16 + Zl(i.cellXfs, t, i);
|
|
11538
|
-
if (t.v == null && !t.bf)
|
|
11539
|
-
|
|
11540
|
-
return;
|
|
11541
|
-
}
|
|
11542
|
-
if (t.bf) G(e, 6, wl(t, n, r, i, o));
|
|
11489
|
+
if (t.v == null && !t.bf) G(e, 513, Ra(n, r, o));
|
|
11490
|
+
else if (t.bf) G(e, 6, wl(t, n, r, i, o));
|
|
11543
11491
|
else switch (t.t) {
|
|
11544
11492
|
case "d":
|
|
11545
11493
|
case "n":
|
|
@@ -11988,52 +11936,50 @@ var Jf = /* @__PURE__ */ (function() {
|
|
|
11988
11936
|
(f[p].s.c != u || f[p].s.r != l) && (_ = !0), v["table:number-columns-spanned"] = f[p].e.c - f[p].s.c + 1, v["table:number-rows-spanned"] = f[p].e.r - f[p].s.r + 1;
|
|
11989
11937
|
break;
|
|
11990
11938
|
}
|
|
11991
|
-
if (_)
|
|
11992
|
-
|
|
11993
|
-
|
|
11994
|
-
|
|
11995
|
-
|
|
11996
|
-
|
|
11997
|
-
|
|
11998
|
-
|
|
11999
|
-
|
|
12000
|
-
|
|
12001
|
-
|
|
12002
|
-
|
|
12003
|
-
|
|
12004
|
-
|
|
12005
|
-
|
|
12006
|
-
|
|
12007
|
-
|
|
12008
|
-
|
|
12009
|
-
|
|
12010
|
-
|
|
12011
|
-
|
|
12012
|
-
|
|
12013
|
-
|
|
12014
|
-
|
|
12015
|
-
|
|
12016
|
-
|
|
12017
|
-
|
|
12018
|
-
|
|
12019
|
-
|
|
12020
|
-
|
|
12021
|
-
|
|
12022
|
-
|
|
12023
|
-
|
|
12024
|
-
|
|
12025
|
-
|
|
12026
|
-
|
|
12027
|
-
|
|
12028
|
-
|
|
12029
|
-
|
|
12030
|
-
|
|
12031
|
-
|
|
12032
|
-
|
|
12033
|
-
|
|
12034
|
-
x.c.hidden || (O["office:display"] = !0), T = R("office:annotation", D, O) + T;
|
|
11939
|
+
if (_) c.push(" <table:covered-table-cell/>\n");
|
|
11940
|
+
else {
|
|
11941
|
+
var b = Ur({
|
|
11942
|
+
r: l,
|
|
11943
|
+
c: u
|
|
11944
|
+
}), x = m ? (n["!data"][l] || [])[u] : n[b];
|
|
11945
|
+
if (x && x.f && (v["table:formula"] = L(Gl(x.f)), x.F && x.F.slice(0, b.length) == b)) {
|
|
11946
|
+
var S = Wr(x.F);
|
|
11947
|
+
v["table:number-matrix-columns-spanned"] = S.e.c - S.s.c + 1, v["table:number-matrix-rows-spanned"] = S.e.r - S.s.r + 1;
|
|
11948
|
+
}
|
|
11949
|
+
if (!x) c.push(t);
|
|
11950
|
+
else {
|
|
11951
|
+
switch (x.t) {
|
|
11952
|
+
case "b":
|
|
11953
|
+
y = x.v ? "TRUE" : "FALSE", v["office:value-type"] = "boolean", v["office:boolean-value"] = x.v ? "true" : "false";
|
|
11954
|
+
break;
|
|
11955
|
+
case "n":
|
|
11956
|
+
isFinite(x.v) ? (y = x.w || String(x.v || 0), v["office:value-type"] = "float", v["office:value"] = x.v || 0) : (isNaN(x.v) ? (y = "#NUM!", v["table:formula"] = "of:=#NUM!") : (y = "#DIV/0!", v["table:formula"] = "of:=" + (x.v < 0 ? "-" : "") + "1/0"), v["office:string-value"] = "", v["office:value-type"] = "string", v["calcext:value-type"] = "error");
|
|
11957
|
+
break;
|
|
11958
|
+
case "s":
|
|
11959
|
+
case "str":
|
|
11960
|
+
y = x.v == null ? "" : x.v, v["office:value-type"] = "string";
|
|
11961
|
+
break;
|
|
11962
|
+
case "d":
|
|
11963
|
+
y = x.w || on(x.v, s).toISOString(), v["office:value-type"] = "date", v["office:date-value"] = on(x.v, s).toISOString(), v["table:style-name"] = "ce1";
|
|
11964
|
+
break;
|
|
11965
|
+
default:
|
|
11966
|
+
c.push(t);
|
|
11967
|
+
continue;
|
|
11968
|
+
}
|
|
11969
|
+
var C = e(y);
|
|
11970
|
+
if (x.l && x.l.Target) {
|
|
11971
|
+
var w = x.l.Target;
|
|
11972
|
+
w = w.charAt(0) == "#" ? "#" + Kl(w.slice(1)) : w, w.charAt(0) != "#" && !w.match(/^\w+:/) && (w = "../" + w), C = R("text:a", C, { "xlink:href": w.replace(/&/g, "&") });
|
|
11973
|
+
}
|
|
11974
|
+
o[x.z] && (v["table:style-name"] = "ce" + o[x.z].slice(1));
|
|
11975
|
+
var T = R("text:p", C, {});
|
|
11976
|
+
if (x.c) {
|
|
11977
|
+
for (var E = "", D = "", O = {}, k = 0; k < x.c.length; ++k) !E && x.c[k].a && (E = x.c[k].a), D += "<text:p>" + e(x.c[k].t) + "</text:p>";
|
|
11978
|
+
x.c.hidden || (O["office:display"] = !0), T = R("office:annotation", D, O) + T;
|
|
11979
|
+
}
|
|
11980
|
+
c.push(" " + R("table:table-cell", T, v) + "\n");
|
|
11981
|
+
}
|
|
12035
11982
|
}
|
|
12036
|
-
c.push(" " + R("table:table-cell", T, v) + "\n");
|
|
12037
11983
|
}
|
|
12038
11984
|
c.push(" </table:table-row>\n");
|
|
12039
11985
|
}
|
|
@@ -12306,21 +12252,21 @@ function lp(e, t) {
|
|
|
12306
12252
|
s = t[a], c > 1 && (s |= t[a + 1] << 8), c > 2 && (s |= t[a + 2] << 16), c > 3 && (s |= t[a + 3] << 24), s >>>= 0, s++, a += c;
|
|
12307
12253
|
}
|
|
12308
12254
|
i.push(t[Xf](a, a + s)), a += s;
|
|
12309
|
-
|
|
12310
|
-
|
|
12311
|
-
|
|
12312
|
-
|
|
12313
|
-
|
|
12314
|
-
|
|
12315
|
-
|
|
12316
|
-
|
|
12317
|
-
|
|
12318
|
-
|
|
12319
|
-
|
|
12320
|
-
|
|
12321
|
-
|
|
12255
|
+
} else {
|
|
12256
|
+
var l = 0, u = 0;
|
|
12257
|
+
if (o == 1 ? (u = (t[a] >> 2 & 7) + 4, l = (t[a++] & 224) << 3, l |= t[a++]) : (u = (t[a++] >> 2) + 1, o == 2 ? (l = t[a] | t[a + 1] << 8, a += 2) : (l = (t[a] | t[a + 1] << 8 | t[a + 2] << 16 | t[a + 3] << 24) >>> 0, a += 4)), l == 0) throw Error("Invalid offset 0");
|
|
12258
|
+
for (var d = i.length - 1, f = l; d >= 0 && f >= i[d].length;) f -= i[d].length, --d;
|
|
12259
|
+
if (d < 0) {
|
|
12260
|
+
if (f == 0) f = i[d = 0].length;
|
|
12261
|
+
else throw Error("Invalid offset beyond length");
|
|
12262
|
+
}
|
|
12263
|
+
if (u < f) i.push(i[d][Xf](i[d].length - f, i[d].length - f + u));
|
|
12264
|
+
else {
|
|
12265
|
+
for (f > 0 && (i.push(i[d][Xf](i[d].length - f)), u -= f), ++d; u >= i[d].length;) i.push(i[d]), u -= i[d].length, ++d;
|
|
12266
|
+
u && i.push(i[d][Xf](0, u));
|
|
12267
|
+
}
|
|
12268
|
+
i.length > 25 && (i = [ep(i)]);
|
|
12322
12269
|
}
|
|
12323
|
-
i.length > 25 && (i = [ep(i)]);
|
|
12324
12270
|
}
|
|
12325
12271
|
for (var p = 0, m = 0; m < i.length; ++m) p += i[m].length;
|
|
12326
12272
|
if (p != r) throw Error(`Unexpected length: ${p} != ${r}`);
|
|
@@ -12527,11 +12473,8 @@ function yp(e, t, n) {
|
|
|
12527
12473
|
var o = new Uint8Array(2 * e.length);
|
|
12528
12474
|
o.set(r[4][0].data), r[4][0].data = o;
|
|
12529
12475
|
}
|
|
12530
|
-
for (var s = Zf(r[7][0].data), c = 0, l = [], u = Zf(r[4][0].data), d = 0, f = [], p = n ? 4 : 1, m = 0; m < e.length; ++m)
|
|
12531
|
-
|
|
12532
|
-
s.setUint16(m * 2, 65535, !0), u.setUint16(m * 2, 65535);
|
|
12533
|
-
continue;
|
|
12534
|
-
}
|
|
12476
|
+
for (var s = Zf(r[7][0].data), c = 0, l = [], u = Zf(r[4][0].data), d = 0, f = [], p = n ? 4 : 1, m = 0; m < e.length; ++m) if (e[m] == null || e[m].t == "z" && !e[m].c?.length || e[m].t == "e") s.setUint16(m * 2, 65535, !0), u.setUint16(m * 2, 65535);
|
|
12477
|
+
else {
|
|
12535
12478
|
s.setUint16(m * 2, c / p, !0), u.setUint16(m * 2, d / p, !0);
|
|
12536
12479
|
var h, g;
|
|
12537
12480
|
switch (e[m].t) {
|
|
@@ -13964,32 +13907,32 @@ function Zp(e, t, n, r, i, a, o) {
|
|
|
13964
13907
|
if (m == null || m.t === void 0) {
|
|
13965
13908
|
if (c === void 0) continue;
|
|
13966
13909
|
a[p] != null && (f[a[p]] = c);
|
|
13967
|
-
|
|
13968
|
-
|
|
13969
|
-
|
|
13970
|
-
|
|
13971
|
-
|
|
13972
|
-
|
|
13973
|
-
|
|
13974
|
-
|
|
13975
|
-
|
|
13976
|
-
|
|
13977
|
-
|
|
13978
|
-
|
|
13979
|
-
|
|
13980
|
-
|
|
13981
|
-
|
|
13982
|
-
|
|
13983
|
-
|
|
13984
|
-
|
|
13985
|
-
|
|
13986
|
-
|
|
13987
|
-
|
|
13988
|
-
|
|
13989
|
-
|
|
13990
|
-
else
|
|
13991
|
-
|
|
13992
|
-
|
|
13910
|
+
} else {
|
|
13911
|
+
var h = m.v;
|
|
13912
|
+
switch (m.t) {
|
|
13913
|
+
case "z":
|
|
13914
|
+
if (h == null) break;
|
|
13915
|
+
continue;
|
|
13916
|
+
case "e":
|
|
13917
|
+
h = h == 0 ? null : void 0;
|
|
13918
|
+
break;
|
|
13919
|
+
case "s":
|
|
13920
|
+
case "b":
|
|
13921
|
+
case "n": if (!m.z || !Ot(m.z) || (h = tn(h), typeof h == "number")) break;
|
|
13922
|
+
case "d":
|
|
13923
|
+
(!o || !o.UTC && o.raw !== !1) && (h = yn(new Date(h)));
|
|
13924
|
+
break;
|
|
13925
|
+
default: throw Error("unrecognized type " + m.t);
|
|
13926
|
+
}
|
|
13927
|
+
if (a[p] != null) {
|
|
13928
|
+
if (h == null) {
|
|
13929
|
+
if (m.t == "e" && h === null) f[a[p]] = null;
|
|
13930
|
+
else if (c !== void 0) f[a[p]] = c;
|
|
13931
|
+
else if (l && h === null) f[a[p]] = null;
|
|
13932
|
+
else continue;
|
|
13933
|
+
} else f[a[p]] = (m.t === "n" && typeof o.rawNumbers == "boolean" ? o.rawNumbers : l) ? h : Xr(m, h, o);
|
|
13934
|
+
h != null && (u = !1);
|
|
13935
|
+
}
|
|
13993
13936
|
}
|
|
13994
13937
|
}
|
|
13995
13938
|
return {
|
|
@@ -14352,15 +14295,9 @@ function Im(e) {
|
|
|
14352
14295
|
let e = 0, n = null, r = !0;
|
|
14353
14296
|
for (let i = 0; i < t.length; i++) {
|
|
14354
14297
|
let a = t[i];
|
|
14355
|
-
if (n !== null)
|
|
14356
|
-
|
|
14357
|
-
|
|
14358
|
-
}
|
|
14359
|
-
if (a === "\"" || a === "'") {
|
|
14360
|
-
n = a;
|
|
14361
|
-
continue;
|
|
14362
|
-
}
|
|
14363
|
-
if (a === "(") e++;
|
|
14298
|
+
if (n !== null) a === "\\" ? i++ : a === n && (n = null);
|
|
14299
|
+
else if (a === "\"" || a === "'") n = a;
|
|
14300
|
+
else if (a === "(") e++;
|
|
14364
14301
|
else if (a === ")") {
|
|
14365
14302
|
if (e--, e === 0 && i < t.length - 1) {
|
|
14366
14303
|
r = !1;
|
|
@@ -14378,15 +14315,9 @@ function Lm(e) {
|
|
|
14378
14315
|
let t = Im(e), n = null;
|
|
14379
14316
|
for (let e = 0; e < t.length; e++) {
|
|
14380
14317
|
let r = t[e];
|
|
14381
|
-
if (n !== null)
|
|
14382
|
-
|
|
14383
|
-
|
|
14384
|
-
}
|
|
14385
|
-
if (r === "\"" || r === "'") {
|
|
14386
|
-
n = r;
|
|
14387
|
-
continue;
|
|
14388
|
-
}
|
|
14389
|
-
for (let n of Fm) if (t.startsWith(n, e)) return {
|
|
14318
|
+
if (n !== null) r === "\\" ? e++ : r === n && (n = null);
|
|
14319
|
+
else if (r === "\"" || r === "'") n = r;
|
|
14320
|
+
else for (let n of Fm) if (t.startsWith(n, e)) return {
|
|
14390
14321
|
left: t.slice(0, e).trim(),
|
|
14391
14322
|
operator: n,
|
|
14392
14323
|
right: t.slice(e + n.length).trim()
|
|
@@ -14844,13 +14775,7 @@ function og(e) {
|
|
|
14844
14775
|
continue;
|
|
14845
14776
|
}
|
|
14846
14777
|
i === n && (n = null, t += i);
|
|
14847
|
-
|
|
14848
|
-
}
|
|
14849
|
-
if (i === "\"" || i === "'") {
|
|
14850
|
-
n = i, t += i;
|
|
14851
|
-
continue;
|
|
14852
|
-
}
|
|
14853
|
-
t += i;
|
|
14778
|
+
} else (i === "\"" || i === "'") && (n = i), t += i;
|
|
14854
14779
|
}
|
|
14855
14780
|
return t;
|
|
14856
14781
|
}
|
|
@@ -14860,11 +14785,8 @@ function sg(e) {
|
|
|
14860
14785
|
}
|
|
14861
14786
|
function cg(e, t) {
|
|
14862
14787
|
let n = e[t], r = t + 1;
|
|
14863
|
-
for (; r < e.length;)
|
|
14864
|
-
|
|
14865
|
-
r += 2;
|
|
14866
|
-
continue;
|
|
14867
|
-
}
|
|
14788
|
+
for (; r < e.length;) if (e[r] === "\\") r += 2;
|
|
14789
|
+
else {
|
|
14868
14790
|
if (e[r] === n) return r + 1;
|
|
14869
14791
|
r++;
|
|
14870
14792
|
}
|
|
@@ -14902,14 +14824,10 @@ function dg(e) {
|
|
|
14902
14824
|
continue;
|
|
14903
14825
|
}
|
|
14904
14826
|
let i = ug(e, n);
|
|
14905
|
-
|
|
14906
|
-
|
|
14907
|
-
|
|
14908
|
-
|
|
14909
|
-
}), n += i.length;
|
|
14910
|
-
continue;
|
|
14911
|
-
}
|
|
14912
|
-
n++;
|
|
14827
|
+
i ? (t.push({
|
|
14828
|
+
ref: i,
|
|
14829
|
+
start: n
|
|
14830
|
+
}), n += i.length) : n++;
|
|
14913
14831
|
}
|
|
14914
14832
|
return t;
|
|
14915
14833
|
}
|
|
@@ -14920,15 +14838,7 @@ function pg(e) {
|
|
|
14920
14838
|
let t = [], n = "", r = 0, i = !1, a = "";
|
|
14921
14839
|
for (let o = 0; o < e.length; o++) {
|
|
14922
14840
|
let s = e[o], c = o > 0 ? e[o - 1] : "";
|
|
14923
|
-
|
|
14924
|
-
i ? s === a && (i = !1, a = "") : (i = !0, a = s), n += s;
|
|
14925
|
-
continue;
|
|
14926
|
-
}
|
|
14927
|
-
if (!i && (s === "(" && r++, s === ")" && r--, s === "," && r === 0)) {
|
|
14928
|
-
t.push(n.trim()), n = "";
|
|
14929
|
-
continue;
|
|
14930
|
-
}
|
|
14931
|
-
n += s;
|
|
14841
|
+
(s === "\"" || s === "'") && c !== "\\" ? (i ? s === a && (i = !1, a = "") : (i = !0, a = s), n += s) : !i && (s === "(" && r++, s === ")" && r--, s === "," && r === 0) ? (t.push(n.trim()), n = "") : n += s;
|
|
14932
14842
|
}
|
|
14933
14843
|
return n.trim() && t.push(n.trim()), t;
|
|
14934
14844
|
}
|
|
@@ -15337,11 +15247,8 @@ function Jg(e, t, n) {
|
|
|
15337
15247
|
let r = -1, i = !1;
|
|
15338
15248
|
for (let a = t; a < e.length; a++) {
|
|
15339
15249
|
let t = e[a], o = a > 0 ? e[a - 1] : "";
|
|
15340
|
-
if (t === "\"" && o !== "\\")
|
|
15341
|
-
|
|
15342
|
-
continue;
|
|
15343
|
-
}
|
|
15344
|
-
if (!i && t === "[" && (r++, r === n)) return a + 1;
|
|
15250
|
+
if (t === "\"" && o !== "\\") i = !i;
|
|
15251
|
+
else if (!i && t === "[" && (r++, r === n)) return a + 1;
|
|
15345
15252
|
}
|
|
15346
15253
|
return -1;
|
|
15347
15254
|
}
|
|
@@ -16920,11 +16827,8 @@ var _y = { class: "spreadsheet-container" }, vy = {
|
|
|
16920
16827
|
let n = t.parentElement;
|
|
16921
16828
|
if (!(n instanceof HTMLTableRowElement)) return;
|
|
16922
16829
|
let r = t.cellIndex, { rowIndex: i } = n;
|
|
16923
|
-
if (!(me.value?.open ?? !1))
|
|
16924
|
-
|
|
16925
|
-
return;
|
|
16926
|
-
}
|
|
16927
|
-
if (pe.value) try {
|
|
16830
|
+
if (!(me.value?.open ?? !1)) Oe(i, r);
|
|
16831
|
+
else if (pe.value) try {
|
|
16928
16832
|
let e = JSON.parse(se.value)[j.value];
|
|
16929
16833
|
if (!e || !e.data) return;
|
|
16930
16834
|
let t = c(e.data);
|
|
@@ -17059,7 +16963,7 @@ var _y = { class: "spreadsheet-container" }, vy = {
|
|
|
17059
16963
|
])])) : g("", !0)
|
|
17060
16964
|
], 64))]));
|
|
17061
16965
|
}
|
|
17062
|
-
}), [["__scopeId", "data-v-
|
|
16966
|
+
}), [["__scopeId", "data-v-a54883ee"]]), Hy = { class: "p-2 bg-green-50 dark:bg-green-900 rounded" }, Uy = { class: "text-sm text-gray-800 dark:text-gray-200 font-medium break-words" }, Wy = {
|
|
17063
16967
|
key: 0,
|
|
17064
16968
|
class: "text-xs text-gray-600 dark:text-gray-400 mt-1"
|
|
17065
16969
|
}, Gy = /* @__PURE__ */ b({
|