qk-pc-ui 3.8.3 → 3.8.5

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/qk-pc-ui.mjs CHANGED
@@ -1003,7 +1003,7 @@ function eval_fmt(e, r, t, a) {
1003
1003
  n[n.length] = { t: "t", v: l }, ++s;
1004
1004
  break;
1005
1005
  }
1006
- var _ = 0, C = 0, I;
1006
+ var _ = 0, C = 0, B;
1007
1007
  for (s = n.length - 1, o = "t"; s >= 0; --s)
1008
1008
  switch (n[s].t) {
1009
1009
  case "h":
@@ -1011,7 +1011,7 @@ function eval_fmt(e, r, t, a) {
1011
1011
  n[s].t = h, o = "h", _ < 1 && (_ = 1);
1012
1012
  break;
1013
1013
  case "s":
1014
- (I = n[s].v.match(/\.0+$/)) && (C = Math.max(C, I[0].length - 1)), _ < 3 && (_ = 3);
1014
+ (B = n[s].v.match(/\.0+$/)) && (C = Math.max(C, B[0].length - 1)), _ < 3 && (_ = 3);
1015
1015
  /* falls through */
1016
1016
  case "d":
1017
1017
  case "y":
@@ -1073,26 +1073,26 @@ function eval_fmt(e, r, t, a) {
1073
1073
  var G = "", z, A;
1074
1074
  if (k.length > 0) {
1075
1075
  k.charCodeAt(0) == 40 ? (z = r < 0 && k.charCodeAt(0) === 45 ? -r : r, A = write_num("n", k, z)) : (z = r < 0 && a > 1 ? -r : r, A = write_num("n", k, z), z < 0 && n[0] && n[0].t == "t" && (A = A.substr(1), n[0].v = "-" + n[0].v)), b = A.length - 1;
1076
- var X = n.length;
1076
+ var H = n.length;
1077
1077
  for (s = 0; s < n.length; ++s) if (n[s] != null && n[s].t != "t" && n[s].v.indexOf(".") > -1) {
1078
- X = s;
1078
+ H = s;
1079
1079
  break;
1080
1080
  }
1081
1081
  var S = n.length;
1082
- if (X === n.length && A.indexOf("E") === -1) {
1082
+ if (H === n.length && A.indexOf("E") === -1) {
1083
1083
  for (s = n.length - 1; s >= 0; --s)
1084
1084
  n[s] == null || "n?".indexOf(n[s].t) === -1 || (b >= n[s].v.length - 1 ? (b -= n[s].v.length, n[s].v = A.substr(b + 1, n[s].v.length)) : b < 0 ? n[s].v = "" : (n[s].v = A.substr(0, b + 1), b = -1), n[s].t = "t", S = s);
1085
1085
  b >= 0 && S < n.length && (n[S].v = A.substr(0, b + 1) + n[S].v);
1086
- } else if (X !== n.length && A.indexOf("E") === -1) {
1087
- for (b = A.indexOf(".") - 1, s = X; s >= 0; --s)
1086
+ } else if (H !== n.length && A.indexOf("E") === -1) {
1087
+ for (b = A.indexOf(".") - 1, s = H; s >= 0; --s)
1088
1088
  if (!(n[s] == null || "n?".indexOf(n[s].t) === -1)) {
1089
- for (c = n[s].v.indexOf(".") > -1 && s === X ? n[s].v.indexOf(".") - 1 : n[s].v.length - 1, G = n[s].v.substr(c + 1); c >= 0; --c)
1089
+ for (c = n[s].v.indexOf(".") > -1 && s === H ? n[s].v.indexOf(".") - 1 : n[s].v.length - 1, G = n[s].v.substr(c + 1); c >= 0; --c)
1090
1090
  b >= 0 && (n[s].v.charAt(c) === "0" || n[s].v.charAt(c) === "#") && (G = A.charAt(b--) + G);
1091
1091
  n[s].v = G, n[s].t = "t", S = s;
1092
1092
  }
1093
- for (b >= 0 && S < n.length && (n[S].v = A.substr(0, b + 1) + n[S].v), b = A.indexOf(".") + 1, s = X; s < n.length; ++s)
1094
- if (!(n[s] == null || "n?(".indexOf(n[s].t) === -1 && s !== X)) {
1095
- for (c = n[s].v.indexOf(".") > -1 && s === X ? n[s].v.indexOf(".") + 1 : 0, G = n[s].v.substr(0, c); c < n[s].v.length; ++c)
1093
+ for (b >= 0 && S < n.length && (n[S].v = A.substr(0, b + 1) + n[S].v), b = A.indexOf(".") + 1, s = H; s < n.length; ++s)
1094
+ if (!(n[s] == null || "n?(".indexOf(n[s].t) === -1 && s !== H)) {
1095
+ for (c = n[s].v.indexOf(".") > -1 && s === H ? n[s].v.indexOf(".") + 1 : 0, G = n[s].v.substr(0, c); c < n[s].v.length; ++c)
1096
1096
  b < A.length && (G += A.charAt(b++));
1097
1097
  n[s].v = G, n[s].t = "t", S = s;
1098
1098
  }
@@ -1232,33 +1232,33 @@ var CRC32 = /* @__PURE__ */ function() {
1232
1232
  var e = {};
1233
1233
  e.version = "1.2.0";
1234
1234
  function r() {
1235
- for (var A = 0, X = new Array(256), S = 0; S != 256; ++S)
1236
- A = S, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, X[S] = A;
1237
- return typeof Int32Array < "u" ? new Int32Array(X) : X;
1235
+ for (var A = 0, H = new Array(256), S = 0; S != 256; ++S)
1236
+ A = S, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, A = A & 1 ? -306674912 ^ A >>> 1 : A >>> 1, H[S] = A;
1237
+ return typeof Int32Array < "u" ? new Int32Array(H) : H;
1238
1238
  }
1239
1239
  var t = r();
1240
1240
  function a(A) {
1241
- var X = 0, S = 0, O = 0, F = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
1242
- for (O = 0; O != 256; ++O) F[O] = A[O];
1241
+ var H = 0, S = 0, O = 0, D = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
1242
+ for (O = 0; O != 256; ++O) D[O] = A[O];
1243
1243
  for (O = 0; O != 256; ++O)
1244
- for (S = A[O], X = 256 + O; X < 4096; X += 256) S = F[X] = S >>> 8 ^ A[S & 255];
1245
- var B = [];
1246
- for (O = 1; O != 16; ++O) B[O - 1] = typeof Int32Array < "u" ? F.subarray(O * 256, O * 256 + 256) : F.slice(O * 256, O * 256 + 256);
1247
- return B;
1248
- }
1249
- var n = a(t), i = n[0], s = n[1], l = n[2], o = n[3], f = n[4], c = n[5], p = n[6], h = n[7], d = n[8], m = n[9], u = n[10], _ = n[11], C = n[12], I = n[13], k = n[14];
1250
- function b(A, X) {
1251
- for (var S = X ^ -1, O = 0, F = A.length; O < F; ) S = S >>> 8 ^ t[(S ^ A.charCodeAt(O++)) & 255];
1244
+ for (S = A[O], H = 256 + O; H < 4096; H += 256) S = D[H] = S >>> 8 ^ A[S & 255];
1245
+ var F = [];
1246
+ for (O = 1; O != 16; ++O) F[O - 1] = typeof Int32Array < "u" ? D.subarray(O * 256, O * 256 + 256) : D.slice(O * 256, O * 256 + 256);
1247
+ return F;
1248
+ }
1249
+ var n = a(t), i = n[0], s = n[1], l = n[2], o = n[3], f = n[4], c = n[5], p = n[6], h = n[7], d = n[8], m = n[9], u = n[10], _ = n[11], C = n[12], B = n[13], k = n[14];
1250
+ function b(A, H) {
1251
+ for (var S = H ^ -1, O = 0, D = A.length; O < D; ) S = S >>> 8 ^ t[(S ^ A.charCodeAt(O++)) & 255];
1252
1252
  return ~S;
1253
1253
  }
1254
- function G(A, X) {
1255
- for (var S = X ^ -1, O = A.length - 15, F = 0; F < O; ) S = k[A[F++] ^ S & 255] ^ I[A[F++] ^ S >> 8 & 255] ^ C[A[F++] ^ S >> 16 & 255] ^ _[A[F++] ^ S >>> 24] ^ u[A[F++]] ^ m[A[F++]] ^ d[A[F++]] ^ h[A[F++]] ^ p[A[F++]] ^ c[A[F++]] ^ f[A[F++]] ^ o[A[F++]] ^ l[A[F++]] ^ s[A[F++]] ^ i[A[F++]] ^ t[A[F++]];
1256
- for (O += 15; F < O; ) S = S >>> 8 ^ t[(S ^ A[F++]) & 255];
1254
+ function G(A, H) {
1255
+ for (var S = H ^ -1, O = A.length - 15, D = 0; D < O; ) S = k[A[D++] ^ S & 255] ^ B[A[D++] ^ S >> 8 & 255] ^ C[A[D++] ^ S >> 16 & 255] ^ _[A[D++] ^ S >>> 24] ^ u[A[D++]] ^ m[A[D++]] ^ d[A[D++]] ^ h[A[D++]] ^ p[A[D++]] ^ c[A[D++]] ^ f[A[D++]] ^ o[A[D++]] ^ l[A[D++]] ^ s[A[D++]] ^ i[A[D++]] ^ t[A[D++]];
1256
+ for (O += 15; D < O; ) S = S >>> 8 ^ t[(S ^ A[D++]) & 255];
1257
1257
  return ~S;
1258
1258
  }
1259
- function z(A, X) {
1260
- for (var S = X ^ -1, O = 0, F = A.length, B = 0, H = 0; O < F; )
1261
- B = A.charCodeAt(O++), B < 128 ? S = S >>> 8 ^ t[(S ^ B) & 255] : B < 2048 ? (S = S >>> 8 ^ t[(S ^ (192 | B >> 6 & 31)) & 255], S = S >>> 8 ^ t[(S ^ (128 | B & 63)) & 255]) : B >= 55296 && B < 57344 ? (B = (B & 1023) + 64, H = A.charCodeAt(O++) & 1023, S = S >>> 8 ^ t[(S ^ (240 | B >> 8 & 7)) & 255], S = S >>> 8 ^ t[(S ^ (128 | B >> 2 & 63)) & 255], S = S >>> 8 ^ t[(S ^ (128 | H >> 6 & 15 | (B & 3) << 4)) & 255], S = S >>> 8 ^ t[(S ^ (128 | H & 63)) & 255]) : (S = S >>> 8 ^ t[(S ^ (224 | B >> 12 & 15)) & 255], S = S >>> 8 ^ t[(S ^ (128 | B >> 6 & 63)) & 255], S = S >>> 8 ^ t[(S ^ (128 | B & 63)) & 255]);
1259
+ function z(A, H) {
1260
+ for (var S = H ^ -1, O = 0, D = A.length, F = 0, R = 0; O < D; )
1261
+ F = A.charCodeAt(O++), F < 128 ? S = S >>> 8 ^ t[(S ^ F) & 255] : F < 2048 ? (S = S >>> 8 ^ t[(S ^ (192 | F >> 6 & 31)) & 255], S = S >>> 8 ^ t[(S ^ (128 | F & 63)) & 255]) : F >= 55296 && F < 57344 ? (F = (F & 1023) + 64, R = A.charCodeAt(O++) & 1023, S = S >>> 8 ^ t[(S ^ (240 | F >> 8 & 7)) & 255], S = S >>> 8 ^ t[(S ^ (128 | F >> 2 & 63)) & 255], S = S >>> 8 ^ t[(S ^ (128 | R >> 6 & 15 | (F & 3) << 4)) & 255], S = S >>> 8 ^ t[(S ^ (128 | R & 63)) & 255]) : (S = S >>> 8 ^ t[(S ^ (224 | F >> 12 & 15)) & 255], S = S >>> 8 ^ t[(S ^ (128 | F >> 6 & 63)) & 255], S = S >>> 8 ^ t[(S ^ (128 | F & 63)) & 255]);
1262
1262
  return ~S;
1263
1263
  }
1264
1264
  return e.table = t, e.bstr = b, e.buf = G, e.str = z, e;
@@ -1266,7 +1266,7 @@ var CRC32 = /* @__PURE__ */ function() {
1266
1266
  var r = {};
1267
1267
  r.version = "1.2.1";
1268
1268
  function t(x, v) {
1269
- for (var g = x.split("/"), w = v.split("/"), y = 0, T = 0, V = Math.min(g.length, w.length); y < V; ++y) {
1269
+ for (var g = x.split("/"), w = v.split("/"), y = 0, T = 0, U = Math.min(g.length, w.length); y < U; ++y) {
1270
1270
  if (T = g[y].length - w[y].length) return T;
1271
1271
  if (g[y] != w[y]) return g[y] < w[y] ? -1 : 1;
1272
1272
  }
@@ -1294,10 +1294,10 @@ var CRC32 = /* @__PURE__ */ function() {
1294
1294
  g >>>= 5;
1295
1295
  var T = g & 15;
1296
1296
  g >>>= 4, w.setMilliseconds(0), w.setFullYear(g + 1980), w.setMonth(T - 1), w.setDate(y);
1297
- var V = v & 31;
1297
+ var U = v & 31;
1298
1298
  v >>>= 5;
1299
- var j = v & 63;
1300
- return v >>>= 6, w.setHours(v), w.setMinutes(j), w.setSeconds(V << 1), w;
1299
+ var K = v & 63;
1300
+ return v >>>= 6, w.setHours(v), w.setMinutes(K), w.setSeconds(U << 1), w;
1301
1301
  }
1302
1302
  function l(x) {
1303
1303
  prep_blob(x, 0);
@@ -1305,14 +1305,14 @@ var CRC32 = /* @__PURE__ */ function() {
1305
1305
  /*::(*/
1306
1306
  {}
1307
1307
  ), g = 0; x.l <= x.length - 4; ) {
1308
- var w = x.read_shift(2), y = x.read_shift(2), T = x.l + y, V = {};
1308
+ var w = x.read_shift(2), y = x.read_shift(2), T = x.l + y, U = {};
1309
1309
  switch (w) {
1310
1310
  /* UNIX-style Timestamps */
1311
1311
  case 21589:
1312
- g = x.read_shift(1), g & 1 && (V.mtime = x.read_shift(4)), y > 5 && (g & 2 && (V.atime = x.read_shift(4)), g & 4 && (V.ctime = x.read_shift(4))), V.mtime && (V.mt = new Date(V.mtime * 1e3));
1312
+ g = x.read_shift(1), g & 1 && (U.mtime = x.read_shift(4)), y > 5 && (g & 2 && (U.atime = x.read_shift(4)), g & 4 && (U.ctime = x.read_shift(4))), U.mtime && (U.mt = new Date(U.mtime * 1e3));
1313
1313
  break;
1314
1314
  }
1315
- x.l = T, v[w] = V;
1315
+ x.l = T, v[w] = U;
1316
1316
  }
1317
1317
  return v;
1318
1318
  }
@@ -1324,12 +1324,12 @@ var CRC32 = /* @__PURE__ */ function() {
1324
1324
  if (x[0] == 80 && x[1] == 75) return Je(x, v);
1325
1325
  if ((x[0] | 32) == 109 && (x[1] | 32) == 105) return lt(x, v);
1326
1326
  if (x.length < 512) throw new Error("CFB file size " + x.length + " < 512");
1327
- var g = 3, w = 512, y = 0, T = 0, V = 0, j = 0, R = 0, U = [], W = (
1327
+ var g = 3, w = 512, y = 0, T = 0, U = 0, K = 0, M = 0, W = [], X = (
1328
1328
  /*::(*/
1329
1329
  x.slice(0, 512)
1330
1330
  );
1331
- prep_blob(W, 0);
1332
- var Y = p(W);
1331
+ prep_blob(X, 0);
1332
+ var Y = p(X);
1333
1333
  switch (g = Y[0], g) {
1334
1334
  case 3:
1335
1335
  w = 512;
@@ -1343,34 +1343,34 @@ var CRC32 = /* @__PURE__ */ function() {
1343
1343
  default:
1344
1344
  throw new Error("Major Version: Expected 3 or 4 saw " + g);
1345
1345
  }
1346
- w !== 512 && (W = /*::(*/
1346
+ w !== 512 && (X = /*::(*/
1347
1347
  x.slice(0, w), prep_blob(
1348
- W,
1348
+ X,
1349
1349
  28
1350
1350
  /* blob.l */
1351
1351
  ));
1352
1352
  var q = x.slice(0, w);
1353
- h(W, g);
1354
- var ee = W.read_shift(4, "i");
1353
+ h(X, g);
1354
+ var ee = X.read_shift(4, "i");
1355
1355
  if (g === 3 && ee !== 0) throw new Error("# Directory Sectors: Expected 0 saw " + ee);
1356
- W.l += 4, V = W.read_shift(4, "i"), W.l += 4, W.chk("00100000", "Mini Stream Cutoff Size: "), j = W.read_shift(4, "i"), y = W.read_shift(4, "i"), R = W.read_shift(4, "i"), T = W.read_shift(4, "i");
1357
- for (var J = -1, Q = 0; Q < 109 && (J = W.read_shift(4, "i"), !(J < 0)); ++Q)
1358
- U[Q] = J;
1356
+ X.l += 4, U = X.read_shift(4, "i"), X.l += 4, X.chk("00100000", "Mini Stream Cutoff Size: "), K = X.read_shift(4, "i"), y = X.read_shift(4, "i"), M = X.read_shift(4, "i"), T = X.read_shift(4, "i");
1357
+ for (var J = -1, Q = 0; Q < 109 && (J = X.read_shift(4, "i"), !(J < 0)); ++Q)
1358
+ W[Q] = J;
1359
1359
  var oe = d(x, w);
1360
- _(R, T, oe, w, U);
1361
- var _e = I(oe, V, U, w);
1362
- _e[V].name = "!Directory", y > 0 && j !== H && (_e[j].name = "!MiniFAT"), _e[U[0]].name = "!FAT", _e.fat_addrs = U, _e.ssz = w;
1363
- var pe = {}, we = [], Be = [], De = [];
1364
- k(V, _e, oe, we, y, pe, Be, j), m(Be, De, we), we.shift();
1360
+ _(M, T, oe, w, W);
1361
+ var _e = B(oe, U, W, w);
1362
+ _e[U].name = "!Directory", y > 0 && K !== R && (_e[K].name = "!MiniFAT"), _e[W[0]].name = "!FAT", _e.fat_addrs = W, _e.ssz = w;
1363
+ var pe = {}, we = [], Ie = [], De = [];
1364
+ k(U, _e, oe, we, y, pe, Ie, K), m(Ie, De, we), we.shift();
1365
1365
  var Le = {
1366
- FileIndex: Be,
1366
+ FileIndex: Ie,
1367
1367
  FullPaths: De
1368
1368
  };
1369
1369
  return v && v.raw && (Le.raw = { header: q, sectors: oe }), Le;
1370
1370
  }
1371
1371
  function p(x) {
1372
1372
  if (x[x.l] == 80 && x[x.l + 1] == 75) return [0, 0];
1373
- x.chk(ae, "Header Signature: "), x.l += 16;
1373
+ x.chk(te, "Header Signature: "), x.l += 16;
1374
1374
  var v = x.read_shift(2, "u");
1375
1375
  return [x.read_shift(2, "u"), v];
1376
1376
  }
@@ -1393,74 +1393,74 @@ var CRC32 = /* @__PURE__ */ function() {
1393
1393
  return w[g - 1] = x.slice(g * v), w;
1394
1394
  }
1395
1395
  function m(x, v, g) {
1396
- for (var w = 0, y = 0, T = 0, V = 0, j = 0, R = g.length, U = [], W = []; w < R; ++w)
1397
- U[w] = W[w] = w, v[w] = g[w];
1398
- for (; j < W.length; ++j)
1399
- w = W[j], y = x[w].L, T = x[w].R, V = x[w].C, U[w] === w && (y !== -1 && U[y] !== y && (U[w] = U[y]), T !== -1 && U[T] !== T && (U[w] = U[T])), V !== -1 && (U[V] = w), y !== -1 && w != U[w] && (U[y] = U[w], W.lastIndexOf(y) < j && W.push(y)), T !== -1 && w != U[w] && (U[T] = U[w], W.lastIndexOf(T) < j && W.push(T));
1400
- for (w = 1; w < R; ++w) U[w] === w && (T !== -1 && U[T] !== T ? U[w] = U[T] : y !== -1 && U[y] !== y && (U[w] = U[y]));
1401
- for (w = 1; w < R; ++w)
1396
+ for (var w = 0, y = 0, T = 0, U = 0, K = 0, M = g.length, W = [], X = []; w < M; ++w)
1397
+ W[w] = X[w] = w, v[w] = g[w];
1398
+ for (; K < X.length; ++K)
1399
+ w = X[K], y = x[w].L, T = x[w].R, U = x[w].C, W[w] === w && (y !== -1 && W[y] !== y && (W[w] = W[y]), T !== -1 && W[T] !== T && (W[w] = W[T])), U !== -1 && (W[U] = w), y !== -1 && w != W[w] && (W[y] = W[w], X.lastIndexOf(y) < K && X.push(y)), T !== -1 && w != W[w] && (W[T] = W[w], X.lastIndexOf(T) < K && X.push(T));
1400
+ for (w = 1; w < M; ++w) W[w] === w && (T !== -1 && W[T] !== T ? W[w] = W[T] : y !== -1 && W[y] !== y && (W[w] = W[y]));
1401
+ for (w = 1; w < M; ++w)
1402
1402
  if (x[w].type !== 0) {
1403
- if (j = w, j != U[j]) do
1404
- j = U[j], v[w] = v[j] + "/" + v[w];
1405
- while (j !== 0 && U[j] !== -1 && j != U[j]);
1406
- U[w] = -1;
1403
+ if (K = w, K != W[K]) do
1404
+ K = W[K], v[w] = v[K] + "/" + v[w];
1405
+ while (K !== 0 && W[K] !== -1 && K != W[K]);
1406
+ W[w] = -1;
1407
1407
  }
1408
- for (v[0] += "/", w = 1; w < R; ++w)
1408
+ for (v[0] += "/", w = 1; w < M; ++w)
1409
1409
  x[w].type !== 2 && (v[w] += "/");
1410
1410
  }
1411
1411
  function u(x, v, g) {
1412
- for (var w = x.start, y = x.size, T = [], V = w; g && y > 0 && V >= 0; )
1413
- T.push(v.slice(V * B, V * B + B)), y -= B, V = __readInt32LE(g, V * 4);
1412
+ for (var w = x.start, y = x.size, T = [], U = w; g && y > 0 && U >= 0; )
1413
+ T.push(v.slice(U * F, U * F + F)), y -= F, U = __readInt32LE(g, U * 4);
1414
1414
  return T.length === 0 ? new_buf(0) : bconcat(T).slice(0, x.size);
1415
1415
  }
1416
1416
  function _(x, v, g, w, y) {
1417
- var T = H;
1418
- if (x === H) {
1417
+ var T = R;
1418
+ if (x === R) {
1419
1419
  if (v !== 0) throw new Error("DIFAT chain shorter than expected");
1420
1420
  } else if (x !== -1) {
1421
- var V = g[x], j = (w >>> 2) - 1;
1422
- if (!V) return;
1423
- for (var R = 0; R < j && (T = __readInt32LE(V, R * 4)) !== H; ++R)
1421
+ var U = g[x], K = (w >>> 2) - 1;
1422
+ if (!U) return;
1423
+ for (var M = 0; M < K && (T = __readInt32LE(U, M * 4)) !== R; ++M)
1424
1424
  y.push(T);
1425
- _(__readInt32LE(V, w - 4), v - 1, g, w, y);
1425
+ _(__readInt32LE(U, w - 4), v - 1, g, w, y);
1426
1426
  }
1427
1427
  }
1428
1428
  function C(x, v, g, w, y) {
1429
- var T = [], V = [];
1429
+ var T = [], U = [];
1430
1430
  y || (y = []);
1431
- var j = w - 1, R = 0, U = 0;
1432
- for (R = v; R >= 0; ) {
1433
- y[R] = !0, T[T.length] = R, V.push(x[R]);
1434
- var W = g[Math.floor(R * 4 / w)];
1435
- if (U = R * 4 & j, w < 4 + U) throw new Error("FAT boundary crossed: " + R + " 4 " + w);
1436
- if (!x[W]) break;
1437
- R = __readInt32LE(x[W], U);
1431
+ var K = w - 1, M = 0, W = 0;
1432
+ for (M = v; M >= 0; ) {
1433
+ y[M] = !0, T[T.length] = M, U.push(x[M]);
1434
+ var X = g[Math.floor(M * 4 / w)];
1435
+ if (W = M * 4 & K, w < 4 + W) throw new Error("FAT boundary crossed: " + M + " 4 " + w);
1436
+ if (!x[X]) break;
1437
+ M = __readInt32LE(x[X], W);
1438
1438
  }
1439
- return { nodes: T, data: __toBuffer([V]) };
1439
+ return { nodes: T, data: __toBuffer([U]) };
1440
1440
  }
1441
- function I(x, v, g, w) {
1442
- var y = x.length, T = [], V = [], j = [], R = [], U = w - 1, W = 0, Y = 0, q = 0, ee = 0;
1443
- for (W = 0; W < y; ++W)
1444
- if (j = [], q = W + v, q >= y && (q -= y), !V[q]) {
1445
- R = [];
1441
+ function B(x, v, g, w) {
1442
+ var y = x.length, T = [], U = [], K = [], M = [], W = w - 1, X = 0, Y = 0, q = 0, ee = 0;
1443
+ for (X = 0; X < y; ++X)
1444
+ if (K = [], q = X + v, q >= y && (q -= y), !U[q]) {
1445
+ M = [];
1446
1446
  var J = [];
1447
1447
  for (Y = q; Y >= 0; ) {
1448
- J[Y] = !0, V[Y] = !0, j[j.length] = Y, R.push(x[Y]);
1448
+ J[Y] = !0, U[Y] = !0, K[K.length] = Y, M.push(x[Y]);
1449
1449
  var Q = g[Math.floor(Y * 4 / w)];
1450
- if (ee = Y * 4 & U, w < 4 + ee) throw new Error("FAT boundary crossed: " + Y + " 4 " + w);
1450
+ if (ee = Y * 4 & W, w < 4 + ee) throw new Error("FAT boundary crossed: " + Y + " 4 " + w);
1451
1451
  if (!x[Q] || (Y = __readInt32LE(x[Q], ee), J[Y])) break;
1452
1452
  }
1453
- T[q] = { nodes: j, data: __toBuffer([R]) };
1453
+ T[q] = { nodes: K, data: __toBuffer([M]) };
1454
1454
  }
1455
1455
  return T;
1456
1456
  }
1457
- function k(x, v, g, w, y, T, V, j) {
1458
- for (var R = 0, U = w.length ? 2 : 0, W = v[x].data, Y = 0, q = 0, ee; Y < W.length; Y += 128) {
1457
+ function k(x, v, g, w, y, T, U, K) {
1458
+ for (var M = 0, W = w.length ? 2 : 0, X = v[x].data, Y = 0, q = 0, ee; Y < X.length; Y += 128) {
1459
1459
  var J = (
1460
1460
  /*::(*/
1461
- W.slice(Y, Y + 128)
1461
+ X.slice(Y, Y + 128)
1462
1462
  );
1463
- prep_blob(J, 64), q = J.read_shift(2), ee = __utf16le(J, 0, q - U), w.push(ee);
1463
+ prep_blob(J, 64), q = J.read_shift(2), ee = __utf16le(J, 0, q - W), w.push(ee);
1464
1464
  var Q = {
1465
1465
  name: ee,
1466
1466
  type: J.read_shift(1),
@@ -1475,7 +1475,7 @@ var CRC32 = /* @__PURE__ */ function() {
1475
1475
  }, oe = J.read_shift(2) + J.read_shift(2) + J.read_shift(2) + J.read_shift(2);
1476
1476
  oe !== 0 && (Q.ct = b(J, J.l - 8));
1477
1477
  var _e = J.read_shift(2) + J.read_shift(2) + J.read_shift(2) + J.read_shift(2);
1478
- _e !== 0 && (Q.mt = b(J, J.l - 8)), Q.start = J.read_shift(4, "i"), Q.size = J.read_shift(4, "i"), Q.size < 0 && Q.start < 0 && (Q.size = Q.type = 0, Q.start = H, Q.name = ""), Q.type === 5 ? (R = Q.start, y > 0 && R !== H && (v[R].name = "!StreamData")) : Q.size >= 4096 ? (Q.storage = "fat", v[Q.start] === void 0 && (v[Q.start] = C(g, Q.start, v.fat_addrs, v.ssz)), v[Q.start].name = Q.name, Q.content = v[Q.start].data.slice(0, Q.size)) : (Q.storage = "minifat", Q.size < 0 ? Q.size = 0 : R !== H && Q.start !== H && v[R] && (Q.content = u(Q, v[R].data, (v[j] || {}).data))), Q.content && prep_blob(Q.content, 0), T[ee] = Q, V.push(Q);
1478
+ _e !== 0 && (Q.mt = b(J, J.l - 8)), Q.start = J.read_shift(4, "i"), Q.size = J.read_shift(4, "i"), Q.size < 0 && Q.start < 0 && (Q.size = Q.type = 0, Q.start = R, Q.name = ""), Q.type === 5 ? (M = Q.start, y > 0 && M !== R && (v[M].name = "!StreamData")) : Q.size >= 4096 ? (Q.storage = "fat", v[Q.start] === void 0 && (v[Q.start] = C(g, Q.start, v.fat_addrs, v.ssz)), v[Q.start].name = Q.name, Q.content = v[Q.start].data.slice(0, Q.size)) : (Q.storage = "minifat", Q.size < 0 ? Q.size = 0 : M !== R && Q.start !== R && v[M] && (Q.content = u(Q, v[M].data, (v[K] || {}).data))), Q.content && prep_blob(Q.content, 0), T[ee] = Q, U.push(Q);
1479
1479
  }
1480
1480
  }
1481
1481
  function b(x, v) {
@@ -1503,9 +1503,9 @@ var CRC32 = /* @__PURE__ */ function() {
1503
1503
  function A(x, v) {
1504
1504
  var g = v || {}, w = g.root || "Root Entry";
1505
1505
  if (x.FullPaths || (x.FullPaths = []), x.FileIndex || (x.FileIndex = []), x.FullPaths.length !== x.FileIndex.length) throw new Error("inconsistent CFB structure");
1506
- x.FullPaths.length === 0 && (x.FullPaths[0] = w + "/", x.FileIndex[0] = { name: w, type: 5 }), g.CLSID && (x.FileIndex[0].clsid = g.CLSID), X(x);
1506
+ x.FullPaths.length === 0 && (x.FullPaths[0] = w + "/", x.FileIndex[0] = { name: w, type: 5 }), g.CLSID && (x.FileIndex[0].clsid = g.CLSID), H(x);
1507
1507
  }
1508
- function X(x) {
1508
+ function H(x) {
1509
1509
  var v = "Sh33tJ5";
1510
1510
  if (!CFB.find(x, "/" + v)) {
1511
1511
  var g = new_buf(4);
@@ -1531,32 +1531,32 @@ var CRC32 = /* @__PURE__ */ function() {
1531
1531
  }
1532
1532
  }
1533
1533
  if (!(!g && !v)) {
1534
- var V = new Date(1987, 1, 19), j = 0, R = Object.create ? /* @__PURE__ */ Object.create(null) : {}, U = [];
1534
+ var U = new Date(1987, 1, 19), K = 0, M = Object.create ? /* @__PURE__ */ Object.create(null) : {}, W = [];
1535
1535
  for (y = 0; y < x.FullPaths.length; ++y)
1536
- R[x.FullPaths[y]] = !0, x.FileIndex[y].type !== 0 && U.push([x.FullPaths[y], x.FileIndex[y]]);
1537
- for (y = 0; y < U.length; ++y) {
1538
- var W = a(U[y][0]);
1539
- w = R[W], w || (U.push([W, {
1540
- name: n(W).replace("/", ""),
1536
+ M[x.FullPaths[y]] = !0, x.FileIndex[y].type !== 0 && W.push([x.FullPaths[y], x.FileIndex[y]]);
1537
+ for (y = 0; y < W.length; ++y) {
1538
+ var X = a(W[y][0]);
1539
+ w = M[X], w || (W.push([X, {
1540
+ name: n(X).replace("/", ""),
1541
1541
  type: 1,
1542
1542
  clsid: ce,
1543
- ct: V,
1544
- mt: V,
1543
+ ct: U,
1544
+ mt: U,
1545
1545
  content: null
1546
- }]), R[W] = !0);
1546
+ }]), M[X] = !0);
1547
1547
  }
1548
- for (U.sort(function(ee, J) {
1548
+ for (W.sort(function(ee, J) {
1549
1549
  return t(ee[0], J[0]);
1550
- }), x.FullPaths = [], x.FileIndex = [], y = 0; y < U.length; ++y)
1551
- x.FullPaths[y] = U[y][0], x.FileIndex[y] = U[y][1];
1552
- for (y = 0; y < U.length; ++y) {
1550
+ }), x.FullPaths = [], x.FileIndex = [], y = 0; y < W.length; ++y)
1551
+ x.FullPaths[y] = W[y][0], x.FileIndex[y] = W[y][1];
1552
+ for (y = 0; y < W.length; ++y) {
1553
1553
  var Y = x.FileIndex[y], q = x.FullPaths[y];
1554
1554
  if (Y.name = n(q).replace("/", ""), Y.L = Y.R = Y.C = -(Y.color = 1), Y.size = Y.content ? Y.content.length : 0, Y.start = 0, Y.clsid = Y.clsid || ce, y === 0)
1555
- Y.C = U.length > 1 ? 1 : -1, Y.size = 0, Y.type = 5;
1555
+ Y.C = W.length > 1 ? 1 : -1, Y.size = 0, Y.type = 5;
1556
1556
  else if (q.slice(-1) == "/") {
1557
- for (j = y + 1; j < U.length && a(x.FullPaths[j]) != q; ++j) ;
1558
- for (Y.C = j >= U.length ? -1 : j, j = y + 1; j < U.length && a(x.FullPaths[j]) != a(q); ++j) ;
1559
- Y.R = j >= U.length ? -1 : j, Y.type = 1;
1557
+ for (K = y + 1; K < W.length && a(x.FullPaths[K]) != q; ++K) ;
1558
+ for (Y.C = K >= W.length ? -1 : K, K = y + 1; K < W.length && a(x.FullPaths[K]) != a(q); ++K) ;
1559
+ Y.R = K >= W.length ? -1 : K, Y.type = 1;
1560
1560
  } else
1561
1561
  a(x.FullPaths[y + 1] || "") == a(q) && (Y.R = y + 1), Y.type = 2;
1562
1562
  }
@@ -1577,63 +1577,63 @@ var CRC32 = /* @__PURE__ */ function() {
1577
1577
  pe > 0 && (pe < 4096 ? J += pe + 63 >> 6 : Q += pe + 511 >> 9);
1578
1578
  }
1579
1579
  }
1580
- for (var we = ee.FullPaths.length + 3 >> 2, Be = J + 7 >> 3, De = J + 127 >> 7, Le = Be + Q + we + De, Ne = Le + 127 >> 7, Ue = Ne <= 109 ? 0 : Math.ceil((Ne - 109) / 127); Le + Ne + Ue + 127 >> 7 > Ne; ) Ue = ++Ne <= 109 ? 0 : Math.ceil((Ne - 109) / 127);
1580
+ for (var we = ee.FullPaths.length + 3 >> 2, Ie = J + 7 >> 3, De = J + 127 >> 7, Le = Ie + Q + we + De, Ne = Le + 127 >> 7, Ue = Ne <= 109 ? 0 : Math.ceil((Ne - 109) / 127); Le + Ne + Ue + 127 >> 7 > Ne; ) Ue = ++Ne <= 109 ? 0 : Math.ceil((Ne - 109) / 127);
1581
1581
  var Ae = [1, Ue, Ne, De, we, Q, J, 0];
1582
1582
  return ee.FileIndex[0].size = J << 6, Ae[7] = (ee.FileIndex[0].start = Ae[0] + Ae[1] + Ae[2] + Ae[3] + Ae[4] + Ae[5]) + (Ae[6] + 7 >> 3), Ae;
1583
- }(x), y = new_buf(w[7] << 9), T = 0, V = 0;
1583
+ }(x), y = new_buf(w[7] << 9), T = 0, U = 0;
1584
1584
  {
1585
1585
  for (T = 0; T < 8; ++T) y.write_shift(1, ne[T]);
1586
1586
  for (T = 0; T < 8; ++T) y.write_shift(2, 0);
1587
1587
  for (y.write_shift(2, 62), y.write_shift(2, 3), y.write_shift(2, 65534), y.write_shift(2, 9), y.write_shift(2, 6), T = 0; T < 3; ++T) y.write_shift(2, 0);
1588
- for (y.write_shift(4, 0), y.write_shift(4, w[2]), y.write_shift(4, w[0] + w[1] + w[2] + w[3] - 1), y.write_shift(4, 0), y.write_shift(4, 4096), y.write_shift(4, w[3] ? w[0] + w[1] + w[2] - 1 : H), y.write_shift(4, w[3]), y.write_shift(-4, w[1] ? w[0] - 1 : H), y.write_shift(4, w[1]), T = 0; T < 109; ++T) y.write_shift(-4, T < w[2] ? w[1] + T : -1);
1588
+ for (y.write_shift(4, 0), y.write_shift(4, w[2]), y.write_shift(4, w[0] + w[1] + w[2] + w[3] - 1), y.write_shift(4, 0), y.write_shift(4, 4096), y.write_shift(4, w[3] ? w[0] + w[1] + w[2] - 1 : R), y.write_shift(4, w[3]), y.write_shift(-4, w[1] ? w[0] - 1 : R), y.write_shift(4, w[1]), T = 0; T < 109; ++T) y.write_shift(-4, T < w[2] ? w[1] + T : -1);
1589
1589
  }
1590
1590
  if (w[1])
1591
- for (V = 0; V < w[1]; ++V) {
1592
- for (; T < 236 + V * 127; ++T) y.write_shift(-4, T < w[2] ? w[1] + T : -1);
1593
- y.write_shift(-4, V === w[1] - 1 ? H : V + 1);
1591
+ for (U = 0; U < w[1]; ++U) {
1592
+ for (; T < 236 + U * 127; ++T) y.write_shift(-4, T < w[2] ? w[1] + T : -1);
1593
+ y.write_shift(-4, U === w[1] - 1 ? R : U + 1);
1594
1594
  }
1595
- var j = function(ee) {
1596
- for (V += ee; T < V - 1; ++T) y.write_shift(-4, T + 1);
1597
- ee && (++T, y.write_shift(-4, H));
1595
+ var K = function(ee) {
1596
+ for (U += ee; T < U - 1; ++T) y.write_shift(-4, T + 1);
1597
+ ee && (++T, y.write_shift(-4, R));
1598
1598
  };
1599
- for (V = T = 0, V += w[1]; T < V; ++T) y.write_shift(-4, te.DIFSECT);
1600
- for (V += w[2]; T < V; ++T) y.write_shift(-4, te.FATSECT);
1601
- j(w[3]), j(w[4]);
1602
- for (var R = 0, U = 0, W = x.FileIndex[0]; R < x.FileIndex.length; ++R)
1603
- W = x.FileIndex[R], W.content && (U = W.content.length, !(U < 4096) && (W.start = V, j(U + 511 >> 9)));
1604
- for (j(w[6] + 7 >> 3); y.l & 511; ) y.write_shift(-4, te.ENDOFCHAIN);
1605
- for (V = T = 0, R = 0; R < x.FileIndex.length; ++R)
1606
- W = x.FileIndex[R], W.content && (U = W.content.length, !(!U || U >= 4096) && (W.start = V, j(U + 63 >> 6)));
1607
- for (; y.l & 511; ) y.write_shift(-4, te.ENDOFCHAIN);
1599
+ for (U = T = 0, U += w[1]; T < U; ++T) y.write_shift(-4, re.DIFSECT);
1600
+ for (U += w[2]; T < U; ++T) y.write_shift(-4, re.FATSECT);
1601
+ K(w[3]), K(w[4]);
1602
+ for (var M = 0, W = 0, X = x.FileIndex[0]; M < x.FileIndex.length; ++M)
1603
+ X = x.FileIndex[M], X.content && (W = X.content.length, !(W < 4096) && (X.start = U, K(W + 511 >> 9)));
1604
+ for (K(w[6] + 7 >> 3); y.l & 511; ) y.write_shift(-4, re.ENDOFCHAIN);
1605
+ for (U = T = 0, M = 0; M < x.FileIndex.length; ++M)
1606
+ X = x.FileIndex[M], X.content && (W = X.content.length, !(!W || W >= 4096) && (X.start = U, K(W + 63 >> 6)));
1607
+ for (; y.l & 511; ) y.write_shift(-4, re.ENDOFCHAIN);
1608
1608
  for (T = 0; T < w[4] << 2; ++T) {
1609
1609
  var Y = x.FullPaths[T];
1610
1610
  if (!Y || Y.length === 0) {
1611
- for (R = 0; R < 17; ++R) y.write_shift(4, 0);
1612
- for (R = 0; R < 3; ++R) y.write_shift(4, -1);
1613
- for (R = 0; R < 12; ++R) y.write_shift(4, 0);
1611
+ for (M = 0; M < 17; ++M) y.write_shift(4, 0);
1612
+ for (M = 0; M < 3; ++M) y.write_shift(4, -1);
1613
+ for (M = 0; M < 12; ++M) y.write_shift(4, 0);
1614
1614
  continue;
1615
1615
  }
1616
- W = x.FileIndex[T], T === 0 && (W.start = W.size ? W.start - 1 : H);
1617
- var q = T === 0 && g.root || W.name;
1618
- if (U = 2 * (q.length + 1), y.write_shift(64, q, "utf16le"), y.write_shift(2, U), y.write_shift(1, W.type), y.write_shift(1, W.color), y.write_shift(-4, W.L), y.write_shift(-4, W.R), y.write_shift(-4, W.C), W.clsid) y.write_shift(16, W.clsid, "hex");
1619
- else for (R = 0; R < 4; ++R) y.write_shift(4, 0);
1620
- y.write_shift(4, W.state || 0), y.write_shift(4, 0), y.write_shift(4, 0), y.write_shift(4, 0), y.write_shift(4, 0), y.write_shift(4, W.start), y.write_shift(4, W.size), y.write_shift(4, 0);
1616
+ X = x.FileIndex[T], T === 0 && (X.start = X.size ? X.start - 1 : R);
1617
+ var q = T === 0 && g.root || X.name;
1618
+ if (W = 2 * (q.length + 1), y.write_shift(64, q, "utf16le"), y.write_shift(2, W), y.write_shift(1, X.type), y.write_shift(1, X.color), y.write_shift(-4, X.L), y.write_shift(-4, X.R), y.write_shift(-4, X.C), X.clsid) y.write_shift(16, X.clsid, "hex");
1619
+ else for (M = 0; M < 4; ++M) y.write_shift(4, 0);
1620
+ y.write_shift(4, X.state || 0), y.write_shift(4, 0), y.write_shift(4, 0), y.write_shift(4, 0), y.write_shift(4, 0), y.write_shift(4, X.start), y.write_shift(4, X.size), y.write_shift(4, 0);
1621
1621
  }
1622
1622
  for (T = 1; T < x.FileIndex.length; ++T)
1623
- if (W = x.FileIndex[T], W.size >= 4096)
1624
- if (y.l = W.start + 1 << 9, has_buf && Buffer.isBuffer(W.content))
1625
- W.content.copy(y, y.l, 0, W.size), y.l += W.size + 511 & -512;
1623
+ if (X = x.FileIndex[T], X.size >= 4096)
1624
+ if (y.l = X.start + 1 << 9, has_buf && Buffer.isBuffer(X.content))
1625
+ X.content.copy(y, y.l, 0, X.size), y.l += X.size + 511 & -512;
1626
1626
  else {
1627
- for (R = 0; R < W.size; ++R) y.write_shift(1, W.content[R]);
1628
- for (; R & 511; ++R) y.write_shift(1, 0);
1627
+ for (M = 0; M < X.size; ++M) y.write_shift(1, X.content[M]);
1628
+ for (; M & 511; ++M) y.write_shift(1, 0);
1629
1629
  }
1630
1630
  for (T = 1; T < x.FileIndex.length; ++T)
1631
- if (W = x.FileIndex[T], W.size > 0 && W.size < 4096)
1632
- if (has_buf && Buffer.isBuffer(W.content))
1633
- W.content.copy(y, y.l, 0, W.size), y.l += W.size + 63 & -64;
1631
+ if (X = x.FileIndex[T], X.size > 0 && X.size < 4096)
1632
+ if (has_buf && Buffer.isBuffer(X.content))
1633
+ X.content.copy(y, y.l, 0, X.size), y.l += X.size + 63 & -64;
1634
1634
  else {
1635
- for (R = 0; R < W.size; ++R) y.write_shift(1, W.content[R]);
1636
- for (; R & 63; ++R) y.write_shift(1, 0);
1635
+ for (M = 0; M < X.size; ++M) y.write_shift(1, X.content[M]);
1636
+ for (; M & 63; ++M) y.write_shift(1, 0);
1637
1637
  }
1638
1638
  if (has_buf)
1639
1639
  y.l = y.length;
@@ -1641,30 +1641,30 @@ var CRC32 = /* @__PURE__ */ function() {
1641
1641
  for (; y.l < y.length; ) y.write_shift(1, 0);
1642
1642
  return y;
1643
1643
  }
1644
- function F(x, v) {
1645
- var g = x.FullPaths.map(function(R) {
1646
- return R.toUpperCase();
1647
- }), w = g.map(function(R) {
1648
- var U = R.split("/");
1649
- return U[U.length - (R.slice(-1) == "/" ? 2 : 1)];
1644
+ function D(x, v) {
1645
+ var g = x.FullPaths.map(function(M) {
1646
+ return M.toUpperCase();
1647
+ }), w = g.map(function(M) {
1648
+ var W = M.split("/");
1649
+ return W[W.length - (M.slice(-1) == "/" ? 2 : 1)];
1650
1650
  }), y = !1;
1651
1651
  v.charCodeAt(0) === 47 ? (y = !0, v = g[0].slice(0, -1) + v) : y = v.indexOf("/") !== -1;
1652
- var T = v.toUpperCase(), V = y === !0 ? g.indexOf(T) : w.indexOf(T);
1653
- if (V !== -1) return x.FileIndex[V];
1654
- var j = !T.match(chr1);
1655
- for (T = T.replace(chr0, ""), j && (T = T.replace(chr1, "!")), V = 0; V < g.length; ++V)
1656
- if ((j ? g[V].replace(chr1, "!") : g[V]).replace(chr0, "") == T || (j ? w[V].replace(chr1, "!") : w[V]).replace(chr0, "") == T) return x.FileIndex[V];
1652
+ var T = v.toUpperCase(), U = y === !0 ? g.indexOf(T) : w.indexOf(T);
1653
+ if (U !== -1) return x.FileIndex[U];
1654
+ var K = !T.match(chr1);
1655
+ for (T = T.replace(chr0, ""), K && (T = T.replace(chr1, "!")), U = 0; U < g.length; ++U)
1656
+ if ((K ? g[U].replace(chr1, "!") : g[U]).replace(chr0, "") == T || (K ? w[U].replace(chr1, "!") : w[U]).replace(chr0, "") == T) return x.FileIndex[U];
1657
1657
  return null;
1658
1658
  }
1659
- var B = 64, H = -2, ae = "d0cf11e0a1b11ae1", ne = [208, 207, 17, 224, 161, 177, 26, 225], ce = "00000000000000000000000000000000", te = {
1659
+ var F = 64, R = -2, te = "d0cf11e0a1b11ae1", ne = [208, 207, 17, 224, 161, 177, 26, 225], ce = "00000000000000000000000000000000", re = {
1660
1660
  /* 2.1 Compund File Sector Numbers and Types */
1661
1661
  MAXREGSECT: -6,
1662
1662
  DIFSECT: -4,
1663
1663
  FATSECT: -3,
1664
- ENDOFCHAIN: H,
1664
+ ENDOFCHAIN: R,
1665
1665
  FREESECT: -1,
1666
1666
  /* 2.2 Compound File Header */
1667
- HEADER_SIGNATURE: ae,
1667
+ HEADER_SIGNATURE: te,
1668
1668
  HEADER_MINOR_VERSION: "3e00",
1669
1669
  MAXREGSID: -6,
1670
1670
  NOSTREAM: -1,
@@ -1708,15 +1708,15 @@ var CRC32 = /* @__PURE__ */ function() {
1708
1708
  console.error("cannot use native zlib: " + (w.message || w));
1709
1709
  }
1710
1710
  }
1711
- function M(x, v) {
1712
- if (!ge) return Ke(x, v);
1711
+ function V(x, v) {
1712
+ if (!ge) return je(x, v);
1713
1713
  var g = ge.InflateRaw, w = new g(), y = w._processChunk(x.slice(x.l), w._finishFlushFlag);
1714
1714
  return x.l += w.bytesRead, y;
1715
1715
  }
1716
1716
  function P(x) {
1717
1717
  return ge ? ge.deflateRawSync(x) : We(x);
1718
1718
  }
1719
- var D = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], K = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258], se = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577];
1719
+ var I = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], j = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258], se = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577];
1720
1720
  function le(x) {
1721
1721
  var v = (x << 1 | x << 11) & 139536 | (x << 5 | x << 15) & 558144;
1722
1722
  return (v >> 16 | v >> 8 | v) & 255;
@@ -1742,13 +1742,13 @@ var CRC32 = /* @__PURE__ */ function() {
1742
1742
  var g = v & 7, w = v >>> 3;
1743
1743
  return (x[w] | (g <= 3 ? 0 : x[w + 1] << 8)) >>> g & 31;
1744
1744
  }
1745
- function re(x, v) {
1745
+ function ae(x, v) {
1746
1746
  var g = v & 7, w = v >>> 3;
1747
1747
  return (x[w] | (g <= 1 ? 0 : x[w + 1] << 8)) >>> g & 127;
1748
1748
  }
1749
1749
  function ye(x, v, g) {
1750
- var w = v & 7, y = v >>> 3, T = (1 << g) - 1, V = x[y] >>> w;
1751
- return g < 8 - w || (V |= x[y + 1] << 8 - w, g < 16 - w) || (V |= x[y + 2] << 16 - w, g < 24 - w) || (V |= x[y + 3] << 24 - w), V & T;
1750
+ var w = v & 7, y = v >>> 3, T = (1 << g) - 1, U = x[y] >>> w;
1751
+ return g < 8 - w || (U |= x[y + 1] << 8 - w, g < 16 - w) || (U |= x[y + 2] << 16 - w, g < 24 - w) || (U |= x[y + 3] << 24 - w), U & T;
1752
1752
  }
1753
1753
  function Ce(x, v, g) {
1754
1754
  var w = v & 7, y = v >>> 3;
@@ -1758,7 +1758,7 @@ var CRC32 = /* @__PURE__ */ function() {
1758
1758
  var w = v & 7, y = v >>> 3;
1759
1759
  return g = (g & 1) << w, x[y] |= g, v + 1;
1760
1760
  }
1761
- function Ie(x, v, g) {
1761
+ function Be(x, v, g) {
1762
1762
  var w = v & 7, y = v >>> 3;
1763
1763
  return g <<= w, x[y] |= g & 255, g >>>= 8, x[y + 1] = g, v + 8;
1764
1764
  }
@@ -1775,10 +1775,10 @@ var CRC32 = /* @__PURE__ */ function() {
1775
1775
  else for (; y < x.length; ++y) T[y] = x[y];
1776
1776
  return T;
1777
1777
  } else if (ie) {
1778
- var V = new Uint8Array(w);
1779
- if (V.set) V.set(x);
1780
- else for (; y < g; ++y) V[y] = x[y];
1781
- return V;
1778
+ var U = new Uint8Array(w);
1779
+ if (U.set) U.set(x);
1780
+ else for (; y < g; ++y) U[y] = x[y];
1781
+ return U;
1782
1782
  }
1783
1783
  return x.length = w, x;
1784
1784
  }
@@ -1787,21 +1787,21 @@ var CRC32 = /* @__PURE__ */ function() {
1787
1787
  return v;
1788
1788
  }
1789
1789
  function Pe(x, v, g) {
1790
- var w = 1, y = 0, T = 0, V = 0, j = 0, R = x.length, U = ie ? new Uint16Array(32) : Te(32);
1791
- for (T = 0; T < 32; ++T) U[T] = 0;
1792
- for (T = R; T < g; ++T) x[T] = 0;
1793
- R = x.length;
1794
- var W = ie ? new Uint16Array(R) : Te(R);
1795
- for (T = 0; T < R; ++T)
1796
- U[y = x[T]]++, w < y && (w = y), W[T] = 0;
1797
- for (U[0] = 0, T = 1; T <= w; ++T) U[T + 16] = j = j + U[T - 1] << 1;
1798
- for (T = 0; T < R; ++T)
1799
- j = x[T], j != 0 && (W[T] = U[j + 16]++);
1790
+ var w = 1, y = 0, T = 0, U = 0, K = 0, M = x.length, W = ie ? new Uint16Array(32) : Te(32);
1791
+ for (T = 0; T < 32; ++T) W[T] = 0;
1792
+ for (T = M; T < g; ++T) x[T] = 0;
1793
+ M = x.length;
1794
+ var X = ie ? new Uint16Array(M) : Te(M);
1795
+ for (T = 0; T < M; ++T)
1796
+ W[y = x[T]]++, w < y && (w = y), X[T] = 0;
1797
+ for (W[0] = 0, T = 1; T <= w; ++T) W[T + 16] = K = K + W[T - 1] << 1;
1798
+ for (T = 0; T < M; ++T)
1799
+ K = x[T], K != 0 && (X[T] = W[K + 16]++);
1800
1800
  var Y = 0;
1801
- for (T = 0; T < R; ++T)
1801
+ for (T = 0; T < M; ++T)
1802
1802
  if (Y = x[T], Y != 0)
1803
- for (j = fe(W[T], w) >> w - Y, V = (1 << w + 4 - Y) - 1; V >= 0; --V)
1804
- v[j | V << Y] = Y & 15 | T << 4;
1803
+ for (K = fe(X[T], w) >> w - Y, U = (1 << w + 4 - Y) - 1; U >= 0; --U)
1804
+ v[K | U << Y] = Y & 15 | T << 4;
1805
1805
  return w;
1806
1806
  }
1807
1807
  var Re = ie ? new Uint16Array(512) : Te(512), Me = ie ? new Uint16Array(32) : Te(32);
@@ -1824,58 +1824,58 @@ var CRC32 = /* @__PURE__ */ function() {
1824
1824
  for (; w < se[g + 1]; ++w) v[w] = g;
1825
1825
  for (; w < 32768; ++w) v[w] = 29;
1826
1826
  var y = ie ? new Uint8Array(259) : [];
1827
- for (g = 0, w = 0; g < K.length - 1; ++g)
1828
- for (; w < K[g + 1]; ++w) y[w] = g;
1829
- function T(j, R) {
1830
- for (var U = 0; U < j.length; ) {
1831
- var W = Math.min(65535, j.length - U), Y = U + W == j.length;
1832
- for (R.write_shift(1, +Y), R.write_shift(2, W), R.write_shift(2, ~W & 65535); W-- > 0; ) R[R.l++] = j[U++];
1827
+ for (g = 0, w = 0; g < j.length - 1; ++g)
1828
+ for (; w < j[g + 1]; ++w) y[w] = g;
1829
+ function T(K, M) {
1830
+ for (var W = 0; W < K.length; ) {
1831
+ var X = Math.min(65535, K.length - W), Y = W + X == K.length;
1832
+ for (M.write_shift(1, +Y), M.write_shift(2, X), M.write_shift(2, ~X & 65535); X-- > 0; ) M[M.l++] = K[W++];
1833
1833
  }
1834
- return R.l;
1834
+ return M.l;
1835
1835
  }
1836
- function V(j, R) {
1837
- for (var U = 0, W = 0, Y = ie ? new Uint16Array(32768) : []; W < j.length; ) {
1836
+ function U(K, M) {
1837
+ for (var W = 0, X = 0, Y = ie ? new Uint16Array(32768) : []; X < K.length; ) {
1838
1838
  var q = (
1839
1839
  /* data.length - boff; */
1840
- Math.min(65535, j.length - W)
1840
+ Math.min(65535, K.length - X)
1841
1841
  );
1842
1842
  if (q < 10) {
1843
- for (U = Ce(R, U, +(W + q == j.length)), U & 7 && (U += 8 - (U & 7)), R.l = U / 8 | 0, R.write_shift(2, q), R.write_shift(2, ~q & 65535); q-- > 0; ) R[R.l++] = j[W++];
1844
- U = R.l * 8;
1843
+ for (W = Ce(M, W, +(X + q == K.length)), W & 7 && (W += 8 - (W & 7)), M.l = W / 8 | 0, M.write_shift(2, q), M.write_shift(2, ~q & 65535); q-- > 0; ) M[M.l++] = K[X++];
1844
+ W = M.l * 8;
1845
1845
  continue;
1846
1846
  }
1847
- U = Ce(R, U, +(W + q == j.length) + 2);
1847
+ W = Ce(M, W, +(X + q == K.length) + 2);
1848
1848
  for (var ee = 0; q-- > 0; ) {
1849
- var J = j[W];
1849
+ var J = K[X];
1850
1850
  ee = (ee << 5 ^ J) & 32767;
1851
1851
  var Q = -1, oe = 0;
1852
- if ((Q = Y[ee]) && (Q |= W & -32768, Q > W && (Q -= 32768), Q < W))
1853
- for (; j[Q + oe] == j[W + oe] && oe < 250; ) ++oe;
1852
+ if ((Q = Y[ee]) && (Q |= X & -32768, Q > X && (Q -= 32768), Q < X))
1853
+ for (; K[Q + oe] == K[X + oe] && oe < 250; ) ++oe;
1854
1854
  if (oe > 2) {
1855
- J = y[oe], J <= 22 ? U = Ie(R, U, Z[J + 1] >> 1) - 1 : (Ie(R, U, 3), U += 5, Ie(R, U, Z[J - 23] >> 5), U += 3);
1855
+ J = y[oe], J <= 22 ? W = Be(M, W, Z[J + 1] >> 1) - 1 : (Be(M, W, 3), W += 5, Be(M, W, Z[J - 23] >> 5), W += 3);
1856
1856
  var _e = J < 8 ? 0 : J - 4 >> 2;
1857
- _e > 0 && ($e(R, U, oe - K[J]), U += _e), J = v[W - Q], U = Ie(R, U, Z[J] >> 3), U -= 3;
1857
+ _e > 0 && ($e(M, W, oe - j[J]), W += _e), J = v[X - Q], W = Be(M, W, Z[J] >> 3), W -= 3;
1858
1858
  var pe = J < 4 ? 0 : J - 2 >> 1;
1859
- pe > 0 && ($e(R, U, W - Q - se[J]), U += pe);
1859
+ pe > 0 && ($e(M, W, X - Q - se[J]), W += pe);
1860
1860
  for (var we = 0; we < oe; ++we)
1861
- Y[ee] = W & 32767, ee = (ee << 5 ^ j[W]) & 32767, ++W;
1861
+ Y[ee] = X & 32767, ee = (ee << 5 ^ K[X]) & 32767, ++X;
1862
1862
  q -= oe - 1;
1863
1863
  } else
1864
- J <= 143 ? J = J + 48 : U = Fe(R, U, 1), U = Ie(R, U, Z[J]), Y[ee] = W & 32767, ++W;
1864
+ J <= 143 ? J = J + 48 : W = Fe(M, W, 1), W = Be(M, W, Z[J]), Y[ee] = X & 32767, ++X;
1865
1865
  }
1866
- U = Ie(R, U, 0) - 1;
1866
+ W = Be(M, W, 0) - 1;
1867
1867
  }
1868
- return R.l = (U + 7) / 8 | 0, R.l;
1868
+ return M.l = (W + 7) / 8 | 0, M.l;
1869
1869
  }
1870
- return function(R, U) {
1871
- return R.length < 8 ? T(R, U) : V(R, U);
1870
+ return function(M, W) {
1871
+ return M.length < 8 ? T(M, W) : U(M, W);
1872
1872
  };
1873
1873
  }();
1874
1874
  function We(x) {
1875
1875
  var v = new_buf(50 + Math.floor(x.length * 1.1)), g = qe(x, v);
1876
1876
  return v.slice(0, g);
1877
1877
  }
1878
- var Xe = ie ? new Uint16Array(32768) : Te(32768), He = ie ? new Uint16Array(32768) : Te(32768), Ge = ie ? new Uint16Array(128) : Te(128), ze = 1, je = 1;
1878
+ var Xe = ie ? new Uint16Array(32768) : Te(32768), He = ie ? new Uint16Array(32768) : Te(32768), Ge = ie ? new Uint16Array(128) : Te(128), ze = 1, Ke = 1;
1879
1879
  function Ze(x, v) {
1880
1880
  var g = me(x, v) + 257;
1881
1881
  v += 5;
@@ -1883,20 +1883,20 @@ var CRC32 = /* @__PURE__ */ function() {
1883
1883
  v += 5;
1884
1884
  var y = Se(x, v) + 4;
1885
1885
  v += 4;
1886
- for (var T = 0, V = ie ? new Uint8Array(19) : Te(19), j = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], R = 1, U = ie ? new Uint8Array(8) : Te(8), W = ie ? new Uint8Array(8) : Te(8), Y = V.length, q = 0; q < y; ++q)
1887
- V[D[q]] = T = ue(x, v), R < T && (R = T), U[T]++, v += 3;
1886
+ for (var T = 0, U = ie ? new Uint8Array(19) : Te(19), K = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], M = 1, W = ie ? new Uint8Array(8) : Te(8), X = ie ? new Uint8Array(8) : Te(8), Y = U.length, q = 0; q < y; ++q)
1887
+ U[I[q]] = T = ue(x, v), M < T && (M = T), W[T]++, v += 3;
1888
1888
  var ee = 0;
1889
- for (U[0] = 0, q = 1; q <= R; ++q) W[q] = ee = ee + U[q - 1] << 1;
1890
- for (q = 0; q < Y; ++q) (ee = V[q]) != 0 && (j[q] = W[ee]++);
1889
+ for (W[0] = 0, q = 1; q <= M; ++q) X[q] = ee = ee + W[q - 1] << 1;
1890
+ for (q = 0; q < Y; ++q) (ee = U[q]) != 0 && (K[q] = X[ee]++);
1891
1891
  var J = 0;
1892
1892
  for (q = 0; q < Y; ++q)
1893
- if (J = V[q], J != 0) {
1894
- ee = Z[j[q]] >> 8 - J;
1893
+ if (J = U[q], J != 0) {
1894
+ ee = Z[K[q]] >> 8 - J;
1895
1895
  for (var Q = (1 << 7 - J) - 1; Q >= 0; --Q) Ge[ee | Q << J] = J & 7 | q << 3;
1896
1896
  }
1897
1897
  var oe = [];
1898
- for (R = 1; oe.length < g + w; )
1899
- switch (ee = Ge[re(x, v)], v += ee & 7, ee >>>= 3) {
1898
+ for (M = 1; oe.length < g + w; )
1899
+ switch (ee = Ge[ae(x, v)], v += ee & 7, ee >>>= 3) {
1900
1900
  case 16:
1901
1901
  for (T = 3 + Ee(x, v), v += 2, ee = oe[oe.length - 1]; T-- > 0; ) oe.push(ee);
1902
1902
  break;
@@ -1904,51 +1904,51 @@ var CRC32 = /* @__PURE__ */ function() {
1904
1904
  for (T = 3 + ue(x, v), v += 3; T-- > 0; ) oe.push(0);
1905
1905
  break;
1906
1906
  case 18:
1907
- for (T = 11 + re(x, v), v += 7; T-- > 0; ) oe.push(0);
1907
+ for (T = 11 + ae(x, v), v += 7; T-- > 0; ) oe.push(0);
1908
1908
  break;
1909
1909
  default:
1910
- oe.push(ee), R < ee && (R = ee);
1910
+ oe.push(ee), M < ee && (M = ee);
1911
1911
  break;
1912
1912
  }
1913
1913
  var _e = oe.slice(0, g), pe = oe.slice(g);
1914
1914
  for (q = g; q < 286; ++q) _e[q] = 0;
1915
1915
  for (q = w; q < 30; ++q) pe[q] = 0;
1916
- return ze = Pe(_e, Xe, 286), je = Pe(pe, He, 30), v;
1916
+ return ze = Pe(_e, Xe, 286), Ke = Pe(pe, He, 30), v;
1917
1917
  }
1918
1918
  function Qe(x, v) {
1919
1919
  if (x[0] == 3 && !(x[1] & 3))
1920
1920
  return [new_raw_buf(v), 2];
1921
- for (var g = 0, w = 0, y = new_unsafe_buf(v || 1 << 18), T = 0, V = y.length >>> 0, j = 0, R = 0; !(w & 1); ) {
1921
+ for (var g = 0, w = 0, y = new_unsafe_buf(v || 1 << 18), T = 0, U = y.length >>> 0, K = 0, M = 0; !(w & 1); ) {
1922
1922
  if (w = ue(x, g), g += 3, w >>> 1)
1923
- w >> 1 == 1 ? (j = 9, R = 5) : (g = Ze(x, g), j = ze, R = je);
1923
+ w >> 1 == 1 ? (K = 9, M = 5) : (g = Ze(x, g), K = ze, M = Ke);
1924
1924
  else {
1925
1925
  g & 7 && (g += 8 - (g & 7));
1926
- var U = x[g >>> 3] | x[(g >>> 3) + 1] << 8;
1927
- if (g += 32, U > 0)
1928
- for (!v && V < T + U && (y = Oe(y, T + U), V = y.length); U-- > 0; )
1926
+ var W = x[g >>> 3] | x[(g >>> 3) + 1] << 8;
1927
+ if (g += 32, W > 0)
1928
+ for (!v && U < T + W && (y = Oe(y, T + W), U = y.length); W-- > 0; )
1929
1929
  y[T++] = x[g >>> 3], g += 8;
1930
1930
  continue;
1931
1931
  }
1932
1932
  for (; ; ) {
1933
- !v && V < T + 32767 && (y = Oe(y, T + 32767), V = y.length);
1934
- var W = ye(x, g, j), Y = w >>> 1 == 1 ? Re[W] : Xe[W];
1933
+ !v && U < T + 32767 && (y = Oe(y, T + 32767), U = y.length);
1934
+ var X = ye(x, g, K), Y = w >>> 1 == 1 ? Re[X] : Xe[X];
1935
1935
  if (g += Y & 15, Y >>>= 4, !(Y >>> 8 & 255)) y[T++] = Y;
1936
1936
  else {
1937
1937
  if (Y == 256) break;
1938
1938
  Y -= 257;
1939
1939
  var q = Y < 8 ? 0 : Y - 4 >> 2;
1940
1940
  q > 5 && (q = 0);
1941
- var ee = T + K[Y];
1942
- q > 0 && (ee += ye(x, g, q), g += q), W = ye(x, g, R), Y = w >>> 1 == 1 ? Me[W] : He[W], g += Y & 15, Y >>>= 4;
1941
+ var ee = T + j[Y];
1942
+ q > 0 && (ee += ye(x, g, q), g += q), X = ye(x, g, M), Y = w >>> 1 == 1 ? Me[X] : He[X], g += Y & 15, Y >>>= 4;
1943
1943
  var J = Y < 4 ? 0 : Y - 2 >> 1, Q = se[Y];
1944
- for (J > 0 && (Q += ye(x, g, J), g += J), !v && V < ee && (y = Oe(y, ee + 100), V = y.length); T < ee; )
1944
+ for (J > 0 && (Q += ye(x, g, J), g += J), !v && U < ee && (y = Oe(y, ee + 100), U = y.length); T < ee; )
1945
1945
  y[T] = y[T - Q], ++T;
1946
1946
  }
1947
1947
  }
1948
1948
  }
1949
1949
  return v ? [y, g + 7 >>> 3] : [y.slice(0, T), g + 7 >>> 3];
1950
1950
  }
1951
- function Ke(x, v) {
1951
+ function je(x, v) {
1952
1952
  var g = x.slice(x.l || 0), w = Qe(g, v);
1953
1953
  return x.l += w[1], w[0];
1954
1954
  }
@@ -1968,14 +1968,14 @@ var CRC32 = /* @__PURE__ */ function() {
1968
1968
  FullPaths: y
1969
1969
  };
1970
1970
  A(T, { root: v.root });
1971
- for (var V = g.length - 4; (g[V] != 80 || g[V + 1] != 75 || g[V + 2] != 5 || g[V + 3] != 6) && V >= 0; ) --V;
1972
- g.l = V + 4, g.l += 4;
1973
- var j = g.read_shift(2);
1971
+ for (var U = g.length - 4; (g[U] != 80 || g[U + 1] != 75 || g[U + 2] != 5 || g[U + 3] != 6) && U >= 0; ) --U;
1972
+ g.l = U + 4, g.l += 4;
1973
+ var K = g.read_shift(2);
1974
1974
  g.l += 6;
1975
- var R = g.read_shift(4);
1976
- for (g.l = R, V = 0; V < j; ++V) {
1975
+ var M = g.read_shift(4);
1976
+ for (g.l = M, U = 0; U < K; ++U) {
1977
1977
  g.l += 20;
1978
- var U = g.read_shift(4), W = g.read_shift(4), Y = g.read_shift(2), q = g.read_shift(2), ee = g.read_shift(2);
1978
+ var W = g.read_shift(4), X = g.read_shift(4), Y = g.read_shift(2), q = g.read_shift(2), ee = g.read_shift(2);
1979
1979
  g.l += 8;
1980
1980
  var J = g.read_shift(4), Q = l(
1981
1981
  /*::(*/
@@ -1984,61 +1984,61 @@ var CRC32 = /* @__PURE__ */ function() {
1984
1984
  );
1985
1985
  g.l += Y + q + ee;
1986
1986
  var oe = g.l;
1987
- g.l = J + 4, et(g, U, W, T, Q), g.l = oe;
1987
+ g.l = J + 4, et(g, W, X, T, Q), g.l = oe;
1988
1988
  }
1989
1989
  return T;
1990
1990
  }
1991
1991
  function et(x, v, g, w, y) {
1992
1992
  x.l += 2;
1993
- var T = x.read_shift(2), V = x.read_shift(2), j = s(x);
1993
+ var T = x.read_shift(2), U = x.read_shift(2), K = s(x);
1994
1994
  if (T & 8257) throw new Error("Unsupported ZIP encryption");
1995
- for (var R = x.read_shift(4), U = x.read_shift(4), W = x.read_shift(4), Y = x.read_shift(2), q = x.read_shift(2), ee = "", J = 0; J < Y; ++J) ee += String.fromCharCode(x[x.l++]);
1995
+ for (var M = x.read_shift(4), W = x.read_shift(4), X = x.read_shift(4), Y = x.read_shift(2), q = x.read_shift(2), ee = "", J = 0; J < Y; ++J) ee += String.fromCharCode(x[x.l++]);
1996
1996
  if (q) {
1997
1997
  var Q = l(
1998
1998
  /*::(*/
1999
1999
  x.slice(x.l, x.l + q)
2000
2000
  /*:: :any)*/
2001
2001
  );
2002
- (Q[21589] || {}).mt && (j = Q[21589].mt), ((y || {})[21589] || {}).mt && (j = y[21589].mt);
2002
+ (Q[21589] || {}).mt && (K = Q[21589].mt), ((y || {})[21589] || {}).mt && (K = y[21589].mt);
2003
2003
  }
2004
2004
  x.l += q;
2005
- var oe = x.slice(x.l, x.l + U);
2006
- switch (V) {
2005
+ var oe = x.slice(x.l, x.l + W);
2006
+ switch (U) {
2007
2007
  case 8:
2008
- oe = M(x, W);
2008
+ oe = V(x, X);
2009
2009
  break;
2010
2010
  case 0:
2011
2011
  break;
2012
2012
  // TODO: scan for magic number
2013
2013
  default:
2014
- throw new Error("Unsupported ZIP Compression method " + V);
2014
+ throw new Error("Unsupported ZIP Compression method " + U);
2015
2015
  }
2016
2016
  var _e = !1;
2017
- T & 8 && (R = x.read_shift(4), R == 134695760 && (R = x.read_shift(4), _e = !0), U = x.read_shift(4), W = x.read_shift(4)), U != v && Ye(_e, "Bad compressed size: " + v + " != " + U), W != g && Ye(_e, "Bad uncompressed size: " + g + " != " + W), Ve(w, ee, oe, { unsafe: !0, mt: j });
2017
+ T & 8 && (M = x.read_shift(4), M == 134695760 && (M = x.read_shift(4), _e = !0), W = x.read_shift(4), X = x.read_shift(4)), W != v && Ye(_e, "Bad compressed size: " + v + " != " + W), X != g && Ye(_e, "Bad uncompressed size: " + g + " != " + X), Ve(w, ee, oe, { unsafe: !0, mt: K });
2018
2018
  }
2019
2019
  function tt(x, v) {
2020
- var g = v || {}, w = [], y = [], T = new_buf(1), V = g.compression ? 8 : 0, j = 0, R = 0, U = 0, W = 0, Y = 0, q = x.FullPaths[0], ee = q, J = x.FileIndex[0], Q = [], oe = 0;
2021
- for (R = 1; R < x.FullPaths.length; ++R)
2022
- if (ee = x.FullPaths[R].slice(q.length), J = x.FileIndex[R], !(!J.size || !J.content || ee == "Sh33tJ5")) {
2023
- var _e = W, pe = new_buf(ee.length);
2024
- for (U = 0; U < ee.length; ++U) pe.write_shift(1, ee.charCodeAt(U) & 127);
2020
+ var g = v || {}, w = [], y = [], T = new_buf(1), U = g.compression ? 8 : 0, K = 0, M = 0, W = 0, X = 0, Y = 0, q = x.FullPaths[0], ee = q, J = x.FileIndex[0], Q = [], oe = 0;
2021
+ for (M = 1; M < x.FullPaths.length; ++M)
2022
+ if (ee = x.FullPaths[M].slice(q.length), J = x.FileIndex[M], !(!J.size || !J.content || ee == "Sh33tJ5")) {
2023
+ var _e = X, pe = new_buf(ee.length);
2024
+ for (W = 0; W < ee.length; ++W) pe.write_shift(1, ee.charCodeAt(W) & 127);
2025
2025
  pe = pe.slice(0, pe.l), Q[Y] = CRC32.buf(
2026
2026
  /*::((*/
2027
2027
  J.content,
2028
2028
  0
2029
2029
  );
2030
2030
  var we = J.content;
2031
- V == 8 && (we = P(we)), T = new_buf(30), T.write_shift(4, 67324752), T.write_shift(2, 20), T.write_shift(2, j), T.write_shift(2, V), J.mt ? i(T, J.mt) : T.write_shift(4, 0), T.write_shift(-4, Q[Y]), T.write_shift(4, we.length), T.write_shift(
2031
+ U == 8 && (we = P(we)), T = new_buf(30), T.write_shift(4, 67324752), T.write_shift(2, 20), T.write_shift(2, K), T.write_shift(2, U), J.mt ? i(T, J.mt) : T.write_shift(4, 0), T.write_shift(-4, Q[Y]), T.write_shift(4, we.length), T.write_shift(
2032
2032
  4,
2033
2033
  /*::(*/
2034
2034
  J.content.length
2035
- ), T.write_shift(2, pe.length), T.write_shift(2, 0), W += T.length, w.push(T), W += pe.length, w.push(pe), W += we.length, w.push(we), T = new_buf(46), T.write_shift(4, 33639248), T.write_shift(2, 0), T.write_shift(2, 20), T.write_shift(2, j), T.write_shift(2, V), T.write_shift(4, 0), T.write_shift(-4, Q[Y]), T.write_shift(4, we.length), T.write_shift(
2035
+ ), T.write_shift(2, pe.length), T.write_shift(2, 0), X += T.length, w.push(T), X += pe.length, w.push(pe), X += we.length, w.push(we), T = new_buf(46), T.write_shift(4, 33639248), T.write_shift(2, 0), T.write_shift(2, 20), T.write_shift(2, K), T.write_shift(2, U), T.write_shift(4, 0), T.write_shift(-4, Q[Y]), T.write_shift(4, we.length), T.write_shift(
2036
2036
  4,
2037
2037
  /*::(*/
2038
2038
  J.content.length
2039
2039
  ), T.write_shift(2, pe.length), T.write_shift(2, 0), T.write_shift(2, 0), T.write_shift(2, 0), T.write_shift(2, 0), T.write_shift(4, 0), T.write_shift(4, _e), oe += T.l, y.push(T), oe += pe.length, y.push(pe), ++Y;
2040
2040
  }
2041
- return T = new_buf(22), T.write_shift(4, 101010256), T.write_shift(2, 0), T.write_shift(2, 0), T.write_shift(2, Y), T.write_shift(2, Y), T.write_shift(4, oe), T.write_shift(4, W), T.write_shift(2, 0), bconcat([bconcat(w), bconcat(y), T]);
2041
+ return T = new_buf(22), T.write_shift(4, 101010256), T.write_shift(2, 0), T.write_shift(2, 0), T.write_shift(2, Y), T.write_shift(2, Y), T.write_shift(4, oe), T.write_shift(4, X), T.write_shift(2, 0), bconcat([bconcat(w), bconcat(y), T]);
2042
2042
  }
2043
2043
  var be = {
2044
2044
  htm: "text/html",
@@ -2062,9 +2062,9 @@ var CRC32 = /* @__PURE__ */ function() {
2062
2062
  `;
2063
2063
  }
2064
2064
  function nt(x) {
2065
- var v = x.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g, function(U) {
2066
- var W = U.charCodeAt(0).toString(16).toUpperCase();
2067
- return "=" + (W.length == 1 ? "0" + W : W);
2065
+ var v = x.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g, function(W) {
2066
+ var X = W.charCodeAt(0).toString(16).toUpperCase();
2067
+ return "=" + (X.length == 1 ? "0" + X : X);
2068
2068
  });
2069
2069
  v = v.replace(/ $/mg, "=20").replace(/\t$/mg, "=09"), v.charAt(0) == `
2070
2070
  ` && (v = "=0D" + v.slice(1)), v = v.replace(/\r(?!\n)/mg, "=0D").replace(/\n\n/mg, `
@@ -2076,9 +2076,9 @@ var CRC32 = /* @__PURE__ */ function() {
2076
2076
  g.push("");
2077
2077
  continue;
2078
2078
  }
2079
- for (var V = 0; V < T.length; ) {
2080
- var j = 76, R = T.slice(V, V + j);
2081
- R.charAt(j - 1) == "=" ? j-- : R.charAt(j - 2) == "=" ? j -= 2 : R.charAt(j - 3) == "=" && (j -= 3), R = T.slice(V, V + j), V += j, V < T.length && (R += "="), g.push(R);
2079
+ for (var U = 0; U < T.length; ) {
2080
+ var K = 76, M = T.slice(U, U + K);
2081
+ M.charAt(K - 1) == "=" ? K-- : M.charAt(K - 2) == "=" ? K -= 2 : M.charAt(K - 3) == "=" && (K -= 3), M = T.slice(U, U + K), U += K, U < T.length && (M += "="), g.push(M);
2082
2082
  }
2083
2083
  }
2084
2084
  return g.join(`\r
@@ -2096,34 +2096,34 @@ var CRC32 = /* @__PURE__ */ function() {
2096
2096
  `));
2097
2097
  }
2098
2098
  function st(x, v, g) {
2099
- for (var w = "", y = "", T = "", V, j = 0; j < 10; ++j) {
2100
- var R = v[j];
2101
- if (!R || R.match(/^\s*$/)) break;
2102
- var U = R.match(/^(.*?):\s*([^\s].*)$/);
2103
- if (U) switch (U[1].toLowerCase()) {
2099
+ for (var w = "", y = "", T = "", U, K = 0; K < 10; ++K) {
2100
+ var M = v[K];
2101
+ if (!M || M.match(/^\s*$/)) break;
2102
+ var W = M.match(/^(.*?):\s*([^\s].*)$/);
2103
+ if (W) switch (W[1].toLowerCase()) {
2104
2104
  case "content-location":
2105
- w = U[2].trim();
2105
+ w = W[2].trim();
2106
2106
  break;
2107
2107
  case "content-type":
2108
- T = U[2].trim();
2108
+ T = W[2].trim();
2109
2109
  break;
2110
2110
  case "content-transfer-encoding":
2111
- y = U[2].trim();
2111
+ y = W[2].trim();
2112
2112
  break;
2113
2113
  }
2114
2114
  }
2115
- switch (++j, y.toLowerCase()) {
2115
+ switch (++K, y.toLowerCase()) {
2116
2116
  case "base64":
2117
- V = s2a(Base64_decode(v.slice(j).join("")));
2117
+ U = s2a(Base64_decode(v.slice(K).join("")));
2118
2118
  break;
2119
2119
  case "quoted-printable":
2120
- V = it(v.slice(j));
2120
+ U = it(v.slice(K));
2121
2121
  break;
2122
2122
  default:
2123
2123
  throw new Error("Unsupported Content-Transfer-Encoding " + y);
2124
2124
  }
2125
- var W = Ve(x, w.slice(g.length), V, { unsafe: !0 });
2126
- T && (W.ctype = T);
2125
+ var X = Ve(x, w.slice(g.length), U, { unsafe: !0 });
2126
+ T && (X.ctype = T);
2127
2127
  }
2128
2128
  function lt(x, v) {
2129
2129
  if (he(x.slice(0, 13)).toLowerCase() != "mime-version:") throw new Error("Unsupported MAD header");
@@ -2133,19 +2133,19 @@ var CRC32 = /* @__PURE__ */ function() {
2133
2133
  if (T = w[y], !!/^Content-Location:/i.test(T) && (T = T.slice(T.indexOf("file")), g || (g = T.slice(0, T.lastIndexOf("/") + 1)), T.slice(0, g.length) != g))
2134
2134
  for (; g.length > 0 && (g = g.slice(0, g.length - 1), g = g.slice(0, g.lastIndexOf("/") + 1), T.slice(0, g.length) != g); )
2135
2135
  ;
2136
- var V = (w[1] || "").match(/boundary="(.*?)"/);
2137
- if (!V) throw new Error("MAD cannot find boundary");
2138
- var j = "--" + (V[1] || ""), R = [], U = [], W = {
2139
- FileIndex: R,
2140
- FullPaths: U
2136
+ var U = (w[1] || "").match(/boundary="(.*?)"/);
2137
+ if (!U) throw new Error("MAD cannot find boundary");
2138
+ var K = "--" + (U[1] || ""), M = [], W = [], X = {
2139
+ FileIndex: M,
2140
+ FullPaths: W
2141
2141
  };
2142
- A(W);
2142
+ A(X);
2143
2143
  var Y, q = 0;
2144
2144
  for (y = 0; y < w.length; ++y) {
2145
2145
  var ee = w[y];
2146
- ee !== j && ee !== j + "--" || (q++ && st(W, w.slice(Y, y), g), Y = y);
2146
+ ee !== K && ee !== K + "--" || (q++ && st(X, w.slice(Y, y), g), Y = y);
2147
2147
  }
2148
- return W;
2148
+ return X;
2149
2149
  }
2150
2150
  function ot(x, v) {
2151
2151
  var g = v || {}, w = g.boundary || "SheetJS";
@@ -2156,16 +2156,16 @@ var CRC32 = /* @__PURE__ */ function() {
2156
2156
  "",
2157
2157
  "",
2158
2158
  ""
2159
- ], T = x.FullPaths[0], V = T, j = x.FileIndex[0], R = 1; R < x.FullPaths.length; ++R)
2160
- if (V = x.FullPaths[R].slice(T.length), j = x.FileIndex[R], !(!j.size || !j.content || V == "Sh33tJ5")) {
2161
- V = V.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g, function(oe) {
2159
+ ], T = x.FullPaths[0], U = T, K = x.FileIndex[0], M = 1; M < x.FullPaths.length; ++M)
2160
+ if (U = x.FullPaths[M].slice(T.length), K = x.FileIndex[M], !(!K.size || !K.content || U == "Sh33tJ5")) {
2161
+ U = U.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g, function(oe) {
2162
2162
  return "_x" + oe.charCodeAt(0).toString(16) + "_";
2163
2163
  }).replace(/[\u0080-\uFFFF]/g, function(oe) {
2164
2164
  return "_u" + oe.charCodeAt(0).toString(16) + "_";
2165
2165
  });
2166
- for (var U = j.content, W = has_buf && Buffer.isBuffer(U) ? U.toString("binary") : he(U), Y = 0, q = Math.min(1024, W.length), ee = 0, J = 0; J <= q; ++J) (ee = W.charCodeAt(J)) >= 32 && ee < 128 && ++Y;
2166
+ for (var W = K.content, X = has_buf && Buffer.isBuffer(W) ? W.toString("binary") : he(W), Y = 0, q = Math.min(1024, X.length), ee = 0, J = 0; J <= q; ++J) (ee = X.charCodeAt(J)) >= 32 && ee < 128 && ++Y;
2167
2167
  var Q = Y >= q * 4 / 5;
2168
- y.push(w), y.push("Content-Location: " + (g.root || "file:///C:/SheetJS/") + V), y.push("Content-Transfer-Encoding: " + (Q ? "quoted-printable" : "base64")), y.push("Content-Type: " + rt(j, V)), y.push(""), y.push(Q ? nt(W) : at(W));
2168
+ y.push(w), y.push("Content-Location: " + (g.root || "file:///C:/SheetJS/") + U), y.push("Content-Transfer-Encoding: " + (Q ? "quoted-printable" : "base64")), y.push("Content-Type: " + rt(K, U)), y.push(""), y.push(Q ? nt(X) : at(X));
2169
2169
  }
2170
2170
  return y.push(w + `--\r
2171
2171
  `), y.join(`\r
@@ -2180,8 +2180,8 @@ var CRC32 = /* @__PURE__ */ function() {
2180
2180
  y || A(x);
2181
2181
  var T = !y && CFB.find(x, v);
2182
2182
  if (!T) {
2183
- var V = x.FullPaths[0];
2184
- v.slice(0, V.length) == V ? V = v : (V.slice(-1) != "/" && (V += "/"), V = (V + v).replace("//", "/")), T = { name: n(v), type: 2 }, x.FileIndex.push(T), x.FullPaths.push(V), y || CFB.utils.cfb_gc(x);
2183
+ var U = x.FullPaths[0];
2184
+ v.slice(0, U.length) == U ? U = v : (U.slice(-1) != "/" && (U += "/"), U = (U + v).replace("//", "/")), T = { name: n(v), type: 2 }, x.FileIndex.push(T), x.FullPaths.push(U), y || CFB.utils.cfb_gc(x);
2185
2185
  }
2186
2186
  return T.content = g, T.size = g ? g.length : 0, w && (w.CLSID && (T.clsid = w.CLSID), w.mt && (T.mt = w.mt), w.ct && (T.ct = w.ct)), T;
2187
2187
  }
@@ -2206,7 +2206,7 @@ var CRC32 = /* @__PURE__ */ function() {
2206
2206
  function dt(x) {
2207
2207
  S(x, !0);
2208
2208
  }
2209
- return r.find = F, r.read = z, r.parse = c, r.write = ve, r.writeFile = xe, r.utils = {
2209
+ return r.find = D, r.read = z, r.parse = c, r.write = ve, r.writeFile = xe, r.utils = {
2210
2210
  cfb_new: ft,
2211
2211
  cfb_add: Ve,
2212
2212
  cfb_del: ct,
@@ -2218,8 +2218,8 @@ var CRC32 = /* @__PURE__ */ function() {
2218
2218
  bconcat,
2219
2219
  use_zlib: N,
2220
2220
  _deflateRaw: We,
2221
- _inflateRaw: Ke,
2222
- consts: te
2221
+ _inflateRaw: je,
2222
+ consts: re
2223
2223
  }, r;
2224
2224
  }();
2225
2225
  function blobify(e) {
@@ -4489,10 +4489,10 @@ var DBF = /* @__PURE__ */ function() {
4489
4489
  }
4490
4490
  var u = 0, _ = 521;
4491
4491
  p == 2 && (u = c.read_shift(2)), c.l += 3, p != 2 && (u = c.read_shift(4)), u > 1048576 && (u = 1e6), p != 2 && (_ = c.read_shift(2));
4492
- var C = c.read_shift(2), I = o.codepage || 1252;
4493
- p != 2 && (c.l += 16, c.read_shift(1), c[c.l] !== 0 && (I = e[c[c.l]]), c.l += 1, c.l += 2), m && (c.l += 36);
4492
+ var C = c.read_shift(2), B = o.codepage || 1252;
4493
+ p != 2 && (c.l += 16, c.read_shift(1), c[c.l] !== 0 && (B = e[c[c.l]]), c.l += 1, c.l += 2), m && (c.l += 36);
4494
4494
  for (var k = [], b = {}, G = Math.min(c.length, p == 2 ? 521 : _ - 10 - (d ? 264 : 0)), z = m ? 32 : 11; c.l < G && c[c.l] != 13; )
4495
- switch (b = {}, b.name = $cptable.utils.decode(I, c.slice(c.l, c.l + z)).replace(/[\u0000\r\n].*$/g, ""), c.l += z, b.type = String.fromCharCode(c.read_shift(1)), p != 2 && !m && (b.offset = c.read_shift(4)), b.len = c.read_shift(1), p == 2 && (b.offset = c.read_shift(2)), b.dec = c.read_shift(1), b.name.length && k.push(b), p != 2 && (c.l += m ? 13 : 14), b.type) {
4495
+ switch (b = {}, b.name = $cptable.utils.decode(B, c.slice(c.l, c.l + z)).replace(/[\u0000\r\n].*$/g, ""), c.l += z, b.type = String.fromCharCode(c.read_shift(1)), p != 2 && !m && (b.offset = c.read_shift(4)), b.len = c.read_shift(1), p == 2 && (b.offset = c.read_shift(2)), b.dec = c.read_shift(1), b.name.length && k.push(b), p != 2 && (c.l += m ? 13 : 14), b.type) {
4496
4496
  case "B":
4497
4497
  (!d || b.len != 8) && o.WTF && console.log("Skipping " + b.name + ":" + b.type);
4498
4498
  break;
@@ -4532,40 +4532,40 @@ var DBF = /* @__PURE__ */ function() {
4532
4532
  }
4533
4533
  if (c[c.l] !== 13 && (c.l = _ - 1), c.read_shift(1) !== 13) throw new Error("DBF Terminator not found " + c.l + " " + c[c.l]);
4534
4534
  c.l = _;
4535
- var A = 0, X = 0;
4536
- for (f[0] = [], X = 0; X != k.length; ++X) f[0][X] = k[X].name;
4535
+ var A = 0, H = 0;
4536
+ for (f[0] = [], H = 0; H != k.length; ++H) f[0][H] = k[H].name;
4537
4537
  for (; u-- > 0; ) {
4538
4538
  if (c[c.l] === 42) {
4539
4539
  c.l += C;
4540
4540
  continue;
4541
4541
  }
4542
- for (++c.l, f[++A] = [], X = 0, X = 0; X != k.length; ++X) {
4543
- var S = c.slice(c.l, c.l + k[X].len);
4544
- c.l += k[X].len, prep_blob(S, 0);
4545
- var O = $cptable.utils.decode(I, S);
4546
- switch (k[X].type) {
4542
+ for (++c.l, f[++A] = [], H = 0, H = 0; H != k.length; ++H) {
4543
+ var S = c.slice(c.l, c.l + k[H].len);
4544
+ c.l += k[H].len, prep_blob(S, 0);
4545
+ var O = $cptable.utils.decode(B, S);
4546
+ switch (k[H].type) {
4547
4547
  case "C":
4548
- O.trim().length && (f[A][X] = O.replace(/\s+$/, ""));
4548
+ O.trim().length && (f[A][H] = O.replace(/\s+$/, ""));
4549
4549
  break;
4550
4550
  case "D":
4551
- O.length === 8 ? f[A][X] = new Date(+O.slice(0, 4), +O.slice(4, 6) - 1, +O.slice(6, 8)) : f[A][X] = O;
4551
+ O.length === 8 ? f[A][H] = new Date(+O.slice(0, 4), +O.slice(4, 6) - 1, +O.slice(6, 8)) : f[A][H] = O;
4552
4552
  break;
4553
4553
  case "F":
4554
- f[A][X] = parseFloat(O.trim());
4554
+ f[A][H] = parseFloat(O.trim());
4555
4555
  break;
4556
4556
  case "+":
4557
4557
  case "I":
4558
- f[A][X] = m ? S.read_shift(-4, "i") ^ 2147483648 : S.read_shift(4, "i");
4558
+ f[A][H] = m ? S.read_shift(-4, "i") ^ 2147483648 : S.read_shift(4, "i");
4559
4559
  break;
4560
4560
  case "L":
4561
4561
  switch (O.trim().toUpperCase()) {
4562
4562
  case "Y":
4563
4563
  case "T":
4564
- f[A][X] = !0;
4564
+ f[A][H] = !0;
4565
4565
  break;
4566
4566
  case "N":
4567
4567
  case "F":
4568
- f[A][X] = !1;
4568
+ f[A][H] = !1;
4569
4569
  break;
4570
4570
  case "":
4571
4571
  case "?":
@@ -4576,38 +4576,38 @@ var DBF = /* @__PURE__ */ function() {
4576
4576
  break;
4577
4577
  case "M":
4578
4578
  if (!h) throw new Error("DBF Unexpected MEMO for type " + p.toString(16));
4579
- f[A][X] = "##MEMO##" + (m ? parseInt(O.trim(), 10) : S.read_shift(4));
4579
+ f[A][H] = "##MEMO##" + (m ? parseInt(O.trim(), 10) : S.read_shift(4));
4580
4580
  break;
4581
4581
  case "N":
4582
- O = O.replace(/\u0000/g, "").trim(), O && O != "." && (f[A][X] = +O || 0);
4582
+ O = O.replace(/\u0000/g, "").trim(), O && O != "." && (f[A][H] = +O || 0);
4583
4583
  break;
4584
4584
  case "@":
4585
- f[A][X] = new Date(S.read_shift(-8, "f") - 621356832e5);
4585
+ f[A][H] = new Date(S.read_shift(-8, "f") - 621356832e5);
4586
4586
  break;
4587
4587
  case "T":
4588
- f[A][X] = new Date((S.read_shift(4) - 2440588) * 864e5 + S.read_shift(4));
4588
+ f[A][H] = new Date((S.read_shift(4) - 2440588) * 864e5 + S.read_shift(4));
4589
4589
  break;
4590
4590
  case "Y":
4591
- f[A][X] = S.read_shift(4, "i") / 1e4 + S.read_shift(4, "i") / 1e4 * Math.pow(2, 32);
4591
+ f[A][H] = S.read_shift(4, "i") / 1e4 + S.read_shift(4, "i") / 1e4 * Math.pow(2, 32);
4592
4592
  break;
4593
4593
  case "O":
4594
- f[A][X] = -S.read_shift(-8, "f");
4594
+ f[A][H] = -S.read_shift(-8, "f");
4595
4595
  break;
4596
4596
  case "B":
4597
- if (d && k[X].len == 8) {
4598
- f[A][X] = S.read_shift(8, "f");
4597
+ if (d && k[H].len == 8) {
4598
+ f[A][H] = S.read_shift(8, "f");
4599
4599
  break;
4600
4600
  }
4601
4601
  /* falls through */
4602
4602
  case "G":
4603
4603
  case "P":
4604
- S.l += k[X].len;
4604
+ S.l += k[H].len;
4605
4605
  break;
4606
4606
  case "0":
4607
- if (k[X].name === "_NullFlags") break;
4607
+ if (k[H].name === "_NullFlags") break;
4608
4608
  /* falls through */
4609
4609
  default:
4610
- throw new Error("DBF Unsupported data type " + k[X].type);
4610
+ throw new Error("DBF Unsupported data type " + k[H].type);
4611
4611
  }
4612
4612
  }
4613
4613
  }
@@ -4637,7 +4637,7 @@ var DBF = /* @__PURE__ */ function() {
4637
4637
  function s(l, o) {
4638
4638
  var f = o || {};
4639
4639
  if (+f.codepage >= 0 && set_cp(+f.codepage), f.type == "string") throw new Error("Cannot write DBF to JS string");
4640
- var c = buf_array(), p = sheet_to_json(l, { header: 1, raw: !0, cellDates: !0 }), h = p[0], d = p.slice(1), m = l["!cols"] || [], u = 0, _ = 0, C = 0, I = 1;
4640
+ var c = buf_array(), p = sheet_to_json(l, { header: 1, raw: !0, cellDates: !0 }), h = p[0], d = p.slice(1), m = l["!cols"] || [], u = 0, _ = 0, C = 0, B = 1;
4641
4641
  for (u = 0; u < h.length; ++u) {
4642
4642
  if (((m[u] || {}).DBF || {}).name) {
4643
4643
  h[u] = m[u].DBF.name, ++C;
@@ -4656,7 +4656,7 @@ var DBF = /* @__PURE__ */ function() {
4656
4656
  }
4657
4657
  var k = safe_decode_range(l["!ref"]), b = [], G = [], z = [];
4658
4658
  for (u = 0; u <= k.e.c - k.s.c; ++u) {
4659
- var A = "", X = "", S = 0, O = [];
4659
+ var A = "", H = "", S = 0, O = [];
4660
4660
  for (_ = 0; _ < d.length; ++_)
4661
4661
  d[_][u] != null && O.push(d[_][u]);
4662
4662
  if (O.length == 0 || h[u] == null) {
@@ -4667,39 +4667,39 @@ var DBF = /* @__PURE__ */ function() {
4667
4667
  switch (typeof O[_]) {
4668
4668
  /* TODO: check if L2 compat is desired */
4669
4669
  case "number":
4670
- X = "B";
4670
+ H = "B";
4671
4671
  break;
4672
4672
  case "string":
4673
- X = "C";
4673
+ H = "C";
4674
4674
  break;
4675
4675
  case "boolean":
4676
- X = "L";
4676
+ H = "L";
4677
4677
  break;
4678
4678
  case "object":
4679
- X = O[_] instanceof Date ? "D" : "C";
4679
+ H = O[_] instanceof Date ? "D" : "C";
4680
4680
  break;
4681
4681
  default:
4682
- X = "C";
4682
+ H = "C";
4683
4683
  }
4684
- S = Math.max(S, String(O[_]).length), A = A && A != X ? "C" : X;
4684
+ S = Math.max(S, String(O[_]).length), A = A && A != H ? "C" : H;
4685
4685
  }
4686
- S > 250 && (S = 250), X = ((m[u] || {}).DBF || {}).type, X == "C" && m[u].DBF.len > S && (S = m[u].DBF.len), A == "B" && X == "N" && (A = "N", z[u] = m[u].DBF.dec, S = m[u].DBF.len), G[u] = A == "C" || X == "N" ? S : i[A] || 0, I += G[u], b[u] = A;
4686
+ S > 250 && (S = 250), H = ((m[u] || {}).DBF || {}).type, H == "C" && m[u].DBF.len > S && (S = m[u].DBF.len), A == "B" && H == "N" && (A = "N", z[u] = m[u].DBF.dec, S = m[u].DBF.len), G[u] = A == "C" || H == "N" ? S : i[A] || 0, B += G[u], b[u] = A;
4687
4687
  }
4688
- var F = c.next(32);
4689
- for (F.write_shift(4, 318902576), F.write_shift(4, d.length), F.write_shift(2, 296 + 32 * C), F.write_shift(2, I), u = 0; u < 4; ++u) F.write_shift(4, 0);
4690
- for (F.write_shift(4, 0 | (+r[
4688
+ var D = c.next(32);
4689
+ for (D.write_shift(4, 318902576), D.write_shift(4, d.length), D.write_shift(2, 296 + 32 * C), D.write_shift(2, B), u = 0; u < 4; ++u) D.write_shift(4, 0);
4690
+ for (D.write_shift(4, 0 | (+r[
4691
4691
  /*::String(*/
4692
4692
  current_ansi
4693
4693
  /*::)*/
4694
4694
  ] || 3) << 8), u = 0, _ = 0; u < h.length; ++u)
4695
4695
  if (h[u] != null) {
4696
- var B = c.next(32), H = (h[u].slice(-10) + "\0\0\0\0\0\0\0\0\0\0\0").slice(0, 11);
4697
- B.write_shift(1, H, "sbcs"), B.write_shift(1, b[u] == "?" ? "C" : b[u], "sbcs"), B.write_shift(4, _), B.write_shift(1, G[u] || i[b[u]] || 0), B.write_shift(1, z[u] || 0), B.write_shift(1, 2), B.write_shift(4, 0), B.write_shift(1, 0), B.write_shift(4, 0), B.write_shift(4, 0), _ += G[u] || i[b[u]] || 0;
4696
+ var F = c.next(32), R = (h[u].slice(-10) + "\0\0\0\0\0\0\0\0\0\0\0").slice(0, 11);
4697
+ F.write_shift(1, R, "sbcs"), F.write_shift(1, b[u] == "?" ? "C" : b[u], "sbcs"), F.write_shift(4, _), F.write_shift(1, G[u] || i[b[u]] || 0), F.write_shift(1, z[u] || 0), F.write_shift(1, 2), F.write_shift(4, 0), F.write_shift(1, 0), F.write_shift(4, 0), F.write_shift(4, 0), _ += G[u] || i[b[u]] || 0;
4698
4698
  }
4699
- var ae = c.next(264);
4700
- for (ae.write_shift(4, 13), u = 0; u < 65; ++u) ae.write_shift(4, 0);
4699
+ var te = c.next(264);
4700
+ for (te.write_shift(4, 13), u = 0; u < 65; ++u) te.write_shift(4, 0);
4701
4701
  for (u = 0; u < d.length; ++u) {
4702
- var ne = c.next(I);
4702
+ var ne = c.next(B);
4703
4703
  for (ne.write_shift(1, 0), _ = 0; _ < h.length; ++_)
4704
4704
  if (h[_] != null)
4705
4705
  switch (b[_]) {
@@ -4718,8 +4718,8 @@ var DBF = /* @__PURE__ */ function() {
4718
4718
  d[u][_] ? (ne.write_shift(4, ("0000" + d[u][_].getFullYear()).slice(-4), "sbcs"), ne.write_shift(2, ("00" + (d[u][_].getMonth() + 1)).slice(-2), "sbcs"), ne.write_shift(2, ("00" + d[u][_].getDate()).slice(-2), "sbcs")) : ne.write_shift(8, "00000000", "sbcs");
4719
4719
  break;
4720
4720
  case "C":
4721
- var te = String(d[u][_] != null ? d[u][_] : "").slice(0, G[_]);
4722
- for (ne.write_shift(1, te, "sbcs"), C = 0; C < G[_] - te.length; ++C) ne.write_shift(1, 32);
4721
+ var re = String(d[u][_] != null ? d[u][_] : "").slice(0, G[_]);
4722
+ for (ne.write_shift(1, re, "sbcs"), C = 0; C < G[_] - re.length; ++C) ne.write_shift(1, 32);
4723
4723
  break;
4724
4724
  }
4725
4725
  }
@@ -4848,13 +4848,13 @@ var DBF = /* @__PURE__ */ function() {
4848
4848
  throw new Error("Unrecognized type " + d.type);
4849
4849
  }
4850
4850
  function i(h, d) {
4851
- var m = h.split(/[\n\r]+/), u = -1, _ = -1, C = 0, I = 0, k = [], b = [], G = null, z = {}, A = [], X = [], S = [], O = 0, F;
4851
+ var m = h.split(/[\n\r]+/), u = -1, _ = -1, C = 0, B = 0, k = [], b = [], G = null, z = {}, A = [], H = [], S = [], O = 0, D;
4852
4852
  for (+d.codepage >= 0 && set_cp(+d.codepage); C !== m.length; ++C) {
4853
4853
  O = 0;
4854
- var B = m[C].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g, a).replace(r, t), H = B.replace(/;;/g, "\0").split(";").map(function(D) {
4855
- return D.replace(/\u0000/g, ";");
4856
- }), ae = H[0], ne;
4857
- if (B.length > 0) switch (ae) {
4854
+ var F = m[C].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g, a).replace(r, t), R = F.replace(/;;/g, "\0").split(";").map(function(I) {
4855
+ return I.replace(/\u0000/g, ";");
4856
+ }), te = R[0], ne;
4857
+ if (F.length > 0) switch (te) {
4858
4858
  case "ID":
4859
4859
  break;
4860
4860
  /* header */
@@ -4871,26 +4871,26 @@ var DBF = /* @__PURE__ */ function() {
4871
4871
  break;
4872
4872
  /* window? */
4873
4873
  case "P":
4874
- H[1].charAt(0) == "P" && b.push(B.slice(3).replace(/;;/g, ";"));
4874
+ R[1].charAt(0) == "P" && b.push(F.slice(3).replace(/;;/g, ";"));
4875
4875
  break;
4876
4876
  case "C":
4877
- var ce = !1, te = !1, xe = !1, he = !1, ve = -1, ge = -1;
4878
- for (I = 1; I < H.length; ++I) switch (H[I].charAt(0)) {
4877
+ var ce = !1, re = !1, xe = !1, he = !1, ve = -1, ge = -1;
4878
+ for (B = 1; B < R.length; ++B) switch (R[B].charAt(0)) {
4879
4879
  case "A":
4880
4880
  break;
4881
4881
  // TODO: comment
4882
4882
  case "X":
4883
- _ = parseInt(H[I].slice(1)) - 1, te = !0;
4883
+ _ = parseInt(R[B].slice(1)) - 1, re = !0;
4884
4884
  break;
4885
4885
  case "Y":
4886
- for (u = parseInt(H[I].slice(1)) - 1, te || (_ = 0), F = k.length; F <= u; ++F) k[F] = [];
4886
+ for (u = parseInt(R[B].slice(1)) - 1, re || (_ = 0), D = k.length; D <= u; ++D) k[D] = [];
4887
4887
  break;
4888
4888
  case "K":
4889
- ne = H[I].slice(1), ne.charAt(0) === '"' ? ne = ne.slice(1, ne.length - 1) : ne === "TRUE" ? ne = !0 : ne === "FALSE" ? ne = !1 : isNaN(fuzzynum(ne)) ? isNaN(fuzzydate(ne).getDate()) || (ne = parseDate(ne)) : (ne = fuzzynum(ne), G !== null && fmt_is_date(G) && (ne = numdate(ne))), ce = !0;
4889
+ ne = R[B].slice(1), ne.charAt(0) === '"' ? ne = ne.slice(1, ne.length - 1) : ne === "TRUE" ? ne = !0 : ne === "FALSE" ? ne = !1 : isNaN(fuzzynum(ne)) ? isNaN(fuzzydate(ne).getDate()) || (ne = parseDate(ne)) : (ne = fuzzynum(ne), G !== null && fmt_is_date(G) && (ne = numdate(ne))), ce = !0;
4890
4890
  break;
4891
4891
  case "E":
4892
4892
  he = !0;
4893
- var N = rc_to_a1(H[I].slice(1), { r: u, c: _ });
4893
+ var N = rc_to_a1(R[B].slice(1), { r: u, c: _ });
4894
4894
  k[u][_] = [k[u][_], N];
4895
4895
  break;
4896
4896
  case "S":
@@ -4900,32 +4900,32 @@ var DBF = /* @__PURE__ */ function() {
4900
4900
  break;
4901
4901
  // unknown
4902
4902
  case "R":
4903
- ve = parseInt(H[I].slice(1)) - 1;
4903
+ ve = parseInt(R[B].slice(1)) - 1;
4904
4904
  break;
4905
4905
  case "C":
4906
- ge = parseInt(H[I].slice(1)) - 1;
4906
+ ge = parseInt(R[B].slice(1)) - 1;
4907
4907
  break;
4908
4908
  default:
4909
- if (d && d.WTF) throw new Error("SYLK bad record " + B);
4909
+ if (d && d.WTF) throw new Error("SYLK bad record " + F);
4910
4910
  }
4911
4911
  if (ce && (k[u][_] && k[u][_].length == 2 ? k[u][_][0] = ne : k[u][_] = ne, G = null), xe) {
4912
4912
  if (he) throw new Error("SYLK shared formula cannot have own formula");
4913
- var M = ve > -1 && k[ve][ge];
4914
- if (!M || !M[1]) throw new Error("SYLK shared formula cannot find base");
4915
- k[u][_][1] = shift_formula_str(M[1], { r: u - ve, c: _ - ge });
4913
+ var V = ve > -1 && k[ve][ge];
4914
+ if (!V || !V[1]) throw new Error("SYLK shared formula cannot find base");
4915
+ k[u][_][1] = shift_formula_str(V[1], { r: u - ve, c: _ - ge });
4916
4916
  }
4917
4917
  break;
4918
4918
  case "F":
4919
4919
  var P = 0;
4920
- for (I = 1; I < H.length; ++I) switch (H[I].charAt(0)) {
4920
+ for (B = 1; B < R.length; ++B) switch (R[B].charAt(0)) {
4921
4921
  case "X":
4922
- _ = parseInt(H[I].slice(1)) - 1, ++P;
4922
+ _ = parseInt(R[B].slice(1)) - 1, ++P;
4923
4923
  break;
4924
4924
  case "Y":
4925
- for (u = parseInt(H[I].slice(1)) - 1, F = k.length; F <= u; ++F) k[F] = [];
4925
+ for (u = parseInt(R[B].slice(1)) - 1, D = k.length; D <= u; ++D) k[D] = [];
4926
4926
  break;
4927
4927
  case "M":
4928
- O = parseInt(H[I].slice(1)) / 20;
4928
+ O = parseInt(R[B].slice(1)) / 20;
4929
4929
  break;
4930
4930
  case "F":
4931
4931
  break;
@@ -4934,7 +4934,7 @@ var DBF = /* @__PURE__ */ function() {
4934
4934
  break;
4935
4935
  /* hide grid */
4936
4936
  case "P":
4937
- G = b[parseInt(H[I].slice(1))];
4937
+ G = b[parseInt(R[B].slice(1))];
4938
4938
  break;
4939
4939
  case "S":
4940
4940
  break;
@@ -4946,30 +4946,30 @@ var DBF = /* @__PURE__ */ function() {
4946
4946
  break;
4947
4947
  /* font */
4948
4948
  case "W":
4949
- for (S = H[I].slice(1).split(" "), F = parseInt(S[0], 10); F <= parseInt(S[1], 10); ++F)
4950
- O = parseInt(S[2], 10), X[F - 1] = O === 0 ? { hidden: !0 } : { wch: O }, process_col(X[F - 1]);
4949
+ for (S = R[B].slice(1).split(" "), D = parseInt(S[0], 10); D <= parseInt(S[1], 10); ++D)
4950
+ O = parseInt(S[2], 10), H[D - 1] = O === 0 ? { hidden: !0 } : { wch: O }, process_col(H[D - 1]);
4951
4951
  break;
4952
4952
  case "C":
4953
- _ = parseInt(H[I].slice(1)) - 1, X[_] || (X[_] = {});
4953
+ _ = parseInt(R[B].slice(1)) - 1, H[_] || (H[_] = {});
4954
4954
  break;
4955
4955
  case "R":
4956
- u = parseInt(H[I].slice(1)) - 1, A[u] || (A[u] = {}), O > 0 ? (A[u].hpt = O, A[u].hpx = pt2px(O)) : O === 0 && (A[u].hidden = !0);
4956
+ u = parseInt(R[B].slice(1)) - 1, A[u] || (A[u] = {}), O > 0 ? (A[u].hpt = O, A[u].hpx = pt2px(O)) : O === 0 && (A[u].hidden = !0);
4957
4957
  break;
4958
4958
  default:
4959
- if (d && d.WTF) throw new Error("SYLK bad record " + B);
4959
+ if (d && d.WTF) throw new Error("SYLK bad record " + F);
4960
4960
  }
4961
4961
  P < 1 && (G = null);
4962
4962
  break;
4963
4963
  default:
4964
- if (d && d.WTF) throw new Error("SYLK bad record " + B);
4964
+ if (d && d.WTF) throw new Error("SYLK bad record " + F);
4965
4965
  }
4966
4966
  }
4967
- return A.length > 0 && (z["!rows"] = A), X.length > 0 && (z["!cols"] = X), d && d.sheetRows && (k = k.slice(0, d.sheetRows)), [k, z];
4967
+ return A.length > 0 && (z["!rows"] = A), H.length > 0 && (z["!cols"] = H), d && d.sheetRows && (k = k.slice(0, d.sheetRows)), [k, z];
4968
4968
  }
4969
4969
  function s(h, d) {
4970
4970
  var m = n(h, d), u = m[0], _ = m[1], C = aoa_to_sheet(u, d);
4971
- return keys(_).forEach(function(I) {
4972
- C[I] = _[I];
4971
+ return keys(_).forEach(function(B) {
4972
+ C[B] = _[B];
4973
4973
  }), C;
4974
4974
  }
4975
4975
  function l(h, d) {
@@ -5009,13 +5009,13 @@ var DBF = /* @__PURE__ */ function() {
5009
5009
  });
5010
5010
  }
5011
5011
  function p(h, d) {
5012
- var m = ["ID;PWXL;N;E"], u = [], _ = safe_decode_range(h["!ref"]), C, I = Array.isArray(h), k = `\r
5012
+ var m = ["ID;PWXL;N;E"], u = [], _ = safe_decode_range(h["!ref"]), C, B = Array.isArray(h), k = `\r
5013
5013
  `;
5014
5014
  m.push("P;PGeneral"), m.push("F;P0;DG0G8;M255"), h["!cols"] && f(m, h["!cols"]), h["!rows"] && c(m, h["!rows"]), m.push("B;Y" + (_.e.r - _.s.r + 1) + ";X" + (_.e.c - _.s.c + 1) + ";D" + [_.s.c, _.s.r, _.e.c, _.e.r].join(" "));
5015
5015
  for (var b = _.s.r; b <= _.e.r; ++b)
5016
5016
  for (var G = _.s.c; G <= _.e.c; ++G) {
5017
5017
  var z = encode_cell({ r: b, c: G });
5018
- C = I ? (h[b] || [])[G] : h[z], !(!C || C.v == null && (!C.f || C.F)) && u.push(o(C, h, b, G));
5018
+ C = B ? (h[b] || [])[G] : h[z], !(!C || C.v == null && (!C.f || C.F)) && u.push(o(C, h, b, G));
5019
5019
  }
5020
5020
  return m.join(k) + k + u.join(k) + k + "E" + k;
5021
5021
  }
@@ -5113,8 +5113,8 @@ var DBF = /* @__PURE__ */ function() {
5113
5113
  }
5114
5114
  s(f, -1, 0, "EOD");
5115
5115
  var C = `\r
5116
- `, I = f.join(C);
5117
- return I;
5116
+ `, B = f.join(C);
5117
+ return B;
5118
5118
  };
5119
5119
  }();
5120
5120
  return {
@@ -5133,30 +5133,30 @@ var DBF = /* @__PURE__ */ function() {
5133
5133
  function t(p, h) {
5134
5134
  for (var d = p.split(`
5135
5135
  `), m = -1, u = -1, _ = 0, C = []; _ !== d.length; ++_) {
5136
- var I = d[_].trim().split(":");
5137
- if (I[0] === "cell") {
5138
- var k = decode_cell(I[1]);
5136
+ var B = d[_].trim().split(":");
5137
+ if (B[0] === "cell") {
5138
+ var k = decode_cell(B[1]);
5139
5139
  if (C.length <= k.r) for (m = C.length; m <= k.r; ++m) C[m] || (C[m] = []);
5140
- switch (m = k.r, u = k.c, I[2]) {
5140
+ switch (m = k.r, u = k.c, B[2]) {
5141
5141
  case "t":
5142
- C[m][u] = e(I[3]);
5142
+ C[m][u] = e(B[3]);
5143
5143
  break;
5144
5144
  case "v":
5145
- C[m][u] = +I[3];
5145
+ C[m][u] = +B[3];
5146
5146
  break;
5147
5147
  case "vtf":
5148
- var b = I[I.length - 1];
5148
+ var b = B[B.length - 1];
5149
5149
  /* falls through */
5150
5150
  case "vtc":
5151
- switch (I[3]) {
5151
+ switch (B[3]) {
5152
5152
  case "nl":
5153
- C[m][u] = !!+I[4];
5153
+ C[m][u] = !!+B[4];
5154
5154
  break;
5155
5155
  default:
5156
- C[m][u] = +I[4];
5156
+ C[m][u] = +B[4];
5157
5157
  break;
5158
5158
  }
5159
- I[2] == "vtf" && (C[m][u] = [C[m][u], b]);
5159
+ B[2] == "vtf" && (C[m][u] = [C[m][u], b]);
5160
5160
  }
5161
5161
  }
5162
5162
  }
@@ -5185,9 +5185,9 @@ var DBF = /* @__PURE__ */ function() {
5185
5185
  `), o = "--SocialCalcSpreadsheetControlSave--";
5186
5186
  function f(p) {
5187
5187
  if (!p || !p["!ref"]) return "";
5188
- for (var h = [], d = [], m, u = "", _ = decode_range(p["!ref"]), C = Array.isArray(p), I = _.s.r; I <= _.e.r; ++I)
5188
+ for (var h = [], d = [], m, u = "", _ = decode_range(p["!ref"]), C = Array.isArray(p), B = _.s.r; B <= _.e.r; ++B)
5189
5189
  for (var k = _.s.c; k <= _.e.c; ++k)
5190
- if (u = encode_cell({ r: I, c: k }), m = C ? (p[I] || [])[k] : p[u], !(!m || m.v == null || m.t === "z")) {
5190
+ if (u = encode_cell({ r: B, c: k }), m = C ? (p[B] || [])[k] : p[u], !(!m || m.v == null || m.t === "z")) {
5191
5191
  switch (d = ["cell", u, "t"], m.t) {
5192
5192
  case "s":
5193
5193
  case "str":
@@ -5228,13 +5228,13 @@ var DBF = /* @__PURE__ */ function() {
5228
5228
  var h = p || {}, d = [];
5229
5229
  if (!c || c.length === 0) return d;
5230
5230
  for (var m = c.split(/[\r\n]/), u = m.length - 1; u >= 0 && m[u].length === 0; ) --u;
5231
- for (var _ = 10, C = 0, I = 0; I <= u; ++I)
5232
- C = m[I].indexOf(" "), C == -1 ? C = m[I].length : C++, _ = Math.max(_, C);
5233
- for (I = 0; I <= u; ++I) {
5234
- d[I] = [];
5231
+ for (var _ = 10, C = 0, B = 0; B <= u; ++B)
5232
+ C = m[B].indexOf(" "), C == -1 ? C = m[B].length : C++, _ = Math.max(_, C);
5233
+ for (B = 0; B <= u; ++B) {
5234
+ d[B] = [];
5235
5235
  var k = 0;
5236
- for (e(m[I].slice(0, _).trim(), d, I, k, h), k = 1; k <= (m[I].length - _) / 10 + 1; ++k)
5237
- e(m[I].slice(_ + (k - 1) * 10, _ + k * 10).trim(), d, I, k, h);
5236
+ for (e(m[B].slice(0, _).trim(), d, B, k, h), k = 1; k <= (m[B].length - _) / 10 + 1; ++k)
5237
+ e(m[B].slice(_ + (k - 1) * 10, _ + k * 10).trim(), d, B, k, h);
5238
5238
  }
5239
5239
  return h.sheetRows && (d = d.slice(0, h.sheetRows)), d;
5240
5240
  }
@@ -5273,37 +5273,37 @@ var DBF = /* @__PURE__ */ function() {
5273
5273
  function i(c, p) {
5274
5274
  var h = p || {}, d = "", m = h.dense ? [] : {}, u = { s: { c: 0, r: 0 }, e: { c: 0, r: 0 } };
5275
5275
  c.slice(0, 4) == "sep=" ? c.charCodeAt(5) == 13 && c.charCodeAt(6) == 10 ? (d = c.charAt(4), c = c.slice(7)) : c.charCodeAt(5) == 13 || c.charCodeAt(5) == 10 ? (d = c.charAt(4), c = c.slice(6)) : d = n(c.slice(0, 1024)) : h && h.FS ? d = h.FS : d = n(c.slice(0, 1024));
5276
- var _ = 0, C = 0, I = 0, k = 0, b = 0, G = d.charCodeAt(0), z = !1, A = 0, X = c.charCodeAt(0);
5276
+ var _ = 0, C = 0, B = 0, k = 0, b = 0, G = d.charCodeAt(0), z = !1, A = 0, H = c.charCodeAt(0);
5277
5277
  c = c.replace(/\r\n/mg, `
5278
5278
  `);
5279
5279
  var S = h.dateNF != null ? dateNF_regex(h.dateNF) : null;
5280
5280
  function O() {
5281
- var F = c.slice(k, b), B = {};
5282
- if (F.charAt(0) == '"' && F.charAt(F.length - 1) == '"' && (F = F.slice(1, -1).replace(/""/g, '"')), F.length === 0) B.t = "z";
5281
+ var D = c.slice(k, b), F = {};
5282
+ if (D.charAt(0) == '"' && D.charAt(D.length - 1) == '"' && (D = D.slice(1, -1).replace(/""/g, '"')), D.length === 0) F.t = "z";
5283
5283
  else if (h.raw)
5284
- B.t = "s", B.v = F;
5285
- else if (F.trim().length === 0)
5286
- B.t = "s", B.v = F;
5287
- else if (F.charCodeAt(0) == 61)
5288
- F.charCodeAt(1) == 34 && F.charCodeAt(F.length - 1) == 34 ? (B.t = "s", B.v = F.slice(2, -1).replace(/""/g, '"')) : fuzzyfmla(F) ? (B.t = "n", B.f = F.slice(1)) : (B.t = "s", B.v = F);
5289
- else if (F == "TRUE")
5290
- B.t = "b", B.v = !0;
5291
- else if (F == "FALSE")
5292
- B.t = "b", B.v = !1;
5293
- else if (!isNaN(I = fuzzynum(F)))
5294
- B.t = "n", h.cellText !== !1 && (B.w = F), B.v = I;
5295
- else if (!isNaN(fuzzydate(F).getDate()) || S && F.match(S)) {
5296
- B.z = h.dateNF || table_fmt[14];
5297
- var H = 0;
5298
- S && F.match(S) && (F = dateNF_fix(F, h.dateNF, F.match(S) || []), H = 1), h.cellDates ? (B.t = "d", B.v = parseDate(F, H)) : (B.t = "n", B.v = datenum(parseDate(F, H))), h.cellText !== !1 && (B.w = SSF_format(B.z, B.v instanceof Date ? datenum(B.v) : B.v)), h.cellNF || delete B.z;
5284
+ F.t = "s", F.v = D;
5285
+ else if (D.trim().length === 0)
5286
+ F.t = "s", F.v = D;
5287
+ else if (D.charCodeAt(0) == 61)
5288
+ D.charCodeAt(1) == 34 && D.charCodeAt(D.length - 1) == 34 ? (F.t = "s", F.v = D.slice(2, -1).replace(/""/g, '"')) : fuzzyfmla(D) ? (F.t = "n", F.f = D.slice(1)) : (F.t = "s", F.v = D);
5289
+ else if (D == "TRUE")
5290
+ F.t = "b", F.v = !0;
5291
+ else if (D == "FALSE")
5292
+ F.t = "b", F.v = !1;
5293
+ else if (!isNaN(B = fuzzynum(D)))
5294
+ F.t = "n", h.cellText !== !1 && (F.w = D), F.v = B;
5295
+ else if (!isNaN(fuzzydate(D).getDate()) || S && D.match(S)) {
5296
+ F.z = h.dateNF || table_fmt[14];
5297
+ var R = 0;
5298
+ S && D.match(S) && (D = dateNF_fix(D, h.dateNF, D.match(S) || []), R = 1), h.cellDates ? (F.t = "d", F.v = parseDate(D, R)) : (F.t = "n", F.v = datenum(parseDate(D, R))), h.cellText !== !1 && (F.w = SSF_format(F.z, F.v instanceof Date ? datenum(F.v) : F.v)), h.cellNF || delete F.z;
5299
5299
  } else
5300
- B.t = "s", B.v = F;
5301
- if (B.t == "z" || (h.dense ? (m[_] || (m[_] = []), m[_][C] = B) : m[encode_cell({ c: C, r: _ })] = B), k = b + 1, X = c.charCodeAt(k), u.e.c < C && (u.e.c = C), u.e.r < _ && (u.e.r = _), A == G) ++C;
5300
+ F.t = "s", F.v = D;
5301
+ if (F.t == "z" || (h.dense ? (m[_] || (m[_] = []), m[_][C] = F) : m[encode_cell({ c: C, r: _ })] = F), k = b + 1, H = c.charCodeAt(k), u.e.c < C && (u.e.c = C), u.e.r < _ && (u.e.r = _), A == G) ++C;
5302
5302
  else if (C = 0, ++_, h.sheetRows && h.sheetRows <= _) return !0;
5303
5303
  }
5304
5304
  e: for (; b < c.length; ++b) switch (A = c.charCodeAt(b)) {
5305
5305
  case 34:
5306
- X === 34 && (z = !z);
5306
+ H === 34 && (z = !z);
5307
5307
  break;
5308
5308
  case G:
5309
5309
  case 10:
@@ -5345,8 +5345,8 @@ var DBF = /* @__PURE__ */ function() {
5345
5345
  function f(c) {
5346
5346
  for (var p = [], h = safe_decode_range(c["!ref"]), d, m = Array.isArray(c), u = h.s.r; u <= h.e.r; ++u) {
5347
5347
  for (var _ = [], C = h.s.c; C <= h.e.c; ++C) {
5348
- var I = encode_cell({ r: u, c: C });
5349
- if (d = m ? (c[u] || [])[C] : c[I], !d || d.v == null) {
5348
+ var B = encode_cell({ r: u, c: C });
5349
+ if (d = m ? (c[u] || [])[C] : c[B], !d || d.v == null) {
5350
5350
  _.push(" ");
5351
5351
  continue;
5352
5352
  }
@@ -5364,79 +5364,79 @@ var DBF = /* @__PURE__ */ function() {
5364
5364
  from_sheet: f
5365
5365
  };
5366
5366
  }(), WK_ = /* @__PURE__ */ function() {
5367
- function e(N, M, P) {
5367
+ function e(N, V, P) {
5368
5368
  if (N) {
5369
5369
  prep_blob(N, N.l || 0);
5370
- for (var D = P.Enum || ve; N.l < N.length; ) {
5371
- var K = N.read_shift(2), se = D[K] || D[65535], le = N.read_shift(2), ie = N.l + le, Z = se.f && se.f(N, le, P);
5372
- if (N.l = ie, M(Z, se, K)) return;
5370
+ for (var I = P.Enum || ve; N.l < N.length; ) {
5371
+ var j = N.read_shift(2), se = I[j] || I[65535], le = N.read_shift(2), ie = N.l + le, Z = se.f && se.f(N, le, P);
5372
+ if (N.l = ie, V(Z, se, j)) return;
5373
5373
  }
5374
5374
  }
5375
5375
  }
5376
- function r(N, M) {
5377
- switch (M.type) {
5376
+ function r(N, V) {
5377
+ switch (V.type) {
5378
5378
  case "base64":
5379
- return t(s2a(Base64_decode(N)), M);
5379
+ return t(s2a(Base64_decode(N)), V);
5380
5380
  case "binary":
5381
- return t(s2a(N), M);
5381
+ return t(s2a(N), V);
5382
5382
  case "buffer":
5383
5383
  case "array":
5384
- return t(N, M);
5384
+ return t(N, V);
5385
5385
  }
5386
- throw "Unsupported type " + M.type;
5386
+ throw "Unsupported type " + V.type;
5387
5387
  }
5388
- function t(N, M) {
5388
+ function t(N, V) {
5389
5389
  if (!N) return N;
5390
- var P = M || {}, D = P.dense ? [] : {}, K = "Sheet1", se = "", le = 0, ie = {}, Z = [], de = [], fe = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, Ee = P.sheetRows || 0;
5390
+ var P = V || {}, I = P.dense ? [] : {}, j = "Sheet1", se = "", le = 0, ie = {}, Z = [], de = [], fe = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, Ee = P.sheetRows || 0;
5391
5391
  if (N[2] == 0 && (N[3] == 8 || N[3] == 9) && N.length >= 16 && N[14] == 5 && N[15] === 108)
5392
5392
  throw new Error("Unsupported Works 3 for Mac file");
5393
5393
  if (N[2] == 2)
5394
- P.Enum = ve, e(N, function(re, ye, Ce) {
5394
+ P.Enum = ve, e(N, function(ae, ye, Ce) {
5395
5395
  switch (Ce) {
5396
5396
  case 0:
5397
- P.vers = re, re >= 4096 && (P.qpro = !0);
5397
+ P.vers = ae, ae >= 4096 && (P.qpro = !0);
5398
5398
  break;
5399
5399
  case 6:
5400
- fe = re;
5400
+ fe = ae;
5401
5401
  break;
5402
5402
  /* RANGE */
5403
5403
  case 204:
5404
- re && (se = re);
5404
+ ae && (se = ae);
5405
5405
  break;
5406
5406
  /* SHEETNAMECS */
5407
5407
  case 222:
5408
- se = re;
5408
+ se = ae;
5409
5409
  break;
5410
5410
  /* SHEETNAMELP */
5411
5411
  case 15:
5412
5412
  /* LABEL */
5413
5413
  case 51:
5414
- P.qpro || (re[1].v = re[1].v.slice(1));
5414
+ P.qpro || (ae[1].v = ae[1].v.slice(1));
5415
5415
  /* falls through */
5416
5416
  case 13:
5417
5417
  /* INTEGER */
5418
5418
  case 14:
5419
5419
  /* NUMBER */
5420
5420
  case 16:
5421
- Ce == 14 && (re[2] & 112) == 112 && (re[2] & 15) > 1 && (re[2] & 15) < 15 && (re[1].z = P.dateNF || table_fmt[14], P.cellDates && (re[1].t = "d", re[1].v = numdate(re[1].v))), P.qpro && re[3] > le && (D["!ref"] = encode_range(fe), ie[K] = D, Z.push(K), D = P.dense ? [] : {}, fe = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, le = re[3], K = se || "Sheet" + (le + 1), se = "");
5422
- var Fe = P.dense ? (D[re[0].r] || [])[re[0].c] : D[encode_cell(re[0])];
5421
+ Ce == 14 && (ae[2] & 112) == 112 && (ae[2] & 15) > 1 && (ae[2] & 15) < 15 && (ae[1].z = P.dateNF || table_fmt[14], P.cellDates && (ae[1].t = "d", ae[1].v = numdate(ae[1].v))), P.qpro && ae[3] > le && (I["!ref"] = encode_range(fe), ie[j] = I, Z.push(j), I = P.dense ? [] : {}, fe = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, le = ae[3], j = se || "Sheet" + (le + 1), se = "");
5422
+ var Fe = P.dense ? (I[ae[0].r] || [])[ae[0].c] : I[encode_cell(ae[0])];
5423
5423
  if (Fe) {
5424
- Fe.t = re[1].t, Fe.v = re[1].v, re[1].z != null && (Fe.z = re[1].z), re[1].f != null && (Fe.f = re[1].f);
5424
+ Fe.t = ae[1].t, Fe.v = ae[1].v, ae[1].z != null && (Fe.z = ae[1].z), ae[1].f != null && (Fe.f = ae[1].f);
5425
5425
  break;
5426
5426
  }
5427
- P.dense ? (D[re[0].r] || (D[re[0].r] = []), D[re[0].r][re[0].c] = re[1]) : D[encode_cell(re[0])] = re[1];
5427
+ P.dense ? (I[ae[0].r] || (I[ae[0].r] = []), I[ae[0].r][ae[0].c] = ae[1]) : I[encode_cell(ae[0])] = ae[1];
5428
5428
  break;
5429
5429
  }
5430
5430
  }, P);
5431
5431
  else if (N[2] == 26 || N[2] == 14)
5432
- P.Enum = ge, N[2] == 14 && (P.qpro = !0, N.l = 0), e(N, function(re, ye, Ce) {
5432
+ P.Enum = ge, N[2] == 14 && (P.qpro = !0, N.l = 0), e(N, function(ae, ye, Ce) {
5433
5433
  switch (Ce) {
5434
5434
  case 204:
5435
- K = re;
5435
+ j = ae;
5436
5436
  break;
5437
5437
  /* SHEETNAMECS */
5438
5438
  case 22:
5439
- re[1].v = re[1].v.slice(1);
5439
+ ae[1].v = ae[1].v.slice(1);
5440
5440
  /* falls through */
5441
5441
  case 23:
5442
5442
  /* NUMBER17 */
@@ -5449,145 +5449,145 @@ var DBF = /* @__PURE__ */ function() {
5449
5449
  case 39:
5450
5450
  /* NUMBER27 */
5451
5451
  case 40:
5452
- if (re[3] > le && (D["!ref"] = encode_range(fe), ie[K] = D, Z.push(K), D = P.dense ? [] : {}, fe = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, le = re[3], K = "Sheet" + (le + 1)), Ee > 0 && re[0].r >= Ee) break;
5453
- P.dense ? (D[re[0].r] || (D[re[0].r] = []), D[re[0].r][re[0].c] = re[1]) : D[encode_cell(re[0])] = re[1], fe.e.c < re[0].c && (fe.e.c = re[0].c), fe.e.r < re[0].r && (fe.e.r = re[0].r);
5452
+ if (ae[3] > le && (I["!ref"] = encode_range(fe), ie[j] = I, Z.push(j), I = P.dense ? [] : {}, fe = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, le = ae[3], j = "Sheet" + (le + 1)), Ee > 0 && ae[0].r >= Ee) break;
5453
+ P.dense ? (I[ae[0].r] || (I[ae[0].r] = []), I[ae[0].r][ae[0].c] = ae[1]) : I[encode_cell(ae[0])] = ae[1], fe.e.c < ae[0].c && (fe.e.c = ae[0].c), fe.e.r < ae[0].r && (fe.e.r = ae[0].r);
5454
5454
  break;
5455
5455
  case 27:
5456
- re[14e3] && (de[re[14e3][0]] = re[14e3][1]);
5456
+ ae[14e3] && (de[ae[14e3][0]] = ae[14e3][1]);
5457
5457
  break;
5458
5458
  case 1537:
5459
- de[re[0]] = re[1], re[0] == le && (K = re[1]);
5459
+ de[ae[0]] = ae[1], ae[0] == le && (j = ae[1]);
5460
5460
  break;
5461
5461
  }
5462
5462
  }, P);
5463
5463
  else throw new Error("Unrecognized LOTUS BOF " + N[2]);
5464
- if (D["!ref"] = encode_range(fe), ie[se || K] = D, Z.push(se || K), !de.length) return { SheetNames: Z, Sheets: ie };
5464
+ if (I["!ref"] = encode_range(fe), ie[se || j] = I, Z.push(se || j), !de.length) return { SheetNames: Z, Sheets: ie };
5465
5465
  for (var ue = {}, Se = [], me = 0; me < de.length; ++me) ie[Z[me]] ? (Se.push(de[me] || Z[me]), ue[de[me]] = ie[de[me]] || ie[Z[me]]) : (Se.push(de[me]), ue[de[me]] = { "!ref": "A1" });
5466
5466
  return { SheetNames: Se, Sheets: ue };
5467
5467
  }
5468
- function a(N, M) {
5469
- var P = M || {};
5468
+ function a(N, V) {
5469
+ var P = V || {};
5470
5470
  if (+P.codepage >= 0 && set_cp(+P.codepage), P.type == "string") throw new Error("Cannot write WK1 to JS string");
5471
- var D = buf_array(), K = safe_decode_range(N["!ref"]), se = Array.isArray(N), le = [];
5472
- write_biff_rec(D, 0, i(1030)), write_biff_rec(D, 6, o(K));
5473
- for (var ie = Math.min(K.e.r, 8191), Z = K.s.r; Z <= ie; ++Z)
5474
- for (var de = encode_row(Z), fe = K.s.c; fe <= K.e.c; ++fe) {
5475
- Z === K.s.r && (le[fe] = encode_col(fe));
5471
+ var I = buf_array(), j = safe_decode_range(N["!ref"]), se = Array.isArray(N), le = [];
5472
+ write_biff_rec(I, 0, i(1030)), write_biff_rec(I, 6, o(j));
5473
+ for (var ie = Math.min(j.e.r, 8191), Z = j.s.r; Z <= ie; ++Z)
5474
+ for (var de = encode_row(Z), fe = j.s.c; fe <= j.e.c; ++fe) {
5475
+ Z === j.s.r && (le[fe] = encode_col(fe));
5476
5476
  var Ee = le[fe] + de, ue = se ? (N[Z] || [])[fe] : N[Ee];
5477
5477
  if (!(!ue || ue.t == "z"))
5478
5478
  if (ue.t == "n")
5479
- (ue.v | 0) == ue.v && ue.v >= -32768 && ue.v <= 32767 ? write_biff_rec(D, 13, d(Z, fe, ue.v)) : write_biff_rec(D, 14, u(Z, fe, ue.v));
5479
+ (ue.v | 0) == ue.v && ue.v >= -32768 && ue.v <= 32767 ? write_biff_rec(I, 13, d(Z, fe, ue.v)) : write_biff_rec(I, 14, u(Z, fe, ue.v));
5480
5480
  else {
5481
5481
  var Se = format_cell(ue);
5482
- write_biff_rec(D, 15, p(Z, fe, Se.slice(0, 239)));
5482
+ write_biff_rec(I, 15, p(Z, fe, Se.slice(0, 239)));
5483
5483
  }
5484
5484
  }
5485
- return write_biff_rec(D, 1), D.end();
5485
+ return write_biff_rec(I, 1), I.end();
5486
5486
  }
5487
- function n(N, M) {
5488
- var P = M || {};
5487
+ function n(N, V) {
5488
+ var P = V || {};
5489
5489
  if (+P.codepage >= 0 && set_cp(+P.codepage), P.type == "string") throw new Error("Cannot write WK3 to JS string");
5490
- var D = buf_array();
5491
- write_biff_rec(D, 0, s(N));
5492
- for (var K = 0, se = 0; K < N.SheetNames.length; ++K) (N.Sheets[N.SheetNames[K]] || {})["!ref"] && write_biff_rec(D, 27, he(N.SheetNames[K], se++));
5490
+ var I = buf_array();
5491
+ write_biff_rec(I, 0, s(N));
5492
+ for (var j = 0, se = 0; j < N.SheetNames.length; ++j) (N.Sheets[N.SheetNames[j]] || {})["!ref"] && write_biff_rec(I, 27, he(N.SheetNames[j], se++));
5493
5493
  var le = 0;
5494
- for (K = 0; K < N.SheetNames.length; ++K) {
5495
- var ie = N.Sheets[N.SheetNames[K]];
5494
+ for (j = 0; j < N.SheetNames.length; ++j) {
5495
+ var ie = N.Sheets[N.SheetNames[j]];
5496
5496
  if (!(!ie || !ie["!ref"])) {
5497
5497
  for (var Z = safe_decode_range(ie["!ref"]), de = Array.isArray(ie), fe = [], Ee = Math.min(Z.e.r, 8191), ue = Z.s.r; ue <= Ee; ++ue)
5498
5498
  for (var Se = encode_row(ue), me = Z.s.c; me <= Z.e.c; ++me) {
5499
5499
  ue === Z.s.r && (fe[me] = encode_col(me));
5500
- var re = fe[me] + Se, ye = de ? (ie[ue] || [])[me] : ie[re];
5500
+ var ae = fe[me] + Se, ye = de ? (ie[ue] || [])[me] : ie[ae];
5501
5501
  if (!(!ye || ye.t == "z"))
5502
5502
  if (ye.t == "n")
5503
- write_biff_rec(D, 23, O(ue, me, le, ye.v));
5503
+ write_biff_rec(I, 23, O(ue, me, le, ye.v));
5504
5504
  else {
5505
5505
  var Ce = format_cell(ye);
5506
- write_biff_rec(D, 22, A(ue, me, le, Ce.slice(0, 239)));
5506
+ write_biff_rec(I, 22, A(ue, me, le, Ce.slice(0, 239)));
5507
5507
  }
5508
5508
  }
5509
5509
  ++le;
5510
5510
  }
5511
5511
  }
5512
- return write_biff_rec(D, 1), D.end();
5512
+ return write_biff_rec(I, 1), I.end();
5513
5513
  }
5514
5514
  function i(N) {
5515
- var M = new_buf(2);
5516
- return M.write_shift(2, N), M;
5515
+ var V = new_buf(2);
5516
+ return V.write_shift(2, N), V;
5517
5517
  }
5518
5518
  function s(N) {
5519
- var M = new_buf(26);
5520
- M.write_shift(2, 4096), M.write_shift(2, 4), M.write_shift(4, 0);
5521
- for (var P = 0, D = 0, K = 0, se = 0; se < N.SheetNames.length; ++se) {
5519
+ var V = new_buf(26);
5520
+ V.write_shift(2, 4096), V.write_shift(2, 4), V.write_shift(4, 0);
5521
+ for (var P = 0, I = 0, j = 0, se = 0; se < N.SheetNames.length; ++se) {
5522
5522
  var le = N.SheetNames[se], ie = N.Sheets[le];
5523
5523
  if (!(!ie || !ie["!ref"])) {
5524
- ++K;
5524
+ ++j;
5525
5525
  var Z = decode_range(ie["!ref"]);
5526
- P < Z.e.r && (P = Z.e.r), D < Z.e.c && (D = Z.e.c);
5526
+ P < Z.e.r && (P = Z.e.r), I < Z.e.c && (I = Z.e.c);
5527
5527
  }
5528
5528
  }
5529
- return P > 8191 && (P = 8191), M.write_shift(2, P), M.write_shift(1, K), M.write_shift(1, D), M.write_shift(2, 0), M.write_shift(2, 0), M.write_shift(1, 1), M.write_shift(1, 2), M.write_shift(4, 0), M.write_shift(4, 0), M;
5529
+ return P > 8191 && (P = 8191), V.write_shift(2, P), V.write_shift(1, j), V.write_shift(1, I), V.write_shift(2, 0), V.write_shift(2, 0), V.write_shift(1, 1), V.write_shift(1, 2), V.write_shift(4, 0), V.write_shift(4, 0), V;
5530
5530
  }
5531
- function l(N, M, P) {
5532
- var D = { s: { c: 0, r: 0 }, e: { c: 0, r: 0 } };
5533
- return M == 8 && P.qpro ? (D.s.c = N.read_shift(1), N.l++, D.s.r = N.read_shift(2), D.e.c = N.read_shift(1), N.l++, D.e.r = N.read_shift(2), D) : (D.s.c = N.read_shift(2), D.s.r = N.read_shift(2), M == 12 && P.qpro && (N.l += 2), D.e.c = N.read_shift(2), D.e.r = N.read_shift(2), M == 12 && P.qpro && (N.l += 2), D.s.c == 65535 && (D.s.c = D.e.c = D.s.r = D.e.r = 0), D);
5531
+ function l(N, V, P) {
5532
+ var I = { s: { c: 0, r: 0 }, e: { c: 0, r: 0 } };
5533
+ return V == 8 && P.qpro ? (I.s.c = N.read_shift(1), N.l++, I.s.r = N.read_shift(2), I.e.c = N.read_shift(1), N.l++, I.e.r = N.read_shift(2), I) : (I.s.c = N.read_shift(2), I.s.r = N.read_shift(2), V == 12 && P.qpro && (N.l += 2), I.e.c = N.read_shift(2), I.e.r = N.read_shift(2), V == 12 && P.qpro && (N.l += 2), I.s.c == 65535 && (I.s.c = I.e.c = I.s.r = I.e.r = 0), I);
5534
5534
  }
5535
5535
  function o(N) {
5536
- var M = new_buf(8);
5537
- return M.write_shift(2, N.s.c), M.write_shift(2, N.s.r), M.write_shift(2, N.e.c), M.write_shift(2, N.e.r), M;
5536
+ var V = new_buf(8);
5537
+ return V.write_shift(2, N.s.c), V.write_shift(2, N.s.r), V.write_shift(2, N.e.c), V.write_shift(2, N.e.r), V;
5538
5538
  }
5539
- function f(N, M, P) {
5540
- var D = [{ c: 0, r: 0 }, { t: "n", v: 0 }, 0, 0];
5541
- return P.qpro && P.vers != 20768 ? (D[0].c = N.read_shift(1), D[3] = N.read_shift(1), D[0].r = N.read_shift(2), N.l += 2) : (D[2] = N.read_shift(1), D[0].c = N.read_shift(2), D[0].r = N.read_shift(2)), D;
5539
+ function f(N, V, P) {
5540
+ var I = [{ c: 0, r: 0 }, { t: "n", v: 0 }, 0, 0];
5541
+ return P.qpro && P.vers != 20768 ? (I[0].c = N.read_shift(1), I[3] = N.read_shift(1), I[0].r = N.read_shift(2), N.l += 2) : (I[2] = N.read_shift(1), I[0].c = N.read_shift(2), I[0].r = N.read_shift(2)), I;
5542
5542
  }
5543
- function c(N, M, P) {
5544
- var D = N.l + M, K = f(N, M, P);
5545
- if (K[1].t = "s", P.vers == 20768) {
5543
+ function c(N, V, P) {
5544
+ var I = N.l + V, j = f(N, V, P);
5545
+ if (j[1].t = "s", P.vers == 20768) {
5546
5546
  N.l++;
5547
5547
  var se = N.read_shift(1);
5548
- return K[1].v = N.read_shift(se, "utf8"), K;
5548
+ return j[1].v = N.read_shift(se, "utf8"), j;
5549
5549
  }
5550
- return P.qpro && N.l++, K[1].v = N.read_shift(D - N.l, "cstr"), K;
5551
- }
5552
- function p(N, M, P) {
5553
- var D = new_buf(7 + P.length);
5554
- D.write_shift(1, 255), D.write_shift(2, M), D.write_shift(2, N), D.write_shift(1, 39);
5555
- for (var K = 0; K < D.length; ++K) {
5556
- var se = P.charCodeAt(K);
5557
- D.write_shift(1, se >= 128 ? 95 : se);
5550
+ return P.qpro && N.l++, j[1].v = N.read_shift(I - N.l, "cstr"), j;
5551
+ }
5552
+ function p(N, V, P) {
5553
+ var I = new_buf(7 + P.length);
5554
+ I.write_shift(1, 255), I.write_shift(2, V), I.write_shift(2, N), I.write_shift(1, 39);
5555
+ for (var j = 0; j < I.length; ++j) {
5556
+ var se = P.charCodeAt(j);
5557
+ I.write_shift(1, se >= 128 ? 95 : se);
5558
5558
  }
5559
- return D.write_shift(1, 0), D;
5559
+ return I.write_shift(1, 0), I;
5560
5560
  }
5561
- function h(N, M, P) {
5562
- var D = f(N, M, P);
5563
- return D[1].v = N.read_shift(2, "i"), D;
5561
+ function h(N, V, P) {
5562
+ var I = f(N, V, P);
5563
+ return I[1].v = N.read_shift(2, "i"), I;
5564
5564
  }
5565
- function d(N, M, P) {
5566
- var D = new_buf(7);
5567
- return D.write_shift(1, 255), D.write_shift(2, M), D.write_shift(2, N), D.write_shift(2, P, "i"), D;
5565
+ function d(N, V, P) {
5566
+ var I = new_buf(7);
5567
+ return I.write_shift(1, 255), I.write_shift(2, V), I.write_shift(2, N), I.write_shift(2, P, "i"), I;
5568
5568
  }
5569
- function m(N, M, P) {
5570
- var D = f(N, M, P);
5571
- return D[1].v = N.read_shift(8, "f"), D;
5569
+ function m(N, V, P) {
5570
+ var I = f(N, V, P);
5571
+ return I[1].v = N.read_shift(8, "f"), I;
5572
5572
  }
5573
- function u(N, M, P) {
5574
- var D = new_buf(13);
5575
- return D.write_shift(1, 255), D.write_shift(2, M), D.write_shift(2, N), D.write_shift(8, P, "f"), D;
5573
+ function u(N, V, P) {
5574
+ var I = new_buf(13);
5575
+ return I.write_shift(1, 255), I.write_shift(2, V), I.write_shift(2, N), I.write_shift(8, P, "f"), I;
5576
5576
  }
5577
- function _(N, M, P) {
5578
- var D = N.l + M, K = f(N, M, P);
5579
- if (K[1].v = N.read_shift(8, "f"), P.qpro) N.l = D;
5577
+ function _(N, V, P) {
5578
+ var I = N.l + V, j = f(N, V, P);
5579
+ if (j[1].v = N.read_shift(8, "f"), P.qpro) N.l = I;
5580
5580
  else {
5581
5581
  var se = N.read_shift(2);
5582
- b(N.slice(N.l, N.l + se), K), N.l += se;
5582
+ b(N.slice(N.l, N.l + se), j), N.l += se;
5583
5583
  }
5584
- return K;
5584
+ return j;
5585
5585
  }
5586
- function C(N, M, P) {
5587
- var D = M & 32768;
5588
- return M &= -32769, M = (D ? N : 0) + (M >= 8192 ? M - 16384 : M), (D ? "" : "$") + (P ? encode_col(M) : encode_row(M));
5586
+ function C(N, V, P) {
5587
+ var I = V & 32768;
5588
+ return V &= -32769, V = (I ? N : 0) + (V >= 8192 ? V - 16384 : V), (I ? "" : "$") + (P ? encode_col(V) : encode_row(V));
5589
5589
  }
5590
- var I = {
5590
+ var B = {
5591
5591
  51: ["FALSE", 0],
5592
5592
  52: ["TRUE", 0],
5593
5593
  70: ["LEN", 1],
@@ -5635,21 +5635,21 @@ var DBF = /* @__PURE__ */ function() {
5635
5635
  ""
5636
5636
  // eslint-disable-line no-mixed-spaces-and-tabs
5637
5637
  ];
5638
- function b(N, M) {
5638
+ function b(N, V) {
5639
5639
  prep_blob(N, 0);
5640
- for (var P = [], D = 0, K = "", se = "", le = "", ie = ""; N.l < N.length; ) {
5640
+ for (var P = [], I = 0, j = "", se = "", le = "", ie = ""; N.l < N.length; ) {
5641
5641
  var Z = N[N.l++];
5642
5642
  switch (Z) {
5643
5643
  case 0:
5644
5644
  P.push(N.read_shift(8, "f"));
5645
5645
  break;
5646
5646
  case 1:
5647
- se = C(M[0].c, N.read_shift(2), !0), K = C(M[0].r, N.read_shift(2), !1), P.push(se + K);
5647
+ se = C(V[0].c, N.read_shift(2), !0), j = C(V[0].r, N.read_shift(2), !1), P.push(se + j);
5648
5648
  break;
5649
5649
  case 2:
5650
5650
  {
5651
- var de = C(M[0].c, N.read_shift(2), !0), fe = C(M[0].r, N.read_shift(2), !1);
5652
- se = C(M[0].c, N.read_shift(2), !0), K = C(M[0].r, N.read_shift(2), !1), P.push(de + fe + ":" + se + K);
5651
+ var de = C(V[0].c, N.read_shift(2), !0), fe = C(V[0].r, N.read_shift(2), !1);
5652
+ se = C(V[0].c, N.read_shift(2), !0), j = C(V[0].r, N.read_shift(2), !1), P.push(de + fe + ":" + se + j);
5653
5653
  }
5654
5654
  break;
5655
5655
  case 3:
@@ -5686,132 +5686,132 @@ var DBF = /* @__PURE__ */ function() {
5686
5686
  default:
5687
5687
  if (Z < 32 && k[Z])
5688
5688
  ie = P.pop(), le = P.pop(), P.push(le + k[Z] + ie);
5689
- else if (I[Z]) {
5690
- if (D = I[Z][1], D == 69 && (D = N[N.l++]), D > P.length) {
5689
+ else if (B[Z]) {
5690
+ if (I = B[Z][1], I == 69 && (I = N[N.l++]), I > P.length) {
5691
5691
  console.error("WK1 bad formula parse 0x" + Z.toString(16) + ":|" + P.join("|") + "|");
5692
5692
  return;
5693
5693
  }
5694
- var ue = P.slice(-D);
5695
- P.length -= D, P.push(I[Z][0] + "(" + ue.join(",") + ")");
5694
+ var ue = P.slice(-I);
5695
+ P.length -= I, P.push(B[Z][0] + "(" + ue.join(",") + ")");
5696
5696
  } else return Z <= 7 ? console.error("WK1 invalid opcode " + Z.toString(16)) : Z <= 24 ? console.error("WK1 unsupported op " + Z.toString(16)) : Z <= 30 ? console.error("WK1 invalid opcode " + Z.toString(16)) : Z <= 115 ? console.error("WK1 unsupported function opcode " + Z.toString(16)) : console.error("WK1 unrecognized opcode " + Z.toString(16));
5697
5697
  }
5698
5698
  }
5699
- P.length == 1 ? M[1].f = "" + P[0] : console.error("WK1 bad formula parse |" + P.join("|") + "|");
5699
+ P.length == 1 ? V[1].f = "" + P[0] : console.error("WK1 bad formula parse |" + P.join("|") + "|");
5700
5700
  }
5701
5701
  function G(N) {
5702
- var M = [{ c: 0, r: 0 }, { t: "n", v: 0 }, 0];
5703
- return M[0].r = N.read_shift(2), M[3] = N[N.l++], M[0].c = N[N.l++], M;
5702
+ var V = [{ c: 0, r: 0 }, { t: "n", v: 0 }, 0];
5703
+ return V[0].r = N.read_shift(2), V[3] = N[N.l++], V[0].c = N[N.l++], V;
5704
5704
  }
5705
- function z(N, M) {
5705
+ function z(N, V) {
5706
5706
  var P = G(N);
5707
- return P[1].t = "s", P[1].v = N.read_shift(M - 4, "cstr"), P;
5708
- }
5709
- function A(N, M, P, D) {
5710
- var K = new_buf(6 + D.length);
5711
- K.write_shift(2, N), K.write_shift(1, P), K.write_shift(1, M), K.write_shift(1, 39);
5712
- for (var se = 0; se < D.length; ++se) {
5713
- var le = D.charCodeAt(se);
5714
- K.write_shift(1, le >= 128 ? 95 : le);
5707
+ return P[1].t = "s", P[1].v = N.read_shift(V - 4, "cstr"), P;
5708
+ }
5709
+ function A(N, V, P, I) {
5710
+ var j = new_buf(6 + I.length);
5711
+ j.write_shift(2, N), j.write_shift(1, P), j.write_shift(1, V), j.write_shift(1, 39);
5712
+ for (var se = 0; se < I.length; ++se) {
5713
+ var le = I.charCodeAt(se);
5714
+ j.write_shift(1, le >= 128 ? 95 : le);
5715
5715
  }
5716
- return K.write_shift(1, 0), K;
5716
+ return j.write_shift(1, 0), j;
5717
5717
  }
5718
- function X(N, M) {
5718
+ function H(N, V) {
5719
5719
  var P = G(N);
5720
5720
  P[1].v = N.read_shift(2);
5721
- var D = P[1].v >> 1;
5721
+ var I = P[1].v >> 1;
5722
5722
  if (P[1].v & 1)
5723
- switch (D & 7) {
5723
+ switch (I & 7) {
5724
5724
  case 0:
5725
- D = (D >> 3) * 5e3;
5725
+ I = (I >> 3) * 5e3;
5726
5726
  break;
5727
5727
  case 1:
5728
- D = (D >> 3) * 500;
5728
+ I = (I >> 3) * 500;
5729
5729
  break;
5730
5730
  case 2:
5731
- D = (D >> 3) / 20;
5731
+ I = (I >> 3) / 20;
5732
5732
  break;
5733
5733
  case 3:
5734
- D = (D >> 3) / 200;
5734
+ I = (I >> 3) / 200;
5735
5735
  break;
5736
5736
  case 4:
5737
- D = (D >> 3) / 2e3;
5737
+ I = (I >> 3) / 2e3;
5738
5738
  break;
5739
5739
  case 5:
5740
- D = (D >> 3) / 2e4;
5740
+ I = (I >> 3) / 2e4;
5741
5741
  break;
5742
5742
  case 6:
5743
- D = (D >> 3) / 16;
5743
+ I = (I >> 3) / 16;
5744
5744
  break;
5745
5745
  case 7:
5746
- D = (D >> 3) / 64;
5746
+ I = (I >> 3) / 64;
5747
5747
  break;
5748
5748
  }
5749
- return P[1].v = D, P;
5749
+ return P[1].v = I, P;
5750
5750
  }
5751
- function S(N, M) {
5752
- var P = G(N), D = N.read_shift(4), K = N.read_shift(4), se = N.read_shift(2);
5751
+ function S(N, V) {
5752
+ var P = G(N), I = N.read_shift(4), j = N.read_shift(4), se = N.read_shift(2);
5753
5753
  if (se == 65535)
5754
- return D === 0 && K === 3221225472 ? (P[1].t = "e", P[1].v = 15) : D === 0 && K === 3489660928 ? (P[1].t = "e", P[1].v = 42) : P[1].v = 0, P;
5754
+ return I === 0 && j === 3221225472 ? (P[1].t = "e", P[1].v = 15) : I === 0 && j === 3489660928 ? (P[1].t = "e", P[1].v = 42) : P[1].v = 0, P;
5755
5755
  var le = se & 32768;
5756
- return se = (se & 32767) - 16446, P[1].v = (1 - le * 2) * (K * Math.pow(2, se + 32) + D * Math.pow(2, se)), P;
5756
+ return se = (se & 32767) - 16446, P[1].v = (1 - le * 2) * (j * Math.pow(2, se + 32) + I * Math.pow(2, se)), P;
5757
5757
  }
5758
- function O(N, M, P, D) {
5759
- var K = new_buf(14);
5760
- if (K.write_shift(2, N), K.write_shift(1, P), K.write_shift(1, M), D == 0)
5761
- return K.write_shift(4, 0), K.write_shift(4, 0), K.write_shift(2, 65535), K;
5758
+ function O(N, V, P, I) {
5759
+ var j = new_buf(14);
5760
+ if (j.write_shift(2, N), j.write_shift(1, P), j.write_shift(1, V), I == 0)
5761
+ return j.write_shift(4, 0), j.write_shift(4, 0), j.write_shift(2, 65535), j;
5762
5762
  var se = 0, le = 0, ie = 0, Z = 0;
5763
- return D < 0 && (se = 1, D = -D), le = Math.log2(D) | 0, D /= Math.pow(2, le - 31), Z = D >>> 0, Z & 2147483648 || (D /= 2, ++le, Z = D >>> 0), D -= Z, Z |= 2147483648, Z >>>= 0, D *= Math.pow(2, 32), ie = D >>> 0, K.write_shift(4, ie), K.write_shift(4, Z), le += 16383 + (se ? 32768 : 0), K.write_shift(2, le), K;
5763
+ return I < 0 && (se = 1, I = -I), le = Math.log2(I) | 0, I /= Math.pow(2, le - 31), Z = I >>> 0, Z & 2147483648 || (I /= 2, ++le, Z = I >>> 0), I -= Z, Z |= 2147483648, Z >>>= 0, I *= Math.pow(2, 32), ie = I >>> 0, j.write_shift(4, ie), j.write_shift(4, Z), le += 16383 + (se ? 32768 : 0), j.write_shift(2, le), j;
5764
5764
  }
5765
- function F(N, M) {
5765
+ function D(N, V) {
5766
5766
  var P = S(N);
5767
- return N.l += M - 14, P;
5767
+ return N.l += V - 14, P;
5768
5768
  }
5769
- function B(N, M) {
5770
- var P = G(N), D = N.read_shift(4);
5771
- return P[1].v = D >> 6, P;
5769
+ function F(N, V) {
5770
+ var P = G(N), I = N.read_shift(4);
5771
+ return P[1].v = I >> 6, P;
5772
5772
  }
5773
- function H(N, M) {
5774
- var P = G(N), D = N.read_shift(8, "f");
5775
- return P[1].v = D, P;
5773
+ function R(N, V) {
5774
+ var P = G(N), I = N.read_shift(8, "f");
5775
+ return P[1].v = I, P;
5776
5776
  }
5777
- function ae(N, M) {
5778
- var P = H(N);
5779
- return N.l += M - 10, P;
5777
+ function te(N, V) {
5778
+ var P = R(N);
5779
+ return N.l += V - 10, P;
5780
5780
  }
5781
- function ne(N, M) {
5782
- return N[N.l + M - 1] == 0 ? N.read_shift(M, "cstr") : "";
5781
+ function ne(N, V) {
5782
+ return N[N.l + V - 1] == 0 ? N.read_shift(V, "cstr") : "";
5783
5783
  }
5784
- function ce(N, M) {
5784
+ function ce(N, V) {
5785
5785
  var P = N[N.l++];
5786
- P > M - 1 && (P = M - 1);
5787
- for (var D = ""; D.length < P; ) D += String.fromCharCode(N[N.l++]);
5788
- return D;
5786
+ P > V - 1 && (P = V - 1);
5787
+ for (var I = ""; I.length < P; ) I += String.fromCharCode(N[N.l++]);
5788
+ return I;
5789
5789
  }
5790
- function te(N, M, P) {
5791
- if (!(!P.qpro || M < 21)) {
5792
- var D = N.read_shift(1);
5790
+ function re(N, V, P) {
5791
+ if (!(!P.qpro || V < 21)) {
5792
+ var I = N.read_shift(1);
5793
5793
  N.l += 17, N.l += 1, N.l += 2;
5794
- var K = N.read_shift(M - 21, "cstr");
5795
- return [D, K];
5794
+ var j = N.read_shift(V - 21, "cstr");
5795
+ return [I, j];
5796
5796
  }
5797
5797
  }
5798
- function xe(N, M) {
5799
- for (var P = {}, D = N.l + M; N.l < D; ) {
5800
- var K = N.read_shift(2);
5801
- if (K == 14e3) {
5802
- for (P[K] = [0, ""], P[K][0] = N.read_shift(2); N[N.l]; )
5803
- P[K][1] += String.fromCharCode(N[N.l]), N.l++;
5798
+ function xe(N, V) {
5799
+ for (var P = {}, I = N.l + V; N.l < I; ) {
5800
+ var j = N.read_shift(2);
5801
+ if (j == 14e3) {
5802
+ for (P[j] = [0, ""], P[j][0] = N.read_shift(2); N[N.l]; )
5803
+ P[j][1] += String.fromCharCode(N[N.l]), N.l++;
5804
5804
  N.l++;
5805
5805
  }
5806
5806
  }
5807
5807
  return P;
5808
5808
  }
5809
- function he(N, M) {
5809
+ function he(N, V) {
5810
5810
  var P = new_buf(5 + N.length);
5811
- P.write_shift(2, 14e3), P.write_shift(2, M);
5812
- for (var D = 0; D < N.length; ++D) {
5813
- var K = N.charCodeAt(D);
5814
- P[P.l++] = K > 127 ? 95 : K;
5811
+ P.write_shift(2, 14e3), P.write_shift(2, V);
5812
+ for (var I = 0; I < N.length; ++I) {
5813
+ var j = N.charCodeAt(I);
5814
+ P[P.l++] = j > 127 ? 95 : j;
5815
5815
  }
5816
5816
  return P[P.l++] = 0, P;
5817
5817
  }
@@ -5994,9 +5994,9 @@ var DBF = /* @__PURE__ */ function() {
5994
5994
  /*::[*/
5995
5995
  23: { n: "NUMBER17", f: S },
5996
5996
  /*::[*/
5997
- 24: { n: "NUMBER18", f: X },
5997
+ 24: { n: "NUMBER18", f: H },
5998
5998
  /*::[*/
5999
- 25: { n: "FORMULA19", f: F },
5999
+ 25: { n: "FORMULA19", f: D },
6000
6000
  /*::[*/
6001
6001
  26: { n: "FORMULA1A" },
6002
6002
  /*::[*/
@@ -6018,13 +6018,13 @@ var DBF = /* @__PURE__ */ function() {
6018
6018
  /*::[*/
6019
6019
  35: { n: "??" },
6020
6020
  /*::[*/
6021
- 37: { n: "NUMBER25", f: B },
6021
+ 37: { n: "NUMBER25", f: F },
6022
6022
  /*::[*/
6023
6023
  38: { n: "??" },
6024
6024
  /*::[*/
6025
- 39: { n: "NUMBER27", f: H },
6025
+ 39: { n: "NUMBER27", f: R },
6026
6026
  /*::[*/
6027
- 40: { n: "FORMULA28", f: ae },
6027
+ 40: { n: "FORMULA28", f: te },
6028
6028
  /*::[*/
6029
6029
  142: { n: "??" },
6030
6030
  /*::[*/
@@ -6158,7 +6158,7 @@ var DBF = /* @__PURE__ */ function() {
6158
6158
  /*::[*/
6159
6159
  772: { n: "??" },
6160
6160
  /*::[*/
6161
- 1537: { n: "SHEETINFOQP", f: te },
6161
+ 1537: { n: "SHEETINFOQP", f: re },
6162
6162
  /*::[*/
6163
6163
  1600: { n: "??" },
6164
6164
  /*::[*/
@@ -7521,7 +7521,7 @@ function stringify_formula(e, r, t, a, n) {
7521
7521
  { s: { c: 0, r: 0 } }
7522
7522
  ), l = [], o, f, c, p = 0, h = 0, d, m = "";
7523
7523
  if (!e[0] || !e[0][0]) return "";
7524
- for (var u = -1, _ = "", C = 0, I = e[0].length; C < I; ++C) {
7524
+ for (var u = -1, _ = "", C = 0, B = e[0].length; C < B; ++C) {
7525
7525
  var k = e[0][C];
7526
7526
  switch (k[0]) {
7527
7527
  case "PtgUminus":
@@ -7648,8 +7648,8 @@ function stringify_formula(e, r, t, a, n) {
7648
7648
  break;
7649
7649
  case "PtgName":
7650
7650
  h = k[1][2];
7651
- var A = (a.names || [])[h - 1] || (a[0] || [])[h], X = A ? A.Name : "SH33TJSNAME" + String(h);
7652
- X && X.slice(0, 6) == "_xlfn." && !n.xlfn && (X = X.slice(6)), l.push(X);
7651
+ var A = (a.names || [])[h - 1] || (a[0] || [])[h], H = A ? A.Name : "SH33TJSNAME" + String(h);
7652
+ H && H.slice(0, 6) == "_xlfn." && !n.xlfn && (H = H.slice(6)), l.push(H);
7653
7653
  break;
7654
7654
  case "PtgNameX":
7655
7655
  var S = k[1][1];
@@ -7658,44 +7658,44 @@ function stringify_formula(e, r, t, a, n) {
7658
7658
  if (n.biff <= 5)
7659
7659
  S < 0 && (S = -S), a[S] && (O = a[S][h]);
7660
7660
  else {
7661
- var F = "";
7662
- if (((a[S] || [])[0] || [])[0] == 14849 || (((a[S] || [])[0] || [])[0] == 1025 ? a[S][h] && a[S][h].itab > 0 && (F = a.SheetNames[a[S][h].itab - 1] + "!") : F = a.SheetNames[h - 1] + "!"), a[S] && a[S][h]) F += a[S][h].Name;
7663
- else if (a[0] && a[0][h]) F += a[0][h].Name;
7661
+ var D = "";
7662
+ if (((a[S] || [])[0] || [])[0] == 14849 || (((a[S] || [])[0] || [])[0] == 1025 ? a[S][h] && a[S][h].itab > 0 && (D = a.SheetNames[a[S][h].itab - 1] + "!") : D = a.SheetNames[h - 1] + "!"), a[S] && a[S][h]) D += a[S][h].Name;
7663
+ else if (a[0] && a[0][h]) D += a[0][h].Name;
7664
7664
  else {
7665
- var B = (get_ixti_raw(a, S, n) || "").split(";;");
7666
- B[h - 1] ? F = B[h - 1] : F += "SH33TJSERRX";
7665
+ var F = (get_ixti_raw(a, S, n) || "").split(";;");
7666
+ F[h - 1] ? D = F[h - 1] : D += "SH33TJSERRX";
7667
7667
  }
7668
- l.push(F);
7668
+ l.push(D);
7669
7669
  break;
7670
7670
  }
7671
7671
  O || (O = { Name: "SH33TJSERRY" }), l.push(O.Name);
7672
7672
  break;
7673
7673
  case "PtgParen":
7674
- var H = "(", ae = ")";
7674
+ var R = "(", te = ")";
7675
7675
  if (u >= 0) {
7676
7676
  switch (_ = "", e[0][u][1][0]) {
7677
7677
  // $FlowIgnore
7678
7678
  case 2:
7679
- H = fill(" ", e[0][u][1][1]) + H;
7679
+ R = fill(" ", e[0][u][1][1]) + R;
7680
7680
  break;
7681
7681
  // $FlowIgnore
7682
7682
  case 3:
7683
- H = fill("\r", e[0][u][1][1]) + H;
7683
+ R = fill("\r", e[0][u][1][1]) + R;
7684
7684
  break;
7685
7685
  // $FlowIgnore
7686
7686
  case 4:
7687
- ae = fill(" ", e[0][u][1][1]) + ae;
7687
+ te = fill(" ", e[0][u][1][1]) + te;
7688
7688
  break;
7689
7689
  // $FlowIgnore
7690
7690
  case 5:
7691
- ae = fill("\r", e[0][u][1][1]) + ae;
7691
+ te = fill("\r", e[0][u][1][1]) + te;
7692
7692
  break;
7693
7693
  default:
7694
7694
  if (n.WTF) throw new Error("Unexpected PtgAttrSpaceType " + e[0][u][1][0]);
7695
7695
  }
7696
7696
  u = -1;
7697
7697
  }
7698
- l.push(H + l.pop() + ae);
7698
+ l.push(R + l.pop() + te);
7699
7699
  break;
7700
7700
  case "PtgRefErr":
7701
7701
  l.push("#REF!");
@@ -7710,13 +7710,13 @@ function stringify_formula(e, r, t, a, n) {
7710
7710
  var ce = a.sharedf[encode_cell(c)];
7711
7711
  l.push(stringify_formula(ce, s, ne, a, n));
7712
7712
  } else {
7713
- var te = !1;
7713
+ var re = !1;
7714
7714
  for (o = 0; o != a.arrayf.length; ++o)
7715
7715
  if (f = a.arrayf[o], !(c.c < f[0].s.c || c.c > f[0].e.c) && !(c.r < f[0].s.r || c.r > f[0].e.r)) {
7716
- l.push(stringify_formula(f[1], s, ne, a, n)), te = !0;
7716
+ l.push(stringify_formula(f[1], s, ne, a, n)), re = !0;
7717
7717
  break;
7718
7718
  }
7719
- te || l.push(
7719
+ re || l.push(
7720
7720
  /*::String(*/
7721
7721
  k[1]
7722
7722
  /*::)*/
@@ -9147,8 +9147,8 @@ function write_ws_xml_data(e, r, t, a) {
9147
9147
  for (p = s.s.r; p <= s.e.r; ++p) {
9148
9148
  for (i = [], f = encode_row(p), h = s.s.c; h <= s.e.c; ++h) {
9149
9149
  o = c[h] + f;
9150
- var I = m ? (e[p] || [])[h] : e[o];
9151
- I !== void 0 && (l = write_ws_xml_cell(I, o, e, r)) != null && i.push(l);
9150
+ var B = m ? (e[p] || [])[h] : e[o];
9151
+ B !== void 0 && (l = write_ws_xml_cell(B, o, e, r)) != null && i.push(l);
9152
9152
  }
9153
9153
  (i.length > 0 || d && d[p]) && (u = { r: f }, d && d[p] && (_ = d[p], _.hidden && (u.hidden = 1), C = -1, _.hpx ? C = px2pt(_.hpx) : _.hpt && (C = _.hpt), C > -1 && (u.ht = C, u.customHeight = 1), _.level && (u.outlineLevel = _.level)), n[n.length] = writextag("row", i.join(""), u));
9154
9154
  }
@@ -9958,8 +9958,8 @@ function write_ws_xlml_table(e, r, t, a) {
9958
9958
  var n = safe_decode_range(e["!ref"]), i = e["!merges"] || [], s = 0, l = [];
9959
9959
  e["!cols"] && e["!cols"].forEach(function(_, C) {
9960
9960
  process_col(_);
9961
- var I = !!_.width, k = col_obj_w(C, _), b = { "ss:Index": C + 1 };
9962
- I && (b["ss:Width"] = width2px(k.width)), _.hidden && (b["ss:Hidden"] = "1"), l.push(writextag("Column", null, b));
9961
+ var B = !!_.width, k = col_obj_w(C, _), b = { "ss:Index": C + 1 };
9962
+ B && (b["ss:Width"] = width2px(k.width)), _.hidden && (b["ss:Hidden"] = "1"), l.push(writextag("Column", null, b));
9963
9963
  });
9964
9964
  for (var o = Array.isArray(e), f = n.s.r; f <= n.e.r; ++f) {
9965
9965
  for (var c = [write_ws_xlml_row(f, (e["!rows"] || [])[f])], p = n.s.c; p <= n.e.c; ++p) {
@@ -14273,8 +14273,8 @@ function write_ws_biff8(e, r, t) {
14273
14273
  C && (write_ws_biff8_cell(a, C, u, _, r), f && C.l && i["!links"].push([c, C.l]));
14274
14274
  }
14275
14275
  }
14276
- var I = l.CodeName || l.name || n;
14277
- return f && write_biff_rec(a, 574, write_Window2((s.Views || [])[0])), f && (i["!merges"] || []).length && write_biff_rec(a, 229, write_MergeCells(i["!merges"])), f && write_ws_biff8_hlinks(a, i), write_biff_rec(a, 442, write_XLUnicodeString(I)), f && write_FEAT(a, i), write_biff_rec(
14276
+ var B = l.CodeName || l.name || n;
14277
+ return f && write_biff_rec(a, 574, write_Window2((s.Views || [])[0])), f && (i["!merges"] || []).length && write_biff_rec(a, 229, write_MergeCells(i["!merges"])), f && write_ws_biff8_hlinks(a, i), write_biff_rec(a, 442, write_XLUnicodeString(B)), f && write_FEAT(a, i), write_biff_rec(
14278
14278
  a,
14279
14279
  10
14280
14280
  /* EOF */
@@ -14329,10 +14329,10 @@ function write_biff8_global(e, r, t) {
14329
14329
  var C = i[u] || {};
14330
14330
  write_biff_rec(d, 133, write_BoundSheet8({ pos: _, hs: C.Hidden || 0, dt: 0, name: e.SheetNames[u] }, t)), _ += r[u].length;
14331
14331
  }
14332
- var I = d.end();
14333
- if (m != I.length) throw new Error("BS8 " + m + " != " + I.length);
14332
+ var B = d.end();
14333
+ if (m != B.length) throw new Error("BS8 " + m + " != " + B.length);
14334
14334
  var k = [];
14335
- return c.length && k.push(c), I.length && k.push(I), h.length && k.push(h), bconcat(k);
14335
+ return c.length && k.push(c), B.length && k.push(B), h.length && k.push(h), bconcat(k);
14336
14336
  }
14337
14337
  function write_biff8_buf(e, r) {
14338
14338
  var t = r || {}, a = [];
@@ -14404,7 +14404,7 @@ function sheet_add_dom(e, r, t) {
14404
14404
  var c = decode_range(e["!ref"]);
14405
14405
  f.s.r = Math.min(f.s.r, c.s.r), f.s.c = Math.min(f.s.c, c.s.c), f.e.r = Math.max(f.e.r, c.e.r), f.e.c = Math.max(f.e.c, c.e.c), n == -1 && (f.e.r = n = c.e.r + 1);
14406
14406
  }
14407
- var p = [], h = 0, d = e["!rows"] || (e["!rows"] = []), m = 0, u = 0, _ = 0, C = 0, I = 0, k = 0;
14407
+ var p = [], h = 0, d = e["!rows"] || (e["!rows"] = []), m = 0, u = 0, _ = 0, C = 0, B = 0, k = 0;
14408
14408
  for (e["!cols"] || (e["!cols"] = []); m < l.length && u < o; ++m) {
14409
14409
  var b = l[m];
14410
14410
  if (is_dom_element_hidden(b)) {
@@ -14415,17 +14415,17 @@ function sheet_add_dom(e, r, t) {
14415
14415
  for (_ = C = 0; _ < G.length; ++_) {
14416
14416
  var z = G[_];
14417
14417
  if (!(a.display && is_dom_element_hidden(z))) {
14418
- var A = z.hasAttribute("data-v") ? z.getAttribute("data-v") : z.hasAttribute("v") ? z.getAttribute("v") : htmldecode(z.innerHTML), X = z.getAttribute("data-z") || z.getAttribute("z");
14418
+ var A = z.hasAttribute("data-v") ? z.getAttribute("data-v") : z.hasAttribute("v") ? z.getAttribute("v") : htmldecode(z.innerHTML), H = z.getAttribute("data-z") || z.getAttribute("z");
14419
14419
  for (h = 0; h < p.length; ++h) {
14420
14420
  var S = p[h];
14421
14421
  S.s.c == C + i && S.s.r < u + n && u + n <= S.e.r && (C = S.e.c + 1 - i, h = -1);
14422
14422
  }
14423
- k = +z.getAttribute("colspan") || 1, ((I = +z.getAttribute("rowspan") || 1) > 1 || k > 1) && p.push({ s: { r: u + n, c: C + i }, e: { r: u + n + (I || 1) - 1, c: C + i + (k || 1) - 1 } });
14424
- var O = { t: "s", v: A }, F = z.getAttribute("data-t") || z.getAttribute("t") || "";
14425
- A != null && (A.length == 0 ? O.t = F || "z" : a.raw || A.trim().length == 0 || F == "s" || (A === "TRUE" ? O = { t: "b", v: !0 } : A === "FALSE" ? O = { t: "b", v: !1 } : isNaN(fuzzynum(A)) ? isNaN(fuzzydate(A).getDate()) || (O = { t: "d", v: parseDate(A) }, a.cellDates || (O = { t: "n", v: datenum(O.v) }), O.z = a.dateNF || table_fmt[14]) : O = { t: "n", v: fuzzynum(A) })), O.z === void 0 && X != null && (O.z = X);
14426
- var B = "", H = z.getElementsByTagName("A");
14427
- if (H && H.length) for (var ae = 0; ae < H.length && !(H[ae].hasAttribute("href") && (B = H[ae].getAttribute("href"), B.charAt(0) != "#")); ++ae) ;
14428
- B && B.charAt(0) != "#" && (O.l = { Target: B }), a.dense ? (e[u + n] || (e[u + n] = []), e[u + n][C + i] = O) : e[encode_cell({ c: C + i, r: u + n })] = O, f.e.c < C + i && (f.e.c = C + i), C += k;
14423
+ k = +z.getAttribute("colspan") || 1, ((B = +z.getAttribute("rowspan") || 1) > 1 || k > 1) && p.push({ s: { r: u + n, c: C + i }, e: { r: u + n + (B || 1) - 1, c: C + i + (k || 1) - 1 } });
14424
+ var O = { t: "s", v: A }, D = z.getAttribute("data-t") || z.getAttribute("t") || "";
14425
+ A != null && (A.length == 0 ? O.t = D || "z" : a.raw || A.trim().length == 0 || D == "s" || (A === "TRUE" ? O = { t: "b", v: !0 } : A === "FALSE" ? O = { t: "b", v: !1 } : isNaN(fuzzynum(A)) ? isNaN(fuzzydate(A).getDate()) || (O = { t: "d", v: parseDate(A) }, a.cellDates || (O = { t: "n", v: datenum(O.v) }), O.z = a.dateNF || table_fmt[14]) : O = { t: "n", v: fuzzynum(A) })), O.z === void 0 && H != null && (O.z = H);
14426
+ var F = "", R = z.getElementsByTagName("A");
14427
+ if (R && R.length) for (var te = 0; te < R.length && !(R[te].hasAttribute("href") && (F = R[te].getAttribute("href"), F.charAt(0) != "#")); ++te) ;
14428
+ F && F.charAt(0) != "#" && (O.l = { Target: F }), a.dense ? (e[u + n] || (e[u + n] = []), e[u + n][C + i] = O) : e[encode_cell({ c: C + i, r: u + n })] = O, f.e.c < C + i && (f.e.c = C + i), C += k;
14429
14429
  }
14430
14430
  }
14431
14431
  ++u;
@@ -14496,10 +14496,10 @@ var write_styles_ods = /* @__PURE__ */ function() {
14496
14496
  for (u = _[f] ? ' table:style-name="ro' + _[f].ods + '"' : "", o.push(" <table:table-row" + u + `>
14497
14497
  `), c = 0; c < p.s.c; ++c) o.push(r);
14498
14498
  for (; c <= p.e.c; ++c) {
14499
- var C = !1, I = {}, k = "";
14499
+ var C = !1, B = {}, k = "";
14500
14500
  for (d = 0; d != h.length; ++d)
14501
14501
  if (!(h[d].s.c > c) && !(h[d].s.r > f) && !(h[d].e.c < c) && !(h[d].e.r < f)) {
14502
- (h[d].s.c != c || h[d].s.r != f) && (C = !0), I["table:number-columns-spanned"] = h[d].e.c - h[d].s.c + 1, I["table:number-rows-spanned"] = h[d].e.r - h[d].s.r + 1;
14502
+ (h[d].s.c != c || h[d].s.r != f) && (C = !0), B["table:number-columns-spanned"] = h[d].e.c - h[d].s.c + 1, B["table:number-rows-spanned"] = h[d].e.r - h[d].s.r + 1;
14503
14503
  break;
14504
14504
  }
14505
14505
  if (C) {
@@ -14507,9 +14507,9 @@ var write_styles_ods = /* @__PURE__ */ function() {
14507
14507
  continue;
14508
14508
  }
14509
14509
  var b = encode_cell({ r: f, c }), G = m ? (i[f] || [])[c] : i[b];
14510
- if (G && G.f && (I["table:formula"] = escapexml(csf_to_ods_formula(G.f)), G.F && G.F.slice(0, b.length) == b)) {
14510
+ if (G && G.f && (B["table:formula"] = escapexml(csf_to_ods_formula(G.f)), G.F && G.F.slice(0, b.length) == b)) {
14511
14511
  var z = decode_range(G.F);
14512
- I["table:number-matrix-columns-spanned"] = z.e.c - z.s.c + 1, I["table:number-matrix-rows-spanned"] = z.e.r - z.s.r + 1;
14512
+ B["table:number-matrix-columns-spanned"] = z.e.c - z.s.c + 1, B["table:number-matrix-rows-spanned"] = z.e.r - z.s.r + 1;
14513
14513
  }
14514
14514
  if (!G) {
14515
14515
  o.push(r);
@@ -14517,17 +14517,17 @@ var write_styles_ods = /* @__PURE__ */ function() {
14517
14517
  }
14518
14518
  switch (G.t) {
14519
14519
  case "b":
14520
- k = G.v ? "TRUE" : "FALSE", I["office:value-type"] = "boolean", I["office:boolean-value"] = G.v ? "true" : "false";
14520
+ k = G.v ? "TRUE" : "FALSE", B["office:value-type"] = "boolean", B["office:boolean-value"] = G.v ? "true" : "false";
14521
14521
  break;
14522
14522
  case "n":
14523
- k = G.w || String(G.v || 0), I["office:value-type"] = "float", I["office:value"] = G.v || 0;
14523
+ k = G.w || String(G.v || 0), B["office:value-type"] = "float", B["office:value"] = G.v || 0;
14524
14524
  break;
14525
14525
  case "s":
14526
14526
  case "str":
14527
- k = G.v == null ? "" : G.v, I["office:value-type"] = "string";
14527
+ k = G.v == null ? "" : G.v, B["office:value-type"] = "string";
14528
14528
  break;
14529
14529
  case "d":
14530
- k = G.w || parseDate(G.v).toISOString(), I["office:value-type"] = "date", I["office:date-value"] = parseDate(G.v).toISOString(), I["table:style-name"] = "ce1";
14530
+ k = G.w || parseDate(G.v).toISOString(), B["office:value-type"] = "date", B["office:date-value"] = parseDate(G.v).toISOString(), B["table:style-name"] = "ce1";
14531
14531
  break;
14532
14532
  //case 'e':
14533
14533
  default:
@@ -14536,10 +14536,10 @@ var write_styles_ods = /* @__PURE__ */ function() {
14536
14536
  }
14537
14537
  var A = e(k);
14538
14538
  if (G.l && G.l.Target) {
14539
- var X = G.l.Target;
14540
- X = X.charAt(0) == "#" ? "#" + csf_to_ods_3D(X.slice(1)) : X, X.charAt(0) != "#" && !X.match(/^\w+:/) && (X = "../" + X), A = writextag("text:a", A, { "xlink:href": X.replace(/&/g, "&amp;") });
14539
+ var H = G.l.Target;
14540
+ H = H.charAt(0) == "#" ? "#" + csf_to_ods_3D(H.slice(1)) : H, H.charAt(0) != "#" && !H.match(/^\w+:/) && (H = "../" + H), A = writextag("text:a", A, { "xlink:href": H.replace(/&/g, "&amp;") });
14541
14541
  }
14542
- o.push(" " + writextag("table:table-cell", writextag("text:p", A, {}), I) + `
14542
+ o.push(" " + writextag("table:table-cell", writextag("text:p", A, {}), B) + `
14543
14543
  `);
14544
14544
  }
14545
14545
  o.push(` </table:table-row>
@@ -14933,42 +14933,42 @@ function write_numbers_iwa(e, r) {
14933
14933
  var n = !1;
14934
14934
  a.e.c > 9 && (n = !0, a.e.c = 9), a.e.r > 49 && (n = !0, a.e.r = 49), n && console.error("The Numbers writer is currently limited to ".concat(encode_range(a)));
14935
14935
  var i = sheet_to_json(t, { range: a, header: 1 }), s = ["~Sh33tJ5~"];
14936
- i.forEach(function(M) {
14937
- return M.forEach(function(P) {
14936
+ i.forEach(function(V) {
14937
+ return V.forEach(function(P) {
14938
14938
  typeof P == "string" && s.push(P);
14939
14939
  });
14940
14940
  });
14941
14941
  var l = {}, o = [], f = CFB.read(r.numbers, { type: "base64" });
14942
- f.FileIndex.map(function(M, P) {
14943
- return [M, f.FullPaths[P]];
14944
- }).forEach(function(M) {
14945
- var P = M[0], D = M[1];
14942
+ f.FileIndex.map(function(V, P) {
14943
+ return [V, f.FullPaths[P]];
14944
+ }).forEach(function(V) {
14945
+ var P = V[0], I = V[1];
14946
14946
  if (P.type == 2 && P.name.match(/\.iwa/)) {
14947
- var K = P.content, se = decompress_iwa_file(K), le = parse_iwa_file(se);
14947
+ var j = P.content, se = decompress_iwa_file(j), le = parse_iwa_file(se);
14948
14948
  le.forEach(function(ie) {
14949
- o.push(ie.id), l[ie.id] = { deps: [], location: D, type: varint_to_i32(ie.messages[0].meta[1][0].data) };
14949
+ o.push(ie.id), l[ie.id] = { deps: [], location: I, type: varint_to_i32(ie.messages[0].meta[1][0].data) };
14950
14950
  });
14951
14951
  }
14952
- }), o.sort(function(M, P) {
14953
- return M - P;
14952
+ }), o.sort(function(V, P) {
14953
+ return V - P;
14954
14954
  });
14955
- var c = o.filter(function(M) {
14956
- return M > 1;
14957
- }).map(function(M) {
14958
- return [M, write_varint49(M)];
14955
+ var c = o.filter(function(V) {
14956
+ return V > 1;
14957
+ }).map(function(V) {
14958
+ return [V, write_varint49(V)];
14959
14959
  });
14960
- f.FileIndex.map(function(M, P) {
14961
- return [M, f.FullPaths[P]];
14962
- }).forEach(function(M) {
14963
- var P = M[0];
14964
- if (M[1], !!P.name.match(/\.iwa/)) {
14965
- var D = parse_iwa_file(decompress_iwa_file(P.content));
14966
- D.forEach(function(K) {
14967
- K.messages.forEach(function(se) {
14960
+ f.FileIndex.map(function(V, P) {
14961
+ return [V, f.FullPaths[P]];
14962
+ }).forEach(function(V) {
14963
+ var P = V[0];
14964
+ if (V[1], !!P.name.match(/\.iwa/)) {
14965
+ var I = parse_iwa_file(decompress_iwa_file(P.content));
14966
+ I.forEach(function(j) {
14967
+ j.messages.forEach(function(se) {
14968
14968
  c.forEach(function(le) {
14969
- K.messages.some(function(ie) {
14969
+ j.messages.some(function(ie) {
14970
14970
  return varint_to_i32(ie.meta[1][0].data) != 11006 && u8contains(ie.data, le[1]);
14971
- }) && l[le[0]].deps.push(K.id);
14971
+ }) && l[le[0]].deps.push(j.id);
14972
14972
  });
14973
14973
  });
14974
14974
  });
@@ -14988,38 +14988,38 @@ function write_numbers_iwa(e, r) {
14988
14988
  var C = parse_shallow(d.messages[0].data);
14989
14989
  {
14990
14990
  C[6][0].data = write_varint49(a.e.r + 1), C[7][0].data = write_varint49(a.e.c + 1);
14991
- var I = parse_TSP_Reference(C[46][0].data), k = CFB.find(f, l[I].location), b = parse_iwa_file(decompress_iwa_file(k.content));
14991
+ var B = parse_TSP_Reference(C[46][0].data), k = CFB.find(f, l[B].location), b = parse_iwa_file(decompress_iwa_file(k.content));
14992
14992
  {
14993
- for (var G = 0; G < b.length && b[G].id != I; ++G)
14993
+ for (var G = 0; G < b.length && b[G].id != B; ++G)
14994
14994
  ;
14995
- if (b[G].id != I)
14995
+ if (b[G].id != B)
14996
14996
  throw "Bad ColumnRowUIDMapArchive";
14997
14997
  var z = parse_shallow(b[G].messages[0].data);
14998
14998
  z[1] = [], z[2] = [], z[3] = [];
14999
14999
  for (var A = 0; A <= a.e.c; ++A) {
15000
- var X = [];
15001
- X[1] = X[2] = [{ type: 0, data: write_varint49(A + 420690) }], z[1].push({ type: 2, data: write_shallow(X) }), z[2].push({ type: 0, data: write_varint49(A) }), z[3].push({ type: 0, data: write_varint49(A) });
15000
+ var H = [];
15001
+ H[1] = H[2] = [{ type: 0, data: write_varint49(A + 420690) }], z[1].push({ type: 2, data: write_shallow(H) }), z[2].push({ type: 0, data: write_varint49(A) }), z[3].push({ type: 0, data: write_varint49(A) });
15002
15002
  }
15003
15003
  z[4] = [], z[5] = [], z[6] = [];
15004
15004
  for (var S = 0; S <= a.e.r; ++S)
15005
- X = [], X[1] = X[2] = [{ type: 0, data: write_varint49(S + 726270) }], z[4].push({ type: 2, data: write_shallow(X) }), z[5].push({ type: 0, data: write_varint49(S) }), z[6].push({ type: 0, data: write_varint49(S) });
15005
+ H = [], H[1] = H[2] = [{ type: 0, data: write_varint49(S + 726270) }], z[4].push({ type: 2, data: write_shallow(H) }), z[5].push({ type: 0, data: write_varint49(S) }), z[6].push({ type: 0, data: write_varint49(S) });
15006
15006
  b[G].messages[0].data = write_shallow(z);
15007
15007
  }
15008
15008
  k.content = compress_iwa_file(write_iwa_file(b)), k.size = k.content.length, delete C[46];
15009
15009
  var O = parse_shallow(C[4][0].data);
15010
15010
  {
15011
15011
  O[7][0].data = write_varint49(a.e.r + 1);
15012
- var F = parse_shallow(O[1][0].data), B = parse_TSP_Reference(F[2][0].data);
15013
- k = CFB.find(f, l[B].location), b = parse_iwa_file(decompress_iwa_file(k.content));
15012
+ var D = parse_shallow(O[1][0].data), F = parse_TSP_Reference(D[2][0].data);
15013
+ k = CFB.find(f, l[F].location), b = parse_iwa_file(decompress_iwa_file(k.content));
15014
15014
  {
15015
- if (b[0].id != B)
15015
+ if (b[0].id != F)
15016
15016
  throw "Bad HeaderStorageBucket";
15017
- var H = parse_shallow(b[0].messages[0].data);
15017
+ var R = parse_shallow(b[0].messages[0].data);
15018
15018
  for (S = 0; S < i.length; ++S) {
15019
- var ae = parse_shallow(H[2][0].data);
15020
- ae[1][0].data = write_varint49(S), ae[4][0].data = write_varint49(i[S].length), H[2][S] = { type: H[2][0].type, data: write_shallow(ae) };
15019
+ var te = parse_shallow(R[2][0].data);
15020
+ te[1][0].data = write_varint49(S), te[4][0].data = write_varint49(i[S].length), R[2][S] = { type: R[2][0].type, data: write_shallow(te) };
15021
15021
  }
15022
- b[0].messages[0].data = write_shallow(H);
15022
+ b[0].messages[0].data = write_shallow(R);
15023
15023
  }
15024
15024
  k.content = compress_iwa_file(write_iwa_file(b)), k.size = k.content.length;
15025
15025
  var ne = parse_TSP_Reference(O[2][0].data);
@@ -15027,18 +15027,18 @@ function write_numbers_iwa(e, r) {
15027
15027
  {
15028
15028
  if (b[0].id != ne)
15029
15029
  throw "Bad HeaderStorageBucket";
15030
- for (H = parse_shallow(b[0].messages[0].data), A = 0; A <= a.e.c; ++A)
15031
- ae = parse_shallow(H[2][0].data), ae[1][0].data = write_varint49(A), ae[4][0].data = write_varint49(a.e.r + 1), H[2][A] = { type: H[2][0].type, data: write_shallow(ae) };
15032
- b[0].messages[0].data = write_shallow(H);
15030
+ for (R = parse_shallow(b[0].messages[0].data), A = 0; A <= a.e.c; ++A)
15031
+ te = parse_shallow(R[2][0].data), te[1][0].data = write_varint49(A), te[4][0].data = write_varint49(a.e.r + 1), R[2][A] = { type: R[2][0].type, data: write_shallow(te) };
15032
+ b[0].messages[0].data = write_shallow(R);
15033
15033
  }
15034
15034
  k.content = compress_iwa_file(write_iwa_file(b)), k.size = k.content.length;
15035
15035
  var ce = parse_TSP_Reference(O[4][0].data);
15036
15036
  (function() {
15037
- for (var M = CFB.find(f, l[ce].location), P = parse_iwa_file(decompress_iwa_file(M.content)), D, K = 0; K < P.length; ++K) {
15038
- var se = P[K];
15039
- se.id == ce && (D = se);
15037
+ for (var V = CFB.find(f, l[ce].location), P = parse_iwa_file(decompress_iwa_file(V.content)), I, j = 0; j < P.length; ++j) {
15038
+ var se = P[j];
15039
+ se.id == ce && (I = se);
15040
15040
  }
15041
- var le = parse_shallow(D.messages[0].data);
15041
+ var le = parse_shallow(I.messages[0].data);
15042
15042
  {
15043
15043
  le[3] = [];
15044
15044
  var ie = [];
@@ -15046,25 +15046,25 @@ function write_numbers_iwa(e, r) {
15046
15046
  ie[1] = [{ type: 0, data: write_varint49(Ee) }], ie[2] = [{ type: 0, data: write_varint49(1) }], ie[3] = [{ type: 2, data: stru8(fe) }], le[3].push({ type: 2, data: write_shallow(ie) });
15047
15047
  });
15048
15048
  }
15049
- D.messages[0].data = write_shallow(le);
15049
+ I.messages[0].data = write_shallow(le);
15050
15050
  var Z = write_iwa_file(P), de = compress_iwa_file(Z);
15051
- M.content = de, M.size = M.content.length;
15051
+ V.content = de, V.size = V.content.length;
15052
15052
  })();
15053
- var te = parse_shallow(O[3][0].data);
15053
+ var re = parse_shallow(O[3][0].data);
15054
15054
  {
15055
- var xe = te[1][0];
15056
- delete te[2];
15055
+ var xe = re[1][0];
15056
+ delete re[2];
15057
15057
  var he = parse_shallow(xe.data);
15058
15058
  {
15059
15059
  var ve = parse_TSP_Reference(he[2][0].data);
15060
15060
  (function() {
15061
- for (var M = CFB.find(f, l[ve].location), P = parse_iwa_file(decompress_iwa_file(M.content)), D, K = 0; K < P.length; ++K) {
15062
- var se = P[K];
15063
- se.id == ve && (D = se);
15061
+ for (var V = CFB.find(f, l[ve].location), P = parse_iwa_file(decompress_iwa_file(V.content)), I, j = 0; j < P.length; ++j) {
15062
+ var se = P[j];
15063
+ se.id == ve && (I = se);
15064
15064
  }
15065
- var le = parse_shallow(D.messages[0].data);
15065
+ var le = parse_shallow(I.messages[0].data);
15066
15066
  {
15067
- delete le[6], delete te[7];
15067
+ delete le[6], delete re[7];
15068
15068
  var ie = new Uint8Array(le[5][0].data);
15069
15069
  le[5] = [];
15070
15070
  for (var Z = 0, de = 0; de <= a.e.r; ++de) {
@@ -15073,14 +15073,14 @@ function write_numbers_iwa(e, r) {
15073
15073
  }
15074
15074
  le[1] = [{ type: 0, data: write_varint49(a.e.c + 1) }], le[2] = [{ type: 0, data: write_varint49(a.e.r + 1) }], le[3] = [{ type: 0, data: write_varint49(Z) }], le[4] = [{ type: 0, data: write_varint49(a.e.r + 1) }];
15075
15075
  }
15076
- D.messages[0].data = write_shallow(le);
15076
+ I.messages[0].data = write_shallow(le);
15077
15077
  var Ee = write_iwa_file(P), ue = compress_iwa_file(Ee);
15078
- M.content = ue, M.size = M.content.length;
15078
+ V.content = ue, V.size = V.content.length;
15079
15079
  })();
15080
15080
  }
15081
15081
  xe.data = write_shallow(he);
15082
15082
  }
15083
- O[3][0].data = write_shallow(te);
15083
+ O[3][0].data = write_shallow(re);
15084
15084
  }
15085
15085
  C[4][0].data = write_shallow(O);
15086
15086
  }
@@ -15167,8 +15167,8 @@ function write_zip_xlsx(e, r) {
15167
15167
  var m = h["!comments"], u = !1, _ = "";
15168
15168
  if (m && m.length > 0) {
15169
15169
  var C = !1;
15170
- m.forEach(function(I) {
15171
- I[1].forEach(function(k) {
15170
+ m.forEach(function(B) {
15171
+ B[1].forEach(function(k) {
15172
15172
  k.T == !0 && (C = !0);
15173
15173
  });
15174
15174
  }), C && (_ = "xl/threadedComments/threadedComment" + l + "." + t, zip_add_file(i, _, write_tcmnt_xml(m, c, r)), n.threadedcomments.push(_), add_rels(p, -1, "../threadedComments/threadedComment" + l + "." + t, RELS.TCMNT)), _ = "xl/comments" + l + "." + t, zip_add_file(i, _, write_comments_xml(m)), n.comments.push(_), add_rels(p, -1, "../comments" + l + "." + t, RELS.CMNT), u = !0;
@@ -15450,20 +15450,20 @@ function sheet_to_json(e, r) {
15450
15450
  o = c;
15451
15451
  }
15452
15452
  a > 0 && (n = 0);
15453
- var p = encode_row(o.s.r), h = [], d = [], m = 0, u = 0, _ = Array.isArray(e), C = o.s.r, I = 0, k = {};
15453
+ var p = encode_row(o.s.r), h = [], d = [], m = 0, u = 0, _ = Array.isArray(e), C = o.s.r, B = 0, k = {};
15454
15454
  _ && !e[C] && (e[C] = []);
15455
15455
  var b = f.skipHidden && e["!cols"] || [], G = f.skipHidden && e["!rows"] || [];
15456
- for (I = o.s.c; I <= o.e.c; ++I)
15457
- if (!(b[I] || {}).hidden)
15458
- switch (h[I] = encode_col(I), t = _ ? e[C][I] : e[h[I] + p], a) {
15456
+ for (B = o.s.c; B <= o.e.c; ++B)
15457
+ if (!(b[B] || {}).hidden)
15458
+ switch (h[B] = encode_col(B), t = _ ? e[C][B] : e[h[B] + p], a) {
15459
15459
  case 1:
15460
- i[I] = I - o.s.c;
15460
+ i[B] = B - o.s.c;
15461
15461
  break;
15462
15462
  case 2:
15463
- i[I] = h[I];
15463
+ i[B] = h[B];
15464
15464
  break;
15465
15465
  case 3:
15466
- i[I] = f.header[I - o.s.c];
15466
+ i[B] = f.header[B - o.s.c];
15467
15467
  break;
15468
15468
  default:
15469
15469
  if (t == null && (t = { w: "__EMPTY", t: "s" }), l = s = format_cell(t, null, f), u = k[s] || 0, !u) k[s] = 1;
@@ -15473,7 +15473,7 @@ function sheet_to_json(e, r) {
15473
15473
  while (k[l]);
15474
15474
  k[s] = u, k[l] = 1;
15475
15475
  }
15476
- i[I] = l;
15476
+ i[B] = l;
15477
15477
  }
15478
15478
  for (C = o.s.r + n; C <= o.e.r; ++C)
15479
15479
  if (!(G[C] || {}).hidden) {
@@ -15562,8 +15562,8 @@ function sheet_add_json(e, r, t) {
15562
15562
  r.forEach(function(u, _) {
15563
15563
  keys(u).forEach(function(C) {
15564
15564
  (d = h.indexOf(C)) == -1 && (h[d = h.length] = C);
15565
- var I = u[C], k = "z", b = "", G = encode_cell({ c: l + d, r: s + _ + n });
15566
- f = ws_get_cell_stub(i, G), I && typeof I == "object" && !(I instanceof Date) ? i[G] = I : (typeof I == "number" ? k = "n" : typeof I == "boolean" ? k = "b" : typeof I == "string" ? k = "s" : I instanceof Date ? (k = "d", a.cellDates || (k = "n", I = datenum(I)), b = a.dateNF || table_fmt[14]) : I === null && a.nullError && (k = "e", I = 0), f ? (f.t = k, f.v = I, delete f.w, delete f.R, b && (f.z = b)) : i[G] = f = { t: k, v: I }, b && (f.z = b));
15565
+ var B = u[C], k = "z", b = "", G = encode_cell({ c: l + d, r: s + _ + n });
15566
+ f = ws_get_cell_stub(i, G), B && typeof B == "object" && !(B instanceof Date) ? i[G] = B : (typeof B == "number" ? k = "n" : typeof B == "boolean" ? k = "b" : typeof B == "string" ? k = "s" : B instanceof Date ? (k = "d", a.cellDates || (k = "n", B = datenum(B)), b = a.dateNF || table_fmt[14]) : B === null && a.nullError && (k = "e", B = 0), f ? (f.t = k, f.v = B, delete f.w, delete f.R, b && (f.z = b)) : i[G] = f = { t: k, v: B }, b && (f.z = b));
15567
15567
  });
15568
15568
  }), c.e.c = Math.max(c.e.c, l + h.length - 1);
15569
15569
  var m = encode_row(s);
@@ -15706,9 +15706,9 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
15706
15706
  let m = t.data, u = t.printOption;
15707
15707
  var _ = "", C = "";
15708
15708
  u.TitleArray && u.TitleArray.length > 0 ? _ = u.TitleArray.map((G, z) => `<tr><th colspan='100' style="font-size:${20 - z * 3}px;border:none;">${G}</th></tr>`).join("") : _ = `<tr><th colspan='100' style='font-size:20px;border:none'>${t.title}</th></tr>`, u.FootArray && u.FootArray.length > 0 && (C = u.FootArray.map((G) => `<tr><td colspan='100' style="font-size:18ddpx;border:none;text-align:right">${G}</td></tr>`).join(""));
15709
- let I = t.columnArray, k = m.map(
15710
- (G, z) => `<tr>${I.map((A, X) => {
15711
- let S = c(G, A, X, z);
15709
+ let B = t.columnArray, k = m.map(
15710
+ (G, z) => `<tr>${B.map((A, H) => {
15711
+ let S = c(G, A, H, z);
15712
15712
  return S.colspan == "0" || S.rowspan == "0" ? "" : `<td rowspan="${S.rowspan > 1 ? S.rowspan : ""}" colspan="${S.colspan > 1 ? S.colspan : ""}">${o(G, A.title)}</td>`;
15713
15713
  }).join("")}</tr>`
15714
15714
  ).join(""), b = "";
@@ -15729,7 +15729,7 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
15729
15729
  <table>
15730
15730
  <thead>
15731
15731
  ${_}
15732
- <tr>${I.map((G) => `<th>${G.title}</th>`).join("")}</tr>
15732
+ <tr>${B.map((G) => `<th>${G.title}</th>`).join("")}</tr>
15733
15733
  </thead>
15734
15734
  <tbody>
15735
15735
  ${k}
@@ -15739,13 +15739,13 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
15739
15739
  </table>`;
15740
15740
  }, c = (m, u, _, C) => {
15741
15741
  if (u.title == null) return { rowspan: 1, colspan: 1 };
15742
- let I = u.title, k = t.columnArray.FirstOrDefault((z) => z.title == I);
15742
+ let B = u.title, k = t.columnArray.FirstOrDefault((z) => z.title == B);
15743
15743
  if (k == null || !k.isHeBing) return { rowspan: 1, colspan: 1 };
15744
- let b = m[I];
15745
- if (C > 0 && b == t.data[C - 1][I])
15744
+ let b = m[B];
15745
+ if (C > 0 && b == t.data[C - 1][B])
15746
15746
  return { rowspan: 0, colspan: 0 };
15747
15747
  let G = 0;
15748
- for (let z = C; z < t.data.length && t.data[z][I] == b; z++)
15748
+ for (let z = C; z < t.data.length && t.data[z][B] == b; z++)
15749
15749
  G++;
15750
15750
  return {
15751
15751
  rowspan: G,
@@ -15766,9 +15766,9 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
15766
15766
  return L("合计");
15767
15767
  if (!u.isSummary) return "";
15768
15768
  let C = 0;
15769
- return t.data.forEach((I) => {
15770
- if (I.src && I.src.IgnoreSummary) return;
15771
- let k = I[u.title];
15769
+ return t.data.forEach((B) => {
15770
+ if (B.src && B.src.IgnoreSummary) return;
15771
+ let k = B[u.title];
15772
15772
  !m && h.test(k) && (m = !0);
15773
15773
  let b = Number(k);
15774
15774
  Number.isNaN(b) || (C += b);
@@ -15918,7 +15918,7 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
15918
15918
  class: "myicon",
15919
15919
  "aria-hidden": "true",
15920
15920
  style: { "font-size": "2em" }
15921
- }, _hoisted_6$5 = ["xlink:href"], _hoisted_7$5 = ["src"], _sfc_main$k = {
15921
+ }, _hoisted_6$5 = ["xlink:href"], _hoisted_7$5 = { key: 0 }, _hoisted_8$5 = { key: 0 }, _hoisted_9$5 = ["src"], _sfc_main$k = {
15922
15922
  __name: "DataList",
15923
15923
  props: {
15924
15924
  showCheck: { type: Boolean, default: !0 },
@@ -15949,82 +15949,82 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
15949
15949
  i.isShowPic = !0, i.PicUrl = S;
15950
15950
  }, o = (S) => {
15951
15951
  try {
15952
- let O = /* @__PURE__ */ new Date(), F = S.ToDateTime();
15953
- return O > F ? "red" : (O = O.AddDays(30), O > F ? "#f6d00c" : "inherit");
15952
+ let O = /* @__PURE__ */ new Date(), D = S.ToDateTime();
15953
+ return O > D ? "red" : (O = O.AddDays(30), O > D ? "#f6d00c" : "inherit");
15954
15954
  } catch {
15955
15955
  }
15956
- }, f = ({ row: S, column: O, columnIndex: F, rowIndex: B }) => {
15956
+ }, f = ({ row: S, column: O, columnIndex: D, rowIndex: F }) => {
15957
15957
  if (O.property == null) return { rowspan: 1, colspan: 1 };
15958
- let H = O.property, ae = a.value.FirstOrDefault((te) => te.dataKey == H);
15959
- if (ae == null || !ae.isHeBing) return { rowspan: 1, colspan: 1 };
15960
- let ne = S[H];
15961
- if (B > 0 && ne == n.value[B - 1][H])
15958
+ let R = O.property, te = a.value.FirstOrDefault((re) => re.dataKey == R);
15959
+ if (te == null || !te.isHeBing) return { rowspan: 1, colspan: 1 };
15960
+ let ne = S[R];
15961
+ if (F > 0 && ne == n.value[F - 1][R])
15962
15962
  return { rowspan: 0, colspan: 0 };
15963
15963
  let ce = 0;
15964
- for (let te = B; te < n.value.length && n.value[te][H] == ne; te++)
15964
+ for (let re = F; re < n.value.length && n.value[re][R] == ne; re++)
15965
15965
  ce++;
15966
15966
  return {
15967
15967
  rowspan: ce,
15968
15968
  colspan: 1
15969
15969
  };
15970
15970
  }, c = (S, O) => {
15971
- for (let F = 0; F < S.length; F++)
15972
- if (O(S[F])) return S[F];
15971
+ for (let D = 0; D < S.length; D++)
15972
+ if (O(S[D])) return S[D];
15973
15973
  return null;
15974
15974
  }, p = async (S) => {
15975
- let O = n.value.filter((F) => F.src.checked);
15975
+ let O = n.value.filter((D) => D.src.checked);
15976
15976
  return O.length == 0 && (await ElMessageBox.confirm(L(`您尚未选择任何数据!您是想${S}全部数据吗??`), L(`数据${S}确认`), {
15977
15977
  cancelButtonText: L("取消"),
15978
15978
  confirmButtonText: L("确定")
15979
- }), O = n.value), O = s.fnGetSelectData(O, S), O.map((F) => {
15980
- let B = {};
15981
- for (let H in F) {
15982
- if (H == "src") {
15983
- S == "打印" && (B[H] = F.src);
15979
+ }), O = n.value), O = s.fnGetSelectData(O, S), O.map((D) => {
15980
+ let F = {};
15981
+ for (let R in D) {
15982
+ if (R == "src") {
15983
+ S == "打印" && (F[R] = D.src);
15984
15984
  continue;
15985
15985
  }
15986
- let ae = c(a.value, (ne) => ne.dataKey == H);
15987
- ae != null && (B[ae.title] = F[H]);
15986
+ let te = c(a.value, (ne) => ne.dataKey == R);
15987
+ te != null && (F[te.title] = D[R]);
15988
15988
  }
15989
- return B;
15989
+ return F;
15990
15990
  });
15991
15991
  }, h = async () => {
15992
15992
  let S = await p("导出");
15993
15993
  console.log(S);
15994
- let O = 0, F = S.length, B = [];
15995
- for (let te in S[0])
15996
- O++, B.push(te);
15997
- let H = [];
15998
- s.printOption.TitleArray.forEach((te) => {
15999
- H.push([te]);
16000
- }), H.push(B);
16001
- for (let te = 0; te < S.length; te++) {
16002
- let xe = B.map((he) => S[te][he]);
16003
- H.push(xe);
15994
+ let O = 0, D = S.length, F = [];
15995
+ for (let re in S[0])
15996
+ O++, F.push(re);
15997
+ let R = [];
15998
+ s.printOption.TitleArray.forEach((re) => {
15999
+ R.push([re]);
16000
+ }), R.push(F);
16001
+ for (let re = 0; re < S.length; re++) {
16002
+ let xe = F.map((he) => S[re][he]);
16003
+ R.push(xe);
16004
16004
  }
16005
- s.printOption.FootArray.forEach((te) => {
16006
- H.push([te]);
16005
+ s.printOption.FootArray.forEach((re) => {
16006
+ R.push([re]);
16007
16007
  });
16008
- const ae = utils.aoa_to_sheet(H, { header: B });
16008
+ const te = utils.aoa_to_sheet(R, { header: F });
16009
16009
  let ne = [];
16010
- for (let te = 0; te < s.printOption.TitleArray.length; te++)
16011
- ne.push({ s: { r: te, c: 0 }, e: { r: te, c: O - 1 } });
16012
- for (let te = 0; te < s.printOption.FootArray.length; te++) {
16013
- let xe = F + te + s.printOption.TitleArray.length + 1;
16010
+ for (let re = 0; re < s.printOption.TitleArray.length; re++)
16011
+ ne.push({ s: { r: re, c: 0 }, e: { r: re, c: O - 1 } });
16012
+ for (let re = 0; re < s.printOption.FootArray.length; re++) {
16013
+ let xe = D + re + s.printOption.TitleArray.length + 1;
16014
16014
  ne.push({ s: { r: xe, c: 0 }, e: { r: xe, c: O - 1 } });
16015
16015
  }
16016
- for (let te = 0; te < O; te++) {
16017
- let xe = B[te], he = a.value.FirstOrDefault((M) => M.title == xe);
16016
+ for (let re = 0; re < O; re++) {
16017
+ let xe = F[re], he = a.value.FirstOrDefault((V) => V.title == xe);
16018
16018
  if (he == null || !he.isHeBing) continue;
16019
16019
  let ve, ge = 0, N = 0;
16020
- for (let M = 0; M < H.length; M++) {
16021
- if (H[M].length < te) continue;
16022
- let P = H[M][te];
16023
- P == ve ? N = M : (ge != N && ne.push({ s: { r: ge, c: te }, e: { r: N, c: te } }), ge = M, N = M, ve = P);
16020
+ for (let V = 0; V < R.length; V++) {
16021
+ if (R[V].length < re) continue;
16022
+ let P = R[V][re];
16023
+ P == ve ? N = V : (ge != N && ne.push({ s: { r: ge, c: re }, e: { r: N, c: re } }), ge = V, N = V, ve = P);
16024
16024
  }
16025
16025
  }
16026
- ae["!merges"] || (ae["!merges"] = []), ae["!merges"] = ae["!merges"].concat(ne), Object.keys(ae).forEach((te) => {
16027
- te.indexOf("!") < 0 && (ae[te].s = {
16026
+ te["!merges"] || (te["!merges"] = []), te["!merges"] = te["!merges"].concat(ne), Object.keys(te).forEach((re) => {
16027
+ re.indexOf("!") < 0 && (te[re].s = {
16028
16028
  alignment: {
16029
16029
  //对齐方式
16030
16030
  horizontal: "center",
@@ -16033,55 +16033,55 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
16033
16033
  //竖直居中
16034
16034
  // wrapText: true,//自动换行
16035
16035
  }
16036
- }, te.indexOf("1") !== -1 && (ae[te].s.font = {
16036
+ }, re.indexOf("1") !== -1 && (te[re].s.font = {
16037
16037
  bold: !0,
16038
16038
  sz: 16
16039
- }), te.indexOf("2") !== -1 && (ae[te].s.font = {
16039
+ }), re.indexOf("2") !== -1 && (te[re].s.font = {
16040
16040
  sz: 14
16041
16041
  }));
16042
16042
  });
16043
16043
  const ce = utils.book_new();
16044
- utils.book_append_sheet(ce, ae, "sheet1"), writeFileSync(ce, s.tabName + L("导出") + ".xlsx");
16044
+ utils.book_append_sheet(ce, te, "sheet1"), writeFileSync(ce, s.tabName + L("导出") + ".xlsx");
16045
16045
  };
16046
16046
  let d = /^[+-]?([0-9]+[.][0-9]*|[.][0-9]+)$/;
16047
16047
  const m = ({ columns: S, data: O }) => {
16048
- let F = [];
16049
- return S.forEach((B, H) => {
16050
- if (H === 0) {
16051
- F[H] = L("合计");
16048
+ let D = [];
16049
+ return S.forEach((F, R) => {
16050
+ if (R === 0) {
16051
+ D[R] = L("合计");
16052
16052
  return;
16053
16053
  }
16054
- let ae = a.value.FirstOrDefault((ce) => ce.dataKey == B.property && ce.isSummary);
16055
- if (ae == null) {
16056
- F[H] = "";
16054
+ let te = a.value.FirstOrDefault((ce) => ce.dataKey == F.property && ce.isSummary);
16055
+ if (te == null) {
16056
+ D[R] = "";
16057
16057
  return;
16058
16058
  }
16059
- F[H] = 0;
16059
+ D[R] = 0;
16060
16060
  let ne = !1;
16061
16061
  O.forEach((ce) => {
16062
16062
  if (!ce.src.IgnoreSummary) {
16063
- let te = ce[ae.dataKey];
16064
- !ne && d.test(te) && (ne = !0);
16065
- let xe = Number(ce[ae.dataKey]);
16066
- Number.isNaN(xe) || (F[H] += xe);
16063
+ let re = ce[te.dataKey];
16064
+ !ne && d.test(re) && (ne = !0);
16065
+ let xe = Number(ce[te.dataKey]);
16066
+ Number.isNaN(xe) || (D[R] += xe);
16067
16067
  }
16068
- }), ne && (F[H] = F[H].toFixed(2));
16069
- }), F;
16068
+ }), ne && (D[R] = D[R].toFixed(2));
16069
+ }), D;
16070
16070
  }, u = async (S, O) => {
16071
- let F = S[O.dataKey];
16072
- if (F == "合计") return F;
16071
+ let D = S[O.dataKey];
16072
+ if (D == "合计") return D;
16073
16073
  if (O.EnumType) {
16074
- let B = O.EnumType;
16075
- for (let H in B)
16076
- if (B[H] == F) return L(H);
16074
+ let F = O.EnumType;
16075
+ for (let R in F)
16076
+ if (F[R] == D) return L(R);
16077
16077
  return "";
16078
16078
  }
16079
- return O.FnGet ? await O.FnGet(S) : F;
16079
+ return O.FnGet ? await O.FnGet(S) : D;
16080
16080
  }, _ = (S) => {
16081
16081
  S.srcFilter = S.srcFilter || S.filters, S.filterText == "" ? S.filters = S.srcFilter : S.filters = S.srcFilter.filter((O) => O.text.indexOf(S.filterText) >= 0);
16082
16082
  };
16083
16083
  window.__id || (window.__id = 1);
16084
- const C = () => __id++, I = computed({
16084
+ const C = () => __id++, B = computed({
16085
16085
  get: () => a.value.some((S) => S.isSummary)
16086
16086
  });
16087
16087
  watch(
@@ -16093,49 +16093,49 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
16093
16093
  b(!0);
16094
16094
  });
16095
16095
  const k = async (S) => {
16096
- S.filterList = S.filters.Where((O) => !S.filterList.Exists((F) => F == O.text)).Select((O) => O.text), await b(!0), S.isVisible = !1;
16096
+ S.filterList = S.filters.Where((O) => !S.filterList.Exists((D) => D == O.text)).Select((O) => O.text), await b(!0), S.isVisible = !1;
16097
16097
  }, b = async (S) => {
16098
16098
  if (S) {
16099
- let F = [];
16100
- s.columnArray.forEach((B) => {
16101
- let H = {};
16102
- for (let ae in B) H[ae] = B[ae];
16103
- H.isFilter && (H.filters || (H.filterText = "", H.filterList = [], H.filters = [], H.Id = C())), F.push(H);
16104
- }), a.value = F;
16099
+ let D = [];
16100
+ s.columnArray.forEach((F) => {
16101
+ let R = {};
16102
+ for (let te in F) R[te] = F[te];
16103
+ R.isFilter && (R.filters || (R.filterText = "", R.filterList = [], R.filters = [], R.Id = C())), D.push(R);
16104
+ }), a.value = D;
16105
16105
  }
16106
16106
  let O = [];
16107
- for (let F = 0; F < s.data.length; F++) {
16108
- let B = s.data[F];
16109
- B.src = B;
16110
- let H = {};
16111
- for (let ae = 0; ae < a.value.length; ae++) {
16112
- let ne = a.value[ae];
16113
- H[ne.dataKey] = await u(B, ne);
16107
+ for (let D = 0; D < s.data.length; D++) {
16108
+ let F = s.data[D];
16109
+ F.src = F;
16110
+ let R = {};
16111
+ for (let te = 0; te < a.value.length; te++) {
16112
+ let ne = a.value[te];
16113
+ R[ne.dataKey] = await u(F, ne);
16114
16114
  }
16115
- H.src = B, O.push(H);
16115
+ R.src = F, O.push(R);
16116
16116
  }
16117
- S && a.value.forEach((F) => {
16118
- if (F.isFilter) {
16119
- let B = [];
16120
- O.forEach((H) => {
16121
- let ae = H[F.dataKey];
16122
- B.some((ne) => ne.value == ae) || B.push({ text: ae, value: ae });
16123
- }), F.filters = B;
16117
+ S && a.value.forEach((D) => {
16118
+ if (D.isFilter) {
16119
+ let F = [];
16120
+ O.forEach((R) => {
16121
+ let te = R[D.dataKey];
16122
+ F.some((ne) => ne.value == te) || F.push({ text: te, value: te });
16123
+ }), D.filters = F;
16124
16124
  }
16125
- }), n.value = O.filter((F) => {
16126
- for (let B = 0; B < a.value.length; B++) {
16127
- let H = a.value[B];
16128
- if (H.isFilter && H.filterList && H.filterList.length > 0 && !H.filterList.some((ae) => ae == F[H.dataKey]))
16125
+ }), n.value = O.filter((D) => {
16126
+ for (let F = 0; F < a.value.length; F++) {
16127
+ let R = a.value[F];
16128
+ if (R.isFilter && R.filterList && R.filterList.length > 0 && !R.filterList.some((te) => te == D[R.dataKey]))
16129
16129
  return !1;
16130
16130
  }
16131
16131
  return !0;
16132
16132
  });
16133
16133
  }, G = t, z = (S, O) => {
16134
- let F = s.commandArray.FirstOrDefault((B) => typeof B == "object" && B.Name == S);
16135
- F && (F.onClick ? F.onClick(O) : F.OnClick && F.OnClick(O)), G("command", S, O);
16134
+ let D = s.commandArray.FirstOrDefault((F) => typeof F == "object" && F.Name == S);
16135
+ D && (D.onClick ? D.onClick(O) : D.OnClick && D.OnClick(O)), G("command", S, O);
16136
16136
  }, A = (S) => {
16137
16137
  n.value.ForEach((O) => O.src.checked = !1), S.forEach((O) => O.src.checked = !0), G("select", S);
16138
- }, X = (S) => {
16138
+ }, H = (S) => {
16139
16139
  };
16140
16140
  return r({
16141
16141
  onUpdateData: b,
@@ -16151,7 +16151,7 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
16151
16151
  border: "",
16152
16152
  "highlight-current-row": "",
16153
16153
  "row-key": "Id",
16154
- "show-summary": I.value,
16154
+ "show-summary": B.value,
16155
16155
  class: "qktab",
16156
16156
  "sum-text": unref(L)("合计"),
16157
16157
  "span-method": f,
@@ -16172,195 +16172,204 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
16172
16172
  label: unref(L)("行号"),
16173
16173
  fixed: "left"
16174
16174
  }, null, 8, ["label"])) : createCommentVNode("", !0),
16175
- a.value.Exists((F) => F.groupName) ? (openBlock(!0), createElementBlock(Fragment, { key: 2 }, renderList(a.value.GroupBy((F) => F.groupName), (F) => (openBlock(), createBlock(unref(ElTableColumn), {
16176
- label: F[0].groupName,
16177
- "min-width": F[0].width,
16178
- "show-overflow-tooltip": ""
16179
- }, {
16180
- default: withCtx(({ row: B }) => [
16181
- (openBlock(!0), createElementBlock(Fragment, null, renderList(F, (H) => (openBlock(), createElementBlock("div", null, [
16182
- createTextVNode(toDisplayString(H.title) + ": ", 1),
16183
- H.color ? (openBlock(), createElementBlock("span", {
16184
- key: 1,
16185
- style: normalizeStyle("color:" + H.color)
16186
- }, toDisplayString(B[H.dataKey]), 5)) : (openBlock(), createElementBlock("span", _hoisted_2$9, toDisplayString(B[H.dataKey]), 1))
16187
- ]))), 256))
16188
- ]),
16189
- _: 2
16190
- }, 1032, ["label", "min-width"]))), 256)) : createCommentVNode("", !0),
16191
- (openBlock(!0), createElementBlock(Fragment, null, renderList(a.value, (F) => (openBlock(), createBlock(unref(ElTableColumn), {
16192
- prop: F.dataKey,
16193
- label: unref(L)(F.title),
16194
- "min-width": F.width,
16195
- "show-overflow-tooltip": ""
16196
- }, {
16197
- header: withCtx(() => [
16198
- createElementVNode("span", null, toDisplayString(unref(L)(F.title)), 1),
16199
- F.isFilter ? (openBlock(), createBlock(unref(ElPopover), {
16200
- trigger: "click",
16201
- key: F.Id,
16202
- width: "400px",
16203
- visible: F.isVisible,
16204
- "onUpdate:visible": (B) => F.isVisible = B
16205
- }, {
16206
- reference: withCtx(() => [
16207
- createElementVNode("div", _hoisted_3$7, [
16208
- createElementVNode("div", _hoisted_4$6, [
16209
- F.filterList.length > 0 ? (openBlock(), createBlock(unref(ElIcon), {
16210
- key: 0,
16211
- class: "havfilter myicon"
16175
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(a.value.Where((D, F) => (D.groupName || (D.groupName = F), !0)).GroupBy((D) => D.groupName), (D) => (openBlock(), createElementBlock(Fragment, null, [
16176
+ D.length > 1 ? (openBlock(), createBlock(unref(ElTableColumn), {
16177
+ key: 0,
16178
+ label: D[0].groupName,
16179
+ "min-width": D[0].width,
16180
+ "show-overflow-tooltip": ""
16181
+ }, {
16182
+ default: withCtx(({ row: F }) => [
16183
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(D, (R) => (openBlock(), createElementBlock("div", null, [
16184
+ createTextVNode(toDisplayString(R.title) + ": ", 1),
16185
+ R.color ? (openBlock(), createElementBlock("span", {
16186
+ key: 1,
16187
+ style: normalizeStyle("color:" + R.color)
16188
+ }, toDisplayString(F[R.dataKey]), 5)) : (openBlock(), createElementBlock("span", _hoisted_2$9, toDisplayString(F[R.dataKey]), 1))
16189
+ ]))), 256))
16190
+ ]),
16191
+ _: 2
16192
+ }, 1032, ["label", "min-width"])) : (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(D, (F) => (openBlock(), createBlock(unref(ElTableColumn), {
16193
+ prop: F.dataKey,
16194
+ label: unref(L)(F.title),
16195
+ "min-width": F.width,
16196
+ "show-overflow-tooltip": "",
16197
+ align: "center"
16198
+ }, {
16199
+ header: withCtx(() => [
16200
+ createElementVNode("span", null, toDisplayString(unref(L)(F.title)), 1),
16201
+ F.isFilter ? (openBlock(), createBlock(unref(ElPopover), {
16202
+ trigger: "click",
16203
+ key: F.Id,
16204
+ width: "400px",
16205
+ visible: F.isVisible,
16206
+ "onUpdate:visible": (R) => F.isVisible = R
16207
+ }, {
16208
+ reference: withCtx(() => [
16209
+ createElementVNode("div", _hoisted_3$7, [
16210
+ createElementVNode("div", _hoisted_4$6, [
16211
+ F.filterList.length > 0 ? (openBlock(), createBlock(unref(ElIcon), {
16212
+ key: 0,
16213
+ class: "havfilter myicon"
16214
+ }, {
16215
+ default: withCtx(() => [
16216
+ createVNode(unref(Setting))
16217
+ ]),
16218
+ _: 1
16219
+ })) : (openBlock(), createBlock(unref(ElIcon), {
16220
+ key: 1,
16221
+ class: "myicon"
16222
+ }, {
16223
+ default: withCtx(() => [
16224
+ createVNode(unref(Setting))
16225
+ ]),
16226
+ _: 1
16227
+ }))
16228
+ ])
16229
+ ])
16230
+ ]),
16231
+ default: withCtx(() => [
16232
+ createElementVNode("div", null, [
16233
+ createVNode(unref(ElInput), {
16234
+ modelValue: F.filterText,
16235
+ "onUpdate:modelValue": (R) => F.filterText = R,
16236
+ onInput: (R) => _(F)
16237
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"]),
16238
+ createVNode(unref(ElCheckboxGroup), {
16239
+ modelValue: F.filterList,
16240
+ "onUpdate:modelValue": (R) => F.filterList = R,
16241
+ class: "filtercheck",
16242
+ onChange: (R) => H()
16212
16243
  }, {
16213
16244
  default: withCtx(() => [
16214
- createVNode(unref(Setting))
16245
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(F.filters, (R) => (openBlock(), createBlock(unref(ElCheckbox), {
16246
+ label: R.text,
16247
+ value: R.text,
16248
+ style: { width: "400px" }
16249
+ }, null, 8, ["label", "value"]))), 256))
16215
16250
  ]),
16216
- _: 1
16217
- })) : (openBlock(), createBlock(unref(ElIcon), {
16218
- key: 1,
16219
- class: "myicon"
16251
+ _: 2
16252
+ }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
16253
+ ]),
16254
+ createElementVNode("div", null, [
16255
+ createVNode(unref(ElButton), {
16256
+ size: "small",
16257
+ type: "primary",
16258
+ onClick: (R) => {
16259
+ b(!1), F.isVisible = !1;
16260
+ }
16220
16261
  }, {
16221
16262
  default: withCtx(() => [
16222
- createVNode(unref(Setting))
16263
+ createTextVNode(toDisplayString(unref(L)("确定")), 1)
16223
16264
  ]),
16224
- _: 1
16225
- }))
16265
+ _: 2
16266
+ }, 1032, ["onClick"]),
16267
+ createVNode(unref(ElButton), {
16268
+ size: "small",
16269
+ type: "danger",
16270
+ onClick: (R) => {
16271
+ F.filterList = [], b(!1), F.isVisible = !1;
16272
+ }
16273
+ }, {
16274
+ default: withCtx(() => [
16275
+ createTextVNode(toDisplayString(unref(L)("清空")), 1)
16276
+ ]),
16277
+ _: 2
16278
+ }, 1032, ["onClick"]),
16279
+ createVNode(unref(ElButton), {
16280
+ size: "small",
16281
+ type: "primary",
16282
+ onClick: (R) => k(F)
16283
+ }, {
16284
+ default: withCtx(() => [
16285
+ createTextVNode(toDisplayString(unref(L)("反选")), 1)
16286
+ ]),
16287
+ _: 2
16288
+ }, 1032, ["onClick"])
16226
16289
  ])
16227
- ])
16228
- ]),
16229
- default: withCtx(() => [
16230
- createElementVNode("div", null, [
16231
- createVNode(unref(ElInput), {
16232
- modelValue: F.filterText,
16233
- "onUpdate:modelValue": (B) => F.filterText = B,
16234
- onInput: (B) => _(F)
16235
- }, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"]),
16236
- createVNode(unref(ElCheckboxGroup), {
16237
- modelValue: F.filterList,
16238
- "onUpdate:modelValue": (B) => F.filterList = B,
16239
- class: "filtercheck",
16240
- onChange: (B) => X()
16241
- }, {
16242
- default: withCtx(() => [
16243
- (openBlock(!0), createElementBlock(Fragment, null, renderList(F.filters, (B) => (openBlock(), createBlock(unref(ElCheckbox), {
16244
- label: B.text,
16245
- value: B.text,
16246
- style: { width: "400px" }
16247
- }, null, 8, ["label", "value"]))), 256))
16248
- ]),
16249
- _: 2
16250
- }, 1032, ["modelValue", "onUpdate:modelValue", "onChange"])
16251
16290
  ]),
16252
- createElementVNode("div", null, [
16253
- createVNode(unref(ElButton), {
16254
- size: "small",
16255
- type: "primary",
16256
- onClick: (B) => {
16257
- b(!1), F.isVisible = !1;
16258
- }
16259
- }, {
16260
- default: withCtx(() => [
16261
- createTextVNode(toDisplayString(unref(L)("确定")), 1)
16262
- ]),
16263
- _: 2
16264
- }, 1032, ["onClick"]),
16265
- createVNode(unref(ElButton), {
16266
- size: "small",
16267
- type: "danger",
16268
- onClick: (B) => {
16269
- F.filterList = [], b(!1), F.isVisible = !1;
16270
- }
16271
- }, {
16272
- default: withCtx(() => [
16273
- createTextVNode(toDisplayString(unref(L)("清空")), 1)
16274
- ]),
16275
- _: 2
16276
- }, 1032, ["onClick"]),
16277
- createVNode(unref(ElButton), {
16278
- size: "small",
16291
+ _: 2
16292
+ }, 1032, ["visible", "onUpdate:visible"])) : createCommentVNode("", !0)
16293
+ ]),
16294
+ default: withCtx(({ row: R }) => [
16295
+ F.Type ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
16296
+ F.Type == "PIC" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
16297
+ R[F.dataKey] ? (openBlock(), createBlock(unref(ElLink), {
16298
+ key: 0,
16279
16299
  type: "primary",
16280
- onClick: (B) => k(F)
16300
+ onClick: (te) => l(R[F.dataKey])
16281
16301
  }, {
16282
- default: withCtx(() => [
16283
- createTextVNode(toDisplayString(unref(L)("反选")), 1)
16284
- ]),
16302
+ default: withCtx(() => O[2] || (O[2] = [
16303
+ createTextVNode("查看")
16304
+ ])),
16285
16305
  _: 2
16286
- }, 1032, ["onClick"])
16287
- ])
16288
- ]),
16289
- _: 2
16290
- }, 1032, ["visible", "onUpdate:visible"])) : createCommentVNode("", !0)
16291
- ]),
16292
- default: withCtx(({ row: B }) => [
16293
- F.Type ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
16294
- F.Type == "PIC" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
16295
- B[F.dataKey] ? (openBlock(), createBlock(unref(ElLink), {
16296
- key: 0,
16297
- type: "primary",
16298
- onClick: (H) => l(B[F.dataKey])
16299
- }, {
16300
- default: withCtx(() => O[2] || (O[2] = [
16301
- createTextVNode("查看")
16302
- ])),
16303
- _: 2
16304
- }, 1032, ["onClick"])) : createCommentVNode("", !0)
16305
- ], 64)) : F.Type == "ICON" ? (openBlock(), createElementBlock("svg", _hoisted_5$5, [
16306
- createElementVNode("use", {
16307
- "xlink:href": B[F.dataKey]
16308
- }, null, 8, _hoisted_6$5)
16309
- ])) : F.Type == "COLOR" ? (openBlock(), createElementBlock("div", {
16310
- key: 2,
16311
- style: normalizeStyle("width: 100%;height: 100%;background-color:" + B[F.dataKey])
16312
- }, " ", 4)) : F.Type == "DATE" ? (openBlock(), createElementBlock("span", {
16313
- key: 3,
16314
- style: normalizeStyle("color:" + o(B[F.dataKey]))
16315
- }, toDisplayString(B[F.dataKey]), 5)) : (openBlock(), createElementBlock(Fragment, { key: 4 }, [
16316
- createTextVNode(toDisplayString(B[F.dataKey]), 1)
16306
+ }, 1032, ["onClick"])) : createCommentVNode("", !0)
16307
+ ], 64)) : F.Type == "ICON" ? (openBlock(), createElementBlock("svg", _hoisted_5$5, [
16308
+ createElementVNode("use", {
16309
+ "xlink:href": R[F.dataKey]
16310
+ }, null, 8, _hoisted_6$5)
16311
+ ])) : F.Type == "COLOR" ? (openBlock(), createElementBlock("div", {
16312
+ key: 2,
16313
+ style: normalizeStyle("width: 100%;height: 100%;background-color:" + R[F.dataKey])
16314
+ }, " ", 4)) : F.Type == "DATE" ? (openBlock(), createElementBlock("span", {
16315
+ key: 3,
16316
+ style: normalizeStyle("color:" + o(R[F.dataKey]))
16317
+ }, toDisplayString(R[F.dataKey]), 5)) : (openBlock(), createElementBlock(Fragment, { key: 4 }, [
16318
+ F.color ? (openBlock(), createElementBlock("span", {
16319
+ key: 1,
16320
+ style: normalizeStyle("color:" + F.color)
16321
+ }, toDisplayString(R[F.dataKey]), 5)) : (openBlock(), createElementBlock("span", _hoisted_7$5, toDisplayString(R[F.dataKey]), 1))
16322
+ ], 64))
16323
+ ], 64)) : F.OnClick ? (openBlock(), createBlock(unref(ElLink), {
16324
+ key: 1,
16325
+ type: "success",
16326
+ onClick: (te) => F.OnClick(R)
16327
+ }, {
16328
+ default: withCtx(() => [
16329
+ createTextVNode(toDisplayString(R[F.dataKey]), 1)
16330
+ ]),
16331
+ _: 2
16332
+ }, 1032, ["onClick"])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
16333
+ F.color ? (openBlock(), createElementBlock("span", {
16334
+ key: 1,
16335
+ style: normalizeStyle("color:" + F.color)
16336
+ }, toDisplayString(R[F.dataKey]), 5)) : (openBlock(), createElementBlock("span", _hoisted_8$5, toDisplayString(R[F.dataKey]), 1))
16317
16337
  ], 64))
16318
- ], 64)) : F.OnClick ? (openBlock(), createBlock(unref(ElLink), {
16319
- key: 1,
16320
- type: "success",
16321
- onClick: (H) => F.OnClick(B)
16322
- }, {
16323
- default: withCtx(() => [
16324
- createTextVNode(toDisplayString(B[F.dataKey]), 1)
16325
- ]),
16326
- _: 2
16327
- }, 1032, ["onClick"])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
16328
- createTextVNode(toDisplayString(B[F.dataKey]), 1)
16329
- ], 64))
16330
- ]),
16331
- _: 2
16332
- }, 1032, ["prop", "label", "min-width"]))), 256)),
16338
+ ]),
16339
+ _: 2
16340
+ }, 1032, ["prop", "label", "min-width"]))), 256))
16341
+ ], 64))), 256)),
16333
16342
  s.commandArray.length > 0 ? (openBlock(), createBlock(unref(ElTableColumn), {
16334
- key: 3,
16343
+ key: 2,
16335
16344
  label: unref(L)("功能"),
16336
16345
  "min-width": s.toolWidth,
16337
16346
  fixed: "right"
16338
16347
  }, {
16339
- default: withCtx(({ row: F }) => [
16340
- s.commandArray.Where((B) => B.IsShow ? B.IsShow(F, s.powerArray) : !0).length > s.maxCommand ? (openBlock(), createBlock(unref(ElDropdown), {
16348
+ default: withCtx(({ row: D }) => [
16349
+ s.commandArray.Where((F) => F.IsShow ? F.IsShow(D, s.powerArray) : !0).length > s.maxCommand ? (openBlock(), createBlock(unref(ElDropdown), {
16341
16350
  key: 0,
16342
- onCommand: (B) => z(B, F)
16351
+ onCommand: (F) => z(F, D)
16343
16352
  }, {
16344
16353
  dropdown: withCtx(() => [
16345
16354
  createVNode(unref(ElDropdownMenu), null, {
16346
16355
  default: withCtx(() => [
16347
- (openBlock(!0), createElementBlock(Fragment, null, renderList(s.commandArray, (B) => (openBlock(), createElementBlock(Fragment, null, [
16348
- typeof B == "string" ? (openBlock(), createBlock(unref(ElDropdownItem), {
16356
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(s.commandArray, (F) => (openBlock(), createElementBlock(Fragment, null, [
16357
+ typeof F == "string" ? (openBlock(), createBlock(unref(ElDropdownItem), {
16349
16358
  key: 0,
16350
- command: B
16359
+ command: F
16351
16360
  }, {
16352
16361
  default: withCtx(() => [
16353
- createTextVNode(toDisplayString(unref(L)(B)), 1)
16362
+ createTextVNode(toDisplayString(unref(L)(F)), 1)
16354
16363
  ]),
16355
16364
  _: 2
16356
- }, 1032, ["command"])) : !B.IsShow || B.IsShow(F, s.powerArray) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
16357
- !B.CheckPower || s.powerArray.Exists((H) => H.Name == B.Name) ? (openBlock(), createBlock(unref(ElDropdownItem), {
16365
+ }, 1032, ["command"])) : !F.IsShow || F.IsShow(D, s.powerArray) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
16366
+ !F.CheckPower || s.powerArray.Exists((R) => R.Name == F.Name) ? (openBlock(), createBlock(unref(ElDropdownItem), {
16358
16367
  key: 0,
16359
- command: B.Name,
16360
- disabled: B.IsDisabled ? B.IsDisabled(F) : !1
16368
+ command: F.Name,
16369
+ disabled: F.IsDisabled ? F.IsDisabled(D) : !1
16361
16370
  }, {
16362
16371
  default: withCtx(() => [
16363
- createTextVNode(toDisplayString(unref(L)(B.Name)), 1)
16372
+ createTextVNode(toDisplayString(unref(L)(F.Name)), 1)
16364
16373
  ]),
16365
16374
  _: 2
16366
16375
  }, 1032, ["command", "disabled"])) : createCommentVNode("", !0)
@@ -16379,27 +16388,27 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
16379
16388
  })
16380
16389
  ]),
16381
16390
  _: 2
16382
- }, 1032, ["onCommand"])) : (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(s.commandArray, (B) => (openBlock(), createElementBlock(Fragment, null, [
16383
- typeof B == "string" ? (openBlock(), createBlock(unref(ElLink), {
16391
+ }, 1032, ["onCommand"])) : (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(s.commandArray, (F) => (openBlock(), createElementBlock(Fragment, null, [
16392
+ typeof F == "string" ? (openBlock(), createBlock(unref(ElLink), {
16384
16393
  key: 0,
16385
16394
  style: { margin: "0 5px" },
16386
- type: B == "删除" ? "danger" : "primary",
16387
- onClick: (H) => z(B, F)
16395
+ type: F == "删除" ? "danger" : "primary",
16396
+ onClick: (R) => z(F, D)
16388
16397
  }, {
16389
16398
  default: withCtx(() => [
16390
- createTextVNode(toDisplayString(B), 1)
16399
+ createTextVNode(toDisplayString(F), 1)
16391
16400
  ]),
16392
16401
  _: 2
16393
- }, 1032, ["type", "onClick"])) : !B.IsShow || B.IsShow(F, s.powerArray) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
16394
- !B.CheckPower || s.powerArray.Exists((H) => H.Name == B.Name) ? (openBlock(), createBlock(unref(ElLink), {
16402
+ }, 1032, ["type", "onClick"])) : !F.IsShow || F.IsShow(D, s.powerArray) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
16403
+ !F.CheckPower || s.powerArray.Exists((R) => R.Name == F.Name) ? (openBlock(), createBlock(unref(ElLink), {
16395
16404
  key: 0,
16396
16405
  style: { margin: "0 5px" },
16397
- type: B.Name == "删除" ? "danger" : "primary",
16398
- onClick: (H) => z(B.Name, F),
16399
- disabled: B.IsDisabled ? B.IsDisabled(F) : !1
16406
+ type: F.Name == "删除" ? "danger" : "primary",
16407
+ onClick: (R) => z(F.Name, D),
16408
+ disabled: F.IsDisabled ? F.IsDisabled(D) : !1
16400
16409
  }, {
16401
16410
  default: withCtx(() => [
16402
- createTextVNode(toDisplayString(B.Name), 1)
16411
+ createTextVNode(toDisplayString(F.Name), 1)
16403
16412
  ]),
16404
16413
  _: 2
16405
16414
  }, 1032, ["type", "onClick", "disabled"])) : createCommentVNode("", !0)
@@ -16413,7 +16422,7 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
16413
16422
  }, 8, ["data", "show-summary", "sum-text"]),
16414
16423
  createVNode(_sfc_main$m, {
16415
16424
  modelValue: i.IsVisible,
16416
- "onUpdate:modelValue": O[0] || (O[0] = (F) => i.IsVisible = F),
16425
+ "onUpdate:modelValue": O[0] || (O[0] = (D) => i.IsVisible = D),
16417
16426
  data: i.dataArray,
16418
16427
  title: s.tabName,
16419
16428
  columnArray: a.value,
@@ -16421,7 +16430,7 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
16421
16430
  }, null, 8, ["modelValue", "data", "title", "columnArray", "printOption"]),
16422
16431
  createVNode(byDialog, {
16423
16432
  modelValue: i.isShowPic,
16424
- "onUpdate:modelValue": O[1] || (O[1] = (F) => i.isShowPic = F),
16433
+ "onUpdate:modelValue": O[1] || (O[1] = (D) => i.isShowPic = D),
16425
16434
  url: i.PicUrl,
16426
16435
  height: "auto",
16427
16436
  width: "800px",
@@ -16431,13 +16440,13 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
16431
16440
  createElementVNode("img", {
16432
16441
  src: i.PicUrl,
16433
16442
  style: { "max-width": "80%", "max-height": "80%" }
16434
- }, null, 8, _hoisted_7$5)
16443
+ }, null, 8, _hoisted_9$5)
16435
16444
  ]),
16436
16445
  _: 1
16437
16446
  }, 8, ["modelValue", "url"])
16438
16447
  ]));
16439
16448
  }
16440
- }, DataList = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-97946c73"]]), CreateNewPrint = () => {
16449
+ }, DataList = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-0c2dfbfe"]]), CreateNewPrint = () => {
16441
16450
  let config = { Pid: "" }, LODOP = getLodop();
16442
16451
  return {
16443
16452
  onMessage: (e, r) => {
@@ -16646,7 +16655,7 @@ const SafeCall$1 = async (e, r) => {
16646
16655
  setup(e, { expose: r, emit: t }) {
16647
16656
  const a = useSlots(), n = ref([]), i = ref(!0), s = ref(!0), l = ref(), o = reactive({ IsVisible: !1, DataModel: {}, Title: "" }), f = ref(null), c = ref(0), p = ref(1), h = ref(20), d = window.ProjectHost, m = e, u = t, _ = ref([]), C = (z) => {
16648
16657
  u("select", z);
16649
- }, I = computed({
16658
+ }, B = computed({
16650
16659
  get: () => {
16651
16660
  var z = [];
16652
16661
  return m.commandArray && m.commandArray.length > 0 && m.commandArray.forEach((A) => z.push(A)), _.value.some((A) => A.Name == "编辑") ? z.push("编辑") : _.value.some((A) => A.Name == "查看") && z.push("查看"), _.value.some((A) => A.Name == "删除") && z.push("删除"), z;
@@ -16669,9 +16678,9 @@ const SafeCall$1 = async (e, r) => {
16669
16678
  case "删除": {
16670
16679
  confirm(L("数据删除后将不能恢复,请确认是否删除")) && SafeCall$1(async () => {
16671
16680
  await AjaxCallWeb(`${d}/${m.controller}/Delete`, { Id: A.Id }), ElMessage({ message: L("数据删除成功!"), type: "success" });
16672
- for (let X = 0; X < n.value.length; X++)
16673
- if (n.value[X].Id == A.Id) {
16674
- n.value.splice(X, 1);
16681
+ for (let H = 0; H < n.value.length; H++)
16682
+ if (n.value[H].Id == A.Id) {
16683
+ n.value.splice(H, 1);
16675
16684
  break;
16676
16685
  }
16677
16686
  f.value.onUpdateData(!0);
@@ -16681,19 +16690,19 @@ const SafeCall$1 = async (e, r) => {
16681
16690
  case "批量删除": {
16682
16691
  if (confirm(L(`数据删除后无法恢复!!\r
16683
16692
  确认删除吗?`))) {
16684
- let X = n.value.filter((S) => S.checked);
16685
- if (X.length == 0) return ElMessage({ message: L("未选择需要删除的数据"), type: "error" });
16693
+ let H = n.value.filter((S) => S.checked);
16694
+ if (H.length == 0) return ElMessage({ message: L("未选择需要删除的数据"), type: "error" });
16686
16695
  SafeCall$1(async () => {
16687
- for (let S = 0; S < X.length; S++) {
16688
- let O = X[S].Id;
16696
+ for (let S = 0; S < H.length; S++) {
16697
+ let O = H[S].Id;
16689
16698
  await AjaxCallWeb(`${d}/${m.controller}/Delete`, {
16690
16699
  Id: O
16691
- }), ElMessage({ message: L("删除成功") + `(${S + 1}/${X.length})` });
16700
+ }), ElMessage({ message: L("删除成功") + `(${S + 1}/${H.length})` });
16692
16701
  }
16693
16702
  ElMessage({
16694
- message: L("批量删除") + `:${X.length}` + L("条数据成功"),
16703
+ message: L("批量删除") + `:${H.length}` + L("条数据成功"),
16695
16704
  type: "success"
16696
- }), n.value = n.value.filter((S) => !X.some((O) => O.Id == S.Id)), f.value.onUpdateData(!0);
16705
+ }), n.value = n.value.filter((S) => !H.some((O) => O.Id == S.Id)), f.value.onUpdateData(!0);
16697
16706
  }, L("数据删除中"));
16698
16707
  }
16699
16708
  break;
@@ -16716,7 +16725,7 @@ const SafeCall$1 = async (e, r) => {
16716
16725
  PageSize: h.value
16717
16726
  };
16718
16727
  if (m.searchParam)
16719
- for (var X in m.searchParam) A[X] = m.searchParam[X];
16728
+ for (var H in m.searchParam) A[H] = m.searchParam[H];
16720
16729
  let S = await AjaxCallWeb(`${d}/${m.controller}/GetPage`, A);
16721
16730
  S.data ? (c.value = S.totalCount, S = S.data) : c.value = window.LastResult.totalRows, S.forEach((O) => u("handData", O, !1)), n.value = S;
16722
16731
  }, L("数据查询中"));
@@ -16743,7 +16752,7 @@ const SafeCall$1 = async (e, r) => {
16743
16752
  s.value ? (openBlock(), createBlock(_sfc_main$o, {
16744
16753
  key: 0,
16745
16754
  class: "filter",
16746
- onSearch: A[0] || (A[0] = (X) => G(1)),
16755
+ onSearch: A[0] || (A[0] = (H) => G(1)),
16747
16756
  ref_key: "filter",
16748
16757
  ref: l,
16749
16758
  labelWidth: m.labelWidth
@@ -16756,27 +16765,27 @@ const SafeCall$1 = async (e, r) => {
16756
16765
  createVNode(Tool, {
16757
16766
  total: c.value,
16758
16767
  pageIndex: p.value,
16759
- "onUpdate:pageIndex": A[5] || (A[5] = (X) => p.value = X),
16768
+ "onUpdate:pageIndex": A[5] || (A[5] = (H) => p.value = H),
16760
16769
  pageSize: h.value,
16761
- "onUpdate:pageSize": A[6] || (A[6] = (X) => h.value = X),
16770
+ "onUpdate:pageSize": A[6] || (A[6] = (H) => h.value = H),
16762
16771
  onUpdateData: G,
16763
16772
  class: "tool"
16764
16773
  }, {
16765
16774
  ToolItem: withCtx(() => [
16766
- _.value.some((X) => X.Name == "新增") ? (openBlock(), createBlock(unref(ElButton), {
16775
+ _.value.some((H) => H.Name == "新增") ? (openBlock(), createBlock(unref(ElButton), {
16767
16776
  key: 0,
16768
16777
  type: "primary",
16769
- onClick: A[1] || (A[1] = (X) => k("新增"))
16778
+ onClick: A[1] || (A[1] = (H) => k("新增"))
16770
16779
  }, {
16771
16780
  default: withCtx(() => [
16772
16781
  createTextVNode(toDisplayString(unref(L)("新增")), 1)
16773
16782
  ]),
16774
16783
  _: 1
16775
16784
  })) : createCommentVNode("", !0),
16776
- _.value.some((X) => X.Name == "删除") ? (openBlock(), createBlock(unref(ElButton), {
16785
+ _.value.some((H) => H.Name == "删除") ? (openBlock(), createBlock(unref(ElButton), {
16777
16786
  key: 1,
16778
16787
  type: "danger",
16779
- onClick: A[2] || (A[2] = (X) => k("批量删除"))
16788
+ onClick: A[2] || (A[2] = (H) => k("批量删除"))
16780
16789
  }, {
16781
16790
  default: withCtx(() => [
16782
16791
  createTextVNode(toDisplayString(unref(L)("批量删除")), 1)
@@ -16785,7 +16794,7 @@ const SafeCall$1 = async (e, r) => {
16785
16794
  })) : createCommentVNode("", !0),
16786
16795
  createVNode(unref(ElButton), {
16787
16796
  type: "primary",
16788
- onClick: A[3] || (A[3] = (X) => f.value.exportData())
16797
+ onClick: A[3] || (A[3] = (H) => f.value.exportData())
16789
16798
  }, {
16790
16799
  default: withCtx(() => [
16791
16800
  createTextVNode(toDisplayString(unref(L)("导出")), 1)
@@ -16794,7 +16803,7 @@ const SafeCall$1 = async (e, r) => {
16794
16803
  }),
16795
16804
  createVNode(unref(ElButton), {
16796
16805
  type: "success",
16797
- onClick: A[4] || (A[4] = (X) => f.value.printData())
16806
+ onClick: A[4] || (A[4] = (H) => f.value.printData())
16798
16807
  }, {
16799
16808
  default: withCtx(() => [
16800
16809
  createTextVNode(toDisplayString(unref(L)("打印")), 1)
@@ -16817,14 +16826,14 @@ const SafeCall$1 = async (e, r) => {
16817
16826
  fnGetSelectData: m.fnGetSelectData,
16818
16827
  onCommand: k,
16819
16828
  onSelect: C,
16820
- commandArray: I.value,
16821
- key: I.value,
16829
+ commandArray: B.value,
16830
+ key: B.value,
16822
16831
  powerArray: _.value,
16823
16832
  printOption: m.printOption
16824
16833
  }, null, 8, ["data", "tabName", "columnArray", "toolWidth", "maxCommand", "fnGetSelectData", "commandArray", "powerArray", "printOption"])),
16825
16834
  createVNode(unref(ElDialog), {
16826
16835
  modelValue: o.IsVisible,
16827
- "onUpdate:modelValue": A[7] || (A[7] = (X) => o.IsVisible = X),
16836
+ "onUpdate:modelValue": A[7] || (A[7] = (H) => o.IsVisible = H),
16828
16837
  title: o.Title,
16829
16838
  width: m.editDlgWidth,
16830
16839
  top: m.top,
@@ -16898,8 +16907,8 @@ const SafeCall$1 = async (e, r) => {
16898
16907
  const a = useSlots(), n = ref([]);
16899
16908
  ref(!0);
16900
16909
  const i = ref(!0), s = ref(null), l = computed({
16901
- get: () => o.columnArray.Where((I) => I.isSummary && !I.hideTotal)
16902
- }), o = e, f = async (I, k) => {
16910
+ get: () => o.columnArray.Where((B) => B.isSummary && !B.hideTotal)
16911
+ }), o = e, f = async (B, k) => {
16903
16912
  k = k || L("数据加载中"), k += "...";
16904
16913
  let b = ElLoading.service({
16905
16914
  lock: !0,
@@ -16909,7 +16918,7 @@ const SafeCall$1 = async (e, r) => {
16909
16918
  background: "rgba(0, 0, 0, 0.7)"
16910
16919
  });
16911
16920
  try {
16912
- await I();
16921
+ await B();
16913
16922
  } catch (G) {
16914
16923
  let z = G.message || G.resultcontent;
16915
16924
  ElMessageBox.alert(L(z), L("错误提示"));
@@ -16917,31 +16926,31 @@ const SafeCall$1 = async (e, r) => {
16917
16926
  b.close();
16918
16927
  }, c = computed({
16919
16928
  get: () => {
16920
- let I = {
16929
+ let B = {
16921
16930
  TitleArray: [o.tabName],
16922
16931
  FootArray: [L("打单日期") + `:${(/* @__PURE__ */ new Date()).ToString("yyyy-MM-dd HH:mm:ss")}`]
16923
16932
  };
16924
- return o.printOption.TitleArray && o.printOption.TitleArray.length > 0 && o.printOption.TitleArray.forEach((k) => I.TitleArray.push(k)), o.printOption.FootArray && o.printOption.FootArray.length > 0 && o.printOption.FootArray.forEach((k) => I.FootArray.push(k)), I;
16933
+ return o.printOption.TitleArray && o.printOption.TitleArray.length > 0 && o.printOption.TitleArray.forEach((k) => B.TitleArray.push(k)), o.printOption.FootArray && o.printOption.FootArray.length > 0 && o.printOption.FootArray.forEach((k) => B.FootArray.push(k)), B;
16925
16934
  }
16926
16935
  }), p = t, h = ref([]), d = computed({
16927
16936
  get: () => {
16928
- var I = [];
16929
- return o.commandArray && o.commandArray.length > 0 && o.commandArray.forEach((k) => I.push(k)), I;
16937
+ var B = [];
16938
+ return o.commandArray && o.commandArray.length > 0 && o.commandArray.forEach((k) => B.push(k)), B;
16930
16939
  }
16931
- }), m = (I, k) => {
16932
- switch (I) {
16940
+ }), m = (B, k) => {
16941
+ switch (B) {
16933
16942
  default: {
16934
- p("command", I, k);
16943
+ p("command", B, k);
16935
16944
  break;
16936
16945
  }
16937
16946
  }
16938
16947
  };
16939
16948
  let u = /^[+-]?([0-9]+[.][0-9]*|[.][0-9]+)$/;
16940
- const _ = (I, k, b, G) => {
16941
- if (k == I.length) {
16949
+ const _ = (B, k, b, G) => {
16950
+ if (k == B.length) {
16942
16951
  if (b.forEach((z) => G.push(z)), b.length > 1) {
16943
- let z = { IgnoreSummary: !0, Rows: b }, A = !0, X = b[0];
16944
- for (let S in X) z[S] = X[S];
16952
+ let z = { IgnoreSummary: !0, Rows: b }, A = !0, H = b[0];
16953
+ for (let S in H) z[S] = H[S];
16945
16954
  for (let S = 0; S < o.columnArray.length; S++)
16946
16955
  if (A && o.columnArray[S].isHeBing)
16947
16956
  z[o.columnArray[S].dataKey] = b[0][o.columnArray[S].dataKey];
@@ -16951,28 +16960,28 @@ const SafeCall$1 = async (e, r) => {
16951
16960
  continue;
16952
16961
  }
16953
16962
  if (o.columnArray[S].isSummary) {
16954
- let O = !1, F = 0;
16955
- for (let B = 0; B < b.length; B++) {
16956
- let H = b[B][o.columnArray[S].dataKey];
16957
- !O && u.test(H) && (O = !0), F += H * 1;
16963
+ let O = !1, D = 0;
16964
+ for (let F = 0; F < b.length; F++) {
16965
+ let R = b[F][o.columnArray[S].dataKey];
16966
+ !O && u.test(R) && (O = !0), D += R * 1;
16958
16967
  }
16959
- O ? z[o.columnArray[S].dataKey] = F.toFixed(2) : z[o.columnArray[S].dataKey] = F;
16968
+ O ? z[o.columnArray[S].dataKey] = D.toFixed(2) : z[o.columnArray[S].dataKey] = D;
16960
16969
  } else
16961
16970
  z[o.columnArray[S].dataKey] = "-";
16962
16971
  }
16963
16972
  G.push(z);
16964
16973
  }
16965
16974
  } else {
16966
- let z = b.GroupBy((A) => A[I[k].dataKey]);
16975
+ let z = b.GroupBy((A) => A[B[k].dataKey]);
16967
16976
  for (let A = 0; A < z.length; A++)
16968
- _(I, k + 1, z[A], G);
16977
+ _(B, k + 1, z[A], G);
16969
16978
  }
16970
16979
  }, C = () => {
16971
16980
  f(async () => {
16972
- var I = {};
16981
+ var B = {};
16973
16982
  if (o.searchParam)
16974
- for (var k in o.searchParam) I[k] = o.searchParam[k];
16975
- let b = await AjaxCallWeb(o.url, I);
16983
+ for (var k in o.searchParam) B[k] = o.searchParam[k];
16984
+ let b = await AjaxCallWeb(o.url, B);
16976
16985
  if (b = o.handArray(b), b.forEach((G) => p("handData", G, !1)), o.columnArray.length > 0 && o.columnArray[0].isHeBing && o.columnArray.Exists((G) => G.isSummary)) {
16977
16986
  let G = [];
16978
16987
  for (let A = 0; A < o.columnArray.length; A++)
@@ -16992,14 +17001,14 @@ const SafeCall$1 = async (e, r) => {
16992
17001
  }, L("页面初始化")), o.loadData && await C();
16993
17002
  }), r({
16994
17003
  onSearch: C
16995
- }), (I, k) => (openBlock(), createElementBlock("div", _hoisted_1$d, [
17004
+ }), (B, k) => (openBlock(), createElementBlock("div", _hoisted_1$d, [
16996
17005
  i.value ? (openBlock(), createBlock(_sfc_main$o, {
16997
17006
  key: 0,
16998
17007
  class: "filter",
16999
17008
  onSearch: C
17000
17009
  }, {
17001
17010
  FilterItem: withCtx(() => [
17002
- renderSlot(I.$slots, "FilterItem", { powerArray: h.value }, void 0, !0)
17011
+ renderSlot(B.$slots, "FilterItem", { powerArray: h.value }, void 0, !0)
17003
17012
  ]),
17004
17013
  _: 3
17005
17014
  })) : createCommentVNode("", !0),
@@ -17026,10 +17035,10 @@ const SafeCall$1 = async (e, r) => {
17026
17035
  ]),
17027
17036
  _: 1
17028
17037
  }),
17029
- renderSlot(I.$slots, "ToolItem", { powerArray: h.value }, void 0, !0)
17038
+ renderSlot(B.$slots, "ToolItem", { powerArray: h.value }, void 0, !0)
17030
17039
  ]),
17031
17040
  PageItem: withCtx(() => [
17032
- renderSlot(I.$slots, "PageItem", { powerArray: h.value }, void 0, !0)
17041
+ renderSlot(B.$slots, "PageItem", { powerArray: h.value }, void 0, !0)
17033
17042
  ]),
17034
17043
  _: 3
17035
17044
  }),
@@ -17832,9 +17841,9 @@ ${d.message || d.resultcontent}\r
17832
17841
  style: { width: "200px" }
17833
17842
  }, {
17834
17843
  default: withCtx(() => [
17835
- (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(UserCardTypeEnum$1), (C, I) => (openBlock(), createBlock(unref(ElOption), {
17844
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(unref(UserCardTypeEnum$1), (C, B) => (openBlock(), createBlock(unref(ElOption), {
17836
17845
  value: C,
17837
- label: I
17846
+ label: B
17838
17847
  }, null, 8, ["value", "label"]))), 256))
17839
17848
  ]),
17840
17849
  _: 1