@univerjs/engine-render 0.6.8 → 0.6.9-experimental.20250406-d422c87
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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1037 -1036
- package/lib/index.js +1037 -1036
- package/lib/umd/index.js +1 -1
- package/package.json +3 -3
- package/LICENSE +0 -176
package/lib/es/index.js
CHANGED
|
@@ -32680,10 +32680,10 @@ class G2 {
|
|
|
32680
32680
|
superscriptOffset: p,
|
|
32681
32681
|
hdmxData: v,
|
|
32682
32682
|
glyphHorizonMap: m
|
|
32683
|
-
} = s, f = v == null ? void 0 : v.indexOf(Math.floor(e)),
|
|
32683
|
+
} = s, f = v == null ? void 0 : v.indexOf(Math.floor(e)), b = m.get(a.charCodeAt(0));
|
|
32684
32684
|
let z = n;
|
|
32685
|
-
if (
|
|
32686
|
-
const { width: D, pixelsPerEm: j = [] } =
|
|
32685
|
+
if (b) {
|
|
32686
|
+
const { width: D, pixelsPerEm: j = [] } = b;
|
|
32687
32687
|
f ? z = j[f] : z = D;
|
|
32688
32688
|
}
|
|
32689
32689
|
return {
|
|
@@ -32931,20 +32931,20 @@ function Tv(r, t, e, a, s) {
|
|
|
32931
32931
|
};
|
|
32932
32932
|
const m = e.length - 1, f = a.length - 1;
|
|
32933
32933
|
if (u && g !== -1 && c !== -1) {
|
|
32934
|
-
const
|
|
32934
|
+
const b = e[g - 1] || 0, z = e[h] || e[m], D = a[c - 1] || 0, j = a[p] || a[f];
|
|
32935
32935
|
v = {
|
|
32936
32936
|
...v,
|
|
32937
|
-
startY:
|
|
32937
|
+
startY: b,
|
|
32938
32938
|
endY: z,
|
|
32939
32939
|
startX: D,
|
|
32940
32940
|
endX: j
|
|
32941
32941
|
};
|
|
32942
32942
|
} else if (!u && h !== -1 && p !== -1) {
|
|
32943
|
-
const
|
|
32943
|
+
const b = e[h] || e[m], z = a[p] || a[f];
|
|
32944
32944
|
v = {
|
|
32945
32945
|
...v,
|
|
32946
32946
|
startY: n,
|
|
32947
|
-
endY:
|
|
32947
|
+
endY: b,
|
|
32948
32948
|
startX: o,
|
|
32949
32949
|
endX: z
|
|
32950
32950
|
};
|
|
@@ -34527,10 +34527,10 @@ function T7(r, t, e) {
|
|
|
34527
34527
|
if (u === ee.UP) {
|
|
34528
34528
|
let v = 0;
|
|
34529
34529
|
for (let m = 0; m < d; m++) {
|
|
34530
|
-
const f = r[m], { lineHeight:
|
|
34531
|
-
v += m === 0 ? 0 :
|
|
34532
|
-
const z = t * c +
|
|
34533
|
-
a.push(v / g), z > n && (n = z), m === 0 && (i +=
|
|
34530
|
+
const f = r[m], { lineHeight: b = 0 } = f;
|
|
34531
|
+
v += m === 0 ? 0 : b;
|
|
34532
|
+
const z = t * c + b * h;
|
|
34533
|
+
a.push(v / g), z > n && (n = z), m === 0 && (i += b * c, l += b * h);
|
|
34534
34534
|
}
|
|
34535
34535
|
i += v / c + t * h, l -= n;
|
|
34536
34536
|
} else {
|
|
@@ -34540,17 +34540,17 @@ function T7(r, t, e) {
|
|
|
34540
34540
|
const j = r[D], { lineHeight: w = 0 } = j, x = w / g, C = (t + x) * c;
|
|
34541
34541
|
f.unshift(w / g), C > n && (n = C, v = x, m = D), D === 0 ? i += w * c : D === d - 1 ? i += t * h + w / c : i += w / c;
|
|
34542
34542
|
}
|
|
34543
|
-
let
|
|
34543
|
+
let b = ((p = r[m]) == null ? void 0 : p.lineHeight) || 0, z = 0;
|
|
34544
34544
|
for (let D = m + 1; D <= d - 1; D++) {
|
|
34545
34545
|
const j = r[D], { lineHeight: w = 0 } = j;
|
|
34546
|
-
|
|
34546
|
+
b += w, z += f[D] || 0, a[D] = -z;
|
|
34547
34547
|
}
|
|
34548
34548
|
z = 0;
|
|
34549
34549
|
for (let D = m - 1; D >= 0; D--) {
|
|
34550
34550
|
const j = r[D], { lineHeight: w = 0 } = j;
|
|
34551
34551
|
z += f[D + 1] || 0, a[D] = z, s += w;
|
|
34552
34552
|
}
|
|
34553
|
-
a[m] = 0, d === 1 && (i += t * h), o =
|
|
34553
|
+
a[m] = 0, d === 1 && (i += t * h), o = b / c - v * h;
|
|
34554
34554
|
}
|
|
34555
34555
|
return {
|
|
34556
34556
|
rotateTranslateXList: a,
|
|
@@ -34590,10 +34590,10 @@ function Nv(r, t, e) {
|
|
|
34590
34590
|
};
|
|
34591
34591
|
}
|
|
34592
34592
|
function $v(r, t, e, a) {
|
|
34593
|
-
const { left: s = 0, top: n = 0, width: i = 0, height: o = 0, angle: l = 0 } = r, { left: u = 0, top: d = 0, angle: g = 0 } = t, c = u + e / 2, h = d + a / 2, p = s + u, v = n + d, m = p + i / 2, f = v + o / 2,
|
|
34593
|
+
const { left: s = 0, top: n = 0, width: i = 0, height: o = 0, angle: l = 0 } = r, { left: u = 0, top: d = 0, angle: g = 0 } = t, c = u + e / 2, h = d + a / 2, p = s + u, v = n + d, m = p + i / 2, f = v + o / 2, b = U4(new U(c, h), g, new U(p, v), new U(m, f));
|
|
34594
34594
|
return {
|
|
34595
|
-
left:
|
|
34596
|
-
top:
|
|
34595
|
+
left: b.x,
|
|
34596
|
+
top: b.y,
|
|
34597
34597
|
angle: g + l
|
|
34598
34598
|
};
|
|
34599
34599
|
}
|
|
@@ -35867,7 +35867,7 @@ let nb = class extends j3 {
|
|
|
35867
35867
|
if (!u || !p || !d || !c || g === void 0 || h === void 0)
|
|
35868
35868
|
return;
|
|
35869
35869
|
e.save();
|
|
35870
|
-
const { scaleX: m, scaleY: f } = e.getScale(),
|
|
35870
|
+
const { scaleX: m, scaleY: f } = e.getScale(), b = {
|
|
35871
35871
|
ctx: e,
|
|
35872
35872
|
backgroundPositions: v,
|
|
35873
35873
|
scaleX: m,
|
|
@@ -35882,29 +35882,29 @@ let nb = class extends j3 {
|
|
|
35882
35882
|
z.push(...C);
|
|
35883
35883
|
});
|
|
35884
35884
|
const D = (x) => {
|
|
35885
|
-
const C = p[x], T = (B,
|
|
35886
|
-
if (s.worksheet.getSpanModel().getMergeDataIndex(B,
|
|
35885
|
+
const C = p[x], T = (B, O, M) => {
|
|
35886
|
+
if (s.worksheet.getSpanModel().getMergeDataIndex(B, O) !== -1)
|
|
35887
35887
|
return;
|
|
35888
|
-
const
|
|
35889
|
-
if (!
|
|
35890
|
-
(
|
|
35888
|
+
const I = s.getCellByIndexWithNoHeader(B, O);
|
|
35889
|
+
if (!I) return;
|
|
35890
|
+
(M || C.getValue(B, O)) && (b.cellInfo = I, this.renderBGByCell(b, B, O));
|
|
35891
35891
|
};
|
|
35892
35892
|
e.fillStyle = x || S2([255, 255, 255]);
|
|
35893
35893
|
const F = new Path2D();
|
|
35894
|
-
|
|
35894
|
+
b.backgroundPaths = F, e.beginPath();
|
|
35895
35895
|
const S = C.getSizeOf();
|
|
35896
|
-
i.reduce((B,
|
|
35896
|
+
i.reduce((B, O) => B + (O.endRow - O.startRow) * (O.endColumn - O.startColumn), 0) < S ? i.forEach((B) => {
|
|
35897
35897
|
$3.foreach(B, T);
|
|
35898
35898
|
}) : C.forValue(T), e.fill(F), e.closePath();
|
|
35899
35899
|
}, j = (x) => {
|
|
35900
35900
|
const C = p[x];
|
|
35901
35901
|
e.fillStyle = x || S2([255, 255, 255]);
|
|
35902
35902
|
const T = new Path2D();
|
|
35903
|
-
|
|
35903
|
+
b.backgroundPaths = T, e.beginPath(), z.forEach((F) => {
|
|
35904
35904
|
if (C.getValue(F.startRow, F.startColumn)) {
|
|
35905
|
-
const
|
|
35906
|
-
if (!
|
|
35907
|
-
|
|
35905
|
+
const A = s.getCellWithCoordByIndex(F.startRow, F.startColumn, !1);
|
|
35906
|
+
if (!A) return;
|
|
35907
|
+
b.cellInfo = A, this.renderBGByCell(b, F.startRow, F.startColumn);
|
|
35908
35908
|
}
|
|
35909
35909
|
}), e.fill(T), e.closePath();
|
|
35910
35910
|
}, w = Object.keys(p);
|
|
@@ -35917,8 +35917,8 @@ let nb = class extends j3 {
|
|
|
35917
35917
|
renderBGByCell(e, a, s) {
|
|
35918
35918
|
const { spreadsheetSkeleton: n, backgroundPaths: i, scaleX: o, scaleY: l, viewRanges: u, diffRanges: d, cellInfo: g } = e;
|
|
35919
35919
|
let { startY: c, endY: h, startX: p, endX: v } = g;
|
|
35920
|
-
const { isMerged: m, isMergedMainCell: f, mergeInfo:
|
|
35921
|
-
if (c =
|
|
35920
|
+
const { isMerged: m, isMergedMainCell: f, mergeInfo: b } = g, z = d && d.length > 0 ? d : u;
|
|
35921
|
+
if (c = b.startY, h = b.endY, p = b.startX, v = b.endX, !m && !f && !x7(z, a, s))
|
|
35922
35922
|
return !0;
|
|
35923
35923
|
const D = n.worksheet.getRowVisible(a), j = n.worksheet.getColVisible(s);
|
|
35924
35924
|
if (!D || !j) return !0;
|
|
@@ -35952,19 +35952,19 @@ let lb = class extends j3 {
|
|
|
35952
35952
|
spreadsheetSkeleton: s
|
|
35953
35953
|
};
|
|
35954
35954
|
e.beginPath(), i.forEach((f) => {
|
|
35955
|
-
$3.foreach(f, (
|
|
35956
|
-
const D = v.getValue(
|
|
35957
|
-
D && this.renderBorderByCell(m,
|
|
35955
|
+
$3.foreach(f, (b, z) => {
|
|
35956
|
+
const D = v.getValue(b, z);
|
|
35957
|
+
D && this.renderBorderByCell(m, b, z, D);
|
|
35958
35958
|
});
|
|
35959
35959
|
}), e.closePath(), e.restore();
|
|
35960
35960
|
}
|
|
35961
35961
|
renderBorderByCell(e, a, s, n) {
|
|
35962
|
-
const { ctx: i, precisionScale: o, overflowCache: l, spreadsheetSkeleton: u, diffRanges: d } = e, g = u.getCellWithCoordByIndex(a, s, !1), { startY: c, endY: h, startX: p, endX: v } = g, { isMerged: m, isMergedMainCell: f, mergeInfo:
|
|
35962
|
+
const { ctx: i, precisionScale: o, overflowCache: l, spreadsheetSkeleton: u, diffRanges: d } = e, g = u.getCellWithCoordByIndex(a, s, !1), { startY: c, endY: h, startX: p, endX: v } = g, { isMerged: m, isMergedMainCell: f, mergeInfo: b } = g;
|
|
35963
35963
|
if (!m) {
|
|
35964
35964
|
const z = u.worksheet.getRowVisible(a), D = u.worksheet.getColVisible(s);
|
|
35965
35965
|
if (!z || !D) return !0;
|
|
35966
35966
|
}
|
|
35967
|
-
if (!this.isRenderDiffRangesByRow(
|
|
35967
|
+
if (!this.isRenderDiffRangesByRow(b.startRow, b.endRow, d))
|
|
35968
35968
|
return !0;
|
|
35969
35969
|
for (const z in n) {
|
|
35970
35970
|
const { type: D, style: j, color: w } = n[z];
|
|
@@ -35974,7 +35974,7 @@ let lb = class extends j3 {
|
|
|
35974
35974
|
if (D !== K.TOP && D !== K.BOTTOM && D !== K.LEFT && D !== K.RIGHT) {
|
|
35975
35975
|
if (m)
|
|
35976
35976
|
return !0;
|
|
35977
|
-
f && (x =
|
|
35977
|
+
f && (x = b.startY, C = b.endY, T = b.startX, F = b.endX);
|
|
35978
35978
|
}
|
|
35979
35979
|
const S = S7(j);
|
|
35980
35980
|
F7(i, j), i.setLineWidthByPrecision(S), i.strokeStyle = w || L3, Mv(i, D, {
|
|
@@ -36060,21 +36060,21 @@ class db extends j3 {
|
|
|
36060
36060
|
const f = g[m];
|
|
36061
36061
|
if (p === f)
|
|
36062
36062
|
continue;
|
|
36063
|
-
const
|
|
36064
|
-
D && z.backgroundColor && (e.save(), e.fillStyle = z.backgroundColor, e.fillRectByPrecision(
|
|
36063
|
+
const b = { left: p, top: 0, right: f, width: f - p, height: i }, [z, D] = this.getCfgOfCurrentColumn(m);
|
|
36064
|
+
D && z.backgroundColor && (e.save(), e.fillStyle = z.backgroundColor, e.fillRectByPrecision(b.left, b.top, b.width, b.height), e.restore()), e.beginPath(), e.moveToByPrecision(b.right, 0), e.lineToByPrecision(b.right, b.height), e.stroke();
|
|
36065
36065
|
const j = (() => {
|
|
36066
36066
|
switch (z.textAlign) {
|
|
36067
36067
|
case "center":
|
|
36068
|
-
return
|
|
36068
|
+
return b.left + (b.right - b.left) / 2;
|
|
36069
36069
|
case "right":
|
|
36070
|
-
return
|
|
36070
|
+
return b.right - O3 * 3;
|
|
36071
36071
|
case "left":
|
|
36072
|
-
return
|
|
36072
|
+
return b.left + O3 * 3;
|
|
36073
36073
|
default:
|
|
36074
|
-
return
|
|
36074
|
+
return b.left + (b.right - b.left) / 2;
|
|
36075
36075
|
}
|
|
36076
|
-
})(), w =
|
|
36077
|
-
D && (e.save(), e.beginPath(), this.setStyleToCtx(e, z), e.rectByPrecision(
|
|
36076
|
+
})(), w = b.height / 2 + O3;
|
|
36077
|
+
D && (e.save(), e.beginPath(), this.setStyleToCtx(e, z), e.rectByPrecision(b.left, b.top, b.width, b.height), e.clip()), e.fillText(z.text, j, w), D && e.restore(), p = f;
|
|
36078
36078
|
}
|
|
36079
36079
|
const v = i - 0.5 / h;
|
|
36080
36080
|
e.beginPath(), e.moveToByPrecision(0, v), e.lineToByPrecision(d, v), e.stroke();
|
|
@@ -36312,12 +36312,12 @@ class M2 {
|
|
|
36312
36312
|
if (m.exclude(t))
|
|
36313
36313
|
t < f ? p.push(m) : v.push(m);
|
|
36314
36314
|
else {
|
|
36315
|
-
const
|
|
36316
|
-
if (
|
|
36315
|
+
const b = m.split(t);
|
|
36316
|
+
if (b == null) {
|
|
36317
36317
|
p.push(m);
|
|
36318
36318
|
continue;
|
|
36319
36319
|
}
|
|
36320
|
-
const { firstNode: z, lastNode: D } =
|
|
36320
|
+
const { firstNode: z, lastNode: D } = b;
|
|
36321
36321
|
p.push(z), p.push(D);
|
|
36322
36322
|
}
|
|
36323
36323
|
}
|
|
@@ -36807,7 +36807,7 @@ function U7(r, t) {
|
|
|
36807
36807
|
r.width -= t, r.xOffset -= t, r.adjustability.shrinkability[0] -= t;
|
|
36808
36808
|
}
|
|
36809
36809
|
function bb(r, t, e, a, s = 0, n = !1, i, o, l, u) {
|
|
36810
|
-
var S,
|
|
36810
|
+
var S, A;
|
|
36811
36811
|
const {
|
|
36812
36812
|
lineHeight: d = 15.6,
|
|
36813
36813
|
lineTop: g = 0,
|
|
@@ -36817,13 +36817,13 @@ function bb(r, t, e, a, s = 0, n = !1, i, o, l, u) {
|
|
|
36817
36817
|
paddingTop: v = 0,
|
|
36818
36818
|
paddingBottom: m = 0,
|
|
36819
36819
|
marginTop: f = 0,
|
|
36820
|
-
spaceBelowApply:
|
|
36821
|
-
} = e, { skeTablesInParagraph: z } = i, D = (S = o.skeDrawings) != null ? S : /* @__PURE__ */ new Map(), j = (
|
|
36822
|
-
if (C.lineIndex = s, C.paragraphStart = n, C.contentHeight = c, C.top = g, C.lineHeight = d, C.paddingTop = v, C.paddingBottom = m, C.marginTop = f, C.spaceBelowApply =
|
|
36820
|
+
spaceBelowApply: b = 0
|
|
36821
|
+
} = e, { skeTablesInParagraph: z } = i, D = (S = o.skeDrawings) != null ? S : /* @__PURE__ */ new Map(), j = (A = o.skeTables) != null ? A : /* @__PURE__ */ new Map(), w = l == null ? void 0 : l.skeDrawings, x = u == null ? void 0 : u.skeDrawings, C = Cb(t, r);
|
|
36822
|
+
if (C.lineIndex = s, C.paragraphStart = n, C.contentHeight = c, C.top = g, C.lineHeight = d, C.paddingTop = v, C.paddingBottom = m, C.marginTop = f, C.spaceBelowApply = b, n && Array.isArray(z) && z.length > 0) {
|
|
36823
36823
|
const B = z[z.length - 1].tableId;
|
|
36824
36824
|
C.isBehindTable = !0, C.tableId = B;
|
|
36825
36825
|
}
|
|
36826
|
-
const T = new Map(Array.from(D).filter(([B,
|
|
36826
|
+
const T = new Map(Array.from(D).filter(([B, O]) => O.drawingOrigin.layoutType !== Y1.INLINE)), F = new Map(Array.from(j).filter(([B, O]) => O.tableSource.textWrap === Z0.WRAP));
|
|
36827
36827
|
C.divides = _b(
|
|
36828
36828
|
d,
|
|
36829
36829
|
g,
|
|
@@ -36897,7 +36897,7 @@ function _b(r, t, e, a, s, n, i, o, l, u, d, g) {
|
|
|
36897
36897
|
const p = qe(h, r, t, e);
|
|
36898
36898
|
p && c.push(p);
|
|
36899
36899
|
}), g && g.size > 0 && g.forEach((h) => {
|
|
36900
|
-
const { left: p, top: v, width: m, height: f, tableSource:
|
|
36900
|
+
const { left: p, top: v, width: m, height: f, tableSource: b } = h, { dist: z } = b, D = h4(v, f, p, m, t, r, e, z);
|
|
36901
36901
|
D && c.push(D);
|
|
36902
36902
|
}), xb(e, c);
|
|
36903
36903
|
}
|
|
@@ -36916,11 +36916,11 @@ function qe(r, t, e, a) {
|
|
|
36916
36916
|
if (d === Y1.WRAP_NONE || d === Y1.WRAP_TOP_AND_BOTTOM)
|
|
36917
36917
|
return;
|
|
36918
36918
|
if (d === Y1.WRAP_POLYGON) {
|
|
36919
|
-
const { start:
|
|
36919
|
+
const { start: b = [0, 0], lineTo: z } = u;
|
|
36920
36920
|
if (!z)
|
|
36921
36921
|
return;
|
|
36922
36922
|
const D = [];
|
|
36923
|
-
D.push(new U(
|
|
36923
|
+
D.push(new U(b[0], b[1]));
|
|
36924
36924
|
for (let j = 0; j < z.length; j++) {
|
|
36925
36925
|
const w = z[j];
|
|
36926
36926
|
D.push(new U(w[0], w[1]));
|
|
@@ -36939,11 +36939,11 @@ function qe(r, t, e, a) {
|
|
|
36939
36939
|
return h4(s, n, i, o, e, t, a, m, d, v);
|
|
36940
36940
|
const f = Se(l, i, o, s, n);
|
|
36941
36941
|
if (d === Y1.WRAP_SQUARE) {
|
|
36942
|
-
const { left:
|
|
36942
|
+
const { left: b, width: z, top: D, height: j } = f;
|
|
36943
36943
|
return h4(
|
|
36944
36944
|
D,
|
|
36945
36945
|
j,
|
|
36946
|
-
|
|
36946
|
+
b,
|
|
36947
36947
|
z,
|
|
36948
36948
|
e,
|
|
36949
36949
|
t,
|
|
@@ -37001,8 +37001,8 @@ function h4(r, t, e, a, s, n, i, o, l = Y1.WRAP_SQUARE, u = G0.BOTH_SIDES) {
|
|
|
37001
37001
|
if (p + v <= s || p >= n + s)
|
|
37002
37002
|
return;
|
|
37003
37003
|
let m = e - d, f = a + d + g;
|
|
37004
|
-
const
|
|
37005
|
-
return
|
|
37004
|
+
const b = wb(u, m, f, i);
|
|
37005
|
+
return b === 1 ? f = i - m : b === 2 && (m = 0, f = e + a + g), {
|
|
37006
37006
|
left: m,
|
|
37007
37007
|
width: f
|
|
37008
37008
|
};
|
|
@@ -37151,27 +37151,27 @@ function Fb(r, t, e, a, s) {
|
|
|
37151
37151
|
const u = G4(n, i, l);
|
|
37152
37152
|
let d = 0, g = 0;
|
|
37153
37153
|
for (const m of o) {
|
|
37154
|
-
const { children: f, startIndex:
|
|
37154
|
+
const { children: f, startIndex: b, endIndex: z } = m, D = o.indexOf(m), j = l.tableRows[D], { trHeight: w } = j, x = W7(b, z, D, j, !1, u), { hRule: C, val: T } = w;
|
|
37155
37155
|
u.rows.push(x);
|
|
37156
37156
|
let F = 0, S = 0;
|
|
37157
37157
|
for (const B of f) {
|
|
37158
|
-
const
|
|
37158
|
+
const O = f.indexOf(B), M = nt(
|
|
37159
37159
|
r,
|
|
37160
37160
|
e,
|
|
37161
37161
|
B,
|
|
37162
37162
|
s,
|
|
37163
37163
|
l,
|
|
37164
37164
|
D,
|
|
37165
|
-
|
|
37166
|
-
)[0], { marginTop: L = 0, marginBottom:
|
|
37167
|
-
|
|
37165
|
+
O
|
|
37166
|
+
)[0], { marginTop: L = 0, marginBottom: I = 0 } = M, N = M.height + L + I;
|
|
37167
|
+
M.left = F, F += M.pageWidth, M.parent = x, x.cells.push(M), S = Math.max(S, N);
|
|
37168
37168
|
}
|
|
37169
37169
|
C === n0.AT_LEAST ? S = Math.max(S, T.v) : C === n0.EXACT && (S = T.v);
|
|
37170
37170
|
for (const B of x.cells)
|
|
37171
37171
|
B.pageHeight = S;
|
|
37172
|
-
const
|
|
37173
|
-
for (let B = 0; B <
|
|
37174
|
-
const
|
|
37172
|
+
const A = l.tableRows[D];
|
|
37173
|
+
for (let B = 0; B < A.tableCells.length; B++) {
|
|
37174
|
+
const O = A.tableCells[B], M = x.cells[B], { vAlign: L = q2.CONTENT_ALIGNMENT_UNSPECIFIED } = O, { pageHeight: I, height: N, originMarginTop: P, originMarginBottom: $ } = M;
|
|
37175
37175
|
let H = P;
|
|
37176
37176
|
switch (L) {
|
|
37177
37177
|
case q2.TOP: {
|
|
@@ -37179,15 +37179,15 @@ function Fb(r, t, e, a, s) {
|
|
|
37179
37179
|
break;
|
|
37180
37180
|
}
|
|
37181
37181
|
case q2.CENTER: {
|
|
37182
|
-
H = (
|
|
37182
|
+
H = (I - N) / 2;
|
|
37183
37183
|
break;
|
|
37184
37184
|
}
|
|
37185
37185
|
case q2.BOTTOM: {
|
|
37186
|
-
H =
|
|
37186
|
+
H = I - N - $;
|
|
37187
37187
|
break;
|
|
37188
37188
|
}
|
|
37189
37189
|
}
|
|
37190
|
-
H = Math.max(P, H),
|
|
37190
|
+
H = Math.max(P, H), M.marginTop = H;
|
|
37191
37191
|
}
|
|
37192
37192
|
x.height = S, x.top = d, d += S, g = Math.max(g, F);
|
|
37193
37193
|
}
|
|
@@ -37252,11 +37252,11 @@ function O0(r, t, e) {
|
|
|
37252
37252
|
return e && (i -= t.repeatRowHeight), i;
|
|
37253
37253
|
}
|
|
37254
37254
|
function G7(r, t, e, a, s, n, i, o, l, u = !1) {
|
|
37255
|
-
const d = O0(t, l, !1), g = O0(t, l, !0), { children: c, startIndex: h, endIndex: p } = n, v = o.tableRows[i], { trHeight: m, cantSplit: f } = v,
|
|
37255
|
+
const d = O0(t, l, !1), g = O0(t, l, !0), { children: c, startIndex: h, endIndex: p } = n, v = o.tableRows[i], { trHeight: m, cantSplit: f } = v, b = [], { hRule: z, val: D } = m, j = f === e1.TRUE && m.hRule === n0.AUTO, w = 72, x = l.remainHeight <= w;
|
|
37256
37256
|
let C = I6(e);
|
|
37257
37257
|
const T = [0];
|
|
37258
37258
|
for (const F of c) {
|
|
37259
|
-
const S = c.indexOf(F),
|
|
37259
|
+
const S = c.indexOf(F), A = nt(
|
|
37260
37260
|
r,
|
|
37261
37261
|
a,
|
|
37262
37262
|
F,
|
|
@@ -37267,39 +37267,39 @@ function G7(r, t, e, a, s, n, i, o, l, u = !1) {
|
|
|
37267
37267
|
j && !x ? l.remainHeight : g,
|
|
37268
37268
|
d
|
|
37269
37269
|
);
|
|
37270
|
-
for (;
|
|
37271
|
-
const B = W7(h, p, i, v, u),
|
|
37272
|
-
B.cells = [...new Array(
|
|
37273
|
-
const
|
|
37270
|
+
for (; b.length < A.length; ) {
|
|
37271
|
+
const B = W7(h, p, i, v, u), O = c.length;
|
|
37272
|
+
B.cells = [...new Array(O)].map((M, L) => {
|
|
37273
|
+
const I = st(
|
|
37274
37274
|
r,
|
|
37275
37275
|
s,
|
|
37276
37276
|
o,
|
|
37277
37277
|
i,
|
|
37278
37278
|
L
|
|
37279
37279
|
).page;
|
|
37280
|
-
return
|
|
37281
|
-
}),
|
|
37280
|
+
return I.parent = B, I;
|
|
37281
|
+
}), b.push(B);
|
|
37282
37282
|
}
|
|
37283
|
-
for (; T.length <
|
|
37283
|
+
for (; T.length < A.length; )
|
|
37284
37284
|
T.push(0);
|
|
37285
|
-
for (const B of
|
|
37286
|
-
const { marginTop:
|
|
37287
|
-
B.parent = N, N.cells[S] = B, T[
|
|
37285
|
+
for (const B of A) {
|
|
37286
|
+
const { marginTop: O = 0, marginBottom: M = 0 } = B, L = B.height + O + M, I = A.indexOf(B), N = b[I];
|
|
37287
|
+
B.parent = N, N.cells[S] = B, T[I] = Math.max(T[I], L);
|
|
37288
37288
|
}
|
|
37289
37289
|
}
|
|
37290
|
-
for (const F of
|
|
37291
|
-
const S =
|
|
37290
|
+
for (const F of b) {
|
|
37291
|
+
const S = b.indexOf(F);
|
|
37292
37292
|
z === n0.AT_LEAST ? T[S] = Math.max(T[S], D.v) : z === n0.EXACT && (T[S] = D.v), T[S] = Math.min(T[S], d);
|
|
37293
|
-
let
|
|
37293
|
+
let A = 0;
|
|
37294
37294
|
for (const B of F.cells)
|
|
37295
|
-
B.left =
|
|
37295
|
+
B.left = A, B.pageHeight = T[S], A += B.pageWidth, l.tableWidth = Math.max(l.tableWidth, A);
|
|
37296
37296
|
F.height = T[S];
|
|
37297
37297
|
}
|
|
37298
37298
|
i === 0 && l.repeatRow && (l.repeatRowHeight = T[T.length - 1]);
|
|
37299
|
-
for (const F of
|
|
37299
|
+
for (const F of b)
|
|
37300
37300
|
Rb(F, v);
|
|
37301
|
-
for (;
|
|
37302
|
-
const F =
|
|
37301
|
+
for (; b.length > 0; ) {
|
|
37302
|
+
const F = b.shift(), S = C.rows[C.rows.length - 1];
|
|
37303
37303
|
(l.remainHeight < w || l.remainHeight < F.height) && (l.remainHeight = O0(t, l, i !== 0 && F.index !== S.index), l.rowTop = 0, C.rows.length > 0 && (C = G4(h, p, o), e.push(C), l.repeatRow && u === !1 && i !== 0 && F.index !== S.index && (l.remainHeight = O0(t, l, !1), G7(
|
|
37304
37304
|
r,
|
|
37305
37305
|
t,
|
|
@@ -37451,7 +37451,7 @@ function A2(r, t, e, a, s, n, i = A1.Normal, o) {
|
|
|
37451
37451
|
var d;
|
|
37452
37452
|
const l = P3(e), u = ry(l);
|
|
37453
37453
|
if (u) {
|
|
37454
|
-
const g = P6(t), { divide: c, isLast: h } = u, p = (d = c == null ? void 0 : c.glyphGroup) == null ? void 0 : d[c.glyphGroup.length - 1], v = (p == null ? void 0 : p.width) || 0, m = (p == null ? void 0 : p.left) || 0, f = v + m, { hyphenationZone:
|
|
37454
|
+
const g = P6(t), { divide: c, isLast: h } = u, p = (d = c == null ? void 0 : c.glyphGroup) == null ? void 0 : d[c.glyphGroup.length - 1], v = (p == null ? void 0 : p.width) || 0, m = (p == null ? void 0 : p.left) || 0, f = v + m, { hyphenationZone: b } = a;
|
|
37455
37455
|
if (f + g > c.width) {
|
|
37456
37456
|
A0(c, {
|
|
37457
37457
|
isFull: !0
|
|
@@ -37508,7 +37508,7 @@ function A2(r, t, e, a, s, n, i = A1.Normal, o) {
|
|
|
37508
37508
|
);
|
|
37509
37509
|
} else if (
|
|
37510
37510
|
// Determine if first word slice appears inside the hyphenation zone.
|
|
37511
|
-
h &&
|
|
37511
|
+
h && b && b > 0 && f >= c.width - b && i === A1.Hyphen && c.breakType === A1.Normal
|
|
37512
37512
|
)
|
|
37513
37513
|
A0(c, {
|
|
37514
37514
|
isFull: !0
|
|
@@ -37525,7 +37525,7 @@ function A2(r, t, e, a, s, n, i = A1.Normal, o) {
|
|
|
37525
37525
|
else {
|
|
37526
37526
|
const z = c.parent, D = Kb(t);
|
|
37527
37527
|
if (z && D && !Jb(z)) {
|
|
37528
|
-
const { paragraphLineGapDefault: j, linePitch: w, lineSpacing: x, spacingRule: C, snapToGrid: T, gridType: F } = Q7(a, s), { boundingBoxAscent: S, boundingBoxDescent:
|
|
37528
|
+
const { paragraphLineGapDefault: j, linePitch: w, lineSpacing: x, spacingRule: C, snapToGrid: T, gridType: F } = Q7(a, s), { boundingBoxAscent: S, boundingBoxDescent: A } = D, B = S + A, { contentHeight: O } = Z7(
|
|
37529
37529
|
B,
|
|
37530
37530
|
j,
|
|
37531
37531
|
w,
|
|
@@ -37534,25 +37534,25 @@ function A2(r, t, e, a, s, n, i = A1.Normal, o) {
|
|
|
37534
37534
|
C,
|
|
37535
37535
|
T
|
|
37536
37536
|
);
|
|
37537
|
-
if (z.contentHeight <
|
|
37538
|
-
const
|
|
37539
|
-
let
|
|
37540
|
-
L > 2 &&
|
|
37537
|
+
if (z.contentHeight < O) {
|
|
37538
|
+
const M = Zb(z), L = M.length;
|
|
37539
|
+
let I = [], N = 1;
|
|
37540
|
+
L > 2 && M[0].glyphType === K1.LIST ? (I = [M[0], M[1]], N = 2) : I = [M[0]];
|
|
37541
37541
|
const P = z.parent, { paragraphStart: $ } = P == null ? void 0 : P.lines.pop();
|
|
37542
37542
|
h0(
|
|
37543
37543
|
r,
|
|
37544
|
-
|
|
37544
|
+
I,
|
|
37545
37545
|
e,
|
|
37546
37546
|
a,
|
|
37547
37547
|
s,
|
|
37548
37548
|
$,
|
|
37549
37549
|
i,
|
|
37550
|
-
S +
|
|
37550
|
+
S + A
|
|
37551
37551
|
);
|
|
37552
|
-
for (let H = N; H <
|
|
37552
|
+
for (let H = N; H < M.length; H++)
|
|
37553
37553
|
A2(
|
|
37554
37554
|
r,
|
|
37555
|
-
[
|
|
37555
|
+
[M[H]],
|
|
37556
37556
|
e,
|
|
37557
37557
|
a,
|
|
37558
37558
|
s,
|
|
@@ -37580,7 +37580,7 @@ function h0(r, t, e, a, s, n, i = A1.Normal, o) {
|
|
|
37580
37580
|
paragraphStyle: v = {},
|
|
37581
37581
|
paragraphNonInlineSkeDrawings: m,
|
|
37582
37582
|
skeTablesInParagraph: f,
|
|
37583
|
-
skeHeaders:
|
|
37583
|
+
skeHeaders: b,
|
|
37584
37584
|
skeFooters: z,
|
|
37585
37585
|
pDrawingAnchor: D,
|
|
37586
37586
|
paragraphIndex: j
|
|
@@ -37593,13 +37593,13 @@ function h0(r, t, e, a, s, n, i = A1.Normal, o) {
|
|
|
37593
37593
|
spaceAbove: T,
|
|
37594
37594
|
spaceBelow: F,
|
|
37595
37595
|
indentFirstLine: S,
|
|
37596
|
-
hanging:
|
|
37596
|
+
hanging: A,
|
|
37597
37597
|
indentStart: B,
|
|
37598
|
-
indentEnd:
|
|
37598
|
+
indentEnd: O
|
|
37599
37599
|
} = C, {
|
|
37600
|
-
paragraphLineGapDefault:
|
|
37600
|
+
paragraphLineGapDefault: M,
|
|
37601
37601
|
linePitch: L,
|
|
37602
|
-
lineSpacing:
|
|
37602
|
+
lineSpacing: I,
|
|
37603
37603
|
spacingRule: N,
|
|
37604
37604
|
snapToGrid: P,
|
|
37605
37605
|
gridType: $
|
|
@@ -37608,10 +37608,10 @@ function h0(r, t, e, a, s, n, i = A1.Normal, o) {
|
|
|
37608
37608
|
s
|
|
37609
37609
|
), { paddingTop: H, paddingBottom: V, contentHeight: t1, lineSpacingApply: g1 } = Z7(
|
|
37610
37610
|
p,
|
|
37611
|
-
|
|
37611
|
+
M,
|
|
37612
37612
|
L,
|
|
37613
37613
|
$,
|
|
37614
|
-
|
|
37614
|
+
I,
|
|
37615
37615
|
N,
|
|
37616
37616
|
P
|
|
37617
37617
|
), { marginTop: c1, spaceBelowApply: i1 } = Xb(
|
|
@@ -37624,7 +37624,7 @@ function h0(r, t, e, a, s, n, i = A1.Normal, o) {
|
|
|
37624
37624
|
), n1 = c1 + H + t1 + V;
|
|
37625
37625
|
let d1 = d.parent;
|
|
37626
37626
|
d1 || (d1 = Te(l));
|
|
37627
|
-
const p1 = (g == null ? void 0 : g.lineHeight) || 0, D1 = (g == null ? void 0 : g.top) || 0, k1 = p1 + D1, { pageWidth: j1, headerId: P1, footerId: y1, segmentId: C1 } = l, O1 = (w3 =
|
|
37627
|
+
const p1 = (g == null ? void 0 : g.lineHeight) || 0, D1 = (g == null ? void 0 : g.top) || 0, k1 = p1 + D1, { pageWidth: j1, headerId: P1, footerId: y1, segmentId: C1 } = l, O1 = (w3 = b == null ? void 0 : b.get(P1)) == null ? void 0 : w3.get(j1), U1 = (W3 = z == null ? void 0 : z.get(y1)) == null ? void 0 : W3.get(j1);
|
|
37628
37628
|
let B2 = !1;
|
|
37629
37629
|
if (g) {
|
|
37630
37630
|
const E1 = Hb(g);
|
|
@@ -37663,9 +37663,9 @@ function h0(r, t, e, a, s, n, i = A1.Normal, o) {
|
|
|
37663
37663
|
const H1 = g ? g.lineIndex + 1 : 0, { charSpace: a2, defaultTabStop: Z1 } = ny(a, s), B1 = le(a2, Z1, $, P);
|
|
37664
37664
|
let { paddingLeft: M1, paddingRight: r2 } = Gb(
|
|
37665
37665
|
S,
|
|
37666
|
-
O,
|
|
37667
|
-
B,
|
|
37668
37666
|
A,
|
|
37667
|
+
B,
|
|
37668
|
+
O,
|
|
37669
37669
|
B1,
|
|
37670
37670
|
n
|
|
37671
37671
|
);
|
|
@@ -37723,7 +37723,7 @@ function L6(r, t, e, a, s, n, i, o) {
|
|
|
37723
37723
|
const g = d.drawingOrigin.layoutType;
|
|
37724
37724
|
return g !== Y1.INLINE && g !== Y1.WRAP_NONE;
|
|
37725
37725
|
}).map((d) => {
|
|
37726
|
-
const { drawingOrigin: g, drawingId: c, aTop: h, aLeft: p, width: v, height: m, angle: f } = d,
|
|
37726
|
+
const { drawingOrigin: g, drawingId: c, aTop: h, aLeft: p, width: v, height: m, angle: f } = d, b = g.docTransform.positionV;
|
|
37727
37727
|
return {
|
|
37728
37728
|
id: c,
|
|
37729
37729
|
top: h,
|
|
@@ -37732,7 +37732,7 @@ function L6(r, t, e, a, s, n, i, o) {
|
|
|
37732
37732
|
height: m,
|
|
37733
37733
|
angle: f,
|
|
37734
37734
|
type: W4.IMAGE,
|
|
37735
|
-
positionV:
|
|
37735
|
+
positionV: b
|
|
37736
37736
|
};
|
|
37737
37737
|
});
|
|
37738
37738
|
Y7(r, u, a, n), Vb(
|
|
@@ -37803,7 +37803,7 @@ function Ub(r, t, e, a, s, n, i, o, l, u) {
|
|
|
37803
37803
|
const { top: p, left: v, height: m } = c;
|
|
37804
37804
|
if (!r.isDirty && p + m > n.height && d.isSlideTable === !1) {
|
|
37805
37805
|
i.pop();
|
|
37806
|
-
const f = n.height - p, { segmentId:
|
|
37806
|
+
const f = n.height - p, { segmentId: b } = a, z = r.viewModel.getSelfOrHeaderFooterViewModel(b), D = d.tableNode;
|
|
37807
37807
|
Sb(r.skeletonResourceReference.skeListLevel, D);
|
|
37808
37808
|
const {
|
|
37809
37809
|
fromCurrentPage: j,
|
|
@@ -37858,15 +37858,15 @@ function Y7(r, t, e, a) {
|
|
|
37858
37858
|
const v = (u = (l = (o = p.page.sections[0]) == null ? void 0 : o.columns[0]) == null ? void 0 : l.lines[0]) == null ? void 0 : u.paragraphIndex, m = (c = (g = (d = s.sections[0]) == null ? void 0 : d.columns[0]) == null ? void 0 : g.lines[0]) == null ? void 0 : c.paragraphIndex;
|
|
37859
37859
|
p.page && v && m && v !== m && (p.page.skeDrawings.delete(h.id), r.floatObjectsCache.delete(h.id), de([p.page], (f) => {
|
|
37860
37860
|
var C;
|
|
37861
|
-
const { lineHeight:
|
|
37861
|
+
const { lineHeight: b, top: z } = f, D = f.parent;
|
|
37862
37862
|
if (n || D == null)
|
|
37863
37863
|
return;
|
|
37864
37864
|
const { width: j, left: w } = D;
|
|
37865
|
-
A6(p.floatObject,
|
|
37865
|
+
A6(p.floatObject, b, z, w, j) && (n = !0, r.isDirty = !0, r.layoutStartPointer[p.page.segmentId] = Math.min(f.paragraphIndex, (C = r.layoutStartPointer[p.page.segmentId]) != null ? C : Number.POSITIVE_INFINITY), r.paragraphsOpenNewPage.add(a));
|
|
37866
37866
|
}));
|
|
37867
37867
|
}
|
|
37868
37868
|
n = !1, de([s], (h) => {
|
|
37869
|
-
var
|
|
37869
|
+
var b, z;
|
|
37870
37870
|
const { lineHeight: p, top: v } = h, { width: m, left: f } = e;
|
|
37871
37871
|
if (!n)
|
|
37872
37872
|
for (const D of t.values()) {
|
|
@@ -37876,7 +37876,7 @@ function Y7(r, t, e, a) {
|
|
|
37876
37876
|
if ((x == null ? void 0 : x.page.segmentId) !== s.segmentId)
|
|
37877
37877
|
continue;
|
|
37878
37878
|
if (C)
|
|
37879
|
-
j = (
|
|
37879
|
+
j = (b = x == null ? void 0 : x.floatObject) != null ? b : D;
|
|
37880
37880
|
else
|
|
37881
37881
|
continue;
|
|
37882
37882
|
}
|
|
@@ -37978,7 +37978,7 @@ function Wb(r, t, e) {
|
|
|
37978
37978
|
const m = t == null ? void 0 : t.get(v), f = m == null ? void 0 : m.drawingOrigin;
|
|
37979
37979
|
if (f == null || m == null)
|
|
37980
37980
|
continue;
|
|
37981
|
-
const { docTransform:
|
|
37981
|
+
const { docTransform: b } = f, { size: z, angle: D } = b, { width: j = 0, height: w = 0 } = z, x = p.bBox.bd + p.bBox.ba;
|
|
37982
37982
|
m.aLeft = h.left + h.paddingLeft + p.left + 0.5 * p.width - 0.5 * j || 0, m.aTop = o + l - 0.5 * x - 0.5 * w - u, m.width = j, m.height = w, m.angle = D, m.isPageBreak = n, m.lineTop = o, m.columnLeft = a.left, m.blockAnchorTop = e != null ? e : o, m.lineHeight = r.lineHeight, i.set(m.drawingId, m);
|
|
37983
37983
|
}
|
|
37984
37984
|
const d = new Map([...s.skeDrawings, ...i]);
|
|
@@ -37995,7 +37995,7 @@ function Yb(r, t, e, a, s, n = []) {
|
|
|
37995
37995
|
const { drawingOrigin: h } = c;
|
|
37996
37996
|
if (!h)
|
|
37997
37997
|
continue;
|
|
37998
|
-
const { docTransform: p } = h, { positionH: v, positionV: m, size: f, angle:
|
|
37998
|
+
const { docTransform: p } = h, { positionH: v, positionV: m, size: f, angle: b } = p, { width: z = 0, height: D = 0 } = f;
|
|
37999
37999
|
c.aLeft = (d = et(v, e, i, z, l)) != null ? d : 0, c.aTop = (g = tt(
|
|
38000
38000
|
m,
|
|
38001
38001
|
i,
|
|
@@ -38004,7 +38004,7 @@ function Yb(r, t, e, a, s, n = []) {
|
|
|
38004
38004
|
D,
|
|
38005
38005
|
s,
|
|
38006
38006
|
l
|
|
38007
|
-
)) != null ? g : 0, c.width = z, c.height = D, c.angle =
|
|
38007
|
+
)) != null ? g : 0, c.width = z, c.height = D, c.angle = b, c.initialState = !0, c.columnLeft = e.left, c.lineTop = r, c.lineHeight = t, c.isPageBreak = l, c.blockAnchorTop = s != null ? s : r, o.set(c.drawingId, c);
|
|
38008
38008
|
}
|
|
38009
38009
|
return o;
|
|
38010
38010
|
}
|
|
@@ -38179,33 +38179,33 @@ function ue(r, t = -1) {
|
|
|
38179
38179
|
const { columns: g } = d, c = o;
|
|
38180
38180
|
let h = c, p = Number.NEGATIVE_INFINITY, v = 0;
|
|
38181
38181
|
for (const m of g) {
|
|
38182
|
-
const { lines: f } = m,
|
|
38183
|
-
let z =
|
|
38182
|
+
const { lines: f } = m, b = h;
|
|
38183
|
+
let z = b, D = 0, j = Number.NEGATIVE_INFINITY;
|
|
38184
38184
|
for (const w of f) {
|
|
38185
38185
|
const { divides: x, lineHeight: C, top: T, isBehindTable: F, tableId: S } = w;
|
|
38186
|
-
let
|
|
38186
|
+
let A = z;
|
|
38187
38187
|
if (F && S) {
|
|
38188
38188
|
const P = n.get(S);
|
|
38189
|
-
P && (
|
|
38189
|
+
P && (A = P.ed);
|
|
38190
38190
|
}
|
|
38191
|
-
let B =
|
|
38191
|
+
let B = A, O = 0, M = 0, L = 0;
|
|
38192
38192
|
D = T + C;
|
|
38193
|
-
const
|
|
38193
|
+
const I = x.length;
|
|
38194
38194
|
let N = !1;
|
|
38195
|
-
for (let P = 0; P <
|
|
38195
|
+
for (let P = 0; P < I; P++) {
|
|
38196
38196
|
const $ = x[P], { glyphGroup: H } = $, V = B;
|
|
38197
38197
|
let t1 = V;
|
|
38198
38198
|
for (const g1 of H) {
|
|
38199
38199
|
const c1 = g1.glyphType === K1.LIST ? 0 : g1.count;
|
|
38200
38200
|
t1 += c1;
|
|
38201
38201
|
const i1 = g1.bBox, { ba: n1, bd: d1 } = i1;
|
|
38202
|
-
|
|
38202
|
+
M = Math.max(M, n1), L = Math.max(L, d1), P === I - 1 && (O += g1.width);
|
|
38203
38203
|
}
|
|
38204
|
-
H.length !== 0 && (N = !0, H[0].xOffset !== 0 && P ===
|
|
38204
|
+
H.length !== 0 && (N = !0, H[0].xOffset !== 0 && P === I - 1 && (O -= H[0].xOffset), P === I - 1 && (O += $.left), $.st = V + 1, $.ed = t1 >= $.st ? t1 : $.st, B = $.ed);
|
|
38205
38205
|
}
|
|
38206
|
-
w.st = N ?
|
|
38206
|
+
w.st = N ? A + 1 : A, w.ed = B >= w.st ? B : w.st, w.width = O, w.asc = M, w.dsc = L, j = Math.max(j, O), z = w.ed;
|
|
38207
38207
|
}
|
|
38208
|
-
m.st =
|
|
38208
|
+
m.st = b + 1, m.ed = z >= m.st ? z : m.st, m.height = D, m.width = j, v += j, p = Math.max(p, m.height), h = m.ed;
|
|
38209
38209
|
}
|
|
38210
38210
|
d.st = c + 1, d.ed = h >= d.st ? h : d.st, d.height = p, u += p, l = Math.max(l, v), o = d.ed;
|
|
38211
38211
|
}
|
|
@@ -38404,25 +38404,25 @@ function p3(r, t, e, a, s) {
|
|
|
38404
38404
|
marginLeft: d = 0,
|
|
38405
38405
|
// localeService,
|
|
38406
38406
|
renderConfig: g = {}
|
|
38407
|
-
} = a, { paragraphStyle: c = {}, bullet: h } = s, { isRenderStyle: p } = g, { startIndex: v } = e, m = t.getTextRun(r + v), f = p === e1.FALSE ? $6 : m != null ? m : $6,
|
|
38407
|
+
} = a, { paragraphStyle: c = {}, bullet: h } = s, { isRenderStyle: p } = g, { startIndex: v } = e, m = t.getTextRun(r + v), f = p === e1.FALSE ? $6 : m != null ? m : $6, b = t.getCustomDecoration(r + v), z = b && b.show !== !1, D = z ? Qb(b) : null, j = t.getCustomRange(r + v), w = j && j.show !== !1, x = w ? ey(j) : null, C = w || z || !!h || (c == null ? void 0 : c.namedStyleType), { st: T, ed: F } = f;
|
|
38408
38408
|
let { ts: S = {} } = f;
|
|
38409
|
-
const
|
|
38410
|
-
if (
|
|
38411
|
-
return
|
|
38412
|
-
const { snapToGrid: B = e1.TRUE, namedStyleType:
|
|
38409
|
+
const A = k4.getValue(T, F);
|
|
38410
|
+
if (A && !C && m)
|
|
38411
|
+
return A;
|
|
38412
|
+
const { snapToGrid: B = e1.TRUE, namedStyleType: O } = c, M = h ? uy(h, t) : null, L = O ? $8[O] : null;
|
|
38413
38413
|
S = {
|
|
38414
38414
|
...o,
|
|
38415
38415
|
...L,
|
|
38416
38416
|
...S,
|
|
38417
38417
|
...D,
|
|
38418
38418
|
...x,
|
|
38419
|
-
...
|
|
38419
|
+
...M
|
|
38420
38420
|
};
|
|
38421
|
-
const
|
|
38421
|
+
const I = ae(S), N = {
|
|
38422
38422
|
...o,
|
|
38423
38423
|
...S
|
|
38424
38424
|
}, P = l.width || Number.POSITIVE_INFINITY - d - u, $ = {
|
|
38425
|
-
fontStyle:
|
|
38425
|
+
fontStyle: I,
|
|
38426
38426
|
textStyle: N,
|
|
38427
38427
|
charSpace: i,
|
|
38428
38428
|
gridType: n,
|
|
@@ -38505,7 +38505,7 @@ function py(r, t) {
|
|
|
38505
38505
|
evenPageFooterId: v,
|
|
38506
38506
|
firstPageHeaderId: m,
|
|
38507
38507
|
firstPageFooterId: f,
|
|
38508
|
-
useFirstPageHeaderFooter:
|
|
38508
|
+
useFirstPageHeaderFooter: b,
|
|
38509
38509
|
evenAndOddHeaders: z,
|
|
38510
38510
|
marginTop: D = 0,
|
|
38511
38511
|
marginBottom: j = 0,
|
|
@@ -38515,9 +38515,9 @@ function py(r, t) {
|
|
|
38515
38515
|
marginFooter: T = 0,
|
|
38516
38516
|
autoHyphenation: F = e1.FALSE,
|
|
38517
38517
|
doNotHyphenateCaps: S = e1.FALSE,
|
|
38518
|
-
consecutiveHyphenLimit:
|
|
38518
|
+
consecutiveHyphenLimit: A = Number.POSITIVE_INFINITY,
|
|
38519
38519
|
hyphenationZone: B,
|
|
38520
|
-
renderConfig:
|
|
38520
|
+
renderConfig: O = {
|
|
38521
38521
|
horizontalAlign: m1.LEFT,
|
|
38522
38522
|
verticalAlign: m3.TOP,
|
|
38523
38523
|
centerAngle: 0,
|
|
@@ -38525,11 +38525,11 @@ function py(r, t) {
|
|
|
38525
38525
|
wrapStrategy: Q1.UNSPECIFIED
|
|
38526
38526
|
}
|
|
38527
38527
|
} = i, {
|
|
38528
|
-
charSpace:
|
|
38528
|
+
charSpace: M = 0,
|
|
38529
38529
|
// charSpace
|
|
38530
38530
|
linePitch: L = 15.6,
|
|
38531
38531
|
// linePitch pt
|
|
38532
|
-
gridType:
|
|
38532
|
+
gridType: I = L1.LINES,
|
|
38533
38533
|
// gridType
|
|
38534
38534
|
pageNumberStart: N = u,
|
|
38535
38535
|
pageSize: P = d,
|
|
@@ -38546,19 +38546,19 @@ function py(r, t) {
|
|
|
38546
38546
|
evenPageFooterId: D1 = v,
|
|
38547
38547
|
firstPageHeaderId: k1 = m,
|
|
38548
38548
|
firstPageFooterId: j1 = f,
|
|
38549
|
-
useFirstPageHeaderFooter: P1 =
|
|
38549
|
+
useFirstPageHeaderFooter: P1 = b,
|
|
38550
38550
|
evenAndOddHeaders: y1 = z,
|
|
38551
38551
|
columnProperties: C1 = [],
|
|
38552
38552
|
columnSeparatorType: O1 = u0.NONE,
|
|
38553
38553
|
contentDirection: U1,
|
|
38554
38554
|
sectionType: B2,
|
|
38555
38555
|
textDirection: R2,
|
|
38556
|
-
renderConfig: H1 =
|
|
38556
|
+
renderConfig: H1 = O
|
|
38557
38557
|
} = l, a2 = e.getChildren()[t + 1], Z1 = (s2 = e.getSectionBreak(a2 == null ? void 0 : a2.endIndex)) == null ? void 0 : s2.sectionType, B1 = { defaultHeaderId: n1, evenPageHeaderId: p1, firstPageHeaderId: k1 }, M1 = { defaultFooterId: d1, evenPageFooterId: D1, firstPageFooterId: j1 };
|
|
38558
38558
|
return P.width === null && (P.width = Number.POSITIVE_INFINITY), P.height === null && (P.height = Number.POSITIVE_INFINITY), {
|
|
38559
|
-
charSpace:
|
|
38559
|
+
charSpace: M,
|
|
38560
38560
|
linePitch: L,
|
|
38561
|
-
gridType:
|
|
38561
|
+
gridType: I,
|
|
38562
38562
|
pageNumberStart: N,
|
|
38563
38563
|
pageSize: P,
|
|
38564
38564
|
pageOrient: $,
|
|
@@ -38581,7 +38581,7 @@ function py(r, t) {
|
|
|
38581
38581
|
renderConfig: H1,
|
|
38582
38582
|
autoHyphenation: F,
|
|
38583
38583
|
doNotHyphenateCaps: S,
|
|
38584
|
-
consecutiveHyphenLimit:
|
|
38584
|
+
consecutiveHyphenLimit: A,
|
|
38585
38585
|
hyphenationZone: B,
|
|
38586
38586
|
...s
|
|
38587
38587
|
};
|
|
@@ -38632,7 +38632,7 @@ function y3(r, t, e, a = 1, s = g0.SECTION) {
|
|
|
38632
38632
|
columnProperties: v = [],
|
|
38633
38633
|
columnSeparatorType: m,
|
|
38634
38634
|
marginTop: f = 0,
|
|
38635
|
-
marginBottom:
|
|
38635
|
+
marginBottom: b = 0,
|
|
38636
38636
|
marginHeader: z = 0,
|
|
38637
38637
|
marginFooter: D = 0,
|
|
38638
38638
|
marginLeft: j = 0,
|
|
@@ -38640,9 +38640,9 @@ function y3(r, t, e, a = 1, s = g0.SECTION) {
|
|
|
38640
38640
|
renderConfig: x = {}
|
|
38641
38641
|
} = t, { skeHeaders: C, skeFooters: T } = e, { width: F = Number.POSITIVE_INFINITY, height: S = Number.POSITIVE_INFINITY } = o;
|
|
38642
38642
|
n.pageNumber = a, n.pageNumberStart = i, n.renderConfig = x, n.marginLeft = j, n.marginRight = w, n.breakType = s, n.pageWidth = F, n.width = 0, n.pageHeight = S, n.height = 0, n.pageOrient = l;
|
|
38643
|
-
const { defaultHeaderId:
|
|
38644
|
-
let N =
|
|
38645
|
-
a === i && g === e1.TRUE ? (N =
|
|
38643
|
+
const { defaultHeaderId: A, evenPageHeaderId: B, firstPageHeaderId: O } = u, { defaultFooterId: M, evenPageFooterId: L, firstPageFooterId: I } = d;
|
|
38644
|
+
let N = A != null ? A : "", P = M != null ? M : "";
|
|
38645
|
+
a === i && g === e1.TRUE ? (N = O != null ? O : "", P = I != null ? I : "") : a % 2 === 0 && c === e1.TRUE && (N = B != null ? B : "", P = L != null ? L : "");
|
|
38646
38646
|
let $, H;
|
|
38647
38647
|
N && ((j1 = C.get(N)) != null && j1.has(F) ? $ = (P1 = C.get(N)) == null ? void 0 : P1.get(F) : p && p.has(N) && ($ = m4(
|
|
38648
38648
|
r,
|
|
@@ -38658,7 +38658,7 @@ function y3(r, t, e, a = 1, s = g0.SECTION) {
|
|
|
38658
38658
|
e,
|
|
38659
38659
|
P,
|
|
38660
38660
|
!1
|
|
38661
|
-
), T.set(P, /* @__PURE__ */ new Map([[F, H]]))), n.footerId = P), n.originMarginTop = f, n.originMarginBottom =
|
|
38661
|
+
), T.set(P, /* @__PURE__ */ new Map([[F, H]]))), n.footerId = P), n.originMarginTop = f, n.originMarginBottom = b, n.marginTop = U6(f, $, S), n.marginBottom = U6(b, H, S);
|
|
38662
38662
|
const V = n.sections, t1 = V[V.length - 1], { marginTop: g1, marginBottom: c1, marginLeft: i1, marginRight: n1 } = n, d1 = F - i1 - n1, p1 = S - g1 - c1;
|
|
38663
38663
|
let D1 = 0;
|
|
38664
38664
|
t1 && (D1 = t1.top + t1.height);
|
|
@@ -38716,12 +38716,12 @@ function m4(r, t, e, a, s, n = !0, i, o = 0) {
|
|
|
38716
38716
|
marginRight: v = 0,
|
|
38717
38717
|
marginHeader: m = 0,
|
|
38718
38718
|
marginFooter: f = 0
|
|
38719
|
-
} = e,
|
|
38719
|
+
} = e, b = (c == null ? void 0 : c.width) || Number.POSITIVE_INFINITY, z = (c == null ? void 0 : c.height) || Number.POSITIVE_INFINITY, D = {
|
|
38720
38720
|
lists: l,
|
|
38721
38721
|
footerTreeMap: u,
|
|
38722
38722
|
headerTreeMap: d,
|
|
38723
38723
|
pageSize: {
|
|
38724
|
-
width:
|
|
38724
|
+
width: b - p - v,
|
|
38725
38725
|
height: rt(z) - (n ? m : f) - 5
|
|
38726
38726
|
},
|
|
38727
38727
|
localeService: g,
|
|
@@ -38760,7 +38760,7 @@ function m4(r, t, e, a, s, n = !0, i, o = 0) {
|
|
|
38760
38760
|
function st(r, t, e, a, s, n = Number.POSITIVE_INFINITY, i = Number.POSITIVE_INFINITY) {
|
|
38761
38761
|
var F, S;
|
|
38762
38762
|
const { lists: o, footerTreeMap: l, headerTreeMap: u, localeService: d, drawings: g } = t, { skeletonResourceReference: c } = r, { cellMargin: h, tableRows: p, tableColumns: v, tableId: m } = e, f = p[a].tableCells[s], {
|
|
38763
|
-
start:
|
|
38763
|
+
start: b = { v: 10 },
|
|
38764
38764
|
end: z = { v: 10 },
|
|
38765
38765
|
top: D = { v: 5 },
|
|
38766
38766
|
bottom: j = { v: 5 }
|
|
@@ -38774,7 +38774,7 @@ function st(r, t, e, a, s, n = Number.POSITIVE_INFINITY, i = Number.POSITIVE_INF
|
|
|
38774
38774
|
},
|
|
38775
38775
|
marginTop: D.v,
|
|
38776
38776
|
marginBottom: j.v,
|
|
38777
|
-
marginLeft:
|
|
38777
|
+
marginLeft: b.v,
|
|
38778
38778
|
marginRight: z.v,
|
|
38779
38779
|
localeService: d,
|
|
38780
38780
|
drawings: g
|
|
@@ -39181,7 +39181,7 @@ function Xy(r, t, e, a, s, n, i) {
|
|
|
39181
39181
|
lists: l,
|
|
39182
39182
|
drawings: u = {},
|
|
39183
39183
|
localeService: d
|
|
39184
|
-
} = n, { endIndex: g, blocks: c = [], children: h } = s, { segmentId: p } = a, v = t.getParagraph(g) || { startIndex: 0 }, { paragraphStyle: m = {}, bullet: f } = v, { skeHeaders:
|
|
39184
|
+
} = n, { endIndex: g, blocks: c = [], children: h } = s, { segmentId: p } = a, v = t.getParagraph(g) || { startIndex: 0 }, { paragraphStyle: m = {}, bullet: f } = v, { skeHeaders: b, skeFooters: z, skeListLevel: D, drawingAnchor: j } = o, w = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map();
|
|
39185
39185
|
let C = j == null ? void 0 : j.get(p);
|
|
39186
39186
|
C == null && (C = /* @__PURE__ */ new Map(), j == null || j.set(p, C));
|
|
39187
39187
|
const T = {
|
|
@@ -39199,28 +39199,28 @@ function Xy(r, t, e, a, s, n, i) {
|
|
|
39199
39199
|
tableNode: h[0]
|
|
39200
39200
|
}
|
|
39201
39201
|
] : void 0,
|
|
39202
|
-
skeHeaders:
|
|
39202
|
+
skeHeaders: b,
|
|
39203
39203
|
skeFooters: z,
|
|
39204
39204
|
pDrawingAnchor: C
|
|
39205
39205
|
};
|
|
39206
39206
|
let F = r.paragraphConfigCache.get(p);
|
|
39207
39207
|
if (F == null && (F = /* @__PURE__ */ new Map(), r.paragraphConfigCache.set(p, F)), F.has(g)) {
|
|
39208
|
-
const
|
|
39209
|
-
T.bulletSkeleton =
|
|
39208
|
+
const O = (B = F.get(g)) == null ? void 0 : B.bulletSkeleton;
|
|
39209
|
+
T.bulletSkeleton = O;
|
|
39210
39210
|
} else {
|
|
39211
|
-
const
|
|
39212
|
-
Gy(v, f,
|
|
39211
|
+
const O = qy(f, D), M = Py(f, l, O);
|
|
39212
|
+
Gy(v, f, M, D), T.bulletSkeleton = M;
|
|
39213
39213
|
}
|
|
39214
|
-
for (let
|
|
39215
|
-
const L = c[
|
|
39216
|
-
if (
|
|
39214
|
+
for (let O = 0, M = c.length; O < M; O++) {
|
|
39215
|
+
const L = c[O], I = t.getCustomBlock(L);
|
|
39216
|
+
if (I == null)
|
|
39217
39217
|
continue;
|
|
39218
|
-
const { blockId: N } =
|
|
39218
|
+
const { blockId: N } = I, P = u[N];
|
|
39219
39219
|
P.layoutType === Y1.INLINE ? x.set(N, G6(P)) : w.set(N, G6(P));
|
|
39220
39220
|
}
|
|
39221
39221
|
F.set(g, T);
|
|
39222
|
-
let S = [a],
|
|
39223
|
-
for (const [
|
|
39222
|
+
let S = [a], A = !0;
|
|
39223
|
+
for (const [O, { text: M, glyphs: L, breakPointType: I }] of e.entries()) {
|
|
39224
39224
|
const N = () => {
|
|
39225
39225
|
L.length !== 0 && (S = Ob(
|
|
39226
39226
|
r,
|
|
@@ -39228,11 +39228,11 @@ function Xy(r, t, e, a, s, n, i) {
|
|
|
39228
39228
|
S,
|
|
39229
39229
|
n,
|
|
39230
39230
|
T,
|
|
39231
|
-
|
|
39232
|
-
|
|
39233
|
-
),
|
|
39231
|
+
A,
|
|
39232
|
+
I
|
|
39233
|
+
), A = !1);
|
|
39234
39234
|
};
|
|
39235
|
-
if (
|
|
39235
|
+
if (M.endsWith(J.PAGE_BREAK)) {
|
|
39236
39236
|
N(), S.push(
|
|
39237
39237
|
y3(
|
|
39238
39238
|
r,
|
|
@@ -39243,7 +39243,7 @@ function Xy(r, t, e, a, s, n, i) {
|
|
|
39243
39243
|
)
|
|
39244
39244
|
), w.clear(), x.clear();
|
|
39245
39245
|
continue;
|
|
39246
|
-
} else if (
|
|
39246
|
+
} else if (M.endsWith(J.COLUMN_BREAK)) {
|
|
39247
39247
|
N();
|
|
39248
39248
|
const P = S[S.length - 1], $ = oe(P);
|
|
39249
39249
|
$ && !$.isLast ? q7($.column, !0) : S.push(
|
|
@@ -39262,7 +39262,7 @@ function Xy(r, t, e, a, s, n, i) {
|
|
|
39262
39262
|
return S;
|
|
39263
39263
|
}
|
|
39264
39264
|
var l1 = /* @__PURE__ */ ((r) => (r.Af = "af", r.As = "as", r.Be = "be", r.Bg = "bg", r.Bn = "bn", r.Ca = "ca", r.Cop = "cop", r.Cs = "cs", r.Cu = "cu", r.Cy = "cy", r.Da = "da", r.De1901 = "de-1901", r.De1996 = "de-1996", r.DeCh1901 = "de-ch-1901", r.ElMonoton = "el-monoton", r.ElPolyton = "el-polyton", r.EnGb = "en-gb", r.EnUs = "en-us", r.Es = "es", r.Et = "et", r.Eu = "eu", r.Fi = "fi", r.Fr = "fr", r.Fur = "fur", r.Ga = "ga", r.Gl = "gl", r.Grc = "grc", r.Gu = "gu", r.Hi = "hi", r.Hr = "hr", r.Hsb = "hsb", r.Hu = "hu", r.Hy = "hy", r.Ia = "ia", r.Id = "id", r.Is = "is", r.It = "it", r.Ka = "ka", r.Kmr = "kmr", r.Kn = "kn", r.LaXClassic = "la-x-classic", r.LaXLiturgic = "la-x-liturgic", r.La = "la", r.Lt = "lt", r.Lv = "lv", r.Ml = "ml", r.MnCyrlXLmc = "mn-cyrl-x-lmc", r.MnCyrl = "mn-cyrl", r.Mr = "mr", r.MulEthi = "mul-ethi", r.Nb = "nb", r.Nl = "nl", r.Nn = "nn", r.No = "no", r.Oc = "oc", r.Or = "or", r.Pa = "pa", r.Pi = "pi", r.Pl = "pl", r.Pms = "pms", r.Pt = "pt", r.Rm = "rm", r.Ro = "ro", r.Ru = "ru", r.Sa = "sa", r.ShCyrl = "sh-cyrl", r.ShLatn = "sh-latn", r.Sk = "sk", r.Sl = "sl", r.SrCyrl = "sr-cyrl", r.Sv = "sv", r.Ta = "ta", r.Te = "te", r.Th = "th", r.Tk = "tk", r.Tr = "tr", r.Uk = "uk", r.ZhLatnPinyin = "zh-latn-pinyin", r.UNKNOWN = "unknown", r))(l1 || {});
|
|
39265
|
-
const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy = 33, W0 = 34, Qy = 35, Xe = 36, p4 = 37, ut = 38, ez = 39, tz = 40, a0 = 41, az = 42,
|
|
39265
|
+
const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy = 33, W0 = 34, Qy = 35, Xe = 36, p4 = 37, ut = 38, ez = 39, tz = 40, a0 = 41, az = 42, y = 0, _ = 1, h1 = 2, dt = 3, E = 4, rz = [
|
|
39266
39266
|
//OP , CL , CP , QU , GL , NS , EX , SY , IS , PR , PO , NU , AL , HL , ID , IN , HY , BA , BB , B2 , ZW , CM , WJ , H2 , H3 , JL , JV , JT , RI , EB , EM , ZWJ , CB
|
|
39267
39267
|
[
|
|
39268
39268
|
E,
|
|
@@ -39301,7 +39301,7 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39301
39301
|
],
|
|
39302
39302
|
// OP
|
|
39303
39303
|
[
|
|
39304
|
-
|
|
39304
|
+
y,
|
|
39305
39305
|
E,
|
|
39306
39306
|
E,
|
|
39307
39307
|
_,
|
|
@@ -39312,32 +39312,32 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39312
39312
|
E,
|
|
39313
39313
|
_,
|
|
39314
39314
|
_,
|
|
39315
|
-
|
|
39316
|
-
|
|
39317
|
-
|
|
39318
|
-
|
|
39315
|
+
y,
|
|
39316
|
+
y,
|
|
39317
|
+
y,
|
|
39318
|
+
y,
|
|
39319
39319
|
_,
|
|
39320
39320
|
_,
|
|
39321
39321
|
_,
|
|
39322
|
-
|
|
39323
|
-
|
|
39322
|
+
y,
|
|
39323
|
+
y,
|
|
39324
39324
|
E,
|
|
39325
39325
|
h1,
|
|
39326
39326
|
E,
|
|
39327
|
-
|
|
39328
|
-
|
|
39329
|
-
|
|
39330
|
-
|
|
39331
|
-
|
|
39332
|
-
|
|
39333
|
-
|
|
39334
|
-
|
|
39327
|
+
y,
|
|
39328
|
+
y,
|
|
39329
|
+
y,
|
|
39330
|
+
y,
|
|
39331
|
+
y,
|
|
39332
|
+
y,
|
|
39333
|
+
y,
|
|
39334
|
+
y,
|
|
39335
39335
|
_,
|
|
39336
|
-
|
|
39336
|
+
y
|
|
39337
39337
|
],
|
|
39338
39338
|
// CL
|
|
39339
39339
|
[
|
|
39340
|
-
|
|
39340
|
+
y,
|
|
39341
39341
|
E,
|
|
39342
39342
|
E,
|
|
39343
39343
|
_,
|
|
@@ -39351,25 +39351,25 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39351
39351
|
_,
|
|
39352
39352
|
_,
|
|
39353
39353
|
_,
|
|
39354
|
-
|
|
39354
|
+
y,
|
|
39355
39355
|
_,
|
|
39356
39356
|
_,
|
|
39357
39357
|
_,
|
|
39358
|
-
|
|
39359
|
-
|
|
39358
|
+
y,
|
|
39359
|
+
y,
|
|
39360
39360
|
E,
|
|
39361
39361
|
h1,
|
|
39362
39362
|
E,
|
|
39363
|
-
|
|
39364
|
-
|
|
39365
|
-
|
|
39366
|
-
|
|
39367
|
-
|
|
39368
|
-
|
|
39369
|
-
|
|
39370
|
-
|
|
39363
|
+
y,
|
|
39364
|
+
y,
|
|
39365
|
+
y,
|
|
39366
|
+
y,
|
|
39367
|
+
y,
|
|
39368
|
+
y,
|
|
39369
|
+
y,
|
|
39370
|
+
y,
|
|
39371
39371
|
_,
|
|
39372
|
-
|
|
39372
|
+
y
|
|
39373
39373
|
],
|
|
39374
39374
|
// CP
|
|
39375
39375
|
[
|
|
@@ -39445,7 +39445,7 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39445
39445
|
],
|
|
39446
39446
|
// GL
|
|
39447
39447
|
[
|
|
39448
|
-
|
|
39448
|
+
y,
|
|
39449
39449
|
E,
|
|
39450
39450
|
E,
|
|
39451
39451
|
_,
|
|
@@ -39454,34 +39454,34 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39454
39454
|
E,
|
|
39455
39455
|
E,
|
|
39456
39456
|
E,
|
|
39457
|
-
|
|
39458
|
-
|
|
39459
|
-
|
|
39460
|
-
|
|
39461
|
-
|
|
39462
|
-
|
|
39457
|
+
y,
|
|
39458
|
+
y,
|
|
39459
|
+
y,
|
|
39460
|
+
y,
|
|
39461
|
+
y,
|
|
39462
|
+
y,
|
|
39463
39463
|
_,
|
|
39464
39464
|
_,
|
|
39465
39465
|
_,
|
|
39466
|
-
|
|
39467
|
-
|
|
39466
|
+
y,
|
|
39467
|
+
y,
|
|
39468
39468
|
E,
|
|
39469
39469
|
h1,
|
|
39470
39470
|
E,
|
|
39471
|
-
|
|
39472
|
-
|
|
39473
|
-
|
|
39474
|
-
|
|
39475
|
-
|
|
39476
|
-
|
|
39477
|
-
|
|
39478
|
-
|
|
39471
|
+
y,
|
|
39472
|
+
y,
|
|
39473
|
+
y,
|
|
39474
|
+
y,
|
|
39475
|
+
y,
|
|
39476
|
+
y,
|
|
39477
|
+
y,
|
|
39478
|
+
y,
|
|
39479
39479
|
_,
|
|
39480
|
-
|
|
39480
|
+
y
|
|
39481
39481
|
],
|
|
39482
39482
|
// NS
|
|
39483
39483
|
[
|
|
39484
|
-
|
|
39484
|
+
y,
|
|
39485
39485
|
E,
|
|
39486
39486
|
E,
|
|
39487
39487
|
_,
|
|
@@ -39490,34 +39490,34 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39490
39490
|
E,
|
|
39491
39491
|
E,
|
|
39492
39492
|
E,
|
|
39493
|
-
|
|
39494
|
-
|
|
39495
|
-
|
|
39496
|
-
|
|
39497
|
-
|
|
39498
|
-
|
|
39493
|
+
y,
|
|
39494
|
+
y,
|
|
39495
|
+
y,
|
|
39496
|
+
y,
|
|
39497
|
+
y,
|
|
39498
|
+
y,
|
|
39499
39499
|
_,
|
|
39500
39500
|
_,
|
|
39501
39501
|
_,
|
|
39502
|
-
|
|
39503
|
-
|
|
39502
|
+
y,
|
|
39503
|
+
y,
|
|
39504
39504
|
E,
|
|
39505
39505
|
h1,
|
|
39506
39506
|
E,
|
|
39507
|
-
|
|
39508
|
-
|
|
39509
|
-
|
|
39510
|
-
|
|
39511
|
-
|
|
39512
|
-
|
|
39513
|
-
|
|
39514
|
-
|
|
39507
|
+
y,
|
|
39508
|
+
y,
|
|
39509
|
+
y,
|
|
39510
|
+
y,
|
|
39511
|
+
y,
|
|
39512
|
+
y,
|
|
39513
|
+
y,
|
|
39514
|
+
y,
|
|
39515
39515
|
_,
|
|
39516
|
-
|
|
39516
|
+
y
|
|
39517
39517
|
],
|
|
39518
39518
|
// EX
|
|
39519
39519
|
[
|
|
39520
|
-
|
|
39520
|
+
y,
|
|
39521
39521
|
E,
|
|
39522
39522
|
E,
|
|
39523
39523
|
_,
|
|
@@ -39526,34 +39526,34 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39526
39526
|
E,
|
|
39527
39527
|
E,
|
|
39528
39528
|
E,
|
|
39529
|
-
|
|
39530
|
-
|
|
39529
|
+
y,
|
|
39530
|
+
y,
|
|
39531
39531
|
_,
|
|
39532
|
-
|
|
39532
|
+
y,
|
|
39533
39533
|
_,
|
|
39534
|
-
|
|
39534
|
+
y,
|
|
39535
39535
|
_,
|
|
39536
39536
|
_,
|
|
39537
39537
|
_,
|
|
39538
|
-
|
|
39539
|
-
|
|
39538
|
+
y,
|
|
39539
|
+
y,
|
|
39540
39540
|
E,
|
|
39541
39541
|
h1,
|
|
39542
39542
|
E,
|
|
39543
|
-
|
|
39544
|
-
|
|
39545
|
-
|
|
39546
|
-
|
|
39547
|
-
|
|
39548
|
-
|
|
39549
|
-
|
|
39550
|
-
|
|
39543
|
+
y,
|
|
39544
|
+
y,
|
|
39545
|
+
y,
|
|
39546
|
+
y,
|
|
39547
|
+
y,
|
|
39548
|
+
y,
|
|
39549
|
+
y,
|
|
39550
|
+
y,
|
|
39551
39551
|
_,
|
|
39552
|
-
|
|
39552
|
+
y
|
|
39553
39553
|
],
|
|
39554
39554
|
// SY
|
|
39555
39555
|
[
|
|
39556
|
-
|
|
39556
|
+
y,
|
|
39557
39557
|
E,
|
|
39558
39558
|
E,
|
|
39559
39559
|
_,
|
|
@@ -39562,30 +39562,30 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39562
39562
|
E,
|
|
39563
39563
|
E,
|
|
39564
39564
|
E,
|
|
39565
|
-
|
|
39566
|
-
|
|
39565
|
+
y,
|
|
39566
|
+
y,
|
|
39567
39567
|
_,
|
|
39568
39568
|
_,
|
|
39569
39569
|
_,
|
|
39570
|
-
|
|
39570
|
+
y,
|
|
39571
39571
|
_,
|
|
39572
39572
|
_,
|
|
39573
39573
|
_,
|
|
39574
|
-
|
|
39575
|
-
|
|
39574
|
+
y,
|
|
39575
|
+
y,
|
|
39576
39576
|
E,
|
|
39577
39577
|
h1,
|
|
39578
39578
|
E,
|
|
39579
|
-
|
|
39580
|
-
|
|
39581
|
-
|
|
39582
|
-
|
|
39583
|
-
|
|
39584
|
-
|
|
39585
|
-
|
|
39586
|
-
|
|
39579
|
+
y,
|
|
39580
|
+
y,
|
|
39581
|
+
y,
|
|
39582
|
+
y,
|
|
39583
|
+
y,
|
|
39584
|
+
y,
|
|
39585
|
+
y,
|
|
39586
|
+
y,
|
|
39587
39587
|
_,
|
|
39588
|
-
|
|
39588
|
+
y
|
|
39589
39589
|
],
|
|
39590
39590
|
// IS
|
|
39591
39591
|
[
|
|
@@ -39598,8 +39598,8 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39598
39598
|
E,
|
|
39599
39599
|
E,
|
|
39600
39600
|
E,
|
|
39601
|
-
|
|
39602
|
-
|
|
39601
|
+
y,
|
|
39602
|
+
y,
|
|
39603
39603
|
_,
|
|
39604
39604
|
_,
|
|
39605
39605
|
_,
|
|
@@ -39607,8 +39607,8 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39607
39607
|
_,
|
|
39608
39608
|
_,
|
|
39609
39609
|
_,
|
|
39610
|
-
|
|
39611
|
-
|
|
39610
|
+
y,
|
|
39611
|
+
y,
|
|
39612
39612
|
E,
|
|
39613
39613
|
h1,
|
|
39614
39614
|
E,
|
|
@@ -39617,11 +39617,11 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39617
39617
|
_,
|
|
39618
39618
|
_,
|
|
39619
39619
|
_,
|
|
39620
|
-
|
|
39620
|
+
y,
|
|
39621
39621
|
_,
|
|
39622
39622
|
_,
|
|
39623
39623
|
_,
|
|
39624
|
-
|
|
39624
|
+
y
|
|
39625
39625
|
],
|
|
39626
39626
|
// PR
|
|
39627
39627
|
[
|
|
@@ -39634,30 +39634,30 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39634
39634
|
E,
|
|
39635
39635
|
E,
|
|
39636
39636
|
E,
|
|
39637
|
-
|
|
39638
|
-
|
|
39637
|
+
y,
|
|
39638
|
+
y,
|
|
39639
39639
|
_,
|
|
39640
39640
|
_,
|
|
39641
39641
|
_,
|
|
39642
|
-
|
|
39642
|
+
y,
|
|
39643
39643
|
_,
|
|
39644
39644
|
_,
|
|
39645
39645
|
_,
|
|
39646
|
-
|
|
39647
|
-
|
|
39646
|
+
y,
|
|
39647
|
+
y,
|
|
39648
39648
|
E,
|
|
39649
39649
|
h1,
|
|
39650
39650
|
E,
|
|
39651
|
-
|
|
39652
|
-
|
|
39653
|
-
|
|
39654
|
-
|
|
39655
|
-
|
|
39656
|
-
|
|
39657
|
-
|
|
39658
|
-
|
|
39651
|
+
y,
|
|
39652
|
+
y,
|
|
39653
|
+
y,
|
|
39654
|
+
y,
|
|
39655
|
+
y,
|
|
39656
|
+
y,
|
|
39657
|
+
y,
|
|
39658
|
+
y,
|
|
39659
39659
|
_,
|
|
39660
|
-
|
|
39660
|
+
y
|
|
39661
39661
|
],
|
|
39662
39662
|
// PO
|
|
39663
39663
|
[
|
|
@@ -39675,25 +39675,25 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39675
39675
|
_,
|
|
39676
39676
|
_,
|
|
39677
39677
|
_,
|
|
39678
|
-
|
|
39678
|
+
y,
|
|
39679
39679
|
_,
|
|
39680
39680
|
_,
|
|
39681
39681
|
_,
|
|
39682
|
-
|
|
39683
|
-
|
|
39682
|
+
y,
|
|
39683
|
+
y,
|
|
39684
39684
|
E,
|
|
39685
39685
|
h1,
|
|
39686
39686
|
E,
|
|
39687
|
-
|
|
39688
|
-
|
|
39689
|
-
|
|
39690
|
-
|
|
39691
|
-
|
|
39692
|
-
|
|
39693
|
-
|
|
39694
|
-
|
|
39687
|
+
y,
|
|
39688
|
+
y,
|
|
39689
|
+
y,
|
|
39690
|
+
y,
|
|
39691
|
+
y,
|
|
39692
|
+
y,
|
|
39693
|
+
y,
|
|
39694
|
+
y,
|
|
39695
39695
|
_,
|
|
39696
|
-
|
|
39696
|
+
y
|
|
39697
39697
|
],
|
|
39698
39698
|
// NU
|
|
39699
39699
|
[
|
|
@@ -39711,25 +39711,25 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39711
39711
|
_,
|
|
39712
39712
|
_,
|
|
39713
39713
|
_,
|
|
39714
|
-
|
|
39714
|
+
y,
|
|
39715
39715
|
_,
|
|
39716
39716
|
_,
|
|
39717
39717
|
_,
|
|
39718
|
-
|
|
39719
|
-
|
|
39718
|
+
y,
|
|
39719
|
+
y,
|
|
39720
39720
|
E,
|
|
39721
39721
|
h1,
|
|
39722
39722
|
E,
|
|
39723
|
-
|
|
39724
|
-
|
|
39725
|
-
|
|
39726
|
-
|
|
39727
|
-
|
|
39728
|
-
|
|
39729
|
-
|
|
39730
|
-
|
|
39723
|
+
y,
|
|
39724
|
+
y,
|
|
39725
|
+
y,
|
|
39726
|
+
y,
|
|
39727
|
+
y,
|
|
39728
|
+
y,
|
|
39729
|
+
y,
|
|
39730
|
+
y,
|
|
39731
39731
|
_,
|
|
39732
|
-
|
|
39732
|
+
y
|
|
39733
39733
|
],
|
|
39734
39734
|
// AL
|
|
39735
39735
|
[
|
|
@@ -39747,29 +39747,29 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39747
39747
|
_,
|
|
39748
39748
|
_,
|
|
39749
39749
|
_,
|
|
39750
|
-
|
|
39750
|
+
y,
|
|
39751
39751
|
_,
|
|
39752
39752
|
_,
|
|
39753
39753
|
_,
|
|
39754
|
-
|
|
39755
|
-
|
|
39754
|
+
y,
|
|
39755
|
+
y,
|
|
39756
39756
|
E,
|
|
39757
39757
|
h1,
|
|
39758
39758
|
E,
|
|
39759
|
-
|
|
39760
|
-
|
|
39761
|
-
|
|
39762
|
-
|
|
39763
|
-
|
|
39764
|
-
|
|
39765
|
-
|
|
39766
|
-
|
|
39759
|
+
y,
|
|
39760
|
+
y,
|
|
39761
|
+
y,
|
|
39762
|
+
y,
|
|
39763
|
+
y,
|
|
39764
|
+
y,
|
|
39765
|
+
y,
|
|
39766
|
+
y,
|
|
39767
39767
|
_,
|
|
39768
|
-
|
|
39768
|
+
y
|
|
39769
39769
|
],
|
|
39770
39770
|
// HL
|
|
39771
39771
|
[
|
|
39772
|
-
|
|
39772
|
+
y,
|
|
39773
39773
|
E,
|
|
39774
39774
|
E,
|
|
39775
39775
|
_,
|
|
@@ -39778,34 +39778,34 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39778
39778
|
E,
|
|
39779
39779
|
E,
|
|
39780
39780
|
E,
|
|
39781
|
-
|
|
39781
|
+
y,
|
|
39782
39782
|
_,
|
|
39783
|
-
|
|
39784
|
-
|
|
39785
|
-
|
|
39786
|
-
|
|
39783
|
+
y,
|
|
39784
|
+
y,
|
|
39785
|
+
y,
|
|
39786
|
+
y,
|
|
39787
39787
|
_,
|
|
39788
39788
|
_,
|
|
39789
39789
|
_,
|
|
39790
|
-
|
|
39791
|
-
|
|
39790
|
+
y,
|
|
39791
|
+
y,
|
|
39792
39792
|
E,
|
|
39793
39793
|
h1,
|
|
39794
39794
|
E,
|
|
39795
|
-
|
|
39796
|
-
|
|
39797
|
-
|
|
39798
|
-
|
|
39799
|
-
|
|
39800
|
-
|
|
39801
|
-
|
|
39802
|
-
|
|
39795
|
+
y,
|
|
39796
|
+
y,
|
|
39797
|
+
y,
|
|
39798
|
+
y,
|
|
39799
|
+
y,
|
|
39800
|
+
y,
|
|
39801
|
+
y,
|
|
39802
|
+
y,
|
|
39803
39803
|
_,
|
|
39804
|
-
|
|
39804
|
+
y
|
|
39805
39805
|
],
|
|
39806
39806
|
// ID
|
|
39807
39807
|
[
|
|
39808
|
-
|
|
39808
|
+
y,
|
|
39809
39809
|
E,
|
|
39810
39810
|
E,
|
|
39811
39811
|
_,
|
|
@@ -39814,102 +39814,102 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39814
39814
|
E,
|
|
39815
39815
|
E,
|
|
39816
39816
|
E,
|
|
39817
|
-
|
|
39818
|
-
|
|
39819
|
-
|
|
39820
|
-
|
|
39821
|
-
|
|
39822
|
-
|
|
39817
|
+
y,
|
|
39818
|
+
y,
|
|
39819
|
+
y,
|
|
39820
|
+
y,
|
|
39821
|
+
y,
|
|
39822
|
+
y,
|
|
39823
39823
|
_,
|
|
39824
39824
|
_,
|
|
39825
39825
|
_,
|
|
39826
|
-
|
|
39827
|
-
|
|
39826
|
+
y,
|
|
39827
|
+
y,
|
|
39828
39828
|
E,
|
|
39829
39829
|
h1,
|
|
39830
39830
|
E,
|
|
39831
|
-
|
|
39832
|
-
|
|
39833
|
-
|
|
39834
|
-
|
|
39835
|
-
|
|
39836
|
-
|
|
39837
|
-
|
|
39838
|
-
|
|
39831
|
+
y,
|
|
39832
|
+
y,
|
|
39833
|
+
y,
|
|
39834
|
+
y,
|
|
39835
|
+
y,
|
|
39836
|
+
y,
|
|
39837
|
+
y,
|
|
39838
|
+
y,
|
|
39839
39839
|
_,
|
|
39840
|
-
|
|
39840
|
+
y
|
|
39841
39841
|
],
|
|
39842
39842
|
// IN
|
|
39843
39843
|
[
|
|
39844
|
-
|
|
39844
|
+
y,
|
|
39845
39845
|
E,
|
|
39846
39846
|
E,
|
|
39847
39847
|
_,
|
|
39848
|
-
|
|
39848
|
+
y,
|
|
39849
39849
|
_,
|
|
39850
39850
|
E,
|
|
39851
39851
|
E,
|
|
39852
39852
|
E,
|
|
39853
|
-
|
|
39854
|
-
|
|
39853
|
+
y,
|
|
39854
|
+
y,
|
|
39855
39855
|
_,
|
|
39856
|
-
|
|
39857
|
-
|
|
39858
|
-
|
|
39856
|
+
y,
|
|
39857
|
+
y,
|
|
39858
|
+
y,
|
|
39859
39859
|
_,
|
|
39860
39860
|
_,
|
|
39861
39861
|
_,
|
|
39862
|
-
|
|
39863
|
-
|
|
39862
|
+
y,
|
|
39863
|
+
y,
|
|
39864
39864
|
E,
|
|
39865
39865
|
h1,
|
|
39866
39866
|
E,
|
|
39867
|
-
|
|
39868
|
-
|
|
39869
|
-
|
|
39870
|
-
|
|
39871
|
-
|
|
39872
|
-
|
|
39873
|
-
|
|
39874
|
-
|
|
39867
|
+
y,
|
|
39868
|
+
y,
|
|
39869
|
+
y,
|
|
39870
|
+
y,
|
|
39871
|
+
y,
|
|
39872
|
+
y,
|
|
39873
|
+
y,
|
|
39874
|
+
y,
|
|
39875
39875
|
_,
|
|
39876
|
-
|
|
39876
|
+
y
|
|
39877
39877
|
],
|
|
39878
39878
|
// HY
|
|
39879
39879
|
[
|
|
39880
|
-
|
|
39880
|
+
y,
|
|
39881
39881
|
E,
|
|
39882
39882
|
E,
|
|
39883
39883
|
_,
|
|
39884
|
-
|
|
39884
|
+
y,
|
|
39885
39885
|
_,
|
|
39886
39886
|
E,
|
|
39887
39887
|
E,
|
|
39888
39888
|
E,
|
|
39889
|
-
|
|
39890
|
-
|
|
39891
|
-
|
|
39892
|
-
|
|
39893
|
-
|
|
39894
|
-
|
|
39889
|
+
y,
|
|
39890
|
+
y,
|
|
39891
|
+
y,
|
|
39892
|
+
y,
|
|
39893
|
+
y,
|
|
39894
|
+
y,
|
|
39895
39895
|
_,
|
|
39896
39896
|
_,
|
|
39897
39897
|
_,
|
|
39898
|
-
|
|
39899
|
-
|
|
39898
|
+
y,
|
|
39899
|
+
y,
|
|
39900
39900
|
E,
|
|
39901
39901
|
h1,
|
|
39902
39902
|
E,
|
|
39903
|
-
|
|
39904
|
-
|
|
39905
|
-
|
|
39906
|
-
|
|
39907
|
-
|
|
39908
|
-
|
|
39909
|
-
|
|
39910
|
-
|
|
39903
|
+
y,
|
|
39904
|
+
y,
|
|
39905
|
+
y,
|
|
39906
|
+
y,
|
|
39907
|
+
y,
|
|
39908
|
+
y,
|
|
39909
|
+
y,
|
|
39910
|
+
y,
|
|
39911
39911
|
_,
|
|
39912
|
-
|
|
39912
|
+
y
|
|
39913
39913
|
],
|
|
39914
39914
|
// BA
|
|
39915
39915
|
[
|
|
@@ -39945,11 +39945,11 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39945
39945
|
_,
|
|
39946
39946
|
_,
|
|
39947
39947
|
_,
|
|
39948
|
-
|
|
39948
|
+
y
|
|
39949
39949
|
],
|
|
39950
39950
|
// BB
|
|
39951
39951
|
[
|
|
39952
|
-
|
|
39952
|
+
y,
|
|
39953
39953
|
E,
|
|
39954
39954
|
E,
|
|
39955
39955
|
_,
|
|
@@ -39958,66 +39958,66 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
39958
39958
|
E,
|
|
39959
39959
|
E,
|
|
39960
39960
|
E,
|
|
39961
|
-
|
|
39962
|
-
|
|
39963
|
-
|
|
39964
|
-
|
|
39965
|
-
|
|
39966
|
-
|
|
39961
|
+
y,
|
|
39962
|
+
y,
|
|
39963
|
+
y,
|
|
39964
|
+
y,
|
|
39965
|
+
y,
|
|
39966
|
+
y,
|
|
39967
39967
|
_,
|
|
39968
39968
|
_,
|
|
39969
39969
|
_,
|
|
39970
|
-
|
|
39970
|
+
y,
|
|
39971
39971
|
E,
|
|
39972
39972
|
E,
|
|
39973
39973
|
h1,
|
|
39974
39974
|
E,
|
|
39975
|
-
|
|
39976
|
-
|
|
39977
|
-
|
|
39978
|
-
|
|
39979
|
-
|
|
39980
|
-
|
|
39981
|
-
|
|
39982
|
-
|
|
39975
|
+
y,
|
|
39976
|
+
y,
|
|
39977
|
+
y,
|
|
39978
|
+
y,
|
|
39979
|
+
y,
|
|
39980
|
+
y,
|
|
39981
|
+
y,
|
|
39982
|
+
y,
|
|
39983
39983
|
_,
|
|
39984
|
-
|
|
39984
|
+
y
|
|
39985
39985
|
],
|
|
39986
39986
|
// B2
|
|
39987
39987
|
[
|
|
39988
|
-
|
|
39989
|
-
|
|
39990
|
-
|
|
39991
|
-
|
|
39992
|
-
|
|
39993
|
-
|
|
39994
|
-
|
|
39995
|
-
|
|
39996
|
-
|
|
39997
|
-
|
|
39998
|
-
|
|
39999
|
-
|
|
40000
|
-
|
|
40001
|
-
|
|
40002
|
-
|
|
40003
|
-
|
|
40004
|
-
|
|
40005
|
-
|
|
40006
|
-
|
|
40007
|
-
|
|
39988
|
+
y,
|
|
39989
|
+
y,
|
|
39990
|
+
y,
|
|
39991
|
+
y,
|
|
39992
|
+
y,
|
|
39993
|
+
y,
|
|
39994
|
+
y,
|
|
39995
|
+
y,
|
|
39996
|
+
y,
|
|
39997
|
+
y,
|
|
39998
|
+
y,
|
|
39999
|
+
y,
|
|
40000
|
+
y,
|
|
40001
|
+
y,
|
|
40002
|
+
y,
|
|
40003
|
+
y,
|
|
40004
|
+
y,
|
|
40005
|
+
y,
|
|
40006
|
+
y,
|
|
40007
|
+
y,
|
|
40008
40008
|
E,
|
|
40009
|
-
|
|
40010
|
-
|
|
40011
|
-
|
|
40012
|
-
|
|
40013
|
-
|
|
40014
|
-
|
|
40015
|
-
|
|
40016
|
-
|
|
40017
|
-
|
|
40018
|
-
|
|
40019
|
-
|
|
40020
|
-
|
|
40009
|
+
y,
|
|
40010
|
+
y,
|
|
40011
|
+
y,
|
|
40012
|
+
y,
|
|
40013
|
+
y,
|
|
40014
|
+
y,
|
|
40015
|
+
y,
|
|
40016
|
+
y,
|
|
40017
|
+
y,
|
|
40018
|
+
y,
|
|
40019
|
+
y,
|
|
40020
|
+
y
|
|
40021
40021
|
],
|
|
40022
40022
|
// ZW
|
|
40023
40023
|
[
|
|
@@ -40035,25 +40035,25 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
40035
40035
|
_,
|
|
40036
40036
|
_,
|
|
40037
40037
|
_,
|
|
40038
|
-
|
|
40038
|
+
y,
|
|
40039
40039
|
_,
|
|
40040
40040
|
_,
|
|
40041
40041
|
_,
|
|
40042
|
-
|
|
40043
|
-
|
|
40042
|
+
y,
|
|
40043
|
+
y,
|
|
40044
40044
|
E,
|
|
40045
40045
|
h1,
|
|
40046
40046
|
E,
|
|
40047
|
-
|
|
40048
|
-
|
|
40049
|
-
|
|
40050
|
-
|
|
40051
|
-
|
|
40052
|
-
|
|
40053
|
-
|
|
40054
|
-
|
|
40047
|
+
y,
|
|
40048
|
+
y,
|
|
40049
|
+
y,
|
|
40050
|
+
y,
|
|
40051
|
+
y,
|
|
40052
|
+
y,
|
|
40053
|
+
y,
|
|
40054
|
+
y,
|
|
40055
40055
|
_,
|
|
40056
|
-
|
|
40056
|
+
y
|
|
40057
40057
|
],
|
|
40058
40058
|
// CM
|
|
40059
40059
|
[
|
|
@@ -40093,7 +40093,7 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
40093
40093
|
],
|
|
40094
40094
|
// WJ
|
|
40095
40095
|
[
|
|
40096
|
-
|
|
40096
|
+
y,
|
|
40097
40097
|
E,
|
|
40098
40098
|
E,
|
|
40099
40099
|
_,
|
|
@@ -40102,34 +40102,34 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
40102
40102
|
E,
|
|
40103
40103
|
E,
|
|
40104
40104
|
E,
|
|
40105
|
-
|
|
40105
|
+
y,
|
|
40106
40106
|
_,
|
|
40107
|
-
|
|
40108
|
-
|
|
40109
|
-
|
|
40110
|
-
|
|
40107
|
+
y,
|
|
40108
|
+
y,
|
|
40109
|
+
y,
|
|
40110
|
+
y,
|
|
40111
40111
|
_,
|
|
40112
40112
|
_,
|
|
40113
40113
|
_,
|
|
40114
|
-
|
|
40115
|
-
|
|
40114
|
+
y,
|
|
40115
|
+
y,
|
|
40116
40116
|
E,
|
|
40117
40117
|
h1,
|
|
40118
40118
|
E,
|
|
40119
|
-
|
|
40120
|
-
|
|
40121
|
-
|
|
40119
|
+
y,
|
|
40120
|
+
y,
|
|
40121
|
+
y,
|
|
40122
40122
|
_,
|
|
40123
40123
|
_,
|
|
40124
|
-
|
|
40125
|
-
|
|
40126
|
-
|
|
40124
|
+
y,
|
|
40125
|
+
y,
|
|
40126
|
+
y,
|
|
40127
40127
|
_,
|
|
40128
|
-
|
|
40128
|
+
y
|
|
40129
40129
|
],
|
|
40130
40130
|
// H2
|
|
40131
40131
|
[
|
|
40132
|
-
|
|
40132
|
+
y,
|
|
40133
40133
|
E,
|
|
40134
40134
|
E,
|
|
40135
40135
|
_,
|
|
@@ -40138,34 +40138,34 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
40138
40138
|
E,
|
|
40139
40139
|
E,
|
|
40140
40140
|
E,
|
|
40141
|
-
|
|
40141
|
+
y,
|
|
40142
40142
|
_,
|
|
40143
|
-
|
|
40144
|
-
|
|
40145
|
-
|
|
40146
|
-
|
|
40143
|
+
y,
|
|
40144
|
+
y,
|
|
40145
|
+
y,
|
|
40146
|
+
y,
|
|
40147
40147
|
_,
|
|
40148
40148
|
_,
|
|
40149
40149
|
_,
|
|
40150
|
-
|
|
40151
|
-
|
|
40150
|
+
y,
|
|
40151
|
+
y,
|
|
40152
40152
|
E,
|
|
40153
40153
|
h1,
|
|
40154
40154
|
E,
|
|
40155
|
-
|
|
40156
|
-
|
|
40157
|
-
|
|
40158
|
-
|
|
40155
|
+
y,
|
|
40156
|
+
y,
|
|
40157
|
+
y,
|
|
40158
|
+
y,
|
|
40159
40159
|
_,
|
|
40160
|
-
|
|
40161
|
-
|
|
40162
|
-
|
|
40160
|
+
y,
|
|
40161
|
+
y,
|
|
40162
|
+
y,
|
|
40163
40163
|
_,
|
|
40164
|
-
|
|
40164
|
+
y
|
|
40165
40165
|
],
|
|
40166
40166
|
// H3
|
|
40167
40167
|
[
|
|
40168
|
-
|
|
40168
|
+
y,
|
|
40169
40169
|
E,
|
|
40170
40170
|
E,
|
|
40171
40171
|
_,
|
|
@@ -40174,17 +40174,17 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
40174
40174
|
E,
|
|
40175
40175
|
E,
|
|
40176
40176
|
E,
|
|
40177
|
-
|
|
40177
|
+
y,
|
|
40178
40178
|
_,
|
|
40179
|
-
|
|
40180
|
-
|
|
40181
|
-
|
|
40182
|
-
|
|
40179
|
+
y,
|
|
40180
|
+
y,
|
|
40181
|
+
y,
|
|
40182
|
+
y,
|
|
40183
40183
|
_,
|
|
40184
40184
|
_,
|
|
40185
40185
|
_,
|
|
40186
|
-
|
|
40187
|
-
|
|
40186
|
+
y,
|
|
40187
|
+
y,
|
|
40188
40188
|
E,
|
|
40189
40189
|
h1,
|
|
40190
40190
|
E,
|
|
@@ -40192,16 +40192,16 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
40192
40192
|
_,
|
|
40193
40193
|
_,
|
|
40194
40194
|
_,
|
|
40195
|
-
|
|
40196
|
-
|
|
40197
|
-
|
|
40198
|
-
|
|
40195
|
+
y,
|
|
40196
|
+
y,
|
|
40197
|
+
y,
|
|
40198
|
+
y,
|
|
40199
40199
|
_,
|
|
40200
|
-
|
|
40200
|
+
y
|
|
40201
40201
|
],
|
|
40202
40202
|
// JL
|
|
40203
40203
|
[
|
|
40204
|
-
|
|
40204
|
+
y,
|
|
40205
40205
|
E,
|
|
40206
40206
|
E,
|
|
40207
40207
|
_,
|
|
@@ -40210,34 +40210,34 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
40210
40210
|
E,
|
|
40211
40211
|
E,
|
|
40212
40212
|
E,
|
|
40213
|
-
|
|
40213
|
+
y,
|
|
40214
40214
|
_,
|
|
40215
|
-
|
|
40216
|
-
|
|
40217
|
-
|
|
40218
|
-
|
|
40215
|
+
y,
|
|
40216
|
+
y,
|
|
40217
|
+
y,
|
|
40218
|
+
y,
|
|
40219
40219
|
_,
|
|
40220
40220
|
_,
|
|
40221
40221
|
_,
|
|
40222
|
-
|
|
40223
|
-
|
|
40222
|
+
y,
|
|
40223
|
+
y,
|
|
40224
40224
|
E,
|
|
40225
40225
|
h1,
|
|
40226
40226
|
E,
|
|
40227
|
-
|
|
40228
|
-
|
|
40229
|
-
|
|
40227
|
+
y,
|
|
40228
|
+
y,
|
|
40229
|
+
y,
|
|
40230
40230
|
_,
|
|
40231
40231
|
_,
|
|
40232
|
-
|
|
40233
|
-
|
|
40234
|
-
|
|
40232
|
+
y,
|
|
40233
|
+
y,
|
|
40234
|
+
y,
|
|
40235
40235
|
_,
|
|
40236
|
-
|
|
40236
|
+
y
|
|
40237
40237
|
],
|
|
40238
40238
|
// JV
|
|
40239
40239
|
[
|
|
40240
|
-
|
|
40240
|
+
y,
|
|
40241
40241
|
E,
|
|
40242
40242
|
E,
|
|
40243
40243
|
_,
|
|
@@ -40246,34 +40246,34 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
40246
40246
|
E,
|
|
40247
40247
|
E,
|
|
40248
40248
|
E,
|
|
40249
|
-
|
|
40249
|
+
y,
|
|
40250
40250
|
_,
|
|
40251
|
-
|
|
40252
|
-
|
|
40253
|
-
|
|
40254
|
-
|
|
40251
|
+
y,
|
|
40252
|
+
y,
|
|
40253
|
+
y,
|
|
40254
|
+
y,
|
|
40255
40255
|
_,
|
|
40256
40256
|
_,
|
|
40257
40257
|
_,
|
|
40258
|
-
|
|
40259
|
-
|
|
40258
|
+
y,
|
|
40259
|
+
y,
|
|
40260
40260
|
E,
|
|
40261
40261
|
h1,
|
|
40262
40262
|
E,
|
|
40263
|
-
|
|
40264
|
-
|
|
40265
|
-
|
|
40266
|
-
|
|
40263
|
+
y,
|
|
40264
|
+
y,
|
|
40265
|
+
y,
|
|
40266
|
+
y,
|
|
40267
40267
|
_,
|
|
40268
|
-
|
|
40269
|
-
|
|
40270
|
-
|
|
40268
|
+
y,
|
|
40269
|
+
y,
|
|
40270
|
+
y,
|
|
40271
40271
|
_,
|
|
40272
|
-
|
|
40272
|
+
y
|
|
40273
40273
|
],
|
|
40274
40274
|
// JT
|
|
40275
40275
|
[
|
|
40276
|
-
|
|
40276
|
+
y,
|
|
40277
40277
|
E,
|
|
40278
40278
|
E,
|
|
40279
40279
|
_,
|
|
@@ -40282,34 +40282,34 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
40282
40282
|
E,
|
|
40283
40283
|
E,
|
|
40284
40284
|
E,
|
|
40285
|
-
|
|
40286
|
-
|
|
40287
|
-
|
|
40288
|
-
|
|
40289
|
-
|
|
40290
|
-
|
|
40285
|
+
y,
|
|
40286
|
+
y,
|
|
40287
|
+
y,
|
|
40288
|
+
y,
|
|
40289
|
+
y,
|
|
40290
|
+
y,
|
|
40291
40291
|
_,
|
|
40292
40292
|
_,
|
|
40293
40293
|
_,
|
|
40294
|
-
|
|
40295
|
-
|
|
40294
|
+
y,
|
|
40295
|
+
y,
|
|
40296
40296
|
E,
|
|
40297
40297
|
h1,
|
|
40298
40298
|
E,
|
|
40299
|
-
|
|
40300
|
-
|
|
40301
|
-
|
|
40302
|
-
|
|
40303
|
-
|
|
40299
|
+
y,
|
|
40300
|
+
y,
|
|
40301
|
+
y,
|
|
40302
|
+
y,
|
|
40303
|
+
y,
|
|
40304
40304
|
_,
|
|
40305
|
-
|
|
40306
|
-
|
|
40305
|
+
y,
|
|
40306
|
+
y,
|
|
40307
40307
|
_,
|
|
40308
|
-
|
|
40308
|
+
y
|
|
40309
40309
|
],
|
|
40310
40310
|
// RI
|
|
40311
40311
|
[
|
|
40312
|
-
|
|
40312
|
+
y,
|
|
40313
40313
|
E,
|
|
40314
40314
|
E,
|
|
40315
40315
|
_,
|
|
@@ -40318,34 +40318,34 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
40318
40318
|
E,
|
|
40319
40319
|
E,
|
|
40320
40320
|
E,
|
|
40321
|
-
|
|
40321
|
+
y,
|
|
40322
40322
|
_,
|
|
40323
|
-
|
|
40324
|
-
|
|
40325
|
-
|
|
40326
|
-
|
|
40323
|
+
y,
|
|
40324
|
+
y,
|
|
40325
|
+
y,
|
|
40326
|
+
y,
|
|
40327
40327
|
_,
|
|
40328
40328
|
_,
|
|
40329
40329
|
_,
|
|
40330
|
-
|
|
40331
|
-
|
|
40330
|
+
y,
|
|
40331
|
+
y,
|
|
40332
40332
|
E,
|
|
40333
40333
|
h1,
|
|
40334
40334
|
E,
|
|
40335
|
-
|
|
40336
|
-
|
|
40337
|
-
|
|
40338
|
-
|
|
40339
|
-
|
|
40340
|
-
|
|
40341
|
-
|
|
40335
|
+
y,
|
|
40336
|
+
y,
|
|
40337
|
+
y,
|
|
40338
|
+
y,
|
|
40339
|
+
y,
|
|
40340
|
+
y,
|
|
40341
|
+
y,
|
|
40342
40342
|
_,
|
|
40343
40343
|
_,
|
|
40344
|
-
|
|
40344
|
+
y
|
|
40345
40345
|
],
|
|
40346
40346
|
// EB
|
|
40347
40347
|
[
|
|
40348
|
-
|
|
40348
|
+
y,
|
|
40349
40349
|
E,
|
|
40350
40350
|
E,
|
|
40351
40351
|
_,
|
|
@@ -40354,30 +40354,30 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
40354
40354
|
E,
|
|
40355
40355
|
E,
|
|
40356
40356
|
E,
|
|
40357
|
-
|
|
40357
|
+
y,
|
|
40358
40358
|
_,
|
|
40359
|
-
|
|
40360
|
-
|
|
40361
|
-
|
|
40362
|
-
|
|
40359
|
+
y,
|
|
40360
|
+
y,
|
|
40361
|
+
y,
|
|
40362
|
+
y,
|
|
40363
40363
|
_,
|
|
40364
40364
|
_,
|
|
40365
40365
|
_,
|
|
40366
|
-
|
|
40367
|
-
|
|
40366
|
+
y,
|
|
40367
|
+
y,
|
|
40368
40368
|
E,
|
|
40369
40369
|
h1,
|
|
40370
40370
|
E,
|
|
40371
|
-
|
|
40372
|
-
|
|
40373
|
-
|
|
40374
|
-
|
|
40375
|
-
|
|
40376
|
-
|
|
40377
|
-
|
|
40378
|
-
|
|
40371
|
+
y,
|
|
40372
|
+
y,
|
|
40373
|
+
y,
|
|
40374
|
+
y,
|
|
40375
|
+
y,
|
|
40376
|
+
y,
|
|
40377
|
+
y,
|
|
40378
|
+
y,
|
|
40379
40379
|
_,
|
|
40380
|
-
|
|
40380
|
+
y
|
|
40381
40381
|
],
|
|
40382
40382
|
// EM
|
|
40383
40383
|
[
|
|
@@ -40395,61 +40395,61 @@ const Wy = 5, W6 = 12, Yy = 13, Vy = 16, Ky = 17, Zy = 22, Y6 = 28, V6 = 31, Jy
|
|
|
40395
40395
|
_,
|
|
40396
40396
|
_,
|
|
40397
40397
|
_,
|
|
40398
|
-
|
|
40398
|
+
y,
|
|
40399
40399
|
_,
|
|
40400
40400
|
_,
|
|
40401
40401
|
_,
|
|
40402
|
-
|
|
40403
|
-
|
|
40402
|
+
y,
|
|
40403
|
+
y,
|
|
40404
40404
|
E,
|
|
40405
40405
|
h1,
|
|
40406
40406
|
E,
|
|
40407
|
-
|
|
40408
|
-
|
|
40409
|
-
|
|
40410
|
-
|
|
40411
|
-
|
|
40412
|
-
|
|
40413
|
-
|
|
40414
|
-
|
|
40407
|
+
y,
|
|
40408
|
+
y,
|
|
40409
|
+
y,
|
|
40410
|
+
y,
|
|
40411
|
+
y,
|
|
40412
|
+
y,
|
|
40413
|
+
y,
|
|
40414
|
+
y,
|
|
40415
40415
|
_,
|
|
40416
|
-
|
|
40416
|
+
y
|
|
40417
40417
|
],
|
|
40418
40418
|
// ZWJ
|
|
40419
40419
|
[
|
|
40420
|
-
|
|
40420
|
+
y,
|
|
40421
40421
|
E,
|
|
40422
40422
|
E,
|
|
40423
40423
|
_,
|
|
40424
40424
|
_,
|
|
40425
|
-
|
|
40425
|
+
y,
|
|
40426
40426
|
E,
|
|
40427
40427
|
E,
|
|
40428
40428
|
E,
|
|
40429
|
-
|
|
40430
|
-
|
|
40431
|
-
|
|
40432
|
-
|
|
40433
|
-
|
|
40434
|
-
|
|
40435
|
-
|
|
40436
|
-
|
|
40437
|
-
|
|
40438
|
-
|
|
40439
|
-
|
|
40429
|
+
y,
|
|
40430
|
+
y,
|
|
40431
|
+
y,
|
|
40432
|
+
y,
|
|
40433
|
+
y,
|
|
40434
|
+
y,
|
|
40435
|
+
y,
|
|
40436
|
+
y,
|
|
40437
|
+
y,
|
|
40438
|
+
y,
|
|
40439
|
+
y,
|
|
40440
40440
|
E,
|
|
40441
40441
|
h1,
|
|
40442
40442
|
E,
|
|
40443
|
-
|
|
40444
|
-
|
|
40445
|
-
|
|
40446
|
-
|
|
40447
|
-
|
|
40448
|
-
|
|
40449
|
-
|
|
40450
|
-
|
|
40443
|
+
y,
|
|
40444
|
+
y,
|
|
40445
|
+
y,
|
|
40446
|
+
y,
|
|
40447
|
+
y,
|
|
40448
|
+
y,
|
|
40449
|
+
y,
|
|
40450
|
+
y,
|
|
40451
40451
|
_,
|
|
40452
|
-
|
|
40452
|
+
y
|
|
40453
40453
|
]
|
|
40454
40454
|
// CB
|
|
40455
40455
|
];
|
|
@@ -44779,7 +44779,7 @@ class Ez {
|
|
|
44779
44779
|
_getPairTableBreak(t) {
|
|
44780
44780
|
let e = !1;
|
|
44781
44781
|
switch (rz[this._curClass][this._nextClass]) {
|
|
44782
|
-
case
|
|
44782
|
+
case y:
|
|
44783
44783
|
e = !0;
|
|
44784
44784
|
break;
|
|
44785
44785
|
case _:
|
|
@@ -45244,8 +45244,8 @@ e3.prototype.addBezier = function(r, t, e, a, s, n, i, o) {
|
|
|
45244
45244
|
}
|
|
45245
45245
|
var f = Math.pow(h, 2) - 4 * v * p;
|
|
45246
45246
|
if (!(f < 0)) {
|
|
45247
|
-
var
|
|
45248
|
-
0 <
|
|
45247
|
+
var b = (-h + Math.sqrt(f)) / (2 * p);
|
|
45248
|
+
0 < b && b < 1 && (c === 0 && this.addX(F3(l[c], u[c], d[c], g[c], b)), c === 1 && this.addY(F3(l[c], u[c], d[c], g[c], b)));
|
|
45249
45249
|
var z = (-h - Math.sqrt(f)) / (2 * p);
|
|
45250
45250
|
0 < z && z < 1 && (c === 0 && this.addX(F3(l[c], u[c], d[c], g[c], z)), c === 1 && this.addY(F3(l[c], u[c], d[c], g[c], z)));
|
|
45251
45251
|
}
|
|
@@ -46302,8 +46302,8 @@ function m_(r) {
|
|
|
46302
46302
|
for (n.segments = [], e = 0; e < r.length; e += 1) {
|
|
46303
46303
|
for (var i = r.get(e), o = 0; o < i.unicodes.length; o += 1)
|
|
46304
46304
|
h_(n, i.unicodes[o], e);
|
|
46305
|
-
n.segments = n.segments.sort(function(
|
|
46306
|
-
return
|
|
46305
|
+
n.segments = n.segments.sort(function(b, z) {
|
|
46306
|
+
return b.start - z.start;
|
|
46307
46307
|
});
|
|
46308
46308
|
}
|
|
46309
46309
|
k_(n);
|
|
@@ -47950,7 +47950,7 @@ function A_(r, t, e) {
|
|
|
47950
47950
|
function c5(r, t, e) {
|
|
47951
47951
|
var a, s, n, i, o = new F1(), l = [], u = 0, d = !1, g = !1, c = 0, h = 0, p, v, m, f;
|
|
47952
47952
|
if (r.isCIDFont) {
|
|
47953
|
-
var
|
|
47953
|
+
var b = r.tables.cff.topDict._fdSelect[t.index], z = r.tables.cff.topDict._fdArray[b];
|
|
47954
47954
|
p = z._subrs, v = z._subrsBias, m = z._defaultWidthX, f = z._nominalWidthX;
|
|
47955
47955
|
} else
|
|
47956
47956
|
p = r.tables.cff.topDict._subrs, v = r.tables.cff.topDict._subrsBias, m = r.tables.cff.topDict._defaultWidthX, f = r.tables.cff.topDict._nominalWidthX;
|
|
@@ -47963,7 +47963,7 @@ function c5(r, t, e) {
|
|
|
47963
47963
|
C = l.length % 2 !== 0, C && !d && (D = l.shift() + f), u += l.length >> 1, l.length = 0, d = !0;
|
|
47964
47964
|
}
|
|
47965
47965
|
function x(C) {
|
|
47966
|
-
for (var T, F, S,
|
|
47966
|
+
for (var T, F, S, A, B, O, M, L, I, N, P, $, H = 0; H < C.length; ) {
|
|
47967
47967
|
var V = C[H];
|
|
47968
47968
|
switch (H += 1, V) {
|
|
47969
47969
|
case 1:
|
|
@@ -47992,23 +47992,23 @@ function c5(r, t, e) {
|
|
|
47992
47992
|
a = c + l.shift(), s = h + l.shift(), n = a + l.shift(), i = s + l.shift(), c = n + l.shift(), h = i + l.shift(), o.curveTo(a, s, n, i, c, h);
|
|
47993
47993
|
break;
|
|
47994
47994
|
case 10:
|
|
47995
|
-
B = l.pop() + v,
|
|
47995
|
+
B = l.pop() + v, O = p[B], O && x(O);
|
|
47996
47996
|
break;
|
|
47997
47997
|
case 11:
|
|
47998
47998
|
return;
|
|
47999
47999
|
case 12:
|
|
48000
48000
|
switch (V = C[H], H += 1, V) {
|
|
48001
48001
|
case 35:
|
|
48002
|
-
a = c + l.shift(), s = h + l.shift(), n = a + l.shift(), i = s + l.shift(),
|
|
48002
|
+
a = c + l.shift(), s = h + l.shift(), n = a + l.shift(), i = s + l.shift(), M = n + l.shift(), L = i + l.shift(), I = M + l.shift(), N = L + l.shift(), P = I + l.shift(), $ = N + l.shift(), c = P + l.shift(), h = $ + l.shift(), l.shift(), o.curveTo(a, s, n, i, M, L), o.curveTo(I, N, P, $, c, h);
|
|
48003
48003
|
break;
|
|
48004
48004
|
case 34:
|
|
48005
|
-
a = c + l.shift(), s = h, n = a + l.shift(), i = s + l.shift(),
|
|
48005
|
+
a = c + l.shift(), s = h, n = a + l.shift(), i = s + l.shift(), M = n + l.shift(), L = i, I = M + l.shift(), N = i, P = I + l.shift(), $ = h, c = P + l.shift(), o.curveTo(a, s, n, i, M, L), o.curveTo(I, N, P, $, c, h);
|
|
48006
48006
|
break;
|
|
48007
48007
|
case 36:
|
|
48008
|
-
a = c + l.shift(), s = h + l.shift(), n = a + l.shift(), i = s + l.shift(),
|
|
48008
|
+
a = c + l.shift(), s = h + l.shift(), n = a + l.shift(), i = s + l.shift(), M = n + l.shift(), L = i, I = M + l.shift(), N = i, P = I + l.shift(), $ = N + l.shift(), c = P + l.shift(), o.curveTo(a, s, n, i, M, L), o.curveTo(I, N, P, $, c, h);
|
|
48009
48009
|
break;
|
|
48010
48010
|
case 37:
|
|
48011
|
-
a = c + l.shift(), s = h + l.shift(), n = a + l.shift(), i = s + l.shift(),
|
|
48011
|
+
a = c + l.shift(), s = h + l.shift(), n = a + l.shift(), i = s + l.shift(), M = n + l.shift(), L = i + l.shift(), I = M + l.shift(), N = L + l.shift(), P = I + l.shift(), $ = N + l.shift(), Math.abs(P - c) > Math.abs($ - h) ? c = P + l.shift() : h = $ + l.shift(), o.curveTo(a, s, n, i, M, L), o.curveTo(I, N, P, $, c, h);
|
|
48012
48012
|
break;
|
|
48013
48013
|
default:
|
|
48014
48014
|
console.log("Glyph " + t.index + ": unknown operator 1200" + V), l.length = 0;
|
|
@@ -48056,7 +48056,7 @@ function c5(r, t, e) {
|
|
|
48056
48056
|
T = C[H], F = C[H + 1], l.push((T << 24 | F << 16) >> 16), H += 2;
|
|
48057
48057
|
break;
|
|
48058
48058
|
case 29:
|
|
48059
|
-
B = l.pop() + r.gsubrsBias,
|
|
48059
|
+
B = l.pop() + r.gsubrsBias, O = r.gsubrs[B], O && x(O);
|
|
48060
48060
|
break;
|
|
48061
48061
|
case 30:
|
|
48062
48062
|
for (; l.length > 0 && (a = c, s = h + l.shift(), n = a + l.shift(), i = s + l.shift(), c = n + l.shift(), h = i + (l.length === 1 ? l.shift() : 0), o.curveTo(a, s, n, i, c, h), l.length !== 0); )
|
|
@@ -48067,7 +48067,7 @@ function c5(r, t, e) {
|
|
|
48067
48067
|
a = c, s = h + l.shift(), n = a + l.shift(), i = s + l.shift(), c = n + l.shift(), h = i + (l.length === 1 ? l.shift() : 0), o.curveTo(a, s, n, i, c, h);
|
|
48068
48068
|
break;
|
|
48069
48069
|
default:
|
|
48070
|
-
V < 32 ? console.log("Glyph " + t.index + ": unknown operator " + V) : V < 247 ? l.push(V - 139) : V < 251 ? (T = C[H], H += 1, l.push((V - 247) * 256 + T + 108)) : V < 255 ? (T = C[H], H += 1, l.push(-(V - 251) * 256 - T - 108)) : (T = C[H], F = C[H + 1], S = C[H + 2],
|
|
48070
|
+
V < 32 ? console.log("Glyph " + t.index + ": unknown operator " + V) : V < 247 ? l.push(V - 139) : V < 251 ? (T = C[H], H += 1, l.push((V - 247) * 256 + T + 108)) : V < 255 ? (T = C[H], H += 1, l.push(-(V - 251) * 256 - T - 108)) : (T = C[H], F = C[H + 1], S = C[H + 2], A = C[H + 3], H += 4, l.push((T << 24 | F << 16 | S << 8 | A) / 65536));
|
|
48071
48071
|
}
|
|
48072
48072
|
}
|
|
48073
48073
|
}
|
|
@@ -48118,8 +48118,8 @@ function M_(r, t, e, a) {
|
|
|
48118
48118
|
}
|
|
48119
48119
|
var v = t + d.private[1], m = At(r, v, d.private[0], o.objects);
|
|
48120
48120
|
if (e.defaultWidthX = m.defaultWidthX, e.nominalWidthX = m.nominalWidthX, m.subrs !== 0) {
|
|
48121
|
-
var f = v + m.subrs,
|
|
48122
|
-
e.subrs =
|
|
48121
|
+
var f = v + m.subrs, b = H2(r, f);
|
|
48122
|
+
e.subrs = b.objects, e.subrsBias = _4(e.subrs);
|
|
48123
48123
|
} else
|
|
48124
48124
|
e.subrs = [], e.subrsBias = 0;
|
|
48125
48125
|
var z;
|
|
@@ -49125,10 +49125,10 @@ function lD(r, t, e) {
|
|
|
49125
49125
|
for (var a = {}, s = new W.Parser(r, t), n = s.parseUShort(), i = s.parseUShort(), o = s.offset + s.parseUShort(), l = 0; l < i; l++) {
|
|
49126
49126
|
var u = s.parseUShort(), d = s.parseUShort(), g = s.parseUShort(), c = s.parseUShort(), h = Ht[c] || c, p = s.parseUShort(), v = s.parseUShort(), m = nD(u, g, e), f = Xt(u, d, g);
|
|
49127
49127
|
if (f !== void 0 && m !== void 0) {
|
|
49128
|
-
var
|
|
49129
|
-
if (f === D4 ?
|
|
49128
|
+
var b = void 0;
|
|
49129
|
+
if (f === D4 ? b = N3.UTF16(r, o + v, p) : b = N3.MACSTRING(r, o + v, p, f), b) {
|
|
49130
49130
|
var z = a[h];
|
|
49131
|
-
z === void 0 && (z = a[h] = {}), z[m] =
|
|
49131
|
+
z === void 0 && (z = a[h] = {}), z[m] = b;
|
|
49132
49132
|
}
|
|
49133
49133
|
}
|
|
49134
49134
|
}
|
|
@@ -49183,12 +49183,12 @@ function dD(r, t) {
|
|
|
49183
49183
|
e = a[c];
|
|
49184
49184
|
var h = s[e];
|
|
49185
49185
|
for (var p in h) {
|
|
49186
|
-
var v = h[p], m = 1, f = l[p],
|
|
49187
|
-
D === void 0 && (m = 0, f = t.indexOf(p), f < 0 && (f = t.length, t.push(p)),
|
|
49186
|
+
var v = h[p], m = 1, f = l[p], b = sD[f], z = Xt(m, b, f), D = q.MACSTRING(v, z);
|
|
49187
|
+
D === void 0 && (m = 0, f = t.indexOf(p), f < 0 && (f = t.length, t.push(p)), b = 4, D = q.UTF16(v));
|
|
49188
49188
|
var j = m5(D, g);
|
|
49189
49189
|
d.push(k5(
|
|
49190
49190
|
m,
|
|
49191
|
-
|
|
49191
|
+
b,
|
|
49192
49192
|
f,
|
|
49193
49193
|
e,
|
|
49194
49194
|
D.length,
|
|
@@ -49208,8 +49208,8 @@ function dD(r, t) {
|
|
|
49208
49208
|
}
|
|
49209
49209
|
}
|
|
49210
49210
|
}
|
|
49211
|
-
d.sort(function(S,
|
|
49212
|
-
return S.platformID -
|
|
49211
|
+
d.sort(function(S, A) {
|
|
49212
|
+
return S.platformID - A.platformID || S.encodingID - A.encodingID || S.languageID - A.languageID || S.nameID - A.nameID;
|
|
49213
49213
|
});
|
|
49214
49214
|
for (var T = new G.Table("name", [
|
|
49215
49215
|
{ name: "format", type: "USHORT", value: 0 },
|
|
@@ -49916,8 +49916,8 @@ function zD(r) {
|
|
|
49916
49916
|
else
|
|
49917
49917
|
throw new Error("Unicode ranges bits > 123 are reserved for internal usage");
|
|
49918
49918
|
if (v.name !== ".notdef") {
|
|
49919
|
-
var
|
|
49920
|
-
t.push(
|
|
49919
|
+
var b = v.getMetrics();
|
|
49920
|
+
t.push(b.xMin), e.push(b.yMin), a.push(b.xMax), s.push(b.yMax), i.push(b.leftSideBearing), o.push(b.rightSideBearing), n.push(v.advanceWidth);
|
|
49921
49921
|
}
|
|
49922
49922
|
}
|
|
49923
49923
|
var z = {
|
|
@@ -49975,21 +49975,21 @@ function zD(r) {
|
|
|
49975
49975
|
// Use space as the default character, if available.
|
|
49976
49976
|
usBreakChar: r.hasChar(" ") ? 32 : 0
|
|
49977
49977
|
// Use space as the break character, if available.
|
|
49978
|
-
}, r.tables.os2)), C = Nt.make(r.glyphs), T = xt.make(r.glyphs), F = r.getEnglishName("fontFamily"), S = r.getEnglishName("fontSubfamily"),
|
|
49978
|
+
}, r.tables.os2)), C = Nt.make(r.glyphs), T = xt.make(r.glyphs), F = r.getEnglishName("fontFamily"), S = r.getEnglishName("fontSubfamily"), A = F + " " + S, B = r.getEnglishName("postScriptName");
|
|
49979
49979
|
B || (B = F.replace(/\s/g, "") + "-" + S);
|
|
49980
|
-
var
|
|
49981
|
-
for (var
|
|
49982
|
-
|
|
49983
|
-
|
|
49984
|
-
var L = [],
|
|
49980
|
+
var O = {};
|
|
49981
|
+
for (var M in r.names)
|
|
49982
|
+
O[M] = r.names[M];
|
|
49983
|
+
O.uniqueID || (O.uniqueID = { en: r.getEnglishName("manufacturer") + ":" + A }), O.postScriptName || (O.postScriptName = { en: B }), O.preferredFamily || (O.preferredFamily = r.names.fontFamily), O.preferredSubfamily || (O.preferredSubfamily = r.names.fontSubfamily);
|
|
49984
|
+
var L = [], I = Wt.make(O, L), N = L.length > 0 ? $t.make(L) : void 0, P = Yt.make(), $ = It.make(r.glyphs, {
|
|
49985
49985
|
version: r.getEnglishName("version"),
|
|
49986
|
-
fullName:
|
|
49986
|
+
fullName: A,
|
|
49987
49987
|
familyName: F,
|
|
49988
49988
|
weightName: S,
|
|
49989
49989
|
postScriptName: B,
|
|
49990
49990
|
unitsPerEm: r.unitsPerEm,
|
|
49991
49991
|
fontBBox: [0, z.yMin, z.ascender, z.advanceWidthMax]
|
|
49992
|
-
}), H = r.metas && Object.keys(r.metas).length > 0 ? Kt.make(r.metas) : void 0, V = [D, j, w, x,
|
|
49992
|
+
}), H = r.metas && Object.keys(r.metas).length > 0 ? Kt.make(r.metas) : void 0, V = [D, j, w, x, I, T, P, $, C];
|
|
49993
49993
|
N && V.push(N), r.tables.gsub && V.push(Vt.make(r.tables.gsub)), H && V.push(H);
|
|
49994
49994
|
for (var t1 = Zt(V), g1 = t1.encode(), c1 = s6(g1), i1 = t1.fields, n1 = !1, d1 = 0; d1 < i1.length; d1 += 1)
|
|
49995
49995
|
if (i1[d1].name === "head table") {
|
|
@@ -50490,8 +50490,8 @@ function Jt(r, t, e) {
|
|
|
50490
50490
|
n = s[v], p = {}, p.onCurve = !!(n & 1), p.lastPointOfContour = i.indexOf(v) >= 0, h.push(p);
|
|
50491
50491
|
for (var m = 0, f = 0; f < u; f += 1)
|
|
50492
50492
|
n = s[f], p = h[f], p.x = z5(a, n, m, 2, 16), m = p.x;
|
|
50493
|
-
for (var
|
|
50494
|
-
n = s[z], p = h[z], p.y = z5(a, n,
|
|
50493
|
+
for (var b = 0, z = 0; z < u; z += 1)
|
|
50494
|
+
n = s[z], p = h[z], p.y = z5(a, n, b, 4, 32), b = p.y;
|
|
50495
50495
|
}
|
|
50496
50496
|
r.points = h;
|
|
50497
50497
|
} else
|
|
@@ -50877,10 +50877,10 @@ r8 = function(r, t) {
|
|
|
50877
50877
|
var f = p[m];
|
|
50878
50878
|
f.xTouched = f.yTouched = !1, f.xo = f.x = f.x + c, f.yo = f.y = f.y + h;
|
|
50879
50879
|
}
|
|
50880
|
-
var
|
|
50880
|
+
var b = i.length;
|
|
50881
50881
|
i.push.apply(i, p);
|
|
50882
50882
|
for (var z = 0; z < v.length; z++)
|
|
50883
|
-
n.push(v[z] +
|
|
50883
|
+
n.push(v[z] + b);
|
|
50884
50884
|
}
|
|
50885
50885
|
r.instructions && !o.inhibitGridFit && (o = new Y2("glyf", r.instructions), o.gZone = o.z0 = o.z1 = o.z2 = i, o.contours = n, i.push(
|
|
50886
50886
|
new L2(0, 0),
|
|
@@ -50995,8 +50995,8 @@ function ND(r) {
|
|
|
50995
50995
|
function $D(r) {
|
|
50996
50996
|
var t = r.stack, e = t.pop(), a = t.pop(), s = t.pop(), n = t.pop(), i = t.pop(), o = r.z0, l = r.z1, u = o[e], d = o[a], g = l[s], c = l[n], h = r.z2[i];
|
|
50997
50997
|
exports.DEBUG && console.log("ISECT[], ", e, a, s, n, i);
|
|
50998
|
-
var p = u.x, v = u.y, m = d.x, f = d.y,
|
|
50999
|
-
h.x = (x * (
|
|
50998
|
+
var p = u.x, v = u.y, m = d.x, f = d.y, b = g.x, z = g.y, D = c.x, j = c.y, w = (p - m) * (z - j) - (v - f) * (b - D), x = p * f - v * m, C = b * j - z * D;
|
|
50999
|
+
h.x = (x * (b - D) - C * (p - m)) / w, h.y = (x * (z - j) - C * (v - f)) / w;
|
|
51000
51000
|
}
|
|
51001
51001
|
function UD(r) {
|
|
51002
51002
|
r.rp0 = r.stack.pop(), exports.DEBUG && console.log(r.step, "SRP0[]", r.rp0);
|
|
@@ -51556,11 +51556,11 @@ function $2(r, t) {
|
|
|
51556
51556
|
t.ip = e;
|
|
51557
51557
|
}
|
|
51558
51558
|
function X(r, t, e, a, s, n) {
|
|
51559
|
-
var i = n.stack, o = r && i.pop(), l = i.pop(), u = n.rp0, d = n.z0[u], g = n.z1[l], c = n.minDis, h = n.fv, p = n.dpv, v, m, f,
|
|
51560
|
-
m = v = p.distance(g, d, !0, !0), f = m >= 0 ? 1 : -1, m = Math.abs(m), r && (
|
|
51559
|
+
var i = n.stack, o = r && i.pop(), l = i.pop(), u = n.rp0, d = n.z0[u], g = n.z1[l], c = n.minDis, h = n.fv, p = n.dpv, v, m, f, b;
|
|
51560
|
+
m = v = p.distance(g, d, !0, !0), f = m >= 0 ? 1 : -1, m = Math.abs(m), r && (b = n.cvt[o], a && Math.abs(m - b) < n.cvCutIn && (m = b)), e && m < c && (m = c), a && (m = n.round(m)), h.setRelative(g, d, f * m, p), h.touch(g), exports.DEBUG && console.log(
|
|
51561
51561
|
n.step,
|
|
51562
51562
|
(r ? "MIRP[" : "MDRP[") + (t ? "M" : "m") + (e ? ">" : "_") + (a ? "R" : "_") + (s === 0 ? "Gr" : s === 1 ? "Bl" : s === 2 ? "Wh" : "") + "]",
|
|
51563
|
-
r ? o + "(" + n.cvt[o] + "," +
|
|
51563
|
+
r ? o + "(" + n.cvt[o] + "," + b + ")" : "",
|
|
51564
51564
|
l,
|
|
51565
51565
|
"(d =",
|
|
51566
51566
|
v,
|
|
@@ -52445,7 +52445,7 @@ function dw(r, t) {
|
|
|
52445
52445
|
if (g)
|
|
52446
52446
|
for (var h = 0; h < t.lookupRecords.length; h++)
|
|
52447
52447
|
for (var p = t.lookupRecords[h], v = p.lookupListIndex, m = this.getLookupByIndex(v), f = 0; f < m.subtables.length; f++) {
|
|
52448
|
-
var
|
|
52448
|
+
var b = m.subtables[f], z = this.getLookupMethod(m, b), D = this.getSubstitutionType(m, b);
|
|
52449
52449
|
if (D === "12")
|
|
52450
52450
|
for (var j = 0; j < a.length; j++) {
|
|
52451
52451
|
var w = r.get(j), x = z(w);
|
|
@@ -53529,7 +53529,7 @@ function ox(r, t) {
|
|
|
53529
53529
|
i = W.getUShort(n, 12), o = ix(n, i);
|
|
53530
53530
|
} else
|
|
53531
53531
|
throw new Error("Unsupported OpenType signature " + l);
|
|
53532
|
-
for (var d, g, c, h, p, v, m, f,
|
|
53532
|
+
for (var d, g, c, h, p, v, m, f, b, z, D, j, w = 0; w < i; w += 1) {
|
|
53533
53533
|
var x = o[w], C = void 0;
|
|
53534
53534
|
switch (x.tag) {
|
|
53535
53535
|
case "cmap":
|
|
@@ -53575,7 +53575,7 @@ function ox(r, t) {
|
|
|
53575
53575
|
c = x;
|
|
53576
53576
|
break;
|
|
53577
53577
|
case "loca":
|
|
53578
|
-
|
|
53578
|
+
b = x;
|
|
53579
53579
|
break;
|
|
53580
53580
|
case "CFF ":
|
|
53581
53581
|
d = x;
|
|
@@ -53598,23 +53598,23 @@ function ox(r, t) {
|
|
|
53598
53598
|
}
|
|
53599
53599
|
}
|
|
53600
53600
|
var T = w1(n, z);
|
|
53601
|
-
if (s.tables.name = Wt.parse(T.data, T.offset, a), s.names = s.tables.name, c &&
|
|
53602
|
-
var F = e === 0, S = w1(n,
|
|
53603
|
-
s.glyphs = t8.parse(B.data, B.offset,
|
|
53601
|
+
if (s.tables.name = Wt.parse(T.data, T.offset, a), s.names = s.tables.name, c && b) {
|
|
53602
|
+
var F = e === 0, S = w1(n, b), A = nx.parse(S.data, S.offset, s.numGlyphs, F), B = w1(n, c);
|
|
53603
|
+
s.glyphs = t8.parse(B.data, B.offset, A, s, t);
|
|
53604
53604
|
} else if (d) {
|
|
53605
|
-
var
|
|
53606
|
-
It.parse(
|
|
53605
|
+
var O = w1(n, d);
|
|
53606
|
+
It.parse(O.data, O.offset, s, t);
|
|
53607
53607
|
} else
|
|
53608
53608
|
throw new Error("Font doesn't contain TrueType or CFF outlines.");
|
|
53609
|
-
var
|
|
53610
|
-
if (Nt.parse(s,
|
|
53609
|
+
var M = w1(n, m);
|
|
53610
|
+
if (Nt.parse(s, M.data, M.offset, s.numberOfHMetrics, s.numGlyphs, s.glyphs, t), y_(s, t), f) {
|
|
53611
53611
|
var L = w1(n, f);
|
|
53612
53612
|
s.kerningPairs = rx.parse(L.data, L.offset);
|
|
53613
53613
|
} else
|
|
53614
53614
|
s.kerningPairs = {};
|
|
53615
53615
|
if (h) {
|
|
53616
|
-
var
|
|
53617
|
-
s.tables.gdef = Vw.parse(
|
|
53616
|
+
var I = w1(n, h);
|
|
53617
|
+
s.tables.gdef = Vw.parse(I.data, I.offset);
|
|
53618
53618
|
}
|
|
53619
53619
|
if (p) {
|
|
53620
53620
|
var N = w1(n, p);
|
|
@@ -53680,7 +53680,7 @@ function ux(r) {
|
|
|
53680
53680
|
}
|
|
53681
53681
|
const $5 = /* @__PURE__ */ new Map(), i4 = /* @__PURE__ */ new Map();
|
|
53682
53682
|
function C4(r, t, e, a, s) {
|
|
53683
|
-
var v, m, f,
|
|
53683
|
+
var v, m, f, b;
|
|
53684
53684
|
let n = 0, i = a[n];
|
|
53685
53685
|
for (; e.has(i); )
|
|
53686
53686
|
n++, i = a[n];
|
|
@@ -53732,7 +53732,7 @@ function C4(r, t, e, a, s) {
|
|
|
53732
53732
|
d.push(...C4(r.slice(D, p + c[h].length), t + D, e, a, s));
|
|
53733
53733
|
}
|
|
53734
53734
|
}
|
|
53735
|
-
p += (
|
|
53735
|
+
p += (b = c[h]) == null ? void 0 : b.length, h++;
|
|
53736
53736
|
}
|
|
53737
53737
|
return e.delete(i), d;
|
|
53738
53738
|
}
|
|
@@ -53852,23 +53852,23 @@ function bx(r, t, e, a, s, n = !1) {
|
|
|
53852
53852
|
} = s, d = [];
|
|
53853
53853
|
let g = new Ez(t);
|
|
53854
53854
|
const { endIndex: c } = a, h = e.getParagraph(c) || {}, { paragraphStyle: p = {} } = h, { snapToGrid: v = e1.TRUE } = p;
|
|
53855
|
-
let m = 0, f,
|
|
53855
|
+
let m = 0, f, b = 0;
|
|
53856
53856
|
const { hyphen: z, languageDetector: D } = r, j = lx(e.getBody(), c);
|
|
53857
53857
|
let w = [];
|
|
53858
53858
|
n && (w = cx(j)), Pz(g), Iz(g), g = new Mz(g);
|
|
53859
53859
|
const x = D.detect(t), C = vx(p, s), T = s.doNotHyphenateCaps === e1.TRUE;
|
|
53860
53860
|
for (x !== l1.UNKNOWN && C && (z.hasPattern(x) ? g = new Sz(g, z, x, T) : z.loadPattern(x)); f = g.nextBreakPoint(); ) {
|
|
53861
|
-
const
|
|
53861
|
+
const A = t.slice(m, f.position), B = [];
|
|
53862
53862
|
if (ce.isReady && n) {
|
|
53863
53863
|
const L = [];
|
|
53864
|
-
let
|
|
53865
|
-
for (
|
|
53866
|
-
const N = w[
|
|
53864
|
+
let I = 0;
|
|
53865
|
+
for (I = b; I < w.length; I++) {
|
|
53866
|
+
const N = w[I], { end: P } = N;
|
|
53867
53867
|
if (P > f.position)
|
|
53868
53868
|
break;
|
|
53869
53869
|
L.push(N);
|
|
53870
53870
|
}
|
|
53871
|
-
|
|
53871
|
+
b = I;
|
|
53872
53872
|
for (const N of L) {
|
|
53873
53873
|
const { start: P, char: $ } = N, H = p3(P, e, a, s, h);
|
|
53874
53874
|
if ($ === J.TAB) {
|
|
@@ -53883,15 +53883,15 @@ function bx(r, t, e, a, s, n = !1) {
|
|
|
53883
53883
|
}
|
|
53884
53884
|
}
|
|
53885
53885
|
} else {
|
|
53886
|
-
let L =
|
|
53886
|
+
let L = A, I = m;
|
|
53887
53887
|
for (; L.length > 0; ) {
|
|
53888
53888
|
const N = (F = L.match(/^[\s\S]/gu)) == null ? void 0 : F[0];
|
|
53889
53889
|
if (N == null)
|
|
53890
53890
|
break;
|
|
53891
53891
|
if (N === J.CUSTOM_BLOCK) {
|
|
53892
|
-
const P = p3(
|
|
53892
|
+
const P = p3(I, e, a, s, h);
|
|
53893
53893
|
let $ = null;
|
|
53894
|
-
const H = e.getCustomBlockWithoutSetCurrentIndex(a.startIndex +
|
|
53894
|
+
const H = e.getCustomBlockWithoutSetCurrentIndex(a.startIndex + I);
|
|
53895
53895
|
if (H != null) {
|
|
53896
53896
|
const { blockId: V } = H, t1 = u[V];
|
|
53897
53897
|
if (t1.layoutType === Y1.INLINE) {
|
|
@@ -53900,71 +53900,71 @@ function bx(r, t, e, a, s, n = !1) {
|
|
|
53900
53900
|
} else
|
|
53901
53901
|
$ = R6(P, 0, 0, t1.drawingId);
|
|
53902
53902
|
}
|
|
53903
|
-
$ == null && ($ = O2(N, P)), B.push($),
|
|
53903
|
+
$ == null && ($ = O2(N, P)), B.push($), I += N.length, L = L.substring(N.length);
|
|
53904
53904
|
} else if (/\s/.test(N) || Ce(N)) {
|
|
53905
|
-
const P = p3(
|
|
53905
|
+
const P = p3(I, e, a, s, h);
|
|
53906
53906
|
let $ = null;
|
|
53907
53907
|
if (N === J.TAB) {
|
|
53908
53908
|
const H = le(o, l, i, v);
|
|
53909
53909
|
$ = B6(P, H);
|
|
53910
53910
|
} else N === J.PARAGRAPH && ((S = s.renderConfig) == null ? void 0 : S.zeroWidthParagraphBreak) === e1.TRUE ? $ = O2(N, P, 0) : $ = O2(N, P);
|
|
53911
|
-
B.push($),
|
|
53911
|
+
B.push($), I += N.length, L = L.substring(N.length);
|
|
53912
53912
|
} else if (c4(L)) {
|
|
53913
53913
|
const { step: P, glyphGroup: $ } = kx(
|
|
53914
|
-
|
|
53914
|
+
I,
|
|
53915
53915
|
L,
|
|
53916
53916
|
e,
|
|
53917
53917
|
a,
|
|
53918
53918
|
s,
|
|
53919
53919
|
h
|
|
53920
53920
|
);
|
|
53921
|
-
B.push(...$),
|
|
53921
|
+
B.push(...$), I += P, L = L.substring(P);
|
|
53922
53922
|
} else if (y7(N)) {
|
|
53923
53923
|
const { step: P, glyphGroup: $ } = hx(
|
|
53924
|
-
|
|
53924
|
+
I,
|
|
53925
53925
|
L,
|
|
53926
53926
|
e,
|
|
53927
53927
|
a,
|
|
53928
53928
|
s,
|
|
53929
53929
|
h
|
|
53930
53930
|
);
|
|
53931
|
-
B.push(...$),
|
|
53931
|
+
B.push(...$), I += P, L = L.substring(P);
|
|
53932
53932
|
} else if (z7(N)) {
|
|
53933
53933
|
const { step: P, glyphGroup: $ } = mx(
|
|
53934
|
-
|
|
53934
|
+
I,
|
|
53935
53935
|
L,
|
|
53936
53936
|
e,
|
|
53937
53937
|
a,
|
|
53938
53938
|
s,
|
|
53939
53939
|
h
|
|
53940
53940
|
);
|
|
53941
|
-
B.push(...$),
|
|
53941
|
+
B.push(...$), I += P, L = L.substring(P);
|
|
53942
53942
|
} else {
|
|
53943
53943
|
const { step: P, glyphGroup: $ } = gx(
|
|
53944
|
-
|
|
53944
|
+
I,
|
|
53945
53945
|
L,
|
|
53946
53946
|
e,
|
|
53947
53947
|
a,
|
|
53948
53948
|
s,
|
|
53949
53949
|
h
|
|
53950
53950
|
);
|
|
53951
|
-
B.push(...$),
|
|
53951
|
+
B.push(...$), I += P, L = L.substring(P);
|
|
53952
53952
|
}
|
|
53953
53953
|
}
|
|
53954
53954
|
}
|
|
53955
53955
|
px(B);
|
|
53956
|
-
const
|
|
53956
|
+
const O = [[]];
|
|
53957
53957
|
for (let L = 0; L < B.length; L++) {
|
|
53958
|
-
const
|
|
53959
|
-
N.streamType === J.CUSTOM_BLOCK && N.width !== 0 ? (
|
|
53958
|
+
const I = O[O.length - 1], N = B[L];
|
|
53959
|
+
N.streamType === J.CUSTOM_BLOCK && N.width !== 0 ? (I.length === 0 && O.pop(), O.push([N])) : I.push(N);
|
|
53960
53960
|
}
|
|
53961
|
-
const
|
|
53962
|
-
for (const L of
|
|
53963
|
-
const
|
|
53961
|
+
const M = O[O.length - 1];
|
|
53962
|
+
for (const L of O) {
|
|
53963
|
+
const I = L.map((N) => N.content).join("");
|
|
53964
53964
|
d.push({
|
|
53965
|
-
text:
|
|
53965
|
+
text: I,
|
|
53966
53966
|
glyphs: L,
|
|
53967
|
-
breakPointType: L ===
|
|
53967
|
+
breakPointType: L === M ? f.type : A1.Normal
|
|
53968
53968
|
});
|
|
53969
53969
|
}
|
|
53970
53970
|
m = f.position;
|
|
@@ -54183,9 +54183,9 @@ const _e = class _e {
|
|
|
54183
54183
|
if (!this._patterns.has(e))
|
|
54184
54184
|
throw new Error(`Language pattern not found for ${e}, please load pattern before hyphenating`);
|
|
54185
54185
|
const { levelsTable: s, pattern: n } = this._patterns.get(e), i = new Array(t.length + 1).fill(0), o = `.${t.toLocaleLowerCase()}.`.split(""), [l, u] = xx(o);
|
|
54186
|
-
let d, g, c, h, p, v, m = -1, f,
|
|
54186
|
+
let d, g, c, h, p, v, m = -1, f, b, z;
|
|
54187
54187
|
for (; (d = l()).length > 0; )
|
|
54188
|
-
for (m++, u() && m--, c = n, f = Cx(d),
|
|
54188
|
+
for (m++, u() && m--, c = n, f = Cx(d), b = f[0], z = f[1]; (g = b()) && c[g] !== void 0; )
|
|
54189
54189
|
if (h = c[g], c = h[0], p = h[1], c === void 0 && (c = {}, p = h), !z() && p !== void 0) {
|
|
54190
54190
|
v = s[p];
|
|
54191
54191
|
for (let w = 0; w < v.length; w++)
|
|
@@ -54743,19 +54743,19 @@ class v3 extends U8 {
|
|
|
54743
54743
|
if (!o)
|
|
54744
54744
|
return;
|
|
54745
54745
|
const l = o.pages, { glyph: u, divide: d, line: g, column: c, section: h, page: p, segmentPageIndex: v, pageType: m } = i, f = H5(p);
|
|
54746
|
-
let
|
|
54746
|
+
let b = -1;
|
|
54747
54747
|
switch (m) {
|
|
54748
54748
|
case u1.HEADER:
|
|
54749
54749
|
case u1.FOOTER: {
|
|
54750
|
-
|
|
54750
|
+
b = 0;
|
|
54751
54751
|
break;
|
|
54752
54752
|
}
|
|
54753
54753
|
case u1.BODY: {
|
|
54754
|
-
|
|
54754
|
+
b = l.indexOf(p);
|
|
54755
54755
|
break;
|
|
54756
54756
|
}
|
|
54757
54757
|
case u1.CELL: {
|
|
54758
|
-
|
|
54758
|
+
b = f[1];
|
|
54759
54759
|
break;
|
|
54760
54760
|
}
|
|
54761
54761
|
default:
|
|
@@ -54767,7 +54767,7 @@ class v3 extends U8 {
|
|
|
54767
54767
|
line: c.lines.indexOf(g),
|
|
54768
54768
|
column: h.columns.indexOf(c),
|
|
54769
54769
|
section: p.sections.indexOf(h),
|
|
54770
|
-
page:
|
|
54770
|
+
page: b,
|
|
54771
54771
|
pageType: m,
|
|
54772
54772
|
segmentPage: v,
|
|
54773
54773
|
isBack: a,
|
|
@@ -54779,7 +54779,7 @@ class v3 extends U8 {
|
|
|
54779
54779
|
return n == null ? void 0 : n.glyph;
|
|
54780
54780
|
}
|
|
54781
54781
|
findGlyphByPosition(e) {
|
|
54782
|
-
var
|
|
54782
|
+
var b, z;
|
|
54783
54783
|
if (e == null)
|
|
54784
54784
|
return;
|
|
54785
54785
|
const a = this.getSkeletonData();
|
|
@@ -54791,7 +54791,7 @@ class v3 extends U8 {
|
|
|
54791
54791
|
m = s[g];
|
|
54792
54792
|
const { headerId: D, footerId: j, pageWidth: w } = m;
|
|
54793
54793
|
if (c === u1.HEADER) {
|
|
54794
|
-
const x = (
|
|
54794
|
+
const x = (b = i.get(D)) == null ? void 0 : b.get(w);
|
|
54795
54795
|
if (x == null)
|
|
54796
54796
|
return;
|
|
54797
54797
|
m = x;
|
|
@@ -54821,16 +54821,16 @@ class v3 extends U8 {
|
|
|
54821
54821
|
this._findLiquid.reset();
|
|
54822
54822
|
const { pages: c } = g;
|
|
54823
54823
|
for (let h = 0, p = c.length; h < p; h++) {
|
|
54824
|
-
const v = c[h], { marginTop: m, marginBottom: f, pageWidth:
|
|
54825
|
-
if (i > this._findLiquid.x && i < this._findLiquid.x +
|
|
54824
|
+
const v = c[h], { marginTop: m, marginBottom: f, pageWidth: b, pageHeight: z } = v;
|
|
54825
|
+
if (i > this._findLiquid.x && i < this._findLiquid.x + b && o > this._findLiquid.y && o < this._findLiquid.y + m) {
|
|
54826
54826
|
l = l3.HEADER, d = v, u = h;
|
|
54827
54827
|
break;
|
|
54828
54828
|
}
|
|
54829
|
-
if (i > this._findLiquid.x && i < this._findLiquid.x +
|
|
54829
|
+
if (i > this._findLiquid.x && i < this._findLiquid.x + b && o > this._findLiquid.y + m && o < this._findLiquid.y + z - f) {
|
|
54830
54830
|
l = l3.BODY, d = v, u = h;
|
|
54831
54831
|
break;
|
|
54832
54832
|
}
|
|
54833
|
-
if (i > this._findLiquid.x && i < this._findLiquid.x +
|
|
54833
|
+
if (i > this._findLiquid.x && i < this._findLiquid.x + b && o > this._findLiquid.y + z - f && o < this._findLiquid.y + z) {
|
|
54834
54834
|
l = l3.FOOTER, d = v, u = h;
|
|
54835
54835
|
break;
|
|
54836
54836
|
}
|
|
@@ -54843,7 +54843,7 @@ class v3 extends U8 {
|
|
|
54843
54843
|
};
|
|
54844
54844
|
}
|
|
54845
54845
|
findNodeByCoord(e, a, s, n, i) {
|
|
54846
|
-
var m, f,
|
|
54846
|
+
var m, f, b, z, D, j;
|
|
54847
54847
|
const { x: o, y: l } = e, u = this.getSkeletonData();
|
|
54848
54848
|
if (u == null)
|
|
54849
54849
|
return;
|
|
@@ -54856,9 +54856,9 @@ class v3 extends U8 {
|
|
|
54856
54856
|
const x = g[w], { headerId: C, footerId: T, pageWidth: F } = x;
|
|
54857
54857
|
let S = null;
|
|
54858
54858
|
if (p === l3.HEADER || p === l3.FOOTER) {
|
|
54859
|
-
const
|
|
54860
|
-
|
|
54861
|
-
|
|
54859
|
+
const A = (m = c.get(C)) == null ? void 0 : m.get(F);
|
|
54860
|
+
A && (S = this._collectNearestNode(
|
|
54861
|
+
A,
|
|
54862
54862
|
u1.HEADER,
|
|
54863
54863
|
x,
|
|
54864
54864
|
C,
|
|
@@ -54901,21 +54901,21 @@ class v3 extends U8 {
|
|
|
54901
54901
|
let T = null;
|
|
54902
54902
|
if (C === !1)
|
|
54903
54903
|
for (let F = 0; F < v; F++) {
|
|
54904
|
-
const S = g[F], { headerId:
|
|
54904
|
+
const S = g[F], { headerId: A, footerId: B, pageWidth: O } = S;
|
|
54905
54905
|
if (w !== "") {
|
|
54906
|
-
const
|
|
54907
|
-
|
|
54908
|
-
|
|
54906
|
+
const M = (b = c.get(A)) == null ? void 0 : b.get(O);
|
|
54907
|
+
M && (T = this._collectNearestNode(
|
|
54908
|
+
M,
|
|
54909
54909
|
u1.HEADER,
|
|
54910
54910
|
S,
|
|
54911
|
-
|
|
54911
|
+
A,
|
|
54912
54912
|
F,
|
|
54913
54913
|
d,
|
|
54914
54914
|
o,
|
|
54915
54915
|
l,
|
|
54916
54916
|
v
|
|
54917
54917
|
));
|
|
54918
|
-
const L = (z = h.get(B)) == null ? void 0 : z.get(
|
|
54918
|
+
const L = (z = h.get(B)) == null ? void 0 : z.get(O);
|
|
54919
54919
|
L && (T = T != null ? T : this._collectNearestNode(
|
|
54920
54920
|
L,
|
|
54921
54921
|
u1.FOOTER,
|
|
@@ -54951,10 +54951,10 @@ class v3 extends U8 {
|
|
|
54951
54951
|
this._translatePage(S, a, s, n);
|
|
54952
54952
|
continue;
|
|
54953
54953
|
}
|
|
54954
|
-
const { headerId:
|
|
54955
|
-
|
|
54956
|
-
|
|
54957
|
-
w ===
|
|
54954
|
+
const { headerId: A, pageWidth: B } = S, O = w === A ? (D = c.get(w)) == null ? void 0 : D.get(B) : (j = h.get(w)) == null ? void 0 : j.get(B);
|
|
54955
|
+
O && (T = this._collectNearestNode(
|
|
54956
|
+
O,
|
|
54957
|
+
w === A ? u1.HEADER : u1.FOOTER,
|
|
54958
54958
|
S,
|
|
54959
54959
|
w,
|
|
54960
54960
|
x,
|
|
@@ -54983,14 +54983,14 @@ class v3 extends U8 {
|
|
|
54983
54983
|
return this._getNearestNode(d.nearestNodeList, d.nearestNodeDistanceList);
|
|
54984
54984
|
}
|
|
54985
54985
|
_collectNearestNode(e, a, s, n, i, o, l, u, d, g = 0) {
|
|
54986
|
-
var D, j, w, x, C, T, F, S,
|
|
54986
|
+
var D, j, w, x, C, T, F, S, A;
|
|
54987
54987
|
const { sections: c, skeTables: h } = e;
|
|
54988
54988
|
this._findLiquid.translateSave();
|
|
54989
54989
|
const p = this._findLiquid.x, v = p + s.pageWidth, m = this._findLiquid.y + (a === u1.FOOTER ? s.pageHeight - e.pageHeight : 0), f = m + e.pageHeight;
|
|
54990
|
-
let
|
|
54990
|
+
let b = l >= p && l <= v && u >= m && u <= f;
|
|
54991
54991
|
if (g === 0 && a === u1.BODY) {
|
|
54992
|
-
const B = i === 0,
|
|
54993
|
-
B &&
|
|
54992
|
+
const B = i === 0, O = i === d - 1, M = s.originMarginTop / 2;
|
|
54993
|
+
B && O ? b = !0 : B ? b = u <= f + M : O ? b = u >= m - M : b = u >= m - M && u <= f + M;
|
|
54994
54994
|
}
|
|
54995
54995
|
switch (a) {
|
|
54996
54996
|
case u1.HEADER: {
|
|
@@ -55011,16 +55011,16 @@ class v3 extends U8 {
|
|
|
55011
55011
|
break;
|
|
55012
55012
|
}
|
|
55013
55013
|
}
|
|
55014
|
-
if (
|
|
55014
|
+
if (b) {
|
|
55015
55015
|
let B = Number.POSITIVE_INFINITY;
|
|
55016
|
-
for (const
|
|
55017
|
-
const { columns:
|
|
55018
|
-
this._findLiquid.translateSave(), this._findLiquid.translateSection(
|
|
55019
|
-
for (const L of
|
|
55020
|
-
const { lines:
|
|
55016
|
+
for (const O of c) {
|
|
55017
|
+
const { columns: M } = O;
|
|
55018
|
+
this._findLiquid.translateSave(), this._findLiquid.translateSection(O);
|
|
55019
|
+
for (const L of M) {
|
|
55020
|
+
const { lines: I } = L;
|
|
55021
55021
|
this._findLiquid.translateSave(), this._findLiquid.translateColumn(L);
|
|
55022
|
-
for (let N = 0; N <
|
|
55023
|
-
const P =
|
|
55022
|
+
for (let N = 0; N < I.length; N++) {
|
|
55023
|
+
const P = I[N], { divides: $, type: H, lineHeight: V = 0 } = P;
|
|
55024
55024
|
if (H !== M3.BLOCK) {
|
|
55025
55025
|
this._findLiquid.translateSave(), this._findLiquid.translateLine(P);
|
|
55026
55026
|
const { y: t1 } = this._findLiquid, g1 = t1, c1 = t1 + V, i1 = Math.abs(u - c1), n1 = $.length;
|
|
@@ -55048,7 +55048,7 @@ class v3 extends U8 {
|
|
|
55048
55048
|
ratioX: l / (C1 + O1),
|
|
55049
55049
|
ratioY: u / (g1 + c1)
|
|
55050
55050
|
}), o.nearestNodeDistanceList.push({
|
|
55051
|
-
coordInPage:
|
|
55051
|
+
coordInPage: b,
|
|
55052
55052
|
distance: U1,
|
|
55053
55053
|
nestLevel: g
|
|
55054
55054
|
}), B = Number.NEGATIVE_INFINITY;
|
|
@@ -55061,7 +55061,7 @@ class v3 extends U8 {
|
|
|
55061
55061
|
ratioX: l / (C1 + O1),
|
|
55062
55062
|
ratioY: u / (g1 + c1)
|
|
55063
55063
|
}), o.nearestNodeDistanceList.push({
|
|
55064
|
-
coordInPage:
|
|
55064
|
+
coordInPage: b,
|
|
55065
55065
|
distance: U1,
|
|
55066
55066
|
nestLevel: g
|
|
55067
55067
|
}));
|
|
@@ -55079,10 +55079,10 @@ class v3 extends U8 {
|
|
|
55079
55079
|
let z = null;
|
|
55080
55080
|
if (h.size > 0)
|
|
55081
55081
|
for (const B of h.values()) {
|
|
55082
|
-
const { top:
|
|
55083
|
-
(D = this._findLiquid) == null || D.translateSave(), (j = this._findLiquid) == null || j.translate(
|
|
55084
|
-
for (const
|
|
55085
|
-
const { top: N, cells: P, isRepeatRow: $ } =
|
|
55082
|
+
const { top: O, left: M, rows: L } = B;
|
|
55083
|
+
(D = this._findLiquid) == null || D.translateSave(), (j = this._findLiquid) == null || j.translate(M, O);
|
|
55084
|
+
for (const I of L) {
|
|
55085
|
+
const { top: N, cells: P, isRepeatRow: $ } = I;
|
|
55086
55086
|
if (!$) {
|
|
55087
55087
|
(w = this._findLiquid) == null || w.translateSave(), (x = this._findLiquid) == null || x.translate(0, N);
|
|
55088
55088
|
for (const H of P) {
|
|
@@ -55103,7 +55103,7 @@ class v3 extends U8 {
|
|
|
55103
55103
|
(S = this._findLiquid) == null || S.translateRestore();
|
|
55104
55104
|
}
|
|
55105
55105
|
}
|
|
55106
|
-
(
|
|
55106
|
+
(A = this._findLiquid) == null || A.translateRestore();
|
|
55107
55107
|
}
|
|
55108
55108
|
if (z)
|
|
55109
55109
|
return this._findLiquid.translateRestore(), z;
|
|
@@ -55166,7 +55166,7 @@ class v3 extends U8 {
|
|
|
55166
55166
|
paragraphLineGapDefault: d,
|
|
55167
55167
|
defaultTabStop: g,
|
|
55168
55168
|
documentTextStyle: c
|
|
55169
|
-
}, p = dy(), { skeHeaders: v, skeFooters: m, skeListLevel: f, drawingAnchor:
|
|
55169
|
+
}, p = dy(), { skeHeaders: v, skeFooters: m, skeListLevel: f, drawingAnchor: b } = p;
|
|
55170
55170
|
return {
|
|
55171
55171
|
viewModel: e,
|
|
55172
55172
|
dataModel: a,
|
|
@@ -55175,7 +55175,7 @@ class v3 extends U8 {
|
|
|
55175
55175
|
skeHeaders: v,
|
|
55176
55176
|
skeFooters: m,
|
|
55177
55177
|
skeListLevel: f,
|
|
55178
|
-
drawingAnchor:
|
|
55178
|
+
drawingAnchor: b
|
|
55179
55179
|
},
|
|
55180
55180
|
docsConfig: h,
|
|
55181
55181
|
layoutStartPointer: {
|
|
@@ -55232,7 +55232,7 @@ class v3 extends U8 {
|
|
|
55232
55232
|
}
|
|
55233
55233
|
}
|
|
55234
55234
|
for (let g = l, c = s.getChildren().length; g < c; g++) {
|
|
55235
|
-
const h = s.getChildren()[g], p = py(e, g), { sectionType: v, columnProperties: m, columnSeparatorType: f, sectionTypeNext:
|
|
55235
|
+
const h = s.getChildren()[g], p = py(e, g), { sectionType: v, columnProperties: m, columnSeparatorType: f, sectionTypeNext: b, pageNumberStart: z = 1 } = p;
|
|
55236
55236
|
let D = P3(o), j = !1;
|
|
55237
55237
|
e.sectionBreakConfigCache.set(h.endIndex, p), v === Q0.CONTINUOUS ? (ue(o), this._addNewSectionByContinuous(D, m, f), j = !0) : (u == null || D == null) && (D = y3(
|
|
55238
55238
|
e,
|
|
@@ -55248,7 +55248,7 @@ class v3 extends U8 {
|
|
|
55248
55248
|
p,
|
|
55249
55249
|
u
|
|
55250
55250
|
);
|
|
55251
|
-
if (
|
|
55251
|
+
if (b === Q0.CONTINUOUS && m.length > 0, j && w.splice(0, 1), o.push(...w), e.isDirty)
|
|
55252
55252
|
break;
|
|
55253
55253
|
}
|
|
55254
55254
|
if (e.isDirty && this._iteratorCount < 10)
|
|
@@ -55322,8 +55322,8 @@ class v3 extends U8 {
|
|
|
55322
55322
|
break;
|
|
55323
55323
|
}
|
|
55324
55324
|
}
|
|
55325
|
-
const { sections: m, st: f, ed:
|
|
55326
|
-
if (!(e < f || e >
|
|
55325
|
+
const { sections: m, st: f, ed: b } = v;
|
|
55326
|
+
if (!(e < f || e > b))
|
|
55327
55327
|
for (const z of m) {
|
|
55328
55328
|
const { columns: D, st: j, ed: w } = z;
|
|
55329
55329
|
if (!(e < j || e > w))
|
|
@@ -55331,10 +55331,10 @@ class v3 extends U8 {
|
|
|
55331
55331
|
const { lines: C, st: T, ed: F } = x;
|
|
55332
55332
|
if (!(e < T || e > F))
|
|
55333
55333
|
for (const S of C) {
|
|
55334
|
-
const { divides:
|
|
55335
|
-
if (!(e < B || e >
|
|
55336
|
-
for (let L = 0; L <
|
|
55337
|
-
const
|
|
55334
|
+
const { divides: A, st: B, ed: O } = S, M = A.length;
|
|
55335
|
+
if (!(e < B || e > O))
|
|
55336
|
+
for (let L = 0; L < M; L++) {
|
|
55337
|
+
const I = A[L], { glyphGroup: N, st: P, ed: $ } = I;
|
|
55338
55338
|
if (e < P || e > $)
|
|
55339
55339
|
continue;
|
|
55340
55340
|
let H = e - P;
|
|
@@ -55346,7 +55346,7 @@ class v3 extends U8 {
|
|
|
55346
55346
|
section: z,
|
|
55347
55347
|
column: x,
|
|
55348
55348
|
line: S,
|
|
55349
|
-
divide:
|
|
55349
|
+
divide: I,
|
|
55350
55350
|
glyph: V,
|
|
55351
55351
|
segmentPageIndex: s
|
|
55352
55352
|
};
|
|
@@ -55661,7 +55661,7 @@ let X5 = class extends X8 {
|
|
|
55661
55661
|
const { documentModel: v, textRotation: m, wrapStrategy: f } = p;
|
|
55662
55662
|
if (v == null)
|
|
55663
55663
|
continue;
|
|
55664
|
-
const
|
|
55664
|
+
const b = new K2(v), { vertexAngle: z } = t0(m);
|
|
55665
55665
|
let D = (u = (l = s[g]) == null ? void 0 : l.w) != null ? u : i;
|
|
55666
55666
|
if (c.isMergedMainCell) {
|
|
55667
55667
|
const x = c.startColumn, C = c.endColumn;
|
|
@@ -55669,12 +55669,12 @@ let X5 = class extends X8 {
|
|
|
55669
55669
|
{ length: C - x + 1 },
|
|
55670
55670
|
(T, F) => x + F
|
|
55671
55671
|
).reduce((T, F) => {
|
|
55672
|
-
var S,
|
|
55673
|
-
return T + ((
|
|
55672
|
+
var S, A;
|
|
55673
|
+
return T + ((A = (S = s[F]) == null ? void 0 : S.w) != null ? A : i);
|
|
55674
55674
|
}, 0);
|
|
55675
55675
|
}
|
|
55676
55676
|
typeof D == "number" && f === Q1.WRAP && v.updateDocumentDataPageSize(D);
|
|
55677
|
-
const j = v3.create(
|
|
55677
|
+
const j = v3.create(b, this._localeService);
|
|
55678
55678
|
j.calculate();
|
|
55679
55679
|
let { height: w = 0 } = (d = r0(j, z)) != null ? d : {};
|
|
55680
55680
|
if (j) {
|
|
@@ -55683,8 +55683,8 @@ let X5 = class extends X8 {
|
|
|
55683
55683
|
marginBottom: T,
|
|
55684
55684
|
marginLeft: F,
|
|
55685
55685
|
marginRight: S
|
|
55686
|
-
} = x.pages[x.pages.length - 1],
|
|
55687
|
-
w += C * Math.cos(
|
|
55686
|
+
} = x.pages[x.pages.length - 1], A = Math.abs(V1(z));
|
|
55687
|
+
w += C * Math.cos(A) + S * Math.sin(A) + T * Math.cos(A) + F * Math.sin(A);
|
|
55688
55688
|
}
|
|
55689
55689
|
o = Math.max(o, w);
|
|
55690
55690
|
}
|
|
@@ -55725,18 +55725,18 @@ let X5 = class extends X8 {
|
|
|
55725
55725
|
l.add(0), l.add(o - 1);
|
|
55726
55726
|
const u = this.visibleRangeByViewportKey(d2.VIEW_MAIN_TOP);
|
|
55727
55727
|
if (u) {
|
|
55728
|
-
const { startRow:
|
|
55729
|
-
for (let D =
|
|
55728
|
+
const { startRow: b, endRow: z } = u;
|
|
55729
|
+
for (let D = b; D <= z; D++)
|
|
55730
55730
|
l.add(D);
|
|
55731
55731
|
}
|
|
55732
|
-
const d = (
|
|
55733
|
-
{ length: z -
|
|
55734
|
-
(w, x) => x +
|
|
55732
|
+
const d = (b, z, D) => [...Array.from(
|
|
55733
|
+
{ length: z - b + 1 },
|
|
55734
|
+
(w, x) => x + b
|
|
55735
55735
|
), ...D], g = Math.max(0, n - g4), c = Math.min(o, i + g4), h = d(g, c, l), p = Math.max(0, t - 1);
|
|
55736
55736
|
let v = this.columnWidthAccumulation[t] - this.columnWidthAccumulation[p];
|
|
55737
55737
|
t === 0 && (v = this.columnWidthAccumulation[t]);
|
|
55738
|
-
for (let
|
|
55739
|
-
const z = h[
|
|
55738
|
+
for (let b = 0; b < h.length; b++) {
|
|
55739
|
+
const z = h[b], { isMerged: D, isMergedMainCell: j } = this.worksheet.getCellInfoInMergeData(t, z);
|
|
55740
55740
|
if (D && !j || !this.worksheet.getRowVisible(z)) continue;
|
|
55741
55741
|
const w = e.getCell(z, t);
|
|
55742
55742
|
if (!w || w.p && (z + S6 <= n || z - S6 >= i))
|
|
@@ -55781,9 +55781,9 @@ let X5 = class extends X8 {
|
|
|
55781
55781
|
marginTop: v,
|
|
55782
55782
|
marginBottom: m,
|
|
55783
55783
|
marginLeft: f,
|
|
55784
|
-
marginRight:
|
|
55784
|
+
marginRight: b
|
|
55785
55785
|
} = p.pages[p.pages.length - 1], z = Math.abs(V1(l));
|
|
55786
|
-
a += v * Math.sin(z) +
|
|
55786
|
+
a += v * Math.sin(z) + b * Math.cos(z) + m * Math.sin(z) + f * Math.cos(z);
|
|
55787
55787
|
}
|
|
55788
55788
|
return a;
|
|
55789
55789
|
}
|
|
@@ -55978,10 +55978,10 @@ let X5 = class extends X8 {
|
|
|
55978
55978
|
if (!c)
|
|
55979
55979
|
return !0;
|
|
55980
55980
|
if (n !== 0) {
|
|
55981
|
-
const { startY: m, endY: f, startX:
|
|
55981
|
+
const { startY: m, endY: f, startX: b, endX: z } = this.getCellWithCoordByIndex(
|
|
55982
55982
|
t,
|
|
55983
55983
|
e
|
|
55984
|
-
), D = z -
|
|
55984
|
+
), D = z - b, j = f - m;
|
|
55985
55985
|
c.height > j && (c = {
|
|
55986
55986
|
width: j / Math.tan(Math.abs(n)) + D,
|
|
55987
55987
|
height: j
|
|
@@ -56319,18 +56319,18 @@ class iC extends j3 {
|
|
|
56319
56319
|
spreadsheetSkeleton: s
|
|
56320
56320
|
};
|
|
56321
56321
|
e.save();
|
|
56322
|
-
const
|
|
56322
|
+
const b = [], z = /* @__PURE__ */ new Set(), D = s.getRowCount() - 1, j = s.getColumnCount() - 1;
|
|
56323
56323
|
v.forEach((w) => {
|
|
56324
56324
|
w.startColumn -= se, w.endColumn += se, w = Rv(w, D, j), s.worksheet.getMergedCellRange(w.startRow, w.startColumn, w.endRow, w.endColumn).forEach((C) => {
|
|
56325
56325
|
const T = s.worksheet.getSpanModel().getMergeDataIndex(C.startRow, C.startColumn);
|
|
56326
|
-
z.has(T) || (z.add(T),
|
|
56326
|
+
z.has(T) || (z.add(T), b.push(C));
|
|
56327
56327
|
}), $3.foreach(w, (C, T) => {
|
|
56328
56328
|
if (s.worksheet.getSpanModel().getMergeDataIndex(C, T) !== -1)
|
|
56329
56329
|
return;
|
|
56330
56330
|
const S = s.getCellWithCoordByIndex(C, T, !1);
|
|
56331
56331
|
S && (f.cellInfo = S, this._renderFontEachCell(f, C, T, u));
|
|
56332
56332
|
});
|
|
56333
|
-
}),
|
|
56333
|
+
}), b.forEach((w) => {
|
|
56334
56334
|
const x = s.getCellWithCoordByIndex(w.startRow, w.startColumn, !1);
|
|
56335
56335
|
f.cellInfo = x, this._renderFontEachCell(f, w.startRow, w.startColumn, u);
|
|
56336
56336
|
}), e.restore();
|
|
@@ -56341,16 +56341,16 @@ class iC extends j3 {
|
|
|
56341
56341
|
if (e.startX = h, e.startY = g, e.endX = p, e.endY = c, v && !m)
|
|
56342
56342
|
return !0;
|
|
56343
56343
|
m && (e.startX = f.startX, e.startY = f.startY, e.endX = f.endX, e.endY = f.endY);
|
|
56344
|
-
const
|
|
56345
|
-
if (!
|
|
56346
|
-
e.fontCache =
|
|
56344
|
+
const b = n.getValue(a, s);
|
|
56345
|
+
if (!b || !b.documentSkeleton) return !0;
|
|
56346
|
+
e.fontCache = b;
|
|
56347
56347
|
const z = u.overflowCache.getValue(a, s), D = l && l.length > 0 ? l : o;
|
|
56348
56348
|
if (!z && (!m && !v) && !x7(D, a, s))
|
|
56349
56349
|
return !0;
|
|
56350
56350
|
const w = u.worksheet.getRowVisible(a), x = u.worksheet.getColVisible(s);
|
|
56351
56351
|
if (!w || !x) return !0;
|
|
56352
56352
|
const C = u.worksheet.getCell(a, s) || {};
|
|
56353
|
-
return (F = C == null ? void 0 : C.fontRenderExtension) != null && F.isSkip ? !0 : (i.save(), i.beginPath(), e.overflowRectangle = z, this._clipByRenderBounds(e, a, s), i.translate(e.startX + c2, e.startY + c2), this._renderDocuments(i, a, s, e, u.overflowCache), i.closePath(), i.restore(), (S =
|
|
56353
|
+
return (F = C == null ? void 0 : C.fontRenderExtension) != null && F.isSkip ? !0 : (i.save(), i.beginPath(), e.overflowRectangle = z, this._clipByRenderBounds(e, a, s), i.translate(e.startX + c2, e.startY + c2), this._renderDocuments(i, a, s, e, u.overflowCache), i.closePath(), i.restore(), (S = b.documentSkeleton.getViewModel().getDataModel().getDrawingsOrder()) != null && S.length && (i.save(), i.beginPath(), this._clipByRenderBounds(e, a, s, 1), this._renderImages(i, b, e.startX, e.startY, e.endX, e.endY), i.closePath(), i.restore()), e.startX = 0, e.startY = 0, e.endX = 0, e.endY = 0, e.overflowRectangle = null, !1);
|
|
56354
56354
|
}
|
|
56355
56355
|
_renderImages(e, a, s, n, i, o) {
|
|
56356
56356
|
var z;
|
|
@@ -56378,29 +56378,29 @@ class iC extends j3 {
|
|
|
56378
56378
|
p = s + h;
|
|
56379
56379
|
break;
|
|
56380
56380
|
}
|
|
56381
|
-
const f = l.getViewModel().getDataModel().getDrawings(),
|
|
56382
|
-
|
|
56381
|
+
const f = l.getViewModel().getDataModel().getDrawings(), b = (z = l.getSkeletonData()) == null ? void 0 : z.pages[0].skeDrawings;
|
|
56382
|
+
b == null || b.forEach((D) => {
|
|
56383
56383
|
const j = f == null ? void 0 : f[D.drawingId];
|
|
56384
56384
|
if (j) {
|
|
56385
56385
|
const w = a.imageCacheMap.getImage(
|
|
56386
56386
|
j.imageSourceType,
|
|
56387
56387
|
j.source,
|
|
56388
56388
|
() => {
|
|
56389
|
-
var
|
|
56390
|
-
(
|
|
56389
|
+
var O;
|
|
56390
|
+
(O = this.parent) == null || O.makeDirty();
|
|
56391
56391
|
},
|
|
56392
56392
|
() => {
|
|
56393
|
-
var
|
|
56394
|
-
(
|
|
56393
|
+
var O;
|
|
56394
|
+
(O = this.parent) == null || O.makeDirty();
|
|
56395
56395
|
}
|
|
56396
|
-
), x = p + D.aLeft, C = v + D.aTop, T = D.width, F = D.height, S = D.angle, { rotatedHeight:
|
|
56396
|
+
), x = p + D.aLeft, C = v + D.aTop, T = D.width, F = D.height, S = D.angle, { rotatedHeight: A, rotatedWidth: B } = nC(T, F, S);
|
|
56397
56397
|
if (w && w.complete) {
|
|
56398
|
-
const
|
|
56399
|
-
e.save(), e.translate(x + B / 2, C +
|
|
56398
|
+
const O = S * Math.PI / 180;
|
|
56399
|
+
e.save(), e.translate(x + B / 2, C + A / 2), e.rotate(O);
|
|
56400
56400
|
try {
|
|
56401
|
-
e.drawImage(w, -B / 2, -
|
|
56402
|
-
} catch (
|
|
56403
|
-
console.error(
|
|
56401
|
+
e.drawImage(w, -B / 2, -A / 2, T, F);
|
|
56402
|
+
} catch (M) {
|
|
56403
|
+
console.error(M);
|
|
56404
56404
|
}
|
|
56405
56405
|
e.restore();
|
|
56406
56406
|
}
|
|
@@ -56415,36 +56415,36 @@ class iC extends j3 {
|
|
|
56415
56415
|
* @param fontCache
|
|
56416
56416
|
*/
|
|
56417
56417
|
_clipByRenderBounds(e, a, s, n = 0) {
|
|
56418
|
-
var x, C, T, F, S,
|
|
56418
|
+
var x, C, T, F, S, A;
|
|
56419
56419
|
const { ctx: i, scale: o, overflowRectangle: l, fontCache: u } = e;
|
|
56420
56420
|
let { startX: d, endX: g, startY: c, endY: h } = e;
|
|
56421
56421
|
const { horizontalAlign: p = 0, vertexAngle: v = 0, centerAngle: m = 0 } = u;
|
|
56422
56422
|
let f = p;
|
|
56423
56423
|
p === m1.UNSPECIFIED && (m === p2 && v === p2 ? f = m1.CENTER : (v > 0 && v !== p2 || v === -90) && (f = m1.RIGHT));
|
|
56424
|
-
const
|
|
56424
|
+
const b = (T = (C = (x = u == null ? void 0 : u.cellData) == null ? void 0 : x.fontRenderExtension) == null ? void 0 : C.rightOffset) != null ? T : 0, z = (A = (S = (F = u == null ? void 0 : u.cellData) == null ? void 0 : F.fontRenderExtension) == null ? void 0 : S.leftOffset) != null ? A : 0;
|
|
56425
56425
|
let D = !0;
|
|
56426
|
-
v === 0 && (d = d + z, g = g -
|
|
56426
|
+
v === 0 && (d = d + z, g = g - b, (b !== 0 || z !== 0) && (D = !1));
|
|
56427
56427
|
const j = g - d, w = h - c;
|
|
56428
56428
|
if (l && D) {
|
|
56429
|
-
const { startColumn: B, startRow:
|
|
56430
|
-
B ===
|
|
56429
|
+
const { startColumn: B, startRow: O, endColumn: M, endRow: L } = l, { spreadsheetSkeleton: I } = e, { rowHeightAccumulation: N, columnWidthAccumulation: P } = I;
|
|
56430
|
+
B === M && B === s ? (i.rectByPrecision(
|
|
56431
56431
|
d + 1 / o,
|
|
56432
56432
|
c + 1 / o,
|
|
56433
56433
|
j - 2 / o,
|
|
56434
56434
|
w - 2 / o
|
|
56435
56435
|
), i.clip()) : f === m1.CENTER ? this._clipRectangleForOverflow(
|
|
56436
56436
|
i,
|
|
56437
|
-
|
|
56437
|
+
O,
|
|
56438
56438
|
L,
|
|
56439
56439
|
B,
|
|
56440
|
-
|
|
56440
|
+
M,
|
|
56441
56441
|
o,
|
|
56442
56442
|
N,
|
|
56443
56443
|
P,
|
|
56444
56444
|
n
|
|
56445
56445
|
) : f === m1.RIGHT ? this._clipRectangleForOverflow(
|
|
56446
56446
|
i,
|
|
56447
|
-
|
|
56447
|
+
O,
|
|
56448
56448
|
a,
|
|
56449
56449
|
B,
|
|
56450
56450
|
s,
|
|
@@ -56457,7 +56457,7 @@ class iC extends j3 {
|
|
|
56457
56457
|
a,
|
|
56458
56458
|
L,
|
|
56459
56459
|
s,
|
|
56460
|
-
|
|
56460
|
+
M,
|
|
56461
56461
|
o,
|
|
56462
56462
|
N,
|
|
56463
56463
|
P,
|
|
@@ -56477,29 +56477,30 @@ class iC extends j3 {
|
|
|
56477
56477
|
if (!u) return;
|
|
56478
56478
|
const c = u.getViewModel().getDataModel();
|
|
56479
56479
|
let { startX: h, startY: p, endX: v, endY: m } = n;
|
|
56480
|
+
const f = v - h, b = m - p;
|
|
56480
56481
|
g === Q1.WRAP && d === 0 ? (c.updateDocumentDataPageSize(v - h), u.calculate()) : c.updateDocumentDataPageSize(Number.POSITIVE_INFINITY);
|
|
56481
|
-
const
|
|
56482
|
-
if (!(g === Q1.WRAP && d === 0) &&
|
|
56483
|
-
const
|
|
56484
|
-
if (
|
|
56485
|
-
const { width: O } =
|
|
56486
|
-
u.getViewModel().getDataModel().updateDocumentDataPageSize(O +
|
|
56482
|
+
const z = i.getValue(a, s);
|
|
56483
|
+
if (!(g === Q1.WRAP && d === 0) && z) {
|
|
56484
|
+
const w = r0(u), x = c.getSnapshot().documentStyle;
|
|
56485
|
+
if (w && x) {
|
|
56486
|
+
const { width: O } = w, { marginRight: M = 0, marginLeft: L = 0 } = x;
|
|
56487
|
+
u.getViewModel().getDataModel().updateDocumentDataPageSize(O + L + M), u.calculate();
|
|
56487
56488
|
}
|
|
56488
|
-
const
|
|
56489
|
-
v =
|
|
56490
|
-
const
|
|
56491
|
-
h =
|
|
56489
|
+
const C = z.endColumn, T = z.startColumn, F = z.startRow, S = z.endRow, A = n.spreadsheetSkeleton.getCellWithCoordByIndex(S, C);
|
|
56490
|
+
v = A.endX, m = A.endY;
|
|
56491
|
+
const B = n.spreadsheetSkeleton.getCellWithCoordByIndex(F, T);
|
|
56492
|
+
h = B.startX, p = B.startY;
|
|
56492
56493
|
}
|
|
56493
|
-
const
|
|
56494
|
+
const j = {
|
|
56494
56495
|
right: v - h,
|
|
56495
56496
|
bottom: m - p
|
|
56496
56497
|
};
|
|
56497
|
-
u.makeDirty(!1), o.resize(
|
|
56498
|
+
u.makeDirty(!1), o.resize(f, b), o.changeSkeleton(u).render(e, {
|
|
56498
56499
|
viewBound: {
|
|
56499
56500
|
left: 0,
|
|
56500
56501
|
top: 0,
|
|
56501
|
-
right:
|
|
56502
|
-
bottom:
|
|
56502
|
+
right: j.right,
|
|
56503
|
+
bottom: j.bottom
|
|
56503
56504
|
}
|
|
56504
56505
|
});
|
|
56505
56506
|
}
|
|
@@ -56533,8 +56534,8 @@ class dC extends j3 {
|
|
|
56533
56534
|
return;
|
|
56534
56535
|
let g = i.getCell(u, d);
|
|
56535
56536
|
const c = s.getCellWithCoordByIndex(u, d, !1), { isMerged: h, isMergedMainCell: p, mergeInfo: v } = c;
|
|
56536
|
-
let { startY: m, endY: f, startX:
|
|
56537
|
-
if ((p || h) && (m = v.startY, f = v.endY,
|
|
56537
|
+
let { startY: m, endY: f, startX: b, endX: z } = c;
|
|
56538
|
+
if ((p || h) && (m = v.startY, f = v.endY, b = v.startX, z = v.endX), h) {
|
|
56538
56539
|
const C = {
|
|
56539
56540
|
row: v.startRow,
|
|
56540
56541
|
col: v.startColumn
|
|
@@ -56557,7 +56558,7 @@ class dC extends j3 {
|
|
|
56557
56558
|
}
|
|
56558
56559
|
if ((j = g.markers) != null && j.tl) {
|
|
56559
56560
|
e.save();
|
|
56560
|
-
const C = g.markers.tl, T =
|
|
56561
|
+
const C = g.markers.tl, T = b, F = m;
|
|
56561
56562
|
e.fillStyle = C.color, e.moveTo(T, F), e.beginPath(), e.lineTo(T + C.size, F), e.lineTo(T, F + C.size), e.lineTo(T, F), e.closePath(), e.fill(), e.restore();
|
|
56562
56563
|
}
|
|
56563
56564
|
if ((w = g.markers) != null && w.br) {
|
|
@@ -56567,7 +56568,7 @@ class dC extends j3 {
|
|
|
56567
56568
|
}
|
|
56568
56569
|
if ((x = g.markers) != null && x.bl) {
|
|
56569
56570
|
e.save();
|
|
56570
|
-
const C = g.markers.bl, T =
|
|
56571
|
+
const C = g.markers.bl, T = b, F = f;
|
|
56571
56572
|
e.fillStyle = C.color, e.moveTo(T, F), e.beginPath(), e.lineTo(T + C.size, F), e.lineTo(T, F - C.size), e.lineTo(T, F), e.closePath(), e.fill(), e.restore();
|
|
56572
56573
|
}
|
|
56573
56574
|
}
|
|
@@ -56629,16 +56630,16 @@ class gC extends j3 {
|
|
|
56629
56630
|
for (let f = o - 1; f <= l; f++) {
|
|
56630
56631
|
if (f < 0 || f > v - 1)
|
|
56631
56632
|
continue;
|
|
56632
|
-
const
|
|
56633
|
-
if (p ===
|
|
56633
|
+
const b = u[f];
|
|
56634
|
+
if (p === b)
|
|
56634
56635
|
continue;
|
|
56635
56636
|
const z = {
|
|
56636
56637
|
left: 0,
|
|
56637
56638
|
top: p,
|
|
56638
56639
|
right: i,
|
|
56639
|
-
bottom:
|
|
56640
|
+
bottom: b,
|
|
56640
56641
|
width: i,
|
|
56641
|
-
height:
|
|
56642
|
+
height: b - p
|
|
56642
56643
|
}, [D, j] = this.getCfgOfCurrentRow(f);
|
|
56643
56644
|
j && D.backgroundColor && (e.save(), e.fillStyle = D.backgroundColor, e.fillRectByPrecision(z.left, z.top, z.width, z.height), e.restore()), e.beginPath(), e.moveToByPrecision(z.left, z.bottom), e.lineToByPrecision(z.right, z.bottom), e.stroke();
|
|
56644
56645
|
const w = (() => {
|
|
@@ -56652,8 +56653,8 @@ class gC extends j3 {
|
|
|
56652
56653
|
default:
|
|
56653
56654
|
return z.left + (z.right - z.left) / 2;
|
|
56654
56655
|
}
|
|
56655
|
-
})(), x = p + (
|
|
56656
|
-
j && (e.save(), e.beginPath(), this.setStyleToCtx(e, D), e.rectByPrecision(z.left, z.top, z.width, z.height), e.clip()), e.fillText(D.text, w, x), j && e.restore(), p =
|
|
56656
|
+
})(), x = p + (b - p) / 2 + O3;
|
|
56657
|
+
j && (e.save(), e.beginPath(), this.setStyleToCtx(e, D), e.rectByPrecision(z.left, z.top, z.width, z.height), e.clip()), e.fillText(D.text, w, x), j && e.restore(), p = b;
|
|
56657
56658
|
}
|
|
56658
56659
|
const m = i - 0.5 / h;
|
|
56659
56660
|
e.beginPath(), e.moveToByPrecision(m, 0), e.lineToByPrecision(m, c), e.stroke();
|
|
@@ -56810,8 +56811,8 @@ class fC extends Ae {
|
|
|
56810
56811
|
const f = h.get(m);
|
|
56811
56812
|
if (!f)
|
|
56812
56813
|
continue;
|
|
56813
|
-
const { s:
|
|
56814
|
-
|
|
56814
|
+
const { s: b, cl: z } = f, D = b3(z) || L3, j = S7(b);
|
|
56815
|
+
b !== this._preBorderStyle && (F7(e, b), e.setLineWidthByPrecision(j), this._preBorderStyle = b), D !== this._preBorderColor && (e.strokeStyle = D, this._preBorderColor = D), d3(e, m, (j - 1) / 2 / c, {
|
|
56815
56816
|
startX: p.x,
|
|
56816
56817
|
startY: p.y,
|
|
56817
56818
|
endX: p.x + d,
|
|
@@ -57178,7 +57179,7 @@ class f8 extends R1 {
|
|
|
57178
57179
|
t.closePath(), this._renderPaintInOrder(t, e);
|
|
57179
57180
|
}
|
|
57180
57181
|
_draw(t, e) {
|
|
57181
|
-
const { radius: a, paintFirst: s, stroke: n, strokeWidth: i, fill: o, strokeScaleEnabled: l, fillRule: u, strokeLineCap: d, strokeDashOffset: g, strokeLineJoin: c, strokeMiterLimit: h, strokeDashArray: p } = this, v = this.getParent().transform, m = v.getMatrix()[4], f = v.getMatrix()[5],
|
|
57182
|
+
const { radius: a, paintFirst: s, stroke: n, strokeWidth: i, fill: o, strokeScaleEnabled: l, fillRule: u, strokeLineCap: d, strokeDashOffset: g, strokeLineJoin: c, strokeMiterLimit: h, strokeDashArray: p } = this, v = this.getParent().transform, m = v.getMatrix()[4], f = v.getMatrix()[5], b = m + this.width, z = f + this.height, D = { left: m, top: f, right: b, bottom: z };
|
|
57182
57183
|
let { left: j, top: w, right: x, bottom: C } = D, T = x - j, F = C - w;
|
|
57183
57184
|
if (e) {
|
|
57184
57185
|
const S = T3.getIntersectionBetweenTwoRect(D, e.cacheBound);
|
|
@@ -57345,18 +57346,18 @@ let jB = class extends X3 {
|
|
|
57345
57346
|
if (this.srcRect == null || !this._transformCalculateSrcRect)
|
|
57346
57347
|
return;
|
|
57347
57348
|
const { width: a, height: s, left: n, top: i, angle: o } = this, { width: l = 0, height: u = 0, left: d = 0, top: g = 0, angle: c } = e.preValue, { left: h = 0, top: p = 0, right: v = 0, bottom: m = 0 } = this.srcRect;
|
|
57348
|
-
let f = h,
|
|
57349
|
+
let f = h, b = p, z = v, D = m, j = !1;
|
|
57349
57350
|
if (l !== 0 && l !== a) {
|
|
57350
57351
|
const w = h / l, x = v / l;
|
|
57351
57352
|
f = a * w, z = a * x, j = !0;
|
|
57352
57353
|
}
|
|
57353
57354
|
if (u !== 0 && u !== s) {
|
|
57354
57355
|
const w = p / u, x = m / u;
|
|
57355
|
-
|
|
57356
|
+
b = s * w, D = s * x, j = !0;
|
|
57356
57357
|
}
|
|
57357
57358
|
j && this.setSrcRect({
|
|
57358
57359
|
left: f,
|
|
57359
|
-
top:
|
|
57360
|
+
top: b,
|
|
57360
57361
|
right: z,
|
|
57361
57362
|
bottom: D
|
|
57362
57363
|
});
|
|
@@ -57413,8 +57414,8 @@ class G1 extends X3 {
|
|
|
57413
57414
|
e.quadraticCurveTo(o[0], o[1], o[2], o[3]);
|
|
57414
57415
|
break;
|
|
57415
57416
|
case "A": {
|
|
57416
|
-
const l = o[0], u = o[1], d = o[2], g = o[3], c = o[4], h = o[5], p = o[6], v = o[7], m = d > g ? d : g, f = d > g ? 1 : d / g,
|
|
57417
|
-
e.translate(l, u), e.rotate(p), e.scale(f,
|
|
57417
|
+
const l = o[0], u = o[1], d = o[2], g = o[3], c = o[4], h = o[5], p = o[6], v = o[7], m = d > g ? d : g, f = d > g ? 1 : d / g, b = d > g ? g / d : 1;
|
|
57418
|
+
e.translate(l, u), e.rotate(p), e.scale(f, b), e.arc(0, 0, m, c, c + h, !!(1 - v)), e.scale(1 / f, 1 / b), e.rotate(-p), e.translate(-l, -u);
|
|
57418
57419
|
break;
|
|
57419
57420
|
}
|
|
57420
57421
|
case "z":
|
|
@@ -57448,8 +57449,8 @@ class G1 extends X3 {
|
|
|
57448
57449
|
const h = this.getLineLength(a, s, n, i);
|
|
57449
57450
|
let p = (o - a) * (n - a) + (l - s) * (i - s);
|
|
57450
57451
|
p /= h * h;
|
|
57451
|
-
const v = a + p * (n - a), m = s + p * (i - s), f = this.getLineLength(o, l, v, m),
|
|
57452
|
-
d = Math.sqrt(
|
|
57452
|
+
const v = a + p * (n - a), m = s + p * (i - s), f = this.getLineLength(o, l, v, m), b = Math.sqrt(e * e - f * f);
|
|
57453
|
+
d = Math.sqrt(b * b / (1 + u * u)), n < a && (d *= -1), g = u * d, c = {
|
|
57453
57454
|
x: v + d,
|
|
57454
57455
|
y: m + g
|
|
57455
57456
|
};
|
|
@@ -57525,7 +57526,7 @@ class G1 extends X3 {
|
|
|
57525
57526
|
for (p = p.slice(1), o.length = 0; g = d.exec(p); )
|
|
57526
57527
|
o.push(g[0]);
|
|
57527
57528
|
const m = [];
|
|
57528
|
-
for (let f = 0,
|
|
57529
|
+
for (let f = 0, b = o.length; f < b; f++) {
|
|
57529
57530
|
if (o[f] === "00") {
|
|
57530
57531
|
m.push(0, 0);
|
|
57531
57532
|
continue;
|
|
@@ -57534,89 +57535,89 @@ class G1 extends X3 {
|
|
|
57534
57535
|
isNaN(z) ? m.push(0) : m.push(z);
|
|
57535
57536
|
}
|
|
57536
57537
|
for (; m.length > 0 && !isNaN(m[0]); ) {
|
|
57537
|
-
let f,
|
|
57538
|
+
let f, b = [];
|
|
57538
57539
|
const z = l, D = u;
|
|
57539
|
-
let j, w, x, C, T, F, S,
|
|
57540
|
+
let j, w, x, C, T, F, S, A, B, O;
|
|
57540
57541
|
switch (v) {
|
|
57541
57542
|
// Note: Keep the lineTo's above the moveTo's in this switch
|
|
57542
57543
|
case "l":
|
|
57543
|
-
l += m.shift() || 0, u += m.shift() || 0, f = "L",
|
|
57544
|
+
l += m.shift() || 0, u += m.shift() || 0, f = "L", b.push(l, u);
|
|
57544
57545
|
break;
|
|
57545
57546
|
case "L":
|
|
57546
|
-
l = m.shift() || 0, u = m.shift() || 0,
|
|
57547
|
+
l = m.shift() || 0, u = m.shift() || 0, b.push(l, u);
|
|
57547
57548
|
break;
|
|
57548
57549
|
// Note: lineTo handlers need to be above this point
|
|
57549
57550
|
case "m": {
|
|
57550
|
-
const
|
|
57551
|
-
if (l +=
|
|
57552
|
-
for (let
|
|
57553
|
-
if (i[
|
|
57554
|
-
l = i[
|
|
57551
|
+
const M = m.shift() || 0, L = m.shift() || 0;
|
|
57552
|
+
if (l += M, u += L, f = "M", i.length > 2 && i[i.length - 1].command === "z") {
|
|
57553
|
+
for (let I = i.length - 2; I >= 0; I--)
|
|
57554
|
+
if (i[I].command === "M") {
|
|
57555
|
+
l = i[I].points[0] + M, u = i[I].points[1] + L;
|
|
57555
57556
|
break;
|
|
57556
57557
|
}
|
|
57557
57558
|
}
|
|
57558
|
-
|
|
57559
|
+
b.push(l, u), v = "l";
|
|
57559
57560
|
break;
|
|
57560
57561
|
}
|
|
57561
57562
|
case "M":
|
|
57562
|
-
l = m.shift() || 0, u = m.shift() || 0, f = "M",
|
|
57563
|
+
l = m.shift() || 0, u = m.shift() || 0, f = "M", b.push(l, u), v = "L";
|
|
57563
57564
|
break;
|
|
57564
57565
|
case "h":
|
|
57565
|
-
l += m.shift() || 0, f = "L",
|
|
57566
|
+
l += m.shift() || 0, f = "L", b.push(l, u);
|
|
57566
57567
|
break;
|
|
57567
57568
|
case "H":
|
|
57568
|
-
l = m.shift() || 0, f = "L",
|
|
57569
|
+
l = m.shift() || 0, f = "L", b.push(l, u);
|
|
57569
57570
|
break;
|
|
57570
57571
|
case "v":
|
|
57571
|
-
u += m.shift() || 0, f = "L",
|
|
57572
|
+
u += m.shift() || 0, f = "L", b.push(l, u);
|
|
57572
57573
|
break;
|
|
57573
57574
|
case "V":
|
|
57574
|
-
u = m.shift() || 0, f = "L",
|
|
57575
|
+
u = m.shift() || 0, f = "L", b.push(l, u);
|
|
57575
57576
|
break;
|
|
57576
57577
|
case "C":
|
|
57577
|
-
|
|
57578
|
+
b.push(m.shift() || 0, m.shift() || 0, m.shift() || 0, m.shift() || 0), l = m.shift() || 0, u = m.shift() || 0, b.push(l, u);
|
|
57578
57579
|
break;
|
|
57579
57580
|
case "c":
|
|
57580
|
-
|
|
57581
|
+
b.push(
|
|
57581
57582
|
l + (m.shift() || 0),
|
|
57582
57583
|
u + (m.shift() || 0),
|
|
57583
57584
|
l + (m.shift() || 0),
|
|
57584
57585
|
u + (m.shift() || 0)
|
|
57585
|
-
), l += m.shift() || 0, u += m.shift() || 0, f = "C",
|
|
57586
|
+
), l += m.shift() || 0, u += m.shift() || 0, f = "C", b.push(l, u);
|
|
57586
57587
|
break;
|
|
57587
57588
|
case "S":
|
|
57588
|
-
w = l, x = u, j = i[i.length - 1], j.command === "C" && (w = l + (l - j.points[2]), x = u + (u - j.points[3])),
|
|
57589
|
+
w = l, x = u, j = i[i.length - 1], j.command === "C" && (w = l + (l - j.points[2]), x = u + (u - j.points[3])), b.push(w, x, m.shift() || 0, m.shift() || 0), l = m.shift() || 0, u = m.shift() || 0, f = "C", b.push(l, u);
|
|
57589
57590
|
break;
|
|
57590
57591
|
case "s":
|
|
57591
|
-
w = l, x = u, j = i[i.length - 1], j.command === "C" && (w = l + (l - j.points[2]), x = u + (u - j.points[3])),
|
|
57592
|
+
w = l, x = u, j = i[i.length - 1], j.command === "C" && (w = l + (l - j.points[2]), x = u + (u - j.points[3])), b.push(w, x, l + (m.shift() || 0), u + (m.shift() || 0)), l += m.shift() || 0, u += m.shift() || 0, f = "C", b.push(l, u);
|
|
57592
57593
|
break;
|
|
57593
57594
|
case "Q":
|
|
57594
|
-
|
|
57595
|
+
b.push(m.shift() || 0, m.shift() || 0), l = m.shift() || 0, u = m.shift() || 0, b.push(l, u);
|
|
57595
57596
|
break;
|
|
57596
57597
|
case "q":
|
|
57597
|
-
|
|
57598
|
+
b.push(l + (m.shift() || 0), u + (m.shift() || 0)), l += m.shift() || 0, u += m.shift() || 0, f = "Q", b.push(l, u);
|
|
57598
57599
|
break;
|
|
57599
57600
|
case "T":
|
|
57600
|
-
w = l, x = u, j = i[i.length - 1], j.command === "Q" && (w = l + (l - j.points[0]), x = u + (u - j.points[1])), l = m.shift() || 0, u = m.shift() || 0, f = "Q",
|
|
57601
|
+
w = l, x = u, j = i[i.length - 1], j.command === "Q" && (w = l + (l - j.points[0]), x = u + (u - j.points[1])), l = m.shift() || 0, u = m.shift() || 0, f = "Q", b.push(w, x, l, u);
|
|
57601
57602
|
break;
|
|
57602
57603
|
case "t":
|
|
57603
|
-
w = l, x = u, j = i[i.length - 1], j.command === "Q" && (w = l + (l - j.points[0]), x = u + (u - j.points[1])), l += m.shift() || 0, u += m.shift() || 0, f = "Q",
|
|
57604
|
+
w = l, x = u, j = i[i.length - 1], j.command === "Q" && (w = l + (l - j.points[0]), x = u + (u - j.points[1])), l += m.shift() || 0, u += m.shift() || 0, f = "Q", b.push(w, x, l, u);
|
|
57604
57605
|
break;
|
|
57605
57606
|
case "A":
|
|
57606
|
-
C = m.shift() || 0, T = m.shift() || 0, F = m.shift() || 0, S = m.shift() || 0,
|
|
57607
|
+
C = m.shift() || 0, T = m.shift() || 0, F = m.shift() || 0, S = m.shift() || 0, A = m.shift() || 0, B = l, O = u, l = m.shift() || 0, u = m.shift() || 0, f = "A", b = this.convertEndpointToCenterParameterization(B, O, l, u, S, A, C, T, F);
|
|
57607
57608
|
break;
|
|
57608
57609
|
case "a":
|
|
57609
|
-
C = m.shift() || 0, T = m.shift() || 0, F = m.shift() || 0, S = m.shift() || 0,
|
|
57610
|
+
C = m.shift() || 0, T = m.shift() || 0, F = m.shift() || 0, S = m.shift() || 0, A = m.shift() || 0, B = l, O = u, l += m.shift() || 0, u += m.shift() || 0, f = "A", b = this.convertEndpointToCenterParameterization(B, O, l, u, S, A, C, T, F);
|
|
57610
57611
|
break;
|
|
57611
57612
|
}
|
|
57612
57613
|
i.push({
|
|
57613
57614
|
command: f || v,
|
|
57614
|
-
points:
|
|
57615
|
+
points: b,
|
|
57615
57616
|
start: {
|
|
57616
57617
|
x: z,
|
|
57617
57618
|
y: D
|
|
57618
57619
|
},
|
|
57619
|
-
pathLength: this.calcLength(z, D, f || v,
|
|
57620
|
+
pathLength: this.calcLength(z, D, f || v, b)
|
|
57620
57621
|
});
|
|
57621
57622
|
}
|
|
57622
57623
|
(v === "z" || v === "Z") && i.push({
|
|
@@ -57687,9 +57688,9 @@ class G1 extends X3 {
|
|
|
57687
57688
|
(l * l * (u * u) - l * l * (h * h) - u * u * (c * c)) / (l * l * (h * h) + u * u * (c * c))
|
|
57688
57689
|
);
|
|
57689
57690
|
i === o && (v *= -1), isNaN(v) && (v = 0);
|
|
57690
|
-
const m = v * l * h / u, f = v * -u * c / l,
|
|
57691
|
+
const m = v * l * h / u, f = v * -u * c / l, b = (e + s) / 2 + Math.cos(g) * m - Math.sin(g) * f, z = (a + n) / 2 + Math.sin(g) * m + Math.cos(g) * f, D = (S) => Math.sqrt(S[0] * S[0] + S[1] * S[1]), j = (S, A) => (S[0] * A[0] + S[1] * A[1]) / (D(S) * D(A)), w = (S, A) => (S[0] * A[1] < S[1] * A[0] ? -1 : 1) * Math.acos(j(S, A)), x = w([1, 0], [(c - m) / l, (h - f) / u]), C = [(c - m) / l, (h - f) / u], T = [(-1 * c - m) / l, (-1 * h - f) / u];
|
|
57691
57692
|
let F = w(C, T);
|
|
57692
|
-
return j(C, T) <= -1 && (F = Math.PI), j(C, T) >= 1 && (F = 0), o === 0 && F > 0 && (F -= 2 * Math.PI), o === 1 && F < 0 && (F += 2 * Math.PI), [
|
|
57693
|
+
return j(C, T) <= -1 && (F = Math.PI), j(C, T) >= 1 && (F = 0), o === 0 && F > 0 && (F -= 2 * Math.PI), o === 1 && F < 0 && (F += 2 * Math.PI), [b, z, l, u, x, F, g, o];
|
|
57693
57694
|
}
|
|
57694
57695
|
toJson() {
|
|
57695
57696
|
const e = {};
|
|
@@ -58556,7 +58557,7 @@ class EC extends Ae {
|
|
|
58556
58557
|
this._preFontColor !== m && (e.fillStyle = m), v === k3.SUPERSCRIPT ? c.y += -g.spo : v === k3.SUBSCRIPT && (c.y += g.sbo), this._fillText(e, s, c);
|
|
58557
58558
|
}
|
|
58558
58559
|
_fillText(e, a, s) {
|
|
58559
|
-
var f,
|
|
58560
|
+
var f, b;
|
|
58560
58561
|
const { renderConfig: n, spanStartPoint: i, centerPoint: o } = this.extensionOffset, { content: l, width: u, bBox: d } = a, { aba: g, abd: c } = d;
|
|
58561
58562
|
if (l == null || i == null || o == null)
|
|
58562
58563
|
return;
|
|
@@ -58566,10 +58567,10 @@ class EC extends Ae {
|
|
|
58566
58567
|
else {
|
|
58567
58568
|
const z = "☑";
|
|
58568
58569
|
if ((l === "☐" || l === z) && a.glyphType === K1.LIST) {
|
|
58569
|
-
const j = Math.ceil(((
|
|
58570
|
+
const j = Math.ceil(((b = (f = a.ts) == null ? void 0 : f.fs) != null ? b : 12) * 1.2);
|
|
58570
58571
|
e.save();
|
|
58571
|
-
const w = a.bBox.aba - a.bBox.abd, x = s.y, C = x - w, T = s.x, F = C + (x - C - j) / 2, S = T,
|
|
58572
|
-
e.translate(S -
|
|
58572
|
+
const w = a.bBox.aba - a.bBox.abd, x = s.y, C = x - w, T = s.x, F = C + (x - C - j) / 2, S = T, A = 1;
|
|
58573
|
+
e.translate(S - A / 2, F - A / 2), d6.drawWith(e, {
|
|
58573
58574
|
width: j,
|
|
58574
58575
|
height: j,
|
|
58575
58576
|
checked: l === z
|
|
@@ -58596,7 +58597,7 @@ class TC extends Ae {
|
|
|
58596
58597
|
const n = (w = s.parent) == null ? void 0 : w.parent, { ts: i, bBox: o, content: l } = s;
|
|
58597
58598
|
if (n == null || i == null || l === "\r")
|
|
58598
58599
|
return;
|
|
58599
|
-
const { asc: u, dsc: d } = n, { sp: g, spo: c, sbo: h, bd: p } = o, v = j7(a), m = 0.5, { ul: f, st:
|
|
58600
|
+
const { asc: u, dsc: d } = n, { sp: g, spo: c, sbo: h, bd: p } = o, v = j7(a), m = 0.5, { ul: f, st: b, ol: z, va: D, bbl: j } = i;
|
|
58600
58601
|
if (f) {
|
|
58601
58602
|
const x = u + d;
|
|
58602
58603
|
this._drawLine(e, s, f, x, v);
|
|
@@ -58605,9 +58606,9 @@ class TC extends Ae {
|
|
|
58605
58606
|
const x = u + d + 3;
|
|
58606
58607
|
this._drawLine(e, s, j, x, v, 2);
|
|
58607
58608
|
}
|
|
58608
|
-
if (
|
|
58609
|
+
if (b) {
|
|
58609
58610
|
let x = u + p - g - m;
|
|
58610
|
-
D === k3.SUPERSCRIPT ? x -= c : D === k3.SUBSCRIPT && (x += h), this._drawLine(e, s,
|
|
58611
|
+
D === k3.SUPERSCRIPT ? x -= c : D === k3.SUBSCRIPT && (x += h), this._drawLine(e, s, b, x, v);
|
|
58611
58612
|
}
|
|
58612
58613
|
if (z) {
|
|
58613
58614
|
const x = -1 - m;
|
|
@@ -58627,11 +58628,11 @@ class TC extends Ae {
|
|
|
58627
58628
|
originTranslate: c = U.create(0, 0),
|
|
58628
58629
|
alignOffset: h = U.create(0, 0),
|
|
58629
58630
|
renderConfig: p = {}
|
|
58630
|
-
} = this.extensionOffset, { left: v, width: m } = a, { centerAngle: f = 0, vertexAngle:
|
|
58631
|
+
} = this.extensionOffset, { left: v, width: m } = a, { centerAngle: f = 0, vertexAngle: b = 0 } = p;
|
|
58631
58632
|
e.save();
|
|
58632
58633
|
const z = (g === e1.TRUE ? b3((C = a.ts) == null ? void 0 : C.cl) : b3(u)) || L3;
|
|
58633
58634
|
e.strokeStyle = z, e.lineWidth = o, this._setLineType(e, d || h2.SINGLE);
|
|
58634
|
-
const D = V1(f), j = V1(
|
|
58635
|
+
const D = V1(f), j = V1(b), w = k2(
|
|
58635
58636
|
c.addByPoint(v, n),
|
|
58636
58637
|
U.create(0, 0),
|
|
58637
58638
|
D,
|
|
@@ -58704,12 +58705,12 @@ class b0 extends m8 {
|
|
|
58704
58705
|
return;
|
|
58705
58706
|
this._drawLiquid.reset();
|
|
58706
58707
|
const { pages: n, skeHeaders: i, skeFooters: o } = s, l = this.getParentScale(), u = this.getExtensionsByOrder();
|
|
58707
|
-
for (const
|
|
58708
|
-
|
|
58709
|
-
const d = u.find((
|
|
58708
|
+
for (const b of u)
|
|
58709
|
+
b.clearCache();
|
|
58710
|
+
const d = u.find((b) => b.uKey === "DefaultDocsBackgroundExtension"), g = u.filter((b) => b.type === s0.SPAN && b.uKey !== "DefaultDocsBackgroundExtension");
|
|
58710
58711
|
let c = 0, h = 0;
|
|
58711
|
-
for (let
|
|
58712
|
-
const D = n[
|
|
58712
|
+
for (let b = 0, z = n.length; b < z; b++) {
|
|
58713
|
+
const D = n[b], {
|
|
58713
58714
|
sections: j,
|
|
58714
58715
|
marginTop: w = 0,
|
|
58715
58716
|
marginBottom: x = 0,
|
|
@@ -58717,13 +58718,13 @@ class b0 extends m8 {
|
|
|
58717
58718
|
marginRight: T = 0,
|
|
58718
58719
|
width: F,
|
|
58719
58720
|
height: S,
|
|
58720
|
-
pageWidth:
|
|
58721
|
+
pageWidth: A,
|
|
58721
58722
|
headerId: B,
|
|
58722
|
-
footerId:
|
|
58723
|
-
renderConfig:
|
|
58723
|
+
footerId: O,
|
|
58724
|
+
renderConfig: M = {},
|
|
58724
58725
|
skeTables: L
|
|
58725
58726
|
} = D, {
|
|
58726
|
-
verticalAlign:
|
|
58727
|
+
verticalAlign: I = m3.TOP,
|
|
58727
58728
|
// Do not make changes, otherwise the document will not render.
|
|
58728
58729
|
horizontalAlign: N = m1.LEFT,
|
|
58729
58730
|
// Do not make changes, otherwise the document will not render.
|
|
@@ -58732,7 +58733,7 @@ class b0 extends m8 {
|
|
|
58732
58733
|
wrapStrategy: H = Q1.UNSPECIFIED,
|
|
58733
58734
|
cellValueType: V
|
|
58734
58735
|
// isRotateNonEastAsian = BooleanNumber.FALSE,
|
|
58735
|
-
} =
|
|
58736
|
+
} = M, t1 = this._horizontalHandler(
|
|
58736
58737
|
F,
|
|
58737
58738
|
C,
|
|
58738
58739
|
T,
|
|
@@ -58744,7 +58745,7 @@ class b0 extends m8 {
|
|
|
58744
58745
|
S,
|
|
58745
58746
|
w,
|
|
58746
58747
|
x,
|
|
58747
|
-
|
|
58748
|
+
I
|
|
58748
58749
|
), c1 = U.create(t1, g1), i1 = V1(P), n1 = V1($), d1 = n1 - i1;
|
|
58749
58750
|
if (this.isSkipByDiffBounds(D, c, h, a)) {
|
|
58750
58751
|
const { x: y1, y: C1 } = this._drawLiquid.translatePage(
|
|
@@ -58766,10 +58767,10 @@ class b0 extends m8 {
|
|
|
58766
58767
|
c1,
|
|
58767
58768
|
i1,
|
|
58768
58769
|
n1,
|
|
58769
|
-
|
|
58770
|
+
M,
|
|
58770
58771
|
l
|
|
58771
58772
|
);
|
|
58772
|
-
const p1 = (v = i.get(B)) == null ? void 0 : v.get(
|
|
58773
|
+
const p1 = (v = i.get(B)) == null ? void 0 : v.get(A), D1 = U.create(
|
|
58773
58774
|
t1,
|
|
58774
58775
|
(m = p1 == null ? void 0 : p1.marginTop) != null ? m : 0
|
|
58775
58776
|
);
|
|
@@ -58782,7 +58783,7 @@ class b0 extends m8 {
|
|
|
58782
58783
|
D1,
|
|
58783
58784
|
i1,
|
|
58784
58785
|
n1,
|
|
58785
|
-
|
|
58786
|
+
M,
|
|
58786
58787
|
l,
|
|
58787
58788
|
D,
|
|
58788
58789
|
!0
|
|
@@ -58818,7 +58819,7 @@ class b0 extends m8 {
|
|
|
58818
58819
|
B1,
|
|
58819
58820
|
w,
|
|
58820
58821
|
x,
|
|
58821
|
-
|
|
58822
|
+
I
|
|
58822
58823
|
) - s2;
|
|
58823
58824
|
B1 > this.height && (n1 < 0 ? n2 = this.height - (B1 + s2) : n2 = -s2), H1 = U.create(w3 + r2, n2), this._drawLiquid.translate(0, -t3), a2 = Z1;
|
|
58824
58825
|
} else H === Q1.WRAP && (N !== m1.UNSPECIFIED || V !== h3.NUMBER) && (H1.x = C);
|
|
@@ -58828,7 +58829,7 @@ class b0 extends m8 {
|
|
|
58828
58829
|
for (const n2 of u)
|
|
58829
58830
|
n2.type === s0.LINE && (n2.extensionOffset = {
|
|
58830
58831
|
alignOffset: H1,
|
|
58831
|
-
renderConfig:
|
|
58832
|
+
renderConfig: M
|
|
58832
58833
|
}, n2.draw(e, l, B1));
|
|
58833
58834
|
else {
|
|
58834
58835
|
this._drawLiquid.translateSave(), this._drawLiquid.translateLine(B1, !0, !0), a2 && this._drawLiquid.translate(a2[Z1]);
|
|
@@ -58874,7 +58875,7 @@ class b0 extends m8 {
|
|
|
58874
58875
|
spanPointWithFont: x8,
|
|
58875
58876
|
centerPoint: E0,
|
|
58876
58877
|
alignOffset: H1,
|
|
58877
|
-
renderConfig:
|
|
58878
|
+
renderConfig: M
|
|
58878
58879
|
};
|
|
58879
58880
|
for (const g6 of g)
|
|
58880
58881
|
g6.extensionOffset = C8, g6.draw(e, l, i2, [], {
|
|
@@ -58890,7 +58891,7 @@ class b0 extends m8 {
|
|
|
58890
58891
|
}
|
|
58891
58892
|
}
|
|
58892
58893
|
this._resetRotation(e, d1);
|
|
58893
|
-
const k1 = (f = o.get(
|
|
58894
|
+
const k1 = (f = o.get(O)) == null ? void 0 : f.get(A);
|
|
58894
58895
|
if (k1) {
|
|
58895
58896
|
const y1 = U.create(
|
|
58896
58897
|
t1,
|
|
@@ -58905,7 +58906,7 @@ class b0 extends m8 {
|
|
|
58905
58906
|
y1,
|
|
58906
58907
|
i1,
|
|
58907
58908
|
n1,
|
|
58908
|
-
|
|
58909
|
+
M,
|
|
58909
58910
|
l,
|
|
58910
58911
|
D,
|
|
58911
58912
|
!1
|
|
@@ -58927,19 +58928,19 @@ class b0 extends m8 {
|
|
|
58927
58928
|
}
|
|
58928
58929
|
}
|
|
58929
58930
|
_drawTable(e, a, s, n, i, o, l, u, d, g, c) {
|
|
58930
|
-
var h, p, v, m, f,
|
|
58931
|
+
var h, p, v, m, f, b, z, D, j;
|
|
58931
58932
|
for (const [w, x] of s) {
|
|
58932
58933
|
const { top: C, left: T, rows: F } = x;
|
|
58933
58934
|
(h = this._drawLiquid) == null || h.translateSave(), (p = this._drawLiquid) == null || p.translate(T, C);
|
|
58934
58935
|
for (const S of F) {
|
|
58935
|
-
const { top:
|
|
58936
|
-
(v = this._drawLiquid) == null || v.translateSave(), (m = this._drawLiquid) == null || m.translate(0,
|
|
58937
|
-
for (const
|
|
58938
|
-
const { left:
|
|
58939
|
-
(f = this._drawLiquid) == null || f.translateSave(), (
|
|
58936
|
+
const { top: A, cells: B } = S;
|
|
58937
|
+
(v = this._drawLiquid) == null || v.translateSave(), (m = this._drawLiquid) == null || m.translate(0, A);
|
|
58938
|
+
for (const O of B) {
|
|
58939
|
+
const { left: M } = O;
|
|
58940
|
+
(f = this._drawLiquid) == null || f.translateSave(), (b = this._drawLiquid) == null || b.translate(M, 0), this._drawTableCell(
|
|
58940
58941
|
e,
|
|
58941
58942
|
a,
|
|
58942
|
-
|
|
58943
|
+
O,
|
|
58943
58944
|
n,
|
|
58944
58945
|
i,
|
|
58945
58946
|
o,
|
|
@@ -58975,8 +58976,8 @@ class b0 extends m8 {
|
|
|
58975
58976
|
this._drawTableCellBordersAndBg(e, a, s);
|
|
58976
58977
|
const { sections: h, marginLeft: p, marginTop: v } = s;
|
|
58977
58978
|
l = U.create(l.x + p, l.y + v), e.save();
|
|
58978
|
-
const { x: m, y: f } = this._drawLiquid, { pageWidth:
|
|
58979
|
-
e.beginPath(), e.rectByPrecision(m + a.marginLeft, f + a.marginTop,
|
|
58979
|
+
const { x: m, y: f } = this._drawLiquid, { pageWidth: b, pageHeight: z } = s;
|
|
58980
|
+
e.beginPath(), e.rectByPrecision(m + a.marginLeft, f + a.marginTop, b, z), e.closePath(), e.clip();
|
|
58980
58981
|
for (const D of h) {
|
|
58981
58982
|
const { columns: j } = D;
|
|
58982
58983
|
this._drawLiquid.translateSave(), this._drawLiquid.translateSection(D);
|
|
@@ -58985,8 +58986,8 @@ class b0 extends m8 {
|
|
|
58985
58986
|
this._drawLiquid.translateSave(), this._drawLiquid.translateColumn(w);
|
|
58986
58987
|
const C = x.length, T = l;
|
|
58987
58988
|
for (let F = 0; F < C; F++) {
|
|
58988
|
-
const S = x[F], { divides:
|
|
58989
|
-
if (
|
|
58989
|
+
const S = x[F], { divides: A, asc: B = 0, type: O, lineHeight: M = 0 } = S, L = B, I = L * Math.sin(u), N = L * Math.cos(u);
|
|
58990
|
+
if (O === M3.BLOCK)
|
|
58990
58991
|
for (const P of n)
|
|
58991
58992
|
P.type === s0.LINE && (P.extensionOffset = {
|
|
58992
58993
|
alignOffset: T,
|
|
@@ -58994,14 +58995,14 @@ class b0 extends m8 {
|
|
|
58994
58995
|
}, P.draw(e, c, S));
|
|
58995
58996
|
else {
|
|
58996
58997
|
this._drawLiquid.translateSave(), this._drawLiquid.translateLine(S, !0, !0);
|
|
58997
|
-
const P =
|
|
58998
|
+
const P = A.length;
|
|
58998
58999
|
for (let $ = 0; $ < P; $++) {
|
|
58999
|
-
const H =
|
|
59000
|
+
const H = A[$], { glyphGroup: V } = H;
|
|
59000
59001
|
this._drawLiquid.translateSave(), this._drawLiquid.translateDivide(H);
|
|
59001
59002
|
for (const t1 of V) {
|
|
59002
59003
|
if (!t1.content || t1.content.length === 0)
|
|
59003
59004
|
continue;
|
|
59004
|
-
const { width: g1, left: c1 } = t1, { x: i1, y: n1 } = this._drawLiquid, d1 = U.create(i1, n1), p1 = U.create(g1 / 2,
|
|
59005
|
+
const { width: g1, left: c1 } = t1, { x: i1, y: n1 } = this._drawLiquid, d1 = U.create(i1, n1), p1 = U.create(g1 / 2, M / 2), k1 = {
|
|
59005
59006
|
spanStartPoint: k2(
|
|
59006
59007
|
d1.addByPoint(c1, 0),
|
|
59007
59008
|
p1,
|
|
@@ -59015,7 +59016,7 @@ class b0 extends m8 {
|
|
|
59015
59016
|
for (const t1 of V) {
|
|
59016
59017
|
if (!t1.content || t1.content.length === 0)
|
|
59017
59018
|
continue;
|
|
59018
|
-
const { width: g1, left: c1, xOffset: i1 } = t1, { x: n1, y: d1 } = this._drawLiquid, p1 = U.create(n1, d1), D1 = U.create(g1 / 2,
|
|
59019
|
+
const { width: g1, left: c1, xOffset: i1 } = t1, { x: n1, y: d1 } = this._drawLiquid, p1 = U.create(n1, d1), D1 = U.create(g1 / 2, M / 2), k1 = k2(
|
|
59019
59020
|
p1.addByPoint(c1 + i1, 0),
|
|
59020
59021
|
D1,
|
|
59021
59022
|
u,
|
|
@@ -59023,7 +59024,7 @@ class b0 extends m8 {
|
|
|
59023
59024
|
T
|
|
59024
59025
|
), j1 = k2(
|
|
59025
59026
|
p1.addByPoint(
|
|
59026
|
-
c1 +
|
|
59027
|
+
c1 + I + i1,
|
|
59027
59028
|
N
|
|
59028
59029
|
),
|
|
59029
59030
|
D1,
|
|
@@ -59063,27 +59064,27 @@ class b0 extends m8 {
|
|
|
59063
59064
|
} = g;
|
|
59064
59065
|
if (this._drawLiquid == null)
|
|
59065
59066
|
return;
|
|
59066
|
-
let { x: f, y } = this._drawLiquid;
|
|
59067
|
-
f += n,
|
|
59067
|
+
let { x: f, y: b } = this._drawLiquid;
|
|
59068
|
+
f += n, b += i, m && m.rgb && (e.save(), e.fillStyle = m.rgb, e.fillRectByPrecision(f, b, o, l), e.restore()), e.save(), e.setLineWidthByPrecision(1), e.save(), e.strokeStyle = (z = p.color.rgb) != null ? z : U2.color.rgb, d3(e, K.LEFT, 0, {
|
|
59068
59069
|
startX: f,
|
|
59069
|
-
startY:
|
|
59070
|
+
startY: b,
|
|
59070
59071
|
endX: f + o,
|
|
59071
|
-
endY:
|
|
59072
|
+
endY: b + l
|
|
59072
59073
|
}), e.restore(), e.save(), e.strokeStyle = (D = c.color.rgb) != null ? D : U2.color.rgb, d3(e, K.TOP, 0, {
|
|
59073
59074
|
startX: f,
|
|
59074
|
-
startY:
|
|
59075
|
+
startY: b,
|
|
59075
59076
|
endX: f + o,
|
|
59076
|
-
endY:
|
|
59077
|
+
endY: b + l
|
|
59077
59078
|
}), e.restore(), e.save(), e.strokeStyle = (j = v.color.rgb) != null ? j : U2.color.rgb, d3(e, K.RIGHT, 0, {
|
|
59078
59079
|
startX: f,
|
|
59079
|
-
startY:
|
|
59080
|
+
startY: b,
|
|
59080
59081
|
endX: f + o,
|
|
59081
|
-
endY:
|
|
59082
|
+
endY: b + l
|
|
59082
59083
|
}), e.restore(), e.save(), e.strokeStyle = (w = h.color.rgb) != null ? w : U2.color.rgb, d3(e, K.BOTTOM, 0, {
|
|
59083
59084
|
startX: f,
|
|
59084
|
-
startY:
|
|
59085
|
+
startY: b,
|
|
59085
59086
|
endX: f + o,
|
|
59086
|
-
endY:
|
|
59087
|
+
endY: b + l
|
|
59087
59088
|
}), e.restore(), e.restore();
|
|
59088
59089
|
}
|
|
59089
59090
|
_drawHeaderFooter(e, a, s, n, i, o, l, u, d, g, c, h = !0) {
|
|
@@ -59093,33 +59094,33 @@ class b0 extends m8 {
|
|
|
59093
59094
|
for (const m of p) {
|
|
59094
59095
|
const { columns: f } = m;
|
|
59095
59096
|
this._drawLiquid.translateSave(), this._drawLiquid.translateSection(m);
|
|
59096
|
-
for (const
|
|
59097
|
-
const { lines: z } =
|
|
59098
|
-
this._drawLiquid.translateSave(), this._drawLiquid.translateColumn(
|
|
59097
|
+
for (const b of f) {
|
|
59098
|
+
const { lines: z } = b;
|
|
59099
|
+
this._drawLiquid.translateSave(), this._drawLiquid.translateColumn(b);
|
|
59099
59100
|
const D = z.length, j = o;
|
|
59100
59101
|
for (let w = 0; w < D; w++) {
|
|
59101
|
-
const x = z[w], { divides: C, asc: T = 0, type: F, lineHeight: S = 0 } = x,
|
|
59102
|
+
const x = z[w], { divides: C, asc: T = 0, type: F, lineHeight: S = 0 } = x, A = T, B = A * Math.sin(l), O = A * Math.cos(l);
|
|
59102
59103
|
if (F === M3.BLOCK)
|
|
59103
|
-
for (const
|
|
59104
|
-
|
|
59104
|
+
for (const M of s)
|
|
59105
|
+
M.type === s0.LINE && (M.extensionOffset = {
|
|
59105
59106
|
alignOffset: j,
|
|
59106
59107
|
renderConfig: d
|
|
59107
|
-
},
|
|
59108
|
+
}, M.draw(a, g, x));
|
|
59108
59109
|
else {
|
|
59109
59110
|
this._drawLiquid.translateSave(), this._drawLiquid.translateLine(x, !0, !0);
|
|
59110
|
-
const { y:
|
|
59111
|
+
const { y: M } = this._drawLiquid;
|
|
59111
59112
|
if (h) {
|
|
59112
|
-
if (
|
|
59113
|
+
if (M - v + j.y > (c.pageHeight - 100) / 2) {
|
|
59113
59114
|
this._drawLiquid.translateRestore();
|
|
59114
59115
|
continue;
|
|
59115
59116
|
}
|
|
59116
|
-
} else if (
|
|
59117
|
+
} else if (M - v + j.y + S < (c.pageHeight - 100) / 2 + 100) {
|
|
59117
59118
|
this._drawLiquid.translateRestore();
|
|
59118
59119
|
continue;
|
|
59119
59120
|
}
|
|
59120
59121
|
const L = C.length;
|
|
59121
|
-
for (let
|
|
59122
|
-
const N = C[
|
|
59122
|
+
for (let I = 0; I < L; I++) {
|
|
59123
|
+
const N = C[I], { glyphGroup: P } = N;
|
|
59123
59124
|
this._drawLiquid.translateSave(), this._drawLiquid.translateDivide(N);
|
|
59124
59125
|
for (const $ of P) {
|
|
59125
59126
|
if (!$.content || $.content.length === 0)
|
|
@@ -59147,7 +59148,7 @@ class b0 extends m8 {
|
|
|
59147
59148
|
), p1 = k2(
|
|
59148
59149
|
i1.addByPoint(
|
|
59149
59150
|
V + B + t1,
|
|
59150
|
-
|
|
59151
|
+
O
|
|
59151
59152
|
),
|
|
59152
59153
|
n1,
|
|
59153
59154
|
l,
|
|
@@ -59323,7 +59324,7 @@ class CB extends I7 {
|
|
|
59323
59324
|
this._dirtyBounds = e;
|
|
59324
59325
|
}
|
|
59325
59326
|
renderByViewports(e, a, s) {
|
|
59326
|
-
const { diffBounds: n, diffX: i, diffY: o, viewPortPosition: l, cacheCanvas: u, leftOrigin: d, topOrigin: g, bufferEdgeX: c, bufferEdgeY: h, isDirty: p, isForceDirty: v } = a, { rowHeaderWidth: m, columnHeaderHeight: f } = s, { a:
|
|
59327
|
+
const { diffBounds: n, diffX: i, diffY: o, viewPortPosition: l, cacheCanvas: u, leftOrigin: d, topOrigin: g, bufferEdgeX: c, bufferEdgeY: h, isDirty: p, isForceDirty: v } = a, { rowHeaderWidth: m, columnHeaderHeight: f } = s, { a: b = 1, d: z = 1 } = e.getTransform(), D = c * b / window.devicePixelRatio, j = h * z / window.devicePixelRatio, w = u.getContext();
|
|
59327
59328
|
w.save();
|
|
59328
59329
|
const x = v || this.isForceDirty(), C = p || this.isDirty();
|
|
59329
59330
|
n.length === 0 || i === 0 && o === 0 || x || C ? (C || x) && (this.addRenderTagToScene("scrolling", !1), this.refreshCacheCanvas(a, { cacheCanvas: u, cacheCtx: w, mainCtx: e, topOrigin: g, leftOrigin: d, bufferEdgeX: c, bufferEdgeY: h })) : (n.length !== 0 || i !== 0 || o !== 0) && (this.addRenderTagToScene("scrolling", !0), this.paintNewAreaForScrolling(a, {
|
|
@@ -59334,22 +59335,22 @@ class CB extends I7 {
|
|
|
59334
59335
|
leftOrigin: d,
|
|
59335
59336
|
bufferEdgeX: c,
|
|
59336
59337
|
bufferEdgeY: h,
|
|
59337
|
-
scaleX:
|
|
59338
|
+
scaleX: b,
|
|
59338
59339
|
scaleY: z,
|
|
59339
59340
|
columnHeaderHeight: f,
|
|
59340
59341
|
rowHeaderWidth: m
|
|
59341
59342
|
}));
|
|
59342
|
-
const T = D * Math.min(1, window.devicePixelRatio), F = j * Math.min(1, window.devicePixelRatio), { left: S, top:
|
|
59343
|
-
this._applyCache(u, e, T, F,
|
|
59343
|
+
const T = D * Math.min(1, window.devicePixelRatio), F = j * Math.min(1, window.devicePixelRatio), { left: S, top: A, right: B, bottom: O } = l, M = B - S + m, L = O - A + f;
|
|
59344
|
+
this._applyCache(u, e, T, F, M, L, S, A, M, L), w.restore();
|
|
59344
59345
|
}
|
|
59345
59346
|
paintNewAreaForScrolling(e, a) {
|
|
59346
|
-
const { cacheCanvas: s, cacheCtx: n, mainCtx: i, topOrigin: o, leftOrigin: l, bufferEdgeX: u, bufferEdgeY: d, scaleX: g, scaleY: c, columnHeaderHeight: h, rowHeaderWidth: p } = a, { shouldCacheUpdate: v, diffCacheBounds: m, diffX: f, diffY:
|
|
59347
|
-
n.save(), n.setTransform(1, 0, 0, 1, 0, 0), n.globalCompositeOperation = "copy", n.drawImage(s.getCanvasEle(), f * g,
|
|
59347
|
+
const { cacheCanvas: s, cacheCtx: n, mainCtx: i, topOrigin: o, leftOrigin: l, bufferEdgeX: u, bufferEdgeY: d, scaleX: g, scaleY: c, columnHeaderHeight: h, rowHeaderWidth: p } = a, { shouldCacheUpdate: v, diffCacheBounds: m, diffX: f, diffY: b } = e;
|
|
59348
|
+
n.save(), n.setTransform(1, 0, 0, 1, 0, 0), n.globalCompositeOperation = "copy", n.drawImage(s.getCanvasEle(), f * g, b * c), n.restore(), this._refreshIncrementalState = !0;
|
|
59348
59349
|
const z = i.getTransform();
|
|
59349
59350
|
if (n.setTransform(z.a, z.b, z.c, z.d, 0, 0), n.translateWithPrecision(z.e / z.a - l + u, z.f / z.d - o + d), v)
|
|
59350
59351
|
for (const D of m) {
|
|
59351
|
-
const { left: j, right: w, bottom: x, top: C } = D, T = j - p, F = C - h, S = w - j,
|
|
59352
|
-
n.clearRectByPrecision(T, F, S,
|
|
59352
|
+
const { left: j, right: w, bottom: x, top: C } = D, T = j - p, F = C - h, S = w - j, A = x - C;
|
|
59353
|
+
n.clearRectByPrecision(T, F, S, A), n.save(), n.beginPath(), n.rectByPrecision(T, F, S, A), n.closePath(), n.clip(), this.draw(n, {
|
|
59353
59354
|
...e,
|
|
59354
59355
|
diffBounds: [D]
|
|
59355
59356
|
}), n.restore();
|
|
@@ -59461,19 +59462,19 @@ class CB extends I7 {
|
|
|
59461
59462
|
if (!h || !v || p === void 0 || m === void 0)
|
|
59462
59463
|
return;
|
|
59463
59464
|
e.save(), e.setLineWidthByPrecision(1), e.strokeStyle = (L = o != null ? o : e.renderConfig.gridlinesColor) != null ? L : S2([214, 216, 219]);
|
|
59464
|
-
const f = v.length,
|
|
59465
|
-
e.translateWithPrecisionRatio(c2, c2), e.beginPath(), e.moveToByPrecision(
|
|
59466
|
-
for (let
|
|
59467
|
-
if (
|
|
59465
|
+
const f = v.length, b = h.length, z = 0.4, D = d - u + 1, j = c - g + 1, w = Math.ceil(D * z), x = Math.ceil(j * z), C = Math.max(Math.floor(u - w), 0), T = Math.min(Math.ceil(d + w), b - 1), F = Math.min(Math.ceil(c + x), f - 1), S = Math.max(Math.floor(g - x), 0), A = v[S - 1] || 0, B = h[C - 1] || 0, O = v[F], M = h[T];
|
|
59466
|
+
e.translateWithPrecisionRatio(c2, c2), e.beginPath(), e.moveToByPrecision(A, B), e.lineToByPrecision(O, B), e.moveToByPrecision(A, B), e.lineToByPrecision(A, M), e.closePathByEnv(), e.stroke();
|
|
59467
|
+
for (let I = C; I <= T; I++) {
|
|
59468
|
+
if (I < 0 || I > b - 1)
|
|
59468
59469
|
continue;
|
|
59469
|
-
const N = h[
|
|
59470
|
-
e.beginPath(), e.moveToByPrecision(
|
|
59470
|
+
const N = h[I];
|
|
59471
|
+
e.beginPath(), e.moveToByPrecision(A, N), e.lineToByPrecision(O, N), e.closePathByEnv(), e.stroke();
|
|
59471
59472
|
}
|
|
59472
|
-
for (let
|
|
59473
|
-
if (
|
|
59473
|
+
for (let I = S; I <= F; I++) {
|
|
59474
|
+
if (I < 0 || I > f - 1)
|
|
59474
59475
|
continue;
|
|
59475
|
-
const N = v[
|
|
59476
|
-
e.beginPath(), e.moveToByPrecision(N, B), e.lineToByPrecision(N,
|
|
59476
|
+
const N = v[I];
|
|
59477
|
+
e.beginPath(), e.moveToByPrecision(N, B), e.lineToByPrecision(N, M), e.closePathByEnv(), e.stroke();
|
|
59477
59478
|
}
|
|
59478
59479
|
this._clearRectangle(e, h, v, l), this._clearRectangle(e, h, v, n.toNativeArray()), e.restore();
|
|
59479
59480
|
}
|
|
@@ -59484,14 +59485,14 @@ class CB extends I7 {
|
|
|
59484
59485
|
var i, o, l, u;
|
|
59485
59486
|
if (n != null)
|
|
59486
59487
|
for (const d of n) {
|
|
59487
|
-
const { startRow: g, endRow: c, startColumn: h, endColumn: p } = d, v = (i = a[g - 1]) != null ? i : 0, m = (o = a[c]) != null ? o : a[a.length - 1], f = (l = s[h - 1]) != null ? l : 0,
|
|
59488
|
-
e.clearRectByPrecision(f, v,
|
|
59488
|
+
const { startRow: g, endRow: c, startColumn: h, endColumn: p } = d, v = (i = a[g - 1]) != null ? i : 0, m = (o = a[c]) != null ? o : a[a.length - 1], f = (l = s[h - 1]) != null ? l : 0, b = (u = s[p]) != null ? u : s[s.length - 1];
|
|
59489
|
+
e.clearRectByPrecision(f, v, b - f, m - v), e.beginPath(), e.moveToByPrecision(f, v), e.lineToByPrecision(b, v), e.lineToByPrecision(b, m), e.lineToByPrecision(f, m), e.lineToByPrecision(f, v), e.stroke(), e.closePath();
|
|
59489
59490
|
}
|
|
59490
59491
|
}
|
|
59491
59492
|
testShowRuler(e, a) {
|
|
59492
59493
|
const { cacheBound: s } = a, n = this.getSkeleton(), { rowHeaderWidth: i, columnHeaderHeight: o } = n, { left: l, top: u, right: d, bottom: g } = s, c = (f) => {
|
|
59493
|
-
const
|
|
59494
|
-
return f + (100 -
|
|
59494
|
+
const b = f % 100;
|
|
59495
|
+
return f + (100 - b);
|
|
59495
59496
|
}, h = c(l), p = c(d), v = c(u), m = c(g);
|
|
59496
59497
|
e.save(), e.beginPath(), e.strokeStyle = "#000000", e.fillStyle = "#000000", e.font = "16px Arial", e.lineWidth = 1, e.textAlign = "center", e.textBaseline = "middle";
|
|
59497
59498
|
for (let f = h; f <= p; f += 50)
|
|
@@ -59500,8 +59501,8 @@ class CB extends I7 {
|
|
|
59500
59501
|
e.beginPath(), e.strokeStyle = f % 100 === 0 ? "red" : "#aaa", e.moveTo(l - i, f - o), e.lineTo(d - i, f - o), e.stroke(), e.closePath();
|
|
59501
59502
|
e.fillStyle = "#666";
|
|
59502
59503
|
for (let f = h; f <= p; f += 100)
|
|
59503
|
-
for (let
|
|
59504
|
-
e.fillText(`${f},${
|
|
59504
|
+
for (let b = v; b <= m; b += 100)
|
|
59505
|
+
e.fillText(`${f},${b}`, f - i, b - o);
|
|
59505
59506
|
e.closePath(), e.restore();
|
|
59506
59507
|
}
|
|
59507
59508
|
testGetRandomLightColor() {
|
|
@@ -59528,9 +59529,9 @@ function AC(r, t, e) {
|
|
|
59528
59529
|
r.save(), r.globalAlpha = u, r.direction = v;
|
|
59529
59530
|
let f = "";
|
|
59530
59531
|
if (p && (f += "italic "), h && (f += "bold "), f += `${g}px Arial`, r.font = f, r.fillStyle = c, n) {
|
|
59531
|
-
const
|
|
59532
|
+
const b = r.canvas.width, z = r.canvas.height;
|
|
59532
59533
|
for (let D = s; D < z; D += g + o)
|
|
59533
|
-
for (let j = a; j <
|
|
59534
|
+
for (let j = a; j < b; j += r.measureText(m).width + i)
|
|
59534
59535
|
r.save(), r.translate(j, D), r.rotate(Math.PI / 180 * l), r.fillText(m, 0, 0), r.restore();
|
|
59535
59536
|
} else
|
|
59536
59537
|
r.save(), r.translate(a, s), r.rotate(Math.PI / 180 * l), r.fillText(m, 0, 0), r.restore();
|
|
@@ -59543,9 +59544,9 @@ function OC(r, t) {
|
|
|
59543
59544
|
if (h && (v += "italic "), c && (v += "bold "), v += `${d}px Arial`, r.font = v, r.fillStyle = g, u)
|
|
59544
59545
|
if (s) {
|
|
59545
59546
|
const m = r.canvas.width, f = r.canvas.height;
|
|
59546
|
-
for (let
|
|
59547
|
+
for (let b = a; b < f; b += d + i)
|
|
59547
59548
|
for (let z = e; z < m; z += r.measureText(u).width + n)
|
|
59548
|
-
r.save(), r.translate(z,
|
|
59549
|
+
r.save(), r.translate(z, b), r.rotate(Math.PI / 180 * o), r.fillText(u, 0, 0), r.restore();
|
|
59549
59550
|
} else
|
|
59550
59551
|
r.save(), r.translate(e, a), r.rotate(Math.PI / 180 * o), r.fillText(u, 0, 0), r.restore();
|
|
59551
59552
|
r.restore();
|
|
@@ -59558,9 +59559,9 @@ function MC(r, t, e) {
|
|
|
59558
59559
|
const p = d, v = c ? d / h : g;
|
|
59559
59560
|
if (n) {
|
|
59560
59561
|
const m = r.canvas.width, f = r.canvas.height;
|
|
59561
|
-
for (let
|
|
59562
|
+
for (let b = s; b < f; b += v + o)
|
|
59562
59563
|
for (let z = a; z < m; z += p + i)
|
|
59563
|
-
r.save(), r.translate(z,
|
|
59564
|
+
r.save(), r.translate(z, b), r.rotate(Math.PI / 180 * l), r.drawImage(e, 0, 0, p, v), r.restore();
|
|
59564
59565
|
} else
|
|
59565
59566
|
r.save(), r.translate(a, s), r.rotate(Math.PI / 180 * l), r.drawImage(e, 0, 0, p, v), r.restore();
|
|
59566
59567
|
r.restore();
|
|
@@ -60030,20 +60031,20 @@ class y8 extends m8 {
|
|
|
60030
60031
|
for (let c = 0, h = o.length; c < h; c++) {
|
|
60031
60032
|
const p = o[c];
|
|
60032
60033
|
if (this.isSkipByDiffBounds(p, l, u, a)) {
|
|
60033
|
-
const { x:
|
|
60034
|
+
const { x: A, y: B } = this._drawLiquid.translatePage(
|
|
60034
60035
|
p,
|
|
60035
60036
|
this.pageLayoutType,
|
|
60036
60037
|
this.pageMarginLeft,
|
|
60037
60038
|
this.pageMarginTop
|
|
60038
60039
|
);
|
|
60039
|
-
u +=
|
|
60040
|
+
u += A, l += B;
|
|
60040
60041
|
continue;
|
|
60041
60042
|
}
|
|
60042
|
-
const { width: v, pageWidth: m, height: f, pageHeight:
|
|
60043
|
+
const { width: v, pageWidth: m, height: f, pageHeight: b, originMarginTop: z, originMarginBottom: D, marginLeft: j, marginRight: w } = p;
|
|
60043
60044
|
e.save(), e.translate(u - 0.5, l - 0.5);
|
|
60044
60045
|
const x = {
|
|
60045
60046
|
width: m != null ? m : v,
|
|
60046
|
-
height:
|
|
60047
|
+
height: b != null ? b : f,
|
|
60047
60048
|
strokeWidth: 1,
|
|
60048
60049
|
stroke: PC,
|
|
60049
60050
|
fill: NC,
|
|
@@ -60071,22 +60072,22 @@ class y8 extends m8 {
|
|
|
60071
60072
|
points: [m - w, z - C]
|
|
60072
60073
|
}, {
|
|
60073
60074
|
command: "M",
|
|
60074
|
-
points: [j - C,
|
|
60075
|
+
points: [j - C, b - D]
|
|
60075
60076
|
}, {
|
|
60076
60077
|
command: "L",
|
|
60077
|
-
points: [j,
|
|
60078
|
+
points: [j, b - D]
|
|
60078
60079
|
}, {
|
|
60079
60080
|
command: "L",
|
|
60080
|
-
points: [j,
|
|
60081
|
+
points: [j, b - D + C]
|
|
60081
60082
|
}, {
|
|
60082
60083
|
command: "M",
|
|
60083
|
-
points: [m - w + C,
|
|
60084
|
+
points: [m - w + C, b - D]
|
|
60084
60085
|
}, {
|
|
60085
60086
|
command: "L",
|
|
60086
|
-
points: [m - w,
|
|
60087
|
+
points: [m - w, b - D]
|
|
60087
60088
|
}, {
|
|
60088
60089
|
command: "L",
|
|
60089
|
-
points: [m - w,
|
|
60090
|
+
points: [m - w, b - D + C]
|
|
60090
60091
|
}],
|
|
60091
60092
|
strokeWidth: 1.5,
|
|
60092
60093
|
stroke: $C
|
|
@@ -60218,7 +60219,7 @@ function KC(r, t) {
|
|
|
60218
60219
|
const { left: u, top: d, width: g, height: c } = r.getBoundingClientRect();
|
|
60219
60220
|
if (o || t(), !g || !c)
|
|
60220
60221
|
return;
|
|
60221
|
-
const h = q0(d), p = q0(s.clientWidth - (u + g)), v = q0(s.clientHeight - (d + c)), m = q0(u),
|
|
60222
|
+
const h = q0(d), p = q0(s.clientWidth - (u + g)), v = q0(s.clientHeight - (d + c)), m = q0(u), b = {
|
|
60222
60223
|
rootMargin: `${-h}px ${-p}px ${-v}px ${-m}px`,
|
|
60223
60224
|
threshold: HC(0, UC(1, l)) || 1
|
|
60224
60225
|
};
|
|
@@ -60236,12 +60237,12 @@ function KC(r, t) {
|
|
|
60236
60237
|
}
|
|
60237
60238
|
try {
|
|
60238
60239
|
e = new IntersectionObserver(D, {
|
|
60239
|
-
...
|
|
60240
|
+
...b,
|
|
60240
60241
|
// Handle <iframe>s
|
|
60241
60242
|
root: s.ownerDocument
|
|
60242
60243
|
});
|
|
60243
60244
|
} catch {
|
|
60244
|
-
e = new IntersectionObserver(D,
|
|
60245
|
+
e = new IntersectionObserver(D, b);
|
|
60245
60246
|
}
|
|
60246
60247
|
e.observe(r);
|
|
60247
60248
|
}
|
|
@@ -61053,8 +61054,8 @@ const JC = "engine-render.config", t7 = {}, m2 = class m2 extends T2 {
|
|
|
61053
61054
|
o && this._onDragEnter(f);
|
|
61054
61055
|
break;
|
|
61055
61056
|
case "dragover": {
|
|
61056
|
-
const
|
|
61057
|
-
n &&
|
|
61057
|
+
const b = m.inputIndex === Q.Horizontal || m.inputIndex === Q.Vertical || m.inputIndex === Q.DeltaHorizontal || m.inputIndex === Q.DeltaVertical;
|
|
61058
|
+
n && b && this._onDragOver(f);
|
|
61058
61059
|
break;
|
|
61059
61060
|
}
|
|
61060
61061
|
case "dragleave":
|
|
@@ -61355,7 +61356,7 @@ class nE extends T2 {
|
|
|
61355
61356
|
}
|
|
61356
61357
|
// eslint-disable-next-line max-lines-per-function, complexity
|
|
61357
61358
|
_getConfig(e) {
|
|
61358
|
-
var
|
|
61359
|
+
var I, N, P, $, H, V, t1, g1, c1, i1, n1, d1, p1, D1, k1, j1, P1, y1, C1, O1, U1, B2, R2, H1, a2, Z1, B1, M1, r2;
|
|
61359
61360
|
const a = e.transformerConfig;
|
|
61360
61361
|
let {
|
|
61361
61362
|
isCropper: s,
|
|
@@ -61372,7 +61373,7 @@ class nE extends T2 {
|
|
|
61372
61373
|
borderEnabled: v,
|
|
61373
61374
|
borderStroke: m,
|
|
61374
61375
|
borderStrokeWidth: f,
|
|
61375
|
-
borderDash:
|
|
61376
|
+
borderDash: b,
|
|
61376
61377
|
borderSpacing: z,
|
|
61377
61378
|
anchorFill: D,
|
|
61378
61379
|
anchorStroke: j,
|
|
@@ -61382,13 +61383,13 @@ class nE extends T2 {
|
|
|
61382
61383
|
keepRatio: T,
|
|
61383
61384
|
centeredScaling: F,
|
|
61384
61385
|
enabledAnchors: S,
|
|
61385
|
-
flipEnabled:
|
|
61386
|
+
flipEnabled: A,
|
|
61386
61387
|
ignoreStroke: B,
|
|
61387
|
-
boundBoxFunc:
|
|
61388
|
-
useSingleNodeRotation:
|
|
61388
|
+
boundBoxFunc: O,
|
|
61389
|
+
useSingleNodeRotation: M,
|
|
61389
61390
|
shouldOverdrawWholeArea: L
|
|
61390
61391
|
} = this;
|
|
61391
|
-
return a != null && (s = (
|
|
61392
|
+
return a != null && (s = (I = a.isCropper) != null ? I : s, n = (N = a.hoverEnabled) != null ? N : n, i = (P = a.hoverEnterFunc) != null ? P : i, o = ($ = a.hoverLeaveFunc) != null ? $ : o, l = (H = a.resizeEnabled) != null ? H : l, u = (V = a.rotateEnabled) != null ? V : u, d = (t1 = a.rotationSnaps) != null ? t1 : d, g = (g1 = a.rotationSnapTolerance) != null ? g1 : g, c = (c1 = a.rotateAnchorOffset) != null ? c1 : c, h = (i1 = a.rotateSize) != null ? i1 : h, p = (n1 = a.rotateCornerRadius) != null ? n1 : p, v = (d1 = a.borderEnabled) != null ? d1 : v, m = (p1 = a.borderStroke) != null ? p1 : m, f = (D1 = a.borderStrokeWidth) != null ? D1 : f, b = (k1 = a.borderDash) != null ? k1 : b, z = (j1 = a.borderSpacing) != null ? j1 : z, D = (P1 = a.anchorFill) != null ? P1 : D, j = (y1 = a.anchorStroke) != null ? y1 : j, w = (C1 = a.anchorStrokeWidth) != null ? C1 : w, x = (O1 = a.anchorSize) != null ? O1 : x, C = (U1 = a.anchorCornerRadius) != null ? U1 : C, T = (B2 = a.keepRatio) != null ? B2 : T, F = (R2 = a.centeredScaling) != null ? R2 : F, S = (H1 = a.enabledAnchors) != null ? H1 : S, A = (a2 = a.flipEnabled) != null ? a2 : A, B = (Z1 = a.ignoreStroke) != null ? Z1 : B, O = (B1 = a.boundBoxFunc) != null ? B1 : O, M = (M1 = a.useSingleNodeRotation) != null ? M1 : M, L = (r2 = a.shouldOverdrawWholeArea) != null ? r2 : L), {
|
|
61392
61393
|
isCropper: s,
|
|
61393
61394
|
hoverEnabled: n,
|
|
61394
61395
|
hoverEnterFunc: i,
|
|
@@ -61403,7 +61404,7 @@ class nE extends T2 {
|
|
|
61403
61404
|
borderEnabled: v,
|
|
61404
61405
|
borderStroke: m,
|
|
61405
61406
|
borderStrokeWidth: f,
|
|
61406
|
-
borderDash:
|
|
61407
|
+
borderDash: b,
|
|
61407
61408
|
borderSpacing: z,
|
|
61408
61409
|
anchorFill: D,
|
|
61409
61410
|
anchorStroke: j,
|
|
@@ -61413,10 +61414,10 @@ class nE extends T2 {
|
|
|
61413
61414
|
keepRatio: T,
|
|
61414
61415
|
centeredScaling: F,
|
|
61415
61416
|
enabledAnchors: S,
|
|
61416
|
-
flipEnabled:
|
|
61417
|
+
flipEnabled: A,
|
|
61417
61418
|
ignoreStroke: B,
|
|
61418
|
-
boundBoxFunc:
|
|
61419
|
-
useSingleNodeRotation:
|
|
61419
|
+
boundBoxFunc: O,
|
|
61420
|
+
useSingleNodeRotation: M,
|
|
61420
61421
|
shouldOverdrawWholeArea: L
|
|
61421
61422
|
};
|
|
61422
61423
|
}
|
|
@@ -61501,10 +61502,10 @@ class nE extends T2 {
|
|
|
61501
61502
|
const m = this._getTopScene();
|
|
61502
61503
|
if (!m)
|
|
61503
61504
|
return;
|
|
61504
|
-
const { width: f, height:
|
|
61505
|
+
const { width: f, height: b } = m;
|
|
61505
61506
|
if (n) {
|
|
61506
61507
|
if (this._copperSelectedObject) {
|
|
61507
|
-
const z = this._copperSelectedObject, D = this._checkMoveBoundary(z, p, v, c, h, f,
|
|
61508
|
+
const z = this._copperSelectedObject, D = this._checkMoveBoundary(z, p, v, c, h, f, b);
|
|
61508
61509
|
p = D.moveLeft, v = D.moveTop, z.translate(p + z.left, v + z.top), this._changing$.next({
|
|
61509
61510
|
objects: /* @__PURE__ */ new Map([[z.oKey, z]]),
|
|
61510
61511
|
moveX: p,
|
|
@@ -61524,7 +61525,7 @@ class nE extends T2 {
|
|
|
61524
61525
|
c,
|
|
61525
61526
|
h,
|
|
61526
61527
|
f,
|
|
61527
|
-
|
|
61528
|
+
b
|
|
61528
61529
|
);
|
|
61529
61530
|
p = w.moveLeft, v = w.moveTop;
|
|
61530
61531
|
}
|
|
@@ -61591,10 +61592,10 @@ class nE extends T2 {
|
|
|
61591
61592
|
v.rotateByPoint(V1(-g), p);
|
|
61592
61593
|
const m = new U(this._startOffsetX, this._startOffsetY);
|
|
61593
61594
|
m.rotateByPoint(V1(-g), p);
|
|
61594
|
-
const f = (v.x - m.x) / n,
|
|
61595
|
+
const f = (v.x - m.x) / n, b = (v.y - m.y) / i;
|
|
61595
61596
|
return {
|
|
61596
61597
|
moveLeft: f,
|
|
61597
|
-
moveTop:
|
|
61598
|
+
moveTop: b
|
|
61598
61599
|
};
|
|
61599
61600
|
}
|
|
61600
61601
|
/**
|
|
@@ -61603,12 +61604,12 @@ class nE extends T2 {
|
|
|
61603
61604
|
_applyRotationForResult(e, a, s, n = !1) {
|
|
61604
61605
|
if (s === 0)
|
|
61605
61606
|
return e;
|
|
61606
|
-
const { left: i = 0, top: o = 0, width: l = 0, height: u = 0 } = e, { left: d = 0, top: g = 0, width: c = 0, height: h = 0 } = a, p = c / 2, v = h / 2, m = l / 2 + i - d, f = u / 2 + o - g,
|
|
61607
|
+
const { left: i = 0, top: o = 0, width: l = 0, height: u = 0 } = e, { left: d = 0, top: g = 0, width: c = 0, height: h = 0 } = a, p = c / 2, v = h / 2, m = l / 2 + i - d, f = u / 2 + o - g, b = U4(new U(p, v), s, new U(i, o), new U(m, f));
|
|
61607
61608
|
return {
|
|
61608
61609
|
width: this._smoothAccuracy(l, n),
|
|
61609
61610
|
height: this._smoothAccuracy(u, n),
|
|
61610
|
-
left: this._smoothAccuracy(
|
|
61611
|
-
top: this._smoothAccuracy(
|
|
61611
|
+
left: this._smoothAccuracy(b.x, n),
|
|
61612
|
+
top: this._smoothAccuracy(b.y, n)
|
|
61612
61613
|
};
|
|
61613
61614
|
}
|
|
61614
61615
|
// eslint-disable-next-line complexity
|
|
@@ -61651,46 +61652,46 @@ class nE extends T2 {
|
|
|
61651
61652
|
}
|
|
61652
61653
|
_resizeLeftTop(e, a, s, n) {
|
|
61653
61654
|
const { left: i = 0, top: o = 0, width: l = 0, height: u = 0 } = e.getState(), { width: d = l, height: g = u, left: c = i, top: h = o } = n, p = d / g, { moveLeft: v, moveTop: m } = this._fixMoveLtRb(a, s, d, g, p);
|
|
61654
|
-
let f = d - v,
|
|
61655
|
+
let f = d - v, b = g - m;
|
|
61655
61656
|
const { limitWidth: z, limitHeight: D } = this._getLimitedSize(d, g);
|
|
61656
|
-
return f < z && (f = z),
|
|
61657
|
+
return f < z && (f = z), b < D && (b = D), {
|
|
61657
61658
|
left: i + l - f,
|
|
61658
|
-
top: o + u -
|
|
61659
|
+
top: o + u - b,
|
|
61659
61660
|
width: f,
|
|
61660
|
-
height:
|
|
61661
|
+
height: b
|
|
61661
61662
|
};
|
|
61662
61663
|
}
|
|
61663
61664
|
_resizeRightBottom(e, a, s, n) {
|
|
61664
61665
|
const { left: i = 0, top: o = 0, width: l = 0, height: u = 0 } = e.getState(), { width: d = l, height: g = u, left: c = i, top: h = o } = n, p = d / g, { moveLeft: v, moveTop: m } = this._fixMoveLtRb(a, s, d, g, p);
|
|
61665
|
-
let f = d + v,
|
|
61666
|
+
let f = d + v, b = g + m;
|
|
61666
61667
|
const { limitWidth: z, limitHeight: D } = this._getLimitedSize(d, g);
|
|
61667
|
-
return f < z && (f = z),
|
|
61668
|
+
return f < z && (f = z), b < D && (b = D), {
|
|
61668
61669
|
left: i,
|
|
61669
61670
|
top: o,
|
|
61670
61671
|
width: f,
|
|
61671
|
-
height:
|
|
61672
|
+
height: b
|
|
61672
61673
|
};
|
|
61673
61674
|
}
|
|
61674
61675
|
_resizeLeftBottom(e, a, s, n) {
|
|
61675
61676
|
const { left: i = 0, top: o = 0, width: l = 0, height: u = 0 } = e.getState(), { width: d = l, height: g = u, left: c = i, top: h = o } = n, p = d / g, { moveLeft: v, moveTop: m } = this._fixMoveLbRt(a, s, d, g, p);
|
|
61676
|
-
let f = d - v,
|
|
61677
|
+
let f = d - v, b = g + m;
|
|
61677
61678
|
const { limitWidth: z, limitHeight: D } = this._getLimitedSize(d, g);
|
|
61678
|
-
return f < z && (f = z),
|
|
61679
|
+
return f < z && (f = z), b < D && (b = D), {
|
|
61679
61680
|
left: i + l - f,
|
|
61680
61681
|
top: o,
|
|
61681
61682
|
width: f,
|
|
61682
|
-
height:
|
|
61683
|
+
height: b
|
|
61683
61684
|
};
|
|
61684
61685
|
}
|
|
61685
61686
|
_resizeRightTop(e, a, s, n) {
|
|
61686
61687
|
const { left: i = 0, top: o = 0, width: l = 0, height: u = 0 } = e.getState(), { width: d = l, height: g = u, left: c = i, top: h = o } = n, p = d / g, { moveLeft: v, moveTop: m } = this._fixMoveLbRt(a, s, d, g, p);
|
|
61687
|
-
let f = d + v,
|
|
61688
|
+
let f = d + v, b = g - m;
|
|
61688
61689
|
const { limitWidth: z, limitHeight: D } = this._getLimitedSize(d, g);
|
|
61689
|
-
return f < z && (f = z),
|
|
61690
|
+
return f < z && (f = z), b < D && (b = D), {
|
|
61690
61691
|
left: i,
|
|
61691
|
-
top: o + u -
|
|
61692
|
+
top: o + u - b,
|
|
61692
61693
|
width: f,
|
|
61693
|
-
height:
|
|
61694
|
+
height: b
|
|
61694
61695
|
};
|
|
61695
61696
|
}
|
|
61696
61697
|
_fixMoveLtRb(e, a, s, n, i) {
|
|
@@ -61723,7 +61724,7 @@ class nE extends T2 {
|
|
|
61723
61724
|
c.startScroll(o, l);
|
|
61724
61725
|
const { scrollX: h, scrollY: p } = B0(c);
|
|
61725
61726
|
this._viewportScrollX = h, this._viewportScrollY = p;
|
|
61726
|
-
const { ancestorLeft: v, ancestorTop: m } = this._scene, { width: f, height:
|
|
61727
|
+
const { ancestorLeft: v, ancestorTop: m } = this._scene, { width: f, height: b } = u, z = this._getRotateAnchorCursor(a);
|
|
61727
61728
|
if (!g)
|
|
61728
61729
|
this._clearControlMap(), this._changeStart$.next({
|
|
61729
61730
|
objects: this._selectedObjectMap,
|
|
@@ -61751,12 +61752,12 @@ class nE extends T2 {
|
|
|
61751
61752
|
var x, C;
|
|
61752
61753
|
(x = this._topScenePointerMoveSub) == null || x.unsubscribe(), (C = this._topScenePointerUpSub) == null || C.unsubscribe(), u.enableObjectsEvent(), u.resetCursor(), c.dispose(), this._startStateMap.clear();
|
|
61753
61754
|
const { offsetX: j, offsetY: w } = D;
|
|
61754
|
-
g ? (this._recoverySizeBoundary([s], v, m, f,
|
|
61755
|
+
g ? (this._recoverySizeBoundary([s], v, m, f, b), this._changeEnd$.next({
|
|
61755
61756
|
objects: /* @__PURE__ */ new Map([[s.oKey, s]]),
|
|
61756
61757
|
type: 2,
|
|
61757
61758
|
offsetX: j,
|
|
61758
61759
|
offsetY: w
|
|
61759
|
-
})) : (this._recoverySizeBoundary(Array.from(this._selectedObjectMap.values()), v, m, f,
|
|
61760
|
+
})) : (this._recoverySizeBoundary(Array.from(this._selectedObjectMap.values()), v, m, f, b), this._changeEnd$.next({
|
|
61760
61761
|
objects: this._selectedObjectMap,
|
|
61761
61762
|
type: 2,
|
|
61762
61763
|
offsetX: j,
|
|
@@ -61794,11 +61795,11 @@ class nE extends T2 {
|
|
|
61794
61795
|
type: 0
|
|
61795
61796
|
/* MOVE_START */
|
|
61796
61797
|
}), this._moveBufferSkip = !1;
|
|
61797
|
-
const
|
|
61798
|
+
const b = l.onPointerMove$.subscribeEvent((D) => {
|
|
61798
61799
|
const { offsetX: j, offsetY: w } = D;
|
|
61799
61800
|
this._rotateMoving(j, w, m, f, v), l.setCursor(d);
|
|
61800
61801
|
}), z = l.onPointerUp$.subscribeEvent((D) => {
|
|
61801
|
-
|
|
61802
|
+
b == null || b.unsubscribe(), z == null || z.unsubscribe(), l.enableObjectsEvent(), l.resetCursor(), this.refreshControls();
|
|
61802
61803
|
const { offsetX: j, offsetY: w } = D;
|
|
61803
61804
|
this._changeEnd$.next({
|
|
61804
61805
|
objects: this._selectedObjectMap,
|
|
@@ -61969,7 +61970,7 @@ class nE extends T2 {
|
|
|
61969
61970
|
_createCopperResizeAnchor(e, a, s) {
|
|
61970
61971
|
const { height: n = 0, width: i = 0, scaleX: o = 1, scaleY: l = 1 } = a.getState(), { anchorFill: u, anchorStroke: d, anchorStrokeWidth: g, anchorSize: c } = this._getConfig(a), { left: h, top: p } = this._getCopperAnchorPosition(e, n, i, a), v = this._getRotateAnchorCursor(e);
|
|
61971
61972
|
let m;
|
|
61972
|
-
const f = `${e}_${s}`,
|
|
61973
|
+
const f = `${e}_${s}`, b = {
|
|
61973
61974
|
zIndex: s - 1,
|
|
61974
61975
|
fill: u,
|
|
61975
61976
|
stroke: d,
|
|
@@ -61979,7 +61980,7 @@ class nE extends T2 {
|
|
|
61979
61980
|
left: h,
|
|
61980
61981
|
top: p
|
|
61981
61982
|
}, z = c, D = c / 4;
|
|
61982
|
-
return v === f1.EAST_RESIZE ? (
|
|
61983
|
+
return v === f1.EAST_RESIZE ? (b.width = D, b.height = z, m = new R1(f, b)) : v === f1.WEST_RESIZE ? (b.width = D, b.height = z, m = new R1(f, b)) : v === f1.NORTH_RESIZE ? (b.width = z, b.height = D, m = new R1(f, b)) : v === f1.SOUTH_RESIZE ? (b.width = z, b.height = D, m = new R1(f, b)) : v === f1.NORTH_EAST_RESIZE ? (b.pointsGroup = this._getNorthEastPoints(z, D), m = new R3(f, b)) : v === f1.NORTH_WEST_RESIZE ? (b.pointsGroup = this._getNorthWestPoints(z, D), m = new R3(f, b)) : v === f1.SOUTH_EAST_RESIZE ? (b.pointsGroup = this._getSouthEastPoints(z, D), m = new R3(f, b)) : v === f1.SOUTH_WEST_RESIZE && (b.pointsGroup = this._getSouthWestPoints(z, D), m = new R3(f, b)), this._attachHover(m, v, f1.DEFAULT), m;
|
|
61983
61984
|
}
|
|
61984
61985
|
_getNorthEastPoints(e, a) {
|
|
61985
61986
|
const s = e - a;
|
|
@@ -62149,7 +62150,7 @@ class nE extends T2 {
|
|
|
62149
62150
|
}), this._transformerControlMap.clear();
|
|
62150
62151
|
}
|
|
62151
62152
|
_createControl(e, a = !0) {
|
|
62152
|
-
const { left: s = 0, top: n = 0, height: i = 0, width: o = 0 } = e.getState(), l = e.angle, { isCropper: u, resizeEnabled: d, rotateEnabled: g, rotateAnchorOffset: c, rotateSize: h, rotateCornerRadius: p, borderEnabled: v, borderStroke: m, borderStrokeWidth: f, borderSpacing:
|
|
62153
|
+
const { left: s = 0, top: n = 0, height: i = 0, width: o = 0 } = e.getState(), l = e.angle, { isCropper: u, resizeEnabled: d, rotateEnabled: g, rotateAnchorOffset: c, rotateSize: h, rotateCornerRadius: p, borderEnabled: v, borderStroke: m, borderStrokeWidth: f, borderSpacing: b, enabledAnchors: z } = this._getConfig(e);
|
|
62153
62154
|
if (a && u)
|
|
62154
62155
|
return;
|
|
62155
62156
|
const D = e.oKey, j = this._selectedObjectMap.size + e.maxZIndex + rE, w = e.getLayerIndex() || aE, x = [];
|
|
@@ -62159,7 +62160,7 @@ class nE extends T2 {
|
|
|
62159
62160
|
evented: !1,
|
|
62160
62161
|
strokeWidth: f,
|
|
62161
62162
|
stroke: m,
|
|
62162
|
-
...this._getOutlinePosition(o, i,
|
|
62163
|
+
...this._getOutlinePosition(o, i, b, f)
|
|
62163
62164
|
});
|
|
62164
62165
|
x.push(F);
|
|
62165
62166
|
}
|
|
@@ -62171,7 +62172,7 @@ class nE extends T2 {
|
|
|
62171
62172
|
e
|
|
62172
62173
|
);
|
|
62173
62174
|
if (g) {
|
|
62174
|
-
const
|
|
62175
|
+
const A = new R1(`__SpreadsheetTransformerRotateLine___${j}`, {
|
|
62175
62176
|
zIndex: j - 1,
|
|
62176
62177
|
evented: !1,
|
|
62177
62178
|
left: F,
|
|
@@ -62180,20 +62181,20 @@ class nE extends T2 {
|
|
|
62180
62181
|
width: 1,
|
|
62181
62182
|
strokeWidth: f,
|
|
62182
62183
|
stroke: m
|
|
62183
|
-
}), { left: B, top:
|
|
62184
|
+
}), { left: B, top: O } = this._getRotateAnchorPosition("__SpreadsheetTransformerRotate__", i, o, e), M = this._getRotateAnchorCursor(
|
|
62184
62185
|
"__SpreadsheetTransformerRotate__"
|
|
62185
62186
|
/* ROTATE */
|
|
62186
62187
|
), L = new R1(`__SpreadsheetTransformerRotate___${j}`, {
|
|
62187
62188
|
zIndex: j - 1,
|
|
62188
62189
|
left: B,
|
|
62189
|
-
top:
|
|
62190
|
+
top: O,
|
|
62190
62191
|
height: h,
|
|
62191
62192
|
width: h,
|
|
62192
62193
|
radius: p,
|
|
62193
62194
|
strokeWidth: f * 2,
|
|
62194
62195
|
stroke: m
|
|
62195
62196
|
});
|
|
62196
|
-
this._attachEventToRotate(L, e), this._attachHover(L,
|
|
62197
|
+
this._attachEventToRotate(L, e), this._attachHover(L, M, f1.DEFAULT), x.push(A, L);
|
|
62197
62198
|
}
|
|
62198
62199
|
}
|
|
62199
62200
|
if (d)
|
|
@@ -62201,8 +62202,8 @@ class nE extends T2 {
|
|
|
62201
62202
|
if (z[F] !== 1)
|
|
62202
62203
|
continue;
|
|
62203
62204
|
const B = tE[F];
|
|
62204
|
-
let
|
|
62205
|
-
u ?
|
|
62205
|
+
let O;
|
|
62206
|
+
u ? O = this._createCopperResizeAnchor(B, e, j) : O = this._createResizeAnchor(B, e, j), this._attachEventToAnchor(O, B, e), x.push(O);
|
|
62206
62207
|
}
|
|
62207
62208
|
const C = new e7(`__SpreadsheetTransformer___${D}`, ...x);
|
|
62208
62209
|
return C.zIndex = j, C.evented = !1, C.openSelfSizeMode(), C.transformByState({ left: s, top: n, angle: l, width: o, height: i }), this.getScene().addObject(C, w), u ? this._copperControl = C : (this._transformerControlMap.has(D) && this._transformerControlMap.get(D).dispose(), this._transformerControlMap.set(D, C), this._createControl$.next(C)), C;
|
|
@@ -63838,10 +63839,10 @@ class OB {
|
|
|
63838
63839
|
right: i
|
|
63839
63840
|
}, f = this.expandBounds(g);
|
|
63840
63841
|
this.cacheBound = f, this.preCacheBound || (this.preCacheBound = this.expandBounds(g));
|
|
63841
|
-
let
|
|
63842
|
+
let b = [];
|
|
63842
63843
|
this._preCacheVisibleBound && (p < 0 ? this._preCacheVisibleBound.left -= p : p > 0 && (this._preCacheVisibleBound.right -= p), v < 0 ? this._preCacheVisibleBound.top -= v : v > 0 && (this._preCacheVisibleBound.bottom -= v));
|
|
63843
63844
|
const z = this.expandBounds(m), D = this._calcCacheUpdate(g, this._preCacheVisibleBound, p, v);
|
|
63844
|
-
return D && (
|
|
63845
|
+
return D && (b = this._calcDiffCacheBound(this._preCacheBound, f)), {
|
|
63845
63846
|
viewBound: g,
|
|
63846
63847
|
diffBounds: h,
|
|
63847
63848
|
diffX: p,
|
|
@@ -63852,7 +63853,7 @@ class OB {
|
|
|
63852
63853
|
isForceDirty: this.isForceDirty,
|
|
63853
63854
|
allowCache: this._allowCache,
|
|
63854
63855
|
cacheBound: f,
|
|
63855
|
-
diffCacheBounds:
|
|
63856
|
+
diffCacheBounds: b,
|
|
63856
63857
|
cacheViewPortPosition: z,
|
|
63857
63858
|
shouldCacheUpdate: D,
|
|
63858
63859
|
sceneTrans: t,
|