oolong-engine 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/OolongApp.d.ts +0 -1
- package/dist/app/OolongApp.d.ts.map +1 -1
- package/dist/{arc-Dvb9RuGN.js → arc-DrRDHoJY.js} +1 -1
- package/dist/architecture-PBZL5I3N-DrpT3Sce.js +6 -0
- package/dist/{architectureDiagram-2XIMDMQ5-D7Is69IP.js → architectureDiagram-2XIMDMQ5-DtgIxKYg.js} +4 -4
- package/dist/{blockDiagram-WCTKOSBZ-GUzvfW6U.js → blockDiagram-WCTKOSBZ-2drMwn9F.js} +3 -3
- package/dist/{c4Diagram-IC4MRINW-DhYrnE8z.js → c4Diagram-IC4MRINW-IILUO9F0.js} +2 -2
- package/dist/{channel-CT6FpYEZ.js → channel-ElKUO02T.js} +1 -1
- package/dist/{chunk-4BX2VUAB-zaPS7TSb.js → chunk-4BX2VUAB-Cs54A2y2.js} +1 -1
- package/dist/{chunk-55IACEB6-BrK3ifIg.js → chunk-55IACEB6-CKF96ejY.js} +1 -1
- package/dist/{chunk-FMBD7UC4-BVjhMdw1.js → chunk-FMBD7UC4-BXGV26pV.js} +1 -1
- package/dist/{chunk-JSJVCQXG-9zNTOA62.js → chunk-JSJVCQXG-Chbc8AwY.js} +1 -1
- package/dist/{chunk-KX2RTZJC-D0YZPq7w.js → chunk-KX2RTZJC-BgjxE4ta.js} +1 -1
- package/dist/{chunk-NQ4KR5QH-D0H5LJ70.js → chunk-NQ4KR5QH-BvBDGkAn.js} +3 -3
- package/dist/{chunk-QZHKN3VN-DiSQK9Ey.js → chunk-QZHKN3VN-CxOsS02w.js} +1 -1
- package/dist/{chunk-WL4C6EOR-DvQXGWh1.js → chunk-WL4C6EOR-CNlI7mm3.js} +5 -5
- package/dist/{classDiagram-VBA2DB6C-BvpG0U9j.js → classDiagram-VBA2DB6C-DT-bXx5o.js} +2 -2
- package/dist/{classDiagram-v2-RAHNMMFH-BvpG0U9j.js → classDiagram-v2-RAHNMMFH-DT-bXx5o.js} +2 -2
- package/dist/{cose-bilkent-S5V4N54A-DAuQiwAY.js → cose-bilkent-S5V4N54A-CIl4wNpc.js} +2 -2
- package/dist/{dagre-KLK3FWXG-B1LnQ4Nh.js → dagre-KLK3FWXG-M0dQTczl.js} +1 -1
- package/dist/{diagram-E7M64L7V-DYD7i37U.js → diagram-E7M64L7V-CvJDuRpZ.js} +4 -4
- package/dist/{diagram-IFDJBPK2-BLpeLjoP.js → diagram-IFDJBPK2-BXA_3wrS.js} +3 -3
- package/dist/{diagram-P4PSJMXO-DdGmWn7A.js → diagram-P4PSJMXO-DXstHM6m.js} +3 -3
- package/dist/engine.js +1 -1
- package/dist/engine.umd.cjs +188 -188
- package/dist/{erDiagram-INFDFZHY-BGJ4Sx6M.js → erDiagram-INFDFZHY-DDsGs479.js} +4 -4
- package/dist/{flowDiagram-PKNHOUZH-CfIgi5h-.js → flowDiagram-PKNHOUZH-BOXbHlc6.js} +6 -6
- package/dist/{ganttDiagram-A5KZAMGK-C2mK-u4N.js → ganttDiagram-A5KZAMGK-E-oEorI2.js} +2 -2
- package/dist/gitGraph-HDMCJU4V-ZLSwKOfI.js +6 -0
- package/dist/{gitGraphDiagram-K3NZZRJ6-CsaLOmfL.js → gitGraphDiagram-K3NZZRJ6-D2mgyNkT.js} +4 -4
- package/dist/{index-BRgAJnwv.js → index-Da0ZmfOB.js} +678 -697
- package/dist/{index.es-2qd1RRW-.js → index.es-DQMVceEW.js} +1 -1
- package/dist/info-3K5VOQVL-DTzu5X5P.js +6 -0
- package/dist/{infoDiagram-LFFYTUFH-C7KoISIK.js → infoDiagram-LFFYTUFH-BEV79x5d.js} +2 -2
- package/dist/{ishikawaDiagram-PHBUUO56-0xSCsnmA.js → ishikawaDiagram-PHBUUO56-DdpItI8Y.js} +1 -1
- package/dist/{journeyDiagram-4ABVD52K-B8QS_tUN.js → journeyDiagram-4ABVD52K-Cpv_l6JT.js} +4 -4
- package/dist/{kanban-definition-K7BYSVSG-CISgdl5Z.js → kanban-definition-K7BYSVSG-BPDMVLMG.js} +2 -2
- package/dist/{mermaid-parser.core-Z-sfRN-r.js → mermaid-parser.core-JbKK4JFL.js} +8 -8
- package/dist/{mermaid.core-CLtuKi0e.js → mermaid.core-B_sJRZT_.js} +32 -32
- package/dist/{mindmap-definition-YRQLILUH-qZi1auIt.js → mindmap-definition-YRQLILUH-BY4ynUMx.js} +3 -3
- package/dist/packet-RMMSAZCW-DvUMURr1.js +6 -0
- package/dist/pie-UPGHQEXC-Cftn6HWM.js +6 -0
- package/dist/{pieDiagram-SKSYHLDU-C6NZe1Xj.js → pieDiagram-SKSYHLDU-BmPDcDpq.js} +4 -4
- package/dist/{quadrantDiagram-337W2JSQ-Cf-2ozrv.js → quadrantDiagram-337W2JSQ-2mtQ_UpK.js} +1 -1
- package/dist/radar-KQ55EAFF-DFf50M-A.js +6 -0
- package/dist/{requirementDiagram-Z7DCOOCP-CuOF47GX.js → requirementDiagram-Z7DCOOCP-DI-RKSsg.js} +3 -3
- package/dist/{sankeyDiagram-WA2Y5GQK-DO1mUPyq.js → sankeyDiagram-WA2Y5GQK-CkJ0TYSO.js} +1 -1
- package/dist/{sequenceDiagram-2WXFIKYE-DHpeSu5J.js → sequenceDiagram-2WXFIKYE-J_eEIJjL.js} +3 -3
- package/dist/{stateDiagram-RAJIS63D-DVzCgrpp.js → stateDiagram-RAJIS63D-hMLFLy34.js} +2 -2
- package/dist/{stateDiagram-v2-FVOUBMTO-D_lBnjpu.js → stateDiagram-v2-FVOUBMTO-BQAnSQBb.js} +2 -2
- package/dist/{timeline-definition-YZTLITO2-BIpxM9AM.js → timeline-definition-YZTLITO2--HGaUkPW.js} +2 -2
- package/dist/treemap-KZPCXAKY-BRl-s1eQ.js +6 -0
- package/dist/{vennDiagram-LZ73GAT5-Bl0gRBuS.js → vennDiagram-LZ73GAT5-CmiHznsy.js} +1 -1
- package/dist/{xychartDiagram-JWTSCODW-BiNHE4Cc.js → xychartDiagram-JWTSCODW-BAq9U2J5.js} +1 -1
- package/package.json +1 -1
- package/dist/architecture-PBZL5I3N-BsjgXHEx.js +0 -6
- package/dist/gitGraph-HDMCJU4V-UybiZcds.js +0 -6
- package/dist/info-3K5VOQVL-78flST2I.js +0 -6
- package/dist/packet-RMMSAZCW-CWMgbydz.js +0 -6
- package/dist/pie-UPGHQEXC-DpBgTDK3.js +0 -6
- package/dist/radar-KQ55EAFF-Cu5Ei-Fy.js +0 -6
- package/dist/treemap-KZPCXAKY-YWs5tyJW.js +0 -6
|
@@ -665,7 +665,7 @@ class zt {
|
|
|
665
665
|
this.prop = n;
|
|
666
666
|
}
|
|
667
667
|
}
|
|
668
|
-
const xo = "#FFFFFF", am = "#000000", Ri = "#647ee5", ur = "#545DE7", T0 = "#32a8f2", Pb = "#3370FF", vb = 8, N0 = 18, xl = 5,
|
|
668
|
+
const xo = "#FFFFFF", am = "#000000", Ri = "#647ee5", ur = "#545DE7", T0 = "#32a8f2", Pb = "#3370FF", vb = 8, N0 = 18, xl = 5, Nh = 11, Sb = "#CCCCCC", cm = "#B7BEF5", lm = "#DADEFA", y8 = "#FF0000", Pu = "#FF0000", hm = 10, Cs = -0.5 * Math.PI;
|
|
669
669
|
class Mb extends zt {
|
|
670
670
|
constructor() {
|
|
671
671
|
super(...arguments);
|
|
@@ -1053,7 +1053,7 @@ class qb extends zt {
|
|
|
1053
1053
|
m(this, "auxiliaryType", te.HoverConnectAnchor);
|
|
1054
1054
|
}
|
|
1055
1055
|
draw(e, r) {
|
|
1056
|
-
const { point: o } = this.prop, s =
|
|
1056
|
+
const { point: o } = this.prop, s = Nh / r;
|
|
1057
1057
|
e.save(), e.strokeStyle = ur, e.fillStyle = lm, e.globalAlpha = 1, e.lineWidth = 2 / r, e.beginPath(), e.arc(o.x, o.y, s, 0, 2 * Math.PI), e.fill(), e.stroke(), e.restore();
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
@@ -1063,7 +1063,7 @@ class Vb extends zt {
|
|
|
1063
1063
|
m(this, "auxiliaryType", te.HoverMindmapConnectAnchor);
|
|
1064
1064
|
}
|
|
1065
1065
|
draw(e, r) {
|
|
1066
|
-
const { point: o } = this.prop, s =
|
|
1066
|
+
const { point: o } = this.prop, s = Nh / r;
|
|
1067
1067
|
e.save(), e.strokeStyle = ur, e.fillStyle = lm, e.globalAlpha = 1, e.lineWidth = 2 / r, e.beginPath(), e.arc(o.x, o.y, s, 0, 2 * Math.PI), e.fill(), e.stroke(), e.restore();
|
|
1068
1068
|
}
|
|
1069
1069
|
}
|
|
@@ -2527,7 +2527,7 @@ const Su = {
|
|
|
2527
2527
|
[je.Octagon]: Gt.Status,
|
|
2528
2528
|
[je.Star]: Gt.Decision
|
|
2529
2529
|
};
|
|
2530
|
-
var
|
|
2530
|
+
var Ci = /* @__PURE__ */ ((c) => (c[c.TOP_RIGHT = 0] = "TOP_RIGHT", c[c.TOP_LEFT = 1] = "TOP_LEFT", c[c.BOTTOM_RIGHT = 2] = "BOTTOM_RIGHT", c[c.BOTTOM_LEFT = 3] = "BOTTOM_LEFT", c))(Ci || {});
|
|
2531
2531
|
class Bo extends tr {
|
|
2532
2532
|
constructor() {
|
|
2533
2533
|
super(...arguments);
|
|
@@ -2575,11 +2575,11 @@ class Ko extends tr {
|
|
|
2575
2575
|
}
|
|
2576
2576
|
}
|
|
2577
2577
|
var Ye = /* @__PURE__ */ ((c) => (c[c.Line = 0] = "Line", c[c.PolyLine = 1] = "PolyLine", c[c.RoundPolyLine = 2] = "RoundPolyLine", c[c.Curve = 3] = "Curve", c[c.BrokenLine = 4] = "BrokenLine", c))(Ye || {});
|
|
2578
|
-
const { abs: Vl, cos:
|
|
2578
|
+
const { abs: Vl, cos: mi, sin: Hc, acos: e5, atan2: Kl, sqrt: ea, pow: as } = Math;
|
|
2579
2579
|
function Ql(c) {
|
|
2580
2580
|
return c < 0 ? -as(-c, 1 / 3) : as(c, 1 / 3);
|
|
2581
2581
|
}
|
|
2582
|
-
const ym = Math.PI,
|
|
2582
|
+
const ym = Math.PI, Pd = 2 * ym, ta = ym / 2, t5 = 1e-6, Of = Number.MAX_SAFE_INTEGER || 9007199254740991, Hf = Number.MIN_SAFE_INTEGER || -9007199254740991, n5 = { x: 0, y: 0, z: 0 }, rt = {
|
|
2583
2583
|
// Legendre-Gauss abscissae with n=24 (x_i values, defined at i=n as the roots of the nth order Legendre polynomial Pn(x))
|
|
2584
2584
|
Tvalues: [
|
|
2585
2585
|
-0.06405689286260563,
|
|
@@ -2860,8 +2860,8 @@ const ym = Math.PI, vd = 2 * ym, ta = ym / 2, t5 = 1e-6, Of = Number.MAX_SAFE_IN
|
|
|
2860
2860
|
align: function(c, n) {
|
|
2861
2861
|
const e = n.p1.x, r = n.p1.y, o = -Kl(n.p2.y - r, n.p2.x - e), s = function(i) {
|
|
2862
2862
|
return {
|
|
2863
|
-
x: (i.x - e) *
|
|
2864
|
-
y: (i.x - e) * Hc(o) + (i.y - r) *
|
|
2863
|
+
x: (i.x - e) * mi(o) - (i.y - r) * Hc(o),
|
|
2864
|
+
y: (i.x - e) * Hc(o) + (i.y - r) * mi(o)
|
|
2865
2865
|
};
|
|
2866
2866
|
};
|
|
2867
2867
|
return c.map(s);
|
|
@@ -2893,7 +2893,7 @@ const ym = Math.PI, vd = 2 * ym, ta = ym / 2, t5 = 1e-6, Of = Number.MAX_SAFE_IN
|
|
|
2893
2893
|
let M, T, N, B, X;
|
|
2894
2894
|
if (w < 0) {
|
|
2895
2895
|
const $ = -p / 3, H = $ * $ * $, D = ea(H), ee = -y / (2 * D), E = ee < -1 ? -1 : ee > 1 ? 1 : ee, R = e5(E), Y = Ql(D), V = 2 * Y;
|
|
2896
|
-
return N = V *
|
|
2896
|
+
return N = V * mi(R / 3) - d / 3, B = V * mi((R + Pd) / 3) - d / 3, X = V * mi((R + 2 * Pd) / 3) - d / 3, [N, B, X].filter(o);
|
|
2897
2897
|
} else {
|
|
2898
2898
|
if (w === 0)
|
|
2899
2899
|
return M = b < 0 ? Ql(-b) : -Ql(b), N = 2 * M - d / 3, B = -M - d / 3, [N, B].filter(o);
|
|
@@ -2985,9 +2985,9 @@ const ym = Math.PI, vd = 2 * ym, ta = ym / 2, t5 = 1e-6, Of = Number.MAX_SAFE_IN
|
|
|
2985
2985
|
})), d;
|
|
2986
2986
|
},
|
|
2987
2987
|
getccenter: function(c, n, e) {
|
|
2988
|
-
const r = n.x - c.x, o = n.y - c.y, s = e.x - n.x, i = e.y - n.y, a = r *
|
|
2988
|
+
const r = n.x - c.x, o = n.y - c.y, s = e.x - n.x, i = e.y - n.y, a = r * mi(ta) - o * Hc(ta), l = r * Hc(ta) + o * mi(ta), h = s * mi(ta) - i * Hc(ta), d = s * Hc(ta) + i * mi(ta), u = (c.x + n.x) / 2, f = (c.y + n.y) / 2, p = (n.x + e.x) / 2, g = (n.y + e.y) / 2, y = u + a, b = f + l, w = p + h, M = g + d, T = rt.lli8(u, f, y, b, p, g, w, M), N = rt.dist(T, c);
|
|
2989
2989
|
let B = Kl(c.y - T.y, c.x - T.x), X = Kl(n.y - T.y, n.x - T.x), $ = Kl(e.y - T.y, e.x - T.x), H;
|
|
2990
|
-
return B < $ ? ((B > X || X > $) && (B +=
|
|
2990
|
+
return B < $ ? ((B > X || X > $) && (B += Pd), B > $ && (H = $, $ = B, B = H)) : $ < X && X < B ? (H = $, $ = B, B = H) : $ += Pd, T.s = B, T.e = $, T.r = N, T;
|
|
2991
2991
|
},
|
|
2992
2992
|
numberSort: function(c, n) {
|
|
2993
2993
|
return c - n;
|
|
@@ -3668,8 +3668,8 @@ class $a extends tr {
|
|
|
3668
3668
|
r !== void 0 && (this.children = r);
|
|
3669
3669
|
}
|
|
3670
3670
|
}
|
|
3671
|
-
var Bn = /* @__PURE__ */ ((c) => (c.LeftRight = "leftRight", c.TopBottom = "topBottom", c.Left = "left", c.Right = "right", c.Top = "top", c.Bottom = "bottom", c))(Bn || {}),
|
|
3672
|
-
class
|
|
3671
|
+
var Bn = /* @__PURE__ */ ((c) => (c.LeftRight = "leftRight", c.TopBottom = "topBottom", c.Left = "left", c.Right = "right", c.Top = "top", c.Bottom = "bottom", c))(Bn || {}), ru = /* @__PURE__ */ ((c) => (c[c.Straight = 0] = "Straight", c[c.Rounded = 1] = "Rounded", c))(ru || {});
|
|
3672
|
+
class Ai extends tr {
|
|
3673
3673
|
constructor() {
|
|
3674
3674
|
super(...arguments);
|
|
3675
3675
|
m(this, "type", L.MindMap);
|
|
@@ -3680,7 +3680,7 @@ class ki extends tr {
|
|
|
3680
3680
|
m(this, "subChildren", []);
|
|
3681
3681
|
// 是否折叠状态(true 为折叠,false 为展开)
|
|
3682
3682
|
m(this, "collapse", !1);
|
|
3683
|
-
m(this, "lineStyleType",
|
|
3683
|
+
m(this, "lineStyleType", ru.Rounded);
|
|
3684
3684
|
/**
|
|
3685
3685
|
* 排布类型,默认为左右布局
|
|
3686
3686
|
*/
|
|
@@ -3690,14 +3690,14 @@ class ki extends tr {
|
|
|
3690
3690
|
* 创建 MindMapProps 实例(支持部分更新)
|
|
3691
3691
|
*/
|
|
3692
3692
|
static create(e) {
|
|
3693
|
-
const r = new
|
|
3693
|
+
const r = new Ai();
|
|
3694
3694
|
return r.update(e), r;
|
|
3695
3695
|
}
|
|
3696
3696
|
/**
|
|
3697
3697
|
* 从接口创建实例(用于反序列化)
|
|
3698
3698
|
*/
|
|
3699
3699
|
static from(e) {
|
|
3700
|
-
const r = new
|
|
3700
|
+
const r = new Ai();
|
|
3701
3701
|
return e.children && (r.children = [...e.children]), e.subChildren && (r.subChildren = [...e.subChildren]), r.collapse = e.collapse, r.layoutType = e.layoutType, r.lineStyleType = e.lineStyleType, r;
|
|
3702
3702
|
}
|
|
3703
3703
|
/**
|
|
@@ -3711,7 +3711,7 @@ class ki extends tr {
|
|
|
3711
3711
|
* 克隆属性(深拷贝)
|
|
3712
3712
|
*/
|
|
3713
3713
|
clone() {
|
|
3714
|
-
const e = new
|
|
3714
|
+
const e = new Ai();
|
|
3715
3715
|
return e.children = [...this.children], e.subChildren = [...this.subChildren], e.collapse = this.collapse, e.layoutType = this.layoutType, e.lineStyleType = this.lineStyleType, e;
|
|
3716
3716
|
}
|
|
3717
3717
|
}
|
|
@@ -3728,7 +3728,7 @@ class xm {
|
|
|
3728
3728
|
s.type === v.Line && this.collectNodeLinks(s, e, r);
|
|
3729
3729
|
}
|
|
3730
3730
|
}
|
|
3731
|
-
const
|
|
3731
|
+
const vd = 8;
|
|
3732
3732
|
class ha extends tr {
|
|
3733
3733
|
constructor() {
|
|
3734
3734
|
super(...arguments);
|
|
@@ -3917,7 +3917,7 @@ class Ya extends tr {
|
|
|
3917
3917
|
r !== void 0 && (this.endAngle = r), o !== void 0 && (this.innerRadius = o), s !== void 0 && (this.startAngle = s);
|
|
3918
3918
|
}
|
|
3919
3919
|
}
|
|
3920
|
-
class
|
|
3920
|
+
class ki extends tr {
|
|
3921
3921
|
constructor() {
|
|
3922
3922
|
super(...arguments);
|
|
3923
3923
|
m(this, "type", L.Formula);
|
|
@@ -3928,15 +3928,15 @@ class Bi extends tr {
|
|
|
3928
3928
|
m(this, "backgroundNoFill", !0);
|
|
3929
3929
|
}
|
|
3930
3930
|
static from(e) {
|
|
3931
|
-
const r = new
|
|
3931
|
+
const r = new ki();
|
|
3932
3932
|
return r.formula = e.formula, r.fontColor = e.fontColor ?? r.fontColor, r.fontColorNoFill = e.fontColorNoFill ?? r.fontColorNoFill, r.backgroundColor = e.backgroundColor ?? r.backgroundColor, r.backgroundNoFill = e.backgroundNoFill ?? r.backgroundNoFill, r;
|
|
3933
3933
|
}
|
|
3934
3934
|
static create(e) {
|
|
3935
|
-
const r = new
|
|
3935
|
+
const r = new ki();
|
|
3936
3936
|
return r.update(e), r;
|
|
3937
3937
|
}
|
|
3938
3938
|
clone() {
|
|
3939
|
-
const e = new
|
|
3939
|
+
const e = new ki();
|
|
3940
3940
|
return e.formula = this.formula, e.fontColor = this.fontColor, e.fontColorNoFill = this.fontColorNoFill, e.backgroundColor = this.backgroundColor, e.backgroundNoFill = this.backgroundNoFill, e;
|
|
3941
3941
|
}
|
|
3942
3942
|
update(e) {
|
|
@@ -4086,7 +4086,7 @@ class C {
|
|
|
4086
4086
|
mermaidProps: ee,
|
|
4087
4087
|
paintProps: E
|
|
4088
4088
|
} = n;
|
|
4089
|
-
return o && e.push(vt.from(o)), i && e.push(an.from(i)), a && e.push(qt.from(a)), r && e.push(Ze.from(r)), s && e.push(Ht.from(s)), l && e.push(mr.from(l)), h && e.push(Qs.from(h)), d && e.push(Is.from(d)), u && e.push(ya.from(u)), f && e.push(ll.from(f)), p && e.push(Ph.from(p)), g && e.push(Za.from(g)), y && e.push(ei.from(y)), b && e.push(tl.from(b)), w && e.push(Bo.from(w)), M && e.push(Ko.from(M)), T && e.push(Eo.from(T)), N && e.push($a.from(N)), B && e.push(
|
|
4089
|
+
return o && e.push(vt.from(o)), i && e.push(an.from(i)), a && e.push(qt.from(a)), r && e.push(Ze.from(r)), s && e.push(Ht.from(s)), l && e.push(mr.from(l)), h && e.push(Qs.from(h)), d && e.push(Is.from(d)), u && e.push(ya.from(u)), f && e.push(ll.from(f)), p && e.push(Ph.from(p)), g && e.push(Za.from(g)), y && e.push(ei.from(y)), b && e.push(tl.from(b)), w && e.push(Bo.from(w)), M && e.push(Ko.from(M)), T && e.push(Eo.from(T)), N && e.push($a.from(N)), B && e.push(Ai.from(B)), X && e.push(ha.from(X)), $ && e.push(Jn.from($)), H && e.push(Ya.from(H)), D && e.push(ki.from(D)), ee && e.push(ga.from(ee)), E && e.push(nl.from(E)), e;
|
|
4090
4090
|
}
|
|
4091
4091
|
/**
|
|
4092
4092
|
* 获取中心点
|
|
@@ -4451,7 +4451,7 @@ class C {
|
|
|
4451
4451
|
for (let o = 0; o < n.length - 2; o = o + 1) {
|
|
4452
4452
|
const s = r, i = n[o + 1], a = n[o + 2];
|
|
4453
4453
|
if (C.judgeHorizon(s, i)) {
|
|
4454
|
-
const h = 0.5 * Math.abs(s.x - i.x), d = 0.5 * Math.abs(i.y - a.y), u = h > d ? d : h, f =
|
|
4454
|
+
const h = 0.5 * Math.abs(s.x - i.x), d = 0.5 * Math.abs(i.y - a.y), u = h > d ? d : h, f = vd < u ? vd : u, p = f, g = i.x > s.x ? 1 : -1, y = a.y > i.y ? 1 : -1;
|
|
4455
4455
|
r = new k(i.x, i.y + y * p);
|
|
4456
4456
|
const b = {
|
|
4457
4457
|
p0: s,
|
|
@@ -4464,7 +4464,7 @@ class C {
|
|
|
4464
4464
|
};
|
|
4465
4465
|
e.push(b);
|
|
4466
4466
|
} else {
|
|
4467
|
-
const h = 0.5 * Math.abs(s.y - i.y), d = 0.5 * Math.abs(i.x - a.x), u = h > d ? d : h, f =
|
|
4467
|
+
const h = 0.5 * Math.abs(s.y - i.y), d = 0.5 * Math.abs(i.x - a.x), u = h > d ? d : h, f = vd < u ? vd : u, p = f, g = i.y > s.y ? 1 : -1, y = a.x > i.x ? 1 : -1;
|
|
4468
4468
|
r = new k(i.x + y * p, i.y);
|
|
4469
4469
|
const b = {
|
|
4470
4470
|
p0: s,
|
|
@@ -4822,16 +4822,16 @@ class C {
|
|
|
4822
4822
|
static computeRotateDeltaAngle(n) {
|
|
4823
4823
|
let e = 0;
|
|
4824
4824
|
switch (n) {
|
|
4825
|
-
case
|
|
4825
|
+
case Ci.BOTTOM_LEFT:
|
|
4826
4826
|
e = 90;
|
|
4827
4827
|
break;
|
|
4828
|
-
case
|
|
4828
|
+
case Ci.BOTTOM_RIGHT:
|
|
4829
4829
|
e = 0;
|
|
4830
4830
|
break;
|
|
4831
|
-
case
|
|
4831
|
+
case Ci.TOP_LEFT:
|
|
4832
4832
|
e = 180;
|
|
4833
4833
|
break;
|
|
4834
|
-
case
|
|
4834
|
+
case Ci.TOP_RIGHT:
|
|
4835
4835
|
e = -90;
|
|
4836
4836
|
break;
|
|
4837
4837
|
}
|
|
@@ -7461,7 +7461,7 @@ class d5 {
|
|
|
7461
7461
|
}
|
|
7462
7462
|
}
|
|
7463
7463
|
const Oa = Math.PI * 0.5, mm = new qa();
|
|
7464
|
-
function
|
|
7464
|
+
function wi(c, n) {
|
|
7465
7465
|
const e = [];
|
|
7466
7466
|
for (const [r, o] of c) {
|
|
7467
7467
|
let s = null;
|
|
@@ -7544,7 +7544,7 @@ class Je {
|
|
|
7544
7544
|
this.name = n, this.args = e;
|
|
7545
7545
|
}
|
|
7546
7546
|
static arc(...n) {
|
|
7547
|
-
const r =
|
|
7547
|
+
const r = wi([
|
|
7548
7548
|
[["center", ["centerX", "centerY"], ["cx", "cy"]], "Point2D"],
|
|
7549
7549
|
[["radiusX", "rx"], "Number"],
|
|
7550
7550
|
[["radiusY", "ry"], "Number"],
|
|
@@ -7554,7 +7554,7 @@ class Je {
|
|
|
7554
7554
|
return new Je(Je.ARC, r);
|
|
7555
7555
|
}
|
|
7556
7556
|
static quadraticBezier(...n) {
|
|
7557
|
-
const r =
|
|
7557
|
+
const r = wi([
|
|
7558
7558
|
[["p1", ["p1x", "p1y"]], "Point2D"],
|
|
7559
7559
|
[["p2", ["p2x", "p2y"]], "Point2D"],
|
|
7560
7560
|
[["p3", ["p3x", "p3y"]], "Point2D"]
|
|
@@ -7562,7 +7562,7 @@ class Je {
|
|
|
7562
7562
|
return new Je(Je.QUADRATIC_BEZIER, r);
|
|
7563
7563
|
}
|
|
7564
7564
|
static cubicBezier(...n) {
|
|
7565
|
-
const r =
|
|
7565
|
+
const r = wi([
|
|
7566
7566
|
[["p1", ["p1x", "p1y"]], "Point2D"],
|
|
7567
7567
|
[["p2", ["p2x", "p2y"]], "Point2D"],
|
|
7568
7568
|
[["p3", ["p3x", "p3y"]], "Point2D"],
|
|
@@ -7571,14 +7571,14 @@ class Je {
|
|
|
7571
7571
|
return new Je(Je.CUBIC_BEZIER, r);
|
|
7572
7572
|
}
|
|
7573
7573
|
static circle(...n) {
|
|
7574
|
-
const r =
|
|
7574
|
+
const r = wi([
|
|
7575
7575
|
[["center", ["centerX", "centerY"], ["cx", "cy"]], "Point2D"],
|
|
7576
7576
|
[["radius", "r"], "Number"]
|
|
7577
7577
|
], n);
|
|
7578
7578
|
return new Je(Je.CIRCLE, r);
|
|
7579
7579
|
}
|
|
7580
7580
|
static ellipse(...n) {
|
|
7581
|
-
const r =
|
|
7581
|
+
const r = wi([
|
|
7582
7582
|
[["center", ["centerX", "centerY"], ["cx", "cy"]], "Point2D"],
|
|
7583
7583
|
[["radiusX", "rx"], "Number"],
|
|
7584
7584
|
[["radiusY", "ry"], "Number"]
|
|
@@ -7586,7 +7586,7 @@ class Je {
|
|
|
7586
7586
|
return new Je(Je.ELLIPSE, r);
|
|
7587
7587
|
}
|
|
7588
7588
|
static line(...n) {
|
|
7589
|
-
const r =
|
|
7589
|
+
const r = wi([
|
|
7590
7590
|
[["p1", ["p1x", "p1y"], ["x1", "y1"]], "Point2D"],
|
|
7591
7591
|
[["p2", ["p2x", "p2y"], ["x2", "y2"]], "Point2D"]
|
|
7592
7592
|
], n);
|
|
@@ -7596,7 +7596,7 @@ class Je {
|
|
|
7596
7596
|
return mm.parseData(n[0]), new Je(Je.PATH, wm.shapes);
|
|
7597
7597
|
}
|
|
7598
7598
|
static polygon(...n) {
|
|
7599
|
-
const r =
|
|
7599
|
+
const r = wi(
|
|
7600
7600
|
[
|
|
7601
7601
|
[[], "Array<Point2D>"]
|
|
7602
7602
|
],
|
|
@@ -7605,7 +7605,7 @@ class Je {
|
|
|
7605
7605
|
return new Je(Je.POLYGON, r);
|
|
7606
7606
|
}
|
|
7607
7607
|
static polyline(...n) {
|
|
7608
|
-
const r =
|
|
7608
|
+
const r = wi(
|
|
7609
7609
|
[
|
|
7610
7610
|
[[], "Array<Point2D>"]
|
|
7611
7611
|
],
|
|
@@ -7614,7 +7614,7 @@ class Je {
|
|
|
7614
7614
|
return new Je(Je.POLYLINE, r);
|
|
7615
7615
|
}
|
|
7616
7616
|
static rectangle(...n) {
|
|
7617
|
-
const r =
|
|
7617
|
+
const r = wi([
|
|
7618
7618
|
[["topLeft", ["x", "y"], ["left", "top"]], "Point2D"],
|
|
7619
7619
|
[["size", ["width", "height"], ["w", "h"]], "Point2D"],
|
|
7620
7620
|
[["radiusX", "rx"], "Optional<Number>"],
|
|
@@ -7681,7 +7681,7 @@ function g5(c, n, e, r, o, s) {
|
|
|
7681
7681
|
}
|
|
7682
7682
|
return i.points.length > 0 && (i.status = "Intersection"), i;
|
|
7683
7683
|
}
|
|
7684
|
-
function
|
|
7684
|
+
function bi(c) {
|
|
7685
7685
|
const n = c.slice();
|
|
7686
7686
|
return n.push(c[0]), n;
|
|
7687
7687
|
}
|
|
@@ -7953,7 +7953,7 @@ class ze {
|
|
|
7953
7953
|
* @returns {module:kld-intersections.Intersection}
|
|
7954
7954
|
*/
|
|
7955
7955
|
static intersectBezier2Polygon(n, e, r, o) {
|
|
7956
|
-
return ze.intersectBezier2Polyline(n, e, r,
|
|
7956
|
+
return ze.intersectBezier2Polyline(n, e, r, bi(o));
|
|
7957
7957
|
}
|
|
7958
7958
|
/**
|
|
7959
7959
|
* intersectBezier2Polyline
|
|
@@ -8159,7 +8159,7 @@ class ze {
|
|
|
8159
8159
|
* @returns {module:kld-intersections.Intersection}
|
|
8160
8160
|
*/
|
|
8161
8161
|
static intersectBezier3Polygon(n, e, r, o, s) {
|
|
8162
|
-
return ze.intersectBezier3Polyline(n, e, r, o,
|
|
8162
|
+
return ze.intersectBezier3Polyline(n, e, r, o, bi(s));
|
|
8163
8163
|
}
|
|
8164
8164
|
/**
|
|
8165
8165
|
* intersectBezier3Polyline
|
|
@@ -8271,7 +8271,7 @@ class ze {
|
|
|
8271
8271
|
* @returns {module:kld-intersections.Intersection}
|
|
8272
8272
|
*/
|
|
8273
8273
|
static intersectCirclePolygon(n, e, r) {
|
|
8274
|
-
return ze.intersectCirclePolyline(n, e,
|
|
8274
|
+
return ze.intersectCirclePolyline(n, e, bi(r));
|
|
8275
8275
|
}
|
|
8276
8276
|
/**
|
|
8277
8277
|
* intersectCirclePolyline
|
|
@@ -8387,7 +8387,7 @@ class ze {
|
|
|
8387
8387
|
* @returns {module:kld-intersections.Intersection}
|
|
8388
8388
|
*/
|
|
8389
8389
|
static intersectEllipsePolygon(n, e, r, o) {
|
|
8390
|
-
return ze.intersectEllipsePolyline(n, e, r,
|
|
8390
|
+
return ze.intersectEllipsePolyline(n, e, r, bi(o));
|
|
8391
8391
|
}
|
|
8392
8392
|
/**
|
|
8393
8393
|
* intersectEllipsePolyline
|
|
@@ -8452,7 +8452,7 @@ class ze {
|
|
|
8452
8452
|
* @returns {module:kld-intersections.Intersection}
|
|
8453
8453
|
*/
|
|
8454
8454
|
static intersectLinePolygon(n, e, r) {
|
|
8455
|
-
return ze.intersectLinePolyline(n, e,
|
|
8455
|
+
return ze.intersectLinePolyline(n, e, bi(r));
|
|
8456
8456
|
}
|
|
8457
8457
|
/**
|
|
8458
8458
|
* intersectLinePolyline
|
|
@@ -8491,7 +8491,7 @@ class ze {
|
|
|
8491
8491
|
* @returns {module:kld-intersections.Intersection}
|
|
8492
8492
|
*/
|
|
8493
8493
|
static intersectPolygonPolygon(n, e) {
|
|
8494
|
-
return ze.intersectPolylinePolyline(
|
|
8494
|
+
return ze.intersectPolylinePolyline(bi(n), bi(e));
|
|
8495
8495
|
}
|
|
8496
8496
|
/**
|
|
8497
8497
|
* intersectPolygonPolyline
|
|
@@ -8501,7 +8501,7 @@ class ze {
|
|
|
8501
8501
|
* @returns {module:kld-intersections.Intersection}
|
|
8502
8502
|
*/
|
|
8503
8503
|
static intersectPolygonPolyline(n, e) {
|
|
8504
|
-
return ze.intersectPolylinePolyline(
|
|
8504
|
+
return ze.intersectPolylinePolyline(bi(n), e);
|
|
8505
8505
|
}
|
|
8506
8506
|
/**
|
|
8507
8507
|
* intersectPolygonRectangle
|
|
@@ -8512,7 +8512,7 @@ class ze {
|
|
|
8512
8512
|
* @returns {module:kld-intersections.Intersection}
|
|
8513
8513
|
*/
|
|
8514
8514
|
static intersectPolygonRectangle(n, e, r) {
|
|
8515
|
-
return ze.intersectPolylineRectangle(
|
|
8515
|
+
return ze.intersectPolylineRectangle(bi(n), e, r);
|
|
8516
8516
|
}
|
|
8517
8517
|
/**
|
|
8518
8518
|
* intersectPolylinePolyline
|
|
@@ -8594,19 +8594,19 @@ class ze {
|
|
|
8594
8594
|
this.points = this.points.concat(n);
|
|
8595
8595
|
}
|
|
8596
8596
|
}
|
|
8597
|
-
const
|
|
8597
|
+
const Sd = [], sg = {
|
|
8598
8598
|
/** 每次 SVG 产出前清空,保证只采集本次导出。 */
|
|
8599
8599
|
reset() {
|
|
8600
|
-
|
|
8600
|
+
Sd.length = 0;
|
|
8601
8601
|
},
|
|
8602
8602
|
/** 记录一次图片导出失败。 */
|
|
8603
8603
|
report(c) {
|
|
8604
|
-
|
|
8604
|
+
Sd.push(c);
|
|
8605
8605
|
},
|
|
8606
8606
|
/** 返回并清空已采集的失败列表。 */
|
|
8607
8607
|
drain() {
|
|
8608
|
-
const c =
|
|
8609
|
-
return
|
|
8608
|
+
const c = Sd.slice();
|
|
8609
|
+
return Sd.length = 0, c;
|
|
8610
8610
|
}
|
|
8611
8611
|
};
|
|
8612
8612
|
class Fi extends As {
|
|
@@ -9513,7 +9513,7 @@ class b5 {
|
|
|
9513
9513
|
}
|
|
9514
9514
|
}
|
|
9515
9515
|
var w8 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
9516
|
-
function
|
|
9516
|
+
function Ah(c) {
|
|
9517
9517
|
return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
|
|
9518
9518
|
}
|
|
9519
9519
|
function b8(c) {
|
|
@@ -9705,7 +9705,7 @@ const N5 = new Uint8Array(new Uint32Array([305419896]).buffer)[0] === 18, z0 = (
|
|
|
9705
9705
|
var B5 = {
|
|
9706
9706
|
swap32LE: k5
|
|
9707
9707
|
};
|
|
9708
|
-
const W0 = T5, { swap32LE: E5 } = B5, lg = 11, Va = 5, R5 = lg - Va, F5 = 65536 >> lg, D5 = 1 << R5, _5 = D5 - 1,
|
|
9708
|
+
const W0 = T5, { swap32LE: E5 } = B5, lg = 11, Va = 5, R5 = lg - Va, F5 = 65536 >> lg, D5 = 1 << R5, _5 = D5 - 1, $d = 2, O5 = 1 << Va, Xf = O5 - 1, Tm = 65536 >> Va, H5 = 1024 >> Va, z5 = Tm + H5, W5 = z5, X5 = 32, j5 = W5 + X5, G5 = 1 << $d;
|
|
9709
9709
|
class U5 {
|
|
9710
9710
|
constructor(n) {
|
|
9711
9711
|
const e = typeof n.readUInt32BE == "function" && typeof n.slice == "function";
|
|
@@ -9723,11 +9723,11 @@ class U5 {
|
|
|
9723
9723
|
}
|
|
9724
9724
|
get(n) {
|
|
9725
9725
|
let e;
|
|
9726
|
-
return n < 0 || n > 1114111 ? this.errorValue : n < 55296 || n > 56319 && n <= 65535 ? (e = (this.data[n >> Va] <<
|
|
9726
|
+
return n < 0 || n > 1114111 ? this.errorValue : n < 55296 || n > 56319 && n <= 65535 ? (e = (this.data[n >> Va] << $d) + (n & Xf), this.data[e]) : n <= 65535 ? (e = (this.data[Tm + (n - 55296 >> Va)] << $d) + (n & Xf), this.data[e]) : n < this.highStart ? (e = this.data[j5 - F5 + (n >> lg)], e = this.data[e + (n >> Va & _5)], e = (e << $d) + (n & Xf), this.data[e]) : this.data[this.data.length - G5];
|
|
9727
9727
|
}
|
|
9728
9728
|
}
|
|
9729
9729
|
var $5 = U5;
|
|
9730
|
-
const Y5 = /* @__PURE__ */
|
|
9730
|
+
const Y5 = /* @__PURE__ */ Ah($5);
|
|
9731
9731
|
var Nm = {};
|
|
9732
9732
|
(function(c) {
|
|
9733
9733
|
var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
@@ -9785,9 +9785,9 @@ var Nm = {};
|
|
|
9785
9785
|
e.toByteArray = f, e.fromByteArray = p;
|
|
9786
9786
|
})(c);
|
|
9787
9787
|
})(Nm);
|
|
9788
|
-
const q5 = /* @__PURE__ */
|
|
9788
|
+
const q5 = /* @__PURE__ */ Ah(Nm);
|
|
9789
9789
|
var Am = {};
|
|
9790
|
-
const V5 = 5, X0 = 12, K5 = 13, Q5 = 16, Z5 = 17, J5 = 22, j0 = 28, G0 = 31, ev = 33,
|
|
9790
|
+
const V5 = 5, X0 = 12, K5 = 13, Q5 = 16, Z5 = 17, J5 = 22, j0 = 28, G0 = 31, ev = 33, Yd = 34, tv = 35, jf = 36, Ep = 37, km = 38, nv = 39, rv = 40, hh = 41, ov = 42, F = 0, G = 1, Ln = 2, Bm = 3, ae = 4, sv = [
|
|
9791
9791
|
//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
|
|
9792
9792
|
[
|
|
9793
9793
|
ae,
|
|
@@ -10962,7 +10962,7 @@ const V5 = 5, X0 = 12, K5 = 13, Q5 = 16, Z5 = 17, J5 = 22, j0 = 28, G0 = 31, ev
|
|
|
10962
10962
|
switch (c) {
|
|
10963
10963
|
case Ep:
|
|
10964
10964
|
case km:
|
|
10965
|
-
return
|
|
10965
|
+
return Yd;
|
|
10966
10966
|
case hh:
|
|
10967
10967
|
return J5;
|
|
10968
10968
|
default:
|
|
@@ -10986,10 +10986,10 @@ class cv {
|
|
|
10986
10986
|
switch (this.nextClass) {
|
|
10987
10987
|
case hh:
|
|
10988
10988
|
return !1;
|
|
10989
|
-
case
|
|
10989
|
+
case Yd:
|
|
10990
10990
|
case Ep:
|
|
10991
10991
|
case km:
|
|
10992
|
-
return this.curClass =
|
|
10992
|
+
return this.curClass = Yd, !1;
|
|
10993
10993
|
case jf:
|
|
10994
10994
|
return this.curClass = jf, !1;
|
|
10995
10995
|
}
|
|
@@ -11022,7 +11022,7 @@ class cv {
|
|
|
11022
11022
|
for (; this.pos < this.string.length; ) {
|
|
11023
11023
|
this.lastPos = this.pos;
|
|
11024
11024
|
const n = this.nextClass;
|
|
11025
|
-
if (this.nextClass = this.nextCharClass(), this.curClass ===
|
|
11025
|
+
if (this.nextClass = this.nextCharClass(), this.curClass === Yd || this.curClass === jf && this.nextClass !== Ep)
|
|
11026
11026
|
return this.curClass = $0(U0(this.nextClass)), new Gf(this.lastPos, !0);
|
|
11027
11027
|
let e = this.getSimpleBreak();
|
|
11028
11028
|
if (e === null && (e = this.getPairTableBreak(n)), this.LB8a = this.nextClass === G0, e) return new Gf(this.lastPos);
|
|
@@ -12101,7 +12101,7 @@ class hc {
|
|
|
12101
12101
|
return xv([r, n, b, w]) ? { lP: b, midPoint: e, rP: w } : { lP: w, midPoint: e, rP: b };
|
|
12102
12102
|
}
|
|
12103
12103
|
}
|
|
12104
|
-
class
|
|
12104
|
+
class Bi extends Iu {
|
|
12105
12105
|
constructor() {
|
|
12106
12106
|
super(...arguments);
|
|
12107
12107
|
m(this, "bezierWorker", new hc());
|
|
@@ -12160,7 +12160,7 @@ class Ei extends Iu {
|
|
|
12160
12160
|
return !o && !s ? this.computeLinePoints(e.point, r.point) : this.bezierWorker.computeCurvePoints([e.point, r.point], o, s);
|
|
12161
12161
|
}
|
|
12162
12162
|
}
|
|
12163
|
-
class
|
|
12163
|
+
class kh {
|
|
12164
12164
|
constructor(n) {
|
|
12165
12165
|
m(this, "startPoint");
|
|
12166
12166
|
this.startPoint = n;
|
|
@@ -12196,7 +12196,7 @@ class ve {
|
|
|
12196
12196
|
return [n, o, e];
|
|
12197
12197
|
}
|
|
12198
12198
|
}
|
|
12199
|
-
class mv extends
|
|
12199
|
+
class mv extends kh {
|
|
12200
12200
|
constructor(e, r) {
|
|
12201
12201
|
super(e);
|
|
12202
12202
|
m(this, "rect");
|
|
@@ -12355,7 +12355,7 @@ class mv extends Bh {
|
|
|
12355
12355
|
return s.shift(), [...o, ...s];
|
|
12356
12356
|
}
|
|
12357
12357
|
}
|
|
12358
|
-
class V0 extends
|
|
12358
|
+
class V0 extends kh {
|
|
12359
12359
|
bottom(n, e) {
|
|
12360
12360
|
const r = this.startPoint;
|
|
12361
12361
|
if (n.y < r.y)
|
|
@@ -12420,7 +12420,7 @@ class V0 extends Bh {
|
|
|
12420
12420
|
return [...ve.computeLLinePoints(r, o, !0), n];
|
|
12421
12421
|
}
|
|
12422
12422
|
}
|
|
12423
|
-
class wv extends
|
|
12423
|
+
class wv extends kh {
|
|
12424
12424
|
constructor(e, r) {
|
|
12425
12425
|
super(e);
|
|
12426
12426
|
m(this, "rect");
|
|
@@ -12544,7 +12544,7 @@ class wv extends Bh {
|
|
|
12544
12544
|
return l.shift(), [...a, ...l, e];
|
|
12545
12545
|
}
|
|
12546
12546
|
}
|
|
12547
|
-
class bv extends
|
|
12547
|
+
class bv extends kh {
|
|
12548
12548
|
constructor(e, r) {
|
|
12549
12549
|
super(e);
|
|
12550
12550
|
m(this, "rect");
|
|
@@ -12646,7 +12646,7 @@ class bv extends Bh {
|
|
|
12646
12646
|
return l.shift(), [...a, ...l];
|
|
12647
12647
|
}
|
|
12648
12648
|
}
|
|
12649
|
-
class Pv extends
|
|
12649
|
+
class Pv extends kh {
|
|
12650
12650
|
constructor(e, r) {
|
|
12651
12651
|
super(e);
|
|
12652
12652
|
m(this, "rect");
|
|
@@ -14100,7 +14100,7 @@ class zv extends Fn {
|
|
|
14100
14100
|
return y ? (this.result = y, !0) : (this.result = p, !0);
|
|
14101
14101
|
}
|
|
14102
14102
|
}
|
|
14103
|
-
const
|
|
14103
|
+
const Mi = class Mi extends Fn {
|
|
14104
14104
|
computeLocalPoint(n, e, r) {
|
|
14105
14105
|
if (n.length === 1) {
|
|
14106
14106
|
const a = n[0];
|
|
@@ -14108,7 +14108,7 @@ const Ii = class Ii extends Fn {
|
|
|
14108
14108
|
const u = a;
|
|
14109
14109
|
if (!u.renderText.isEmptyText()) {
|
|
14110
14110
|
const p = u.getTextContentRect().clone(), g = u.toLocal(e.globalPoint);
|
|
14111
|
-
return p.x -=
|
|
14111
|
+
return p.x -= Mi.LINE_TEXT_HIGHLIGHT_PADDING, p.y -= Mi.LINE_TEXT_HIGHLIGHT_PADDING, p.width += 2 * Mi.LINE_TEXT_HIGHLIGHT_PADDING, p.height += 2 * Mi.LINE_TEXT_HIGHLIGHT_PADDING, {
|
|
14112
14112
|
localPoint: g,
|
|
14113
14113
|
rect: p,
|
|
14114
14114
|
isLineTextRect: !0
|
|
@@ -14125,7 +14125,7 @@ const Ii = class Ii extends Fn {
|
|
|
14125
14125
|
const r = e.auxiliaryManager.selectManager.selectNodes;
|
|
14126
14126
|
if (r.size === 0 || e.detect(Ie.ExpandShape, n))
|
|
14127
14127
|
return !1;
|
|
14128
|
-
const s = Ls.flattenNodes([...r]), i = e.gmlRender.getScale(), a =
|
|
14128
|
+
const s = Ls.flattenNodes([...r]), i = e.gmlRender.getScale(), a = Mi.HOT_DISTANCE / i, { rect: l, localPoint: h, isLineTextRect: d } = this.computeLocalPoint(s, n, e), u = d ? l : new Ne(0, 0, l.width, l.height), f = C.detectRectBounds(u, h, a);
|
|
14129
14129
|
return !f || d && f.type !== He.LEFT && f.type !== He.RIGHT ? !1 : (this.result = {
|
|
14130
14130
|
nodes: s,
|
|
14131
14131
|
type: f.type,
|
|
@@ -14135,9 +14135,9 @@ const Ii = class Ii extends Fn {
|
|
|
14135
14135
|
}, !0);
|
|
14136
14136
|
}
|
|
14137
14137
|
};
|
|
14138
|
-
m(
|
|
14139
|
-
m(
|
|
14140
|
-
let Dp =
|
|
14138
|
+
m(Mi, "HOT_DISTANCE", 8), // 改动目的:检测热区和选中高亮框保持一致,让鼠标靠近文本框边缘就能进入拉伸态。
|
|
14139
|
+
m(Mi, "LINE_TEXT_HIGHLIGHT_PADDING", 2);
|
|
14140
|
+
let Dp = Mi;
|
|
14141
14141
|
class Wv extends fr {
|
|
14142
14142
|
constructor() {
|
|
14143
14143
|
super(...arguments);
|
|
@@ -14191,9 +14191,9 @@ class Kr {
|
|
|
14191
14191
|
}
|
|
14192
14192
|
}
|
|
14193
14193
|
}
|
|
14194
|
-
class
|
|
14194
|
+
class ni {
|
|
14195
14195
|
}
|
|
14196
|
-
class jv extends
|
|
14196
|
+
class jv extends ni {
|
|
14197
14197
|
enable(n) {
|
|
14198
14198
|
return !(!(n instanceof Fi) || n.cropProps.cropType === Rr.None || !n.cropProps.cropInfo);
|
|
14199
14199
|
}
|
|
@@ -14220,7 +14220,7 @@ class jv extends ri {
|
|
|
14220
14220
|
};
|
|
14221
14221
|
}
|
|
14222
14222
|
}
|
|
14223
|
-
class Qo extends
|
|
14223
|
+
class Qo extends ni {
|
|
14224
14224
|
enable(n) {
|
|
14225
14225
|
return n.type === v.Line;
|
|
14226
14226
|
}
|
|
@@ -14610,7 +14610,7 @@ class dg extends fr {
|
|
|
14610
14610
|
a.type === v.Line && this.collectNodeLinks(a, r, o, s);
|
|
14611
14611
|
}
|
|
14612
14612
|
}
|
|
14613
|
-
class Hm extends
|
|
14613
|
+
class Hm extends ni {
|
|
14614
14614
|
enable(n) {
|
|
14615
14615
|
return n.type === v.Section;
|
|
14616
14616
|
}
|
|
@@ -14681,7 +14681,7 @@ class Hm extends ri {
|
|
|
14681
14681
|
this.collectSectionChild(r, e);
|
|
14682
14682
|
}
|
|
14683
14683
|
}
|
|
14684
|
-
class zm extends
|
|
14684
|
+
class zm extends ni {
|
|
14685
14685
|
enable(n) {
|
|
14686
14686
|
return !0;
|
|
14687
14687
|
}
|
|
@@ -14721,7 +14721,7 @@ class zm extends ri {
|
|
|
14721
14721
|
];
|
|
14722
14722
|
}
|
|
14723
14723
|
}
|
|
14724
|
-
class Wm extends
|
|
14724
|
+
class Wm extends ni {
|
|
14725
14725
|
enable(n) {
|
|
14726
14726
|
return n.type !== v.Shape ? !1 : n.shapeType === je.PureText;
|
|
14727
14727
|
}
|
|
@@ -14750,7 +14750,7 @@ class Wm extends ri {
|
|
|
14750
14750
|
];
|
|
14751
14751
|
}
|
|
14752
14752
|
}
|
|
14753
|
-
class Xm extends
|
|
14753
|
+
class Xm extends ni {
|
|
14754
14754
|
enable(n) {
|
|
14755
14755
|
return n.type === v.CheckboxText;
|
|
14756
14756
|
}
|
|
@@ -14784,7 +14784,7 @@ class Xm extends ri {
|
|
|
14784
14784
|
];
|
|
14785
14785
|
}
|
|
14786
14786
|
}
|
|
14787
|
-
class jm extends
|
|
14787
|
+
class jm extends ni {
|
|
14788
14788
|
enable(n) {
|
|
14789
14789
|
return n.type === v.Editable;
|
|
14790
14790
|
}
|
|
@@ -14808,7 +14808,7 @@ class jm extends ri {
|
|
|
14808
14808
|
];
|
|
14809
14809
|
}
|
|
14810
14810
|
}
|
|
14811
|
-
class Gm extends
|
|
14811
|
+
class Gm extends ni {
|
|
14812
14812
|
enable(n) {
|
|
14813
14813
|
return n.type === v.Pie;
|
|
14814
14814
|
}
|
|
@@ -15035,7 +15035,7 @@ class $m extends ug {
|
|
|
15035
15035
|
}
|
|
15036
15036
|
}
|
|
15037
15037
|
var dl = /* @__PURE__ */ ((c) => (c[c.Resource = 0] = "Resource", c[c.Template = 1] = "Template", c))(dl || {});
|
|
15038
|
-
const
|
|
15038
|
+
const Md = 2e3;
|
|
15039
15039
|
class fg {
|
|
15040
15040
|
isSelectNodesOverCopyLimit(n) {
|
|
15041
15041
|
const e = [...n.getSelectNodes()];
|
|
@@ -15075,7 +15075,7 @@ class fg {
|
|
|
15075
15075
|
};
|
|
15076
15076
|
}
|
|
15077
15077
|
isNodesOverCopyLimit(n, e) {
|
|
15078
|
-
return this.countNodes(this.getCopyRootNodes(n)) <=
|
|
15078
|
+
return this.countNodes(this.getCopyRootNodes(n)) <= Md ? !1 : (e.slotManager.addSlotState(tn.CopyNodeLimit, { maxNodeCount: Md }), !0);
|
|
15079
15079
|
}
|
|
15080
15080
|
getCopyRootNodes(n) {
|
|
15081
15081
|
const e = new Set(n);
|
|
@@ -15093,14 +15093,14 @@ class fg {
|
|
|
15093
15093
|
countNodes(n) {
|
|
15094
15094
|
let e = 0;
|
|
15095
15095
|
for (const r of n)
|
|
15096
|
-
if (e += this.countNode(r), e >
|
|
15096
|
+
if (e += this.countNode(r), e > Md)
|
|
15097
15097
|
return e;
|
|
15098
15098
|
return e;
|
|
15099
15099
|
}
|
|
15100
15100
|
countNode(n) {
|
|
15101
15101
|
let e = 1;
|
|
15102
15102
|
for (const r of n.children)
|
|
15103
|
-
if (e += this.countNode(r), e >
|
|
15103
|
+
if (e += this.countNode(r), e > Md)
|
|
15104
15104
|
return e;
|
|
15105
15105
|
return e;
|
|
15106
15106
|
}
|
|
@@ -15978,7 +15978,7 @@ class n1 extends wr {
|
|
|
15978
15978
|
return "group-select";
|
|
15979
15979
|
}
|
|
15980
15980
|
}
|
|
15981
|
-
class
|
|
15981
|
+
class Bh {
|
|
15982
15982
|
moveForward(n, e) {
|
|
15983
15983
|
const r = e ?? [...n.getSelectNodes()];
|
|
15984
15984
|
if (r.length === 0)
|
|
@@ -16170,7 +16170,7 @@ const yu = class yu {
|
|
|
16170
16170
|
}
|
|
16171
16171
|
};
|
|
16172
16172
|
m(yu, "instance", null);
|
|
16173
|
-
let
|
|
16173
|
+
let ou = yu;
|
|
16174
16174
|
const xu = class xu {
|
|
16175
16175
|
static dealWithAIDocumentInfo(n) {
|
|
16176
16176
|
if (n.nodes)
|
|
@@ -16199,7 +16199,7 @@ const xu = class xu {
|
|
|
16199
16199
|
}
|
|
16200
16200
|
if (!n.capInfo.baseProps)
|
|
16201
16201
|
return;
|
|
16202
|
-
const s =
|
|
16202
|
+
const s = ou.getInstance().getCanvasCtx(), i = new hl(), a = new qt();
|
|
16203
16203
|
a.update(((r = n.capInfo) == null ? void 0 : r.textProps) || {});
|
|
16204
16204
|
const l = {
|
|
16205
16205
|
x: Nt,
|
|
@@ -16223,7 +16223,7 @@ const xu = class xu {
|
|
|
16223
16223
|
width: 100,
|
|
16224
16224
|
height: 100
|
|
16225
16225
|
}) {
|
|
16226
|
-
const r =
|
|
16226
|
+
const r = ou.getInstance().getCanvasCtx(), o = new hl();
|
|
16227
16227
|
return n.update(n), o.typesetting(r, n, e), {
|
|
16228
16228
|
width: o.width,
|
|
16229
16229
|
height: o.height
|
|
@@ -16232,7 +16232,7 @@ const xu = class xu {
|
|
|
16232
16232
|
};
|
|
16233
16233
|
m(xu, "exitTextEditWorker", new ml());
|
|
16234
16234
|
let Zo = xu;
|
|
16235
|
-
const pg = 160, gg = 60,
|
|
16235
|
+
const pg = 160, gg = 60, Id = 40, Ld = 30, Qv = "#F5F7FA", Zv = "#E4E7ED";
|
|
16236
16236
|
class K0 {
|
|
16237
16237
|
/**
|
|
16238
16238
|
* 创建思维导图中心根节点
|
|
@@ -16269,7 +16269,7 @@ class K0 {
|
|
|
16269
16269
|
}),
|
|
16270
16270
|
new Ht(0),
|
|
16271
16271
|
// shapeType = 0 (纯文本/矩形)
|
|
16272
|
-
|
|
16272
|
+
Ai.create({
|
|
16273
16273
|
children: [],
|
|
16274
16274
|
// 初始无子节点
|
|
16275
16275
|
collapse: !1
|
|
@@ -16319,7 +16319,7 @@ class K0 {
|
|
|
16319
16319
|
fontColor: "#303133"
|
|
16320
16320
|
}),
|
|
16321
16321
|
new Ht(0),
|
|
16322
|
-
|
|
16322
|
+
Ai.create({
|
|
16323
16323
|
children: [],
|
|
16324
16324
|
collapse: !1
|
|
16325
16325
|
})
|
|
@@ -16496,7 +16496,7 @@ async function hS() {
|
|
|
16496
16496
|
]);
|
|
16497
16497
|
_p = c, r1 = n, o1 = e, s1 = r, i1 = o, a1 = s;
|
|
16498
16498
|
}
|
|
16499
|
-
class
|
|
16499
|
+
class Ei {
|
|
16500
16500
|
/**
|
|
16501
16501
|
* 初始化 MathJax(惰性,只执行一次)
|
|
16502
16502
|
*/
|
|
@@ -16593,7 +16593,7 @@ class ti {
|
|
|
16593
16593
|
</svg>`, width: 120, height: 40 };
|
|
16594
16594
|
}
|
|
16595
16595
|
}
|
|
16596
|
-
m(
|
|
16596
|
+
m(Ei, "adaptor", null), m(Ei, "initialized", !1), m(Ei, "mathDocument");
|
|
16597
16597
|
function En(c) {
|
|
16598
16598
|
"@babel/helpers - typeof";
|
|
16599
16599
|
return En = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
|
|
@@ -16712,14 +16712,14 @@ for (var er = 256; er < 280; ++er)
|
|
|
16712
16712
|
ec[er] = 7;
|
|
16713
16713
|
for (var er = 280; er < 288; ++er)
|
|
16714
16714
|
ec[er] = 8;
|
|
16715
|
-
var
|
|
16715
|
+
var su = new Ts(32);
|
|
16716
16716
|
for (var er = 0; er < 32; ++er)
|
|
16717
|
-
|
|
16718
|
-
var fS = /* @__PURE__ */ yh(ec, 9, 0), pS = /* @__PURE__ */ yh(
|
|
16717
|
+
su[er] = 5;
|
|
16718
|
+
var fS = /* @__PURE__ */ yh(ec, 9, 0), pS = /* @__PURE__ */ yh(su, 5, 0), h1 = function(c) {
|
|
16719
16719
|
return (c + 7) / 8 | 0;
|
|
16720
16720
|
}, gS = function(c, n, e) {
|
|
16721
16721
|
return (e == null || e > c.length) && (e = c.length), new Ts(c.subarray(n, e));
|
|
16722
|
-
},
|
|
16722
|
+
}, Pi = function(c, n, e) {
|
|
16723
16723
|
e <<= n & 7;
|
|
16724
16724
|
var r = n / 8 | 0;
|
|
16725
16725
|
c[r] |= e, c[r + 1] |= e >> 8;
|
|
@@ -16804,36 +16804,36 @@ var fS = /* @__PURE__ */ yh(ec, 9, 0), pS = /* @__PURE__ */ yh(iu, 5, 0), h1 = f
|
|
|
16804
16804
|
c[o + s + 4] = e[s];
|
|
16805
16805
|
return (o + 4 + r) * 8;
|
|
16806
16806
|
}, ey = function(c, n, e, r, o, s, i, a, l, h, d) {
|
|
16807
|
-
|
|
16807
|
+
Pi(n, d++, e), ++o[256];
|
|
16808
16808
|
for (var u = $f(o, 15), f = u.t, p = u.l, g = $f(s, 15), y = g.t, b = g.l, w = J0(f), M = w.c, T = w.n, N = J0(y), B = N.c, X = N.n, $ = new Vo(19), H = 0; H < M.length; ++H)
|
|
16809
16809
|
++$[M[H] & 31];
|
|
16810
16810
|
for (var H = 0; H < B.length; ++H)
|
|
16811
16811
|
++$[B[H] & 31];
|
|
16812
16812
|
for (var D = $f($, 7), ee = D.t, E = D.l, R = 19; R > 4 && !ee[Q0[R - 1]]; --R)
|
|
16813
16813
|
;
|
|
16814
|
-
var Y = h + 5 << 3, V = nh(o, ec) + nh(s,
|
|
16814
|
+
var Y = h + 5 << 3, V = nh(o, ec) + nh(s, su) + i, ue = nh(o, f) + nh(s, y) + i + 14 + 3 * R + nh($, ee) + 2 * $[16] + 3 * $[17] + 7 * $[18];
|
|
16815
16815
|
if (l >= 0 && Y <= V && Y <= ue)
|
|
16816
16816
|
return d1(n, d, c.subarray(l, l + h));
|
|
16817
16817
|
var Se, Le, fe, Me;
|
|
16818
|
-
if (
|
|
16818
|
+
if (Pi(n, d, 1 + (ue < V)), d += 2, ue < V) {
|
|
16819
16819
|
Se = yh(f, p, 0), Le = f, fe = yh(y, b, 0), Me = y;
|
|
16820
16820
|
var Ee = yh(ee, E, 0);
|
|
16821
|
-
|
|
16821
|
+
Pi(n, d, T - 257), Pi(n, d + 5, X - 1), Pi(n, d + 10, R - 4), d += 14;
|
|
16822
16822
|
for (var H = 0; H < R; ++H)
|
|
16823
|
-
|
|
16823
|
+
Pi(n, d + 3 * H, ee[Q0[H]]);
|
|
16824
16824
|
d += 3 * R;
|
|
16825
16825
|
for (var Ae = [M, B], z = 0; z < 2; ++z)
|
|
16826
16826
|
for (var W = Ae[z], H = 0; H < W.length; ++H) {
|
|
16827
16827
|
var Q = W[H] & 31;
|
|
16828
|
-
|
|
16828
|
+
Pi(n, d, Ee[Q]), d += ee[Q], Q > 15 && (Pi(n, d, W[H] >> 5 & 127), d += W[H] >> 12);
|
|
16829
16829
|
}
|
|
16830
16830
|
} else
|
|
16831
|
-
Se = fS, Le = ec, fe = pS, Me =
|
|
16831
|
+
Se = fS, Le = ec, fe = pS, Me = su;
|
|
16832
16832
|
for (var H = 0; H < a; ++H) {
|
|
16833
16833
|
var ie = r[H];
|
|
16834
16834
|
if (ie > 255) {
|
|
16835
16835
|
var Q = ie >> 18 & 31;
|
|
16836
|
-
th(n, d, Se[Q + 257]), d += Le[Q + 257], Q > 7 && (
|
|
16836
|
+
th(n, d, Se[Q + 257]), d += Le[Q + 257], Q > 7 && (Pi(n, d, ie >> 23 & 31), d += xg[Q]);
|
|
16837
16837
|
var re = ie & 31;
|
|
16838
16838
|
th(n, d, fe[re]), d += Me[re], re > 3 && (th(n, d, ie >> 5 & 8191), d += mg[re]);
|
|
16839
16839
|
} else
|
|
@@ -17669,7 +17669,7 @@ function ZS() {
|
|
|
17669
17669
|
this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0;
|
|
17670
17670
|
}
|
|
17671
17671
|
var JS = ZS;
|
|
17672
|
-
const
|
|
17672
|
+
const Cd = 16209, eM = 16191;
|
|
17673
17673
|
var tM = function(n, e) {
|
|
17674
17674
|
let r, o, s, i, a, l, h, d, u, f, p, g, y, b, w, M, T, N, B, X, $, H, D, ee;
|
|
17675
17675
|
const E = n.state;
|
|
@@ -17687,12 +17687,12 @@ var tM = function(n, e) {
|
|
|
17687
17687
|
for (; ; ) {
|
|
17688
17688
|
if (N = T >>> 24, p >>>= N, g -= N, N = T >>> 16 & 255, N & 16) {
|
|
17689
17689
|
if (X = T & 65535, N &= 15, g < N && (p += D[r++] << g, g += 8, g < N && (p += D[r++] << g, g += 8)), X += p & (1 << N) - 1, X > l) {
|
|
17690
|
-
n.msg = "invalid distance too far back", E.mode =
|
|
17690
|
+
n.msg = "invalid distance too far back", E.mode = Cd;
|
|
17691
17691
|
break e;
|
|
17692
17692
|
}
|
|
17693
17693
|
if (p >>>= N, g -= N, N = s - i, X > N) {
|
|
17694
17694
|
if (N = X - N, N > d && E.sane) {
|
|
17695
|
-
n.msg = "invalid distance too far back", E.mode =
|
|
17695
|
+
n.msg = "invalid distance too far back", E.mode = Cd;
|
|
17696
17696
|
break e;
|
|
17697
17697
|
}
|
|
17698
17698
|
if ($ = 0, H = f, u === 0) {
|
|
@@ -17735,7 +17735,7 @@ var tM = function(n, e) {
|
|
|
17735
17735
|
B && (ee[s++] = ee[$++], B > 1 && (ee[s++] = ee[$++]));
|
|
17736
17736
|
}
|
|
17737
17737
|
} else if (N & 64) {
|
|
17738
|
-
n.msg = "invalid distance code", E.mode =
|
|
17738
|
+
n.msg = "invalid distance code", E.mode = Cd;
|
|
17739
17739
|
break e;
|
|
17740
17740
|
} else {
|
|
17741
17741
|
T = b[(T & 65535) + (p & (1 << N) - 1)];
|
|
@@ -17748,7 +17748,7 @@ var tM = function(n, e) {
|
|
|
17748
17748
|
E.mode = eM;
|
|
17749
17749
|
break e;
|
|
17750
17750
|
} else {
|
|
17751
|
-
n.msg = "invalid literal/length code", E.mode =
|
|
17751
|
+
n.msg = "invalid literal/length code", E.mode = Cd;
|
|
17752
17752
|
break e;
|
|
17753
17753
|
}
|
|
17754
17754
|
else {
|
|
@@ -17946,7 +17946,7 @@ var xh = iM;
|
|
|
17946
17946
|
const aM = 0, b1 = 1, P1 = 2, {
|
|
17947
17947
|
Z_FINISH: cy,
|
|
17948
17948
|
Z_BLOCK: cM,
|
|
17949
|
-
Z_TREES:
|
|
17949
|
+
Z_TREES: Td,
|
|
17950
17950
|
Z_OK: tc,
|
|
17951
17951
|
Z_STREAM_END: lM,
|
|
17952
17952
|
Z_NEED_DICT: hM,
|
|
@@ -17955,7 +17955,7 @@ const aM = 0, b1 = 1, P1 = 2, {
|
|
|
17955
17955
|
Z_MEM_ERROR: S1,
|
|
17956
17956
|
Z_BUF_ERROR: dM,
|
|
17957
17957
|
Z_DEFLATED: ly
|
|
17958
|
-
} = x1, Tu = 16180, hy = 16181, dy = 16182, uy = 16183, fy = 16184, py = 16185, gy = 16186, yy = 16187, xy = 16188, my = 16189,
|
|
17958
|
+
} = x1, Tu = 16180, hy = 16181, dy = 16182, uy = 16183, fy = 16184, py = 16185, gy = 16186, yy = 16187, xy = 16188, my = 16189, iu = 16190, vi = 16191, Vf = 16192, wy = 16193, Kf = 16194, by = 16195, Py = 16196, vy = 16197, Sy = 16198, Nd = 16199, Ad = 16200, My = 16201, Iy = 16202, Ly = 16203, Cy = 16204, Ty = 16205, Qf = 16206, Ny = 16207, Ay = 16208, rr = 16209, M1 = 16210, I1 = 16211, uM = 852, fM = 592, pM = 15, gM = pM, ky = (c) => (c >>> 24 & 255) + (c >>> 8 & 65280) + ((c & 65280) << 8) + ((c & 255) << 24);
|
|
17959
17959
|
function yM() {
|
|
17960
17960
|
this.strm = null, this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new Uint16Array(320), this.work = new Uint16Array(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
17961
17961
|
}
|
|
@@ -18020,7 +18020,7 @@ const mM = (c) => {
|
|
|
18020
18020
|
);
|
|
18021
18021
|
if (gc(c) || !c.output || !c.input && c.avail_in !== 0)
|
|
18022
18022
|
return us;
|
|
18023
|
-
e = c.state, e.mode ===
|
|
18023
|
+
e = c.state, e.mode === vi && (e.mode = Vf), i = c.next_out, o = c.output, l = c.avail_out, s = c.next_in, r = c.input, a = c.avail_in, h = e.hold, d = e.bits, u = a, f = l, H = tc;
|
|
18024
18024
|
e:
|
|
18025
18025
|
for (; ; )
|
|
18026
18026
|
switch (e.mode) {
|
|
@@ -18051,7 +18051,7 @@ const mM = (c) => {
|
|
|
18051
18051
|
c.msg = "invalid window size", e.mode = rr;
|
|
18052
18052
|
break;
|
|
18053
18053
|
}
|
|
18054
|
-
e.dmax = 1 << e.wbits, e.flags = 0, c.adler = e.check = 1, e.mode = h & 512 ? my :
|
|
18054
|
+
e.dmax = 1 << e.wbits, e.flags = 0, c.adler = e.check = 1, e.mode = h & 512 ? my : vi, h = 0, d = 0;
|
|
18055
18055
|
break;
|
|
18056
18056
|
case hy:
|
|
18057
18057
|
for (; d < 16; ) {
|
|
@@ -18142,7 +18142,7 @@ const mM = (c) => {
|
|
|
18142
18142
|
}
|
|
18143
18143
|
h = 0, d = 0;
|
|
18144
18144
|
}
|
|
18145
|
-
e.head && (e.head.hcrc = e.flags >> 9 & 1, e.head.done = !0), c.adler = e.check = 0, e.mode =
|
|
18145
|
+
e.head && (e.head.hcrc = e.flags >> 9 & 1, e.head.done = !0), c.adler = e.check = 0, e.mode = vi;
|
|
18146
18146
|
break;
|
|
18147
18147
|
case my:
|
|
18148
18148
|
for (; d < 32; ) {
|
|
@@ -18150,13 +18150,13 @@ const mM = (c) => {
|
|
|
18150
18150
|
break e;
|
|
18151
18151
|
a--, h += r[s++] << d, d += 8;
|
|
18152
18152
|
}
|
|
18153
|
-
c.adler = e.check = ky(h), h = 0, d = 0, e.mode =
|
|
18154
|
-
case
|
|
18153
|
+
c.adler = e.check = ky(h), h = 0, d = 0, e.mode = iu;
|
|
18154
|
+
case iu:
|
|
18155
18155
|
if (e.havedict === 0)
|
|
18156
18156
|
return c.next_out = i, c.avail_out = l, c.next_in = s, c.avail_in = a, e.hold = h, e.bits = d, hM;
|
|
18157
|
-
c.adler = e.check = 1, e.mode =
|
|
18158
|
-
case
|
|
18159
|
-
if (n === cM || n ===
|
|
18157
|
+
c.adler = e.check = 1, e.mode = vi;
|
|
18158
|
+
case vi:
|
|
18159
|
+
if (n === cM || n === Td)
|
|
18160
18160
|
break e;
|
|
18161
18161
|
case Vf:
|
|
18162
18162
|
if (e.last) {
|
|
@@ -18173,7 +18173,7 @@ const mM = (c) => {
|
|
|
18173
18173
|
e.mode = wy;
|
|
18174
18174
|
break;
|
|
18175
18175
|
case 1:
|
|
18176
|
-
if (mM(e), e.mode =
|
|
18176
|
+
if (mM(e), e.mode = Nd, n === Td) {
|
|
18177
18177
|
h >>>= 2, d -= 2;
|
|
18178
18178
|
break e;
|
|
18179
18179
|
}
|
|
@@ -18196,7 +18196,7 @@ const mM = (c) => {
|
|
|
18196
18196
|
c.msg = "invalid stored block lengths", e.mode = rr;
|
|
18197
18197
|
break;
|
|
18198
18198
|
}
|
|
18199
|
-
if (e.length = h & 65535, h = 0, d = 0, e.mode = Kf, n ===
|
|
18199
|
+
if (e.length = h & 65535, h = 0, d = 0, e.mode = Kf, n === Td)
|
|
18200
18200
|
break e;
|
|
18201
18201
|
case Kf:
|
|
18202
18202
|
e.mode = by;
|
|
@@ -18207,7 +18207,7 @@ const mM = (c) => {
|
|
|
18207
18207
|
o.set(r.subarray(s, s + p), i), a -= p, s += p, l -= p, i += p, e.length -= p;
|
|
18208
18208
|
break;
|
|
18209
18209
|
}
|
|
18210
|
-
e.mode =
|
|
18210
|
+
e.mode = vi;
|
|
18211
18211
|
break;
|
|
18212
18212
|
case Py:
|
|
18213
18213
|
for (; d < 14; ) {
|
|
@@ -18294,13 +18294,13 @@ const mM = (c) => {
|
|
|
18294
18294
|
c.msg = "invalid distances set", e.mode = rr;
|
|
18295
18295
|
break;
|
|
18296
18296
|
}
|
|
18297
|
-
if (e.mode =
|
|
18297
|
+
if (e.mode = Nd, n === Td)
|
|
18298
18298
|
break e;
|
|
18299
|
+
case Nd:
|
|
18300
|
+
e.mode = Ad;
|
|
18299
18301
|
case Ad:
|
|
18300
|
-
e.mode = kd;
|
|
18301
|
-
case kd:
|
|
18302
18302
|
if (a >= 6 && l >= 258) {
|
|
18303
|
-
c.next_out = i, c.avail_out = l, c.next_in = s, c.avail_in = a, e.hold = h, e.bits = d, tM(c, f), i = c.next_out, o = c.output, l = c.avail_out, s = c.next_in, r = c.input, a = c.avail_in, h = e.hold, d = e.bits, e.mode ===
|
|
18303
|
+
c.next_out = i, c.avail_out = l, c.next_in = s, c.avail_in = a, e.hold = h, e.bits = d, tM(c, f), i = c.next_out, o = c.output, l = c.avail_out, s = c.next_in, r = c.input, a = c.avail_in, h = e.hold, d = e.bits, e.mode === vi && (e.back = -1);
|
|
18304
18304
|
break;
|
|
18305
18305
|
}
|
|
18306
18306
|
for (e.back = 0; b = e.lencode[h & (1 << e.lenbits) - 1], w = b >>> 24, M = b >>> 16 & 255, T = b & 65535, !(w <= d); ) {
|
|
@@ -18321,7 +18321,7 @@ const mM = (c) => {
|
|
|
18321
18321
|
break;
|
|
18322
18322
|
}
|
|
18323
18323
|
if (M & 32) {
|
|
18324
|
-
e.back = -1, e.mode =
|
|
18324
|
+
e.back = -1, e.mode = vi;
|
|
18325
18325
|
break;
|
|
18326
18326
|
}
|
|
18327
18327
|
if (M & 64) {
|
|
@@ -18387,12 +18387,12 @@ const mM = (c) => {
|
|
|
18387
18387
|
do
|
|
18388
18388
|
o[i++] = y[g++];
|
|
18389
18389
|
while (--p);
|
|
18390
|
-
e.length === 0 && (e.mode =
|
|
18390
|
+
e.length === 0 && (e.mode = Ad);
|
|
18391
18391
|
break;
|
|
18392
18392
|
case Ty:
|
|
18393
18393
|
if (l === 0)
|
|
18394
18394
|
break e;
|
|
18395
|
-
o[i++] = e.length, l--, e.mode =
|
|
18395
|
+
o[i++] = e.length, l--, e.mode = Ad;
|
|
18396
18396
|
break;
|
|
18397
18397
|
case Qf:
|
|
18398
18398
|
if (e.wrap) {
|
|
@@ -18436,7 +18436,7 @@ const mM = (c) => {
|
|
|
18436
18436
|
return us;
|
|
18437
18437
|
}
|
|
18438
18438
|
return c.next_out = i, c.avail_out = l, c.next_in = s, c.avail_in = a, e.hold = h, e.bits = d, (e.wsize || f !== c.avail_out && e.mode < rr && (e.mode < Qf || n !== cy)) && A1(c, c.output, c.next_out, f - c.avail_out), u -= c.avail_in, f -= c.avail_out, c.total_in += u, c.total_out += f, e.total += f, e.wrap & 4 && f && (c.adler = e.check = /*UPDATE_CHECK(state.check, strm.next_out - _out, _out);*/
|
|
18439
|
-
e.flags ? Gs(e.check, o, f, c.next_out - f) : Xp(e.check, o, f, c.next_out - f)), c.data_type = e.bits + (e.last ? 64 : 0) + (e.mode ===
|
|
18439
|
+
e.flags ? Gs(e.check, o, f, c.next_out - f) : Xp(e.check, o, f, c.next_out - f)), c.data_type = e.bits + (e.last ? 64 : 0) + (e.mode === vi ? 128 : 0) + (e.mode === Nd || e.mode === Kf ? 256 : 0), (u === 0 && f === 0 || n === cy) && H === tc && (H = dM), H;
|
|
18440
18440
|
}, bM = (c) => {
|
|
18441
18441
|
if (gc(c))
|
|
18442
18442
|
return us;
|
|
@@ -18450,9 +18450,9 @@ const mM = (c) => {
|
|
|
18450
18450
|
}, vM = (c, n) => {
|
|
18451
18451
|
const e = n.length;
|
|
18452
18452
|
let r, o, s;
|
|
18453
|
-
return gc(c) || (r = c.state, r.wrap !== 0 && r.mode !==
|
|
18453
|
+
return gc(c) || (r = c.state, r.wrap !== 0 && r.mode !== iu) ? us : r.mode === iu && (o = 1, o = Xp(o, n, e, 0), o !== r.check) ? v1 : (s = A1(c, n, e, e), s ? (r.mode = M1, S1) : (r.havedict = 1, tc));
|
|
18454
18454
|
};
|
|
18455
|
-
var SM = C1, MM = T1, IM = L1, LM = xM, CM = N1, TM = wM, NM = bM, AM = PM, kM = vM, BM = "pako inflate (from Nodeca project)",
|
|
18455
|
+
var SM = C1, MM = T1, IM = L1, LM = xM, CM = N1, TM = wM, NM = bM, AM = PM, kM = vM, BM = "pako inflate (from Nodeca project)", Ii = {
|
|
18456
18456
|
inflateReset: SM,
|
|
18457
18457
|
inflateReset2: MM,
|
|
18458
18458
|
inflateResetKeep: IM,
|
|
@@ -18478,7 +18478,7 @@ const k1 = Object.prototype.toString, {
|
|
|
18478
18478
|
Z_DATA_ERROR: Ey,
|
|
18479
18479
|
Z_MEM_ERROR: OM
|
|
18480
18480
|
} = x1;
|
|
18481
|
-
function
|
|
18481
|
+
function Eh(c) {
|
|
18482
18482
|
this.options = m1.assign({
|
|
18483
18483
|
chunkSize: 1024 * 64,
|
|
18484
18484
|
windowBits: 15,
|
|
@@ -18486,22 +18486,22 @@ function Rh(c) {
|
|
|
18486
18486
|
}, c || {});
|
|
18487
18487
|
const n = this.options;
|
|
18488
18488
|
n.raw && n.windowBits >= 0 && n.windowBits < 16 && (n.windowBits = -n.windowBits, n.windowBits === 0 && (n.windowBits = -15)), n.windowBits >= 0 && n.windowBits < 16 && !(c && c.windowBits) && (n.windowBits += 32), n.windowBits > 15 && n.windowBits < 48 && (n.windowBits & 15 || (n.windowBits |= 15)), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new JS(), this.strm.avail_out = 0;
|
|
18489
|
-
let e =
|
|
18489
|
+
let e = Ii.inflateInit2(
|
|
18490
18490
|
this.strm,
|
|
18491
18491
|
n.windowBits
|
|
18492
18492
|
);
|
|
18493
18493
|
if (e !== Ih)
|
|
18494
18494
|
throw new Error(jp[e]);
|
|
18495
|
-
if (this.header = new RM(),
|
|
18495
|
+
if (this.header = new RM(), Ii.inflateGetHeader(this.strm, this.header), n.dictionary && (typeof n.dictionary == "string" ? n.dictionary = Gp.string2buf(n.dictionary) : k1.call(n.dictionary) === "[object ArrayBuffer]" && (n.dictionary = new Uint8Array(n.dictionary)), n.raw && (e = Ii.inflateSetDictionary(this.strm, n.dictionary), e !== Ih)))
|
|
18496
18496
|
throw new Error(jp[e]);
|
|
18497
18497
|
}
|
|
18498
|
-
|
|
18498
|
+
Eh.prototype.push = function(c, n) {
|
|
18499
18499
|
const e = this.strm, r = this.options.chunkSize, o = this.options.dictionary;
|
|
18500
18500
|
let s, i, a;
|
|
18501
18501
|
if (this.ended) return !1;
|
|
18502
18502
|
for (n === ~~n ? i = n : i = n === !0 ? DM : FM, k1.call(c) === "[object ArrayBuffer]" ? e.input = new Uint8Array(c) : e.input = c, e.next_in = 0, e.avail_in = e.input.length; ; ) {
|
|
18503
|
-
for (e.avail_out === 0 && (e.output = new Uint8Array(r), e.next_out = 0, e.avail_out = r), s =
|
|
18504
|
-
|
|
18503
|
+
for (e.avail_out === 0 && (e.output = new Uint8Array(r), e.next_out = 0, e.avail_out = r), s = Ii.inflate(e, i), s === tp && o && (s = Ii.inflateSetDictionary(e, o), s === Ih ? s = Ii.inflate(e, i) : s === Ey && (s = tp)); e.avail_in > 0 && s === ep && e.state.wrap > 0 && c[e.next_in] !== 0; )
|
|
18504
|
+
Ii.inflateReset(e), s = Ii.inflate(e, i);
|
|
18505
18505
|
switch (s) {
|
|
18506
18506
|
case _M:
|
|
18507
18507
|
case Ey:
|
|
@@ -18517,24 +18517,24 @@ Rh.prototype.push = function(c, n) {
|
|
|
18517
18517
|
this.onData(e.output.length === e.next_out ? e.output : e.output.subarray(0, e.next_out));
|
|
18518
18518
|
if (!(s === Ih && a === 0)) {
|
|
18519
18519
|
if (s === ep)
|
|
18520
|
-
return s =
|
|
18520
|
+
return s = Ii.inflateEnd(this.strm), this.onEnd(s), this.ended = !0, !0;
|
|
18521
18521
|
if (e.avail_in === 0) break;
|
|
18522
18522
|
}
|
|
18523
18523
|
}
|
|
18524
18524
|
return !0;
|
|
18525
18525
|
};
|
|
18526
|
-
|
|
18526
|
+
Eh.prototype.onData = function(c) {
|
|
18527
18527
|
this.chunks.push(c);
|
|
18528
18528
|
};
|
|
18529
|
-
|
|
18529
|
+
Eh.prototype.onEnd = function(c) {
|
|
18530
18530
|
c === Ih && (this.options.to === "string" ? this.result = this.chunks.join("") : this.result = m1.flattenChunks(this.chunks)), this.chunks = [], this.err = c, this.msg = this.strm.msg;
|
|
18531
18531
|
};
|
|
18532
18532
|
function HM(c, n) {
|
|
18533
|
-
const e = new
|
|
18533
|
+
const e = new Eh(n);
|
|
18534
18534
|
if (e.push(c), e.err) throw e.msg || jp[e.err];
|
|
18535
18535
|
return e.result;
|
|
18536
18536
|
}
|
|
18537
|
-
var zM =
|
|
18537
|
+
var zM = Eh, WM = HM, XM = {
|
|
18538
18538
|
Inflate: zM,
|
|
18539
18539
|
inflate: WM
|
|
18540
18540
|
};
|
|
@@ -18722,16 +18722,16 @@ function _y(c) {
|
|
|
18722
18722
|
function sI(c) {
|
|
18723
18723
|
return (c & 255) << 8 | c >> 8 & 255;
|
|
18724
18724
|
}
|
|
18725
|
-
const
|
|
18725
|
+
const qd = Uint8Array.of(137, 80, 78, 71, 13, 10, 26, 10);
|
|
18726
18726
|
function Oy(c) {
|
|
18727
|
-
if (!iI(c.readBytes(
|
|
18727
|
+
if (!iI(c.readBytes(qd.length)))
|
|
18728
18728
|
throw new Error("wrong PNG signature");
|
|
18729
18729
|
}
|
|
18730
18730
|
function iI(c) {
|
|
18731
|
-
if (c.length <
|
|
18731
|
+
if (c.length < qd.length)
|
|
18732
18732
|
return !1;
|
|
18733
|
-
for (let n = 0; n <
|
|
18734
|
-
if (c[n] !==
|
|
18733
|
+
for (let n = 0; n < qd.length; n++)
|
|
18734
|
+
if (c[n] !== qd[n])
|
|
18735
18735
|
return !1;
|
|
18736
18736
|
return !0;
|
|
18737
18737
|
}
|
|
@@ -18777,7 +18777,7 @@ const qo = {
|
|
|
18777
18777
|
UNKNOWN: -1,
|
|
18778
18778
|
NO_INTERLACE: 0,
|
|
18779
18779
|
ADAM7: 1
|
|
18780
|
-
},
|
|
18780
|
+
}, kd = {
|
|
18781
18781
|
NONE: 0,
|
|
18782
18782
|
BACKGROUND: 1,
|
|
18783
18783
|
PREVIOUS: 2
|
|
@@ -19048,9 +19048,9 @@ class pI extends wg {
|
|
|
19048
19048
|
}
|
|
19049
19049
|
disposeFrame(e, r, o) {
|
|
19050
19050
|
switch (e.disposeOp) {
|
|
19051
|
-
case
|
|
19051
|
+
case kd.NONE:
|
|
19052
19052
|
break;
|
|
19053
|
-
case
|
|
19053
|
+
case kd.BACKGROUND:
|
|
19054
19054
|
for (let s = 0; s < this._png.height; s++)
|
|
19055
19055
|
for (let i = 0; i < this._png.width; i++) {
|
|
19056
19056
|
const a = (s * e.width + i) * this._png.channels;
|
|
@@ -19058,7 +19058,7 @@ class pI extends wg {
|
|
|
19058
19058
|
o.data[a + l] = 0;
|
|
19059
19059
|
}
|
|
19060
19060
|
break;
|
|
19061
|
-
case
|
|
19061
|
+
case kd.PREVIOUS:
|
|
19062
19062
|
o.data.set(r.data);
|
|
19063
19063
|
break;
|
|
19064
19064
|
default:
|
|
@@ -19130,7 +19130,7 @@ class pI extends wg {
|
|
|
19130
19130
|
yOffset: 0,
|
|
19131
19131
|
delayNumber: 0,
|
|
19132
19132
|
delayDenominator: 0,
|
|
19133
|
-
disposeOp:
|
|
19133
|
+
disposeOp: kd.NONE,
|
|
19134
19134
|
blendOp: op.SOURCE,
|
|
19135
19135
|
data: e
|
|
19136
19136
|
}), this._inflator = new Ry(), this._writingDataChunks = !1;
|
|
@@ -19225,7 +19225,7 @@ function Wy(c) {
|
|
|
19225
19225
|
}
|
|
19226
19226
|
return n.status >= 200 && n.status <= 299;
|
|
19227
19227
|
}
|
|
19228
|
-
function
|
|
19228
|
+
function Bd(c) {
|
|
19229
19229
|
try {
|
|
19230
19230
|
c.dispatchEvent(new MouseEvent("click"));
|
|
19231
19231
|
} catch {
|
|
@@ -19236,17 +19236,17 @@ function Ed(c) {
|
|
|
19236
19236
|
var Wa = jt.saveAs || ((typeof window > "u" ? "undefined" : En(window)) !== "object" || window !== jt ? function() {
|
|
19237
19237
|
} : typeof HTMLAnchorElement < "u" && "download" in HTMLAnchorElement.prototype ? function(c, n, e) {
|
|
19238
19238
|
var r = jt.URL || jt.webkitURL, o = document.createElement("a");
|
|
19239
|
-
n = n || c.name || "download", o.download = n, o.rel = "noopener", typeof c == "string" ? (o.href = c, o.origin !== location.origin ? Wy(o.href) ? ip(c, n, e) :
|
|
19239
|
+
n = n || c.name || "download", o.download = n, o.rel = "noopener", typeof c == "string" ? (o.href = c, o.origin !== location.origin ? Wy(o.href) ? ip(c, n, e) : Bd(o, o.target = "_blank") : Bd(o)) : (o.href = r.createObjectURL(c), setTimeout(function() {
|
|
19240
19240
|
r.revokeObjectURL(o.href);
|
|
19241
19241
|
}, 4e4), setTimeout(function() {
|
|
19242
|
-
|
|
19242
|
+
Bd(o);
|
|
19243
19243
|
}, 0));
|
|
19244
19244
|
} : "msSaveOrOpenBlob" in navigator ? function(c, n, e) {
|
|
19245
19245
|
if (n = n || c.name || "download", typeof c == "string") if (Wy(c)) ip(c, n, e);
|
|
19246
19246
|
else {
|
|
19247
19247
|
var r = document.createElement("a");
|
|
19248
19248
|
r.href = c, r.target = "_blank", setTimeout(function() {
|
|
19249
|
-
|
|
19249
|
+
Bd(r);
|
|
19250
19250
|
});
|
|
19251
19251
|
}
|
|
19252
19252
|
else navigator.msSaveOrOpenBlob(function(o, s) {
|
|
@@ -19294,7 +19294,7 @@ function z1(c) {
|
|
|
19294
19294
|
return a.length == 1 && (a = "0" + a), l.length == 1 && (l = "0" + l), h.length == 1 && (h = "0" + h), "#" + a + l + h;
|
|
19295
19295
|
};
|
|
19296
19296
|
}
|
|
19297
|
-
var
|
|
19297
|
+
var Vd = jt.atob.bind(jt), Xy = jt.btoa.bind(jt);
|
|
19298
19298
|
/**
|
|
19299
19299
|
* @license
|
|
19300
19300
|
* Joseph Myers does not specify a particular license for his work.
|
|
@@ -19846,8 +19846,8 @@ Q`), Fr(Pe, !0), Wt({ data: De, filters: pn(), objectId: Pe }), K("endobj"), he;
|
|
|
19846
19846
|
}
|
|
19847
19847
|
for (var zn = "", _n = 0, Qn = 0; Qn < Kt.length; Qn++) {
|
|
19848
19848
|
for (xt = Kt[Qn]; xt > $e[_n + 1].offset; ) _n++;
|
|
19849
|
-
var lr = $e[_n].offset, hr = (xt - lr) / ($e[_n + 1].offset - lr), so = $e[_n].color,
|
|
19850
|
-
zn += ie(Math.round((1 - hr) * so[0] + hr *
|
|
19849
|
+
var lr = $e[_n].offset, hr = (xt - lr) / ($e[_n + 1].offset - lr), so = $e[_n].color, ui = $e[_n + 1].color;
|
|
19850
|
+
zn += ie(Math.round((1 - hr) * so[0] + hr * ui[0]).toString(16)) + ie(Math.round((1 - hr) * so[1] + hr * ui[1]).toString(16)) + ie(Math.round((1 - hr) * so[2] + hr * ui[2]).toString(16));
|
|
19851
19851
|
}
|
|
19852
19852
|
return zn.trim();
|
|
19853
19853
|
}(S.colors, _), Pe = [];
|
|
@@ -19913,8 +19913,8 @@ Q`), Fr(Pe, !0), Wt({ data: De, filters: pn(), objectId: Pe }), K("endobj"), he;
|
|
|
19913
19913
|
return String.fromCharCode.apply(void 0, Kt);
|
|
19914
19914
|
}(S, _).replace(/\\/g, "\\\\").replace(/\(/g, "\\(").replace(/\)/g, "\\)");
|
|
19915
19915
|
}, Cl = p.__private__.beginPage = function(S) {
|
|
19916
|
-
Xe[++on] = [], Rt[on] = { objId: 0, contentsObjId: 0, userUnit: Number(a), artBox: null, bleedBox: null, cropBox: null, trimBox: null, mediaBox: { bottomLeftX: 0, bottomLeftY: 0, topRightX: Number(S[0]), topRightY: Number(S[1]) } },
|
|
19917
|
-
},
|
|
19916
|
+
Xe[++on] = [], Rt[on] = { objId: 0, contentsObjId: 0, userUnit: Number(a), artBox: null, bleedBox: null, cropBox: null, trimBox: null, mediaBox: { bottomLeftX: 0, bottomLeftY: 0, topRightX: Number(S[0]), topRightY: Number(S[1]) } }, Gh(on), ot(Xe[W]);
|
|
19917
|
+
}, jh = function(S, _) {
|
|
19918
19918
|
var ne, he, Pe;
|
|
19919
19919
|
switch (e = _ || e, typeof S == "string" && (ne = w(S.toLowerCase()), Array.isArray(ne) && (he = ne[0], Pe = ne[1])), Array.isArray(S) && (he = S[0] * Vt, Pe = S[1] * Vt), isNaN(he) && (he = o[0], Pe = o[1]), (he > 14400 || Pe > 14400) && (Xn.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"), he = Math.min(14400, he), Pe = Math.min(14400, Pe)), o = [he, Pe], e.substr(0, 1)) {
|
|
19920
19920
|
case "l":
|
|
@@ -19926,11 +19926,11 @@ Q`), Fr(Pe, !0), Wt({ data: De, filters: pn(), objectId: Pe }), K("endobj"), he;
|
|
|
19926
19926
|
Cl(o), ff(Xt), K(Ic), Bl !== 0 && K(Bl + " J"), Xi !== 0 && K(Xi + " j"), In.publish("addPage", { pageNumber: on });
|
|
19927
19927
|
}, Tl = function(S) {
|
|
19928
19928
|
S > 0 && S <= on && (Xe.splice(S, 1), Rt.splice(S, 1), on--, W > on && (W = on), this.setPage(W));
|
|
19929
|
-
},
|
|
19929
|
+
}, Gh = function(S) {
|
|
19930
19930
|
S > 0 && S <= on && (W = S);
|
|
19931
|
-
},
|
|
19931
|
+
}, Uh = p.__private__.getNumberOfPages = p.getNumberOfPages = function() {
|
|
19932
19932
|
return Xe.length - 1;
|
|
19933
|
-
},
|
|
19933
|
+
}, $h = function(S, _, ne) {
|
|
19934
19934
|
var he, Pe = void 0;
|
|
19935
19935
|
return ne = ne || {}, S = S !== void 0 ? S : ln[mt].fontName, _ = _ !== void 0 ? _ : ln[mt].fontStyle, he = S.toLowerCase(), hn[he] !== void 0 && hn[he][_] !== void 0 ? Pe = hn[he][_] : hn[S] !== void 0 && hn[S][_] !== void 0 ? Pe = hn[S][_] : ne.disableWarning === !1 && Xn.warn("Unable to look up font label for font '" + S + "', '" + _ + "'. Refer to getFontList() for available fonts."), Pe || ne.noFallback || (Pe = hn.times[_]) == null && (Pe = hn.times.normal), Pe;
|
|
19936
19936
|
}, Ds = p.__private__.putInfo = function() {
|
|
@@ -19977,7 +19977,7 @@ Q`), Fr(Pe, !0), Wt({ data: De, filters: pn(), objectId: Pe }), K("endobj"), he;
|
|
|
19977
19977
|
K("trailer"), K("<<"), K("/Size " + (re + 1)), K("/Root " + re + " 0 R"), K("/Info " + (re - 1) + " 0 R"), d !== null && K("/Encrypt " + Qr.oid + " 0 R"), K("/ID [ <" + Se + "> <" + Se + "> ]"), K(">>");
|
|
19978
19978
|
}, kr = p.__private__.putHeader = function() {
|
|
19979
19979
|
K("%PDF-" + g), K("%ºß¬à");
|
|
19980
|
-
},
|
|
19980
|
+
}, Yh = p.__private__.putXRef = function() {
|
|
19981
19981
|
var S = "0000000000";
|
|
19982
19982
|
K("xref"), K("0 " + (re + 1)), K("0000000000 65535 f ");
|
|
19983
19983
|
for (var _ = 1; _ <= re; _++) typeof ce[_] == "function" ? K((S + ce[_]()).slice(-10) + " 00000 n ") : ce[_] !== void 0 ? K((S + ce[_]).slice(-10) + " 00000 n ") : K("0000000000 00000 n ");
|
|
@@ -20002,7 +20002,7 @@ Q`), Fr(Pe, !0), Wt({ data: De, filters: pn(), objectId: Pe }), K("endobj"), he;
|
|
|
20002
20002
|
for (he in Et) Et.hasOwnProperty(he) && (Et[he] instanceof ia ? Dr(Et[he]) : Et[he] instanceof Ga && zo(Et[he], ne));
|
|
20003
20003
|
}(S), In.publish("putResources"), S.forEach(Ar), Ar({ resourcesOid: it, objectOid: Number.MAX_SAFE_INTEGER }), In.publish("postPutResources"), d !== null && (Qr.oid = nr(), K("<<"), K("/Filter /Standard"), K("/V " + Qr.v), K("/R " + Qr.r), K("/U <" + Qr.toHexString(Qr.U) + ">"), K("/O <" + Qr.toHexString(Qr.O) + ">"), K("/P " + Qr.P), K(">>"), K("endobj")), Ds(), bc();
|
|
20004
20004
|
var _ = xe;
|
|
20005
|
-
return
|
|
20005
|
+
return Yh(), rf(), K("startxref"), K("" + _), K("%%EOF"), ot(Xe[W]), pe.join(`
|
|
20006
20006
|
`);
|
|
20007
20007
|
}, Pc = p.__private__.getBlob = function(S) {
|
|
20008
20008
|
return new Blob([St(S)], { type: "application/pdf" });
|
|
@@ -20088,7 +20088,7 @@ Q`), Fr(Pe, !0), Wt({ data: De, filters: pn(), objectId: Pe }), K("endobj"), he;
|
|
|
20088
20088
|
if (!jt.console) throw new Error(_);
|
|
20089
20089
|
jt.console.error(_, ne), jt.alert && alert(_);
|
|
20090
20090
|
}
|
|
20091
|
-
}, Io.foo.bar = Io, Io.foo),
|
|
20091
|
+
}, Io.foo.bar = Io, Io.foo), ai = function(S) {
|
|
20092
20092
|
return Array.isArray(Fs) === !0 && Fs.indexOf(S) > -1;
|
|
20093
20093
|
};
|
|
20094
20094
|
switch (r) {
|
|
@@ -20105,7 +20105,7 @@ Q`), Fr(Pe, !0), Wt({ data: De, filters: pn(), objectId: Pe }), K("endobj"), he;
|
|
|
20105
20105
|
Vt = 72;
|
|
20106
20106
|
break;
|
|
20107
20107
|
case "px":
|
|
20108
|
-
Vt =
|
|
20108
|
+
Vt = ai("px_scaling") == 1 ? 0.75 : 96 / 72;
|
|
20109
20109
|
break;
|
|
20110
20110
|
case "pc":
|
|
20111
20111
|
case "em":
|
|
@@ -20120,20 +20120,20 @@ Q`), Fr(Pe, !0), Wt({ data: De, filters: pn(), objectId: Pe }), K("endobj"), he;
|
|
|
20120
20120
|
}
|
|
20121
20121
|
var Qr = null;
|
|
20122
20122
|
Ae(), fe();
|
|
20123
|
-
var
|
|
20123
|
+
var qh = p.__private__.getPageInfo = p.getPageInfo = function(S) {
|
|
20124
20124
|
if (isNaN(S) || S % 1 != 0) throw new Error("Invalid argument passed to jsPDF.getPageInfo");
|
|
20125
20125
|
return { objId: Rt[S].objId, pageNumber: S, pageContext: Rt[S] };
|
|
20126
20126
|
}, of = p.__private__.getPageInfoByObjId = function(S) {
|
|
20127
20127
|
if (isNaN(S) || S % 1 != 0) throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");
|
|
20128
20128
|
for (var _ in Rt) if (Rt[_].objId === S) break;
|
|
20129
|
-
return
|
|
20129
|
+
return qh(_);
|
|
20130
20130
|
}, sf = p.__private__.getCurrentPageInfo = p.getCurrentPageInfo = function() {
|
|
20131
20131
|
return { objId: Rt[W].objId, pageNumber: W, pageContext: Rt[W] };
|
|
20132
20132
|
};
|
|
20133
20133
|
p.addPage = function() {
|
|
20134
|
-
return
|
|
20134
|
+
return jh.apply(this, arguments), this;
|
|
20135
20135
|
}, p.setPage = function() {
|
|
20136
|
-
return
|
|
20136
|
+
return Gh.apply(this, arguments), ot.call(this, Xe[W]), this;
|
|
20137
20137
|
}, p.insertPage = function(S) {
|
|
20138
20138
|
return this.addPage(), this.movePage(W, S), this;
|
|
20139
20139
|
}, p.movePage = function(S, _) {
|
|
@@ -20158,19 +20158,19 @@ Q`), Fr(Pe, !0), Wt({ data: De, filters: pn(), objectId: Pe }), K("endobj"), he;
|
|
|
20158
20158
|
}
|
|
20159
20159
|
if (arguments[3] instanceof Dt == 0 ? (wt = arguments[4], xt = arguments[5], En(bn = arguments[3]) === "object" && bn !== null || (typeof wt == "string" && (xt = wt, wt = null), typeof bn == "string" && (xt = bn, bn = null), typeof bn == "number" && (wt = bn, bn = null), he = { flags: bn, angle: wt, align: xt })) : (D("The transform parameter of text() with a Matrix value"), zn = Pe), isNaN(_) || isNaN(ne) || S == null) throw new Error("Invalid arguments passed to jsPDF.text");
|
|
20160
20160
|
if (S.length === 0) return _n;
|
|
20161
|
-
var lr, hr = "", so = typeof he.lineHeightFactor == "number" ? he.lineHeightFactor : Sa,
|
|
20161
|
+
var lr, hr = "", so = typeof he.lineHeightFactor == "number" ? he.lineHeightFactor : Sa, ui = _n.internal.scaleFactor;
|
|
20162
20162
|
function Dl(qn) {
|
|
20163
20163
|
return qn = qn.split(" ").join(Array(he.TabLen || 9).join(" ")), Lo(qn, bn);
|
|
20164
20164
|
}
|
|
20165
20165
|
function La(qn) {
|
|
20166
|
-
for (var Vn, br = qn.concat(), _r = [],
|
|
20166
|
+
for (var Vn, br = qn.concat(), _r = [], pi = br.length; pi--; ) typeof (Vn = br.shift()) == "string" ? _r.push(Vn) : Array.isArray(qn) && (Vn.length === 1 || Vn[1] === void 0 && Vn[2] === void 0) ? _r.push(Vn[0]) : _r.push([Vn[0], Vn[1], Vn[2]]);
|
|
20167
20167
|
return _r;
|
|
20168
20168
|
}
|
|
20169
20169
|
function Ca(qn, Vn) {
|
|
20170
20170
|
var br;
|
|
20171
20171
|
if (typeof qn == "string") br = Vn(qn)[0];
|
|
20172
20172
|
else if (Array.isArray(qn)) {
|
|
20173
|
-
for (var _r,
|
|
20173
|
+
for (var _r, pi, Xl = qn.concat(), _c = [], od = Xl.length; od--; ) typeof (_r = Xl.shift()) == "string" ? _c.push(Vn(_r)[0]) : Array.isArray(_r) && typeof _r[0] == "string" && (pi = Vn(_r[0], _r[1], _r[2]), _c.push([pi[0], pi[1], pi[2]]));
|
|
20174
20174
|
br = _c;
|
|
20175
20175
|
}
|
|
20176
20176
|
return br;
|
|
@@ -20209,8 +20209,8 @@ Q`), Fr(Pe, !0), Wt({ data: De, filters: pn(), objectId: Pe }), K("endobj"), he;
|
|
|
20209
20209
|
N !== T || zn || (zn = ns), (Kt = he.charSpace || Lc) !== void 0 && (hr += H(Y(Kt)) + ` Tc
|
|
20210
20210
|
`, this.setCharSpace(this.getCharSpace() || 0)), (Br = he.horizontalScale) !== void 0 && (hr += H(100 * Br) + ` Tz
|
|
20211
20211
|
`), he.lang;
|
|
20212
|
-
var bo = -1,
|
|
20213
|
-
switch (
|
|
20212
|
+
var bo = -1, nd = he.renderingMode !== void 0 ? he.renderingMode : he.stroke, kc = _n.internal.getCurrentPageInfo().pageContext;
|
|
20213
|
+
switch (nd) {
|
|
20214
20214
|
case 0:
|
|
20215
20215
|
case !1:
|
|
20216
20216
|
case "fill":
|
|
@@ -20245,14 +20245,14 @@ Q`), Fr(Pe, !0), Wt({ data: De, filters: pn(), objectId: Pe }), K("endobj"), he;
|
|
|
20245
20245
|
case "addToPathForClipping":
|
|
20246
20246
|
bo = 7;
|
|
20247
20247
|
}
|
|
20248
|
-
var
|
|
20248
|
+
var rd = kc.usedRenderingMode !== void 0 ? kc.usedRenderingMode : -1;
|
|
20249
20249
|
bo !== -1 ? hr += bo + ` Tr
|
|
20250
|
-
` :
|
|
20250
|
+
` : rd !== -1 && (hr += `0 Tr
|
|
20251
20251
|
`), bo !== -1 && (kc.usedRenderingMode = bo), xt = he.align || "left";
|
|
20252
20252
|
var rs, ka = Ge * so, Ol = _n.internal.pageSize.getWidth(), Bc = ln[mt];
|
|
20253
20253
|
Kt = he.charSpace || Lc, nn = he.maxWidth || 0, bn = Object.assign({ autoencode: !0, noBOM: !0 }, he.flags);
|
|
20254
20254
|
var Ba = [], Hl = function(qn) {
|
|
20255
|
-
return _n.getStringUnitWidth(qn, { font: Bc, charSpace: Kt, fontSize: Ge, doKerning: !1 }) * Ge /
|
|
20255
|
+
return _n.getStringUnitWidth(qn, { font: Bc, charSpace: Kt, fontSize: Ge, doKerning: !1 }) * Ge / ui;
|
|
20256
20256
|
};
|
|
20257
20257
|
if (Object.prototype.toString.call(S) === "[object Array]") {
|
|
20258
20258
|
var Po;
|
|
@@ -20260,20 +20260,20 @@ Q`), Fr(Pe, !0), Wt({ data: De, filters: pn(), objectId: Pe }), K("endobj"), he;
|
|
|
20260
20260
|
var Co, Ec = 0;
|
|
20261
20261
|
if (xt === "right") {
|
|
20262
20262
|
_ -= rs[0], S = [], io = $e.length;
|
|
20263
|
-
for (var Gi = 0; Gi < io; Gi++) Gi === 0 ? (Co =
|
|
20263
|
+
for (var Gi = 0; Gi < io; Gi++) Gi === 0 ? (Co = ci(_), Po = li(ne)) : (Co = Y(Ec - rs[Gi]), Po = -ka), S.push([$e[Gi], Co, Po]), Ec = rs[Gi];
|
|
20264
20264
|
} else if (xt === "center") {
|
|
20265
20265
|
_ -= rs[0] / 2, S = [], io = $e.length;
|
|
20266
|
-
for (var Ui = 0; Ui < io; Ui++) Ui === 0 ? (Co =
|
|
20266
|
+
for (var Ui = 0; Ui < io; Ui++) Ui === 0 ? (Co = ci(_), Po = li(ne)) : (Co = Y((Ec - rs[Ui]) / 2), Po = -ka), S.push([$e[Ui], Co, Po]), Ec = rs[Ui];
|
|
20267
20267
|
} else if (xt === "left") {
|
|
20268
20268
|
S = [], io = $e.length;
|
|
20269
20269
|
for (var Rc = 0; Rc < io; Rc++) S.push($e[Rc]);
|
|
20270
20270
|
} else if (xt === "justify" && Bc.encoding === "Identity-H") {
|
|
20271
20271
|
S = [], io = $e.length, nn = nn !== 0 ? nn : Ol;
|
|
20272
|
-
for (var Ea = 0, Er = 0; Er < io; Er++) if (Po = Er === 0 ?
|
|
20272
|
+
for (var Ea = 0, Er = 0; Er < io; Er++) if (Po = Er === 0 ? li(ne) : -ka, Co = Er === 0 ? ci(_) : Ea, Er < io - 1) {
|
|
20273
20273
|
var Pf = Y((nn - rs[Er]) / ($e[Er].split(" ").length - 1)), Ws = $e[Er].split(" ");
|
|
20274
20274
|
S.push([Ws[0] + " ", Co, Po]), Ea = 0;
|
|
20275
20275
|
for (var gs = 1; gs < Ws.length; gs++) {
|
|
20276
|
-
var Ra = (Hl(Ws[gs - 1] + " " + Ws[gs]) - Hl(Ws[gs])) *
|
|
20276
|
+
var Ra = (Hl(Ws[gs - 1] + " " + Ws[gs]) - Hl(Ws[gs])) * ui + Pf;
|
|
20277
20277
|
gs == Ws.length - 1 ? S.push([Ws[gs], Ra, 0]) : S.push([Ws[gs] + " ", Ra, 0]), Ea -= Ra;
|
|
20278
20278
|
}
|
|
20279
20279
|
} else S.push([$e[Er], Co, Po]);
|
|
@@ -20281,7 +20281,7 @@ Q`), Fr(Pe, !0), Wt({ data: De, filters: pn(), objectId: Pe }), K("endobj"), he;
|
|
|
20281
20281
|
} else {
|
|
20282
20282
|
if (xt !== "justify") throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');
|
|
20283
20283
|
for (S = [], io = $e.length, nn = nn !== 0 ? nn : Ol, Er = 0; Er < io; Er++) {
|
|
20284
|
-
Po = Er === 0 ?
|
|
20284
|
+
Po = Er === 0 ? li(ne) : -ka, Co = Er === 0 ? ci(_) : 0;
|
|
20285
20285
|
var zl = $e[Er].split(" ").length - 1, Wl = zl > 0 ? (nn - rs[Er]) / zl : 0;
|
|
20286
20286
|
Er < io - 1 ? Ba.push(H(Y(Wl))) : Ba.push(0), S.push([$e[Er], Co, Po]);
|
|
20287
20287
|
}
|
|
@@ -20294,23 +20294,23 @@ Q`), Fr(Pe, !0), Wt({ data: De, filters: pn(), objectId: Pe }), K("endobj"), he;
|
|
|
20294
20294
|
Fc !== "WinAnsiEncoding" && Fc !== "StandardEncoding" || (S = Ca(S, function(qn, Vn, br) {
|
|
20295
20295
|
return [Dl(qn), Vn, br];
|
|
20296
20296
|
})), $e = La(S), S = [];
|
|
20297
|
-
for (var Fa, Da, $i,
|
|
20297
|
+
for (var Fa, Da, $i, fi = Array.isArray($e[0]) ? 1 : 0, Yi = "", Dc = function(qn, Vn, br) {
|
|
20298
20298
|
var _r = "";
|
|
20299
20299
|
return br instanceof Dt ? (br = typeof he.angle == "number" ? fs(br, new Dt(1, 0, 0, 1, qn, Vn)) : fs(new Dt(1, 0, 0, 1, qn, Vn), br), N === T && (br = fs(new Dt(1, 0, 0, -1, 0, 0), br)), _r = br.join(" ") + ` Tm
|
|
20300
20300
|
`) : _r = H(qn) + " " + H(Vn) + ` Td
|
|
20301
20301
|
`, _r;
|
|
20302
20302
|
}, ao = 0; ao < $e.length; ao++) {
|
|
20303
|
-
switch (Yi = "",
|
|
20303
|
+
switch (Yi = "", fi) {
|
|
20304
20304
|
case 1:
|
|
20305
20305
|
$i = (lr ? "<" : "(") + $e[ao][0] + (lr ? ">" : ")"), Fa = parseFloat($e[ao][1]), Da = parseFloat($e[ao][2]);
|
|
20306
20306
|
break;
|
|
20307
20307
|
case 0:
|
|
20308
|
-
$i = (lr ? "<" : "(") + $e[ao] + (lr ? ">" : ")"), Fa =
|
|
20308
|
+
$i = (lr ? "<" : "(") + $e[ao] + (lr ? ">" : ")"), Fa = ci(_), Da = li(ne);
|
|
20309
20309
|
}
|
|
20310
20310
|
Ba !== void 0 && Ba[ao] !== void 0 && (Yi = Ba[ao] + ` Tw
|
|
20311
|
-
`), ao === 0 ? S.push(Yi + Dc(Fa, Da, zn) + $i) :
|
|
20311
|
+
`), ao === 0 ? S.push(Yi + Dc(Fa, Da, zn) + $i) : fi === 0 ? S.push(Yi + $i) : fi === 1 && S.push(Yi + Dc(Fa, Da, zn) + $i);
|
|
20312
20312
|
}
|
|
20313
|
-
S =
|
|
20313
|
+
S = fi === 0 ? S.join(` Tj
|
|
20314
20314
|
T* `) : S.join(` Tj
|
|
20315
20315
|
`), S += ` Tj
|
|
20316
20316
|
`;
|
|
@@ -20336,7 +20336,7 @@ T* `) : S.join(` Tj
|
|
|
20336
20336
|
p.__private__.setDefaultPathOperation = p.setDefaultPathOperation = function(S) {
|
|
20337
20337
|
return Os(S) && (h = S), this;
|
|
20338
20338
|
};
|
|
20339
|
-
var
|
|
20339
|
+
var Vh = p.__private__.getStyle = p.getStyle = function(S) {
|
|
20340
20340
|
var _ = h;
|
|
20341
20341
|
switch (S) {
|
|
20342
20342
|
case "D":
|
|
@@ -20374,7 +20374,7 @@ T* `) : S.join(` Tj
|
|
|
20374
20374
|
var Mc = function(S, _) {
|
|
20375
20375
|
En(_) === "object" ? lf(_, S) : K(S);
|
|
20376
20376
|
}, Al = function(S) {
|
|
20377
|
-
S === null || N === T && S === void 0 || (S =
|
|
20377
|
+
S === null || N === T && S === void 0 || (S = Vh(S), K(S));
|
|
20378
20378
|
};
|
|
20379
20379
|
function cf(S, _, ne, he, Pe) {
|
|
20380
20380
|
var De = new Ga(_ || this.boundingBox, ne || this.xStep, he || this.yStep, this.gState, Pe || this.matrix);
|
|
@@ -20405,7 +20405,7 @@ T* `) : S.join(` Tj
|
|
|
20405
20405
|
}
|
|
20406
20406
|
}, zi = p.moveTo = function(S, _) {
|
|
20407
20407
|
return K(H(Y(S)) + " " + H(V(_)) + " m"), this;
|
|
20408
|
-
},
|
|
20408
|
+
}, Kh = p.lineTo = function(S, _) {
|
|
20409
20409
|
return K(H(Y(S)) + " " + H(V(_)) + " l"), this;
|
|
20410
20410
|
}, Wi = p.curveTo = function(S, _, ne, he, Pe, De) {
|
|
20411
20411
|
return K([H(Y(S)), H(V(_)), H(Y(ne)), H(V(he)), H(Y(Pe)), H(V(De)), "c"].join(" ")), this;
|
|
@@ -20416,7 +20416,7 @@ T* `) : S.join(` Tj
|
|
|
20416
20416
|
}, p.__private__.lines = p.lines = function(S, _, ne, he, Pe, De) {
|
|
20417
20417
|
var $e, wt, xt, Kt, nn, bn, Br, zn, _n, Qn, lr, hr;
|
|
20418
20418
|
if (typeof S == "number" && (hr = ne, ne = _, _ = S, S = hr), he = he || [1, 1], De = De || !1, isNaN(_) || isNaN(ne) || !Array.isArray(S) || !Array.isArray(he) || !Os(Pe) || typeof De != "boolean") throw new Error("Invalid arguments passed to jsPDF.lines");
|
|
20419
|
-
for (zi(_, ne), $e = he[0], wt = he[1], Kt = S.length, Qn = _, lr = ne, xt = 0; xt < Kt; xt++) (nn = S[xt]).length === 2 ? (Qn = nn[0] * $e + Qn, lr = nn[1] * wt + lr,
|
|
20419
|
+
for (zi(_, ne), $e = he[0], wt = he[1], Kt = S.length, Qn = _, lr = ne, xt = 0; xt < Kt; xt++) (nn = S[xt]).length === 2 ? (Qn = nn[0] * $e + Qn, lr = nn[1] * wt + lr, Kh(Qn, lr)) : (bn = nn[0] * $e + Qn, Br = nn[1] * wt + lr, zn = nn[2] * $e + Qn, _n = nn[3] * wt + lr, Qn = nn[4] * $e + Qn, lr = nn[5] * wt + lr, Wi(bn, Br, zn, _n, Qn, lr));
|
|
20420
20420
|
return De && Sc(), Al(Pe), this;
|
|
20421
20421
|
}, p.path = function(S) {
|
|
20422
20422
|
for (var _ = 0; _ < S.length; _++) {
|
|
@@ -20426,7 +20426,7 @@ T* `) : S.join(` Tj
|
|
|
20426
20426
|
zi(he[0], he[1]);
|
|
20427
20427
|
break;
|
|
20428
20428
|
case "l":
|
|
20429
|
-
|
|
20429
|
+
Kh(he[0], he[1]);
|
|
20430
20430
|
break;
|
|
20431
20431
|
case "c":
|
|
20432
20432
|
Wi.apply(this, he);
|
|
@@ -20454,10 +20454,10 @@ T* `) : S.join(` Tj
|
|
|
20454
20454
|
if (isNaN(S) || isNaN(_) || isNaN(ne) || !Os(he)) throw new Error("Invalid arguments passed to jsPDF.circle");
|
|
20455
20455
|
return this.ellipse(S, _, ne, ne, he);
|
|
20456
20456
|
}, p.setFont = function(S, _, ne) {
|
|
20457
|
-
return ne && (_ = $(_, ne)), mt =
|
|
20457
|
+
return ne && (_ = $(_, ne)), mt = $h(S, _, { disableWarning: !1 }), this;
|
|
20458
20458
|
};
|
|
20459
20459
|
var df = p.__private__.getFont = p.getFont = function() {
|
|
20460
|
-
return ln[
|
|
20460
|
+
return ln[$h.apply(p, arguments)];
|
|
20461
20461
|
};
|
|
20462
20462
|
p.__private__.getFontList = p.getFontList = function() {
|
|
20463
20463
|
var S, _, ne = {};
|
|
@@ -20490,14 +20490,14 @@ T* `) : S.join(` Tj
|
|
|
20490
20490
|
return Sa;
|
|
20491
20491
|
};
|
|
20492
20492
|
gf(c.lineHeight);
|
|
20493
|
-
var
|
|
20493
|
+
var ci = p.__private__.getHorizontalCoordinate = function(S) {
|
|
20494
20494
|
return Y(S);
|
|
20495
|
-
},
|
|
20495
|
+
}, li = p.__private__.getVerticalCoordinate = function(S) {
|
|
20496
20496
|
return N === T ? S : Rt[W].mediaBox.topRightY - Rt[W].mediaBox.bottomLeftY - Y(S);
|
|
20497
20497
|
}, xf = p.__private__.getHorizontalCoordinateString = p.getHorizontalCoordinateString = function(S) {
|
|
20498
|
-
return H(
|
|
20498
|
+
return H(ci(S));
|
|
20499
20499
|
}, mf = p.__private__.getVerticalCoordinateString = p.getVerticalCoordinateString = function(S) {
|
|
20500
|
-
return H(
|
|
20500
|
+
return H(li(S));
|
|
20501
20501
|
}, Ic = c.strokeColor || "0 G";
|
|
20502
20502
|
p.__private__.getStrokeColor = p.getDrawColor = function() {
|
|
20503
20503
|
return kt(Ic);
|
|
@@ -20602,10 +20602,10 @@ T* `) : S.join(` Tj
|
|
|
20602
20602
|
isNaN($e) || (De = parseFloat($e));
|
|
20603
20603
|
} }), this;
|
|
20604
20604
|
}, Cc = function() {
|
|
20605
|
-
this.page = on, this.currentPage = W, this.pages = Xe.slice(0), this.pagesContext = Rt.slice(0), this.x = It, this.y = cr, this.matrix = mn, this.width =
|
|
20605
|
+
this.page = on, this.currentPage = W, this.pages = Xe.slice(0), this.pagesContext = Rt.slice(0), this.x = It, this.y = cr, this.matrix = mn, this.width = Qh(W), this.height = di(W), this.outputDestination = Ue, this.id = "", this.objectNumber = -1;
|
|
20606
20606
|
};
|
|
20607
20607
|
Cc.prototype.restore = function() {
|
|
20608
|
-
on = this.page, W = this.currentPage, Rt = this.pagesContext, Xe = this.pages, It = this.x, cr = this.y, mn = this.matrix,
|
|
20608
|
+
on = this.page, W = this.currentPage, Rt = this.pagesContext, Xe = this.pages, It = this.x, cr = this.y, mn = this.matrix, hi(W, this.width), Zh(W, this.height), Ue = this.outputDestination;
|
|
20609
20609
|
};
|
|
20610
20610
|
var Fl = function(S, _, ne, he, Pe) {
|
|
20611
20611
|
Ho.push(new Cc()), on = W = 0, Xe = [], It = S, cr = _, mn = Pe, Cl([ne, he]);
|
|
@@ -20639,49 +20639,49 @@ T* `) : S.join(` Tj
|
|
|
20639
20639
|
var ne, he, Pe;
|
|
20640
20640
|
for (Pe = _.length - 1; Pe !== -1; Pe--) ne = _[Pe][0], he = _[Pe][1], S.subscribe.apply(S, [ne].concat(typeof he == "function" ? [he] : he));
|
|
20641
20641
|
}(In, Mt.API.events) : p[Tc] = Mt.API[Tc]);
|
|
20642
|
-
function
|
|
20642
|
+
function Qh(S) {
|
|
20643
20643
|
return Rt[S].mediaBox.topRightX - Rt[S].mediaBox.bottomLeftX;
|
|
20644
20644
|
}
|
|
20645
|
-
function
|
|
20645
|
+
function hi(S, _) {
|
|
20646
20646
|
Rt[S].mediaBox.topRightX = _ + Rt[S].mediaBox.bottomLeftX;
|
|
20647
20647
|
}
|
|
20648
|
-
function
|
|
20648
|
+
function di(S) {
|
|
20649
20649
|
return Rt[S].mediaBox.topRightY - Rt[S].mediaBox.bottomLeftY;
|
|
20650
20650
|
}
|
|
20651
|
-
function
|
|
20651
|
+
function Zh(S, _) {
|
|
20652
20652
|
Rt[S].mediaBox.topRightY = _ + Rt[S].mediaBox.bottomLeftY;
|
|
20653
20653
|
}
|
|
20654
|
-
var
|
|
20655
|
-
return
|
|
20656
|
-
},
|
|
20657
|
-
|
|
20654
|
+
var Jh = p.getPageWidth = function(S) {
|
|
20655
|
+
return Qh(S = S || W) / Vt;
|
|
20656
|
+
}, ed = p.setPageWidth = function(S, _) {
|
|
20657
|
+
hi(S, _ * Vt);
|
|
20658
20658
|
}, Ia = p.getPageHeight = function(S) {
|
|
20659
|
-
return
|
|
20660
|
-
},
|
|
20661
|
-
|
|
20659
|
+
return di(S = S || W) / Vt;
|
|
20660
|
+
}, td = p.setPageHeight = function(S, _) {
|
|
20661
|
+
Zh(S, _ * Vt);
|
|
20662
20662
|
};
|
|
20663
|
-
return p.internal = { pdfEscape: Lo, getStyle:
|
|
20664
|
-
return
|
|
20663
|
+
return p.internal = { pdfEscape: Lo, getStyle: Vh, getFont: df, getFontSize: ft, getCharSpace: bf, getTextColor: wf, getLineHeight: pf, getLineHeightFactor: yf, getLineWidth: uf, write: Qe, getHorizontalCoordinate: ci, getVerticalCoordinate: li, getCoordinateString: xf, getVerticalCoordinateString: mf, collections: {}, newObject: nr, newAdditionalObject: le, newObjectDeferred: Nr, newObjectDeferredBegin: Fr, getFilters: pn, putStream: Wt, events: In, scaleFactor: Vt, pageSize: { getWidth: function() {
|
|
20664
|
+
return Jh(W);
|
|
20665
20665
|
}, setWidth: function(S) {
|
|
20666
|
-
|
|
20666
|
+
ed(W, S);
|
|
20667
20667
|
}, getHeight: function() {
|
|
20668
20668
|
return Ia(W);
|
|
20669
20669
|
}, setHeight: function(S) {
|
|
20670
|
-
|
|
20670
|
+
td(W, S);
|
|
20671
20671
|
} }, encryptionOptions: d, encryption: Qr, getEncryptor: function(S) {
|
|
20672
20672
|
return d !== null ? Qr.encryptor(S, 0) : function(_) {
|
|
20673
20673
|
return _;
|
|
20674
20674
|
};
|
|
20675
|
-
}, output: vc, getNumberOfPages:
|
|
20675
|
+
}, output: vc, getNumberOfPages: Uh, get pages() {
|
|
20676
20676
|
return Xe;
|
|
20677
|
-
}, out: K, f2: E, f3: R, getPageInfo:
|
|
20678
|
-
return
|
|
20677
|
+
}, out: K, f2: E, f3: R, getPageInfo: qh, getPageInfoByObjId: of, getCurrentPageInfo: sf, getPDFVersion: y, Point: Ma, Rectangle: Rl, Matrix: Dt, hasHotfix: ai }, Object.defineProperty(p.internal.pageSize, "width", { get: function() {
|
|
20678
|
+
return Jh(W);
|
|
20679
20679
|
}, set: function(S) {
|
|
20680
|
-
|
|
20680
|
+
ed(W, S);
|
|
20681
20681
|
}, enumerable: !0, configurable: !0 }), Object.defineProperty(p.internal.pageSize, "height", { get: function() {
|
|
20682
20682
|
return Ia(W);
|
|
20683
20683
|
}, set: function(S) {
|
|
20684
|
-
|
|
20684
|
+
td(W, S);
|
|
20685
20685
|
}, enumerable: !0, configurable: !0 }), (function(S) {
|
|
20686
20686
|
for (var _ = 0, ne = ut.length; _ < ne; _++) {
|
|
20687
20687
|
var he = wc.call(this, S[_][0], S[_][1], S[_][2], ut[_][3], !0);
|
|
@@ -20690,7 +20690,7 @@ T* `) : S.join(` Tj
|
|
|
20690
20690
|
Hi({ id: he, fontName: Pe[0], fontStyle: Pe[1] || "" });
|
|
20691
20691
|
}
|
|
20692
20692
|
In.publish("addFonts", { fonts: ln, dictionary: hn });
|
|
20693
|
-
}).call(p, ut), mt = "F1",
|
|
20693
|
+
}).call(p, ut), mt = "F1", jh(o, e), In.publish("initialized"), p;
|
|
20694
20694
|
}
|
|
20695
20695
|
$c.prototype.lsbFirstWord = function(c) {
|
|
20696
20696
|
return String.fromCharCode(255 & c, c >> 8 & 255, c >> 16 & 255, c >> 24 & 255);
|
|
@@ -20786,17 +20786,17 @@ var Fo = function(c, n) {
|
|
|
20786
20786
|
var l = function(E, R, Y) {
|
|
20787
20787
|
if (E + 1 < o.length) {
|
|
20788
20788
|
var V = R + " " + o[E + 1][0];
|
|
20789
|
-
return
|
|
20789
|
+
return Ed(V, c, Y).width <= a - 4;
|
|
20790
20790
|
}
|
|
20791
20791
|
return !1;
|
|
20792
20792
|
};
|
|
20793
20793
|
s++;
|
|
20794
20794
|
e: for (; s > 0; ) {
|
|
20795
20795
|
n = "", s--;
|
|
20796
|
-
var h, d, u =
|
|
20796
|
+
var h, d, u = Ed("3", c, s).height, f = c.multiline ? i - s : (i - u) / 2, p = f += 2, g = 0, y = 0, b = 0;
|
|
20797
20797
|
if (s <= 0) {
|
|
20798
20798
|
n = `(...) Tj
|
|
20799
|
-
`, n += "% Width of Text: " +
|
|
20799
|
+
`, n += "% Width of Text: " + Ed(n, c, s = 12).width + ", FieldWidth:" + a + `
|
|
20800
20800
|
`;
|
|
20801
20801
|
break;
|
|
20802
20802
|
}
|
|
@@ -20834,7 +20834,7 @@ var Fo = function(c, n) {
|
|
|
20834
20834
|
}
|
|
20835
20835
|
H += ee[0] + " ";
|
|
20836
20836
|
}
|
|
20837
|
-
switch (H = H.substr(H.length - 1) == " " ? H.substr(0, H.length - 1) : H, d =
|
|
20837
|
+
switch (H = H.substr(H.length - 1) == " " ? H.substr(0, H.length - 1) : H, d = Ed(H, c, s).width, c.textAlign) {
|
|
20838
20838
|
case "right":
|
|
20839
20839
|
h = a - d - 2;
|
|
20840
20840
|
break;
|
|
@@ -20852,7 +20852,7 @@ var Fo = function(c, n) {
|
|
|
20852
20852
|
break;
|
|
20853
20853
|
}
|
|
20854
20854
|
return r.text = n, r.fontSize = s, r;
|
|
20855
|
-
},
|
|
20855
|
+
}, Ed = function(c, n, e) {
|
|
20856
20856
|
var r = n.scope.internal.getFont(n.fontName, n.fontStyle), o = n.scope.getStringUnitWidth(c, { font: r, fontSize: parseFloat(e), charSpace: 0 }) * parseFloat(e);
|
|
20857
20857
|
return { height: n.scope.getStringUnitWidth("3", { font: r, fontSize: parseFloat(e), charSpace: 0 }) * parseFloat(e) * 1.5, width: o };
|
|
20858
20858
|
}, LI = { fields: [], xForms: [], acroFormDictionaryRoot: null, printedOut: !1, internal: null, isInitialized: !1 }, CI = function(c, n) {
|
|
@@ -21057,7 +21057,7 @@ var Es = function c() {
|
|
|
21057
21057
|
var s = null;
|
|
21058
21058
|
Object.defineProperty(this, "T", { enumerable: !0, configurable: !1, get: function() {
|
|
21059
21059
|
if (!s || s.length < 1) {
|
|
21060
|
-
if (this instanceof
|
|
21060
|
+
if (this instanceof au) return;
|
|
21061
21061
|
s = "FieldObject" + c.FieldNum++;
|
|
21062
21062
|
}
|
|
21063
21063
|
var w = function(M) {
|
|
@@ -21103,7 +21103,7 @@ var Es = function c() {
|
|
|
21103
21103
|
} });
|
|
21104
21104
|
var u = "/F1 0 Tf 0 g";
|
|
21105
21105
|
Object.defineProperty(this, "DA", { enumerable: !0, configurable: !1, get: function() {
|
|
21106
|
-
if (!(!u || this instanceof
|
|
21106
|
+
if (!(!u || this instanceof au || this instanceof Ka)) return cp(u, this.objId, this.scope);
|
|
21107
21107
|
}, set: function(w) {
|
|
21108
21108
|
w = w.toString(), u = w;
|
|
21109
21109
|
} });
|
|
@@ -21260,10 +21260,10 @@ var sl = function() {
|
|
|
21260
21260
|
ol.call(this), this.combo = !0;
|
|
21261
21261
|
};
|
|
21262
21262
|
Fo(sl, ol);
|
|
21263
|
-
var
|
|
21263
|
+
var Kd = function() {
|
|
21264
21264
|
sl.call(this), this.edit = !0;
|
|
21265
21265
|
};
|
|
21266
|
-
Fo(
|
|
21266
|
+
Fo(Kd, sl);
|
|
21267
21267
|
var Vr = function() {
|
|
21268
21268
|
Es.call(this), this.FT = "/Btn", Object.defineProperty(this, "noToggleToOff", { enumerable: !0, configurable: !0, get: function() {
|
|
21269
21269
|
return !!Mr(this.Ff, 15);
|
|
@@ -21311,10 +21311,10 @@ var Vr = function() {
|
|
|
21311
21311
|
} });
|
|
21312
21312
|
};
|
|
21313
21313
|
Fo(Vr, Es);
|
|
21314
|
-
var
|
|
21314
|
+
var Qd = function() {
|
|
21315
21315
|
Vr.call(this), this.pushButton = !0;
|
|
21316
21316
|
};
|
|
21317
|
-
Fo(
|
|
21317
|
+
Fo(Qd, Vr);
|
|
21318
21318
|
var il = function() {
|
|
21319
21319
|
Vr.call(this), this.radio = !0, this.pushButton = !1;
|
|
21320
21320
|
var c = [];
|
|
@@ -21325,7 +21325,7 @@ var il = function() {
|
|
|
21325
21325
|
} });
|
|
21326
21326
|
};
|
|
21327
21327
|
Fo(il, Vr);
|
|
21328
|
-
var
|
|
21328
|
+
var au = function() {
|
|
21329
21329
|
var c, n;
|
|
21330
21330
|
Es.call(this), Object.defineProperty(this, "Parent", { enumerable: !1, configurable: !1, get: function() {
|
|
21331
21331
|
return c;
|
|
@@ -21364,20 +21364,20 @@ var cu = function() {
|
|
|
21364
21364
|
s.substr(0, 1) === "/" && (s = s.substr(1)), e = "/" + rc(s);
|
|
21365
21365
|
} }), this.caption = "l", this.appearanceState = "Off", this._AppearanceType = gt.RadioButton.Circle, this.appearanceStreamContent = this._AppearanceType.createAppearanceStream(this.optionName);
|
|
21366
21366
|
};
|
|
21367
|
-
Fo(
|
|
21367
|
+
Fo(au, Es), il.prototype.setAppearance = function(c) {
|
|
21368
21368
|
if (!("createAppearanceStream" in c) || !("getCA" in c)) throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");
|
|
21369
21369
|
for (var n in this.Kids) if (this.Kids.hasOwnProperty(n)) {
|
|
21370
21370
|
var e = this.Kids[n];
|
|
21371
21371
|
e.appearanceStreamContent = c.createAppearanceStream(e.optionName), e.caption = c.getCA();
|
|
21372
21372
|
}
|
|
21373
21373
|
}, il.prototype.createOption = function(c) {
|
|
21374
|
-
var n = new
|
|
21374
|
+
var n = new au();
|
|
21375
21375
|
return n.Parent = this, n.optionName = c, this.Kids.push(n), NI.call(this.scope, n), n;
|
|
21376
21376
|
};
|
|
21377
|
-
var
|
|
21377
|
+
var Zd = function() {
|
|
21378
21378
|
Vr.call(this), this.fontName = "zapfdingbats", this.caption = "3", this.appearanceState = "On", this.value = "On", this.textAlign = "center", this.appearanceStreamContent = gt.CheckBox.createAppearanceStream();
|
|
21379
21379
|
};
|
|
21380
|
-
Fo(
|
|
21380
|
+
Fo(Zd, Vr);
|
|
21381
21381
|
var Ka = function() {
|
|
21382
21382
|
Es.call(this), this.FT = "/Tx", Object.defineProperty(this, "multiline", { enumerable: !0, configurable: !0, get: function() {
|
|
21383
21383
|
return !!Mr(this.Ff, 13);
|
|
@@ -21418,14 +21418,14 @@ var Ka = function() {
|
|
|
21418
21418
|
} });
|
|
21419
21419
|
};
|
|
21420
21420
|
Fo(Ka, Es);
|
|
21421
|
-
var
|
|
21421
|
+
var Jd = function() {
|
|
21422
21422
|
Ka.call(this), Object.defineProperty(this, "password", { enumerable: !0, configurable: !0, get: function() {
|
|
21423
21423
|
return !!Mr(this.Ff, 14);
|
|
21424
21424
|
}, set: function(c) {
|
|
21425
21425
|
c ? this.Ff = Ir(this.Ff, 14) : this.Ff = Lr(this.Ff, 14);
|
|
21426
21426
|
} }), this.password = !0;
|
|
21427
21427
|
};
|
|
21428
|
-
Fo(
|
|
21428
|
+
Fo(Jd, Ka);
|
|
21429
21429
|
var gt = { CheckBox: { createAppearanceStream: function() {
|
|
21430
21430
|
return { N: { On: gt.CheckBox.YesNormal }, D: { On: gt.CheckBox.YesPushDown, Off: gt.CheckBox.OffPushDown } };
|
|
21431
21431
|
}, YesPushDown: function(c) {
|
|
@@ -21517,7 +21517,7 @@ var NI = yr.addField = function(c) {
|
|
|
21517
21517
|
var n;
|
|
21518
21518
|
return (n = c).scope.internal.acroformPlugin.printedOut && (n.scope.internal.acroformPlugin.printedOut = !1, n.scope.internal.acroformPlugin.acroFormDictionaryRoot = null), n.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(n), c.page = c.scope.internal.getCurrentPageInfo().pageNumber, this;
|
|
21519
21519
|
};
|
|
21520
|
-
yr.AcroFormChoiceField = rl, yr.AcroFormListBox = ol, yr.AcroFormComboBox = sl, yr.AcroFormEditBox =
|
|
21520
|
+
yr.AcroFormChoiceField = rl, yr.AcroFormListBox = ol, yr.AcroFormComboBox = sl, yr.AcroFormEditBox = Kd, yr.AcroFormButton = Vr, yr.AcroFormPushButton = Qd, yr.AcroFormRadioButton = il, yr.AcroFormCheckBox = Zd, yr.AcroFormTextField = Ka, yr.AcroFormPasswordField = Jd, yr.AcroFormAppearance = gt, yr.AcroForm = { ChoiceField: rl, ListBox: ol, ComboBox: sl, EditBox: Kd, Button: Vr, PushButton: Qd, RadioButton: il, CheckBox: Zd, TextField: Ka, PasswordField: Jd, Appearance: gt }, Mt.AcroForm = { ChoiceField: rl, ListBox: ol, ComboBox: sl, EditBox: Kd, Button: Vr, PushButton: Qd, RadioButton: il, CheckBox: Zd, TextField: Ka, PasswordField: Jd, Appearance: gt };
|
|
21521
21521
|
Mt.AcroForm;
|
|
21522
21522
|
function $1(c) {
|
|
21523
21523
|
return c.reduce(function(n, e, r) {
|
|
@@ -21589,7 +21589,7 @@ function $1(c) {
|
|
|
21589
21589
|
}, p = function(E, R) {
|
|
21590
21590
|
if (E.nodeName === "IMG" && E.hasAttribute("src")) {
|
|
21591
21591
|
var Y = "" + E.getAttribute("src");
|
|
21592
|
-
if (Y.indexOf("data:image/") === 0) return
|
|
21592
|
+
if (Y.indexOf("data:image/") === 0) return Vd(unescape(Y).split("base64,").pop());
|
|
21593
21593
|
var V = c.loadFile(Y, !0);
|
|
21594
21594
|
if (V !== void 0) return V;
|
|
21595
21595
|
}
|
|
@@ -21606,7 +21606,7 @@ function $1(c) {
|
|
|
21606
21606
|
default:
|
|
21607
21607
|
ue = "image/jpeg";
|
|
21608
21608
|
}
|
|
21609
|
-
return
|
|
21609
|
+
return Vd(E.toDataURL(ue, 1).split("base64,").pop());
|
|
21610
21610
|
}
|
|
21611
21611
|
}, g = function(E) {
|
|
21612
21612
|
var R = this.internal.collections[n + "images"];
|
|
@@ -21685,7 +21685,7 @@ function $1(c) {
|
|
|
21685
21685
|
var ue;
|
|
21686
21686
|
Y = (ue = B(E)) !== null && ue !== void 0 ? ue : E;
|
|
21687
21687
|
try {
|
|
21688
|
-
V =
|
|
21688
|
+
V = Vd(Y);
|
|
21689
21689
|
} catch (Se) {
|
|
21690
21690
|
if (R) throw N(Y) ? new Error("atob-Error in jsPDF.convertBase64ToBinaryString " + Se.message) : new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ");
|
|
21691
21691
|
}
|
|
@@ -22090,7 +22090,7 @@ function EI(c) {
|
|
|
22090
22090
|
var n = c.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);
|
|
22091
22091
|
return n === null ? null : [n[0], c.substring(n[0].length)];
|
|
22092
22092
|
}
|
|
22093
|
-
var Xc,
|
|
22093
|
+
var Xc, Rd, Qy, Zy, Jy, hp = ["times"];
|
|
22094
22094
|
function ex(c, n, e, r, o) {
|
|
22095
22095
|
var s = 4, i = nx;
|
|
22096
22096
|
switch (o) {
|
|
@@ -22734,7 +22734,7 @@ function ax(c) {
|
|
|
22734
22734
|
D[P][0] = D[x + "0"], D[P][1] = D[x + "1"], D[P][2] = D[x + "2"], D[P][3] = D[x + "3"], D[P][4] = D[x + "4"], D[P][5] = D[x + "5"], D[P][6] = D[x + "6"], D[P][7] = D[x + "7"], D[P][8] = D[x + "8"], D[P][9] = D[x + "9"], D[P][10] = D[x + "10"], D[P][11] = D[x + "11"], D[P][12] = D[x + "12"], D[P][13] = D[x + "13"], D[P][14] = D[x + "0"], D[P][15] = D[x + "0"];
|
|
22735
22735
|
}
|
|
22736
22736
|
function Ft(x) {
|
|
22737
|
-
return x == Mf || x == If || x ==
|
|
22737
|
+
return x == Mf || x == If || x == hd || x == Lf;
|
|
22738
22738
|
}
|
|
22739
22739
|
function _t() {
|
|
22740
22740
|
this.eb = [], this.size = this.A = this.fb = 0;
|
|
@@ -22762,7 +22762,7 @@ function ax(c) {
|
|
|
22762
22762
|
function ts(x, P, I) {
|
|
22763
22763
|
var A = x.F, O = [x.J];
|
|
22764
22764
|
if (A != null) {
|
|
22765
|
-
var j = x.U, U = P.ba.S, q = U ==
|
|
22765
|
+
var j = x.U, U = P.ba.S, q = U == ld || U == hd;
|
|
22766
22766
|
P = P.ba.f.RGBA;
|
|
22767
22767
|
var Z = [0], oe = x.ka;
|
|
22768
22768
|
Z[0] = x.T, x.Kb && (oe == 0 ? --Z[0] : (--oe, O[0] -= x.width), x.j + x.ka + x.T == x.o && (Z[0] = x.o - x.j - oe));
|
|
@@ -22772,21 +22772,21 @@ function ax(c) {
|
|
|
22772
22772
|
return 0;
|
|
22773
22773
|
}
|
|
22774
22774
|
function Ho(x) {
|
|
22775
|
-
var P = x.ma, I = P.ba.S, A = 11 > I, O = I ==
|
|
22775
|
+
var P = x.ma, I = P.ba.S, A = 11 > I, O = I == ad || I == cd || I == ld || I == Sf || I == 12 || Ft(I);
|
|
22776
22776
|
if (P.memory = null, P.Ib = null, P.Jb = null, P.Nd = null, !rs(P.Oa, x, O ? 11 : 12)) return 0;
|
|
22777
|
-
if (O && Ft(I) &&
|
|
22777
|
+
if (O && Ft(I) && ui(), x.da) alert("todo:use_scaling");
|
|
22778
22778
|
else {
|
|
22779
22779
|
if (A) {
|
|
22780
22780
|
if (P.Ib = Fs, x.Kb) {
|
|
22781
22781
|
if (I = x.U + 1 >> 1, P.memory = s(x.U + 2 * I), P.memory == null) return 0;
|
|
22782
|
-
P.ec = P.memory, P.fc = 0, P.cc = P.ec, P.dc = P.fc + x.U, P.Mc = P.cc, P.Nc = P.dc + I, P.Ib = $r,
|
|
22782
|
+
P.ec = P.memory, P.fc = 0, P.cc = P.ec, P.dc = P.fc + x.U, P.Mc = P.cc, P.Nc = P.dc + I, P.Ib = $r, ui();
|
|
22783
22783
|
}
|
|
22784
22784
|
} else alert("todo:EmitYUV");
|
|
22785
22785
|
O && (P.Jb = ts, A && hr());
|
|
22786
22786
|
}
|
|
22787
22787
|
if (A && !p0) {
|
|
22788
|
-
for (x = 0; 256 > x; ++x) q2[x] = 89858 * (x - 128) +
|
|
22789
|
-
for (x = Ul; x < Nf; ++x) P = 76283 * (x - 16) +
|
|
22788
|
+
for (x = 0; 256 > x; ++x) q2[x] = 89858 * (x - 128) + ud >> dd, Q2[x] = -22014 * (x - 128) + ud, K2[x] = -45773 * (x - 128), V2[x] = 113618 * (x - 128) + ud >> dd;
|
|
22789
|
+
for (x = Ul; x < Nf; ++x) P = 76283 * (x - 16) + ud >> dd, Z2[x - Ul] = Ds(P, 255), J2[x - Ul] = Ds(P + 8 >> 4, 15);
|
|
22790
22790
|
p0 = 1;
|
|
22791
22791
|
}
|
|
22792
22792
|
return 1;
|
|
@@ -22875,10 +22875,10 @@ function ax(c) {
|
|
|
22875
22875
|
for (ge = ge.fb + x.Ma * ge.A; 0 < se--; ) {
|
|
22876
22876
|
var me = U, Ce = q, _e = O, ke = oe, Oe = ge;
|
|
22877
22877
|
switch (A) {
|
|
22878
|
-
case
|
|
22878
|
+
case id:
|
|
22879
22879
|
zl(me, Ce, _e, ke, Oe);
|
|
22880
22880
|
break;
|
|
22881
|
-
case
|
|
22881
|
+
case ad:
|
|
22882
22882
|
Wl(me, Ce, _e, ke, Oe);
|
|
22883
22883
|
break;
|
|
22884
22884
|
case Mf:
|
|
@@ -22887,16 +22887,16 @@ function ax(c) {
|
|
|
22887
22887
|
case s0:
|
|
22888
22888
|
Da(me, Ce, _e, ke, Oe);
|
|
22889
22889
|
break;
|
|
22890
|
-
case
|
|
22890
|
+
case cd:
|
|
22891
22891
|
Et(me, Ce, _e, ke, Oe, 1);
|
|
22892
22892
|
break;
|
|
22893
22893
|
case If:
|
|
22894
22894
|
Et(me, Ce, _e, ke, Oe, 1), jl(ke, Oe, 0, _e, 1, 0);
|
|
22895
22895
|
break;
|
|
22896
|
-
case
|
|
22896
|
+
case ld:
|
|
22897
22897
|
Et(me, Ce, _e, ke, Oe, 0);
|
|
22898
22898
|
break;
|
|
22899
|
-
case
|
|
22899
|
+
case hd:
|
|
22900
22900
|
Et(me, Ce, _e, ke, Oe, 0), jl(ke, Oe, 1, _e, 1, 0);
|
|
22901
22901
|
break;
|
|
22902
22902
|
case Sf:
|
|
@@ -23066,30 +23066,30 @@ function ax(c) {
|
|
|
23066
23066
|
}
|
|
23067
23067
|
var $o = jo;
|
|
23068
23068
|
for (Pr = Pn = 0; Pr < An; ++Pr) {
|
|
23069
|
-
var Kn = Uo[Pr], Yo = Kn.G, ms = Kn.H, _a = 0,
|
|
23069
|
+
var Kn = Uo[Pr], Yo = Kn.G, ms = Kn.H, _a = 0, yi = 1, eo = 0;
|
|
23070
23070
|
for (rn = 0; 5 > rn; ++rn) {
|
|
23071
23071
|
zr = a0[rn], Yo[rn] = $o, ms[rn] = Pn, !rn && 0 < pr && (zr += 1 << pr);
|
|
23072
23072
|
o: {
|
|
23073
|
-
var
|
|
23073
|
+
var pd, Af = zr, gd = Zn, $l = No, nb = $o, rb = Pn, kf = 0, Ki = gd.m, ob = Ae(Ki, 1);
|
|
23074
23074
|
if (o($l, 0, 0, Af), ob) {
|
|
23075
23075
|
var sb = Ae(Ki, 1) + 1, ib = Ae(Ki, 1), x0 = Ae(Ki, ib == 0 ? 1 : 8);
|
|
23076
23076
|
$l[x0] = 1, sb == 2 && ($l[x0 = Ae(Ki, 8)] = 1);
|
|
23077
|
-
var
|
|
23077
|
+
var yd = 1;
|
|
23078
23078
|
} else {
|
|
23079
23079
|
var m0 = s(19), w0 = Ae(Ki, 4) + 4;
|
|
23080
23080
|
if (19 < w0) {
|
|
23081
|
-
|
|
23082
|
-
var
|
|
23081
|
+
gd.a = 3;
|
|
23082
|
+
var xd = 0;
|
|
23083
23083
|
break o;
|
|
23084
23084
|
}
|
|
23085
|
-
for (
|
|
23086
|
-
var Bf = void 0, Yl = void 0, b0 =
|
|
23085
|
+
for (pd = 0; pd < w0; ++pd) m0[E2[pd]] = Ae(Ki, 3);
|
|
23086
|
+
var Bf = void 0, Yl = void 0, b0 = gd, ab = m0, md = Af, P0 = $l, Ef = 0, Qi = b0.m, v0 = 8, S0 = i(128, Y);
|
|
23087
23087
|
r: for (; R(S0, 0, 7, ab, 19); ) {
|
|
23088
23088
|
if (Ae(Qi, 1)) {
|
|
23089
23089
|
var cb = 2 + 2 * Ae(Qi, 3);
|
|
23090
|
-
if ((Bf = 2 + Ae(Qi, cb)) >
|
|
23091
|
-
} else Bf =
|
|
23092
|
-
for (Yl = 0; Yl <
|
|
23090
|
+
if ((Bf = 2 + Ae(Qi, cb)) > md) break r;
|
|
23091
|
+
} else Bf = md;
|
|
23092
|
+
for (Yl = 0; Yl < md && Bf--; ) {
|
|
23093
23093
|
ce(Qi);
|
|
23094
23094
|
var M0 = S0[0 + (127 & Q(Qi))];
|
|
23095
23095
|
re(Qi, Qi.u + M0.g);
|
|
@@ -23097,29 +23097,29 @@ function ax(c) {
|
|
|
23097
23097
|
if (16 > Oc) P0[Yl++] = Oc, Oc != 0 && (v0 = Oc);
|
|
23098
23098
|
else {
|
|
23099
23099
|
var lb = Oc == 16, I0 = Oc - 16, hb = k2[I0], L0 = Ae(Qi, A2[I0]) + hb;
|
|
23100
|
-
if (Yl + L0 >
|
|
23100
|
+
if (Yl + L0 > md) break r;
|
|
23101
23101
|
for (var db = lb ? v0 : 0; 0 < L0--; ) P0[Yl++] = db;
|
|
23102
23102
|
}
|
|
23103
23103
|
}
|
|
23104
23104
|
Ef = 1;
|
|
23105
23105
|
break r;
|
|
23106
23106
|
}
|
|
23107
|
-
Ef || (b0.a = 3),
|
|
23107
|
+
Ef || (b0.a = 3), yd = Ef;
|
|
23108
23108
|
}
|
|
23109
|
-
(
|
|
23109
|
+
(yd = yd && !Ki.h) && (kf = R(nb, rb, 8, $l, Af)), yd && kf != 0 ? xd = kf : (gd.a = 3, xd = 0);
|
|
23110
23110
|
}
|
|
23111
|
-
if (
|
|
23112
|
-
if (
|
|
23111
|
+
if (xd == 0) break n;
|
|
23112
|
+
if (yi && B2[rn] == 1 && (yi = $o[Pn].g == 0), _a += $o[Pn].g, Pn += xd, 3 >= rn) {
|
|
23113
23113
|
var ql, Rf = No[0];
|
|
23114
23114
|
for (ql = 1; ql < zr; ++ql) No[ql] > Rf && (Rf = No[ql]);
|
|
23115
23115
|
eo += Rf;
|
|
23116
23116
|
}
|
|
23117
23117
|
}
|
|
23118
|
-
if (Kn.nd =
|
|
23119
|
-
var
|
|
23120
|
-
for (
|
|
23121
|
-
var Zi =
|
|
23122
|
-
256 <=
|
|
23118
|
+
if (Kn.nd = yi, Kn.Qb = 0, yi && (Kn.qb = (Yo[3][ms[3] + 0].value << 24 | Yo[1][ms[1] + 0].value << 16 | Yo[2][ms[2] + 0].value) >>> 0, _a == 0 && 256 > Yo[0][ms[0] + 0].value && (Kn.Qb = 1, Kn.qb += Yo[0][ms[0] + 0].value << 8)), Kn.jc = !Kn.Qb && 6 > eo, Kn.jc) {
|
|
23119
|
+
var wd, xi = Kn;
|
|
23120
|
+
for (wd = 0; wd < Bc; ++wd) {
|
|
23121
|
+
var Zi = wd, Ji = xi.pd[Zi], bd = xi.G[0][xi.H[0] + Zi];
|
|
23122
|
+
256 <= bd.value ? (Ji.g = bd.g + 256, Ji.value = bd.value) : (Ji.g = 0, Ji.value = 0, Zi >>= Nr(bd, 8, Ji), Zi >>= Nr(xi.G[1][xi.H[1] + Zi], 16, Ji), Zi >>= Nr(xi.G[2][xi.H[2] + Zi], 0, Ji), Nr(xi.G[3][xi.H[3] + Zi], 24, Ji));
|
|
23123
23123
|
}
|
|
23124
23124
|
}
|
|
23125
23125
|
}
|
|
@@ -23193,20 +23193,20 @@ function ax(c) {
|
|
|
23193
23193
|
function Cl() {
|
|
23194
23194
|
this.Na = this.la = 0;
|
|
23195
23195
|
}
|
|
23196
|
-
function
|
|
23196
|
+
function jh() {
|
|
23197
23197
|
this.Sc = [0, 0], this.Eb = [0, 0], this.Qc = [0, 0], this.ia = this.lc = 0;
|
|
23198
23198
|
}
|
|
23199
23199
|
function Tl() {
|
|
23200
23200
|
this.ad = s(384), this.Za = 0, this.Ob = s(16), this.$b = this.Ad = this.ia = this.Gc = this.Hc = this.Dd = 0;
|
|
23201
23201
|
}
|
|
23202
|
-
function
|
|
23202
|
+
function Gh() {
|
|
23203
23203
|
this.uc = this.M = this.Nb = 0, this.wa = Array(new Lo()), this.Y = 0, this.ya = Array(new Tl()), this.aa = 0, this.l = new bc();
|
|
23204
23204
|
}
|
|
23205
|
-
function
|
|
23205
|
+
function Uh() {
|
|
23206
23206
|
this.y = s(16), this.f = s(8), this.ea = s(8);
|
|
23207
23207
|
}
|
|
23208
|
-
function
|
|
23209
|
-
this.cb = this.a = 0, this.sc = "", this.m = new z(), this.Od = new Dr(), this.Kc = new zo(), this.ed = new wc(), this.Qa = new ps(), this.Ic = this.$c = this.Aa = 0, this.D = new
|
|
23208
|
+
function $h() {
|
|
23209
|
+
this.cb = this.a = 0, this.sc = "", this.m = new z(), this.Od = new Dr(), this.Kc = new zo(), this.ed = new wc(), this.Qa = new ps(), this.Ic = this.$c = this.Aa = 0, this.D = new Gh(), this.Xb = this.Va = this.Hb = this.zb = this.yb = this.Ub = this.za = 0, this.Jc = i(8, z), this.ia = 0, this.pb = i(4, jh), this.Pa = new Hi(), this.Bd = this.kc = 0, this.Ac = [], this.Bc = 0, this.zc = [0, 0, 0, 0], this.Gd = Array(new Uh()), this.Hd = 0, this.rb = Array(new Cl()), this.sb = 0, this.wa = Array(new Lo()), this.Y = 0, this.oc = [], this.pc = 0, this.sa = [], this.ta = 0, this.qa = [], this.ra = 0, this.Ha = [], this.B = this.R = this.Ia = 0, this.Ec = [], this.M = this.ja = this.Vb = this.Fc = 0, this.ya = Array(new Tl()), this.L = this.aa = 0, this.gd = a([4, 2], Lo), this.ga = null, this.Fa = [], this.Cc = this.qc = this.P = 0, this.Gb = [], this.Uc = 0, this.mb = [], this.nb = 0, this.rc = [], this.Ga = this.Vc = 0;
|
|
23210
23210
|
}
|
|
23211
23211
|
function Ds(x, P) {
|
|
23212
23212
|
return 0 > x ? 0 : x > P ? P : x;
|
|
@@ -23215,13 +23215,13 @@ function ax(c) {
|
|
|
23215
23215
|
this.T = this.U = this.ka = this.height = this.width = 0, this.y = [], this.f = [], this.ea = [], this.Rc = this.fa = this.W = this.N = this.O = 0, this.ma = "void", this.put = "VP8IoPutHook", this.ac = "VP8IoSetupHook", this.bc = "VP8IoTeardownHook", this.ha = this.Kb = 0, this.data = [], this.hb = this.ib = this.da = this.o = this.j = this.va = this.v = this.Da = this.ob = this.w = 0, this.F = [], this.J = 0;
|
|
23216
23216
|
}
|
|
23217
23217
|
function rf() {
|
|
23218
|
-
var x = new
|
|
23218
|
+
var x = new $h();
|
|
23219
23219
|
return x != null && (x.a = 0, x.sc = "OK", x.cb = 0, x.Xb = 0, Gl || (Gl = Pc)), x;
|
|
23220
23220
|
}
|
|
23221
23221
|
function kr(x, P, I) {
|
|
23222
23222
|
return x.a == 0 && (x.a = P, x.sc = I, x.cb = 0), 0;
|
|
23223
23223
|
}
|
|
23224
|
-
function
|
|
23224
|
+
function Yh(x, P, I) {
|
|
23225
23225
|
return 3 <= I && x[P + 0] == 157 && x[P + 1] == 1 && x[P + 2] == 42;
|
|
23226
23226
|
}
|
|
23227
23227
|
function _s(x, P) {
|
|
@@ -23236,7 +23236,7 @@ function ax(c) {
|
|
|
23236
23236
|
var q = x.Kc;
|
|
23237
23237
|
if (U.Rb) {
|
|
23238
23238
|
if (7 > O) return kr(x, 7, "cannot parse picture header");
|
|
23239
|
-
if (!
|
|
23239
|
+
if (!Yh(I, A, O)) return kr(x, 3, "Bad code word");
|
|
23240
23240
|
q.c = 16383 & (I[A + 4] << 8 | I[A + 3]), q.Td = I[A + 4] >> 6, q.i = 16383 & (I[A + 6] << 8 | I[A + 5]), q.Ud = I[A + 6] >> 6, A += 7, O -= 7, x.za = q.c + 15 >> 4, x.Ub = q.i + 15 >> 4, P.width = q.c, P.height = q.i, P.Da = 0, P.j = 0, P.v = 0, P.va = P.width, P.o = P.height, P.da = 0, P.ib = P.width, P.hb = P.height, P.U = P.width, P.T = P.height, o((j = x.Pa).jb, 0, 255, j.jb.length), n((j = x.Qa) != null), j.Cb = 0, j.Bb = 0, j.Fb = 1, o(j.Zb, 0, 0, j.Zb.length), o(j.Lb, 0, 0, j.Lb);
|
|
23241
23241
|
}
|
|
23242
23242
|
if (U.ub > O) return kr(x, 7, "bad partition length");
|
|
@@ -23317,26 +23317,26 @@ function ax(c) {
|
|
|
23317
23317
|
function vc(x, P, I, A, O, j) {
|
|
23318
23318
|
Wo(x, P, 0, I, A + O), Wo(x, P, 1, I, A + j), Wo(x, P, 2, I, A - j), Wo(x, P, 3, I, A - O);
|
|
23319
23319
|
}
|
|
23320
|
-
function
|
|
23320
|
+
function ai(x) {
|
|
23321
23321
|
return (20091 * x >> 16) + x;
|
|
23322
23322
|
}
|
|
23323
23323
|
function Qr(x, P, I, A) {
|
|
23324
23324
|
var O, j = 0, U = s(16);
|
|
23325
23325
|
for (O = 0; 4 > O; ++O) {
|
|
23326
|
-
var q = x[P + 0] + x[P + 8], Z = x[P + 0] - x[P + 8], oe = (35468 * x[P + 4] >> 16) -
|
|
23326
|
+
var q = x[P + 0] + x[P + 8], Z = x[P + 0] - x[P + 8], oe = (35468 * x[P + 4] >> 16) - ai(x[P + 12]), ge = ai(x[P + 4]) + (35468 * x[P + 12] >> 16);
|
|
23327
23327
|
U[j + 0] = q + ge, U[j + 1] = Z + oe, U[j + 2] = Z - oe, U[j + 3] = q - ge, j += 4, P++;
|
|
23328
23328
|
}
|
|
23329
|
-
for (O = j = 0; 4 > O; ++O) q = (x = U[j + 0] + 4) + U[j + 8], Z = x - U[j + 8], oe = (35468 * U[j + 4] >> 16) -
|
|
23329
|
+
for (O = j = 0; 4 > O; ++O) q = (x = U[j + 0] + 4) + U[j + 8], Z = x - U[j + 8], oe = (35468 * U[j + 4] >> 16) - ai(U[j + 12]), Wo(I, A, 0, 0, q + (ge = ai(U[j + 4]) + (35468 * U[j + 12] >> 16))), Wo(I, A, 1, 0, Z + oe), Wo(I, A, 2, 0, Z - oe), Wo(I, A, 3, 0, q - ge), j++, A += 32;
|
|
23330
23330
|
}
|
|
23331
|
-
function
|
|
23332
|
-
var O = x[P + 0] + 4, j = 35468 * x[P + 4] >> 16, U =
|
|
23333
|
-
vc(I, A, 0, O + U, x =
|
|
23331
|
+
function qh(x, P, I, A) {
|
|
23332
|
+
var O = x[P + 0] + 4, j = 35468 * x[P + 4] >> 16, U = ai(x[P + 4]), q = 35468 * x[P + 1] >> 16;
|
|
23333
|
+
vc(I, A, 0, O + U, x = ai(x[P + 1]), q), vc(I, A, 1, O + j, x, q), vc(I, A, 2, O - j, x, q), vc(I, A, 3, O - U, x, q);
|
|
23334
23334
|
}
|
|
23335
23335
|
function of(x, P, I, A, O) {
|
|
23336
23336
|
Qr(x, P, I, A), O && Qr(x, P + 16, I, A + 4);
|
|
23337
23337
|
}
|
|
23338
23338
|
function sf(x, P, I, A) {
|
|
23339
|
-
|
|
23339
|
+
fi(x, P + 0, I, A, 1), fi(x, P + 32, I, A + 128, 1);
|
|
23340
23340
|
}
|
|
23341
23341
|
function af(x, P, I, A) {
|
|
23342
23342
|
var O;
|
|
@@ -23345,7 +23345,7 @@ function ax(c) {
|
|
|
23345
23345
|
function Os(x, P, I, A) {
|
|
23346
23346
|
x[P + 0] && ao(x, P + 0, I, A), x[P + 16] && ao(x, P + 16, I, A + 4), x[P + 32] && ao(x, P + 32, I, A + 128), x[P + 48] && ao(x, P + 48, I, A + 128 + 4);
|
|
23347
23347
|
}
|
|
23348
|
-
function
|
|
23348
|
+
function Vh(x, P, I, A) {
|
|
23349
23349
|
var O, j = s(16);
|
|
23350
23350
|
for (O = 0; 4 > O; ++O) {
|
|
23351
23351
|
var U = x[P + 0 + O] + x[P + 12 + O], q = x[P + 4 + O] + x[P + 8 + O], Z = x[P + 4 + O] - x[P + 8 + O], oe = x[P + 0 + O] - x[P + 12 + O];
|
|
@@ -23382,7 +23382,7 @@ function ax(c) {
|
|
|
23382
23382
|
var A;
|
|
23383
23383
|
for (A = 0; 16 > A; ++A) o(P, I + 32 * A, x, 16);
|
|
23384
23384
|
}
|
|
23385
|
-
function
|
|
23385
|
+
function Kh(x, P) {
|
|
23386
23386
|
var I, A = 16;
|
|
23387
23387
|
for (I = 0; 16 > I; ++I) A += x[P - 1 + 32 * I] + x[P + I - 32];
|
|
23388
23388
|
zi(A >> 5, x, P);
|
|
@@ -23424,11 +23424,11 @@ function ax(c) {
|
|
|
23424
23424
|
var I = x[P + 1 - 32], A = x[P + 2 - 32], O = x[P + 3 - 32], j = x[P + 4 - 32], U = x[P + 5 - 32], q = x[P + 6 - 32], Z = x[P + 7 - 32];
|
|
23425
23425
|
x[P + 0 + 0] = Xt(x[P + 0 - 32], I, A), x[P + 1 + 0] = x[P + 0 + 32] = Xt(I, A, O), x[P + 2 + 0] = x[P + 1 + 32] = x[P + 0 + 64] = Xt(A, O, j), x[P + 3 + 0] = x[P + 2 + 32] = x[P + 1 + 64] = x[P + 0 + 96] = Xt(O, j, U), x[P + 3 + 32] = x[P + 2 + 64] = x[P + 1 + 96] = Xt(j, U, q), x[P + 3 + 64] = x[P + 2 + 96] = Xt(U, q, Z), x[P + 3 + 96] = Xt(q, Z, Z);
|
|
23426
23426
|
}
|
|
23427
|
-
function
|
|
23427
|
+
function ci(x, P) {
|
|
23428
23428
|
var I = x[P - 1 + 0], A = x[P - 1 + 32], O = x[P - 1 + 64], j = x[P - 1 - 32], U = x[P + 0 - 32], q = x[P + 1 - 32], Z = x[P + 2 - 32], oe = x[P + 3 - 32];
|
|
23429
23429
|
x[P + 0 + 0] = x[P + 1 + 64] = j + U + 1 >> 1, x[P + 1 + 0] = x[P + 2 + 64] = U + q + 1 >> 1, x[P + 2 + 0] = x[P + 3 + 64] = q + Z + 1 >> 1, x[P + 3 + 0] = Z + oe + 1 >> 1, x[P + 0 + 96] = Xt(O, A, I), x[P + 0 + 64] = Xt(A, I, j), x[P + 0 + 32] = x[P + 1 + 96] = Xt(I, j, U), x[P + 1 + 32] = x[P + 2 + 96] = Xt(j, U, q), x[P + 2 + 32] = x[P + 3 + 96] = Xt(U, q, Z), x[P + 3 + 32] = Xt(q, Z, oe);
|
|
23430
23430
|
}
|
|
23431
|
-
function
|
|
23431
|
+
function li(x, P) {
|
|
23432
23432
|
var I = x[P + 0 - 32], A = x[P + 1 - 32], O = x[P + 2 - 32], j = x[P + 3 - 32], U = x[P + 4 - 32], q = x[P + 5 - 32], Z = x[P + 6 - 32], oe = x[P + 7 - 32];
|
|
23433
23433
|
x[P + 0 + 0] = I + A + 1 >> 1, x[P + 1 + 0] = x[P + 0 + 64] = A + O + 1 >> 1, x[P + 2 + 0] = x[P + 1 + 64] = O + j + 1 >> 1, x[P + 3 + 0] = x[P + 2 + 64] = j + U + 1 >> 1, x[P + 0 + 32] = Xt(I, A, O), x[P + 1 + 32] = x[P + 0 + 96] = Xt(A, O, j), x[P + 2 + 32] = x[P + 1 + 96] = Xt(O, j, U), x[P + 3 + 32] = x[P + 2 + 96] = Xt(j, U, q), x[P + 3 + 64] = Xt(U, q, Z), x[P + 3 + 96] = Xt(q, Z, oe);
|
|
23434
23434
|
}
|
|
@@ -23471,8 +23471,8 @@ function ax(c) {
|
|
|
23471
23471
|
Hs(128, x, P);
|
|
23472
23472
|
}
|
|
23473
23473
|
function Xi(x, P, I) {
|
|
23474
|
-
var A = x[P - I], O = x[P + 0], j = 3 * (O - A) + vf[1020 + x[P - 2 * I] - x[P + I]], U =
|
|
23475
|
-
x[P - I] = Xo[255 + A +
|
|
23474
|
+
var A = x[P - I], O = x[P + 0], j = 3 * (O - A) + vf[1020 + x[P - 2 * I] - x[P + I]], U = sd[112 + (j + 4 >> 3)];
|
|
23475
|
+
x[P - I] = Xo[255 + A + sd[112 + (j + 3 >> 3)]], x[P + 0] = Xo[255 + O - U];
|
|
23476
23476
|
}
|
|
23477
23477
|
function El(x, P, I, A) {
|
|
23478
23478
|
var O = x[P + 0], j = x[P + I];
|
|
@@ -23497,11 +23497,11 @@ function ax(c) {
|
|
|
23497
23497
|
var O;
|
|
23498
23498
|
for (O = 3; 0 < O; --O) Cc(x, P += 4 * I, I, A);
|
|
23499
23499
|
}
|
|
23500
|
-
function
|
|
23500
|
+
function Qh(x, P, I, A) {
|
|
23501
23501
|
var O;
|
|
23502
23502
|
for (O = 3; 0 < O; --O) Fl(x, P += 4, I, A);
|
|
23503
23503
|
}
|
|
23504
|
-
function
|
|
23504
|
+
function hi(x, P, I, A, O, j, U, q) {
|
|
23505
23505
|
for (j = 2 * j + 1; 0 < O--; ) {
|
|
23506
23506
|
if (Rl(x, P, I, j, U)) if (El(x, P, I, q)) Xi(x, P, I);
|
|
23507
23507
|
else {
|
|
@@ -23511,41 +23511,41 @@ function ax(c) {
|
|
|
23511
23511
|
P += A;
|
|
23512
23512
|
}
|
|
23513
23513
|
}
|
|
23514
|
-
function
|
|
23514
|
+
function di(x, P, I, A, O, j, U, q) {
|
|
23515
23515
|
for (j = 2 * j + 1; 0 < O--; ) {
|
|
23516
23516
|
if (Rl(x, P, I, j, U)) if (El(x, P, I, q)) Xi(x, P, I);
|
|
23517
23517
|
else {
|
|
23518
|
-
var Z = x, oe = P, ge = I, Be = Z[oe - ge], se = Z[oe + 0], me = Z[oe + ge], Ce =
|
|
23518
|
+
var Z = x, oe = P, ge = I, Be = Z[oe - ge], se = Z[oe + 0], me = Z[oe + ge], Ce = sd[112 + (4 + (_e = 3 * (se - Be)) >> 3)], _e = sd[112 + (_e + 3 >> 3)], ke = Ce + 1 >> 1;
|
|
23519
23519
|
Z[oe - 2 * ge] = Xo[255 + Z[oe - 2 * ge] + ke], Z[oe - ge] = Xo[255 + Be + _e], Z[oe + 0] = Xo[255 + se - Ce], Z[oe + ge] = Xo[255 + me - ke];
|
|
23520
23520
|
}
|
|
23521
23521
|
P += A;
|
|
23522
23522
|
}
|
|
23523
23523
|
}
|
|
23524
|
+
function Zh(x, P, I, A, O, j) {
|
|
23525
|
+
hi(x, P, I, 1, 16, A, O, j);
|
|
23526
|
+
}
|
|
23524
23527
|
function Jh(x, P, I, A, O, j) {
|
|
23525
|
-
|
|
23528
|
+
hi(x, P, 1, I, 16, A, O, j);
|
|
23526
23529
|
}
|
|
23527
23530
|
function ed(x, P, I, A, O, j) {
|
|
23528
|
-
di(x, P, 1, I, 16, A, O, j);
|
|
23529
|
-
}
|
|
23530
|
-
function td(x, P, I, A, O, j) {
|
|
23531
23531
|
var U;
|
|
23532
|
-
for (U = 3; 0 < U; --U)
|
|
23532
|
+
for (U = 3; 0 < U; --U) di(x, P += 4 * I, I, 1, 16, A, O, j);
|
|
23533
23533
|
}
|
|
23534
23534
|
function Ia(x, P, I, A, O, j) {
|
|
23535
23535
|
var U;
|
|
23536
|
-
for (U = 3; 0 < U; --U)
|
|
23536
|
+
for (U = 3; 0 < U; --U) di(x, P += 4, 1, I, 16, A, O, j);
|
|
23537
23537
|
}
|
|
23538
|
-
function
|
|
23539
|
-
|
|
23538
|
+
function td(x, P, I, A, O, j, U, q) {
|
|
23539
|
+
hi(x, P, O, 1, 8, j, U, q), hi(I, A, O, 1, 8, j, U, q);
|
|
23540
23540
|
}
|
|
23541
23541
|
function S(x, P, I, A, O, j, U, q) {
|
|
23542
|
-
|
|
23542
|
+
hi(x, P, 1, O, 8, j, U, q), hi(I, A, 1, O, 8, j, U, q);
|
|
23543
23543
|
}
|
|
23544
23544
|
function _(x, P, I, A, O, j, U, q) {
|
|
23545
|
-
|
|
23545
|
+
di(x, P + 4 * O, O, 1, 8, j, U, q), di(I, A + 4 * O, O, 1, 8, j, U, q);
|
|
23546
23546
|
}
|
|
23547
23547
|
function ne(x, P, I, A, O, j, U, q) {
|
|
23548
|
-
|
|
23548
|
+
di(x, P + 4, 1, O, 8, j, U, q), di(I, A + 4, 1, O, 8, j, U, q);
|
|
23549
23549
|
}
|
|
23550
23550
|
function he() {
|
|
23551
23551
|
this.ba = new on(), this.ec = [], this.cc = [], this.Mc = [], this.Dc = this.Nc = this.dc = this.fc = 0, this.Oa = new In(), this.memory = 0, this.Ib = "OutputFunc", this.Jb = "OutputAlphaFunc", this.Nd = "OutputRowFunc";
|
|
@@ -23709,8 +23709,8 @@ function ax(c) {
|
|
|
23709
23709
|
1 & et || (bt = 3 * pt + dn + 131074 >> 2, P(A[O + et - 1], 255 & bt, bt >> 16, _e, ke + (et - 1) * I), j != null && (bt = 3 * dn + pt + 131074 >> 2, P(j[U + et - 1], 255 & bt, bt >> 16, Oe, We + (et - 1) * I)));
|
|
23710
23710
|
};
|
|
23711
23711
|
}
|
|
23712
|
-
function
|
|
23713
|
-
ss[
|
|
23712
|
+
function ui() {
|
|
23713
|
+
ss[id] = G2, ss[ad] = h0, ss[s0] = U2, ss[cd] = d0, ss[ld] = u0, ss[Sf] = f0, ss[i0] = $2, ss[Mf] = h0, ss[If] = d0, ss[hd] = u0, ss[Lf] = f0;
|
|
23714
23714
|
}
|
|
23715
23715
|
function Dl(x) {
|
|
23716
23716
|
return x & -16384 ? 0 > x ? 0 : 255 : x >> Y2;
|
|
@@ -23756,10 +23756,10 @@ function ax(c) {
|
|
|
23756
23756
|
function bo(x, P, I) {
|
|
23757
23757
|
return I == 0 ? x == 0 ? P == 0 ? 6 : 5 : P == 0 ? 4 : 0 : I;
|
|
23758
23758
|
}
|
|
23759
|
-
function
|
|
23759
|
+
function nd(x, P, I, A, O) {
|
|
23760
23760
|
switch (x >>> 30) {
|
|
23761
23761
|
case 3:
|
|
23762
|
-
|
|
23762
|
+
fi(P, I, A, O, 0);
|
|
23763
23763
|
break;
|
|
23764
23764
|
case 2:
|
|
23765
23765
|
Yi(P, I, A, O);
|
|
@@ -23782,13 +23782,13 @@ function ax(c) {
|
|
|
23782
23782
|
if (0 < O && (r(U, q - 32, me[Ce].y, 0, 16), r(Z, oe - 32, me[Ce].f, 0, 8), r(ge, Be - 32, me[Ce].ea, 0, 8)), se.Za) {
|
|
23783
23783
|
var Oe = U, We = q - 32 + 16;
|
|
23784
23784
|
for (0 < O && (A >= x.za - 1 ? o(Oe, We, me[Ce].y[15], 4) : r(Oe, We, me[Ce + 1].y, 0, 4)), I = 0; 4 > I; I++) Oe[We + 128 + I] = Oe[We + 256 + I] = Oe[We + 384 + I] = Oe[We + 0 + I];
|
|
23785
|
-
for (I = 0; 16 > I; ++I, ke <<= 2) Oe = U, We = q + g0[I], ys[se.Ob[I]](Oe, We),
|
|
23786
|
-
} else if (Oe = bo(A, O, se.Ob[0]), qi[Oe](U, q), ke != 0) for (I = 0; 16 > I; ++I, ke <<= 2)
|
|
23787
|
-
for (I = se.Gc, Oe = bo(A, O, se.Dd),
|
|
23785
|
+
for (I = 0; 16 > I; ++I, ke <<= 2) Oe = U, We = q + g0[I], ys[se.Ob[I]](Oe, We), nd(ke, _e, 16 * +I, Oe, We);
|
|
23786
|
+
} else if (Oe = bo(A, O, se.Ob[0]), qi[Oe](U, q), ke != 0) for (I = 0; 16 > I; ++I, ke <<= 2) nd(ke, _e, 16 * +I, U, q + g0[I]);
|
|
23787
|
+
for (I = se.Gc, Oe = bo(A, O, se.Dd), gi[Oe](Z, oe), gi[Oe](ge, Be), ke = _e, Oe = Z, We = oe, 255 & (se = 0 | I) && (170 & se ? Dc(ke, 256, Oe, We) : Xs(ke, 256, Oe, We)), se = ge, ke = Be, 255 & (I >>= 8) && (170 & I ? Dc(_e, 320, se, ke) : Xs(_e, 320, se, ke)), O < x.Ub - 1 && (r(me[Ce].y, 0, U, q + 480, 16), r(me[Ce].f, 0, Z, oe + 224, 8), r(me[Ce].ea, 0, ge, Be + 224, 8)), I = 8 * j * x.B, me = x.sa, Ce = x.ta + 16 * A + 16 * j * x.R, _e = x.qa, se = x.ra + 8 * A + I, ke = x.Ha, Oe = x.Ia + 8 * A + I, I = 0; 16 > I; ++I) r(me, Ce + I * x.R, U, q + 32 * I, 16);
|
|
23788
23788
|
for (I = 0; 8 > I; ++I) r(_e, se + I * x.B, Z, oe + 32 * I, 8), r(ke, Oe + I * x.B, ge, Be + 32 * I, 8);
|
|
23789
23789
|
}
|
|
23790
23790
|
}
|
|
23791
|
-
function
|
|
23791
|
+
function rd(x, P, I, A, O, j, U, q, Z) {
|
|
23792
23792
|
var oe = [0], ge = [0], Be = 0, se = Z != null ? Z.kd : 0, me = Z ?? new Pe();
|
|
23793
23793
|
if (x == null || 12 > I) return 7;
|
|
23794
23794
|
me.data = x, me.w = P, me.ha = I, P = [P], I = [I], me.gb = [me.gb];
|
|
@@ -23913,7 +23913,7 @@ function ax(c) {
|
|
|
23913
23913
|
ke = 7;
|
|
23914
23914
|
break;
|
|
23915
23915
|
}
|
|
23916
|
-
q = Ce, x == null || 10 > I || !
|
|
23916
|
+
q = Ce, x == null || 10 > I || !Yh(x, P + 3, I - 3) ? x = 0 : (se = x[P + 0] | x[P + 1] << 8 | x[P + 2] << 16, _e = 16383 & (x[P + 7] << 8 | x[P + 6]), x = 16383 & (x[P + 9] << 8 | x[P + 8]), 1 & se || 3 < (se >> 1 & 7) || !(se >> 4 & 1) || se >> 5 >= me.Ja || !_e || !x ? x = 0 : (U && (U[0] = _e), q && (q[0] = x), x = 1));
|
|
23917
23917
|
}
|
|
23918
23918
|
if (!x || (U = U[0], Ce = Ce[0], Be && (oe[0] != U || ge[0] != Ce))) return 3;
|
|
23919
23919
|
Z != null && (Z[0] = me, Z.offset = P - Z.w, n(4294967286 > P - Z.w), n(Z.offset == Z.ha - I));
|
|
@@ -23954,7 +23954,7 @@ function ax(c) {
|
|
|
23954
23954
|
A.width = x, A.height = P;
|
|
23955
23955
|
e: {
|
|
23956
23956
|
var Z = A.width, oe = A.height;
|
|
23957
|
-
if (x = A.S, 0 >= Z || 0 >= oe || !(x >=
|
|
23957
|
+
if (x = A.S, 0 >= Z || 0 >= oe || !(x >= id && 13 > x)) x = 2;
|
|
23958
23958
|
else {
|
|
23959
23959
|
if (0 >= A.Rd && A.sd == null) {
|
|
23960
23960
|
U = j = O = P = 0;
|
|
@@ -23965,7 +23965,7 @@ function ax(c) {
|
|
|
23965
23965
|
}
|
|
23966
23966
|
A.sd = oe, 11 > x ? ((Z = A.f.RGBA).eb = oe, Z.fb = 0, Z.A = q, Z.size = ge) : ((Z = A.f.kb).y = oe, Z.O = 0, Z.fa = q, Z.Fd = ge, Z.f = oe, Z.N = 0 + ge, Z.Ab = P, Z.Cd = j, Z.ea = oe, Z.W = 0 + ge + j, Z.Db = P, Z.Ed = j, x == 12 && (Z.F = oe, Z.J = 0 + ge + 2 * j), Z.Tc = U, Z.lb = O);
|
|
23967
23967
|
}
|
|
23968
|
-
if (P = 1, O = A.S, j = A.width, U = A.height, O >=
|
|
23968
|
+
if (P = 1, O = A.S, j = A.width, U = A.height, O >= id && 13 > O) if (11 > O) x = A.f.RGBA, P &= (q = Math.abs(x.A)) * (U - 1) + j <= x.size, P &= q >= j * y0[O], P &= x.eb != null;
|
|
23969
23969
|
else {
|
|
23970
23970
|
x = A.f.kb, q = (j + 1) / 2, ge = (U + 1) / 2, Z = Math.abs(x.fa), oe = Math.abs(x.Ab);
|
|
23971
23971
|
var Be = Math.abs(x.Db), se = Math.abs(x.lb), me = se * (U - 1) + j;
|
|
@@ -24024,21 +24024,21 @@ function ax(c) {
|
|
|
24024
24024
|
});
|
|
24025
24025
|
var Rc, Ea = D.ColorIndexInverseTransform, Er = D.MapARGB, Pf = D.VP8LColorIndexInverseTransformAlpha, Ws = D.MapAlpha, gs = D.VP8LPredictorsAdd = [];
|
|
24026
24026
|
gs.length = 16, (D.VP8LPredictors = []).length = 16, (D.VP8LPredictorsAdd_C = []).length = 16, (D.VP8LPredictors_C = []).length = 16;
|
|
24027
|
-
var Ra, zl, Wl, Fc, Fa, Da, $i, pi, Yi, Dc, ao, Xs, qn, Vn, br, _r, gi, Xl, _c, sd, Yg, qg, Vg, Kg, jl, Qg, Zg, Jg, e0 = s(511), t0 = s(2041), n0 = s(225), r0 = s(767), o0 = 0, vf = t0, id = n0, Xo = r0, os = e0, ad = 0, cd = 1, s0 = 2, ld = 3, hd = 4, Sf = 5, i0 = 6, Mf = 7, If = 8, dd = 9, Lf = 10, A2 = [2, 3, 7], k2 = [3, 3, 11], a0 = [280, 256, 256, 256, 40], B2 = [0, 1, 1, 1, 0], E2 = [17, 18, 0, 1, 2, 3, 4, 5, 16, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], R2 = [24, 7, 23, 25, 40, 6, 39, 41, 22, 26, 38, 42, 56, 5, 55, 57, 21, 27, 54, 58, 37, 43, 72, 4, 71, 73, 20, 28, 53, 59, 70, 74, 36, 44, 88, 69, 75, 52, 60, 3, 87, 89, 19, 29, 86, 90, 35, 45, 68, 76, 85, 91, 51, 61, 104, 2, 103, 105, 18, 30, 102, 106, 34, 46, 84, 92, 67, 77, 101, 107, 50, 62, 120, 1, 119, 121, 83, 93, 17, 31, 100, 108, 66, 78, 118, 122, 33, 47, 117, 123, 49, 63, 99, 109, 82, 94, 0, 116, 124, 65, 79, 16, 32, 98, 110, 48, 115, 125, 81, 95, 64, 114, 126, 97, 111, 80, 113, 127, 96, 112], F2 = [2954, 2956, 2958, 2962, 2970, 2986, 3018, 3082, 3212, 3468, 3980, 5004], D2 = 8, Cf = [4, 5, 6, 7, 8, 9, 10, 10, 11, 12, 13, 14, 15, 16, 17, 17, 18, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 25, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 91, 93, 95, 96, 98, 100, 101, 102, 104, 106, 108, 110, 112, 114, 116, 118, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 143, 145, 148, 151, 154, 157], Tf = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 119, 122, 125, 128, 131, 134, 137, 140, 143, 146, 149, 152, 155, 158, 161, 164, 167, 170, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 234, 239, 245, 249, 254, 259, 264, 269, 274, 279, 284], Gl = null, _2 = [[173, 148, 140, 0], [176, 155, 140, 135, 0], [180, 157, 141, 134, 130, 0], [254, 254, 243, 230, 196, 177, 153, 140, 133, 130, 129, 0]], O2 = [0, 1, 4, 8, 5, 2, 3, 6, 9, 12, 13, 10, 7, 11, 14, 15], c0 = [-0, 1, -1, 2, -2, 3, 4, 6, -3, 5, -4, -5, -6, 7, -7, 8, -8, -9], H2 = [[[[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]], [[253, 136, 254, 255, 228, 219, 128, 128, 128, 128, 128], [189, 129, 242, 255, 227, 213, 255, 219, 128, 128, 128], [106, 126, 227, 252, 214, 209, 255, 255, 128, 128, 128]], [[1, 98, 248, 255, 236, 226, 255, 255, 128, 128, 128], [181, 133, 238, 254, 221, 234, 255, 154, 128, 128, 128], [78, 134, 202, 247, 198, 180, 255, 219, 128, 128, 128]], [[1, 185, 249, 255, 243, 255, 128, 128, 128, 128, 128], [184, 150, 247, 255, 236, 224, 128, 128, 128, 128, 128], [77, 110, 216, 255, 236, 230, 128, 128, 128, 128, 128]], [[1, 101, 251, 255, 241, 255, 128, 128, 128, 128, 128], [170, 139, 241, 252, 236, 209, 255, 255, 128, 128, 128], [37, 116, 196, 243, 228, 255, 255, 255, 128, 128, 128]], [[1, 204, 254, 255, 245, 255, 128, 128, 128, 128, 128], [207, 160, 250, 255, 238, 128, 128, 128, 128, 128, 128], [102, 103, 231, 255, 211, 171, 128, 128, 128, 128, 128]], [[1, 152, 252, 255, 240, 255, 128, 128, 128, 128, 128], [177, 135, 243, 255, 234, 225, 128, 128, 128, 128, 128], [80, 129, 211, 255, 194, 224, 128, 128, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [246, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [255, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[198, 35, 237, 223, 193, 187, 162, 160, 145, 155, 62], [131, 45, 198, 221, 172, 176, 220, 157, 252, 221, 1], [68, 47, 146, 208, 149, 167, 221, 162, 255, 223, 128]], [[1, 149, 241, 255, 221, 224, 255, 255, 128, 128, 128], [184, 141, 234, 253, 222, 220, 255, 199, 128, 128, 128], [81, 99, 181, 242, 176, 190, 249, 202, 255, 255, 128]], [[1, 129, 232, 253, 214, 197, 242, 196, 255, 255, 128], [99, 121, 210, 250, 201, 198, 255, 202, 128, 128, 128], [23, 91, 163, 242, 170, 187, 247, 210, 255, 255, 128]], [[1, 200, 246, 255, 234, 255, 128, 128, 128, 128, 128], [109, 178, 241, 255, 231, 245, 255, 255, 128, 128, 128], [44, 130, 201, 253, 205, 192, 255, 255, 128, 128, 128]], [[1, 132, 239, 251, 219, 209, 255, 165, 128, 128, 128], [94, 136, 225, 251, 218, 190, 255, 255, 128, 128, 128], [22, 100, 174, 245, 186, 161, 255, 199, 128, 128, 128]], [[1, 182, 249, 255, 232, 235, 128, 128, 128, 128, 128], [124, 143, 241, 255, 227, 234, 128, 128, 128, 128, 128], [35, 77, 181, 251, 193, 211, 255, 205, 128, 128, 128]], [[1, 157, 247, 255, 236, 231, 255, 255, 128, 128, 128], [121, 141, 235, 255, 225, 227, 255, 255, 128, 128, 128], [45, 99, 188, 251, 195, 217, 255, 224, 128, 128, 128]], [[1, 1, 251, 255, 213, 255, 128, 128, 128, 128, 128], [203, 1, 248, 255, 255, 128, 128, 128, 128, 128, 128], [137, 1, 177, 255, 224, 255, 128, 128, 128, 128, 128]]], [[[253, 9, 248, 251, 207, 208, 255, 192, 128, 128, 128], [175, 13, 224, 243, 193, 185, 249, 198, 255, 255, 128], [73, 17, 171, 221, 161, 179, 236, 167, 255, 234, 128]], [[1, 95, 247, 253, 212, 183, 255, 255, 128, 128, 128], [239, 90, 244, 250, 211, 209, 255, 255, 128, 128, 128], [155, 77, 195, 248, 188, 195, 255, 255, 128, 128, 128]], [[1, 24, 239, 251, 218, 219, 255, 205, 128, 128, 128], [201, 51, 219, 255, 196, 186, 128, 128, 128, 128, 128], [69, 46, 190, 239, 201, 218, 255, 228, 128, 128, 128]], [[1, 191, 251, 255, 255, 128, 128, 128, 128, 128, 128], [223, 165, 249, 255, 213, 255, 128, 128, 128, 128, 128], [141, 124, 248, 255, 255, 128, 128, 128, 128, 128, 128]], [[1, 16, 248, 255, 255, 128, 128, 128, 128, 128, 128], [190, 36, 230, 255, 236, 255, 128, 128, 128, 128, 128], [149, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 226, 255, 128, 128, 128, 128, 128, 128, 128, 128], [247, 192, 255, 128, 128, 128, 128, 128, 128, 128, 128], [240, 128, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 134, 252, 255, 255, 128, 128, 128, 128, 128, 128], [213, 62, 250, 255, 255, 128, 128, 128, 128, 128, 128], [55, 93, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[202, 24, 213, 235, 186, 191, 220, 160, 240, 175, 255], [126, 38, 182, 232, 169, 184, 228, 174, 255, 187, 128], [61, 46, 138, 219, 151, 178, 240, 170, 255, 216, 128]], [[1, 112, 230, 250, 199, 191, 247, 159, 255, 255, 128], [166, 109, 228, 252, 211, 215, 255, 174, 128, 128, 128], [39, 77, 162, 232, 172, 180, 245, 178, 255, 255, 128]], [[1, 52, 220, 246, 198, 199, 249, 220, 255, 255, 128], [124, 74, 191, 243, 183, 193, 250, 221, 255, 255, 128], [24, 71, 130, 219, 154, 170, 243, 182, 255, 255, 128]], [[1, 182, 225, 249, 219, 240, 255, 224, 128, 128, 128], [149, 150, 226, 252, 216, 205, 255, 171, 128, 128, 128], [28, 108, 170, 242, 183, 194, 254, 223, 255, 255, 128]], [[1, 81, 230, 252, 204, 203, 255, 192, 128, 128, 128], [123, 102, 209, 247, 188, 196, 255, 233, 128, 128, 128], [20, 95, 153, 243, 164, 173, 255, 203, 128, 128, 128]], [[1, 222, 248, 255, 216, 213, 128, 128, 128, 128, 128], [168, 175, 246, 252, 235, 205, 255, 255, 128, 128, 128], [47, 116, 215, 255, 211, 212, 255, 255, 128, 128, 128]], [[1, 121, 236, 253, 212, 214, 255, 255, 128, 128, 128], [141, 84, 213, 252, 201, 202, 255, 219, 128, 128, 128], [42, 80, 160, 240, 162, 185, 255, 205, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [244, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [238, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]]]], z2 = [[[231, 120, 48, 89, 115, 113, 120, 152, 112], [152, 179, 64, 126, 170, 118, 46, 70, 95], [175, 69, 143, 80, 85, 82, 72, 155, 103], [56, 58, 10, 171, 218, 189, 17, 13, 152], [114, 26, 17, 163, 44, 195, 21, 10, 173], [121, 24, 80, 195, 26, 62, 44, 64, 85], [144, 71, 10, 38, 171, 213, 144, 34, 26], [170, 46, 55, 19, 136, 160, 33, 206, 71], [63, 20, 8, 114, 114, 208, 12, 9, 226], [81, 40, 11, 96, 182, 84, 29, 16, 36]], [[134, 183, 89, 137, 98, 101, 106, 165, 148], [72, 187, 100, 130, 157, 111, 32, 75, 80], [66, 102, 167, 99, 74, 62, 40, 234, 128], [41, 53, 9, 178, 241, 141, 26, 8, 107], [74, 43, 26, 146, 73, 166, 49, 23, 157], [65, 38, 105, 160, 51, 52, 31, 115, 128], [104, 79, 12, 27, 217, 255, 87, 17, 7], [87, 68, 71, 44, 114, 51, 15, 186, 23], [47, 41, 14, 110, 182, 183, 21, 17, 194], [66, 45, 25, 102, 197, 189, 23, 18, 22]], [[88, 88, 147, 150, 42, 46, 45, 196, 205], [43, 97, 183, 117, 85, 38, 35, 179, 61], [39, 53, 200, 87, 26, 21, 43, 232, 171], [56, 34, 51, 104, 114, 102, 29, 93, 77], [39, 28, 85, 171, 58, 165, 90, 98, 64], [34, 22, 116, 206, 23, 34, 43, 166, 73], [107, 54, 32, 26, 51, 1, 81, 43, 31], [68, 25, 106, 22, 64, 171, 36, 225, 114], [34, 19, 21, 102, 132, 188, 16, 76, 124], [62, 18, 78, 95, 85, 57, 50, 48, 51]], [[193, 101, 35, 159, 215, 111, 89, 46, 111], [60, 148, 31, 172, 219, 228, 21, 18, 111], [112, 113, 77, 85, 179, 255, 38, 120, 114], [40, 42, 1, 196, 245, 209, 10, 25, 109], [88, 43, 29, 140, 166, 213, 37, 43, 154], [61, 63, 30, 155, 67, 45, 68, 1, 209], [100, 80, 8, 43, 154, 1, 51, 26, 71], [142, 78, 78, 16, 255, 128, 34, 197, 171], [41, 40, 5, 102, 211, 183, 4, 1, 221], [51, 50, 17, 168, 209, 192, 23, 25, 82]], [[138, 31, 36, 171, 27, 166, 38, 44, 229], [67, 87, 58, 169, 82, 115, 26, 59, 179], [63, 59, 90, 180, 59, 166, 93, 73, 154], [40, 40, 21, 116, 143, 209, 34, 39, 175], [47, 15, 16, 183, 34, 223, 49, 45, 183], [46, 17, 33, 183, 6, 98, 15, 32, 183], [57, 46, 22, 24, 128, 1, 54, 17, 37], [65, 32, 73, 115, 28, 128, 23, 128, 205], [40, 3, 9, 115, 51, 192, 18, 6, 223], [87, 37, 9, 115, 59, 77, 64, 21, 47]], [[104, 55, 44, 218, 9, 54, 53, 130, 226], [64, 90, 70, 205, 40, 41, 23, 26, 57], [54, 57, 112, 184, 5, 41, 38, 166, 213], [30, 34, 26, 133, 152, 116, 10, 32, 134], [39, 19, 53, 221, 26, 114, 32, 73, 255], [31, 9, 65, 234, 2, 15, 1, 118, 73], [75, 32, 12, 51, 192, 255, 160, 43, 51], [88, 31, 35, 67, 102, 85, 55, 186, 85], [56, 21, 23, 111, 59, 205, 45, 37, 192], [55, 38, 70, 124, 73, 102, 1, 34, 98]], [[125, 98, 42, 88, 104, 85, 117, 175, 82], [95, 84, 53, 89, 128, 100, 113, 101, 45], [75, 79, 123, 47, 51, 128, 81, 171, 1], [57, 17, 5, 71, 102, 57, 53, 41, 49], [38, 33, 13, 121, 57, 73, 26, 1, 85], [41, 10, 67, 138, 77, 110, 90, 47, 114], [115, 21, 2, 10, 102, 255, 166, 23, 6], [101, 29, 16, 10, 85, 128, 101, 196, 26], [57, 18, 10, 102, 102, 213, 34, 20, 43], [117, 20, 15, 36, 163, 128, 68, 1, 26]], [[102, 61, 71, 37, 34, 53, 31, 243, 192], [69, 60, 71, 38, 73, 119, 28, 222, 37], [68, 45, 128, 34, 1, 47, 11, 245, 171], [62, 17, 19, 70, 146, 85, 55, 62, 70], [37, 43, 37, 154, 100, 163, 85, 160, 1], [63, 9, 92, 136, 28, 64, 32, 201, 85], [75, 15, 9, 9, 64, 255, 184, 119, 16], [86, 6, 28, 5, 64, 255, 25, 248, 1], [56, 8, 17, 132, 137, 255, 55, 116, 128], [58, 15, 20, 82, 135, 57, 26, 121, 40]], [[164, 50, 31, 137, 154, 133, 25, 35, 218], [51, 103, 44, 131, 131, 123, 31, 6, 158], [86, 40, 64, 135, 148, 224, 45, 183, 128], [22, 26, 17, 131, 240, 154, 14, 1, 209], [45, 16, 21, 91, 64, 222, 7, 1, 197], [56, 21, 39, 155, 60, 138, 23, 102, 213], [83, 12, 13, 54, 192, 255, 68, 47, 28], [85, 26, 85, 85, 128, 128, 32, 146, 171], [18, 11, 7, 63, 144, 171, 4, 4, 246], [35, 27, 10, 146, 174, 171, 12, 26, 128]], [[190, 80, 35, 99, 180, 80, 126, 54, 45], [85, 126, 47, 87, 176, 51, 41, 20, 32], [101, 75, 128, 139, 118, 146, 116, 128, 85], [56, 41, 15, 176, 236, 85, 37, 9, 62], [71, 30, 17, 119, 118, 255, 17, 18, 138], [101, 38, 60, 138, 55, 70, 43, 26, 142], [146, 36, 19, 30, 171, 255, 97, 27, 20], [138, 45, 61, 62, 219, 1, 81, 188, 64], [32, 41, 20, 117, 151, 142, 20, 21, 163], [112, 19, 12, 61, 195, 128, 48, 4, 24]]], W2 = [[[[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[176, 246, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 241, 252, 255, 255, 255, 255, 255, 255, 255, 255], [249, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 244, 252, 255, 255, 255, 255, 255, 255, 255, 255], [234, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 246, 254, 255, 255, 255, 255, 255, 255, 255, 255], [239, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 254, 255, 255, 255, 255, 255, 255], [250, 255, 254, 255, 254, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[217, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [225, 252, 241, 253, 255, 255, 254, 255, 255, 255, 255], [234, 250, 241, 250, 253, 255, 253, 254, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [238, 253, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [249, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 255, 255, 255, 255, 255, 255, 255, 255, 255], [247, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [252, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[186, 251, 250, 255, 255, 255, 255, 255, 255, 255, 255], [234, 251, 244, 254, 255, 255, 255, 255, 255, 255, 255], [251, 251, 243, 253, 254, 255, 254, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [236, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 253, 253, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[248, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [250, 254, 252, 254, 255, 255, 255, 255, 255, 255, 255], [248, 254, 249, 253, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [246, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 254, 251, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 252, 255, 255, 255, 255, 255, 255, 255, 255], [248, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [245, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 252, 255, 255, 255, 255, 255, 255, 255, 255, 255], [249, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]]], X2 = [0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 0], qi = [], ys = [], yi = [], j2 = 1, l0 = 2, Vi = [], ss = [];
|
|
24027
|
+
var Ra, zl, Wl, Fc, Fa, Da, $i, fi, Yi, Dc, ao, Xs, qn, Vn, br, _r, pi, Xl, _c, od, Yg, qg, Vg, Kg, jl, Qg, Zg, Jg, e0 = s(511), t0 = s(2041), n0 = s(225), r0 = s(767), o0 = 0, vf = t0, sd = n0, Xo = r0, os = e0, id = 0, ad = 1, s0 = 2, cd = 3, ld = 4, Sf = 5, i0 = 6, Mf = 7, If = 8, hd = 9, Lf = 10, A2 = [2, 3, 7], k2 = [3, 3, 11], a0 = [280, 256, 256, 256, 40], B2 = [0, 1, 1, 1, 0], E2 = [17, 18, 0, 1, 2, 3, 4, 5, 16, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], R2 = [24, 7, 23, 25, 40, 6, 39, 41, 22, 26, 38, 42, 56, 5, 55, 57, 21, 27, 54, 58, 37, 43, 72, 4, 71, 73, 20, 28, 53, 59, 70, 74, 36, 44, 88, 69, 75, 52, 60, 3, 87, 89, 19, 29, 86, 90, 35, 45, 68, 76, 85, 91, 51, 61, 104, 2, 103, 105, 18, 30, 102, 106, 34, 46, 84, 92, 67, 77, 101, 107, 50, 62, 120, 1, 119, 121, 83, 93, 17, 31, 100, 108, 66, 78, 118, 122, 33, 47, 117, 123, 49, 63, 99, 109, 82, 94, 0, 116, 124, 65, 79, 16, 32, 98, 110, 48, 115, 125, 81, 95, 64, 114, 126, 97, 111, 80, 113, 127, 96, 112], F2 = [2954, 2956, 2958, 2962, 2970, 2986, 3018, 3082, 3212, 3468, 3980, 5004], D2 = 8, Cf = [4, 5, 6, 7, 8, 9, 10, 10, 11, 12, 13, 14, 15, 16, 17, 17, 18, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 25, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 91, 93, 95, 96, 98, 100, 101, 102, 104, 106, 108, 110, 112, 114, 116, 118, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 143, 145, 148, 151, 154, 157], Tf = [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 119, 122, 125, 128, 131, 134, 137, 140, 143, 146, 149, 152, 155, 158, 161, 164, 167, 170, 173, 177, 181, 185, 189, 193, 197, 201, 205, 209, 213, 217, 221, 225, 229, 234, 239, 245, 249, 254, 259, 264, 269, 274, 279, 284], Gl = null, _2 = [[173, 148, 140, 0], [176, 155, 140, 135, 0], [180, 157, 141, 134, 130, 0], [254, 254, 243, 230, 196, 177, 153, 140, 133, 130, 129, 0]], O2 = [0, 1, 4, 8, 5, 2, 3, 6, 9, 12, 13, 10, 7, 11, 14, 15], c0 = [-0, 1, -1, 2, -2, 3, 4, 6, -3, 5, -4, -5, -6, 7, -7, 8, -8, -9], H2 = [[[[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]], [[253, 136, 254, 255, 228, 219, 128, 128, 128, 128, 128], [189, 129, 242, 255, 227, 213, 255, 219, 128, 128, 128], [106, 126, 227, 252, 214, 209, 255, 255, 128, 128, 128]], [[1, 98, 248, 255, 236, 226, 255, 255, 128, 128, 128], [181, 133, 238, 254, 221, 234, 255, 154, 128, 128, 128], [78, 134, 202, 247, 198, 180, 255, 219, 128, 128, 128]], [[1, 185, 249, 255, 243, 255, 128, 128, 128, 128, 128], [184, 150, 247, 255, 236, 224, 128, 128, 128, 128, 128], [77, 110, 216, 255, 236, 230, 128, 128, 128, 128, 128]], [[1, 101, 251, 255, 241, 255, 128, 128, 128, 128, 128], [170, 139, 241, 252, 236, 209, 255, 255, 128, 128, 128], [37, 116, 196, 243, 228, 255, 255, 255, 128, 128, 128]], [[1, 204, 254, 255, 245, 255, 128, 128, 128, 128, 128], [207, 160, 250, 255, 238, 128, 128, 128, 128, 128, 128], [102, 103, 231, 255, 211, 171, 128, 128, 128, 128, 128]], [[1, 152, 252, 255, 240, 255, 128, 128, 128, 128, 128], [177, 135, 243, 255, 234, 225, 128, 128, 128, 128, 128], [80, 129, 211, 255, 194, 224, 128, 128, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [246, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [255, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[198, 35, 237, 223, 193, 187, 162, 160, 145, 155, 62], [131, 45, 198, 221, 172, 176, 220, 157, 252, 221, 1], [68, 47, 146, 208, 149, 167, 221, 162, 255, 223, 128]], [[1, 149, 241, 255, 221, 224, 255, 255, 128, 128, 128], [184, 141, 234, 253, 222, 220, 255, 199, 128, 128, 128], [81, 99, 181, 242, 176, 190, 249, 202, 255, 255, 128]], [[1, 129, 232, 253, 214, 197, 242, 196, 255, 255, 128], [99, 121, 210, 250, 201, 198, 255, 202, 128, 128, 128], [23, 91, 163, 242, 170, 187, 247, 210, 255, 255, 128]], [[1, 200, 246, 255, 234, 255, 128, 128, 128, 128, 128], [109, 178, 241, 255, 231, 245, 255, 255, 128, 128, 128], [44, 130, 201, 253, 205, 192, 255, 255, 128, 128, 128]], [[1, 132, 239, 251, 219, 209, 255, 165, 128, 128, 128], [94, 136, 225, 251, 218, 190, 255, 255, 128, 128, 128], [22, 100, 174, 245, 186, 161, 255, 199, 128, 128, 128]], [[1, 182, 249, 255, 232, 235, 128, 128, 128, 128, 128], [124, 143, 241, 255, 227, 234, 128, 128, 128, 128, 128], [35, 77, 181, 251, 193, 211, 255, 205, 128, 128, 128]], [[1, 157, 247, 255, 236, 231, 255, 255, 128, 128, 128], [121, 141, 235, 255, 225, 227, 255, 255, 128, 128, 128], [45, 99, 188, 251, 195, 217, 255, 224, 128, 128, 128]], [[1, 1, 251, 255, 213, 255, 128, 128, 128, 128, 128], [203, 1, 248, 255, 255, 128, 128, 128, 128, 128, 128], [137, 1, 177, 255, 224, 255, 128, 128, 128, 128, 128]]], [[[253, 9, 248, 251, 207, 208, 255, 192, 128, 128, 128], [175, 13, 224, 243, 193, 185, 249, 198, 255, 255, 128], [73, 17, 171, 221, 161, 179, 236, 167, 255, 234, 128]], [[1, 95, 247, 253, 212, 183, 255, 255, 128, 128, 128], [239, 90, 244, 250, 211, 209, 255, 255, 128, 128, 128], [155, 77, 195, 248, 188, 195, 255, 255, 128, 128, 128]], [[1, 24, 239, 251, 218, 219, 255, 205, 128, 128, 128], [201, 51, 219, 255, 196, 186, 128, 128, 128, 128, 128], [69, 46, 190, 239, 201, 218, 255, 228, 128, 128, 128]], [[1, 191, 251, 255, 255, 128, 128, 128, 128, 128, 128], [223, 165, 249, 255, 213, 255, 128, 128, 128, 128, 128], [141, 124, 248, 255, 255, 128, 128, 128, 128, 128, 128]], [[1, 16, 248, 255, 255, 128, 128, 128, 128, 128, 128], [190, 36, 230, 255, 236, 255, 128, 128, 128, 128, 128], [149, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 226, 255, 128, 128, 128, 128, 128, 128, 128, 128], [247, 192, 255, 128, 128, 128, 128, 128, 128, 128, 128], [240, 128, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[1, 134, 252, 255, 255, 128, 128, 128, 128, 128, 128], [213, 62, 250, 255, 255, 128, 128, 128, 128, 128, 128], [55, 93, 255, 128, 128, 128, 128, 128, 128, 128, 128]], [[128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128], [128, 128, 128, 128, 128, 128, 128, 128, 128, 128, 128]]], [[[202, 24, 213, 235, 186, 191, 220, 160, 240, 175, 255], [126, 38, 182, 232, 169, 184, 228, 174, 255, 187, 128], [61, 46, 138, 219, 151, 178, 240, 170, 255, 216, 128]], [[1, 112, 230, 250, 199, 191, 247, 159, 255, 255, 128], [166, 109, 228, 252, 211, 215, 255, 174, 128, 128, 128], [39, 77, 162, 232, 172, 180, 245, 178, 255, 255, 128]], [[1, 52, 220, 246, 198, 199, 249, 220, 255, 255, 128], [124, 74, 191, 243, 183, 193, 250, 221, 255, 255, 128], [24, 71, 130, 219, 154, 170, 243, 182, 255, 255, 128]], [[1, 182, 225, 249, 219, 240, 255, 224, 128, 128, 128], [149, 150, 226, 252, 216, 205, 255, 171, 128, 128, 128], [28, 108, 170, 242, 183, 194, 254, 223, 255, 255, 128]], [[1, 81, 230, 252, 204, 203, 255, 192, 128, 128, 128], [123, 102, 209, 247, 188, 196, 255, 233, 128, 128, 128], [20, 95, 153, 243, 164, 173, 255, 203, 128, 128, 128]], [[1, 222, 248, 255, 216, 213, 128, 128, 128, 128, 128], [168, 175, 246, 252, 235, 205, 255, 255, 128, 128, 128], [47, 116, 215, 255, 211, 212, 255, 255, 128, 128, 128]], [[1, 121, 236, 253, 212, 214, 255, 255, 128, 128, 128], [141, 84, 213, 252, 201, 202, 255, 219, 128, 128, 128], [42, 80, 160, 240, 162, 185, 255, 205, 128, 128, 128]], [[1, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [244, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128], [238, 1, 255, 128, 128, 128, 128, 128, 128, 128, 128]]]], z2 = [[[231, 120, 48, 89, 115, 113, 120, 152, 112], [152, 179, 64, 126, 170, 118, 46, 70, 95], [175, 69, 143, 80, 85, 82, 72, 155, 103], [56, 58, 10, 171, 218, 189, 17, 13, 152], [114, 26, 17, 163, 44, 195, 21, 10, 173], [121, 24, 80, 195, 26, 62, 44, 64, 85], [144, 71, 10, 38, 171, 213, 144, 34, 26], [170, 46, 55, 19, 136, 160, 33, 206, 71], [63, 20, 8, 114, 114, 208, 12, 9, 226], [81, 40, 11, 96, 182, 84, 29, 16, 36]], [[134, 183, 89, 137, 98, 101, 106, 165, 148], [72, 187, 100, 130, 157, 111, 32, 75, 80], [66, 102, 167, 99, 74, 62, 40, 234, 128], [41, 53, 9, 178, 241, 141, 26, 8, 107], [74, 43, 26, 146, 73, 166, 49, 23, 157], [65, 38, 105, 160, 51, 52, 31, 115, 128], [104, 79, 12, 27, 217, 255, 87, 17, 7], [87, 68, 71, 44, 114, 51, 15, 186, 23], [47, 41, 14, 110, 182, 183, 21, 17, 194], [66, 45, 25, 102, 197, 189, 23, 18, 22]], [[88, 88, 147, 150, 42, 46, 45, 196, 205], [43, 97, 183, 117, 85, 38, 35, 179, 61], [39, 53, 200, 87, 26, 21, 43, 232, 171], [56, 34, 51, 104, 114, 102, 29, 93, 77], [39, 28, 85, 171, 58, 165, 90, 98, 64], [34, 22, 116, 206, 23, 34, 43, 166, 73], [107, 54, 32, 26, 51, 1, 81, 43, 31], [68, 25, 106, 22, 64, 171, 36, 225, 114], [34, 19, 21, 102, 132, 188, 16, 76, 124], [62, 18, 78, 95, 85, 57, 50, 48, 51]], [[193, 101, 35, 159, 215, 111, 89, 46, 111], [60, 148, 31, 172, 219, 228, 21, 18, 111], [112, 113, 77, 85, 179, 255, 38, 120, 114], [40, 42, 1, 196, 245, 209, 10, 25, 109], [88, 43, 29, 140, 166, 213, 37, 43, 154], [61, 63, 30, 155, 67, 45, 68, 1, 209], [100, 80, 8, 43, 154, 1, 51, 26, 71], [142, 78, 78, 16, 255, 128, 34, 197, 171], [41, 40, 5, 102, 211, 183, 4, 1, 221], [51, 50, 17, 168, 209, 192, 23, 25, 82]], [[138, 31, 36, 171, 27, 166, 38, 44, 229], [67, 87, 58, 169, 82, 115, 26, 59, 179], [63, 59, 90, 180, 59, 166, 93, 73, 154], [40, 40, 21, 116, 143, 209, 34, 39, 175], [47, 15, 16, 183, 34, 223, 49, 45, 183], [46, 17, 33, 183, 6, 98, 15, 32, 183], [57, 46, 22, 24, 128, 1, 54, 17, 37], [65, 32, 73, 115, 28, 128, 23, 128, 205], [40, 3, 9, 115, 51, 192, 18, 6, 223], [87, 37, 9, 115, 59, 77, 64, 21, 47]], [[104, 55, 44, 218, 9, 54, 53, 130, 226], [64, 90, 70, 205, 40, 41, 23, 26, 57], [54, 57, 112, 184, 5, 41, 38, 166, 213], [30, 34, 26, 133, 152, 116, 10, 32, 134], [39, 19, 53, 221, 26, 114, 32, 73, 255], [31, 9, 65, 234, 2, 15, 1, 118, 73], [75, 32, 12, 51, 192, 255, 160, 43, 51], [88, 31, 35, 67, 102, 85, 55, 186, 85], [56, 21, 23, 111, 59, 205, 45, 37, 192], [55, 38, 70, 124, 73, 102, 1, 34, 98]], [[125, 98, 42, 88, 104, 85, 117, 175, 82], [95, 84, 53, 89, 128, 100, 113, 101, 45], [75, 79, 123, 47, 51, 128, 81, 171, 1], [57, 17, 5, 71, 102, 57, 53, 41, 49], [38, 33, 13, 121, 57, 73, 26, 1, 85], [41, 10, 67, 138, 77, 110, 90, 47, 114], [115, 21, 2, 10, 102, 255, 166, 23, 6], [101, 29, 16, 10, 85, 128, 101, 196, 26], [57, 18, 10, 102, 102, 213, 34, 20, 43], [117, 20, 15, 36, 163, 128, 68, 1, 26]], [[102, 61, 71, 37, 34, 53, 31, 243, 192], [69, 60, 71, 38, 73, 119, 28, 222, 37], [68, 45, 128, 34, 1, 47, 11, 245, 171], [62, 17, 19, 70, 146, 85, 55, 62, 70], [37, 43, 37, 154, 100, 163, 85, 160, 1], [63, 9, 92, 136, 28, 64, 32, 201, 85], [75, 15, 9, 9, 64, 255, 184, 119, 16], [86, 6, 28, 5, 64, 255, 25, 248, 1], [56, 8, 17, 132, 137, 255, 55, 116, 128], [58, 15, 20, 82, 135, 57, 26, 121, 40]], [[164, 50, 31, 137, 154, 133, 25, 35, 218], [51, 103, 44, 131, 131, 123, 31, 6, 158], [86, 40, 64, 135, 148, 224, 45, 183, 128], [22, 26, 17, 131, 240, 154, 14, 1, 209], [45, 16, 21, 91, 64, 222, 7, 1, 197], [56, 21, 39, 155, 60, 138, 23, 102, 213], [83, 12, 13, 54, 192, 255, 68, 47, 28], [85, 26, 85, 85, 128, 128, 32, 146, 171], [18, 11, 7, 63, 144, 171, 4, 4, 246], [35, 27, 10, 146, 174, 171, 12, 26, 128]], [[190, 80, 35, 99, 180, 80, 126, 54, 45], [85, 126, 47, 87, 176, 51, 41, 20, 32], [101, 75, 128, 139, 118, 146, 116, 128, 85], [56, 41, 15, 176, 236, 85, 37, 9, 62], [71, 30, 17, 119, 118, 255, 17, 18, 138], [101, 38, 60, 138, 55, 70, 43, 26, 142], [146, 36, 19, 30, 171, 255, 97, 27, 20], [138, 45, 61, 62, 219, 1, 81, 188, 64], [32, 41, 20, 117, 151, 142, 20, 21, 163], [112, 19, 12, 61, 195, 128, 48, 4, 24]]], W2 = [[[[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[176, 246, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 241, 252, 255, 255, 255, 255, 255, 255, 255, 255], [249, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 244, 252, 255, 255, 255, 255, 255, 255, 255, 255], [234, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 246, 254, 255, 255, 255, 255, 255, 255, 255, 255], [239, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 254, 255, 255, 255, 255, 255, 255], [250, 255, 254, 255, 254, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[217, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [225, 252, 241, 253, 255, 255, 254, 255, 255, 255, 255], [234, 250, 241, 250, 253, 255, 253, 254, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [223, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [238, 253, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 248, 254, 255, 255, 255, 255, 255, 255, 255, 255], [249, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 255, 255, 255, 255, 255, 255, 255, 255, 255], [247, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [252, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[186, 251, 250, 255, 255, 255, 255, 255, 255, 255, 255], [234, 251, 244, 254, 255, 255, 255, 255, 255, 255, 255], [251, 251, 243, 253, 254, 255, 254, 255, 255, 255, 255]], [[255, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [236, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [251, 253, 253, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]], [[[248, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [250, 254, 252, 254, 255, 255, 255, 255, 255, 255, 255], [248, 254, 249, 253, 255, 255, 255, 255, 255, 255, 255]], [[255, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [246, 253, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 254, 251, 254, 254, 255, 255, 255, 255, 255, 255]], [[255, 254, 252, 255, 255, 255, 255, 255, 255, 255, 255], [248, 254, 253, 255, 255, 255, 255, 255, 255, 255, 255], [253, 255, 254, 254, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [245, 251, 254, 255, 255, 255, 255, 255, 255, 255, 255], [253, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 251, 253, 255, 255, 255, 255, 255, 255, 255, 255], [252, 253, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 254, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 252, 255, 255, 255, 255, 255, 255, 255, 255, 255], [249, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 254, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 253, 255, 255, 255, 255, 255, 255, 255, 255], [250, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]], [[255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [254, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255], [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]]]], X2 = [0, 1, 2, 3, 6, 4, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 0], qi = [], ys = [], gi = [], j2 = 1, l0 = 2, Vi = [], ss = [];
|
|
24028
24028
|
so("UpsampleRgbLinePair", Ta, 3), so("UpsampleBgrLinePair", Nc, 3), so("UpsampleRgbaLinePair", _l, 4), so("UpsampleBgraLinePair", Aa, 4), so("UpsampleArgbLinePair", Na, 4), so("UpsampleRgba4444LinePair", io, 2), so("UpsampleRgb565LinePair", Ac, 2);
|
|
24029
|
-
var G2 = D.UpsampleRgbLinePair, U2 = D.UpsampleBgrLinePair, h0 = D.UpsampleRgbaLinePair, d0 = D.UpsampleBgraLinePair, u0 = D.UpsampleArgbLinePair, f0 = D.UpsampleRgba4444LinePair, $2 = D.UpsampleRgb565LinePair,
|
|
24029
|
+
var G2 = D.UpsampleRgbLinePair, U2 = D.UpsampleBgrLinePair, h0 = D.UpsampleRgbaLinePair, d0 = D.UpsampleBgraLinePair, u0 = D.UpsampleArgbLinePair, f0 = D.UpsampleRgba4444LinePair, $2 = D.UpsampleRgb565LinePair, dd = 16, ud = 1 << dd - 1, Ul = -227, Nf = 482, Y2 = 6, p0 = 0, q2 = s(256), V2 = s(256), K2 = s(256), Q2 = s(256), Z2 = s(Nf - Ul), J2 = s(Nf - Ul);
|
|
24030
24030
|
zs("YuvToRgbRow", Ta, 3), zs("YuvToBgrRow", Nc, 3), zs("YuvToRgbaRow", _l, 4), zs("YuvToBgraRow", Aa, 4), zs("YuvToArgbRow", Na, 4), zs("YuvToRgba4444Row", io, 2), zs("YuvToRgb565Row", Ac, 2);
|
|
24031
|
-
var g0 = [0, 4, 8, 12, 128, 132, 136, 140, 256, 260, 264, 268, 384, 388, 392, 396],
|
|
24031
|
+
var g0 = [0, 4, 8, 12, 128, 132, 136, 140, 256, 260, 264, 268, 384, 388, 392, 396], fd = [0, 2, 8], eb = [8, 7, 6, 4, 4, 2, 2, 2, 1, 1, 1, 1], tb = 1;
|
|
24032
24032
|
this.WebPDecodeRGBA = function(x, P, I, A, O) {
|
|
24033
|
-
var j =
|
|
24033
|
+
var j = ad, U = new he(), q = new on();
|
|
24034
24034
|
U.ba = q, q.S = j, q.width = [q.width], q.height = [q.height];
|
|
24035
24035
|
var Z = q.width, oe = q.height, ge = new Rt();
|
|
24036
24036
|
if (ge == null || x == null) var Be = 2;
|
|
24037
|
-
else n(ge != null), Be =
|
|
24037
|
+
else n(ge != null), Be = rd(x, P, I, ge.width, ge.height, ge.Pd, ge.Qd, ge.format, null);
|
|
24038
24038
|
if (Be != 0 ? Z = 0 : (Z != null && (Z[0] = ge.width[0]), oe != null && (oe[0] = ge.height[0]), Z = 1), Z) {
|
|
24039
24039
|
q.width = q.width[0], q.height = q.height[0], A != null && (A[0] = q.width), O != null && (O[0] = q.height);
|
|
24040
24040
|
e: {
|
|
24041
|
-
if (A = new bc(), (O = new Pe()).data = x, O.w = P, O.ha = I, O.kd = 1, P = [0], n(O != null), ((x =
|
|
24041
|
+
if (A = new bc(), (O = new Pe()).data = x, O.w = P, O.ha = I, O.kd = 1, P = [0], n(O != null), ((x = rd(O.data, O.w, O.ha, null, null, null, P, null, O)) == 0 || x == 7) && P[0] && (x = 4), (P = x) == 0) {
|
|
24042
24042
|
if (n(U != null), A.data = O.data, A.w = O.w + O.offset, A.ha = O.ha - O.offset, A.put = Dt, A.ac = Ho, A.bc = fs, A.ma = U, O.xa) {
|
|
24043
24043
|
if ((x = Qt()) == null) {
|
|
24044
24044
|
U = 1;
|
|
@@ -24067,7 +24067,7 @@ function ax(c) {
|
|
|
24067
24067
|
break t;
|
|
24068
24068
|
}
|
|
24069
24069
|
if (n(A.s.yc != null), n(A.s.Ya != null), n(0 < A.s.Wb), n((I = A.l) != null), n((O = I.ma) != null), A.xb != 0) {
|
|
24070
|
-
if (A.ca = O.ba, A.tb = O.tb, n(A.ca != null), !rs(O.Oa, I,
|
|
24070
|
+
if (A.ca = O.ba, A.tb = O.tb, n(A.ca != null), !rs(O.Oa, I, cd)) {
|
|
24071
24071
|
A.a = 2;
|
|
24072
24072
|
break n;
|
|
24073
24073
|
}
|
|
@@ -24108,7 +24108,7 @@ function ax(c) {
|
|
|
24108
24108
|
if (!se.cb && !_s(se, me)) return 0;
|
|
24109
24109
|
if (n(se.cb), me.ac == null || me.ac(me)) {
|
|
24110
24110
|
me.ob && (se.L = 0);
|
|
24111
|
-
var Ce =
|
|
24111
|
+
var Ce = fd[se.L];
|
|
24112
24112
|
if (se.L == 2 ? (se.yb = 0, se.zb = 0) : (se.yb = me.v - Ce >> 4, se.zb = me.j - Ce >> 4, 0 > se.yb && (se.yb = 0), 0 > se.zb && (se.zb = 0)), se.Va = me.o + 15 + Ce >> 4, se.Hb = me.va + 15 + Ce >> 4, se.Hb > se.za && (se.Hb = se.za), se.Va > se.Ub && (se.Va = se.Ub), 0 < se.L) {
|
|
24113
24113
|
var _e = se.ed;
|
|
24114
24114
|
for (Ce = 0; 4 > Ce; ++Ce) {
|
|
@@ -24135,7 +24135,7 @@ function ax(c) {
|
|
|
24135
24135
|
t: {
|
|
24136
24136
|
Ce = se.Ic, _e = 4 * (qe = se.za);
|
|
24137
24137
|
var Tt = 32 * qe, pt = qe + 1, dn = 0 < se.L ? qe * (0 < se.Aa ? 2 : 1) : 0, bt = (se.Aa == 2 ? 2 : 1) * qe;
|
|
24138
|
-
if ((We = _e + 832 + (ke = 3 * (16 * Ce +
|
|
24138
|
+
if ((We = _e + 832 + (ke = 3 * (16 * Ce + fd[se.L]) / 2 * Tt) + (Oe = se.Fa != null && 0 < se.Fa.length ? se.Kc.c * se.Kc.i : 0)) != We) Ce = 0;
|
|
24139
24139
|
else {
|
|
24140
24140
|
if (We > se.Vb) {
|
|
24141
24141
|
if (se.Vb = 0, se.Ec = s(We), se.Fc = 0, se.Ec == null) {
|
|
@@ -24144,7 +24144,7 @@ function ax(c) {
|
|
|
24144
24144
|
}
|
|
24145
24145
|
se.Vb = We;
|
|
24146
24146
|
}
|
|
24147
|
-
We = se.Ec, et = se.Fc, se.Ac = We, se.Bc = et, et += _e, se.Gd = i(Tt,
|
|
24147
|
+
We = se.Ec, et = se.Fc, se.Ac = We, se.Bc = et, et += _e, se.Gd = i(Tt, Uh), se.Hd = 0, se.rb = i(pt + 1, Cl), se.sb = 1, se.wa = dn ? i(dn, Lo) : null, se.Y = 0, se.D.Nb = 0, se.D.wa = se.wa, se.D.Y = se.Y, 0 < se.Aa && (se.D.Y += qe), n(!0), se.oc = We, se.pc = et, et += 832, se.ya = i(bt, Tl), se.aa = 0, se.D.ya = se.ya, se.D.aa = se.aa, se.Aa == 2 && (se.D.aa += qe), se.R = 16 * qe, se.B = 8 * qe, qe = (Tt = fd[se.L]) * se.R, Tt = Tt / 2 * se.B, se.sa = We, se.ta = et + qe, se.qa = se.sa, se.ra = se.ta + 16 * Ce * se.R + Tt, se.Ha = se.qa, se.Ia = se.ra + 8 * Ce * se.B + Tt, se.$c = 0, et += ke, se.mb = Oe ? We : null, se.nb = Oe ? et : null, n(et + Oe <= se.Fc + se.Vb), Nl(se), o(se.Ac, se.Bc, 0, _e), Ce = 1;
|
|
24148
24148
|
}
|
|
24149
24149
|
}
|
|
24150
24150
|
if (Ce) {
|
|
@@ -24155,7 +24155,7 @@ function ax(c) {
|
|
|
24155
24155
|
for (Ce = -255; 510 >= Ce; ++Ce) r0[255 + Ce] = 0 > Ce ? 0 : 255 < Ce ? 255 : Ce;
|
|
24156
24156
|
o0 = 1;
|
|
24157
24157
|
}
|
|
24158
|
-
$i =
|
|
24158
|
+
$i = Vh, fi = of, Dc = sf, ao = af, Xs = Os, Yi = qh, qn = Zh, Vn = Jh, br = td, _r = S, pi = ed, Xl = Ia, _c = _, od = ne, Yg = Cc, qg = Fl, Vg = Tc, Kg = Qh, ys[0] = pf, ys[1] = Mc, ys[2] = uf, ys[3] = ff, ys[4] = gf, ys[5] = ci, ys[6] = yf, ys[7] = li, ys[8] = mf, ys[9] = xf, qi[0] = Kh, qi[1] = cf, qi[2] = lf, qi[3] = hf, qi[4] = Wi, qi[5] = df, qi[6] = Sa, gi[0] = wf, gi[1] = Al, gi[2] = Ic, gi[3] = kl, gi[4] = bf, gi[5] = Lc, gi[6] = Bl, Ce = 1;
|
|
24159
24159
|
} else Ce = 0;
|
|
24160
24160
|
}
|
|
24161
24161
|
Ce && (Ce = function(wn, Or) {
|
|
@@ -24211,15 +24211,15 @@ function ax(c) {
|
|
|
24211
24211
|
if (0 < at.L && (at.wa[at.Y + at.ja] = at.gd[un.$b][un.Za], at.wa[at.Y + at.ja].La |= !Zr), Pr.Ka) return kr(wn, 7, "Premature end-of-file encountered.");
|
|
24212
24212
|
}
|
|
24213
24213
|
if (Nl(wn), at = Or, Pr = 1, un = (Pt = wn).D, rn = 0 < Pt.L && Pt.M >= Pt.zb && Pt.M <= Pt.Va, Pt.Aa == 0) t: {
|
|
24214
|
-
if (un.M = Pt.M, un.uc = rn, kc(Pt, un), Pr = 1, un = (kn = Pt.D).Nb, rn = (vn =
|
|
24214
|
+
if (un.M = Pt.M, un.uc = rn, kc(Pt, un), Pr = 1, un = (kn = Pt.D).Nb, rn = (vn = fd[Pt.L]) * Pt.R, Zn = vn / 2 * Pt.B, An = 16 * un * Pt.R, To = 8 * un * Pt.B, Zr = Pt.sa, vo = Pt.ta - rn + An, pr = Pt.qa, Pn = Pt.ra - Zn + To, co = Pt.Ha, So = Pt.Ia - Zn + To, zr = (Wn = kn.M) == 0, Hr = Wn >= Pt.Va - 1, Pt.Aa == 2 && kc(Pt, kn), kn.uc) for (jo = (vr = Pt).D.M, n(vr.D.uc), kn = vr.yb; kn < vr.Hb; ++kn) {
|
|
24215
24215
|
Jr = kn, xs = jo;
|
|
24216
24216
|
var Mo = (Go = (eo = vr).D).Nb;
|
|
24217
24217
|
gr = eo.R;
|
|
24218
24218
|
var Go = Go.wa[Go.Y + Jr], Uo = eo.sa, No = eo.ta + 16 * Mo * gr + 16 * Jr, $o = Go.dd, Kn = Go.tc;
|
|
24219
24219
|
if (Kn != 0) if (n(3 <= Kn), eo.L == 1) 0 < Jr && qg(Uo, No, gr, Kn + 4), Go.La && Kg(Uo, No, gr, Kn), 0 < xs && Yg(Uo, No, gr, Kn + 4), Go.La && Vg(Uo, No, gr, Kn);
|
|
24220
24220
|
else {
|
|
24221
|
-
var Yo = eo.B, ms = eo.qa, _a = eo.ra + 8 * Mo * Yo + 8 * Jr,
|
|
24222
|
-
Mo = Go.ld, 0 < Jr && (Vn(Uo, No, gr, Kn + 4, $o, Mo), _r(ms, _a,
|
|
24221
|
+
var Yo = eo.B, ms = eo.qa, _a = eo.ra + 8 * Mo * Yo + 8 * Jr, yi = eo.Ha, eo = eo.Ia + 8 * Mo * Yo + 8 * Jr;
|
|
24222
|
+
Mo = Go.ld, 0 < Jr && (Vn(Uo, No, gr, Kn + 4, $o, Mo), _r(ms, _a, yi, eo, Yo, Kn + 4, $o, Mo)), Go.La && (Xl(Uo, No, gr, Kn, $o, Mo), od(ms, _a, yi, eo, Yo, Kn, $o, Mo)), 0 < xs && (qn(Uo, No, gr, Kn + 4, $o, Mo), br(ms, _a, yi, eo, Yo, Kn + 4, $o, Mo)), Go.La && (pi(Uo, No, gr, Kn, $o, Mo), _c(ms, _a, yi, eo, Yo, Kn, $o, Mo));
|
|
24223
24223
|
}
|
|
24224
24224
|
}
|
|
24225
24225
|
if (Pt.ia && alert("todo:DitherRow"), at.put != null) {
|
|
@@ -25695,13 +25695,13 @@ function(c) {
|
|
|
25695
25695
|
return this.internal.languageSettings === void 0 && (this.internal.languageSettings = {}, this.internal.languageSettings.isSubscribed = !1), { af: "Afrikaans", sq: "Albanian", ar: "Arabic (Standard)", "ar-DZ": "Arabic (Algeria)", "ar-BH": "Arabic (Bahrain)", "ar-EG": "Arabic (Egypt)", "ar-IQ": "Arabic (Iraq)", "ar-JO": "Arabic (Jordan)", "ar-KW": "Arabic (Kuwait)", "ar-LB": "Arabic (Lebanon)", "ar-LY": "Arabic (Libya)", "ar-MA": "Arabic (Morocco)", "ar-OM": "Arabic (Oman)", "ar-QA": "Arabic (Qatar)", "ar-SA": "Arabic (Saudi Arabia)", "ar-SY": "Arabic (Syria)", "ar-TN": "Arabic (Tunisia)", "ar-AE": "Arabic (U.A.E.)", "ar-YE": "Arabic (Yemen)", an: "Aragonese", hy: "Armenian", as: "Assamese", ast: "Asturian", az: "Azerbaijani", eu: "Basque", be: "Belarusian", bn: "Bengali", bs: "Bosnian", br: "Breton", bg: "Bulgarian", my: "Burmese", ca: "Catalan", ch: "Chamorro", ce: "Chechen", zh: "Chinese", "zh-HK": "Chinese (Hong Kong)", "zh-CN": "Chinese (PRC)", "zh-SG": "Chinese (Singapore)", "zh-TW": "Chinese (Taiwan)", cv: "Chuvash", co: "Corsican", cr: "Cree", hr: "Croatian", cs: "Czech", da: "Danish", nl: "Dutch (Standard)", "nl-BE": "Dutch (Belgian)", en: "English", "en-AU": "English (Australia)", "en-BZ": "English (Belize)", "en-CA": "English (Canada)", "en-IE": "English (Ireland)", "en-JM": "English (Jamaica)", "en-NZ": "English (New Zealand)", "en-PH": "English (Philippines)", "en-ZA": "English (South Africa)", "en-TT": "English (Trinidad & Tobago)", "en-GB": "English (United Kingdom)", "en-US": "English (United States)", "en-ZW": "English (Zimbabwe)", eo: "Esperanto", et: "Estonian", fo: "Faeroese", fj: "Fijian", fi: "Finnish", fr: "French (Standard)", "fr-BE": "French (Belgium)", "fr-CA": "French (Canada)", "fr-FR": "French (France)", "fr-LU": "French (Luxembourg)", "fr-MC": "French (Monaco)", "fr-CH": "French (Switzerland)", fy: "Frisian", fur: "Friulian", gd: "Gaelic (Scots)", "gd-IE": "Gaelic (Irish)", gl: "Galacian", ka: "Georgian", de: "German (Standard)", "de-AT": "German (Austria)", "de-DE": "German (Germany)", "de-LI": "German (Liechtenstein)", "de-LU": "German (Luxembourg)", "de-CH": "German (Switzerland)", el: "Greek", gu: "Gujurati", ht: "Haitian", he: "Hebrew", hi: "Hindi", hu: "Hungarian", is: "Icelandic", id: "Indonesian", iu: "Inuktitut", ga: "Irish", it: "Italian (Standard)", "it-CH": "Italian (Switzerland)", ja: "Japanese", kn: "Kannada", ks: "Kashmiri", kk: "Kazakh", km: "Khmer", ky: "Kirghiz", tlh: "Klingon", ko: "Korean", "ko-KP": "Korean (North Korea)", "ko-KR": "Korean (South Korea)", la: "Latin", lv: "Latvian", lt: "Lithuanian", lb: "Luxembourgish", mk: "North Macedonia", ms: "Malay", ml: "Malayalam", mt: "Maltese", mi: "Maori", mr: "Marathi", mo: "Moldavian", nv: "Navajo", ng: "Ndonga", ne: "Nepali", no: "Norwegian", nb: "Norwegian (Bokmal)", nn: "Norwegian (Nynorsk)", oc: "Occitan", or: "Oriya", om: "Oromo", fa: "Persian", "fa-IR": "Persian/Iran", pl: "Polish", pt: "Portuguese", "pt-BR": "Portuguese (Brazil)", pa: "Punjabi", "pa-IN": "Punjabi (India)", "pa-PK": "Punjabi (Pakistan)", qu: "Quechua", rm: "Rhaeto-Romanic", ro: "Romanian", "ro-MO": "Romanian (Moldavia)", ru: "Russian", "ru-MO": "Russian (Moldavia)", sz: "Sami (Lappish)", sg: "Sango", sa: "Sanskrit", sc: "Sardinian", sd: "Sindhi", si: "Singhalese", sr: "Serbian", sk: "Slovak", sl: "Slovenian", so: "Somani", sb: "Sorbian", es: "Spanish", "es-AR": "Spanish (Argentina)", "es-BO": "Spanish (Bolivia)", "es-CL": "Spanish (Chile)", "es-CO": "Spanish (Colombia)", "es-CR": "Spanish (Costa Rica)", "es-DO": "Spanish (Dominican Republic)", "es-EC": "Spanish (Ecuador)", "es-SV": "Spanish (El Salvador)", "es-GT": "Spanish (Guatemala)", "es-HN": "Spanish (Honduras)", "es-MX": "Spanish (Mexico)", "es-NI": "Spanish (Nicaragua)", "es-PA": "Spanish (Panama)", "es-PY": "Spanish (Paraguay)", "es-PE": "Spanish (Peru)", "es-PR": "Spanish (Puerto Rico)", "es-ES": "Spanish (Spain)", "es-UY": "Spanish (Uruguay)", "es-VE": "Spanish (Venezuela)", sx: "Sutu", sw: "Swahili", sv: "Swedish", "sv-FI": "Swedish (Finland)", "sv-SV": "Swedish (Sweden)", ta: "Tamil", tt: "Tatar", te: "Teluga", th: "Thai", tig: "Tigre", ts: "Tsonga", tn: "Tswana", tr: "Turkish", tk: "Turkmen", uk: "Ukrainian", hsb: "Upper Sorbian", ur: "Urdu", ve: "Venda", vi: "Vietnamese", vo: "Volapuk", wa: "Walloon", cy: "Welsh", xh: "Xhosa", ji: "Yiddish", zu: "Zulu" }[c] !== void 0 && (this.internal.languageSettings.languageCode = c, this.internal.languageSettings.isSubscribed === !1 && (this.internal.events.subscribe("putCatalog", function() {
|
|
25696
25696
|
this.internal.write("/Lang (" + this.internal.languageSettings.languageCode + ")");
|
|
25697
25697
|
}), this.internal.languageSettings.isSubscribed = !0)), this;
|
|
25698
|
-
}, Xc = Mt.API,
|
|
25698
|
+
}, Xc = Mt.API, Rd = Xc.getCharWidthsArray = function(c, n) {
|
|
25699
25699
|
var e, r, o = (n = n || {}).font || this.internal.getFont(), s = n.fontSize || this.internal.getFontSize(), i = n.charSpace || this.internal.getCharSpace(), a = n.widths ? n.widths : o.metadata.Unicode.widths, l = a.fof ? a.fof : 1, h = n.kerning ? n.kerning : o.metadata.Unicode.kerning, d = h.fof ? h.fof : 1, u = n.doKerning !== !1, f = 0, p = c.length, g = 0, y = a[0] || l, b = [];
|
|
25700
25700
|
for (e = 0; e < p; e++) r = c.charCodeAt(e), typeof o.metadata.widthOfString == "function" ? b.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(r)) + i * (1e3 / s) || 0) / 1e3) : (f = u && En(h[r]) === "object" && !isNaN(parseInt(h[r][g], 10)) ? h[r][g] / d : 0, b.push((a[r] || y) / l + f)), g = r;
|
|
25701
25701
|
return b;
|
|
25702
25702
|
}, Qy = Xc.getStringUnitWidth = function(c, n) {
|
|
25703
25703
|
var e = (n = n || {}).fontSize || this.internal.getFontSize(), r = n.font || this.internal.getFont(), o = n.charSpace || this.internal.getCharSpace();
|
|
25704
|
-
return Xc.processArabic && (c = Xc.processArabic(c)), typeof r.metadata.widthOfString == "function" ? r.metadata.widthOfString(c, e, o) / e :
|
|
25704
|
+
return Xc.processArabic && (c = Xc.processArabic(c)), typeof r.metadata.widthOfString == "function" ? r.metadata.widthOfString(c, e, o) / e : Rd.apply(this, arguments).reduce(function(s, i) {
|
|
25705
25705
|
return s + i;
|
|
25706
25706
|
}, 0);
|
|
25707
25707
|
}, Zy = function(c, n, e, r) {
|
|
@@ -25712,7 +25712,7 @@ function(c) {
|
|
|
25712
25712
|
return l !== s && o.push(c.slice(l, s)), o;
|
|
25713
25713
|
}, Jy = function(c, n, e) {
|
|
25714
25714
|
e || (e = {});
|
|
25715
|
-
var r, o, s, i, a, l, h, d = [], u = [d], f = e.textIndent || 0, p = 0, g = 0, y = c.split(" "), b =
|
|
25715
|
+
var r, o, s, i, a, l, h, d = [], u = [d], f = e.textIndent || 0, p = 0, g = 0, y = c.split(" "), b = Rd.apply(this, [" ", e])[0];
|
|
25716
25716
|
if (l = e.lineIndent === -1 ? y[0].length + 2 : e.lineIndent || 0) {
|
|
25717
25717
|
var w = Array(l).join(" "), M = [];
|
|
25718
25718
|
y.map(function(N) {
|
|
@@ -25725,7 +25725,7 @@ function(c) {
|
|
|
25725
25725
|
for (s = 0, i = y.length; s < i; s++) {
|
|
25726
25726
|
var T = 0;
|
|
25727
25727
|
if (r = y[s], l && r[0] == `
|
|
25728
|
-
` && (r = r.substr(1), T = 1), f + p + (g = (o =
|
|
25728
|
+
` && (r = r.substr(1), T = 1), f + p + (g = (o = Rd.apply(this, [r, e])).reduce(function(N, B) {
|
|
25729
25729
|
return N + B;
|
|
25730
25730
|
}, 0)) > n || T) {
|
|
25731
25731
|
if (g > n) {
|
|
@@ -25797,7 +25797,7 @@ function(c) {
|
|
|
25797
25797
|
if (s === void 0) throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('" + o.postScriptName + "').");
|
|
25798
25798
|
if (typeof (r = s.existsFileInVFS(o.postScriptName) === !1 ? s.loadFile(o.postScriptName) : s.getFileFromVFS(o.postScriptName)) != "string") throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('" + o.postScriptName + "').");
|
|
25799
25799
|
(function(i, a) {
|
|
25800
|
-
a = /^\x00\x01\x00\x00/.test(a) ? n(a) : n(
|
|
25800
|
+
a = /^\x00\x01\x00\x00/.test(a) ? n(a) : n(Vd(a)), i.metadata = c.API.TTFFont.open(a), i.metadata.Unicode = i.metadata.Unicode || { encoding: {}, kerning: {}, widths: [] }, i.metadata.glyIdsUsed = [0];
|
|
25801
25801
|
})(o, r);
|
|
25802
25802
|
}
|
|
25803
25803
|
}]);
|
|
@@ -25809,7 +25809,7 @@ function(c) {
|
|
|
25809
25809
|
var h = l.getContext("2d");
|
|
25810
25810
|
h.fillStyle = "#fff", h.fillRect(0, 0, l.width, l.height);
|
|
25811
25811
|
var d = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, u = this;
|
|
25812
|
-
return (jt.canvg ? Promise.resolve(jt.canvg) : import("./index.es-
|
|
25812
|
+
return (jt.canvg ? Promise.resolve(jt.canvg) : import("./index.es-DQMVceEW.js")).catch(function(f) {
|
|
25813
25813
|
return Promise.reject(new Error("Could not load canvg: " + f));
|
|
25814
25814
|
}).then(function(f) {
|
|
25815
25815
|
return f.default ? f.default : f;
|
|
@@ -26233,7 +26233,7 @@ var Rs, xa = function() {
|
|
|
26233
26233
|
for (s = new xa(e), o = 0, r = 0, i = e.length; r < i; r = r += 4) o += s.readUInt32();
|
|
26234
26234
|
return 4294967295 & o;
|
|
26235
26235
|
}, n;
|
|
26236
|
-
}(), WI = {}.hasOwnProperty,
|
|
26236
|
+
}(), WI = {}.hasOwnProperty, ri = function(c, n) {
|
|
26237
26237
|
for (var e in n) WI.call(n, e) && (c[e] = n[e]);
|
|
26238
26238
|
function r() {
|
|
26239
26239
|
this.constructor = c;
|
|
@@ -26255,7 +26255,7 @@ var XI = function() {
|
|
|
26255
26255
|
function c() {
|
|
26256
26256
|
return c.__super__.constructor.apply(this, arguments);
|
|
26257
26257
|
}
|
|
26258
|
-
return
|
|
26258
|
+
return ri(c, Rs), c.prototype.tag = "head", c.prototype.parse = function(n) {
|
|
26259
26259
|
return n.pos = this.offset, this.version = n.readInt(), this.revision = n.readInt(), this.checkSumAdjustment = n.readInt(), this.magicNumber = n.readInt(), this.flags = n.readShort(), this.unitsPerEm = n.readShort(), this.created = n.readLongLong(), this.modified = n.readLongLong(), this.xMin = n.readShort(), this.yMin = n.readShort(), this.xMax = n.readShort(), this.yMax = n.readShort(), this.macStyle = n.readShort(), this.lowestRecPPEM = n.readShort(), this.fontDirectionHint = n.readShort(), this.indexToLocFormat = n.readShort(), this.glyphDataFormat = n.readShort();
|
|
26260
26260
|
}, c.prototype.encode = function(n) {
|
|
26261
26261
|
var e;
|
|
@@ -26327,7 +26327,7 @@ var XI = function() {
|
|
|
26327
26327
|
function c() {
|
|
26328
26328
|
return c.__super__.constructor.apply(this, arguments);
|
|
26329
26329
|
}
|
|
26330
|
-
return
|
|
26330
|
+
return ri(c, Rs), c.prototype.tag = "cmap", c.prototype.parse = function(n) {
|
|
26331
26331
|
var e, r, o;
|
|
26332
26332
|
for (n.pos = this.offset, this.version = n.readUInt16(), o = n.readUInt16(), this.tables = [], this.unicode = null, r = 0; 0 <= o ? r < o : r > o; r = 0 <= o ? ++r : --r) e = new cx(n, this.offset), this.tables.push(e), e.isUnicode && this.unicode == null && (this.unicode = e);
|
|
26333
26333
|
return !0;
|
|
@@ -26339,14 +26339,14 @@ var XI = function() {
|
|
|
26339
26339
|
function c() {
|
|
26340
26340
|
return c.__super__.constructor.apply(this, arguments);
|
|
26341
26341
|
}
|
|
26342
|
-
return
|
|
26342
|
+
return ri(c, Rs), c.prototype.tag = "hhea", c.prototype.parse = function(n) {
|
|
26343
26343
|
return n.pos = this.offset, this.version = n.readInt(), this.ascender = n.readShort(), this.decender = n.readShort(), this.lineGap = n.readShort(), this.advanceWidthMax = n.readShort(), this.minLeftSideBearing = n.readShort(), this.minRightSideBearing = n.readShort(), this.xMaxExtent = n.readShort(), this.caretSlopeRise = n.readShort(), this.caretSlopeRun = n.readShort(), this.caretOffset = n.readShort(), n.pos += 8, this.metricDataFormat = n.readShort(), this.numberOfMetrics = n.readUInt16();
|
|
26344
26344
|
}, c;
|
|
26345
26345
|
}(), GI = function() {
|
|
26346
26346
|
function c() {
|
|
26347
26347
|
return c.__super__.constructor.apply(this, arguments);
|
|
26348
26348
|
}
|
|
26349
|
-
return
|
|
26349
|
+
return ri(c, Rs), c.prototype.tag = "OS/2", c.prototype.parse = function(n) {
|
|
26350
26350
|
if (n.pos = this.offset, this.version = n.readUInt16(), this.averageCharWidth = n.readShort(), this.weightClass = n.readUInt16(), this.widthClass = n.readUInt16(), this.type = n.readShort(), this.ySubscriptXSize = n.readShort(), this.ySubscriptYSize = n.readShort(), this.ySubscriptXOffset = n.readShort(), this.ySubscriptYOffset = n.readShort(), this.ySuperscriptXSize = n.readShort(), this.ySuperscriptYSize = n.readShort(), this.ySuperscriptXOffset = n.readShort(), this.ySuperscriptYOffset = n.readShort(), this.yStrikeoutSize = n.readShort(), this.yStrikeoutPosition = n.readShort(), this.familyClass = n.readShort(), this.panose = function() {
|
|
26351
26351
|
var e, r;
|
|
26352
26352
|
for (r = [], e = 0; e < 10; ++e) r.push(n.readByte());
|
|
@@ -26365,7 +26365,7 @@ var XI = function() {
|
|
|
26365
26365
|
function c() {
|
|
26366
26366
|
return c.__super__.constructor.apply(this, arguments);
|
|
26367
26367
|
}
|
|
26368
|
-
return
|
|
26368
|
+
return ri(c, Rs), c.prototype.tag = "post", c.prototype.parse = function(n) {
|
|
26369
26369
|
var e, r, o;
|
|
26370
26370
|
switch (n.pos = this.offset, this.format = n.readInt(), this.italicAngle = n.readInt(), this.underlinePosition = n.readShort(), this.underlineThickness = n.readShort(), this.isFixedPitch = n.readInt(), this.minMemType42 = n.readInt(), this.maxMemType42 = n.readInt(), this.minMemType1 = n.readInt(), this.maxMemType1 = n.readInt(), this.format) {
|
|
26371
26371
|
case 65536:
|
|
@@ -26392,7 +26392,7 @@ var XI = function() {
|
|
|
26392
26392
|
function c() {
|
|
26393
26393
|
return c.__super__.constructor.apply(this, arguments);
|
|
26394
26394
|
}
|
|
26395
|
-
return
|
|
26395
|
+
return ri(c, Rs), c.prototype.tag = "name", c.prototype.parse = function(n) {
|
|
26396
26396
|
var e, r, o, s, i, a, l, h, d, u, f;
|
|
26397
26397
|
for (n.pos = this.offset, n.readShort(), e = n.readShort(), a = n.readShort(), r = [], s = 0; 0 <= e ? s < e : s > e; s = 0 <= e ? ++s : --s) r.push({ platformID: n.readShort(), encodingID: n.readShort(), languageID: n.readShort(), nameID: n.readShort(), length: n.readShort(), offset: this.offset + a + n.readShort() });
|
|
26398
26398
|
for (l = {}, s = d = 0, u = r.length; d < u; s = ++d) o = r[s], n.pos = o.offset, h = n.readString(o.length), i = new $I(h, o), l[f = o.nameID] == null && (l[f] = []), l[o.nameID].push(i);
|
|
@@ -26408,14 +26408,14 @@ var XI = function() {
|
|
|
26408
26408
|
function c() {
|
|
26409
26409
|
return c.__super__.constructor.apply(this, arguments);
|
|
26410
26410
|
}
|
|
26411
|
-
return
|
|
26411
|
+
return ri(c, Rs), c.prototype.tag = "maxp", c.prototype.parse = function(n) {
|
|
26412
26412
|
return n.pos = this.offset, this.version = n.readInt(), this.numGlyphs = n.readUInt16(), this.maxPoints = n.readUInt16(), this.maxContours = n.readUInt16(), this.maxCompositePoints = n.readUInt16(), this.maxComponentContours = n.readUInt16(), this.maxZones = n.readUInt16(), this.maxTwilightPoints = n.readUInt16(), this.maxStorage = n.readUInt16(), this.maxFunctionDefs = n.readUInt16(), this.maxInstructionDefs = n.readUInt16(), this.maxStackElements = n.readUInt16(), this.maxSizeOfInstructions = n.readUInt16(), this.maxComponentElements = n.readUInt16(), this.maxComponentDepth = n.readUInt16();
|
|
26413
26413
|
}, c;
|
|
26414
26414
|
}(), VI = function() {
|
|
26415
26415
|
function c() {
|
|
26416
26416
|
return c.__super__.constructor.apply(this, arguments);
|
|
26417
26417
|
}
|
|
26418
|
-
return
|
|
26418
|
+
return ri(c, Rs), c.prototype.tag = "hmtx", c.prototype.parse = function(n) {
|
|
26419
26419
|
var e, r, o, s, i, a, l;
|
|
26420
26420
|
for (n.pos = this.offset, this.metrics = [], e = 0, a = this.file.hhea.numberOfMetrics; 0 <= a ? e < a : e > a; e = 0 <= a ? ++e : --e) this.metrics.push({ advance: n.readUInt16(), lsb: n.readInt16() });
|
|
26421
26421
|
for (o = this.file.maxp.numGlyphs - this.file.hhea.numberOfMetrics, this.leftSideBearings = function() {
|
|
@@ -26435,7 +26435,7 @@ var XI = function() {
|
|
|
26435
26435
|
function c() {
|
|
26436
26436
|
return c.__super__.constructor.apply(this, arguments);
|
|
26437
26437
|
}
|
|
26438
|
-
return
|
|
26438
|
+
return ri(c, Rs), c.prototype.tag = "glyf", c.prototype.parse = function() {
|
|
26439
26439
|
return this.cache = {};
|
|
26440
26440
|
}, c.prototype.glyphFor = function(n) {
|
|
26441
26441
|
var e, r, o, s, i, a, l, h, d, u;
|
|
@@ -26466,7 +26466,7 @@ var XI = function() {
|
|
|
26466
26466
|
function c() {
|
|
26467
26467
|
return c.__super__.constructor.apply(this, arguments);
|
|
26468
26468
|
}
|
|
26469
|
-
return
|
|
26469
|
+
return ri(c, Rs), c.prototype.tag = "loca", c.prototype.parse = function(n) {
|
|
26470
26470
|
var e, r;
|
|
26471
26471
|
return n.pos = this.offset, e = this.file.head.indexToLocFormat, this.offsets = e === 0 ? (function() {
|
|
26472
26472
|
var o, s;
|
|
@@ -26579,8 +26579,8 @@ Pg.options = {
|
|
|
26579
26579
|
};
|
|
26580
26580
|
Pg.version = "3.0.0";
|
|
26581
26581
|
var aL = Pg;
|
|
26582
|
-
const J1 = /* @__PURE__ */
|
|
26583
|
-
var rh = 0, fp = 1, lx = 2,
|
|
26582
|
+
const J1 = /* @__PURE__ */ Ah(aL);
|
|
26583
|
+
var rh = 0, fp = 1, lx = 2, Fd = 3, hx = 4, dx = 5, ux = 6, pp = /[a-z0-9_-]/i, Dd = /[\s\t]/, cL = function(c) {
|
|
26584
26584
|
for (var n = !0, e = rh, r = "", o = 0, s, i, a = []; ; ) {
|
|
26585
26585
|
if (i = c[o], e === rh) {
|
|
26586
26586
|
if (!i && n)
|
|
@@ -26589,8 +26589,8 @@ var rh = 0, fp = 1, lx = 2, Dd = 3, hx = 4, dx = 5, ux = 6, pp = /[a-z0-9_-]/i,
|
|
|
26589
26589
|
throw new Error("Parse error");
|
|
26590
26590
|
if (i === '"' || i === "'")
|
|
26591
26591
|
s = i, e = fp, n = !1;
|
|
26592
|
-
else if (!
|
|
26593
|
-
e =
|
|
26592
|
+
else if (!Dd.test(i)) if (pp.test(i))
|
|
26593
|
+
e = Fd, n = !1, o--;
|
|
26594
26594
|
else
|
|
26595
26595
|
throw new Error("Parse error");
|
|
26596
26596
|
} else if (e === fp)
|
|
@@ -26602,9 +26602,9 @@ var rh = 0, fp = 1, lx = 2, Dd = 3, hx = 4, dx = 5, ux = 6, pp = /[a-z0-9_-]/i,
|
|
|
26602
26602
|
r += i, e = fp;
|
|
26603
26603
|
else
|
|
26604
26604
|
throw new Error("Parse error");
|
|
26605
|
-
else if (e ===
|
|
26605
|
+
else if (e === Fd)
|
|
26606
26606
|
if (i)
|
|
26607
|
-
pp.test(i) ? r += i : i === "," ? (a.push(r), r = "", e = rh) :
|
|
26607
|
+
pp.test(i) ? r += i : i === "," ? (a.push(r), r = "", e = rh) : Dd.test(i) ? e = dx : i === "\\" && (e = ux);
|
|
26608
26608
|
else {
|
|
26609
26609
|
a.push(r);
|
|
26610
26610
|
break;
|
|
@@ -26612,14 +26612,14 @@ var rh = 0, fp = 1, lx = 2, Dd = 3, hx = 4, dx = 5, ux = 6, pp = /[a-z0-9_-]/i,
|
|
|
26612
26612
|
else if (e === ux) {
|
|
26613
26613
|
if (/[0-9a-f]/i.test(i))
|
|
26614
26614
|
throw new Error("Parse error");
|
|
26615
|
-
r += i, e =
|
|
26615
|
+
r += i, e = Fd;
|
|
26616
26616
|
} else if (e === dx)
|
|
26617
26617
|
if (i) {
|
|
26618
26618
|
if (pp.test(i))
|
|
26619
|
-
r += " " + i, e =
|
|
26619
|
+
r += " " + i, e = Fd;
|
|
26620
26620
|
else if (i === ",")
|
|
26621
26621
|
a.push(r), r = "", e = rh;
|
|
26622
|
-
else if (!
|
|
26622
|
+
else if (!Dd.test(i)) throw new Error("Parse error");
|
|
26623
26623
|
} else {
|
|
26624
26624
|
a.push(r);
|
|
26625
26625
|
break;
|
|
@@ -26628,7 +26628,7 @@ var rh = 0, fp = 1, lx = 2, Dd = 3, hx = 4, dx = 5, ux = 6, pp = /[a-z0-9_-]/i,
|
|
|
26628
26628
|
if (i) {
|
|
26629
26629
|
if (i === ",")
|
|
26630
26630
|
e = rh;
|
|
26631
|
-
else if (!
|
|
26631
|
+
else if (!Dd.test(i)) throw new Error("Parse error");
|
|
26632
26632
|
} else break;
|
|
26633
26633
|
o++;
|
|
26634
26634
|
}
|
|
@@ -26646,8 +26646,8 @@ var rh = 0, fp = 1, lx = 2, Dd = 3, hx = 4, dx = 5, ux = 6, pp = /[a-z0-9_-]/i,
|
|
|
26646
26646
|
parse: cL,
|
|
26647
26647
|
stringify: hL
|
|
26648
26648
|
};
|
|
26649
|
-
const uL = /* @__PURE__ */
|
|
26650
|
-
var
|
|
26649
|
+
const uL = /* @__PURE__ */ Ah(dL);
|
|
26650
|
+
var eu = { a: 7, c: 6, h: 1, l: 2, m: 2, r: 4, q: 4, s: 4, t: 2, v: 1, z: 0 }, fL = [
|
|
26651
26651
|
5760,
|
|
26652
26652
|
6158,
|
|
26653
26653
|
8192,
|
|
@@ -26703,7 +26703,7 @@ function xL(c) {
|
|
|
26703
26703
|
function mL(c) {
|
|
26704
26704
|
this.index = 0, this.path = c, this.max = c.length, this.result = [], this.param = 0, this.err = "", this.segmentStart = 0, this.data = [];
|
|
26705
26705
|
}
|
|
26706
|
-
function
|
|
26706
|
+
function tu(c) {
|
|
26707
26707
|
for (; c.index < c.max && pL(c.path.charCodeAt(c.index)); )
|
|
26708
26708
|
c.index++;
|
|
26709
26709
|
}
|
|
@@ -26765,7 +26765,7 @@ function gp(c) {
|
|
|
26765
26765
|
if (e === "m" && r.length > 2 && (c.result.push([n, r[0], r[1]]), r = r.slice(2), e = "l", n = n === "m" ? "l" : "L"), e === "r")
|
|
26766
26766
|
c.result.push([n].concat(r));
|
|
26767
26767
|
else
|
|
26768
|
-
for (; r.length >=
|
|
26768
|
+
for (; r.length >= eu[e] && (c.result.push([n].concat(r.splice(0, eu[e]))), !!eu[e]); )
|
|
26769
26769
|
;
|
|
26770
26770
|
}
|
|
26771
26771
|
function PL(c) {
|
|
@@ -26774,7 +26774,7 @@ function PL(c) {
|
|
|
26774
26774
|
c.err = "SvgPath: bad command " + c.path[c.index] + " (at pos " + c.index + ")";
|
|
26775
26775
|
return;
|
|
26776
26776
|
}
|
|
26777
|
-
if (s =
|
|
26777
|
+
if (s = eu[c.path[c.index].toLowerCase()], c.index++, tu(c), c.data = [], !s) {
|
|
26778
26778
|
gp(c);
|
|
26779
26779
|
return;
|
|
26780
26780
|
}
|
|
@@ -26784,7 +26784,7 @@ function PL(c) {
|
|
|
26784
26784
|
gp(c);
|
|
26785
26785
|
return;
|
|
26786
26786
|
}
|
|
26787
|
-
c.data.push(c.param),
|
|
26787
|
+
c.data.push(c.param), tu(c), o = !1, c.index < n && c.path.charCodeAt(c.index) === 44 && (c.index++, tu(c), o = !0);
|
|
26788
26788
|
}
|
|
26789
26789
|
if (!o && (c.index >= c.max || !xL(c.path.charCodeAt(c.index))))
|
|
26790
26790
|
break;
|
|
@@ -26793,7 +26793,7 @@ function PL(c) {
|
|
|
26793
26793
|
}
|
|
26794
26794
|
var vL = function(n) {
|
|
26795
26795
|
var e = new mL(n), r = e.max;
|
|
26796
|
-
for (
|
|
26796
|
+
for (tu(e); e.index < r && !e.err.length; )
|
|
26797
26797
|
PL(e);
|
|
26798
26798
|
return e.result.length && ("mM".indexOf(e.result[0][0]) < 0 ? (e.err = "SvgPath: string should start with `M` or `m`", e.result = []) : e.result[0][0] = "M"), {
|
|
26799
26799
|
err: e.err,
|
|
@@ -27188,7 +27188,7 @@ dr.prototype.unshort = function() {
|
|
|
27188
27188
|
}), this;
|
|
27189
27189
|
};
|
|
27190
27190
|
var _L = dr, OL = _L;
|
|
27191
|
-
const HL = /* @__PURE__ */
|
|
27191
|
+
const HL = /* @__PURE__ */ Ah(OL);
|
|
27192
27192
|
var gx = function(c) {
|
|
27193
27193
|
var n = c, e, r = {
|
|
27194
27194
|
a: 0,
|
|
@@ -27273,11 +27273,11 @@ function On(c, n) {
|
|
|
27273
27273
|
}
|
|
27274
27274
|
Vp(c, n), c.prototype = n === null ? Object.create(n) : (e.prototype = n.prototype, new e());
|
|
27275
27275
|
}
|
|
27276
|
-
var
|
|
27277
|
-
return
|
|
27276
|
+
var cu = function() {
|
|
27277
|
+
return cu = Object.assign || function(c) {
|
|
27278
27278
|
for (var n, e = 1, r = arguments.length; e < r; e++) for (var o in n = arguments[e]) Object.prototype.hasOwnProperty.call(n, o) && (c[o] = n[o]);
|
|
27279
27279
|
return c;
|
|
27280
|
-
},
|
|
27280
|
+
}, cu.apply(this, arguments);
|
|
27281
27281
|
};
|
|
27282
27282
|
function Gn(c, n, e, r) {
|
|
27283
27283
|
return new (e || (e = Promise))(function(o, s) {
|
|
@@ -27481,7 +27481,7 @@ function dh(c) {
|
|
|
27481
27481
|
function Gc(c, n) {
|
|
27482
27482
|
return dh([n[0] - c[0], n[1] - c[1]]);
|
|
27483
27483
|
}
|
|
27484
|
-
function
|
|
27484
|
+
function _d(c, n) {
|
|
27485
27485
|
return [c[0] + n[0], c[1] + n[1]];
|
|
27486
27486
|
}
|
|
27487
27487
|
function yp(c, n) {
|
|
@@ -27577,7 +27577,7 @@ var WL = function() {
|
|
|
27577
27577
|
}(), oa = function(c, n, e, r) {
|
|
27578
27578
|
r === void 0 && (r = !1), this.id = c, this.anchor = n, this.angle = e, this.isStartMarker = r;
|
|
27579
27579
|
}, vg = /url\(["']?#([^"']+)["']?\)/, XL = { bottom: "bottom", "text-bottom": "bottom", top: "top", "text-top": "top", hanging: "hanging", middle: "middle", central: "middle", center: "middle", mathematical: "middle", ideographic: "ideographic", alphabetic: "alphabetic", baseline: "alphabetic" }, wx = "http://www.w3.org/2000/svg";
|
|
27580
|
-
function
|
|
27580
|
+
function Li(c, n) {
|
|
27581
27581
|
var e;
|
|
27582
27582
|
return (e = c && c.toString().match(/^([\-0-9.]+)em$/)) ? parseFloat(e[1]) * n : (e = c && c.toString().match(/^([\-0-9.]+)(px|)$/)) ? parseFloat(e[1]) : 0;
|
|
27583
27583
|
}
|
|
@@ -27603,7 +27603,7 @@ function al(c, n) {
|
|
|
27603
27603
|
}
|
|
27604
27604
|
return new vs(c);
|
|
27605
27605
|
}
|
|
27606
|
-
var
|
|
27606
|
+
var Ti = { "sans-serif": "helvetica", verdana: "helvetica", arial: "helvetica", fixed: "courier", monospace: "courier", terminal: "courier", serif: "times", cursive: "times", fantasy: "times" }, xp, jL = (xp = Mt.version.split("."), parseFloat(xp[0]) === 2 && parseFloat(xp[1]) === 3);
|
|
27607
27607
|
function rw(c, n) {
|
|
27608
27608
|
return jL ? n == 400 ? c == "italic" ? "italic" : "normal" : n == 700 && c !== "italic" ? "bold" : c + "" + n : n == 400 || n === "normal" ? c === "italic" ? "italic" : "normal" : n != 700 && n !== "bold" || c !== "normal" ? (n == 700 ? "bold" : n) + "" + c : "bold";
|
|
27609
27609
|
}
|
|
@@ -27618,11 +27618,11 @@ function Sg(c, n) {
|
|
|
27618
27618
|
}
|
|
27619
27619
|
}), e.length === 0 ? [0, 0, 0, 0] : e;
|
|
27620
27620
|
}
|
|
27621
|
-
function
|
|
27621
|
+
function Rh(c, n) {
|
|
27622
27622
|
var e = parseFloat, r = e(c.getAttribute("x1")) || e(tt(c, n.styleSheets, "x")) || e(tt(c, n.styleSheets, "cx")) - e(tt(c, n.styleSheets, "r")) || 0, o = e(c.getAttribute("x2")) || r + e(tt(c, n.styleSheets, "width")) || e(tt(c, n.styleSheets, "cx")) + e(tt(c, n.styleSheets, "r")) || 0, s = e(c.getAttribute("y1")) || e(tt(c, n.styleSheets, "y")) || e(tt(c, n.styleSheets, "cy")) - e(tt(c, n.styleSheets, "r")) || 0, i = e(c.getAttribute("y2")) || s + e(tt(c, n.styleSheets, "height")) || e(tt(c, n.styleSheets, "cy")) + e(tt(c, n.styleSheets, "r")) || 0;
|
|
27623
27623
|
return [Math.min(r, o), Math.min(s, i), Math.max(r, o) - Math.min(r, o), Math.max(s, i) - Math.min(s, i)];
|
|
27624
27624
|
}
|
|
27625
|
-
function
|
|
27625
|
+
function Fh(c, n, e, r, o, s, i, a) {
|
|
27626
27626
|
a === void 0 && (a = !1);
|
|
27627
27627
|
var l, h, d = n[0], u = n[1], f = n[2], p = n[3], g = o / f, y = s / p, b = c.getAttribute("preserveAspectRatio");
|
|
27628
27628
|
if (b) {
|
|
@@ -27667,7 +27667,7 @@ var Mg = function() {
|
|
|
27667
27667
|
var e = this.computeNodeTransformCore(n), r = tt(this.element, n.styleSheets, "transform");
|
|
27668
27668
|
return r ? n.pdf.matrixMult(e, Au(r, n)) : e;
|
|
27669
27669
|
}, c;
|
|
27670
|
-
}(),
|
|
27670
|
+
}(), Dh = function(c) {
|
|
27671
27671
|
function n() {
|
|
27672
27672
|
return c !== null && c.apply(this, arguments) || this;
|
|
27673
27673
|
}
|
|
@@ -27715,7 +27715,7 @@ var Mg = function() {
|
|
|
27715
27715
|
}
|
|
27716
27716
|
}), this.stops = i;
|
|
27717
27717
|
}, n.prototype.getBoundingBoxCore = function(e) {
|
|
27718
|
-
return
|
|
27718
|
+
return Rh(this.element, e);
|
|
27719
27719
|
}, n.prototype.computeNodeTransformCore = function(e) {
|
|
27720
27720
|
return e.pdf.unitMatrix;
|
|
27721
27721
|
}, n.prototype.isVisible = function(e, r) {
|
|
@@ -27724,7 +27724,7 @@ var Mg = function() {
|
|
|
27724
27724
|
var r = parseFloat(e);
|
|
27725
27725
|
return !isNaN(r) && e.indexOf("%") >= 0 ? r / 100 : r;
|
|
27726
27726
|
}, n;
|
|
27727
|
-
}(
|
|
27727
|
+
}(Dh), sw = function(c) {
|
|
27728
27728
|
function n(e, r) {
|
|
27729
27729
|
return c.call(this, "axial", e, r) || this;
|
|
27730
27730
|
}
|
|
@@ -27782,13 +27782,13 @@ var Mg = function() {
|
|
|
27782
27782
|
});
|
|
27783
27783
|
});
|
|
27784
27784
|
}, n.prototype.getBoundingBoxCore = function(e) {
|
|
27785
|
-
return
|
|
27785
|
+
return Rh(this.element, e);
|
|
27786
27786
|
}, n.prototype.computeNodeTransformCore = function(e) {
|
|
27787
27787
|
return e.pdf.unitMatrix;
|
|
27788
27788
|
}, n.prototype.isVisible = function(e, r) {
|
|
27789
27789
|
return Pa(this, e, r);
|
|
27790
27790
|
}, n;
|
|
27791
|
-
}(
|
|
27791
|
+
}(Dh), UL = function() {
|
|
27792
27792
|
function c(n, e) {
|
|
27793
27793
|
this.key = n, this.pattern = e;
|
|
27794
27794
|
}
|
|
@@ -27876,14 +27876,14 @@ function Ig(c, n, e) {
|
|
|
27876
27876
|
var fe = rw(ue.fontStyle, ue.fontWeight), Me = Le.pdf.getFontList(), Ee = "";
|
|
27877
27877
|
return Se.some(function(Ae) {
|
|
27878
27878
|
var z = Me[Ae];
|
|
27879
|
-
return z && z.indexOf(fe) >= 0 ? (Ee = Ae, !0) : (Ae = Ae.toLowerCase(), !!
|
|
27879
|
+
return z && z.indexOf(fe) >= 0 ? (Ee = Ae, !0) : (Ae = Ae.toLowerCase(), !!Ti.hasOwnProperty(Ae) && (Ee = Ae, !0));
|
|
27880
27880
|
}) || (Ee = "times"), Ee;
|
|
27881
27881
|
}(c.attributeState, H, c);
|
|
27882
27882
|
}
|
|
27883
27883
|
var D = tt(r, c.styleSheets, "font-size");
|
|
27884
27884
|
if (D) {
|
|
27885
27885
|
var ee = c.pdf.getFontSize();
|
|
27886
|
-
c.attributeState.fontSize =
|
|
27886
|
+
c.attributeState.fontSize = Li(D, ee);
|
|
27887
27887
|
}
|
|
27888
27888
|
var E = tt(r, c.styleSheets, "vertical-align") || tt(r, c.styleSheets, "alignment-baseline");
|
|
27889
27889
|
if (E) {
|
|
@@ -27903,11 +27903,11 @@ function Lg(c, n, e) {
|
|
|
27903
27903
|
var h = {};
|
|
27904
27904
|
a && (h.opacity = r), l && (h["stroke-opacity"] = o), c.pdf.setGState(new nc(h));
|
|
27905
27905
|
}
|
|
27906
|
-
if (c.attributeState.fill && c.attributeState.fill !== n.attributeState.fill && c.attributeState.fill instanceof oo && c.attributeState.fill.color.ok && !ma(e, "text") && c.pdf.setFillColor(c.attributeState.fill.color.r, c.attributeState.fill.color.g, c.attributeState.fill.color.b), c.attributeState.strokeWidth !== n.attributeState.strokeWidth && c.pdf.setLineWidth(c.attributeState.strokeWidth), c.attributeState.stroke !== n.attributeState.stroke && c.attributeState.stroke instanceof oo && c.pdf.setDrawColor(c.attributeState.stroke.color.r, c.attributeState.stroke.color.g, c.attributeState.stroke.color.b), c.attributeState.strokeLinecap !== n.attributeState.strokeLinecap && c.pdf.setLineCap(c.attributeState.strokeLinecap), c.attributeState.strokeLinejoin !== n.attributeState.strokeLinejoin && c.pdf.setLineJoin(c.attributeState.strokeLinejoin), c.attributeState.strokeDasharray === n.attributeState.strokeDasharray && c.attributeState.strokeDashoffset === n.attributeState.strokeDashoffset || !c.attributeState.strokeDasharray || c.pdf.setLineDashPattern(c.attributeState.strokeDasharray, c.attributeState.strokeDashoffset), c.attributeState.strokeMiterlimit !== n.attributeState.strokeMiterlimit && c.pdf.setLineMiterLimit(c.attributeState.strokeMiterlimit), c.attributeState.fontFamily !== n.attributeState.fontFamily && (s =
|
|
27906
|
+
if (c.attributeState.fill && c.attributeState.fill !== n.attributeState.fill && c.attributeState.fill instanceof oo && c.attributeState.fill.color.ok && !ma(e, "text") && c.pdf.setFillColor(c.attributeState.fill.color.r, c.attributeState.fill.color.g, c.attributeState.fill.color.b), c.attributeState.strokeWidth !== n.attributeState.strokeWidth && c.pdf.setLineWidth(c.attributeState.strokeWidth), c.attributeState.stroke !== n.attributeState.stroke && c.attributeState.stroke instanceof oo && c.pdf.setDrawColor(c.attributeState.stroke.color.r, c.attributeState.stroke.color.g, c.attributeState.stroke.color.b), c.attributeState.strokeLinecap !== n.attributeState.strokeLinecap && c.pdf.setLineCap(c.attributeState.strokeLinecap), c.attributeState.strokeLinejoin !== n.attributeState.strokeLinejoin && c.pdf.setLineJoin(c.attributeState.strokeLinejoin), c.attributeState.strokeDasharray === n.attributeState.strokeDasharray && c.attributeState.strokeDashoffset === n.attributeState.strokeDashoffset || !c.attributeState.strokeDasharray || c.pdf.setLineDashPattern(c.attributeState.strokeDasharray, c.attributeState.strokeDashoffset), c.attributeState.strokeMiterlimit !== n.attributeState.strokeMiterlimit && c.pdf.setLineMiterLimit(c.attributeState.strokeMiterlimit), c.attributeState.fontFamily !== n.attributeState.fontFamily && (s = Ti.hasOwnProperty(c.attributeState.fontFamily) ? Ti[c.attributeState.fontFamily] : c.attributeState.fontFamily), c.attributeState.fill && c.attributeState.fill !== n.attributeState.fill && c.attributeState.fill instanceof oo && c.attributeState.fill.color.ok) {
|
|
27907
27907
|
var d = c.attributeState.fill.color;
|
|
27908
27908
|
c.pdf.setTextColor(d.r, d.g, d.b);
|
|
27909
27909
|
}
|
|
27910
|
-
c.attributeState.fontWeight === n.attributeState.fontWeight && c.attributeState.fontStyle === n.attributeState.fontStyle || (i = rw(c.attributeState.fontStyle, c.attributeState.fontWeight)), s === void 0 && i === void 0 || (s === void 0 && (s =
|
|
27910
|
+
c.attributeState.fontWeight === n.attributeState.fontWeight && c.attributeState.fontStyle === n.attributeState.fontStyle || (i = rw(c.attributeState.fontStyle, c.attributeState.fontWeight)), s === void 0 && i === void 0 || (s === void 0 && (s = Ti.hasOwnProperty(c.attributeState.fontFamily) ? Ti[c.attributeState.fontFamily] : c.attributeState.fontFamily), c.pdf.setFont(s, i)), c.attributeState.fontSize !== n.attributeState.fontSize && c.pdf.setFontSize(c.attributeState.fontSize * c.pdf.internal.scaleFactor);
|
|
27911
27911
|
}
|
|
27912
27912
|
function cw(c, n, e) {
|
|
27913
27913
|
var r = vg.exec(c);
|
|
@@ -27961,7 +27961,7 @@ var hw = function(c) {
|
|
|
27961
27961
|
return c !== null && c.apply(this, arguments) || this;
|
|
27962
27962
|
}
|
|
27963
27963
|
return On(n, c), n;
|
|
27964
|
-
}(hw),
|
|
27964
|
+
}(hw), _h = function(c) {
|
|
27965
27965
|
function n(e, r, o) {
|
|
27966
27966
|
var s = c.call(this, r, o) || this;
|
|
27967
27967
|
return s.cachedPath = null, s.hasMarkers = e, s;
|
|
@@ -28033,14 +28033,14 @@ var hw = function(c) {
|
|
|
28033
28033
|
});
|
|
28034
28034
|
var T = i && (b === l.length - 1 || !(l[b] instanceof Yr) && l[b + 1] instanceof Yr), N = s && b > 0 && !(b === 1 && l[b - 1] instanceof Yr), B = l[b - 1] || null;
|
|
28035
28035
|
if (B instanceof Yr || B instanceof aa || B instanceof qs)
|
|
28036
|
-
if (w instanceof qs) M && a.addMarker(new oa(o, [B.x, B.y], yx(p ? [p.x, p.y] : [B.x, B.y], [w.x1, w.y1]), !0)), T && a.addMarker(new oa(i, [w.x, w.y], yx([w.x2, w.y2], [w.x, w.y]))), N && (d = Gc([B.x, B.y], [w.x1, w.y1]), d = B instanceof Yr ? d : dh(
|
|
28036
|
+
if (w instanceof qs) M && a.addMarker(new oa(o, [B.x, B.y], yx(p ? [p.x, p.y] : [B.x, B.y], [w.x1, w.y1]), !0)), T && a.addMarker(new oa(i, [w.x, w.y], yx([w.x2, w.y2], [w.x, w.y]))), N && (d = Gc([B.x, B.y], [w.x1, w.y1]), d = B instanceof Yr ? d : dh(_d(h, d)), a.addMarker(new oa(s, [B.x, B.y], Math.atan2(d[1], d[0])))), h = Gc([w.x2, w.y2], [w.x, w.y]);
|
|
28037
28037
|
else if (w instanceof Yr || w instanceof aa) {
|
|
28038
28038
|
if (d = Gc([B.x, B.y], [w.x, w.y]), M) {
|
|
28039
28039
|
var X = p ? Gc([p.x, p.y], [w.x, w.y]) : d;
|
|
28040
28040
|
a.addMarker(new oa(o, [B.x, B.y], Math.atan2(X[1], X[0]), !0));
|
|
28041
28041
|
}
|
|
28042
|
-
T && a.addMarker(new oa(i, [w.x, w.y], Math.atan2(d[1], d[0]))), N && (X = w instanceof Yr ? h : B instanceof Yr ? d : dh(
|
|
28043
|
-
} else w instanceof Kp && (d = Gc([B.x, B.y], [u.x, u.y]), N && (X = B instanceof Yr ? d : dh(
|
|
28042
|
+
T && a.addMarker(new oa(i, [w.x, w.y], Math.atan2(d[1], d[0]))), N && (X = w instanceof Yr ? h : B instanceof Yr ? d : dh(_d(h, d)), a.addMarker(new oa(s, [B.x, B.y], Math.atan2(X[1], X[0])))), h = d;
|
|
28043
|
+
} else w instanceof Kp && (d = Gc([B.x, B.y], [u.x, u.y]), N && (X = B instanceof Yr ? d : dh(_d(h, d)), a.addMarker(new oa(s, [B.x, B.y], Math.atan2(X[1], X[0])))), T && (X = dh(_d(d, f)), a.addMarker(new oa(i, [u.x, u.y], Math.atan2(X[1], X[0])))), h = d);
|
|
28044
28044
|
else {
|
|
28045
28045
|
u = w instanceof Yr && w;
|
|
28046
28046
|
var $ = l[b + 1];
|
|
@@ -28085,7 +28085,7 @@ var YL = function(c) {
|
|
|
28085
28085
|
});
|
|
28086
28086
|
});
|
|
28087
28087
|
}, n;
|
|
28088
|
-
}(
|
|
28088
|
+
}(_h), dw = function(c) {
|
|
28089
28089
|
function n() {
|
|
28090
28090
|
return c !== null && c.apply(this, arguments) || this;
|
|
28091
28091
|
}
|
|
@@ -28121,11 +28121,11 @@ var YL = function(c) {
|
|
|
28121
28121
|
var r = parseFloat(tt(this.element, e.styleSheets, "x") || "0"), o = parseFloat(tt(this.element, e.styleSheets, "y") || "0"), s = this.element.getAttribute("viewBox");
|
|
28122
28122
|
if (s) {
|
|
28123
28123
|
var i = ls(s), a = parseFloat(tt(this.element, e.styleSheets, "width") || tt(this.element.ownerSVGElement, e.styleSheets, "width") || s[2]), l = parseFloat(tt(this.element, e.styleSheets, "height") || tt(this.element.ownerSVGElement, e.styleSheets, "height") || s[3]);
|
|
28124
|
-
return
|
|
28124
|
+
return Fh(this.element, i, r, o, a, l, e);
|
|
28125
28125
|
}
|
|
28126
28126
|
return e.pdf.Matrix(1, 0, 0, 1, r, o);
|
|
28127
28127
|
}, n;
|
|
28128
|
-
}(
|
|
28128
|
+
}(Dh), Bu = function(c, n) {
|
|
28129
28129
|
this.width = c, this.height = n;
|
|
28130
28130
|
}, qL = function(c) {
|
|
28131
28131
|
function n() {
|
|
@@ -28137,7 +28137,7 @@ var YL = function(c) {
|
|
|
28137
28137
|
return Un(this, function(b) {
|
|
28138
28138
|
switch (b.label) {
|
|
28139
28139
|
case 0:
|
|
28140
|
-
return r = parseFloat, (o = this.element.getAttribute("href") || this.element.getAttribute("xlink:href")) ? (s = o.substring(1), i = e.refsHandler.get(s), a = ma(i.element, "symbol,svg") && i.element.hasAttribute("viewBox"), l = r(tt(this.element, e.styleSheets, "x") || "0"), h = r(tt(this.element, e.styleSheets, "y") || "0"), d = void 0, u = void 0, a ? (d = r(tt(this.element, e.styleSheets, "width") || tt(i.element, e.styleSheets, "width") || "0"), u = r(tt(this.element, e.styleSheets, "height") || tt(i.element, e.styleSheets, "height") || "0"), l += r(tt(i.element, e.styleSheets, "x") || "0"), h += r(tt(i.element, e.styleSheets, "y") || "0"), p = ls(i.element.getAttribute("viewBox")), f =
|
|
28140
|
+
return r = parseFloat, (o = this.element.getAttribute("href") || this.element.getAttribute("xlink:href")) ? (s = o.substring(1), i = e.refsHandler.get(s), a = ma(i.element, "symbol,svg") && i.element.hasAttribute("viewBox"), l = r(tt(this.element, e.styleSheets, "x") || "0"), h = r(tt(this.element, e.styleSheets, "y") || "0"), d = void 0, u = void 0, a ? (d = r(tt(this.element, e.styleSheets, "width") || tt(i.element, e.styleSheets, "width") || "0"), u = r(tt(this.element, e.styleSheets, "height") || tt(i.element, e.styleSheets, "height") || "0"), l += r(tt(i.element, e.styleSheets, "x") || "0"), h += r(tt(i.element, e.styleSheets, "y") || "0"), p = ls(i.element.getAttribute("viewBox")), f = Fh(i.element, p, l, h, d, u, e)) : f = e.pdf.Matrix(1, 0, 0, 1, l, h), g = ul.getContextColors(e, !0), y = new ba(e.pdf, { refsHandler: e.refsHandler, styleSheets: e.styleSheets, withinUse: !0, viewport: a ? new Bu(d, u) : e.viewport, svg2pdfParameters: e.svg2pdfParameters, textMeasure: e.textMeasure, attributeState: Object.assign(ul.default(), g) }), [4, e.refsHandler.getRendered(s, g, function(w) {
|
|
28141
28141
|
return n.renderReferencedNode(w, s, y);
|
|
28142
28142
|
})]) : [2];
|
|
28143
28143
|
case 1:
|
|
@@ -28164,7 +28164,7 @@ var YL = function(c) {
|
|
|
28164
28164
|
});
|
|
28165
28165
|
});
|
|
28166
28166
|
}, n.prototype.getBoundingBoxCore = function(e) {
|
|
28167
|
-
return
|
|
28167
|
+
return Rh(this.element, e);
|
|
28168
28168
|
}, n.prototype.isVisible = function(e, r) {
|
|
28169
28169
|
return _i(this, e, r);
|
|
28170
28170
|
}, n.prototype.computeNodeTransformCore = function(e) {
|
|
@@ -28184,7 +28184,7 @@ var YL = function(c) {
|
|
|
28184
28184
|
}, n.prototype.isVisible = function(e, r) {
|
|
28185
28185
|
return _i(this, e, r);
|
|
28186
28186
|
}, n;
|
|
28187
|
-
}(
|
|
28187
|
+
}(_h), uw = function(c) {
|
|
28188
28188
|
function n(e, r) {
|
|
28189
28189
|
return c.call(this, !1, e, r) || this;
|
|
28190
28190
|
}
|
|
@@ -28198,7 +28198,7 @@ var YL = function(c) {
|
|
|
28198
28198
|
}, n.prototype.isVisible = function(e, r) {
|
|
28199
28199
|
return _i(this, e, r);
|
|
28200
28200
|
}, n;
|
|
28201
|
-
}(
|
|
28201
|
+
}(_h), KL = function(c) {
|
|
28202
28202
|
function n(e, r) {
|
|
28203
28203
|
return c.call(this, e, r) || this;
|
|
28204
28204
|
}
|
|
@@ -28255,9 +28255,9 @@ var wp = function() {
|
|
|
28255
28255
|
if (o.nodeName !== "#text" && !a.includes(o)) {
|
|
28256
28256
|
a.push(o);
|
|
28257
28257
|
var b = c.resolveRelativePositionAttribute(o, "dx");
|
|
28258
|
-
b !== null && (g +=
|
|
28258
|
+
b !== null && (g += Li(b, s.attributeState.fontSize));
|
|
28259
28259
|
var w = c.resolveRelativePositionAttribute(o, "dy");
|
|
28260
|
-
w !== null && (y +=
|
|
28260
|
+
w !== null && (y += Li(w, s.attributeState.fontSize));
|
|
28261
28261
|
}
|
|
28262
28262
|
l[r] = g, h[r] = y, d = g + i.width + i.length * e, u = y, f = Math.min(f, g), p = Math.max(p, d);
|
|
28263
28263
|
}
|
|
@@ -28305,12 +28305,12 @@ var wp = function() {
|
|
|
28305
28305
|
if (ma(p, "tspan")) {
|
|
28306
28306
|
var w = p, M = w.getAttribute("x");
|
|
28307
28307
|
if (M !== null) {
|
|
28308
|
-
var T =
|
|
28308
|
+
var T = Li(M, l);
|
|
28309
28309
|
i = new wp(this, tt(w, o.styleSheets, "text-anchor") || o.attributeState.textAnchor, T, 0), s.push({ type: "y", chunk: i });
|
|
28310
28310
|
}
|
|
28311
28311
|
var N = w.getAttribute("y");
|
|
28312
28312
|
if (N !== null) {
|
|
28313
|
-
var B =
|
|
28313
|
+
var B = Li(N, l);
|
|
28314
28314
|
i = new wp(this, tt(w, o.styleSheets, "text-anchor") || o.attributeState.textAnchor, 0, B), s.push({ type: "x", chunk: i });
|
|
28315
28315
|
}
|
|
28316
28316
|
var X = o.clone();
|
|
@@ -28324,7 +28324,7 @@ var wp = function() {
|
|
|
28324
28324
|
return Gn(this, void 0, void 0, function() {
|
|
28325
28325
|
var r, o, s, i, a, l, h, d, u, f, p, g, y, b, w, M, T, N, B, X, $, H, D;
|
|
28326
28326
|
return Un(this, function(ee) {
|
|
28327
|
-
if (e.pdf.saveGraphicsState(), r = 0, o = 0, s = 1, i = e.pdf.getFontSize(), a =
|
|
28327
|
+
if (e.pdf.saveGraphicsState(), r = 0, o = 0, s = 1, i = e.pdf.getFontSize(), a = Li(this.element.getAttribute("x"), i), l = Li(this.element.getAttribute("y"), i), h = Li(this.element.getAttribute("dx"), i), d = Li(this.element.getAttribute("dy"), i), u = parseFloat(this.element.getAttribute("textLength") || "0"), f = e.attributeState.visibility, this.element.childElementCount === 0) p = this.element.textContent || "", g = function(E, R) {
|
|
28328
28328
|
return E = Px(E = bx(E)), R.xmlSpace === "preserve" || R.whiteSpace === "pre" || (E = vx(E = E.trim())), E;
|
|
28329
28329
|
}(p, e.attributeState), y = Sx(this.element, g, e), r = e.textMeasure.getTextOffset(y, e.attributeState), u > 0 && (b = e.textMeasure.measureTextWidth(y, e.attributeState), !(e.attributeState.xmlSpace === "preserve" || e.attributeState.whiteSpace === "pre") && p.match(/^\s/) && (s = 0), o = (u - b) / (y.length - s) || 0), f === "visible" && (w = e.attributeState.alignmentBaseline, M = fw(e.attributeState), e.pdf.text(y, a + h - r, l + d, { baseline: nw(w), angle: e.transform, renderingMode: M === "fill" ? void 0 : M, charSpace: o === 0 ? void 0 : o }), this.boundingBox = [a + h - r, l + d + 0.1 * i, e.textMeasure.measureTextWidth(y, e.attributeState), i]);
|
|
28330
28330
|
else {
|
|
@@ -28346,7 +28346,7 @@ var wp = function() {
|
|
|
28346
28346
|
}, n.prototype.isVisible = function(e, r) {
|
|
28347
28347
|
return Pa(this, e, r);
|
|
28348
28348
|
}, n.prototype.getBoundingBoxCore = function(e) {
|
|
28349
|
-
return this.boundingBox.length > 0 ? this.boundingBox :
|
|
28349
|
+
return this.boundingBox.length > 0 ? this.boundingBox : Rh(this.element, e);
|
|
28350
28350
|
}, n.prototype.computeNodeTransformCore = function(e) {
|
|
28351
28351
|
return e.pdf.unitMatrix;
|
|
28352
28352
|
}, n;
|
|
@@ -28403,7 +28403,7 @@ var wp = function() {
|
|
|
28403
28403
|
}
|
|
28404
28404
|
}), i;
|
|
28405
28405
|
}, n;
|
|
28406
|
-
}(
|
|
28406
|
+
}(_h), JL = /^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,([\s\S]*)$/i, eC = function(c) {
|
|
28407
28407
|
function n(e, r) {
|
|
28408
28408
|
var o = c.call(this, e, r) || this;
|
|
28409
28409
|
return o.imageLoadingPromise = null, o.imageUrl = o.element.getAttribute("xlink:href") || o.element.getAttribute("href"), o.imageUrl && (o.imageLoadingPromise = n.fetchImageData(o.imageUrl)), o;
|
|
@@ -28424,7 +28424,7 @@ var wp = function() {
|
|
|
28424
28424
|
case 4:
|
|
28425
28425
|
return B.trys.push([4, 6, , 7]), [4, n.getImageDimensions(g)];
|
|
28426
28426
|
case 5:
|
|
28427
|
-
return y = B.sent(), b = y[0], w = y[1], M = [0, 0, b, w], T =
|
|
28427
|
+
return y = B.sent(), b = y[0], w = y[1], M = [0, 0, b, w], T = Fh(this.element, M, s, i, r, o, e), e.pdf.setCurrentTransformationMatrix(T), e.pdf.addImage(g, "", 0, 0, b, w), [3, 7];
|
|
28428
28428
|
case 6:
|
|
28429
28429
|
return N = B.sent(), typeof console == "object" && console.warn && console.warn("Could not load image ".concat(this.imageUrl, `.
|
|
28430
28430
|
`).concat(N)), [3, 7];
|
|
@@ -28434,7 +28434,7 @@ var wp = function() {
|
|
|
28434
28434
|
});
|
|
28435
28435
|
});
|
|
28436
28436
|
}, n.prototype.getBoundingBoxCore = function(e) {
|
|
28437
|
-
return
|
|
28437
|
+
return Rh(this.element, e);
|
|
28438
28438
|
}, n.prototype.computeNodeTransformCore = function(e) {
|
|
28439
28439
|
return e.pdf.unitMatrix;
|
|
28440
28440
|
}, n.prototype.isVisible = function(e, r) {
|
|
@@ -28505,7 +28505,7 @@ var wp = function() {
|
|
|
28505
28505
|
}
|
|
28506
28506
|
return o;
|
|
28507
28507
|
}, n;
|
|
28508
|
-
}(
|
|
28508
|
+
}(_h), tC = function(c) {
|
|
28509
28509
|
function n(e, r) {
|
|
28510
28510
|
return c.call(this, !0, e, r) || this;
|
|
28511
28511
|
}
|
|
@@ -28537,12 +28537,12 @@ var wp = function() {
|
|
|
28537
28537
|
var u = d.attributeState, f = d.pdf, p = 1, g = 1;
|
|
28538
28538
|
p *= u.fillOpacity, p *= u.opacity, u.fill instanceof oo && u.fill.color.a !== void 0 && (p *= u.fill.color.a), g *= u.strokeOpacity, g *= u.opacity, u.stroke instanceof oo && u.stroke.color.a !== void 0 && (g *= u.stroke.color.a);
|
|
28539
28539
|
var y, b = {};
|
|
28540
|
-
if (b.opacity = p, b["stroke-opacity"] = g, f.setGState(new nc(b)), u.fill && u.fill instanceof oo && u.fill.color.ok ? f.setFillColor(u.fill.color.r, u.fill.color.g, u.fill.color.b) : f.setFillColor(0, 0, 0), f.setLineWidth(u.strokeWidth), u.stroke instanceof oo ? f.setDrawColor(u.stroke.color.r, u.stroke.color.g, u.stroke.color.b) : f.setDrawColor(0, 0, 0), f.setLineCap(u.strokeLinecap), f.setLineJoin(u.strokeLinejoin), u.strokeDasharray ? f.setLineDashPattern(u.strokeDasharray, u.strokeDashoffset) : f.setLineDashPattern([], 0), f.setLineMiterLimit(u.strokeMiterlimit), y =
|
|
28540
|
+
if (b.opacity = p, b["stroke-opacity"] = g, f.setGState(new nc(b)), u.fill && u.fill instanceof oo && u.fill.color.ok ? f.setFillColor(u.fill.color.r, u.fill.color.g, u.fill.color.b) : f.setFillColor(0, 0, 0), f.setLineWidth(u.strokeWidth), u.stroke instanceof oo ? f.setDrawColor(u.stroke.color.r, u.stroke.color.g, u.stroke.color.b) : f.setDrawColor(0, 0, 0), f.setLineCap(u.strokeLinecap), f.setLineJoin(u.strokeLinejoin), u.strokeDasharray ? f.setLineDashPattern(u.strokeDasharray, u.strokeDashoffset) : f.setLineDashPattern([], 0), f.setLineMiterLimit(u.strokeMiterlimit), y = Ti.hasOwnProperty(u.fontFamily) ? Ti[u.fontFamily] : u.fontFamily, u.fill && u.fill instanceof oo && u.fill.color.ok) {
|
|
28541
28541
|
var w = u.fill.color;
|
|
28542
28542
|
f.setTextColor(w.r, w.g, w.b);
|
|
28543
28543
|
} else f.setTextColor(0, 0, 0);
|
|
28544
28544
|
var M = "";
|
|
28545
|
-
u.fontWeight === "bold" && (M = "bold"), u.fontStyle === "italic" && (M += "italic"), M === "" && (M = "normal"), y !== void 0 || M !== void 0 ? (y === void 0 && (y =
|
|
28545
|
+
u.fontWeight === "bold" && (M = "bold"), u.fontStyle === "italic" && (M += "italic"), M === "" && (M = "normal"), y !== void 0 || M !== void 0 ? (y === void 0 && (y = Ti.hasOwnProperty(u.fontFamily) ? Ti[u.fontFamily] : u.fontFamily), f.setFont(y, M)) : f.setFont("helvetica", M), f.setFontSize(u.fontSize * f.internal.scaleFactor);
|
|
28546
28546
|
}(i = new ba(e.pdf, { refsHandler: e.refsHandler, styleSheets: e.styleSheets, viewport: e.viewport, svg2pdfParameters: e.svg2pdfParameters, textMeasure: e.textMeasure, attributeState: Object.assign(ul.default(), s) })), a = 0, l = this.children, h.label = 1;
|
|
28547
28547
|
case 1:
|
|
28548
28548
|
return a < l.length ? [4, l[a].render(i)] : [3, 4];
|
|
@@ -28562,13 +28562,13 @@ var wp = function() {
|
|
|
28562
28562
|
var r, o = parseFloat(this.element.getAttribute("refX") || "0"), s = parseFloat(this.element.getAttribute("refY") || "0"), i = this.element.getAttribute("viewBox");
|
|
28563
28563
|
if (i) {
|
|
28564
28564
|
var a = ls(i);
|
|
28565
|
-
r =
|
|
28565
|
+
r = Fh(this.element, a, 0, 0, parseFloat(this.element.getAttribute("markerWidth") || "3"), parseFloat(this.element.getAttribute("markerHeight") || "3"), e, !0), r = e.pdf.matrixMult(e.pdf.Matrix(1, 0, 0, 1, -o, -s), r);
|
|
28566
28566
|
} else r = e.pdf.Matrix(1, 0, 0, 1, -o, -s);
|
|
28567
28567
|
return r;
|
|
28568
28568
|
}, n.prototype.isVisible = function(e, r) {
|
|
28569
28569
|
return Pa(this, e, r);
|
|
28570
28570
|
}, n;
|
|
28571
|
-
}(
|
|
28571
|
+
}(Dh), oC = function(c) {
|
|
28572
28572
|
function n(e, r) {
|
|
28573
28573
|
return c.call(this, e, r) || this;
|
|
28574
28574
|
}
|
|
@@ -28635,7 +28635,7 @@ var wp = function() {
|
|
|
28635
28635
|
var r, o = this.getX(e), s = this.getY(e), i = this.getViewBox();
|
|
28636
28636
|
if (i) {
|
|
28637
28637
|
var a = this.getWidth(e), l = this.getHeight(e);
|
|
28638
|
-
r =
|
|
28638
|
+
r = Fh(this.element, i, o, s, a, l, e);
|
|
28639
28639
|
} else r = e.pdf.Matrix(1, 0, 0, 1, o, s);
|
|
28640
28640
|
return r;
|
|
28641
28641
|
}, n.prototype.getWidth = function(e) {
|
|
@@ -28739,7 +28739,7 @@ var wp = function() {
|
|
|
28739
28739
|
}, n.prototype.getClipRuleAttr = function(e, r) {
|
|
28740
28740
|
return tt(e, r, "clip-rule") === "evenodd" ? "evenodd" : void 0;
|
|
28741
28741
|
}, n;
|
|
28742
|
-
}(
|
|
28742
|
+
}(Dh);
|
|
28743
28743
|
function Cg(c, n) {
|
|
28744
28744
|
var e, r = [];
|
|
28745
28745
|
switch (function(s, i) {
|
|
@@ -28955,7 +28955,7 @@ function xw(c, n) {
|
|
|
28955
28955
|
case 0:
|
|
28956
28956
|
return s = (b = o.x) !== null && b !== void 0 ? b : 0, i = (w = o.y) !== null && w !== void 0 ? w : 0, a = (M = o.loadExternalStyleSheets) !== null && M !== void 0 && M, h = new tw(l = {}), [4, (d = new lC(e, a)).load()];
|
|
28957
28957
|
case 1:
|
|
28958
|
-
return T.sent(), u = new Bu(r.internal.pageSize.getWidth(), r.internal.pageSize.getHeight()), f =
|
|
28958
|
+
return T.sent(), u = new Bu(r.internal.pageSize.getWidth(), r.internal.pageSize.getHeight()), f = cu(cu({}, o), { element: e }), p = new hC(), g = new ba(r, { refsHandler: h, styleSheets: d, viewport: u, svg2pdfParameters: f, textMeasure: p }), r.advancedAPI(), r.saveGraphicsState(), r.setCurrentTransformationMatrix(r.Matrix(1, 0, 0, 1, s, i)), r.setLineWidth(g.attributeState.strokeWidth), y = g.attributeState.fill.color, r.setFillColor(y.r, y.g, y.b), r.setFont(g.attributeState.fontFamily), r.setFontSize(g.attributeState.fontSize * r.internal.scaleFactor), [4, Cg(e, l).render(g)];
|
|
28959
28959
|
case 2:
|
|
28960
28960
|
return T.sent(), r.restoreGraphicsState(), r.compatAPI(), g.textMeasure.cleanupTextMeasuring(), [2, r];
|
|
28961
28961
|
}
|
|
@@ -29163,7 +29163,7 @@ class Pw extends Tg {
|
|
|
29163
29163
|
return e.type !== v.Section;
|
|
29164
29164
|
}
|
|
29165
29165
|
}
|
|
29166
|
-
class
|
|
29166
|
+
class Oh extends As {
|
|
29167
29167
|
constructor() {
|
|
29168
29168
|
super(...arguments);
|
|
29169
29169
|
m(this, "renderText");
|
|
@@ -29272,7 +29272,7 @@ class fC extends Tn {
|
|
|
29272
29272
|
const s = o[0];
|
|
29273
29273
|
if (r.auxiliaryManager.selectManager.include(s)) {
|
|
29274
29274
|
const i = s.toLocal(e.globalPoint);
|
|
29275
|
-
if (s instanceof
|
|
29275
|
+
if (s instanceof Oh && s.renderText.contains(i))
|
|
29276
29276
|
return this.res = { node: s, relativePos: i }, !0;
|
|
29277
29277
|
if (s.type === v.CheckboxText) {
|
|
29278
29278
|
const a = s;
|
|
@@ -29853,7 +29853,7 @@ class PC extends Tn {
|
|
|
29853
29853
|
const s = [...o][0];
|
|
29854
29854
|
if (s.type !== v.MindmapNode)
|
|
29855
29855
|
return !1;
|
|
29856
|
-
const i = r.renderManager.getScale(), a = C.computeMindmapNodeConnectAnchor(s, i), l =
|
|
29856
|
+
const i = r.renderManager.getScale(), a = C.computeMindmapNodeConnectAnchor(s, i), l = Nh / i, h = s.toLocal(e.globalPoint);
|
|
29857
29857
|
for (let d = 0; d < a.length; d++) {
|
|
29858
29858
|
const u = a[d], f = u.point;
|
|
29859
29859
|
if (C.circleContains(h, f, l))
|
|
@@ -30274,7 +30274,7 @@ class FC {
|
|
|
30274
30274
|
this.creatingLine = n, this.creatingLineByDrag = !!(n && e);
|
|
30275
30275
|
}
|
|
30276
30276
|
}
|
|
30277
|
-
var
|
|
30277
|
+
var Hh = /* @__PURE__ */ ((c) => (c[c.Checkbox = 0] = "Checkbox", c[c.CheckboxText = 1] = "CheckboxText", c))(Hh || {});
|
|
30278
30278
|
class Tr {
|
|
30279
30279
|
}
|
|
30280
30280
|
class Ew extends Tr {
|
|
@@ -30542,7 +30542,7 @@ class JC extends ks {
|
|
|
30542
30542
|
return !0;
|
|
30543
30543
|
}
|
|
30544
30544
|
}
|
|
30545
|
-
class eT extends
|
|
30545
|
+
class eT extends ni {
|
|
30546
30546
|
enable(n) {
|
|
30547
30547
|
return n.type === v.SlideContainer || n.type === v.DocContainer;
|
|
30548
30548
|
}
|
|
@@ -31287,7 +31287,7 @@ class xT extends wr {
|
|
|
31287
31287
|
return !!e.detect(Ie.PolyControlPoint, n);
|
|
31288
31288
|
}
|
|
31289
31289
|
}
|
|
31290
|
-
class
|
|
31290
|
+
class zh extends Iu {
|
|
31291
31291
|
enable(n) {
|
|
31292
31292
|
return n.shapeType === Ye.BrokenLine;
|
|
31293
31293
|
}
|
|
@@ -31309,7 +31309,7 @@ class Wh extends Iu {
|
|
|
31309
31309
|
return [n.point, e.point];
|
|
31310
31310
|
}
|
|
31311
31311
|
}
|
|
31312
|
-
var
|
|
31312
|
+
var oi = /* @__PURE__ */ ((c) => (c.LineStyle = "oolong:engine:line-style", c.TextStyle = "oolong:engine:text-style", c))(oi || {});
|
|
31313
31313
|
function Pp() {
|
|
31314
31314
|
return /* @__PURE__ */ new Map();
|
|
31315
31315
|
}
|
|
@@ -31381,7 +31381,7 @@ function wT(c) {
|
|
|
31381
31381
|
}
|
|
31382
31382
|
function bT(c, n) {
|
|
31383
31383
|
const e = wT(n.shapeType);
|
|
31384
|
-
e !== void 0 && c.remember(
|
|
31384
|
+
e !== void 0 && c.remember(oi.LineStyle, {
|
|
31385
31385
|
shapeType: e,
|
|
31386
31386
|
border: {
|
|
31387
31387
|
color: n.borderProps.color,
|
|
@@ -31414,7 +31414,7 @@ class PT extends fr {
|
|
|
31414
31414
|
onStart(e, r) {
|
|
31415
31415
|
var B;
|
|
31416
31416
|
this.startConnectInfo.point = e.globalPoint;
|
|
31417
|
-
const o = ((B = r.memoryManager.getValue(
|
|
31417
|
+
const o = ((B = r.memoryManager.getValue(oi.LineStyle)) == null ? void 0 : B.shapeType) ?? Ye.RoundPolyLine;
|
|
31418
31418
|
this.layoutHandler = this.createLineLayoutHandler(o);
|
|
31419
31419
|
const i = [new Ht(o)], { node: a, relative: l } = r.detect(Ie.HoverConnectAnchor, e), h = {
|
|
31420
31420
|
type: L.Connect,
|
|
@@ -31538,10 +31538,10 @@ class PT extends fr {
|
|
|
31538
31538
|
case Ye.RoundPolyLine:
|
|
31539
31539
|
return new ds();
|
|
31540
31540
|
case Ye.BrokenLine:
|
|
31541
|
-
return new
|
|
31541
|
+
return new zh();
|
|
31542
31542
|
case Ye.Curve:
|
|
31543
31543
|
default:
|
|
31544
|
-
return new
|
|
31544
|
+
return new Bi();
|
|
31545
31545
|
}
|
|
31546
31546
|
}
|
|
31547
31547
|
toParentLocalPoints(e, r) {
|
|
@@ -31750,7 +31750,7 @@ class TT extends Pl {
|
|
|
31750
31750
|
return "rotate";
|
|
31751
31751
|
}
|
|
31752
31752
|
}
|
|
31753
|
-
const za = 100,
|
|
31753
|
+
const za = 100, Si = 50, Od = 20, Ix = /* @__PURE__ */ new Set([
|
|
31754
31754
|
v.Line,
|
|
31755
31755
|
v.Section,
|
|
31756
31756
|
v.Group,
|
|
@@ -31791,7 +31791,7 @@ class Dw {
|
|
|
31791
31791
|
*/
|
|
31792
31792
|
judgeQuickCreateMode(n, e, r) {
|
|
31793
31793
|
const o = C.computeNodeConnectEnd(e, n.baseProps.angle), s = n.globalBaseProps, i = s.clone();
|
|
31794
|
-
o === lt.Top ? i.y = s.y - s.height -
|
|
31794
|
+
o === lt.Top ? i.y = s.y - s.height - Od : o === lt.Bottom ? i.y = s.y + s.height + Od : o === lt.Left ? i.x = s.x - s.width - Od : i.x = s.x + s.width + Od;
|
|
31795
31795
|
const a = C.getBoundsByBaseProps(i), l = r.nodeManager.searchNodesByRectNode(a).filter((d) => this.canBeQuickCreateTarget(n, d)), h = C.sortGraphics(l);
|
|
31796
31796
|
for (let d = h.length - 1; d >= 0; d--) {
|
|
31797
31797
|
const u = h[d];
|
|
@@ -31816,14 +31816,14 @@ class Dw {
|
|
|
31816
31816
|
const i = o.clone();
|
|
31817
31817
|
i.y = o.y - o.height - za;
|
|
31818
31818
|
const a = s % 2, l = Math.ceil(s / 2);
|
|
31819
|
-
a ? i.x -= l * (o.width +
|
|
31819
|
+
a ? i.x -= l * (o.width + Si) : i.x += l * (o.width + Si);
|
|
31820
31820
|
const h = C.getBoundsByBaseProps(i);
|
|
31821
31821
|
if (r.nodeManager.searchNodesByRectNode(h).filter((u) => this.canBlockQuickCreatePlace(u)).length === 0)
|
|
31822
31822
|
return { x: i.x, y: i.y };
|
|
31823
31823
|
}
|
|
31824
31824
|
return {
|
|
31825
31825
|
x: o.x,
|
|
31826
|
-
y: o.y - o.height -
|
|
31826
|
+
y: o.y - o.height - Si
|
|
31827
31827
|
};
|
|
31828
31828
|
}
|
|
31829
31829
|
findBottomPlace(n, e, r) {
|
|
@@ -31832,7 +31832,7 @@ class Dw {
|
|
|
31832
31832
|
const i = o.clone();
|
|
31833
31833
|
i.y = o.y + o.height + za;
|
|
31834
31834
|
const a = s % 2, l = Math.ceil(s / 2);
|
|
31835
|
-
a ? i.x -= l * (o.width +
|
|
31835
|
+
a ? i.x -= l * (o.width + Si) : i.x += l * (o.width + Si);
|
|
31836
31836
|
const h = C.getBoundsByBaseProps(i);
|
|
31837
31837
|
if (r.nodeManager.searchNodesByRectNode(h).filter((u) => this.canBlockQuickCreatePlace(u)).length === 0)
|
|
31838
31838
|
return { x: i.x, y: i.y };
|
|
@@ -31848,7 +31848,7 @@ class Dw {
|
|
|
31848
31848
|
const i = o.clone();
|
|
31849
31849
|
i.x = o.x + o.width + za;
|
|
31850
31850
|
const a = s % 2, l = Math.ceil(s / 2);
|
|
31851
|
-
a ? i.y -= l * (o.width +
|
|
31851
|
+
a ? i.y -= l * (o.width + Si) : i.y += l * (o.width + Si);
|
|
31852
31852
|
const h = C.getBoundsByBaseProps(i);
|
|
31853
31853
|
if (r.nodeManager.searchNodesByRectNode(h).filter((u) => this.canBlockQuickCreatePlace(u)).length === 0)
|
|
31854
31854
|
return { x: i.x, y: i.y };
|
|
@@ -31864,7 +31864,7 @@ class Dw {
|
|
|
31864
31864
|
const i = o.clone();
|
|
31865
31865
|
i.x = o.x - o.width - za;
|
|
31866
31866
|
const a = s % 2, l = Math.ceil(s / 2);
|
|
31867
|
-
a ? i.y -= l * (o.width +
|
|
31867
|
+
a ? i.y -= l * (o.width + Si) : i.y += l * (o.width + Si);
|
|
31868
31868
|
const h = C.getBoundsByBaseProps(i);
|
|
31869
31869
|
if (r.nodeManager.searchNodesByRectNode(h).filter((u) => this.canBlockQuickCreatePlace(u)).length === 0)
|
|
31870
31870
|
return { x: i.x, y: i.y };
|
|
@@ -32138,7 +32138,7 @@ class NT extends Tn {
|
|
|
32138
32138
|
}
|
|
32139
32139
|
makeupLineProps(e, r, o, s) {
|
|
32140
32140
|
var f;
|
|
32141
|
-
const i = ((f = s.memoryManager.getValue(
|
|
32141
|
+
const i = ((f = s.memoryManager.getValue(oi.LineStyle)) == null ? void 0 : f.shapeType) ?? Ye.RoundPolyLine;
|
|
32142
32142
|
let l = this.createLineLayoutHandler(i).layoutToPointsPro(e, r);
|
|
32143
32143
|
const h = o.globalTransform().inverseMatrix();
|
|
32144
32144
|
l = l.map((p) => h.crossPoint(p));
|
|
@@ -32164,10 +32164,10 @@ class NT extends Tn {
|
|
|
32164
32164
|
case Ye.RoundPolyLine:
|
|
32165
32165
|
return new ds();
|
|
32166
32166
|
case Ye.BrokenLine:
|
|
32167
|
-
return new
|
|
32167
|
+
return new zh();
|
|
32168
32168
|
case Ye.Curve:
|
|
32169
32169
|
default:
|
|
32170
|
-
return new
|
|
32170
|
+
return new Bi();
|
|
32171
32171
|
}
|
|
32172
32172
|
}
|
|
32173
32173
|
}
|
|
@@ -33355,7 +33355,7 @@ class sN extends Pl {
|
|
|
33355
33355
|
return !(r.length !== 1 || r[0].type !== v.Editable || !e.detect(Ie.EditableControlPoint, n));
|
|
33356
33356
|
}
|
|
33357
33357
|
}
|
|
33358
|
-
var
|
|
33358
|
+
var nu = /* @__PURE__ */ ((c) => (c[c.Start = 0] = "Start", c[c.End = 1] = "End", c[c.InnerEnd = 2] = "InnerEnd", c))(nu || {});
|
|
33359
33359
|
class iN extends Fn {
|
|
33360
33360
|
onDetect(n, e) {
|
|
33361
33361
|
const r = [...e.getSelectNodes()];
|
|
@@ -33410,21 +33410,21 @@ class aN extends fr {
|
|
|
33410
33410
|
}
|
|
33411
33411
|
pieRingMove(e, r, o) {
|
|
33412
33412
|
const s = this.detectRes.type, i = e.globalPoint, a = this.detectRes.centerPoint, l = this.detectRes.node;
|
|
33413
|
-
if (s ===
|
|
33413
|
+
if (s === nu.Start) {
|
|
33414
33414
|
const h = C.lineAngle(a, i) - Cs;
|
|
33415
33415
|
r.execAction(
|
|
33416
33416
|
be.create(l.id, [{ type: L.PieRing, startAngle: h }], { streaming: o })
|
|
33417
33417
|
);
|
|
33418
33418
|
return;
|
|
33419
33419
|
}
|
|
33420
|
-
if (s ===
|
|
33420
|
+
if (s === nu.End) {
|
|
33421
33421
|
const h = C.lineAngle(a, i) - Cs;
|
|
33422
33422
|
r.execAction(
|
|
33423
33423
|
be.create(l.id, [{ type: L.PieRing, endAngle: h }], { streaming: o })
|
|
33424
33424
|
);
|
|
33425
33425
|
return;
|
|
33426
33426
|
}
|
|
33427
|
-
if (s ===
|
|
33427
|
+
if (s === nu.InnerEnd) {
|
|
33428
33428
|
const h = l.pieRingProps.endAngle + Cs, d = { x: Math.cos(h), y: Math.sin(h) }, u = { x: i.x - a.x, y: i.y - a.y };
|
|
33429
33429
|
let f = d.x * u.x + d.y * u.y;
|
|
33430
33430
|
f < 0 && (f = 0), f > this.detectRes.radius && (f = this.detectRes.radius), r.execAction(
|
|
@@ -34126,7 +34126,7 @@ class EN extends Do {
|
|
|
34126
34126
|
return !1;
|
|
34127
34127
|
}
|
|
34128
34128
|
enable(n, e) {
|
|
34129
|
-
return n === ct.Widget && e ===
|
|
34129
|
+
return n === ct.Widget && e === Hh.Checkbox;
|
|
34130
34130
|
}
|
|
34131
34131
|
async makeupAddNodeInfo(n, e, r) {
|
|
34132
34132
|
const o = this.detectParentContainer(n, r), s = n.createWorker.makeupDefaultProps(v.Checkbox, n, 0, e, o);
|
|
@@ -34144,7 +34144,7 @@ class RN extends Do {
|
|
|
34144
34144
|
return !1;
|
|
34145
34145
|
}
|
|
34146
34146
|
enable(n, e) {
|
|
34147
|
-
return n === ct.Widget && e ===
|
|
34147
|
+
return n === ct.Widget && e === Hh.CheckboxText;
|
|
34148
34148
|
}
|
|
34149
34149
|
async makeupAddNodeInfo(n, e, r) {
|
|
34150
34150
|
const o = this.detectParentContainer(n, r), s = n.createWorker.makeupDefaultProps(v.CheckboxText, n, 0, e, o);
|
|
@@ -34193,7 +34193,7 @@ class DN extends Do {
|
|
|
34193
34193
|
};
|
|
34194
34194
|
}
|
|
34195
34195
|
}
|
|
34196
|
-
const la = 24, Qp = 16,
|
|
34196
|
+
const la = 24, Qp = 16, lu = 595, pl = 842, pa = la + Qp;
|
|
34197
34197
|
class Zp {
|
|
34198
34198
|
/**
|
|
34199
34199
|
* 创建 DocContainer 及其默认子节点的 AddNodeInfo 列表
|
|
@@ -34203,11 +34203,11 @@ class Zp {
|
|
|
34203
34203
|
* @returns AddNodeInfo 数组,第一个是容器,后续是子节点
|
|
34204
34204
|
*/
|
|
34205
34205
|
static createDocContainerWithChildren(n, e, r) {
|
|
34206
|
-
const o = r.id ? r.toLocal(e) : e, s = n.idGenerator.genId(v.DocContainer), i = n.idGenerator.genId(v.Shape), a =
|
|
34206
|
+
const o = r.id ? r.toLocal(e) : e, s = n.idGenerator.genId(v.DocContainer), i = n.idGenerator.genId(v.Shape), a = lu - pa * 2, l = 32, h = [
|
|
34207
34207
|
Ze.create({
|
|
34208
34208
|
x: o.x,
|
|
34209
34209
|
y: o.y,
|
|
34210
|
-
width:
|
|
34210
|
+
width: lu,
|
|
34211
34211
|
height: pl
|
|
34212
34212
|
}),
|
|
34213
34213
|
$a.create({
|
|
@@ -34427,7 +34427,7 @@ class Xw {
|
|
|
34427
34427
|
}
|
|
34428
34428
|
}
|
|
34429
34429
|
}
|
|
34430
|
-
const GN = 5, jw = 4, Gw = 2, Uw = 2,
|
|
34430
|
+
const GN = 5, jw = 4, Gw = 2, Uw = 2, Hd = Math.max(Uw * 2 + Gw * 2, jw);
|
|
34431
34431
|
class UN extends fr {
|
|
34432
34432
|
constructor() {
|
|
34433
34433
|
super(...arguments);
|
|
@@ -34452,10 +34452,10 @@ class UN extends fr {
|
|
|
34452
34452
|
props: [
|
|
34453
34453
|
{
|
|
34454
34454
|
type: L.Base,
|
|
34455
|
-
x: i.x -
|
|
34456
|
-
y: i.y -
|
|
34457
|
-
width:
|
|
34458
|
-
height:
|
|
34455
|
+
x: i.x - Hd / 2,
|
|
34456
|
+
y: i.y - Hd / 2,
|
|
34457
|
+
width: Hd,
|
|
34458
|
+
height: Hd
|
|
34459
34459
|
},
|
|
34460
34460
|
{ type: L.Paint, points: [{ x: 0.5, y: 0.5 }] },
|
|
34461
34461
|
{ type: L.Border, color: "#FF0000", width: Uw }
|
|
@@ -34551,14 +34551,14 @@ class qN extends fc {
|
|
|
34551
34551
|
return YN.has(e.toolManager.currentTool);
|
|
34552
34552
|
}
|
|
34553
34553
|
}
|
|
34554
|
-
const
|
|
34554
|
+
const zd = 12;
|
|
34555
34555
|
class VN extends Fn {
|
|
34556
34556
|
onDetect(n, e) {
|
|
34557
34557
|
const r = n.globalPoint, o = e.nodeManager.searchNodes(
|
|
34558
|
-
r.x -
|
|
34559
|
-
r.y -
|
|
34560
|
-
r.x +
|
|
34561
|
-
r.y +
|
|
34558
|
+
r.x - zd,
|
|
34559
|
+
r.y - zd,
|
|
34560
|
+
r.x + zd,
|
|
34561
|
+
r.y + zd
|
|
34562
34562
|
);
|
|
34563
34563
|
if (o.length === 0)
|
|
34564
34564
|
return this.result = null, !1;
|
|
@@ -34663,7 +34663,7 @@ class tA extends Fn {
|
|
|
34663
34663
|
const o = [...r][0];
|
|
34664
34664
|
if (!o.canQuickCreate())
|
|
34665
34665
|
return !1;
|
|
34666
|
-
const s = e.renderManager.getScale(), i = C.computeNodeConnectAnchor(o, s), a =
|
|
34666
|
+
const s = e.renderManager.getScale(), i = C.computeNodeConnectAnchor(o, s), a = Nh / s;
|
|
34667
34667
|
for (let l = 0; l < i.length; l++) {
|
|
34668
34668
|
const h = i[l], d = o.toLocal(n.globalPoint);
|
|
34669
34669
|
let u = eA[l];
|
|
@@ -34686,7 +34686,7 @@ class nA extends Fn {
|
|
|
34686
34686
|
const o = [...r][0];
|
|
34687
34687
|
if (o.type !== v.MindmapNode)
|
|
34688
34688
|
return !1;
|
|
34689
|
-
const s = e.renderManager.getScale(), i = C.computeMindmapNodeConnectAnchor(o, s), a =
|
|
34689
|
+
const s = e.renderManager.getScale(), i = C.computeMindmapNodeConnectAnchor(o, s), a = Nh / s;
|
|
34690
34690
|
for (let l = 0; l < i.length; l++) {
|
|
34691
34691
|
const h = i[l], d = h.point, u = o.toLocal(n.globalPoint);
|
|
34692
34692
|
if (C.circleContains(u, d, a))
|
|
@@ -34735,22 +34735,22 @@ const rA = /* @__PURE__ */ new Set([
|
|
|
34735
34735
|
rotateCenter: h,
|
|
34736
34736
|
nodes: o,
|
|
34737
34737
|
cursorAngle: C.computeRotateAngle(o, 180),
|
|
34738
|
-
rotateType:
|
|
34738
|
+
rotateType: Ci.TOP_LEFT
|
|
34739
34739
|
}, !0) : C.circleContains({ x: d.width, y: 0 }, u, a) ? (this.result = {
|
|
34740
34740
|
rotateCenter: h,
|
|
34741
34741
|
nodes: o,
|
|
34742
34742
|
cursorAngle: C.computeRotateAngle(o, -90),
|
|
34743
|
-
rotateType:
|
|
34743
|
+
rotateType: Ci.TOP_RIGHT
|
|
34744
34744
|
}, !0) : C.circleContains({ x: d.width, y: d.height }, u, a) ? (this.result = {
|
|
34745
34745
|
rotateCenter: h,
|
|
34746
34746
|
nodes: o,
|
|
34747
34747
|
cursorAngle: C.computeRotateAngle(o, 0),
|
|
34748
|
-
rotateType:
|
|
34748
|
+
rotateType: Ci.BOTTOM_RIGHT
|
|
34749
34749
|
}, !0) : C.circleContains({ x: 0, y: d.height }, u, a) ? (this.result = {
|
|
34750
34750
|
rotateCenter: h,
|
|
34751
34751
|
nodes: o,
|
|
34752
34752
|
cursorAngle: C.computeRotateAngle(o, 90),
|
|
34753
|
-
rotateType:
|
|
34753
|
+
rotateType: Ci.BOTTOM_LEFT
|
|
34754
34754
|
}, !0) : !1;
|
|
34755
34755
|
}
|
|
34756
34756
|
isRotateDisabled(n, e) {
|
|
@@ -35074,7 +35074,7 @@ class SA extends wr {
|
|
|
35074
35074
|
return "crop-stretch";
|
|
35075
35075
|
}
|
|
35076
35076
|
}
|
|
35077
|
-
class MA extends
|
|
35077
|
+
class MA extends ni {
|
|
35078
35078
|
enable(n) {
|
|
35079
35079
|
return n.type === v.IMG;
|
|
35080
35080
|
}
|
|
@@ -35643,7 +35643,7 @@ let Gu = class extends ju {
|
|
|
35643
35643
|
class Uu extends ju {
|
|
35644
35644
|
constructor() {
|
|
35645
35645
|
super(...arguments);
|
|
35646
|
-
m(this, "layoutHandler", new
|
|
35646
|
+
m(this, "layoutHandler", new Bi());
|
|
35647
35647
|
}
|
|
35648
35648
|
enable(e) {
|
|
35649
35649
|
return e === Ye.Curve;
|
|
@@ -35667,7 +35667,7 @@ class $u extends ju {
|
|
|
35667
35667
|
class Yw extends ju {
|
|
35668
35668
|
constructor() {
|
|
35669
35669
|
super(...arguments);
|
|
35670
|
-
m(this, "layoutHandler", new
|
|
35670
|
+
m(this, "layoutHandler", new zh());
|
|
35671
35671
|
}
|
|
35672
35672
|
enable(e) {
|
|
35673
35673
|
return e === Ye.BrokenLine;
|
|
@@ -36250,7 +36250,7 @@ class tk extends Fn {
|
|
|
36250
36250
|
if (!r || r.length === 0)
|
|
36251
36251
|
return !1;
|
|
36252
36252
|
const o = r[0];
|
|
36253
|
-
if (!(o instanceof
|
|
36253
|
+
if (!(o instanceof Oh))
|
|
36254
36254
|
return !1;
|
|
36255
36255
|
const s = o.renderText;
|
|
36256
36256
|
if (!s || s.paragraphs.length === 0)
|
|
@@ -36639,8 +36639,8 @@ class mo {
|
|
|
36639
36639
|
constructor() {
|
|
36640
36640
|
m(this, "handlers", [
|
|
36641
36641
|
new ua(),
|
|
36642
|
-
new
|
|
36643
|
-
new
|
|
36642
|
+
new Bi(),
|
|
36643
|
+
new zh(),
|
|
36644
36644
|
new ds()
|
|
36645
36645
|
]);
|
|
36646
36646
|
m(this, "batchLineTextWorker", new ik());
|
|
@@ -37185,7 +37185,7 @@ function Nx(c, n, e, r, o, s) {
|
|
|
37185
37185
|
function fk(c, n, e, r) {
|
|
37186
37186
|
return c > e ? c - r : c > n && c <= e ? null : c;
|
|
37187
37187
|
}
|
|
37188
|
-
class
|
|
37188
|
+
class Wh {
|
|
37189
37189
|
constructor() {
|
|
37190
37190
|
m(this, "deleteInputWorker", new qw());
|
|
37191
37191
|
}
|
|
@@ -37530,7 +37530,7 @@ class Mk {
|
|
|
37530
37530
|
return [];
|
|
37531
37531
|
}
|
|
37532
37532
|
}
|
|
37533
|
-
const bs = class bs extends
|
|
37533
|
+
const bs = class bs extends Oh {
|
|
37534
37534
|
constructor(e, r) {
|
|
37535
37535
|
super(e, r);
|
|
37536
37536
|
m(this, "type", v.Line);
|
|
@@ -38505,7 +38505,7 @@ class Ok extends _o {
|
|
|
38505
38505
|
return super.getConnectAnchor();
|
|
38506
38506
|
}
|
|
38507
38507
|
}
|
|
38508
|
-
const Ps = class Ps extends
|
|
38508
|
+
const Ps = class Ps extends Oh {
|
|
38509
38509
|
constructor(e, r) {
|
|
38510
38510
|
super(e, r);
|
|
38511
38511
|
m(this, "type", v.Shape);
|
|
@@ -38861,7 +38861,7 @@ class Hk extends As {
|
|
|
38861
38861
|
return null;
|
|
38862
38862
|
}
|
|
38863
38863
|
}
|
|
38864
|
-
const
|
|
38864
|
+
const hu = "M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z";
|
|
38865
38865
|
class Vu extends Hk {
|
|
38866
38866
|
get checkStatus() {
|
|
38867
38867
|
return this.getProp(L.CheckStatus).checkStatus;
|
|
@@ -38887,7 +38887,7 @@ class Vu extends Hk {
|
|
|
38887
38887
|
n.save();
|
|
38888
38888
|
const o = dt.generateMatrix().scale(r.width / 16, r.height / 16), { a: s, b: i, c: a, d: l, e: h, f: d } = this.globalTransform().crossProduct(o);
|
|
38889
38889
|
n.transform(s, i, a, l, h, d), n.fillStyle = e.color, n.globalAlpha = e.alpha, n.scale(1, 1), n.beginPath();
|
|
38890
|
-
const u = new Path2D(
|
|
38890
|
+
const u = new Path2D(hu);
|
|
38891
38891
|
n.fill(u), n.restore();
|
|
38892
38892
|
}
|
|
38893
38893
|
}
|
|
@@ -38898,7 +38898,7 @@ class Vu extends Hk {
|
|
|
38898
38898
|
);
|
|
38899
38899
|
const s = this.getProp(L.Color);
|
|
38900
38900
|
return this.checkStatus && de.hasFill(s) && r.push(
|
|
38901
|
-
`<path transform="scale(${de.num(n / 16)} ${de.num(e / 16)})" d="${
|
|
38901
|
+
`<path transform="scale(${de.num(n / 16)} ${de.num(e / 16)})" d="${hu}" ${de.fillAttrs(s)} />`
|
|
38902
38902
|
), r.join(`
|
|
38903
38903
|
`);
|
|
38904
38904
|
}
|
|
@@ -38962,7 +38962,7 @@ class Fg extends Vu {
|
|
|
38962
38962
|
e.save();
|
|
38963
38963
|
const o = this.chickSize, s = dt.generateMatrix().scale(o / 16, o / 16), i = dt.generateMatrix().translate(0, this.checkboxTopPadding + Nt), { a, b: l, c: h, d, e: u, f } = this.globalTransform().crossProduct(i).crossProduct(s);
|
|
38964
38964
|
e.transform(a, l, h, d, u, f), e.fillStyle = r.color, e.globalAlpha = r.alpha, e.scale(1, 1), e.beginPath();
|
|
38965
|
-
const p = new Path2D(
|
|
38965
|
+
const p = new Path2D(hu);
|
|
38966
38966
|
e.fill(p), e.restore();
|
|
38967
38967
|
}
|
|
38968
38968
|
}
|
|
@@ -38973,7 +38973,7 @@ class Fg extends Vu {
|
|
|
38973
38973
|
);
|
|
38974
38974
|
const i = this.getProp(L.Color);
|
|
38975
38975
|
this.checkStatus && de.hasFill(i) && o.push(
|
|
38976
|
-
`<path transform="translate(0 ${de.num(r)}) scale(${de.num(e / 16)} ${de.num(e / 16)})" d="${
|
|
38976
|
+
`<path transform="translate(0 ${de.num(r)}) scale(${de.num(e / 16)} ${de.num(e / 16)})" d="${hu}" ${de.fillAttrs(i)} />`
|
|
38977
38977
|
);
|
|
38978
38978
|
const a = this.renderText.toSvg(new k(0, 0)).trimEnd();
|
|
38979
38979
|
if (a !== "") {
|
|
@@ -39462,10 +39462,10 @@ class $k {
|
|
|
39462
39462
|
return;
|
|
39463
39463
|
const o = e.mindMapProps.lineStyleType;
|
|
39464
39464
|
switch (n.save(), n.beginPath(), o) {
|
|
39465
|
-
case
|
|
39465
|
+
case ru.Rounded:
|
|
39466
39466
|
r.length === 2 ? (n.moveTo(r[0].x, r[0].y), n.lineTo(r[1].x, r[1].y), n.stroke()) : C.acrPolyDraw(n, r);
|
|
39467
39467
|
break;
|
|
39468
|
-
case
|
|
39468
|
+
case ru.Straight:
|
|
39469
39469
|
default:
|
|
39470
39470
|
this.drawStraightLine(n, e, r);
|
|
39471
39471
|
}
|
|
@@ -39481,7 +39481,7 @@ class $k {
|
|
|
39481
39481
|
n.stroke();
|
|
39482
39482
|
}
|
|
39483
39483
|
}
|
|
39484
|
-
const Kc = class Kc extends
|
|
39484
|
+
const Kc = class Kc extends Oh {
|
|
39485
39485
|
/**
|
|
39486
39486
|
* 构造函数 - 初始化所有必要的 Props
|
|
39487
39487
|
*/
|
|
@@ -39501,7 +39501,7 @@ const Kc = class Kc extends Hh {
|
|
|
39501
39501
|
// 次级子节点数组
|
|
39502
39502
|
m(this, "renderLine");
|
|
39503
39503
|
m(this, "rootContainer", new Ne());
|
|
39504
|
-
this.props.set(L.Base, new Ze()), this.props.set(L.Color, new an()), this.props.set(L.Border, new vt()), this.props.set(L.Text, new qt()), this.props.set(L.Shape, new Ht()), this.props.set(L.MindMap, new
|
|
39504
|
+
this.props.set(L.Base, new Ze()), this.props.set(L.Color, new an()), this.props.set(L.Border, new vt()), this.props.set(L.Text, new qt()), this.props.set(L.Shape, new Ht()), this.props.set(L.MindMap, new Ai()), this.props.set(L.TextParagraph, new Bo()), this.props.set(L.TextParagraphQuote, new Ko()), this.renderText = new hl(), this.renderLine = new $k();
|
|
39505
39505
|
}
|
|
39506
39506
|
// Getter 方法用于便捷访问各类属性
|
|
39507
39507
|
get borderProps() {
|
|
@@ -39533,11 +39533,11 @@ const Kc = class Kc extends Hh {
|
|
|
39533
39533
|
C.addAllMindMapChildren(this, e);
|
|
39534
39534
|
const r = [...e], o = this.rootContainer, s = this.globalBaseProps;
|
|
39535
39535
|
if (r.length === 0) {
|
|
39536
|
-
o.x = s.x -
|
|
39536
|
+
o.x = s.x - Id, o.y = s.y - Ld, o.width = 2 * Id, o.height = 2 * Ld;
|
|
39537
39537
|
return;
|
|
39538
39538
|
}
|
|
39539
39539
|
const i = [...r].map((l) => l.getBounds()), a = C.getBounds(i);
|
|
39540
|
-
o.x = a.minX -
|
|
39540
|
+
o.x = a.minX - Id, o.y = a.minY - Ld, o.width = a.maxX - a.minX + 2 * Id, o.height = a.maxY - a.minY + 2 * Ld;
|
|
39541
39541
|
}
|
|
39542
39542
|
refreshLayoutBox() {
|
|
39543
39543
|
for (const r of this.mindmapChildren)
|
|
@@ -39702,7 +39702,7 @@ m(Kc, "layoutWorkers", /* @__PURE__ */ new Map([
|
|
|
39702
39702
|
[Bn.Bottom, new Xk()],
|
|
39703
39703
|
[Bn.TopBottom, new jk()]
|
|
39704
39704
|
]));
|
|
39705
|
-
let
|
|
39705
|
+
let du = Kc;
|
|
39706
39706
|
class Yk {
|
|
39707
39707
|
draw(n, e) {
|
|
39708
39708
|
const r = n.colorProps, o = n.borderProps, s = n.getProp(L.Editable), { width: i, height: a } = n.baseProps;
|
|
@@ -40123,7 +40123,7 @@ class yl extends Fi {
|
|
|
40123
40123
|
m(this, "type", v.MathFormula);
|
|
40124
40124
|
/** 由LaTeX公式生成的SVG代码 */
|
|
40125
40125
|
m(this, "svgCode", "");
|
|
40126
|
-
this.props.set(L.Base, new Ze()), this.props.set(L.Border, new vt()), this.props.set(L.Formula, new
|
|
40126
|
+
this.props.set(L.Base, new Ze()), this.props.set(L.Border, new vt()), this.props.set(L.Formula, new ki()), this.props.set(L.Crop, new Za());
|
|
40127
40127
|
}
|
|
40128
40128
|
get formulaProps() {
|
|
40129
40129
|
return this.props.get(L.Formula);
|
|
@@ -40276,7 +40276,7 @@ const wu = class wu {
|
|
|
40276
40276
|
case v.DocContainer:
|
|
40277
40277
|
return _g.load(n, e, r, o, s, i);
|
|
40278
40278
|
case v.MindmapNode:
|
|
40279
|
-
return
|
|
40279
|
+
return du.load(n, e, r, o, s, i);
|
|
40280
40280
|
case v.Editable:
|
|
40281
40281
|
return Og.load(n, e, r, o, s, i);
|
|
40282
40282
|
case v.ChartSection:
|
|
@@ -40322,7 +40322,7 @@ class Ex extends As {
|
|
|
40322
40322
|
return e;
|
|
40323
40323
|
}
|
|
40324
40324
|
}
|
|
40325
|
-
const
|
|
40325
|
+
const Wd = 800;
|
|
40326
40326
|
class Rx {
|
|
40327
40327
|
static async getImageSize(n) {
|
|
40328
40328
|
return new Promise((e, r) => {
|
|
@@ -40331,7 +40331,7 @@ class Rx {
|
|
|
40331
40331
|
let i = s.naturalWidth * 0.5, a = s.naturalHeight * 0.5;
|
|
40332
40332
|
URL.revokeObjectURL(o);
|
|
40333
40333
|
const l = i / a;
|
|
40334
|
-
i > a && i >
|
|
40334
|
+
i > a && i > Wd ? (i = Wd, a = i / l) : a > i && a > Wd && (a = Wd, i = a * l), e({ width: i, height: a });
|
|
40335
40335
|
}, s.onerror = () => {
|
|
40336
40336
|
URL.revokeObjectURL(o), r(new Error("无法加载图片"));
|
|
40337
40337
|
}, s.src = o;
|
|
@@ -40483,7 +40483,7 @@ class e2 extends Il {
|
|
|
40483
40483
|
if (!e.find((p) => p.type === L.Formula) || n.type !== v.MathFormula)
|
|
40484
40484
|
return;
|
|
40485
40485
|
const s = n, i = s.formulaProps.clone(), a = e.find((p) => p.type === L.Base), l = (a == null ? void 0 : a.width) !== void 0, h = (a == null ? void 0 : a.height) !== void 0, d = this.getFormulaSvgNaturalSize(s), u = d ? s.baseProps.width / d.width : 1, f = d ? s.baseProps.height / d.height : 1;
|
|
40486
|
-
i.formula &&
|
|
40486
|
+
i.formula && Ei.convert(i.formula, {
|
|
40487
40487
|
fontColor: i.fontColor,
|
|
40488
40488
|
fontColorNoFill: i.fontColorNoFill,
|
|
40489
40489
|
backgroundColor: i.backgroundColor,
|
|
@@ -40865,9 +40865,9 @@ const h3 = [
|
|
|
40865
40865
|
new o3(),
|
|
40866
40866
|
new s3()
|
|
40867
40867
|
];
|
|
40868
|
-
class
|
|
40868
|
+
class Xh {
|
|
40869
40869
|
}
|
|
40870
|
-
class d3 extends
|
|
40870
|
+
class d3 extends Xh {
|
|
40871
40871
|
constructor() {
|
|
40872
40872
|
super(...arguments);
|
|
40873
40873
|
m(this, "slideContainer", null);
|
|
@@ -40894,7 +40894,7 @@ class d3 extends jh {
|
|
|
40894
40894
|
}
|
|
40895
40895
|
}
|
|
40896
40896
|
}
|
|
40897
|
-
class u3 extends
|
|
40897
|
+
class u3 extends Xh {
|
|
40898
40898
|
constructor() {
|
|
40899
40899
|
super(...arguments);
|
|
40900
40900
|
m(this, "slideContainer", null);
|
|
@@ -40918,7 +40918,7 @@ class u3 extends jh {
|
|
|
40918
40918
|
}
|
|
40919
40919
|
}
|
|
40920
40920
|
}
|
|
40921
|
-
class f3 extends
|
|
40921
|
+
class f3 extends Xh {
|
|
40922
40922
|
constructor() {
|
|
40923
40923
|
super(...arguments);
|
|
40924
40924
|
m(this, "slideContainer", null);
|
|
@@ -40990,7 +40990,7 @@ class f3 extends jh {
|
|
|
40990
40990
|
}
|
|
40991
40991
|
}
|
|
40992
40992
|
}
|
|
40993
|
-
class p3 extends
|
|
40993
|
+
class p3 extends Xh {
|
|
40994
40994
|
enable(n, e) {
|
|
40995
40995
|
return n.meta.streaming ? !1 : n.type === Rn.UpdateNode;
|
|
40996
40996
|
}
|
|
@@ -41009,7 +41009,7 @@ class p3 extends jh {
|
|
|
41009
41009
|
);
|
|
41010
41010
|
}
|
|
41011
41011
|
}
|
|
41012
|
-
class g3 extends
|
|
41012
|
+
class g3 extends Xh {
|
|
41013
41013
|
enable(n, e) {
|
|
41014
41014
|
return n.meta.streaming ? !1 : n.type === Rn.UpdateNode;
|
|
41015
41015
|
}
|
|
@@ -41019,7 +41019,7 @@ class g3 extends jh {
|
|
|
41019
41019
|
if (!this.containsTextStyleProps(o.props))
|
|
41020
41020
|
continue;
|
|
41021
41021
|
const s = e.nodeManager.getNode(o.id), i = this.getTextProps(s);
|
|
41022
|
-
i && e.memoryManager.remember(
|
|
41022
|
+
i && e.memoryManager.remember(oi.TextStyle, {
|
|
41023
41023
|
fontColor: i.fontColor,
|
|
41024
41024
|
fontBgColor: i.fontBgColor,
|
|
41025
41025
|
noFill: i.noFill,
|
|
@@ -41674,7 +41674,7 @@ class Jo {
|
|
|
41674
41674
|
return this.makeupProps(n, e, r, 0.5);
|
|
41675
41675
|
}
|
|
41676
41676
|
}
|
|
41677
|
-
const
|
|
41677
|
+
const si = {
|
|
41678
41678
|
[Gt.Status]: "#CBF0FF",
|
|
41679
41679
|
[Gt.Data]: "#E8FCDC",
|
|
41680
41680
|
[Gt.Operation]: "#D2E2FE",
|
|
@@ -41699,7 +41699,7 @@ const ii = {
|
|
|
41699
41699
|
};
|
|
41700
41700
|
class T3 extends Jo {
|
|
41701
41701
|
makeupProps(n, e, r, o, s) {
|
|
41702
|
-
const i = Su[e], a =
|
|
41702
|
+
const i = Su[e], a = si[i], l = es[i], h = s ? s.toLocal(r) : r, { width: d, height: u } = this.computeDefaultSize();
|
|
41703
41703
|
return [
|
|
41704
41704
|
Ze.create({ x: h.x, y: h.y, width: d, height: u }),
|
|
41705
41705
|
qt.create({
|
|
@@ -41719,7 +41719,7 @@ class T3 extends Jo {
|
|
|
41719
41719
|
}
|
|
41720
41720
|
class N3 extends Jo {
|
|
41721
41721
|
makeupProps(n, e, r, o, s) {
|
|
41722
|
-
const i = Ru[e], a = Gt.Section, l =
|
|
41722
|
+
const i = Ru[e], a = Gt.Section, l = si[a], h = es[a], d = s ? s.toLocal(r) : r;
|
|
41723
41723
|
return [
|
|
41724
41724
|
Ze.create({
|
|
41725
41725
|
x: d.x,
|
|
@@ -41740,7 +41740,7 @@ class A3 extends Jo {
|
|
|
41740
41740
|
width: d.width,
|
|
41741
41741
|
height: d.height
|
|
41742
41742
|
}), f = n.memoryManager.resolveLineBorderProps(), p = n.memoryManager.resolveLineArrowProps();
|
|
41743
|
-
return n.memoryManager.getValue(
|
|
41743
|
+
return n.memoryManager.getValue(oi.LineStyle) || (f.color = a, f.alpha = o), [u, new Ht(e), mr.create(h), f, p];
|
|
41744
41744
|
}
|
|
41745
41745
|
makeupLinePoints(n, e) {
|
|
41746
41746
|
return e === Ye.PolyLine || e === Ye.RoundPolyLine || e === Ye.Curve ? [
|
|
@@ -41756,7 +41756,7 @@ class A3 extends Jo {
|
|
|
41756
41756
|
}
|
|
41757
41757
|
class k3 extends Jo {
|
|
41758
41758
|
makeupProps(n, e, r, o, s) {
|
|
41759
|
-
const l = s ? s.toLocal(r) : r, h = C.computeShapeCategory(v.CheckboxText), d = es[h], u =
|
|
41759
|
+
const l = s ? s.toLocal(r) : r, h = C.computeShapeCategory(v.CheckboxText), d = es[h], u = si[h];
|
|
41760
41760
|
return [
|
|
41761
41761
|
Ze.create({ x: l.x, y: l.y, width: 16, height: 16 }),
|
|
41762
41762
|
an.create({ color: u, alpha: o }),
|
|
@@ -41767,7 +41767,7 @@ class k3 extends Jo {
|
|
|
41767
41767
|
}
|
|
41768
41768
|
class B3 extends Jo {
|
|
41769
41769
|
makeupProps(n, e, r, o, s) {
|
|
41770
|
-
const l = s ? s.toLocal(r) : r, h = C.computeShapeCategory(v.CheckboxText), d = es[h], u =
|
|
41770
|
+
const l = s ? s.toLocal(r) : r, h = C.computeShapeCategory(v.CheckboxText), d = es[h], u = si[h];
|
|
41771
41771
|
return [
|
|
41772
41772
|
Ze.create({ x: l.x, y: l.y, width: 102, height: 32 }),
|
|
41773
41773
|
an.create({ color: u, alpha: o }),
|
|
@@ -41840,7 +41840,7 @@ class F3 extends Jo {
|
|
|
41840
41840
|
fontColor: "#FFFFFF"
|
|
41841
41841
|
}),
|
|
41842
41842
|
new Ht(0),
|
|
41843
|
-
|
|
41843
|
+
Ai.create({
|
|
41844
41844
|
children: [],
|
|
41845
41845
|
collapse: !1
|
|
41846
41846
|
})
|
|
@@ -41849,7 +41849,7 @@ class F3 extends Jo {
|
|
|
41849
41849
|
}
|
|
41850
41850
|
class Gg extends Jo {
|
|
41851
41851
|
makeupProps(n, e, r, o, s) {
|
|
41852
|
-
const l = s ? s.toLocal(r) : r, h = Gt.Others, d =
|
|
41852
|
+
const l = s ? s.toLocal(r) : r, h = Gt.Others, d = si[h], u = es[h], f = Gg.defaultPolygonPoints();
|
|
41853
41853
|
return [
|
|
41854
41854
|
Ze.create({ x: l.x, y: l.y, width: 100, height: 100 }),
|
|
41855
41855
|
an.create({ color: d, alpha: o }),
|
|
@@ -41872,7 +41872,7 @@ class Gg extends Jo {
|
|
|
41872
41872
|
}
|
|
41873
41873
|
class D3 extends Jo {
|
|
41874
41874
|
makeupProps(n, e, r, o, s) {
|
|
41875
|
-
const l = s ? s.toLocal(r) : r, h = Gt.Others, d =
|
|
41875
|
+
const l = s ? s.toLocal(r) : r, h = Gt.Others, d = si[h], u = es[h], f = e === 0;
|
|
41876
41876
|
return [
|
|
41877
41877
|
Ze.create({ x: l.x, y: l.y, width: 100, height: 100 }),
|
|
41878
41878
|
an.create({ color: d, alpha: o }),
|
|
@@ -41888,7 +41888,7 @@ class D3 extends Jo {
|
|
|
41888
41888
|
}
|
|
41889
41889
|
class _3 extends Jo {
|
|
41890
41890
|
makeupProps(n, e, r, o, s) {
|
|
41891
|
-
const l = s ? s.toLocal(r) : r, h = Gt.Section, d =
|
|
41891
|
+
const l = s ? s.toLocal(r) : r, h = Gt.Section, d = si[h], u = es[h];
|
|
41892
41892
|
return [
|
|
41893
41893
|
Ze.create({ x: l.x, y: l.y, width: 400, height: 300 }),
|
|
41894
41894
|
an.create({ color: d, alpha: o }),
|
|
@@ -41905,13 +41905,13 @@ class W3 extends Jo {
|
|
|
41905
41905
|
return [
|
|
41906
41906
|
Ze.create({ x: i.x, y: i.y, width: H3, height: z3 }),
|
|
41907
41907
|
vt.create({ alpha: o, noFill: !0, dashType: en.None }),
|
|
41908
|
-
|
|
41908
|
+
ki.create({ formula: O3 })
|
|
41909
41909
|
];
|
|
41910
41910
|
}
|
|
41911
41911
|
}
|
|
41912
41912
|
class X3 extends Jo {
|
|
41913
41913
|
makeupProps(n, e, r, o, s) {
|
|
41914
|
-
const l = s ? s.toLocal(r) : r, h = Gt.Section, d =
|
|
41914
|
+
const l = s ? s.toLocal(r) : r, h = Gt.Section, d = si[h], u = es[h];
|
|
41915
41915
|
return [
|
|
41916
41916
|
Ze.create({ x: l.x, y: l.y, width: 400, height: 300 }),
|
|
41917
41917
|
an.create({ color: d, alpha: o }),
|
|
@@ -42342,7 +42342,7 @@ const Qc = class Qc {
|
|
|
42342
42342
|
}
|
|
42343
42343
|
};
|
|
42344
42344
|
m(Qc, "oolongLeft", "start--oolong--"), m(Qc, "oolongRight", "--oolong--end");
|
|
42345
|
-
let
|
|
42345
|
+
let ti = Qc;
|
|
42346
42346
|
class t4 {
|
|
42347
42347
|
constructor() {
|
|
42348
42348
|
m(this, "copyWorker", new fg());
|
|
@@ -42356,7 +42356,7 @@ class t4 {
|
|
|
42356
42356
|
if (!r)
|
|
42357
42357
|
return !1;
|
|
42358
42358
|
n.preventDefault();
|
|
42359
|
-
const o = JSON.stringify(r), s =
|
|
42359
|
+
const o = JSON.stringify(r), s = ti.encode(o);
|
|
42360
42360
|
return n.clipboardData.setData("text/html", s), !0;
|
|
42361
42361
|
}
|
|
42362
42362
|
}
|
|
@@ -42626,11 +42626,11 @@ class a4 extends Km {
|
|
|
42626
42626
|
}
|
|
42627
42627
|
class o2 {
|
|
42628
42628
|
}
|
|
42629
|
-
var
|
|
42629
|
+
var Ni = /* @__PURE__ */ ((c) => (c[c.Normal = 0] = "Normal", c[c.EmptyPlace = 1] = "EmptyPlace", c))(Ni || {});
|
|
42630
42630
|
class c4 extends o2 {
|
|
42631
42631
|
constructor() {
|
|
42632
42632
|
super(...arguments);
|
|
42633
|
-
m(this, "posPasteType",
|
|
42633
|
+
m(this, "posPasteType", Ni.Normal);
|
|
42634
42634
|
}
|
|
42635
42635
|
handlePos(e, r) {
|
|
42636
42636
|
const o = r.lastInteractiveEvent.globalPoint, s = r.detect(Ie.HoverOnContainerForPaste, r.lastInteractiveEvent), i = s ? s.id : Xr;
|
|
@@ -42640,7 +42640,7 @@ class c4 extends o2 {
|
|
|
42640
42640
|
class l4 extends o2 {
|
|
42641
42641
|
constructor() {
|
|
42642
42642
|
super(...arguments);
|
|
42643
|
-
m(this, "posPasteType",
|
|
42643
|
+
m(this, "posPasteType", Ni.EmptyPlace);
|
|
42644
42644
|
}
|
|
42645
42645
|
handlePos(e, r) {
|
|
42646
42646
|
const o = e.bounds, s = 20, i = o.width, a = o.height, l = r.renderManager.gmlRender.getViewPortBounds(), h = l.minX, d = l.minY, u = l.maxX, f = l.maxY, p = (R, Y) => r.nodeManager.searchNodes(R, Y, R + i, Y + a).length > 0, g = r.nodeManager.root;
|
|
@@ -42693,11 +42693,11 @@ class Ug {
|
|
|
42693
42693
|
//跨doc复制
|
|
42694
42694
|
//粘贴到某个位置
|
|
42695
42695
|
m(this, "pastePosHandlerMap", /* @__PURE__ */ new Map([
|
|
42696
|
-
[
|
|
42697
|
-
[
|
|
42696
|
+
[Ni.Normal, new c4()],
|
|
42697
|
+
[Ni.EmptyPlace, new l4()]
|
|
42698
42698
|
]));
|
|
42699
42699
|
}
|
|
42700
|
-
handle(n, e, r =
|
|
42700
|
+
handle(n, e, r = Ni.Normal) {
|
|
42701
42701
|
const o = e.docState.docId;
|
|
42702
42702
|
return n.meta.docId !== o ? this.handleCrossPaste(n, e, r) : this.handlePaste(n, e, r);
|
|
42703
42703
|
}
|
|
@@ -42736,7 +42736,7 @@ class Ug {
|
|
|
42736
42736
|
}
|
|
42737
42737
|
computePastePos(n, e, r) {
|
|
42738
42738
|
const o = this.pastePosHandlerMap.get(n);
|
|
42739
|
-
return o ? o.handlePos(e, r) : this.pastePosHandlerMap.get(
|
|
42739
|
+
return o ? o.handlePos(e, r) : this.pastePosHandlerMap.get(Ni.Normal).handlePos(e, r);
|
|
42740
42740
|
}
|
|
42741
42741
|
async pasteResourceInfo(n, e, r) {
|
|
42742
42742
|
return n.length === 0 ? {
|
|
@@ -42753,12 +42753,12 @@ class h4 {
|
|
|
42753
42753
|
const r = n.clipboardData, o = r == null ? void 0 : r.getData("text/html");
|
|
42754
42754
|
if (!o)
|
|
42755
42755
|
return !1;
|
|
42756
|
-
const s =
|
|
42756
|
+
const s = ti.decode(o);
|
|
42757
42757
|
if (s === null)
|
|
42758
42758
|
return !1;
|
|
42759
42759
|
const i = JSON.parse(s);
|
|
42760
42760
|
for (const a of this.handlers)
|
|
42761
|
-
if (a.handle(i, e,
|
|
42761
|
+
if (a.handle(i, e, Ni.Normal))
|
|
42762
42762
|
return !0;
|
|
42763
42763
|
return !1;
|
|
42764
42764
|
}
|
|
@@ -42811,7 +42811,7 @@ class d4 {
|
|
|
42811
42811
|
return e < 0 || r < 0 || e === r ? null : n.slice(e, r + 4);
|
|
42812
42812
|
}
|
|
42813
42813
|
}
|
|
42814
|
-
const
|
|
42814
|
+
const uu = 2, fu = 5, s2 = 5;
|
|
42815
42815
|
class i2 {
|
|
42816
42816
|
constructor() {
|
|
42817
42817
|
m(this, "worker", new n2());
|
|
@@ -42907,7 +42907,7 @@ class i2 {
|
|
|
42907
42907
|
* 情况2:在当前文字节点后插入图片节点
|
|
42908
42908
|
*/
|
|
42909
42909
|
insertImageAfterNode(n, e, r, o, s, i) {
|
|
42910
|
-
const { url: a, width: l, height: h } = i, d = e.baseProps, u = n.idGenerator.genId(v.IMG), f = d.x, p = d.y + d.height +
|
|
42910
|
+
const { url: a, width: l, height: h } = i, d = e.baseProps, u = n.idGenerator.genId(v.IMG), f = d.x, p = d.y + d.height + fu, g = [
|
|
42911
42911
|
{
|
|
42912
42912
|
type: L.Base,
|
|
42913
42913
|
x: f,
|
|
@@ -42935,7 +42935,7 @@ class i2 {
|
|
|
42935
42935
|
}
|
|
42936
42936
|
])
|
|
42937
42937
|
);
|
|
42938
|
-
const b = h +
|
|
42938
|
+
const b = h + fu + s2;
|
|
42939
42939
|
s + 2 < o.length && this.adjustSiblingPositions(n, o, s + 2, b), this.expandContainerIfNeeded(n, r, o), n.execAction(nt.create([u]));
|
|
42940
42940
|
}
|
|
42941
42941
|
/**
|
|
@@ -43062,22 +43062,22 @@ class mc {
|
|
|
43062
43062
|
}
|
|
43063
43063
|
computeNodeGap(n, e) {
|
|
43064
43064
|
if (n.type === v.IMG || e.type === v.IMG)
|
|
43065
|
-
return
|
|
43065
|
+
return fu;
|
|
43066
43066
|
if (n.type === v.Shape) {
|
|
43067
43067
|
const r = n.textProps.fontSize;
|
|
43068
43068
|
return r < 14 ? 1 : r < 22 ? 4 : r < 32 ? 6 : 8;
|
|
43069
43069
|
}
|
|
43070
43070
|
if (e.type === v.Shape) {
|
|
43071
43071
|
const r = e.textProps.fontSize;
|
|
43072
|
-
return r < 14 ?
|
|
43072
|
+
return r < 14 ? uu : r < 22 ? 6 : r < 32 ? 12 : 24;
|
|
43073
43073
|
}
|
|
43074
|
-
return
|
|
43074
|
+
return uu;
|
|
43075
43075
|
}
|
|
43076
43076
|
}
|
|
43077
43077
|
const Hx = 1500;
|
|
43078
43078
|
class u4 {
|
|
43079
43079
|
constructor() {
|
|
43080
|
-
m(this, "selectionDeleteWorker", new
|
|
43080
|
+
m(this, "selectionDeleteWorker", new Wh());
|
|
43081
43081
|
m(this, "editTextWorker", new Oi());
|
|
43082
43082
|
m(this, "textSplitter", new a2());
|
|
43083
43083
|
m(this, "richTextHelper", new Di());
|
|
@@ -43432,7 +43432,7 @@ class u4 {
|
|
|
43432
43432
|
}
|
|
43433
43433
|
class f4 {
|
|
43434
43434
|
constructor() {
|
|
43435
|
-
m(this, "selectionDeleteWorker", new
|
|
43435
|
+
m(this, "selectionDeleteWorker", new Wh());
|
|
43436
43436
|
}
|
|
43437
43437
|
enable(n) {
|
|
43438
43438
|
return !!(n.inputManager.editTextInfo && n.inputManager.selectionManager.selectionInfo);
|
|
@@ -43925,8 +43925,8 @@ class m4 {
|
|
|
43925
43925
|
n.type === v.Line ? this.lineMoveWorker.move(n, e, r) : n.type === v.Group ? this.groupMoveWorker.move(n, e, r) : this.simpleMoveWorker.move(n, e, r);
|
|
43926
43926
|
}
|
|
43927
43927
|
}
|
|
43928
|
-
const
|
|
43929
|
-
class
|
|
43928
|
+
const Xd = 20;
|
|
43929
|
+
class jd {
|
|
43930
43930
|
constructor() {
|
|
43931
43931
|
m(this, "moveWorker", new m4());
|
|
43932
43932
|
}
|
|
@@ -43940,7 +43940,7 @@ class Gd {
|
|
|
43940
43940
|
const o = n.filter((y) => y.type !== v.DocContainer && y.type !== v.SlideContainer);
|
|
43941
43941
|
if (o.length === 0)
|
|
43942
43942
|
return console.warn("No valid nodes to group into section"), null;
|
|
43943
|
-
const s = o.map((y) => y.getBounds()), i = C.getBounds(s), a = i.minX -
|
|
43943
|
+
const s = o.map((y) => y.getBounds()), i = C.getBounds(s), a = i.minX - Xd, l = i.minY - Xd, h = i.maxX - i.minX + 2 * Xd, d = i.maxY - i.minY + 2 * Xd, u = e.idGenerator.genId(v.Section), f = [
|
|
43944
43944
|
Ze.create({
|
|
43945
43945
|
x: a,
|
|
43946
43946
|
y: l,
|
|
@@ -44004,8 +44004,8 @@ class b4 {
|
|
|
44004
44004
|
* @param docInfo
|
|
44005
44005
|
*/
|
|
44006
44006
|
addTemplateNodes(n) {
|
|
44007
|
-
const e =
|
|
44008
|
-
r.asyncHandleCrossPaste(e, o,
|
|
44007
|
+
const e = ti.convertDocumentInfoToPasteData(n, dl.Template), r = new Ug(), o = this.app.appContext;
|
|
44008
|
+
r.asyncHandleCrossPaste(e, o, Ni.EmptyPlace).then((s) => {
|
|
44009
44009
|
if (s)
|
|
44010
44010
|
o.renderManager.zoomToSelect();
|
|
44011
44011
|
else
|
|
@@ -44038,7 +44038,7 @@ class b4 {
|
|
|
44038
44038
|
*/
|
|
44039
44039
|
addDocContainer() {
|
|
44040
44040
|
const n = this.app.appContext, e = C.getViewportBoundCenter(n), r = new k(
|
|
44041
|
-
e.x -
|
|
44041
|
+
e.x - lu / 2,
|
|
44042
44042
|
e.y - pl / 2
|
|
44043
44043
|
), o = Zp.createDocContainerWithChildren(n, r, n.nodeManager.root), s = o[0].id, i = o[1].id;
|
|
44044
44044
|
n.execAction(new we()), n.execAction(new Lt({ nodes: o })), n.execAction(nt.create([s])), n.execAction(Fe.focus(i)), n.execAction(new ye());
|
|
@@ -44116,7 +44116,7 @@ class b4 {
|
|
|
44116
44116
|
* @param latex LaTeX公式字符串
|
|
44117
44117
|
*/
|
|
44118
44118
|
async addMathFormulaNode(n) {
|
|
44119
|
-
const e = this.app.appContext, r = e.renderManager.gmlRender.getViewPortBounds(), o = new k(0.5 * (r.minX + r.maxX), 0.5 * (r.minY + r.maxY)), s = await
|
|
44119
|
+
const e = this.app.appContext, r = e.renderManager.gmlRender.getViewPortBounds(), o = new k(0.5 * (r.minX + r.maxX), 0.5 * (r.minY + r.maxY)), s = await Ei.convert(n), i = s.width, a = s.height, l = o.x - i / 2, h = o.y - a / 2, d = [
|
|
44120
44120
|
{
|
|
44121
44121
|
type: L.Base,
|
|
44122
44122
|
x: l,
|
|
@@ -44125,7 +44125,7 @@ class b4 {
|
|
|
44125
44125
|
height: a
|
|
44126
44126
|
},
|
|
44127
44127
|
vt.create({ noFill: !0, dashType: en.None }),
|
|
44128
|
-
|
|
44128
|
+
ki.create({ formula: n })
|
|
44129
44129
|
], u = e.idGenerator.genId(v.MathFormula), f = {
|
|
44130
44130
|
id: u,
|
|
44131
44131
|
type: v.MathFormula,
|
|
@@ -44148,7 +44148,7 @@ class b4 {
|
|
|
44148
44148
|
const a = i.baseProps, l = o.globalLinePoints, h = l[l.length - 1], d = l[l.length - 2], u = yo.drawerMap.get(n).getConnectAnchor(), f = C.judgeHorizon(d, h);
|
|
44149
44149
|
let p;
|
|
44150
44150
|
f ? h.x > d.x ? p = u[lt.Left] : p = u[lt.Right] : h.y > d.y ? p = u[lt.Top] : p = u[lt.Bottom];
|
|
44151
|
-
const g = a.width * p.x, y = a.height * p.y, b = h.x - g, w = h.y - y, M = this.app.appContext, T = Su[n], N =
|
|
44151
|
+
const g = a.width * p.x, y = a.height * p.y, b = h.x - g, w = h.y - y, M = this.app.appContext, T = Su[n], N = si[T], B = es[T], X = { x: b, y: w, width: a.width, height: a.height };
|
|
44152
44152
|
let H = M.nodeManager.searchNodes(
|
|
44153
44153
|
X.x,
|
|
44154
44154
|
X.y,
|
|
@@ -44202,7 +44202,7 @@ class b4 {
|
|
|
44202
44202
|
let r = e.filter((D) => D.type === v.Section);
|
|
44203
44203
|
const o = this.app.appContext;
|
|
44204
44204
|
if (o.execAction(new we()), r.length !== e.length) {
|
|
44205
|
-
const ee = new
|
|
44205
|
+
const ee = new jd().groupToSection(e, o, "#FFFFFF");
|
|
44206
44206
|
if (ee) {
|
|
44207
44207
|
const E = this.app.nodeManager.getNode(ee);
|
|
44208
44208
|
E && E instanceof Sl && (r = [E]);
|
|
@@ -44295,7 +44295,7 @@ class b4 {
|
|
|
44295
44295
|
console.warn("No nodes selected to group into section");
|
|
44296
44296
|
return;
|
|
44297
44297
|
}
|
|
44298
|
-
const e = new
|
|
44298
|
+
const e = new jd(), r = this.app.appContext;
|
|
44299
44299
|
r.execAction(new we());
|
|
44300
44300
|
const o = e.groupToSection(n, r);
|
|
44301
44301
|
r.execAction(new ye()), o || console.error("Failed to create section from selected nodes");
|
|
@@ -44305,7 +44305,7 @@ class b4 {
|
|
|
44305
44305
|
console.warn("No nodes provided to group into section");
|
|
44306
44306
|
return;
|
|
44307
44307
|
}
|
|
44308
|
-
const e = new
|
|
44308
|
+
const e = new jd(), r = this.app.appContext;
|
|
44309
44309
|
r.execAction(new we());
|
|
44310
44310
|
const o = e.groupToSection(n, r);
|
|
44311
44311
|
r.execAction(new ye()), o || console.error("Failed to create section from selected nodes");
|
|
@@ -44320,7 +44320,7 @@ class b4 {
|
|
|
44320
44320
|
console.warn("No section selected to ungroup");
|
|
44321
44321
|
return;
|
|
44322
44322
|
}
|
|
44323
|
-
const e = new
|
|
44323
|
+
const e = new jd();
|
|
44324
44324
|
let r = 0;
|
|
44325
44325
|
for (const o of n)
|
|
44326
44326
|
o.type === v.Section && e.ungroupSection(o.id, this.app.appContext) && r++;
|
|
@@ -44374,7 +44374,7 @@ class v4 {
|
|
|
44374
44374
|
const e = n.work(this.app.appContext);
|
|
44375
44375
|
if (!e)
|
|
44376
44376
|
return !1;
|
|
44377
|
-
const r = JSON.stringify(e), o =
|
|
44377
|
+
const r = JSON.stringify(e), o = ti.encode(r), s = new Blob([o], { type: "text/html" }), i = new ClipboardItem({
|
|
44378
44378
|
"text/html": s
|
|
44379
44379
|
});
|
|
44380
44380
|
return await navigator.clipboard.write([i]), !0;
|
|
@@ -44444,7 +44444,7 @@ class v4 {
|
|
|
44444
44444
|
const s = await (await r.getType("text/html")).text();
|
|
44445
44445
|
if (!s)
|
|
44446
44446
|
return;
|
|
44447
|
-
const i =
|
|
44447
|
+
const i = ti.decode(s);
|
|
44448
44448
|
if (i === null)
|
|
44449
44449
|
return;
|
|
44450
44450
|
const a = JSON.parse(i);
|
|
@@ -44516,7 +44516,7 @@ class M4 {
|
|
|
44516
44516
|
u.push({ type: L.Text, sizeMode: st.autoHeight }), u.push({ type: L.Base, height: f });
|
|
44517
44517
|
} else if (d.shapeType === je.PureText) {
|
|
44518
44518
|
const f = Su[n];
|
|
44519
|
-
u.push({ type: L.Text, sizeMode: st.fix }), u.push({ type: L.Color, color:
|
|
44519
|
+
u.push({ type: L.Text, sizeMode: st.fix }), u.push({ type: L.Color, color: si[f] });
|
|
44520
44520
|
}
|
|
44521
44521
|
i.push({
|
|
44522
44522
|
id: h.id,
|
|
@@ -44554,7 +44554,7 @@ class M4 {
|
|
|
44554
44554
|
points: [f[0], f[f.length - 1]]
|
|
44555
44555
|
});
|
|
44556
44556
|
else if (n === Ye.Curve) {
|
|
44557
|
-
const p = new
|
|
44557
|
+
const p = new Bi();
|
|
44558
44558
|
this.modifyLinePoints(d, e, p, u);
|
|
44559
44559
|
} else if (n === Ye.PolyLine || n === Ye.RoundPolyLine) {
|
|
44560
44560
|
if (!(d.shapeType === Ye.PolyLine || d.shapeType === Ye.RoundPolyLine)) {
|
|
@@ -44654,7 +44654,7 @@ class I4 {
|
|
|
44654
44654
|
return !1;
|
|
44655
44655
|
const s = o.formulaProps.clone();
|
|
44656
44656
|
s.update({ type: L.Formula, ...e });
|
|
44657
|
-
const i = await
|
|
44657
|
+
const i = await Ei.convert(s.formula, {
|
|
44658
44658
|
fontColor: s.fontColor,
|
|
44659
44659
|
fontColorNoFill: s.fontColorNoFill,
|
|
44660
44660
|
backgroundColor: s.backgroundColor,
|
|
@@ -45545,7 +45545,7 @@ class A4 {
|
|
|
45545
45545
|
};
|
|
45546
45546
|
}
|
|
45547
45547
|
}
|
|
45548
|
-
class
|
|
45548
|
+
class ii {
|
|
45549
45549
|
constructor() {
|
|
45550
45550
|
m(this, "inputWorker", new Eu());
|
|
45551
45551
|
}
|
|
@@ -45664,7 +45664,7 @@ class ai {
|
|
|
45664
45664
|
return r.replaceAll(/<style\s+>/g, "<style>");
|
|
45665
45665
|
}
|
|
45666
45666
|
}
|
|
45667
|
-
class k4 extends
|
|
45667
|
+
class k4 extends ii {
|
|
45668
45668
|
richStyle(n) {
|
|
45669
45669
|
return {
|
|
45670
45670
|
color: n
|
|
@@ -45677,7 +45677,7 @@ class k4 extends ai {
|
|
|
45677
45677
|
};
|
|
45678
45678
|
}
|
|
45679
45679
|
}
|
|
45680
|
-
class B4 extends
|
|
45680
|
+
class B4 extends ii {
|
|
45681
45681
|
richStyle(n) {
|
|
45682
45682
|
return {
|
|
45683
45683
|
"bg-color": n,
|
|
@@ -45691,7 +45691,7 @@ class B4 extends ai {
|
|
|
45691
45691
|
};
|
|
45692
45692
|
}
|
|
45693
45693
|
}
|
|
45694
|
-
class E4 extends
|
|
45694
|
+
class E4 extends ii {
|
|
45695
45695
|
richStyle(n) {
|
|
45696
45696
|
return {
|
|
45697
45697
|
bold: n
|
|
@@ -45704,7 +45704,7 @@ class E4 extends ai {
|
|
|
45704
45704
|
};
|
|
45705
45705
|
}
|
|
45706
45706
|
}
|
|
45707
|
-
class R4 extends
|
|
45707
|
+
class R4 extends ii {
|
|
45708
45708
|
richStyle(n) {
|
|
45709
45709
|
return {
|
|
45710
45710
|
italic: n
|
|
@@ -45718,7 +45718,7 @@ class R4 extends ai {
|
|
|
45718
45718
|
};
|
|
45719
45719
|
}
|
|
45720
45720
|
}
|
|
45721
|
-
class F4 extends
|
|
45721
|
+
class F4 extends ii {
|
|
45722
45722
|
richStyle(n) {
|
|
45723
45723
|
return {
|
|
45724
45724
|
underline: n
|
|
@@ -45731,7 +45731,7 @@ class F4 extends ai {
|
|
|
45731
45731
|
};
|
|
45732
45732
|
}
|
|
45733
45733
|
}
|
|
45734
|
-
class D4 extends
|
|
45734
|
+
class D4 extends ii {
|
|
45735
45735
|
richStyle(n) {
|
|
45736
45736
|
return {
|
|
45737
45737
|
strikethrough: n
|
|
@@ -45784,7 +45784,7 @@ class O4 extends h2 {
|
|
|
45784
45784
|
}
|
|
45785
45785
|
v.Line, v.Shape, v.CheckboxText;
|
|
45786
45786
|
const H4 = 1, z4 = 128;
|
|
45787
|
-
class W4 extends
|
|
45787
|
+
class W4 extends ii {
|
|
45788
45788
|
constructor() {
|
|
45789
45789
|
super(...arguments);
|
|
45790
45790
|
m(this, "editTextWorker", new Oi());
|
|
@@ -46025,7 +46025,7 @@ class d2 {
|
|
|
46025
46025
|
return r.execAction(Lt.create(h)), h.id;
|
|
46026
46026
|
}
|
|
46027
46027
|
}
|
|
46028
|
-
class X4 extends
|
|
46028
|
+
class X4 extends ii {
|
|
46029
46029
|
richStyle(n) {
|
|
46030
46030
|
return {
|
|
46031
46031
|
//color: prop,
|
|
@@ -46039,7 +46039,7 @@ class X4 extends ai {
|
|
|
46039
46039
|
};
|
|
46040
46040
|
}
|
|
46041
46041
|
}
|
|
46042
|
-
class j4 extends
|
|
46042
|
+
class j4 extends ii {
|
|
46043
46043
|
richStyle(n) {
|
|
46044
46044
|
return { "bg-no-fill": n };
|
|
46045
46045
|
}
|
|
@@ -46050,7 +46050,7 @@ class j4 extends ai {
|
|
|
46050
46050
|
};
|
|
46051
46051
|
}
|
|
46052
46052
|
}
|
|
46053
|
-
class G4 extends
|
|
46053
|
+
class G4 extends ii {
|
|
46054
46054
|
richStyle(n) {
|
|
46055
46055
|
return {
|
|
46056
46056
|
color: n.fontColor,
|
|
@@ -46167,7 +46167,7 @@ class U4 {
|
|
|
46167
46167
|
this.textFontBgColorWorker.changeFontProp(n, e);
|
|
46168
46168
|
}
|
|
46169
46169
|
applyRememberedTextStyle() {
|
|
46170
|
-
const n = this.app.appContext, e = this.app.memoryManager.getValue(
|
|
46170
|
+
const n = this.app.appContext, e = this.app.memoryManager.getValue(oi.TextStyle);
|
|
46171
46171
|
e && this.textFontStyleWorker.changeFontProp(e, n);
|
|
46172
46172
|
}
|
|
46173
46173
|
changeTextBold(n) {
|
|
@@ -47414,7 +47414,7 @@ const ja = class ja {
|
|
|
47414
47414
|
}
|
|
47415
47415
|
async loadMermaid() {
|
|
47416
47416
|
if (!this.mermaidInstance) {
|
|
47417
|
-
const n = await import("./mermaid.core-
|
|
47417
|
+
const n = await import("./mermaid.core-B_sJRZT_.js").then((r) => r.aG), e = n.default ?? n;
|
|
47418
47418
|
e.initialize({
|
|
47419
47419
|
startOnLoad: !1,
|
|
47420
47420
|
securityLevel: "loose",
|
|
@@ -47459,7 +47459,7 @@ class t6 {
|
|
|
47459
47459
|
const l = {
|
|
47460
47460
|
documentId: "",
|
|
47461
47461
|
nodes: this.parse(e, i).nodes
|
|
47462
|
-
}, h =
|
|
47462
|
+
}, h = ti.convertDocumentInfoToPasteData(l, dl.Template), { x: d, y: u, width: f, height: p } = h.bounds, g = { x: 10 - d, y: 10 - u }, { addNodeData: y, nextFocusIds: b } = this.pasteWorker.work(o, h.nodes, g, n);
|
|
47463
47463
|
o.execAction(new we()), o.execAction(
|
|
47464
47464
|
be.create(n, [
|
|
47465
47465
|
{ type: L.Chart, ...r },
|
|
@@ -47485,7 +47485,7 @@ class t6 {
|
|
|
47485
47485
|
const i = {
|
|
47486
47486
|
documentId: "",
|
|
47487
47487
|
nodes: (await this.parseMermaid(e)).nodes
|
|
47488
|
-
}, a =
|
|
47488
|
+
}, a = ti.convertDocumentInfoToPasteData(i, dl.Template), { x: l, y: h, width: d, height: u } = a.bounds, f = { x: 10 - l, y: 10 - h }, { addNodeData: p, nextFocusIds: g } = this.pasteWorker.work(r, a.nodes, f, n);
|
|
47489
47489
|
r.execAction(new we()), r.execAction(
|
|
47490
47490
|
be.create(n, [{ type: L.Mermaid, data: e }])
|
|
47491
47491
|
);
|
|
@@ -49083,7 +49083,7 @@ class r6 {
|
|
|
49083
49083
|
};
|
|
49084
49084
|
}
|
|
49085
49085
|
const xe = X.shapeCode;
|
|
49086
|
-
xe === 0 ? $ = new ua().layoutToPointsPro(ce, pe) : xe === 3 ? $ = new
|
|
49086
|
+
xe === 0 ? $ = new ua().layoutToPointsPro(ce, pe) : xe === 3 ? $ = new Bi().layoutToPointsPro(ce, pe) : $ = new ds().layoutToPointsPro(ce, pe);
|
|
49087
49087
|
} else
|
|
49088
49088
|
throw new Error("必须提供 points 或连接信息(startInfo/endInfo/startPoint/endPoint)");
|
|
49089
49089
|
const ue = d.idGenerator.genId(v.Line), Se = C.getBoundsByPoints($), Le = qt.create({
|
|
@@ -49416,7 +49416,7 @@ class r6 {
|
|
|
49416
49416
|
endType: n.endInfo.anchorRatio ? a(n.endInfo.anchorRatio) : [lt.Top, lt.Right, lt.Bottom, lt.Left][n.endInfo.endType]
|
|
49417
49417
|
};
|
|
49418
49418
|
}
|
|
49419
|
-
p === 0 ? g = new ua().layoutToPointsPro(y, b) : p === 3 ? g = new
|
|
49419
|
+
p === 0 ? g = new ua().layoutToPointsPro(y, b) : p === 3 ? g = new Bi().layoutToPointsPro(y, b) : g = new ds().layoutToPointsPro(y, b);
|
|
49420
49420
|
const w = e.idGenerator.genId(v.Line), M = e.nodeManager.root, T = C.getBoundsByPoints(g), B = [
|
|
49421
49421
|
{
|
|
49422
49422
|
type: L.Base,
|
|
@@ -49653,7 +49653,7 @@ class r6 {
|
|
|
49653
49653
|
][w.endInfo.endType]
|
|
49654
49654
|
};
|
|
49655
49655
|
}
|
|
49656
|
-
R === 0 ? Y = new ua().layoutToPointsPro(V, ue) : R === 3 ? Y = new
|
|
49656
|
+
R === 0 ? Y = new ua().layoutToPointsPro(V, ue) : R === 3 ? Y = new Bi().layoutToPointsPro(V, ue) : Y = new ds().layoutToPointsPro(V, ue);
|
|
49657
49657
|
const Se = u.idGenerator.genId(v.Line), Le = u.nodeManager.root, fe = C.getBoundsByPoints(Y), Ee = [
|
|
49658
49658
|
{
|
|
49659
49659
|
type: L.Base,
|
|
@@ -49816,7 +49816,7 @@ class r6 {
|
|
|
49816
49816
|
code: 404,
|
|
49817
49817
|
msg: `以下节点不存在: ${s.join(", ")}`
|
|
49818
49818
|
};
|
|
49819
|
-
const i = new
|
|
49819
|
+
const i = new Bh();
|
|
49820
49820
|
return {
|
|
49821
49821
|
up: () => i.moveForward(e, o),
|
|
49822
49822
|
down: () => i.moveBackward(e, o),
|
|
@@ -49944,7 +49944,7 @@ class r6 {
|
|
|
49944
49944
|
const e = this.getCtx();
|
|
49945
49945
|
if (!n.latex || typeof n.latex != "string")
|
|
49946
49946
|
return { code: 400, msg: "缺少必需参数: latex" };
|
|
49947
|
-
const r = n.fontSize ?? 24, o = await
|
|
49947
|
+
const r = n.fontSize ?? 24, o = await Ei.convert(n.latex, r), s = o.width, i = o.height;
|
|
49948
49948
|
let a, l;
|
|
49949
49949
|
if (n.x !== void 0 && n.y !== void 0)
|
|
49950
49950
|
a = n.x, l = n.y;
|
|
@@ -49969,7 +49969,7 @@ class r6 {
|
|
|
49969
49969
|
height: i
|
|
49970
49970
|
}),
|
|
49971
49971
|
vt.create({ noFill: !0, dashType: en.None }),
|
|
49972
|
-
|
|
49972
|
+
ki.create({ formula: n.latex })
|
|
49973
49973
|
], f = {
|
|
49974
49974
|
id: d,
|
|
49975
49975
|
parentId: h.id,
|
|
@@ -51060,12 +51060,12 @@ class g6 {
|
|
|
51060
51060
|
search(n) {
|
|
51061
51061
|
let e = this.data;
|
|
51062
51062
|
const r = [];
|
|
51063
|
-
if (
|
|
51063
|
+
if (!Ud(n, e)) return r;
|
|
51064
51064
|
const o = this.toBBox, s = [];
|
|
51065
51065
|
for (; e; ) {
|
|
51066
51066
|
for (let i = 0; i < e.children.length; i++) {
|
|
51067
51067
|
const a = e.children[i], l = e.leaf ? o(a) : a;
|
|
51068
|
-
|
|
51068
|
+
Ud(n, l) && (e.leaf ? r.push(a) : Lp(n, l) ? this._all(a, r) : s.push(a));
|
|
51069
51069
|
}
|
|
51070
51070
|
e = s.pop();
|
|
51071
51071
|
}
|
|
@@ -51073,12 +51073,12 @@ class g6 {
|
|
|
51073
51073
|
}
|
|
51074
51074
|
collides(n) {
|
|
51075
51075
|
let e = this.data;
|
|
51076
|
-
if (
|
|
51076
|
+
if (!Ud(n, e)) return !1;
|
|
51077
51077
|
const r = [];
|
|
51078
51078
|
for (; e; ) {
|
|
51079
51079
|
for (let o = 0; o < e.children.length; o++) {
|
|
51080
51080
|
const s = e.children[o], i = e.leaf ? this.toBBox(s) : s;
|
|
51081
|
-
if (
|
|
51081
|
+
if (Ud(n, i)) {
|
|
51082
51082
|
if (e.leaf || Lp(n, i)) return !0;
|
|
51083
51083
|
r.push(s);
|
|
51084
51084
|
}
|
|
@@ -51212,14 +51212,14 @@ class g6 {
|
|
|
51212
51212
|
_allDistMargin(n, e, r, o) {
|
|
51213
51213
|
n.children.sort(o);
|
|
51214
51214
|
const s = this.toBBox, i = uh(n, 0, e, s), a = uh(n, r - e, r, s);
|
|
51215
|
-
let l =
|
|
51215
|
+
let l = Gd(i) + Gd(a);
|
|
51216
51216
|
for (let h = e; h < r - e; h++) {
|
|
51217
51217
|
const d = n.children[h];
|
|
51218
|
-
fh(i, n.leaf ? s(d) : d), l +=
|
|
51218
|
+
fh(i, n.leaf ? s(d) : d), l += Gd(i);
|
|
51219
51219
|
}
|
|
51220
51220
|
for (let h = r - e - 1; h >= e; h--) {
|
|
51221
51221
|
const d = n.children[h];
|
|
51222
|
-
fh(a, n.leaf ? s(d) : d), l +=
|
|
51222
|
+
fh(a, n.leaf ? s(d) : d), l += Gd(a);
|
|
51223
51223
|
}
|
|
51224
51224
|
return l;
|
|
51225
51225
|
}
|
|
@@ -51261,7 +51261,7 @@ function m6(c, n) {
|
|
|
51261
51261
|
function Ip(c) {
|
|
51262
51262
|
return (c.maxX - c.minX) * (c.maxY - c.minY);
|
|
51263
51263
|
}
|
|
51264
|
-
function
|
|
51264
|
+
function Gd(c) {
|
|
51265
51265
|
return c.maxX - c.minX + (c.maxY - c.minY);
|
|
51266
51266
|
}
|
|
51267
51267
|
function w6(c, n) {
|
|
@@ -51274,7 +51274,7 @@ function b6(c, n) {
|
|
|
51274
51274
|
function Lp(c, n) {
|
|
51275
51275
|
return c.minX <= n.minX && c.minY <= n.minY && n.maxX <= c.maxX && n.maxY <= c.maxY;
|
|
51276
51276
|
}
|
|
51277
|
-
function
|
|
51277
|
+
function Ud(c, n) {
|
|
51278
51278
|
return n.minX <= c.maxX && n.minY <= c.maxY && n.maxX >= c.minX && n.maxY >= c.minY;
|
|
51279
51279
|
}
|
|
51280
51280
|
function qc(c) {
|
|
@@ -51405,39 +51405,6 @@ class P6 extends u6 {
|
|
|
51405
51405
|
return r;
|
|
51406
51406
|
}
|
|
51407
51407
|
}
|
|
51408
|
-
class Th {
|
|
51409
|
-
async work(n, e, r, o) {
|
|
51410
|
-
const s = r.getScale();
|
|
51411
|
-
try {
|
|
51412
|
-
const i = n.baseProps, a = s * i.width, l = s * i.height, h = Math.max(1, Math.ceil(2 * a)), d = Math.max(1, Math.ceil(2 * l));
|
|
51413
|
-
let u;
|
|
51414
|
-
const f = o.getSVGBlobUrl(e, a, l);
|
|
51415
|
-
if (f)
|
|
51416
|
-
u = f.imageBitmap;
|
|
51417
|
-
else {
|
|
51418
|
-
const p = new Blob([e], { type: "image/svg+xml" }), g = URL.createObjectURL(p), y = new Image();
|
|
51419
|
-
y.width = h, y.height = d, await new Promise((T, N) => {
|
|
51420
|
-
y.onload = T, y.onerror = N, y.src = g;
|
|
51421
|
-
});
|
|
51422
|
-
const b = new OffscreenCanvas(h, d);
|
|
51423
|
-
b.getContext("2d").drawImage(y, 0, 0, h, d);
|
|
51424
|
-
const M = b.transferToImageBitmap();
|
|
51425
|
-
u = M, o.setSvgInfo(
|
|
51426
|
-
e,
|
|
51427
|
-
{
|
|
51428
|
-
imageBitmap: M
|
|
51429
|
-
},
|
|
51430
|
-
a,
|
|
51431
|
-
l
|
|
51432
|
-
), URL.revokeObjectURL(g);
|
|
51433
|
-
}
|
|
51434
|
-
n.setImageBitmap(u);
|
|
51435
|
-
} catch (i) {
|
|
51436
|
-
console.error("加载svg图片出现问题", i), n.setBroken();
|
|
51437
|
-
}
|
|
51438
|
-
r.dirtyDraw(n.getBounds());
|
|
51439
|
-
}
|
|
51440
|
-
}
|
|
51441
51408
|
const Jc = class Jc {
|
|
51442
51409
|
constructor() {
|
|
51443
51410
|
/**
|
|
@@ -51722,7 +51689,7 @@ const Jc = class Jc {
|
|
|
51722
51689
|
*/
|
|
51723
51690
|
makeupLineProps(n, e, r) {
|
|
51724
51691
|
var h;
|
|
51725
|
-
const o = ((h = r.memoryManager.getValue(
|
|
51692
|
+
const o = ((h = r.memoryManager.getValue(oi.LineStyle)) == null ? void 0 : h.shapeType) ?? Ye.RoundPolyLine, i = this.createLineLayoutHandler(o).layoutToPointsPro(n, e), a = Ne.rectNode2Rect(C.getBoundsByPoints(i));
|
|
51726
51693
|
return [
|
|
51727
51694
|
mr.create(i),
|
|
51728
51695
|
Ze.create({
|
|
@@ -51744,15 +51711,15 @@ const Jc = class Jc {
|
|
|
51744
51711
|
case Ye.RoundPolyLine:
|
|
51745
51712
|
return new ds();
|
|
51746
51713
|
case Ye.BrokenLine:
|
|
51747
|
-
return new
|
|
51714
|
+
return new zh();
|
|
51748
51715
|
case Ye.Curve:
|
|
51749
51716
|
default:
|
|
51750
|
-
return new
|
|
51717
|
+
return new Bi();
|
|
51751
51718
|
}
|
|
51752
51719
|
}
|
|
51753
51720
|
};
|
|
51754
51721
|
m(Jc, "PREVIEW_ID", "quick_preview"), m(Jc, "PREVIEW_LINE_ID", "quick_preview_line");
|
|
51755
|
-
let
|
|
51722
|
+
let pu = Jc;
|
|
51756
51723
|
class Oo {
|
|
51757
51724
|
computePreviewPos(n, e, r) {
|
|
51758
51725
|
var l;
|
|
@@ -51793,6 +51760,39 @@ class S6 extends Oo {
|
|
|
51793
51760
|
);
|
|
51794
51761
|
}
|
|
51795
51762
|
}
|
|
51763
|
+
class gu {
|
|
51764
|
+
async work(n, e, r, o) {
|
|
51765
|
+
const s = r.getScale();
|
|
51766
|
+
try {
|
|
51767
|
+
const i = n.baseProps, a = s * i.width, l = s * i.height, h = Math.max(1, Math.ceil(2 * a)), d = Math.max(1, Math.ceil(2 * l));
|
|
51768
|
+
let u;
|
|
51769
|
+
const f = o.getSVGBlobUrl(e, a, l);
|
|
51770
|
+
if (f)
|
|
51771
|
+
u = f.imageBitmap;
|
|
51772
|
+
else {
|
|
51773
|
+
const p = new Blob([e], { type: "image/svg+xml" }), g = URL.createObjectURL(p), y = new Image();
|
|
51774
|
+
y.width = h, y.height = d, await new Promise((T, N) => {
|
|
51775
|
+
y.onload = T, y.onerror = N, y.src = g;
|
|
51776
|
+
});
|
|
51777
|
+
const b = new OffscreenCanvas(h, d);
|
|
51778
|
+
b.getContext("2d").drawImage(y, 0, 0, h, d);
|
|
51779
|
+
const M = b.transferToImageBitmap();
|
|
51780
|
+
u = M, o.setSvgInfo(
|
|
51781
|
+
e,
|
|
51782
|
+
{
|
|
51783
|
+
imageBitmap: M
|
|
51784
|
+
},
|
|
51785
|
+
a,
|
|
51786
|
+
l
|
|
51787
|
+
), URL.revokeObjectURL(g);
|
|
51788
|
+
}
|
|
51789
|
+
n.setImageBitmap(u);
|
|
51790
|
+
} catch (i) {
|
|
51791
|
+
console.error("加载svg图片出现问题", i), n.setBroken();
|
|
51792
|
+
}
|
|
51793
|
+
r.dirtyDraw(n.getBounds());
|
|
51794
|
+
}
|
|
51795
|
+
}
|
|
51796
51796
|
class M6 extends Oo {
|
|
51797
51797
|
constructor() {
|
|
51798
51798
|
super(...arguments);
|
|
@@ -51805,14 +51805,14 @@ class M6 extends Oo {
|
|
|
51805
51805
|
const o = new k(0, 0), s = r.previewManager.previewResourceManager.previewSvgCode;
|
|
51806
51806
|
s === "" && console.error("出现错误,svg code为空");
|
|
51807
51807
|
const i = this.svgWorker.computeAddSvgNodeByCode(s, o, r), a = Cr.getInstance().create(
|
|
51808
|
-
|
|
51808
|
+
pu.PREVIEW_ID,
|
|
51809
51809
|
v.SVG,
|
|
51810
51810
|
0,
|
|
51811
51811
|
i.props,
|
|
51812
51812
|
r.nodeManager.previewRoot,
|
|
51813
51813
|
r.gmlRender.glCtx
|
|
51814
51814
|
), l = hs.trimSvgCode(s);
|
|
51815
|
-
return a.setSvgCode(l.svgCode), await new
|
|
51815
|
+
return a.setSvgCode(l.svgCode), await new gu().work(a, l.svgCode, r.renderManager, r.resourceManager), a;
|
|
51816
51816
|
}
|
|
51817
51817
|
makeupShapeDefaultProps(e, r, o) {
|
|
51818
51818
|
const s = Gt.Resource, i = es[s], a = 100, l = 100, h = o ? r.x - 0.5 * a : r.x, d = o ? r.y - 0.5 * l : r.y;
|
|
@@ -51821,7 +51821,7 @@ class M6 extends Oo {
|
|
|
51821
51821
|
}
|
|
51822
51822
|
class I6 extends Oo {
|
|
51823
51823
|
enable(n, e) {
|
|
51824
|
-
return n === ct.Widget && e ===
|
|
51824
|
+
return n === ct.Widget && e === Hh.Checkbox;
|
|
51825
51825
|
}
|
|
51826
51826
|
async handle(n, e) {
|
|
51827
51827
|
const r = e.toolManager.shapeType, o = this.computePreviewPos(e, 16, 16), s = e.createWorker.makeupPreviewProps(v.Checkbox, e, r, o);
|
|
@@ -51837,7 +51837,7 @@ class I6 extends Oo {
|
|
|
51837
51837
|
}
|
|
51838
51838
|
class L6 extends Oo {
|
|
51839
51839
|
enable(n, e) {
|
|
51840
|
-
return n === ct.Widget && e ===
|
|
51840
|
+
return n === ct.Widget && e === Hh.CheckboxText;
|
|
51841
51841
|
}
|
|
51842
51842
|
async handle(n, e) {
|
|
51843
51843
|
const r = e.toolManager.shapeType, o = this.computePreviewPos(e, 102, 32), s = e.createWorker.makeupPreviewProps(v.CheckboxText, e, r, o);
|
|
@@ -51859,7 +51859,7 @@ class Zu {
|
|
|
51859
51859
|
width: u.width,
|
|
51860
51860
|
height: u.height
|
|
51861
51861
|
}), p = r.memoryManager.resolveLineBorderProps({ alpha: 0.5 }), g = r.memoryManager.resolveLineArrowProps();
|
|
51862
|
-
return r.memoryManager.getValue(
|
|
51862
|
+
return r.memoryManager.getValue(oi.LineStyle) || (p.color = h), [f, new Ht(n), mr.create(d), p, g];
|
|
51863
51863
|
}
|
|
51864
51864
|
}
|
|
51865
51865
|
class C6 extends Zu {
|
|
@@ -51873,7 +51873,7 @@ class C6 extends Zu {
|
|
|
51873
51873
|
width: u.width,
|
|
51874
51874
|
height: u.height
|
|
51875
51875
|
}), p = r.memoryManager.resolveLineBorderProps({ alpha: 0.5 }), g = r.memoryManager.resolveLineArrowProps();
|
|
51876
|
-
return r.memoryManager.getValue(
|
|
51876
|
+
return r.memoryManager.getValue(oi.LineStyle) || (p.color = h), [f, new Ht(n), mr.create(d), p, g];
|
|
51877
51877
|
}
|
|
51878
51878
|
makeupLinePoints(n, e, r, o) {
|
|
51879
51879
|
return [
|
|
@@ -51963,7 +51963,7 @@ class E6 extends Oo {
|
|
|
51963
51963
|
return n === ct.DocContainer;
|
|
51964
51964
|
}
|
|
51965
51965
|
async handle(n, e) {
|
|
51966
|
-
const r = e.toolManager.shapeType, o = this.computePreviewPos(e,
|
|
51966
|
+
const r = e.toolManager.shapeType, o = this.computePreviewPos(e, lu, pl), s = e.createWorker.makeupPreviewProps(v.DocContainer, e, r, o);
|
|
51967
51967
|
return Cr.getInstance().create(
|
|
51968
51968
|
n,
|
|
51969
51969
|
v.DocContainer,
|
|
@@ -52052,7 +52052,7 @@ class _6 extends Oo {
|
|
|
52052
52052
|
makeupPreviewChartInfo(e, r, o) {
|
|
52053
52053
|
if (!e.syntaxAPI)
|
|
52054
52054
|
return { width: 400, height: 300, children: [] };
|
|
52055
|
-
const s = Jn.createDefaultByShapeCode(o), i = Jn.getParseTypeByShapeCode(o), a = e.syntaxAPI.parse(i, s[`${i}Info`]), l =
|
|
52055
|
+
const s = Jn.createDefaultByShapeCode(o), i = Jn.getParseTypeByShapeCode(o), a = e.syntaxAPI.parse(i, s[`${i}Info`]), l = ti.convertDocumentInfoToPasteData(
|
|
52056
52056
|
{ documentId: "", nodes: a.nodes },
|
|
52057
52057
|
dl.Template
|
|
52058
52058
|
), { x: h, y: d, width: u, height: f } = l.bounds, { addNodeData: p } = this.pasteWorker.work(e, l.nodes, { x: 10 - h, y: 10 - d }, r);
|
|
@@ -52079,7 +52079,7 @@ class H6 extends Oo {
|
|
|
52079
52079
|
return n === ct.MathFormula;
|
|
52080
52080
|
}
|
|
52081
52081
|
async handle(n, e) {
|
|
52082
|
-
const r = await
|
|
52082
|
+
const r = await Ei.convert(O6), o = this.computePreviewPos(e, r.width, r.height), s = e.createWorker.makeupPreviewProps(v.MathFormula, e, 0, o), i = Cr.getInstance().create(
|
|
52083
52083
|
n,
|
|
52084
52084
|
v.MathFormula,
|
|
52085
52085
|
0,
|
|
@@ -52087,7 +52087,7 @@ class H6 extends Oo {
|
|
|
52087
52087
|
e.nodeManager.previewRoot,
|
|
52088
52088
|
e.gmlRender.glCtx
|
|
52089
52089
|
);
|
|
52090
|
-
return i.setSvgCode(r.svgCode), i.baseProps.width = r.width, i.baseProps.height = r.height, await new
|
|
52090
|
+
return i.setSvgCode(r.svgCode), i.baseProps.width = r.width, i.baseProps.height = r.height, await new gu().work(i, r.svgCode, e.renderManager, e.resourceManager), i;
|
|
52091
52091
|
}
|
|
52092
52092
|
}
|
|
52093
52093
|
class z6 extends Oo {
|
|
@@ -52191,7 +52191,7 @@ class W6 {
|
|
|
52191
52191
|
class X6 {
|
|
52192
52192
|
constructor() {
|
|
52193
52193
|
m(this, "createManager", new ng());
|
|
52194
|
-
m(this, "quickCreateManager", new
|
|
52194
|
+
m(this, "quickCreateManager", new pu());
|
|
52195
52195
|
m(this, "previewResourceManager", new W6());
|
|
52196
52196
|
}
|
|
52197
52197
|
addPreviewNode(n, e) {
|
|
@@ -52279,12 +52279,12 @@ class j6 {
|
|
|
52279
52279
|
const s = o;
|
|
52280
52280
|
if (s.svgCode !== e)
|
|
52281
52281
|
return;
|
|
52282
|
-
await new
|
|
52282
|
+
await new gu().work(s, e, this.renderManager, this.resourceManager);
|
|
52283
52283
|
} else if (o.type === v.MathFormula) {
|
|
52284
52284
|
const s = o;
|
|
52285
52285
|
if (s.svgCode !== e)
|
|
52286
52286
|
return;
|
|
52287
|
-
await new
|
|
52287
|
+
await new gu().work(s, e, this.renderManager, this.resourceManager);
|
|
52288
52288
|
}
|
|
52289
52289
|
}
|
|
52290
52290
|
}
|
|
@@ -53581,13 +53581,13 @@ class Ux {
|
|
|
53581
53581
|
try {
|
|
53582
53582
|
const s = o.formula;
|
|
53583
53583
|
if (s) {
|
|
53584
|
-
const i = await
|
|
53584
|
+
const i = await Ei.convert(s);
|
|
53585
53585
|
o.setSvgCode(i.svgCode), this.asyncRenderNodeManager.addRenderNode(o);
|
|
53586
53586
|
}
|
|
53587
53587
|
} catch (s) {
|
|
53588
53588
|
console.error("加载数学公式出现问题", s), o.setBroken();
|
|
53589
53589
|
}
|
|
53590
|
-
o instanceof
|
|
53590
|
+
o instanceof du && e.add(o);
|
|
53591
53591
|
}
|
|
53592
53592
|
const r = C.filterMindMapRoots(e);
|
|
53593
53593
|
r.size > 0 && r.forEach((o) => this.mindmapManager.addMindMap(o));
|
|
@@ -53648,40 +53648,21 @@ class Ux {
|
|
|
53648
53648
|
} catch (o) {
|
|
53649
53649
|
console.error("加载svg图片出现问题", o), r.setBroken();
|
|
53650
53650
|
}
|
|
53651
|
-
r instanceof yl
|
|
53652
|
-
|
|
53653
|
-
|
|
53654
|
-
|
|
53655
|
-
|
|
53656
|
-
|
|
53657
|
-
|
|
53658
|
-
|
|
53659
|
-
|
|
53660
|
-
|
|
53661
|
-
|
|
53662
|
-
|
|
53663
|
-
|
|
53664
|
-
const i = await ti.convert(s, {
|
|
53665
|
-
fontColor: o.fontColor,
|
|
53666
|
-
fontColorNoFill: o.fontColorNoFill,
|
|
53667
|
-
backgroundColor: o.backgroundColor,
|
|
53668
|
-
backgroundNoFill: o.backgroundNoFill
|
|
53669
|
-
});
|
|
53670
|
-
if (this.nodeManager.getNode(n.id) !== n)
|
|
53671
|
-
return;
|
|
53672
|
-
const a = n.formulaProps;
|
|
53673
|
-
if (a.formula !== o.formula || a.fontColor !== o.fontColor || a.fontColorNoFill !== o.fontColorNoFill || a.backgroundColor !== o.backgroundColor || a.backgroundNoFill !== o.backgroundNoFill)
|
|
53674
|
-
return;
|
|
53675
|
-
n.setSvgCode(i.svgCode);
|
|
53676
|
-
const l = e == null ? void 0 : e.get(i.svgCode);
|
|
53677
|
-
if (l) {
|
|
53678
|
-
n.setImageBitmap(l), this.renderManager.dirtyDraw(n.getBounds());
|
|
53679
|
-
return;
|
|
53651
|
+
if (r instanceof yl)
|
|
53652
|
+
try {
|
|
53653
|
+
const o = r.formula;
|
|
53654
|
+
if (o)
|
|
53655
|
+
if (e && e.has(o)) {
|
|
53656
|
+
const s = e.get(o);
|
|
53657
|
+
r.setImageBitmap(s);
|
|
53658
|
+
} else {
|
|
53659
|
+
console.warn("MathFormula 资源未在 resourceMap 中找到"), r.setBroken();
|
|
53660
|
+
continue;
|
|
53661
|
+
}
|
|
53662
|
+
} catch (o) {
|
|
53663
|
+
console.error("加载数学公式出现问题", o), r.setBroken();
|
|
53680
53664
|
}
|
|
53681
|
-
|
|
53682
|
-
} catch (i) {
|
|
53683
|
-
console.error("加载数学公式出现问题", i), n.setBroken(), this.renderManager.dirtyDraw(n.getBounds());
|
|
53684
|
-
}
|
|
53665
|
+
}
|
|
53685
53666
|
}
|
|
53686
53667
|
}
|
|
53687
53668
|
const W8 = {
|
|
@@ -54335,7 +54316,7 @@ const qx = ({ gmlRender: c }) => {
|
|
|
54335
54316
|
constructor() {
|
|
54336
54317
|
m(this, "editTextWorker", new Oi());
|
|
54337
54318
|
m(this, "textInputWorker", new Eu());
|
|
54338
|
-
m(this, "selectionDeleteWorker", new
|
|
54319
|
+
m(this, "selectionDeleteWorker", new Wh());
|
|
54339
54320
|
m(this, "docPosWorker", new mc());
|
|
54340
54321
|
}
|
|
54341
54322
|
computeNextCursorIndex(n, e) {
|
|
@@ -54382,8 +54363,8 @@ const qx = ({ gmlRender: c }) => {
|
|
|
54382
54363
|
}
|
|
54383
54364
|
};
|
|
54384
54365
|
m(el, "MAX_TEXT_LENGTH_FOR_NODE", 4e4), m(el, "MAX_TEXT_LENGTH_FOR_LINE", 4e4);
|
|
54385
|
-
let
|
|
54386
|
-
class nB extends
|
|
54366
|
+
let Th = el;
|
|
54367
|
+
class nB extends Th {
|
|
54387
54368
|
computeUpdateTextProps(n, e) {
|
|
54388
54369
|
const { renderText: r, textCursorPosition: o } = n, s = this.editTextWorker.editText(r, o, e), i = r.getIndexByTextCursorPos(o);
|
|
54389
54370
|
return { updateTextProps: {
|
|
@@ -54392,7 +54373,7 @@ class nB extends Nh {
|
|
|
54392
54373
|
}, index: i };
|
|
54393
54374
|
}
|
|
54394
54375
|
}
|
|
54395
|
-
class rB extends
|
|
54376
|
+
class rB extends Th {
|
|
54396
54377
|
computeUpdateTextProps(n, e, r) {
|
|
54397
54378
|
const { prev: o, next: s, index: i } = r;
|
|
54398
54379
|
return { updateTextProps: {
|
|
@@ -54401,7 +54382,7 @@ class rB extends Nh {
|
|
|
54401
54382
|
}, index: i };
|
|
54402
54383
|
}
|
|
54403
54384
|
}
|
|
54404
|
-
class oB extends
|
|
54385
|
+
class oB extends Th {
|
|
54405
54386
|
constructor() {
|
|
54406
54387
|
super(...arguments);
|
|
54407
54388
|
m(this, "graphemeSplit", new Pm());
|
|
@@ -54857,7 +54838,7 @@ class dB extends Ll {
|
|
|
54857
54838
|
execute(n) {
|
|
54858
54839
|
const { appContext: e, node: r, docContainer: o, hasTextAfterCursor: s, nextRichText: i } = n, a = r.type === v.CheckboxText, l = a ? v.CheckboxText : v.Shape, h = e.idGenerator.genId(l);
|
|
54859
54840
|
n.newChildId = h;
|
|
54860
|
-
const d = e.nodeManager.getNode(r.id), u = d ? d.baseProps.height : r.baseProps.height, { x: f, width: p } = r.baseProps, g = f, b = r.type === v.IMG ? s2 :
|
|
54841
|
+
const d = e.nodeManager.getNode(r.id), u = d ? d.baseProps.height : r.baseProps.height, { x: f, width: p } = r.baseProps, g = f, b = r.type === v.IMG ? s2 : uu, w = r.baseProps.y + u + b, M = 32;
|
|
54861
54842
|
n.newY = w;
|
|
54862
54843
|
const T = s ? i : "", N = [
|
|
54863
54844
|
Ze.create({
|
|
@@ -54978,7 +54959,7 @@ class pB extends Ll {
|
|
|
54978
54959
|
if (p === a)
|
|
54979
54960
|
y = l ?? y, b = h;
|
|
54980
54961
|
else if (!s && f > o + 1) {
|
|
54981
|
-
const M = o + 1, T = i[M], N = e.nodeManager.getNode(T), X = (N == null ? void 0 : N.type) === v.IMG ?
|
|
54962
|
+
const M = o + 1, T = i[M], N = e.nodeManager.getNode(T), X = (N == null ? void 0 : N.type) === v.IMG ? fu : uu;
|
|
54982
54963
|
y = y + h + X;
|
|
54983
54964
|
}
|
|
54984
54965
|
const w = y + b + pa;
|
|
@@ -55273,7 +55254,7 @@ class wB extends w2 {
|
|
|
55273
55254
|
super(...arguments);
|
|
55274
55255
|
m(this, "styleWorker", new mB());
|
|
55275
55256
|
m(this, "editTextWorker", new Oi());
|
|
55276
|
-
m(this, "selectionDeleteWorker", new
|
|
55257
|
+
m(this, "selectionDeleteWorker", new Wh());
|
|
55277
55258
|
m(this, "lineBreakWorker", new xB());
|
|
55278
55259
|
m(this, "listLevelHelper", new b2());
|
|
55279
55260
|
}
|
|
@@ -55480,7 +55461,7 @@ class PB extends P2 {
|
|
|
55480
55461
|
constructor() {
|
|
55481
55462
|
super(...arguments);
|
|
55482
55463
|
m(this, "editTextWorker", new Oi());
|
|
55483
|
-
m(this, "selectionDeleteWorker", new
|
|
55464
|
+
m(this, "selectionDeleteWorker", new Wh());
|
|
55484
55465
|
}
|
|
55485
55466
|
enable(e, r) {
|
|
55486
55467
|
return !0;
|
|
@@ -56085,7 +56066,7 @@ class WB extends Ut {
|
|
|
56085
56066
|
constructor() {
|
|
56086
56067
|
super(...arguments);
|
|
56087
56068
|
m(this, "type", Ve.BracketLeft);
|
|
56088
|
-
m(this, "moveLayerWorker", new
|
|
56069
|
+
m(this, "moveLayerWorker", new Bh());
|
|
56089
56070
|
}
|
|
56090
56071
|
enable(e, r) {
|
|
56091
56072
|
return this.isPressMetaKey(e, r);
|
|
@@ -56098,7 +56079,7 @@ class XB extends Ut {
|
|
|
56098
56079
|
constructor() {
|
|
56099
56080
|
super(...arguments);
|
|
56100
56081
|
m(this, "type", Ve.BracketRight);
|
|
56101
|
-
m(this, "moveLayerWorker", new
|
|
56082
|
+
m(this, "moveLayerWorker", new Bh());
|
|
56102
56083
|
}
|
|
56103
56084
|
enable(e, r) {
|
|
56104
56085
|
return this.isPressMetaKey(e, r);
|
|
@@ -56111,7 +56092,7 @@ class jB extends Ut {
|
|
|
56111
56092
|
constructor() {
|
|
56112
56093
|
super(...arguments);
|
|
56113
56094
|
m(this, "type", Ve.BracketLeft);
|
|
56114
|
-
m(this, "moveLayerWorker", new
|
|
56095
|
+
m(this, "moveLayerWorker", new Bh());
|
|
56115
56096
|
}
|
|
56116
56097
|
enable(e, r) {
|
|
56117
56098
|
return e.altKey && this.isPressMetaKey(e, r);
|
|
@@ -56124,7 +56105,7 @@ class GB extends Ut {
|
|
|
56124
56105
|
constructor() {
|
|
56125
56106
|
super(...arguments);
|
|
56126
56107
|
m(this, "type", Ve.BracketRight);
|
|
56127
|
-
m(this, "moveLayerWorker", new
|
|
56108
|
+
m(this, "moveLayerWorker", new Bh());
|
|
56128
56109
|
}
|
|
56129
56110
|
enable(e, r) {
|
|
56130
56111
|
return e.altKey && this.isPressMetaKey(e, r);
|
|
@@ -56807,10 +56788,10 @@ export {
|
|
|
56807
56788
|
p8 as au,
|
|
56808
56789
|
g4 as av,
|
|
56809
56790
|
y4 as aw,
|
|
56810
|
-
|
|
56791
|
+
ti as ax,
|
|
56811
56792
|
FA as ay,
|
|
56812
56793
|
Bb as az,
|
|
56813
|
-
|
|
56794
|
+
Nh as b,
|
|
56814
56795
|
en as b$,
|
|
56815
56796
|
d6 as b0,
|
|
56816
56797
|
wr as b1,
|
|
@@ -56846,7 +56827,7 @@ export {
|
|
|
56846
56827
|
Ve as bV,
|
|
56847
56828
|
a8 as bW,
|
|
56848
56829
|
RB as bX,
|
|
56849
|
-
|
|
56830
|
+
Ei as bY,
|
|
56850
56831
|
qr as bZ,
|
|
56851
56832
|
RA as b_,
|
|
56852
56833
|
s3 as ba,
|
|
@@ -56862,7 +56843,7 @@ export {
|
|
|
56862
56843
|
cs as bk,
|
|
56863
56844
|
Pw as bl,
|
|
56864
56845
|
Uf as bm,
|
|
56865
|
-
|
|
56846
|
+
ki as bn,
|
|
56866
56847
|
Sb as bo,
|
|
56867
56848
|
G8 as bp,
|
|
56868
56849
|
Pm as bq,
|
|
@@ -56896,7 +56877,7 @@ export {
|
|
|
56896
56877
|
qu as cG,
|
|
56897
56878
|
vh as cH,
|
|
56898
56879
|
oc as cI,
|
|
56899
|
-
|
|
56880
|
+
du as cJ,
|
|
56900
56881
|
yo as cK,
|
|
56901
56882
|
Ch as cL,
|
|
56902
56883
|
hs as cM,
|
|
@@ -56909,14 +56890,14 @@ export {
|
|
|
56909
56890
|
k as cT,
|
|
56910
56891
|
Rp as cU,
|
|
56911
56892
|
JN as cV,
|
|
56912
|
-
|
|
56893
|
+
Ni as cW,
|
|
56913
56894
|
L as cX,
|
|
56914
56895
|
g8 as cY,
|
|
56915
56896
|
BB as cZ,
|
|
56916
56897
|
Xr as c_,
|
|
56917
56898
|
pg as ca,
|
|
56918
|
-
|
|
56919
|
-
|
|
56899
|
+
Id as cb,
|
|
56900
|
+
Ld as cc,
|
|
56920
56901
|
Sp as cd,
|
|
56921
56902
|
Em as ce,
|
|
56922
56903
|
iB as cf,
|
|
@@ -56924,12 +56905,12 @@ export {
|
|
|
56924
56905
|
I8 as ch,
|
|
56925
56906
|
yl as ci,
|
|
56926
56907
|
D8 as cj,
|
|
56927
|
-
|
|
56908
|
+
oi as ck,
|
|
56928
56909
|
ga as cl,
|
|
56929
56910
|
Xg as cm,
|
|
56930
56911
|
K0 as cn,
|
|
56931
56912
|
Dx as co,
|
|
56932
|
-
|
|
56913
|
+
Bh as cp,
|
|
56933
56914
|
Lb as cq,
|
|
56934
56915
|
vP as cr,
|
|
56935
56916
|
Hv as cs,
|
|
@@ -57011,7 +56992,7 @@ export {
|
|
|
57011
56992
|
tk as e3,
|
|
57012
56993
|
qt as e4,
|
|
57013
56994
|
Nb as e5,
|
|
57014
|
-
|
|
56995
|
+
Wh as e6,
|
|
57015
56996
|
gk as e7,
|
|
57016
56997
|
st as e8,
|
|
57017
56998
|
Zo as e9,
|
|
@@ -57033,7 +57014,7 @@ export {
|
|
|
57033
57014
|
Ss as ej,
|
|
57034
57015
|
Vx as ek,
|
|
57035
57016
|
m2 as el,
|
|
57036
|
-
|
|
57017
|
+
Hh as em,
|
|
57037
57018
|
Kx as en,
|
|
57038
57019
|
cB as eo,
|
|
57039
57020
|
lB as ep,
|
|
@@ -57048,7 +57029,7 @@ export {
|
|
|
57048
57029
|
F8 as ey,
|
|
57049
57030
|
M8 as ez,
|
|
57050
57031
|
ac as f,
|
|
57051
|
-
|
|
57032
|
+
Ah as g,
|
|
57052
57033
|
cc as h,
|
|
57053
57034
|
bl as i,
|
|
57054
57035
|
_m as j,
|
|
@@ -57057,7 +57038,7 @@ export {
|
|
|
57057
57038
|
Eg as m,
|
|
57058
57039
|
Fn as n,
|
|
57059
57040
|
_o as o,
|
|
57060
|
-
|
|
57041
|
+
Th as p,
|
|
57061
57042
|
Ov as q,
|
|
57062
57043
|
fc as r,
|
|
57063
57044
|
u8 as s,
|