qk-pc-ui 2.8.5 → 2.8.7

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
@@ -1,5 +1,5 @@
1
1
  import { openBlock, createElementBlock, createVNode, unref, withCtx, renderSlot, createTextVNode, toDisplayString, computed, createElementVNode, createBlock, createCommentVNode, ref, reactive, watch, Fragment, renderList, normalizeClass, normalizeStyle, pushScopeId, popScopeId, useSlots, onMounted, nextTick, onBeforeUnmount, onUnmounted, withDirectives, vModelText, withKeys } from "vue";
2
- import { ElForm, ElFormItem, ElButton, ElPagination, ElDialog, ElRow, ElSelect, ElOption, ElMessageBox, ElMessage, ElTable, ElTableColumn, ElPopover, ElInput, ElCheckboxGroup, ElCheckbox, ElImage, ElLink, ElDropdown, ElDropdownMenu, ElDropdownItem, ElLoading, ElDatePicker, ElUpload, ElIcon, ElButtonGroup, ElRadioGroup, ElRadioButton, ElTag, ElTabs, ElTabPane, ElCascader } from "element-plus";
2
+ import { ElForm, ElFormItem, ElButton, ElPagination, ElDialog, ElRow, ElSelect, ElOption, ElMessageBox, ElMessage, ElTable, ElTableColumn, ElPopover, ElInput, ElCheckboxGroup, ElCheckbox, ElImage, ElLink, ElDropdown, ElDropdownMenu, ElDropdownItem, ElLoading, ElDatePicker, ElUpload, ElIcon, ElButtonGroup, ElRadioGroup, ElRadioButton, ElSwitch, ElTag, ElTabs, ElTabPane, ElCascader } from "element-plus";
3
3
  import { L, Sleep, SaasApi, AndroidApi, GetUrlParam, SystemModuleApi, AjaxCallWeb, LocalApi, GetEnumName, MemberApi, UnRegisterKeyboard, RegisterKeyboard, PlayTTS, InfrastructureApi } from "qk-lib-v3";
4
4
  import E from "wangeditor";
5
5
  import axios from "axios";
@@ -648,7 +648,7 @@ function write_num_flt(e, r, t) {
648
648
  if (r.match(/^#+0+$/))
649
649
  return f + pad0r(o, r.length - r.indexOf("0"));
650
650
  if (i = r.match(dec1))
651
- return n = rnd(t, i[1].length).replace(/^([^\.]+)$/, "$1." + hashq(i[1])).replace(/\.$/, "." + hashq(i[1])).replace(/\.(\d*)$/, function(p, u) {
651
+ return n = rnd(t, i[1].length).replace(/^([^\.]+)$/, "$1." + hashq(i[1])).replace(/\.$/, "." + hashq(i[1])).replace(/\.(\d*)$/, function(x, u) {
652
652
  return "." + u + fill("0", hashq(
653
653
  /*::(*/
654
654
  i[1]
@@ -663,8 +663,8 @@ function write_num_flt(e, r, t) {
663
663
  if (i = r.match(/^#,#*,#0/))
664
664
  return write_num_flt(e, r.replace(/^#,#*,/, ""), t);
665
665
  if (i = r.match(/^([0#]+)(\\?-([0#]+))+$/))
666
- return n = _strrev(write_num_flt(e, r.replace(/[\\-]/g, ""), t)), s = 0, _strrev(_strrev(r.replace(/\\/g, "")).replace(/[0#]/g, function(p) {
667
- return s < n.length ? n.charAt(s++) : p === "0" ? "0" : "";
666
+ return n = _strrev(write_num_flt(e, r.replace(/[\\-]/g, ""), t)), s = 0, _strrev(_strrev(r.replace(/\\/g, "")).replace(/[0#]/g, function(x) {
667
+ return s < n.length ? n.charAt(s++) : x === "0" ? "0" : "";
668
668
  }));
669
669
  if (r.match(phone))
670
670
  return n = write_num_flt(e, "##########", t), "(" + n.substr(0, 3) + ") " + n.substr(3, 3) + "-" + n.substr(6);
@@ -692,8 +692,8 @@ function write_num_flt(e, r, t) {
692
692
  return hashq(r.substr(0, d) + n + r.substr(r.length - _));
693
693
  }
694
694
  if (i = r.match(/^00,000\.([#0]*0)$/))
695
- return s = dec(t, i[1].length), t < 0 ? "-" + write_num_flt(e, r, -t) : commaify(flr(t)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(p) {
696
- return "00," + (p.length < 3 ? pad0(0, 3 - p.length) : "") + p;
695
+ return s = dec(t, i[1].length), t < 0 ? "-" + write_num_flt(e, r, -t) : commaify(flr(t)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(x) {
696
+ return "00," + (x.length < 3 ? pad0(0, 3 - x.length) : "") + x;
697
697
  }) + "." + pad0(s, i[1].length);
698
698
  switch (r) {
699
699
  case "###,##0.00":
@@ -763,7 +763,7 @@ function write_num_int(e, r, t) {
763
763
  if (r.match(/^#+0+$/))
764
764
  return f + pad0(o, r.length - r.indexOf("0"));
765
765
  if (i = r.match(dec1))
766
- return n = ("" + t).replace(/^([^\.]+)$/, "$1." + hashq(i[1])).replace(/\.$/, "." + hashq(i[1])), n = n.replace(/\.(\d*)$/, function(p, u) {
766
+ return n = ("" + t).replace(/^([^\.]+)$/, "$1." + hashq(i[1])).replace(/\.$/, "." + hashq(i[1])), n = n.replace(/\.(\d*)$/, function(x, u) {
767
767
  return "." + u + fill("0", hashq(i[1]).length - u.length);
768
768
  }), r.indexOf("0.") !== -1 ? n : n.replace(/^0\./, ".");
769
769
  if (r = r.replace(/^#+([0.])/, "$1"), i = r.match(/^(0*)\.(#*)$/))
@@ -775,8 +775,8 @@ function write_num_int(e, r, t) {
775
775
  if (i = r.match(/^#,#*,#0/))
776
776
  return write_num_int(e, r.replace(/^#,#*,/, ""), t);
777
777
  if (i = r.match(/^([0#]+)(\\?-([0#]+))+$/))
778
- return n = _strrev(write_num_int(e, r.replace(/[\\-]/g, ""), t)), s = 0, _strrev(_strrev(r.replace(/\\/g, "")).replace(/[0#]/g, function(p) {
779
- return s < n.length ? n.charAt(s++) : p === "0" ? "0" : "";
778
+ return n = _strrev(write_num_int(e, r.replace(/[\\-]/g, ""), t)), s = 0, _strrev(_strrev(r.replace(/\\/g, "")).replace(/[0#]/g, function(x) {
779
+ return s < n.length ? n.charAt(s++) : x === "0" ? "0" : "";
780
780
  }));
781
781
  if (r.match(phone))
782
782
  return n = write_num_int(e, "##########", t), "(" + n.substr(0, 3) + ") " + n.substr(3, 3) + "-" + n.substr(6);
@@ -804,8 +804,8 @@ function write_num_int(e, r, t) {
804
804
  return hashq(r.substr(0, d) + n + r.substr(r.length - _));
805
805
  }
806
806
  if (i = r.match(/^00,000\.([#0]*0)$/))
807
- return t < 0 ? "-" + write_num_int(e, r, -t) : commaify("" + t).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(p) {
808
- return "00," + (p.length < 3 ? pad0(0, 3 - p.length) : "") + p;
807
+ return t < 0 ? "-" + write_num_int(e, r, -t) : commaify("" + t).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(x) {
808
+ return "00," + (x.length < 3 ? pad0(0, 3 - x.length) : "") + x;
809
809
  }) + "." + pad0(0, i[1].length);
810
810
  switch (r) {
811
811
  case "###,###":
@@ -951,8 +951,8 @@ function eval_fmt(e, r, t, a) {
951
951
  n[n.length] = { t: "t", v: i }, ++s;
952
952
  break;
953
953
  case "\\":
954
- var h = e.charAt(++s), p = h === "(" || h === ")" ? h : "t";
955
- n[n.length] = { t: p, v: h }, ++s;
954
+ var h = e.charAt(++s), x = h === "(" || h === ")" ? h : "t";
955
+ n[n.length] = { t: x, v: h }, ++s;
956
956
  break;
957
957
  case "_":
958
958
  n[n.length] = { t: "t", v: " " }, s += 2;
@@ -1058,15 +1058,15 @@ function eval_fmt(e, r, t, a) {
1058
1058
  n[n.length] = { t: "t", v: l }, ++s;
1059
1059
  break;
1060
1060
  }
1061
- var m = 0, C = 0, I;
1061
+ var p = 0, C = 0, I;
1062
1062
  for (s = n.length - 1, o = "t"; s >= 0; --s)
1063
1063
  switch (n[s].t) {
1064
1064
  case "h":
1065
1065
  case "H":
1066
- n[s].t = _, o = "h", m < 1 && (m = 1);
1066
+ n[s].t = _, o = "h", p < 1 && (p = 1);
1067
1067
  break;
1068
1068
  case "s":
1069
- (I = n[s].v.match(/\.0+$/)) && (C = Math.max(C, I[0].length - 1)), m < 3 && (m = 3);
1069
+ (I = n[s].v.match(/\.0+$/)) && (C = Math.max(C, I[0].length - 1)), p < 3 && (p = 3);
1070
1070
  case "d":
1071
1071
  case "y":
1072
1072
  case "M":
@@ -1074,14 +1074,14 @@ function eval_fmt(e, r, t, a) {
1074
1074
  o = n[s].t;
1075
1075
  break;
1076
1076
  case "m":
1077
- o === "s" && (n[s].t = "M", m < 2 && (m = 2));
1077
+ o === "s" && (n[s].t = "M", p < 2 && (p = 2));
1078
1078
  break;
1079
1079
  case "X":
1080
1080
  break;
1081
1081
  case "Z":
1082
- m < 1 && n[s].v.match(/[Hh]/) && (m = 1), m < 2 && n[s].v.match(/[Mm]/) && (m = 2), m < 3 && n[s].v.match(/[Ss]/) && (m = 3);
1082
+ p < 1 && n[s].v.match(/[Hh]/) && (p = 1), p < 2 && n[s].v.match(/[Mm]/) && (p = 2), p < 3 && n[s].v.match(/[Ss]/) && (p = 3);
1083
1083
  }
1084
- switch (m) {
1084
+ switch (p) {
1085
1085
  case 0:
1086
1086
  break;
1087
1087
  case 1:
@@ -1321,7 +1321,7 @@ var CRC32 = /* @__PURE__ */ function() {
1321
1321
  G[N - 1] = typeof Int32Array < "u" ? V.subarray(N * 256, N * 256 + 256) : V.slice(N * 256, N * 256 + 256);
1322
1322
  return G;
1323
1323
  }
1324
- var n = a(t), i = n[0], s = n[1], l = n[2], o = n[3], f = n[4], c = n[5], d = n[6], _ = n[7], h = n[8], p = n[9], u = n[10], m = n[11], C = n[12], I = n[13], k = n[14];
1324
+ var n = a(t), i = n[0], s = n[1], l = n[2], o = n[3], f = n[4], c = n[5], d = n[6], _ = n[7], h = n[8], x = n[9], u = n[10], p = n[11], C = n[12], I = n[13], k = n[14];
1325
1325
  function b(S, B) {
1326
1326
  for (var A = B ^ -1, N = 0, V = S.length; N < V; )
1327
1327
  A = A >>> 8 ^ t[(A ^ S.charCodeAt(N++)) & 255];
@@ -1329,7 +1329,7 @@ var CRC32 = /* @__PURE__ */ function() {
1329
1329
  }
1330
1330
  function X(S, B) {
1331
1331
  for (var A = B ^ -1, N = S.length - 15, V = 0; V < N; )
1332
- A = k[S[V++] ^ A & 255] ^ I[S[V++] ^ A >> 8 & 255] ^ C[S[V++] ^ A >> 16 & 255] ^ m[S[V++] ^ A >>> 24] ^ u[S[V++]] ^ p[S[V++]] ^ h[S[V++]] ^ _[S[V++]] ^ d[S[V++]] ^ c[S[V++]] ^ f[S[V++]] ^ o[S[V++]] ^ l[S[V++]] ^ s[S[V++]] ^ i[S[V++]] ^ t[S[V++]];
1332
+ A = k[S[V++] ^ A & 255] ^ I[S[V++] ^ A >> 8 & 255] ^ C[S[V++] ^ A >> 16 & 255] ^ p[S[V++] ^ A >>> 24] ^ u[S[V++]] ^ x[S[V++]] ^ h[S[V++]] ^ _[S[V++]] ^ d[S[V++]] ^ c[S[V++]] ^ f[S[V++]] ^ o[S[V++]] ^ l[S[V++]] ^ s[S[V++]] ^ i[S[V++]] ^ t[S[V++]];
1333
1333
  for (N += 15; V < N; )
1334
1334
  A = A >>> 8 ^ t[(A ^ S[V++]) & 255];
1335
1335
  return ~A;
@@ -1343,8 +1343,8 @@ var CRC32 = /* @__PURE__ */ function() {
1343
1343
  }(), CFB = /* @__PURE__ */ function() {
1344
1344
  var r = {};
1345
1345
  r.version = "1.2.1";
1346
- function t(x, v) {
1347
- for (var g = x.split("/"), w = v.split("/"), T = 0, y = 0, R = Math.min(g.length, w.length); T < R; ++T) {
1346
+ function t(m, v) {
1347
+ for (var g = m.split("/"), w = v.split("/"), T = 0, y = 0, R = Math.min(g.length, w.length); T < R; ++T) {
1348
1348
  if (y = g[T].length - w[T].length)
1349
1349
  return y;
1350
1350
  if (g[T] != w[T])
@@ -1352,27 +1352,27 @@ var CRC32 = /* @__PURE__ */ function() {
1352
1352
  }
1353
1353
  return g.length - w.length;
1354
1354
  }
1355
- function a(x) {
1356
- if (x.charAt(x.length - 1) == "/")
1357
- return x.slice(0, -1).indexOf("/") === -1 ? x : a(x.slice(0, -1));
1358
- var v = x.lastIndexOf("/");
1359
- return v === -1 ? x : x.slice(0, v + 1);
1355
+ function a(m) {
1356
+ if (m.charAt(m.length - 1) == "/")
1357
+ return m.slice(0, -1).indexOf("/") === -1 ? m : a(m.slice(0, -1));
1358
+ var v = m.lastIndexOf("/");
1359
+ return v === -1 ? m : m.slice(0, v + 1);
1360
1360
  }
1361
- function n(x) {
1362
- if (x.charAt(x.length - 1) == "/")
1363
- return n(x.slice(0, -1));
1364
- var v = x.lastIndexOf("/");
1365
- return v === -1 ? x : x.slice(v + 1);
1361
+ function n(m) {
1362
+ if (m.charAt(m.length - 1) == "/")
1363
+ return n(m.slice(0, -1));
1364
+ var v = m.lastIndexOf("/");
1365
+ return v === -1 ? m : m.slice(v + 1);
1366
1366
  }
1367
- function i(x, v) {
1367
+ function i(m, v) {
1368
1368
  typeof v == "string" && (v = new Date(v));
1369
1369
  var g = v.getHours();
1370
- g = g << 6 | v.getMinutes(), g = g << 5 | v.getSeconds() >>> 1, x.write_shift(2, g);
1370
+ g = g << 6 | v.getMinutes(), g = g << 5 | v.getSeconds() >>> 1, m.write_shift(2, g);
1371
1371
  var w = v.getFullYear() - 1980;
1372
- w = w << 4 | v.getMonth() + 1, w = w << 5 | v.getDate(), x.write_shift(2, w);
1372
+ w = w << 4 | v.getMonth() + 1, w = w << 5 | v.getDate(), m.write_shift(2, w);
1373
1373
  }
1374
- function s(x) {
1375
- var v = x.read_shift(2) & 65535, g = x.read_shift(2) & 65535, w = /* @__PURE__ */ new Date(), T = g & 31;
1374
+ function s(m) {
1375
+ var v = m.read_shift(2) & 65535, g = m.read_shift(2) & 65535, w = /* @__PURE__ */ new Date(), T = g & 31;
1376
1376
  g >>>= 5;
1377
1377
  var y = g & 15;
1378
1378
  g >>>= 4, w.setMilliseconds(0), w.setFullYear(g + 1980), w.setMonth(y - 1), w.setDate(T);
@@ -1381,19 +1381,19 @@ var CRC32 = /* @__PURE__ */ function() {
1381
1381
  var H = v & 63;
1382
1382
  return v >>>= 6, w.setHours(v), w.setMinutes(H), w.setSeconds(R << 1), w;
1383
1383
  }
1384
- function l(x) {
1385
- prep_blob(x, 0);
1384
+ function l(m) {
1385
+ prep_blob(m, 0);
1386
1386
  for (var v = (
1387
1387
  /*::(*/
1388
1388
  {}
1389
- ), g = 0; x.l <= x.length - 4; ) {
1390
- var w = x.read_shift(2), T = x.read_shift(2), y = x.l + T, R = {};
1389
+ ), g = 0; m.l <= m.length - 4; ) {
1390
+ var w = m.read_shift(2), T = m.read_shift(2), y = m.l + T, R = {};
1391
1391
  switch (w) {
1392
1392
  case 21589:
1393
- g = x.read_shift(1), g & 1 && (R.mtime = x.read_shift(4)), T > 5 && (g & 2 && (R.atime = x.read_shift(4)), g & 4 && (R.ctime = x.read_shift(4))), R.mtime && (R.mt = new Date(R.mtime * 1e3));
1393
+ g = m.read_shift(1), g & 1 && (R.mtime = m.read_shift(4)), T > 5 && (g & 2 && (R.atime = m.read_shift(4)), g & 4 && (R.ctime = m.read_shift(4))), R.mtime && (R.mt = new Date(R.mtime * 1e3));
1394
1394
  break;
1395
1395
  }
1396
- x.l = y, v[w] = R;
1396
+ m.l = y, v[w] = R;
1397
1397
  }
1398
1398
  return v;
1399
1399
  }
@@ -1401,16 +1401,16 @@ var CRC32 = /* @__PURE__ */ function() {
1401
1401
  function f() {
1402
1402
  return o || (o = {});
1403
1403
  }
1404
- function c(x, v) {
1405
- if (x[0] == 80 && x[1] == 75)
1406
- return Je(x, v);
1407
- if ((x[0] | 32) == 109 && (x[1] | 32) == 105)
1408
- return lt(x, v);
1409
- if (x.length < 512)
1410
- throw new Error("CFB file size " + x.length + " < 512");
1404
+ function c(m, v) {
1405
+ if (m[0] == 80 && m[1] == 75)
1406
+ return Je(m, v);
1407
+ if ((m[0] | 32) == 109 && (m[1] | 32) == 105)
1408
+ return lt(m, v);
1409
+ if (m.length < 512)
1410
+ throw new Error("CFB file size " + m.length + " < 512");
1411
1411
  var g = 3, w = 512, T = 0, y = 0, R = 0, H = 0, O = 0, M = [], U = (
1412
1412
  /*::(*/
1413
- x.slice(0, 512)
1413
+ m.slice(0, 512)
1414
1414
  );
1415
1415
  prep_blob(U, 0);
1416
1416
  var K = d(U);
@@ -1423,17 +1423,17 @@ var CRC32 = /* @__PURE__ */ function() {
1423
1423
  break;
1424
1424
  case 0:
1425
1425
  if (K[1] == 0)
1426
- return Je(x, v);
1426
+ return Je(m, v);
1427
1427
  default:
1428
1428
  throw new Error("Major Version: Expected 3 or 4 saw " + g);
1429
1429
  }
1430
1430
  w !== 512 && (U = /*::(*/
1431
- x.slice(0, w), prep_blob(
1431
+ m.slice(0, w), prep_blob(
1432
1432
  U,
1433
1433
  28
1434
1434
  /* blob.l */
1435
1435
  ));
1436
- var Z = x.slice(0, w);
1436
+ var Z = m.slice(0, w);
1437
1437
  _(U, g);
1438
1438
  var te = U.read_shift(4, "i");
1439
1439
  if (g === 3 && te !== 0)
@@ -1441,28 +1441,28 @@ var CRC32 = /* @__PURE__ */ function() {
1441
1441
  U.l += 4, R = U.read_shift(4, "i"), U.l += 4, U.chk("00100000", "Mini Stream Cutoff Size: "), H = U.read_shift(4, "i"), T = U.read_shift(4, "i"), O = U.read_shift(4, "i"), y = U.read_shift(4, "i");
1442
1442
  for (var J = -1, ee = 0; ee < 109 && (J = U.read_shift(4, "i"), !(J < 0)); ++ee)
1443
1443
  M[ee] = J;
1444
- var se = h(x, w);
1445
- m(O, y, se, w, M);
1444
+ var se = h(m, w);
1445
+ p(O, y, se, w, M);
1446
1446
  var _e = I(se, R, M, w);
1447
1447
  _e[R].name = "!Directory", T > 0 && H !== Y && (_e[H].name = "!MiniFAT"), _e[M[0]].name = "!FAT", _e.fat_addrs = M, _e.ssz = w;
1448
1448
  var pe = {}, we = [], Be = [], Le = [];
1449
- k(R, _e, se, we, T, pe, Be, H), p(Be, Le, we), we.shift();
1449
+ k(R, _e, se, we, T, pe, Be, H), x(Be, Le, we), we.shift();
1450
1450
  var De = {
1451
1451
  FileIndex: Be,
1452
1452
  FullPaths: Le
1453
1453
  };
1454
1454
  return v && v.raw && (De.raw = { header: Z, sectors: se }), De;
1455
1455
  }
1456
- function d(x) {
1457
- if (x[x.l] == 80 && x[x.l + 1] == 75)
1456
+ function d(m) {
1457
+ if (m[m.l] == 80 && m[m.l + 1] == 75)
1458
1458
  return [0, 0];
1459
- x.chk(le, "Header Signature: "), x.l += 16;
1460
- var v = x.read_shift(2, "u");
1461
- return [x.read_shift(2, "u"), v];
1459
+ m.chk(le, "Header Signature: "), m.l += 16;
1460
+ var v = m.read_shift(2, "u");
1461
+ return [m.read_shift(2, "u"), v];
1462
1462
  }
1463
- function _(x, v) {
1463
+ function _(m, v) {
1464
1464
  var g = 9;
1465
- switch (x.l += 2, g = x.read_shift(2)) {
1465
+ switch (m.l += 2, g = m.read_shift(2)) {
1466
1466
  case 9:
1467
1467
  if (v != 3)
1468
1468
  throw new Error("Sector Shift: Expected 9 saw " + g);
@@ -1474,22 +1474,22 @@ var CRC32 = /* @__PURE__ */ function() {
1474
1474
  default:
1475
1475
  throw new Error("Sector Shift: Expected 9 or 12 saw " + g);
1476
1476
  }
1477
- x.chk("0600", "Mini Sector Shift: "), x.chk("000000000000", "Reserved: ");
1477
+ m.chk("0600", "Mini Sector Shift: "), m.chk("000000000000", "Reserved: ");
1478
1478
  }
1479
- function h(x, v) {
1480
- for (var g = Math.ceil(x.length / v) - 1, w = [], T = 1; T < g; ++T)
1481
- w[T - 1] = x.slice(T * v, (T + 1) * v);
1482
- return w[g - 1] = x.slice(g * v), w;
1479
+ function h(m, v) {
1480
+ for (var g = Math.ceil(m.length / v) - 1, w = [], T = 1; T < g; ++T)
1481
+ w[T - 1] = m.slice(T * v, (T + 1) * v);
1482
+ return w[g - 1] = m.slice(g * v), w;
1483
1483
  }
1484
- function p(x, v, g) {
1484
+ function x(m, v, g) {
1485
1485
  for (var w = 0, T = 0, y = 0, R = 0, H = 0, O = g.length, M = [], U = []; w < O; ++w)
1486
1486
  M[w] = U[w] = w, v[w] = g[w];
1487
1487
  for (; H < U.length; ++H)
1488
- w = U[H], T = x[w].L, y = x[w].R, R = x[w].C, M[w] === w && (T !== -1 && M[T] !== T && (M[w] = M[T]), y !== -1 && M[y] !== y && (M[w] = M[y])), R !== -1 && (M[R] = w), T !== -1 && w != M[w] && (M[T] = M[w], U.lastIndexOf(T) < H && U.push(T)), y !== -1 && w != M[w] && (M[y] = M[w], U.lastIndexOf(y) < H && U.push(y));
1488
+ w = U[H], T = m[w].L, y = m[w].R, R = m[w].C, M[w] === w && (T !== -1 && M[T] !== T && (M[w] = M[T]), y !== -1 && M[y] !== y && (M[w] = M[y])), R !== -1 && (M[R] = w), T !== -1 && w != M[w] && (M[T] = M[w], U.lastIndexOf(T) < H && U.push(T)), y !== -1 && w != M[w] && (M[y] = M[w], U.lastIndexOf(y) < H && U.push(y));
1489
1489
  for (w = 1; w < O; ++w)
1490
1490
  M[w] === w && (y !== -1 && M[y] !== y ? M[w] = M[y] : T !== -1 && M[T] !== T && (M[w] = M[T]));
1491
1491
  for (w = 1; w < O; ++w)
1492
- if (x[w].type !== 0) {
1492
+ if (m[w].type !== 0) {
1493
1493
  if (H = w, H != M[H])
1494
1494
  do
1495
1495
  H = M[H], v[w] = v[H] + "/" + v[w];
@@ -1497,62 +1497,62 @@ var CRC32 = /* @__PURE__ */ function() {
1497
1497
  M[w] = -1;
1498
1498
  }
1499
1499
  for (v[0] += "/", w = 1; w < O; ++w)
1500
- x[w].type !== 2 && (v[w] += "/");
1500
+ m[w].type !== 2 && (v[w] += "/");
1501
1501
  }
1502
- function u(x, v, g) {
1503
- for (var w = x.start, T = x.size, y = [], R = w; g && T > 0 && R >= 0; )
1502
+ function u(m, v, g) {
1503
+ for (var w = m.start, T = m.size, y = [], R = w; g && T > 0 && R >= 0; )
1504
1504
  y.push(v.slice(R * G, R * G + G)), T -= G, R = __readInt32LE(g, R * 4);
1505
- return y.length === 0 ? new_buf(0) : bconcat(y).slice(0, x.size);
1505
+ return y.length === 0 ? new_buf(0) : bconcat(y).slice(0, m.size);
1506
1506
  }
1507
- function m(x, v, g, w, T) {
1507
+ function p(m, v, g, w, T) {
1508
1508
  var y = Y;
1509
- if (x === Y) {
1509
+ if (m === Y) {
1510
1510
  if (v !== 0)
1511
1511
  throw new Error("DIFAT chain shorter than expected");
1512
- } else if (x !== -1) {
1513
- var R = g[x], H = (w >>> 2) - 1;
1512
+ } else if (m !== -1) {
1513
+ var R = g[m], H = (w >>> 2) - 1;
1514
1514
  if (!R)
1515
1515
  return;
1516
1516
  for (var O = 0; O < H && (y = __readInt32LE(R, O * 4)) !== Y; ++O)
1517
1517
  T.push(y);
1518
- m(__readInt32LE(R, w - 4), v - 1, g, w, T);
1518
+ p(__readInt32LE(R, w - 4), v - 1, g, w, T);
1519
1519
  }
1520
1520
  }
1521
- function C(x, v, g, w, T) {
1521
+ function C(m, v, g, w, T) {
1522
1522
  var y = [], R = [];
1523
1523
  T || (T = []);
1524
1524
  var H = w - 1, O = 0, M = 0;
1525
1525
  for (O = v; O >= 0; ) {
1526
- T[O] = !0, y[y.length] = O, R.push(x[O]);
1526
+ T[O] = !0, y[y.length] = O, R.push(m[O]);
1527
1527
  var U = g[Math.floor(O * 4 / w)];
1528
1528
  if (M = O * 4 & H, w < 4 + M)
1529
1529
  throw new Error("FAT boundary crossed: " + O + " 4 " + w);
1530
- if (!x[U])
1530
+ if (!m[U])
1531
1531
  break;
1532
- O = __readInt32LE(x[U], M);
1532
+ O = __readInt32LE(m[U], M);
1533
1533
  }
1534
1534
  return { nodes: y, data: __toBuffer([R]) };
1535
1535
  }
1536
- function I(x, v, g, w) {
1537
- var T = x.length, y = [], R = [], H = [], O = [], M = w - 1, U = 0, K = 0, Z = 0, te = 0;
1536
+ function I(m, v, g, w) {
1537
+ var T = m.length, y = [], R = [], H = [], O = [], M = w - 1, U = 0, K = 0, Z = 0, te = 0;
1538
1538
  for (U = 0; U < T; ++U)
1539
1539
  if (H = [], Z = U + v, Z >= T && (Z -= T), !R[Z]) {
1540
1540
  O = [];
1541
1541
  var J = [];
1542
1542
  for (K = Z; K >= 0; ) {
1543
- J[K] = !0, R[K] = !0, H[H.length] = K, O.push(x[K]);
1543
+ J[K] = !0, R[K] = !0, H[H.length] = K, O.push(m[K]);
1544
1544
  var ee = g[Math.floor(K * 4 / w)];
1545
1545
  if (te = K * 4 & M, w < 4 + te)
1546
1546
  throw new Error("FAT boundary crossed: " + K + " 4 " + w);
1547
- if (!x[ee] || (K = __readInt32LE(x[ee], te), J[K]))
1547
+ if (!m[ee] || (K = __readInt32LE(m[ee], te), J[K]))
1548
1548
  break;
1549
1549
  }
1550
1550
  y[Z] = { nodes: H, data: __toBuffer([O]) };
1551
1551
  }
1552
1552
  return y;
1553
1553
  }
1554
- function k(x, v, g, w, T, y, R, H) {
1555
- for (var O = 0, M = w.length ? 2 : 0, U = v[x].data, K = 0, Z = 0, te; K < U.length; K += 128) {
1554
+ function k(m, v, g, w, T, y, R, H) {
1555
+ for (var O = 0, M = w.length ? 2 : 0, U = v[m].data, K = 0, Z = 0, te; K < U.length; K += 128) {
1556
1556
  var J = (
1557
1557
  /*::(*/
1558
1558
  U.slice(K, K + 128)
@@ -1575,48 +1575,48 @@ var CRC32 = /* @__PURE__ */ function() {
1575
1575
  _e !== 0 && (ee.mt = b(J, J.l - 8)), ee.start = J.read_shift(4, "i"), ee.size = J.read_shift(4, "i"), ee.size < 0 && ee.start < 0 && (ee.size = ee.type = 0, ee.start = Y, ee.name = ""), ee.type === 5 ? (O = ee.start, T > 0 && O !== Y && (v[O].name = "!StreamData")) : ee.size >= 4096 ? (ee.storage = "fat", v[ee.start] === void 0 && (v[ee.start] = C(g, ee.start, v.fat_addrs, v.ssz)), v[ee.start].name = ee.name, ee.content = v[ee.start].data.slice(0, ee.size)) : (ee.storage = "minifat", ee.size < 0 ? ee.size = 0 : O !== Y && ee.start !== Y && v[O] && (ee.content = u(ee, v[O].data, (v[H] || {}).data))), ee.content && prep_blob(ee.content, 0), y[te] = ee, R.push(ee);
1576
1576
  }
1577
1577
  }
1578
- function b(x, v) {
1579
- return new Date((__readUInt32LE(x, v + 4) / 1e7 * Math.pow(2, 32) + __readUInt32LE(x, v) / 1e7 - 11644473600) * 1e3);
1578
+ function b(m, v) {
1579
+ return new Date((__readUInt32LE(m, v + 4) / 1e7 * Math.pow(2, 32) + __readUInt32LE(m, v) / 1e7 - 11644473600) * 1e3);
1580
1580
  }
1581
- function X(x, v) {
1582
- return f(), c(o.readFileSync(x), v);
1581
+ function X(m, v) {
1582
+ return f(), c(o.readFileSync(m), v);
1583
1583
  }
1584
- function z(x, v) {
1584
+ function z(m, v) {
1585
1585
  var g = v && v.type;
1586
- switch (g || has_buf && Buffer.isBuffer(x) && (g = "buffer"), g || "base64") {
1586
+ switch (g || has_buf && Buffer.isBuffer(m) && (g = "buffer"), g || "base64") {
1587
1587
  case "file":
1588
- return X(x, v);
1588
+ return X(m, v);
1589
1589
  case "base64":
1590
- return c(s2a(Base64_decode(x)), v);
1590
+ return c(s2a(Base64_decode(m)), v);
1591
1591
  case "binary":
1592
- return c(s2a(x), v);
1592
+ return c(s2a(m), v);
1593
1593
  }
1594
1594
  return c(
1595
1595
  /*::typeof blob == 'string' ? new Buffer(blob, 'utf-8') : */
1596
- x,
1596
+ m,
1597
1597
  v
1598
1598
  );
1599
1599
  }
1600
- function S(x, v) {
1600
+ function S(m, v) {
1601
1601
  var g = v || {}, w = g.root || "Root Entry";
1602
- if (x.FullPaths || (x.FullPaths = []), x.FileIndex || (x.FileIndex = []), x.FullPaths.length !== x.FileIndex.length)
1602
+ if (m.FullPaths || (m.FullPaths = []), m.FileIndex || (m.FileIndex = []), m.FullPaths.length !== m.FileIndex.length)
1603
1603
  throw new Error("inconsistent CFB structure");
1604
- x.FullPaths.length === 0 && (x.FullPaths[0] = w + "/", x.FileIndex[0] = { name: w, type: 5 }), g.CLSID && (x.FileIndex[0].clsid = g.CLSID), B(x);
1604
+ m.FullPaths.length === 0 && (m.FullPaths[0] = w + "/", m.FileIndex[0] = { name: w, type: 5 }), g.CLSID && (m.FileIndex[0].clsid = g.CLSID), B(m);
1605
1605
  }
1606
- function B(x) {
1606
+ function B(m) {
1607
1607
  var v = "Sh33tJ5";
1608
- if (!CFB.find(x, "/" + v)) {
1608
+ if (!CFB.find(m, "/" + v)) {
1609
1609
  var g = new_buf(4);
1610
- g[0] = 55, g[1] = g[3] = 50, g[2] = 54, x.FileIndex.push({ name: v, type: 2, content: g, size: 4, L: 69, R: 69, C: 69 }), x.FullPaths.push(x.FullPaths[0] + v), A(x);
1610
+ g[0] = 55, g[1] = g[3] = 50, g[2] = 54, m.FileIndex.push({ name: v, type: 2, content: g, size: 4, L: 69, R: 69, C: 69 }), m.FullPaths.push(m.FullPaths[0] + v), A(m);
1611
1611
  }
1612
1612
  }
1613
- function A(x, v) {
1614
- S(x);
1615
- for (var g = !1, w = !1, T = x.FullPaths.length - 1; T >= 0; --T) {
1616
- var y = x.FileIndex[T];
1613
+ function A(m, v) {
1614
+ S(m);
1615
+ for (var g = !1, w = !1, T = m.FullPaths.length - 1; T >= 0; --T) {
1616
+ var y = m.FileIndex[T];
1617
1617
  switch (y.type) {
1618
1618
  case 0:
1619
- w ? g = !0 : (x.FileIndex.pop(), x.FullPaths.pop());
1619
+ w ? g = !0 : (m.FileIndex.pop(), m.FullPaths.pop());
1620
1620
  break;
1621
1621
  case 1:
1622
1622
  case 2:
@@ -1630,8 +1630,8 @@ var CRC32 = /* @__PURE__ */ function() {
1630
1630
  }
1631
1631
  if (!(!g && !v)) {
1632
1632
  var R = new Date(1987, 1, 19), H = 0, O = Object.create ? /* @__PURE__ */ Object.create(null) : {}, M = [];
1633
- for (T = 0; T < x.FullPaths.length; ++T)
1634
- O[x.FullPaths[T]] = !0, x.FileIndex[T].type !== 0 && M.push([x.FullPaths[T], x.FileIndex[T]]);
1633
+ for (T = 0; T < m.FullPaths.length; ++T)
1634
+ O[m.FullPaths[T]] = !0, m.FileIndex[T].type !== 0 && M.push([m.FullPaths[T], m.FileIndex[T]]);
1635
1635
  for (T = 0; T < M.length; ++T) {
1636
1636
  var U = a(M[T][0]);
1637
1637
  w = O[U], w || (M.push([U, {
@@ -1645,30 +1645,30 @@ var CRC32 = /* @__PURE__ */ function() {
1645
1645
  }
1646
1646
  for (M.sort(function(te, J) {
1647
1647
  return t(te[0], J[0]);
1648
- }), x.FullPaths = [], x.FileIndex = [], T = 0; T < M.length; ++T)
1649
- x.FullPaths[T] = M[T][0], x.FileIndex[T] = M[T][1];
1648
+ }), m.FullPaths = [], m.FileIndex = [], T = 0; T < M.length; ++T)
1649
+ m.FullPaths[T] = M[T][0], m.FileIndex[T] = M[T][1];
1650
1650
  for (T = 0; T < M.length; ++T) {
1651
- var K = x.FileIndex[T], Z = x.FullPaths[T];
1651
+ var K = m.FileIndex[T], Z = m.FullPaths[T];
1652
1652
  if (K.name = n(Z).replace("/", ""), K.L = K.R = K.C = -(K.color = 1), K.size = K.content ? K.content.length : 0, K.start = 0, K.clsid = K.clsid || he, T === 0)
1653
1653
  K.C = M.length > 1 ? 1 : -1, K.size = 0, K.type = 5;
1654
1654
  else if (Z.slice(-1) == "/") {
1655
- for (H = T + 1; H < M.length && a(x.FullPaths[H]) != Z; ++H)
1655
+ for (H = T + 1; H < M.length && a(m.FullPaths[H]) != Z; ++H)
1656
1656
  ;
1657
- for (K.C = H >= M.length ? -1 : H, H = T + 1; H < M.length && a(x.FullPaths[H]) != a(Z); ++H)
1657
+ for (K.C = H >= M.length ? -1 : H, H = T + 1; H < M.length && a(m.FullPaths[H]) != a(Z); ++H)
1658
1658
  ;
1659
1659
  K.R = H >= M.length ? -1 : H, K.type = 1;
1660
1660
  } else
1661
- a(x.FullPaths[T + 1] || "") == a(Z) && (K.R = T + 1), K.type = 2;
1661
+ a(m.FullPaths[T + 1] || "") == a(Z) && (K.R = T + 1), K.type = 2;
1662
1662
  }
1663
1663
  }
1664
1664
  }
1665
- function N(x, v) {
1665
+ function N(m, v) {
1666
1666
  var g = v || {};
1667
1667
  if (g.fileType == "mad")
1668
- return ot(x, g);
1669
- switch (A(x), g.fileType) {
1668
+ return ot(m, g);
1669
+ switch (A(m), g.fileType) {
1670
1670
  case "zip":
1671
- return tt(x, g);
1671
+ return tt(m, g);
1672
1672
  }
1673
1673
  var w = function(te) {
1674
1674
  for (var J = 0, ee = 0, se = 0; se < te.FileIndex.length; ++se) {
@@ -1682,7 +1682,7 @@ var CRC32 = /* @__PURE__ */ function() {
1682
1682
  Ue = ++Ne <= 109 ? 0 : Math.ceil((Ne - 109) / 127);
1683
1683
  var Ce = [1, Ue, Ne, Le, we, ee, J, 0];
1684
1684
  return te.FileIndex[0].size = J << 6, Ce[7] = (te.FileIndex[0].start = Ce[0] + Ce[1] + Ce[2] + Ce[3] + Ce[4] + Ce[5]) + (Ce[6] + 7 >> 3), Ce;
1685
- }(x), T = new_buf(w[7] << 9), y = 0, R = 0;
1685
+ }(m), T = new_buf(w[7] << 9), y = 0, R = 0;
1686
1686
  {
1687
1687
  for (y = 0; y < 8; ++y)
1688
1688
  T.write_shift(1, q[y]);
@@ -1709,16 +1709,16 @@ var CRC32 = /* @__PURE__ */ function() {
1709
1709
  for (R += w[2]; y < R; ++y)
1710
1710
  T.write_shift(-4, ue.FATSECT);
1711
1711
  H(w[3]), H(w[4]);
1712
- for (var O = 0, M = 0, U = x.FileIndex[0]; O < x.FileIndex.length; ++O)
1713
- U = x.FileIndex[O], U.content && (M = U.content.length, !(M < 4096) && (U.start = R, H(M + 511 >> 9)));
1712
+ for (var O = 0, M = 0, U = m.FileIndex[0]; O < m.FileIndex.length; ++O)
1713
+ U = m.FileIndex[O], U.content && (M = U.content.length, !(M < 4096) && (U.start = R, H(M + 511 >> 9)));
1714
1714
  for (H(w[6] + 7 >> 3); T.l & 511; )
1715
1715
  T.write_shift(-4, ue.ENDOFCHAIN);
1716
- for (R = y = 0, O = 0; O < x.FileIndex.length; ++O)
1717
- U = x.FileIndex[O], U.content && (M = U.content.length, !(!M || M >= 4096) && (U.start = R, H(M + 63 >> 6)));
1716
+ for (R = y = 0, O = 0; O < m.FileIndex.length; ++O)
1717
+ U = m.FileIndex[O], U.content && (M = U.content.length, !(!M || M >= 4096) && (U.start = R, H(M + 63 >> 6)));
1718
1718
  for (; T.l & 511; )
1719
1719
  T.write_shift(-4, ue.ENDOFCHAIN);
1720
1720
  for (y = 0; y < w[4] << 2; ++y) {
1721
- var K = x.FullPaths[y];
1721
+ var K = m.FullPaths[y];
1722
1722
  if (!K || K.length === 0) {
1723
1723
  for (O = 0; O < 17; ++O)
1724
1724
  T.write_shift(4, 0);
@@ -1728,7 +1728,7 @@ var CRC32 = /* @__PURE__ */ function() {
1728
1728
  T.write_shift(4, 0);
1729
1729
  continue;
1730
1730
  }
1731
- U = x.FileIndex[y], y === 0 && (U.start = U.size ? U.start - 1 : Y);
1731
+ U = m.FileIndex[y], y === 0 && (U.start = U.size ? U.start - 1 : Y);
1732
1732
  var Z = y === 0 && g.root || U.name;
1733
1733
  if (M = 2 * (Z.length + 1), T.write_shift(64, Z, "utf16le"), T.write_shift(2, M), T.write_shift(1, U.type), T.write_shift(1, U.color), T.write_shift(-4, U.L), T.write_shift(-4, U.R), T.write_shift(-4, U.C), U.clsid)
1734
1734
  T.write_shift(16, U.clsid, "hex");
@@ -1737,8 +1737,8 @@ var CRC32 = /* @__PURE__ */ function() {
1737
1737
  T.write_shift(4, 0);
1738
1738
  T.write_shift(4, U.state || 0), T.write_shift(4, 0), T.write_shift(4, 0), T.write_shift(4, 0), T.write_shift(4, 0), T.write_shift(4, U.start), T.write_shift(4, U.size), T.write_shift(4, 0);
1739
1739
  }
1740
- for (y = 1; y < x.FileIndex.length; ++y)
1741
- if (U = x.FileIndex[y], U.size >= 4096)
1740
+ for (y = 1; y < m.FileIndex.length; ++y)
1741
+ if (U = m.FileIndex[y], U.size >= 4096)
1742
1742
  if (T.l = U.start + 1 << 9, has_buf && Buffer.isBuffer(U.content))
1743
1743
  U.content.copy(T, T.l, 0, U.size), T.l += U.size + 511 & -512;
1744
1744
  else {
@@ -1747,8 +1747,8 @@ var CRC32 = /* @__PURE__ */ function() {
1747
1747
  for (; O & 511; ++O)
1748
1748
  T.write_shift(1, 0);
1749
1749
  }
1750
- for (y = 1; y < x.FileIndex.length; ++y)
1751
- if (U = x.FileIndex[y], U.size > 0 && U.size < 4096)
1750
+ for (y = 1; y < m.FileIndex.length; ++y)
1751
+ if (U = m.FileIndex[y], U.size > 0 && U.size < 4096)
1752
1752
  if (has_buf && Buffer.isBuffer(U.content))
1753
1753
  U.content.copy(T, T.l, 0, U.size), T.l += U.size + 63 & -64;
1754
1754
  else {
@@ -1764,8 +1764,8 @@ var CRC32 = /* @__PURE__ */ function() {
1764
1764
  T.write_shift(1, 0);
1765
1765
  return T;
1766
1766
  }
1767
- function V(x, v) {
1768
- var g = x.FullPaths.map(function(O) {
1767
+ function V(m, v) {
1768
+ var g = m.FullPaths.map(function(O) {
1769
1769
  return O.toUpperCase();
1770
1770
  }), w = g.map(function(O) {
1771
1771
  var M = O.split("/");
@@ -1774,11 +1774,11 @@ var CRC32 = /* @__PURE__ */ function() {
1774
1774
  v.charCodeAt(0) === 47 ? (T = !0, v = g[0].slice(0, -1) + v) : T = v.indexOf("/") !== -1;
1775
1775
  var y = v.toUpperCase(), R = T === !0 ? g.indexOf(y) : w.indexOf(y);
1776
1776
  if (R !== -1)
1777
- return x.FileIndex[R];
1777
+ return m.FileIndex[R];
1778
1778
  var H = !y.match(chr1);
1779
1779
  for (y = y.replace(chr0, ""), H && (y = y.replace(chr1, "!")), R = 0; R < g.length; ++R)
1780
1780
  if ((H ? g[R].replace(chr1, "!") : g[R]).replace(chr0, "") == y || (H ? w[R].replace(chr1, "!") : w[R]).replace(chr0, "") == y)
1781
- return x.FileIndex[R];
1781
+ return m.FileIndex[R];
1782
1782
  return null;
1783
1783
  }
1784
1784
  var G = 64, Y = -2, le = "d0cf11e0a1b11ae1", q = [208, 207, 17, 224, 161, 177, 26, 225], he = "00000000000000000000000000000000", ue = {
@@ -1797,18 +1797,18 @@ var CRC32 = /* @__PURE__ */ function() {
1797
1797
  /* 2.6.1 Compound File Directory Entry */
1798
1798
  EntryTypes: ["unknown", "storage", "stream", "lockbytes", "property", "root"]
1799
1799
  };
1800
- function Ee(x, v, g) {
1800
+ function Ee(m, v, g) {
1801
1801
  f();
1802
- var w = N(x, g);
1802
+ var w = N(m, g);
1803
1803
  o.writeFileSync(v, w);
1804
1804
  }
1805
- function me(x) {
1806
- for (var v = new Array(x.length), g = 0; g < x.length; ++g)
1807
- v[g] = String.fromCharCode(x[g]);
1805
+ function me(m) {
1806
+ for (var v = new Array(m.length), g = 0; g < m.length; ++g)
1807
+ v[g] = String.fromCharCode(m[g]);
1808
1808
  return v.join("");
1809
1809
  }
1810
- function ge(x, v) {
1811
- var g = N(x, v);
1810
+ function ge(m, v) {
1811
+ var g = N(m, v);
1812
1812
  switch (v && v.type || "buffer") {
1813
1813
  case "file":
1814
1814
  return f(), o.writeFileSync(v.filename, g), g;
@@ -1825,122 +1825,122 @@ var CRC32 = /* @__PURE__ */ function() {
1825
1825
  return g;
1826
1826
  }
1827
1827
  var de;
1828
- function F(x) {
1828
+ function F(m) {
1829
1829
  try {
1830
- var v = x.InflateRaw, g = new v();
1830
+ var v = m.InflateRaw, g = new v();
1831
1831
  if (g._processChunk(new Uint8Array([3, 0]), g._finishFlushFlag), g.bytesRead)
1832
- de = x;
1832
+ de = m;
1833
1833
  else
1834
1834
  throw new Error("zlib does not expose bytesRead");
1835
1835
  } catch (w) {
1836
1836
  console.error("cannot use native zlib: " + (w.message || w));
1837
1837
  }
1838
1838
  }
1839
- function W(x, v) {
1839
+ function W(m, v) {
1840
1840
  if (!de)
1841
- return Ke(x, v);
1842
- var g = de.InflateRaw, w = new g(), T = w._processChunk(x.slice(x.l), w._finishFlushFlag);
1843
- return x.l += w.bytesRead, T;
1841
+ return Ke(m, v);
1842
+ var g = de.InflateRaw, w = new g(), T = w._processChunk(m.slice(m.l), w._finishFlushFlag);
1843
+ return m.l += w.bytesRead, T;
1844
1844
  }
1845
- function P(x) {
1846
- return de ? de.deflateRawSync(x) : We(x);
1845
+ function P(m) {
1846
+ return de ? de.deflateRawSync(m) : We(m);
1847
1847
  }
1848
1848
  var D = [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], ne = [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];
1849
- function ie(x) {
1850
- var v = (x << 1 | x << 11) & 139536 | (x << 5 | x << 15) & 558144;
1849
+ function ie(m) {
1850
+ var v = (m << 1 | m << 11) & 139536 | (m << 5 | m << 15) & 558144;
1851
1851
  return (v >> 16 | v >> 8 | v) & 255;
1852
1852
  }
1853
1853
  for (var ae = typeof Uint8Array < "u", Q = ae ? new Uint8Array(256) : [], ce = 0; ce < 256; ++ce)
1854
1854
  Q[ce] = ie(ce);
1855
- function oe(x, v) {
1856
- var g = Q[x & 255];
1857
- return v <= 8 ? g >>> 8 - v : (g = g << 8 | Q[x >> 8 & 255], v <= 16 ? g >>> 16 - v : (g = g << 8 | Q[x >> 16 & 255], g >>> 24 - v));
1855
+ function oe(m, v) {
1856
+ var g = Q[m & 255];
1857
+ return v <= 8 ? g >>> 8 - v : (g = g << 8 | Q[m >> 8 & 255], v <= 16 ? g >>> 16 - v : (g = g << 8 | Q[m >> 16 & 255], g >>> 24 - v));
1858
1858
  }
1859
- function ve(x, v) {
1859
+ function ve(m, v) {
1860
1860
  var g = v & 7, w = v >>> 3;
1861
- return (x[w] | (g <= 6 ? 0 : x[w + 1] << 8)) >>> g & 3;
1861
+ return (m[w] | (g <= 6 ? 0 : m[w + 1] << 8)) >>> g & 3;
1862
1862
  }
1863
- function fe(x, v) {
1863
+ function fe(m, v) {
1864
1864
  var g = v & 7, w = v >>> 3;
1865
- return (x[w] | (g <= 5 ? 0 : x[w + 1] << 8)) >>> g & 7;
1865
+ return (m[w] | (g <= 5 ? 0 : m[w + 1] << 8)) >>> g & 7;
1866
1866
  }
1867
- function ye(x, v) {
1867
+ function ye(m, v) {
1868
1868
  var g = v & 7, w = v >>> 3;
1869
- return (x[w] | (g <= 4 ? 0 : x[w + 1] << 8)) >>> g & 15;
1869
+ return (m[w] | (g <= 4 ? 0 : m[w + 1] << 8)) >>> g & 15;
1870
1870
  }
1871
- function xe(x, v) {
1871
+ function xe(m, v) {
1872
1872
  var g = v & 7, w = v >>> 3;
1873
- return (x[w] | (g <= 3 ? 0 : x[w + 1] << 8)) >>> g & 31;
1873
+ return (m[w] | (g <= 3 ? 0 : m[w + 1] << 8)) >>> g & 31;
1874
1874
  }
1875
- function re(x, v) {
1875
+ function re(m, v) {
1876
1876
  var g = v & 7, w = v >>> 3;
1877
- return (x[w] | (g <= 1 ? 0 : x[w + 1] << 8)) >>> g & 127;
1877
+ return (m[w] | (g <= 1 ? 0 : m[w + 1] << 8)) >>> g & 127;
1878
1878
  }
1879
- function Te(x, v, g) {
1880
- var w = v & 7, T = v >>> 3, y = (1 << g) - 1, R = x[T] >>> w;
1881
- return g < 8 - w || (R |= x[T + 1] << 8 - w, g < 16 - w) || (R |= x[T + 2] << 16 - w, g < 24 - w) || (R |= x[T + 3] << 24 - w), R & y;
1879
+ function Te(m, v, g) {
1880
+ var w = v & 7, T = v >>> 3, y = (1 << g) - 1, R = m[T] >>> w;
1881
+ return g < 8 - w || (R |= m[T + 1] << 8 - w, g < 16 - w) || (R |= m[T + 2] << 16 - w, g < 24 - w) || (R |= m[T + 3] << 24 - w), R & y;
1882
1882
  }
1883
- function Ae(x, v, g) {
1883
+ function Ae(m, v, g) {
1884
1884
  var w = v & 7, T = v >>> 3;
1885
- return w <= 5 ? x[T] |= (g & 7) << w : (x[T] |= g << w & 255, x[T + 1] = (g & 7) >> 8 - w), v + 3;
1885
+ return w <= 5 ? m[T] |= (g & 7) << w : (m[T] |= g << w & 255, m[T + 1] = (g & 7) >> 8 - w), v + 3;
1886
1886
  }
1887
- function Fe(x, v, g) {
1887
+ function Fe(m, v, g) {
1888
1888
  var w = v & 7, T = v >>> 3;
1889
- return g = (g & 1) << w, x[T] |= g, v + 1;
1889
+ return g = (g & 1) << w, m[T] |= g, v + 1;
1890
1890
  }
1891
- function Ie(x, v, g) {
1891
+ function Ie(m, v, g) {
1892
1892
  var w = v & 7, T = v >>> 3;
1893
- return g <<= w, x[T] |= g & 255, g >>>= 8, x[T + 1] = g, v + 8;
1893
+ return g <<= w, m[T] |= g & 255, g >>>= 8, m[T + 1] = g, v + 8;
1894
1894
  }
1895
- function $e(x, v, g) {
1895
+ function $e(m, v, g) {
1896
1896
  var w = v & 7, T = v >>> 3;
1897
- return g <<= w, x[T] |= g & 255, g >>>= 8, x[T + 1] = g & 255, x[T + 2] = g >>> 8, v + 16;
1897
+ return g <<= w, m[T] |= g & 255, g >>>= 8, m[T + 1] = g & 255, m[T + 2] = g >>> 8, v + 16;
1898
1898
  }
1899
- function Oe(x, v) {
1900
- var g = x.length, w = 2 * g > v ? 2 * g : v + 5, T = 0;
1899
+ function Oe(m, v) {
1900
+ var g = m.length, w = 2 * g > v ? 2 * g : v + 5, T = 0;
1901
1901
  if (g >= v)
1902
- return x;
1902
+ return m;
1903
1903
  if (has_buf) {
1904
1904
  var y = new_unsafe_buf(w);
1905
- if (x.copy)
1906
- x.copy(y);
1905
+ if (m.copy)
1906
+ m.copy(y);
1907
1907
  else
1908
- for (; T < x.length; ++T)
1909
- y[T] = x[T];
1908
+ for (; T < m.length; ++T)
1909
+ y[T] = m[T];
1910
1910
  return y;
1911
1911
  } else if (ae) {
1912
1912
  var R = new Uint8Array(w);
1913
1913
  if (R.set)
1914
- R.set(x);
1914
+ R.set(m);
1915
1915
  else
1916
1916
  for (; T < g; ++T)
1917
- R[T] = x[T];
1917
+ R[T] = m[T];
1918
1918
  return R;
1919
1919
  }
1920
- return x.length = w, x;
1920
+ return m.length = w, m;
1921
1921
  }
1922
- function Se(x) {
1923
- for (var v = new Array(x), g = 0; g < x; ++g)
1922
+ function Se(m) {
1923
+ for (var v = new Array(m), g = 0; g < m; ++g)
1924
1924
  v[g] = 0;
1925
1925
  return v;
1926
1926
  }
1927
- function Pe(x, v, g) {
1928
- var w = 1, T = 0, y = 0, R = 0, H = 0, O = x.length, M = ae ? new Uint16Array(32) : Se(32);
1927
+ function Pe(m, v, g) {
1928
+ var w = 1, T = 0, y = 0, R = 0, H = 0, O = m.length, M = ae ? new Uint16Array(32) : Se(32);
1929
1929
  for (y = 0; y < 32; ++y)
1930
1930
  M[y] = 0;
1931
1931
  for (y = O; y < g; ++y)
1932
- x[y] = 0;
1933
- O = x.length;
1932
+ m[y] = 0;
1933
+ O = m.length;
1934
1934
  var U = ae ? new Uint16Array(O) : Se(O);
1935
1935
  for (y = 0; y < O; ++y)
1936
- M[T = x[y]]++, w < T && (w = T), U[y] = 0;
1936
+ M[T = m[y]]++, w < T && (w = T), U[y] = 0;
1937
1937
  for (M[0] = 0, y = 1; y <= w; ++y)
1938
1938
  M[y + 16] = H = H + M[y - 1] << 1;
1939
1939
  for (y = 0; y < O; ++y)
1940
- H = x[y], H != 0 && (U[y] = M[H + 16]++);
1940
+ H = m[y], H != 0 && (U[y] = M[H + 16]++);
1941
1941
  var K = 0;
1942
1942
  for (y = 0; y < O; ++y)
1943
- if (K = x[y], K != 0)
1943
+ if (K = m[y], K != 0)
1944
1944
  for (H = oe(U[y], w) >> w - K, R = (1 << w + 4 - K) - 1; R >= 0; --R)
1945
1945
  v[H | R << K] = K & 15 | y << 4;
1946
1946
  return w;
@@ -1953,9 +1953,9 @@ var CRC32 = /* @__PURE__ */ function() {
1953
1953
  Me[ke] = 0;
1954
1954
  }
1955
1955
  (function() {
1956
- for (var x = [], v = 0; v < 32; v++)
1957
- x.push(5);
1958
- Pe(x, Me, 32);
1956
+ for (var m = [], v = 0; v < 32; v++)
1957
+ m.push(5);
1958
+ Pe(m, Me, 32);
1959
1959
  var g = [];
1960
1960
  for (v = 0; v <= 143; v++)
1961
1961
  g.push(8);
@@ -2025,20 +2025,20 @@ var CRC32 = /* @__PURE__ */ function() {
2025
2025
  return O.length < 8 ? y(O, M) : R(O, M);
2026
2026
  };
2027
2027
  }();
2028
- function We(x) {
2029
- var v = new_buf(50 + Math.floor(x.length * 1.1)), g = qe(x, v);
2028
+ function We(m) {
2029
+ var v = new_buf(50 + Math.floor(m.length * 1.1)), g = qe(m, v);
2030
2030
  return v.slice(0, g);
2031
2031
  }
2032
2032
  var Xe = ae ? new Uint16Array(32768) : Se(32768), He = ae ? new Uint16Array(32768) : Se(32768), Ge = ae ? new Uint16Array(128) : Se(128), ze = 1, je = 1;
2033
- function Ze(x, v) {
2034
- var g = xe(x, v) + 257;
2033
+ function Ze(m, v) {
2034
+ var g = xe(m, v) + 257;
2035
2035
  v += 5;
2036
- var w = xe(x, v) + 1;
2036
+ var w = xe(m, v) + 1;
2037
2037
  v += 5;
2038
- var T = ye(x, v) + 4;
2038
+ var T = ye(m, v) + 4;
2039
2039
  v += 4;
2040
2040
  for (var y = 0, R = ae ? new Uint8Array(19) : Se(19), H = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], O = 1, M = ae ? new Uint8Array(8) : Se(8), U = ae ? new Uint8Array(8) : Se(8), K = R.length, Z = 0; Z < T; ++Z)
2041
- R[D[Z]] = y = fe(x, v), O < y && (O = y), M[y]++, v += 3;
2041
+ R[D[Z]] = y = fe(m, v), O < y && (O = y), M[y]++, v += 3;
2042
2042
  var te = 0;
2043
2043
  for (M[0] = 0, Z = 1; Z <= O; ++Z)
2044
2044
  U[Z] = te = te + M[Z - 1] << 1;
@@ -2053,17 +2053,17 @@ var CRC32 = /* @__PURE__ */ function() {
2053
2053
  }
2054
2054
  var se = [];
2055
2055
  for (O = 1; se.length < g + w; )
2056
- switch (te = Ge[re(x, v)], v += te & 7, te >>>= 3) {
2056
+ switch (te = Ge[re(m, v)], v += te & 7, te >>>= 3) {
2057
2057
  case 16:
2058
- for (y = 3 + ve(x, v), v += 2, te = se[se.length - 1]; y-- > 0; )
2058
+ for (y = 3 + ve(m, v), v += 2, te = se[se.length - 1]; y-- > 0; )
2059
2059
  se.push(te);
2060
2060
  break;
2061
2061
  case 17:
2062
- for (y = 3 + fe(x, v), v += 3; y-- > 0; )
2062
+ for (y = 3 + fe(m, v), v += 3; y-- > 0; )
2063
2063
  se.push(0);
2064
2064
  break;
2065
2065
  case 18:
2066
- for (y = 11 + re(x, v), v += 7; y-- > 0; )
2066
+ for (y = 11 + re(m, v), v += 7; y-- > 0; )
2067
2067
  se.push(0);
2068
2068
  break;
2069
2069
  default:
@@ -2077,23 +2077,23 @@ var CRC32 = /* @__PURE__ */ function() {
2077
2077
  pe[Z] = 0;
2078
2078
  return ze = Pe(_e, Xe, 286), je = Pe(pe, He, 30), v;
2079
2079
  }
2080
- function Qe(x, v) {
2081
- if (x[0] == 3 && !(x[1] & 3))
2080
+ function Qe(m, v) {
2081
+ if (m[0] == 3 && !(m[1] & 3))
2082
2082
  return [new_raw_buf(v), 2];
2083
2083
  for (var g = 0, w = 0, T = new_unsafe_buf(v || 1 << 18), y = 0, R = T.length >>> 0, H = 0, O = 0; !(w & 1); ) {
2084
- if (w = fe(x, g), g += 3, w >>> 1)
2085
- w >> 1 == 1 ? (H = 9, O = 5) : (g = Ze(x, g), H = ze, O = je);
2084
+ if (w = fe(m, g), g += 3, w >>> 1)
2085
+ w >> 1 == 1 ? (H = 9, O = 5) : (g = Ze(m, g), H = ze, O = je);
2086
2086
  else {
2087
2087
  g & 7 && (g += 8 - (g & 7));
2088
- var M = x[g >>> 3] | x[(g >>> 3) + 1] << 8;
2088
+ var M = m[g >>> 3] | m[(g >>> 3) + 1] << 8;
2089
2089
  if (g += 32, M > 0)
2090
2090
  for (!v && R < y + M && (T = Oe(T, y + M), R = T.length); M-- > 0; )
2091
- T[y++] = x[g >>> 3], g += 8;
2091
+ T[y++] = m[g >>> 3], g += 8;
2092
2092
  continue;
2093
2093
  }
2094
2094
  for (; ; ) {
2095
2095
  !v && R < y + 32767 && (T = Oe(T, y + 32767), R = T.length);
2096
- var U = Te(x, g, H), K = w >>> 1 == 1 ? Re[U] : Xe[U];
2096
+ var U = Te(m, g, H), K = w >>> 1 == 1 ? Re[U] : Xe[U];
2097
2097
  if (g += K & 15, K >>>= 4, !(K >>> 8 & 255))
2098
2098
  T[y++] = K;
2099
2099
  else {
@@ -2103,29 +2103,29 @@ var CRC32 = /* @__PURE__ */ function() {
2103
2103
  var Z = K < 8 ? 0 : K - 4 >> 2;
2104
2104
  Z > 5 && (Z = 0);
2105
2105
  var te = y + j[K];
2106
- Z > 0 && (te += Te(x, g, Z), g += Z), U = Te(x, g, O), K = w >>> 1 == 1 ? Me[U] : He[U], g += K & 15, K >>>= 4;
2106
+ Z > 0 && (te += Te(m, g, Z), g += Z), U = Te(m, g, O), K = w >>> 1 == 1 ? Me[U] : He[U], g += K & 15, K >>>= 4;
2107
2107
  var J = K < 4 ? 0 : K - 2 >> 1, ee = ne[K];
2108
- for (J > 0 && (ee += Te(x, g, J), g += J), !v && R < te && (T = Oe(T, te + 100), R = T.length); y < te; )
2108
+ for (J > 0 && (ee += Te(m, g, J), g += J), !v && R < te && (T = Oe(T, te + 100), R = T.length); y < te; )
2109
2109
  T[y] = T[y - ee], ++y;
2110
2110
  }
2111
2111
  }
2112
2112
  }
2113
2113
  return v ? [T, g + 7 >>> 3] : [T.slice(0, y), g + 7 >>> 3];
2114
2114
  }
2115
- function Ke(x, v) {
2116
- var g = x.slice(x.l || 0), w = Qe(g, v);
2117
- return x.l += w[1], w[0];
2115
+ function Ke(m, v) {
2116
+ var g = m.slice(m.l || 0), w = Qe(g, v);
2117
+ return m.l += w[1], w[0];
2118
2118
  }
2119
- function Ye(x, v) {
2120
- if (x)
2119
+ function Ye(m, v) {
2120
+ if (m)
2121
2121
  typeof console < "u" && console.error(v);
2122
2122
  else
2123
2123
  throw new Error(v);
2124
2124
  }
2125
- function Je(x, v) {
2125
+ function Je(m, v) {
2126
2126
  var g = (
2127
2127
  /*::(*/
2128
- x
2128
+ m
2129
2129
  );
2130
2130
  prep_blob(g, 0);
2131
2131
  var w = [], T = [], y = {
@@ -2154,26 +2154,26 @@ var CRC32 = /* @__PURE__ */ function() {
2154
2154
  }
2155
2155
  return y;
2156
2156
  }
2157
- function et(x, v, g, w, T) {
2158
- x.l += 2;
2159
- var y = x.read_shift(2), R = x.read_shift(2), H = s(x);
2157
+ function et(m, v, g, w, T) {
2158
+ m.l += 2;
2159
+ var y = m.read_shift(2), R = m.read_shift(2), H = s(m);
2160
2160
  if (y & 8257)
2161
2161
  throw new Error("Unsupported ZIP encryption");
2162
- for (var O = x.read_shift(4), M = x.read_shift(4), U = x.read_shift(4), K = x.read_shift(2), Z = x.read_shift(2), te = "", J = 0; J < K; ++J)
2163
- te += String.fromCharCode(x[x.l++]);
2162
+ for (var O = m.read_shift(4), M = m.read_shift(4), U = m.read_shift(4), K = m.read_shift(2), Z = m.read_shift(2), te = "", J = 0; J < K; ++J)
2163
+ te += String.fromCharCode(m[m.l++]);
2164
2164
  if (Z) {
2165
2165
  var ee = l(
2166
2166
  /*::(*/
2167
- x.slice(x.l, x.l + Z)
2167
+ m.slice(m.l, m.l + Z)
2168
2168
  /*:: :any)*/
2169
2169
  );
2170
2170
  (ee[21589] || {}).mt && (H = ee[21589].mt), ((T || {})[21589] || {}).mt && (H = T[21589].mt);
2171
2171
  }
2172
- x.l += Z;
2173
- var se = x.slice(x.l, x.l + M);
2172
+ m.l += Z;
2173
+ var se = m.slice(m.l, m.l + M);
2174
2174
  switch (R) {
2175
2175
  case 8:
2176
- se = W(x, U);
2176
+ se = W(m, U);
2177
2177
  break;
2178
2178
  case 0:
2179
2179
  break;
@@ -2181,12 +2181,12 @@ var CRC32 = /* @__PURE__ */ function() {
2181
2181
  throw new Error("Unsupported ZIP Compression method " + R);
2182
2182
  }
2183
2183
  var _e = !1;
2184
- y & 8 && (O = x.read_shift(4), O == 134695760 && (O = x.read_shift(4), _e = !0), M = x.read_shift(4), U = x.read_shift(4)), M != v && Ye(_e, "Bad compressed size: " + v + " != " + M), U != g && Ye(_e, "Bad uncompressed size: " + g + " != " + U), Ve(w, te, se, { unsafe: !0, mt: H });
2184
+ y & 8 && (O = m.read_shift(4), O == 134695760 && (O = m.read_shift(4), _e = !0), M = m.read_shift(4), U = m.read_shift(4)), M != v && Ye(_e, "Bad compressed size: " + v + " != " + M), U != g && Ye(_e, "Bad uncompressed size: " + g + " != " + U), Ve(w, te, se, { unsafe: !0, mt: H });
2185
2185
  }
2186
- function tt(x, v) {
2187
- var g = v || {}, w = [], T = [], y = new_buf(1), R = g.compression ? 8 : 0, H = 0, O = 0, M = 0, U = 0, K = 0, Z = x.FullPaths[0], te = Z, J = x.FileIndex[0], ee = [], se = 0;
2188
- for (O = 1; O < x.FullPaths.length; ++O)
2189
- if (te = x.FullPaths[O].slice(Z.length), J = x.FileIndex[O], !(!J.size || !J.content || te == "Sh33tJ5")) {
2186
+ function tt(m, v) {
2187
+ var g = v || {}, w = [], T = [], y = new_buf(1), R = g.compression ? 8 : 0, H = 0, O = 0, M = 0, U = 0, K = 0, Z = m.FullPaths[0], te = Z, J = m.FileIndex[0], ee = [], se = 0;
2188
+ for (O = 1; O < m.FullPaths.length; ++O)
2189
+ if (te = m.FullPaths[O].slice(Z.length), J = m.FileIndex[O], !(!J.size || !J.content || te == "Sh33tJ5")) {
2190
2190
  var _e = U, pe = new_buf(te.length);
2191
2191
  for (M = 0; M < te.length; ++M)
2192
2192
  pe.write_shift(1, te.charCodeAt(M) & 127);
@@ -2218,21 +2218,21 @@ var CRC32 = /* @__PURE__ */ function() {
2218
2218
  thmx: "application/vnd.ms-officetheme",
2219
2219
  sh33tj5: "application/octet-stream"
2220
2220
  };
2221
- function rt(x, v) {
2222
- if (x.ctype)
2223
- return x.ctype;
2224
- var g = x.name || "", w = g.match(/\.([^\.]+)$/);
2221
+ function rt(m, v) {
2222
+ if (m.ctype)
2223
+ return m.ctype;
2224
+ var g = m.name || "", w = g.match(/\.([^\.]+)$/);
2225
2225
  return w && be[w[1]] || v && (w = (g = v).match(/[\.\\]([^\.\\])+$/), w && be[w[1]]) ? be[w[1]] : "application/octet-stream";
2226
2226
  }
2227
- function at(x) {
2228
- for (var v = Base64_encode(x), g = [], w = 0; w < v.length; w += 76)
2227
+ function at(m) {
2228
+ for (var v = Base64_encode(m), g = [], w = 0; w < v.length; w += 76)
2229
2229
  g.push(v.slice(w, w + 76));
2230
2230
  return g.join(`\r
2231
2231
  `) + `\r
2232
2232
  `;
2233
2233
  }
2234
- function nt(x) {
2235
- var v = x.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g, function(M) {
2234
+ function nt(m) {
2235
+ var v = m.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g, function(M) {
2236
2236
  var U = M.charCodeAt(0).toString(16).toUpperCase();
2237
2237
  return "=" + (U.length == 1 ? "0" + U : U);
2238
2238
  });
@@ -2254,10 +2254,10 @@ var CRC32 = /* @__PURE__ */ function() {
2254
2254
  return g.join(`\r
2255
2255
  `);
2256
2256
  }
2257
- function it(x) {
2258
- for (var v = [], g = 0; g < x.length; ++g) {
2259
- for (var w = x[g]; g <= x.length && w.charAt(w.length - 1) == "="; )
2260
- w = w.slice(0, w.length - 1) + x[++g];
2257
+ function it(m) {
2258
+ for (var v = [], g = 0; g < m.length; ++g) {
2259
+ for (var w = m[g]; g <= m.length && w.charAt(w.length - 1) == "="; )
2260
+ w = w.slice(0, w.length - 1) + m[++g];
2261
2261
  v.push(w);
2262
2262
  }
2263
2263
  for (var T = 0; T < v.length; ++T)
@@ -2267,7 +2267,7 @@ var CRC32 = /* @__PURE__ */ function() {
2267
2267
  return s2a(v.join(`\r
2268
2268
  `));
2269
2269
  }
2270
- function st(x, v, g) {
2270
+ function st(m, v, g) {
2271
2271
  for (var w = "", T = "", y = "", R, H = 0; H < 10; ++H) {
2272
2272
  var O = v[H];
2273
2273
  if (!O || O.match(/^\s*$/))
@@ -2296,13 +2296,13 @@ var CRC32 = /* @__PURE__ */ function() {
2296
2296
  default:
2297
2297
  throw new Error("Unsupported Content-Transfer-Encoding " + T);
2298
2298
  }
2299
- var U = Ve(x, w.slice(g.length), R, { unsafe: !0 });
2299
+ var U = Ve(m, w.slice(g.length), R, { unsafe: !0 });
2300
2300
  y && (U.ctype = y);
2301
2301
  }
2302
- function lt(x, v) {
2303
- if (me(x.slice(0, 13)).toLowerCase() != "mime-version:")
2302
+ function lt(m, v) {
2303
+ if (me(m.slice(0, 13)).toLowerCase() != "mime-version:")
2304
2304
  throw new Error("Unsupported MAD header");
2305
- var g = v && v.root || "", w = (has_buf && Buffer.isBuffer(x) ? x.toString("binary") : me(x)).split(`\r
2305
+ var g = v && v.root || "", w = (has_buf && Buffer.isBuffer(m) ? m.toString("binary") : me(m)).split(`\r
2306
2306
  `), T = 0, y = "";
2307
2307
  for (T = 0; T < w.length; ++T)
2308
2308
  if (y = w[T], !!/^Content-Location:/i.test(y) && (y = y.slice(y.indexOf("file")), g || (g = y.slice(0, y.lastIndexOf("/") + 1)), y.slice(0, g.length) != g))
@@ -2323,7 +2323,7 @@ var CRC32 = /* @__PURE__ */ function() {
2323
2323
  }
2324
2324
  return U;
2325
2325
  }
2326
- function ot(x, v) {
2326
+ function ot(m, v) {
2327
2327
  var g = v || {}, w = g.boundary || "SheetJS";
2328
2328
  w = "------=" + w;
2329
2329
  for (var T = [
@@ -2332,8 +2332,8 @@ var CRC32 = /* @__PURE__ */ function() {
2332
2332
  "",
2333
2333
  "",
2334
2334
  ""
2335
- ], y = x.FullPaths[0], R = y, H = x.FileIndex[0], O = 1; O < x.FullPaths.length; ++O)
2336
- if (R = x.FullPaths[O].slice(y.length), H = x.FileIndex[O], !(!H.size || !H.content || R == "Sh33tJ5")) {
2335
+ ], y = m.FullPaths[0], R = y, H = m.FileIndex[0], O = 1; O < m.FullPaths.length; ++O)
2336
+ if (R = m.FullPaths[O].slice(y.length), H = m.FileIndex[O], !(!H.size || !H.content || R == "Sh33tJ5")) {
2337
2337
  R = R.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g, function(se) {
2338
2338
  return "_x" + se.charCodeAt(0).toString(16) + "_";
2339
2339
  }).replace(/[\u0080-\uFFFF]/g, function(se) {
@@ -2348,42 +2348,42 @@ var CRC32 = /* @__PURE__ */ function() {
2348
2348
  `), T.join(`\r
2349
2349
  `);
2350
2350
  }
2351
- function ft(x) {
2351
+ function ft(m) {
2352
2352
  var v = {};
2353
- return S(v, x), v;
2353
+ return S(v, m), v;
2354
2354
  }
2355
- function Ve(x, v, g, w) {
2355
+ function Ve(m, v, g, w) {
2356
2356
  var T = w && w.unsafe;
2357
- T || S(x);
2358
- var y = !T && CFB.find(x, v);
2357
+ T || S(m);
2358
+ var y = !T && CFB.find(m, v);
2359
2359
  if (!y) {
2360
- var R = x.FullPaths[0];
2361
- v.slice(0, R.length) == R ? R = v : (R.slice(-1) != "/" && (R += "/"), R = (R + v).replace("//", "/")), y = { name: n(v), type: 2 }, x.FileIndex.push(y), x.FullPaths.push(R), T || CFB.utils.cfb_gc(x);
2360
+ var R = m.FullPaths[0];
2361
+ v.slice(0, R.length) == R ? R = v : (R.slice(-1) != "/" && (R += "/"), R = (R + v).replace("//", "/")), y = { name: n(v), type: 2 }, m.FileIndex.push(y), m.FullPaths.push(R), T || CFB.utils.cfb_gc(m);
2362
2362
  }
2363
2363
  return y.content = g, y.size = g ? g.length : 0, w && (w.CLSID && (y.clsid = w.CLSID), w.mt && (y.mt = w.mt), w.ct && (y.ct = w.ct)), y;
2364
2364
  }
2365
- function ct(x, v) {
2366
- S(x);
2367
- var g = CFB.find(x, v);
2365
+ function ct(m, v) {
2366
+ S(m);
2367
+ var g = CFB.find(m, v);
2368
2368
  if (g) {
2369
- for (var w = 0; w < x.FileIndex.length; ++w)
2370
- if (x.FileIndex[w] == g)
2371
- return x.FileIndex.splice(w, 1), x.FullPaths.splice(w, 1), !0;
2369
+ for (var w = 0; w < m.FileIndex.length; ++w)
2370
+ if (m.FileIndex[w] == g)
2371
+ return m.FileIndex.splice(w, 1), m.FullPaths.splice(w, 1), !0;
2372
2372
  }
2373
2373
  return !1;
2374
2374
  }
2375
- function ut(x, v, g) {
2376
- S(x);
2377
- var w = CFB.find(x, v);
2375
+ function ut(m, v, g) {
2376
+ S(m);
2377
+ var w = CFB.find(m, v);
2378
2378
  if (w) {
2379
- for (var T = 0; T < x.FileIndex.length; ++T)
2380
- if (x.FileIndex[T] == w)
2381
- return x.FileIndex[T].name = n(g), x.FullPaths[T] = g, !0;
2379
+ for (var T = 0; T < m.FileIndex.length; ++T)
2380
+ if (m.FileIndex[T] == w)
2381
+ return m.FileIndex[T].name = n(g), m.FullPaths[T] = g, !0;
2382
2382
  }
2383
2383
  return !1;
2384
2384
  }
2385
- function ht(x) {
2386
- A(x, !0);
2385
+ function ht(m) {
2386
+ A(m, !0);
2387
2387
  }
2388
2388
  return r.find = V, r.read = z, r.parse = c, r.write = ge, r.writeFile = Ee, r.utils = {
2389
2389
  cfb_new: ft,
@@ -3206,8 +3206,8 @@ function sheet_add_aoa(e, r, t) {
3206
3206
  throw new Error("aoa_to_sheet expects an array of arrays");
3207
3207
  for (var _ = 0; _ != r[d].length; ++_)
3208
3208
  if (!(typeof r[d][_] > "u")) {
3209
- var h = { v: r[d][_] }, p = s + d, u = l + _;
3210
- if (f.s.r > p && (f.s.r = p), f.s.c > u && (f.s.c = u), f.e.r < p && (f.e.r = p), f.e.c < u && (f.e.c = u), r[d][_] && typeof r[d][_] == "object" && !Array.isArray(r[d][_]) && !(r[d][_] instanceof Date))
3209
+ var h = { v: r[d][_] }, x = s + d, u = l + _;
3210
+ if (f.s.r > x && (f.s.r = x), f.s.c > u && (f.s.c = u), f.e.r < x && (f.e.r = x), f.e.c < u && (f.e.c = u), r[d][_] && typeof r[d][_] == "object" && !Array.isArray(r[d][_]) && !(r[d][_] instanceof Date))
3211
3211
  h = r[d][_];
3212
3212
  else if (Array.isArray(h.v) && (h.f = r[d][_][1], h.v = h.v[0]), h.v === null)
3213
3213
  if (h.f)
@@ -3221,10 +3221,10 @@ function sheet_add_aoa(e, r, t) {
3221
3221
  else
3222
3222
  typeof h.v == "number" ? h.t = "n" : typeof h.v == "boolean" ? h.t = "b" : h.v instanceof Date ? (h.z = a.dateNF || table_fmt[14], a.cellDates ? (h.t = "d", h.w = SSF_format(h.z, datenum(h.v))) : (h.t = "n", h.v = datenum(h.v), h.w = SSF_format(h.z, h.v))) : h.t = "s";
3223
3223
  if (n)
3224
- i[p] || (i[p] = []), i[p][u] && i[p][u].z && (h.z = i[p][u].z), i[p][u] = h;
3224
+ i[x] || (i[x] = []), i[x][u] && i[x][u].z && (h.z = i[x][u].z), i[x][u] = h;
3225
3225
  else {
3226
- var m = encode_cell({ c: u, r: p });
3227
- i[m] && i[m].z && (h.z = i[m].z), i[m] = h;
3226
+ var p = encode_cell({ c: u, r: x });
3227
+ i[p] && i[p].z && (h.z = i[p].z), i[p] = h;
3228
3228
  }
3229
3229
  }
3230
3230
  }
@@ -4219,15 +4219,15 @@ function write_PropertySet(e, r, t) {
4219
4219
  var _ = e[l][1], h = 0;
4220
4220
  if (r) {
4221
4221
  h = +r[e[l][0]];
4222
- var p = t[h];
4223
- if (p.p == "version" && typeof _ == "string") {
4222
+ var x = t[h];
4223
+ if (x.p == "version" && typeof _ == "string") {
4224
4224
  var u = _.split(".");
4225
4225
  _ = (+u[0] << 16) + (+u[1] || 0);
4226
4226
  }
4227
- o = write_TypedPropertyValue(p.t, _);
4227
+ o = write_TypedPropertyValue(x.t, _);
4228
4228
  } else {
4229
- var m = guess_property_type(_);
4230
- m == -1 && (m = 31, _ = String(_)), o = write_TypedPropertyValue(m, _);
4229
+ var p = guess_property_type(_);
4230
+ p == -1 && (p = 31, _ = String(_)), o = write_TypedPropertyValue(p, _);
4231
4231
  }
4232
4232
  i.push(o), f = new_buf(8), f.write_shift(4, r ? h : 2 + l), n.push(f), s += 8 + o.length;
4233
4233
  }
@@ -4742,7 +4742,7 @@ var DBF = /* @__PURE__ */ function() {
4742
4742
  break;
4743
4743
  }
4744
4744
  prep_blob(c, 0);
4745
- var d = c.read_shift(1), _ = !!(d & 136), h = !1, p = !1;
4745
+ var d = c.read_shift(1), _ = !!(d & 136), h = !1, x = !1;
4746
4746
  switch (d) {
4747
4747
  case 2:
4748
4748
  break;
@@ -4759,19 +4759,19 @@ var DBF = /* @__PURE__ */ function() {
4759
4759
  case 139:
4760
4760
  break;
4761
4761
  case 140:
4762
- p = !0;
4762
+ x = !0;
4763
4763
  break;
4764
4764
  case 245:
4765
4765
  break;
4766
4766
  default:
4767
4767
  throw new Error("DBF Unsupported Version: " + d.toString(16));
4768
4768
  }
4769
- var u = 0, m = 521;
4770
- d == 2 && (u = c.read_shift(2)), c.l += 3, d != 2 && (u = c.read_shift(4)), u > 1048576 && (u = 1e6), d != 2 && (m = c.read_shift(2));
4769
+ var u = 0, p = 521;
4770
+ d == 2 && (u = c.read_shift(2)), c.l += 3, d != 2 && (u = c.read_shift(4)), u > 1048576 && (u = 1e6), d != 2 && (p = c.read_shift(2));
4771
4771
  var C = c.read_shift(2), I = o.codepage || 1252;
4772
- d != 2 && (c.l += 16, c.read_shift(1), c[c.l] !== 0 && (I = e[c[c.l]]), c.l += 1, c.l += 2), p && (c.l += 36);
4773
- for (var k = [], b = {}, X = Math.min(c.length, d == 2 ? 521 : m - 10 - (h ? 264 : 0)), z = p ? 32 : 11; c.l < X && c[c.l] != 13; )
4774
- 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)), d != 2 && !p && (b.offset = c.read_shift(4)), b.len = c.read_shift(1), d == 2 && (b.offset = c.read_shift(2)), b.dec = c.read_shift(1), b.name.length && k.push(b), d != 2 && (c.l += p ? 13 : 14), b.type) {
4772
+ d != 2 && (c.l += 16, c.read_shift(1), c[c.l] !== 0 && (I = e[c[c.l]]), c.l += 1, c.l += 2), x && (c.l += 36);
4773
+ for (var k = [], b = {}, X = Math.min(c.length, d == 2 ? 521 : p - 10 - (h ? 264 : 0)), z = x ? 32 : 11; c.l < X && c[c.l] != 13; )
4774
+ 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)), d != 2 && !x && (b.offset = c.read_shift(4)), b.len = c.read_shift(1), d == 2 && (b.offset = c.read_shift(2)), b.dec = c.read_shift(1), b.name.length && k.push(b), d != 2 && (c.l += x ? 13 : 14), b.type) {
4775
4775
  case "B":
4776
4776
  (!h || b.len != 8) && o.WTF && console.log("Skipping " + b.name + ":" + b.type);
4777
4777
  break;
@@ -4796,9 +4796,9 @@ var DBF = /* @__PURE__ */ function() {
4796
4796
  default:
4797
4797
  throw new Error("Unknown Field Type: " + b.type);
4798
4798
  }
4799
- if (c[c.l] !== 13 && (c.l = m - 1), c.read_shift(1) !== 13)
4799
+ if (c[c.l] !== 13 && (c.l = p - 1), c.read_shift(1) !== 13)
4800
4800
  throw new Error("DBF Terminator not found " + c.l + " " + c[c.l]);
4801
- c.l = m;
4801
+ c.l = p;
4802
4802
  var S = 0, B = 0;
4803
4803
  for (f[0] = [], B = 0; B != k.length; ++B)
4804
4804
  f[0][B] = k[B].name;
@@ -4823,7 +4823,7 @@ var DBF = /* @__PURE__ */ function() {
4823
4823
  break;
4824
4824
  case "+":
4825
4825
  case "I":
4826
- f[S][B] = p ? A.read_shift(-4, "i") ^ 2147483648 : A.read_shift(4, "i");
4826
+ f[S][B] = x ? A.read_shift(-4, "i") ^ 2147483648 : A.read_shift(4, "i");
4827
4827
  break;
4828
4828
  case "L":
4829
4829
  switch (N.trim().toUpperCase()) {
@@ -4845,7 +4845,7 @@ var DBF = /* @__PURE__ */ function() {
4845
4845
  case "M":
4846
4846
  if (!_)
4847
4847
  throw new Error("DBF Unexpected MEMO for type " + d.toString(16));
4848
- f[S][B] = "##MEMO##" + (p ? parseInt(N.trim(), 10) : A.read_shift(4));
4848
+ f[S][B] = "##MEMO##" + (x ? parseInt(N.trim(), 10) : A.read_shift(4));
4849
4849
  break;
4850
4850
  case "N":
4851
4851
  N = N.replace(/\u0000/g, "").trim(), N && N != "." && (f[S][B] = +N || 0);
@@ -4908,19 +4908,19 @@ var DBF = /* @__PURE__ */ function() {
4908
4908
  var f = o || {};
4909
4909
  if (+f.codepage >= 0 && set_cp(+f.codepage), f.type == "string")
4910
4910
  throw new Error("Cannot write DBF to JS string");
4911
- var c = buf_array(), d = sheet_to_json(l, { header: 1, raw: !0, cellDates: !0 }), _ = d[0], h = d.slice(1), p = l["!cols"] || [], u = 0, m = 0, C = 0, I = 1;
4911
+ var c = buf_array(), d = sheet_to_json(l, { header: 1, raw: !0, cellDates: !0 }), _ = d[0], h = d.slice(1), x = l["!cols"] || [], u = 0, p = 0, C = 0, I = 1;
4912
4912
  for (u = 0; u < _.length; ++u) {
4913
- if (((p[u] || {}).DBF || {}).name) {
4914
- _[u] = p[u].DBF.name, ++C;
4913
+ if (((x[u] || {}).DBF || {}).name) {
4914
+ _[u] = x[u].DBF.name, ++C;
4915
4915
  continue;
4916
4916
  }
4917
4917
  if (_[u] != null) {
4918
4918
  if (++C, typeof _[u] == "number" && (_[u] = _[u].toString(10)), typeof _[u] != "string")
4919
4919
  throw new Error("DBF Invalid column name " + _[u] + " |" + typeof _[u] + "|");
4920
4920
  if (_.indexOf(_[u]) !== u) {
4921
- for (m = 0; m < 1024; ++m)
4922
- if (_.indexOf(_[u] + "_" + m) == -1) {
4923
- _[u] += "_" + m;
4921
+ for (p = 0; p < 1024; ++p)
4922
+ if (_.indexOf(_[u] + "_" + p) == -1) {
4923
+ _[u] += "_" + p;
4924
4924
  break;
4925
4925
  }
4926
4926
  }
@@ -4929,14 +4929,14 @@ var DBF = /* @__PURE__ */ function() {
4929
4929
  var k = safe_decode_range(l["!ref"]), b = [], X = [], z = [];
4930
4930
  for (u = 0; u <= k.e.c - k.s.c; ++u) {
4931
4931
  var S = "", B = "", A = 0, N = [];
4932
- for (m = 0; m < h.length; ++m)
4933
- h[m][u] != null && N.push(h[m][u]);
4932
+ for (p = 0; p < h.length; ++p)
4933
+ h[p][u] != null && N.push(h[p][u]);
4934
4934
  if (N.length == 0 || _[u] == null) {
4935
4935
  b[u] = "?";
4936
4936
  continue;
4937
4937
  }
4938
- for (m = 0; m < N.length; ++m) {
4939
- switch (typeof N[m]) {
4938
+ for (p = 0; p < N.length; ++p) {
4939
+ switch (typeof N[p]) {
4940
4940
  case "number":
4941
4941
  B = "B";
4942
4942
  break;
@@ -4947,14 +4947,14 @@ var DBF = /* @__PURE__ */ function() {
4947
4947
  B = "L";
4948
4948
  break;
4949
4949
  case "object":
4950
- B = N[m] instanceof Date ? "D" : "C";
4950
+ B = N[p] instanceof Date ? "D" : "C";
4951
4951
  break;
4952
4952
  default:
4953
4953
  B = "C";
4954
4954
  }
4955
- A = Math.max(A, String(N[m]).length), S = S && S != B ? "C" : B;
4955
+ A = Math.max(A, String(N[p]).length), S = S && S != B ? "C" : B;
4956
4956
  }
4957
- A > 250 && (A = 250), B = ((p[u] || {}).DBF || {}).type, B == "C" && p[u].DBF.len > A && (A = p[u].DBF.len), S == "B" && B == "N" && (S = "N", z[u] = p[u].DBF.dec, A = p[u].DBF.len), X[u] = S == "C" || B == "N" ? A : i[S] || 0, I += X[u], b[u] = S;
4957
+ A > 250 && (A = 250), B = ((x[u] || {}).DBF || {}).type, B == "C" && x[u].DBF.len > A && (A = x[u].DBF.len), S == "B" && B == "N" && (S = "N", z[u] = x[u].DBF.dec, A = x[u].DBF.len), X[u] = S == "C" || B == "N" ? A : i[S] || 0, I += X[u], b[u] = S;
4958
4958
  }
4959
4959
  var V = c.next(32);
4960
4960
  for (V.write_shift(4, 318902576), V.write_shift(4, h.length), V.write_shift(2, 296 + 32 * C), V.write_shift(2, I), u = 0; u < 4; ++u)
@@ -4963,37 +4963,37 @@ var DBF = /* @__PURE__ */ function() {
4963
4963
  /*::String(*/
4964
4964
  current_ansi
4965
4965
  /*::)*/
4966
- ] || 3) << 8), u = 0, m = 0; u < _.length; ++u)
4966
+ ] || 3) << 8), u = 0, p = 0; u < _.length; ++u)
4967
4967
  if (_[u] != null) {
4968
4968
  var G = c.next(32), Y = (_[u].slice(-10) + "\0\0\0\0\0\0\0\0\0\0\0").slice(0, 11);
4969
- G.write_shift(1, Y, "sbcs"), G.write_shift(1, b[u] == "?" ? "C" : b[u], "sbcs"), G.write_shift(4, m), G.write_shift(1, X[u] || i[b[u]] || 0), G.write_shift(1, z[u] || 0), G.write_shift(1, 2), G.write_shift(4, 0), G.write_shift(1, 0), G.write_shift(4, 0), G.write_shift(4, 0), m += X[u] || i[b[u]] || 0;
4969
+ G.write_shift(1, Y, "sbcs"), G.write_shift(1, b[u] == "?" ? "C" : b[u], "sbcs"), G.write_shift(4, p), G.write_shift(1, X[u] || i[b[u]] || 0), G.write_shift(1, z[u] || 0), G.write_shift(1, 2), G.write_shift(4, 0), G.write_shift(1, 0), G.write_shift(4, 0), G.write_shift(4, 0), p += X[u] || i[b[u]] || 0;
4970
4970
  }
4971
4971
  var le = c.next(264);
4972
4972
  for (le.write_shift(4, 13), u = 0; u < 65; ++u)
4973
4973
  le.write_shift(4, 0);
4974
4974
  for (u = 0; u < h.length; ++u) {
4975
4975
  var q = c.next(I);
4976
- for (q.write_shift(1, 0), m = 0; m < _.length; ++m)
4977
- if (_[m] != null)
4978
- switch (b[m]) {
4976
+ for (q.write_shift(1, 0), p = 0; p < _.length; ++p)
4977
+ if (_[p] != null)
4978
+ switch (b[p]) {
4979
4979
  case "L":
4980
- q.write_shift(1, h[u][m] == null ? 63 : h[u][m] ? 84 : 70);
4980
+ q.write_shift(1, h[u][p] == null ? 63 : h[u][p] ? 84 : 70);
4981
4981
  break;
4982
4982
  case "B":
4983
- q.write_shift(8, h[u][m] || 0, "f");
4983
+ q.write_shift(8, h[u][p] || 0, "f");
4984
4984
  break;
4985
4985
  case "N":
4986
4986
  var he = "0";
4987
- for (typeof h[u][m] == "number" && (he = h[u][m].toFixed(z[m] || 0)), C = 0; C < X[m] - he.length; ++C)
4987
+ for (typeof h[u][p] == "number" && (he = h[u][p].toFixed(z[p] || 0)), C = 0; C < X[p] - he.length; ++C)
4988
4988
  q.write_shift(1, 32);
4989
4989
  q.write_shift(1, he, "sbcs");
4990
4990
  break;
4991
4991
  case "D":
4992
- h[u][m] ? (q.write_shift(4, ("0000" + h[u][m].getFullYear()).slice(-4), "sbcs"), q.write_shift(2, ("00" + (h[u][m].getMonth() + 1)).slice(-2), "sbcs"), q.write_shift(2, ("00" + h[u][m].getDate()).slice(-2), "sbcs")) : q.write_shift(8, "00000000", "sbcs");
4992
+ h[u][p] ? (q.write_shift(4, ("0000" + h[u][p].getFullYear()).slice(-4), "sbcs"), q.write_shift(2, ("00" + (h[u][p].getMonth() + 1)).slice(-2), "sbcs"), q.write_shift(2, ("00" + h[u][p].getDate()).slice(-2), "sbcs")) : q.write_shift(8, "00000000", "sbcs");
4993
4993
  break;
4994
4994
  case "C":
4995
- var ue = String(h[u][m] != null ? h[u][m] : "").slice(0, X[m]);
4996
- for (q.write_shift(1, ue, "sbcs"), C = 0; C < X[m] - ue.length; ++C)
4995
+ var ue = String(h[u][p] != null ? h[u][p] : "").slice(0, X[p]);
4996
+ for (q.write_shift(1, ue, "sbcs"), C = 0; C < X[p] - ue.length; ++C)
4997
4997
  q.write_shift(1, 32);
4998
4998
  break;
4999
4999
  }
@@ -5102,10 +5102,10 @@ var DBF = /* @__PURE__ */ function() {
5102
5102
  "?": 191,
5103
5103
  "{": 223
5104
5104
  }, r = new RegExp("\x1BN(" + keys(e).join("|").replace(/\|\|\|/, "|\\||").replace(/([?()+])/g, "\\$1") + "|\\|)", "gm"), t = function(_, h) {
5105
- var p = e[h];
5106
- return typeof p == "number" ? _getansi(p) : p;
5107
- }, a = function(_, h, p) {
5108
- var u = h.charCodeAt(0) - 32 << 4 | p.charCodeAt(0) - 48;
5105
+ var x = e[h];
5106
+ return typeof x == "number" ? _getansi(x) : x;
5107
+ }, a = function(_, h, x) {
5108
+ var u = h.charCodeAt(0) - 32 << 4 | x.charCodeAt(0) - 48;
5109
5109
  return u == 59 ? _ : _getansi(u);
5110
5110
  };
5111
5111
  e["|"] = 254;
@@ -5123,10 +5123,10 @@ var DBF = /* @__PURE__ */ function() {
5123
5123
  throw new Error("Unrecognized type " + h.type);
5124
5124
  }
5125
5125
  function i(_, h) {
5126
- var p = _.split(/[\n\r]+/), u = -1, m = -1, C = 0, I = 0, k = [], b = [], X = null, z = {}, S = [], B = [], A = [], N = 0, V;
5127
- for (+h.codepage >= 0 && set_cp(+h.codepage); C !== p.length; ++C) {
5126
+ var x = _.split(/[\n\r]+/), u = -1, p = -1, C = 0, I = 0, k = [], b = [], X = null, z = {}, S = [], B = [], A = [], N = 0, V;
5127
+ for (+h.codepage >= 0 && set_cp(+h.codepage); C !== x.length; ++C) {
5128
5128
  N = 0;
5129
- var G = p[C].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g, a).replace(r, t), Y = G.replace(/;;/g, "\0").split(";").map(function(D) {
5129
+ var G = x[C].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g, a).replace(r, t), Y = G.replace(/;;/g, "\0").split(";").map(function(D) {
5130
5130
  return D.replace(/\u0000/g, ";");
5131
5131
  }), le = Y[0], q;
5132
5132
  if (G.length > 0)
@@ -5151,10 +5151,10 @@ var DBF = /* @__PURE__ */ function() {
5151
5151
  case "A":
5152
5152
  break;
5153
5153
  case "X":
5154
- m = parseInt(Y[I].slice(1)) - 1, ue = !0;
5154
+ p = parseInt(Y[I].slice(1)) - 1, ue = !0;
5155
5155
  break;
5156
5156
  case "Y":
5157
- for (u = parseInt(Y[I].slice(1)) - 1, ue || (m = 0), V = k.length; V <= u; ++V)
5157
+ for (u = parseInt(Y[I].slice(1)) - 1, ue || (p = 0), V = k.length; V <= u; ++V)
5158
5158
  k[V] = [];
5159
5159
  break;
5160
5160
  case "K":
@@ -5162,11 +5162,11 @@ var DBF = /* @__PURE__ */ function() {
5162
5162
  break;
5163
5163
  case "E":
5164
5164
  me = !0;
5165
- var F = rc_to_a1(Y[I].slice(1), { r: u, c: m });
5166
- k[u][m] = [k[u][m], F];
5165
+ var F = rc_to_a1(Y[I].slice(1), { r: u, c: p });
5166
+ k[u][p] = [k[u][p], F];
5167
5167
  break;
5168
5168
  case "S":
5169
- Ee = !0, k[u][m] = [k[u][m], "S5S"];
5169
+ Ee = !0, k[u][p] = [k[u][p], "S5S"];
5170
5170
  break;
5171
5171
  case "G":
5172
5172
  break;
@@ -5180,13 +5180,13 @@ var DBF = /* @__PURE__ */ function() {
5180
5180
  if (h && h.WTF)
5181
5181
  throw new Error("SYLK bad record " + G);
5182
5182
  }
5183
- if (he && (k[u][m] && k[u][m].length == 2 ? k[u][m][0] = q : k[u][m] = q, X = null), Ee) {
5183
+ if (he && (k[u][p] && k[u][p].length == 2 ? k[u][p][0] = q : k[u][p] = q, X = null), Ee) {
5184
5184
  if (me)
5185
5185
  throw new Error("SYLK shared formula cannot have own formula");
5186
5186
  var W = ge > -1 && k[ge][de];
5187
5187
  if (!W || !W[1])
5188
5188
  throw new Error("SYLK shared formula cannot find base");
5189
- k[u][m][1] = shift_formula_str(W[1], { r: u - ge, c: m - de });
5189
+ k[u][p][1] = shift_formula_str(W[1], { r: u - ge, c: p - de });
5190
5190
  }
5191
5191
  break;
5192
5192
  case "F":
@@ -5194,7 +5194,7 @@ var DBF = /* @__PURE__ */ function() {
5194
5194
  for (I = 1; I < Y.length; ++I)
5195
5195
  switch (Y[I].charAt(0)) {
5196
5196
  case "X":
5197
- m = parseInt(Y[I].slice(1)) - 1, ++P;
5197
+ p = parseInt(Y[I].slice(1)) - 1, ++P;
5198
5198
  break;
5199
5199
  case "Y":
5200
5200
  for (u = parseInt(Y[I].slice(1)) - 1, V = k.length; V <= u; ++V)
@@ -5221,7 +5221,7 @@ var DBF = /* @__PURE__ */ function() {
5221
5221
  N = parseInt(A[2], 10), B[V - 1] = N === 0 ? { hidden: !0 } : { wch: N }, process_col(B[V - 1]);
5222
5222
  break;
5223
5223
  case "C":
5224
- m = parseInt(Y[I].slice(1)) - 1, B[m] || (B[m] = {});
5224
+ p = parseInt(Y[I].slice(1)) - 1, B[p] || (B[p] = {});
5225
5225
  break;
5226
5226
  case "R":
5227
5227
  u = parseInt(Y[I].slice(1)) - 1, S[u] || (S[u] = {}), N > 0 ? (S[u].hpt = N, S[u].hpx = pt2px(N)) : N === 0 && (S[u].hidden = !0);
@@ -5240,57 +5240,57 @@ var DBF = /* @__PURE__ */ function() {
5240
5240
  return S.length > 0 && (z["!rows"] = S), B.length > 0 && (z["!cols"] = B), h && h.sheetRows && (k = k.slice(0, h.sheetRows)), [k, z];
5241
5241
  }
5242
5242
  function s(_, h) {
5243
- var p = n(_, h), u = p[0], m = p[1], C = aoa_to_sheet(u, h);
5244
- return keys(m).forEach(function(I) {
5245
- C[I] = m[I];
5243
+ var x = n(_, h), u = x[0], p = x[1], C = aoa_to_sheet(u, h);
5244
+ return keys(p).forEach(function(I) {
5245
+ C[I] = p[I];
5246
5246
  }), C;
5247
5247
  }
5248
5248
  function l(_, h) {
5249
5249
  return sheet_to_workbook(s(_, h), h);
5250
5250
  }
5251
- function o(_, h, p, u) {
5252
- var m = "C;Y" + (p + 1) + ";X" + (u + 1) + ";K";
5251
+ function o(_, h, x, u) {
5252
+ var p = "C;Y" + (x + 1) + ";X" + (u + 1) + ";K";
5253
5253
  switch (_.t) {
5254
5254
  case "n":
5255
- m += _.v || 0, _.f && !_.F && (m += ";E" + a1_to_rc(_.f, { r: p, c: u }));
5255
+ p += _.v || 0, _.f && !_.F && (p += ";E" + a1_to_rc(_.f, { r: x, c: u }));
5256
5256
  break;
5257
5257
  case "b":
5258
- m += _.v ? "TRUE" : "FALSE";
5258
+ p += _.v ? "TRUE" : "FALSE";
5259
5259
  break;
5260
5260
  case "e":
5261
- m += _.w || _.v;
5261
+ p += _.w || _.v;
5262
5262
  break;
5263
5263
  case "d":
5264
- m += '"' + (_.w || _.v) + '"';
5264
+ p += '"' + (_.w || _.v) + '"';
5265
5265
  break;
5266
5266
  case "s":
5267
- m += '"' + _.v.replace(/"/g, "").replace(/;/g, ";;") + '"';
5267
+ p += '"' + _.v.replace(/"/g, "").replace(/;/g, ";;") + '"';
5268
5268
  break;
5269
5269
  }
5270
- return m;
5270
+ return p;
5271
5271
  }
5272
5272
  function f(_, h) {
5273
- h.forEach(function(p, u) {
5274
- var m = "F;W" + (u + 1) + " " + (u + 1) + " ";
5275
- p.hidden ? m += "0" : (typeof p.width == "number" && !p.wpx && (p.wpx = width2px(p.width)), typeof p.wpx == "number" && !p.wch && (p.wch = px2char(p.wpx)), typeof p.wch == "number" && (m += Math.round(p.wch))), m.charAt(m.length - 1) != " " && _.push(m);
5273
+ h.forEach(function(x, u) {
5274
+ var p = "F;W" + (u + 1) + " " + (u + 1) + " ";
5275
+ x.hidden ? p += "0" : (typeof x.width == "number" && !x.wpx && (x.wpx = width2px(x.width)), typeof x.wpx == "number" && !x.wch && (x.wch = px2char(x.wpx)), typeof x.wch == "number" && (p += Math.round(x.wch))), p.charAt(p.length - 1) != " " && _.push(p);
5276
5276
  });
5277
5277
  }
5278
5278
  function c(_, h) {
5279
- h.forEach(function(p, u) {
5280
- var m = "F;";
5281
- p.hidden ? m += "M0;" : p.hpt ? m += "M" + 20 * p.hpt + ";" : p.hpx && (m += "M" + 20 * px2pt(p.hpx) + ";"), m.length > 2 && _.push(m + "R" + (u + 1));
5279
+ h.forEach(function(x, u) {
5280
+ var p = "F;";
5281
+ x.hidden ? p += "M0;" : x.hpt ? p += "M" + 20 * x.hpt + ";" : x.hpx && (p += "M" + 20 * px2pt(x.hpx) + ";"), p.length > 2 && _.push(p + "R" + (u + 1));
5282
5282
  });
5283
5283
  }
5284
5284
  function d(_, h) {
5285
- var p = ["ID;PWXL;N;E"], u = [], m = safe_decode_range(_["!ref"]), C, I = Array.isArray(_), k = `\r
5285
+ var x = ["ID;PWXL;N;E"], u = [], p = safe_decode_range(_["!ref"]), C, I = Array.isArray(_), k = `\r
5286
5286
  `;
5287
- p.push("P;PGeneral"), p.push("F;P0;DG0G8;M255"), _["!cols"] && f(p, _["!cols"]), _["!rows"] && c(p, _["!rows"]), p.push("B;Y" + (m.e.r - m.s.r + 1) + ";X" + (m.e.c - m.s.c + 1) + ";D" + [m.s.c, m.s.r, m.e.c, m.e.r].join(" "));
5288
- for (var b = m.s.r; b <= m.e.r; ++b)
5289
- for (var X = m.s.c; X <= m.e.c; ++X) {
5287
+ x.push("P;PGeneral"), x.push("F;P0;DG0G8;M255"), _["!cols"] && f(x, _["!cols"]), _["!rows"] && c(x, _["!rows"]), x.push("B;Y" + (p.e.r - p.s.r + 1) + ";X" + (p.e.c - p.s.c + 1) + ";D" + [p.s.c, p.s.r, p.e.c, p.e.r].join(" "));
5288
+ for (var b = p.s.r; b <= p.e.r; ++b)
5289
+ for (var X = p.s.c; X <= p.e.c; ++X) {
5290
5290
  var z = encode_cell({ r: b, c: X });
5291
5291
  C = I ? (_[b] || [])[X] : _[z], !(!C || C.v == null && (!C.f || C.F)) && u.push(o(C, _, b, X));
5292
5292
  }
5293
- return p.join(k) + k + u.join(k) + k + "E" + k;
5293
+ return x.join(k) + k + u.join(k) + k + "E" + k;
5294
5294
  }
5295
5295
  return {
5296
5296
  to_workbook: l,
@@ -5319,7 +5319,7 @@ var DBF = /* @__PURE__ */ function() {
5319
5319
  continue;
5320
5320
  }
5321
5321
  if (!(o < 0)) {
5322
- var _ = l[c].trim().split(","), h = _[0], p = _[1];
5322
+ var _ = l[c].trim().split(","), h = _[0], x = _[1];
5323
5323
  ++c;
5324
5324
  for (var u = l[c] || ""; (u.match(/["]/g) || []).length & 1 && c < l.length - 1; )
5325
5325
  u += `
@@ -5333,7 +5333,7 @@ var DBF = /* @__PURE__ */ function() {
5333
5333
  throw new Error("Unrecognized DIF special command " + u);
5334
5334
  break;
5335
5335
  case 0:
5336
- u === "TRUE" ? d[o][f] = !0 : u === "FALSE" ? d[o][f] = !1 : isNaN(fuzzynum(p)) ? isNaN(fuzzydate(p).getDate()) ? d[o][f] = p : d[o][f] = parseDate(p) : d[o][f] = fuzzynum(p), ++f;
5336
+ u === "TRUE" ? d[o][f] = !0 : u === "FALSE" ? d[o][f] = !1 : isNaN(fuzzynum(x)) ? isNaN(fuzzydate(x).getDate()) ? d[o][f] = x : d[o][f] = parseDate(x) : d[o][f] = fuzzynum(x), ++f;
5337
5337
  break;
5338
5338
  case 1:
5339
5339
  u = u.slice(1, u.length - 1), u = u.replace(/""/g, '"'), u && u.match(/^=".*"$/) && (u = u.slice(2, -1)), d[o][f++] = u !== "" ? u : null;
@@ -5362,16 +5362,16 @@ var DBF = /* @__PURE__ */ function() {
5362
5362
  i(f, "TABLE", 0, 1, "sheetjs"), i(f, "VECTORS", 0, c.e.r - c.s.r + 1, ""), i(f, "TUPLES", 0, c.e.c - c.s.c + 1, ""), i(f, "DATA", 0, 0, "");
5363
5363
  for (var h = c.s.r; h <= c.e.r; ++h) {
5364
5364
  s(f, -1, 0, "BOT");
5365
- for (var p = c.s.c; p <= c.e.c; ++p) {
5366
- var u = encode_cell({ r: h, c: p });
5367
- if (d = _ ? (o[h] || [])[p] : o[u], !d) {
5365
+ for (var x = c.s.c; x <= c.e.c; ++x) {
5366
+ var u = encode_cell({ r: h, c: x });
5367
+ if (d = _ ? (o[h] || [])[x] : o[u], !d) {
5368
5368
  s(f, 1, 0, "");
5369
5369
  continue;
5370
5370
  }
5371
5371
  switch (d.t) {
5372
5372
  case "n":
5373
- var m = d.w;
5374
- !m && d.v != null && (m = d.v), m == null ? d.f && !d.F ? s(f, 1, 0, "=" + d.f) : s(f, 1, 0, "") : s(f, 0, m, "V");
5373
+ var p = d.w;
5374
+ !p && d.v != null && (p = d.v), p == null ? d.f && !d.F ? s(f, 1, 0, "=" + d.f) : s(f, 1, 0, "") : s(f, 0, p, "V");
5375
5375
  break;
5376
5376
  case "b":
5377
5377
  s(f, 0, d.v ? 1 : 0, d.v ? "TRUE" : "FALSE");
@@ -5408,32 +5408,32 @@ var DBF = /* @__PURE__ */ function() {
5408
5408
  }
5409
5409
  function t(d, _) {
5410
5410
  for (var h = d.split(`
5411
- `), p = -1, u = -1, m = 0, C = []; m !== h.length; ++m) {
5412
- var I = h[m].trim().split(":");
5411
+ `), x = -1, u = -1, p = 0, C = []; p !== h.length; ++p) {
5412
+ var I = h[p].trim().split(":");
5413
5413
  if (I[0] === "cell") {
5414
5414
  var k = decode_cell(I[1]);
5415
5415
  if (C.length <= k.r)
5416
- for (p = C.length; p <= k.r; ++p)
5417
- C[p] || (C[p] = []);
5418
- switch (p = k.r, u = k.c, I[2]) {
5416
+ for (x = C.length; x <= k.r; ++x)
5417
+ C[x] || (C[x] = []);
5418
+ switch (x = k.r, u = k.c, I[2]) {
5419
5419
  case "t":
5420
- C[p][u] = e(I[3]);
5420
+ C[x][u] = e(I[3]);
5421
5421
  break;
5422
5422
  case "v":
5423
- C[p][u] = +I[3];
5423
+ C[x][u] = +I[3];
5424
5424
  break;
5425
5425
  case "vtf":
5426
5426
  var b = I[I.length - 1];
5427
5427
  case "vtc":
5428
5428
  switch (I[3]) {
5429
5429
  case "nl":
5430
- C[p][u] = !!+I[4];
5430
+ C[x][u] = !!+I[4];
5431
5431
  break;
5432
5432
  default:
5433
- C[p][u] = +I[4];
5433
+ C[x][u] = +I[4];
5434
5434
  break;
5435
5435
  }
5436
- I[2] == "vtf" && (C[p][u] = [C[p][u], b]);
5436
+ I[2] == "vtf" && (C[x][u] = [C[x][u], b]);
5437
5437
  }
5438
5438
  }
5439
5439
  }
@@ -5463,30 +5463,30 @@ var DBF = /* @__PURE__ */ function() {
5463
5463
  function f(d) {
5464
5464
  if (!d || !d["!ref"])
5465
5465
  return "";
5466
- for (var _ = [], h = [], p, u = "", m = decode_range(d["!ref"]), C = Array.isArray(d), I = m.s.r; I <= m.e.r; ++I)
5467
- for (var k = m.s.c; k <= m.e.c; ++k)
5468
- if (u = encode_cell({ r: I, c: k }), p = C ? (d[I] || [])[k] : d[u], !(!p || p.v == null || p.t === "z")) {
5469
- switch (h = ["cell", u, "t"], p.t) {
5466
+ for (var _ = [], h = [], x, u = "", p = decode_range(d["!ref"]), C = Array.isArray(d), I = p.s.r; I <= p.e.r; ++I)
5467
+ for (var k = p.s.c; k <= p.e.c; ++k)
5468
+ if (u = encode_cell({ r: I, c: k }), x = C ? (d[I] || [])[k] : d[u], !(!x || x.v == null || x.t === "z")) {
5469
+ switch (h = ["cell", u, "t"], x.t) {
5470
5470
  case "s":
5471
5471
  case "str":
5472
- h.push(r(p.v));
5472
+ h.push(r(x.v));
5473
5473
  break;
5474
5474
  case "n":
5475
- p.f ? (h[2] = "vtf", h[3] = "n", h[4] = p.v, h[5] = r(p.f)) : (h[2] = "v", h[3] = p.v);
5475
+ x.f ? (h[2] = "vtf", h[3] = "n", h[4] = x.v, h[5] = r(x.f)) : (h[2] = "v", h[3] = x.v);
5476
5476
  break;
5477
5477
  case "b":
5478
- h[2] = "vt" + (p.f ? "f" : "c"), h[3] = "nl", h[4] = p.v ? "1" : "0", h[5] = r(p.f || (p.v ? "TRUE" : "FALSE"));
5478
+ h[2] = "vt" + (x.f ? "f" : "c"), h[3] = "nl", h[4] = x.v ? "1" : "0", h[5] = r(x.f || (x.v ? "TRUE" : "FALSE"));
5479
5479
  break;
5480
5480
  case "d":
5481
- var b = datenum(parseDate(p.v));
5482
- h[2] = "vtc", h[3] = "nd", h[4] = "" + b, h[5] = p.w || SSF_format(p.z || table_fmt[14], b);
5481
+ var b = datenum(parseDate(x.v));
5482
+ h[2] = "vtc", h[3] = "nd", h[4] = "" + b, h[5] = x.w || SSF_format(x.z || table_fmt[14], b);
5483
5483
  break;
5484
5484
  case "e":
5485
5485
  continue;
5486
5486
  }
5487
5487
  _.push(h.join(":"));
5488
5488
  }
5489
- return _.push("sheet:c:" + (m.e.c - m.s.c + 1) + ":r:" + (m.e.r - m.s.r + 1) + ":tvf:1"), _.push("valueformat:1:text-wiki"), _.join(`
5489
+ return _.push("sheet:c:" + (p.e.c - p.s.c + 1) + ":r:" + (p.e.r - p.s.r + 1) + ":tvf:1"), _.push("valueformat:1:text-wiki"), _.join(`
5490
5490
  `);
5491
5491
  }
5492
5492
  function c(d) {
@@ -5499,22 +5499,22 @@ var DBF = /* @__PURE__ */ function() {
5499
5499
  from_sheet: c
5500
5500
  };
5501
5501
  }(), PRN = /* @__PURE__ */ function() {
5502
- function e(c, d, _, h, p) {
5503
- p.raw ? d[_][h] = c : c === "" || (c === "TRUE" ? d[_][h] = !0 : c === "FALSE" ? d[_][h] = !1 : isNaN(fuzzynum(c)) ? isNaN(fuzzydate(c).getDate()) ? d[_][h] = c : d[_][h] = parseDate(c) : d[_][h] = fuzzynum(c));
5502
+ function e(c, d, _, h, x) {
5503
+ x.raw ? d[_][h] = c : c === "" || (c === "TRUE" ? d[_][h] = !0 : c === "FALSE" ? d[_][h] = !1 : isNaN(fuzzynum(c)) ? isNaN(fuzzydate(c).getDate()) ? d[_][h] = c : d[_][h] = parseDate(c) : d[_][h] = fuzzynum(c));
5504
5504
  }
5505
5505
  function r(c, d) {
5506
5506
  var _ = d || {}, h = [];
5507
5507
  if (!c || c.length === 0)
5508
5508
  return h;
5509
- for (var p = c.split(/[\r\n]/), u = p.length - 1; u >= 0 && p[u].length === 0; )
5509
+ for (var x = c.split(/[\r\n]/), u = x.length - 1; u >= 0 && x[u].length === 0; )
5510
5510
  --u;
5511
- for (var m = 10, C = 0, I = 0; I <= u; ++I)
5512
- C = p[I].indexOf(" "), C == -1 ? C = p[I].length : C++, m = Math.max(m, C);
5511
+ for (var p = 10, C = 0, I = 0; I <= u; ++I)
5512
+ C = x[I].indexOf(" "), C == -1 ? C = x[I].length : C++, p = Math.max(p, C);
5513
5513
  for (I = 0; I <= u; ++I) {
5514
5514
  h[I] = [];
5515
5515
  var k = 0;
5516
- for (e(p[I].slice(0, m).trim(), h, I, k, _), k = 1; k <= (p[I].length - m) / 10 + 1; ++k)
5517
- e(p[I].slice(m + (k - 1) * 10, m + k * 10).trim(), h, I, k, _);
5516
+ for (e(x[I].slice(0, p).trim(), h, I, k, _), k = 1; k <= (x[I].length - p) / 10 + 1; ++k)
5517
+ e(x[I].slice(p + (k - 1) * 10, p + k * 10).trim(), h, I, k, _);
5518
5518
  }
5519
5519
  return _.sheetRows && (h = h.slice(0, _.sheetRows)), h;
5520
5520
  }
@@ -5538,24 +5538,24 @@ var DBF = /* @__PURE__ */ function() {
5538
5538
  124: 0
5539
5539
  };
5540
5540
  function n(c) {
5541
- for (var d = {}, _ = !1, h = 0, p = 0; h < c.length; ++h)
5542
- (p = c.charCodeAt(h)) == 34 ? _ = !_ : !_ && p in t && (d[p] = (d[p] || 0) + 1);
5543
- p = [];
5541
+ for (var d = {}, _ = !1, h = 0, x = 0; h < c.length; ++h)
5542
+ (x = c.charCodeAt(h)) == 34 ? _ = !_ : !_ && x in t && (d[x] = (d[x] || 0) + 1);
5543
+ x = [];
5544
5544
  for (h in d)
5545
- Object.prototype.hasOwnProperty.call(d, h) && p.push([d[h], h]);
5546
- if (!p.length) {
5545
+ Object.prototype.hasOwnProperty.call(d, h) && x.push([d[h], h]);
5546
+ if (!x.length) {
5547
5547
  d = a;
5548
5548
  for (h in d)
5549
- Object.prototype.hasOwnProperty.call(d, h) && p.push([d[h], h]);
5549
+ Object.prototype.hasOwnProperty.call(d, h) && x.push([d[h], h]);
5550
5550
  }
5551
- return p.sort(function(u, m) {
5552
- return u[0] - m[0] || a[u[1]] - a[m[1]];
5553
- }), t[p.pop()[1]] || 44;
5551
+ return x.sort(function(u, p) {
5552
+ return u[0] - p[0] || a[u[1]] - a[p[1]];
5553
+ }), t[x.pop()[1]] || 44;
5554
5554
  }
5555
5555
  function i(c, d) {
5556
- var _ = d || {}, h = "", p = _.dense ? [] : {}, u = { s: { c: 0, r: 0 }, e: { c: 0, r: 0 } };
5556
+ var _ = d || {}, h = "", x = _.dense ? [] : {}, u = { s: { c: 0, r: 0 }, e: { c: 0, r: 0 } };
5557
5557
  c.slice(0, 4) == "sep=" ? c.charCodeAt(5) == 13 && c.charCodeAt(6) == 10 ? (h = c.charAt(4), c = c.slice(7)) : c.charCodeAt(5) == 13 || c.charCodeAt(5) == 10 ? (h = c.charAt(4), c = c.slice(6)) : h = n(c.slice(0, 1024)) : _ && _.FS ? h = _.FS : h = n(c.slice(0, 1024));
5558
- var m = 0, C = 0, I = 0, k = 0, b = 0, X = h.charCodeAt(0), z = !1, S = 0, B = c.charCodeAt(0);
5558
+ var p = 0, C = 0, I = 0, k = 0, b = 0, X = h.charCodeAt(0), z = !1, S = 0, B = c.charCodeAt(0);
5559
5559
  c = c.replace(/\r\n/mg, `
5560
5560
  `);
5561
5561
  var A = _.dateNF != null ? dateNF_regex(_.dateNF) : null;
@@ -5581,9 +5581,9 @@ var DBF = /* @__PURE__ */ function() {
5581
5581
  A && V.match(A) && (V = dateNF_fix(V, _.dateNF, V.match(A) || []), Y = 1), _.cellDates ? (G.t = "d", G.v = parseDate(V, Y)) : (G.t = "n", G.v = datenum(parseDate(V, Y))), _.cellText !== !1 && (G.w = SSF_format(G.z, G.v instanceof Date ? datenum(G.v) : G.v)), _.cellNF || delete G.z;
5582
5582
  } else
5583
5583
  G.t = "s", G.v = V;
5584
- if (G.t == "z" || (_.dense ? (p[m] || (p[m] = []), p[m][C] = G) : p[encode_cell({ c: C, r: m })] = G), k = b + 1, B = c.charCodeAt(k), u.e.c < C && (u.e.c = C), u.e.r < m && (u.e.r = m), S == X)
5584
+ if (G.t == "z" || (_.dense ? (x[p] || (x[p] = []), x[p][C] = G) : x[encode_cell({ c: C, r: p })] = G), k = b + 1, B = c.charCodeAt(k), u.e.c < C && (u.e.c = C), u.e.r < p && (u.e.r = p), S == X)
5585
5585
  ++C;
5586
- else if (C = 0, ++m, _.sheetRows && _.sheetRows <= m)
5586
+ else if (C = 0, ++p, _.sheetRows && _.sheetRows <= p)
5587
5587
  return !0;
5588
5588
  }
5589
5589
  e:
@@ -5599,7 +5599,7 @@ var DBF = /* @__PURE__ */ function() {
5599
5599
  break e;
5600
5600
  break;
5601
5601
  }
5602
- return b - k > 0 && N(), p["!ref"] = encode_range(u), p;
5602
+ return b - k > 0 && N(), x["!ref"] = encode_range(u), x;
5603
5603
  }
5604
5604
  function s(c, d) {
5605
5605
  return !(d && d.PRN) || d.FS || c.slice(0, 4) == "sep=" || c.indexOf(" ") >= 0 || c.indexOf(",") >= 0 || c.indexOf(";") >= 0 ? i(c, d) : aoa_to_sheet(r(c, d), d);
@@ -5631,18 +5631,18 @@ var DBF = /* @__PURE__ */ function() {
5631
5631
  return sheet_to_workbook(l(c, d), d);
5632
5632
  }
5633
5633
  function f(c) {
5634
- for (var d = [], _ = safe_decode_range(c["!ref"]), h, p = Array.isArray(c), u = _.s.r; u <= _.e.r; ++u) {
5635
- for (var m = [], C = _.s.c; C <= _.e.c; ++C) {
5634
+ for (var d = [], _ = safe_decode_range(c["!ref"]), h, x = Array.isArray(c), u = _.s.r; u <= _.e.r; ++u) {
5635
+ for (var p = [], C = _.s.c; C <= _.e.c; ++C) {
5636
5636
  var I = encode_cell({ r: u, c: C });
5637
- if (h = p ? (c[u] || [])[C] : c[I], !h || h.v == null) {
5638
- m.push(" ");
5637
+ if (h = x ? (c[u] || [])[C] : c[I], !h || h.v == null) {
5638
+ p.push(" ");
5639
5639
  continue;
5640
5640
  }
5641
5641
  for (var k = (h.w || (format_cell(h), h.w) || "").slice(0, 10); k.length < 10; )
5642
5642
  k += " ";
5643
- m.push(k + (C === 0 ? " " : ""));
5643
+ p.push(k + (C === 0 ? " " : ""));
5644
5644
  }
5645
- d.push(m.join(""));
5645
+ d.push(p.join(""));
5646
5646
  }
5647
5647
  return d.join(`
5648
5648
  `);
@@ -5850,7 +5850,7 @@ var DBF = /* @__PURE__ */ function() {
5850
5850
  var D = new_buf(7);
5851
5851
  return D.write_shift(1, 255), D.write_shift(2, W), D.write_shift(2, F), D.write_shift(2, P, "i"), D;
5852
5852
  }
5853
- function p(F, W, P) {
5853
+ function x(F, W, P) {
5854
5854
  var D = f(F, W, P);
5855
5855
  return D[1].v = F.read_shift(8, "f"), D;
5856
5856
  }
@@ -5858,7 +5858,7 @@ var DBF = /* @__PURE__ */ function() {
5858
5858
  var D = new_buf(13);
5859
5859
  return D.write_shift(1, 255), D.write_shift(2, W), D.write_shift(2, F), D.write_shift(8, P, "f"), D;
5860
5860
  }
5861
- function m(F, W, P) {
5861
+ function p(F, W, P) {
5862
5862
  var D = F.l + W, j = f(F, W, P);
5863
5863
  if (j[1].v = F.read_shift(8, "f"), P.qpro)
5864
5864
  F.l = D;
@@ -6133,11 +6133,11 @@ var DBF = /* @__PURE__ */ function() {
6133
6133
  /*::[*/
6134
6134
  13: { n: "INTEGER", f: _ },
6135
6135
  /*::[*/
6136
- 14: { n: "NUMBER", f: p },
6136
+ 14: { n: "NUMBER", f: x },
6137
6137
  /*::[*/
6138
6138
  15: { n: "LABEL", f: c },
6139
6139
  /*::[*/
6140
- 16: { n: "FORMULA", f: m },
6140
+ 16: { n: "FORMULA", f: p },
6141
6141
  /*::[*/
6142
6142
  24: { n: "TABLE" },
6143
6143
  /*::[*/
@@ -6554,12 +6554,12 @@ var RTF = /* @__PURE__ */ function() {
6554
6554
  var f = { s: { c: 0, r: 0 }, e: { c: 0, r: o.length - 1 } };
6555
6555
  return o.forEach(function(c, d) {
6556
6556
  Array.isArray(l) && (l[d] = []);
6557
- for (var _ = /\\\w+\b/g, h = 0, p, u = -1; p = _.exec(c); ) {
6558
- switch (p[0]) {
6557
+ for (var _ = /\\\w+\b/g, h = 0, x, u = -1; x = _.exec(c); ) {
6558
+ switch (x[0]) {
6559
6559
  case "\\cell":
6560
- var m = c.slice(h, _.lastIndex - p[0].length);
6561
- if (m[0] == " " && (m = m.slice(1)), ++u, m.length) {
6562
- var C = { v: m, t: "s" };
6560
+ var p = c.slice(h, _.lastIndex - x[0].length);
6561
+ if (p[0] == " " && (p = p.slice(1)), ++u, p.length) {
6562
+ var C = { v: p, t: "s" };
6563
6563
  Array.isArray(l) ? l[d][u] = C : l[encode_cell({ r: d, c: u })] = C;
6564
6564
  }
6565
6565
  break;
@@ -7843,10 +7843,10 @@ function stringify_formula(e, r, t, a, n) {
7843
7843
  var i = n && n.biff || 8, s = (
7844
7844
  /*range != null ? range :*/
7845
7845
  { s: { c: 0, r: 0 }, e: { c: 0, r: 0 } }
7846
- ), l = [], o, f, c, d = 0, _ = 0, h, p = "";
7846
+ ), l = [], o, f, c, d = 0, _ = 0, h, x = "";
7847
7847
  if (!e[0] || !e[0][0])
7848
7848
  return "";
7849
- for (var u = -1, m = "", C = 0, I = e[0].length; C < I; ++C) {
7849
+ for (var u = -1, p = "", C = 0, I = e[0].length; C < I; ++C) {
7850
7850
  var k = e[0][C];
7851
7851
  switch (k[0]) {
7852
7852
  case "PtgUminus":
@@ -7873,16 +7873,16 @@ function stringify_formula(e, r, t, a, n) {
7873
7873
  if (o = l.pop(), f = l.pop(), u >= 0) {
7874
7874
  switch (e[0][u][1][0]) {
7875
7875
  case 0:
7876
- m = fill(" ", e[0][u][1][1]);
7876
+ p = fill(" ", e[0][u][1][1]);
7877
7877
  break;
7878
7878
  case 1:
7879
- m = fill("\r", e[0][u][1][1]);
7879
+ p = fill("\r", e[0][u][1][1]);
7880
7880
  break;
7881
7881
  default:
7882
- if (m = "", n.WTF)
7882
+ if (p = "", n.WTF)
7883
7883
  throw new Error("Unexpected PtgAttrSpaceType " + e[0][u][1][0]);
7884
7884
  }
7885
- f = f + m, u = -1;
7885
+ f = f + p, u = -1;
7886
7886
  }
7887
7887
  l.push(f + PtgBinOp[k[0]] + o);
7888
7888
  break;
@@ -7911,7 +7911,7 @@ function stringify_formula(e, r, t, a, n) {
7911
7911
  break;
7912
7912
  case "PtgRef3d":
7913
7913
  d = /*::Number(*/
7914
- k[1][1], c = shift_cell_xls(k[1][2], s, n), p = get_ixti(a, d, n), l.push(p + "!" + encode_cell_xls(c, i));
7914
+ k[1][1], c = shift_cell_xls(k[1][2], s, n), x = get_ixti(a, d, n), l.push(x + "!" + encode_cell_xls(c, i));
7915
7915
  break;
7916
7916
  case "PtgFunc":
7917
7917
  case "PtgFuncVar":
@@ -7951,7 +7951,7 @@ function stringify_formula(e, r, t, a, n) {
7951
7951
  break;
7952
7952
  case "PtgArea3d":
7953
7953
  d = /*::Number(*/
7954
- k[1][1], h = k[1][2], p = get_ixti(a, d, n), l.push(p + "!" + encode_range_xls(h, n));
7954
+ k[1][1], h = k[1][2], x = get_ixti(a, d, n), l.push(x + "!" + encode_range_xls(h, n));
7955
7955
  break;
7956
7956
  case "PtgAttrSum":
7957
7957
  l.push("SUM(" + l.pop() + ")");
@@ -7988,7 +7988,7 @@ function stringify_formula(e, r, t, a, n) {
7988
7988
  case "PtgParen":
7989
7989
  var Y = "(", le = ")";
7990
7990
  if (u >= 0) {
7991
- switch (m = "", e[0][u][1][0]) {
7991
+ switch (p = "", e[0][u][1][0]) {
7992
7992
  case 2:
7993
7993
  Y = fill(" ", e[0][u][1][1]) + Y;
7994
7994
  break;
@@ -8098,18 +8098,18 @@ function stringify_formula(e, r, t, a, n) {
8098
8098
  case 4:
8099
8099
  me = !1;
8100
8100
  case 0:
8101
- m = fill(" ", k[1][1]);
8101
+ p = fill(" ", k[1][1]);
8102
8102
  break;
8103
8103
  case 5:
8104
8104
  me = !1;
8105
8105
  case 1:
8106
- m = fill("\r", k[1][1]);
8106
+ p = fill("\r", k[1][1]);
8107
8107
  break;
8108
8108
  default:
8109
- if (m = "", n.WTF)
8109
+ if (p = "", n.WTF)
8110
8110
  throw new Error("Unexpected PtgAttrSpaceType " + k[1][0]);
8111
8111
  }
8112
- l.push((me ? m : "") + l.pop() + (me ? "" : m)), u = -1;
8112
+ l.push((me ? p : "") + l.pop() + (me ? "" : p)), u = -1;
8113
8113
  }
8114
8114
  }
8115
8115
  if (l.length > 1 && n.WTF)
@@ -9455,20 +9455,20 @@ function write_ws_xml_cell(e, r, t, a) {
9455
9455
  return e.l && t["!links"].push([r, e.l]), e.D && (o.cm = 1), writextag("c", l, o);
9456
9456
  }
9457
9457
  function write_ws_xml_data(e, r, t, a) {
9458
- var n = [], i = [], s = safe_decode_range(e["!ref"]), l = "", o, f = "", c = [], d = 0, _ = 0, h = e["!rows"], p = Array.isArray(e), u = { r: f }, m, C = -1;
9458
+ var n = [], i = [], s = safe_decode_range(e["!ref"]), l = "", o, f = "", c = [], d = 0, _ = 0, h = e["!rows"], x = Array.isArray(e), u = { r: f }, p, C = -1;
9459
9459
  for (_ = s.s.c; _ <= s.e.c; ++_)
9460
9460
  c[_] = encode_col(_);
9461
9461
  for (d = s.s.r; d <= s.e.r; ++d) {
9462
9462
  for (i = [], f = encode_row(d), _ = s.s.c; _ <= s.e.c; ++_) {
9463
9463
  o = c[_] + f;
9464
- var I = p ? (e[d] || [])[_] : e[o];
9464
+ var I = x ? (e[d] || [])[_] : e[o];
9465
9465
  I !== void 0 && (l = write_ws_xml_cell(I, o, e, r)) != null && i.push(l);
9466
9466
  }
9467
- (i.length > 0 || h && h[d]) && (u = { r: f }, h && h[d] && (m = h[d], m.hidden && (u.hidden = 1), C = -1, m.hpx ? C = px2pt(m.hpx) : m.hpt && (C = m.hpt), C > -1 && (u.ht = C, u.customHeight = 1), m.level && (u.outlineLevel = m.level)), n[n.length] = writextag("row", i.join(""), u));
9467
+ (i.length > 0 || h && h[d]) && (u = { r: f }, h && h[d] && (p = h[d], p.hidden && (u.hidden = 1), C = -1, p.hpx ? C = px2pt(p.hpx) : p.hpt && (C = p.hpt), C > -1 && (u.ht = C, u.customHeight = 1), p.level && (u.outlineLevel = p.level)), n[n.length] = writextag("row", i.join(""), u));
9468
9468
  }
9469
9469
  if (h)
9470
9470
  for (; d < h.length; ++d)
9471
- h && h[d] && (u = { r: d + 1 }, m = h[d], m.hidden && (u.hidden = 1), C = -1, m.hpx ? C = px2pt(m.hpx) : m.hpt && (C = m.hpt), C > -1 && (u.ht = C, u.customHeight = 1), m.level && (u.outlineLevel = m.level), n[n.length] = writextag("row", "", u));
9471
+ h && h[d] && (u = { r: d + 1 }, p = h[d], p.hidden && (u.hidden = 1), C = -1, p.hpx ? C = px2pt(p.hpx) : p.hpt && (C = p.hpt), C > -1 && (u.ht = C, u.customHeight = 1), p.level && (u.outlineLevel = p.level), n[n.length] = writextag("row", "", u));
9472
9472
  return n.join("");
9473
9473
  }
9474
9474
  function write_ws_xml(e, r, t, a) {
@@ -9490,12 +9490,12 @@ function write_ws_xml(e, r, t, a) {
9490
9490
  baseColWidth: r.sheetFormat.baseColWidth || "10",
9491
9491
  outlineLevelRow: r.sheetFormat.outlineLevelRow || "7"
9492
9492
  })), o["!cols"] != null && o["!cols"].length > 0 && (n[n.length] = write_ws_xml_cols(o, o["!cols"])), n[s = n.length] = "<sheetData/>", o["!links"] = [], o["!ref"] != null && (l = write_ws_xml_data(o, r), l.length > 0 && (n[n.length] = l)), n.length > s + 1 && (n[n.length] = "</sheetData>", n[s] = n[s].replace("/>", ">")), o["!protect"] && (n[n.length] = write_ws_xml_protection(o["!protect"])), o["!autofilter"] != null && (n[n.length] = write_ws_xml_autofilter(o["!autofilter"], o, t, e)), o["!merges"] != null && o["!merges"].length > 0 && (n[n.length] = write_ws_xml_merges(o["!merges"]));
9493
- var _ = -1, h, p = -1;
9493
+ var _ = -1, h, x = -1;
9494
9494
  return (
9495
9495
  /*::(*/
9496
9496
  o["!links"].length > 0 && (n[n.length] = "<hyperlinks>", o["!links"].forEach(function(u) {
9497
- u[1].Target && (h = { ref: u[0] }, u[1].Target.charAt(0) != "#" && (p = add_rels(a, -1, escapexml(u[1].Target).replace(/#.*$/, ""), RELS.HLINK), h["r:id"] = "rId" + p), (_ = u[1].Target.indexOf("#")) > -1 && (h.location = escapexml(u[1].Target.slice(_ + 1))), u[1].Tooltip && (h.tooltip = escapexml(u[1].Tooltip)), n[n.length] = writextag("hyperlink", null, h));
9498
- }), n[n.length] = "</hyperlinks>"), delete o["!links"], o["!margins"] != null && (n[n.length] = write_ws_xml_margins(o["!margins"])), (!r || r.ignoreEC || r.ignoreEC == null) && (n[n.length] = writetag("ignoredErrors", writextag("ignoredError", null, { numberStoredAsText: 1, sqref: f }))), d.length > 0 && (p = add_rels(a, -1, "../drawings/drawing" + (e + 1) + ".xml", RELS.DRAW), n[n.length] = writextag("drawing", null, { "r:id": "rId" + p }), o["!drawing"] = d), o["!comments"].length > 0 && (p = add_rels(a, -1, "../drawings/vmlDrawing" + (e + 1) + ".vml", RELS.VML), n[n.length] = writextag("legacyDrawing", null, { "r:id": "rId" + p }), o["!legacy"] = p), n.length > 1 && (n[n.length] = "</worksheet>", n[1] = n[1].replace("/>", ">")), n.join("")
9497
+ u[1].Target && (h = { ref: u[0] }, u[1].Target.charAt(0) != "#" && (x = add_rels(a, -1, escapexml(u[1].Target).replace(/#.*$/, ""), RELS.HLINK), h["r:id"] = "rId" + x), (_ = u[1].Target.indexOf("#")) > -1 && (h.location = escapexml(u[1].Target.slice(_ + 1))), u[1].Tooltip && (h.tooltip = escapexml(u[1].Tooltip)), n[n.length] = writextag("hyperlink", null, h));
9498
+ }), n[n.length] = "</hyperlinks>"), delete o["!links"], o["!margins"] != null && (n[n.length] = write_ws_xml_margins(o["!margins"])), (!r || r.ignoreEC || r.ignoreEC == null) && (n[n.length] = writetag("ignoredErrors", writextag("ignoredError", null, { numberStoredAsText: 1, sqref: f }))), d.length > 0 && (x = add_rels(a, -1, "../drawings/drawing" + (e + 1) + ".xml", RELS.DRAW), n[n.length] = writextag("drawing", null, { "r:id": "rId" + x }), o["!drawing"] = d), o["!comments"].length > 0 && (x = add_rels(a, -1, "../drawings/vmlDrawing" + (e + 1) + ".vml", RELS.VML), n[n.length] = writextag("legacyDrawing", null, { "r:id": "rId" + x }), o["!legacy"] = x), n.length > 1 && (n[n.length] = "</worksheet>", n[1] = n[1].replace("/>", ">")), n.join("")
9499
9499
  );
9500
9500
  }
9501
9501
  function parse_BrtRowHdr(e, r) {
@@ -9519,8 +9519,8 @@ function write_BrtRowHdr(e, r, t) {
9519
9519
  if (!(r.s.c > c + 1 << 10 || r.e.c < c << 10)) {
9520
9520
  for (var d = -1, _ = -1, h = c << 10; h < c + 1 << 10; ++h) {
9521
9521
  f.c = h;
9522
- var p = Array.isArray(t) ? (t[f.r] || [])[f.c] : t[encode_cell(f)];
9523
- p && (d < 0 && (d = h), _ = h);
9522
+ var x = Array.isArray(t) ? (t[f.r] || [])[f.c] : t[encode_cell(f)];
9523
+ x && (d < 0 && (d = h), _ = h);
9524
9524
  }
9525
9525
  d < 0 || (++l, a.write_shift(4, d), a.write_shift(4, _));
9526
9526
  }
@@ -10286,7 +10286,7 @@ function write_ws_xlml_cell(e, r, t, a, n, i, s) {
10286
10286
  }
10287
10287
  var h = get_cell_style(a.cellXfs, e, a);
10288
10288
  l["ss:StyleID"] = "s" + (21 + h), l["ss:Index"] = s.c + 1;
10289
- var p = e.v != null ? _ : "", u = e.t == "z" ? "" : '<Data ss:Type="' + d + '">' + p + "</Data>";
10289
+ var x = e.v != null ? _ : "", u = e.t == "z" ? "" : '<Data ss:Type="' + d + '">' + x + "</Data>";
10290
10290
  return (e.c || []).length > 0 && (u += write_ws_xlml_comment(e.c)), writextag("Cell", u, l);
10291
10291
  }
10292
10292
  function write_ws_xlml_row(e, r) {
@@ -10297,10 +10297,10 @@ function write_ws_xlml_table(e, r, t, a) {
10297
10297
  if (!e["!ref"])
10298
10298
  return "";
10299
10299
  var n = safe_decode_range(e["!ref"]), i = e["!merges"] || [], s = 0, l = [];
10300
- e["!cols"] && e["!cols"].forEach(function(m, C) {
10301
- process_col(m);
10302
- var I = !!m.width, k = col_obj_w(C, m), b = { "ss:Index": C + 1 };
10303
- I && (b["ss:Width"] = width2px(k.width)), m.hidden && (b["ss:Hidden"] = "1"), l.push(writextag("Column", null, b));
10300
+ e["!cols"] && e["!cols"].forEach(function(p, C) {
10301
+ process_col(p);
10302
+ var I = !!p.width, k = col_obj_w(C, p), b = { "ss:Index": C + 1 };
10303
+ I && (b["ss:Width"] = width2px(k.width)), p.hidden && (b["ss:Hidden"] = "1"), l.push(writextag("Column", null, b));
10304
10304
  });
10305
10305
  for (var o = Array.isArray(e), f = n.s.r; f <= n.e.r; ++f) {
10306
10306
  for (var c = [write_ws_xlml_row(f, (e["!rows"] || [])[f])], d = n.s.c; d <= n.e.c; ++d) {
@@ -10311,8 +10311,8 @@ function write_ws_xlml_table(e, r, t, a) {
10311
10311
  break;
10312
10312
  }
10313
10313
  if (!_) {
10314
- var h = { r: f, c: d }, p = encode_cell(h), u = o ? (e[f] || [])[d] : e[p];
10315
- c.push(write_ws_xlml_cell(u, p, e, r, t, a, h));
10314
+ var h = { r: f, c: d }, x = encode_cell(h), u = o ? (e[f] || [])[d] : e[x];
10315
+ c.push(write_ws_xlml_cell(u, x, e, r, t, a, h));
10316
10316
  }
10317
10317
  }
10318
10318
  c.push("</Row>"), c.length > 2 && l.push(c.join(""));
@@ -14611,19 +14611,19 @@ function write_ws_biff8_cell(e, r, t, a, n) {
14611
14611
  }
14612
14612
  }
14613
14613
  function write_ws_biff8(e, r, t) {
14614
- var a = buf_array(), n = t.SheetNames[e], i = t.Sheets[n] || {}, s = (t || {}).Workbook || {}, l = (s.Sheets || [])[e] || {}, o = Array.isArray(i), f = r.biff == 8, c, d = "", _ = [], h = safe_decode_range(i["!ref"] || "A1"), p = f ? 65536 : 16384;
14615
- if (h.e.c > 255 || h.e.r >= p) {
14614
+ var a = buf_array(), n = t.SheetNames[e], i = t.Sheets[n] || {}, s = (t || {}).Workbook || {}, l = (s.Sheets || [])[e] || {}, o = Array.isArray(i), f = r.biff == 8, c, d = "", _ = [], h = safe_decode_range(i["!ref"] || "A1"), x = f ? 65536 : 16384;
14615
+ if (h.e.c > 255 || h.e.r >= x) {
14616
14616
  if (r.WTF)
14617
14617
  throw new Error("Range " + (i["!ref"] || "A1") + " exceeds format limit A1:IV16384");
14618
- h.e.c = Math.min(h.e.c, 255), h.e.r = Math.min(h.e.c, p - 1);
14618
+ h.e.c = Math.min(h.e.c, 255), h.e.r = Math.min(h.e.c, x - 1);
14619
14619
  }
14620
14620
  write_biff_rec(a, 2057, write_BOF(t, 16, r)), write_biff_rec(a, 13, writeuint16(1)), write_biff_rec(a, 12, writeuint16(100)), write_biff_rec(a, 15, writebool(!0)), write_biff_rec(a, 17, writebool(!1)), write_biff_rec(a, 16, write_Xnum(1e-3)), write_biff_rec(a, 95, writebool(!0)), write_biff_rec(a, 42, writebool(!1)), write_biff_rec(a, 43, writebool(!1)), write_biff_rec(a, 130, writeuint16(1)), write_biff_rec(a, 128, write_Guts()), write_biff_rec(a, 131, writebool(!1)), write_biff_rec(a, 132, writebool(!1)), f && write_ws_cols_biff8(a, i["!cols"]), write_biff_rec(a, 512, write_Dimensions(h, r)), f && (i["!links"] = []);
14621
14621
  for (var u = h.s.r; u <= h.e.r; ++u) {
14622
14622
  d = encode_row(u);
14623
- for (var m = h.s.c; m <= h.e.c; ++m) {
14624
- u === h.s.r && (_[m] = encode_col(m)), c = _[m] + d;
14625
- var C = o ? (i[u] || [])[m] : i[c];
14626
- C && (write_ws_biff8_cell(a, C, u, m, r), f && C.l && i["!links"].push([c, C.l]));
14623
+ for (var p = h.s.c; p <= h.e.c; ++p) {
14624
+ u === h.s.r && (_[p] = encode_col(p)), c = _[p] + d;
14625
+ var C = o ? (i[u] || [])[p] : i[c];
14626
+ C && (write_ws_biff8_cell(a, C, u, p, r), f && C.l && i["!links"].push([c, C.l]));
14627
14627
  }
14628
14628
  }
14629
14629
  var I = l.CodeName || l.name || n;
@@ -14675,17 +14675,17 @@ function write_biff8_global(e, r, t) {
14675
14675
  10
14676
14676
  /* EOF */
14677
14677
  );
14678
- var _ = d.end(), h = buf_array(), p = 0, u = 0;
14678
+ var _ = d.end(), h = buf_array(), x = 0, u = 0;
14679
14679
  for (u = 0; u < e.SheetNames.length; ++u)
14680
- p += (l ? 12 : 11) + (l ? 2 : 1) * e.SheetNames[u].length;
14681
- var m = c.length + p + _.length;
14680
+ x += (l ? 12 : 11) + (l ? 2 : 1) * e.SheetNames[u].length;
14681
+ var p = c.length + x + _.length;
14682
14682
  for (u = 0; u < e.SheetNames.length; ++u) {
14683
14683
  var C = i[u] || {};
14684
- write_biff_rec(h, 133, write_BoundSheet8({ pos: m, hs: C.Hidden || 0, dt: 0, name: e.SheetNames[u] }, t)), m += r[u].length;
14684
+ write_biff_rec(h, 133, write_BoundSheet8({ pos: p, hs: C.Hidden || 0, dt: 0, name: e.SheetNames[u] }, t)), p += r[u].length;
14685
14685
  }
14686
14686
  var I = h.end();
14687
- if (p != I.length)
14688
- throw new Error("BS8 " + p + " != " + I.length);
14687
+ if (x != I.length)
14688
+ throw new Error("BS8 " + x + " != " + I.length);
14689
14689
  var k = [];
14690
14690
  return c.length && k.push(c), I.length && k.push(I), _.length && k.push(_), bconcat(k);
14691
14691
  }
@@ -14733,8 +14733,8 @@ function make_html_row(e, r, t, a) {
14733
14733
  l > 1 && (h.rowspan = l), o > 1 && (h.colspan = o), a.editable ? _ = '<span contenteditable="true">' + _ + "</span>" : d && (h["data-t"] = d && d.t || "z", d.v != null && (h["data-v"] = d.v), d.z != null && (h["data-z"] = d.z), d.l && (d.l.Target || "#").charAt(0) != "#" && (_ = '<a href="' + d.l.Target + '">' + _ + "</a>")), h.id = (a.id || "sjs") + "-" + c, i.push(writextag("td", _, h));
14734
14734
  }
14735
14735
  }
14736
- var p = "<tr>";
14737
- return p + i.join("") + "</tr>";
14736
+ var x = "<tr>";
14737
+ return x + i.join("") + "</tr>";
14738
14738
  }
14739
14739
  var HTML_BEGIN = '<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>', HTML_END = "</body></html>";
14740
14740
  function make_html_preamble(e, r, t) {
@@ -14762,17 +14762,17 @@ function sheet_add_dom(e, r, t) {
14762
14762
  var c = decode_range(e["!ref"]);
14763
14763
  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);
14764
14764
  }
14765
- var d = [], _ = 0, h = e["!rows"] || (e["!rows"] = []), p = 0, u = 0, m = 0, C = 0, I = 0, k = 0;
14766
- for (e["!cols"] || (e["!cols"] = []); p < l.length && u < o; ++p) {
14767
- var b = l[p];
14765
+ var d = [], _ = 0, h = e["!rows"] || (e["!rows"] = []), x = 0, u = 0, p = 0, C = 0, I = 0, k = 0;
14766
+ for (e["!cols"] || (e["!cols"] = []); x < l.length && u < o; ++x) {
14767
+ var b = l[x];
14768
14768
  if (is_dom_element_hidden(b)) {
14769
14769
  if (a.display)
14770
14770
  continue;
14771
14771
  h[u] = { hidden: !0 };
14772
14772
  }
14773
14773
  var X = b.children;
14774
- for (m = C = 0; m < X.length; ++m) {
14775
- var z = X[m];
14774
+ for (p = C = 0; p < X.length; ++p) {
14775
+ var z = X[p];
14776
14776
  if (!(a.display && is_dom_element_hidden(z))) {
14777
14777
  var S = z.hasAttribute("data-v") ? z.getAttribute("data-v") : z.hasAttribute("v") ? z.getAttribute("v") : htmldecode(z.innerHTML), B = z.getAttribute("data-z") || z.getAttribute("z");
14778
14778
  for (_ = 0; _ < d.length; ++_) {
@@ -14791,7 +14791,7 @@ function sheet_add_dom(e, r, t) {
14791
14791
  }
14792
14792
  ++u;
14793
14793
  }
14794
- return d.length && (e["!merges"] = (e["!merges"] || []).concat(d)), f.e.r = Math.max(f.e.r, u - 1 + n), e["!ref"] = encode_range(f), u >= o && (e["!fullref"] = encode_range((f.e.r = l.length - p + u - 1 + n, f))), e;
14794
+ return d.length && (e["!merges"] = (e["!merges"] || []).concat(d)), f.e.r = Math.max(f.e.r, u - 1 + n), e["!ref"] = encode_range(f), u >= o && (e["!fullref"] = encode_range((f.e.r = l.length - x + u - 1 + n, f))), e;
14795
14795
  }
14796
14796
  function parse_dom_table(e, r) {
14797
14797
  var t = r || {}, a = t.dense ? [] : {};
@@ -14845,17 +14845,17 @@ var write_styles_ods = /* @__PURE__ */ function() {
14845
14845
  var o = [];
14846
14846
  o.push(' <table:table table:name="' + escapexml(s.SheetNames[l]) + `" table:style-name="ta1">
14847
14847
  `);
14848
- var f = 0, c = 0, d = decode_range(i["!ref"] || "A1"), _ = i["!merges"] || [], h = 0, p = Array.isArray(i);
14848
+ var f = 0, c = 0, d = decode_range(i["!ref"] || "A1"), _ = i["!merges"] || [], h = 0, x = Array.isArray(i);
14849
14849
  if (i["!cols"])
14850
14850
  for (c = 0; c <= d.e.c; ++c)
14851
14851
  o.push(" <table:table-column" + (i["!cols"][c] ? ' table:style-name="co' + i["!cols"][c].ods + '"' : "") + `></table:table-column>
14852
14852
  `);
14853
- var u = "", m = i["!rows"] || [];
14853
+ var u = "", p = i["!rows"] || [];
14854
14854
  for (f = 0; f < d.s.r; ++f)
14855
- u = m[f] ? ' table:style-name="ro' + m[f].ods + '"' : "", o.push(" <table:table-row" + u + `></table:table-row>
14855
+ u = p[f] ? ' table:style-name="ro' + p[f].ods + '"' : "", o.push(" <table:table-row" + u + `></table:table-row>
14856
14856
  `);
14857
14857
  for (; f <= d.e.r; ++f) {
14858
- for (u = m[f] ? ' table:style-name="ro' + m[f].ods + '"' : "", o.push(" <table:table-row" + u + `>
14858
+ for (u = p[f] ? ' table:style-name="ro' + p[f].ods + '"' : "", o.push(" <table:table-row" + u + `>
14859
14859
  `), c = 0; c < d.s.c; ++c)
14860
14860
  o.push(r);
14861
14861
  for (; c <= d.e.c; ++c) {
@@ -14869,7 +14869,7 @@ var write_styles_ods = /* @__PURE__ */ function() {
14869
14869
  o.push(t);
14870
14870
  continue;
14871
14871
  }
14872
- var b = encode_cell({ r: f, c }), X = p ? (i[f] || [])[c] : i[b];
14872
+ var b = encode_cell({ r: f, c }), X = x ? (i[f] || [])[c] : i[b];
14873
14873
  if (X && X.f && (I["table:formula"] = escapexml(csf_to_ods_formula(X.f)), X.F && X.F.slice(0, b.length) == b)) {
14874
14874
  var z = decode_range(X.F);
14875
14875
  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;
@@ -15264,31 +15264,31 @@ function write_tile_row(e, r, t) {
15264
15264
  var l = ((s = (i = e[8]) == null ? void 0 : i[0]) == null ? void 0 : s.data) && varint_to_i32(e[8][0].data) > 0 || !1;
15265
15265
  if (l)
15266
15266
  throw "Math only works with normal offsets";
15267
- for (var o = 0, f = u8_to_dataview(e[7][0].data), c = 0, d = [], _ = u8_to_dataview(e[4][0].data), h = 0, p = [], u = 0; u < r.length; ++u) {
15267
+ for (var o = 0, f = u8_to_dataview(e[7][0].data), c = 0, d = [], _ = u8_to_dataview(e[4][0].data), h = 0, x = [], u = 0; u < r.length; ++u) {
15268
15268
  if (r[u] == null) {
15269
15269
  f.setUint16(u * 2, 65535, !0), _.setUint16(u * 2, 65535);
15270
15270
  continue;
15271
15271
  }
15272
15272
  f.setUint16(u * 2, c, !0), _.setUint16(u * 2, h, !0);
15273
- var m, C;
15273
+ var p, C;
15274
15274
  switch (typeof r[u]) {
15275
15275
  case "string":
15276
- m = write_new_storage({ t: "s", v: r[u] }, t), C = write_old_storage({ t: "s", v: r[u] }, t);
15276
+ p = write_new_storage({ t: "s", v: r[u] }, t), C = write_old_storage({ t: "s", v: r[u] }, t);
15277
15277
  break;
15278
15278
  case "number":
15279
- m = write_new_storage({ t: "n", v: r[u] }, t), C = write_old_storage({ t: "n", v: r[u] }, t);
15279
+ p = write_new_storage({ t: "n", v: r[u] }, t), C = write_old_storage({ t: "n", v: r[u] }, t);
15280
15280
  break;
15281
15281
  case "boolean":
15282
- m = write_new_storage({ t: "b", v: r[u] }, t), C = write_old_storage({ t: "b", v: r[u] }, t);
15282
+ p = write_new_storage({ t: "b", v: r[u] }, t), C = write_old_storage({ t: "b", v: r[u] }, t);
15283
15283
  break;
15284
15284
  default:
15285
15285
  throw new Error("Unsupported value " + r[u]);
15286
15286
  }
15287
- d.push(m), c += m.length, p.push(C), h += C.length, ++o;
15287
+ d.push(p), c += p.length, x.push(C), h += C.length, ++o;
15288
15288
  }
15289
15289
  for (e[2][0].data = write_varint49(o); u < e[7][0].data.length / 2; ++u)
15290
15290
  f.setUint16(u * 2, 65535, !0), _.setUint16(u * 2, 65535, !0);
15291
- return e[6][0].data = u8concat(d), e[3][0].data = u8concat(p), o;
15291
+ return e[6][0].data = u8concat(d), e[3][0].data = u8concat(x), o;
15292
15292
  }
15293
15293
  function write_numbers_iwa(e, r) {
15294
15294
  if (!r || !r.numbers)
@@ -15341,17 +15341,17 @@ function write_numbers_iwa(e, r) {
15341
15341
  });
15342
15342
  }
15343
15343
  });
15344
- for (var d = CFB.find(f, l[1].location), _ = parse_iwa_file(decompress_iwa_file(d.content)), h, p = 0; p < _.length; ++p) {
15345
- var u = _[p];
15344
+ for (var d = CFB.find(f, l[1].location), _ = parse_iwa_file(decompress_iwa_file(d.content)), h, x = 0; x < _.length; ++x) {
15345
+ var u = _[x];
15346
15346
  u.id == 1 && (h = u);
15347
15347
  }
15348
- var m = parse_TSP_Reference(parse_shallow(h.messages[0].data)[1][0].data);
15349
- for (d = CFB.find(f, l[m].location), _ = parse_iwa_file(decompress_iwa_file(d.content)), p = 0; p < _.length; ++p)
15350
- u = _[p], u.id == m && (h = u);
15351
- for (m = parse_TSP_Reference(parse_shallow(h.messages[0].data)[2][0].data), d = CFB.find(f, l[m].location), _ = parse_iwa_file(decompress_iwa_file(d.content)), p = 0; p < _.length; ++p)
15352
- u = _[p], u.id == m && (h = u);
15353
- for (m = parse_TSP_Reference(parse_shallow(h.messages[0].data)[2][0].data), d = CFB.find(f, l[m].location), _ = parse_iwa_file(decompress_iwa_file(d.content)), p = 0; p < _.length; ++p)
15354
- u = _[p], u.id == m && (h = u);
15348
+ var p = parse_TSP_Reference(parse_shallow(h.messages[0].data)[1][0].data);
15349
+ for (d = CFB.find(f, l[p].location), _ = parse_iwa_file(decompress_iwa_file(d.content)), x = 0; x < _.length; ++x)
15350
+ u = _[x], u.id == p && (h = u);
15351
+ for (p = parse_TSP_Reference(parse_shallow(h.messages[0].data)[2][0].data), d = CFB.find(f, l[p].location), _ = parse_iwa_file(decompress_iwa_file(d.content)), x = 0; x < _.length; ++x)
15352
+ u = _[x], u.id == p && (h = u);
15353
+ for (p = parse_TSP_Reference(parse_shallow(h.messages[0].data)[2][0].data), d = CFB.find(f, l[p].location), _ = parse_iwa_file(decompress_iwa_file(d.content)), x = 0; x < _.length; ++x)
15354
+ u = _[x], u.id == p && (h = u);
15355
15355
  var C = parse_shallow(h.messages[0].data);
15356
15356
  {
15357
15357
  C[6][0].data = write_varint49(a.e.r + 1), C[7][0].data = write_varint49(a.e.c + 1);
@@ -15502,8 +15502,8 @@ function write_zip_xlsxb(e, r) {
15502
15502
  s = "xl/worksheets/sheet" + l + "." + t, zip_add_file(i, s, write_ws(l - 1, s, r, e, c)), n.sheets.push(s), add_rels(r.wbrels, -1, "worksheets/sheet" + l + "." + t, RELS.WS[0]);
15503
15503
  }
15504
15504
  if (d) {
15505
- var h = d["!comments"], p = !1, u = "";
15506
- h && h.length > 0 && (u = "xl/comments" + l + "." + t, zip_add_file(i, u, write_cmnt(h, u)), n.comments.push(u), add_rels(c, -1, "../comments" + l + "." + t, RELS.CMNT), p = !0), d["!legacy"] && p && zip_add_file(i, "xl/drawings/vmlDrawing" + l + ".vml", write_comments_vml(l, d["!comments"])), delete d["!comments"], delete d["!legacy"];
15505
+ var h = d["!comments"], x = !1, u = "";
15506
+ h && h.length > 0 && (u = "xl/comments" + l + "." + t, zip_add_file(i, u, write_cmnt(h, u)), n.comments.push(u), add_rels(c, -1, "../comments" + l + "." + t, RELS.CMNT), x = !0), d["!legacy"] && x && zip_add_file(i, "xl/drawings/vmlDrawing" + l + ".vml", write_comments_vml(l, d["!comments"])), delete d["!comments"], delete d["!legacy"];
15507
15507
  }
15508
15508
  c["!id"].rId1 && zip_add_file(i, get_rels_path(s), write_rels(c));
15509
15509
  }
@@ -15533,14 +15533,14 @@ function write_zip_xlsx(e, r) {
15533
15533
  s = "xl/worksheets/sheet" + l + "." + t, zip_add_file(i, s, write_ws_xml(l - 1, r, e, d)), n.sheets.push(s), add_rels(r.wbrels, -1, "worksheets/sheet" + l + "." + t, RELS.WS[0]);
15534
15534
  }
15535
15535
  if (_) {
15536
- var p = _["!comments"], u = !1, m = "";
15537
- if (p && p.length > 0) {
15536
+ var x = _["!comments"], u = !1, p = "";
15537
+ if (x && x.length > 0) {
15538
15538
  var C = !1;
15539
- p.forEach(function(I) {
15539
+ x.forEach(function(I) {
15540
15540
  I[1].forEach(function(k) {
15541
15541
  k.T == !0 && (C = !0);
15542
15542
  });
15543
- }), C && (m = "xl/threadedComments/threadedComment" + l + "." + t, zip_add_file(i, m, write_tcmnt_xml(p, c, r)), n.threadedcomments.push(m), add_rels(d, -1, "../threadedComments/threadedComment" + l + "." + t, RELS.TCMNT)), m = "xl/comments" + l + "." + t, zip_add_file(i, m, write_comments_xml(p)), n.comments.push(m), add_rels(d, -1, "../comments" + l + "." + t, RELS.CMNT), u = !0;
15543
+ }), C && (p = "xl/threadedComments/threadedComment" + l + "." + t, zip_add_file(i, p, write_tcmnt_xml(x, c, r)), n.threadedcomments.push(p), add_rels(d, -1, "../threadedComments/threadedComment" + l + "." + t, RELS.TCMNT)), p = "xl/comments" + l + "." + t, zip_add_file(i, p, write_comments_xml(x)), n.comments.push(p), add_rels(d, -1, "../comments" + l + "." + t, RELS.CMNT), u = !0;
15544
15544
  }
15545
15545
  _["!legacy"] && u && zip_add_file(i, "xl/drawings/vmlDrawing" + l + ".vml", write_comments_vml(l, _["!comments"])), delete _["!comments"], delete _["!legacy"];
15546
15546
  }
@@ -15773,15 +15773,15 @@ function make_json_row(e, r, t, a, n, i, s, l) {
15773
15773
  _.__rowNum__ = t;
15774
15774
  if (!s || e[t])
15775
15775
  for (var h = r.s.c; h <= r.e.c; ++h) {
15776
- var p = s ? e[t][h] : e[a[h] + o];
15777
- if (p === void 0 || p.t === void 0) {
15776
+ var x = s ? e[t][h] : e[a[h] + o];
15777
+ if (x === void 0 || x.t === void 0) {
15778
15778
  if (f === void 0)
15779
15779
  continue;
15780
15780
  i[h] != null && (_[i[h]] = f);
15781
15781
  continue;
15782
15782
  }
15783
- var u = p.v;
15784
- switch (p.t) {
15783
+ var u = x.v;
15784
+ switch (x.t) {
15785
15785
  case "z":
15786
15786
  if (u == null)
15787
15787
  break;
@@ -15795,11 +15795,11 @@ function make_json_row(e, r, t, a, n, i, s, l) {
15795
15795
  case "n":
15796
15796
  break;
15797
15797
  default:
15798
- throw new Error("unrecognized type " + p.t);
15798
+ throw new Error("unrecognized type " + x.t);
15799
15799
  }
15800
15800
  if (i[h] != null) {
15801
15801
  if (u == null)
15802
- if (p.t == "e" && u === null)
15802
+ if (x.t == "e" && u === null)
15803
15803
  _[i[h]] = null;
15804
15804
  else if (f !== void 0)
15805
15805
  _[i[h]] = f;
@@ -15808,7 +15808,7 @@ function make_json_row(e, r, t, a, n, i, s, l) {
15808
15808
  else
15809
15809
  continue;
15810
15810
  else
15811
- _[i[h]] = c && (p.t !== "n" || p.t === "n" && l.rawNumbers !== !1) ? u : format_cell(p, u, l);
15811
+ _[i[h]] = c && (x.t !== "n" || x.t === "n" && l.rawNumbers !== !1) ? u : format_cell(x, u, l);
15812
15812
  u != null && (d = !1);
15813
15813
  }
15814
15814
  }
@@ -15829,12 +15829,12 @@ function sheet_to_json(e, r) {
15829
15829
  o = c;
15830
15830
  }
15831
15831
  a > 0 && (n = 0);
15832
- var d = encode_row(o.s.r), _ = [], h = [], p = 0, u = 0, m = Array.isArray(e), C = o.s.r, I = 0, k = {};
15833
- m && !e[C] && (e[C] = []);
15832
+ var d = encode_row(o.s.r), _ = [], h = [], x = 0, u = 0, p = Array.isArray(e), C = o.s.r, I = 0, k = {};
15833
+ p && !e[C] && (e[C] = []);
15834
15834
  var b = f.skipHidden && e["!cols"] || [], X = f.skipHidden && e["!rows"] || [];
15835
15835
  for (I = o.s.c; I <= o.e.c; ++I)
15836
15836
  if (!(b[I] || {}).hidden)
15837
- switch (_[I] = encode_col(I), t = m ? e[C][I] : e[_[I] + d], a) {
15837
+ switch (_[I] = encode_col(I), t = p ? e[C][I] : e[_[I] + d], a) {
15838
15838
  case 1:
15839
15839
  i[I] = I - o.s.c;
15840
15840
  break;
@@ -15857,10 +15857,10 @@ function sheet_to_json(e, r) {
15857
15857
  }
15858
15858
  for (C = o.s.r + n; C <= o.e.r; ++C)
15859
15859
  if (!(X[C] || {}).hidden) {
15860
- var z = make_json_row(e, o, C, _, a, i, m, f);
15861
- (z.isempty === !1 || (a === 1 ? f.blankrows !== !1 : f.blankrows)) && (h[p++] = z.row);
15860
+ var z = make_json_row(e, o, C, _, a, i, p, f);
15861
+ (z.isempty === !1 || (a === 1 ? f.blankrows !== !1 : f.blankrows)) && (h[x++] = z.row);
15862
15862
  }
15863
- return h.length = p, h;
15863
+ return h.length = x, h;
15864
15864
  }
15865
15865
  var qreg = /"/g;
15866
15866
  function make_csv_row(e, r, t, a, n, i, s, l) {
@@ -15871,8 +15871,8 @@ function make_csv_row(e, r, t, a, n, i, s, l) {
15871
15871
  c = "";
15872
15872
  else if (h.v != null) {
15873
15873
  o = !1, c = "" + (l.rawNumbers && h.t == "n" ? h.v : format_cell(h, null, l));
15874
- for (var p = 0, u = 0; p !== c.length; ++p)
15875
- if ((u = c.charCodeAt(p)) === n || u === i || u === 34 || l.forceQuotes) {
15874
+ for (var x = 0, u = 0; x !== c.length; ++x)
15875
+ if ((u = c.charCodeAt(x)) === n || u === i || u === 34 || l.forceQuotes) {
15876
15876
  c = '"' + c.replace(qreg, '""') + '"';
15877
15877
  break;
15878
15878
  }
@@ -15890,10 +15890,10 @@ function sheet_to_csv(e, r) {
15890
15890
  var n = safe_decode_range(e["!ref"]), i = a.FS !== void 0 ? a.FS : ",", s = i.charCodeAt(0), l = a.RS !== void 0 ? a.RS : `
15891
15891
  `, o = l.charCodeAt(0), f = new RegExp((i == "|" ? "\\|" : i) + "+$"), c = "", d = [];
15892
15892
  a.dense = Array.isArray(e);
15893
- for (var _ = a.skipHidden && e["!cols"] || [], h = a.skipHidden && e["!rows"] || [], p = n.s.c; p <= n.e.c; ++p)
15894
- (_[p] || {}).hidden || (d[p] = encode_col(p));
15895
- for (var u = 0, m = n.s.r; m <= n.e.r; ++m)
15896
- (h[m] || {}).hidden || (c = make_csv_row(e, n, m, d, s, o, i, a), c != null && (a.strip && (c = c.replace(f, "")), (c || a.blankrows !== !1) && t.push((u++ ? l : "") + c)));
15893
+ for (var _ = a.skipHidden && e["!cols"] || [], h = a.skipHidden && e["!rows"] || [], x = n.s.c; x <= n.e.c; ++x)
15894
+ (_[x] || {}).hidden || (d[x] = encode_col(x));
15895
+ for (var u = 0, p = n.s.r; p <= n.e.r; ++p)
15896
+ (h[p] || {}).hidden || (c = make_csv_row(e, n, p, d, s, o, i, a), c != null && (a.strip && (c = c.replace(f, "")), (c || a.blankrows !== !1) && t.push((u++ ? l : "") + c)));
15897
15897
  return delete a.dense, t.join("");
15898
15898
  }
15899
15899
  function sheet_to_txt(e, r) {
@@ -15954,17 +15954,17 @@ function sheet_add_json(e, r, t) {
15954
15954
  } else
15955
15955
  s == -1 && (s = 0, c.e.r = r.length - 1 + n);
15956
15956
  var _ = a.header || [], h = 0;
15957
- r.forEach(function(u, m) {
15957
+ r.forEach(function(u, p) {
15958
15958
  keys(u).forEach(function(C) {
15959
15959
  (h = _.indexOf(C)) == -1 && (_[h = _.length] = C);
15960
- var I = u[C], k = "z", b = "", X = encode_cell({ c: l + h, r: s + m + n });
15960
+ var I = u[C], k = "z", b = "", X = encode_cell({ c: l + h, r: s + p + n });
15961
15961
  f = ws_get_cell_stub(i, X), I && typeof I == "object" && !(I instanceof Date) ? i[X] = 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[X] = f = { t: k, v: I }, b && (f.z = b));
15962
15962
  });
15963
15963
  }), c.e.c = Math.max(c.e.c, l + _.length - 1);
15964
- var p = encode_row(s);
15964
+ var x = encode_row(s);
15965
15965
  if (n)
15966
15966
  for (h = 0; h < _.length; ++h)
15967
- i[encode_col(h + l) + p] = { t: "s", v: _[h] };
15967
+ i[encode_col(h + l) + x] = { t: "s", v: _[h] };
15968
15968
  return i["!ref"] = encode_range(c), i;
15969
15969
  }
15970
15970
  function json_to_sheet(e, r) {
@@ -16110,10 +16110,10 @@ const _hoisted_1$e = { style: { display: "inline-block", width: "100px" } }, _ho
16110
16110
  set: (_) => i("update:modelValue", _)
16111
16111
  }), o = () => {
16112
16112
  let _ = t.data, h = t.printOption;
16113
- var p = "", u = "";
16114
- h.TitleArray && h.TitleArray.length > 0 ? p = h.TitleArray.map((k, b) => `<tr><th colspan='100' style="font-size:${20 - b * 3}px;border:none;">${k}</th></tr>`).join("") : p = `<tr><th colspan='100' style='font-size:20px;border:none'>${t.title}</th></tr>`, h.FootArray && h.FootArray.length > 0 && (u = h.FootArray.map((k) => `<tr><td colspan='100' style="font-size:18ddpx;border:none;text-align:right">${k}</td></tr>`).join(""));
16115
- let m = t.columnArray, C = _.map(
16116
- (k, b) => `<tr>${m.map((X, z) => {
16113
+ var x = "", u = "";
16114
+ h.TitleArray && h.TitleArray.length > 0 ? x = h.TitleArray.map((k, b) => `<tr><th colspan='100' style="font-size:${20 - b * 3}px;border:none;">${k}</th></tr>`).join("") : x = `<tr><th colspan='100' style='font-size:20px;border:none'>${t.title}</th></tr>`, h.FootArray && h.FootArray.length > 0 && (u = h.FootArray.map((k) => `<tr><td colspan='100' style="font-size:18ddpx;border:none;text-align:right">${k}</td></tr>`).join(""));
16115
+ let p = t.columnArray, C = _.map(
16116
+ (k, b) => `<tr>${p.map((X, z) => {
16117
16117
  let S = f(k, X, z, b);
16118
16118
  return S.colspan == "0" || S.rowspan == "0" ? "" : `<td rowspan="${S.rowspan > 1 ? S.rowspan : ""}" colspan="${S.colspan > 1 ? S.colspan : ""}">${k[X.title]}</td>`;
16119
16119
  }).join("")}</tr>`
@@ -16134,8 +16134,8 @@ const _hoisted_1$e = { style: { display: "inline-block", width: "100px" } }, _ho
16134
16134
  </style>
16135
16135
  <table>
16136
16136
  <thead>
16137
- ${p}
16138
- <tr>${m.map((k) => `<th>${k.title}</th>`).join("")}</tr>
16137
+ ${x}
16138
+ <tr>${p.map((k) => `<th>${k.title}</th>`).join("")}</tr>
16139
16139
  </thead>
16140
16140
  <tbody>
16141
16141
  ${C}
@@ -16143,17 +16143,17 @@ const _hoisted_1$e = { style: { display: "inline-block", width: "100px" } }, _ho
16143
16143
  ${u}
16144
16144
  </tbody>
16145
16145
  </table>`;
16146
- }, f = (_, h, p, u) => {
16146
+ }, f = (_, h, x, u) => {
16147
16147
  if (h.title == null)
16148
16148
  return { rowspan: 1, colspan: 1 };
16149
- let m = h.title, C = t.columnArray.FirstOrDefault((b) => b.title == m);
16149
+ let p = h.title, C = t.columnArray.FirstOrDefault((b) => b.title == p);
16150
16150
  if (C == null || !C.isHeBing)
16151
16151
  return { rowspan: 1, colspan: 1 };
16152
- let I = _[m];
16153
- if (u > 0 && I == t.data[u - 1][m])
16152
+ let I = _[p];
16153
+ if (u > 0 && I == t.data[u - 1][p])
16154
16154
  return { rowspan: 0, colspan: 0 };
16155
16155
  let k = 0;
16156
- for (let b = u; b < t.data.length && t.data[b][m] == I; b++)
16156
+ for (let b = u; b < t.data.length && t.data[b][p] == I; b++)
16157
16157
  k++;
16158
16158
  return {
16159
16159
  rowspan: k,
@@ -16171,13 +16171,13 @@ const _hoisted_1$e = { style: { display: "inline-block", width: "100px" } }, _ho
16171
16171
  return L("合计");
16172
16172
  if (!_.isSummary)
16173
16173
  return "";
16174
- let p = 0;
16174
+ let x = 0;
16175
16175
  return t.data.forEach((u) => {
16176
16176
  if (u.src && u.src.IgnoreSummary)
16177
16177
  return;
16178
- let m = Number(u[_.title]);
16179
- Number.isNaN(m) || (p += m);
16180
- }), p.toFixed(2);
16178
+ let p = Number(u[_.title]);
16179
+ Number.isNaN(p) || (x += p);
16180
+ }), x.toFixed(2);
16181
16181
  });
16182
16182
  return watch(
16183
16183
  () => t.modelValue,
@@ -16193,13 +16193,13 @@ const _hoisted_1$e = { style: { display: "inline-block", width: "100px" } }, _ho
16193
16193
  console.log("电脑无打印机");
16194
16194
  return;
16195
16195
  }
16196
- for (let p = 0; p < h; p++)
16197
- a.value.push(s.GET_PRINTER_NAME(p));
16196
+ for (let x = 0; x < h; x++)
16197
+ a.value.push(s.GET_PRINTER_NAME(x));
16198
16198
  }
16199
16199
  }
16200
16200
  ), (_, h) => (openBlock(), createBlock(unref(ElDialog), {
16201
16201
  modelValue: l.value,
16202
- "onUpdate:modelValue": h[2] || (h[2] = (p) => l.value = p),
16202
+ "onUpdate:modelValue": h[2] || (h[2] = (x) => l.value = x),
16203
16203
  title: unref(L)("打印配置"),
16204
16204
  width: "600px"
16205
16205
  }, {
@@ -16209,16 +16209,16 @@ const _hoisted_1$e = { style: { display: "inline-block", width: "100px" } }, _ho
16209
16209
  createElementVNode("label", _hoisted_1$e, toDisplayString(unref(L)("打印机")), 1),
16210
16210
  createVNode(unref(ElSelect), {
16211
16211
  modelValue: n.PrintName,
16212
- "onUpdate:modelValue": h[0] || (h[0] = (p) => n.PrintName = p)
16212
+ "onUpdate:modelValue": h[0] || (h[0] = (x) => n.PrintName = x)
16213
16213
  }, {
16214
16214
  default: withCtx(() => [
16215
16215
  createVNode(unref(ElOption), {
16216
16216
  value: "",
16217
16217
  label: unref(L)("默认打印机")
16218
16218
  }, null, 8, ["label"]),
16219
- (openBlock(!0), createElementBlock(Fragment, null, renderList(a.value, (p) => (openBlock(), createBlock(unref(ElOption), {
16220
- value: p,
16221
- label: p
16219
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(a.value, (x) => (openBlock(), createBlock(unref(ElOption), {
16220
+ value: x,
16221
+ label: x
16222
16222
  }, null, 8, ["value", "label"]))), 256))
16223
16223
  ]),
16224
16224
  _: 1
@@ -16231,7 +16231,7 @@ const _hoisted_1$e = { style: { display: "inline-block", width: "100px" } }, _ho
16231
16231
  createElementVNode("label", _hoisted_2$9, toDisplayString(unref(L)("打印方向")), 1),
16232
16232
  createVNode(unref(ElSelect), {
16233
16233
  modelValue: n.Direction,
16234
- "onUpdate:modelValue": h[1] || (h[1] = (p) => n.Direction = p)
16234
+ "onUpdate:modelValue": h[1] || (h[1] = (x) => n.Direction = x)
16235
16235
  }, {
16236
16236
  default: withCtx(() => [
16237
16237
  createVNode(unref(ElOption), {
@@ -16425,14 +16425,14 @@ const _hoisted_1$e = { style: { display: "inline-block", width: "100px" } }, _ho
16425
16425
  return B.FnGet ? B.FnGet(S) : A;
16426
16426
  }, h = (S) => {
16427
16427
  S.srcFilter = S.srcFilter || S.filters, S.filterText == "" ? S.filters = S.srcFilter : S.filters = S.srcFilter.filter((B) => B.text.indexOf(S.filterText) >= 0);
16428
- }, p = ref([]), u = computed({
16428
+ }, x = ref([]), u = computed({
16429
16429
  get: () => {
16430
16430
  let S = [];
16431
16431
  return i.columnArray.forEach((B) => {
16432
16432
  B.isFilter && (B.filters || (B.filterText = "", B.filterList = [], B.filters = [])), S.push(B);
16433
- }), p.value = S, S;
16433
+ }), x.value = S, S;
16434
16434
  }
16435
- }), m = computed({
16435
+ }), p = computed({
16436
16436
  get: () => u.value.some((S) => S.isSummary)
16437
16437
  });
16438
16438
  watch(
@@ -16490,7 +16490,7 @@ const _hoisted_1$e = { style: { display: "inline-block", width: "100px" } }, _ho
16490
16490
  border: "",
16491
16491
  "highlight-current-row": "",
16492
16492
  "row-key": "Id",
16493
- "show-summary": m.value,
16493
+ "show-summary": p.value,
16494
16494
  class: "qktab",
16495
16495
  "sum-text": unref(L)("合计"),
16496
16496
  "span-method": l,
@@ -16511,7 +16511,7 @@ const _hoisted_1$e = { style: { display: "inline-block", width: "100px" } }, _ho
16511
16511
  label: unref(L)("行号"),
16512
16512
  fixed: "left"
16513
16513
  }, null, 8, ["label"])) : createCommentVNode("", !0),
16514
- (openBlock(!0), createElementBlock(Fragment, null, renderList(p.value, (A) => (openBlock(), createBlock(unref(ElTableColumn), {
16514
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(x.value, (A) => (openBlock(), createBlock(unref(ElTableColumn), {
16515
16515
  prop: A.dataKey,
16516
16516
  label: unref(L)(A.title),
16517
16517
  "min-width": A.width,
@@ -16925,21 +16925,21 @@ const SafeCall$1 = async (e, r) => {
16925
16925
  },
16926
16926
  emits: ["command", "handData", "saveData"],
16927
16927
  setup(e, { expose: r, emit: t }) {
16928
- 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), d = ref(1), _ = ref(20), h = window.ProjectHost, p = e, u = t, m = ref([]), C = computed({
16928
+ 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), d = ref(1), _ = ref(20), h = window.ProjectHost, x = e, u = t, p = ref([]), C = computed({
16929
16929
  get: () => {
16930
16930
  var X = [];
16931
- return p.commandArray && p.commandArray.length > 0 && p.commandArray.forEach((z) => X.push(z)), m.value.some((z) => z.Name == "编辑") ? X.push("编辑") : m.value.some((z) => z.Name == "查看") && X.push("查看"), m.value.some((z) => z.Name == "删除") && X.push("删除"), X;
16931
+ return x.commandArray && x.commandArray.length > 0 && x.commandArray.forEach((z) => X.push(z)), p.value.some((z) => z.Name == "编辑") ? X.push("编辑") : p.value.some((z) => z.Name == "查看") && X.push("查看"), p.value.some((z) => z.Name == "删除") && X.push("删除"), console.log(p.value), console.log(X), X;
16932
16932
  }
16933
16933
  }), I = (X, z) => {
16934
16934
  switch (X) {
16935
16935
  case "新增": {
16936
- i.value = !0, o.Title = `${L(p.tabName)} - ` + L("添加"), o.DataModel = {}, u("handData", o.DataModel, !0), o.IsVisible = !0;
16936
+ i.value = !0, o.Title = `${L(x.tabName)} - ` + L("添加"), o.DataModel = {}, u("handData", o.DataModel, !0), o.IsVisible = !0;
16937
16937
  break;
16938
16938
  }
16939
16939
  case "查看":
16940
16940
  case "编辑": {
16941
- i.value = X == "编辑", o.Title = `${L(p.tabName)} - ${L(X)}`, SafeCall$1(async () => {
16942
- o.DataModel = await AjaxCallWeb(`${h}/${p.controller}/GetModel`, {
16941
+ i.value = X == "编辑", o.Title = `${L(x.tabName)} - ${L(X)}`, SafeCall$1(async () => {
16942
+ o.DataModel = await AjaxCallWeb(`${h}/${x.controller}/GetModel`, {
16943
16943
  Id: z.Id
16944
16944
  }), u("handData", o.DataModel, !0), o.IsVisible = !0;
16945
16945
  }, L("数据加载中"));
@@ -16947,7 +16947,7 @@ const SafeCall$1 = async (e, r) => {
16947
16947
  }
16948
16948
  case "删除": {
16949
16949
  confirm(L("数据删除后将不能恢复,请确认是否删除")) && SafeCall$1(async () => {
16950
- await AjaxCallWeb(`${h}/${p.controller}/Delete`, { Id: z.Id }), ElMessage({ message: L("数据删除成功!"), type: "success" });
16950
+ await AjaxCallWeb(`${h}/${x.controller}/Delete`, { Id: z.Id }), ElMessage({ message: L("数据删除成功!"), type: "success" });
16951
16951
  for (let S = 0; S < n.value.length; S++)
16952
16952
  if (n.value[S].Id == z.Id) {
16953
16953
  n.value.splice(S, 1);
@@ -16966,7 +16966,7 @@ const SafeCall$1 = async (e, r) => {
16966
16966
  SafeCall$1(async () => {
16967
16967
  for (let B = 0; B < S.length; B++) {
16968
16968
  let A = S[B].Id;
16969
- await AjaxCallWeb(`${h}/${p.controller}/Delete`, {
16969
+ await AjaxCallWeb(`${h}/${x.controller}/Delete`, {
16970
16970
  Id: A
16971
16971
  }), ElMessage({ message: L("删除成功") + `(${B + 1}/${S.length})` });
16972
16972
  }
@@ -16985,7 +16985,7 @@ const SafeCall$1 = async (e, r) => {
16985
16985
  }
16986
16986
  }, k = () => {
16987
16987
  u("saveData", o.DataModel, !0), SafeCall$1(async () => {
16988
- let X = await AjaxCallWeb(`${h}/${p.controller}/SaveModel`, o.DataModel);
16988
+ let X = await AjaxCallWeb(`${h}/${x.controller}/SaveModel`, o.DataModel);
16989
16989
  ElMessage({ message: L("数据保存成功!"), type: "success" }), o.IsVisible = !1, b();
16990
16990
  }, L("数据保存中"));
16991
16991
  }, b = (X) => SafeCall$1(async () => {
@@ -16994,28 +16994,28 @@ const SafeCall$1 = async (e, r) => {
16994
16994
  PageIndex: d.value,
16995
16995
  PageSize: _.value
16996
16996
  };
16997
- if (p.searchParam)
16998
- for (var S in p.searchParam)
16999
- z[S] = p.searchParam[S];
17000
- let B = await AjaxCallWeb(`${h}/${p.controller}/GetPage`, z);
16997
+ if (x.searchParam)
16998
+ for (var S in x.searchParam)
16999
+ z[S] = x.searchParam[S];
17000
+ let B = await AjaxCallWeb(`${h}/${x.controller}/GetPage`, z);
17001
17001
  B.forEach((A) => u("handData", A, !1)), n.value = B, c.value = window.LastResult.totalRows;
17002
17002
  }, L("数据查询中"));
17003
17003
  return onMounted(async () => {
17004
- if (s.value = a.FilterItem, p.powerArray && p.powerArray.length > 0)
17005
- m.value = p.powerArray, p.loadData && nextTick(() => b());
17004
+ if (s.value = a.FilterItem, x.powerArray && x.powerArray.length > 0)
17005
+ p.value = x.powerArray, x.loadData && nextTick(() => b());
17006
17006
  else {
17007
- let X = p.powerId && p.powerId > 0 ? p.powerId : GetUrlParam("PowerId", "");
17007
+ let X = x.powerId && x.powerId > 0 ? x.powerId : GetUrlParam("PowerId", "");
17008
17008
  X ? await SafeCall$1(async () => {
17009
- m.value = await SystemModuleApi("/ModulePowerInfo/Search", {
17009
+ p.value = await SystemModuleApi("/ModulePowerInfo/Search", {
17010
17010
  SearchType: 3,
17011
17011
  ParentId: X
17012
- }), p.loadData && nextTick(() => b());
17013
- }, L("页面加载中")) : (m.value = [
17012
+ }), console.log(p.value), x.loadData && nextTick(() => b());
17013
+ }, L("页面加载中")) : (p.value = [
17014
17014
  { Id: "1", Name: "新增" },
17015
17015
  { Id: "1", Name: "编辑" },
17016
17016
  { Id: "1", Name: "删除" },
17017
17017
  { Id: "1", Name: "查看" }
17018
- ], p.loadData && nextTick(() => b()));
17018
+ ], x.loadData && nextTick(() => b()));
17019
17019
  }
17020
17020
  }), r({
17021
17021
  onSearch: b
@@ -17026,7 +17026,7 @@ const SafeCall$1 = async (e, r) => {
17026
17026
  onSearch: z[0] || (z[0] = (S) => b(1)),
17027
17027
  ref_key: "filter",
17028
17028
  ref: l,
17029
- labelWidth: p.labelWidth
17029
+ labelWidth: x.labelWidth
17030
17030
  }, {
17031
17031
  FilterItem: withCtx(() => [
17032
17032
  renderSlot(X.$slots, "FilterItem", {}, void 0, !0)
@@ -17043,7 +17043,7 @@ const SafeCall$1 = async (e, r) => {
17043
17043
  class: "tool"
17044
17044
  }, {
17045
17045
  ToolItem: withCtx(() => [
17046
- m.value.some((S) => S.Name == "新增") ? (openBlock(), createBlock(unref(ElButton), {
17046
+ p.value.some((S) => S.Name == "新增") ? (openBlock(), createBlock(unref(ElButton), {
17047
17047
  key: 0,
17048
17048
  type: "primary",
17049
17049
  onClick: z[1] || (z[1] = (S) => I("新增"))
@@ -17053,7 +17053,7 @@ const SafeCall$1 = async (e, r) => {
17053
17053
  ]),
17054
17054
  _: 1
17055
17055
  })) : createCommentVNode("", !0),
17056
- m.value.some((S) => S.Name == "删除") ? (openBlock(), createBlock(unref(ElButton), {
17056
+ p.value.some((S) => S.Name == "删除") ? (openBlock(), createBlock(unref(ElButton), {
17057
17057
  key: 1,
17058
17058
  type: "danger",
17059
17059
  onClick: z[2] || (z[2] = (S) => I("批量删除"))
@@ -17081,7 +17081,7 @@ const SafeCall$1 = async (e, r) => {
17081
17081
  ]),
17082
17082
  _: 1
17083
17083
  }),
17084
- renderSlot(X.$slots, "ToolItem", { powerArray: m.value }, void 0, !0)
17084
+ renderSlot(X.$slots, "ToolItem", { powerArray: p.value }, void 0, !0)
17085
17085
  ]),
17086
17086
  _: 3
17087
17087
  }, 8, ["total", "pageIndex", "pageSize"]),
@@ -17090,38 +17090,38 @@ const SafeCall$1 = async (e, r) => {
17090
17090
  ref: f,
17091
17091
  class: "dataList",
17092
17092
  data: n.value,
17093
- tabName: p.tabName,
17094
- columnArray: p.columnArray,
17095
- toolWidth: p.toolWidth,
17096
- maxCommand: p.maxCommand,
17093
+ tabName: x.tabName,
17094
+ columnArray: x.columnArray,
17095
+ toolWidth: x.toolWidth,
17096
+ maxCommand: x.maxCommand,
17097
17097
  onCommand: I,
17098
17098
  commandArray: C.value,
17099
17099
  key: C.value,
17100
- powerArray: m.value,
17101
- printOption: p.printOption
17100
+ powerArray: p.value,
17101
+ printOption: x.printOption
17102
17102
  }, null, 8, ["data", "tabName", "columnArray", "toolWidth", "maxCommand", "commandArray", "powerArray", "printOption"])),
17103
17103
  createVNode(unref(ElDialog), {
17104
17104
  modelValue: o.IsVisible,
17105
17105
  "onUpdate:modelValue": z[7] || (z[7] = (S) => o.IsVisible = S),
17106
17106
  title: o.Title,
17107
- width: p.editDlgWidth,
17107
+ width: x.editDlgWidth,
17108
17108
  top: "1vh",
17109
17109
  "close-on-click-modal": !1,
17110
17110
  "close-on-press-escape": !1,
17111
- style: normalizeStyle("height:" + p.editDlgHeight),
17111
+ style: normalizeStyle("height:" + x.editDlgHeight),
17112
17112
  draggable: "",
17113
17113
  "destroy-on-close": ""
17114
17114
  }, {
17115
17115
  default: withCtx(() => [
17116
17116
  createVNode(unref(ElForm), {
17117
- inline: p.inline,
17118
- "label-width": p.labelWidth,
17117
+ inline: x.inline,
17118
+ "label-width": x.labelWidth,
17119
17119
  class: "myform"
17120
17120
  }, {
17121
17121
  default: withCtx(() => [
17122
17122
  renderSlot(X.$slots, "formItem", {
17123
17123
  formModel: o.DataModel,
17124
- powerArray: m.value
17124
+ powerArray: p.value
17125
17125
  }, void 0, !0),
17126
17126
  createElementVNode("div", _hoisted_2$7, [
17127
17127
  i.value ? (openBlock(), createBlock(unref(ElButton), {
@@ -17143,7 +17143,7 @@ const SafeCall$1 = async (e, r) => {
17143
17143
  }, 8, ["modelValue", "title", "width", "style"])
17144
17144
  ]));
17145
17145
  }
17146
- }, PageIndex = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-91721a17"]]), _hoisted_1$b = { class: "pagemain" }, _sfc_main$h = {
17146
+ }, PageIndex = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-abaef90d"]]), _hoisted_1$b = { class: "pagemain" }, _sfc_main$h = {
17147
17147
  __name: "index",
17148
17148
  props: {
17149
17149
  columnArray: { type: Array, default: () => [] },
@@ -17170,7 +17170,7 @@ const SafeCall$1 = async (e, r) => {
17170
17170
  setup(e, { expose: r, emit: t }) {
17171
17171
  const a = useSlots(), n = ref([]);
17172
17172
  ref(!0);
17173
- const i = ref(!0), s = ref(null), l = e, o = async (m, C) => {
17173
+ const i = ref(!0), s = ref(null), l = e, o = async (p, C) => {
17174
17174
  C = C || L("数据加载中"), C += "...";
17175
17175
  let I = ElLoading.service({
17176
17176
  lock: !0,
@@ -17180,7 +17180,7 @@ const SafeCall$1 = async (e, r) => {
17180
17180
  background: "rgba(0, 0, 0, 0.7)"
17181
17181
  });
17182
17182
  try {
17183
- await m();
17183
+ await p();
17184
17184
  } catch (k) {
17185
17185
  let b = k.message || k.resultcontent;
17186
17186
  ElMessageBox.alert(L(b), L("错误提示"));
@@ -17188,26 +17188,26 @@ const SafeCall$1 = async (e, r) => {
17188
17188
  I.close();
17189
17189
  }, f = computed({
17190
17190
  get: () => {
17191
- let m = {
17191
+ let p = {
17192
17192
  TitleArray: [l.tabName],
17193
17193
  FootArray: [L("打单日期") + `:${(/* @__PURE__ */ new Date()).ToString("yyyy-MM-dd HH:mm:ss")}`]
17194
17194
  };
17195
- return l.printOption.TitleArray && l.printOption.TitleArray.length > 0 && l.printOption.TitleArray.forEach((C) => m.TitleArray.push(C)), l.printOption.FootArray && l.printOption.FootArray.length > 0 && l.printOption.FootArray.forEach((C) => m.FootArray.push(C)), m;
17195
+ return l.printOption.TitleArray && l.printOption.TitleArray.length > 0 && l.printOption.TitleArray.forEach((C) => p.TitleArray.push(C)), l.printOption.FootArray && l.printOption.FootArray.length > 0 && l.printOption.FootArray.forEach((C) => p.FootArray.push(C)), p;
17196
17196
  }
17197
17197
  }), c = t, d = ref([]), _ = computed({
17198
17198
  get: () => {
17199
- var m = [];
17200
- return l.commandArray && l.commandArray.length > 0 && l.commandArray.forEach((C) => m.push(C)), m;
17199
+ var p = [];
17200
+ return l.commandArray && l.commandArray.length > 0 && l.commandArray.forEach((C) => p.push(C)), p;
17201
17201
  }
17202
- }), h = (m, C) => {
17203
- switch (m) {
17202
+ }), h = (p, C) => {
17203
+ switch (p) {
17204
17204
  default: {
17205
- c("command", m, C);
17205
+ c("command", p, C);
17206
17206
  break;
17207
17207
  }
17208
17208
  }
17209
- }, p = (m, C, I, k) => {
17210
- if (C == m.length) {
17209
+ }, x = (p, C, I, k) => {
17210
+ if (C == p.length) {
17211
17211
  if (I.forEach((b) => k.push(b)), I.length > 1) {
17212
17212
  let b = { IgnoreSummary: !0, Rows: I }, X = !0, z = I[0];
17213
17213
  for (let S in z)
@@ -17225,23 +17225,23 @@ const SafeCall$1 = async (e, r) => {
17225
17225
  k.push(b);
17226
17226
  }
17227
17227
  } else {
17228
- let b = I.GroupBy((X) => X[m[C].dataKey]);
17228
+ let b = I.GroupBy((X) => X[p[C].dataKey]);
17229
17229
  for (let X = 0; X < b.length; X++)
17230
- p(m, C + 1, b[X], k);
17230
+ x(p, C + 1, b[X], k);
17231
17231
  }
17232
17232
  }, u = () => {
17233
17233
  o(async () => {
17234
- var m = {};
17234
+ var p = {};
17235
17235
  if (l.searchParam)
17236
17236
  for (var C in l.searchParam)
17237
- m[C] = l.searchParam[C];
17238
- let I = await AjaxCallWeb(l.url, m);
17237
+ p[C] = l.searchParam[C];
17238
+ let I = await AjaxCallWeb(l.url, p);
17239
17239
  if (I = l.handArray(I), I.forEach((k) => c("handData", k, !1)), l.columnArray.length > 0 && l.columnArray[0].isHeBing && l.columnArray.Exists((k) => k.isSummary)) {
17240
17240
  let k = [];
17241
17241
  for (let X = 0; X < l.columnArray.length; X++)
17242
17242
  l.columnArray[X].isHeBing && k.push(l.columnArray[X]);
17243
17243
  let b = [];
17244
- p(k, 0, I, b), I = b;
17244
+ x(k, 0, I, b), I = b;
17245
17245
  }
17246
17246
  n.value = I;
17247
17247
  }, L("数据查询中"));
@@ -17255,14 +17255,14 @@ const SafeCall$1 = async (e, r) => {
17255
17255
  }, L("页面初始化")), l.loadData && await u();
17256
17256
  }), r({
17257
17257
  onSearch: u
17258
- }), (m, C) => (openBlock(), createElementBlock("div", _hoisted_1$b, [
17258
+ }), (p, C) => (openBlock(), createElementBlock("div", _hoisted_1$b, [
17259
17259
  i.value ? (openBlock(), createBlock(_sfc_main$m, {
17260
17260
  key: 0,
17261
17261
  class: "filter",
17262
17262
  onSearch: u
17263
17263
  }, {
17264
17264
  FilterItem: withCtx(() => [
17265
- renderSlot(m.$slots, "FilterItem", { powerArray: d.value }, void 0, !0)
17265
+ renderSlot(p.$slots, "FilterItem", { powerArray: d.value }, void 0, !0)
17266
17266
  ]),
17267
17267
  _: 3
17268
17268
  })) : createCommentVNode("", !0),
@@ -17289,10 +17289,10 @@ const SafeCall$1 = async (e, r) => {
17289
17289
  ]),
17290
17290
  _: 1
17291
17291
  }),
17292
- renderSlot(m.$slots, "ToolItem", { powerArray: d.value }, void 0, !0)
17292
+ renderSlot(p.$slots, "ToolItem", { powerArray: d.value }, void 0, !0)
17293
17293
  ]),
17294
17294
  PageItem: withCtx(() => [
17295
- renderSlot(m.$slots, "PageItem", { powerArray: d.value }, void 0, !0)
17295
+ renderSlot(p.$slots, "PageItem", { powerArray: d.value }, void 0, !0)
17296
17296
  ]),
17297
17297
  _: 3
17298
17298
  }),
@@ -17440,8 +17440,8 @@ const SafeCall$1 = async (e, r) => {
17440
17440
  FileData: this.result.substring(this.result.indexOf(",") + 1),
17441
17441
  FileType: d.name
17442
17442
  };
17443
- axios.post(f, u, c).then((m) => {
17444
- let C = m.data;
17443
+ axios.post(f, u, c).then((p) => {
17444
+ let C = p.data;
17445
17445
  C.resultcode == "200" && o(C.data);
17446
17446
  });
17447
17447
  };
@@ -17474,51 +17474,51 @@ const SafeCall$1 = async (e, r) => {
17474
17474
  get: () => t.headPic ? "http://npic.1000da.com.cn/ApiHandler.ashx?Action=UploadHeadPic" : "http://npic.1000da.com.cn/ApiHandler.ashx?Action=UploadFile"
17475
17475
  });
17476
17476
  onMounted(() => {
17477
- typeof t.modelValue == "object" && t.modelValue.forEach((h, p) => {
17477
+ typeof t.modelValue == "object" && t.modelValue.forEach((h, x) => {
17478
17478
  i.value.push({
17479
- name: `图${p}`,
17479
+ name: `图${x}`,
17480
17480
  url: h
17481
17481
  });
17482
17482
  });
17483
17483
  });
17484
17484
  const l = async () => {
17485
17485
  try {
17486
- let h = await AjaxCallWeb("http://localhost:18008/AForge/TakePictures"), p = "http://npic.1000da.com.cn/ApiHandler.ashx?Action=UploadFileBase64";
17487
- t.headPic && (p = "http://npic.1000da.com.cn/ApiHandler.ashx?Action=UploadHeadPicBase64");
17488
- let u = await AjaxCallWeb(p, {
17486
+ let h = await AjaxCallWeb("http://localhost:18008/AForge/TakePictures"), x = "http://npic.1000da.com.cn/ApiHandler.ashx?Action=UploadFileBase64";
17487
+ t.headPic && (x = "http://npic.1000da.com.cn/ApiHandler.ashx?Action=UploadHeadPicBase64");
17488
+ let u = await AjaxCallWeb(x, {
17489
17489
  FileData: h.PicData,
17490
17490
  FileName: "头像.jpg",
17491
17491
  FileType: "jpg"
17492
17492
  });
17493
17493
  a("update:modelValue", u);
17494
17494
  } catch (h) {
17495
- let p = h.resultcontent || h.message;
17496
- if (p == "取消")
17495
+ let x = h.resultcontent || h.message;
17496
+ if (x == "取消")
17497
17497
  return;
17498
- ElMessage.error(p);
17498
+ ElMessage.error(x);
17499
17499
  }
17500
- }, o = (h, p) => {
17500
+ }, o = (h, x) => {
17501
17501
  let u = h.response.data;
17502
17502
  a(
17503
17503
  "update:modelValue",
17504
- t.modelValue.filter((m) => m != u)
17504
+ t.modelValue.filter((p) => p != u)
17505
17505
  );
17506
17506
  }, f = () => {
17507
17507
  a("update:modelValue", "");
17508
- }, c = (h) => h.indexOf(".jpg") >= 0 || h.indexOf(".png") >= 0 || h.indexOf(".bmp") >= 0 || t.isImage, d = (h, p, u) => {
17508
+ }, c = (h) => h.indexOf(".jpg") >= 0 || h.indexOf(".png") >= 0 || h.indexOf(".bmp") >= 0 || t.isImage, d = (h, x, u) => {
17509
17509
  if (h.resultcode != "200")
17510
17510
  return ElMessage.error(L("文件上传失败") + ":" + h.resultcontent);
17511
17511
  if (t.multiple) {
17512
- let m = typeof t.modelValue == "object" ? [...t.modelValue, h.data] : [h.data];
17513
- a("update:modelValue", m);
17512
+ let p = typeof t.modelValue == "object" ? [...t.modelValue, h.data] : [h.data];
17513
+ a("update:modelValue", p);
17514
17514
  } else
17515
17515
  a("update:modelValue", h.data);
17516
17516
  }, _ = (h) => !0;
17517
- return (h, p) => (openBlock(), createElementBlock("div", _hoisted_1$9, [
17517
+ return (h, x) => (openBlock(), createElementBlock("div", _hoisted_1$9, [
17518
17518
  t.multiple ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
17519
17519
  createVNode(unref(ElUpload), {
17520
17520
  "file-list": i.value,
17521
- "onUpdate:fileList": p[0] || (p[0] = (u) => i.value = u),
17521
+ "onUpdate:fileList": x[0] || (x[0] = (u) => i.value = u),
17522
17522
  action: s.value,
17523
17523
  class: "avatar-uploader",
17524
17524
  "list-type": "picture-card",
@@ -17538,7 +17538,7 @@ const SafeCall$1 = async (e, r) => {
17538
17538
  }, 8, ["file-list", "action"]),
17539
17539
  createVNode(unref(ElDialog), {
17540
17540
  modelValue: n.IsVisible,
17541
- "onUpdate:modelValue": p[1] || (p[1] = (u) => n.IsVisible = u),
17541
+ "onUpdate:modelValue": x[1] || (x[1] = (u) => n.IsVisible = u),
17542
17542
  top: "1vh"
17543
17543
  }, {
17544
17544
  default: withCtx(() => [
@@ -17793,7 +17793,7 @@ const SafeCall$1 = async (e, r) => {
17793
17793
  get: () => t.modelValue,
17794
17794
  set: (u) => o("update:modelValue", u)
17795
17795
  }), c = async () => {
17796
- await n(), await Sleep(300), a.CardType == "0" ? p() : a.CardType == "9" && h(), o("update:cardType", a.CardType);
17796
+ await n(), await Sleep(300), a.CardType == "0" ? x() : a.CardType == "9" && h(), o("update:cardType", a.CardType);
17797
17797
  };
17798
17798
  watch(
17799
17799
  () => t.modelValue,
@@ -17805,12 +17805,12 @@ const SafeCall$1 = async (e, r) => {
17805
17805
  );
17806
17806
  const d = () => {
17807
17807
  let u = {};
17808
- for (let m in a)
17809
- u[m] = a[m];
17808
+ for (let p in a)
17809
+ u[p] = a[p];
17810
17810
  o("update:modelValue", !1), setTimeout(() => o("success", u), 300);
17811
- }, _ = (u, m) => AjaxCallWeb("http://npic.1000da.com.cn/ApiHandler.ashx?Action=UploadFileBase64", {
17811
+ }, _ = (u, p) => AjaxCallWeb("http://npic.1000da.com.cn/ApiHandler.ashx?Action=UploadFileBase64", {
17812
17812
  FileType: u,
17813
- FileData: m
17813
+ FileData: p
17814
17814
  }), h = async () => {
17815
17815
  n = () => LocalApi("/PassPort/CancelRead");
17816
17816
  try {
@@ -17824,23 +17824,23 @@ const SafeCall$1 = async (e, r) => {
17824
17824
  h();
17825
17825
  }) : ElMessageBox.alert(u.message);
17826
17826
  }
17827
- }, p = async () => {
17827
+ }, x = async () => {
17828
17828
  n = () => LocalApi("/CancelReadIidentityCard");
17829
17829
  try {
17830
- let m = await LocalApi("/ReadIdentityCard", { MaxSecord: s.value * 1e3 });
17831
- m.HeadPortrait = await _("bmp", m.HeadPortrait);
17832
- for (var u in m)
17833
- a[u] = m[u];
17830
+ let p = await LocalApi("/ReadIdentityCard", { MaxSecord: s.value * 1e3 });
17831
+ p.HeadPortrait = await _("bmp", p.HeadPortrait);
17832
+ for (var u in p)
17833
+ a[u] = p[u];
17834
17834
  a.EndDate = a.EndDate.replace("T", " ").ToDateTime().ToString("yyyy-MM-dd"), a.Sex = a.Sex == "男" ? "1" : "0";
17835
- } catch (m) {
17836
- m.resultcontent ? m.resultcontent != "取消读卡" && ElMessageBox.alert("读取失败:" + m.resultcontent) : ElMessageBox.alert(m.message);
17835
+ } catch (p) {
17836
+ p.resultcontent ? p.resultcontent != "取消读卡" && ElMessageBox.alert("读取失败:" + p.resultcontent) : ElMessageBox.alert(p.message);
17837
17837
  }
17838
17838
  };
17839
- return (u, m) => (openBlock(), createElementBlock("div", _hoisted_1$6, [
17839
+ return (u, p) => (openBlock(), createElementBlock("div", _hoisted_1$6, [
17840
17840
  createVNode(unref(ElDialog), {
17841
17841
  title: i.value,
17842
17842
  modelValue: f.value,
17843
- "onUpdate:modelValue": m[6] || (m[6] = (C) => f.value = C),
17843
+ "onUpdate:modelValue": p[6] || (p[6] = (C) => f.value = C),
17844
17844
  width: "600px"
17845
17845
  }, {
17846
17846
  default: withCtx(() => [
@@ -17863,7 +17863,7 @@ const SafeCall$1 = async (e, r) => {
17863
17863
  _hoisted_7$3,
17864
17864
  createVNode(unref(ElInput), {
17865
17865
  modelValue: a.Name,
17866
- "onUpdate:modelValue": m[0] || (m[0] = (C) => a.Name = C),
17866
+ "onUpdate:modelValue": p[0] || (p[0] = (C) => a.Name = C),
17867
17867
  style: { width: "200px" }
17868
17868
  }, null, 8, ["modelValue"])
17869
17869
  ])
@@ -17873,7 +17873,7 @@ const SafeCall$1 = async (e, r) => {
17873
17873
  _hoisted_8$3,
17874
17874
  createVNode(unref(ElSelect), {
17875
17875
  modelValue: a.Sex,
17876
- "onUpdate:modelValue": m[1] || (m[1] = (C) => a.Sex = C),
17876
+ "onUpdate:modelValue": p[1] || (p[1] = (C) => a.Sex = C),
17877
17877
  style: { width: "100px" }
17878
17878
  }, {
17879
17879
  default: withCtx(() => [
@@ -17895,7 +17895,7 @@ const SafeCall$1 = async (e, r) => {
17895
17895
  _hoisted_9$3,
17896
17896
  createVNode(unref(ElInput), {
17897
17897
  modelValue: a.Telephone,
17898
- "onUpdate:modelValue": m[2] || (m[2] = (C) => a.Telephone = C),
17898
+ "onUpdate:modelValue": p[2] || (p[2] = (C) => a.Telephone = C),
17899
17899
  style: { width: "200px" }
17900
17900
  }, null, 8, ["modelValue"])
17901
17901
  ])
@@ -17905,7 +17905,7 @@ const SafeCall$1 = async (e, r) => {
17905
17905
  _hoisted_10$2,
17906
17906
  createVNode(unref(ElSelect), {
17907
17907
  modelValue: a.CardType,
17908
- "onUpdate:modelValue": m[3] || (m[3] = (C) => a.CardType = C),
17908
+ "onUpdate:modelValue": p[3] || (p[3] = (C) => a.CardType = C),
17909
17909
  onChange: c,
17910
17910
  style: { width: "200px" }
17911
17911
  }, {
@@ -17924,7 +17924,7 @@ const SafeCall$1 = async (e, r) => {
17924
17924
  _hoisted_12$2,
17925
17925
  createVNode(unref(ElInput), {
17926
17926
  modelValue: a.Address,
17927
- "onUpdate:modelValue": m[4] || (m[4] = (C) => a.Address = C),
17927
+ "onUpdate:modelValue": p[4] || (p[4] = (C) => a.Address = C),
17928
17928
  style: { width: "400px" }
17929
17929
  }, null, 8, ["modelValue"])
17930
17930
  ])
@@ -17934,7 +17934,7 @@ const SafeCall$1 = async (e, r) => {
17934
17934
  _hoisted_14$2,
17935
17935
  createVNode(unref(ElInput), {
17936
17936
  modelValue: a.Id,
17937
- "onUpdate:modelValue": m[5] || (m[5] = (C) => a.Id = C),
17937
+ "onUpdate:modelValue": p[5] || (p[5] = (C) => a.Id = C),
17938
17938
  style: { width: "400px" }
17939
17939
  }, null, 8, ["modelValue"])
17940
17940
  ])
@@ -18098,7 +18098,7 @@ const SafeCall$1 = async (e, r) => {
18098
18098
  })
18099
18099
  ]));
18100
18100
  }
18101
- }, _withScopeId$1 = (e) => (pushScopeId("data-v-120dbd5d"), e = e(), popScopeId(), e), _hoisted_1$4 = { style: { "margin-bottom": "10px" } }, _hoisted_2$2 = {
18101
+ }, _withScopeId$1 = (e) => (pushScopeId("data-v-60dcc2fe"), e = e(), popScopeId(), e), _hoisted_1$4 = { style: { "margin-bottom": "10px" } }, _hoisted_2$2 = {
18102
18102
  rowspan: "3",
18103
18103
  style: { "padding-right": "10px" }
18104
18104
  }, _hoisted_3$2 = ["src"], _hoisted_4$2 = ["src"], _hoisted_5$2 = { key: 1 }, _hoisted_6$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("td", { class: "t" }, "用户:", -1)), _hoisted_7$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("td", { class: "t" }, "手机号:", -1)), _hoisted_8$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("td", { class: "t" }, "会员余额:", -1)), _hoisted_9$2 = { class: "amount" }, _hoisted_10$1 = ["src"], _hoisted_11$1 = ["src"], _hoisted_12$1 = { key: 1 }, _hoisted_13$1 = { class: "amount" }, _hoisted_14$1 = { key: 0 }, _hoisted_15$1 = { key: 1 }, _hoisted_16$1 = { key: 2 }, _hoisted_17$1 = { key: 3 }, _hoisted_18$1 = { style: { "text-align": "center" } }, _sfc_main$7 = {
@@ -18120,7 +18120,7 @@ const SafeCall$1 = async (e, r) => {
18120
18120
  }, o = (d) => {
18121
18121
  if (d.length != 11)
18122
18122
  return ElMessage({ message: "请输入正确的11位手机号" });
18123
- SafeCall$1(async () => {
18123
+ a.cardArray = [], a.memberInfo = {}, SafeCall$1(async () => {
18124
18124
  try {
18125
18125
  let _ = await MemberApi("/OrganApi/MemberRelCardSearch", { SearchType: 3, Telephone: d });
18126
18126
  a.cardArray = _.Where((h) => h.CardTypeClass == 2);
@@ -18279,7 +18279,7 @@ const SafeCall$1 = async (e, r) => {
18279
18279
  h.Status != s.正常 ? (openBlock(), createElementBlock("span", _hoisted_14$1, toDisplayString(unref(GetEnumName)(s, h.Status)), 1)) : h.BeginDate.ToDateTime() > /* @__PURE__ */ new Date() ? (openBlock(), createElementBlock("span", _hoisted_15$1, "未生效")) : h.EndDate.ToDateTime() < /* @__PURE__ */ new Date() ? (openBlock(), createElementBlock("span", _hoisted_16$1, "已过期")) : h.Balance < n.payAmount ? (openBlock(), createElementBlock("span", _hoisted_17$1, "余额不足")) : (openBlock(), createBlock(unref(ElButton), {
18280
18280
  key: 4,
18281
18281
  type: "primary",
18282
- onClick: (p) => f(h)
18282
+ onClick: (x) => f(h)
18283
18283
  }, {
18284
18284
  default: withCtx(() => [
18285
18285
  createTextVNode("使用")
@@ -18305,7 +18305,7 @@ const SafeCall$1 = async (e, r) => {
18305
18305
  ])
18306
18306
  ]));
18307
18307
  }
18308
- }, MemberBox = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-120dbd5d"]]), _hoisted_1$3 = ["src"], _sfc_main$6 = {
18308
+ }, MemberBox = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-60dcc2fe"]]), _hoisted_1$3 = ["src"], _sfc_main$6 = {
18309
18309
  __name: "byDialog",
18310
18310
  props: {
18311
18311
  modelValue: { type: Boolean, default: !1 },
@@ -18433,7 +18433,7 @@ const SafeCall$1 = async (e, r) => {
18433
18433
  }
18434
18434
  staticData.isConfirm = !1;
18435
18435
  }
18436
- }, _withScopeId = (e) => (pushScopeId("data-v-cbc36807"), e = e(), popScopeId(), e), _hoisted_1$2 = { style: { height: "calc(100% - 40px)", "overflow-y": "auto" } }, _hoisted_2$1 = { style: { width: "100%", "font-size": "1.2em" } }, _hoisted_3$1 = { class: "tlab" }, _hoisted_4$1 = { class: "tlab" }, _hoisted_5$1 = { style: { color: "crimson", "text-decoration": "line-through" } }, _hoisted_6$1 = { style: { color: "#1a9f17", "font-size": "1.3em" } }, _hoisted_7$1 = {
18436
+ }, _withScopeId = (e) => (pushScopeId("data-v-acf08f48"), e = e(), popScopeId(), e), _hoisted_1$2 = { style: { height: "calc(100% - 40px)", "overflow-y": "auto" } }, _hoisted_2$1 = { style: { width: "100%", "font-size": "1.2em" } }, _hoisted_3$1 = { class: "tlab" }, _hoisted_4$1 = { class: "tlab" }, _hoisted_5$1 = { style: { color: "crimson", "text-decoration": "line-through" } }, _hoisted_6$1 = { style: { color: "#1a9f17", "font-size": "1.3em" } }, _hoisted_7$1 = {
18437
18437
  key: 1,
18438
18438
  style: { color: "crimson" }
18439
18439
  }, _hoisted_8$1 = { class: "tlab" }, _hoisted_9$1 = { key: 0 }, _hoisted_10 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("td", { class: "tlab" }, "描述:", -1)), _hoisted_11 = { key: 1 }, _hoisted_12 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("td", { class: "tlab" }, "优惠金额:", -1)), _hoisted_13 = { key: 2 }, _hoisted_14 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("td", { class: "tlab" }, "营销员:", -1)), _hoisted_15 = { class: "tlab" }, _hoisted_16 = { key: 3 }, _hoisted_17 = { class: "tlab" }, _hoisted_18 = { class: "tlab" }, _hoisted_19 = { class: "tlab" }, _hoisted_20 = { class: "tlab" }, _hoisted_21 = { class: "tlab" }, _hoisted_22 = { key: 6 }, _hoisted_23 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("td", { class: "tlab" }, "备注:", -1)), _hoisted_24 = { style: { color: "#808080", "font-size": "14px" } }, _hoisted_25 = { style: { "text-align": "center" } }, _sfc_main$5 = {
@@ -18462,10 +18462,12 @@ const SafeCall$1 = async (e, r) => {
18462
18462
  setup(e, { emit: r }) {
18463
18463
  const t = e, a = r, n = ref(), i = ref(), s = computed({
18464
18464
  get: () => t.modelValue,
18465
- set: (p) => a("update:modelValue", p)
18465
+ set: (u) => a("update:modelValue", u)
18466
18466
  }), l = computed({
18467
18467
  get: () => s.value ? t.orderInfo.SumPrice - o.RebateAmount : 0
18468
18468
  }), o = reactive({
18469
+ isPlayVoice: "1",
18470
+ //关闭播放语音
18469
18471
  PayAmount: "",
18470
18472
  //付款金额
18471
18473
  PayCode: "",
@@ -18489,17 +18491,17 @@ const SafeCall$1 = async (e, r) => {
18489
18491
  };
18490
18492
  watch(
18491
18493
  () => o.GetMethod,
18492
- (p) => {
18493
- c(p);
18494
+ (u) => {
18495
+ c(u);
18494
18496
  }
18495
18497
  );
18496
- const c = (p) => {
18497
- (p == "扫码收款" || p == "会员收款" || p == "现金") && nextTick(() => nextTick(() => n.value.focus()));
18498
+ const c = (u) => {
18499
+ (u == "扫码收款" || u == "会员收款" || u == "现金") && nextTick(() => nextTick(() => n.value.focus()));
18498
18500
  };
18499
18501
  watch(
18500
18502
  () => t.modelValue,
18501
- (p) => {
18502
- p ? (o.PayCode = "", o.PayAmount = "", o.RebateAmount = 0, o.Remarks = "", o.Telephone = "", o.MakreterTel = "", o.IsConfirming = !1, setTimeout(() => {
18503
+ (u) => {
18504
+ u ? (o.PayCode = "", o.PayAmount = "", o.RebateAmount = 0, o.Remarks = "", o.Telephone = "", o.MakreterTel = "", o.IsConfirming = !1, setTimeout(() => {
18503
18505
  t.memberInfo.Id && (o.GetMethod = "会员收款", o.Telephone = t.memberInfo.Telephone, f());
18504
18506
  }, 100), c(o.GetMethod)) : (o.timerId != null && (clearInterval(o.timerId), o.timerId = null), o.loading != null && (o.loading.close(), o.loading = null));
18505
18507
  }
@@ -18508,11 +18510,11 @@ const SafeCall$1 = async (e, r) => {
18508
18510
  ElMessageBox.prompt("请输入订单备注:", {
18509
18511
  confirmButtonText: " 确定",
18510
18512
  cancelButtonText: "取消"
18511
- }).then(({ value: p }) => {
18512
- o.Remarks = p;
18513
+ }).then(({ value: u }) => {
18514
+ o.Remarks = u;
18513
18515
  });
18514
- }, _ = (p) => {
18515
- o.PayCode = p, o.PayType = "512", o.isMemberBox = !1, nextTick(() => h());
18516
+ }, _ = (u) => {
18517
+ o.PayCode = u, o.PayType = "512", o.isMemberBox = !1, nextTick(() => h());
18516
18518
  }, h = async () => {
18517
18519
  o.IsConfirming = !0, await SafeConfirmOrder({
18518
18520
  GetMethod: o.GetMethod,
@@ -18530,19 +18532,23 @@ const SafeCall$1 = async (e, r) => {
18530
18532
  WaitOrderPaySuccess: t.waitOrderPaySuccessUrl || "http://saas.ip239.com/OrderInfo/WaitOrderPaySuccess"
18531
18533
  },
18532
18534
  PaySuccess: () => {
18533
- let p = o.GetMethod;
18534
- p.endsWith("收款") || (p = p + "收款");
18535
- let u = `${p} : ${((t.orderInfo.SumPrice - o.RebateAmount) / 100).toFixed(2)}元`;
18536
- ElMessage({ message: u, type: "success" }), PlayTTS(u), t.orderInfo.Status = 1, a("update:modelValue", !1), setTimeout(() => a("paySuccess", t.orderInfo), 300);
18535
+ let u = o.GetMethod;
18536
+ u.endsWith("收款") || (u = u + "收款");
18537
+ let p = `${u} : ${((t.orderInfo.SumPrice - o.RebateAmount) / 100).toFixed(2)}元`;
18538
+ ElMessage({ message: p, type: "success" }), PlayTTS(p), t.orderInfo.Status = 1, a("update:modelValue", !1), setTimeout(() => a("paySuccess", t.orderInfo), 300);
18537
18539
  },
18538
18540
  Cancel: () => {
18539
18541
  a("update:modelValue", !1), ElMessageBox.alert("付款中断!用户输入付款码错误或者取消了付款");
18540
18542
  }
18541
18543
  }), o.IsConfirming = !1;
18542
18544
  };
18543
- return onUnmounted(() => {
18545
+ onUnmounted(() => {
18544
18546
  UnRegisterKeyboard("120"), UnRegisterKeyboard("121"), UnRegisterKeyboard("122");
18545
- }), onMounted(async () => {
18547
+ });
18548
+ const x = () => {
18549
+ localStorage.setItem("ConfirmOrder_isPlayVoice", o.isPlayVoice);
18550
+ };
18551
+ return onMounted(async () => {
18546
18552
  RegisterKeyboard("120", () => {
18547
18553
  o.GetMethod = "现金";
18548
18554
  }), RegisterKeyboard("121", () => {
@@ -18550,8 +18556,8 @@ const SafeCall$1 = async (e, r) => {
18550
18556
  }), RegisterKeyboard("122", () => {
18551
18557
  o.GetMethod = "会员收款";
18552
18558
  });
18553
- let p = await SystemModuleApi("/DGApi/SearchShopCoustomConfig", { SearchType: 2, Name: "收款渠道" });
18554
- if (o.GetMethodArray = p.split("|").Where((u) => u != ""), t.canMember) {
18559
+ let u = await SystemModuleApi("/DGApi/SearchShopCoustomConfig", { SearchType: 2, Name: "收款渠道" });
18560
+ if (o.GetMethodArray = u.split("|").Where((p) => p != ""), o.isPlayVoice = localStorage.getItem("ConfirmOrder_isPlayVoice") || "1", t.canMember) {
18555
18561
  try {
18556
18562
  o.ckUserInfoPassword = await SystemModuleApi("/DGApi/SearchShopCoustomConfig", { SearchType: 2, Name: "会员密码" });
18557
18563
  } catch {
@@ -18561,9 +18567,9 @@ const SafeCall$1 = async (e, r) => {
18561
18567
  } catch {
18562
18568
  }
18563
18569
  }
18564
- }), (p, u) => (openBlock(), createBlock(byDialog, {
18570
+ }), (u, p) => (openBlock(), createBlock(byDialog, {
18565
18571
  modelValue: s.value,
18566
- "onUpdate:modelValue": u[9] || (u[9] = (m) => s.value = m),
18572
+ "onUpdate:modelValue": p[10] || (p[10] = (C) => s.value = C),
18567
18573
  title: "确认订单",
18568
18574
  width: "700px",
18569
18575
  height: "550px",
@@ -18593,7 +18599,7 @@ const SafeCall$1 = async (e, r) => {
18593
18599
  _hoisted_10,
18594
18600
  createElementVNode("td", null, [
18595
18601
  withDirectives(createElementVNode("textarea", {
18596
- "onUpdate:modelValue": u[0] || (u[0] = (m) => t.desc = m),
18602
+ "onUpdate:modelValue": p[0] || (p[0] = (C) => t.desc = C),
18597
18603
  type: "textarea",
18598
18604
  rows: "4",
18599
18605
  class: "desc",
@@ -18608,7 +18614,7 @@ const SafeCall$1 = async (e, r) => {
18608
18614
  createElementVNode("td", null, [
18609
18615
  createVNode(_sfc_main$8, {
18610
18616
  modelValue: o.RebateAmount,
18611
- "onUpdate:modelValue": u[1] || (u[1] = (m) => o.RebateAmount = m),
18617
+ "onUpdate:modelValue": p[1] || (p[1] = (C) => o.RebateAmount = C),
18612
18618
  totalAmount: t.orderInfo.SumPrice
18613
18619
  }, null, 8, ["modelValue", "totalAmount"])
18614
18620
  ])
@@ -18618,7 +18624,7 @@ const SafeCall$1 = async (e, r) => {
18618
18624
  createElementVNode("td", null, [
18619
18625
  createVNode(unref(ElInput), {
18620
18626
  modelValue: o.MakreterTel,
18621
- "onUpdate:modelValue": u[2] || (u[2] = (m) => o.MakreterTel = m),
18627
+ "onUpdate:modelValue": p[2] || (p[2] = (C) => o.MakreterTel = C),
18622
18628
  style: { width: "200px" },
18623
18629
  placeholder: "请输入营销员手机号"
18624
18630
  }, null, 8, ["modelValue"])
@@ -18629,7 +18635,7 @@ const SafeCall$1 = async (e, r) => {
18629
18635
  createElementVNode("td", null, [
18630
18636
  createVNode(unref(ElRadioGroup), {
18631
18637
  modelValue: o.GetMethod,
18632
- "onUpdate:modelValue": u[3] || (u[3] = (m) => o.GetMethod = m),
18638
+ "onUpdate:modelValue": p[3] || (p[3] = (C) => o.GetMethod = C),
18633
18639
  class: "ml-4"
18634
18640
  }, {
18635
18641
  default: withCtx(() => [
@@ -18661,9 +18667,9 @@ const SafeCall$1 = async (e, r) => {
18661
18667
  ]),
18662
18668
  _: 1
18663
18669
  })) : createCommentVNode("", !0),
18664
- (openBlock(!0), createElementBlock(Fragment, null, renderList(o.GetMethodArray, (m) => (openBlock(), createBlock(unref(ElRadioButton), {
18665
- value: m,
18666
- label: m
18670
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(o.GetMethodArray, (C) => (openBlock(), createBlock(unref(ElRadioButton), {
18671
+ value: C,
18672
+ label: C
18667
18673
  }, null, 8, ["value", "label"]))), 256))
18668
18674
  ]),
18669
18675
  _: 1
@@ -18675,7 +18681,7 @@ const SafeCall$1 = async (e, r) => {
18675
18681
  createElementVNode("td", null, [
18676
18682
  createVNode(unref(ElInput), {
18677
18683
  modelValue: o.PayCode,
18678
- "onUpdate:modelValue": u[4] || (u[4] = (m) => o.PayCode = m),
18684
+ "onUpdate:modelValue": p[4] || (p[4] = (C) => o.PayCode = C),
18679
18685
  style: { width: "400px" },
18680
18686
  ref_key: "payCode",
18681
18687
  ref: n,
@@ -18690,7 +18696,7 @@ const SafeCall$1 = async (e, r) => {
18690
18696
  createElementVNode("td", null, [
18691
18697
  createVNode(unref(ElInput), {
18692
18698
  modelValue: o.Telephone,
18693
- "onUpdate:modelValue": u[6] || (u[6] = (m) => o.Telephone = m),
18699
+ "onUpdate:modelValue": p[6] || (p[6] = (C) => o.Telephone = C),
18694
18700
  style: { width: "220px" },
18695
18701
  ref_key: "payCode",
18696
18702
  ref: n,
@@ -18719,7 +18725,7 @@ const SafeCall$1 = async (e, r) => {
18719
18725
  onSuccess: _,
18720
18726
  ckUserInfoPassword: o.ckUserInfoPassword,
18721
18727
  ckCardPassword: o.ckCardPassword,
18722
- onCancel: u[5] || (u[5] = (m) => o.isMemberBox = !1)
18728
+ onCancel: p[5] || (p[5] = (C) => o.isMemberBox = !1)
18723
18729
  }, null, 8, ["payAmount", "ckUserInfoPassword", "ckCardPassword"])
18724
18730
  ]),
18725
18731
  _: 1
@@ -18734,7 +18740,7 @@ const SafeCall$1 = async (e, r) => {
18734
18740
  createElementVNode("td", null, [
18735
18741
  createVNode(unref(ElInput), {
18736
18742
  modelValue: o.PayCode,
18737
- "onUpdate:modelValue": u[7] || (u[7] = (m) => o.PayCode = m),
18743
+ "onUpdate:modelValue": p[7] || (p[7] = (C) => o.PayCode = C),
18738
18744
  style: { width: "400px" },
18739
18745
  ref_key: "payCode",
18740
18746
  ref: n,
@@ -18753,7 +18759,7 @@ const SafeCall$1 = async (e, r) => {
18753
18759
  ref_key: "payCode",
18754
18760
  ref: n,
18755
18761
  modelValue: o.PayAmount,
18756
- "onUpdate:modelValue": u[8] || (u[8] = (m) => o.PayAmount = m),
18762
+ "onUpdate:modelValue": p[8] || (p[8] = (C) => o.PayAmount = C),
18757
18763
  style: { width: "200px" },
18758
18764
  onKeypress: withKeys(h, ["enter", "native"]),
18759
18765
  disabled: o.IsConfirming
@@ -18806,13 +18812,22 @@ const SafeCall$1 = async (e, r) => {
18806
18812
  createTextVNode("添加备注")
18807
18813
  ]),
18808
18814
  _: 1
18809
- })
18815
+ }),
18816
+ createVNode(unref(ElSwitch), {
18817
+ modelValue: o.isPlayVoice,
18818
+ "onUpdate:modelValue": p[9] || (p[9] = (C) => o.isPlayVoice = C),
18819
+ class: "ml-2",
18820
+ "inline-prompt": "",
18821
+ "active-text": "语音播报开启",
18822
+ "inactive-text": "语音播报关闭",
18823
+ onChange: x
18824
+ }, null, 8, ["modelValue"])
18810
18825
  ])
18811
18826
  ]),
18812
18827
  _: 1
18813
18828
  }, 8, ["modelValue"]));
18814
18829
  }
18815
- }, byConfirmOrder = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-cbc36807"]]), _hoisted_1$1 = { name: "selectIco" }, _hoisted_2 = { style: { padding: "5px", float: "left", border: "1px solid #e2e2e2", overflow: "hidden" } }, _hoisted_3 = {
18830
+ }, byConfirmOrder = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-acf08f48"]]), _hoisted_1$1 = { name: "selectIco" }, _hoisted_2 = { style: { padding: "5px", float: "left", border: "1px solid #e2e2e2", overflow: "hidden" } }, _hoisted_3 = {
18816
18831
  class: "icon",
18817
18832
  "aria-hidden": "true",
18818
18833
  style: { "font-size": "60px" }
@@ -18925,7 +18940,7 @@ const SafeCall$1 = async (e, r) => {
18925
18940
  (openBlock(!0), createElementBlock(Fragment, null, renderList(n.value, (h) => (openBlock(), createElementBlock("div", _hoisted_1, [
18926
18941
  createVNode(unref(ElTag), {
18927
18942
  closable: "",
18928
- onClose: (p) => c(h)
18943
+ onClose: (x) => c(h)
18929
18944
  }, {
18930
18945
  default: withCtx(() => [
18931
18946
  createTextVNode(toDisplayString(h), 1)
@@ -18976,11 +18991,11 @@ const SafeCall$1 = async (e, r) => {
18976
18991
  },
18977
18992
  emits: ["command"],
18978
18993
  setup(e, { emit: r }) {
18979
- const t = e, a = ref(""), n = ref({}), i = ref([]), s = ref(""), l = ref(!1), o = r, f = (h, p) => {
18980
- o("command", h, a.value, p);
18994
+ const t = e, a = ref(""), n = ref({}), i = ref([]), s = ref(""), l = ref(!1), o = r, f = (h, x) => {
18995
+ o("command", h, a.value, x);
18981
18996
  }, c = async () => {
18982
18997
  l.value = !1, await Sleep(10);
18983
- let h = t.reportArray.FirstOrDefault((p) => p.Name == a.value);
18998
+ let h = t.reportArray.FirstOrDefault((x) => x.Name == a.value);
18984
18999
  i.value = h.ColumnArray, s.value = h.Url, l.value = !0;
18985
19000
  }, d = computed({
18986
19001
  get: () => `${n.value.OrganName}${a.value}`
@@ -18997,7 +19012,7 @@ const SafeCall$1 = async (e, r) => {
18997
19012
  nextTick(() => {
18998
19013
  t.reportArray.length > 0 && (a.value = t.reportArray[0].Name), c();
18999
19014
  }), n.value = JSON.parse(sessionStorage.getItem("ManagerInfo"));
19000
- }), (h, p) => l.value ? (openBlock(), createBlock(reportIndex, {
19015
+ }), (h, x) => l.value ? (openBlock(), createBlock(reportIndex, {
19001
19016
  key: 0,
19002
19017
  url: s.value,
19003
19018
  tabName: d.value,
@@ -19015,9 +19030,9 @@ const SafeCall$1 = async (e, r) => {
19015
19030
  default: withCtx(() => [
19016
19031
  createVNode(byDatePicker, {
19017
19032
  BeginTime: t.searchParam.BeginTime,
19018
- "onUpdate:BeginTime": p[0] || (p[0] = (u) => t.searchParam.BeginTime = u),
19033
+ "onUpdate:BeginTime": x[0] || (x[0] = (u) => t.searchParam.BeginTime = u),
19019
19034
  EndTime: t.searchParam.EndTime,
19020
- "onUpdate:EndTime": p[1] || (p[1] = (u) => t.searchParam.EndTime = u)
19035
+ "onUpdate:EndTime": x[1] || (x[1] = (u) => t.searchParam.EndTime = u)
19021
19036
  }, null, 8, ["BeginTime", "EndTime"])
19022
19037
  ]),
19023
19038
  _: 1
@@ -19026,7 +19041,7 @@ const SafeCall$1 = async (e, r) => {
19026
19041
  PageItem: withCtx(() => [
19027
19042
  createVNode(unref(ElRadioGroup), {
19028
19043
  modelValue: a.value,
19029
- "onUpdate:modelValue": p[2] || (p[2] = (u) => a.value = u),
19044
+ "onUpdate:modelValue": x[2] || (x[2] = (u) => a.value = u),
19030
19045
  onChange: c
19031
19046
  }, {
19032
19047
  default: withCtx(() => [