builder-settings-types 0.0.400 → 0.0.401
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.
|
@@ -15,10 +15,10 @@ function On(t, e) {
|
|
|
15
15
|
const r = Math.min(Math.max(e, 0), 5);
|
|
16
16
|
t.setAttribute("data-nesting-level", r.toString()), r > 0 ? t.style.setProperty("--visual-indent", `${r * 2}px`) : (t.style.removeProperty("--visual-indent"), t.style.marginLeft = "");
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Ai(t, e = 0) {
|
|
19
19
|
t.querySelectorAll(":scope > .setting-group-content > .setting-group").forEach((a) => {
|
|
20
20
|
const n = a, i = e + 1;
|
|
21
|
-
On(n, i),
|
|
21
|
+
On(n, i), Ai(n, i);
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
const Kc = {
|
|
@@ -329,7 +329,7 @@ const Yi = (t, e, r) => {
|
|
|
329
329
|
}, d0 = (t, e, r) => {
|
|
330
330
|
const a = r * (1 - e / 2), n = a === 0 || a === 1 ? 0 : (r - a) / Math.min(a, 1 - a);
|
|
331
331
|
return { hue: t, sat: n, lightness: a };
|
|
332
|
-
},
|
|
332
|
+
}, Ii = (t, e, r) => {
|
|
333
333
|
const a = (1 - Math.abs(2 * r - 1)) * e, n = a * (1 - Math.abs(t / 60 % 2 - 1)), i = r - a / 2;
|
|
334
334
|
let s = 0, o = 0, l = 0;
|
|
335
335
|
return t < 60 ? (s = a, o = n, l = 0) : t < 120 ? (s = n, o = a, l = 0) : t < 180 ? (s = 0, o = a, l = n) : t < 240 ? (s = 0, o = n, l = a) : t < 300 ? (s = n, o = 0, l = a) : (s = a, o = 0, l = n), {
|
|
@@ -337,7 +337,7 @@ const Yi = (t, e, r) => {
|
|
|
337
337
|
g: Math.round((o + i) * 255),
|
|
338
338
|
b: Math.round((l + i) * 255)
|
|
339
339
|
};
|
|
340
|
-
},
|
|
340
|
+
}, Ni = (t, e) => {
|
|
341
341
|
const r = Math.max(0, Math.min(100, e)) / 100;
|
|
342
342
|
if (t.startsWith("#")) {
|
|
343
343
|
const { r: n, g: i, b: s } = Ot(t);
|
|
@@ -350,7 +350,7 @@ const Yi = (t, e, r) => {
|
|
|
350
350
|
if (t.startsWith("hsl(")) {
|
|
351
351
|
const n = t.match(/hsl\((\d+),\s*(\d+)%,\s*(\d+)%\)/);
|
|
352
352
|
if (n) {
|
|
353
|
-
const { r: i, g: s, b: o } =
|
|
353
|
+
const { r: i, g: s, b: o } = Ii(
|
|
354
354
|
parseInt(n[1]),
|
|
355
355
|
parseInt(n[2]) / 100,
|
|
356
356
|
parseInt(n[3]) / 100
|
|
@@ -361,7 +361,7 @@ const Yi = (t, e, r) => {
|
|
|
361
361
|
if (t.startsWith("hsla(")) {
|
|
362
362
|
const n = t.match(/hsla\((\d+),\s*(\d+)%,\s*(\d+)%,\s*[\d.]+\)/);
|
|
363
363
|
if (n) {
|
|
364
|
-
const { r: i, g: s, b: o } =
|
|
364
|
+
const { r: i, g: s, b: o } = Ii(
|
|
365
365
|
parseInt(n[1]),
|
|
366
366
|
parseInt(n[2]) / 100,
|
|
367
367
|
parseInt(n[3]) / 100
|
|
@@ -434,7 +434,7 @@ const Yi = (t, e, r) => {
|
|
|
434
434
|
/hsla?\s*\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)/
|
|
435
435
|
);
|
|
436
436
|
if (a) {
|
|
437
|
-
const { r: i, g: s, b: o } =
|
|
437
|
+
const { r: i, g: s, b: o } = Ii(
|
|
438
438
|
parseFloat(a[1]),
|
|
439
439
|
parseFloat(a[2]) / 100,
|
|
440
440
|
parseFloat(a[3]) / 100
|
|
@@ -545,7 +545,7 @@ const Yi = (t, e, r) => {
|
|
|
545
545
|
return `#${i}${s}`;
|
|
546
546
|
}
|
|
547
547
|
const e = t.stops.map(
|
|
548
|
-
(r) => `${
|
|
548
|
+
(r) => `${Ni(r.color, r.opacity ?? 100)} ${r.position}%`
|
|
549
549
|
).join(", ");
|
|
550
550
|
return t.type === "radial" ? `radial-gradient(circle, ${e})` : `linear-gradient(${t.angle}deg, ${e})`;
|
|
551
551
|
}, ef = (t) => Math.round(t / 100 * 255).toString(16).toUpperCase().padStart(2, "0"), Dn = (t) => {
|
|
@@ -1265,7 +1265,7 @@ const qt = class qt extends Fe {
|
|
|
1265
1265
|
if (this.previewEl && this.value)
|
|
1266
1266
|
if (this.value.type === "solid") {
|
|
1267
1267
|
const e = this.value.stops[0], r = e.opacity ?? 100, a = this.resolveGlobalVarColor(e.color);
|
|
1268
|
-
this.previewEl.style.background =
|
|
1268
|
+
this.previewEl.style.background = Ni(a, r);
|
|
1269
1269
|
} else {
|
|
1270
1270
|
const e = this.resolveGradientGlobalVars(this.value);
|
|
1271
1271
|
this.previewEl.style.background = Jt(e);
|
|
@@ -1617,7 +1617,7 @@ const qt = class qt extends Fe {
|
|
|
1617
1617
|
r.style.background = Jt(this.value);
|
|
1618
1618
|
else {
|
|
1619
1619
|
const n = this.value.stops.map(
|
|
1620
|
-
(i) => `${
|
|
1620
|
+
(i) => `${Ni(i.color, i.opacity ?? 100)} ${i.position}%`
|
|
1621
1621
|
).join(", ");
|
|
1622
1622
|
r.style.background = `linear-gradient(90deg, ${n})`;
|
|
1623
1623
|
}
|
|
@@ -1940,19 +1940,19 @@ function ha(t, e) {
|
|
|
1940
1940
|
e(r, a);
|
|
1941
1941
|
}
|
|
1942
1942
|
}
|
|
1943
|
-
function
|
|
1943
|
+
function Mi(t) {
|
|
1944
1944
|
if (t == null) return t;
|
|
1945
1945
|
if (Array.isArray(t))
|
|
1946
|
-
return t.map((e) =>
|
|
1946
|
+
return t.map((e) => Mi(e));
|
|
1947
1947
|
if (typeof t == "object") {
|
|
1948
1948
|
const e = {};
|
|
1949
1949
|
for (const [r, a] of Object.entries(t))
|
|
1950
|
-
r !== "$id" && (e[r] =
|
|
1950
|
+
r !== "$id" && (e[r] = Mi(a));
|
|
1951
1951
|
return e;
|
|
1952
1952
|
}
|
|
1953
1953
|
return t;
|
|
1954
1954
|
}
|
|
1955
|
-
const
|
|
1955
|
+
const ri = class ri {
|
|
1956
1956
|
constructor(e) {
|
|
1957
1957
|
this.elementRef = null, this.isHidden = !1, this.custom = !1, this.initialValues = {}, this.changeTimeout = null, this.isHandlingChange = !1, this.changeHandlers = /* @__PURE__ */ new Set(), this.blurTimeout = null, this.lastChangeTime = 0, this.handleBlur = () => {
|
|
1958
1958
|
}, this.pendingBlurHandler = null, this.originalDefaultValues = {}, this.nestingLevel = 0, this.dataPropsPath = "", this.hide = !1, this.isSettingValue = !1, this.suppressOnChange = !1, console.log(
|
|
@@ -2006,7 +2006,7 @@ const ai = class ai {
|
|
|
2006
2006
|
});
|
|
2007
2007
|
}
|
|
2008
2008
|
updateNestingStyles() {
|
|
2009
|
-
this.elementRef && (On(this.elementRef, this.nestingLevel),
|
|
2009
|
+
this.elementRef && (On(this.elementRef, this.nestingLevel), Ai(this.elementRef, this.nestingLevel));
|
|
2010
2010
|
}
|
|
2011
2011
|
forceChildUIRefresh() {
|
|
2012
2012
|
Object.entries(this.settings).forEach(([e, r]) => {
|
|
@@ -2227,7 +2227,7 @@ const ai = class ai {
|
|
|
2227
2227
|
u && e.startsWith(u) && this.addDeleteButtonToElement(l, e);
|
|
2228
2228
|
}
|
|
2229
2229
|
const f = s.querySelector(".sg-add-button-bottom");
|
|
2230
|
-
f ? s.insertBefore(l, f) : s.appendChild(l), Gs.trackElement(l), On(l, this.nestingLevel + 1),
|
|
2230
|
+
f ? s.insertBefore(l, f) : s.appendChild(l), Gs.trackElement(l), On(l, this.nestingLevel + 1), Ai(l, this.nestingLevel + 1);
|
|
2231
2231
|
const h = l.style.display;
|
|
2232
2232
|
l.style.display = "none", l.offsetHeight, l.style.display = h, this.updateNestingStyles();
|
|
2233
2233
|
}
|
|
@@ -2449,7 +2449,7 @@ const ai = class ai {
|
|
|
2449
2449
|
const o = i.getRawValue();
|
|
2450
2450
|
a[n] = o ? Jt(o) : null;
|
|
2451
2451
|
} else
|
|
2452
|
-
a[n] =
|
|
2452
|
+
a[n] = s.value;
|
|
2453
2453
|
}
|
|
2454
2454
|
}
|
|
2455
2455
|
return (this.hide === !0 || ((r = this == null ? void 0 : this.groupProps) == null ? void 0 : r.hide) === !0) && (a.hide = !0), a;
|
|
@@ -2465,7 +2465,7 @@ const ai = class ai {
|
|
|
2465
2465
|
const i = a.getRawValue();
|
|
2466
2466
|
return i ? Jt(i) : null;
|
|
2467
2467
|
}
|
|
2468
|
-
return
|
|
2468
|
+
return Mi(n.value);
|
|
2469
2469
|
}
|
|
2470
2470
|
}
|
|
2471
2471
|
}
|
|
@@ -2493,7 +2493,7 @@ const ai = class ai {
|
|
|
2493
2493
|
}
|
|
2494
2494
|
draw() {
|
|
2495
2495
|
const e = document.createElement("div");
|
|
2496
|
-
e.className = "setting-group", e.id = `setting-group-${this.id}`,
|
|
2496
|
+
e.className = "setting-group", e.id = `setting-group-${this.id}`, ri.hiddenElements.add(e), this.hide && (e.style.display = "none"), this.isMain && e.classList.add("main-group"), this.custom && e.classList.add("custom_class"), On(e, this.nestingLevel);
|
|
2497
2497
|
const r = document.createElement("div");
|
|
2498
2498
|
r.className = "setting-group-title", this.isCollapsed && r.classList.add("collapsed-view"), r.setAttribute("role", "button"), r.setAttribute(
|
|
2499
2499
|
"aria-expanded",
|
|
@@ -2597,8 +2597,8 @@ const ai = class ai {
|
|
|
2597
2597
|
}
|
|
2598
2598
|
}
|
|
2599
2599
|
};
|
|
2600
|
-
|
|
2601
|
-
let hr =
|
|
2600
|
+
ri.hiddenElements = /* @__PURE__ */ new Set();
|
|
2601
|
+
let hr = ri;
|
|
2602
2602
|
function L3(t) {
|
|
2603
2603
|
return new ff(t);
|
|
2604
2604
|
}
|
|
@@ -3428,7 +3428,7 @@ const Ef = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewB
|
|
|
3428
3428
|
<path d="M4.5 9.5H13.5M4.5 9.5L6 7.25M4.5 9.5L6 11.75M13.5 9.5L12 7.25M13.5 9.5L12 11.75M15.75 16.25V2.75M2.25 16.25V2.75" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
|
|
3429
3429
|
</svg>`, wf = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
|
|
3430
3430
|
<path d="M9 14L9 5M9 14L6.75 12.5M9 14L11.25 12.5M9 5L6.75 6.5M9 5L11.25 6.5M15.75 2.75H2.25M15.75 16.25H2.25" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"/>
|
|
3431
|
-
</svg>`,
|
|
3431
|
+
</svg>`, pi = `
|
|
3432
3432
|
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16" fill="none">
|
|
3433
3433
|
<path d="M5 10.5L7.5 8M7.5 8L10 10.5M7.5 8V13.625M12.5 10.9643C13.2634 10.3338 13.75 9.37996 13.75 8.3125C13.75 6.41402 12.211 4.875 10.3125 4.875C10.1759 4.875 10.0482 4.80375 9.97882 4.68609C9.16379 3.30302 7.65902 2.375 5.9375 2.375C3.34867 2.375 1.25 4.47367 1.25 7.0625C1.25 8.35381 1.77215 9.52317 2.61684 10.371" stroke="#475467" strokeLinecap="round" strokeLinejoin="round"/>
|
|
3434
3434
|
</svg>
|
|
@@ -3461,7 +3461,7 @@ const Ef = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewB
|
|
|
3461
3461
|
<circle cx="6.7" cy="6.7" r="1.5" fill="#02CC59" opacity="0.3"/>
|
|
3462
3462
|
</svg>
|
|
3463
3463
|
`;
|
|
3464
|
-
class
|
|
3464
|
+
class Un extends Fe {
|
|
3465
3465
|
constructor(e = {}) {
|
|
3466
3466
|
super(e), this.inputType = "button", this.previewWrapper = null, this.previewEl = null, this.emptyStateEl = null, this.errorContainer = null, this.messageListener = null, this.loadingSpinner = null, this.props.delete === void 0 && (this.props.delete = !0), this.props.maxFileSizeMB === void 0 && (this.props.maxFileSizeMB = 5), !this.value && e.defaultUrl && e.defaultUrl !== "" && (this.value = e.defaultUrl), this.setupMessageListener();
|
|
3467
3467
|
}
|
|
@@ -3514,7 +3514,7 @@ class Hn extends Fe {
|
|
|
3514
3514
|
);
|
|
3515
3515
|
if (e && e !== "") {
|
|
3516
3516
|
this.showLoading(), n && n instanceof HTMLElement && (n.style.display = "none"), r && r.classList.remove("no-image"), a && (a.innerHTML = `
|
|
3517
|
-
<span class="upload-icon">${
|
|
3517
|
+
<span class="upload-icon">${pi}</span>
|
|
3518
3518
|
<span class="upload-label">Replace</span>
|
|
3519
3519
|
`);
|
|
3520
3520
|
const i = () => {
|
|
@@ -3525,7 +3525,7 @@ class Hn extends Fe {
|
|
|
3525
3525
|
this.previewEl.addEventListener("load", i), this.previewEl.addEventListener("error", s), this.previewEl.src = e;
|
|
3526
3526
|
} else
|
|
3527
3527
|
this.hideLoading(), this.previewWrapper.classList.remove("has-image"), this.previewEl.src = "", this.previewEl.style.display = "none", this.previewWrapper.style.display = "none", n && n instanceof HTMLElement && (n.style.display = "block"), r && r.classList.add("no-image"), a && (a.innerHTML = `
|
|
3528
|
-
<span class="upload-icon">${
|
|
3528
|
+
<span class="upload-icon">${pi}</span>
|
|
3529
3529
|
<span class="upload-label">Upload</span>
|
|
3530
3530
|
`);
|
|
3531
3531
|
}
|
|
@@ -3568,7 +3568,7 @@ class Hn extends Fe {
|
|
|
3568
3568
|
this.previewWrapper.appendChild(this.previewEl);
|
|
3569
3569
|
const s = document.createElement("button");
|
|
3570
3570
|
return s.className = "upload-button", s.type = "button", this.getDataPropsPath() && s.setAttribute("data-test-id", this.getDataPropsPath()), s.innerHTML = `
|
|
3571
|
-
<span class="upload-icon">${
|
|
3571
|
+
<span class="upload-icon">${pi}</span>
|
|
3572
3572
|
<span class="upload-label">Upload</span>
|
|
3573
3573
|
`, a.appendChild(i), a.appendChild(this.previewWrapper), a.appendChild(s), e.appendChild(a), n ? this.updatePreviewState(this.value) : this.updatePreviewState(null), s.onclick = () => {
|
|
3574
3574
|
window.postMessage(
|
|
@@ -3581,7 +3581,7 @@ class Hn extends Fe {
|
|
|
3581
3581
|
}, e;
|
|
3582
3582
|
}
|
|
3583
3583
|
}
|
|
3584
|
-
const
|
|
3584
|
+
const Hn = `
|
|
3585
3585
|
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16" fill="none">
|
|
3586
3586
|
<path d="M5 10.5L7.5 8M7.5 8L10 10.5M7.5 8V13.625M12.5 10.9643C13.2634 10.3338 13.75 9.37996 13.75 8.3125C13.75 6.41402 12.211 4.875 10.3125 4.875C10.1759 4.875 10.0482 4.80375 9.97882 4.68609C9.16379 3.30302 7.65902 2.375 5.9375 2.375C3.34867 2.375 1.25 4.47367 1.25 7.0625C1.25 8.35381 1.77215 9.52317 2.61684 10.371" stroke="#475467" strokeLinecap="round" strokeLinejoin="round"/>
|
|
3587
3587
|
</svg>
|
|
@@ -3660,17 +3660,17 @@ function qs(t, e, r) {
|
|
|
3660
3660
|
const a = e && e.width && e.height && e || r && r.width && r.height && r || null;
|
|
3661
3661
|
return t.map((n) => {
|
|
3662
3662
|
const i = { ...n };
|
|
3663
|
-
return a && i.x > 100 && (i.x = i.x / a.width * 100), a && i.y > 100 && (i.y = i.y / a.height * 100), i.x =
|
|
3663
|
+
return a && i.x > 100 && (i.x = i.x / a.width * 100), a && i.y > 100 && (i.y = i.y / a.height * 100), i.x = Wn(i.x), i.y = Wn(i.y), i;
|
|
3664
3664
|
});
|
|
3665
3665
|
}
|
|
3666
|
-
function
|
|
3666
|
+
function Wn(t) {
|
|
3667
3667
|
return Number.isFinite(t) ? Math.max(0, Math.min(100, t)) : 0;
|
|
3668
3668
|
}
|
|
3669
3669
|
function Zs(t, e, r) {
|
|
3670
3670
|
const a = (t - r.left) / r.width * 100, n = (e - r.top) / r.height * 100;
|
|
3671
3671
|
return {
|
|
3672
|
-
x:
|
|
3673
|
-
y:
|
|
3672
|
+
x: Wn(a),
|
|
3673
|
+
y: Wn(n)
|
|
3674
3674
|
};
|
|
3675
3675
|
}
|
|
3676
3676
|
function v0(t) {
|
|
@@ -3948,7 +3948,7 @@ function Jf(t) {
|
|
|
3948
3948
|
function qf(t) {
|
|
3949
3949
|
if (t.uploadMethod === "input") {
|
|
3950
3950
|
const e = document.createElement("label");
|
|
3951
|
-
e.className = "upload-label", e.innerHTML = `<div class="upload-placeholder">${
|
|
3951
|
+
e.className = "upload-label", e.innerHTML = `<div class="upload-placeholder">${Hn}<span>Click to upload image</span></div>`;
|
|
3952
3952
|
const r = document.createElement("input");
|
|
3953
3953
|
return r.type = "file", r.accept = "image/jpeg,image/jpg,image/png,image/gif,image/webp", r.style.display = "none", r.addEventListener("change", (a) => {
|
|
3954
3954
|
var i;
|
|
@@ -3957,7 +3957,7 @@ function qf(t) {
|
|
|
3957
3957
|
}), e.appendChild(r), e;
|
|
3958
3958
|
} else {
|
|
3959
3959
|
const e = document.createElement("button");
|
|
3960
|
-
return e.type = "button", e.className = "upload-label", e.innerHTML = `<div class="upload-placeholder">${
|
|
3960
|
+
return e.type = "button", e.className = "upload-label", e.innerHTML = `<div class="upload-placeholder">${Hn}<span>Open File Manager</span></div>`, e.addEventListener("click", () => {
|
|
3961
3961
|
window.postMessage(
|
|
3962
3962
|
{
|
|
3963
3963
|
type: "OPEN_FILE_MANAGER_MODAL",
|
|
@@ -4002,7 +4002,7 @@ function eh(t, e, r) {
|
|
|
4002
4002
|
if (t === "input") {
|
|
4003
4003
|
const a = document.createElement("label");
|
|
4004
4004
|
a.className = "image-map-upload-label", a.innerHTML = `
|
|
4005
|
-
<div class="upload-icon upload-icon-default">${
|
|
4005
|
+
<div class="upload-icon upload-icon-default">${Hn}</div>
|
|
4006
4006
|
<div class="upload-icon upload-icon-replace">${Ys}</div>
|
|
4007
4007
|
<span class="upload-text">Upload Image</span>
|
|
4008
4008
|
`;
|
|
@@ -4015,7 +4015,7 @@ function eh(t, e, r) {
|
|
|
4015
4015
|
} else {
|
|
4016
4016
|
const a = document.createElement("button");
|
|
4017
4017
|
return a.type = "button", a.className = "image-map-upload-label", a.innerHTML = `
|
|
4018
|
-
<div class="upload-icon upload-icon-default">${
|
|
4018
|
+
<div class="upload-icon upload-icon-default">${Hn}</div>
|
|
4019
4019
|
<div class="upload-icon upload-icon-replace">${Ys}</div>
|
|
4020
4020
|
<span class="upload-text">Upload Image</span>
|
|
4021
4021
|
`, a.addEventListener("click", () => {
|
|
@@ -4930,10 +4930,10 @@ function gh(t) {
|
|
|
4930
4930
|
n.preventDefault(), t.onEyeIconClick();
|
|
4931
4931
|
}), e.appendChild(r), e.appendChild(a), e;
|
|
4932
4932
|
}
|
|
4933
|
-
let
|
|
4933
|
+
let mi;
|
|
4934
4934
|
function to(t, e) {
|
|
4935
|
-
|
|
4936
|
-
const r =
|
|
4935
|
+
mi || (mi = document.createElement("canvas"));
|
|
4936
|
+
const r = mi.getContext("2d");
|
|
4937
4937
|
if (!r) return t.length * 10;
|
|
4938
4938
|
const a = `${e.fontStyle} ${e.fontWeight} ${e.fontSize} ${e.fontFamily}`.trim();
|
|
4939
4939
|
return r.font = a, r.measureText(t).width;
|
|
@@ -5027,8 +5027,8 @@ function vh(t) {
|
|
|
5027
5027
|
}), e;
|
|
5028
5028
|
}
|
|
5029
5029
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
5030
|
-
var
|
|
5031
|
-
|
|
5030
|
+
var $n = {};
|
|
5031
|
+
$n.version = "0.18.5";
|
|
5032
5032
|
var k0 = 1252, Eh = [874, 932, 936, 949, 950, 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, 1258, 1e4], Zi = {
|
|
5033
5033
|
/*::[*/
|
|
5034
5034
|
0: 1252,
|
|
@@ -5162,7 +5162,7 @@ var Pt = function(e) {
|
|
|
5162
5162
|
return r.charCodeAt(0) & 255;
|
|
5163
5163
|
});
|
|
5164
5164
|
};
|
|
5165
|
-
function
|
|
5165
|
+
function ai(t) {
|
|
5166
5166
|
if (typeof ArrayBuffer > "u") return Pt(t);
|
|
5167
5167
|
for (var e = new ArrayBuffer(t.length), r = new Uint8Array(e), a = 0; a != t.length; ++a) r[a] = t.charCodeAt(a) & 255;
|
|
5168
5168
|
return e;
|
|
@@ -5235,7 +5235,7 @@ function rs(t, e) {
|
|
|
5235
5235
|
var r = "" + t;
|
|
5236
5236
|
return r.length >= e ? r : je(" ", e - r.length) + r;
|
|
5237
5237
|
}
|
|
5238
|
-
function
|
|
5238
|
+
function Gn(t, e) {
|
|
5239
5239
|
var r = "" + t;
|
|
5240
5240
|
return r.length >= e ? r : r + je(" ", e - r.length);
|
|
5241
5241
|
}
|
|
@@ -5253,7 +5253,7 @@ function ua(t, e) {
|
|
|
5253
5253
|
var r = Math.round(t);
|
|
5254
5254
|
return Th(r, e);
|
|
5255
5255
|
}
|
|
5256
|
-
function
|
|
5256
|
+
function zn(t, e) {
|
|
5257
5257
|
return e = e || 0, t.length >= 7 + e && (t.charCodeAt(e) | 32) === 103 && (t.charCodeAt(e + 1) | 32) === 101 && (t.charCodeAt(e + 2) | 32) === 110 && (t.charCodeAt(e + 3) | 32) === 101 && (t.charCodeAt(e + 4) | 32) === 114 && (t.charCodeAt(e + 5) | 32) === 97 && (t.charCodeAt(e + 6) | 32) === 108;
|
|
5258
5258
|
}
|
|
5259
5259
|
var so = [
|
|
@@ -5264,7 +5264,7 @@ var so = [
|
|
|
5264
5264
|
["Thu", "Thursday"],
|
|
5265
5265
|
["Fri", "Friday"],
|
|
5266
5266
|
["Sat", "Saturday"]
|
|
5267
|
-
],
|
|
5267
|
+
], gi = [
|
|
5268
5268
|
["J", "Jan", "January"],
|
|
5269
5269
|
["F", "Feb", "February"],
|
|
5270
5270
|
["M", "Mar", "March"],
|
|
@@ -5387,7 +5387,7 @@ var me = {
|
|
|
5387
5387
|
// 44 -- Accounting, 2 decimal, $ Symbol
|
|
5388
5388
|
44: '_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'
|
|
5389
5389
|
};
|
|
5390
|
-
function
|
|
5390
|
+
function Xn(t, e, r) {
|
|
5391
5391
|
for (var a = t < 0 ? -1 : 1, n = t * a, i = 0, s = 1, o = 0, l = 1, c = 0, f = 0, h = Math.floor(n); c < e && (h = Math.floor(n), o = h * s + i, f = h * c + l, !(n - h < 5e-8)); )
|
|
5392
5392
|
n = 1 / (n - h), i = s, s = o, l = c, c = f;
|
|
5393
5393
|
if (f > e && (c > e ? (f = l, o = i) : (f = c, o = s)), !r) return [0, a * o, f];
|
|
@@ -5476,11 +5476,11 @@ function Oh(t, e, r, a) {
|
|
|
5476
5476
|
l = r.m, c = e.length;
|
|
5477
5477
|
break;
|
|
5478
5478
|
case 3:
|
|
5479
|
-
return
|
|
5479
|
+
return gi[r.m - 1][1];
|
|
5480
5480
|
case 5:
|
|
5481
|
-
return
|
|
5481
|
+
return gi[r.m - 1][0];
|
|
5482
5482
|
default:
|
|
5483
|
-
return
|
|
5483
|
+
return gi[r.m - 1][2];
|
|
5484
5484
|
}
|
|
5485
5485
|
break;
|
|
5486
5486
|
case 100:
|
|
@@ -5667,16 +5667,16 @@ function Ht(t, e, r) {
|
|
|
5667
5667
|
/*::String(*/
|
|
5668
5668
|
i[4].length,
|
|
5669
5669
|
7
|
|
5670
|
-
), o =
|
|
5670
|
+
), o = Xn(l, Math.pow(10, s) - 1, !1), n = "" + c, f = kr(
|
|
5671
5671
|
"n",
|
|
5672
5672
|
/*::String(*/
|
|
5673
5673
|
i[1],
|
|
5674
5674
|
o[1]
|
|
5675
5675
|
), f.charAt(f.length - 1) == " " && (f = f.substr(0, f.length - 1) + "0"), n += f + /*::String(*/
|
|
5676
5676
|
i[2] + "/" + /*::String(*/
|
|
5677
|
-
i[3], f =
|
|
5677
|
+
i[3], f = Gn(o[2], s), f.length < i[4].length && (f = _t(i[4].substr(i[4].length - f.length)) + f), n += f, n;
|
|
5678
5678
|
if (i = e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
|
|
5679
|
-
return s = Math.min(Math.max(i[1].length, i[4].length), 7), o =
|
|
5679
|
+
return s = Math.min(Math.max(i[1].length, i[4].length), 7), o = Xn(l, Math.pow(10, s) - 1, !0), c + (o[0] || (o[1] ? "" : "0")) + " " + (o[1] ? rs(o[1], s) + i[2] + "/" + i[3] + Gn(o[2], s) : je(" ", 2 * s + 1 + i[2].length + i[3].length));
|
|
5680
5680
|
if (i = e.match(/^[#0?]+$/))
|
|
5681
5681
|
return n = ua(r, 0), e.length <= n.length ? n : _t(e.substr(0, e.length - n.length)) + n;
|
|
5682
5682
|
if (i = e.match(/^([#0?]+)\.([#0]+)$/)) {
|
|
@@ -5766,16 +5766,16 @@ function lr(t, e, r) {
|
|
|
5766
5766
|
/*::String(*/
|
|
5767
5767
|
i[4].length,
|
|
5768
5768
|
7
|
|
5769
|
-
), o =
|
|
5769
|
+
), o = Xn(l, Math.pow(10, s) - 1, !1), n = "" + c, f = kr(
|
|
5770
5770
|
"n",
|
|
5771
5771
|
/*::String(*/
|
|
5772
5772
|
i[1],
|
|
5773
5773
|
o[1]
|
|
5774
5774
|
), f.charAt(f.length - 1) == " " && (f = f.substr(0, f.length - 1) + "0"), n += f + /*::String(*/
|
|
5775
5775
|
i[2] + "/" + /*::String(*/
|
|
5776
|
-
i[3], f =
|
|
5776
|
+
i[3], f = Gn(o[2], s), f.length < i[4].length && (f = _t(i[4].substr(i[4].length - f.length)) + f), n += f, n;
|
|
5777
5777
|
if (i = e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
|
|
5778
|
-
return s = Math.min(Math.max(i[1].length, i[4].length), 7), o =
|
|
5778
|
+
return s = Math.min(Math.max(i[1].length, i[4].length), 7), o = Xn(l, Math.pow(10, s) - 1, !0), c + (o[0] || (o[1] ? "" : "0")) + " " + (o[1] ? rs(o[1], s) + i[2] + "/" + i[3] + Gn(o[2], s) : je(" ", 2 * s + 1 + i[2].length + i[3].length));
|
|
5779
5779
|
if (i = e.match(/^[#0?]+$/))
|
|
5780
5780
|
return n = "" + r, e.length <= n.length ? n : _t(e.substr(0, e.length - n.length)) + n;
|
|
5781
5781
|
if (i = e.match(/^([#0]+)\.([#0]+)$/)) {
|
|
@@ -5825,7 +5825,7 @@ function Aa(t) {
|
|
|
5825
5825
|
for (var e = 0, r = "", a = ""; e < t.length; )
|
|
5826
5826
|
switch (r = t.charAt(e)) {
|
|
5827
5827
|
case "G":
|
|
5828
|
-
|
|
5828
|
+
zn(t, e) && (e += 6), e++;
|
|
5829
5829
|
break;
|
|
5830
5830
|
case '"':
|
|
5831
5831
|
for (
|
|
@@ -5917,7 +5917,7 @@ function Gh(t, e, r, a) {
|
|
|
5917
5917
|
for (var n = [], i = "", s = 0, o = "", l = "t", c, f, h, u = "H"; s < t.length; )
|
|
5918
5918
|
switch (o = t.charAt(s)) {
|
|
5919
5919
|
case "G":
|
|
5920
|
-
if (!
|
|
5920
|
+
if (!zn(t, s)) throw new Error("unrecognized character " + o + " in " + t);
|
|
5921
5921
|
n[n.length] = { t: "G", v: "General" }, s += 7;
|
|
5922
5922
|
break;
|
|
5923
5923
|
case '"':
|
|
@@ -6187,10 +6187,10 @@ function jt(t, e, r) {
|
|
|
6187
6187
|
t == 14 && r.dateNF ? a = r.dateNF : a = (r.table != null ? r.table : me)[t], a == null && (a = r.table && r.table[oo[t]] || me[oo[t]]), a == null && (a = bh[t] || "General");
|
|
6188
6188
|
break;
|
|
6189
6189
|
}
|
|
6190
|
-
if (
|
|
6190
|
+
if (zn(a, 0)) return Qr(e, r);
|
|
6191
6191
|
e instanceof Date && (e = T0(e, r.date1904));
|
|
6192
6192
|
var n = zh(a, e);
|
|
6193
|
-
if (
|
|
6193
|
+
if (zn(n[1])) return Qr(e, r);
|
|
6194
6194
|
if (e === !0) e = "TRUE";
|
|
6195
6195
|
else if (e === !1) e = "FALSE";
|
|
6196
6196
|
else if (e === "" || e == null) return "";
|
|
@@ -6213,7 +6213,7 @@ function yr(t, e) {
|
|
|
6213
6213
|
}
|
|
6214
6214
|
return me[e] = t, e;
|
|
6215
6215
|
}
|
|
6216
|
-
function
|
|
6216
|
+
function ni(t) {
|
|
6217
6217
|
for (var e = 0; e != 392; ++e)
|
|
6218
6218
|
t[e] !== void 0 && yr(t[e], e);
|
|
6219
6219
|
}
|
|
@@ -6656,8 +6656,8 @@ var Yh = /* @__PURE__ */ function() {
|
|
|
6656
6656
|
$e > 0 && ($e < 4096 ? ee += $e + 63 >> 6 : fe += $e + 511 >> 9);
|
|
6657
6657
|
}
|
|
6658
6658
|
}
|
|
6659
|
-
for (var pt = he.FullPaths.length + 3 >> 2, Da = ee + 7 >> 3, Ra = ee + 127 >> 7, Ba = Da + fe + pt + Ra, Wr = Ba + 127 >> 7,
|
|
6660
|
-
var xr = [1,
|
|
6659
|
+
for (var pt = he.FullPaths.length + 3 >> 2, Da = ee + 7 >> 3, Ra = ee + 127 >> 7, Ba = Da + fe + pt + Ra, Wr = Ba + 127 >> 7, di = Wr <= 109 ? 0 : Math.ceil((Wr - 109) / 127); Ba + Wr + di + 127 >> 7 > Wr; ) di = ++Wr <= 109 ? 0 : Math.ceil((Wr - 109) / 127);
|
|
6660
|
+
var xr = [1, di, Wr, Ra, pt, fe, ee, 0];
|
|
6661
6661
|
return he.FileIndex[0].size = ee << 6, xr[7] = (he.FileIndex[0].start = xr[0] + xr[1] + xr[2] + xr[3] + xr[4] + xr[5]) + (xr[6] + 7 >> 3), xr;
|
|
6662
6662
|
}(E), T = X(y[7] << 9), S = 0, U = 0;
|
|
6663
6663
|
{
|
|
@@ -7093,7 +7093,7 @@ var Yh = /* @__PURE__ */ function() {
|
|
|
7093
7093
|
throw new Error("Unsupported ZIP Compression method " + U);
|
|
7094
7094
|
}
|
|
7095
7095
|
var We = !1;
|
|
7096
|
-
S & 8 && (B = E.read_shift(4), B == 134695760 && (B = E.read_shift(4), We = !0), H = E.read_shift(4), W = E.read_shift(4)), H != _ && Ws(We, "Bad compressed size: " + _ + " != " + H), W != C && Ws(We, "Bad uncompressed size: " + C + " != " + W),
|
|
7096
|
+
S & 8 && (B = E.read_shift(4), B == 134695760 && (B = E.read_shift(4), We = !0), H = E.read_shift(4), W = E.read_shift(4)), H != _ && Ws(We, "Bad compressed size: " + _ + " != " + H), W != C && Ws(We, "Bad uncompressed size: " + C + " != " + W), ui(y, he, Ee, { unsafe: !0, mt: j });
|
|
7097
7097
|
}
|
|
7098
7098
|
function Oc(E, _) {
|
|
7099
7099
|
var C = _ || {}, y = [], T = [], S = X(1), U = C.compression ? 8 : 0, j = 0, B = 0, H = 0, W = 0, Z = 0, se = E.FullPaths[0], he = se, ee = E.FileIndex[0], fe = [], Ee = 0;
|
|
@@ -7201,7 +7201,7 @@ var Yh = /* @__PURE__ */ function() {
|
|
|
7201
7201
|
default:
|
|
7202
7202
|
throw new Error("Unsupported Content-Transfer-Encoding " + T);
|
|
7203
7203
|
}
|
|
7204
|
-
var W =
|
|
7204
|
+
var W = ui(E, y.slice(C.length), U, { unsafe: !0 });
|
|
7205
7205
|
S && (W.ctype = S);
|
|
7206
7206
|
}
|
|
7207
7207
|
function Uc(E, _) {
|
|
@@ -7254,7 +7254,7 @@ var Yh = /* @__PURE__ */ function() {
|
|
|
7254
7254
|
var _ = {};
|
|
7255
7255
|
return k(_, E), _;
|
|
7256
7256
|
}
|
|
7257
|
-
function
|
|
7257
|
+
function ui(E, _, C, y) {
|
|
7258
7258
|
var T = y && y.unsafe;
|
|
7259
7259
|
T || k(E);
|
|
7260
7260
|
var S = !T && de.find(E, _);
|
|
@@ -7287,7 +7287,7 @@ var Yh = /* @__PURE__ */ function() {
|
|
|
7287
7287
|
}
|
|
7288
7288
|
return e.find = V, e.read = A, e.parse = f, e.write = pe, e.writeFile = Pe, e.utils = {
|
|
7289
7289
|
cfb_new: Wc,
|
|
7290
|
-
cfb_add:
|
|
7290
|
+
cfb_add: ui,
|
|
7291
7291
|
cfb_del: $c,
|
|
7292
7292
|
cfb_mov: Gc,
|
|
7293
7293
|
cfb_gc: zc,
|
|
@@ -7302,7 +7302,7 @@ var Yh = /* @__PURE__ */ function() {
|
|
|
7302
7302
|
}, e;
|
|
7303
7303
|
}();
|
|
7304
7304
|
function Jh(t) {
|
|
7305
|
-
return typeof t == "string" ?
|
|
7305
|
+
return typeof t == "string" ? ai(t) : Array.isArray(t) ? kh(t) : t;
|
|
7306
7306
|
}
|
|
7307
7307
|
function un(t, e, r) {
|
|
7308
7308
|
if (typeof Deno < "u") {
|
|
@@ -7311,7 +7311,7 @@ function un(t, e, r) {
|
|
|
7311
7311
|
e = new TextEncoder(r).encode(e);
|
|
7312
7312
|
break;
|
|
7313
7313
|
case "binary":
|
|
7314
|
-
e =
|
|
7314
|
+
e = ai(e);
|
|
7315
7315
|
break;
|
|
7316
7316
|
/* TODO: binary equivalent */
|
|
7317
7317
|
default:
|
|
@@ -7366,11 +7366,11 @@ function uo(t, e) {
|
|
|
7366
7366
|
for (var r = [], a = Ye(t), n = 0; n !== a.length; ++n) r[t[a[n]][e]] == null && (r[t[a[n]][e]] = a[n]);
|
|
7367
7367
|
return r;
|
|
7368
7368
|
}
|
|
7369
|
-
function
|
|
7369
|
+
function ii(t) {
|
|
7370
7370
|
for (var e = [], r = Ye(t), a = 0; a !== r.length; ++a) e[t[r[a]]] = r[a];
|
|
7371
7371
|
return e;
|
|
7372
7372
|
}
|
|
7373
|
-
function
|
|
7373
|
+
function si(t) {
|
|
7374
7374
|
for (var e = [], r = Ye(t), a = 0; a !== r.length; ++a) e[t[r[a]]] = parseInt(r[a], 10);
|
|
7375
7375
|
return e;
|
|
7376
7376
|
}
|
|
@@ -7379,13 +7379,13 @@ function Zh(t) {
|
|
|
7379
7379
|
e[t[r[a]]] == null && (e[t[r[a]]] = []), e[t[r[a]]].push(r[a]);
|
|
7380
7380
|
return e;
|
|
7381
7381
|
}
|
|
7382
|
-
var
|
|
7382
|
+
var jn = /* @__PURE__ */ new Date(1899, 11, 30, 0, 0, 0);
|
|
7383
7383
|
function st(t, e) {
|
|
7384
|
-
var r = /* @__PURE__ */ t.getTime(), a = /* @__PURE__ */
|
|
7384
|
+
var r = /* @__PURE__ */ t.getTime(), a = /* @__PURE__ */ jn.getTime() + (/* @__PURE__ */ t.getTimezoneOffset() - /* @__PURE__ */ jn.getTimezoneOffset()) * 6e4;
|
|
7385
7385
|
return (r - a) / (24 * 60 * 60 * 1e3);
|
|
7386
7386
|
}
|
|
7387
|
-
var P0 = /* @__PURE__ */ new Date(), Qh = /* @__PURE__ */
|
|
7388
|
-
function
|
|
7387
|
+
var P0 = /* @__PURE__ */ new Date(), Qh = /* @__PURE__ */ jn.getTime() + (/* @__PURE__ */ P0.getTimezoneOffset() - /* @__PURE__ */ jn.getTimezoneOffset()) * 6e4, po = /* @__PURE__ */ P0.getTimezoneOffset();
|
|
7388
|
+
function oi(t) {
|
|
7389
7389
|
var e = /* @__PURE__ */ new Date();
|
|
7390
7390
|
return e.setTime(t * 24 * 60 * 60 * 1e3 + Qh), e.getTimezoneOffset() !== po && e.setTime(e.getTime() + (e.getTimezoneOffset() - po) * 6e4), e;
|
|
7391
7391
|
}
|
|
@@ -7632,7 +7632,7 @@ var U0 = {
|
|
|
7632
7632
|
">": ">",
|
|
7633
7633
|
"<": "<",
|
|
7634
7634
|
"&": "&"
|
|
7635
|
-
}, ss = /* @__PURE__ */
|
|
7635
|
+
}, ss = /* @__PURE__ */ ii(U0), Le = /* @__PURE__ */ function() {
|
|
7636
7636
|
var t = /&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig, e = /_x([\da-fA-F]{4})_/ig;
|
|
7637
7637
|
return function r(a) {
|
|
7638
7638
|
var n = a + "", i = n.indexOf("<![CDATA[");
|
|
@@ -7698,7 +7698,7 @@ function Ve(t) {
|
|
|
7698
7698
|
return !1;
|
|
7699
7699
|
}
|
|
7700
7700
|
}
|
|
7701
|
-
function
|
|
7701
|
+
function xi(t) {
|
|
7702
7702
|
for (var e = "", r = 0, a = 0, n = 0, i = 0, s = 0, o = 0; r < t.length; ) {
|
|
7703
7703
|
if (a = t.charCodeAt(r++), a < 128) {
|
|
7704
7704
|
e += String.fromCharCode(a);
|
|
@@ -7725,7 +7725,7 @@ function wo(t) {
|
|
|
7725
7725
|
function Co(t) {
|
|
7726
7726
|
return Sr(t, "binary").toString("utf8");
|
|
7727
7727
|
}
|
|
7728
|
-
var kn = "foo bar bazâð£", De = ye && (/* @__PURE__ */ Co(kn) == /* @__PURE__ */
|
|
7728
|
+
var kn = "foo bar bazâð£", De = ye && (/* @__PURE__ */ Co(kn) == /* @__PURE__ */ xi(kn) && Co || /* @__PURE__ */ wo(kn) == /* @__PURE__ */ xi(kn) && wo) || xi, fr = ye ? function(t) {
|
|
7729
7729
|
return Sr(t, "utf8").toString("binary");
|
|
7730
7730
|
} : function(t) {
|
|
7731
7731
|
for (var e = [], r = 0, a = 0, n = 0; r < t.length; )
|
|
@@ -7900,7 +7900,7 @@ var yo = function(t) {
|
|
|
7900
7900
|
return r > 0 ? dn(t, e + 4, e + 4 + r) : "";
|
|
7901
7901
|
}, el = Q0, tl = function(t, e) {
|
|
7902
7902
|
return xu(t, e);
|
|
7903
|
-
},
|
|
7903
|
+
}, Kn = tl, hs = function(e) {
|
|
7904
7904
|
return Array.isArray(e) || typeof Uint8Array < "u" && e instanceof Uint8Array;
|
|
7905
7905
|
};
|
|
7906
7906
|
ye && (X0 = function(e, r) {
|
|
@@ -7923,7 +7923,7 @@ ye && (X0 = function(e, r) {
|
|
|
7923
7923
|
if (!Buffer.isBuffer(e)) return Q0(e, r);
|
|
7924
7924
|
var a = e.readUInt32LE(r);
|
|
7925
7925
|
return e.toString("utf8", r + 4, r + 4 + a);
|
|
7926
|
-
},
|
|
7926
|
+
}, Kn = function(e, r) {
|
|
7927
7927
|
return Buffer.isBuffer(e) ? e.readDoubleLE(r) : tl(e, r);
|
|
7928
7928
|
}, hs = function(e) {
|
|
7929
7929
|
return Buffer.isBuffer(e) || Array.isArray(e) || typeof Uint8Array < "u" && e instanceof Uint8Array;
|
|
@@ -8018,7 +8018,7 @@ function $a(t, e) {
|
|
|
8018
8018
|
case 8:
|
|
8019
8019
|
case -8:
|
|
8020
8020
|
if (e === "f")
|
|
8021
|
-
return t == 8 ? n =
|
|
8021
|
+
return t == 8 ? n = Kn(this, this.l) : n = Kn([this[this.l + 7], this[this.l + 6], this[this.l + 5], this[this.l + 4], this[this.l + 3], this[this.l + 2], this[this.l + 1], this[this.l + 0]], 0), this.l += 8, n;
|
|
8022
8022
|
t = 8;
|
|
8023
8023
|
/* falls through */
|
|
8024
8024
|
case 16:
|
|
@@ -8164,7 +8164,7 @@ function za(t, e) {
|
|
|
8164
8164
|
var r = ge(t);
|
|
8165
8165
|
return !t.cRel && t.cRel != null && (r = bu(r)), !t.rRel && t.rRel != null && (r = Tu(r)), r;
|
|
8166
8166
|
}
|
|
8167
|
-
function
|
|
8167
|
+
function vi(t, e) {
|
|
8168
8168
|
return t.s.r == 0 && !t.s.rRel && t.e.r == (e.biff >= 12 ? 1048575 : e.biff >= 8 ? 65536 : 16384) && !t.e.rRel ? (t.s.cRel ? "" : "$") + ze(t.s.c) + ":" + (t.e.cRel ? "" : "$") + ze(t.e.c) : t.s.c == 0 && !t.s.cRel && t.e.c == (e.biff >= 12 ? 16383 : 255) && !t.e.cRel ? (t.s.rRel ? "" : "$") + Qe(t.s.r) + ":" + (t.e.rRel ? "" : "$") + Qe(t.e.r) : za(t.s, e.biff) + ":" + za(t.e, e.biff);
|
|
8169
8169
|
}
|
|
8170
8170
|
function us(t) {
|
|
@@ -8347,15 +8347,15 @@ function ms(t) {
|
|
|
8347
8347
|
var e = t.read_shift(4);
|
|
8348
8348
|
return e === 0 || e === 4294967295 ? "" : t.read_shift(e, "dbcs");
|
|
8349
8349
|
}
|
|
8350
|
-
function
|
|
8350
|
+
function Yn(t, e) {
|
|
8351
8351
|
var r = !1;
|
|
8352
8352
|
return e == null && (r = !0, e = X(127)), e.write_shift(4, t.length > 0 ? t.length : 4294967295), t.length > 0 && e.write_shift(0, t, "dbcs"), r ? e.slice(0, e.l) : e;
|
|
8353
8353
|
}
|
|
8354
|
-
var Ru = wt, Bi = ms, gs =
|
|
8354
|
+
var Ru = wt, Bi = ms, gs = Yn;
|
|
8355
8355
|
function xs(t) {
|
|
8356
8356
|
var e = t.slice(t.l, t.l + 4), r = e[0] & 1, a = e[0] & 2;
|
|
8357
8357
|
t.l += 4;
|
|
8358
|
-
var n = a === 0 ?
|
|
8358
|
+
var n = a === 0 ? Kn([0, 0, 0, 0, e[0] & 252, e[1], e[2], e[3]], 0) : Gr(e, 0) >> 2;
|
|
8359
8359
|
return r ? n / 100 : n;
|
|
8360
8360
|
}
|
|
8361
8361
|
function il(t, e) {
|
|
@@ -8399,7 +8399,7 @@ function Vu(t) {
|
|
|
8399
8399
|
}
|
|
8400
8400
|
return i != 0 && (e.tint = i > 0 ? i / 32767 : i / 32768), e;
|
|
8401
8401
|
}
|
|
8402
|
-
function
|
|
8402
|
+
function Jn(t, e) {
|
|
8403
8403
|
if (e || (e = X(8)), !t || t.auto)
|
|
8404
8404
|
return e.write_shift(4, 0), e.write_shift(4, 0), e;
|
|
8405
8405
|
t.index != null ? (e.write_shift(1, 2), e.write_shift(1, t.index)) : t.theme != null ? (e.write_shift(1, 6), e.write_shift(1, t.theme)) : (e.write_shift(1, 5), e.write_shift(1, 0));
|
|
@@ -8450,7 +8450,7 @@ function Wu(t) {
|
|
|
8450
8450
|
function $u(t) {
|
|
8451
8451
|
return ol(t, 2);
|
|
8452
8452
|
}
|
|
8453
|
-
var vs = 2, bt = 3, yn = 11, Ao = 12,
|
|
8453
|
+
var vs = 2, bt = 3, yn = 11, Ao = 12, qn = 19, _n = 64, Gu = 65, zu = 71, Xu = 4108, ju = 4126, lt = 80, ll = 81, Ku = [lt, ll], Vi = {
|
|
8454
8454
|
/*::[*/
|
|
8455
8455
|
1: { n: "CodePage", t: vs },
|
|
8456
8456
|
/*::[*/
|
|
@@ -8513,9 +8513,9 @@ var vs = 2, bt = 3, yn = 11, Ao = 12, Zn = 19, _n = 64, Gu = 65, zu = 71, Xu = 4
|
|
|
8513
8513
|
255: {},
|
|
8514
8514
|
/* [MS-OLEPS] 2.18 */
|
|
8515
8515
|
/*::[*/
|
|
8516
|
-
2147483648: { n: "Locale", t:
|
|
8516
|
+
2147483648: { n: "Locale", t: qn },
|
|
8517
8517
|
/*::[*/
|
|
8518
|
-
2147483651: { n: "Behavior", t:
|
|
8518
|
+
2147483651: { n: "Behavior", t: qn },
|
|
8519
8519
|
/*::[*/
|
|
8520
8520
|
1919054434: {}
|
|
8521
8521
|
}, Ui = {
|
|
@@ -8561,9 +8561,9 @@ var vs = 2, bt = 3, yn = 11, Ao = 12, Zn = 19, _n = 64, Gu = 65, zu = 71, Xu = 4
|
|
|
8561
8561
|
255: {},
|
|
8562
8562
|
/* [MS-OLEPS] 2.18 */
|
|
8563
8563
|
/*::[*/
|
|
8564
|
-
2147483648: { n: "Locale", t:
|
|
8564
|
+
2147483648: { n: "Locale", t: qn },
|
|
8565
8565
|
/*::[*/
|
|
8566
|
-
2147483651: { n: "Behavior", t:
|
|
8566
|
+
2147483651: { n: "Behavior", t: qn },
|
|
8567
8567
|
/*::[*/
|
|
8568
8568
|
1919054434: {}
|
|
8569
8569
|
}, Io = {
|
|
@@ -9275,7 +9275,7 @@ function a1(t) {
|
|
|
9275
9275
|
return e.push(No("", "Document", "pkg")), e.push("</rdf:RDF>"), e.join("");
|
|
9276
9276
|
}
|
|
9277
9277
|
function hl() {
|
|
9278
|
-
return '<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS ' +
|
|
9278
|
+
return '<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS ' + $n.version + "</meta:generator></office:meta></office:document-meta>";
|
|
9279
9279
|
}
|
|
9280
9280
|
var Xt = [
|
|
9281
9281
|
["cp:category", "Category"],
|
|
@@ -9309,7 +9309,7 @@ function ul(t) {
|
|
|
9309
9309
|
}
|
|
9310
9310
|
return e;
|
|
9311
9311
|
}
|
|
9312
|
-
function
|
|
9312
|
+
function Ei(t, e, r, a, n) {
|
|
9313
9313
|
n[t] != null || e == null || e === "" || (n[t] = e, e = Oe(e), a[a.length] = r ? ae(t, e, r) : dt(t, e));
|
|
9314
9314
|
}
|
|
9315
9315
|
function dl(t, e) {
|
|
@@ -9322,10 +9322,10 @@ function dl(t, e) {
|
|
|
9322
9322
|
"xmlns:xsi": it.xsi
|
|
9323
9323
|
})], n = {};
|
|
9324
9324
|
if (!t && !r.Props) return a.join("");
|
|
9325
|
-
t && (t.CreatedDate != null &&
|
|
9325
|
+
t && (t.CreatedDate != null && Ei("dcterms:created", typeof t.CreatedDate == "string" ? t.CreatedDate : Ri(t.CreatedDate, r.WTF), { "xsi:type": "dcterms:W3CDTF" }, a, n), t.ModifiedDate != null && Ei("dcterms:modified", typeof t.ModifiedDate == "string" ? t.ModifiedDate : Ri(t.ModifiedDate, r.WTF), { "xsi:type": "dcterms:W3CDTF" }, a, n));
|
|
9326
9326
|
for (var i = 0; i != Xt.length; ++i) {
|
|
9327
9327
|
var s = Xt[i], o = r.Props && r.Props[s[1]] != null ? r.Props[s[1]] : t ? t[s[1]] : null;
|
|
9328
|
-
o === !0 ? o = "1" : o === !1 ? o = "0" : typeof o == "number" && (o = String(o)), o != null &&
|
|
9328
|
+
o === !0 ? o = "1" : o === !1 ? o = "0" : typeof o == "number" && (o = String(o)), o != null && Ei(s[0], o, null, a, n);
|
|
9329
9329
|
}
|
|
9330
9330
|
return a.length > 2 && (a[a.length] = "</cp:coreProperties>", a[1] = a[1].replace("/>", ">")), a.join("");
|
|
9331
9331
|
}
|
|
@@ -9540,9 +9540,9 @@ var Wi = {
|
|
|
9540
9540
|
/* NOTE: missing from schema */
|
|
9541
9541
|
Language: "Language"
|
|
9542
9542
|
/* NOTE: missing from schema */
|
|
9543
|
-
},
|
|
9543
|
+
}, wi;
|
|
9544
9544
|
function l1(t, e, r) {
|
|
9545
|
-
|
|
9545
|
+
wi || (wi = ii(Wi)), e = wi[e] || e, t[e] = r;
|
|
9546
9546
|
}
|
|
9547
9547
|
function c1(t, e) {
|
|
9548
9548
|
var r = [];
|
|
@@ -9622,9 +9622,9 @@ function p1(t) {
|
|
|
9622
9622
|
return r;
|
|
9623
9623
|
}
|
|
9624
9624
|
function m1(t) {
|
|
9625
|
-
var e = t.l, r =
|
|
9625
|
+
var e = t.l, r = Zn(t, ll);
|
|
9626
9626
|
t[t.l] == 0 && t[t.l + 1] == 0 && t.l - e & 2 && (t.l += 2);
|
|
9627
|
-
var a =
|
|
9627
|
+
var a = Zn(t, bt);
|
|
9628
9628
|
return [r, a];
|
|
9629
9629
|
}
|
|
9630
9630
|
function g1(t) {
|
|
@@ -9646,7 +9646,7 @@ function x1(t) {
|
|
|
9646
9646
|
var e = {};
|
|
9647
9647
|
return e.Size = t.read_shift(4), t.l += e.Size + 3 - (e.Size - 1) % 4, e;
|
|
9648
9648
|
}
|
|
9649
|
-
function
|
|
9649
|
+
function Zn(t, e, r) {
|
|
9650
9650
|
var a = t.read_shift(2), n, i = r || {};
|
|
9651
9651
|
if (t.l += 2, e !== Ao && a !== e && Ku.indexOf(e) === -1 && !((e & 65534) == 4126 && (a & 65534) == 4126))
|
|
9652
9652
|
throw new Error("Expected type " + e + " saw " + a);
|
|
@@ -9738,7 +9738,7 @@ function Po(t, e) {
|
|
|
9738
9738
|
}
|
|
9739
9739
|
if (e) {
|
|
9740
9740
|
var m = e[i[s][0]];
|
|
9741
|
-
if (u[m.n] =
|
|
9741
|
+
if (u[m.n] = Zn(t, m.t, { raw: !0 }), m.p === "version" && (u[m.n] = String(u[m.n] >> 16) + "." + ("0000" + String(u[m.n] & 65535)).slice(-4)), m.n == "CodePage") switch (u[m.n]) {
|
|
9742
9742
|
case 0:
|
|
9743
9743
|
u[m.n] = 1252;
|
|
9744
9744
|
/* falls through */
|
|
@@ -9769,7 +9769,7 @@ function Po(t, e) {
|
|
|
9769
9769
|
throw new Error("Unsupported CodePage: " + u[m.n]);
|
|
9770
9770
|
}
|
|
9771
9771
|
} else if (i[s][0] === 1) {
|
|
9772
|
-
if (o = u.CodePage =
|
|
9772
|
+
if (o = u.CodePage = Zn(t, vs), Qt(o), l !== -1) {
|
|
9773
9773
|
var d = t.l;
|
|
9774
9774
|
t.l = i[l][1], c = Mo(t, o), t.l = d;
|
|
9775
9775
|
}
|
|
@@ -10100,7 +10100,7 @@ function M1(t, e, r) {
|
|
|
10100
10100
|
if (a -= t.l, i !== a) throw new Error("Malformed AddinUdf: padding = " + a + " != " + i);
|
|
10101
10101
|
return t.l += i, n;
|
|
10102
10102
|
}
|
|
10103
|
-
function
|
|
10103
|
+
function li(t) {
|
|
10104
10104
|
var e = t.read_shift(2), r = t.read_shift(2), a = t.read_shift(2), n = t.read_shift(2);
|
|
10105
10105
|
return { s: { c: a, r: e }, e: { c: n, r } };
|
|
10106
10106
|
}
|
|
@@ -10583,7 +10583,7 @@ function Ld(t, e, r) {
|
|
|
10583
10583
|
return Fd(t, e, r);
|
|
10584
10584
|
}
|
|
10585
10585
|
function Ad(t, e) {
|
|
10586
|
-
for (var r = [], a = t.read_shift(2); a--; ) r.push(
|
|
10586
|
+
for (var r = [], a = t.read_shift(2); a--; ) r.push(li(t));
|
|
10587
10587
|
return r;
|
|
10588
10588
|
}
|
|
10589
10589
|
function Id(t) {
|
|
@@ -10637,7 +10637,7 @@ function Pd(t, e, r) {
|
|
|
10637
10637
|
}
|
|
10638
10638
|
}
|
|
10639
10639
|
function Dd(t, e) {
|
|
10640
|
-
var r =
|
|
10640
|
+
var r = li(t);
|
|
10641
10641
|
t.l += 16;
|
|
10642
10642
|
var a = F1(t, e - 24);
|
|
10643
10643
|
return [r, a];
|
|
@@ -10650,7 +10650,7 @@ function Rd(t) {
|
|
|
10650
10650
|
}
|
|
10651
10651
|
function Bd(t, e) {
|
|
10652
10652
|
t.read_shift(2);
|
|
10653
|
-
var r =
|
|
10653
|
+
var r = li(t), a = t.read_shift((e - 10) / 2, "dbcs-cont");
|
|
10654
10654
|
return a = a.replace(St, ""), [r, a];
|
|
10655
10655
|
}
|
|
10656
10656
|
function Vd(t) {
|
|
@@ -10894,7 +10894,7 @@ var op = [2, 3, 48, 49, 131, 139, 140, 245], Gi = /* @__PURE__ */ function() {
|
|
|
10894
10894
|
204: 1257,
|
|
10895
10895
|
/*::[*/
|
|
10896
10896
|
255: 16969
|
|
10897
|
-
}, e =
|
|
10897
|
+
}, e = ii({
|
|
10898
10898
|
/*::[*/
|
|
10899
10899
|
1: 437,
|
|
10900
10900
|
/*::[*/
|
|
@@ -11151,7 +11151,7 @@ var op = [2, 3, 48, 49, 131, 139, 140, 245], Gi = /* @__PURE__ */ function() {
|
|
|
11151
11151
|
function s(o, l) {
|
|
11152
11152
|
var c = l || {};
|
|
11153
11153
|
if (+c.codepage >= 0 && Qt(+c.codepage), c.type == "string") throw new Error("Cannot write DBF to JS string");
|
|
11154
|
-
var f = Ft(), h =
|
|
11154
|
+
var f = Ft(), h = ti(o, { header: 1, raw: !0, cellDates: !0 }), u = h[0], p = h.slice(1), m = o["!cols"] || [], d = 0, g = 0, x = 0, w = 1;
|
|
11155
11155
|
for (d = 0; d < u.length; ++d) {
|
|
11156
11156
|
if (((m[d] || {}).DBF || {}).name) {
|
|
11157
11157
|
u[d] = m[d].DBF.name, ++x;
|
|
@@ -11400,7 +11400,7 @@ var op = [2, 3, 48, 49, 131, 139, 140, 245], Gi = /* @__PURE__ */ function() {
|
|
|
11400
11400
|
for (d = parseInt(J[w].slice(1)) - 1, ce || (g = 0), V = v.length; V <= d; ++V) v[V] = [];
|
|
11401
11401
|
break;
|
|
11402
11402
|
case "K":
|
|
11403
|
-
ie = J[w].slice(1), ie.charAt(0) === '"' ? ie = ie.slice(1, ie.length - 1) : ie === "TRUE" ? ie = !0 : ie === "FALSE" ? ie = !1 : isNaN(tr(ie)) ? isNaN(ba(ie).getDate()) || (ie = Ue(ie)) : (ie = tr(ie), N !== null && Aa(N) && (ie =
|
|
11403
|
+
ie = J[w].slice(1), ie.charAt(0) === '"' ? ie = ie.slice(1, ie.length - 1) : ie === "TRUE" ? ie = !0 : ie === "FALSE" ? ie = !1 : isNaN(tr(ie)) ? isNaN(ba(ie).getDate()) || (ie = Ue(ie)) : (ie = tr(ie), N !== null && Aa(N) && (ie = oi(ie))), ue = !0;
|
|
11404
11404
|
break;
|
|
11405
11405
|
case "E":
|
|
11406
11406
|
G = !0;
|
|
@@ -11944,7 +11944,7 @@ var Yr = /* @__PURE__ */ function() {
|
|
|
11944
11944
|
case 14:
|
|
11945
11945
|
/* NUMBER */
|
|
11946
11946
|
case 16:
|
|
11947
|
-
Bt == 14 && (oe[2] & 112) == 112 && (oe[2] & 15) > 1 && (oe[2] & 15) < 15 && (oe[1].z = M.dateNF || me[14], M.cellDates && (oe[1].t = "d", oe[1].v =
|
|
11947
|
+
Bt == 14 && (oe[2] & 112) == 112 && (oe[2] & 15) > 1 && (oe[2] & 15) < 15 && (oe[1].z = M.dateNF || me[14], M.cellDates && (oe[1].t = "d", oe[1].v = oi(oe[1].v))), M.qpro && oe[3] > re && (O["!ref"] = we(b), Q[K] = O, q.push(K), O = M.dense ? [] : {}, b = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, re = oe[3], K = te || "Sheet" + (re + 1), te = "");
|
|
11948
11948
|
var ar = M.dense ? (O[oe[0].r] || [])[oe[0].c] : O[ge(oe[0])];
|
|
11949
11949
|
if (ar) {
|
|
11950
11950
|
ar.t = oe[1].t, ar.v = oe[1].v, oe[1].z != null && (ar.z = oe[1].z), oe[1].f != null && (ar.f = oe[1].f);
|
|
@@ -13274,7 +13274,7 @@ function Gp(t) {
|
|
|
13274
13274
|
for (var c = 0; c != 3; ++c) s[c] = Math.round(s[c] * 255);
|
|
13275
13275
|
return s;
|
|
13276
13276
|
}
|
|
13277
|
-
function
|
|
13277
|
+
function Qn(t, e) {
|
|
13278
13278
|
if (e === 0) return t;
|
|
13279
13279
|
var r = $p(Wp(t));
|
|
13280
13280
|
return e < 0 ? r[2] = r[2] * (1 + e) : r[2] = 1 - (1 - r[2]) * (1 - e), nn(Gp(r));
|
|
@@ -13286,19 +13286,19 @@ function sn(t) {
|
|
|
13286
13286
|
function on(t) {
|
|
13287
13287
|
return Math.floor((t - 5) / vt * 100 + 0.5) / 100;
|
|
13288
13288
|
}
|
|
13289
|
-
function
|
|
13289
|
+
function ei(t) {
|
|
13290
13290
|
return Math.round((t * vt + 5) / vt * 256) / 256;
|
|
13291
13291
|
}
|
|
13292
|
-
function
|
|
13293
|
-
return
|
|
13292
|
+
function Ci(t) {
|
|
13293
|
+
return ei(on(sn(t)));
|
|
13294
13294
|
}
|
|
13295
13295
|
function _s(t) {
|
|
13296
|
-
var e = Math.abs(t -
|
|
13297
|
-
if (e > 5e-3) for (vt = Xp; vt < zp; ++vt) Math.abs(t -
|
|
13296
|
+
var e = Math.abs(t - Ci(t)), r = vt;
|
|
13297
|
+
if (e > 5e-3) for (vt = Xp; vt < zp; ++vt) Math.abs(t - Ci(t)) <= e && (e = Math.abs(t - Ci(t)), r = vt);
|
|
13298
13298
|
vt = r;
|
|
13299
13299
|
}
|
|
13300
13300
|
function Pr(t) {
|
|
13301
|
-
t.width ? (t.wpx = sn(t.width), t.wch = on(t.wpx), t.MDW = vt) : t.wpx ? (t.wch = on(t.wpx), t.width =
|
|
13301
|
+
t.width ? (t.wpx = sn(t.width), t.wch = on(t.wpx), t.MDW = vt) : t.wpx ? (t.wch = on(t.wpx), t.width = ei(t.wch), t.MDW = vt) : typeof t.wch == "number" && (t.width = ei(t.wch), t.wpx = sn(t.width), t.MDW = vt), t.customWidth && delete t.customWidth;
|
|
13302
13302
|
}
|
|
13303
13303
|
var jp = 96, Gl = jp;
|
|
13304
13304
|
function ln(t) {
|
|
@@ -13647,7 +13647,7 @@ function qp(t, e, r, a) {
|
|
|
13647
13647
|
n.color.index = parseInt(o.indexed, 10);
|
|
13648
13648
|
var l = jr[n.color.index];
|
|
13649
13649
|
n.color.index == 81 && (l = jr[1]), l || (l = jr[1]), n.color.rgb = l[0].toString(16) + l[1].toString(16) + l[2].toString(16);
|
|
13650
|
-
} else o.theme && (n.color.theme = parseInt(o.theme, 10), o.tint && (n.color.tint = parseFloat(o.tint)), o.theme && r.themeElements && r.themeElements.clrScheme && (n.color.rgb =
|
|
13650
|
+
} else o.theme && (n.color.theme = parseInt(o.theme, 10), o.tint && (n.color.tint = parseFloat(o.tint)), o.theme && r.themeElements && r.themeElements.clrScheme && (n.color.rgb = Qn(r.themeElements.clrScheme[n.color.theme].rgb, n.color.tint || 0)));
|
|
13651
13651
|
break;
|
|
13652
13652
|
case "<color/>":
|
|
13653
13653
|
case "</color>":
|
|
@@ -13850,7 +13850,7 @@ function im(t, e, r) {
|
|
|
13850
13850
|
function sm(t, e) {
|
|
13851
13851
|
e || (e = X(25 + 4 * 32)), e.write_shift(2, t.sz * 20), Hu(t, e), e.write_shift(2, t.bold ? 700 : 400);
|
|
13852
13852
|
var r = 0;
|
|
13853
|
-
t.vertAlign == "superscript" ? r = 1 : t.vertAlign == "subscript" && (r = 2), e.write_shift(2, r), e.write_shift(1, t.underline || 0), e.write_shift(1, t.family || 0), e.write_shift(1, t.charset || 0), e.write_shift(1, 0),
|
|
13853
|
+
t.vertAlign == "superscript" ? r = 1 : t.vertAlign == "subscript" && (r = 2), e.write_shift(2, r), e.write_shift(1, t.underline || 0), e.write_shift(1, t.family || 0), e.write_shift(1, t.charset || 0), e.write_shift(1, 0), Jn(t.color, e);
|
|
13854
13854
|
var a = 0;
|
|
13855
13855
|
return a = 2, e.write_shift(1, a), ft(t.name, e), e.length > e.l ? e.slice(0, e.l) : e;
|
|
13856
13856
|
}
|
|
@@ -13874,14 +13874,14 @@ var om = [
|
|
|
13874
13874
|
"lightTrellis",
|
|
13875
13875
|
"gray125",
|
|
13876
13876
|
"gray0625"
|
|
13877
|
-
],
|
|
13877
|
+
], ki, lm = Ct;
|
|
13878
13878
|
function Ko(t, e) {
|
|
13879
|
-
e || (e = X(4 * 3 + 8 * 7 + 16 * 1)),
|
|
13880
|
-
var r =
|
|
13879
|
+
e || (e = X(4 * 3 + 8 * 7 + 16 * 1)), ki || (ki = ii(om));
|
|
13880
|
+
var r = ki[t.patternType];
|
|
13881
13881
|
r == null && (r = 40), e.write_shift(4, r);
|
|
13882
13882
|
var a = 0;
|
|
13883
13883
|
if (r != 40)
|
|
13884
|
-
for (
|
|
13884
|
+
for (Jn({ auto: 1 }, e), Jn({ auto: 1 }, e); a < 12; ++a) e.write_shift(4, 0);
|
|
13885
13885
|
else {
|
|
13886
13886
|
for (; a < 4; ++a) e.write_shift(4, 0);
|
|
13887
13887
|
for (; a < 12; ++a) e.write_shift(4, 0);
|
|
@@ -13905,11 +13905,11 @@ function hm(t, e) {
|
|
|
13905
13905
|
return e || (e = X(51)), e.write_shift(1, 0), Va(null, e), Va(null, e), Va(null, e), Va(null, e), Va(null, e), e.length > e.l ? e.slice(0, e.l) : e;
|
|
13906
13906
|
}
|
|
13907
13907
|
function um(t, e) {
|
|
13908
|
-
return e || (e = X(12 + 4 * 10)), e.write_shift(4, t.xfId), e.write_shift(2, 1), e.write_shift(1, 0), e.write_shift(1, 0),
|
|
13908
|
+
return e || (e = X(12 + 4 * 10)), e.write_shift(4, t.xfId), e.write_shift(2, 1), e.write_shift(1, 0), e.write_shift(1, 0), Yn(t.name || "", e), e.length > e.l ? e.slice(0, e.l) : e;
|
|
13909
13909
|
}
|
|
13910
13910
|
function dm(t, e, r) {
|
|
13911
13911
|
var a = X(2052);
|
|
13912
|
-
return a.write_shift(4, t),
|
|
13912
|
+
return a.write_shift(4, t), Yn(e, a), Yn(r, a), a.length > a.l ? a.slice(0, a.l) : a;
|
|
13913
13913
|
}
|
|
13914
13914
|
function pm(t, e, r) {
|
|
13915
13915
|
var a = {};
|
|
@@ -13923,7 +13923,7 @@ function pm(t, e, r) {
|
|
|
13923
13923
|
a.NumberFmt[l[0]] = l[1], yr(l[1], l[0]);
|
|
13924
13924
|
break;
|
|
13925
13925
|
case 43:
|
|
13926
|
-
a.Fonts.push(l), l.color.theme != null && e && e.themeElements && e.themeElements.clrScheme && (l.color.rgb =
|
|
13926
|
+
a.Fonts.push(l), l.color.theme != null && e && e.themeElements && e.themeElements.clrScheme && (l.color.rgb = Qn(e.themeElements.clrScheme[l.color.theme].rgb, l.color.tint || 0));
|
|
13927
13927
|
break;
|
|
13928
13928
|
case 1025:
|
|
13929
13929
|
break;
|
|
@@ -15179,7 +15179,7 @@ function eg(t, e) {
|
|
|
15179
15179
|
return r;
|
|
15180
15180
|
}
|
|
15181
15181
|
function tg(t, e, r) {
|
|
15182
|
-
for (var a = t.read_shift(r.biff == 12 ? 4 : 2), n = [], i = 0; i != a; ++i) n.push((r.biff == 12 ? ca :
|
|
15182
|
+
for (var a = t.read_shift(r.biff == 12 ? 4 : 2), n = [], i = 0; i != a; ++i) n.push((r.biff == 12 ? ca : li)(t));
|
|
15183
15183
|
return n;
|
|
15184
15184
|
}
|
|
15185
15185
|
function rg(t, e, r) {
|
|
@@ -15758,14 +15758,14 @@ function xt(t, e, r, a, n) {
|
|
|
15758
15758
|
);
|
|
15759
15759
|
break;
|
|
15760
15760
|
case "PtgAreaN":
|
|
15761
|
-
p = Fo(v[1][1], r ? { s: r } : s, n), o.push(
|
|
15761
|
+
p = Fo(v[1][1], r ? { s: r } : s, n), o.push(vi(p, n));
|
|
15762
15762
|
break;
|
|
15763
15763
|
case "PtgArea":
|
|
15764
|
-
p = Fo(v[1][1], s, n), o.push(
|
|
15764
|
+
p = Fo(v[1][1], s, n), o.push(vi(p, n));
|
|
15765
15765
|
break;
|
|
15766
15766
|
case "PtgArea3d":
|
|
15767
15767
|
h = /*::Number(*/
|
|
15768
|
-
v[1][1], p = v[1][2], m = Qo(a, h, n), o.push(m + "!" +
|
|
15768
|
+
v[1][1], p = v[1][2], m = Qo(a, h, n), o.push(m + "!" + vi(p, n));
|
|
15769
15769
|
break;
|
|
15770
15770
|
case "PtgAttrSum":
|
|
15771
15771
|
o.push("SUM(" + o.pop() + ")");
|
|
@@ -15985,7 +15985,7 @@ function Hg(t) {
|
|
|
15985
15985
|
} else if (typeof t == "number") return ta(t);
|
|
15986
15986
|
return ta(0);
|
|
15987
15987
|
}
|
|
15988
|
-
function
|
|
15988
|
+
function yi(t, e, r) {
|
|
15989
15989
|
var a = t.l + e, n = pr(t);
|
|
15990
15990
|
r.biff == 2 && ++t.l;
|
|
15991
15991
|
var i = Ug(t), s = t.read_shift(1);
|
|
@@ -16000,11 +16000,11 @@ function Wg(t, e, r, a, n) {
|
|
|
16000
16000
|
var h = ct([i, s, o, c]);
|
|
16001
16001
|
return h;
|
|
16002
16002
|
}
|
|
16003
|
-
function
|
|
16003
|
+
function ci(t, e, r) {
|
|
16004
16004
|
var a = t.read_shift(4), n = vn(t, a, r), i = t.read_shift(4), s = i > 0 ? xn(t, i, n, r) : null;
|
|
16005
16005
|
return [n, s];
|
|
16006
16006
|
}
|
|
16007
|
-
var $g =
|
|
16007
|
+
var $g = ci, fi = ci, Gg = ci, zg = ci, Xg = {
|
|
16008
16008
|
0: "BEEP",
|
|
16009
16009
|
1: "OPEN",
|
|
16010
16010
|
2: "OPEN.LINKS",
|
|
@@ -17144,7 +17144,7 @@ function Kg(t) {
|
|
|
17144
17144
|
var e = "of:=" + t.replace(Ss, "$1[.$2$3$4$5]").replace(/\]:\[/g, ":");
|
|
17145
17145
|
return e.replace(/;/g, "|").replace(/,/g, ";");
|
|
17146
17146
|
}
|
|
17147
|
-
function
|
|
17147
|
+
function _i(t) {
|
|
17148
17148
|
var e = t.split(":"), r = e[0].split(".")[0];
|
|
17149
17149
|
return [r, e[0].split(".")[1] + (e.length > 1 ? ":" + (e[1].split(".")[1] || e[1].split(".")[0]) : "")];
|
|
17150
17150
|
}
|
|
@@ -17165,9 +17165,9 @@ function Ls(t, e, r) {
|
|
|
17165
17165
|
return t.Count++, a;
|
|
17166
17166
|
return t[n] = { t: e }, t.Count++, t.Unique++, r && (Ka ? (r.has(e) || r.set(e, []), r.get(e).push(n)) : (Object.prototype.hasOwnProperty.call(r, e) || (r[e] = []), r[e].push(n))), n;
|
|
17167
17167
|
}
|
|
17168
|
-
function
|
|
17168
|
+
function hi(t, e) {
|
|
17169
17169
|
var r = { min: t + 1, max: t + 1 }, a = -1;
|
|
17170
|
-
return e.MDW && (vt = e.MDW), e.width != null ? r.customWidth = 1 : e.wpx != null ? a = on(e.wpx) : e.wch != null && (a = e.wch), a > -1 ? (r.width =
|
|
17170
|
+
return e.MDW && (vt = e.MDW), e.width != null ? r.customWidth = 1 : e.wpx != null ? a = on(e.wpx) : e.wch != null && (a = e.wch), a > -1 ? (r.width = ei(a), r.customWidth = 1) : e.width != null && (r.width = e.width), e.hidden && (r.hidden = !0), e.level != null && (r.outlineLevel = r.level = e.level), r;
|
|
17171
17171
|
}
|
|
17172
17172
|
function Jr(t, e) {
|
|
17173
17173
|
if (t) {
|
|
@@ -17218,7 +17218,7 @@ function sc(t, e, r, a, n, i) {
|
|
|
17218
17218
|
}
|
|
17219
17219
|
if (a.cellStyles && r != null)
|
|
17220
17220
|
try {
|
|
17221
|
-
t.s = i.Fills[r], t.s.fgColor && t.s.fgColor.theme && !t.s.fgColor.rgb && (t.s.fgColor.rgb =
|
|
17221
|
+
t.s = i.Fills[r], t.s.fgColor && t.s.fgColor.theme && !t.s.fgColor.rgb && (t.s.fgColor.rgb = Qn(n.themeElements.clrScheme[t.s.fgColor.theme].rgb, t.s.fgColor.tint || 0), a.WTF && (t.s.fgColor.raw_rgb = n.themeElements.clrScheme[t.s.fgColor.theme].rgb)), t.s.bgColor && t.s.bgColor.theme && (t.s.bgColor.rgb = Qn(n.themeElements.clrScheme[t.s.bgColor.theme].rgb, t.s.bgColor.tint || 0), a.WTF && (t.s.bgColor.raw_rgb = n.themeElements.clrScheme[t.s.bgColor.theme].rgb));
|
|
17222
17222
|
} catch (o) {
|
|
17223
17223
|
if (a.WTF && i.Fills) throw o;
|
|
17224
17224
|
}
|
|
@@ -17349,7 +17349,7 @@ function xx(t, e) {
|
|
|
17349
17349
|
}
|
|
17350
17350
|
function vx(t, e) {
|
|
17351
17351
|
for (var r = ["<cols>"], a, n = 0; n != e.length; ++n)
|
|
17352
|
-
(a = e[n]) && (r[r.length] = ae("col", null,
|
|
17352
|
+
(a = e[n]) && (r[r.length] = ae("col", null, hi(n, a)));
|
|
17353
17353
|
return r[r.length] = "</cols>", r.join("");
|
|
17354
17354
|
}
|
|
17355
17355
|
function Ex(t) {
|
|
@@ -17534,7 +17534,7 @@ var Tx = /* @__PURE__ */ function() {
|
|
|
17534
17534
|
(!f || f.cellText !== !1) && (A.w = A.v), A.v = cl[A.v];
|
|
17535
17535
|
break;
|
|
17536
17536
|
}
|
|
17537
|
-
if (R = J = 0, ie = null, le && k.s !== void 0 && (ie = p.CellXf[k.s], ie != null && (ie.numFmtId != null && (R = ie.numFmtId), f.cellStyles && ie.fillId != null && (J = ie.fillId))), sc(A, R, J, f, u, p), f.cellDates && le && A.t == "n" && Aa(me[R]) && (A.t = "d", A.v =
|
|
17537
|
+
if (R = J = 0, ie = null, le && k.s !== void 0 && (ie = p.CellXf[k.s], ie != null && (ie.numFmtId != null && (R = ie.numFmtId), f.cellStyles && ie.fillId != null && (J = ie.fillId))), sc(A, R, J, f, u, p), f.cellDates && le && A.t == "n" && Aa(me[R]) && (A.t = "d", A.v = oi(A.v)), k.cm && f.xlmeta) {
|
|
17538
17538
|
var ke = (f.xlmeta.Cell || [])[+k.cm - 1];
|
|
17539
17539
|
ke && ke.type == "XLDAPR" && (A.D = !0);
|
|
17540
17540
|
}
|
|
@@ -17635,7 +17635,7 @@ function Ox(t, e, r) {
|
|
|
17635
17635
|
var a = 192;
|
|
17636
17636
|
e && (e.above && (a &= -65), e.left && (a &= -129)), r.write_shift(1, a);
|
|
17637
17637
|
for (var n = 1; n < 3; ++n) r.write_shift(1, 0);
|
|
17638
|
-
return
|
|
17638
|
+
return Jn({ auto: 1 }, r), r.write_shift(-4, -1), r.write_shift(-4, -1), nl(t, r), r.slice(0, r.l);
|
|
17639
17639
|
}
|
|
17640
17640
|
function Px(t) {
|
|
17641
17641
|
var e = Kt(t);
|
|
@@ -17745,7 +17745,7 @@ function cv(t, e, r) {
|
|
|
17745
17745
|
var i = t.read_shift(1), s = [n, i, "b"];
|
|
17746
17746
|
if (r.cellFormula) {
|
|
17747
17747
|
t.l += 2;
|
|
17748
|
-
var o =
|
|
17748
|
+
var o = fi(t, a - t.l, r);
|
|
17749
17749
|
s[3] = xt(o, null, n, r.supbooks, r);
|
|
17750
17750
|
} else t.l = a;
|
|
17751
17751
|
return s;
|
|
@@ -17756,7 +17756,7 @@ function fv(t, e, r) {
|
|
|
17756
17756
|
var i = t.read_shift(1), s = [n, i, "e"];
|
|
17757
17757
|
if (r.cellFormula) {
|
|
17758
17758
|
t.l += 2;
|
|
17759
|
-
var o =
|
|
17759
|
+
var o = fi(t, a - t.l, r);
|
|
17760
17760
|
s[3] = xt(o, null, n, r.supbooks, r);
|
|
17761
17761
|
} else t.l = a;
|
|
17762
17762
|
return s;
|
|
@@ -17767,7 +17767,7 @@ function hv(t, e, r) {
|
|
|
17767
17767
|
var i = Et(t), s = [n, i, "n"];
|
|
17768
17768
|
if (r.cellFormula) {
|
|
17769
17769
|
t.l += 2;
|
|
17770
|
-
var o =
|
|
17770
|
+
var o = fi(t, a - t.l, r);
|
|
17771
17771
|
s[3] = xt(o, null, n, r.supbooks, r);
|
|
17772
17772
|
} else t.l = a;
|
|
17773
17773
|
return s;
|
|
@@ -17778,7 +17778,7 @@ function uv(t, e, r) {
|
|
|
17778
17778
|
var i = wt(t), s = [n, i, "str"];
|
|
17779
17779
|
if (r.cellFormula) {
|
|
17780
17780
|
t.l += 2;
|
|
17781
|
-
var o =
|
|
17781
|
+
var o = fi(t, a - t.l, r);
|
|
17782
17782
|
s[3] = xt(o, null, n, r.supbooks, r);
|
|
17783
17783
|
} else t.l = a;
|
|
17784
17784
|
return s;
|
|
@@ -17819,7 +17819,7 @@ function wv(t, e, r) {
|
|
|
17819
17819
|
}
|
|
17820
17820
|
function Cv(t, e, r) {
|
|
17821
17821
|
r == null && (r = X(18));
|
|
17822
|
-
var a =
|
|
17822
|
+
var a = hi(t, e);
|
|
17823
17823
|
r.write_shift(-4, t), r.write_shift(-4, t), r.write_shift(4, (a.width || 10) * 256), r.write_shift(
|
|
17824
17824
|
4,
|
|
17825
17825
|
0
|
|
@@ -18920,7 +18920,7 @@ function c5(t, e) {
|
|
|
18920
18920
|
function f5(t, e) {
|
|
18921
18921
|
e || (e = X(127));
|
|
18922
18922
|
for (var r = 0; r != 4; ++r) e.write_shift(4, 0);
|
|
18923
|
-
return ft("SheetJS", e), ft(
|
|
18923
|
+
return ft("SheetJS", e), ft($n.version, e), ft($n.version, e), ft("7262", e), e.length > e.l ? e.slice(0, e.l) : e;
|
|
18924
18924
|
}
|
|
18925
18925
|
function h5(t, e) {
|
|
18926
18926
|
e || (e = X(29)), e.write_shift(-4, 0), e.write_shift(-4, 460), e.write_shift(4, 28800), e.write_shift(4, 17600), e.write_shift(4, 500), e.write_shift(4, t), e.write_shift(4, t);
|
|
@@ -19126,7 +19126,7 @@ function B5(t) {
|
|
|
19126
19126
|
`).replace(/\r/g, `
|
|
19127
19127
|
`), t.v = t.w = t.ixfe = void 0;
|
|
19128
19128
|
}
|
|
19129
|
-
function
|
|
19129
|
+
function Ti(t, e) {
|
|
19130
19130
|
var r = e || {};
|
|
19131
19131
|
Ia();
|
|
19132
19132
|
var a = Ua(cs(t));
|
|
@@ -20057,13 +20057,13 @@ function Si(t, e) {
|
|
|
20057
20057
|
function zi(t, e) {
|
|
20058
20058
|
switch (Ms(e = e || {}), e.type || "base64") {
|
|
20059
20059
|
case "base64":
|
|
20060
|
-
return
|
|
20060
|
+
return Ti(Rt(t), e);
|
|
20061
20061
|
case "binary":
|
|
20062
20062
|
case "buffer":
|
|
20063
20063
|
case "file":
|
|
20064
|
-
return
|
|
20064
|
+
return Ti(t, e);
|
|
20065
20065
|
case "array":
|
|
20066
|
-
return
|
|
20066
|
+
return Ti(Br(t), e);
|
|
20067
20067
|
}
|
|
20068
20068
|
}
|
|
20069
20069
|
function V5(t, e) {
|
|
@@ -20185,7 +20185,7 @@ function K5(t, e, r, a) {
|
|
|
20185
20185
|
var n = Ae(t["!ref"]), i = t["!merges"] || [], s = 0, o = [];
|
|
20186
20186
|
t["!cols"] && t["!cols"].forEach(function(g, x) {
|
|
20187
20187
|
Pr(g);
|
|
20188
|
-
var w = !!g.width, v =
|
|
20188
|
+
var w = !!g.width, v = hi(x, g), F = { "ss:Index": x + 1 };
|
|
20189
20189
|
w && (F["ss:Width"] = sn(v.width)), g.hidden && (F["ss:Hidden"] = "1"), o.push(ae("Column", null, F));
|
|
20190
20190
|
});
|
|
20191
20191
|
for (var l = Array.isArray(t), c = n.s.r; c <= n.e.r; ++c) {
|
|
@@ -20210,7 +20210,7 @@ function Y5(t, e, r) {
|
|
|
20210
20210
|
return s.length > 0 && a.push("<Names>" + s + "</Names>"), s = i ? K5(i, e, t, r) : "", s.length > 0 && a.push("<Table>" + s + "</Table>"), a.push(G5(i, e, t, r)), a.join("");
|
|
20211
20211
|
}
|
|
20212
20212
|
function J5(t, e) {
|
|
20213
|
-
e || (e = {}), t.SSF || (t.SSF = He(me)), t.SSF && (Ia(),
|
|
20213
|
+
e || (e = {}), t.SSF || (t.SSF = He(me)), t.SSF && (Ia(), ni(t.SSF), e.revssf = si(t.SSF), e.revssf[t.SSF[65535]] = 0, e.ssf = t.SSF, e.cellXfs = [], Ur(e.cellXfs, {}, { revssf: { General: 0 } }));
|
|
20214
20214
|
var r = [];
|
|
20215
20215
|
r.push(V5(t, e)), r.push(U5()), r.push(""), r.push("");
|
|
20216
20216
|
for (var a = 0; a < t.SheetNames.length; ++a)
|
|
@@ -24871,7 +24871,7 @@ var cn = {
|
|
|
24871
24871
|
/*::[*/
|
|
24872
24872
|
6: {
|
|
24873
24873
|
/* n:"Formula", */
|
|
24874
|
-
f:
|
|
24874
|
+
f: yi
|
|
24875
24875
|
},
|
|
24876
24876
|
/*::[*/
|
|
24877
24877
|
10: {
|
|
@@ -26636,7 +26636,7 @@ var cn = {
|
|
|
26636
26636
|
/*::[*/
|
|
26637
26637
|
518: {
|
|
26638
26638
|
/* n:"Formula", */
|
|
26639
|
-
f:
|
|
26639
|
+
f: yi
|
|
26640
26640
|
},
|
|
26641
26641
|
/*::[*/
|
|
26642
26642
|
521: {
|
|
@@ -26664,7 +26664,7 @@ var cn = {
|
|
|
26664
26664
|
/*::[*/
|
|
26665
26665
|
1030: {
|
|
26666
26666
|
/* n:"Formula", */
|
|
26667
|
-
f:
|
|
26667
|
+
f: yi
|
|
26668
26668
|
},
|
|
26669
26669
|
/*::[*/
|
|
26670
26670
|
1033: {
|
|
@@ -26853,7 +26853,7 @@ function m4(t, e) {
|
|
|
26853
26853
|
if (e) {
|
|
26854
26854
|
var r = 0;
|
|
26855
26855
|
e.forEach(function(a, n) {
|
|
26856
|
-
++r <= 256 && a && ne(t, 125, zd(
|
|
26856
|
+
++r <= 256 && a && ne(t, 125, zd(hi(n, a), n));
|
|
26857
26857
|
});
|
|
26858
26858
|
}
|
|
26859
26859
|
}
|
|
@@ -26964,7 +26964,7 @@ function v4(t, e, r) {
|
|
|
26964
26964
|
}
|
|
26965
26965
|
function E4(t, e) {
|
|
26966
26966
|
var r = e || {}, a = [];
|
|
26967
|
-
t && !t.SSF && (t.SSF = He(me)), t && t.SSF && (Ia(),
|
|
26967
|
+
t && !t.SSF && (t.SSF = He(me)), t && t.SSF && (Ia(), ni(t.SSF), r.revssf = si(t.SSF), r.revssf[t.SSF[65535]] = 0, r.ssf = t.SSF), r.Strings = /*::((*/
|
|
26968
26968
|
[], r.Strings.Count = 0, r.Strings.Unique = 0, Os(r), r.cellXfs = [], Ur(r.cellXfs, {}, { revssf: { General: 0 } }), t.Props || (t.Props = {});
|
|
26969
26969
|
for (var n = 0; n < t.SheetNames.length; ++n) a[a.length] = x4(n, r, t);
|
|
26970
26970
|
return a.unshift(v4(t, a, r)), ct(a);
|
|
@@ -27208,7 +27208,7 @@ function kc(t, e) {
|
|
|
27208
27208
|
g.t = "d", g.v = Ue(x["date-value"]), r.cellDates || (g.t = "n", g.v = st(g.v)), g.z = "m/d/yy";
|
|
27209
27209
|
break;
|
|
27210
27210
|
case "time":
|
|
27211
|
-
g.t = "n", g.v = eu(x["time-value"]) / 86400, r.cellDates && (g.t = "d", g.v =
|
|
27211
|
+
g.t = "n", g.v = eu(x["time-value"]) / 86400, r.cellDates && (g.t = "d", g.v = oi(g.v)), g.z = "HH:MM:SS";
|
|
27212
27212
|
break;
|
|
27213
27213
|
case "number":
|
|
27214
27214
|
g.t = "n", g.v = parseFloat(x.数据数值);
|
|
@@ -27416,7 +27416,7 @@ function kc(t, e) {
|
|
|
27416
27416
|
else c = d.index + d[0].length;
|
|
27417
27417
|
break;
|
|
27418
27418
|
case "named-range":
|
|
27419
|
-
s = xe(d[0], !1), pe =
|
|
27419
|
+
s = xe(d[0], !1), pe = _i(s["cell-range-address"]);
|
|
27420
27420
|
var q = { Name: s.name, Ref: pe[0] + "!" + pe[1] };
|
|
27421
27421
|
K && (q.Sheet = p.length), Pe.Names.push(q);
|
|
27422
27422
|
break;
|
|
@@ -27511,7 +27511,7 @@ function kc(t, e) {
|
|
|
27511
27511
|
case "database-range":
|
|
27512
27512
|
if (d[1] === "/") break;
|
|
27513
27513
|
try {
|
|
27514
|
-
pe =
|
|
27514
|
+
pe = _i(xe(d[0])["target-range-address"]), u[pe[0]]["!autofilter"] = { ref: pe[1] };
|
|
27515
27515
|
} catch {
|
|
27516
27516
|
}
|
|
27517
27517
|
break;
|
|
@@ -27712,7 +27712,7 @@ function kc(t, e) {
|
|
|
27712
27712
|
case "a":
|
|
27713
27713
|
if (d[1] !== "/") {
|
|
27714
27714
|
if (G = xe(d[0], !1), !G.href) break;
|
|
27715
|
-
G.Target = Le(G.href), delete G.href, G.Target.charAt(0) == "#" && G.Target.indexOf(".") > -1 ? (pe =
|
|
27715
|
+
G.Target = Le(G.href), delete G.href, G.Target.charAt(0) == "#" && G.Target.indexOf(".") > -1 ? (pe = _i(G.Target.slice(1)), G.Target = "#" + pe[0] + "!" + pe[1]) : G.Target.match(/^\.\.[\\\/]/) && (G.Target = G.Target.slice(3));
|
|
27716
27716
|
}
|
|
27717
27717
|
break;
|
|
27718
27718
|
/* non-standard */
|
|
@@ -28269,7 +28269,7 @@ function P4(t, e, r) {
|
|
|
28269
28269
|
}
|
|
28270
28270
|
return h;
|
|
28271
28271
|
}
|
|
28272
|
-
function
|
|
28272
|
+
function Si(t, e) {
|
|
28273
28273
|
var r = new Uint8Array(32), a = na(r), n = 12, i = 0;
|
|
28274
28274
|
switch (r[0] = 5, t.t) {
|
|
28275
28275
|
case "n":
|
|
@@ -28288,7 +28288,7 @@ function bi(t, e) {
|
|
|
28288
28288
|
}
|
|
28289
28289
|
return a.setUint32(8, i, !0), r.slice(0, n);
|
|
28290
28290
|
}
|
|
28291
|
-
function
|
|
28291
|
+
function bi(t, e) {
|
|
28292
28292
|
var r = new Uint8Array(32), a = na(r), n = 12, i = 0;
|
|
28293
28293
|
switch (r[0] = 3, t.t) {
|
|
28294
28294
|
case "n":
|
|
@@ -28435,7 +28435,7 @@ function W4(t, e) {
|
|
|
28435
28435
|
throw new Error("Empty NUMBERS file");
|
|
28436
28436
|
return r;
|
|
28437
28437
|
}
|
|
28438
|
-
function
|
|
28438
|
+
function Fi(t) {
|
|
28439
28439
|
var e, r, a, n, i = {}, s = [];
|
|
28440
28440
|
if (t.FullPaths.forEach(function(l) {
|
|
28441
28441
|
if (l.match(/\.iwpv2/))
|
|
@@ -28490,13 +28490,13 @@ function $4(t, e, r) {
|
|
|
28490
28490
|
var g, x;
|
|
28491
28491
|
switch (typeof e[d]) {
|
|
28492
28492
|
case "string":
|
|
28493
|
-
g =
|
|
28493
|
+
g = Si({ t: "s", v: e[d] }, r), x = bi({ t: "s", v: e[d] }, r);
|
|
28494
28494
|
break;
|
|
28495
28495
|
case "number":
|
|
28496
|
-
g =
|
|
28496
|
+
g = Si({ t: "n", v: e[d] }, r), x = bi({ t: "n", v: e[d] }, r);
|
|
28497
28497
|
break;
|
|
28498
28498
|
case "boolean":
|
|
28499
|
-
g =
|
|
28499
|
+
g = Si({ t: "b", v: e[d] }, r), x = bi({ t: "b", v: e[d] }, r);
|
|
28500
28500
|
break;
|
|
28501
28501
|
default:
|
|
28502
28502
|
throw new Error("Unsupported value " + e[d]);
|
|
@@ -28516,7 +28516,7 @@ function G4(t, e) {
|
|
|
28516
28516
|
a.s.r = a.s.c = 0;
|
|
28517
28517
|
var n = !1;
|
|
28518
28518
|
a.e.c > 9 && (n = !0, a.e.c = 9), a.e.r > 49 && (n = !0, a.e.r = 49), n && console.error("The Numbers writer is currently limited to ".concat(we(a)));
|
|
28519
|
-
var i =
|
|
28519
|
+
var i = ti(r, { range: a, header: 1 }), s = ["~Sh33tJ5~"];
|
|
28520
28520
|
i.forEach(function(D) {
|
|
28521
28521
|
return D.forEach(function(M) {
|
|
28522
28522
|
typeof M == "string" && s.push(M);
|
|
@@ -28787,12 +28787,12 @@ function K4(t, e) {
|
|
|
28787
28787
|
if (Ia(), e = e || {}, Ms(e), Gt(t, "META-INF/manifest.xml") || Gt(t, "objectdata.xml")) return s0(t, e);
|
|
28788
28788
|
if (Gt(t, "Index/Document.iwa")) {
|
|
28789
28789
|
if (typeof Uint8Array > "u") throw new Error("NUMBERS file parsing requires Uint8Array support");
|
|
28790
|
-
if (typeof
|
|
28791
|
-
if (t.FileIndex) return
|
|
28790
|
+
if (typeof Fi < "u") {
|
|
28791
|
+
if (t.FileIndex) return Fi(t);
|
|
28792
28792
|
var r = de.utils.cfb_new();
|
|
28793
28793
|
return go(t).forEach(function(le) {
|
|
28794
28794
|
Ce(r, le, iu(t, le));
|
|
28795
|
-
}),
|
|
28795
|
+
}), Fi(r);
|
|
28796
28796
|
}
|
|
28797
28797
|
throw new Error("Unsupported NUMBERS file");
|
|
28798
28798
|
}
|
|
@@ -28905,7 +28905,7 @@ function J4(t, e) {
|
|
|
28905
28905
|
return e.bookType == "ods" ? yc(t, e) : e.bookType == "numbers" ? G4(t, e) : e.bookType == "xlsb" ? q4(t, e) : Z4(t, e);
|
|
28906
28906
|
}
|
|
28907
28907
|
function q4(t, e) {
|
|
28908
|
-
va = 1024, t && !t.SSF && (t.SSF = He(me)), t && t.SSF && (Ia(),
|
|
28908
|
+
va = 1024, t && !t.SSF && (t.SSF = He(me)), t && t.SSF && (Ia(), ni(t.SSF), e.revssf = si(t.SSF), e.revssf[t.SSF[65535]] = 0, e.ssf = t.SSF), e.rels = {}, e.wbrels = {}, e.Strings = /*::((*/
|
|
28909
28909
|
[], e.Strings.Count = 0, e.Strings.Unique = 0, Ka ? e.revStrings = /* @__PURE__ */ new Map() : (e.revStrings = {}, e.revStrings.foo = [], delete e.revStrings.foo);
|
|
28910
28910
|
var r = e.bookType == "xlsb" ? "bin" : "xml", a = ql.indexOf(e.bookType) > -1, n = Es();
|
|
28911
28911
|
Os(e = e || {});
|
|
@@ -28933,7 +28933,7 @@ function q4(t, e) {
|
|
|
28933
28933
|
return e.Strings != null && e.Strings.length > 0 && (s = "xl/sharedStrings." + r, Ce(i, s, L5(e.Strings, s, e)), n.strs.push(s), Me(e.wbrels, -1, "sharedStrings." + r, Te.SST)), s = "xl/workbook." + r, Ce(i, s, S5(t, s)), n.workbooks.push(s), Me(e.rels, 1, s, Te.WB), s = "xl/theme/theme1.xml", Ce(i, s, Ts(t.Themes, e)), n.themes.push(s), Me(e.wbrels, -1, "theme/theme1.xml", Te.THEME), s = "xl/styles." + r, Ce(i, s, F5(t, s, e)), n.styles.push(s), Me(e.wbrels, -1, "styles." + r, Te.STY), t.vbaraw && a && (s = "xl/vbaProject.bin", Ce(i, s, t.vbaraw), n.vba.push(s), Me(e.wbrels, -1, "vbaProject.bin", Te.VBA)), s = "xl/metadata." + r, Ce(i, s, I5(s)), n.metadata.push(s), Me(e.wbrels, -1, "metadata." + r, Te.XLMETA), Ce(i, "[Content_Types].xml", fl(n, e)), Ce(i, "_rels/.rels", ya(e.rels)), Ce(i, "xl/_rels/workbook." + r + ".rels", ya(e.wbrels)), delete e.revssf, delete e.ssf, i;
|
|
28934
28934
|
}
|
|
28935
28935
|
function Z4(t, e) {
|
|
28936
|
-
va = 1024, t && !t.SSF && (t.SSF = He(me)), t && t.SSF && (Ia(),
|
|
28936
|
+
va = 1024, t && !t.SSF && (t.SSF = He(me)), t && t.SSF && (Ia(), ni(t.SSF), e.revssf = si(t.SSF), e.revssf[t.SSF[65535]] = 0, e.ssf = t.SSF), e.rels = {}, e.wbrels = {}, e.Strings = /*::((*/
|
|
28937
28937
|
[], e.Strings.Count = 0, e.Strings.Unique = 0, Ka ? e.revStrings = /* @__PURE__ */ new Map() : (e.revStrings = {}, e.revStrings.foo = [], delete e.revStrings.foo);
|
|
28938
28938
|
var r = "xml", a = ql.indexOf(e.bookType) > -1, n = Es();
|
|
28939
28939
|
Os(e = e || {});
|
|
@@ -29037,7 +29037,7 @@ function r3(t, e) {
|
|
|
29037
29037
|
function a3(t) {
|
|
29038
29038
|
return t.match(/[^\x00-\x7F]/) ? fr(t) : t;
|
|
29039
29039
|
}
|
|
29040
|
-
function
|
|
29040
|
+
function Li(t, e, r, a) {
|
|
29041
29041
|
return a ? (r.type = "string", Fa.to_workbook(t, r)) : Fa.to_workbook(e, r);
|
|
29042
29042
|
}
|
|
29043
29043
|
function Ki(t, e) {
|
|
@@ -29068,9 +29068,9 @@ function Ki(t, e) {
|
|
|
29068
29068
|
if (n[1] === 65 && n[2] === 66 && n[3] === 76) return Pl.to_workbook(a, r);
|
|
29069
29069
|
break;
|
|
29070
29070
|
case 80:
|
|
29071
|
-
return n[1] === 75 && n[2] < 9 && n[3] < 9 ? e3(a, r) :
|
|
29071
|
+
return n[1] === 75 && n[2] < 9 && n[3] < 9 ? e3(a, r) : Li(t, a, r, i);
|
|
29072
29072
|
case 239:
|
|
29073
|
-
return n[3] === 60 ? zi(a, r) :
|
|
29073
|
+
return n[3] === 60 ? zi(a, r) : Li(t, a, r, i);
|
|
29074
29074
|
case 255:
|
|
29075
29075
|
if (n[1] === 254)
|
|
29076
29076
|
return r3(a, r);
|
|
@@ -29096,7 +29096,7 @@ function Ki(t, e) {
|
|
|
29096
29096
|
if (n[1] === 80 && n[2] === 78 && n[3] === 71) throw new Error("PNG Image File is not a spreadsheet");
|
|
29097
29097
|
break;
|
|
29098
29098
|
}
|
|
29099
|
-
return op.indexOf(n[0]) > -1 && n[2] <= 12 && n[3] <= 31 ? Gi.to_workbook(a, r) :
|
|
29099
|
+
return op.indexOf(n[0]) > -1 && n[2] <= 12 && n[3] <= 31 ? Gi.to_workbook(a, r) : Li(t, a, r, i);
|
|
29100
29100
|
}
|
|
29101
29101
|
function Sc(t, e) {
|
|
29102
29102
|
switch (e.type) {
|
|
@@ -29145,7 +29145,7 @@ function i3(t, e) {
|
|
|
29145
29145
|
), compression: !!e.compression }) : t.generate(r);
|
|
29146
29146
|
if (typeof Deno < "u" && typeof n == "string") {
|
|
29147
29147
|
if (e.type == "binary" || e.type == "base64") return n;
|
|
29148
|
-
n = new Uint8Array(
|
|
29148
|
+
n = new Uint8Array(ai(n));
|
|
29149
29149
|
}
|
|
29150
29150
|
return e.password && typeof encrypt_agile < "u" ? Sc(encrypt_agile(n, e.password), e) : e.type === "file" ? un(e.file, n) : e.type == "string" ? De(
|
|
29151
29151
|
/*::(*/
|
|
@@ -29215,7 +29215,7 @@ function bc(t, e) {
|
|
|
29215
29215
|
if (r.cellStyles && (r.cellNF = !0, r.sheetStubs = !0), r.type == "array") {
|
|
29216
29216
|
r.type = "binary";
|
|
29217
29217
|
var a = bc(t, r);
|
|
29218
|
-
return r.type = "array",
|
|
29218
|
+
return r.type = "array", ai(a);
|
|
29219
29219
|
}
|
|
29220
29220
|
var n = 0;
|
|
29221
29221
|
if (r.sheet && (typeof r.sheet == "number" ? n = r.sheet : n = t.SheetNames.indexOf(r.sheet), !t.SheetNames[n]))
|
|
@@ -29337,7 +29337,7 @@ function f3(t, e, r, a, n, i, s, o) {
|
|
|
29337
29337
|
}
|
|
29338
29338
|
return { row: u, isempty: h };
|
|
29339
29339
|
}
|
|
29340
|
-
function
|
|
29340
|
+
function ti(t, e) {
|
|
29341
29341
|
if (t == null || t["!ref"] == null) return [];
|
|
29342
29342
|
var r = { t: "n", v: 0 }, a = 0, n = 1, i = [], s = 0, o = "", l = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, c = e || {}, f = c.range != null ? c.range : t["!ref"];
|
|
29343
29343
|
switch (c.header === 1 ? a = 1 : c.header === "A" ? a = 2 : Array.isArray(c.header) ? a = 3 : c.header == null && (a = 0), typeof f) {
|
|
@@ -29562,10 +29562,10 @@ var Nn = {
|
|
|
29562
29562
|
table_to_book: T4,
|
|
29563
29563
|
sheet_to_csv: Ds,
|
|
29564
29564
|
sheet_to_txt: Fc,
|
|
29565
|
-
sheet_to_json:
|
|
29565
|
+
sheet_to_json: ti,
|
|
29566
29566
|
sheet_to_html: Ec,
|
|
29567
29567
|
sheet_to_formulae: u3,
|
|
29568
|
-
sheet_to_row_object_array:
|
|
29568
|
+
sheet_to_row_object_array: ti,
|
|
29569
29569
|
sheet_get_cell: hn,
|
|
29570
29570
|
book_new: Rs,
|
|
29571
29571
|
book_append_sheet: Bs,
|
|
@@ -29829,13 +29829,13 @@ class u0 {
|
|
|
29829
29829
|
}
|
|
29830
29830
|
const Zt = class Zt extends Fe {
|
|
29831
29831
|
constructor(e) {
|
|
29832
|
-
super(e), this.inputType = {}, this.container = null, this.defaultLanguage = "", this.uploadSettings = /* @__PURE__ */ new Map(), this.popup = null, this.componentPath = "", this.$id = "", this.instanceId = Bn(), this.componentPath = e.title || this.instanceId, e.default ? this.value = e.default : this.value || (this.value = {}), this.value.$id = this.$id = Bn(), this.messageHandler = (n) => {
|
|
29832
|
+
super(e), this.inputType = {}, this.container = null, this.defaultLanguage = "", this.uploadSettings = /* @__PURE__ */ new Map(), this.popup = null, this.componentPath = "", this.$id = "", this.isDerty = !1, this.instanceId = Bn(), this.componentPath = e.title || this.instanceId, e.default ? this.value = e.default : this.value || (this.value = {}), this.value.$id = this.$id = Bn(), this.messageHandler = (n) => {
|
|
29833
29833
|
const { type: i, data: s } = n.data || {};
|
|
29834
|
-
i === "TEXT_ELEMENT_CLICKED" && s.$id == this.$id && this.showPopup();
|
|
29834
|
+
i === "TEXT_ELEMENT_CLICKED" && (console.log("dataId", s.$id), console.log("thisId", this.$id), s.$id == this.$id && this.showPopup());
|
|
29835
29835
|
};
|
|
29836
29836
|
const r = Zt.messageListeners.get(this.instanceId);
|
|
29837
29837
|
r && window.removeEventListener("message", r), Zt.messageListeners.set(this.instanceId, this.messageHandler), window.addEventListener("message", this.messageHandler), this.defaultLanguage = this.resolveDefaultLanguage();
|
|
29838
|
-
const a = e.defaultValue || Rn(this.defaultLanguage);
|
|
29838
|
+
const a = e.multiImg ? e.defaultValue || "" : e.defaultValue || Rn(this.defaultLanguage);
|
|
29839
29839
|
e.languages.forEach((n) => {
|
|
29840
29840
|
var i, s;
|
|
29841
29841
|
n in (this.value || {}) || (this.value || (this.value = {}), n === this.defaultLanguage && a ? this.value[n] = ((i = e.default) == null ? void 0 : i[n]) || a : this.value[n] = ((s = e.default) == null ? void 0 : s[n]) || "");
|
|
@@ -29856,7 +29856,7 @@ const Zt = class Zt extends Fe {
|
|
|
29856
29856
|
var o;
|
|
29857
29857
|
const a = ((o = this.value) == null ? void 0 : o[e]) || "", n = Rn(e, this.props.placeholder || Pi), i = this.uploadSettings.get(e);
|
|
29858
29858
|
if (this.props.multiImg && !i) {
|
|
29859
|
-
const l = new
|
|
29859
|
+
const l = new Un({
|
|
29860
29860
|
defaultUrl: a || "",
|
|
29861
29861
|
title: "",
|
|
29862
29862
|
id: `${this.id}_upload_${e}`
|
|
@@ -29920,7 +29920,7 @@ const Zt = class Zt extends Fe {
|
|
|
29920
29920
|
this.popup || (this.props.multiImg && this.props.languages.forEach((r) => {
|
|
29921
29921
|
var a;
|
|
29922
29922
|
if (!this.uploadSettings.has(r)) {
|
|
29923
|
-
const n = ((a = this.value) == null ? void 0 : a[r]) || "", i = new
|
|
29923
|
+
const n = ((a = this.value) == null ? void 0 : a[r]) || "", i = new Un({
|
|
29924
29924
|
defaultUrl: n,
|
|
29925
29925
|
title: "",
|
|
29926
29926
|
id: `${this.id}_upload_${r}`
|
|
@@ -29965,7 +29965,7 @@ const Zt = class Zt extends Fe {
|
|
|
29965
29965
|
}, window.addEventListener("resize", this.resizeHandler), e;
|
|
29966
29966
|
}
|
|
29967
29967
|
setValue(e) {
|
|
29968
|
-
|
|
29968
|
+
e.$id || (e.$id = this.$id), e.$id != this.$id && (this.$id = e.$id), super.setValue(e), this.container && this.props.languages.forEach((r) => {
|
|
29969
29969
|
var a;
|
|
29970
29970
|
if (this.props.multiImg) {
|
|
29971
29971
|
const n = this.uploadSettings.get(r);
|
|
@@ -30390,7 +30390,7 @@ class G3 extends hr {
|
|
|
30390
30390
|
title: "Background Image",
|
|
30391
30391
|
collapsed: e == null ? void 0 : e.collapsed,
|
|
30392
30392
|
settings: {
|
|
30393
|
-
backgroundImage: new
|
|
30393
|
+
backgroundImage: new Un({
|
|
30394
30394
|
...e == null ? void 0 : e.uploadProps,
|
|
30395
30395
|
default: (e == null ? void 0 : e.backgroundImage) ?? ""
|
|
30396
30396
|
}),
|
|
@@ -30429,7 +30429,7 @@ class z3 extends hr {
|
|
|
30429
30429
|
title: (e == null ? void 0 : e.title) ?? "Image",
|
|
30430
30430
|
collapsed: e == null ? void 0 : e.collapsed,
|
|
30431
30431
|
settings: {
|
|
30432
|
-
image: new
|
|
30432
|
+
image: new Un({
|
|
30433
30433
|
...e == null ? void 0 : e.uploadProps,
|
|
30434
30434
|
default: (e == null ? void 0 : e.image) ?? ""
|
|
30435
30435
|
}),
|
|
@@ -30477,7 +30477,7 @@ export {
|
|
|
30477
30477
|
ff as TabsSettingGroup,
|
|
30478
30478
|
P3 as Toggle,
|
|
30479
30479
|
V3 as TranslationManager,
|
|
30480
|
-
|
|
30480
|
+
Un as UploadSetting,
|
|
30481
30481
|
lh as WidthSetting,
|
|
30482
30482
|
A3 as asSettingGroupWithSettings,
|
|
30483
30483
|
hf as createSettingGroup,
|