@ranty/ranty-sdk 3.20.2-beta.4 → 3.20.2-beta.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.
|
@@ -926,7 +926,7 @@ function _e(t) {
|
|
|
926
926
|
*/
|
|
927
927
|
var X1;
|
|
928
928
|
((X1 = window.HTMLSlotElement) === null || X1 === void 0 ? void 0 : X1.prototype.assignedElements) != null;
|
|
929
|
-
const bT = "@ranty/ranty-sdk", vT = "3.20.2-beta.
|
|
929
|
+
const bT = "@ranty/ranty-sdk", vT = "3.20.2-beta.5", wT = "Ranty sdk", _T = "dist/index.js", xT = {
|
|
930
930
|
".": "./dist/index.js"
|
|
931
931
|
}, CT = "types/index.d.ts", BT = [
|
|
932
932
|
"dist",
|
|
@@ -2290,10 +2290,10 @@ const H6 = (t) => {
|
|
|
2290
2290
|
config: t,
|
|
2291
2291
|
request: w
|
|
2292
2292
|
};
|
|
2293
|
-
M6(function(
|
|
2294
|
-
n(
|
|
2295
|
-
}, function(
|
|
2296
|
-
r(
|
|
2293
|
+
M6(function(W) {
|
|
2294
|
+
n(W), m();
|
|
2295
|
+
}, function(W) {
|
|
2296
|
+
r(W), m();
|
|
2297
2297
|
}, q), w = null;
|
|
2298
2298
|
}
|
|
2299
2299
|
"onloadend" in w ? w.onloadend = v : w.onreadystatechange = function() {
|
|
@@ -2491,25 +2491,25 @@ const H6 = (t) => {
|
|
|
2491
2491
|
timeout: E,
|
|
2492
2492
|
onDownloadProgress: q,
|
|
2493
2493
|
onUploadProgress: D,
|
|
2494
|
-
responseType:
|
|
2495
|
-
headers:
|
|
2494
|
+
responseType: W,
|
|
2495
|
+
headers: K,
|
|
2496
2496
|
withCredentials: R = "same-origin",
|
|
2497
2497
|
fetchOptions: ne
|
|
2498
2498
|
} = H6(f);
|
|
2499
|
-
|
|
2499
|
+
W = W ? (W + "").toLowerCase() : "text";
|
|
2500
2500
|
let U = aj([B, k && k.toAbortSignal()], E), Q = null;
|
|
2501
2501
|
const X = U && U.unsubscribe && (() => {
|
|
2502
2502
|
U.unsubscribe();
|
|
2503
2503
|
});
|
|
2504
2504
|
let $;
|
|
2505
2505
|
try {
|
|
2506
|
-
if (D && l && w !== "get" && w !== "head" && ($ = yield p(
|
|
2506
|
+
if (D && l && w !== "get" && w !== "head" && ($ = yield p(K, v)) !== 0) {
|
|
2507
2507
|
let fe = new n(m, {
|
|
2508
2508
|
method: "POST",
|
|
2509
2509
|
body: v,
|
|
2510
2510
|
duplex: "half"
|
|
2511
2511
|
}), de;
|
|
2512
|
-
if (xe.isFormData(v) && (de = fe.headers.get("content-type")) &&
|
|
2512
|
+
if (xe.isFormData(v) && (de = fe.headers.get("content-type")) && K.setContentType(de), fe.body) {
|
|
2513
2513
|
const [T, z] = Fx(
|
|
2514
2514
|
$,
|
|
2515
2515
|
lm(Dx(D))
|
|
@@ -2521,18 +2521,18 @@ const H6 = (t) => {
|
|
|
2521
2521
|
const Ae = i && "credentials" in n.prototype, be = We(De({}, ne), {
|
|
2522
2522
|
signal: U,
|
|
2523
2523
|
method: w.toUpperCase(),
|
|
2524
|
-
headers:
|
|
2524
|
+
headers: K.normalize().toJSON(),
|
|
2525
2525
|
body: v,
|
|
2526
2526
|
duplex: "half",
|
|
2527
2527
|
credentials: Ae ? R : void 0
|
|
2528
2528
|
});
|
|
2529
2529
|
Q = i && new n(m, be);
|
|
2530
2530
|
let ve = yield i ? e(Q, ne) : e(m, be);
|
|
2531
|
-
const ue = c && (
|
|
2531
|
+
const ue = c && (W === "stream" || W === "response");
|
|
2532
2532
|
if (c && (q || ue && X)) {
|
|
2533
2533
|
const fe = {};
|
|
2534
|
-
["status", "statusText", "headers"].forEach((
|
|
2535
|
-
fe[
|
|
2534
|
+
["status", "statusText", "headers"].forEach((Y) => {
|
|
2535
|
+
fe[Y] = ve[Y];
|
|
2536
2536
|
});
|
|
2537
2537
|
const de = xe.toFiniteNumber(ve.headers.get("content-length")), [T, z] = q && Fx(
|
|
2538
2538
|
de,
|
|
@@ -2545,8 +2545,8 @@ const H6 = (t) => {
|
|
|
2545
2545
|
fe
|
|
2546
2546
|
);
|
|
2547
2547
|
}
|
|
2548
|
-
|
|
2549
|
-
let Ce = yield u[xe.findKey(u,
|
|
2548
|
+
W = W || "text";
|
|
2549
|
+
let Ce = yield u[xe.findKey(u, W) || "text"](ve, f);
|
|
2550
2550
|
return !ue && X && X(), yield new Promise((fe, de) => {
|
|
2551
2551
|
M6(fe, de, {
|
|
2552
2552
|
data: Ce,
|
|
@@ -4886,8 +4886,8 @@ var hp = function(t, e) {
|
|
|
4886
4886
|
}, U7 = function(t, e) {
|
|
4887
4887
|
var n, r, s, i, o = t.body, a = t.method, d = a === void 0 ? "GET" : a, l = t.url, c = e.expiration, u = I7(e, ["expiration"]), h = cE(u), p = h.accessKeyId, f = h.credentialScope, m = h.longDate, w = h.sessionToken, v = new URL(l);
|
|
4888
4888
|
Object.entries(pm(pm((n = {}, n[vF] = lw, n[wF] = "".concat(p, "/").concat(f), n[lE] = m, n[CF] = ev, n), c && (r = {}, r[_F] = c.toString(), r)), w && (s = {}, s[aw] = w, s))).forEach(function(E) {
|
|
4889
|
-
var q = T7(E, 2), D = q[0],
|
|
4890
|
-
v.searchParams.append(D,
|
|
4889
|
+
var q = T7(E, 2), D = q[0], W = q[1];
|
|
4890
|
+
v.searchParams.append(D, W);
|
|
4891
4891
|
});
|
|
4892
4892
|
var B = {
|
|
4893
4893
|
body: o,
|
|
@@ -6923,34 +6923,34 @@ var BE = function(t) {
|
|
|
6923
6923
|
c[l] = r;
|
|
6924
6924
|
var u = { region: d != null ? d : i }, h = function() {
|
|
6925
6925
|
return qr(n, void 0, void 0, function() {
|
|
6926
|
-
var f, m, w, v, B, k, E, q, D,
|
|
6927
|
-
return Kr(this, function(
|
|
6928
|
-
switch (
|
|
6926
|
+
var f, m, w, v, B, k, E, q, D, W;
|
|
6927
|
+
return Kr(this, function(K) {
|
|
6928
|
+
switch (K.label) {
|
|
6929
6929
|
case 0:
|
|
6930
6930
|
return [4, this._getGuestIdentityId()];
|
|
6931
6931
|
case 1:
|
|
6932
|
-
return f =
|
|
6932
|
+
return f = K.sent(), f ? [3, 3] : [4, kg(u, {
|
|
6933
6933
|
IdentityPoolId: a,
|
|
6934
6934
|
Logins: c
|
|
6935
6935
|
})];
|
|
6936
6936
|
case 2:
|
|
6937
|
-
w =
|
|
6937
|
+
w = K.sent().IdentityId, m = w, K.label = 3;
|
|
6938
6938
|
case 3:
|
|
6939
6939
|
return [4, Sg(u, {
|
|
6940
6940
|
IdentityId: f || m,
|
|
6941
6941
|
Logins: c
|
|
6942
6942
|
})];
|
|
6943
6943
|
case 4:
|
|
6944
|
-
return v =
|
|
6944
|
+
return v = K.sent(), B = v.Credentials, k = B.AccessKeyId, E = B.Expiration, q = B.SecretKey, D = B.SessionToken, W = v.IdentityId, this._identityId = W, f ? (Nt.debug("The guest identity ".concat(f, " has been successfully linked to the logins")), f === W && Nt.debug("The guest identity ".concat(f, " has become the primary identity")), [4, this._removeGuestIdentityId()]) : [3, 6];
|
|
6945
6945
|
case 5:
|
|
6946
|
-
|
|
6946
|
+
K.sent(), K.label = 6;
|
|
6947
6947
|
case 6:
|
|
6948
6948
|
return [2, {
|
|
6949
6949
|
accessKeyId: k,
|
|
6950
6950
|
secretAccessKey: q,
|
|
6951
6951
|
sessionToken: D,
|
|
6952
6952
|
expiration: E,
|
|
6953
|
-
identityId:
|
|
6953
|
+
identityId: W
|
|
6954
6954
|
}];
|
|
6955
6955
|
}
|
|
6956
6956
|
});
|
|
@@ -7108,12 +7108,12 @@ function KD() {
|
|
|
7108
7108
|
B = p.lastIndexOf(";", k - 1) + 1;
|
|
7109
7109
|
continue;
|
|
7110
7110
|
}
|
|
7111
|
-
var q = a(p, B, k), D = d(p, k, q),
|
|
7112
|
-
if (!e.call(m,
|
|
7113
|
-
var
|
|
7114
|
-
p.charCodeAt(
|
|
7115
|
-
var ne = p.slice(
|
|
7116
|
-
m[
|
|
7111
|
+
var q = a(p, B, k), D = d(p, k, q), W = p.slice(q, D);
|
|
7112
|
+
if (!e.call(m, W)) {
|
|
7113
|
+
var K = a(p, k + 1, E), R = d(p, E, K);
|
|
7114
|
+
p.charCodeAt(K) === 34 && p.charCodeAt(R - 1) === 34 && (K++, R--);
|
|
7115
|
+
var ne = p.slice(K, R);
|
|
7116
|
+
m[W] = h(ne, v);
|
|
7117
7117
|
}
|
|
7118
7118
|
B = E + 1;
|
|
7119
7119
|
} while (B < w);
|
|
@@ -8002,7 +8002,7 @@ var dR = {}.toString, cR = Array.isArray || function(t) {
|
|
|
8002
8002
|
}, a.prototype.lastIndexOf = function(_, C, N) {
|
|
8003
8003
|
return q(this, _, C, N, !1);
|
|
8004
8004
|
};
|
|
8005
|
-
function
|
|
8005
|
+
function W(O, _, C, N) {
|
|
8006
8006
|
C = Number(C) || 0;
|
|
8007
8007
|
var se = O.length - C;
|
|
8008
8008
|
N ? (N = Number(N), N > se && (N = se)) : N = se;
|
|
@@ -8018,7 +8018,7 @@ var dR = {}.toString, cR = Array.isArray || function(t) {
|
|
|
8018
8018
|
}
|
|
8019
8019
|
return ke;
|
|
8020
8020
|
}
|
|
8021
|
-
function
|
|
8021
|
+
function K(O, _, C, N) {
|
|
8022
8022
|
return xt(ze(_, O.length - C), O, C, N);
|
|
8023
8023
|
}
|
|
8024
8024
|
function R(O, _, C, N) {
|
|
@@ -8051,10 +8051,10 @@ var dR = {}.toString, cR = Array.isArray || function(t) {
|
|
|
8051
8051
|
for (var ke = !1; ; )
|
|
8052
8052
|
switch (se) {
|
|
8053
8053
|
case "hex":
|
|
8054
|
-
return
|
|
8054
|
+
return W(this, _, C, N);
|
|
8055
8055
|
case "utf8":
|
|
8056
8056
|
case "utf-8":
|
|
8057
|
-
return
|
|
8057
|
+
return K(this, _, C, N);
|
|
8058
8058
|
case "ascii":
|
|
8059
8059
|
return R(this, _, C, N);
|
|
8060
8060
|
case "latin1":
|
|
@@ -8255,15 +8255,15 @@ var dR = {}.toString, cR = Array.isArray || function(t) {
|
|
|
8255
8255
|
}, a.prototype.writeUInt16BE = function(_, C, N) {
|
|
8256
8256
|
return _ = +_, C = C | 0, N || T(this, _, C, 2, 65535, 0), a.TYPED_ARRAY_SUPPORT ? (this[C] = _ >>> 8, this[C + 1] = _ & 255) : z(this, _, C, !1), C + 2;
|
|
8257
8257
|
};
|
|
8258
|
-
function
|
|
8258
|
+
function Y(O, _, C, N) {
|
|
8259
8259
|
_ < 0 && (_ = 4294967295 + _ + 1);
|
|
8260
8260
|
for (var se = 0, ge = Math.min(O.length - C, 4); se < ge; ++se)
|
|
8261
8261
|
O[C + se] = _ >>> (N ? se : 3 - se) * 8 & 255;
|
|
8262
8262
|
}
|
|
8263
8263
|
a.prototype.writeUInt32LE = function(_, C, N) {
|
|
8264
|
-
return _ = +_, C = C | 0, N || T(this, _, C, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[C + 3] = _ >>> 24, this[C + 2] = _ >>> 16, this[C + 1] = _ >>> 8, this[C] = _ & 255) :
|
|
8264
|
+
return _ = +_, C = C | 0, N || T(this, _, C, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[C + 3] = _ >>> 24, this[C + 2] = _ >>> 16, this[C + 1] = _ >>> 8, this[C] = _ & 255) : Y(this, _, C, !0), C + 4;
|
|
8265
8265
|
}, a.prototype.writeUInt32BE = function(_, C, N) {
|
|
8266
|
-
return _ = +_, C = C | 0, N || T(this, _, C, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[C] = _ >>> 24, this[C + 1] = _ >>> 16, this[C + 2] = _ >>> 8, this[C + 3] = _ & 255) :
|
|
8266
|
+
return _ = +_, C = C | 0, N || T(this, _, C, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[C] = _ >>> 24, this[C + 1] = _ >>> 16, this[C + 2] = _ >>> 8, this[C + 3] = _ & 255) : Y(this, _, C, !1), C + 4;
|
|
8267
8267
|
}, a.prototype.writeIntLE = function(_, C, N, se) {
|
|
8268
8268
|
if (_ = +_, C = C | 0, !se) {
|
|
8269
8269
|
var ge = Math.pow(2, 8 * N - 1);
|
|
@@ -8289,9 +8289,9 @@ var dR = {}.toString, cR = Array.isArray || function(t) {
|
|
|
8289
8289
|
}, a.prototype.writeInt16BE = function(_, C, N) {
|
|
8290
8290
|
return _ = +_, C = C | 0, N || T(this, _, C, 2, 32767, -32768), a.TYPED_ARRAY_SUPPORT ? (this[C] = _ >>> 8, this[C + 1] = _ & 255) : z(this, _, C, !1), C + 2;
|
|
8291
8291
|
}, a.prototype.writeInt32LE = function(_, C, N) {
|
|
8292
|
-
return _ = +_, C = C | 0, N || T(this, _, C, 4, 2147483647, -2147483648), a.TYPED_ARRAY_SUPPORT ? (this[C] = _ & 255, this[C + 1] = _ >>> 8, this[C + 2] = _ >>> 16, this[C + 3] = _ >>> 24) :
|
|
8292
|
+
return _ = +_, C = C | 0, N || T(this, _, C, 4, 2147483647, -2147483648), a.TYPED_ARRAY_SUPPORT ? (this[C] = _ & 255, this[C + 1] = _ >>> 8, this[C + 2] = _ >>> 16, this[C + 3] = _ >>> 24) : Y(this, _, C, !0), C + 4;
|
|
8293
8293
|
}, a.prototype.writeInt32BE = function(_, C, N) {
|
|
8294
|
-
return _ = +_, C = C | 0, N || T(this, _, C, 4, 2147483647, -2147483648), _ < 0 && (_ = 4294967295 + _ + 1), a.TYPED_ARRAY_SUPPORT ? (this[C] = _ >>> 24, this[C + 1] = _ >>> 16, this[C + 2] = _ >>> 8, this[C + 3] = _ & 255) :
|
|
8294
|
+
return _ = +_, C = C | 0, N || T(this, _, C, 4, 2147483647, -2147483648), _ < 0 && (_ = 4294967295 + _ + 1), a.TYPED_ARRAY_SUPPORT ? (this[C] = _ >>> 24, this[C + 1] = _ >>> 16, this[C + 2] = _ >>> 8, this[C + 3] = _ & 255) : Y(this, _, C, !1), C + 4;
|
|
8295
8295
|
};
|
|
8296
8296
|
function ee(O, _, C, N, se, ge) {
|
|
8297
8297
|
if (C + N > O.length)
|
|
@@ -9204,8 +9204,8 @@ var lP = typeof navigator != "undefined", w5 = lP ? jE.isReactNative ? "react-na
|
|
|
9204
9204
|
B && s.onFailure(B);
|
|
9205
9205
|
var E = a.getNowString(), q = hn.Buffer.concat([hn.Buffer.from(i.pool.getUserPoolName(), "utf8"), hn.Buffer.from(i.username, "utf8"), hn.Buffer.from(v.SECRET_BLOCK, "base64"), hn.Buffer.from(E, "utf8")]), D = new xl.Sha256(k);
|
|
9206
9206
|
D.update(q);
|
|
9207
|
-
var
|
|
9208
|
-
R.USERNAME = i.username, R.PASSWORD_CLAIM_SECRET_BLOCK = v.SECRET_BLOCK, R.TIMESTAMP = E, R.PASSWORD_CLAIM_SIGNATURE =
|
|
9207
|
+
var W = D.digestSync(), K = hn.Buffer.from(W).toString("base64"), R = {};
|
|
9208
|
+
R.USERNAME = i.username, R.PASSWORD_CLAIM_SECRET_BLOCK = v.SECRET_BLOCK, R.TIMESTAMP = E, R.PASSWORD_CLAIM_SIGNATURE = K, i.deviceKey != null && (R.DEVICE_KEY = i.deviceKey);
|
|
9209
9209
|
var ne = function(X, $) {
|
|
9210
9210
|
return i.client.request("RespondToAuthChallenge", X, function(Ae, be) {
|
|
9211
9211
|
return Ae && Ae.code === "ResourceNotFoundException" && Ae.message.toLowerCase().indexOf("device") !== -1 ? (R.DEVICE_KEY = null, i.deviceKey = null, i.randomPassword = null, i.deviceGroupKey = null, i.clearCachedDeviceKeyAndPassword(), ne(X, $)) : $(Ae, be);
|
|
@@ -9322,12 +9322,12 @@ var lP = typeof navigator != "undefined", w5 = lP ? jE.isReactNative ? "react-na
|
|
|
9322
9322
|
return r.onFailure(v);
|
|
9323
9323
|
var k = a.getNowString(), E = hn.Buffer.concat([hn.Buffer.from(i.deviceGroupKey, "utf8"), hn.Buffer.from(i.deviceKey, "utf8"), hn.Buffer.from(f.SECRET_BLOCK, "base64"), hn.Buffer.from(k, "utf8")]), q = new xl.Sha256(B);
|
|
9324
9324
|
q.update(E);
|
|
9325
|
-
var D = q.digestSync(),
|
|
9326
|
-
|
|
9325
|
+
var D = q.digestSync(), W = hn.Buffer.from(D).toString("base64"), K = {};
|
|
9326
|
+
K.USERNAME = i.username, K.PASSWORD_CLAIM_SECRET_BLOCK = f.SECRET_BLOCK, K.TIMESTAMP = k, K.PASSWORD_CLAIM_SIGNATURE = W, K.DEVICE_KEY = i.deviceKey;
|
|
9327
9327
|
var R = {
|
|
9328
9328
|
ChallengeName: "DEVICE_PASSWORD_VERIFIER",
|
|
9329
9329
|
ClientId: i.pool.getClientId(),
|
|
9330
|
-
ChallengeResponses:
|
|
9330
|
+
ChallengeResponses: K,
|
|
9331
9331
|
Session: p.Session
|
|
9332
9332
|
};
|
|
9333
9333
|
i.getUserContextData() && (R.UserContextData = i.getUserContextData()), i.client.request("RespondToAuthChallenge", R, function(ne, U) {
|
|
@@ -10245,8 +10245,8 @@ wm.exports;
|
|
|
10245
10245
|
overflow: "Overflow: input needs wider integers to process",
|
|
10246
10246
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
10247
10247
|
"invalid-input": "Invalid input"
|
|
10248
|
-
}, E = d - l, q = Math.floor, D = String.fromCharCode,
|
|
10249
|
-
function
|
|
10248
|
+
}, E = d - l, q = Math.floor, D = String.fromCharCode, W;
|
|
10249
|
+
function K(fe) {
|
|
10250
10250
|
throw RangeError(k[fe]);
|
|
10251
10251
|
}
|
|
10252
10252
|
function R(fe, de) {
|
|
@@ -10257,12 +10257,12 @@ wm.exports;
|
|
|
10257
10257
|
function ne(fe, de) {
|
|
10258
10258
|
var T = fe.split("@"), z = "";
|
|
10259
10259
|
T.length > 1 && (z = T[0] + "@", fe = T[1]), fe = fe.replace(B, ".");
|
|
10260
|
-
var
|
|
10260
|
+
var Y = fe.split("."), ee = R(Y, de).join(".");
|
|
10261
10261
|
return z + ee;
|
|
10262
10262
|
}
|
|
10263
10263
|
function U(fe) {
|
|
10264
|
-
for (var de = [], T = 0, z = fe.length,
|
|
10265
|
-
|
|
10264
|
+
for (var de = [], T = 0, z = fe.length, Y, ee; T < z; )
|
|
10265
|
+
Y = fe.charCodeAt(T++), Y >= 55296 && Y <= 56319 && T < z ? (ee = fe.charCodeAt(T++), (ee & 64512) == 56320 ? de.push(((Y & 1023) << 10) + (ee & 1023) + 65536) : (de.push(Y), T--)) : de.push(Y);
|
|
10266
10266
|
return de;
|
|
10267
10267
|
}
|
|
10268
10268
|
function Q(fe) {
|
|
@@ -10284,30 +10284,30 @@ wm.exports;
|
|
|
10284
10284
|
return q(z + (E + 1) * fe / (fe + u));
|
|
10285
10285
|
}
|
|
10286
10286
|
function be(fe) {
|
|
10287
|
-
var de = [], T = fe.length, z,
|
|
10287
|
+
var de = [], T = fe.length, z, Y = 0, ee = f, re = p, le, Be, we, Te, Ne, ze, He, Ee, Z;
|
|
10288
10288
|
for (le = fe.lastIndexOf(m), le < 0 && (le = 0), Be = 0; Be < le; ++Be)
|
|
10289
|
-
fe.charCodeAt(Be) >= 128 &&
|
|
10289
|
+
fe.charCodeAt(Be) >= 128 && K("not-basic"), de.push(fe.charCodeAt(Be));
|
|
10290
10290
|
for (we = le > 0 ? le + 1 : 0; we < T; ) {
|
|
10291
|
-
for (Te =
|
|
10292
|
-
Z = d - Ee, Ne > q(a / Z) &&
|
|
10293
|
-
z = de.length + 1, re = Ae(
|
|
10291
|
+
for (Te = Y, Ne = 1, ze = d; we >= T && K("invalid-input"), He = X(fe.charCodeAt(we++)), (He >= d || He > q((a - Y) / Ne)) && K("overflow"), Y += He * Ne, Ee = ze <= re ? l : ze >= re + c ? c : ze - re, !(He < Ee); ze += d)
|
|
10292
|
+
Z = d - Ee, Ne > q(a / Z) && K("overflow"), Ne *= Z;
|
|
10293
|
+
z = de.length + 1, re = Ae(Y - Te, z, Te == 0), q(Y / z) > a - ee && K("overflow"), ee += q(Y / z), Y %= z, de.splice(Y++, 0, ee);
|
|
10294
10294
|
}
|
|
10295
10295
|
return Q(de);
|
|
10296
10296
|
}
|
|
10297
10297
|
function ve(fe) {
|
|
10298
|
-
var de, T, z,
|
|
10298
|
+
var de, T, z, Y, ee, re, le, Be, we, Te, Ne, ze = [], He, Ee, Z, xt;
|
|
10299
10299
|
for (fe = U(fe), He = fe.length, de = f, T = 0, ee = p, re = 0; re < He; ++re)
|
|
10300
10300
|
Ne = fe[re], Ne < 128 && ze.push(D(Ne));
|
|
10301
|
-
for (z =
|
|
10301
|
+
for (z = Y = ze.length, Y && ze.push(m); z < He; ) {
|
|
10302
10302
|
for (le = a, re = 0; re < He; ++re)
|
|
10303
10303
|
Ne = fe[re], Ne >= de && Ne < le && (le = Ne);
|
|
10304
|
-
for (Ee = z + 1, le - de > q((a - T) / Ee) &&
|
|
10305
|
-
if (Ne = fe[re], Ne < de && ++T > a &&
|
|
10304
|
+
for (Ee = z + 1, le - de > q((a - T) / Ee) && K("overflow"), T += (le - de) * Ee, de = le, re = 0; re < He; ++re)
|
|
10305
|
+
if (Ne = fe[re], Ne < de && ++T > a && K("overflow"), Ne == de) {
|
|
10306
10306
|
for (Be = T, we = d; Te = we <= ee ? l : we >= ee + c ? c : we - ee, !(Be < Te); we += d)
|
|
10307
10307
|
xt = Be - Te, Z = d - Te, ze.push(
|
|
10308
10308
|
D($(Te + xt % Z, 0))
|
|
10309
10309
|
), Be = q(xt / Z);
|
|
10310
|
-
ze.push(D($(Be, 0))), ee = Ae(T, Ee, z ==
|
|
10310
|
+
ze.push(D($(Be, 0))), ee = Ae(T, Ee, z == Y), T = 0, ++z;
|
|
10311
10311
|
}
|
|
10312
10312
|
++T, ++de;
|
|
10313
10313
|
}
|
|
@@ -10349,8 +10349,8 @@ wm.exports;
|
|
|
10349
10349
|
if (t.exports == r)
|
|
10350
10350
|
s.exports = o;
|
|
10351
10351
|
else
|
|
10352
|
-
for (
|
|
10353
|
-
o.hasOwnProperty(
|
|
10352
|
+
for (W in o)
|
|
10353
|
+
o.hasOwnProperty(W) && (r[W] = o[W]);
|
|
10354
10354
|
else
|
|
10355
10355
|
n.punycode = o;
|
|
10356
10356
|
})(qi);
|
|
@@ -10476,11 +10476,11 @@ ba.prototype.parse = function(t, e, n) {
|
|
|
10476
10476
|
for (var B = this.hostname.split(/\./), p = 0, k = B.length; p < k; p++) {
|
|
10477
10477
|
var E = B[p];
|
|
10478
10478
|
if (E && !E.match(B5)) {
|
|
10479
|
-
for (var q = "", D = 0,
|
|
10479
|
+
for (var q = "", D = 0, W = E.length; D < W; D++)
|
|
10480
10480
|
E.charCodeAt(D) > 127 ? q += "x" : q += E[D];
|
|
10481
10481
|
if (!q.match(B5)) {
|
|
10482
|
-
var
|
|
10483
|
-
ne && (
|
|
10482
|
+
var K = B.slice(0, p), R = B.slice(p + 1), ne = E.match(PP);
|
|
10483
|
+
ne && (K.push(ne[1]), R.unshift(ne[2])), R.length && (a = "/" + R.join(".") + a), this.hostname = K.join(".");
|
|
10484
10484
|
break;
|
|
10485
10485
|
}
|
|
10486
10486
|
}
|
|
@@ -10572,12 +10572,12 @@ ba.prototype.resolveObject = function(t) {
|
|
|
10572
10572
|
}
|
|
10573
10573
|
if (!B.length)
|
|
10574
10574
|
return n.pathname = null, n.search ? n.path = "/" + n.search : n.path = null, n.href = n.format(), n;
|
|
10575
|
-
for (var D = B.slice(-1)[0],
|
|
10576
|
-
D = B[R], D === "." ? B.splice(R, 1) : D === ".." ? (B.splice(R, 1),
|
|
10575
|
+
for (var D = B.slice(-1)[0], W = (n.host || t.host || B.length > 1) && (D === "." || D === "..") || D === "", K = 0, R = B.length; R >= 0; R--)
|
|
10576
|
+
D = B[R], D === "." ? B.splice(R, 1) : D === ".." ? (B.splice(R, 1), K++) : K && (B.splice(R, 1), K--);
|
|
10577
10577
|
if (!w && !v)
|
|
10578
|
-
for (;
|
|
10578
|
+
for (; K--; K)
|
|
10579
10579
|
B.unshift("..");
|
|
10580
|
-
w && B[0] !== "" && (!B[0] || B[0].charAt(0) !== "/") && B.unshift(""),
|
|
10580
|
+
w && B[0] !== "" && (!B[0] || B[0].charAt(0) !== "/") && B.unshift(""), W && B.join("/").substr(-1) !== "/" && B.push("");
|
|
10581
10581
|
var ne = B[0] === "" || B[0] && B[0].charAt(0) === "/";
|
|
10582
10582
|
if (E) {
|
|
10583
10583
|
n.hostname = n.host = ne ? "" : B.length ? B.shift() : "";
|
|
@@ -10638,8 +10638,8 @@ var OP = "_self", LP = function(t) {
|
|
|
10638
10638
|
return n = (ol(e).query || "").split("&").map(function(k) {
|
|
10639
10639
|
return k.split("=");
|
|
10640
10640
|
}).reduce(function(k, E) {
|
|
10641
|
-
var q, D = pa(E, 2),
|
|
10642
|
-
return Dr(Dr({}, k), (q = {}, q[
|
|
10641
|
+
var q, D = pa(E, 2), W = D[0], K = D[1];
|
|
10642
|
+
return Dr(Dr({}, k), (q = {}, q[W] = K, q));
|
|
10643
10643
|
}, { code: void 0 }).code, r = ol(e).pathname || "/", s = ol(this._config.redirectSignIn).pathname || "/", !n || r !== s ? [
|
|
10644
10644
|
2
|
|
10645
10645
|
/*return*/
|
|
@@ -10962,8 +10962,8 @@ var WP = new to("AuthError"), nl = (
|
|
|
10962
10962
|
});
|
|
10963
10963
|
var E = {};
|
|
10964
10964
|
GP(function(D) {
|
|
10965
|
-
var
|
|
10966
|
-
E[
|
|
10965
|
+
var W = D.url;
|
|
10966
|
+
E[W] || (E[W] = !0, n._handleAuthResponse(W));
|
|
10967
10967
|
});
|
|
10968
10968
|
}
|
|
10969
10969
|
if (Ht("configured", null, "The Auth category has been configured successfully"), !this.autoSignInInitiated && typeof this._storage.getItem == "function") {
|
|
@@ -11001,8 +11001,8 @@ var WP = new to("AuthError"), nl = (
|
|
|
11001
11001
|
} else
|
|
11002
11002
|
return this.rejectAuthError(Zt.SignUpError);
|
|
11003
11003
|
return d ? l ? (Qe.debug("signUp attrs:", c), Qe.debug("signUp validation data:", u), new Promise(function(E, q) {
|
|
11004
|
-
n.userPool.signUp(d, l, c, u, function(D,
|
|
11005
|
-
D ? (Ht("signUp_failure", D, d + " failed to signup"), q(D)) : (Ht("signUp",
|
|
11004
|
+
n.userPool.signUp(d, l, c, u, function(D, W) {
|
|
11005
|
+
D ? (Ht("signUp_failure", D, d + " failed to signup"), q(D)) : (Ht("signUp", W, d + " has signed up successfully"), p.enabled && n.handleAutoSignIn(d, l, f, m, W), E(W));
|
|
11006
11006
|
}, h);
|
|
11007
11007
|
})) : this.rejectAuthError(Zt.EmptyPassword) : this.rejectAuthError(Zt.EmptyUsername);
|
|
11008
11008
|
}, t.prototype.handleAutoSignIn = function(e, n, r, s, i) {
|
|
@@ -11760,27 +11760,27 @@ var WP = new to("AuthError"), nl = (
|
|
|
11760
11760
|
i.getUserData(function(f, m) {
|
|
11761
11761
|
return Gt(h, void 0, void 0, function() {
|
|
11762
11762
|
var w, v, B, k, E, q, D;
|
|
11763
|
-
return Wt(this, function(
|
|
11764
|
-
switch (
|
|
11763
|
+
return Wt(this, function(W) {
|
|
11764
|
+
switch (W.label) {
|
|
11765
11765
|
case 0:
|
|
11766
11766
|
if (!f)
|
|
11767
11767
|
return [3, 7];
|
|
11768
11768
|
if (Qe.debug("getting user data failed", f), !this.isSessionInvalid(f))
|
|
11769
11769
|
return [3, 5];
|
|
11770
|
-
|
|
11770
|
+
W.label = 1;
|
|
11771
11771
|
case 1:
|
|
11772
|
-
return
|
|
11772
|
+
return W.trys.push([1, 3, , 4]), [4, this.cleanUpInvalidSession(i)];
|
|
11773
11773
|
case 2:
|
|
11774
|
-
return
|
|
11774
|
+
return W.sent(), [3, 4];
|
|
11775
11775
|
case 3:
|
|
11776
|
-
return w =
|
|
11776
|
+
return w = W.sent(), s(new Error("Session is invalid due to: " + f.message + " and failed to clean up invalid session: " + w.message)), [
|
|
11777
11777
|
2
|
|
11778
11778
|
/*return*/
|
|
11779
11779
|
];
|
|
11780
11780
|
case 4:
|
|
11781
11781
|
return s(f), [3, 6];
|
|
11782
11782
|
case 5:
|
|
11783
|
-
r(i),
|
|
11783
|
+
r(i), W.label = 6;
|
|
11784
11784
|
case 6:
|
|
11785
11785
|
return [
|
|
11786
11786
|
2
|
|
@@ -14860,8 +14860,8 @@ function jL(t, e, n, r, s = UL(t, e)) {
|
|
|
14860
14860
|
process: (D) => {
|
|
14861
14861
|
if (Mf(D))
|
|
14862
14862
|
return;
|
|
14863
|
-
const
|
|
14864
|
-
return w(
|
|
14863
|
+
const W = f(D);
|
|
14864
|
+
return w(W), W;
|
|
14865
14865
|
},
|
|
14866
14866
|
after: (D) => {
|
|
14867
14867
|
ik(D) && !v() && E(D), l = D;
|
|
@@ -14875,12 +14875,12 @@ function jL(t, e, n, r, s = UL(t, e)) {
|
|
|
14875
14875
|
}
|
|
14876
14876
|
function p() {
|
|
14877
14877
|
const D = {
|
|
14878
|
-
process: (
|
|
14878
|
+
process: (W) => Ip(W) ? Td(W, e) : void 0,
|
|
14879
14879
|
after: f
|
|
14880
14880
|
};
|
|
14881
14881
|
if (YN(Sm.WATCH_COOKIE_WITHOUT_LOCK)) {
|
|
14882
|
-
const
|
|
14883
|
-
Ip(
|
|
14882
|
+
const W = s.retrieveSession();
|
|
14883
|
+
Ip(W) ? ll(D, s) : f(W);
|
|
14884
14884
|
} else
|
|
14885
14885
|
ll(D, s);
|
|
14886
14886
|
}
|
|
@@ -14901,8 +14901,8 @@ function jL(t, e, n, r, s = UL(t, e)) {
|
|
|
14901
14901
|
function w(D) {
|
|
14902
14902
|
if (Mf(D))
|
|
14903
14903
|
return !1;
|
|
14904
|
-
const
|
|
14905
|
-
D[n] =
|
|
14904
|
+
const W = r(D[n]);
|
|
14905
|
+
D[n] = W, delete D.isExpired, W !== rk && !D.id && (D.id = Vl(), D.created = String(Zp()));
|
|
14906
14906
|
}
|
|
14907
14907
|
function v() {
|
|
14908
14908
|
return (l == null ? void 0 : l[n]) !== void 0;
|
|
@@ -14918,7 +14918,7 @@ function jL(t, e, n, r, s = UL(t, e)) {
|
|
|
14918
14918
|
}
|
|
14919
14919
|
function q(D) {
|
|
14920
14920
|
ll({
|
|
14921
|
-
process: (
|
|
14921
|
+
process: (W) => De(De({}, W), D),
|
|
14922
14922
|
after: f
|
|
14923
14923
|
}, s);
|
|
14924
14924
|
}
|
|
@@ -16563,10 +16563,10 @@ function RM(t, e, n, r) {
|
|
|
16563
16563
|
}
|
|
16564
16564
|
const Tp = iM(RM);
|
|
16565
16565
|
iQ(Po(), "DD_LOGS", Tp);
|
|
16566
|
-
const PM = "@ranty/ranty-sdk", NM = "3.20.2-beta.
|
|
16566
|
+
const PM = "@ranty/ranty-sdk", NM = "3.20.2-beta.5", OM = 3, LM = !0, QM = {
|
|
16567
16567
|
"": {
|
|
16568
16568
|
name: "@ranty/ranty-sdk",
|
|
16569
|
-
version: "3.20.2-beta.
|
|
16569
|
+
version: "3.20.2-beta.5",
|
|
16570
16570
|
license: "ISC",
|
|
16571
16571
|
dependencies: {
|
|
16572
16572
|
"@datadog/browser-logs": "^6.17.0",
|
|
@@ -41358,18 +41358,18 @@ Pe.asn1.ASN1Util = new function() {
|
|
|
41358
41358
|
if (D == "gentime")
|
|
41359
41359
|
return new w(t[D]);
|
|
41360
41360
|
if (D == "seq") {
|
|
41361
|
-
for (var
|
|
41362
|
-
var ne = E(
|
|
41363
|
-
|
|
41361
|
+
for (var W = t[D], K = [], R = 0; R < W.length; R++) {
|
|
41362
|
+
var ne = E(W[R]);
|
|
41363
|
+
K.push(ne);
|
|
41364
41364
|
}
|
|
41365
|
-
return new v({ array:
|
|
41365
|
+
return new v({ array: K });
|
|
41366
41366
|
}
|
|
41367
41367
|
if (D == "set") {
|
|
41368
|
-
for (var
|
|
41369
|
-
var ne = E(
|
|
41370
|
-
|
|
41368
|
+
for (var W = t[D], K = [], R = 0; R < W.length; R++) {
|
|
41369
|
+
var ne = E(W[R]);
|
|
41370
|
+
K.push(ne);
|
|
41371
41371
|
}
|
|
41372
|
-
return new B({ array:
|
|
41372
|
+
return new B({ array: K });
|
|
41373
41373
|
}
|
|
41374
41374
|
if (D == "tag") {
|
|
41375
41375
|
var U = t[D];
|
|
@@ -41934,12 +41934,12 @@ const a4 = (t) => he(void 0, null, function* () {
|
|
|
41934
41934
|
}
|
|
41935
41935
|
];
|
|
41936
41936
|
}, l4 = (t, e, n, r = "manual_input") => he(void 0, null, function* () {
|
|
41937
|
-
var E, q, D,
|
|
41937
|
+
var E, q, D, W;
|
|
41938
41938
|
const s = wt.getConfig(), { id: i, additional_info: o, external_payment_id: a, flag: d } = t, { creditNumber: l, codSeg: c, expired: u, dni: h, passport: p, email: f, name: m } = e, w = yield o4(
|
|
41939
41939
|
s.VITE_ENCRYPT_DIRECT_PUBLIC_KEY,
|
|
41940
41940
|
`${l.replaceAll(" ", "")}:${c}:${u}`
|
|
41941
41941
|
), v = h ? "DNI" : "PASAPORTE", B = h || p || "", k = (q = (E = gc.settings.customerProperties) == null ? void 0 : E.validate_card) != null ? q : !1;
|
|
41942
|
-
return d && ((D = t.buyer) == null || delete D.callback_url), d && ((
|
|
41942
|
+
return d && ((D = t.buyer) == null || delete D.callback_url), d && ((W = t.buyer) == null || delete W.callback_status), {
|
|
41943
41943
|
platform: d ? t.additional_info.platform : t.platform,
|
|
41944
41944
|
payment_type: d ? t.payment_type : t.payment_request.payment_type,
|
|
41945
41945
|
authorization_mode: "SALE",
|
|
@@ -46883,30 +46883,30 @@ let Yi = class extends Ze {
|
|
|
46883
46883
|
}
|
|
46884
46884
|
submit() {
|
|
46885
46885
|
return he(this, null, function* () {
|
|
46886
|
-
var t, e, n, r, s, i, o, a, d, l, c;
|
|
46886
|
+
var t, e, n, r, s, i, o, a, d, l, c, u;
|
|
46887
46887
|
if (!this.isClickSubmit) {
|
|
46888
46888
|
this.isLoading = !0, this.isClickSubmit = !0, this.state.isAddCardConsent = !0;
|
|
46889
46889
|
try {
|
|
46890
|
-
const
|
|
46890
|
+
const h = yield jh(
|
|
46891
46891
|
this.payfacContext.paymentRequest,
|
|
46892
46892
|
(t = this.cardSelected) == null ? void 0 : t.bin
|
|
46893
46893
|
);
|
|
46894
46894
|
this.isLoading = !1;
|
|
46895
|
-
const
|
|
46896
|
-
const
|
|
46897
|
-
return
|
|
46898
|
-
},
|
|
46899
|
-
name:
|
|
46900
|
-
user_email: ((
|
|
46901
|
-
doc_number:
|
|
46902
|
-
doc_type:
|
|
46903
|
-
},
|
|
46904
|
-
installment:
|
|
46905
|
-
lastFourDigits: (
|
|
46906
|
-
holder:
|
|
46895
|
+
const p = h.plans.cards[0], f = ["0", "n/a", "N/A", "", null, void 0], m = (W) => f.includes(W != null ? W : ""), w = (W) => {
|
|
46896
|
+
const K = W == null ? void 0 : W.toUpperCase();
|
|
46897
|
+
return K === "DNI" || K === "CUIT" ? K : "DNI";
|
|
46898
|
+
}, v = (n = (e = this.payfacContext.paymentRequest) == null ? void 0 : e.buyer) != null ? n : {}, B = m((r = this.cardSelected) == null ? void 0 : r.doc_number) ? ((o = (i = this.payfacContext.paymentRequest) == null ? void 0 : i.buyer) == null ? void 0 : o.doc_number) || "" : (s = this.cardSelected) == null ? void 0 : s.doc_number, k = m((a = this.cardSelected) == null ? void 0 : a.doc_type) ? v.doc_type : (d = this.cardSelected) == null ? void 0 : d.doc_type, E = w(k), q = {
|
|
46899
|
+
name: ((l = this.cardSelected) == null ? void 0 : l.holder) || v.name || "",
|
|
46900
|
+
user_email: ((c = this.cardSelected) == null ? void 0 : c.mail) || v.user_email || "",
|
|
46901
|
+
doc_number: B || "",
|
|
46902
|
+
doc_type: E
|
|
46903
|
+
}, D = {
|
|
46904
|
+
installment: p,
|
|
46905
|
+
lastFourDigits: (u = this.cardSelected) == null ? void 0 : u.last4,
|
|
46906
|
+
holder: q
|
|
46907
46907
|
};
|
|
46908
|
-
if (this.state.binData =
|
|
46909
|
-
this.state.installment =
|
|
46908
|
+
if (this.state.binData = D, rh(p)) {
|
|
46909
|
+
this.state.installment = p.installment_plans[0], this.createEvent("button-pushed", Re.SUMMARY), oe.info("submit", {
|
|
46910
46910
|
context: Se.DEFAULT,
|
|
46911
46911
|
tag: "GET_INSTALLMENT_PLAN_SINGLE_INSTALLMENT",
|
|
46912
46912
|
is_embedded: this.payfacContext.isEmbedded,
|
|
@@ -46917,7 +46917,7 @@ let Yi = class extends Ze {
|
|
|
46917
46917
|
scof_enabled: this.state.scofEnabled,
|
|
46918
46918
|
a2a_enabled: this.state.a2aEnabled,
|
|
46919
46919
|
payment_sync: this.payfacContext.paymentSync,
|
|
46920
|
-
installmentPlan:
|
|
46920
|
+
installmentPlan: p,
|
|
46921
46921
|
selectedCard: this.cardSelected
|
|
46922
46922
|
}
|
|
46923
46923
|
});
|
|
@@ -46934,11 +46934,11 @@ let Yi = class extends Ze {
|
|
|
46934
46934
|
scof_enabled: this.state.scofEnabled,
|
|
46935
46935
|
a2a_enabled: this.state.a2aEnabled,
|
|
46936
46936
|
payment_sync: this.payfacContext.paymentSync,
|
|
46937
|
-
installmentPlan:
|
|
46937
|
+
installmentPlan: p,
|
|
46938
46938
|
selectedCard: this.cardSelected
|
|
46939
46939
|
}
|
|
46940
46940
|
}), this.createEvent("button-pushed", Re.PLANS);
|
|
46941
|
-
} catch (
|
|
46941
|
+
} catch (h) {
|
|
46942
46942
|
_t("INSTALLMENT_PLAN_ERROR", "Installment plan failed."), this.isLoading = !1, this.isClickSubmit = !1, this.state.isAddCardConsent = !1, oe.error(
|
|
46943
46943
|
"submit",
|
|
46944
46944
|
{
|
|
@@ -46954,7 +46954,7 @@ let Yi = class extends Ze {
|
|
|
46954
46954
|
payment_sync: this.payfacContext.paymentSync
|
|
46955
46955
|
}
|
|
46956
46956
|
},
|
|
46957
|
-
|
|
46957
|
+
h
|
|
46958
46958
|
);
|
|
46959
46959
|
}
|
|
46960
46960
|
}
|
|
@@ -48884,13 +48884,13 @@ var bK = R4.exports;
|
|
|
48884
48884
|
function u(v) {
|
|
48885
48885
|
const B = c(o.NUMERIC, e.NUMERIC, v), k = c(o.ALPHANUMERIC, e.ALPHANUMERIC, v);
|
|
48886
48886
|
let E, q;
|
|
48887
|
-
return a.isKanjiModeEnabled() ? (E = c(o.BYTE, e.BYTE, v), q = c(o.KANJI, e.KANJI, v)) : (E = c(o.BYTE_KANJI, e.BYTE, v), q = []), B.concat(k, E, q).sort(function(
|
|
48888
|
-
return
|
|
48889
|
-
}).map(function(
|
|
48887
|
+
return a.isKanjiModeEnabled() ? (E = c(o.BYTE, e.BYTE, v), q = c(o.KANJI, e.KANJI, v)) : (E = c(o.BYTE_KANJI, e.BYTE, v), q = []), B.concat(k, E, q).sort(function(W, K) {
|
|
48888
|
+
return W.index - K.index;
|
|
48889
|
+
}).map(function(W) {
|
|
48890
48890
|
return {
|
|
48891
|
-
data:
|
|
48892
|
-
mode:
|
|
48893
|
-
length:
|
|
48891
|
+
data: W.data,
|
|
48892
|
+
mode: W.mode,
|
|
48893
|
+
length: W.length
|
|
48894
48894
|
};
|
|
48895
48895
|
});
|
|
48896
48896
|
}
|
|
@@ -48948,16 +48948,16 @@ var bK = R4.exports;
|
|
|
48948
48948
|
const k = {}, E = { start: {} };
|
|
48949
48949
|
let q = ["start"];
|
|
48950
48950
|
for (let D = 0; D < v.length; D++) {
|
|
48951
|
-
const
|
|
48952
|
-
for (let R = 0; R <
|
|
48953
|
-
const ne =
|
|
48954
|
-
|
|
48951
|
+
const W = v[D], K = [];
|
|
48952
|
+
for (let R = 0; R < W.length; R++) {
|
|
48953
|
+
const ne = W[R], U = "" + D + R;
|
|
48954
|
+
K.push(U), k[U] = { node: ne, lastCount: 0 }, E[U] = {};
|
|
48955
48955
|
for (let Q = 0; Q < q.length; Q++) {
|
|
48956
48956
|
const X = q[Q];
|
|
48957
48957
|
k[X] && k[X].node.mode === ne.mode ? (E[X][U] = h(k[X].lastCount + ne.length, ne.mode) - h(k[X].lastCount, ne.mode), k[X].lastCount += ne.length) : (k[X] && (k[X].lastCount = ne.length), E[X][U] = h(ne.length, ne.mode) + 4 + e.getCharCountIndicator(ne.mode, B));
|
|
48958
48958
|
}
|
|
48959
48959
|
}
|
|
48960
|
-
q =
|
|
48960
|
+
q = K;
|
|
48961
48961
|
}
|
|
48962
48962
|
for (let D = 0; D < q.length; D++)
|
|
48963
48963
|
E[q[D]].end = 0;
|
|
@@ -48985,10 +48985,10 @@ var bK = R4.exports;
|
|
|
48985
48985
|
return typeof E == "string" ? k.push(w(E, null)) : E.data && k.push(w(E.data, E.mode)), k;
|
|
48986
48986
|
}, []);
|
|
48987
48987
|
}, t.fromString = function(B, k) {
|
|
48988
|
-
const E = u(B, a.isKanjiModeEnabled()), q = f(E), D = m(q, k),
|
|
48989
|
-
for (let R = 1; R <
|
|
48990
|
-
|
|
48991
|
-
return t.fromArray(p(
|
|
48988
|
+
const E = u(B, a.isKanjiModeEnabled()), q = f(E), D = m(q, k), W = d.find_path(D.map, "start", "end"), K = [];
|
|
48989
|
+
for (let R = 1; R < W.length - 1; R++)
|
|
48990
|
+
K.push(D.table[W[R]].node);
|
|
48991
|
+
return t.fromArray(p(K));
|
|
48992
48992
|
}, t.rawSplit = function(B) {
|
|
48993
48993
|
return t.fromArray(
|
|
48994
48994
|
u(B, a.isKanjiModeEnabled())
|
|
@@ -49070,9 +49070,9 @@ function FK(t, e, n) {
|
|
|
49070
49070
|
const m = new Array(o), w = new Array(o);
|
|
49071
49071
|
let v = 0;
|
|
49072
49072
|
const B = new Uint8Array(t.buffer);
|
|
49073
|
-
for (let
|
|
49074
|
-
const
|
|
49075
|
-
m[
|
|
49073
|
+
for (let W = 0; W < o; W++) {
|
|
49074
|
+
const K = W < d ? c : u;
|
|
49075
|
+
m[W] = B.slice(f, f + K), w[W] = p.encode(m[W]), f += K, v = Math.max(v, K);
|
|
49076
49076
|
}
|
|
49077
49077
|
const k = new Uint8Array(r);
|
|
49078
49078
|
let E = 0, q, D;
|
|
@@ -54021,10 +54021,10 @@ var UY = 1, $y = 2, eb = 3, aC = 4, lC = 5, jY = 7, dC = 8, tb = 9, nb = 10, cC
|
|
|
54021
54021
|
} else if (u.name === "counters") {
|
|
54022
54022
|
var k = u.values.filter(VA), m = k[0], E = k[1], w = k[2];
|
|
54023
54023
|
if (m && dn(m)) {
|
|
54024
|
-
var q = i.counters.getCounterValues(m.value), D = w && dn(w) ? h2.parse(i.context, w.value) : 3,
|
|
54024
|
+
var q = i.counters.getCounterValues(m.value), D = w && dn(w) ? h2.parse(i.context, w.value) : 3, W = E && E.type === 0 ? E.value : "", K = q.map(function(U) {
|
|
54025
54025
|
return dh(U, D, !1);
|
|
54026
|
-
}).join(
|
|
54027
|
-
l.appendChild(a.createTextNode(
|
|
54026
|
+
}).join(W);
|
|
54027
|
+
l.appendChild(a.createTextNode(K));
|
|
54028
54028
|
}
|
|
54029
54029
|
}
|
|
54030
54030
|
} else if (u.type === 20)
|
|
@@ -54250,8 +54250,8 @@ var yJ = function(t, e) {
|
|
|
54250
54250
|
w.push((i + d) / r.width), w.push((f + u) / r.width), w.push((o + m) / r.height), w.push((l + h) / r.height);
|
|
54251
54251
|
var v = Math.max.apply(Math, w);
|
|
54252
54252
|
v > 1 && (i /= v, o /= v, d /= v, l /= v, u /= v, h /= v, f /= v, m /= v);
|
|
54253
|
-
var B = r.width - d, k = r.height - h, E = r.width - u, q = r.height - m, D = n.borderTopWidth,
|
|
54254
|
-
this.topLeftBorderDoubleOuterBox = i > 0 || o > 0 ? Bn(r.left + R / 3, r.top + D / 3, i - R / 3, o - D / 3, en.TOP_LEFT) : new Ye(r.left + R / 3, r.top + D / 3), this.topRightBorderDoubleOuterBox = i > 0 || o > 0 ? Bn(r.left + B, r.top + D / 3, d -
|
|
54253
|
+
var B = r.width - d, k = r.height - h, E = r.width - u, q = r.height - m, D = n.borderTopWidth, W = n.borderRightWidth, K = n.borderBottomWidth, R = n.borderLeftWidth, ne = wn(n.paddingTop, e.bounds.width), U = wn(n.paddingRight, e.bounds.width), Q = wn(n.paddingBottom, e.bounds.width), X = wn(n.paddingLeft, e.bounds.width);
|
|
54254
|
+
this.topLeftBorderDoubleOuterBox = i > 0 || o > 0 ? Bn(r.left + R / 3, r.top + D / 3, i - R / 3, o - D / 3, en.TOP_LEFT) : new Ye(r.left + R / 3, r.top + D / 3), this.topRightBorderDoubleOuterBox = i > 0 || o > 0 ? Bn(r.left + B, r.top + D / 3, d - W / 3, l - D / 3, en.TOP_RIGHT) : new Ye(r.left + r.width - W / 3, r.top + D / 3), this.bottomRightBorderDoubleOuterBox = u > 0 || h > 0 ? Bn(r.left + E, r.top + k, u - W / 3, h - K / 3, en.BOTTOM_RIGHT) : new Ye(r.left + r.width - W / 3, r.top + r.height - K / 3), this.bottomLeftBorderDoubleOuterBox = f > 0 || m > 0 ? Bn(r.left + R / 3, r.top + q, f - R / 3, m - K / 3, en.BOTTOM_LEFT) : new Ye(r.left + R / 3, r.top + r.height - K / 3), this.topLeftBorderDoubleInnerBox = i > 0 || o > 0 ? Bn(r.left + R * 2 / 3, r.top + D * 2 / 3, i - R * 2 / 3, o - D * 2 / 3, en.TOP_LEFT) : new Ye(r.left + R * 2 / 3, r.top + D * 2 / 3), this.topRightBorderDoubleInnerBox = i > 0 || o > 0 ? Bn(r.left + B, r.top + D * 2 / 3, d - W * 2 / 3, l - D * 2 / 3, en.TOP_RIGHT) : new Ye(r.left + r.width - W * 2 / 3, r.top + D * 2 / 3), this.bottomRightBorderDoubleInnerBox = u > 0 || h > 0 ? Bn(r.left + E, r.top + k, u - W * 2 / 3, h - K * 2 / 3, en.BOTTOM_RIGHT) : new Ye(r.left + r.width - W * 2 / 3, r.top + r.height - K * 2 / 3), this.bottomLeftBorderDoubleInnerBox = f > 0 || m > 0 ? Bn(r.left + R * 2 / 3, r.top + q, f - R * 2 / 3, m - K * 2 / 3, en.BOTTOM_LEFT) : new Ye(r.left + R * 2 / 3, r.top + r.height - K * 2 / 3), this.topLeftBorderStroke = i > 0 || o > 0 ? Bn(r.left + R / 2, r.top + D / 2, i - R / 2, o - D / 2, en.TOP_LEFT) : new Ye(r.left + R / 2, r.top + D / 2), this.topRightBorderStroke = i > 0 || o > 0 ? Bn(r.left + B, r.top + D / 2, d - W / 2, l - D / 2, en.TOP_RIGHT) : new Ye(r.left + r.width - W / 2, r.top + D / 2), this.bottomRightBorderStroke = u > 0 || h > 0 ? Bn(r.left + E, r.top + k, u - W / 2, h - K / 2, en.BOTTOM_RIGHT) : new Ye(r.left + r.width - W / 2, r.top + r.height - K / 2), this.bottomLeftBorderStroke = f > 0 || m > 0 ? Bn(r.left + R / 2, r.top + q, f - R / 2, m - K / 2, en.BOTTOM_LEFT) : new Ye(r.left + R / 2, r.top + r.height - K / 2), this.topLeftBorderBox = i > 0 || o > 0 ? Bn(r.left, r.top, i, o, en.TOP_LEFT) : new Ye(r.left, r.top), this.topRightBorderBox = d > 0 || l > 0 ? Bn(r.left + B, r.top, d, l, en.TOP_RIGHT) : new Ye(r.left + r.width, r.top), this.bottomRightBorderBox = u > 0 || h > 0 ? Bn(r.left + E, r.top + k, u, h, en.BOTTOM_RIGHT) : new Ye(r.left + r.width, r.top + r.height), this.bottomLeftBorderBox = f > 0 || m > 0 ? Bn(r.left, r.top + q, f, m, en.BOTTOM_LEFT) : new Ye(r.left, r.top + r.height), this.topLeftPaddingBox = i > 0 || o > 0 ? Bn(r.left + R, r.top + D, Math.max(0, i - R), Math.max(0, o - D), en.TOP_LEFT) : new Ye(r.left + R, r.top + D), this.topRightPaddingBox = d > 0 || l > 0 ? Bn(r.left + Math.min(B, r.width - W), r.top + D, B > r.width + W ? 0 : Math.max(0, d - W), Math.max(0, l - D), en.TOP_RIGHT) : new Ye(r.left + r.width - W, r.top + D), this.bottomRightPaddingBox = u > 0 || h > 0 ? Bn(r.left + Math.min(E, r.width - R), r.top + Math.min(k, r.height - K), Math.max(0, u - W), Math.max(0, h - K), en.BOTTOM_RIGHT) : new Ye(r.left + r.width - W, r.top + r.height - K), this.bottomLeftPaddingBox = f > 0 || m > 0 ? Bn(r.left + R, r.top + Math.min(q, r.height - K), Math.max(0, f - R), Math.max(0, m - K), en.BOTTOM_LEFT) : new Ye(r.left + R, r.top + r.height - K), this.topLeftContentBox = i > 0 || o > 0 ? Bn(r.left + R + X, r.top + D + ne, Math.max(0, i - (R + X)), Math.max(0, o - (D + ne)), en.TOP_LEFT) : new Ye(r.left + R + X, r.top + D + ne), this.topRightContentBox = d > 0 || l > 0 ? Bn(r.left + Math.min(B, r.width + R + X), r.top + D + ne, B > r.width + R + X ? 0 : d - R + X, l - (D + ne), en.TOP_RIGHT) : new Ye(r.left + r.width - (W + U), r.top + D + ne), this.bottomRightContentBox = u > 0 || h > 0 ? Bn(r.left + Math.min(E, r.width - (R + X)), r.top + Math.min(k, r.height + D + ne), Math.max(0, u - (W + U)), h - (K + Q), en.BOTTOM_RIGHT) : new Ye(r.left + r.width - (W + U), r.top + r.height - (K + Q)), this.bottomLeftContentBox = f > 0 || m > 0 ? Bn(r.left + R + X, r.top + q, Math.max(0, f - (R + X)), m - (K + Q), en.BOTTOM_LEFT) : new Ye(r.left + R + X, r.top + r.height - (K + Q));
|
|
54255
54255
|
}
|
|
54256
54256
|
return t;
|
|
54257
54257
|
}()
|
|
@@ -54950,7 +54950,7 @@ var Bn = function(t, e, n, r, s) {
|
|
|
54950
54950
|
switch (l.label) {
|
|
54951
54951
|
case 0:
|
|
54952
54952
|
r = n.styles.backgroundImage.length - 1, s = function(c) {
|
|
54953
|
-
var u, h, p, ne, be, ve, X, $,
|
|
54953
|
+
var u, h, p, ne, be, ve, X, $, K, f, ne, be, ve, X, $, m, w, v, B, k, E, q, D, W, K, R, ne, U, Q, X, $, Ae, be, ve, ue, Ce, fe, de, T, z, Y, ee;
|
|
54954
54954
|
return Jr(this, function(re) {
|
|
54955
54955
|
switch (re.label) {
|
|
54956
54956
|
case 0:
|
|
@@ -54968,17 +54968,17 @@ var Bn = function(t, e, n, r, s) {
|
|
|
54968
54968
|
u.width,
|
|
54969
54969
|
u.height,
|
|
54970
54970
|
u.width / u.height
|
|
54971
|
-
]), ne = p[0], be = p[1], ve = p[2], X = p[3], $ = p[4],
|
|
54971
|
+
]), ne = p[0], be = p[1], ve = p[2], X = p[3], $ = p[4], K = i.ctx.createPattern(i.resizeImage(u, X, $), "repeat"), i.renderRepeat(ne, K, be, ve)), [3, 6];
|
|
54972
54972
|
case 5:
|
|
54973
|
-
MG(c) ? (f = db(n, r, [null, null, null]), ne = f[0], be = f[1], ve = f[2], X = f[3], $ = f[4], m = PG(c.angle, X, $), w = m[0], v = m[1], B = m[2], k = m[3], E = m[4], q = document.createElement("canvas"), q.width = X, q.height = $, D = q.getContext("2d"),
|
|
54974
|
-
return
|
|
54975
|
-
}), D.fillStyle =
|
|
54973
|
+
MG(c) ? (f = db(n, r, [null, null, null]), ne = f[0], be = f[1], ve = f[2], X = f[3], $ = f[4], m = PG(c.angle, X, $), w = m[0], v = m[1], B = m[2], k = m[3], E = m[4], q = document.createElement("canvas"), q.width = X, q.height = $, D = q.getContext("2d"), W = D.createLinearGradient(v, k, B, E), Z3(c.stops, w).forEach(function(le) {
|
|
54974
|
+
return W.addColorStop(le.stop, vr(le.color));
|
|
54975
|
+
}), D.fillStyle = W, D.fillRect(0, 0, X, $), X > 0 && $ > 0 && (K = i.ctx.createPattern(q, "repeat"), i.renderRepeat(ne, K, be, ve))) : zG(c) && (R = db(n, r, [
|
|
54976
54976
|
null,
|
|
54977
54977
|
null,
|
|
54978
54978
|
null
|
|
54979
54979
|
]), ne = R[0], U = R[1], Q = R[2], X = R[3], $ = R[4], Ae = c.position.length === 0 ? [Zw] : c.position, be = wn(Ae[0], X), ve = wn(Ae[Ae.length - 1], $), ue = NG(c, be, ve, X, $), Ce = ue[0], fe = ue[1], Ce > 0 && fe > 0 && (de = i.ctx.createRadialGradient(U + be, Q + ve, 0, U + be, Q + ve, Ce), Z3(c.stops, Ce * 2).forEach(function(le) {
|
|
54980
54980
|
return de.addColorStop(le.stop, vr(le.color));
|
|
54981
|
-
}), i.path(ne), i.ctx.fillStyle = de, Ce !== fe ? (T = n.bounds.left + 0.5 * n.bounds.width, z = n.bounds.top + 0.5 * n.bounds.height,
|
|
54981
|
+
}), i.path(ne), i.ctx.fillStyle = de, Ce !== fe ? (T = n.bounds.left + 0.5 * n.bounds.width, z = n.bounds.top + 0.5 * n.bounds.height, Y = fe / Ce, ee = 1 / Y, i.ctx.save(), i.ctx.translate(T, z), i.ctx.transform(1, 0, 0, Y, 0, 0), i.ctx.translate(-T, -z), i.ctx.fillRect(U, ee * (Q - z) + z, X, $ * ee), i.ctx.restore()) : i.ctx.fill())), re.label = 6;
|
|
54982
54982
|
case 6:
|
|
54983
54983
|
return r--, [
|
|
54984
54984
|
2
|
|
@@ -55098,7 +55098,7 @@ var Bn = function(t, e, n, r, s) {
|
|
|
55098
55098
|
}, e.prototype.renderDashedDottedBorder = function(n, r, s, i, o) {
|
|
55099
55099
|
return ls(this, void 0, void 0, function() {
|
|
55100
55100
|
var a, d, l, c, u, h, p, f, m, w, v, B, k, E, q, D, q, D;
|
|
55101
|
-
return Jr(this, function(
|
|
55101
|
+
return Jr(this, function(W) {
|
|
55102
55102
|
return this.ctx.save(), a = GJ(i, s), d = IC(i, s), o === 2 && (this.path(d), this.ctx.clip()), Ai(d[0]) ? (l = d[0].start.x, c = d[0].start.y) : (l = d[0].x, c = d[0].y), Ai(d[1]) ? (u = d[1].end.x, h = d[1].end.y) : (u = d[1].x, h = d[1].y), s === 0 || s === 2 ? p = Math.abs(l - u) : p = Math.abs(c - h), this.ctx.beginPath(), o === 3 ? this.formatPath(a) : this.formatPath(d.slice(0, 2)), f = r < 3 ? r * 3 : r * 2, m = r < 3 ? r * 2 : r, o === 3 && (f = r, m = r), w = !0, p <= f * 2 ? w = !1 : p <= f * 2 + m ? (v = p / (2 * f + m), f *= v, m *= v) : (B = Math.floor((p + m) / (f + m)), k = (p - B * f) / (B - 1), E = (p - (B + 1) * f) / B, m = E <= 0 || Math.abs(m - k) < Math.abs(m - E) ? k : E), w && (o === 3 ? this.ctx.setLineDash([0, f + m]) : this.ctx.setLineDash([f, m])), o === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = r) : this.ctx.lineWidth = r * 2 + 1.1, this.ctx.strokeStyle = vr(n), this.ctx.stroke(), this.ctx.setLineDash([]), o === 2 && (Ai(d[0]) && (q = d[3], D = d[0], this.ctx.beginPath(), this.formatPath([new Ye(q.end.x, q.end.y), new Ye(D.start.x, D.start.y)]), this.ctx.stroke()), Ai(d[1]) && (q = d[1], D = d[2], this.ctx.beginPath(), this.formatPath([new Ye(q.end.x, q.end.y), new Ye(D.start.x, D.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
|
|
55103
55103
|
2
|
|
55104
55104
|
/*return*/
|
|
@@ -55216,7 +55216,7 @@ var Bn = function(t, e, n, r, s) {
|
|
|
55216
55216
|
typeof window != "undefined" && PS.setContext(window);
|
|
55217
55217
|
var AX = function(t, e) {
|
|
55218
55218
|
return ls(void 0, void 0, void 0, function() {
|
|
55219
|
-
var n, r, s, i, o, a, d, l, c, u, h, p, f, m, w, v, B, k, E, q,
|
|
55219
|
+
var n, r, s, i, o, a, d, l, c, u, h, p, f, m, w, v, B, k, E, q, W, D, W, K, R, ne, U, Q, X, $, Ae, be, ve, ue, Ce, fe, de, T, z, Y;
|
|
55220
55220
|
return Jr(this, function(ee) {
|
|
55221
55221
|
switch (ee.label) {
|
|
55222
55222
|
case 0:
|
|
@@ -55227,7 +55227,7 @@ var AX = function(t, e) {
|
|
|
55227
55227
|
if (r = n.defaultView, !r)
|
|
55228
55228
|
throw new Error("Document is not attached to a Window");
|
|
55229
55229
|
return s = {
|
|
55230
|
-
allowTaint: (
|
|
55230
|
+
allowTaint: (K = e.allowTaint) !== null && K !== void 0 ? K : !1,
|
|
55231
55231
|
imageTimeout: (R = e.imageTimeout) !== null && R !== void 0 ? R : 15e3,
|
|
55232
55232
|
proxy: e.proxy,
|
|
55233
55233
|
useCORS: (ne = e.useCORS) !== null && ne !== void 0 ? ne : !1
|
|
@@ -55252,15 +55252,15 @@ var AX = function(t, e) {
|
|
|
55252
55252
|
y: ((de = e.y) !== null && de !== void 0 ? de : 0) + B,
|
|
55253
55253
|
width: (T = e.width) !== null && T !== void 0 ? T : Math.ceil(m),
|
|
55254
55254
|
height: (z = e.height) !== null && z !== void 0 ? z : Math.ceil(w)
|
|
55255
|
-
}, l ? (d.logger.debug("Document cloned, using foreign object rendering"),
|
|
55255
|
+
}, l ? (d.logger.debug("Document cloned, using foreign object rendering"), W = new aX(d, E), [4, W.render(h)]) : [3, 3];
|
|
55256
55256
|
case 2:
|
|
55257
55257
|
return q = ee.sent(), [3, 5];
|
|
55258
55258
|
case 3:
|
|
55259
|
-
return d.logger.debug("Document cloned, element located at " + v + "," + B + " with size " + m + "x" + w + " using computed rendering"), d.logger.debug("Starting DOM parsing"), D = SS(d, h), k === D.styles.backgroundColor && (D.styles.backgroundColor = wa.TRANSPARENT), d.logger.debug("Starting renderer for element at " + E.x + "," + E.y + " with size " + E.width + "x" + E.height),
|
|
55259
|
+
return d.logger.debug("Document cloned, element located at " + v + "," + B + " with size " + m + "x" + w + " using computed rendering"), d.logger.debug("Starting DOM parsing"), D = SS(d, h), k === D.styles.backgroundColor && (D.styles.backgroundColor = wa.TRANSPARENT), d.logger.debug("Starting renderer for element at " + E.x + "," + E.y + " with size " + E.width + "x" + E.height), W = new tX(d, E), [4, W.render(D)];
|
|
55260
55260
|
case 4:
|
|
55261
55261
|
q = ee.sent(), ee.label = 5;
|
|
55262
55262
|
case 5:
|
|
55263
|
-
return (!((
|
|
55263
|
+
return (!((Y = e.removeContainer) !== null && Y !== void 0) || Y) && (EC.destroy(p) || d.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")), d.logger.debug("Finished rendering"), [2, q];
|
|
55264
55264
|
}
|
|
55265
55265
|
});
|
|
55266
55266
|
});
|
|
@@ -55426,8 +55426,8 @@ var fX = /* @__PURE__ */ Mp(dc, 9, 0), mX = /* @__PURE__ */ Mp(e0, 5, 0), KS = f
|
|
|
55426
55426
|
var p = new qs(h + 1), f = B2(n[c - 1], p, 0);
|
|
55427
55427
|
if (f > e) {
|
|
55428
55428
|
var r = 0, m = 0, w = f - e, v = 1 << w;
|
|
55429
|
-
for (i.sort(function(D,
|
|
55430
|
-
return p[
|
|
55429
|
+
for (i.sort(function(D, W) {
|
|
55430
|
+
return p[W.s] - p[D.s] || D.f - W.f;
|
|
55431
55431
|
}); r < s; ++r) {
|
|
55432
55432
|
var B = i[r].s;
|
|
55433
55433
|
if (p[B] > e)
|
|
@@ -55483,13 +55483,13 @@ var fX = /* @__PURE__ */ Mp(dc, 9, 0), mX = /* @__PURE__ */ Mp(e0, 5, 0), KS = f
|
|
|
55483
55483
|
return (s + 4 + r) * 8;
|
|
55484
55484
|
}, DC = function(t, e, n, r, s, i, o, a, d, l, c) {
|
|
55485
55485
|
Aa(e, c++, n), ++s[256];
|
|
55486
|
-
for (var u = cb(s, 15), h = u.t, p = u.l, f = cb(i, 15), m = f.t, w = f.l, v = FC(h), B = v.c, k = v.n, E = FC(m), q = E.c, D = E.n,
|
|
55487
|
-
++
|
|
55488
|
-
for (var
|
|
55489
|
-
++
|
|
55490
|
-
for (var R = cb(
|
|
55486
|
+
for (var u = cb(s, 15), h = u.t, p = u.l, f = cb(i, 15), m = f.t, w = f.l, v = FC(h), B = v.c, k = v.n, E = FC(m), q = E.c, D = E.n, W = new qs(19), K = 0; K < B.length; ++K)
|
|
55487
|
+
++W[B[K] & 31];
|
|
55488
|
+
for (var K = 0; K < q.length; ++K)
|
|
55489
|
+
++W[q[K] & 31];
|
|
55490
|
+
for (var R = cb(W, 7), ne = R.t, U = R.l, Q = 19; Q > 4 && !ne[UC[Q - 1]]; --Q)
|
|
55491
55491
|
;
|
|
55492
|
-
var X = l + 5 << 3, $ = Ap(s, dc) + Ap(i, e0) + o, Ae = Ap(s, h) + Ap(i, m) + o + 14 + 3 * Q + Ap(
|
|
55492
|
+
var X = l + 5 << 3, $ = Ap(s, dc) + Ap(i, e0) + o, Ae = Ap(s, h) + Ap(i, m) + o + 14 + 3 * Q + Ap(W, ne) + 2 * W[16] + 3 * W[17] + 7 * W[18];
|
|
55493
55493
|
if (d >= 0 && X <= $ && X <= Ae)
|
|
55494
55494
|
return VS(e, c, t.subarray(d, d + l));
|
|
55495
55495
|
var be, ve, ue, Ce;
|
|
@@ -55497,21 +55497,21 @@ var fX = /* @__PURE__ */ Mp(dc, 9, 0), mX = /* @__PURE__ */ Mp(e0, 5, 0), KS = f
|
|
|
55497
55497
|
be = Mp(h, p, 0), ve = h, ue = Mp(m, w, 0), Ce = m;
|
|
55498
55498
|
var fe = Mp(ne, U, 0);
|
|
55499
55499
|
Aa(e, c, k - 257), Aa(e, c + 5, D - 1), Aa(e, c + 10, Q - 4), c += 14;
|
|
55500
|
-
for (var
|
|
55501
|
-
Aa(e, c + 3 *
|
|
55500
|
+
for (var K = 0; K < Q; ++K)
|
|
55501
|
+
Aa(e, c + 3 * K, ne[UC[K]]);
|
|
55502
55502
|
c += 3 * Q;
|
|
55503
55503
|
for (var de = [B, q], T = 0; T < 2; ++T)
|
|
55504
|
-
for (var z = de[T],
|
|
55505
|
-
var
|
|
55506
|
-
Aa(e, c, fe[
|
|
55504
|
+
for (var z = de[T], K = 0; K < z.length; ++K) {
|
|
55505
|
+
var Y = z[K] & 31;
|
|
55506
|
+
Aa(e, c, fe[Y]), c += ne[Y], Y > 15 && (Aa(e, c, z[K] >> 5 & 127), c += z[K] >> 12);
|
|
55507
55507
|
}
|
|
55508
55508
|
} else
|
|
55509
55509
|
be = fX, ve = dc, ue = mX, Ce = e0;
|
|
55510
|
-
for (var
|
|
55511
|
-
var ee = r[
|
|
55510
|
+
for (var K = 0; K < a; ++K) {
|
|
55511
|
+
var ee = r[K];
|
|
55512
55512
|
if (ee > 255) {
|
|
55513
|
-
var
|
|
55514
|
-
cp(e, c, be[
|
|
55513
|
+
var Y = ee >> 18 & 31;
|
|
55514
|
+
cp(e, c, be[Y + 257]), c += ve[Y + 257], Y > 7 && (Aa(e, c, ee >> 23 & 31), c += o_[Y]);
|
|
55515
55515
|
var re = ee & 31;
|
|
55516
55516
|
cp(e, c, ue[re]), c += Ce[re], re > 3 && (cp(e, c, ee >> 5 & 8191), c += a_[re]);
|
|
55517
55517
|
} else
|
|
@@ -55524,12 +55524,12 @@ var fX = /* @__PURE__ */ Mp(dc, 9, 0), mX = /* @__PURE__ */ Mp(e0, 5, 0), KS = f
|
|
|
55524
55524
|
c && (d[0] = i.r >> 3);
|
|
55525
55525
|
for (var u = bX[e - 1], h = u >> 13, p = u & 8191, f = (1 << n) - 1, m = i.p || new qs(32768), w = i.h || new qs(f + 1), v = Math.ceil(n / 3), B = 2 * v, k = function(Ee) {
|
|
55526
55526
|
return (t[Ee] ^ t[Ee + 1] << v ^ t[Ee + 2] << B) & f;
|
|
55527
|
-
}, E = new i_(25e3), q = new qs(288), D = new qs(32),
|
|
55527
|
+
}, E = new i_(25e3), q = new qs(288), D = new qs(32), W = 0, K = 0, R = i.i || 0, ne = 0, U = i.w || 0, Q = 0; R + 2 < o; ++R) {
|
|
55528
55528
|
var X = k(R), $ = R & 32767, Ae = w[X];
|
|
55529
55529
|
if (m[$] = Ae, w[X] = $, U <= R) {
|
|
55530
55530
|
var be = o - R;
|
|
55531
|
-
if ((
|
|
55532
|
-
c = DC(t, d, 0, E, q, D,
|
|
55531
|
+
if ((W > 7e3 || ne > 24576) && (be > 423 || !l)) {
|
|
55532
|
+
c = DC(t, d, 0, E, q, D, K, ne, Q, R - Q, c), ne = W = K = 0, Q = R;
|
|
55533
55533
|
for (var ve = 0; ve < 286; ++ve)
|
|
55534
55534
|
q[ve] = 0;
|
|
55535
55535
|
for (var ve = 0; ve < 30; ++ve)
|
|
@@ -55537,9 +55537,9 @@ var fX = /* @__PURE__ */ Mp(dc, 9, 0), mX = /* @__PURE__ */ Mp(e0, 5, 0), KS = f
|
|
|
55537
55537
|
}
|
|
55538
55538
|
var ue = 2, Ce = 0, fe = p, de = $ - Ae & 32767;
|
|
55539
55539
|
if (be > 2 && X == k(R - de))
|
|
55540
|
-
for (var T = Math.min(h, be) - 1, z = Math.min(32767, R),
|
|
55540
|
+
for (var T = Math.min(h, be) - 1, z = Math.min(32767, R), Y = Math.min(258, be); de <= z && --fe && $ != Ae; ) {
|
|
55541
55541
|
if (t[R + ue] == t[R + ue - de]) {
|
|
55542
|
-
for (var ee = 0; ee <
|
|
55542
|
+
for (var ee = 0; ee < Y && t[R + ee] == t[R + ee - de]; ++ee)
|
|
55543
55543
|
;
|
|
55544
55544
|
if (ee > ue) {
|
|
55545
55545
|
if (ue = ee, Ce = de, ee > T)
|
|
@@ -55555,14 +55555,14 @@ var fX = /* @__PURE__ */ Mp(dc, 9, 0), mX = /* @__PURE__ */ Mp(e0, 5, 0), KS = f
|
|
|
55555
55555
|
if (Ce) {
|
|
55556
55556
|
E[ne++] = 268435456 | x2[ue] << 18 | jC[Ce];
|
|
55557
55557
|
var Ne = x2[ue] & 31, ze = jC[Ce] & 31;
|
|
55558
|
-
|
|
55558
|
+
K += o_[Ne] + a_[ze], ++q[257 + Ne], ++D[ze], U = R + ue, ++W;
|
|
55559
55559
|
} else
|
|
55560
55560
|
E[ne++] = t[R], ++q[t[R]];
|
|
55561
55561
|
}
|
|
55562
55562
|
}
|
|
55563
55563
|
for (R = Math.max(R, U); R < o; ++R)
|
|
55564
55564
|
E[ne++] = t[R], ++q[t[R]];
|
|
55565
|
-
c = DC(t, d, l, E, q, D,
|
|
55565
|
+
c = DC(t, d, l, E, q, D, K, ne, Q, R - Q, c), l || (i.r = c & 7 | d[c / 8 | 0] << 3, c -= 7, i.h = w, i.p = m, i.i = R, i.w = U);
|
|
55566
55566
|
} else {
|
|
55567
55567
|
for (var R = i.w || 0; R < o + l; R += 65535) {
|
|
55568
55568
|
var He = R + 65535;
|
|
@@ -57013,7 +57013,7 @@ h_.prototype.onEnd = function(t) {
|
|
|
57013
57013
|
};
|
|
57014
57014
|
const wf = 16209, p$ = 16191;
|
|
57015
57015
|
var h$ = function(e, n) {
|
|
57016
|
-
let r, s, i, o, a, d, l, c, u, h, p, f, m, w, v, B, k, E, q, D,
|
|
57016
|
+
let r, s, i, o, a, d, l, c, u, h, p, f, m, w, v, B, k, E, q, D, W, K, R, ne;
|
|
57017
57017
|
const U = e.state;
|
|
57018
57018
|
r = e.next_in, R = e.input, s = r + (e.avail_in - 5), i = e.next_out, ne = e.output, o = i - (n - e.avail_out), a = i + (e.avail_out - 257), d = U.dmax, l = U.wsize, c = U.whave, u = U.wnext, h = U.window, p = U.hold, f = U.bits, m = U.lencode, w = U.distcode, v = (1 << U.lenbits) - 1, B = (1 << U.distbits) - 1;
|
|
57019
57019
|
e:
|
|
@@ -57037,44 +57037,44 @@ var h$ = function(e, n) {
|
|
|
57037
57037
|
e.msg = "invalid distance too far back", U.mode = wf;
|
|
57038
57038
|
break e;
|
|
57039
57039
|
}
|
|
57040
|
-
if (
|
|
57041
|
-
if (
|
|
57040
|
+
if (W = 0, K = h, u === 0) {
|
|
57041
|
+
if (W += l - E, E < q) {
|
|
57042
57042
|
q -= E;
|
|
57043
57043
|
do
|
|
57044
|
-
ne[i++] = h[
|
|
57044
|
+
ne[i++] = h[W++];
|
|
57045
57045
|
while (--E);
|
|
57046
|
-
|
|
57046
|
+
W = i - D, K = ne;
|
|
57047
57047
|
}
|
|
57048
57048
|
} else if (u < E) {
|
|
57049
|
-
if (
|
|
57049
|
+
if (W += l + u - E, E -= u, E < q) {
|
|
57050
57050
|
q -= E;
|
|
57051
57051
|
do
|
|
57052
|
-
ne[i++] = h[
|
|
57052
|
+
ne[i++] = h[W++];
|
|
57053
57053
|
while (--E);
|
|
57054
|
-
if (
|
|
57054
|
+
if (W = 0, u < q) {
|
|
57055
57055
|
E = u, q -= E;
|
|
57056
57056
|
do
|
|
57057
|
-
ne[i++] = h[
|
|
57057
|
+
ne[i++] = h[W++];
|
|
57058
57058
|
while (--E);
|
|
57059
|
-
|
|
57059
|
+
W = i - D, K = ne;
|
|
57060
57060
|
}
|
|
57061
57061
|
}
|
|
57062
|
-
} else if (
|
|
57062
|
+
} else if (W += u - E, E < q) {
|
|
57063
57063
|
q -= E;
|
|
57064
57064
|
do
|
|
57065
|
-
ne[i++] = h[
|
|
57065
|
+
ne[i++] = h[W++];
|
|
57066
57066
|
while (--E);
|
|
57067
|
-
|
|
57067
|
+
W = i - D, K = ne;
|
|
57068
57068
|
}
|
|
57069
57069
|
for (; q > 2; )
|
|
57070
|
-
ne[i++] =
|
|
57071
|
-
q && (ne[i++] =
|
|
57070
|
+
ne[i++] = K[W++], ne[i++] = K[W++], ne[i++] = K[W++], q -= 3;
|
|
57071
|
+
q && (ne[i++] = K[W++], q > 1 && (ne[i++] = K[W++]));
|
|
57072
57072
|
} else {
|
|
57073
|
-
|
|
57073
|
+
W = i - D;
|
|
57074
57074
|
do
|
|
57075
|
-
ne[i++] = ne[
|
|
57075
|
+
ne[i++] = ne[W++], ne[i++] = ne[W++], ne[i++] = ne[W++], q -= 3;
|
|
57076
57076
|
while (q > 2);
|
|
57077
|
-
q && (ne[i++] = ne[
|
|
57077
|
+
q && (ne[i++] = ne[W++], q > 1 && (ne[i++] = ne[W++]));
|
|
57078
57078
|
}
|
|
57079
57079
|
} else if (E & 64) {
|
|
57080
57080
|
e.msg = "invalid distance code", U.mode = wf;
|
|
@@ -57238,7 +57238,7 @@ const tA = 15, WC = 852, YC = 592, JC = 0, yb = 1, XC = 2, g$ = new Uint16Array(
|
|
|
57238
57238
|
64
|
|
57239
57239
|
]), b$ = (t, e, n, r, s, i, o, a) => {
|
|
57240
57240
|
const d = a.bits;
|
|
57241
|
-
let l = 0, c = 0, u = 0, h = 0, p = 0, f = 0, m = 0, w = 0, v = 0, B = 0, k, E, q, D,
|
|
57241
|
+
let l = 0, c = 0, u = 0, h = 0, p = 0, f = 0, m = 0, w = 0, v = 0, B = 0, k, E, q, D, W, K = null, R;
|
|
57242
57242
|
const ne = new Uint16Array(tA + 1), U = new Uint16Array(tA + 1);
|
|
57243
57243
|
let Q = null, X, $, Ae;
|
|
57244
57244
|
for (l = 0; l <= tA; l++)
|
|
@@ -57260,12 +57260,12 @@ const tA = 15, WC = 852, YC = 592, JC = 0, yb = 1, XC = 2, g$ = new Uint16Array(
|
|
|
57260
57260
|
U[l + 1] = U[l] + ne[l];
|
|
57261
57261
|
for (c = 0; c < r; c++)
|
|
57262
57262
|
e[n + c] !== 0 && (o[U[e[n + c]]++] = c);
|
|
57263
|
-
if (t === JC ? (
|
|
57263
|
+
if (t === JC ? (K = Q = o, R = 20) : t === yb ? (K = g$, Q = f$, R = 257) : (K = m$, Q = y$, R = 0), B = 0, c = 0, l = u, W = i, f = p, m = 0, q = -1, v = 1 << p, D = v - 1, t === yb && v > WC || t === XC && v > YC)
|
|
57264
57264
|
return 1;
|
|
57265
57265
|
for (; ; ) {
|
|
57266
|
-
X = l - m, o[c] + 1 < R ? ($ = 0, Ae = o[c]) : o[c] >= R ? ($ = Q[o[c] - R], Ae =
|
|
57266
|
+
X = l - m, o[c] + 1 < R ? ($ = 0, Ae = o[c]) : o[c] >= R ? ($ = Q[o[c] - R], Ae = K[o[c] - R]) : ($ = 32 + 64, Ae = 0), k = 1 << l - m, E = 1 << f, u = E;
|
|
57267
57267
|
do
|
|
57268
|
-
E -= k, s[
|
|
57268
|
+
E -= k, s[W + (B >> m) + E] = X << 24 | $ << 16 | Ae | 0;
|
|
57269
57269
|
while (E !== 0);
|
|
57270
57270
|
for (k = 1 << l - 1; B & k; )
|
|
57271
57271
|
k >>= 1;
|
|
@@ -57275,14 +57275,14 @@ const tA = 15, WC = 852, YC = 592, JC = 0, yb = 1, XC = 2, g$ = new Uint16Array(
|
|
|
57275
57275
|
l = e[n + o[c]];
|
|
57276
57276
|
}
|
|
57277
57277
|
if (l > p && (B & D) !== q) {
|
|
57278
|
-
for (m === 0 && (m = p),
|
|
57278
|
+
for (m === 0 && (m = p), W += u, f = l - m, w = 1 << f; f + m < h && (w -= ne[f + m], !(w <= 0)); )
|
|
57279
57279
|
f++, w <<= 1;
|
|
57280
57280
|
if (v += 1 << f, t === yb && v > WC || t === XC && v > YC)
|
|
57281
57281
|
return 1;
|
|
57282
|
-
q = B & D, s[q] = p << 24 | f << 16 |
|
|
57282
|
+
q = B & D, s[q] = p << 24 | f << 16 | W - i | 0;
|
|
57283
57283
|
}
|
|
57284
57284
|
}
|
|
57285
|
-
return B !== 0 && (s[
|
|
57285
|
+
return B !== 0 && (s[W + B] = l - m << 24 | 64 << 16 | 0), a.bits = p, 0;
|
|
57286
57286
|
};
|
|
57287
57287
|
var qp = b$;
|
|
57288
57288
|
const v$ = 0, b8 = 1, v8 = 2, {
|
|
@@ -57353,7 +57353,7 @@ const U$ = (t) => {
|
|
|
57353
57353
|
const i = t.state;
|
|
57354
57354
|
return i.window === null && (i.wsize = 1 << i.wbits, i.wnext = 0, i.whave = 0, i.window = new Uint8Array(i.wsize)), r >= i.wsize ? (i.window.set(e.subarray(n - i.wsize, n), 0), i.wnext = 0, i.whave = i.wsize) : (s = i.wsize - i.wnext, s > r && (s = r), i.window.set(e.subarray(n - r, n - r + s), i.wnext), r -= s, r ? (i.window.set(e.subarray(n - r, n), 0), i.wnext = r, i.whave = i.wsize) : (i.wnext += s, i.wnext === i.wsize && (i.wnext = 0), i.whave < i.wsize && (i.whave += s))), 0;
|
|
57355
57355
|
}, j$ = (t, e) => {
|
|
57356
|
-
let n, r, s, i, o, a, d, l, c, u, h, p, f, m, w = 0, v, B, k, E, q, D,
|
|
57356
|
+
let n, r, s, i, o, a, d, l, c, u, h, p, f, m, w = 0, v, B, k, E, q, D, W, K;
|
|
57357
57357
|
const R = new Uint8Array(4);
|
|
57358
57358
|
let ne, U;
|
|
57359
57359
|
const Q = (
|
|
@@ -57362,7 +57362,7 @@ const U$ = (t) => {
|
|
|
57362
57362
|
);
|
|
57363
57363
|
if (bc(t) || !t.output || !t.input && t.avail_in !== 0)
|
|
57364
57364
|
return Ci;
|
|
57365
|
-
n = t.state, n.mode === ua && (n.mode = bb), o = t.next_out, s = t.output, d = t.avail_out, i = t.next_in, r = t.input, a = t.avail_in, l = n.hold, c = n.bits, u = a, h = d,
|
|
57365
|
+
n = t.state, n.mode === ua && (n.mode = bb), o = t.next_out, s = t.output, d = t.avail_out, i = t.next_in, r = t.input, a = t.avail_in, l = n.hold, c = n.bits, u = a, h = d, K = Ac;
|
|
57366
57366
|
e:
|
|
57367
57367
|
for (; ; )
|
|
57368
57368
|
switch (n.mode) {
|
|
@@ -57389,7 +57389,7 @@ const U$ = (t) => {
|
|
|
57389
57389
|
t.msg = "unknown compression method", n.mode = En;
|
|
57390
57390
|
break;
|
|
57391
57391
|
}
|
|
57392
|
-
if (l >>>= 4, c -= 4,
|
|
57392
|
+
if (l >>>= 4, c -= 4, W = (l & 15) + 8, n.wbits === 0 && (n.wbits = W), W > 15 || W > n.wbits) {
|
|
57393
57393
|
t.msg = "invalid window size", n.mode = En;
|
|
57394
57394
|
break;
|
|
57395
57395
|
}
|
|
@@ -57436,7 +57436,7 @@ const U$ = (t) => {
|
|
|
57436
57436
|
n.head && (n.head.extra = null);
|
|
57437
57437
|
n.mode = sB;
|
|
57438
57438
|
case sB:
|
|
57439
|
-
if (n.flags & 1024 && (p = n.length, p > a && (p = a), p && (n.head && (
|
|
57439
|
+
if (n.flags & 1024 && (p = n.length, p > a && (p = a), p && (n.head && (W = n.head.extra_len - n.length, n.head.extra || (n.head.extra = new Uint8Array(n.head.extra_len)), n.head.extra.set(
|
|
57440
57440
|
r.subarray(
|
|
57441
57441
|
i,
|
|
57442
57442
|
// extra field is limited to 65536 bytes
|
|
@@ -57444,7 +57444,7 @@ const U$ = (t) => {
|
|
|
57444
57444
|
i + p
|
|
57445
57445
|
),
|
|
57446
57446
|
/*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/
|
|
57447
|
-
|
|
57447
|
+
W
|
|
57448
57448
|
)), n.flags & 512 && n.wrap & 4 && (n.check = _r(n.check, r, p, i)), a -= p, i += p, n.length -= p), n.length))
|
|
57449
57449
|
break e;
|
|
57450
57450
|
n.length = 0, n.mode = iB;
|
|
@@ -57454,9 +57454,9 @@ const U$ = (t) => {
|
|
|
57454
57454
|
break e;
|
|
57455
57455
|
p = 0;
|
|
57456
57456
|
do
|
|
57457
|
-
|
|
57458
|
-
while (
|
|
57459
|
-
if (n.flags & 512 && n.wrap & 4 && (n.check = _r(n.check, r, p, i)), a -= p, i += p,
|
|
57457
|
+
W = r[i + p++], n.head && W && n.length < 65536 && (n.head.name += String.fromCharCode(W));
|
|
57458
|
+
while (W && p < a);
|
|
57459
|
+
if (n.flags & 512 && n.wrap & 4 && (n.check = _r(n.check, r, p, i)), a -= p, i += p, W)
|
|
57460
57460
|
break e;
|
|
57461
57461
|
} else
|
|
57462
57462
|
n.head && (n.head.name = null);
|
|
@@ -57467,9 +57467,9 @@ const U$ = (t) => {
|
|
|
57467
57467
|
break e;
|
|
57468
57468
|
p = 0;
|
|
57469
57469
|
do
|
|
57470
|
-
|
|
57471
|
-
while (
|
|
57472
|
-
if (n.flags & 512 && n.wrap & 4 && (n.check = _r(n.check, r, p, i)), a -= p, i += p,
|
|
57470
|
+
W = r[i + p++], n.head && W && n.length < 65536 && (n.head.comment += String.fromCharCode(W));
|
|
57471
|
+
while (W && p < a);
|
|
57472
|
+
if (n.flags & 512 && n.wrap & 4 && (n.check = _r(n.check, r, p, i)), a -= p, i += p, W)
|
|
57473
57473
|
break e;
|
|
57474
57474
|
} else
|
|
57475
57475
|
n.head && (n.head.comment = null);
|
|
@@ -57576,7 +57576,7 @@ const U$ = (t) => {
|
|
|
57576
57576
|
}
|
|
57577
57577
|
for (; n.have < 19; )
|
|
57578
57578
|
n.lens[Q[n.have++]] = 0;
|
|
57579
|
-
if (n.lencode = n.lendyn, n.lenbits = 7, ne = { bits: n.lenbits },
|
|
57579
|
+
if (n.lencode = n.lendyn, n.lenbits = 7, ne = { bits: n.lenbits }, K = qp(v$, n.lens, 0, 19, n.lencode, 0, n.work, ne), n.lenbits = ne.bits, K) {
|
|
57580
57580
|
t.msg = "invalid code lengths set", n.mode = En;
|
|
57581
57581
|
break;
|
|
57582
57582
|
}
|
|
@@ -57601,28 +57601,28 @@ const U$ = (t) => {
|
|
|
57601
57601
|
t.msg = "invalid bit length repeat", n.mode = En;
|
|
57602
57602
|
break;
|
|
57603
57603
|
}
|
|
57604
|
-
|
|
57604
|
+
W = n.lens[n.have - 1], p = 3 + (l & 3), l >>>= 2, c -= 2;
|
|
57605
57605
|
} else if (k === 17) {
|
|
57606
57606
|
for (U = v + 3; c < U; ) {
|
|
57607
57607
|
if (a === 0)
|
|
57608
57608
|
break e;
|
|
57609
57609
|
a--, l += r[i++] << c, c += 8;
|
|
57610
57610
|
}
|
|
57611
|
-
l >>>= v, c -= v,
|
|
57611
|
+
l >>>= v, c -= v, W = 0, p = 3 + (l & 7), l >>>= 3, c -= 3;
|
|
57612
57612
|
} else {
|
|
57613
57613
|
for (U = v + 7; c < U; ) {
|
|
57614
57614
|
if (a === 0)
|
|
57615
57615
|
break e;
|
|
57616
57616
|
a--, l += r[i++] << c, c += 8;
|
|
57617
57617
|
}
|
|
57618
|
-
l >>>= v, c -= v,
|
|
57618
|
+
l >>>= v, c -= v, W = 0, p = 11 + (l & 127), l >>>= 7, c -= 7;
|
|
57619
57619
|
}
|
|
57620
57620
|
if (n.have + p > n.nlen + n.ndist) {
|
|
57621
57621
|
t.msg = "invalid bit length repeat", n.mode = En;
|
|
57622
57622
|
break;
|
|
57623
57623
|
}
|
|
57624
57624
|
for (; p--; )
|
|
57625
|
-
n.lens[n.have++] =
|
|
57625
|
+
n.lens[n.have++] = W;
|
|
57626
57626
|
}
|
|
57627
57627
|
}
|
|
57628
57628
|
if (n.mode === En)
|
|
@@ -57631,11 +57631,11 @@ const U$ = (t) => {
|
|
|
57631
57631
|
t.msg = "invalid code -- missing end-of-block", n.mode = En;
|
|
57632
57632
|
break;
|
|
57633
57633
|
}
|
|
57634
|
-
if (n.lenbits = 9, ne = { bits: n.lenbits },
|
|
57634
|
+
if (n.lenbits = 9, ne = { bits: n.lenbits }, K = qp(b8, n.lens, 0, n.nlen, n.lencode, 0, n.work, ne), n.lenbits = ne.bits, K) {
|
|
57635
57635
|
t.msg = "invalid literal/lengths set", n.mode = En;
|
|
57636
57636
|
break;
|
|
57637
57637
|
}
|
|
57638
|
-
if (n.distbits = 6, n.distcode = n.distdyn, ne = { bits: n.distbits },
|
|
57638
|
+
if (n.distbits = 6, n.distcode = n.distdyn, ne = { bits: n.distbits }, K = qp(v8, n.lens, n.nlen, n.ndist, n.distcode, 0, n.work, ne), n.distbits = ne.bits, K) {
|
|
57639
57639
|
t.msg = "invalid distances set", n.mode = En;
|
|
57640
57640
|
break;
|
|
57641
57641
|
}
|
|
@@ -57769,10 +57769,10 @@ const U$ = (t) => {
|
|
|
57769
57769
|
}
|
|
57770
57770
|
n.mode = vB;
|
|
57771
57771
|
case vB:
|
|
57772
|
-
|
|
57772
|
+
K = _$;
|
|
57773
57773
|
break e;
|
|
57774
57774
|
case En:
|
|
57775
|
-
|
|
57775
|
+
K = w8;
|
|
57776
57776
|
break e;
|
|
57777
57777
|
case x8:
|
|
57778
57778
|
return _8;
|
|
@@ -57781,7 +57781,7 @@ const U$ = (t) => {
|
|
|
57781
57781
|
return Ci;
|
|
57782
57782
|
}
|
|
57783
57783
|
return t.next_out = o, t.avail_out = d, t.next_in = i, t.avail_in = a, n.hold = l, n.bits = c, (n.wsize || h !== t.avail_out && n.mode < En && (n.mode < wb || e !== ZC)) && I8(t, t.output, t.next_out, h - t.avail_out), u -= t.avail_in, h -= t.avail_out, t.total_in += u, t.total_out += h, n.total += h, n.wrap & 4 && h && (t.adler = n.check = /*UPDATE_CHECK(state.check, strm.next_out - _out, _out);*/
|
|
57784
|
-
n.flags ? _r(n.check, s, h, t.next_out - h) : hh(n.check, s, h, t.next_out - h)), t.data_type = n.bits + (n.last ? 64 : 0) + (n.mode === ua ? 128 : 0) + (n.mode === xf || n.mode === vb ? 256 : 0), (u === 0 && h === 0 || e === ZC) &&
|
|
57784
|
+
n.flags ? _r(n.check, s, h, t.next_out - h) : hh(n.check, s, h, t.next_out - h)), t.data_type = n.bits + (n.last ? 64 : 0) + (n.mode === ua ? 128 : 0) + (n.mode === xf || n.mode === vb ? 256 : 0), (u === 0 && h === 0 || e === ZC) && K === Ac && (K = C$), K;
|
|
57785
57785
|
}, F$ = (t) => {
|
|
57786
57786
|
if (bc(t))
|
|
57787
57787
|
return Ci;
|
|
@@ -58021,8 +58021,8 @@ function gee(t) {
|
|
|
58021
58021
|
for (let E = 0; E < h; E++) {
|
|
58022
58022
|
const q = u.x + E * u.xStep, D = u.y + w * u.yStep;
|
|
58023
58023
|
if (!(q >= n || D >= r))
|
|
58024
|
-
for (let
|
|
58025
|
-
d[(D * n + q) * a +
|
|
58024
|
+
for (let W = 0; W < a; W++)
|
|
58025
|
+
d[(D * n + q) * a + W] = k[E * a + W];
|
|
58026
58026
|
}
|
|
58027
58027
|
}
|
|
58028
58028
|
}
|
|
@@ -58862,7 +58862,7 @@ function pt(t) {
|
|
|
58862
58862
|
function D() {
|
|
58863
58863
|
this.restoreGraphicsState(), l = "S", E = B;
|
|
58864
58864
|
}
|
|
58865
|
-
var
|
|
58865
|
+
var W = p.__private__.combineFontStyleAndFontWeight = function(y, I) {
|
|
58866
58866
|
if (y == "bold" && I == "normal" || y == "bold" && I == 400 || y == "normal" && I == "italic" || y == "bold" && I == "italic")
|
|
58867
58867
|
throw new Error("Invalid Combination of fontweight and fontstyle");
|
|
58868
58868
|
return I && (y = I == 400 || I === "normal" ? y === "italic" ? "italic" : "normal" : I != 700 && I !== "bold" || y !== "normal" ? (I == 700 ? "bold" : I) + "" + y : "bold"), y;
|
|
@@ -58876,16 +58876,16 @@ function pt(t) {
|
|
|
58876
58876
|
}, p.isAdvancedAPI = function() {
|
|
58877
58877
|
return E === k;
|
|
58878
58878
|
};
|
|
58879
|
-
var
|
|
58879
|
+
var K, R = function(y) {
|
|
58880
58880
|
if (E !== k)
|
|
58881
58881
|
throw new Error(y + " is only available in 'advanced' API mode. You need to call advancedAPI() first.");
|
|
58882
58882
|
}, ne = p.roundToPrecision = p.__private__.roundToPrecision = function(y, I) {
|
|
58883
|
-
var
|
|
58884
|
-
if (isNaN(y) || isNaN(
|
|
58883
|
+
var J = e || I;
|
|
58884
|
+
if (isNaN(y) || isNaN(J))
|
|
58885
58885
|
throw new Error("Invalid argument passed to jsPDF.roundToPrecision");
|
|
58886
|
-
return y.toFixed(
|
|
58886
|
+
return y.toFixed(J).replace(/0+$/, "");
|
|
58887
58887
|
};
|
|
58888
|
-
|
|
58888
|
+
K = p.hpf = p.__private__.hpf = typeof d == "number" ? function(y) {
|
|
58889
58889
|
if (isNaN(y))
|
|
58890
58890
|
throw new Error("Invalid argument passed to jsPDF.hpf");
|
|
58891
58891
|
return ne(y, d);
|
|
@@ -58931,11 +58931,11 @@ function pt(t) {
|
|
|
58931
58931
|
return ve();
|
|
58932
58932
|
};
|
|
58933
58933
|
var Ce = p.__private__.convertDateToPDFDate = function(y) {
|
|
58934
|
-
var I = y.getTimezoneOffset(),
|
|
58935
|
-
return ["D:", y.getFullYear(),
|
|
58934
|
+
var I = y.getTimezoneOffset(), J = I < 0 ? "+" : "-", te = Math.floor(Math.abs(I / 60)), ce = Math.abs(I % 60), je = [J, Y(te), "'", Y(ce), "'"].join("");
|
|
58935
|
+
return ["D:", y.getFullYear(), Y(y.getMonth() + 1), Y(y.getDate()), Y(y.getHours()), Y(y.getMinutes()), Y(y.getSeconds()), je].join("");
|
|
58936
58936
|
}, fe = p.__private__.convertPDFDateToDate = function(y) {
|
|
58937
|
-
var I = parseInt(y.substr(2, 4), 10),
|
|
58938
|
-
return new Date(I,
|
|
58937
|
+
var I = parseInt(y.substr(2, 4), 10), J = parseInt(y.substr(6, 2), 10) - 1, te = parseInt(y.substr(8, 2), 10), ce = parseInt(y.substr(10, 2), 10), je = parseInt(y.substr(12, 2), 10), Le = parseInt(y.substr(14, 2), 10);
|
|
58938
|
+
return new Date(I, J, te, ce, je, Le, 0);
|
|
58939
58939
|
}, de = p.__private__.setCreationDate = function(y) {
|
|
58940
58940
|
var I;
|
|
58941
58941
|
if (y === void 0 && (y = /* @__PURE__ */ new Date()), y instanceof Date)
|
|
@@ -58955,7 +58955,7 @@ function pt(t) {
|
|
|
58955
58955
|
}, p.getCreationDate = function(y) {
|
|
58956
58956
|
return T(y);
|
|
58957
58957
|
};
|
|
58958
|
-
var z,
|
|
58958
|
+
var z, Y = p.__private__.padd2 = function(y) {
|
|
58959
58959
|
return ("0" + parseInt(y)).slice(-2);
|
|
58960
58960
|
}, ee = p.__private__.padd2Hex = function(y) {
|
|
58961
58961
|
return ("00" + (y = y.toString())).substr(y.length);
|
|
@@ -58974,9 +58974,9 @@ function pt(t) {
|
|
|
58974
58974
|
}, xt = p.__private__.write = function(y) {
|
|
58975
58975
|
return Z(arguments.length === 1 ? y.toString() : Array.prototype.join.call(arguments, " "));
|
|
58976
58976
|
}, Et = p.__private__.getArrayBuffer = function(y) {
|
|
58977
|
-
for (var I = y.length,
|
|
58977
|
+
for (var I = y.length, J = new ArrayBuffer(I), te = new Uint8Array(J); I--; )
|
|
58978
58978
|
te[I] = y.charCodeAt(I);
|
|
58979
|
-
return
|
|
58979
|
+
return J;
|
|
58980
58980
|
}, O = [["Helvetica", "helvetica", "normal", "WinAnsiEncoding"], ["Helvetica-Bold", "helvetica", "bold", "WinAnsiEncoding"], ["Helvetica-Oblique", "helvetica", "italic", "WinAnsiEncoding"], ["Helvetica-BoldOblique", "helvetica", "bolditalic", "WinAnsiEncoding"], ["Courier", "courier", "normal", "WinAnsiEncoding"], ["Courier-Bold", "courier", "bold", "WinAnsiEncoding"], ["Courier-Oblique", "courier", "italic", "WinAnsiEncoding"], ["Courier-BoldOblique", "courier", "bolditalic", "WinAnsiEncoding"], ["Times-Roman", "times", "normal", "WinAnsiEncoding"], ["Times-Bold", "times", "bold", "WinAnsiEncoding"], ["Times-Italic", "times", "italic", "WinAnsiEncoding"], ["Times-BoldItalic", "times", "bolditalic", "WinAnsiEncoding"], ["ZapfDingbats", "zapfdingbats", "normal", null], ["Symbol", "symbol", "normal", null]];
|
|
58981
58981
|
p.__private__.getStandardFonts = function() {
|
|
58982
58982
|
return O;
|
|
@@ -59021,8 +59021,8 @@ function pt(t) {
|
|
|
59021
59021
|
};
|
|
59022
59022
|
p.__private__.getLayoutMode = function() {
|
|
59023
59023
|
return Ge;
|
|
59024
|
-
}, p.__private__.setDisplayMode = p.setDisplayMode = function(y, I,
|
|
59025
|
-
return ke(y), ht(I), Je(
|
|
59024
|
+
}, p.__private__.setDisplayMode = p.setDisplayMode = function(y, I, J) {
|
|
59025
|
+
return ke(y), ht(I), Je(J), this;
|
|
59026
59026
|
};
|
|
59027
59027
|
var lt = { title: "", subject: "", author: "", keywords: "", creator: "" };
|
|
59028
59028
|
p.__private__.getDocumentProperty = function(y) {
|
|
@@ -59040,10 +59040,10 @@ function pt(t) {
|
|
|
59040
59040
|
throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");
|
|
59041
59041
|
return lt[y] = I;
|
|
59042
59042
|
};
|
|
59043
|
-
var Ke, gt, ct, tn, Yt, At = {}, St = {}, cn = [], mt = {}, Mt = {}, It = {}, On = {}, cr = null, An = 0, Ct = [], $t = new RB(p), Zl = t.hotfixes || [], zr = {}, Go = {}, ao = [], yt = function y(I,
|
|
59043
|
+
var Ke, gt, ct, tn, Yt, At = {}, St = {}, cn = [], mt = {}, Mt = {}, It = {}, On = {}, cr = null, An = 0, Ct = [], $t = new RB(p), Zl = t.hotfixes || [], zr = {}, Go = {}, ao = [], yt = function y(I, J, te, ce, je, Le) {
|
|
59044
59044
|
if (!(this instanceof y))
|
|
59045
|
-
return new y(I,
|
|
59046
|
-
isNaN(I) && (I = 1), isNaN(
|
|
59045
|
+
return new y(I, J, te, ce, je, Le);
|
|
59046
|
+
isNaN(I) && (I = 1), isNaN(J) && (J = 0), isNaN(te) && (te = 0), isNaN(ce) && (ce = 1), isNaN(je) && (je = 0), isNaN(Le) && (Le = 0), this._matrix = [I, J, te, ce, je, Le];
|
|
59047
59047
|
};
|
|
59048
59048
|
Object.defineProperty(yt.prototype, "sx", { get: function() {
|
|
59049
59049
|
return this._matrix[0];
|
|
@@ -59102,29 +59102,29 @@ function pt(t) {
|
|
|
59102
59102
|
} }), Object.defineProperty(yt.prototype, "isIdentity", { get: function() {
|
|
59103
59103
|
return this.sx === 1 && this.shy === 0 && this.shx === 0 && this.sy === 1 && this.tx === 0 && this.ty === 0;
|
|
59104
59104
|
} }), yt.prototype.join = function(y) {
|
|
59105
|
-
return [this.sx, this.shy, this.shx, this.sy, this.tx, this.ty].map(
|
|
59105
|
+
return [this.sx, this.shy, this.shx, this.sy, this.tx, this.ty].map(K).join(y);
|
|
59106
59106
|
}, yt.prototype.multiply = function(y) {
|
|
59107
|
-
var I = y.sx * this.sx + y.shy * this.shx,
|
|
59108
|
-
return new yt(I,
|
|
59107
|
+
var I = y.sx * this.sx + y.shy * this.shx, J = y.sx * this.shy + y.shy * this.sy, te = y.shx * this.sx + y.sy * this.shx, ce = y.shx * this.shy + y.sy * this.sy, je = y.tx * this.sx + y.ty * this.shx + this.tx, Le = y.tx * this.shy + y.ty * this.sy + this.ty;
|
|
59108
|
+
return new yt(I, J, te, ce, je, Le);
|
|
59109
59109
|
}, yt.prototype.decompose = function() {
|
|
59110
|
-
var y = this.sx, I = this.shy,
|
|
59111
|
-
|
|
59112
|
-
var dt = Math.sqrt(
|
|
59113
|
-
return rt /= dt, y * (te /= dt) < I * (
|
|
59110
|
+
var y = this.sx, I = this.shy, J = this.shx, te = this.sy, ce = this.tx, je = this.ty, Le = Math.sqrt(y * y + I * I), rt = (y /= Le) * J + (I /= Le) * te;
|
|
59111
|
+
J -= y * rt, te -= I * rt;
|
|
59112
|
+
var dt = Math.sqrt(J * J + te * te);
|
|
59113
|
+
return rt /= dt, y * (te /= dt) < I * (J /= dt) && (y = -y, I = -I, rt = -rt, Le = -Le), { scale: new yt(Le, 0, 0, dt, 0, 0), translate: new yt(1, 0, 0, 1, ce, je), rotate: new yt(y, I, -I, y, 0, 0), skew: new yt(1, 0, rt, 1, 0, 0) };
|
|
59114
59114
|
}, yt.prototype.toString = function(y) {
|
|
59115
59115
|
return this.join(" ");
|
|
59116
59116
|
}, yt.prototype.inversed = function() {
|
|
59117
|
-
var y = this.sx, I = this.shy,
|
|
59117
|
+
var y = this.sx, I = this.shy, J = this.shx, te = this.sy, ce = this.tx, je = this.ty, Le = 1 / (y * te - I * J), rt = te * Le, dt = -I * Le, bt = -J * Le, Ut = y * Le;
|
|
59118
59118
|
return new yt(rt, dt, bt, Ut, -rt * ce - bt * je, -dt * ce - Ut * je);
|
|
59119
59119
|
}, yt.prototype.applyToPoint = function(y) {
|
|
59120
|
-
var I = y.x * this.sx + y.y * this.shx + this.tx,
|
|
59121
|
-
return new ld(I,
|
|
59120
|
+
var I = y.x * this.sx + y.y * this.shx + this.tx, J = y.x * this.shy + y.y * this.sy + this.ty;
|
|
59121
|
+
return new ld(I, J);
|
|
59122
59122
|
}, yt.prototype.applyToRectangle = function(y) {
|
|
59123
|
-
var I = this.applyToPoint(y),
|
|
59124
|
-
return new Uu(I.x, I.y,
|
|
59123
|
+
var I = this.applyToPoint(y), J = this.applyToPoint(new ld(y.x + y.w, y.y + y.h));
|
|
59124
|
+
return new Uu(I.x, I.y, J.x - I.x, J.y - I.y);
|
|
59125
59125
|
}, yt.prototype.clone = function() {
|
|
59126
|
-
var y = this.sx, I = this.shy,
|
|
59127
|
-
return new yt(y, I,
|
|
59126
|
+
var y = this.sx, I = this.shy, J = this.shx, te = this.sy, ce = this.tx, je = this.ty;
|
|
59127
|
+
return new yt(y, I, J, te, ce, je);
|
|
59128
59128
|
}, p.Matrix = yt;
|
|
59129
59129
|
var Wo = p.matrixMult = function(y, I) {
|
|
59130
59130
|
return I.multiply(y);
|
|
@@ -59132,8 +59132,8 @@ function pt(t) {
|
|
|
59132
59132
|
p.unitMatrix = p.identityMatrix = Yo;
|
|
59133
59133
|
var ei = function(y, I) {
|
|
59134
59134
|
if (!Mt[y]) {
|
|
59135
|
-
var
|
|
59136
|
-
I.id =
|
|
59135
|
+
var J = (I instanceof Fd ? "Sh" : "P") + (Object.keys(mt).length + 1).toString(10);
|
|
59136
|
+
I.id = J, Mt[y] = J, mt[J] = I, $t.publish("addPattern", I);
|
|
59137
59137
|
}
|
|
59138
59138
|
};
|
|
59139
59139
|
p.ShadingPattern = Fd, p.TilingPattern = fA, p.addShadingPattern = function(y, I) {
|
|
@@ -59161,8 +59161,8 @@ function pt(t) {
|
|
|
59161
59161
|
if (I.length !== 2 || I[1] !== "g" && I[1] !== "G")
|
|
59162
59162
|
I.length !== 5 || I[4] !== "k" && I[4] !== "K" || (I = [(1 - I[0]) * (1 - I[3]), (1 - I[1]) * (1 - I[3]), (1 - I[2]) * (1 - I[3]), "r"]);
|
|
59163
59163
|
else {
|
|
59164
|
-
var
|
|
59165
|
-
I = [
|
|
59164
|
+
var J = parseFloat(I[0]);
|
|
59165
|
+
I = [J, J, J, "r"];
|
|
59166
59166
|
}
|
|
59167
59167
|
for (var te = "#", ce = 0; ce < 3; ce++)
|
|
59168
59168
|
te += ("0" + Math.floor(255 * parseFloat(I[ce])).toString(16)).slice(-2);
|
|
@@ -59170,39 +59170,39 @@ function pt(t) {
|
|
|
59170
59170
|
}, Ii = p.__private__.encodeColorString = function(y) {
|
|
59171
59171
|
var I;
|
|
59172
59172
|
typeof y == "string" && (y = { ch1: y });
|
|
59173
|
-
var
|
|
59174
|
-
if (typeof
|
|
59175
|
-
var rt = new L8(
|
|
59173
|
+
var J = y.ch1, te = y.ch2, ce = y.ch3, je = y.ch4, Le = y.pdfColorType === "draw" ? ["G", "RG", "K"] : ["g", "rg", "k"];
|
|
59174
|
+
if (typeof J == "string" && J.charAt(0) !== "#") {
|
|
59175
|
+
var rt = new L8(J);
|
|
59176
59176
|
if (rt.ok)
|
|
59177
|
-
|
|
59178
|
-
else if (!/^\d*\.?\d*$/.test(
|
|
59179
|
-
throw new Error('Invalid color "' +
|
|
59177
|
+
J = rt.toHex();
|
|
59178
|
+
else if (!/^\d*\.?\d*$/.test(J))
|
|
59179
|
+
throw new Error('Invalid color "' + J + '" passed to jsPDF.encodeColorString.');
|
|
59180
59180
|
}
|
|
59181
|
-
if (typeof
|
|
59182
|
-
var dt = parseInt(
|
|
59183
|
-
|
|
59181
|
+
if (typeof J == "string" && /^#[0-9A-Fa-f]{3}$/.test(J) && (J = "#" + J[1] + J[1] + J[2] + J[2] + J[3] + J[3]), typeof J == "string" && /^#[0-9A-Fa-f]{6}$/.test(J)) {
|
|
59182
|
+
var dt = parseInt(J.substr(1), 16);
|
|
59183
|
+
J = dt >> 16 & 255, te = dt >> 8 & 255, ce = 255 & dt;
|
|
59184
59184
|
}
|
|
59185
|
-
if (te === void 0 || je === void 0 &&
|
|
59186
|
-
I = typeof
|
|
59185
|
+
if (te === void 0 || je === void 0 && J === te && te === ce)
|
|
59186
|
+
I = typeof J == "string" ? J + " " + Le[0] : y.precision === 2 ? U(J / 255) + " " + Le[0] : Q(J / 255) + " " + Le[0];
|
|
59187
59187
|
else if (je === void 0 || on(je) === "object") {
|
|
59188
59188
|
if (je && !isNaN(je.a) && je.a === 0)
|
|
59189
59189
|
return ["1.", "1.", "1.", Le[1]].join(" ");
|
|
59190
|
-
I = typeof
|
|
59190
|
+
I = typeof J == "string" ? [J, te, ce, Le[1]].join(" ") : y.precision === 2 ? [U(J / 255), U(te / 255), U(ce / 255), Le[1]].join(" ") : [Q(J / 255), Q(te / 255), Q(ce / 255), Le[1]].join(" ");
|
|
59191
59191
|
} else
|
|
59192
|
-
I = typeof
|
|
59192
|
+
I = typeof J == "string" ? [J, te, ce, je, Le[2]].join(" ") : y.precision === 2 ? [U(J), U(te), U(ce), U(je), Le[2]].join(" ") : [Q(J), Q(te), Q(ce), Q(je), Le[2]].join(" ");
|
|
59193
59193
|
return I;
|
|
59194
59194
|
}, Ti = p.__private__.getFilters = function() {
|
|
59195
59195
|
return o;
|
|
59196
59196
|
}, ni = p.__private__.putStream = function(y) {
|
|
59197
|
-
var I = (y = y || {}).data || "",
|
|
59197
|
+
var I = (y = y || {}).data || "", J = y.filters || Ti(), te = y.alreadyAppliedFilters || [], ce = y.addLength1 || !1, je = I.length, Le = y.objectId, rt = function(Ar) {
|
|
59198
59198
|
return Ar;
|
|
59199
59199
|
};
|
|
59200
59200
|
if (c !== null && Le === void 0)
|
|
59201
59201
|
throw new Error("ObjectId must be passed to putStream for file encryption");
|
|
59202
59202
|
c !== null && (rt = Ln.encryptor(Le, 0));
|
|
59203
59203
|
var dt = {};
|
|
59204
|
-
|
|
59205
|
-
var bt = y.additionalKeyValues || [], Ut = (dt = pt.API.processDataByFilters !== void 0 ? pt.API.processDataByFilters(I,
|
|
59204
|
+
J === !0 && (J = ["FlateEncode"]);
|
|
59205
|
+
var bt = y.additionalKeyValues || [], Ut = (dt = pt.API.processDataByFilters !== void 0 ? pt.API.processDataByFilters(I, J) : { data: I, reverseChain: [] }).reverseChain + (Array.isArray(te) ? te.join(" ") : te.toString());
|
|
59206
59206
|
if (dt.data.length !== 0 && (bt.push({ key: "Length", value: dt.data.length }), ce === !0 && bt.push({ key: "Length1", value: je })), Ut.length != 0)
|
|
59207
59207
|
if (Ut.split("/").length - 1 == 1)
|
|
59208
59208
|
bt.push({ key: "Filter", value: Ut });
|
|
@@ -59220,35 +59220,35 @@ function pt(t) {
|
|
|
59220
59220
|
Z("/" + bt[ln].key + " " + bt[ln].value);
|
|
59221
59221
|
Z(">>"), dt.data.length !== 0 && (Z("stream"), Z(rt(dt.data)), Z("endstream"));
|
|
59222
59222
|
}, ed = p.__private__.putPage = function(y) {
|
|
59223
|
-
var I = y.number,
|
|
59224
|
-
Er(te, !0), Z("<</Type /Page"), Z("/Parent " + y.rootDictionaryObjId + " 0 R"), Z("/Resources " + y.resourceDictionaryObjId + " 0 R"), Z("/MediaBox [" + parseFloat(
|
|
59225
|
-
var je =
|
|
59223
|
+
var I = y.number, J = y.data, te = y.objId, ce = y.contentsObjId;
|
|
59224
|
+
Er(te, !0), Z("<</Type /Page"), Z("/Parent " + y.rootDictionaryObjId + " 0 R"), Z("/Resources " + y.resourceDictionaryObjId + " 0 R"), Z("/MediaBox [" + parseFloat(K(y.mediaBox.bottomLeftX)) + " " + parseFloat(K(y.mediaBox.bottomLeftY)) + " " + K(y.mediaBox.topRightX) + " " + K(y.mediaBox.topRightY) + "]"), y.cropBox !== null && Z("/CropBox [" + K(y.cropBox.bottomLeftX) + " " + K(y.cropBox.bottomLeftY) + " " + K(y.cropBox.topRightX) + " " + K(y.cropBox.topRightY) + "]"), y.bleedBox !== null && Z("/BleedBox [" + K(y.bleedBox.bottomLeftX) + " " + K(y.bleedBox.bottomLeftY) + " " + K(y.bleedBox.topRightX) + " " + K(y.bleedBox.topRightY) + "]"), y.trimBox !== null && Z("/TrimBox [" + K(y.trimBox.bottomLeftX) + " " + K(y.trimBox.bottomLeftY) + " " + K(y.trimBox.topRightX) + " " + K(y.trimBox.topRightY) + "]"), y.artBox !== null && Z("/ArtBox [" + K(y.artBox.bottomLeftX) + " " + K(y.artBox.bottomLeftY) + " " + K(y.artBox.topRightX) + " " + K(y.artBox.topRightY) + "]"), typeof y.userUnit == "number" && y.userUnit !== 1 && Z("/UserUnit " + y.userUnit), $t.publish("putPage", { objId: te, pageContext: Ct[I], pageNumber: I, page: J }), Z("/Contents " + ce + " 0 R"), Z(">>"), Z("endobj");
|
|
59225
|
+
var je = J.join(`
|
|
59226
59226
|
`);
|
|
59227
59227
|
return E === k && (je += `
|
|
59228
59228
|
Q`), Er(ce, !0), ni({ data: je, filters: Ti(), objectId: ce }), Z("endobj"), te;
|
|
59229
59229
|
}, co = p.__private__.putPages = function() {
|
|
59230
|
-
var y, I,
|
|
59230
|
+
var y, I, J = [];
|
|
59231
59231
|
for (y = 1; y <= An; y++)
|
|
59232
59232
|
Ct[y].objId = yr(), Ct[y].contentsObjId = yr();
|
|
59233
59233
|
for (y = 1; y <= An; y++)
|
|
59234
|
-
|
|
59234
|
+
J.push(ed({ number: y, data: Ne[y], objId: Ct[y].objId, contentsObjId: Ct[y].contentsObjId, mediaBox: Ct[y].mediaBox, cropBox: Ct[y].cropBox, bleedBox: Ct[y].bleedBox, trimBox: Ct[y].trimBox, artBox: Ct[y].artBox, userUnit: Ct[y].userUnit, rootDictionaryObjId: La, resourceDictionaryObjId: Si }));
|
|
59235
59235
|
Er(La, !0), Z("<</Type /Pages");
|
|
59236
59236
|
var te = "/Kids [";
|
|
59237
59237
|
for (I = 0; I < An; I++)
|
|
59238
|
-
te +=
|
|
59238
|
+
te += J[I] + " 0 R ";
|
|
59239
59239
|
Z(te + "]"), Z("/Count " + An), Z(">>"), Z("endobj"), $t.publish("postPutPages");
|
|
59240
59240
|
}, td = function(y) {
|
|
59241
59241
|
$t.publish("putFont", { font: y, out: Z, newObject: Tn, putStream: ni }), y.isAlreadyPutted !== !0 && (y.objectNumber = Tn(), Z("<<"), Z("/Type /Font"), Z("/BaseFont /" + uA(y.postScriptName)), Z("/Subtype /Type1"), typeof y.encoding == "string" && Z("/Encoding /" + y.encoding), Z("/FirstChar 32"), Z("/LastChar 255"), Z(">>"), Z("endobj"));
|
|
59242
59242
|
}, Cc = function(y) {
|
|
59243
59243
|
y.objectNumber = Tn();
|
|
59244
59244
|
var I = [];
|
|
59245
|
-
I.push({ key: "Type", value: "/XObject" }), I.push({ key: "Subtype", value: "/Form" }), I.push({ key: "BBox", value: "[" + [
|
|
59246
|
-
var
|
|
59245
|
+
I.push({ key: "Type", value: "/XObject" }), I.push({ key: "Subtype", value: "/Form" }), I.push({ key: "BBox", value: "[" + [K(y.x), K(y.y), K(y.x + y.width), K(y.y + y.height)].join(" ") + "]" }), I.push({ key: "Matrix", value: "[" + y.matrix.toString() + "]" });
|
|
59246
|
+
var J = y.pages[1].join(`
|
|
59247
59247
|
`);
|
|
59248
|
-
ni({ data:
|
|
59248
|
+
ni({ data: J, additionalKeyValues: I, objectId: y.objectNumber }), Z("endobj");
|
|
59249
59249
|
}, Bc = function(y, I) {
|
|
59250
59250
|
I || (I = 21);
|
|
59251
|
-
var
|
|
59251
|
+
var J = Tn(), te = function(Le, rt) {
|
|
59252
59252
|
var dt, bt = [], Ut = 1 / (rt - 1);
|
|
59253
59253
|
for (dt = 0; dt < 1; dt += Ut)
|
|
59254
59254
|
bt.push(dt);
|
|
@@ -59268,14 +59268,14 @@ Q`), Er(ce, !0), ni({ data: je, filters: Ti(), objectId: ce }), Z("endobj"), te;
|
|
|
59268
59268
|
}
|
|
59269
59269
|
return nr.trim();
|
|
59270
59270
|
}(y.colors, I), ce = [];
|
|
59271
|
-
ce.push({ key: "FunctionType", value: "0" }), ce.push({ key: "Domain", value: "[0.0 1.0]" }), ce.push({ key: "Size", value: "[" + I + "]" }), ce.push({ key: "BitsPerSample", value: "8" }), ce.push({ key: "Range", value: "[0.0 1.0 0.0 1.0 0.0 1.0]" }), ce.push({ key: "Decode", value: "[0.0 1.0 0.0 1.0 0.0 1.0]" }), ni({ data: te, additionalKeyValues: ce, alreadyAppliedFilters: ["/ASCIIHexDecode"], objectId:
|
|
59272
|
-
var je = "/Coords [" +
|
|
59273
|
-
y.type === 2 ? je +=
|
|
59271
|
+
ce.push({ key: "FunctionType", value: "0" }), ce.push({ key: "Domain", value: "[0.0 1.0]" }), ce.push({ key: "Size", value: "[" + I + "]" }), ce.push({ key: "BitsPerSample", value: "8" }), ce.push({ key: "Range", value: "[0.0 1.0 0.0 1.0 0.0 1.0]" }), ce.push({ key: "Decode", value: "[0.0 1.0 0.0 1.0 0.0 1.0]" }), ni({ data: te, additionalKeyValues: ce, alreadyAppliedFilters: ["/ASCIIHexDecode"], objectId: J }), Z("endobj"), y.objectNumber = Tn(), Z("<< /ShadingType " + y.type), Z("/ColorSpace /DeviceRGB");
|
|
59272
|
+
var je = "/Coords [" + K(parseFloat(y.coords[0])) + " " + K(parseFloat(y.coords[1])) + " ";
|
|
59273
|
+
y.type === 2 ? je += K(parseFloat(y.coords[2])) + " " + K(parseFloat(y.coords[3])) : je += K(parseFloat(y.coords[2])) + " " + K(parseFloat(y.coords[3])) + " " + K(parseFloat(y.coords[4])) + " " + K(parseFloat(y.coords[5])), Z(je += "]"), y.matrix && Z("/Matrix [" + y.matrix.toString() + "]"), Z("/Function " + J + " 0 R"), Z("/Extend [true true]"), Z(">>"), Z("endobj");
|
|
59274
59274
|
}, Ec = function(y, I) {
|
|
59275
|
-
var
|
|
59276
|
-
I.push({ resourcesOid:
|
|
59275
|
+
var J = yr(), te = Tn();
|
|
59276
|
+
I.push({ resourcesOid: J, objectOid: te }), y.objectNumber = te;
|
|
59277
59277
|
var ce = [];
|
|
59278
|
-
ce.push({ key: "Type", value: "/Pattern" }), ce.push({ key: "PatternType", value: "1" }), ce.push({ key: "PaintType", value: "1" }), ce.push({ key: "TilingType", value: "1" }), ce.push({ key: "BBox", value: "[" + y.boundingBox.map(
|
|
59278
|
+
ce.push({ key: "Type", value: "/Pattern" }), ce.push({ key: "PatternType", value: "1" }), ce.push({ key: "PaintType", value: "1" }), ce.push({ key: "TilingType", value: "1" }), ce.push({ key: "BBox", value: "[" + y.boundingBox.map(K).join(" ") + "]" }), ce.push({ key: "XStep", value: K(y.xStep) }), ce.push({ key: "YStep", value: K(y.yStep) }), ce.push({ key: "Resources", value: J + " 0 R" }), y.matrix && ce.push({ key: "Matrix", value: "[" + y.matrix.toString() + "]" }), ni({ data: y.stream, additionalKeyValues: ce, objectId: y.objectNumber }), Z("endobj");
|
|
59279
59279
|
}, i1 = function(y) {
|
|
59280
59280
|
for (var I in y.objectNumber = Tn(), Z("<<"), y)
|
|
59281
59281
|
switch (I) {
|
|
@@ -59299,8 +59299,8 @@ Q`), Er(ce, !0), ni({ data: je, filters: Ti(), objectId: ce }), Z("endobj"), te;
|
|
|
59299
59299
|
}
|
|
59300
59300
|
}(), function(I) {
|
|
59301
59301
|
if (Object.keys(mt).length > 0) {
|
|
59302
|
-
for (var
|
|
59303
|
-
mt.hasOwnProperty(
|
|
59302
|
+
for (var J in Z("/Pattern <<"), mt)
|
|
59303
|
+
mt.hasOwnProperty(J) && mt[J] instanceof p.TilingPattern && mt[J].objectNumber >= 0 && mt[J].objectNumber < I && Z("/" + J + " " + mt[J].objectNumber + " 0 R");
|
|
59304
59304
|
$t.publish("putTilingPatternDict"), Z(">>");
|
|
59305
59305
|
}
|
|
59306
59306
|
}(y.objectOid), function() {
|
|
@@ -59317,24 +59317,24 @@ Q`), Er(ce, !0), ni({ data: je, filters: Ti(), objectId: ce }), Z("endobj"), te;
|
|
|
59317
59317
|
}(), Z(">>"), Z("endobj");
|
|
59318
59318
|
}, Gh = function(y) {
|
|
59319
59319
|
St[y.fontName] = St[y.fontName] || {}, St[y.fontName][y.fontStyle] = y.id;
|
|
59320
|
-
}, Wh = function(y, I,
|
|
59321
|
-
var je = { id: "F" + (Object.keys(At).length + 1).toString(10), postScriptName: y, fontName: I, fontStyle:
|
|
59320
|
+
}, Wh = function(y, I, J, te, ce) {
|
|
59321
|
+
var je = { id: "F" + (Object.keys(At).length + 1).toString(10), postScriptName: y, fontName: I, fontStyle: J, encoding: te, isStandardFont: ce || !1, metadata: {} };
|
|
59322
59322
|
return $t.publish("addFont", { font: je, instance: this }), At[je.id] = je, Gh(je), je.id;
|
|
59323
59323
|
}, ri = p.__private__.pdfEscape = p.pdfEscape = function(y, I) {
|
|
59324
|
-
return function(
|
|
59324
|
+
return function(J, te) {
|
|
59325
59325
|
var ce, je, Le, rt, dt, bt, Ut, Jt, Sn;
|
|
59326
59326
|
if (Le = (te = te || {}).sourceEncoding || "Unicode", dt = te.outputEncoding, (te.autoencode || dt) && At[Ke].metadata && At[Ke].metadata[Le] && At[Ke].metadata[Le].encoding && (rt = At[Ke].metadata[Le].encoding, !dt && At[Ke].encoding && (dt = At[Ke].encoding), !dt && rt.codePages && (dt = rt.codePages[0]), typeof dt == "string" && (dt = rt[dt]), dt)) {
|
|
59327
|
-
for (Ut = !1, bt = [], ce = 0, je =
|
|
59328
|
-
(Jt = dt[
|
|
59329
|
-
|
|
59327
|
+
for (Ut = !1, bt = [], ce = 0, je = J.length; ce < je; ce++)
|
|
59328
|
+
(Jt = dt[J.charCodeAt(ce)]) ? bt.push(String.fromCharCode(Jt)) : bt.push(J[ce]), bt[ce].charCodeAt(0) >> 8 && (Ut = !0);
|
|
59329
|
+
J = bt.join("");
|
|
59330
59330
|
}
|
|
59331
|
-
for (ce =
|
|
59332
|
-
|
|
59331
|
+
for (ce = J.length; Ut === void 0 && ce !== 0; )
|
|
59332
|
+
J.charCodeAt(ce - 1) >> 8 && (Ut = !0), ce--;
|
|
59333
59333
|
if (!Ut)
|
|
59334
|
-
return
|
|
59335
|
-
for (bt = te.noBOM ? [] : [254, 255], ce = 0, je =
|
|
59336
|
-
if ((Sn = (Jt =
|
|
59337
|
-
throw new Error("Character at position " + ce + " of string '" +
|
|
59334
|
+
return J;
|
|
59335
|
+
for (bt = te.noBOM ? [] : [254, 255], ce = 0, je = J.length; ce < je; ce++) {
|
|
59336
|
+
if ((Sn = (Jt = J.charCodeAt(ce)) >> 8) >> 8)
|
|
59337
|
+
throw new Error("Character at position " + ce + " of string '" + J + "' exceeds 16bits. Cannot be encoded into UCS-2 BE");
|
|
59338
59338
|
bt.push(Sn), bt.push(Jt - (Sn << 8));
|
|
59339
59339
|
}
|
|
59340
59340
|
return String.fromCharCode.apply(void 0, bt);
|
|
@@ -59342,8 +59342,8 @@ Q`), Er(ce, !0), ni({ data: je, filters: Ti(), objectId: ce }), Z("endobj"), te;
|
|
|
59342
59342
|
}, _u = p.__private__.beginPage = function(y) {
|
|
59343
59343
|
Ne[++An] = [], Ct[An] = { objId: 0, contentsObjId: 0, userUnit: Number(a), artBox: null, bleedBox: null, cropBox: null, trimBox: null, mediaBox: { bottomLeftX: 0, bottomLeftY: 0, topRightX: Number(y[0]), topRightY: Number(y[1]) } }, Jh(An), Ee(Ne[z]);
|
|
59344
59344
|
}, Yh = function(y, I) {
|
|
59345
|
-
var
|
|
59346
|
-
switch (n = I || n, typeof y == "string" && (
|
|
59345
|
+
var J, te, ce;
|
|
59346
|
+
switch (n = I || n, typeof y == "string" && (J = v(y.toLowerCase()), Array.isArray(J) && (te = J[0], ce = J[1])), Array.isArray(y) && (te = y[0] * gt, ce = y[1] * gt), isNaN(te) && (te = s[0], ce = s[1]), (te > 14400 || ce > 14400) && (pn.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"), te = Math.min(14400, te), ce = Math.min(14400, ce)), s = [te, ce], n.substr(0, 1)) {
|
|
59347
59347
|
case "l":
|
|
59348
59348
|
ce > te && (s = [ce, te]);
|
|
59349
59349
|
break;
|
|
@@ -59357,15 +59357,15 @@ Q`), Er(ce, !0), ni({ data: je, filters: Ti(), objectId: ce }), Z("endobj"), te;
|
|
|
59357
59357
|
y > 0 && y <= An && (z = y);
|
|
59358
59358
|
}, Xh = p.__private__.getNumberOfPages = p.getNumberOfPages = function() {
|
|
59359
59359
|
return Ne.length - 1;
|
|
59360
|
-
}, Zh = function(y, I,
|
|
59360
|
+
}, Zh = function(y, I, J) {
|
|
59361
59361
|
var te, ce = void 0;
|
|
59362
|
-
return
|
|
59362
|
+
return J = J || {}, y = y !== void 0 ? y : At[Ke].fontName, I = I !== void 0 ? I : At[Ke].fontStyle, te = y.toLowerCase(), St[te] !== void 0 && St[te][I] !== void 0 ? ce = St[te][I] : St[y] !== void 0 && St[y][I] !== void 0 ? ce = St[y][I] : J.disableWarning === !1 && pn.warn("Unable to look up font label for font '" + y + "', '" + I + "'. Refer to getFontList() for available fonts."), ce || J.noFallback || (ce = St.times[I]) == null && (ce = St.times.normal), ce;
|
|
59363
59363
|
}, kc = p.__private__.putInfo = function() {
|
|
59364
59364
|
var y = Tn(), I = function(te) {
|
|
59365
59365
|
return te;
|
|
59366
59366
|
};
|
|
59367
|
-
for (var
|
|
59368
|
-
lt.hasOwnProperty(
|
|
59367
|
+
for (var J in c !== null && (I = Ln.encryptor(y, 0)), Z("<<"), Z("/Producer (" + ri(I("jsPDF " + pt.version)) + ")"), lt)
|
|
59368
|
+
lt.hasOwnProperty(J) && lt[J] && Z("/" + J.substr(0, 1).toUpperCase() + J.substr(1) + " (" + ri(I(lt[J])) + ")");
|
|
59369
59369
|
Z("/CreationDate (" + ri(I(Ae)) + ")"), Z(">>"), Z("endobj");
|
|
59370
59370
|
}, o1 = p.__private__.putCatalog = function(y) {
|
|
59371
59371
|
var I = (y = y || {}).rootDictionaryObjId || La;
|
|
@@ -59383,8 +59383,8 @@ Q`), Er(ce, !0), ni({ data: je, filters: Ti(), objectId: ce }), Z("endobj"), te;
|
|
|
59383
59383
|
Z("/OpenAction [3 0 R /XYZ null null 1]");
|
|
59384
59384
|
break;
|
|
59385
59385
|
default:
|
|
59386
|
-
var
|
|
59387
|
-
|
|
59386
|
+
var J = "" + C;
|
|
59387
|
+
J.substr(J.length - 1) === "%" && (C = parseInt(C) / 100), typeof C == "number" && Z("/OpenAction [3 0 R /XYZ null null " + U(C) + "]");
|
|
59388
59388
|
}
|
|
59389
59389
|
switch (Ge || (Ge = "continuous"), Ge) {
|
|
59390
59390
|
case "continuous":
|
|
@@ -59414,25 +59414,25 @@ Q`), Er(ce, !0), ni({ data: je, filters: Ti(), objectId: ce }), Z("endobj"), te;
|
|
|
59414
59414
|
var y;
|
|
59415
59415
|
re = 0, we = 0, Be = [], le = [], Te = [], La = yr(), Si = yr(), Ee(Be), $t.publish("buildDocument"), $h(), co(), function() {
|
|
59416
59416
|
$t.publish("putAdditionalObjects");
|
|
59417
|
-
for (var
|
|
59418
|
-
var te = Te[
|
|
59417
|
+
for (var J = 0; J < Te.length; J++) {
|
|
59418
|
+
var te = Te[J];
|
|
59419
59419
|
Er(te.objId, !0), Z(te.content), Z("endobj");
|
|
59420
59420
|
}
|
|
59421
59421
|
$t.publish("postPutAdditionalObjects");
|
|
59422
59422
|
}(), y = [], function() {
|
|
59423
|
-
for (var
|
|
59424
|
-
At.hasOwnProperty(
|
|
59423
|
+
for (var J in At)
|
|
59424
|
+
At.hasOwnProperty(J) && (u === !1 || u === !0 && h.hasOwnProperty(J)) && td(At[J]);
|
|
59425
59425
|
}(), function() {
|
|
59426
|
-
var
|
|
59427
|
-
for (
|
|
59428
|
-
It.hasOwnProperty(
|
|
59426
|
+
var J;
|
|
59427
|
+
for (J in It)
|
|
59428
|
+
It.hasOwnProperty(J) && i1(It[J]);
|
|
59429
59429
|
}(), function() {
|
|
59430
|
-
for (var
|
|
59431
|
-
zr.hasOwnProperty(
|
|
59432
|
-
}(), function(
|
|
59430
|
+
for (var J in zr)
|
|
59431
|
+
zr.hasOwnProperty(J) && Cc(zr[J]);
|
|
59432
|
+
}(), function(J) {
|
|
59433
59433
|
var te;
|
|
59434
59434
|
for (te in mt)
|
|
59435
|
-
mt.hasOwnProperty(te) && (mt[te] instanceof Fd ? Bc(mt[te]) : mt[te] instanceof fA && Ec(mt[te],
|
|
59435
|
+
mt.hasOwnProperty(te) && (mt[te] instanceof Fd ? Bc(mt[te]) : mt[te] instanceof fA && Ec(mt[te], J));
|
|
59436
59436
|
}(y), $t.publish("putResources"), y.forEach(wu), wu({ resourcesOid: Si, objectOid: Number.MAX_SAFE_INTEGER }), $t.publish("postPutResources"), c !== null && (Ln.oid = Tn(), Z("<<"), Z("/Filter /Standard"), Z("/V " + Ln.v), Z("/R " + Ln.r), Z("/U <" + Ln.toHexString(Ln.U) + ">"), Z("/O <" + Ln.toHexString(Ln.O) + ">"), Z("/P " + Ln.P), Z(">>"), Z("endobj")), kc(), o1();
|
|
59437
59437
|
var I = we;
|
|
59438
59438
|
return eg(), tr(), Z("startxref"), Z("" + I), Z("%%EOF"), Ee(Ne[z]), Be.join(`
|
|
@@ -59458,13 +59458,13 @@ Q`), Er(ce, !0), ni({ data: je, filters: Ti(), objectId: ce }), Z("endobj"), te;
|
|
|
59458
59458
|
break;
|
|
59459
59459
|
case "datauristring":
|
|
59460
59460
|
case "dataurlstring":
|
|
59461
|
-
var
|
|
59461
|
+
var J = "", te = Jo();
|
|
59462
59462
|
try {
|
|
59463
|
-
|
|
59463
|
+
J = jB(te);
|
|
59464
59464
|
} catch (nr) {
|
|
59465
|
-
|
|
59465
|
+
J = jB(unescape(encodeURIComponent(te)));
|
|
59466
59466
|
}
|
|
59467
|
-
return "data:application/pdf;filename=" + I.filename + ";base64," +
|
|
59467
|
+
return "data:application/pdf;filename=" + I.filename + ";base64," + J;
|
|
59468
59468
|
case "pdfobjectnewwindow":
|
|
59469
59469
|
if (Object.prototype.toString.call(vt) === "[object Window]") {
|
|
59470
59470
|
var ce = "https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js", je = ' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';
|
|
@@ -59502,14 +59502,14 @@ Q`), Er(ce, !0), ni({ data: je, filters: Ti(), objectId: ce }), Z("endobj"), te;
|
|
|
59502
59502
|
}, ti.foo = function() {
|
|
59503
59503
|
try {
|
|
59504
59504
|
return ti.apply(this, arguments);
|
|
59505
|
-
} catch (
|
|
59506
|
-
var y =
|
|
59505
|
+
} catch (J) {
|
|
59506
|
+
var y = J.stack || "";
|
|
59507
59507
|
~y.indexOf(" at ") && (y = y.split(" at ")[1]);
|
|
59508
59508
|
var I = "Error in function " + y.split(`
|
|
59509
|
-
`)[0].split("<")[0] + ": " +
|
|
59509
|
+
`)[0].split("<")[0] + ": " + J.message;
|
|
59510
59510
|
if (!vt.console)
|
|
59511
59511
|
throw new Error(I);
|
|
59512
|
-
vt.console.error(I,
|
|
59512
|
+
vt.console.error(I, J), vt.alert && alert(I);
|
|
59513
59513
|
}
|
|
59514
59514
|
}, ti.foo.bar = ti, ti.foo), rd = function(y) {
|
|
59515
59515
|
return Array.isArray(Zl) === !0 && Zl.indexOf(y) > -1;
|
|
@@ -59565,28 +59565,28 @@ Q`), Er(ce, !0), ni({ data: je, filters: Ti(), objectId: ce }), Z("endobj"), te;
|
|
|
59565
59565
|
}, p.insertPage = function(y) {
|
|
59566
59566
|
return this.addPage(), this.movePage(z, y), this;
|
|
59567
59567
|
}, p.movePage = function(y, I) {
|
|
59568
|
-
var
|
|
59568
|
+
var J, te;
|
|
59569
59569
|
if (y > I) {
|
|
59570
|
-
|
|
59570
|
+
J = Ne[y], te = Ct[y];
|
|
59571
59571
|
for (var ce = y; ce > I; ce--)
|
|
59572
59572
|
Ne[ce] = Ne[ce - 1], Ct[ce] = Ct[ce - 1];
|
|
59573
|
-
Ne[I] =
|
|
59573
|
+
Ne[I] = J, Ct[I] = te, this.setPage(I);
|
|
59574
59574
|
} else if (y < I) {
|
|
59575
|
-
|
|
59575
|
+
J = Ne[y], te = Ct[y];
|
|
59576
59576
|
for (var je = y; je < I; je++)
|
|
59577
59577
|
Ne[je] = Ne[je + 1], Ct[je] = Ct[je + 1];
|
|
59578
|
-
Ne[I] =
|
|
59578
|
+
Ne[I] = J, Ct[I] = te, this.setPage(I);
|
|
59579
59579
|
}
|
|
59580
59580
|
return this;
|
|
59581
59581
|
}, p.deletePage = function() {
|
|
59582
59582
|
return xu.apply(this, arguments), this;
|
|
59583
|
-
}, p.__private__.text = p.text = function(y, I,
|
|
59583
|
+
}, p.__private__.text = p.text = function(y, I, J, te, ce) {
|
|
59584
59584
|
var je, Le, rt, dt, bt, Ut, Jt, Sn, nr, ln = (te = te || {}).scope || this;
|
|
59585
|
-
if (typeof y == "number" && typeof I == "number" && (typeof
|
|
59586
|
-
var Ar =
|
|
59587
|
-
|
|
59585
|
+
if (typeof y == "number" && typeof I == "number" && (typeof J == "string" || Array.isArray(J))) {
|
|
59586
|
+
var Ar = J;
|
|
59587
|
+
J = I, I = y, y = Ar;
|
|
59588
59588
|
}
|
|
59589
|
-
if (arguments[3] instanceof yt == 0 ? (rt = arguments[4], dt = arguments[5], on(Jt = arguments[3]) === "object" && Jt !== null || (typeof rt == "string" && (dt = rt, rt = null), typeof Jt == "string" && (dt = Jt, Jt = null), typeof Jt == "number" && (rt = Jt, Jt = null), te = { flags: Jt, angle: rt, align: dt })) : (R("The transform parameter of text() with a Matrix value"), nr = ce), isNaN(I) || isNaN(
|
|
59589
|
+
if (arguments[3] instanceof yt == 0 ? (rt = arguments[4], dt = arguments[5], on(Jt = arguments[3]) === "object" && Jt !== null || (typeof rt == "string" && (dt = rt, rt = null), typeof Jt == "string" && (dt = Jt, Jt = null), typeof Jt == "number" && (rt = Jt, Jt = null), te = { flags: Jt, angle: rt, align: dt })) : (R("The transform parameter of text() with a Matrix value"), nr = ce), isNaN(I) || isNaN(J) || y == null)
|
|
59590
59590
|
throw new Error("Invalid arguments passed to jsPDF.text");
|
|
59591
59591
|
if (y.length === 0)
|
|
59592
59592
|
return ln;
|
|
@@ -59626,27 +59626,27 @@ Q`), Er(ce, !0), ni({ data: je, filters: Ti(), objectId: ce }), Z("endobj"), te;
|
|
|
59626
59626
|
var ea = _ / ln.internal.scaleFactor, ta = ea * ($o - 1);
|
|
59627
59627
|
switch (te.baseline) {
|
|
59628
59628
|
case "bottom":
|
|
59629
|
-
|
|
59629
|
+
J -= ta;
|
|
59630
59630
|
break;
|
|
59631
59631
|
case "top":
|
|
59632
|
-
|
|
59632
|
+
J += ea - ta;
|
|
59633
59633
|
break;
|
|
59634
59634
|
case "hanging":
|
|
59635
|
-
|
|
59635
|
+
J += ea - 2 * ta;
|
|
59636
59636
|
break;
|
|
59637
59637
|
case "middle":
|
|
59638
|
-
|
|
59638
|
+
J += ea / 2 - ta;
|
|
59639
59639
|
}
|
|
59640
59640
|
if ((Ut = te.maxWidth || 0) > 0 && (typeof y == "string" ? y = ln.splitTextToSize(y, Ut) : Object.prototype.toString.call(y) === "[object Array]" && (y = y.reduce(function(yn, bn) {
|
|
59641
59641
|
return yn.concat(ln.splitTextToSize(bn, Ut));
|
|
59642
|
-
}, []))), je = { text: y, x: I, y:
|
|
59642
|
+
}, []))), je = { text: y, x: I, y: J, options: te, mutex: { pdfEscape: ri, activeFontKey: Ke, fonts: At, activeFontSize: _ } }, $t.publish("preProcessText", je), y = je.text, rt = (te = je.options).angle, nr instanceof yt == 0 && rt && typeof rt == "number") {
|
|
59643
59643
|
rt *= Math.PI / 180, te.rotationDirection === 0 && (rt = -rt), E === k && (rt = -rt);
|
|
59644
59644
|
var Fc = Math.cos(rt), Pu = Math.sin(rt);
|
|
59645
59645
|
nr = new yt(Fc, Pu, -Pu, Fc, 0, 0);
|
|
59646
59646
|
} else
|
|
59647
59647
|
rt && rt instanceof yt && (nr = rt);
|
|
59648
|
-
E !== k || nr || (nr = Yo), (bt = te.charSpace || Tc) !== void 0 && (kr +=
|
|
59649
|
-
`, this.setCharSpace(this.getCharSpace() || 0)), (Sn = te.horizontalScale) !== void 0 && (kr +=
|
|
59648
|
+
E !== k || nr || (nr = Yo), (bt = te.charSpace || Tc) !== void 0 && (kr += K(X(bt)) + ` Tc
|
|
59649
|
+
`, this.setCharSpace(this.getCharSpace() || 0)), (Sn = te.horizontalScale) !== void 0 && (kr += K(100 * Sn) + ` Tz
|
|
59650
59650
|
`), te.lang;
|
|
59651
59651
|
var es = -1, sg = te.renderingMode !== void 0 ? te.renderingMode : te.stroke, Dc = ln.internal.getCurrentPageInfo().pageContext;
|
|
59652
59652
|
switch (sg) {
|
|
@@ -59700,11 +59700,11 @@ Q`), Er(ce, !0), ni({ data: je, filters: Ti(), objectId: ce }), Z("endobj"), te;
|
|
|
59700
59700
|
if (dt === "right") {
|
|
59701
59701
|
I -= ur[0], y = [], br = Le.length;
|
|
59702
59702
|
for (var po = 0; po < br; po++)
|
|
59703
|
-
po === 0 ? (bs = Xo(I), ys = Zo(
|
|
59703
|
+
po === 0 ? (bs = Xo(I), ys = Zo(J)) : (bs = X(Ad - ur[po]), ys = -si), y.push([Le[po], bs, ys]), Ad = ur[po];
|
|
59704
59704
|
} else if (dt === "center") {
|
|
59705
59705
|
I -= ur[0] / 2, y = [], br = Le.length;
|
|
59706
59706
|
for (var Ka = 0; Ka < br; Ka++)
|
|
59707
|
-
Ka === 0 ? (bs = Xo(I), ys = Zo(
|
|
59707
|
+
Ka === 0 ? (bs = Xo(I), ys = Zo(J)) : (bs = X((Ad - ur[Ka]) / 2), ys = -si), y.push([Le[Ka], bs, ys]), Ad = ur[Ka];
|
|
59708
59708
|
} else if (dt === "left") {
|
|
59709
59709
|
y = [], br = Le.length;
|
|
59710
59710
|
for (var Lu = 0; Lu < br; Lu++)
|
|
@@ -59712,7 +59712,7 @@ Q`), Er(ce, !0), ni({ data: je, filters: Ti(), objectId: ce }), Z("endobj"), te;
|
|
|
59712
59712
|
} else if (dt === "justify" && Ou.encoding === "Identity-H") {
|
|
59713
59713
|
y = [], br = Le.length, Ut = Ut !== 0 ? Ut : Nu;
|
|
59714
59714
|
for (var Va = 0, Qn = 0; Qn < br; Qn++)
|
|
59715
|
-
if (ys = Qn === 0 ? Zo(
|
|
59715
|
+
if (ys = Qn === 0 ? Zo(J) : -si, bs = Qn === 0 ? Xo(I) : Va, Qn < br - 1) {
|
|
59716
59716
|
var _1 = X((Ut - ur[Qn]) / (Le[Qn].split(" ").length - 1)), ho = Le[Qn].split(" ");
|
|
59717
59717
|
y.push([ho[0] + " ", bs, ys]), Va = 0;
|
|
59718
59718
|
for (var go = 1; go < ho.length; go++) {
|
|
@@ -59726,12 +59726,12 @@ Q`), Er(ce, !0), ni({ data: je, filters: Ti(), objectId: ce }), Z("endobj"), te;
|
|
|
59726
59726
|
if (dt !== "justify")
|
|
59727
59727
|
throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');
|
|
59728
59728
|
for (y = [], br = Le.length, Ut = Ut !== 0 ? Ut : Nu, Qn = 0; Qn < br; Qn++)
|
|
59729
|
-
ys = Qn === 0 ? Zo(
|
|
59729
|
+
ys = Qn === 0 ? Zo(J) : -si, bs = Qn === 0 ? Xo(I) : 0, Qn < br - 1 ? qa.push(K(X((Ut - ur[Qn]) / (Le[Qn].split(" ").length - 1)))) : qa.push(0), y.push([Le[Qn], bs, ys]);
|
|
59730
59730
|
}
|
|
59731
59731
|
}
|
|
59732
59732
|
(typeof te.R2L == "boolean" ? te.R2L : se) === !0 && (y = cd(y, function(yn, bn, Mn) {
|
|
59733
59733
|
return [yn.split("").reverse().join(""), bn, Mn];
|
|
59734
|
-
})), je = { text: y, x: I, y:
|
|
59734
|
+
})), je = { text: y, x: I, y: J, options: te, mutex: { pdfEscape: ri, activeFontKey: Ke, fonts: At, activeFontSize: _ } }, $t.publish("postProcessText", je), y = je.text, rr = je.mutex.isHex || !1;
|
|
59735
59735
|
var Qu = At[Ke].encoding;
|
|
59736
59736
|
Qu !== "WinAnsiEncoding" && Qu !== "StandardEncoding" || (y = cd(y, function(yn, bn, Mn) {
|
|
59737
59737
|
return [w1(yn), bn, Mn];
|
|
@@ -59739,7 +59739,7 @@ Q`), Er(ce, !0), ni({ data: je, filters: Ti(), objectId: ce }), Z("endobj"), te;
|
|
|
59739
59739
|
for (var Nc, Oc, ud, pd = Array.isArray(Le[0]) ? 1 : 0, na = "", Mu = function(yn, bn, Mn) {
|
|
59740
59740
|
var zn = "";
|
|
59741
59741
|
return Mn instanceof yt ? (Mn = typeof te.angle == "number" ? Wo(Mn, new yt(1, 0, 0, 1, yn, bn)) : Wo(new yt(1, 0, 0, 1, yn, bn), Mn), E === k && (Mn = Wo(new yt(1, 0, 0, -1, 0, 0), Mn)), zn = Mn.join(" ") + ` Tm
|
|
59742
|
-
`) : zn =
|
|
59742
|
+
`) : zn = K(yn) + " " + K(bn) + ` Td
|
|
59743
59743
|
`, zn;
|
|
59744
59744
|
}, Fs = 0; Fs < Le.length; Fs++) {
|
|
59745
59745
|
switch (na = "", pd) {
|
|
@@ -59747,7 +59747,7 @@ Q`), Er(ce, !0), ni({ data: je, filters: Ti(), objectId: ce }), Z("endobj"), te;
|
|
|
59747
59747
|
ud = (rr ? "<" : "(") + Le[Fs][0] + (rr ? ">" : ")"), Nc = parseFloat(Le[Fs][1]), Oc = parseFloat(Le[Fs][2]);
|
|
59748
59748
|
break;
|
|
59749
59749
|
case 0:
|
|
59750
|
-
ud = (rr ? "<" : "(") + Le[Fs] + (rr ? ">" : ")"), Nc = Xo(I), Oc = Zo(
|
|
59750
|
+
ud = (rr ? "<" : "(") + Le[Fs] + (rr ? ">" : ")"), Nc = Xo(I), Oc = Zo(J);
|
|
59751
59751
|
}
|
|
59752
59752
|
qa !== void 0 && qa[Fs] !== void 0 && (na = qa[Fs] + ` Tw
|
|
59753
59753
|
`), Fs === 0 ? y.push(na + Mu(Nc, Oc, nr) + ud) : pd === 0 ? y.push(na + ud) : pd === 1 && y.push(na + Mu(Nc, Oc, nr) + ud);
|
|
@@ -59759,7 +59759,7 @@ T* `) : y.join(` Tj
|
|
|
59759
59759
|
var fo = `BT
|
|
59760
59760
|
/`;
|
|
59761
59761
|
return fo += Ke + " " + _ + ` Tf
|
|
59762
|
-
`, fo +=
|
|
59762
|
+
`, fo += K(_ * $o) + ` TL
|
|
59763
59763
|
`, fo += od + `
|
|
59764
59764
|
`, fo += kr, fo += y, Z(fo += "ET"), h[Ke] = !0, ln;
|
|
59765
59765
|
};
|
|
@@ -59818,19 +59818,19 @@ T* `) : y.join(` Tj
|
|
|
59818
59818
|
}, Bu = function(y) {
|
|
59819
59819
|
y === null || E === k && y === void 0 || (y = tg(y), Z(y));
|
|
59820
59820
|
};
|
|
59821
|
-
function c1(y, I,
|
|
59822
|
-
var je = new fA(I || this.boundingBox,
|
|
59821
|
+
function c1(y, I, J, te, ce) {
|
|
59822
|
+
var je = new fA(I || this.boundingBox, J || this.xStep, te || this.yStep, this.gState, ce || this.matrix);
|
|
59823
59823
|
je.stream = this.stream;
|
|
59824
59824
|
var Le = y + "$$" + this.cloneIndex++ + "$$";
|
|
59825
59825
|
return ei(Le, je), je;
|
|
59826
59826
|
}
|
|
59827
59827
|
var A1 = function(y, I) {
|
|
59828
|
-
var
|
|
59828
|
+
var J = Mt[y.key], te = mt[J];
|
|
59829
59829
|
if (te instanceof Fd)
|
|
59830
|
-
Z("q"), Z(u1(I)), te.gState && p.setGState(te.gState), Z(y.matrix.toString() + " cm"), Z("/" +
|
|
59830
|
+
Z("q"), Z(u1(I)), te.gState && p.setGState(te.gState), Z(y.matrix.toString() + " cm"), Z("/" + J + " sh"), Z("Q");
|
|
59831
59831
|
else if (te instanceof fA) {
|
|
59832
59832
|
var ce = new yt(1, 0, 0, -1, 0, js());
|
|
59833
|
-
y.matrix && (ce = ce.multiply(y.matrix || Yo),
|
|
59833
|
+
y.matrix && (ce = ce.multiply(y.matrix || Yo), J = c1.call(te, y.key, y.boundingBox, y.xStep, y.yStep, ce).id), Z("q"), Z("/Pattern cs"), Z("/" + J + " scn"), te.gState && p.setGState(te.gState), Z(I), Z("Q");
|
|
59834
59834
|
}
|
|
59835
59835
|
}, u1 = function(y) {
|
|
59836
59836
|
switch (y) {
|
|
@@ -59847,27 +59847,27 @@ T* `) : y.join(` Tj
|
|
|
59847
59847
|
return "W* S";
|
|
59848
59848
|
}
|
|
59849
59849
|
}, Eu = p.moveTo = function(y, I) {
|
|
59850
|
-
return Z(
|
|
59850
|
+
return Z(K(X(y)) + " " + K($(I)) + " m"), this;
|
|
59851
59851
|
}, sd = p.lineTo = function(y, I) {
|
|
59852
|
-
return Z(
|
|
59853
|
-
}, Ma = p.curveTo = function(y, I,
|
|
59854
|
-
return Z([
|
|
59852
|
+
return Z(K(X(y)) + " " + K($(I)) + " l"), this;
|
|
59853
|
+
}, Ma = p.curveTo = function(y, I, J, te, ce, je) {
|
|
59854
|
+
return Z([K(X(y)), K($(I)), K(X(J)), K($(te)), K(X(ce)), K($(je)), "c"].join(" ")), this;
|
|
59855
59855
|
};
|
|
59856
|
-
p.__private__.line = p.line = function(y, I,
|
|
59857
|
-
if (isNaN(y) || isNaN(I) || isNaN(
|
|
59856
|
+
p.__private__.line = p.line = function(y, I, J, te, ce) {
|
|
59857
|
+
if (isNaN(y) || isNaN(I) || isNaN(J) || isNaN(te) || !Ao(ce))
|
|
59858
59858
|
throw new Error("Invalid arguments passed to jsPDF.line");
|
|
59859
|
-
return E === B ? this.lines([[
|
|
59860
|
-
}, p.__private__.lines = p.lines = function(y, I,
|
|
59859
|
+
return E === B ? this.lines([[J - y, te - I]], y, I, [1, 1], ce || "S") : this.lines([[J - y, te - I]], y, I, [1, 1]).stroke();
|
|
59860
|
+
}, p.__private__.lines = p.lines = function(y, I, J, te, ce, je) {
|
|
59861
59861
|
var Le, rt, dt, bt, Ut, Jt, Sn, nr, ln, Ar, rr, kr;
|
|
59862
|
-
if (typeof y == "number" && (kr =
|
|
59862
|
+
if (typeof y == "number" && (kr = J, J = I, I = y, y = kr), te = te || [1, 1], je = je || !1, isNaN(I) || isNaN(J) || !Array.isArray(y) || !Array.isArray(te) || !Ao(ce) || typeof je != "boolean")
|
|
59863
59863
|
throw new Error("Invalid arguments passed to jsPDF.lines");
|
|
59864
|
-
for (Eu(I,
|
|
59864
|
+
for (Eu(I, J), Le = te[0], rt = te[1], bt = y.length, Ar = I, rr = J, dt = 0; dt < bt; dt++)
|
|
59865
59865
|
(Ut = y[dt]).length === 2 ? (Ar = Ut[0] * Le + Ar, rr = Ut[1] * rt + rr, sd(Ar, rr)) : (Jt = Ut[0] * Le + Ar, Sn = Ut[1] * rt + rr, nr = Ut[2] * Le + Ar, ln = Ut[3] * rt + rr, Ar = Ut[4] * Le + Ar, rr = Ut[5] * rt + rr, Ma(Jt, Sn, nr, ln, Ar, rr));
|
|
59866
59866
|
return je && ng(), Bu(ce), this;
|
|
59867
59867
|
}, p.path = function(y) {
|
|
59868
59868
|
for (var I = 0; I < y.length; I++) {
|
|
59869
|
-
var
|
|
59870
|
-
switch (
|
|
59869
|
+
var J = y[I], te = J.c;
|
|
59870
|
+
switch (J.op) {
|
|
59871
59871
|
case "m":
|
|
59872
59872
|
Eu(te[0], te[1]);
|
|
59873
59873
|
break;
|
|
@@ -59882,56 +59882,56 @@ T* `) : y.join(` Tj
|
|
|
59882
59882
|
}
|
|
59883
59883
|
}
|
|
59884
59884
|
return this;
|
|
59885
|
-
}, p.__private__.rect = p.rect = function(y, I,
|
|
59886
|
-
if (isNaN(y) || isNaN(I) || isNaN(
|
|
59885
|
+
}, p.__private__.rect = p.rect = function(y, I, J, te, ce) {
|
|
59886
|
+
if (isNaN(y) || isNaN(I) || isNaN(J) || isNaN(te) || !Ao(ce))
|
|
59887
59887
|
throw new Error("Invalid arguments passed to jsPDF.rect");
|
|
59888
|
-
return E === B && (te = -te), Z([
|
|
59889
|
-
}, p.__private__.triangle = p.triangle = function(y, I,
|
|
59890
|
-
if (isNaN(y) || isNaN(I) || isNaN(
|
|
59888
|
+
return E === B && (te = -te), Z([K(X(y)), K($(I)), K(X(J)), K(X(te)), "re"].join(" ")), Bu(ce), this;
|
|
59889
|
+
}, p.__private__.triangle = p.triangle = function(y, I, J, te, ce, je, Le) {
|
|
59890
|
+
if (isNaN(y) || isNaN(I) || isNaN(J) || isNaN(te) || isNaN(ce) || isNaN(je) || !Ao(Le))
|
|
59891
59891
|
throw new Error("Invalid arguments passed to jsPDF.triangle");
|
|
59892
|
-
return this.lines([[
|
|
59893
|
-
}, p.__private__.roundedRect = p.roundedRect = function(y, I,
|
|
59894
|
-
if (isNaN(y) || isNaN(I) || isNaN(
|
|
59892
|
+
return this.lines([[J - y, te - I], [ce - J, je - te], [y - ce, I - je]], y, I, [1, 1], Le, !0), this;
|
|
59893
|
+
}, p.__private__.roundedRect = p.roundedRect = function(y, I, J, te, ce, je, Le) {
|
|
59894
|
+
if (isNaN(y) || isNaN(I) || isNaN(J) || isNaN(te) || isNaN(ce) || isNaN(je) || !Ao(Le))
|
|
59895
59895
|
throw new Error("Invalid arguments passed to jsPDF.roundedRect");
|
|
59896
59896
|
var rt = 4 / 3 * (Math.SQRT2 - 1);
|
|
59897
|
-
return ce = Math.min(ce, 0.5 *
|
|
59898
|
-
}, p.__private__.ellipse = p.ellipse = function(y, I,
|
|
59899
|
-
if (isNaN(y) || isNaN(I) || isNaN(
|
|
59897
|
+
return ce = Math.min(ce, 0.5 * J), je = Math.min(je, 0.5 * te), this.lines([[J - 2 * ce, 0], [ce * rt, 0, ce, je - je * rt, ce, je], [0, te - 2 * je], [0, je * rt, -ce * rt, je, -ce, je], [2 * ce - J, 0], [-ce * rt, 0, -ce, -je * rt, -ce, -je], [0, 2 * je - te], [0, -je * rt, ce * rt, -je, ce, -je]], y + ce, I, [1, 1], Le, !0), this;
|
|
59898
|
+
}, p.__private__.ellipse = p.ellipse = function(y, I, J, te, ce) {
|
|
59899
|
+
if (isNaN(y) || isNaN(I) || isNaN(J) || isNaN(te) || !Ao(ce))
|
|
59900
59900
|
throw new Error("Invalid arguments passed to jsPDF.ellipse");
|
|
59901
|
-
var je = 4 / 3 * (Math.SQRT2 - 1) *
|
|
59902
|
-
return Eu(y +
|
|
59903
|
-
}, p.__private__.circle = p.circle = function(y, I,
|
|
59904
|
-
if (isNaN(y) || isNaN(I) || isNaN(
|
|
59901
|
+
var je = 4 / 3 * (Math.SQRT2 - 1) * J, Le = 4 / 3 * (Math.SQRT2 - 1) * te;
|
|
59902
|
+
return Eu(y + J, I), Ma(y + J, I - Le, y + je, I - te, y, I - te), Ma(y - je, I - te, y - J, I - Le, y - J, I), Ma(y - J, I + Le, y - je, I + te, y, I + te), Ma(y + je, I + te, y + J, I + Le, y + J, I), Bu(ce), this;
|
|
59903
|
+
}, p.__private__.circle = p.circle = function(y, I, J, te) {
|
|
59904
|
+
if (isNaN(y) || isNaN(I) || isNaN(J) || !Ao(te))
|
|
59905
59905
|
throw new Error("Invalid arguments passed to jsPDF.circle");
|
|
59906
|
-
return this.ellipse(y, I,
|
|
59907
|
-
}, p.setFont = function(y, I,
|
|
59908
|
-
return
|
|
59906
|
+
return this.ellipse(y, I, J, J, te);
|
|
59907
|
+
}, p.setFont = function(y, I, J) {
|
|
59908
|
+
return J && (I = W(I, J)), Ke = Zh(y, I, { disableWarning: !1 }), this;
|
|
59909
59909
|
};
|
|
59910
59910
|
var p1 = p.__private__.getFont = p.getFont = function() {
|
|
59911
59911
|
return At[Zh.apply(p, arguments)];
|
|
59912
59912
|
};
|
|
59913
59913
|
p.__private__.getFontList = p.getFontList = function() {
|
|
59914
|
-
var y, I,
|
|
59914
|
+
var y, I, J = {};
|
|
59915
59915
|
for (y in St)
|
|
59916
59916
|
if (St.hasOwnProperty(y))
|
|
59917
|
-
for (I in
|
|
59918
|
-
St[y].hasOwnProperty(I) &&
|
|
59919
|
-
return
|
|
59920
|
-
}, p.addFont = function(y, I,
|
|
59917
|
+
for (I in J[y] = [], St[y])
|
|
59918
|
+
St[y].hasOwnProperty(I) && J[y].push(I);
|
|
59919
|
+
return J;
|
|
59920
|
+
}, p.addFont = function(y, I, J, te, ce) {
|
|
59921
59921
|
var je = ["StandardEncoding", "MacRomanEncoding", "Identity-H", "WinAnsiEncoding"];
|
|
59922
|
-
return arguments[3] && je.indexOf(arguments[3]) !== -1 ? ce = arguments[3] : arguments[3] && je.indexOf(arguments[3]) == -1 && (
|
|
59922
|
+
return arguments[3] && je.indexOf(arguments[3]) !== -1 ? ce = arguments[3] : arguments[3] && je.indexOf(arguments[3]) == -1 && (J = W(J, te)), Wh.call(this, y, I, J, ce = ce || "Identity-H");
|
|
59923
59923
|
};
|
|
59924
59924
|
var id, ku = t.lineWidth || 0.200025, Bt = p.__private__.getLineWidth = p.getLineWidth = function() {
|
|
59925
59925
|
return ku;
|
|
59926
59926
|
}, h1 = p.__private__.setLineWidth = p.setLineWidth = function(y) {
|
|
59927
|
-
return ku = y, Z(
|
|
59927
|
+
return ku = y, Z(K(X(y)) + " w"), this;
|
|
59928
59928
|
};
|
|
59929
59929
|
p.__private__.setLineDash = pt.API.setLineDash = pt.API.setLineDashPattern = function(y, I) {
|
|
59930
59930
|
if (y = y || [], I = I || 0, isNaN(I) || !Array.isArray(y))
|
|
59931
59931
|
throw new Error("Invalid arguments passed to jsPDF.setLineDash");
|
|
59932
|
-
return y = y.map(function(
|
|
59933
|
-
return
|
|
59934
|
-
}).join(" "), I =
|
|
59932
|
+
return y = y.map(function(J) {
|
|
59933
|
+
return K(X(J));
|
|
59934
|
+
}).join(" "), I = K(X(I)), Z("[" + y + "] " + I + " d"), this;
|
|
59935
59935
|
};
|
|
59936
59936
|
var g1 = p.__private__.getLineHeight = p.getLineHeight = function() {
|
|
59937
59937
|
return _ * id;
|
|
@@ -59950,26 +59950,26 @@ T* `) : y.join(` Tj
|
|
|
59950
59950
|
}, Zo = p.__private__.getVerticalCoordinate = function(y) {
|
|
59951
59951
|
return E === k ? y : Ct[z].mediaBox.topRightY - Ct[z].mediaBox.bottomLeftY - X(y);
|
|
59952
59952
|
}, y1 = p.__private__.getHorizontalCoordinateString = p.getHorizontalCoordinateString = function(y) {
|
|
59953
|
-
return
|
|
59953
|
+
return K(Xo(y));
|
|
59954
59954
|
}, b1 = p.__private__.getVerticalCoordinateString = p.getVerticalCoordinateString = function(y) {
|
|
59955
|
-
return
|
|
59955
|
+
return K(Zo(y));
|
|
59956
59956
|
}, Sc = t.strokeColor || "0 G";
|
|
59957
59957
|
p.__private__.getStrokeColor = p.getDrawColor = function() {
|
|
59958
59958
|
return lo(Sc);
|
|
59959
|
-
}, p.__private__.setStrokeColor = p.setDrawColor = function(y, I,
|
|
59960
|
-
return Sc = Ii({ ch1: y, ch2: I, ch3:
|
|
59959
|
+
}, p.__private__.setStrokeColor = p.setDrawColor = function(y, I, J, te) {
|
|
59960
|
+
return Sc = Ii({ ch1: y, ch2: I, ch3: J, ch4: te, pdfColorType: "draw", precision: 2 }), Z(Sc), this;
|
|
59961
59961
|
};
|
|
59962
59962
|
var Su = t.fillColor || "0 g";
|
|
59963
59963
|
p.__private__.getFillColor = p.getFillColor = function() {
|
|
59964
59964
|
return lo(Su);
|
|
59965
|
-
}, p.__private__.setFillColor = p.setFillColor = function(y, I,
|
|
59966
|
-
return Su = Ii({ ch1: y, ch2: I, ch3:
|
|
59965
|
+
}, p.__private__.setFillColor = p.setFillColor = function(y, I, J, te) {
|
|
59966
|
+
return Su = Ii({ ch1: y, ch2: I, ch3: J, ch4: te, pdfColorType: "fill", precision: 2 }), Z(Su), this;
|
|
59967
59967
|
};
|
|
59968
59968
|
var od = t.textColor || "0 g", Ic = p.__private__.getTextColor = p.getTextColor = function() {
|
|
59969
59969
|
return lo(od);
|
|
59970
59970
|
};
|
|
59971
|
-
p.__private__.setTextColor = p.setTextColor = function(y, I,
|
|
59972
|
-
return od = Ii({ ch1: y, ch2: I, ch3:
|
|
59971
|
+
p.__private__.setTextColor = p.setTextColor = function(y, I, J, te) {
|
|
59972
|
+
return od = Ii({ ch1: y, ch2: I, ch3: J, ch4: te, pdfColorType: "text", precision: 3 }), this;
|
|
59973
59973
|
};
|
|
59974
59974
|
var Tc = t.charSpace, v1 = p.__private__.getCharSpace = p.getCharSpace = function() {
|
|
59975
59975
|
return parseFloat(Tc || 0);
|
|
@@ -59995,19 +59995,19 @@ T* `) : y.join(` Tj
|
|
|
59995
59995
|
}, p.__private__.setLineMiterLimit = p.__private__.setMiterLimit = p.setLineMiterLimit = p.setMiterLimit = function(y) {
|
|
59996
59996
|
if (y = y || 0, isNaN(y))
|
|
59997
59997
|
throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");
|
|
59998
|
-
return Z(
|
|
59998
|
+
return Z(K(X(y)) + " M"), this;
|
|
59999
59999
|
}, p.GState = s0, p.setGState = function(y) {
|
|
60000
60000
|
(y = typeof y == "string" ? It[On[y]] : ad(null, y)).equals(cr) || (Z("/" + y.id + " gs"), cr = y);
|
|
60001
60001
|
};
|
|
60002
60002
|
var ad = function(y, I) {
|
|
60003
60003
|
if (!y || !On[y]) {
|
|
60004
|
-
var
|
|
60004
|
+
var J = !1;
|
|
60005
60005
|
for (var te in It)
|
|
60006
60006
|
if (It.hasOwnProperty(te) && It[te].equals(I)) {
|
|
60007
|
-
|
|
60007
|
+
J = !0;
|
|
60008
60008
|
break;
|
|
60009
60009
|
}
|
|
60010
|
-
if (
|
|
60010
|
+
if (J)
|
|
60011
60011
|
I = It[te];
|
|
60012
60012
|
else {
|
|
60013
60013
|
var ce = "GS" + (Object.keys(It).length + 1).toString(10);
|
|
@@ -60030,11 +60030,11 @@ T* `) : y.join(` Tj
|
|
|
60030
60030
|
return Z("#" + y), this;
|
|
60031
60031
|
};
|
|
60032
60032
|
var ld = function(y, I) {
|
|
60033
|
-
var
|
|
60033
|
+
var J = y || 0;
|
|
60034
60034
|
Object.defineProperty(this, "x", { enumerable: !0, get: function() {
|
|
60035
|
-
return
|
|
60035
|
+
return J;
|
|
60036
60036
|
}, set: function(je) {
|
|
60037
|
-
isNaN(je) || (
|
|
60037
|
+
isNaN(je) || (J = parseFloat(je));
|
|
60038
60038
|
} });
|
|
60039
60039
|
var te = I || 0;
|
|
60040
60040
|
Object.defineProperty(this, "y", { enumerable: !0, get: function() {
|
|
@@ -60048,9 +60048,9 @@ T* `) : y.join(` Tj
|
|
|
60048
60048
|
}, set: function(je) {
|
|
60049
60049
|
ce = je.toString();
|
|
60050
60050
|
} }), this;
|
|
60051
|
-
}, Uu = function(y, I,
|
|
60051
|
+
}, Uu = function(y, I, J, te) {
|
|
60052
60052
|
ld.call(this, y, I), this.type = "rect";
|
|
60053
|
-
var ce =
|
|
60053
|
+
var ce = J || 0;
|
|
60054
60054
|
Object.defineProperty(this, "w", { enumerable: !0, get: function() {
|
|
60055
60055
|
return ce;
|
|
60056
60056
|
}, set: function(Le) {
|
|
@@ -60068,40 +60068,40 @@ T* `) : y.join(` Tj
|
|
|
60068
60068
|
Uc.prototype.restore = function() {
|
|
60069
60069
|
An = this.page, z = this.currentPage, Ct = this.pagesContext, Ne = this.pages, ct = this.x, tn = this.y, Yt = this.matrix, Du(z, this.width), uo(z, this.height), He = this.outputDestination;
|
|
60070
60070
|
};
|
|
60071
|
-
var ju = function(y, I,
|
|
60072
|
-
ao.push(new Uc()), An = z = 0, Ne = [], ct = y, tn = I, Yt = ce, _u([
|
|
60071
|
+
var ju = function(y, I, J, te, ce) {
|
|
60072
|
+
ao.push(new Uc()), An = z = 0, Ne = [], ct = y, tn = I, Yt = ce, _u([J, te]);
|
|
60073
60073
|
};
|
|
60074
|
-
for (var dd in p.beginFormObject = function(y, I,
|
|
60075
|
-
return ju(y, I,
|
|
60074
|
+
for (var dd in p.beginFormObject = function(y, I, J, te, ce) {
|
|
60075
|
+
return ju(y, I, J, te, ce), this;
|
|
60076
60076
|
}, p.endFormObject = function(y) {
|
|
60077
60077
|
return function(I) {
|
|
60078
60078
|
if (Go[I])
|
|
60079
60079
|
ao.pop().restore();
|
|
60080
60080
|
else {
|
|
60081
|
-
var
|
|
60082
|
-
|
|
60081
|
+
var J = new Uc(), te = "Xo" + (Object.keys(zr).length + 1).toString(10);
|
|
60082
|
+
J.id = te, Go[I] = te, zr[te] = J, $t.publish("addFormObject", J), ao.pop().restore();
|
|
60083
60083
|
}
|
|
60084
60084
|
}(y), this;
|
|
60085
60085
|
}, p.doFormObject = function(y, I) {
|
|
60086
|
-
var
|
|
60087
|
-
return Z("q"), Z(I.toString() + " cm"), Z("/" +
|
|
60086
|
+
var J = zr[Go[y]];
|
|
60087
|
+
return Z("q"), Z(I.toString() + " cm"), Z("/" + J.id + " Do"), Z("Q"), this;
|
|
60088
60088
|
}, p.getFormObject = function(y) {
|
|
60089
60089
|
var I = zr[Go[y]];
|
|
60090
60090
|
return { x: I.x, y: I.y, width: I.width, height: I.height, matrix: I.matrix };
|
|
60091
60091
|
}, p.save = function(y, I) {
|
|
60092
|
-
return y = y || "generated.pdf", (I = I || {}).returnPromise = I.returnPromise || !1, I.returnPromise === !1 ? (kd(nd(Jo()), y), typeof kd.unload == "function" && vt.setTimeout && setTimeout(kd.unload, 911), this) : new Promise(function(
|
|
60092
|
+
return y = y || "generated.pdf", (I = I || {}).returnPromise = I.returnPromise || !1, I.returnPromise === !1 ? (kd(nd(Jo()), y), typeof kd.unload == "function" && vt.setTimeout && setTimeout(kd.unload, 911), this) : new Promise(function(J, te) {
|
|
60093
60093
|
try {
|
|
60094
60094
|
var ce = kd(nd(Jo()), y);
|
|
60095
|
-
typeof kd.unload == "function" && vt.setTimeout && setTimeout(kd.unload, 911),
|
|
60095
|
+
typeof kd.unload == "function" && vt.setTimeout && setTimeout(kd.unload, 911), J(ce);
|
|
60096
60096
|
} catch (je) {
|
|
60097
60097
|
te(je.message);
|
|
60098
60098
|
}
|
|
60099
60099
|
});
|
|
60100
60100
|
}, pt.API)
|
|
60101
60101
|
pt.API.hasOwnProperty(dd) && (dd === "events" && pt.API.events.length ? function(y, I) {
|
|
60102
|
-
var
|
|
60102
|
+
var J, te, ce;
|
|
60103
60103
|
for (ce = I.length - 1; ce !== -1; ce--)
|
|
60104
|
-
|
|
60104
|
+
J = I[ce][0], te = I[ce][1], y.subscribe.apply(y, [J].concat(typeof te == "function" ? [te] : te));
|
|
60105
60105
|
}($t, pt.API.events) : p[dd] = pt.API[dd]);
|
|
60106
60106
|
var Fu = p.getPageWidth = function(y) {
|
|
60107
60107
|
return (Ct[y = y || z].mediaBox.topRightX - Ct[y].mediaBox.bottomLeftX) / gt;
|
|
@@ -60133,7 +60133,7 @@ T* `) : y.join(` Tj
|
|
|
60133
60133
|
}, set: function(y) {
|
|
60134
60134
|
uo(z, y);
|
|
60135
60135
|
}, enumerable: !0, configurable: !0 }), function(y) {
|
|
60136
|
-
for (var I = 0,
|
|
60136
|
+
for (var I = 0, J = O.length; I < J; I++) {
|
|
60137
60137
|
var te = Wh.call(this, y[I][0], y[I][1], y[I][2], O[I][3], !0);
|
|
60138
60138
|
u === !1 && (h[te] = !0);
|
|
60139
60139
|
var ce = y[I][0].split("-");
|
|
@@ -60267,13 +60267,13 @@ var Ts = function(t, e) {
|
|
|
60267
60267
|
v += s[k][w], E = !0, m = k, k--;
|
|
60268
60268
|
} else {
|
|
60269
60269
|
v = (v += s[k][w] + " ").substr(v.length - 1) == " " ? v.substr(0, v.length - 1) : v;
|
|
60270
|
-
var q = parseInt(k), D = d(q, v, i),
|
|
60271
|
-
if (D && !
|
|
60270
|
+
var q = parseInt(k), D = d(q, v, i), W = k >= s.length - 1;
|
|
60271
|
+
if (D && !W) {
|
|
60272
60272
|
v += " ", w = 0;
|
|
60273
60273
|
continue;
|
|
60274
60274
|
}
|
|
60275
|
-
if (D ||
|
|
60276
|
-
if (
|
|
60275
|
+
if (D || W) {
|
|
60276
|
+
if (W)
|
|
60277
60277
|
m = q;
|
|
60278
60278
|
else if (t.multiline && (u + 2) * (B + 2) + 2 > o)
|
|
60279
60279
|
continue e;
|
|
@@ -60283,21 +60283,21 @@ var Ts = function(t, e) {
|
|
|
60283
60283
|
m = q;
|
|
60284
60284
|
}
|
|
60285
60285
|
}
|
|
60286
|
-
for (var
|
|
60286
|
+
for (var K = "", R = f; R <= m; R++) {
|
|
60287
60287
|
var ne = s[R];
|
|
60288
60288
|
if (t.multiline) {
|
|
60289
60289
|
if (R === m) {
|
|
60290
|
-
|
|
60290
|
+
K += ne[w] + " ", w = (w + 1) % ne.length;
|
|
60291
60291
|
continue;
|
|
60292
60292
|
}
|
|
60293
60293
|
if (R === f) {
|
|
60294
|
-
|
|
60294
|
+
K += ne[ne.length - 1] + " ";
|
|
60295
60295
|
continue;
|
|
60296
60296
|
}
|
|
60297
60297
|
}
|
|
60298
|
-
|
|
60298
|
+
K += ne[0] + " ";
|
|
60299
60299
|
}
|
|
60300
|
-
switch (
|
|
60300
|
+
switch (K = K.substr(K.length - 1) == " " ? K.substr(0, K.length - 1) : K, c = kf(K, t, i).width, t.textAlign) {
|
|
60301
60301
|
case "right":
|
|
60302
60302
|
l = a - c - 2;
|
|
60303
60303
|
break;
|
|
@@ -60308,7 +60308,7 @@ var Ts = function(t, e) {
|
|
|
60308
60308
|
l = 2;
|
|
60309
60309
|
}
|
|
60310
60310
|
e += kt(l) + " " + kt(p) + ` Td
|
|
60311
|
-
`, e += "(" + vc(
|
|
60311
|
+
`, e += "(" + vc(K) + `) Tj
|
|
60312
60312
|
`, e += -kt(l) + ` 0 Td
|
|
60313
60313
|
`, p = -(i + 2), c = 0, f = E ? m : m + 1, B++, v = "";
|
|
60314
60314
|
}
|
|
@@ -61064,7 +61064,7 @@ function K8(t) {
|
|
|
61064
61064
|
}
|
|
61065
61065
|
if (Q.colorSpace === v.INDEXED) {
|
|
61066
61066
|
var z = this.internal.newObject();
|
|
61067
|
-
$({ data:
|
|
61067
|
+
$({ data: K(new Uint8Array(Q.palette)), objectId: z }), X("endobj");
|
|
61068
61068
|
}
|
|
61069
61069
|
}, o = function() {
|
|
61070
61070
|
var U = this.internal.collections[e + "images"];
|
|
@@ -61125,9 +61125,9 @@ function K8(t) {
|
|
|
61125
61125
|
be *= Math.PI / 180;
|
|
61126
61126
|
var de = Math.cos(be), T = Math.sin(be), z = function(ee) {
|
|
61127
61127
|
return ee.toFixed(4);
|
|
61128
|
-
},
|
|
61128
|
+
}, Y = [z(de), z(T), z(-1 * T), z(de), 0, 0, "cm"];
|
|
61129
61129
|
}
|
|
61130
|
-
this.internal.write("q"), be ? (this.internal.write([1, "0", "0", 1, ue(U), Ce(Q + $), "cm"].join(" ")), this.internal.write(
|
|
61130
|
+
this.internal.write("q"), be ? (this.internal.write([1, "0", "0", 1, ue(U), Ce(Q + $), "cm"].join(" ")), this.internal.write(Y.join(" ")), this.internal.write([ue(X), "0", "0", ue($), "0", "0", "cm"].join(" "))) : this.internal.write([ue(X), "0", "0", ue($), ue(U), Ce(Q + $), "cm"].join(" ")), this.isAdvancedAPI() && this.internal.write([1, 0, 0, -1, 0, 0, "cm"].join(" ")), this.internal.write("/I" + Ae.index + " Do"), this.internal.write("Q");
|
|
61131
61131
|
}, v = t.color_spaces = { DEVICE_RGB: "DeviceRGB", DEVICE_GRAY: "DeviceGray", DEVICE_CMYK: "DeviceCMYK", CAL_GREY: "CalGray", CAL_RGB: "CalRGB", LAB: "Lab", ICC_BASED: "ICCBased", INDEXED: "Indexed", PATTERN: "Pattern", SEPARATION: "Separation", DEVICE_N: "DeviceN" };
|
|
61132
61132
|
t.decode = { DCT_DECODE: "DCTDecode", FLATE_DECODE: "FlateDecode", LZW_DECODE: "LZWDecode", JPX_DECODE: "JPXDecode", JBIG2_DECODE: "JBIG2Decode", ASCII85_DECODE: "ASCII85Decode", ASCII_HEX_DECODE: "ASCIIHexDecode", RUN_LENGTH_DECODE: "RunLengthDecode", CCITT_FAX_DECODE: "CCITTFaxDecode" };
|
|
61133
61133
|
var B = t.image_compression = { NONE: "NONE", FAST: "FAST", MEDIUM: "MEDIUM", SLOW: "SLOW" }, k = t.__addimage__.sHashCode = function(U) {
|
|
@@ -61154,11 +61154,11 @@ function K8(t) {
|
|
|
61154
61154
|
};
|
|
61155
61155
|
var D = t.__addimage__.isArrayBufferView = function(U) {
|
|
61156
61156
|
return U instanceof Int8Array || U instanceof Uint8Array || U instanceof Uint8ClampedArray || U instanceof Int16Array || U instanceof Uint16Array || U instanceof Int32Array || U instanceof Uint32Array || U instanceof Float32Array || U instanceof Float64Array;
|
|
61157
|
-
},
|
|
61157
|
+
}, W = t.__addimage__.binaryStringToUint8Array = function(U) {
|
|
61158
61158
|
for (var Q = U.length, X = new Uint8Array(Q), $ = 0; $ < Q; $++)
|
|
61159
61159
|
X[$] = U.charCodeAt($);
|
|
61160
61160
|
return X;
|
|
61161
|
-
},
|
|
61161
|
+
}, K = t.__addimage__.arrayBufferToBinaryString = function(U) {
|
|
61162
61162
|
for (var Q = "", X = D(U) ? U : new Uint8Array(U), $ = 0; $ < X.length; $ += 8192)
|
|
61163
61163
|
Q += String.fromCharCode.apply(null, X.subarray($, $ + 8192));
|
|
61164
61164
|
return Q;
|
|
@@ -61187,7 +61187,7 @@ function K8(t) {
|
|
|
61187
61187
|
throw new Error("addImage does not support files of type '" + Q + "', please ensure that a plugin for '" + Q + "' support is added.");
|
|
61188
61188
|
if (((ve = X) == null || ve.length === 0) && (X = function(Ce) {
|
|
61189
61189
|
return typeof Ce == "string" || D(Ce) ? k(Ce) : D(Ce.data) ? k(Ce.data) : null;
|
|
61190
|
-
}(U)), (Ae = f.call(this, X)) || (U instanceof Uint8Array || Q === "RGBA" || (be = U, U =
|
|
61190
|
+
}(U)), (Ae = f.call(this, X)) || (U instanceof Uint8Array || Q === "RGBA" || (be = U, U = W(U)), Ae = this["process" + Q.toUpperCase()](U, c.call(this), X, function(Ce) {
|
|
61191
61191
|
return Ce && typeof Ce == "string" && (Ce = Ce.toUpperCase()), Ce in t.image_compression ? Ce : B.NONE;
|
|
61192
61192
|
}($), be)), !Ae)
|
|
61193
61193
|
throw new Error("An unknown error occurred whilst processing the image.");
|
|
@@ -61211,7 +61211,7 @@ function K8(t) {
|
|
|
61211
61211
|
var Q, X, $ = "";
|
|
61212
61212
|
if (h(U) && (U = p(U)), typeof U == "string" && s(U) === n && (($ = ne(U, !1)) === "" && ($ = t.loadFile(U) || ""), U = $), X = s(U), !u(X))
|
|
61213
61213
|
throw new Error("addImage does not support files of type '" + X + "', please ensure that a plugin for '" + X + "' support is added.");
|
|
61214
|
-
if (U instanceof Uint8Array || (U =
|
|
61214
|
+
if (U instanceof Uint8Array || (U = W(U)), !(Q = this["process" + X.toUpperCase()](U)))
|
|
61215
61215
|
throw new Error("An unknown error occurred whilst processing the image");
|
|
61216
61216
|
return Q.fileType = X, Q;
|
|
61217
61217
|
};
|
|
@@ -61356,13 +61356,13 @@ function(t) {
|
|
|
61356
61356
|
var h = t.__arabicParser__.getCorrectForm = function(m, w, v) {
|
|
61357
61357
|
return o(m) ? i(m) === !1 ? -1 : !l(m) || !o(w) && !o(v) || !o(v) && a(w) || a(m) && !o(w) || a(m) && d(w) || a(m) && a(w) ? 0 : c(m) && o(w) && !a(w) && o(v) && l(v) ? 3 : a(m) || !o(v) ? 1 : 2 : -1;
|
|
61358
61358
|
}, p = function(m) {
|
|
61359
|
-
var w = 0, v = 0, B = 0, k = "", E = "", q = "", D = (m = m || "").split("\\s+"),
|
|
61359
|
+
var w = 0, v = 0, B = 0, k = "", E = "", q = "", D = (m = m || "").split("\\s+"), W = [];
|
|
61360
61360
|
for (w = 0; w < D.length; w += 1) {
|
|
61361
|
-
for (
|
|
61362
|
-
k = D[w][v], E = D[w][v - 1], q = D[w][v + 1], o(k) ? (B = h(k, E, q),
|
|
61363
|
-
|
|
61361
|
+
for (W.push(""), v = 0; v < D[w].length; v += 1)
|
|
61362
|
+
k = D[w][v], E = D[w][v - 1], q = D[w][v + 1], o(k) ? (B = h(k, E, q), W[w] += B !== -1 ? String.fromCharCode(e[k.charCodeAt(0)][B]) : k) : W[w] += k;
|
|
61363
|
+
W[w] = u(W[w]);
|
|
61364
61364
|
}
|
|
61365
|
-
return
|
|
61365
|
+
return W.join(" ");
|
|
61366
61366
|
}, f = t.__arabicParser__.processArabic = t.processArabic = function() {
|
|
61367
61367
|
var m, w = typeof arguments[0] == "string" ? arguments[0] : arguments[0].text, v = [];
|
|
61368
61368
|
if (Array.isArray(w)) {
|
|
@@ -61518,7 +61518,7 @@ function(t) {
|
|
|
61518
61518
|
t.table = function(d, l, c, u, h) {
|
|
61519
61519
|
if (r.call(this), !c)
|
|
61520
61520
|
throw new Error("No data for PDF table.");
|
|
61521
|
-
var p, f, m, w, v = [], B = [], k = [], E = {}, q = {}, D = [],
|
|
61521
|
+
var p, f, m, w, v = [], B = [], k = [], E = {}, q = {}, D = [], W = [], K = (h = h || {}).autoSize || !1, R = h.printHeaders !== !1, ne = h.css && h.css["font-size"] !== void 0 ? 16 * h.css["font-size"] : h.fontSize || 12, U = h.margins || Object.assign({ width: this.getPageWidth() }, e), Q = typeof h.padding == "number" ? h.padding : 3, X = h.headerBackgroundColor || "#c8c8c8", $ = h.headerTextColor || "#000";
|
|
61522
61522
|
if (s.call(this), this.internal.__cell__.printHeaders = R, this.internal.__cell__.margins = U, this.internal.__cell__.table_font_size = ne, this.internal.__cell__.padding = Q, this.internal.__cell__.headerBackgroundColor = X, this.internal.__cell__.headerTextColor = $, this.setFontSize(ne), u == null)
|
|
61523
61523
|
B = v = Object.keys(c[0]), k = v.map(function() {
|
|
61524
61524
|
return "left";
|
|
@@ -61536,7 +61536,7 @@ function(t) {
|
|
|
61536
61536
|
Array.isArray(u) && typeof u[0] == "string" && (B = v = u, k = v.map(function() {
|
|
61537
61537
|
return "left";
|
|
61538
61538
|
}));
|
|
61539
|
-
if (
|
|
61539
|
+
if (K || Array.isArray(u) && typeof u[0] == "string")
|
|
61540
61540
|
for (p = 0; p < v.length; p += 1) {
|
|
61541
61541
|
for (E[w = v[p]] = c.map(function(fe) {
|
|
61542
61542
|
return fe[w];
|
|
@@ -61549,9 +61549,9 @@ function(t) {
|
|
|
61549
61549
|
for (p = 0; p < v.length; p += 1)
|
|
61550
61550
|
Ae[v[p]] = {}, Ae[v[p]].text = B[p], Ae[v[p]].align = k[p];
|
|
61551
61551
|
var be = a.call(this, Ae, q);
|
|
61552
|
-
|
|
61552
|
+
W = v.map(function(fe) {
|
|
61553
61553
|
return new i(d, l, q[fe], be, Ae[fe].text, void 0, Ae[fe].align);
|
|
61554
|
-
}), this.setTableHeaderRow(
|
|
61554
|
+
}), this.setTableHeaderRow(W), this.printHeaderRow(1, !1);
|
|
61555
61555
|
}
|
|
61556
61556
|
var ve = u.reduce(function(fe, de) {
|
|
61557
61557
|
return fe[de.name] = de.align, fe;
|
|
@@ -61783,8 +61783,8 @@ function $ee(t) {
|
|
|
61783
61783
|
}
|
|
61784
61784
|
break;
|
|
61785
61785
|
case 44:
|
|
61786
|
-
var w = t[e++] | t[e++] << 8, v = t[e++] | t[e++] << 8, B = t[e++] | t[e++] << 8, k = t[e++] | t[e++] << 8, E = t[e++], q = E >> 6 & 1, D = 1 << 1 + (7 & E),
|
|
61787
|
-
E >> 7 && (R = !0,
|
|
61786
|
+
var w = t[e++] | t[e++] << 8, v = t[e++] | t[e++] << 8, B = t[e++] | t[e++] << 8, k = t[e++] | t[e++] << 8, E = t[e++], q = E >> 6 & 1, D = 1 << 1 + (7 & E), W = a, K = d, R = !1;
|
|
61787
|
+
E >> 7 && (R = !0, W = e, K = D, e += 3 * D);
|
|
61788
61788
|
var ne = e;
|
|
61789
61789
|
for (e++; ; ) {
|
|
61790
61790
|
var U;
|
|
@@ -61794,7 +61794,7 @@ function $ee(t) {
|
|
|
61794
61794
|
break;
|
|
61795
61795
|
e += U;
|
|
61796
61796
|
}
|
|
61797
|
-
c.push({ x: w, y: v, width: B, height: k, has_local_palette: R, palette_offset:
|
|
61797
|
+
c.push({ x: w, y: v, width: B, height: k, has_local_palette: R, palette_offset: W, palette_size: K, data_offset: ne, data_length: e - ne, transparent_index: h, interlaced: !!q, delay: u, disposal: p });
|
|
61798
61798
|
break;
|
|
61799
61799
|
case 59:
|
|
61800
61800
|
l = !1;
|
|
@@ -61815,15 +61815,15 @@ function $ee(t) {
|
|
|
61815
61815
|
ZB(t, $.data_offset, be, Ae);
|
|
61816
61816
|
var ve = $.palette_offset, ue = $.transparent_index;
|
|
61817
61817
|
ue === null && (ue = 256);
|
|
61818
|
-
var Ce = $.width, fe = n - Ce, de = Ce, T = 4 * ($.y * n + $.x), z = 4 * (($.y + $.height) * n + $.x),
|
|
61818
|
+
var Ce = $.width, fe = n - Ce, de = Ce, T = 4 * ($.y * n + $.x), z = 4 * (($.y + $.height) * n + $.x), Y = T, ee = 4 * fe;
|
|
61819
61819
|
$.interlaced === !0 && (ee += 4 * n * 7);
|
|
61820
61820
|
for (var re = 8, le = 0, Be = be.length; le < Be; ++le) {
|
|
61821
61821
|
var we = be[le];
|
|
61822
|
-
if (de === 0 && (de = Ce, (
|
|
61823
|
-
|
|
61822
|
+
if (de === 0 && (de = Ce, (Y += ee) >= z && (ee = 4 * fe + 4 * n * (re - 1), Y = T + (Ce + fe) * (re << 1), re >>= 1)), we === ue)
|
|
61823
|
+
Y += 4;
|
|
61824
61824
|
else {
|
|
61825
61825
|
var Te = t[ve + 3 * we], Ne = t[ve + 3 * we + 1], ze = t[ve + 3 * we + 2];
|
|
61826
|
-
X[
|
|
61826
|
+
X[Y++] = ze, X[Y++] = Ne, X[Y++] = Te, X[Y++] = 255;
|
|
61827
61827
|
}
|
|
61828
61828
|
--de;
|
|
61829
61829
|
}
|
|
@@ -61832,15 +61832,15 @@ function $ee(t) {
|
|
|
61832
61832
|
ZB(t, $.data_offset, be, Ae);
|
|
61833
61833
|
var ve = $.palette_offset, ue = $.transparent_index;
|
|
61834
61834
|
ue === null && (ue = 256);
|
|
61835
|
-
var Ce = $.width, fe = n - Ce, de = Ce, T = 4 * ($.y * n + $.x), z = 4 * (($.y + $.height) * n + $.x),
|
|
61835
|
+
var Ce = $.width, fe = n - Ce, de = Ce, T = 4 * ($.y * n + $.x), z = 4 * (($.y + $.height) * n + $.x), Y = T, ee = 4 * fe;
|
|
61836
61836
|
$.interlaced === !0 && (ee += 4 * n * 7);
|
|
61837
61837
|
for (var re = 8, le = 0, Be = be.length; le < Be; ++le) {
|
|
61838
61838
|
var we = be[le];
|
|
61839
|
-
if (de === 0 && (de = Ce, (
|
|
61840
|
-
|
|
61839
|
+
if (de === 0 && (de = Ce, (Y += ee) >= z && (ee = 4 * fe + 4 * n * (re - 1), Y = T + (Ce + fe) * (re << 1), re >>= 1)), we === ue)
|
|
61840
|
+
Y += 4;
|
|
61841
61841
|
else {
|
|
61842
61842
|
var Te = t[ve + 3 * we], Ne = t[ve + 3 * we + 1], ze = t[ve + 3 * we + 2];
|
|
61843
|
-
X[
|
|
61843
|
+
X[Y++] = Te, X[Y++] = Ne, X[Y++] = ze, X[Y++] = 255;
|
|
61844
61844
|
}
|
|
61845
61845
|
--de;
|
|
61846
61846
|
}
|
|
@@ -61904,18 +61904,18 @@ function ZB(t, e, n, r) {
|
|
|
61904
61904
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
61905
61905
|
*/
|
|
61906
61906
|
function Pb(t) {
|
|
61907
|
-
var e, n, r, s, i, o = Math.floor, a = new Array(64), d = new Array(64), l = new Array(64), c = new Array(64), u = new Array(65535), h = new Array(65535), p = new Array(64), f = new Array(64), m = [], w = 0, v = 7, B = new Array(64), k = new Array(64), E = new Array(64), q = new Array(256), D = new Array(2048),
|
|
61907
|
+
var e, n, r, s, i, o = Math.floor, a = new Array(64), d = new Array(64), l = new Array(64), c = new Array(64), u = new Array(65535), h = new Array(65535), p = new Array(64), f = new Array(64), m = [], w = 0, v = 7, B = new Array(64), k = new Array(64), E = new Array(64), q = new Array(256), D = new Array(2048), W = [0, 1, 5, 6, 14, 15, 27, 28, 2, 4, 7, 13, 16, 26, 29, 42, 3, 8, 12, 17, 25, 30, 41, 43, 9, 11, 18, 24, 31, 40, 44, 53, 10, 19, 23, 32, 39, 45, 52, 54, 20, 22, 33, 38, 46, 51, 55, 60, 21, 34, 37, 47, 50, 56, 59, 61, 35, 36, 48, 49, 57, 58, 62, 63], K = [0, 0, 1, 5, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0], R = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], ne = [0, 0, 2, 1, 3, 3, 2, 4, 3, 5, 5, 4, 4, 0, 0, 1, 125], U = [1, 2, 3, 0, 4, 17, 5, 18, 33, 49, 65, 6, 19, 81, 97, 7, 34, 113, 20, 50, 129, 145, 161, 8, 35, 66, 177, 193, 21, 82, 209, 240, 36, 51, 98, 114, 130, 9, 10, 22, 23, 24, 25, 26, 37, 38, 39, 40, 41, 42, 52, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250], Q = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], X = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], $ = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119], Ae = [0, 1, 2, 3, 17, 4, 5, 33, 49, 6, 18, 65, 81, 7, 97, 113, 19, 34, 50, 129, 8, 20, 66, 145, 161, 177, 193, 9, 35, 51, 82, 240, 21, 98, 114, 209, 10, 22, 36, 52, 225, 37, 241, 23, 24, 25, 26, 38, 39, 40, 41, 42, 53, 54, 55, 56, 57, 58, 67, 68, 69, 70, 71, 72, 73, 74, 83, 84, 85, 86, 87, 88, 89, 90, 99, 100, 101, 102, 103, 104, 105, 106, 115, 116, 117, 118, 119, 120, 121, 122, 130, 131, 132, 133, 134, 135, 136, 137, 138, 146, 147, 148, 149, 150, 151, 152, 153, 154, 162, 163, 164, 165, 166, 167, 168, 169, 170, 178, 179, 180, 181, 182, 183, 184, 185, 186, 194, 195, 196, 197, 198, 199, 200, 201, 202, 210, 211, 212, 213, 214, 215, 216, 217, 218, 226, 227, 228, 229, 230, 231, 232, 233, 234, 242, 243, 244, 245, 246, 247, 248, 249, 250];
|
|
61908
61908
|
function be(T, z) {
|
|
61909
|
-
for (var
|
|
61909
|
+
for (var Y = 0, ee = 0, re = new Array(), le = 1; le <= 16; le++) {
|
|
61910
61910
|
for (var Be = 1; Be <= T[le]; Be++)
|
|
61911
|
-
re[z[ee]] = [], re[z[ee]][0] =
|
|
61912
|
-
|
|
61911
|
+
re[z[ee]] = [], re[z[ee]][0] = Y, re[z[ee]][1] = le, ee++, Y++;
|
|
61912
|
+
Y *= 2;
|
|
61913
61913
|
}
|
|
61914
61914
|
return re;
|
|
61915
61915
|
}
|
|
61916
61916
|
function ve(T) {
|
|
61917
|
-
for (var z = T[0],
|
|
61918
|
-
z & 1 <<
|
|
61917
|
+
for (var z = T[0], Y = T[1] - 1; Y >= 0; )
|
|
61918
|
+
z & 1 << Y && (w |= 1 << v), Y--, --v < 0 && (w == 255 ? (ue(255), ue(0)) : ue(w), v = 7, w = 0);
|
|
61919
61919
|
}
|
|
61920
61920
|
function ue(T) {
|
|
61921
61921
|
m.push(T);
|
|
@@ -61923,7 +61923,7 @@ function Pb(t) {
|
|
|
61923
61923
|
function Ce(T) {
|
|
61924
61924
|
ue(T >> 8 & 255), ue(255 & T);
|
|
61925
61925
|
}
|
|
61926
|
-
function fe(T, z,
|
|
61926
|
+
function fe(T, z, Y, ee, re) {
|
|
61927
61927
|
for (var le, Be = re[0], we = re[240], Te = function(_, C) {
|
|
61928
61928
|
var N, se, ge, ke, Ge, Je, ht, lt, Ke, gt, ct = 0;
|
|
61929
61929
|
for (Ke = 0; Ke < 8; ++Ke) {
|
|
@@ -61948,13 +61948,13 @@ function Pb(t) {
|
|
|
61948
61948
|
gt = _[Ke] * C[Ke], p[Ke] = gt > 0 ? gt + 0.5 | 0 : gt - 0.5 | 0;
|
|
61949
61949
|
return p;
|
|
61950
61950
|
}(T, z), Ne = 0; Ne < 64; ++Ne)
|
|
61951
|
-
f[
|
|
61952
|
-
var ze = f[0] -
|
|
61953
|
-
|
|
61951
|
+
f[W[Ne]] = Te[Ne];
|
|
61952
|
+
var ze = f[0] - Y;
|
|
61953
|
+
Y = f[0], ze == 0 ? ve(ee[0]) : (ve(ee[h[le = 32767 + ze]]), ve(u[le]));
|
|
61954
61954
|
for (var He = 63; He > 0 && f[He] == 0; )
|
|
61955
61955
|
He--;
|
|
61956
61956
|
if (He == 0)
|
|
61957
|
-
return ve(Be),
|
|
61957
|
+
return ve(Be), Y;
|
|
61958
61958
|
for (var Ee, Z = 1; Z <= He; ) {
|
|
61959
61959
|
for (var xt = Z; f[Z] == 0 && Z <= He; )
|
|
61960
61960
|
++Z;
|
|
@@ -61967,21 +61967,21 @@ function Pb(t) {
|
|
|
61967
61967
|
}
|
|
61968
61968
|
le = 32767 + f[Z], ve(re[(Et << 4) + h[le]]), ve(u[le]), Z++;
|
|
61969
61969
|
}
|
|
61970
|
-
return He != 63 && ve(Be),
|
|
61970
|
+
return He != 63 && ve(Be), Y;
|
|
61971
61971
|
}
|
|
61972
61972
|
function de(T) {
|
|
61973
61973
|
T = Math.min(Math.max(T, 1), 100), i != T && (function(z) {
|
|
61974
|
-
for (var
|
|
61975
|
-
var re = o((
|
|
61976
|
-
re = Math.min(Math.max(re, 1), 255), a[
|
|
61974
|
+
for (var Y = [16, 11, 10, 16, 24, 40, 51, 61, 12, 12, 14, 19, 26, 58, 60, 55, 14, 13, 16, 24, 40, 57, 69, 56, 14, 17, 22, 29, 51, 87, 80, 62, 18, 22, 37, 56, 68, 109, 103, 77, 24, 35, 55, 64, 81, 104, 113, 92, 49, 64, 78, 87, 103, 121, 120, 101, 72, 92, 95, 98, 112, 100, 103, 99], ee = 0; ee < 64; ee++) {
|
|
61975
|
+
var re = o((Y[ee] * z + 50) / 100);
|
|
61976
|
+
re = Math.min(Math.max(re, 1), 255), a[W[ee]] = re;
|
|
61977
61977
|
}
|
|
61978
61978
|
for (var le = [17, 18, 24, 47, 99, 99, 99, 99, 18, 21, 26, 66, 99, 99, 99, 99, 24, 26, 56, 99, 99, 99, 99, 99, 47, 66, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99, 99], Be = 0; Be < 64; Be++) {
|
|
61979
61979
|
var we = o((le[Be] * z + 50) / 100);
|
|
61980
|
-
we = Math.min(Math.max(we, 1), 255), d[
|
|
61980
|
+
we = Math.min(Math.max(we, 1), 255), d[W[Be]] = we;
|
|
61981
61981
|
}
|
|
61982
61982
|
for (var Te = [1, 1.387039845, 1.306562965, 1.175875602, 1, 0.785694958, 0.5411961, 0.275899379], Ne = 0, ze = 0; ze < 8; ze++)
|
|
61983
61983
|
for (var He = 0; He < 8; He++)
|
|
61984
|
-
l[Ne] = 1 / (a[
|
|
61984
|
+
l[Ne] = 1 / (a[W[Ne]] * Te[ze] * Te[He] * 8), c[Ne] = 1 / (d[W[Ne]] * Te[ze] * Te[He] * 8), Ne++;
|
|
61985
61985
|
}(T < 50 ? Math.floor(5e3 / T) : Math.floor(200 - 2 * T)), i = T);
|
|
61986
61986
|
}
|
|
61987
61987
|
this.encode = function(T, z) {
|
|
@@ -61997,7 +61997,7 @@ function Pb(t) {
|
|
|
61997
61997
|
}(T.width, T.height), function() {
|
|
61998
61998
|
Ce(65476), Ce(418), ue(0);
|
|
61999
61999
|
for (var se = 0; se < 16; se++)
|
|
62000
|
-
ue(
|
|
62000
|
+
ue(K[se + 1]);
|
|
62001
62001
|
for (var ge = 0; ge <= 11; ge++)
|
|
62002
62002
|
ue(R[ge]);
|
|
62003
62003
|
ue(16);
|
|
@@ -62016,13 +62016,13 @@ function Pb(t) {
|
|
|
62016
62016
|
for (var Ke = 0; Ke <= 161; Ke++)
|
|
62017
62017
|
ue(Ae[Ke]);
|
|
62018
62018
|
}(), Ce(65498), Ce(12), ue(3), ue(1), ue(0), ue(2), ue(17), ue(3), ue(17), ue(0), ue(63), ue(0);
|
|
62019
|
-
var
|
|
62019
|
+
var Y = 0, ee = 0, re = 0;
|
|
62020
62020
|
w = 0, v = 7, this.encode.displayName = "_encode_";
|
|
62021
62021
|
for (var le, Be, we, Te, Ne, ze, He, Ee, Z, xt = T.data, Et = T.width, O = T.height, _ = 4 * Et, C = 0; C < O; ) {
|
|
62022
62022
|
for (le = 0; le < _; ) {
|
|
62023
62023
|
for (Ne = _ * C + le, He = -1, Ee = 0, Z = 0; Z < 64; Z++)
|
|
62024
62024
|
ze = Ne + (Ee = Z >> 3) * _ + (He = 4 * (7 & Z)), C + Ee >= O && (ze -= _ * (C + 1 + Ee - O)), le + He >= _ && (ze -= le + He - _ + 4), Be = xt[ze++], we = xt[ze++], Te = xt[ze++], B[Z] = (D[Be] + D[we + 256 | 0] + D[Te + 512 | 0] >> 16) - 128, k[Z] = (D[Be + 768 | 0] + D[we + 1024 | 0] + D[Te + 1280 | 0] >> 16) - 128, E[Z] = (D[Be + 1280 | 0] + D[we + 1536 | 0] + D[Te + 1792 | 0] >> 16) - 128;
|
|
62025
|
-
|
|
62025
|
+
Y = fe(B, l, Y, e, r), ee = fe(k, c, ee, n, s), re = fe(E, c, re, n, s), le += 32;
|
|
62026
62026
|
}
|
|
62027
62027
|
C += 8;
|
|
62028
62028
|
}
|
|
@@ -62034,12 +62034,12 @@ function Pb(t) {
|
|
|
62034
62034
|
}, t = t || 50, function() {
|
|
62035
62035
|
for (var T = String.fromCharCode, z = 0; z < 256; z++)
|
|
62036
62036
|
q[z] = T(z);
|
|
62037
|
-
}(), e = be(
|
|
62038
|
-
for (var T = 1, z = 2,
|
|
62037
|
+
}(), e = be(K, R), n = be(Q, X), r = be(ne, U), s = be($, Ae), function() {
|
|
62038
|
+
for (var T = 1, z = 2, Y = 1; Y <= 15; Y++) {
|
|
62039
62039
|
for (var ee = T; ee < z; ee++)
|
|
62040
|
-
h[32767 + ee] =
|
|
62040
|
+
h[32767 + ee] = Y, u[32767 + ee] = [], u[32767 + ee][1] = Y, u[32767 + ee][0] = ee;
|
|
62041
62041
|
for (var re = -(z - 1); re <= -T; re++)
|
|
62042
|
-
h[32767 + re] =
|
|
62042
|
+
h[32767 + re] = Y, u[32767 + re] = [], u[32767 + re][1] = Y, u[32767 + re][0] = z - 1 + re;
|
|
62043
62043
|
T <<= 1, z <<= 1;
|
|
62044
62044
|
}
|
|
62045
62045
|
}(), function() {
|
|
@@ -62111,41 +62111,41 @@ function $B(t) {
|
|
|
62111
62111
|
var j = i(512);
|
|
62112
62112
|
else if ((j = i(S)) == null)
|
|
62113
62113
|
return 0;
|
|
62114
|
-
return function(F, P, M,
|
|
62115
|
-
var
|
|
62116
|
-
for (e(ie != 0), e(
|
|
62117
|
-
if (15 <
|
|
62114
|
+
return function(F, P, M, V, ie, ye) {
|
|
62115
|
+
var G, ae, pe = P, Ie = 1 << M, me = i(16), Ue = i(16);
|
|
62116
|
+
for (e(ie != 0), e(V != null), e(F != null), e(0 < M), ae = 0; ae < ie; ++ae) {
|
|
62117
|
+
if (15 < V[ae])
|
|
62118
62118
|
return 0;
|
|
62119
|
-
++me[
|
|
62119
|
+
++me[V[ae]];
|
|
62120
62120
|
}
|
|
62121
62121
|
if (me[0] == ie)
|
|
62122
62122
|
return 0;
|
|
62123
|
-
for (Ue[1] = 0,
|
|
62124
|
-
if (me[
|
|
62123
|
+
for (Ue[1] = 0, G = 1; 15 > G; ++G) {
|
|
62124
|
+
if (me[G] > 1 << G)
|
|
62125
62125
|
return 0;
|
|
62126
|
-
Ue[
|
|
62126
|
+
Ue[G + 1] = Ue[G] + me[G];
|
|
62127
62127
|
}
|
|
62128
62128
|
for (ae = 0; ae < ie; ++ae)
|
|
62129
|
-
|
|
62129
|
+
G = V[ae], 0 < V[ae] && (ye[Ue[G]++] = ae);
|
|
62130
62130
|
if (Ue[15] == 1)
|
|
62131
|
-
return (
|
|
62131
|
+
return (V = new X()).g = 0, V.value = ye[0], U(F, pe, 1, Ie, V), Ie;
|
|
62132
62132
|
var Fe, Me = -1, Oe = Ie - 1, ut = 0, et = 1, Dt = 1, st = 1 << M;
|
|
62133
|
-
for (ae = 0,
|
|
62134
|
-
if (et += Dt <<= 1, 0 > (Dt -= me[
|
|
62133
|
+
for (ae = 0, G = 1, ie = 2; G <= M; ++G, ie <<= 1) {
|
|
62134
|
+
if (et += Dt <<= 1, 0 > (Dt -= me[G]))
|
|
62135
62135
|
return 0;
|
|
62136
|
-
for (; 0 < me[
|
|
62137
|
-
(
|
|
62136
|
+
for (; 0 < me[G]; --me[G])
|
|
62137
|
+
(V = new X()).g = G, V.value = ye[ae++], U(F, pe + ut, ie, st, V), ut = ne(ut, G);
|
|
62138
62138
|
}
|
|
62139
|
-
for (
|
|
62140
|
-
if (et += Dt <<= 1, 0 > (Dt -= me[
|
|
62139
|
+
for (G = M + 1, ie = 2; 15 >= G; ++G, ie <<= 1) {
|
|
62140
|
+
if (et += Dt <<= 1, 0 > (Dt -= me[G]))
|
|
62141
62141
|
return 0;
|
|
62142
|
-
for (; 0 < me[
|
|
62143
|
-
if (
|
|
62144
|
-
for (pe += st, Fe = 1 << (Me =
|
|
62142
|
+
for (; 0 < me[G]; --me[G]) {
|
|
62143
|
+
if (V = new X(), (ut & Oe) != Me) {
|
|
62144
|
+
for (pe += st, Fe = 1 << (Me = G) - M; 15 > Me && !(0 >= (Fe -= me[Me])); )
|
|
62145
62145
|
++Me, Fe <<= 1;
|
|
62146
62146
|
Ie += st = 1 << (Fe = Me - M), F[P + (Me = ut & Oe)].g = Fe + M, F[P + Me].value = pe - P - Me;
|
|
62147
62147
|
}
|
|
62148
|
-
|
|
62148
|
+
V.g = G - M, V.value = ye[ae++], U(F, pe + (ut >> M), ie, st, V), ut = ne(ut, G);
|
|
62149
62149
|
}
|
|
62150
62150
|
}
|
|
62151
62151
|
return et != 2 * Ue[15] - 1 ? 0 : Ie;
|
|
@@ -62185,7 +62185,7 @@ function $B(t) {
|
|
|
62185
62185
|
}
|
|
62186
62186
|
function de(A, g) {
|
|
62187
62187
|
if (e(0 <= g), !A.h && g <= Lu) {
|
|
62188
|
-
var b =
|
|
62188
|
+
var b = Y(A) & Ka[g];
|
|
62189
62189
|
return A.u += g, fe(A), b;
|
|
62190
62190
|
}
|
|
62191
62191
|
return A.h = 1, A.u = 0;
|
|
@@ -62196,7 +62196,7 @@ function $B(t) {
|
|
|
62196
62196
|
function z() {
|
|
62197
62197
|
this.Ra = 0, this.oa = [], this.h = this.u = this.bb = this.Sb = this.pa = 0;
|
|
62198
62198
|
}
|
|
62199
|
-
function
|
|
62199
|
+
function Y(A) {
|
|
62200
62200
|
return A.Ra >>> (A.u & Va - 1) >>> 0;
|
|
62201
62201
|
}
|
|
62202
62202
|
function ee(A) {
|
|
@@ -62257,10 +62257,10 @@ function $B(t) {
|
|
|
62257
62257
|
}
|
|
62258
62258
|
function N(A, g) {
|
|
62259
62259
|
R[g] = function(b, x, S, j, F, P, M) {
|
|
62260
|
-
var
|
|
62261
|
-
for (
|
|
62262
|
-
var ie = R[A](P[M +
|
|
62263
|
-
P[M +
|
|
62260
|
+
var V;
|
|
62261
|
+
for (V = 0; V < F; ++V) {
|
|
62262
|
+
var ie = R[A](P[M + V - 1], S, j + V);
|
|
62263
|
+
P[M + V] = C(b[x + V], ie);
|
|
62264
62264
|
}
|
|
62265
62265
|
};
|
|
62266
62266
|
}
|
|
@@ -62296,25 +62296,25 @@ function $B(t) {
|
|
|
62296
62296
|
function gt(A, g, b, x, S, j) {
|
|
62297
62297
|
var F;
|
|
62298
62298
|
for (F = 0; F < x; ++F) {
|
|
62299
|
-
var P = g[b + F], M = P >>> 8,
|
|
62300
|
-
|
|
62299
|
+
var P = g[b + F], M = P >>> 8, V = P, ie = 255 & (ie = (ie = P >>> 16) + ((A.jd << 24 >> 24) * (M << 24 >> 24) >>> 5));
|
|
62300
|
+
V = 255 & (V = (V += (A.hd << 24 >> 24) * (M << 24 >> 24) >>> 5) + ((A.ud << 24 >> 24) * (ie << 24 >> 24) >>> 5)), S[j + F] = (4278255360 & P) + (ie << 16) + V;
|
|
62301
62301
|
}
|
|
62302
62302
|
}
|
|
62303
62303
|
function ct(A, g, b, x, S) {
|
|
62304
|
-
R[g] = function(j, F, P, M,
|
|
62305
|
-
for (M = ye; M <
|
|
62304
|
+
R[g] = function(j, F, P, M, V, ie, ye, G, ae) {
|
|
62305
|
+
for (M = ye; M < G; ++M)
|
|
62306
62306
|
for (ye = 0; ye < ae; ++ye)
|
|
62307
|
-
|
|
62308
|
-
}, R[A] = function(j, F, P, M,
|
|
62309
|
-
var
|
|
62310
|
-
if (8 >
|
|
62311
|
-
for (j = (1 << j.b) - 1, Ie = (1 <<
|
|
62307
|
+
V[ie++] = S(P[x(j[F++])]);
|
|
62308
|
+
}, R[A] = function(j, F, P, M, V, ie, ye) {
|
|
62309
|
+
var G = 8 >> j.b, ae = j.Ea, pe = j.K[0], Ie = j.w;
|
|
62310
|
+
if (8 > G)
|
|
62311
|
+
for (j = (1 << j.b) - 1, Ie = (1 << G) - 1; F < P; ++F) {
|
|
62312
62312
|
var me, Ue = 0;
|
|
62313
62313
|
for (me = 0; me < ae; ++me)
|
|
62314
|
-
me & j || (Ue = x(M[
|
|
62314
|
+
me & j || (Ue = x(M[V++])), ie[ye++] = S(pe[Ue & Ie]), Ue >>= G;
|
|
62315
62315
|
}
|
|
62316
62316
|
else
|
|
62317
|
-
R["VP8LMapColor" + b](M,
|
|
62317
|
+
R["VP8LMapColor" + b](M, V, pe, Ie, ie, ye, F, P, ae);
|
|
62318
62318
|
};
|
|
62319
62319
|
}
|
|
62320
62320
|
function tn(A, g, b, x, S) {
|
|
@@ -62379,20 +62379,20 @@ function $B(t) {
|
|
|
62379
62379
|
return alert("todo:WebPSamplerProcessPlane"), A.T;
|
|
62380
62380
|
}
|
|
62381
62381
|
function zr(A, g) {
|
|
62382
|
-
var b = A.T, x = g.ba.f.RGBA, S = x.eb, j = x.fb + A.ka * x.A, F = oi[g.ba.S], P = A.y, M = A.O,
|
|
62383
|
-
for (Ue == 0 ? F(P, M, null, null,
|
|
62384
|
-
ae =
|
|
62385
|
-
return M += A.fa, A.j + Fe < A.o ? (r(g.ec, g.fc, P, M, Me), r(g.cc, g.dc,
|
|
62382
|
+
var b = A.T, x = g.ba.f.RGBA, S = x.eb, j = x.fb + A.ka * x.A, F = oi[g.ba.S], P = A.y, M = A.O, V = A.f, ie = A.N, ye = A.ea, G = A.W, ae = g.cc, pe = g.dc, Ie = g.Mc, me = g.Nc, Ue = A.ka, Fe = A.ka + A.T, Me = A.U, Oe = Me + 1 >> 1;
|
|
62383
|
+
for (Ue == 0 ? F(P, M, null, null, V, ie, ye, G, V, ie, ye, G, S, j, null, null, Me) : (F(g.ec, g.fc, P, M, ae, pe, Ie, me, V, ie, ye, G, S, j - x.A, S, j, Me), ++b); Ue + 2 < Fe; Ue += 2)
|
|
62384
|
+
ae = V, pe = ie, Ie = ye, me = G, ie += A.Rc, G += A.Rc, j += 2 * x.A, F(P, (M += 2 * A.fa) - A.fa, P, M, ae, pe, Ie, me, V, ie, ye, G, S, j - x.A, S, j, Me);
|
|
62385
|
+
return M += A.fa, A.j + Fe < A.o ? (r(g.ec, g.fc, P, M, Me), r(g.cc, g.dc, V, ie, Oe), r(g.Mc, g.Nc, ye, G, Oe), b--) : 1 & Fe || F(P, M, null, null, V, ie, ye, G, V, ie, ye, G, S, j + x.A, null, null, Me), b;
|
|
62386
62386
|
}
|
|
62387
62387
|
function Go(A, g, b) {
|
|
62388
62388
|
var x = A.F, S = [A.J];
|
|
62389
62389
|
if (x != null) {
|
|
62390
62390
|
var j = A.U, F = g.ba.S, P = F == cg || F == Ag;
|
|
62391
62391
|
g = g.ba.f.RGBA;
|
|
62392
|
-
var M = [0],
|
|
62393
|
-
M[0] = A.T, A.Kb && (
|
|
62392
|
+
var M = [0], V = A.ka;
|
|
62393
|
+
M[0] = A.T, A.Kb && (V == 0 ? --M[0] : (--V, S[0] -= A.width), A.j + A.ka + A.T == A.o && (M[0] = A.o - A.j - V));
|
|
62394
62394
|
var ie = g.eb;
|
|
62395
|
-
|
|
62395
|
+
V = g.fb + V * g.A, A = j_(x, S[0], A.width, j, M, ie, V + (P ? 0 : 3), g.A), e(b == M), A && It(F) && Hu(ie, V, P, j, M, g.A);
|
|
62396
62396
|
}
|
|
62397
62397
|
return 0;
|
|
62398
62398
|
}
|
|
@@ -62443,8 +62443,8 @@ function $B(t) {
|
|
|
62443
62443
|
var b;
|
|
62444
62444
|
}
|
|
62445
62445
|
function Tn(A, g, b) {
|
|
62446
|
-
var x =
|
|
62447
|
-
return 0 < S && (re(b, b.u + 8), x =
|
|
62446
|
+
var x = Y(b), S = A[g += 255 & x].g - 8;
|
|
62447
|
+
return 0 < S && (re(b, b.u + 8), x = Y(b), g += A[g].value, g += x & (1 << S) - 1), re(b, b.u + A[g].g), A[g].value;
|
|
62448
62448
|
}
|
|
62449
62449
|
function yr(A, g, b) {
|
|
62450
62450
|
return b.g += A.g, b.value += A.value << g >>> 0, e(8 >= b.g), A.g;
|
|
@@ -62458,40 +62458,40 @@ function $B(t) {
|
|
|
62458
62458
|
g = F + g;
|
|
62459
62459
|
var P = b, M = x;
|
|
62460
62460
|
for (x = A.Ta, b = A.Ua; 0 < S--; ) {
|
|
62461
|
-
var
|
|
62462
|
-
switch (e(ie < ye), e(ye <=
|
|
62461
|
+
var V = A.gc[S], ie = F, ye = g, G = P, ae = M, pe = (M = x, P = b, V.Ea);
|
|
62462
|
+
switch (e(ie < ye), e(ye <= V.nc), V.hc) {
|
|
62463
62463
|
case 2:
|
|
62464
|
-
Pc(
|
|
62464
|
+
Pc(G, ae, (ye - ie) * pe, M, P);
|
|
62465
62465
|
break;
|
|
62466
62466
|
case 0:
|
|
62467
|
-
var Ie = ie, me = ye, Ue = M, Fe = P, Me = (st =
|
|
62468
|
-
Ie == 0 && (ho(
|
|
62467
|
+
var Ie = ie, me = ye, Ue = M, Fe = P, Me = (st = V).Ea;
|
|
62468
|
+
Ie == 0 && (ho(G, ae, null, null, 1, Ue, Fe), ht(G, ae + 1, 0, 0, Me - 1, Ue, Fe + 1), ae += Me, Fe += Me, ++Ie);
|
|
62469
62469
|
for (var Oe = 1 << st.b, ut = Oe - 1, et = _(Me, st.b), Dt = st.K, st = st.w + (Ie >> st.b) * et; Ie < me; ) {
|
|
62470
62470
|
var zt = Dt, pr = st, Rt = 1;
|
|
62471
|
-
for (go(
|
|
62471
|
+
for (go(G, ae, Ue, Fe - Me, 1, Ue, Fe); Rt < Me; ) {
|
|
62472
62472
|
var it = (Rt & ~ut) + Oe;
|
|
62473
|
-
it > Me && (it = Me), (0, pd[zt[pr++] >> 8 & 15])(
|
|
62473
|
+
it > Me && (it = Me), (0, pd[zt[pr++] >> 8 & 15])(G, ae + +Rt, Ue, Fe + Rt - Me, it - Rt, Ue, Fe + Rt), Rt = it;
|
|
62474
62474
|
}
|
|
62475
62475
|
ae += Me, Fe += Me, ++Ie & ut || (st += et);
|
|
62476
62476
|
}
|
|
62477
|
-
ye !=
|
|
62477
|
+
ye != V.nc && r(M, P - pe, M, P + (ye - ie - 1) * pe, pe);
|
|
62478
62478
|
break;
|
|
62479
62479
|
case 1:
|
|
62480
|
-
for (pe =
|
|
62481
|
-
for (ut = Oe, et =
|
|
62480
|
+
for (pe = G, me = ae, Me = (G = V.Ea) - (Fe = G & ~(Ue = (ae = 1 << V.b) - 1)), Ie = _(G, V.b), Oe = V.K, V = V.w + (ie >> V.b) * Ie; ie < ye; ) {
|
|
62481
|
+
for (ut = Oe, et = V, Dt = new se(), st = me + Fe, zt = me + G; me < st; )
|
|
62482
62482
|
Ke(ut[et++], Dt), na(Dt, pe, me, ae, M, P), me += ae, P += ae;
|
|
62483
|
-
me < zt && (Ke(ut[et++], Dt), na(Dt, pe, me, Me, M, P), me += Me, P += Me), ++ie & Ue || (
|
|
62483
|
+
me < zt && (Ke(ut[et++], Dt), na(Dt, pe, me, Me, M, P), me += Me, P += Me), ++ie & Ue || (V += Ie);
|
|
62484
62484
|
}
|
|
62485
62485
|
break;
|
|
62486
62486
|
case 3:
|
|
62487
|
-
if (
|
|
62488
|
-
for (me = M,
|
|
62487
|
+
if (G == M && ae == P && 0 < V.b) {
|
|
62488
|
+
for (me = M, G = pe = P + (ye - ie) * pe - (Fe = (ye - ie) * _(V.Ea, V.b)), ae = M, Ue = P, Ie = [], Fe = (Me = Fe) - 1; 0 <= Fe; --Fe)
|
|
62489
62489
|
Ie[Fe] = ae[Ue + Fe];
|
|
62490
62490
|
for (Fe = Me - 1; 0 <= Fe; --Fe)
|
|
62491
|
-
me[
|
|
62492
|
-
Qu(
|
|
62491
|
+
me[G + Fe] = Ie[Fe];
|
|
62492
|
+
Qu(V, ie, ye, M, pe, M, P);
|
|
62493
62493
|
} else
|
|
62494
|
-
Qu(
|
|
62494
|
+
Qu(V, ie, ye, G, ae, M, P);
|
|
62495
62495
|
}
|
|
62496
62496
|
P = x, M = b;
|
|
62497
62497
|
}
|
|
@@ -62502,14 +62502,14 @@ function $B(t) {
|
|
|
62502
62502
|
if (e(g <= A.l.o), e(16 >= S), 0 < S) {
|
|
62503
62503
|
var j = A.l, F = A.Ta, P = A.Ua, M = j.width;
|
|
62504
62504
|
if ($l(A, S, b, x), S = P = [P], e((b = A.C) < (x = g)), e(j.v < j.va), x > j.o && (x = j.o), b < j.j) {
|
|
62505
|
-
var
|
|
62506
|
-
b = j.j, S[0] +=
|
|
62505
|
+
var V = j.j - b;
|
|
62506
|
+
b = j.j, S[0] += V * M;
|
|
62507
62507
|
}
|
|
62508
62508
|
if (b >= x ? b = 0 : (S[0] += 4 * j.v, j.ka = b - j.j, j.U = j.va - j.v, j.T = x - b, b = 1), b) {
|
|
62509
62509
|
if (P = P[0], 11 > (b = A.ca).S) {
|
|
62510
|
-
var ie = b.f.RGBA, ye = (x = b.S, S = j.U, j = j.T,
|
|
62511
|
-
for (ie = ie.fb + A.Ma * ie.A; 0 <
|
|
62512
|
-
var ae = F, pe = P, Ie = S, me =
|
|
62510
|
+
var ie = b.f.RGBA, ye = (x = b.S, S = j.U, j = j.T, V = ie.eb, ie.A), G = j;
|
|
62511
|
+
for (ie = ie.fb + A.Ma * ie.A; 0 < G--; ) {
|
|
62512
|
+
var ae = F, pe = P, Ie = S, me = V, Ue = ie;
|
|
62513
62513
|
switch (x) {
|
|
62514
62514
|
case ag:
|
|
62515
62515
|
Mu(ae, pe, Ie, me, Ue);
|
|
@@ -62579,13 +62579,13 @@ function $B(t) {
|
|
|
62579
62579
|
function Ii(A, g) {
|
|
62580
62580
|
var b = A.l.ma, x = b.Z == 0 || b.Z == 1 ? A.l.j : A.C;
|
|
62581
62581
|
if (x = A.C < x ? x : A.C, e(g <= A.l.o), g > x) {
|
|
62582
|
-
var S = A.l.width, j = b.ca, F = b.tb + S * x, P = A.V, M = A.Ba + A.c * x,
|
|
62583
|
-
e(A.ab == 1), e(
|
|
62582
|
+
var S = A.l.width, j = b.ca, F = b.tb + S * x, P = A.V, M = A.Ba + A.c * x, V = A.gc;
|
|
62583
|
+
e(A.ab == 1), e(V[0].hc == 3), Oc(V[0], x, g, P, M, j, F), lo(b, x, g, j, F, S);
|
|
62584
62584
|
}
|
|
62585
62585
|
A.C = A.Ma = g;
|
|
62586
62586
|
}
|
|
62587
62587
|
function Ti(A, g, b, x, S, j, F) {
|
|
62588
|
-
var P = A.$ / x, M = A.$ % x,
|
|
62588
|
+
var P = A.$ / x, M = A.$ % x, V = A.m, ie = A.s, ye = b + A.$, G = ye;
|
|
62589
62589
|
S = b + x * S;
|
|
62590
62590
|
var ae = b + x * j, pe = 280 + ie.ua, Ie = A.Pb ? P : 16777216, me = 0 < ie.ua ? ie.Wa : null, Ue = ie.wc, Fe = ye < ae ? Er(ie, M, P) : null;
|
|
62591
62591
|
e(A.C < j), e(ae <= S);
|
|
@@ -62599,28 +62599,28 @@ function $B(t) {
|
|
|
62599
62599
|
e((Ie = A).Pb), Ie.wd = Ie.m, Ie.xd = ut, 0 < Ie.s.ua && xt(Ie.s.Wa, Ie.s.vb), Ie = P + yI;
|
|
62600
62600
|
}
|
|
62601
62601
|
if (M & Ue || (Fe = Er(ie, M, P)), e(Fe != null), Fe.Qb && (g[ye] = Fe.qb, Me = !0), !Me)
|
|
62602
|
-
if (le(
|
|
62603
|
-
Oe =
|
|
62604
|
-
var et = ye, Dt = Fe.pd[
|
|
62602
|
+
if (le(V), Fe.jc) {
|
|
62603
|
+
Oe = V, ut = g;
|
|
62604
|
+
var et = ye, Dt = Fe.pd[Y(Oe) & po - 1];
|
|
62605
62605
|
e(Fe.jc), 256 > Dt.g ? (re(Oe, Oe.u + Dt.g), ut[et] = Dt.value, Oe = 0) : (re(Oe, Oe.u + Dt.g - 256), e(256 <= Dt.value), Oe = Dt.value), Oe == 0 && (Me = !0);
|
|
62606
62606
|
} else
|
|
62607
|
-
Oe = Tn(Fe.G[0], Fe.H[0],
|
|
62608
|
-
if (
|
|
62607
|
+
Oe = Tn(Fe.G[0], Fe.H[0], V);
|
|
62608
|
+
if (V.h)
|
|
62609
62609
|
break;
|
|
62610
62610
|
if (Me || 256 > Oe) {
|
|
62611
62611
|
if (!Me)
|
|
62612
62612
|
if (Fe.nd)
|
|
62613
62613
|
g[ye] = (Fe.qb | Oe << 8) >>> 0;
|
|
62614
62614
|
else {
|
|
62615
|
-
if (le(
|
|
62615
|
+
if (le(V), Me = Tn(Fe.G[1], Fe.H[1], V), le(V), ut = Tn(Fe.G[2], Fe.H[2], V), et = Tn(Fe.G[3], Fe.H[3], V), V.h)
|
|
62616
62616
|
break;
|
|
62617
62617
|
g[ye] = (et << 24 | Me << 16 | Oe << 8 | ut) >>> 0;
|
|
62618
62618
|
}
|
|
62619
62619
|
if (Me = !1, ++ye, ++M >= x && (M = 0, ++P, F != null && P <= j && !(P % 16) && F(A, P), me != null))
|
|
62620
|
-
for (;
|
|
62621
|
-
Oe = g[
|
|
62620
|
+
for (; G < ye; )
|
|
62621
|
+
Oe = g[G++], me.X[(506832829 * Oe & 4294967295) >>> me.Mb] = Oe;
|
|
62622
62622
|
} else if (280 > Oe) {
|
|
62623
|
-
if (Oe = ei(Oe - 256,
|
|
62623
|
+
if (Oe = ei(Oe - 256, V), ut = Tn(Fe.G[4], Fe.H[4], V), le(V), ut = ti(x, ut = ei(ut, V)), V.h)
|
|
62624
62624
|
break;
|
|
62625
62625
|
if (ye - b < ut || S - ye < Oe)
|
|
62626
62626
|
break e;
|
|
@@ -62629,21 +62629,21 @@ function $B(t) {
|
|
|
62629
62629
|
for (ye += Oe, M += Oe; M >= x; )
|
|
62630
62630
|
M -= x, ++P, F != null && P <= j && !(P % 16) && F(A, P);
|
|
62631
62631
|
if (e(ye <= S), M & Ue && (Fe = Er(ie, M, P)), me != null)
|
|
62632
|
-
for (;
|
|
62633
|
-
Oe = g[
|
|
62632
|
+
for (; G < ye; )
|
|
62633
|
+
Oe = g[G++], me.X[(506832829 * Oe & 4294967295) >>> me.Mb] = Oe;
|
|
62634
62634
|
} else {
|
|
62635
62635
|
if (!(Oe < pe))
|
|
62636
62636
|
break e;
|
|
62637
|
-
for (Me = Oe - 280, e(me != null);
|
|
62638
|
-
Oe = g[
|
|
62637
|
+
for (Me = Oe - 280, e(me != null); G < ye; )
|
|
62638
|
+
Oe = g[G++], me.X[(506832829 * Oe & 4294967295) >>> me.Mb] = Oe;
|
|
62639
62639
|
Oe = ye, e(!(Me >>> (ut = me).Xa)), g[Oe] = ut.X[Me], Me = !0;
|
|
62640
62640
|
}
|
|
62641
|
-
Me || e(
|
|
62641
|
+
Me || e(V.h == ee(V));
|
|
62642
62642
|
}
|
|
62643
|
-
if (A.Pb &&
|
|
62643
|
+
if (A.Pb && V.h && ye < S)
|
|
62644
62644
|
e(A.m.h), A.a = 5, A.m = A.wd, A.$ = A.xd, 0 < A.s.ua && xt(A.s.vb, A.s.Wa);
|
|
62645
62645
|
else {
|
|
62646
|
-
if (
|
|
62646
|
+
if (V.h)
|
|
62647
62647
|
break e;
|
|
62648
62648
|
F != null && F(A, P > j ? j : P), A.a = 0, A.$ = ye - b;
|
|
62649
62649
|
}
|
|
@@ -62661,23 +62661,23 @@ function $B(t) {
|
|
|
62661
62661
|
return A == null ? null : (A.a = 0, A.xb = H_, Mt("Predictor", "VP8LPredictors"), Mt("Predictor", "VP8LPredictors_C"), Mt("PredictorAdd", "VP8LPredictorsAdd"), Mt("PredictorAdd", "VP8LPredictorsAdd_C"), Pc = lt, na = gt, Mu = tn, Fs = Yt, fo = At, yn = St, bn = cn, R.VP8LMapColor32b = Nc, R.VP8LMapColor8b = ud, A);
|
|
62662
62662
|
}
|
|
62663
62663
|
function co(A, g, b, x, S) {
|
|
62664
|
-
var j = 1, F = [A], P = [g], M = x.m,
|
|
62664
|
+
var j = 1, F = [A], P = [g], M = x.m, V = x.s, ie = null, ye = 0;
|
|
62665
62665
|
e:
|
|
62666
62666
|
for (; ; ) {
|
|
62667
62667
|
if (b)
|
|
62668
62668
|
for (; j && de(M, 1); ) {
|
|
62669
|
-
var
|
|
62669
|
+
var G = F, ae = P, pe = x, Ie = 1, me = pe.m, Ue = pe.gc[pe.ab], Fe = de(me, 2);
|
|
62670
62670
|
if (pe.Oc & 1 << Fe)
|
|
62671
62671
|
j = 0;
|
|
62672
62672
|
else {
|
|
62673
|
-
switch (pe.Oc |= 1 << Fe, Ue.hc = Fe, Ue.Ea =
|
|
62673
|
+
switch (pe.Oc |= 1 << Fe, Ue.hc = Fe, Ue.Ea = G[0], Ue.nc = ae[0], Ue.K = [null], ++pe.ab, e(4 >= pe.ab), Fe) {
|
|
62674
62674
|
case 0:
|
|
62675
62675
|
case 1:
|
|
62676
62676
|
Ue.b = de(me, 3) + 2, Ie = co(_(Ue.Ea, Ue.b), _(Ue.nc, Ue.b), 0, pe, Ue.K), Ue.K = Ue.K[0];
|
|
62677
62677
|
break;
|
|
62678
62678
|
case 3:
|
|
62679
62679
|
var Me, Oe = de(me, 8) + 1, ut = 16 < Oe ? 0 : 4 < Oe ? 1 : 2 < Oe ? 2 : 3;
|
|
62680
|
-
if (
|
|
62680
|
+
if (G[0] = _(Ue.Ea, ut), Ue.b = ut, Me = Ie = co(Oe, 1, 0, pe, Ue.K)) {
|
|
62681
62681
|
var et, Dt = Oe, st = Ue, zt = 1 << (8 >> st.b), pr = i(zt);
|
|
62682
62682
|
if (pr == null)
|
|
62683
62683
|
Me = 0;
|
|
@@ -62766,7 +62766,7 @@ function $B(t) {
|
|
|
62766
62766
|
F1 = bg;
|
|
62767
62767
|
for (Gu = 0; Gu < bg && F1--; ) {
|
|
62768
62768
|
le(Ja);
|
|
62769
|
-
var ix = sx[0 + (127 &
|
|
62769
|
+
var ix = sx[0 + (127 & Y(Ja))];
|
|
62770
62770
|
re(Ja, Ja.u + ix.g);
|
|
62771
62771
|
var Qc = ix.value;
|
|
62772
62772
|
if (16 > Qc)
|
|
@@ -62813,12 +62813,12 @@ function $B(t) {
|
|
|
62813
62813
|
break e;
|
|
62814
62814
|
}
|
|
62815
62815
|
if (0 < ye) {
|
|
62816
|
-
if (
|
|
62816
|
+
if (V.ua = 1 << ye, !Z(V.Wa, ye)) {
|
|
62817
62817
|
x.a = 1, j = 0;
|
|
62818
62818
|
break e;
|
|
62819
62819
|
}
|
|
62820
62820
|
} else
|
|
62821
|
-
|
|
62821
|
+
V.ua = 0;
|
|
62822
62822
|
var P1 = x, lx = F, WI = P, N1 = P1.s, O1 = N1.xc;
|
|
62823
62823
|
if (P1.c = lx, P1.i = WI, N1.md = _(lx, O1), N1.wc = O1 == 0 ? -1 : (1 << O1) - 1, b) {
|
|
62824
62824
|
x.xb = BI;
|
|
@@ -62831,7 +62831,7 @@ function $B(t) {
|
|
|
62831
62831
|
j = (j = Ti(x, ie, 0, F, P, P, null)) && !M.h;
|
|
62832
62832
|
break e;
|
|
62833
62833
|
}
|
|
62834
|
-
return j ? (S != null ? S[0] = ie : (e(ie == null), e(b)), x.$ = 0, b || ni(
|
|
62834
|
+
return j ? (S != null ? S[0] = ie : (e(ie == null), e(b)), x.$ = 0, b || ni(V)) : ni(V), j;
|
|
62835
62835
|
}
|
|
62836
62836
|
function td(A, g) {
|
|
62837
62837
|
var b = A.c * A.i, x = b + g + 16 * g;
|
|
@@ -62840,8 +62840,8 @@ function $B(t) {
|
|
|
62840
62840
|
function Cc(A, g) {
|
|
62841
62841
|
var b = A.C, x = g - b, S = A.V, j = A.Ba + A.c * b;
|
|
62842
62842
|
for (e(g <= A.l.o); 0 < x; ) {
|
|
62843
|
-
var F = 16 < x ? 16 : x, P = A.l.ma, M = A.l.width,
|
|
62844
|
-
$l(A, F, S, j), F_(
|
|
62843
|
+
var F = 16 < x ? 16 : x, P = A.l.ma, M = A.l.width, V = M * F, ie = P.ca, ye = P.tb + M * b, G = A.Ta, ae = A.Ua;
|
|
62844
|
+
$l(A, F, S, j), F_(G, ae, ie, ye, V), lo(P, b, b + F, ie, ye, M), x -= F, S += F * A.c, b += F;
|
|
62845
62845
|
}
|
|
62846
62846
|
e(b == g), A.C = A.Ma = g;
|
|
62847
62847
|
}
|
|
@@ -62928,7 +62928,7 @@ function $B(t) {
|
|
|
62928
62928
|
if (F.ub > S)
|
|
62929
62929
|
return tr(A, 7, "bad partition length");
|
|
62930
62930
|
be(j = A.m, b, x, F.ub), x += F.ub, S -= F.ub, F.Rb && (P.Ld = we(j), P.Kd = we(j)), P = A.Qa;
|
|
62931
|
-
var M,
|
|
62931
|
+
var M, V = A.Pa;
|
|
62932
62932
|
if (e(j != null), e(P != null), P.Cb = we(j), P.Cb) {
|
|
62933
62933
|
if (P.Bb = we(j), we(j)) {
|
|
62934
62934
|
for (P.Fb = we(j), M = 0; 4 > M; ++M)
|
|
@@ -62938,44 +62938,44 @@ function $B(t) {
|
|
|
62938
62938
|
}
|
|
62939
62939
|
if (P.Bb)
|
|
62940
62940
|
for (M = 0; 3 > M; ++M)
|
|
62941
|
-
|
|
62941
|
+
V.jb[M] = we(j) ? ve(j, 8) : 255;
|
|
62942
62942
|
} else
|
|
62943
62943
|
P.Bb = 0;
|
|
62944
62944
|
if (j.Ka)
|
|
62945
62945
|
return tr(A, 3, "cannot parse segment header");
|
|
62946
62946
|
if ((P = A.ed).zd = we(j), P.Tb = ve(j, 6), P.wb = ve(j, 3), P.Pc = we(j), P.Pc && we(j)) {
|
|
62947
|
-
for (
|
|
62948
|
-
we(j) && (P.vd[
|
|
62949
|
-
for (
|
|
62950
|
-
we(j) && (P.od[
|
|
62947
|
+
for (V = 0; 4 > V; ++V)
|
|
62948
|
+
we(j) && (P.vd[V] = ue(j, 6));
|
|
62949
|
+
for (V = 0; 4 > V; ++V)
|
|
62950
|
+
we(j) && (P.od[V] = ue(j, 6));
|
|
62951
62951
|
}
|
|
62952
62952
|
if (A.L = P.Tb == 0 ? 0 : P.zd ? 1 : 2, j.Ka)
|
|
62953
62953
|
return tr(A, 3, "cannot parse filter header");
|
|
62954
62954
|
var ie = S;
|
|
62955
|
-
if (S = M = x, x = M + ie, P = ie, A.Xb = (1 << ve(A.m, 2)) - 1, ie < 3 * (
|
|
62955
|
+
if (S = M = x, x = M + ie, P = ie, A.Xb = (1 << ve(A.m, 2)) - 1, ie < 3 * (V = A.Xb))
|
|
62956
62956
|
b = 7;
|
|
62957
62957
|
else {
|
|
62958
|
-
for (M += 3 *
|
|
62958
|
+
for (M += 3 * V, P -= 3 * V, ie = 0; ie < V; ++ie) {
|
|
62959
62959
|
var ye = b[S + 0] | b[S + 1] << 8 | b[S + 2] << 16;
|
|
62960
62960
|
ye > P && (ye = P), be(A.Jc[+ie], b, M, ye), M += ye, P -= ye, S += 3;
|
|
62961
62961
|
}
|
|
62962
|
-
be(A.Jc[+
|
|
62962
|
+
be(A.Jc[+V], b, M, P), b = M < x ? 0 : 5;
|
|
62963
62963
|
}
|
|
62964
62964
|
if (b != 0)
|
|
62965
62965
|
return tr(A, b, "cannot parse partitions");
|
|
62966
|
-
for (b = ve(M = A.m, 7), S = we(M) ? ue(M, 4) : 0, x = we(M) ? ue(M, 4) : 0, P = we(M) ? ue(M, 4) : 0,
|
|
62966
|
+
for (b = ve(M = A.m, 7), S = we(M) ? ue(M, 4) : 0, x = we(M) ? ue(M, 4) : 0, P = we(M) ? ue(M, 4) : 0, V = we(M) ? ue(M, 4) : 0, M = we(M) ? ue(M, 4) : 0, ie = A.Qa, ye = 0; 4 > ye; ++ye) {
|
|
62967
62967
|
if (ie.Cb) {
|
|
62968
|
-
var
|
|
62969
|
-
ie.Fb || (
|
|
62968
|
+
var G = ie.Zb[ye];
|
|
62969
|
+
ie.Fb || (G += b);
|
|
62970
62970
|
} else {
|
|
62971
62971
|
if (0 < ye) {
|
|
62972
62972
|
A.pb[ye] = A.pb[0];
|
|
62973
62973
|
continue;
|
|
62974
62974
|
}
|
|
62975
|
-
|
|
62975
|
+
G = b;
|
|
62976
62976
|
}
|
|
62977
62977
|
var ae = A.pb[ye];
|
|
62978
|
-
ae.Sc[0] = S1[ur(
|
|
62978
|
+
ae.Sc[0] = S1[ur(G + S, 127)], ae.Sc[1] = I1[ur(G + 0, 127)], ae.Eb[0] = 2 * S1[ur(G + x, 127)], ae.Eb[1] = 101581 * I1[ur(G + P, 127)] >> 16, 8 > ae.Eb[1] && (ae.Eb[1] = 8), ae.Qc[0] = S1[ur(G + V, 117)], ae.Qc[1] = I1[ur(G + M, 127)], ae.lc = G + M;
|
|
62979
62979
|
}
|
|
62980
62980
|
if (!F.Rb)
|
|
62981
62981
|
return tr(A, 4, "Not a key frame.");
|
|
@@ -62983,7 +62983,7 @@ function $B(t) {
|
|
|
62983
62983
|
for (S = 0; 8 > S; ++S)
|
|
62984
62984
|
for (x = 0; 3 > x; ++x)
|
|
62985
62985
|
for (P = 0; 11 > P; ++P)
|
|
62986
|
-
|
|
62986
|
+
V = Te(j, xI[b][S][x][P]) ? ve(j, 8) : wI[b][S][x][P], F.Wc[b][S].Yb[x][P] = V;
|
|
62987
62987
|
for (S = 0; 17 > S; ++S)
|
|
62988
62988
|
F.Xc[b][S] = F.Wc[b][CI[S]];
|
|
62989
62989
|
}
|
|
@@ -62999,22 +62999,22 @@ function $B(t) {
|
|
|
62999
62999
|
return 16;
|
|
63000
63000
|
var M = g[S + 1].Yb;
|
|
63001
63001
|
if (Te(A, P[b + 2])) {
|
|
63002
|
-
var
|
|
63003
|
-
if (Te(
|
|
63004
|
-
if (Te(
|
|
63005
|
-
for (P = 0, ye = 2 * (ie = Te(
|
|
63006
|
-
ie += ie + Te(
|
|
63002
|
+
var V = A, ie = 0;
|
|
63003
|
+
if (Te(V, (G = P)[(ye = b) + 3]))
|
|
63004
|
+
if (Te(V, G[ye + 6])) {
|
|
63005
|
+
for (P = 0, ye = 2 * (ie = Te(V, G[ye + 8])) + (G = Te(V, G[ye + 9 + ie])), ie = 0, G = bI[ye]; G[P]; ++P)
|
|
63006
|
+
ie += ie + Te(V, G[P]);
|
|
63007
63007
|
ie += 3 + (8 << ye);
|
|
63008
63008
|
} else
|
|
63009
|
-
Te(
|
|
63009
|
+
Te(V, G[ye + 7]) ? (ie = 7 + 2 * Te(V, 165), ie += Te(V, 145)) : ie = 5 + Te(V, 159);
|
|
63010
63010
|
else
|
|
63011
|
-
ie = Te(
|
|
63011
|
+
ie = Te(V, G[ye + 4]) ? 3 + Te(V, G[ye + 5]) : 2;
|
|
63012
63012
|
P = M[2];
|
|
63013
63013
|
} else
|
|
63014
63014
|
ie = 1, P = M[1];
|
|
63015
|
-
M = F + vI[S], 0 > (
|
|
63016
|
-
var ye,
|
|
63017
|
-
--
|
|
63015
|
+
M = F + vI[S], 0 > (V = A).b && Be(V);
|
|
63016
|
+
var ye, G = V.b, ae = (ye = V.Ca >> 1) - (V.I >> G) >> 31;
|
|
63017
|
+
--V.b, V.Ca += ae, V.Ca |= 1, V.I -= (ye + 1 & ae) << G, j[M] = ((ie ^ ae) - ae) * x[(0 < S) + 0];
|
|
63018
63018
|
}
|
|
63019
63019
|
return 16;
|
|
63020
63020
|
}
|
|
@@ -63034,11 +63034,11 @@ function $B(t) {
|
|
|
63034
63034
|
function Cu(A, g, b, x) {
|
|
63035
63035
|
var S, j = 0, F = i(16);
|
|
63036
63036
|
for (S = 0; 4 > S; ++S) {
|
|
63037
|
-
var P = A[g + 0] + A[g + 8], M = A[g + 0] - A[g + 8],
|
|
63038
|
-
F[j + 0] = P + ie, F[j + 1] = M +
|
|
63037
|
+
var P = A[g + 0] + A[g + 8], M = A[g + 0] - A[g + 8], V = (35468 * A[g + 4] >> 16) - Ln(A[g + 12]), ie = Ln(A[g + 4]) + (35468 * A[g + 12] >> 16);
|
|
63038
|
+
F[j + 0] = P + ie, F[j + 1] = M + V, F[j + 2] = M - V, F[j + 3] = P - ie, j += 4, g++;
|
|
63039
63039
|
}
|
|
63040
63040
|
for (S = j = 0; 4 > S; ++S)
|
|
63041
|
-
P = (A = F[j + 0] + 4) + F[j + 8], M = A - F[j + 8],
|
|
63041
|
+
P = (A = F[j + 0] + 4) + F[j + 8], M = A - F[j + 8], V = (35468 * F[j + 4] >> 16) - Ln(F[j + 12]), Ui(b, x, 0, 0, P + (ie = Ln(F[j + 4]) + (35468 * F[j + 12] >> 16))), Ui(b, x, 1, 0, M + V), Ui(b, x, 2, 0, M - V), Ui(b, x, 3, 0, P - ie), j++, x += 32;
|
|
63042
63042
|
}
|
|
63043
63043
|
function a1(A, g, b, x) {
|
|
63044
63044
|
var S = A[g + 0] + 4, j = 35468 * A[g + 4] >> 16, F = Ln(A[g + 4]), P = 35468 * A[g + 1] >> 16;
|
|
@@ -63062,18 +63062,18 @@ function $B(t) {
|
|
|
63062
63062
|
function ng(A, g, b, x) {
|
|
63063
63063
|
var S, j = i(16);
|
|
63064
63064
|
for (S = 0; 4 > S; ++S) {
|
|
63065
|
-
var F = A[g + 0 + S] + A[g + 12 + S], P = A[g + 4 + S] + A[g + 8 + S], M = A[g + 4 + S] - A[g + 8 + S],
|
|
63066
|
-
j[0 + S] = F + P, j[8 + S] = F - P, j[4 + S] =
|
|
63065
|
+
var F = A[g + 0 + S] + A[g + 12 + S], P = A[g + 4 + S] + A[g + 8 + S], M = A[g + 4 + S] - A[g + 8 + S], V = A[g + 0 + S] - A[g + 12 + S];
|
|
63066
|
+
j[0 + S] = F + P, j[8 + S] = F - P, j[4 + S] = V + M, j[12 + S] = V - M;
|
|
63067
63067
|
}
|
|
63068
63068
|
for (S = 0; 4 > S; ++S)
|
|
63069
|
-
F = (A = j[0 + 4 * S] + 3) + j[3 + 4 * S], P = j[1 + 4 * S] + j[2 + 4 * S], M = j[1 + 4 * S] - j[2 + 4 * S],
|
|
63069
|
+
F = (A = j[0 + 4 * S] + 3) + j[3 + 4 * S], P = j[1 + 4 * S] + j[2 + 4 * S], M = j[1 + 4 * S] - j[2 + 4 * S], V = A - j[3 + 4 * S], b[x + 0] = F + P >> 3, b[x + 16] = V + M >> 3, b[x + 32] = F - P >> 3, b[x + 48] = V - M >> 3, x += 64;
|
|
63070
63070
|
}
|
|
63071
63071
|
function Qa(A, g, b) {
|
|
63072
63072
|
var x, S = g - 32, j = Ds, F = 255 - A[S - 1];
|
|
63073
63073
|
for (x = 0; x < b; ++x) {
|
|
63074
|
-
var P, M = j,
|
|
63074
|
+
var P, M = j, V = F + A[g - 1];
|
|
63075
63075
|
for (P = 0; P < b; ++P)
|
|
63076
|
-
A[g + P] = M[
|
|
63076
|
+
A[g + P] = M[V + A[S + P]];
|
|
63077
63077
|
g += 32;
|
|
63078
63078
|
}
|
|
63079
63079
|
}
|
|
@@ -63142,28 +63142,28 @@ function $B(t) {
|
|
|
63142
63142
|
s(A, g + 32 * b, x, 4);
|
|
63143
63143
|
}
|
|
63144
63144
|
function m1(A, g) {
|
|
63145
|
-
var b = A[g - 1 + 0], x = A[g - 1 + 32], S = A[g - 1 + 64], j = A[g - 1 - 32], F = A[g + 0 - 32], P = A[g + 1 - 32], M = A[g + 2 - 32],
|
|
63146
|
-
A[g + 0 + 96] = Bt(x, S, A[g - 1 + 96]), A[g + 1 + 96] = A[g + 0 + 64] = Bt(b, x, S), A[g + 2 + 96] = A[g + 1 + 64] = A[g + 0 + 32] = Bt(j, b, x), A[g + 3 + 96] = A[g + 2 + 64] = A[g + 1 + 32] = A[g + 0 + 0] = Bt(F, j, b), A[g + 3 + 64] = A[g + 2 + 32] = A[g + 1 + 0] = Bt(P, F, j), A[g + 3 + 32] = A[g + 2 + 0] = Bt(M, P, F), A[g + 3 + 0] = Bt(
|
|
63145
|
+
var b = A[g - 1 + 0], x = A[g - 1 + 32], S = A[g - 1 + 64], j = A[g - 1 - 32], F = A[g + 0 - 32], P = A[g + 1 - 32], M = A[g + 2 - 32], V = A[g + 3 - 32];
|
|
63146
|
+
A[g + 0 + 96] = Bt(x, S, A[g - 1 + 96]), A[g + 1 + 96] = A[g + 0 + 64] = Bt(b, x, S), A[g + 2 + 96] = A[g + 1 + 64] = A[g + 0 + 32] = Bt(j, b, x), A[g + 3 + 96] = A[g + 2 + 64] = A[g + 1 + 32] = A[g + 0 + 0] = Bt(F, j, b), A[g + 3 + 64] = A[g + 2 + 32] = A[g + 1 + 0] = Bt(P, F, j), A[g + 3 + 32] = A[g + 2 + 0] = Bt(M, P, F), A[g + 3 + 0] = Bt(V, M, P);
|
|
63147
63147
|
}
|
|
63148
63148
|
function Xo(A, g) {
|
|
63149
63149
|
var b = A[g + 1 - 32], x = A[g + 2 - 32], S = A[g + 3 - 32], j = A[g + 4 - 32], F = A[g + 5 - 32], P = A[g + 6 - 32], M = A[g + 7 - 32];
|
|
63150
63150
|
A[g + 0 + 0] = Bt(A[g + 0 - 32], b, x), A[g + 1 + 0] = A[g + 0 + 32] = Bt(b, x, S), A[g + 2 + 0] = A[g + 1 + 32] = A[g + 0 + 64] = Bt(x, S, j), A[g + 3 + 0] = A[g + 2 + 32] = A[g + 1 + 64] = A[g + 0 + 96] = Bt(S, j, F), A[g + 3 + 32] = A[g + 2 + 64] = A[g + 1 + 96] = Bt(j, F, P), A[g + 3 + 64] = A[g + 2 + 96] = Bt(F, P, M), A[g + 3 + 96] = Bt(P, M, M);
|
|
63151
63151
|
}
|
|
63152
63152
|
function Zo(A, g) {
|
|
63153
|
-
var b = A[g - 1 + 0], x = A[g - 1 + 32], S = A[g - 1 + 64], j = A[g - 1 - 32], F = A[g + 0 - 32], P = A[g + 1 - 32], M = A[g + 2 - 32],
|
|
63154
|
-
A[g + 0 + 0] = A[g + 1 + 64] = j + F + 1 >> 1, A[g + 1 + 0] = A[g + 2 + 64] = F + P + 1 >> 1, A[g + 2 + 0] = A[g + 3 + 64] = P + M + 1 >> 1, A[g + 3 + 0] = M +
|
|
63153
|
+
var b = A[g - 1 + 0], x = A[g - 1 + 32], S = A[g - 1 + 64], j = A[g - 1 - 32], F = A[g + 0 - 32], P = A[g + 1 - 32], M = A[g + 2 - 32], V = A[g + 3 - 32];
|
|
63154
|
+
A[g + 0 + 0] = A[g + 1 + 64] = j + F + 1 >> 1, A[g + 1 + 0] = A[g + 2 + 64] = F + P + 1 >> 1, A[g + 2 + 0] = A[g + 3 + 64] = P + M + 1 >> 1, A[g + 3 + 0] = M + V + 1 >> 1, A[g + 0 + 96] = Bt(S, x, b), A[g + 0 + 64] = Bt(x, b, j), A[g + 0 + 32] = A[g + 1 + 96] = Bt(b, j, F), A[g + 1 + 32] = A[g + 2 + 96] = Bt(j, F, P), A[g + 2 + 32] = A[g + 3 + 96] = Bt(F, P, M), A[g + 3 + 32] = Bt(P, M, V);
|
|
63155
63155
|
}
|
|
63156
63156
|
function y1(A, g) {
|
|
63157
|
-
var b = A[g + 0 - 32], x = A[g + 1 - 32], S = A[g + 2 - 32], j = A[g + 3 - 32], F = A[g + 4 - 32], P = A[g + 5 - 32], M = A[g + 6 - 32],
|
|
63158
|
-
A[g + 0 + 0] = b + x + 1 >> 1, A[g + 1 + 0] = A[g + 0 + 64] = x + S + 1 >> 1, A[g + 2 + 0] = A[g + 1 + 64] = S + j + 1 >> 1, A[g + 3 + 0] = A[g + 2 + 64] = j + F + 1 >> 1, A[g + 0 + 32] = Bt(b, x, S), A[g + 1 + 32] = A[g + 0 + 96] = Bt(x, S, j), A[g + 2 + 32] = A[g + 1 + 96] = Bt(S, j, F), A[g + 3 + 32] = A[g + 2 + 96] = Bt(j, F, P), A[g + 3 + 64] = Bt(F, P, M), A[g + 3 + 96] = Bt(P, M,
|
|
63157
|
+
var b = A[g + 0 - 32], x = A[g + 1 - 32], S = A[g + 2 - 32], j = A[g + 3 - 32], F = A[g + 4 - 32], P = A[g + 5 - 32], M = A[g + 6 - 32], V = A[g + 7 - 32];
|
|
63158
|
+
A[g + 0 + 0] = b + x + 1 >> 1, A[g + 1 + 0] = A[g + 0 + 64] = x + S + 1 >> 1, A[g + 2 + 0] = A[g + 1 + 64] = S + j + 1 >> 1, A[g + 3 + 0] = A[g + 2 + 64] = j + F + 1 >> 1, A[g + 0 + 32] = Bt(b, x, S), A[g + 1 + 32] = A[g + 0 + 96] = Bt(x, S, j), A[g + 2 + 32] = A[g + 1 + 96] = Bt(S, j, F), A[g + 3 + 32] = A[g + 2 + 96] = Bt(j, F, P), A[g + 3 + 64] = Bt(F, P, M), A[g + 3 + 96] = Bt(P, M, V);
|
|
63159
63159
|
}
|
|
63160
63160
|
function b1(A, g) {
|
|
63161
63161
|
var b = A[g - 1 + 0], x = A[g - 1 + 32], S = A[g - 1 + 64], j = A[g - 1 + 96];
|
|
63162
63162
|
A[g + 0 + 0] = b + x + 1 >> 1, A[g + 2 + 0] = A[g + 0 + 32] = x + S + 1 >> 1, A[g + 2 + 32] = A[g + 0 + 64] = S + j + 1 >> 1, A[g + 1 + 0] = Bt(b, x, S), A[g + 3 + 0] = A[g + 1 + 32] = Bt(x, S, j), A[g + 3 + 32] = A[g + 1 + 64] = Bt(S, j, j), A[g + 3 + 64] = A[g + 2 + 64] = A[g + 0 + 96] = A[g + 1 + 96] = A[g + 2 + 96] = A[g + 3 + 96] = j;
|
|
63163
63163
|
}
|
|
63164
63164
|
function Sc(A, g) {
|
|
63165
|
-
var b = A[g - 1 + 0], x = A[g - 1 + 32], S = A[g - 1 + 64], j = A[g - 1 + 96], F = A[g - 1 - 32], P = A[g + 0 - 32], M = A[g + 1 - 32],
|
|
63166
|
-
A[g + 0 + 0] = A[g + 2 + 32] = b + F + 1 >> 1, A[g + 0 + 32] = A[g + 2 + 64] = x + b + 1 >> 1, A[g + 0 + 64] = A[g + 2 + 96] = S + x + 1 >> 1, A[g + 0 + 96] = j + S + 1 >> 1, A[g + 3 + 0] = Bt(P, M,
|
|
63165
|
+
var b = A[g - 1 + 0], x = A[g - 1 + 32], S = A[g - 1 + 64], j = A[g - 1 + 96], F = A[g - 1 - 32], P = A[g + 0 - 32], M = A[g + 1 - 32], V = A[g + 2 - 32];
|
|
63166
|
+
A[g + 0 + 0] = A[g + 2 + 32] = b + F + 1 >> 1, A[g + 0 + 32] = A[g + 2 + 64] = x + b + 1 >> 1, A[g + 0 + 64] = A[g + 2 + 96] = S + x + 1 >> 1, A[g + 0 + 96] = j + S + 1 >> 1, A[g + 3 + 0] = Bt(P, M, V), A[g + 2 + 0] = Bt(F, P, M), A[g + 1 + 0] = A[g + 3 + 32] = Bt(b, F, P), A[g + 1 + 32] = A[g + 3 + 64] = Bt(x, b, F), A[g + 1 + 64] = A[g + 3 + 96] = Bt(S, x, b), A[g + 1 + 96] = Bt(j, S, x);
|
|
63167
63167
|
}
|
|
63168
63168
|
function Su(A, g) {
|
|
63169
63169
|
var b;
|
|
@@ -63213,8 +63213,8 @@ function $B(t) {
|
|
|
63213
63213
|
return 4 * ii[255 + A[g - b] - A[g + 0]] + ii[255 + A[g - 2 * b] - A[g + b]] <= x;
|
|
63214
63214
|
}
|
|
63215
63215
|
function Uc(A, g, b, x, S) {
|
|
63216
|
-
var j = A[g - 3 * b], F = A[g - 2 * b], P = A[g - b], M = A[g + 0],
|
|
63217
|
-
return 4 * ii[255 + P - M] + ii[255 + F -
|
|
63216
|
+
var j = A[g - 3 * b], F = A[g - 2 * b], P = A[g - b], M = A[g + 0], V = A[g + b], ie = A[g + 2 * b], ye = A[g + 3 * b];
|
|
63217
|
+
return 4 * ii[255 + P - M] + ii[255 + F - V] > x ? 0 : ii[255 + A[g - 4 * b] - j] <= S && ii[255 + j - F] <= S && ii[255 + F - P] <= S && ii[255 + ye - ie] <= S && ii[255 + ie - V] <= S && ii[255 + V - M] <= S;
|
|
63218
63218
|
}
|
|
63219
63219
|
function ju(A, g, b, x) {
|
|
63220
63220
|
var S = 2 * x + 1;
|
|
@@ -63242,8 +63242,8 @@ function $B(t) {
|
|
|
63242
63242
|
if (ld(A, g, b, P))
|
|
63243
63243
|
ad(A, g, b);
|
|
63244
63244
|
else {
|
|
63245
|
-
var M = A,
|
|
63246
|
-
M[
|
|
63245
|
+
var M = A, V = g, ie = b, ye = M[V - 2 * ie], G = M[V - ie], ae = M[V + 0], pe = M[V + ie], Ie = M[V + 2 * ie], me = 27 * (Fe = x1[1020 + 3 * (ae - G) + x1[1020 + ye - pe]]) + 63 >> 7, Ue = 18 * Fe + 63 >> 7, Fe = 9 * Fe + 63 >> 7;
|
|
63246
|
+
M[V - 3 * ie] = Ds[255 + M[V - 3 * ie] + Fe], M[V - 2 * ie] = Ds[255 + ye + Ue], M[V - ie] = Ds[255 + G + me], M[V + 0] = Ds[255 + ae - me], M[V + ie] = Ds[255 + pe - Ue], M[V + 2 * ie] = Ds[255 + Ie - Fe];
|
|
63247
63247
|
}
|
|
63248
63248
|
g += x;
|
|
63249
63249
|
}
|
|
@@ -63254,8 +63254,8 @@ function $B(t) {
|
|
|
63254
63254
|
if (ld(A, g, b, P))
|
|
63255
63255
|
ad(A, g, b);
|
|
63256
63256
|
else {
|
|
63257
|
-
var M = A,
|
|
63258
|
-
M[
|
|
63257
|
+
var M = A, V = g, ie = b, ye = M[V - ie], G = M[V + 0], ae = M[V + ie], pe = og[112 + (4 + (Ie = 3 * (G - ye)) >> 3)], Ie = og[112 + (Ie + 3 >> 3)], me = pe + 1 >> 1;
|
|
63258
|
+
M[V - 2 * ie] = Ds[255 + M[V - 2 * ie] + me], M[V - ie] = Ds[255 + ye + Ie], M[V + 0] = Ds[255 + G - pe], M[V + ie] = Ds[255 + ae - me];
|
|
63259
63259
|
}
|
|
63260
63260
|
g += x;
|
|
63261
63261
|
}
|
|
@@ -63266,7 +63266,7 @@ function $B(t) {
|
|
|
63266
63266
|
function I(A, g, b, x, S, j) {
|
|
63267
63267
|
js(A, g, 1, b, 16, x, S, j);
|
|
63268
63268
|
}
|
|
63269
|
-
function
|
|
63269
|
+
function J(A, g, b, x, S, j) {
|
|
63270
63270
|
var F;
|
|
63271
63271
|
for (F = 3; 0 < F; --F)
|
|
63272
63272
|
uo(A, g += 4 * b, b, 1, 16, x, S, j);
|
|
@@ -63322,9 +63322,9 @@ function $B(t) {
|
|
|
63322
63322
|
if (A == null)
|
|
63323
63323
|
ln(null, null, b, x, S, j, F);
|
|
63324
63324
|
else {
|
|
63325
|
-
var P, M = A[g + 0],
|
|
63325
|
+
var P, M = A[g + 0], V = M, ie = M;
|
|
63326
63326
|
for (P = 0; P < F; ++P)
|
|
63327
|
-
|
|
63327
|
+
V = ie + (M = A[g + P]) - V, ie = b[x + P] + (-256 & V ? 0 > V ? 0 : 255 : V) & 255, V = M, S[j + P] = ie;
|
|
63328
63328
|
}
|
|
63329
63329
|
}
|
|
63330
63330
|
function kr(A, g, b, x) {
|
|
@@ -63336,8 +63336,8 @@ function $B(t) {
|
|
|
63336
63336
|
var F;
|
|
63337
63337
|
if (A.ga = new nr(), (F = A.ga == null) || (F = g.width * g.o, e(A.Gb.length == 0), A.Gb = i(F), A.Uc = 0, A.Gb == null ? F = 0 : (A.mb = A.Gb, A.nb = A.Uc, A.rc = null, F = 1), F = !F), !F) {
|
|
63338
63338
|
F = A.ga;
|
|
63339
|
-
var P = A.Fa, M = A.P,
|
|
63340
|
-
if (e(P != null && ie != null && g != null), Wa[0] = null, Wa[1] = ln, Wa[2] = Ar, Wa[3] = rr, F.ca = ie, F.tb = ye, F.c = g.width, F.i = g.height, e(0 < F.c && 0 < F.i), 1 >=
|
|
63339
|
+
var P = A.Fa, M = A.P, V = A.qc, ie = A.mb, ye = A.nb, G = M + 1, ae = V - 1, pe = F.l;
|
|
63340
|
+
if (e(P != null && ie != null && g != null), Wa[0] = null, Wa[1] = ln, Wa[2] = Ar, Wa[3] = rr, F.ca = ie, F.tb = ye, F.c = g.width, F.i = g.height, e(0 < F.c && 0 < F.i), 1 >= V)
|
|
63341
63341
|
g = 0;
|
|
63342
63342
|
else if (F.$a = 3 & P[M + 0], F.Z = P[M + 0] >> 2 & 3, F.Lc = P[M + 0] >> 4 & 3, M = P[M + 0] >> 6 & 3, 0 > F.$a || 1 < F.$a || 4 <= F.Z || 1 < F.Lc || M)
|
|
63343
63343
|
g = 0;
|
|
@@ -63350,7 +63350,7 @@ function $B(t) {
|
|
|
63350
63350
|
g = 0;
|
|
63351
63351
|
break e;
|
|
63352
63352
|
}
|
|
63353
|
-
if (e(F != null), F.mc = g, g.c = F.c, g.i = F.i, g.l = F.l, g.l.ma = F, g.l.width = F.c, g.l.height = F.i, g.a = 0, Ce(g.m, P,
|
|
63353
|
+
if (e(F != null), F.mc = g, g.c = F.c, g.i = F.i, g.l = F.l, g.l.ma = F, g.l.width = F.c, g.l.height = F.i, g.a = 0, Ce(g.m, P, G, ae), !co(F.c, F.i, 1, g, null) || (g.ab == 1 && g.gc[0].hc == 3 && Si(g.s) ? (F.ic = 1, P = g.c * g.i, g.Ta = null, g.Ua = 0, g.V = i(P), g.Ba = 0, g.V == null ? (g.a = 1, g = 0) : g = 1) : (F.ic = 0, g = td(g, F.c)), !g))
|
|
63354
63354
|
break t;
|
|
63355
63355
|
g = 1;
|
|
63356
63356
|
break e;
|
|
@@ -63368,25 +63368,25 @@ function $B(t) {
|
|
|
63368
63368
|
e(A.ga != null), e(b + x <= j);
|
|
63369
63369
|
e: {
|
|
63370
63370
|
if (g = (P = A.ga).c, j = P.l.o, P.$a == 0) {
|
|
63371
|
-
if (
|
|
63371
|
+
if (G = A.rc, ae = A.Vc, pe = A.Fa, M = A.P + 1 + b * g, V = A.mb, ie = A.nb + b * g, e(M <= A.P + A.qc), P.Z != 0)
|
|
63372
63372
|
for (e(Wa[P.Z] != null), F = 0; F < x; ++F)
|
|
63373
|
-
Wa[P.Z](
|
|
63373
|
+
Wa[P.Z](G, ae, pe, M, V, ie, g), G = V, ae = ie, ie += g, M += g;
|
|
63374
63374
|
else
|
|
63375
63375
|
for (F = 0; F < x; ++F)
|
|
63376
|
-
r(
|
|
63377
|
-
A.rc =
|
|
63376
|
+
r(V, ie, pe, M, g), G = V, ae = ie, ie += g, M += g;
|
|
63377
|
+
A.rc = G, A.Vc = ae;
|
|
63378
63378
|
} else {
|
|
63379
63379
|
if (e(P.mc != null), g = b + x, e((F = P.mc) != null), e(g <= F.i), F.C >= g)
|
|
63380
63380
|
g = 1;
|
|
63381
63381
|
else if (P.ic || cd(), P.ic) {
|
|
63382
|
-
P = F.V,
|
|
63383
|
-
var Ie = F.i, me = (pe = 1, M = F.$ / ae,
|
|
63382
|
+
P = F.V, G = F.Ba, ae = F.c;
|
|
63383
|
+
var Ie = F.i, me = (pe = 1, M = F.$ / ae, V = F.$ % ae, ie = F.m, ye = F.s, F.$), Ue = ae * Ie, Fe = ae * g, Me = ye.wc, Oe = me < Fe ? Er(ye, V, M) : null;
|
|
63384
63384
|
e(me <= Ue), e(g <= Ie), e(Si(ye));
|
|
63385
63385
|
t:
|
|
63386
63386
|
for (; ; ) {
|
|
63387
63387
|
for (; !ie.h && me < Fe; ) {
|
|
63388
|
-
if (
|
|
63389
|
-
P[
|
|
63388
|
+
if (V & Me || (Oe = Er(ye, V, M)), e(Oe != null), le(ie), 256 > (Ie = Tn(Oe.G[0], Oe.H[0], ie)))
|
|
63389
|
+
P[G + me] = Ie, ++me, ++V >= ae && (V = 0, ++M <= g && !(M % 16) && Ii(F, M));
|
|
63390
63390
|
else {
|
|
63391
63391
|
if (!(280 > Ie)) {
|
|
63392
63392
|
pe = 0;
|
|
@@ -63399,10 +63399,10 @@ function $B(t) {
|
|
|
63399
63399
|
break t;
|
|
63400
63400
|
}
|
|
63401
63401
|
for (ut = 0; ut < Ie; ++ut)
|
|
63402
|
-
P[
|
|
63403
|
-
for (me += Ie,
|
|
63404
|
-
|
|
63405
|
-
me < Fe &&
|
|
63402
|
+
P[G + me + ut] = P[G + me + ut - et];
|
|
63403
|
+
for (me += Ie, V += Ie; V >= ae; )
|
|
63404
|
+
V -= ae, ++M <= g && !(M % 16) && Ii(F, M);
|
|
63405
|
+
me < Fe && V & Me && (Oe = Er(ye, V, M));
|
|
63406
63406
|
}
|
|
63407
63407
|
e(ie.h == ee(ie));
|
|
63408
63408
|
}
|
|
@@ -63428,9 +63428,9 @@ function $B(t) {
|
|
|
63428
63428
|
}
|
|
63429
63429
|
function $o(A, g, b, x, S, j) {
|
|
63430
63430
|
for (; 0 < S--; ) {
|
|
63431
|
-
var F, P = A, M = g + (b ? 1 : 0),
|
|
63431
|
+
var F, P = A, M = g + (b ? 1 : 0), V = A, ie = g + (b ? 0 : 3);
|
|
63432
63432
|
for (F = 0; F < x; ++F) {
|
|
63433
|
-
var ye =
|
|
63433
|
+
var ye = V[ie + 4 * F];
|
|
63434
63434
|
ye != 255 && (ye *= 32897, P[M + 4 * F + 0] = P[M + 4 * F + 0] * ye >> 23, P[M + 4 * F + 1] = P[M + 4 * F + 1] * ye >> 23, P[M + 4 * F + 2] = P[M + 4 * F + 2] * ye >> 23);
|
|
63435
63435
|
}
|
|
63436
63436
|
g += j;
|
|
@@ -63440,15 +63440,15 @@ function $B(t) {
|
|
|
63440
63440
|
for (; 0 < x--; ) {
|
|
63441
63441
|
var j;
|
|
63442
63442
|
for (j = 0; j < b; ++j) {
|
|
63443
|
-
var F = A[g + 2 * j + 0], P = 15 & (
|
|
63444
|
-
A[g + 2 * j + 0] = (240 & F | F >> 4) * M >> 16 & 240 | (15 & F | F << 4) * M >> 16 >> 4 & 15, A[g + 2 * j + 1] = 240 &
|
|
63443
|
+
var F = A[g + 2 * j + 0], P = 15 & (V = A[g + 2 * j + 1]), M = 4369 * P, V = (240 & V | V >> 4) * M >> 16;
|
|
63444
|
+
A[g + 2 * j + 0] = (240 & F | F >> 4) * M >> 16 & 240 | (15 & F | F << 4) * M >> 16 >> 4 & 15, A[g + 2 * j + 1] = 240 & V | P;
|
|
63445
63445
|
}
|
|
63446
63446
|
g += S;
|
|
63447
63447
|
}
|
|
63448
63448
|
}
|
|
63449
63449
|
function w1(A, g, b, x, S, j, F, P) {
|
|
63450
|
-
var M,
|
|
63451
|
-
for (
|
|
63450
|
+
var M, V, ie = 255;
|
|
63451
|
+
for (V = 0; V < S; ++V) {
|
|
63452
63452
|
for (M = 0; M < x; ++M) {
|
|
63453
63453
|
var ye = A[g + M];
|
|
63454
63454
|
j[F + 4 * M] = ye, ie &= ye;
|
|
@@ -63466,12 +63466,12 @@ function $B(t) {
|
|
|
63466
63466
|
Hu = $o, U_ = za, j_ = w1, F_ = rg;
|
|
63467
63467
|
}
|
|
63468
63468
|
function ji(A, g, b) {
|
|
63469
|
-
R[A] = function(x, S, j, F, P, M,
|
|
63470
|
-
var Oe, ut = Me - 1 >> 1, et = P[M + 0] |
|
|
63469
|
+
R[A] = function(x, S, j, F, P, M, V, ie, ye, G, ae, pe, Ie, me, Ue, Fe, Me) {
|
|
63470
|
+
var Oe, ut = Me - 1 >> 1, et = P[M + 0] | V[ie + 0] << 16, Dt = ye[G + 0] | ae[pe + 0] << 16;
|
|
63471
63471
|
e(x != null);
|
|
63472
63472
|
var st = 3 * et + Dt + 131074 >> 2;
|
|
63473
63473
|
for (g(x[S + 0], 255 & st, st >> 16, Ie, me), j != null && (st = 3 * Dt + et + 131074 >> 2, g(j[F + 0], 255 & st, st >> 16, Ue, Fe)), Oe = 1; Oe <= ut; ++Oe) {
|
|
63474
|
-
var zt = P[M + Oe] |
|
|
63474
|
+
var zt = P[M + Oe] | V[ie + Oe] << 16, pr = ye[G + Oe] | ae[pe + Oe] << 16, Rt = et + zt + Dt + pr + 524296, it = Rt + 2 * (zt + Dt) >> 3;
|
|
63475
63475
|
st = it + et >> 1, et = (Rt = Rt + 2 * (et + pr) >> 3) + zt >> 1, g(x[S + 2 * Oe - 1], 255 & st, st >> 16, Ie, me + (2 * Oe - 1) * b), g(x[S + 2 * Oe - 0], 255 & et, et >> 16, Ie, me + (2 * Oe - 0) * b), j != null && (st = Rt + Dt >> 1, et = it + pr >> 1, g(j[F + 2 * Oe - 1], 255 & st, st >> 16, Ue, Fe + (2 * Oe - 1) * b), g(j[F + 2 * Oe + 0], 255 & et, et >> 16, Ue, Fe + (2 * Oe + 0) * b)), et = zt, Dt = pr;
|
|
63476
63476
|
}
|
|
63477
63477
|
1 & Me || (st = 3 * et + Dt + 131074 >> 2, g(x[S + Me - 1], 255 & st, st >> 16, Ie, me + (Me - 1) * b), j != null && (st = 3 * Dt + et + 131074 >> 2, g(j[F + Me - 1], 255 & st, st >> 16, Ue, Fe + (Me - 1) * b)));
|
|
@@ -63519,10 +63519,10 @@ function $B(t) {
|
|
|
63519
63519
|
return 0 > A ? 0 : A > g ? g : A;
|
|
63520
63520
|
}
|
|
63521
63521
|
function si(A, g, b) {
|
|
63522
|
-
R[A] = function(x, S, j, F, P, M,
|
|
63523
|
-
for (var
|
|
63524
|
-
g(x[S + 0], j[F + 0], P[M + 0],
|
|
63525
|
-
1 & ye && g(x[S + 0], j[F + 0], P[M + 0],
|
|
63522
|
+
R[A] = function(x, S, j, F, P, M, V, ie, ye) {
|
|
63523
|
+
for (var G = ie + (-2 & ye) * b; ie != G; )
|
|
63524
|
+
g(x[S + 0], j[F + 0], P[M + 0], V, ie), g(x[S + 1], j[F + 0], P[M + 0], V, ie + b), S += 2, ++F, ++M, ie += 2 * b;
|
|
63525
|
+
1 & ye && g(x[S + 0], j[F + 0], P[M + 0], V, ie);
|
|
63526
63526
|
};
|
|
63527
63527
|
}
|
|
63528
63528
|
function Nu(A, g, b) {
|
|
@@ -63541,37 +63541,37 @@ function $B(t) {
|
|
|
63541
63541
|
}
|
|
63542
63542
|
}
|
|
63543
63543
|
function qa(A, g) {
|
|
63544
|
-
var b, x, S = g.M, j = g.Nb, F = A.oc, P = A.pc + 40, M = A.oc,
|
|
63544
|
+
var b, x, S = g.M, j = g.Nb, F = A.oc, P = A.pc + 40, M = A.oc, V = A.pc + 584, ie = A.oc, ye = A.pc + 600;
|
|
63545
63545
|
for (b = 0; 16 > b; ++b)
|
|
63546
63546
|
F[P + 32 * b - 1] = 129;
|
|
63547
63547
|
for (b = 0; 8 > b; ++b)
|
|
63548
|
-
M[
|
|
63549
|
-
for (0 < S ? F[P - 1 - 32] = M[
|
|
63550
|
-
var
|
|
63548
|
+
M[V + 32 * b - 1] = 129, ie[ye + 32 * b - 1] = 129;
|
|
63549
|
+
for (0 < S ? F[P - 1 - 32] = M[V - 1 - 32] = ie[ye - 1 - 32] = 129 : (s(F, P - 32 - 1, 127, 21), s(M, V - 32 - 1, 127, 9), s(ie, ye - 32 - 1, 127, 9)), x = 0; x < A.za; ++x) {
|
|
63550
|
+
var G = g.ya[g.aa + x];
|
|
63551
63551
|
if (0 < x) {
|
|
63552
63552
|
for (b = -1; 16 > b; ++b)
|
|
63553
63553
|
r(F, P + 32 * b - 4, F, P + 32 * b + 12, 4);
|
|
63554
63554
|
for (b = -1; 8 > b; ++b)
|
|
63555
|
-
r(M,
|
|
63555
|
+
r(M, V + 32 * b - 4, M, V + 32 * b + 4, 4), r(ie, ye + 32 * b - 4, ie, ye + 32 * b + 4, 4);
|
|
63556
63556
|
}
|
|
63557
|
-
var ae = A.Gd, pe = A.Hd + x, Ie =
|
|
63558
|
-
if (0 < S && (r(F, P - 32, ae[pe].y, 0, 16), r(M,
|
|
63557
|
+
var ae = A.Gd, pe = A.Hd + x, Ie = G.ad, me = G.Hc;
|
|
63558
|
+
if (0 < S && (r(F, P - 32, ae[pe].y, 0, 16), r(M, V - 32, ae[pe].f, 0, 8), r(ie, ye - 32, ae[pe].ea, 0, 8)), G.Za) {
|
|
63559
63559
|
var Ue = F, Fe = P - 32 + 16;
|
|
63560
63560
|
for (0 < S && (x >= A.za - 1 ? s(Ue, Fe, ae[pe].y[15], 4) : r(Ue, Fe, ae[pe + 1].y, 0, 4)), b = 0; 4 > b; b++)
|
|
63561
63561
|
Ue[Fe + 128 + b] = Ue[Fe + 256 + b] = Ue[Fe + 384 + b] = Ue[Fe + 0 + b];
|
|
63562
63562
|
for (b = 0; 16 > b; ++b, me <<= 2)
|
|
63563
|
-
Ue = F, Fe = P + J_[b], Fi[
|
|
63564
|
-
} else if (Ue = Nu(x, S,
|
|
63563
|
+
Ue = F, Fe = P + J_[b], Fi[G.Ob[b]](Ue, Fe), Ou(me, Ie, 16 * +b, Ue, Fe);
|
|
63564
|
+
} else if (Ue = Nu(x, S, G.Ob[0]), Ga[Ue](F, P), me != 0)
|
|
63565
63565
|
for (b = 0; 16 > b; ++b, me <<= 2)
|
|
63566
63566
|
Ou(me, Ie, 16 * +b, F, P + J_[b]);
|
|
63567
|
-
for (b =
|
|
63567
|
+
for (b = G.Gc, Ue = Nu(x, S, G.Dd), sa[Ue](M, V), sa[Ue](ie, ye), me = Ie, Ue = M, Fe = V, 255 & (G = 0 | b) && (170 & G ? Lc(me, 256, Ue, Fe) : zu(me, 256, Ue, Fe)), G = ie, me = ye, 255 & (b >>= 8) && (170 & b ? Lc(Ie, 320, G, me) : zu(Ie, 320, G, me)), S < A.Ub - 1 && (r(ae[pe].y, 0, F, P + 480, 16), r(ae[pe].f, 0, M, V + 224, 8), r(ae[pe].ea, 0, ie, ye + 224, 8)), b = 8 * j * A.B, ae = A.sa, pe = A.ta + 16 * x + 16 * j * A.R, Ie = A.qa, G = A.ra + 8 * x + b, me = A.Ha, Ue = A.Ia + 8 * x + b, b = 0; 16 > b; ++b)
|
|
63568
63568
|
r(ae, pe + b * A.R, F, P + 32 * b, 16);
|
|
63569
63569
|
for (b = 0; 8 > b; ++b)
|
|
63570
|
-
r(Ie,
|
|
63570
|
+
r(Ie, G + b * A.B, M, V + 32 * b, 8), r(me, Ue + b * A.B, ie, ye + 32 * b, 8);
|
|
63571
63571
|
}
|
|
63572
63572
|
}
|
|
63573
63573
|
function Rc(A, g, b, x, S, j, F, P, M) {
|
|
63574
|
-
var
|
|
63574
|
+
var V = [0], ie = [0], ye = 0, G = M != null ? M.kd : 0, ae = M != null ? M : new bt();
|
|
63575
63575
|
if (A == null || 12 > b)
|
|
63576
63576
|
return 7;
|
|
63577
63577
|
ae.data = A, ae.w = g, ae.ha = b, g = [g], b = [b], ae.gb = [ae.gb];
|
|
@@ -63587,7 +63587,7 @@ function $B(t) {
|
|
|
63587
63587
|
me = 3;
|
|
63588
63588
|
break e;
|
|
63589
63589
|
}
|
|
63590
|
-
if (
|
|
63590
|
+
if (G && Ue > Ie[0] - 8) {
|
|
63591
63591
|
me = 7;
|
|
63592
63592
|
break e;
|
|
63593
63593
|
}
|
|
@@ -63601,7 +63601,7 @@ function $B(t) {
|
|
|
63601
63601
|
e: {
|
|
63602
63602
|
var Fe = A;
|
|
63603
63603
|
Ie = g, me = b;
|
|
63604
|
-
var Me =
|
|
63604
|
+
var Me = V, Oe = ie, ut = pe = [0];
|
|
63605
63605
|
if ((st = ye = [ye])[0] = 0, 8 > me[0])
|
|
63606
63606
|
me = 7;
|
|
63607
63607
|
else {
|
|
@@ -63628,7 +63628,7 @@ function $B(t) {
|
|
|
63628
63628
|
return me;
|
|
63629
63629
|
if (Ie = !!(2 & pe), !Ue && ye)
|
|
63630
63630
|
return 3;
|
|
63631
|
-
if (j != null && (j[0] = !!(16 & pe)), F != null && (F[0] = Ie), P != null && (P[0] = 0), F =
|
|
63631
|
+
if (j != null && (j[0] = !!(16 & pe)), F != null && (F[0] = Ie), P != null && (P[0] = 0), F = V[0], pe = ie[0], ye && Ie && M == null) {
|
|
63632
63632
|
me = 0;
|
|
63633
63633
|
break;
|
|
63634
63634
|
}
|
|
@@ -63682,7 +63682,7 @@ function $B(t) {
|
|
|
63682
63682
|
me = 3;
|
|
63683
63683
|
break e;
|
|
63684
63684
|
}
|
|
63685
|
-
if (
|
|
63685
|
+
if (G && st > Ue[0] - 8) {
|
|
63686
63686
|
me = 7;
|
|
63687
63687
|
break e;
|
|
63688
63688
|
}
|
|
@@ -63700,15 +63700,15 @@ function $B(t) {
|
|
|
63700
63700
|
me = 7;
|
|
63701
63701
|
break;
|
|
63702
63702
|
}
|
|
63703
|
-
P = F,
|
|
63703
|
+
P = F, G = pe, Ie = j, A == null || 5 > b ? A = 0 : 5 <= b && A[g + 0] == 47 && !(A[g + 4] >> 5) ? (Ue = [0], st = [0], Me = [0], Ce(Oe = new z(), A, g, b), Yo(Oe, Ue, st, Me) ? (P != null && (P[0] = Ue[0]), G != null && (G[0] = st[0]), Ie != null && (Ie[0] = Me[0]), A = 1) : A = 0) : A = 0;
|
|
63704
63704
|
} else {
|
|
63705
63705
|
if (10 > b) {
|
|
63706
63706
|
me = 7;
|
|
63707
63707
|
break;
|
|
63708
63708
|
}
|
|
63709
|
-
P = pe, A == null || 10 > b || !$h(A, g + 3, b - 3) ? A = 0 : (
|
|
63709
|
+
P = pe, A == null || 10 > b || !$h(A, g + 3, b - 3) ? A = 0 : (G = A[g + 0] | A[g + 1] << 8 | A[g + 2] << 16, Ie = 16383 & (A[g + 7] << 8 | A[g + 6]), A = 16383 & (A[g + 9] << 8 | A[g + 8]), 1 & G || 3 < (G >> 1 & 7) || !(G >> 4 & 1) || G >> 5 >= ae.Ja || !Ie || !A ? A = 0 : (F && (F[0] = Ie), P && (P[0] = A), A = 1));
|
|
63710
63710
|
}
|
|
63711
|
-
if (!A || (F = F[0], pe = pe[0], ye && (
|
|
63711
|
+
if (!A || (F = F[0], pe = pe[0], ye && (V[0] != F || ie[0] != pe)))
|
|
63712
63712
|
return 3;
|
|
63713
63713
|
M != null && (M[0] = ae, M.offset = g - M.w, e(4294967286 > g - M.w), e(M.offset == M.ha - b));
|
|
63714
63714
|
break;
|
|
@@ -63754,26 +63754,26 @@ function $B(t) {
|
|
|
63754
63754
|
}
|
|
63755
63755
|
x.width = A, x.height = g;
|
|
63756
63756
|
e: {
|
|
63757
|
-
var M = x.width,
|
|
63758
|
-
if (A = x.S, 0 >= M || 0 >=
|
|
63757
|
+
var M = x.width, V = x.height;
|
|
63758
|
+
if (A = x.S, 0 >= M || 0 >= V || !(A >= ag && 13 > A))
|
|
63759
63759
|
A = 2;
|
|
63760
63760
|
else {
|
|
63761
63761
|
if (0 >= x.Rd && x.sd == null) {
|
|
63762
63762
|
F = j = S = g = 0;
|
|
63763
|
-
var ie = (P = M * X_[A]) *
|
|
63764
|
-
if (11 > A || (j = (
|
|
63763
|
+
var ie = (P = M * X_[A]) * V;
|
|
63764
|
+
if (11 > A || (j = (V + 1) / 2 * (g = (M + 1) / 2), A == 12 && (F = (S = M) * V)), (V = i(ie + 2 * j + F)) == null) {
|
|
63765
63765
|
A = 1;
|
|
63766
63766
|
break e;
|
|
63767
63767
|
}
|
|
63768
|
-
x.sd =
|
|
63768
|
+
x.sd = V, 11 > A ? ((M = x.f.RGBA).eb = V, M.fb = 0, M.A = P, M.size = ie) : ((M = x.f.kb).y = V, M.O = 0, M.fa = P, M.Fd = ie, M.f = V, M.N = 0 + ie, M.Ab = g, M.Cd = j, M.ea = V, M.W = 0 + ie + j, M.Db = g, M.Ed = j, A == 12 && (M.F = V, M.J = 0 + ie + 2 * j), M.Tc = F, M.lb = S);
|
|
63769
63769
|
}
|
|
63770
63770
|
if (g = 1, S = x.S, j = x.width, F = x.height, S >= ag && 13 > S)
|
|
63771
63771
|
if (11 > S)
|
|
63772
63772
|
A = x.f.RGBA, g &= (P = Math.abs(A.A)) * (F - 1) + j <= A.size, g &= P >= j * X_[S], g &= A.eb != null;
|
|
63773
63773
|
else {
|
|
63774
|
-
A = x.f.kb, P = (j + 1) / 2, ie = (F + 1) / 2, M = Math.abs(A.fa),
|
|
63775
|
-
var ye = Math.abs(A.Db),
|
|
63776
|
-
g &= M * (F - 1) + j <= A.Fd, g &=
|
|
63774
|
+
A = x.f.kb, P = (j + 1) / 2, ie = (F + 1) / 2, M = Math.abs(A.fa), V = Math.abs(A.Ab);
|
|
63775
|
+
var ye = Math.abs(A.Db), G = Math.abs(A.lb), ae = G * (F - 1) + j;
|
|
63776
|
+
g &= M * (F - 1) + j <= A.Fd, g &= V * (ie - 1) + P <= A.Cd, g = (g &= ye * (ie - 1) + P <= A.Ed) & M >= j & V >= P & ye >= P, g &= A.y != null, g &= A.f != null, g &= A.ea != null, S == 12 && (g &= G >= j, g &= ae <= A.Tc, g &= A.F != null);
|
|
63777
63777
|
}
|
|
63778
63778
|
else
|
|
63779
63779
|
g = 0;
|
|
@@ -63837,12 +63837,12 @@ function $B(t) {
|
|
|
63837
63837
|
this.WebPDecodeRGBA = function(A, g, b, x, S) {
|
|
63838
63838
|
var j = lg, F = new dt(), P = new An();
|
|
63839
63839
|
F.ba = P, P.S = j, P.width = [P.width], P.height = [P.height];
|
|
63840
|
-
var M = P.width,
|
|
63840
|
+
var M = P.width, V = P.height, ie = new Ct();
|
|
63841
63841
|
if (ie == null || A == null)
|
|
63842
63842
|
var ye = 2;
|
|
63843
63843
|
else
|
|
63844
63844
|
e(ie != null), ye = Rc(A, g, b, ie.width, ie.height, ie.Pd, ie.Qd, ie.format, null);
|
|
63845
|
-
if (ye != 0 ? M = 0 : (M != null && (M[0] = ie.width[0]),
|
|
63845
|
+
if (ye != 0 ? M = 0 : (M != null && (M[0] = ie.width[0]), V != null && (V[0] = ie.height[0]), M = 1), M) {
|
|
63846
63846
|
P.width = P.width[0], P.height = P.height[0], x != null && (x[0] = P.width), S != null && (S[0] = P.height);
|
|
63847
63847
|
e: {
|
|
63848
63848
|
if (x = new kc(), (S = new bt()).data = A, S.w = g, S.ha = b, S.kd = 1, g = [0], e(S != null), ((A = Rc(S.data, S.w, S.ha, null, null, null, g, null, S)) == 0 || A == 7) && g[0] && (A = 4), (g = A) == 0) {
|
|
@@ -63851,23 +63851,23 @@ function $B(t) {
|
|
|
63851
63851
|
F = 1;
|
|
63852
63852
|
break e;
|
|
63853
63853
|
}
|
|
63854
|
-
if (function(
|
|
63854
|
+
if (function(G, ae) {
|
|
63855
63855
|
var pe = [0], Ie = [0], me = [0];
|
|
63856
63856
|
t:
|
|
63857
63857
|
for (; ; ) {
|
|
63858
|
-
if (
|
|
63858
|
+
if (G == null)
|
|
63859
63859
|
return 0;
|
|
63860
63860
|
if (ae == null)
|
|
63861
|
-
return
|
|
63862
|
-
if (
|
|
63863
|
-
|
|
63861
|
+
return G.a = 2, 0;
|
|
63862
|
+
if (G.l = ae, G.a = 0, Ce(G.m, ae.data, ae.w, ae.ha), !Yo(G.m, pe, Ie, me)) {
|
|
63863
|
+
G.a = 3;
|
|
63864
63864
|
break t;
|
|
63865
63865
|
}
|
|
63866
|
-
if (
|
|
63866
|
+
if (G.xb = H_, ae.width = pe[0], ae.height = Ie[0], !co(pe[0], Ie[0], 1, G, null))
|
|
63867
63867
|
break t;
|
|
63868
63868
|
return 1;
|
|
63869
63869
|
}
|
|
63870
|
-
return e(
|
|
63870
|
+
return e(G.a != 0), 0;
|
|
63871
63871
|
}(A, x)) {
|
|
63872
63872
|
if (x = (g = Ad(x.width, x.height, F.Oa, F.ba)) == 0) {
|
|
63873
63873
|
t: {
|
|
@@ -63912,33 +63912,33 @@ function $B(t) {
|
|
|
63912
63912
|
if ((g = Ad(x.width, x.height, F.Oa, F.ba)) == 0) {
|
|
63913
63913
|
if (A.Aa = 0, b = F.Oa, e((S = A) != null), b != null) {
|
|
63914
63914
|
if (0 < (M = 0 > (M = b.Md) ? 0 : 100 < M ? 255 : 255 * M / 100)) {
|
|
63915
|
-
for (
|
|
63916
|
-
12 > (ye = S.pb[
|
|
63915
|
+
for (V = ie = 0; 4 > V; ++V)
|
|
63916
|
+
12 > (ye = S.pb[V]).lc && (ye.ia = M * PI[0 > ye.lc ? 0 : ye.lc] >> 3), ie |= ye.ia;
|
|
63917
63917
|
ie && (alert("todo:VP8InitRandom"), S.ia = 1);
|
|
63918
63918
|
}
|
|
63919
63919
|
S.Ga = b.Id, 100 < S.Ga ? S.Ga = 100 : 0 > S.Ga && (S.Ga = 0);
|
|
63920
63920
|
}
|
|
63921
|
-
(function(
|
|
63922
|
-
if (
|
|
63921
|
+
(function(G, ae) {
|
|
63922
|
+
if (G == null)
|
|
63923
63923
|
return 0;
|
|
63924
63924
|
if (ae == null)
|
|
63925
|
-
return tr(
|
|
63926
|
-
if (!
|
|
63925
|
+
return tr(G, 2, "NULL VP8Io parameter in VP8Decode().");
|
|
63926
|
+
if (!G.cb && !eg(G, ae))
|
|
63927
63927
|
return 0;
|
|
63928
|
-
if (e(
|
|
63929
|
-
ae.ob && (
|
|
63930
|
-
var pe = hg[
|
|
63931
|
-
if (
|
|
63932
|
-
var Ie =
|
|
63928
|
+
if (e(G.cb), ae.ac == null || ae.ac(ae)) {
|
|
63929
|
+
ae.ob && (G.L = 0);
|
|
63930
|
+
var pe = hg[G.L];
|
|
63931
|
+
if (G.L == 2 ? (G.yb = 0, G.zb = 0) : (G.yb = ae.v - pe >> 4, G.zb = ae.j - pe >> 4, 0 > G.yb && (G.yb = 0), 0 > G.zb && (G.zb = 0)), G.Va = ae.o + 15 + pe >> 4, G.Hb = ae.va + 15 + pe >> 4, G.Hb > G.za && (G.Hb = G.za), G.Va > G.Ub && (G.Va = G.Ub), 0 < G.L) {
|
|
63932
|
+
var Ie = G.ed;
|
|
63933
63933
|
for (pe = 0; 4 > pe; ++pe) {
|
|
63934
63934
|
var me;
|
|
63935
|
-
if (
|
|
63936
|
-
var Ue =
|
|
63937
|
-
|
|
63935
|
+
if (G.Qa.Cb) {
|
|
63936
|
+
var Ue = G.Qa.Lb[pe];
|
|
63937
|
+
G.Qa.Fb || (Ue += Ie.Tb);
|
|
63938
63938
|
} else
|
|
63939
63939
|
Ue = Ie.Tb;
|
|
63940
63940
|
for (me = 0; 1 >= me; ++me) {
|
|
63941
|
-
var Fe =
|
|
63941
|
+
var Fe = G.gd[pe][me], Me = Ue;
|
|
63942
63942
|
if (Ie.Pc && (Me += Ie.vd[0], me && (Me += Ie.od[0])), 0 < (Me = 0 > Me ? 0 : 63 < Me ? 63 : Me)) {
|
|
63943
63943
|
var Oe = Me;
|
|
63944
63944
|
0 < Ie.wb && (Oe = 4 < Ie.wb ? Oe >> 2 : Oe >> 1) > 9 - Ie.wb && (Oe = 9 - Ie.wb), 1 > Oe && (Oe = 1), Fe.dd = Oe, Fe.tc = 2 * Me + Oe, Fe.ld = 40 <= Me ? 2 : 15 <= Me ? 1 : 0;
|
|
@@ -63950,28 +63950,28 @@ function $B(t) {
|
|
|
63950
63950
|
}
|
|
63951
63951
|
pe = 0;
|
|
63952
63952
|
} else
|
|
63953
|
-
tr(
|
|
63953
|
+
tr(G, 6, "Frame setup failed"), pe = G.a;
|
|
63954
63954
|
if (pe = pe == 0) {
|
|
63955
63955
|
if (pe) {
|
|
63956
|
-
|
|
63956
|
+
G.$c = 0, 0 < G.Aa || (G.Ic = NI);
|
|
63957
63957
|
t: {
|
|
63958
|
-
pe =
|
|
63959
|
-
var ut = 32 * Oe, et = Oe + 1, Dt = 0 <
|
|
63960
|
-
if ((Fe = Ie + 832 + (me = 3 * (16 * pe + hg[
|
|
63958
|
+
pe = G.Ic, Ie = 4 * (Oe = G.za);
|
|
63959
|
+
var ut = 32 * Oe, et = Oe + 1, Dt = 0 < G.L ? Oe * (0 < G.Aa ? 2 : 1) : 0, st = (G.Aa == 2 ? 2 : 1) * Oe;
|
|
63960
|
+
if ((Fe = Ie + 832 + (me = 3 * (16 * pe + hg[G.L]) / 2 * ut) + (Ue = G.Fa != null && 0 < G.Fa.length ? G.Kc.c * G.Kc.i : 0)) != Fe)
|
|
63961
63961
|
pe = 0;
|
|
63962
63962
|
else {
|
|
63963
|
-
if (Fe >
|
|
63964
|
-
if (
|
|
63965
|
-
pe = tr(
|
|
63963
|
+
if (Fe > G.Vb) {
|
|
63964
|
+
if (G.Vb = 0, G.Ec = i(Fe), G.Fc = 0, G.Ec == null) {
|
|
63965
|
+
pe = tr(G, 1, "no memory during frame initialization.");
|
|
63966
63966
|
break t;
|
|
63967
63967
|
}
|
|
63968
|
-
|
|
63968
|
+
G.Vb = Fe;
|
|
63969
63969
|
}
|
|
63970
|
-
Fe =
|
|
63970
|
+
Fe = G.Ec, Me = G.Fc, G.Ac = Fe, G.Bc = Me, Me += Ie, G.Gd = o(ut, Xh), G.Hd = 0, G.rb = o(et + 1, _u), G.sb = 1, G.wa = Dt ? o(Dt, ri) : null, G.Y = 0, G.D.Nb = 0, G.D.wa = G.wa, G.D.Y = G.Y, 0 < G.Aa && (G.D.Y += Oe), e(!0), G.oc = Fe, G.pc = Me, Me += 832, G.ya = o(st, xu), G.aa = 0, G.D.ya = G.ya, G.D.aa = G.aa, G.Aa == 2 && (G.D.aa += Oe), G.R = 16 * Oe, G.B = 8 * Oe, Oe = (ut = hg[G.L]) * G.R, ut = ut / 2 * G.B, G.sa = Fe, G.ta = Me + Oe, G.qa = G.sa, G.ra = G.ta + 16 * pe * G.R + ut, G.Ha = G.qa, G.Ia = G.ra + 8 * pe * G.B + ut, G.$c = 0, Me += me, G.mb = Ue ? Fe : null, G.nb = Ue ? Me : null, e(Me + Ue <= G.Fc + G.Vb), nd(G), s(G.Ac, G.Bc, 0, Ie), pe = 1;
|
|
63971
63971
|
}
|
|
63972
63972
|
}
|
|
63973
63973
|
if (pe) {
|
|
63974
|
-
if (ae.ka = 0, ae.y =
|
|
63974
|
+
if (ae.ka = 0, ae.y = G.sa, ae.O = G.ta, ae.f = G.qa, ae.N = G.ra, ae.ea = G.Ha, ae.Vd = G.Ia, ae.fa = G.R, ae.Rc = G.B, ae.F = null, ae.J = 0, !O_) {
|
|
63975
63975
|
for (pe = -255; 255 >= pe; ++pe)
|
|
63976
63976
|
D_[255 + pe] = 0 > pe ? -pe : pe;
|
|
63977
63977
|
for (pe = -1020; 1020 >= pe; ++pe)
|
|
@@ -63982,7 +63982,7 @@ function $B(t) {
|
|
|
63982
63982
|
N_[255 + pe] = 0 > pe ? 0 : 255 < pe ? 255 : pe;
|
|
63983
63983
|
O_ = 1;
|
|
63984
63984
|
}
|
|
63985
|
-
Mn = ng, zn = l1, Lc = d1, mo = Ao, zu = tg, ra = a1, b_ = y, v_ = I, w_ = ce, __ = je, x_ =
|
|
63985
|
+
Mn = ng, zn = l1, Lc = d1, mo = Ao, zu = tg, ra = a1, b_ = y, v_ = I, w_ = ce, __ = je, x_ = J, C_ = te, B_ = Le, E_ = rt, k_ = ju, S_ = dd, I_ = Fu, T_ = Du, Fi[0] = f1, Fi[1] = Bu, Fi[2] = h1, Fi[3] = g1, Fi[4] = m1, Fi[5] = Zo, Fi[6] = Xo, Fi[7] = y1, Fi[8] = Sc, Fi[9] = b1, Ga[0] = Ma, Ga[1] = A1, Ga[2] = u1, Ga[3] = Eu, Ga[4] = p1, Ga[5] = id, Ga[6] = ku, sa[0] = Tc, sa[1] = c1, sa[2] = Su, sa[3] = od, sa[4] = Iu, sa[5] = v1, sa[6] = Tu, pe = 1;
|
|
63986
63986
|
} else
|
|
63987
63987
|
pe = 0;
|
|
63988
63988
|
}
|
|
@@ -64077,9 +64077,9 @@ function $B(t) {
|
|
|
64077
64077
|
return tr(zt, 6, "Output aborted.");
|
|
64078
64078
|
}
|
|
64079
64079
|
return 1;
|
|
64080
|
-
}(
|
|
64080
|
+
}(G, ae)), ae.bc != null && ae.bc(ae), pe &= 1;
|
|
64081
64081
|
}
|
|
64082
|
-
return pe ? (
|
|
64082
|
+
return pe ? (G.cb = 0, pe) : 0;
|
|
64083
64083
|
})(A, x) || (g = A.a);
|
|
64084
64084
|
}
|
|
64085
64085
|
} else
|
|
@@ -64122,8 +64122,8 @@ function $B(t) {
|
|
|
64122
64122
|
WebPRiffParser dominikhlbg@gmail.com
|
|
64123
64123
|
*/
|
|
64124
64124
|
function(T, z) {
|
|
64125
|
-
for (var
|
|
64126
|
-
if (T[z +
|
|
64125
|
+
for (var Y = 0; Y < 4; Y++)
|
|
64126
|
+
if (T[z + Y] != "RIFF".charCodeAt(Y))
|
|
64127
64127
|
return !0;
|
|
64128
64128
|
return !1;
|
|
64129
64129
|
}(R, ne)) {
|
|
@@ -64163,10 +64163,10 @@ function $B(t) {
|
|
|
64163
64163
|
for (var q = 0; q < E.length && E[q].blend != 0; q++)
|
|
64164
64164
|
;
|
|
64165
64165
|
}
|
|
64166
|
-
var D = E[0],
|
|
64167
|
-
D.rgba =
|
|
64168
|
-
for (var
|
|
64169
|
-
m[
|
|
64166
|
+
var D = E[0], W = w.WebPDecodeRGBA(v, D.src_off, D.src_size, f, p);
|
|
64167
|
+
D.rgba = W, D.imgwidth = f[0], D.imgheight = p[0];
|
|
64168
|
+
for (var K = 0; K < f[0] * p[0] * 4; K++)
|
|
64169
|
+
m[K] = W[K];
|
|
64170
64170
|
return this.width = f, this.height = p, this.data = m, this;
|
|
64171
64171
|
}
|
|
64172
64172
|
(function(t) {
|
|
@@ -64184,11 +64184,11 @@ function $B(t) {
|
|
|
64184
64184
|
Object.defineProperty(this, "pdf", { get: function() {
|
|
64185
64185
|
return z;
|
|
64186
64186
|
} });
|
|
64187
|
-
var
|
|
64187
|
+
var Y = !1;
|
|
64188
64188
|
Object.defineProperty(this, "pageWrapXEnabled", { get: function() {
|
|
64189
|
-
return
|
|
64189
|
+
return Y;
|
|
64190
64190
|
}, set: function(Ee) {
|
|
64191
|
-
|
|
64191
|
+
Y = !!Ee;
|
|
64192
64192
|
} });
|
|
64193
64193
|
var ee = !1;
|
|
64194
64194
|
Object.defineProperty(this, "pageWrapYEnabled", { get: function() {
|
|
@@ -64451,8 +64451,8 @@ function $B(t) {
|
|
|
64451
64451
|
}, u.prototype.moveTo = function(T, z) {
|
|
64452
64452
|
if (isNaN(T) || isNaN(z))
|
|
64453
64453
|
throw pn.error("jsPDF.context2d.moveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.moveTo");
|
|
64454
|
-
var
|
|
64455
|
-
this.path.push({ type: "mt", x:
|
|
64454
|
+
var Y = this.ctx.transform.applyToPoint(new o(T, z));
|
|
64455
|
+
this.path.push({ type: "mt", x: Y.x, y: Y.y }), this.ctx.lastPoint = new o(T, z);
|
|
64456
64456
|
}, u.prototype.closePath = function() {
|
|
64457
64457
|
var T = new o(0, 0), z = 0;
|
|
64458
64458
|
for (z = this.path.length - 1; z !== -1; z--)
|
|
@@ -64464,55 +64464,55 @@ function $B(t) {
|
|
|
64464
64464
|
}, u.prototype.lineTo = function(T, z) {
|
|
64465
64465
|
if (isNaN(T) || isNaN(z))
|
|
64466
64466
|
throw pn.error("jsPDF.context2d.lineTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.lineTo");
|
|
64467
|
-
var
|
|
64468
|
-
this.path.push({ type: "lt", x:
|
|
64467
|
+
var Y = this.ctx.transform.applyToPoint(new o(T, z));
|
|
64468
|
+
this.path.push({ type: "lt", x: Y.x, y: Y.y }), this.ctx.lastPoint = new o(Y.x, Y.y);
|
|
64469
64469
|
}, u.prototype.clip = function() {
|
|
64470
64470
|
this.ctx.clip_path = JSON.parse(JSON.stringify(this.path)), E.call(this, null, !0);
|
|
64471
|
-
}, u.prototype.quadraticCurveTo = function(T, z,
|
|
64472
|
-
if (isNaN(
|
|
64471
|
+
}, u.prototype.quadraticCurveTo = function(T, z, Y, ee) {
|
|
64472
|
+
if (isNaN(Y) || isNaN(ee) || isNaN(T) || isNaN(z))
|
|
64473
64473
|
throw pn.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");
|
|
64474
|
-
var re = this.ctx.transform.applyToPoint(new o(
|
|
64474
|
+
var re = this.ctx.transform.applyToPoint(new o(Y, ee)), le = this.ctx.transform.applyToPoint(new o(T, z));
|
|
64475
64475
|
this.path.push({ type: "qct", x1: le.x, y1: le.y, x: re.x, y: re.y }), this.ctx.lastPoint = new o(re.x, re.y);
|
|
64476
|
-
}, u.prototype.bezierCurveTo = function(T, z,
|
|
64477
|
-
if (isNaN(re) || isNaN(le) || isNaN(T) || isNaN(z) || isNaN(
|
|
64476
|
+
}, u.prototype.bezierCurveTo = function(T, z, Y, ee, re, le) {
|
|
64477
|
+
if (isNaN(re) || isNaN(le) || isNaN(T) || isNaN(z) || isNaN(Y) || isNaN(ee))
|
|
64478
64478
|
throw pn.error("jsPDF.context2d.bezierCurveTo: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");
|
|
64479
|
-
var Be = this.ctx.transform.applyToPoint(new o(re, le)), we = this.ctx.transform.applyToPoint(new o(T, z)), Te = this.ctx.transform.applyToPoint(new o(
|
|
64479
|
+
var Be = this.ctx.transform.applyToPoint(new o(re, le)), we = this.ctx.transform.applyToPoint(new o(T, z)), Te = this.ctx.transform.applyToPoint(new o(Y, ee));
|
|
64480
64480
|
this.path.push({ type: "bct", x1: we.x, y1: we.y, x2: Te.x, y2: Te.y, x: Be.x, y: Be.y }), this.ctx.lastPoint = new o(Be.x, Be.y);
|
|
64481
|
-
}, u.prototype.arc = function(T, z,
|
|
64482
|
-
if (isNaN(T) || isNaN(z) || isNaN(
|
|
64481
|
+
}, u.prototype.arc = function(T, z, Y, ee, re, le) {
|
|
64482
|
+
if (isNaN(T) || isNaN(z) || isNaN(Y) || isNaN(ee) || isNaN(re))
|
|
64483
64483
|
throw pn.error("jsPDF.context2d.arc: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.arc");
|
|
64484
64484
|
if (le = !!le, !this.ctx.transform.isIdentity) {
|
|
64485
64485
|
var Be = this.ctx.transform.applyToPoint(new o(T, z));
|
|
64486
64486
|
T = Be.x, z = Be.y;
|
|
64487
|
-
var we = this.ctx.transform.applyToPoint(new o(0,
|
|
64488
|
-
|
|
64487
|
+
var we = this.ctx.transform.applyToPoint(new o(0, Y)), Te = this.ctx.transform.applyToPoint(new o(0, 0));
|
|
64488
|
+
Y = Math.sqrt(Math.pow(we.x - Te.x, 2) + Math.pow(we.y - Te.y, 2));
|
|
64489
64489
|
}
|
|
64490
|
-
Math.abs(re - ee) >= 2 * Math.PI && (ee = 0, re = 2 * Math.PI), this.path.push({ type: "arc", x: T, y: z, radius:
|
|
64491
|
-
}, u.prototype.arcTo = function(T, z,
|
|
64490
|
+
Math.abs(re - ee) >= 2 * Math.PI && (ee = 0, re = 2 * Math.PI), this.path.push({ type: "arc", x: T, y: z, radius: Y, startAngle: ee, endAngle: re, counterclockwise: le });
|
|
64491
|
+
}, u.prototype.arcTo = function(T, z, Y, ee, re) {
|
|
64492
64492
|
throw new Error("arcTo not implemented.");
|
|
64493
|
-
}, u.prototype.rect = function(T, z,
|
|
64494
|
-
if (isNaN(T) || isNaN(z) || isNaN(
|
|
64493
|
+
}, u.prototype.rect = function(T, z, Y, ee) {
|
|
64494
|
+
if (isNaN(T) || isNaN(z) || isNaN(Y) || isNaN(ee))
|
|
64495
64495
|
throw pn.error("jsPDF.context2d.rect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.rect");
|
|
64496
|
-
this.moveTo(T, z), this.lineTo(T +
|
|
64497
|
-
}, u.prototype.fillRect = function(T, z,
|
|
64498
|
-
if (isNaN(T) || isNaN(z) || isNaN(
|
|
64496
|
+
this.moveTo(T, z), this.lineTo(T + Y, z), this.lineTo(T + Y, z + ee), this.lineTo(T, z + ee), this.lineTo(T, z), this.lineTo(T + Y, z), this.lineTo(T, z);
|
|
64497
|
+
}, u.prototype.fillRect = function(T, z, Y, ee) {
|
|
64498
|
+
if (isNaN(T) || isNaN(z) || isNaN(Y) || isNaN(ee))
|
|
64499
64499
|
throw pn.error("jsPDF.context2d.fillRect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.fillRect");
|
|
64500
64500
|
if (!p.call(this)) {
|
|
64501
64501
|
var re = {};
|
|
64502
|
-
this.lineCap !== "butt" && (re.lineCap = this.lineCap, this.lineCap = "butt"), this.lineJoin !== "miter" && (re.lineJoin = this.lineJoin, this.lineJoin = "miter"), this.beginPath(), this.rect(T, z,
|
|
64502
|
+
this.lineCap !== "butt" && (re.lineCap = this.lineCap, this.lineCap = "butt"), this.lineJoin !== "miter" && (re.lineJoin = this.lineJoin, this.lineJoin = "miter"), this.beginPath(), this.rect(T, z, Y, ee), this.fill(), re.hasOwnProperty("lineCap") && (this.lineCap = re.lineCap), re.hasOwnProperty("lineJoin") && (this.lineJoin = re.lineJoin);
|
|
64503
64503
|
}
|
|
64504
|
-
}, u.prototype.strokeRect = function(T, z,
|
|
64505
|
-
if (isNaN(T) || isNaN(z) || isNaN(
|
|
64504
|
+
}, u.prototype.strokeRect = function(T, z, Y, ee) {
|
|
64505
|
+
if (isNaN(T) || isNaN(z) || isNaN(Y) || isNaN(ee))
|
|
64506
64506
|
throw pn.error("jsPDF.context2d.strokeRect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");
|
|
64507
|
-
f.call(this) || (this.beginPath(), this.rect(T, z,
|
|
64508
|
-
}, u.prototype.clearRect = function(T, z,
|
|
64509
|
-
if (isNaN(T) || isNaN(z) || isNaN(
|
|
64507
|
+
f.call(this) || (this.beginPath(), this.rect(T, z, Y, ee), this.stroke());
|
|
64508
|
+
}, u.prototype.clearRect = function(T, z, Y, ee) {
|
|
64509
|
+
if (isNaN(T) || isNaN(z) || isNaN(Y) || isNaN(ee))
|
|
64510
64510
|
throw pn.error("jsPDF.context2d.clearRect: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.clearRect");
|
|
64511
|
-
this.ignoreClearRect || (this.fillStyle = "#ffffff", this.fillRect(T, z,
|
|
64511
|
+
this.ignoreClearRect || (this.fillStyle = "#ffffff", this.fillRect(T, z, Y, ee));
|
|
64512
64512
|
}, u.prototype.save = function(T) {
|
|
64513
64513
|
T = typeof T != "boolean" || T;
|
|
64514
|
-
for (var z = this.pdf.internal.getCurrentPageInfo().pageNumber,
|
|
64515
|
-
this.pdf.setPage(
|
|
64514
|
+
for (var z = this.pdf.internal.getCurrentPageInfo().pageNumber, Y = 0; Y < this.pdf.internal.getNumberOfPages(); Y++)
|
|
64515
|
+
this.pdf.setPage(Y + 1), this.pdf.internal.out("q");
|
|
64516
64516
|
if (this.pdf.setPage(z), T) {
|
|
64517
64517
|
this.ctx.fontSize = this.pdf.internal.getFontSize();
|
|
64518
64518
|
var ee = new c(this.ctx);
|
|
@@ -64520,68 +64520,68 @@ function $B(t) {
|
|
|
64520
64520
|
}
|
|
64521
64521
|
}, u.prototype.restore = function(T) {
|
|
64522
64522
|
T = typeof T != "boolean" || T;
|
|
64523
|
-
for (var z = this.pdf.internal.getCurrentPageInfo().pageNumber,
|
|
64524
|
-
this.pdf.setPage(
|
|
64523
|
+
for (var z = this.pdf.internal.getCurrentPageInfo().pageNumber, Y = 0; Y < this.pdf.internal.getNumberOfPages(); Y++)
|
|
64524
|
+
this.pdf.setPage(Y + 1), this.pdf.internal.out("Q");
|
|
64525
64525
|
this.pdf.setPage(z), T && this.ctxStack.length !== 0 && (this.ctx = this.ctxStack.pop(), this.fillStyle = this.ctx.fillStyle, this.strokeStyle = this.ctx.strokeStyle, this.font = this.ctx.font, this.lineCap = this.ctx.lineCap, this.lineWidth = this.ctx.lineWidth, this.lineJoin = this.ctx.lineJoin, this.lineDash = this.ctx.lineDash, this.lineDashOffset = this.ctx.lineDashOffset);
|
|
64526
64526
|
}, u.prototype.toDataURL = function() {
|
|
64527
64527
|
throw new Error("toDataUrl not implemented.");
|
|
64528
64528
|
};
|
|
64529
64529
|
var h = function(T) {
|
|
64530
|
-
var z,
|
|
64530
|
+
var z, Y, ee, re;
|
|
64531
64531
|
if (T.isCanvasGradient === !0 && (T = T.getColor()), !T)
|
|
64532
64532
|
return { r: 0, g: 0, b: 0, a: 0, style: T };
|
|
64533
64533
|
if (/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(T))
|
|
64534
|
-
z = 0,
|
|
64534
|
+
z = 0, Y = 0, ee = 0, re = 0;
|
|
64535
64535
|
else {
|
|
64536
64536
|
var le = /rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(T);
|
|
64537
64537
|
if (le !== null)
|
|
64538
|
-
z = parseInt(le[1]),
|
|
64538
|
+
z = parseInt(le[1]), Y = parseInt(le[2]), ee = parseInt(le[3]), re = 1;
|
|
64539
64539
|
else if ((le = /rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(T)) !== null)
|
|
64540
|
-
z = parseInt(le[1]),
|
|
64540
|
+
z = parseInt(le[1]), Y = parseInt(le[2]), ee = parseInt(le[3]), re = parseFloat(le[4]);
|
|
64541
64541
|
else {
|
|
64542
64542
|
if (re = 1, typeof T == "string" && T.charAt(0) !== "#") {
|
|
64543
64543
|
var Be = new L8(T);
|
|
64544
64544
|
T = Be.ok ? Be.toHex() : "#000000";
|
|
64545
64545
|
}
|
|
64546
|
-
T.length === 4 ? (z = T.substring(1, 2), z += z,
|
|
64546
|
+
T.length === 4 ? (z = T.substring(1, 2), z += z, Y = T.substring(2, 3), Y += Y, ee = T.substring(3, 4), ee += ee) : (z = T.substring(1, 3), Y = T.substring(3, 5), ee = T.substring(5, 7)), z = parseInt(z, 16), Y = parseInt(Y, 16), ee = parseInt(ee, 16);
|
|
64547
64547
|
}
|
|
64548
64548
|
}
|
|
64549
|
-
return { r: z, g:
|
|
64549
|
+
return { r: z, g: Y, b: ee, a: re, style: T };
|
|
64550
64550
|
}, p = function() {
|
|
64551
64551
|
return this.ctx.isFillTransparent || this.globalAlpha == 0;
|
|
64552
64552
|
}, f = function() {
|
|
64553
64553
|
return !!(this.ctx.isStrokeTransparent || this.globalAlpha == 0);
|
|
64554
64554
|
};
|
|
64555
|
-
u.prototype.fillText = function(T, z,
|
|
64556
|
-
if (isNaN(z) || isNaN(
|
|
64555
|
+
u.prototype.fillText = function(T, z, Y, ee) {
|
|
64556
|
+
if (isNaN(z) || isNaN(Y) || typeof T != "string")
|
|
64557
64557
|
throw pn.error("jsPDF.context2d.fillText: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.fillText");
|
|
64558
64558
|
if (ee = isNaN(ee) ? void 0 : ee, !p.call(this)) {
|
|
64559
64559
|
var re = ue(this.ctx.transform.rotation), le = this.ctx.transform.scaleX;
|
|
64560
|
-
Q.call(this, { text: T, x: z, y:
|
|
64560
|
+
Q.call(this, { text: T, x: z, y: Y, scale: le, angle: re, align: this.textAlign, maxWidth: ee });
|
|
64561
64561
|
}
|
|
64562
|
-
}, u.prototype.strokeText = function(T, z,
|
|
64563
|
-
if (isNaN(z) || isNaN(
|
|
64562
|
+
}, u.prototype.strokeText = function(T, z, Y, ee) {
|
|
64563
|
+
if (isNaN(z) || isNaN(Y) || typeof T != "string")
|
|
64564
64564
|
throw pn.error("jsPDF.context2d.strokeText: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.strokeText");
|
|
64565
64565
|
if (!f.call(this)) {
|
|
64566
64566
|
ee = isNaN(ee) ? void 0 : ee;
|
|
64567
64567
|
var re = ue(this.ctx.transform.rotation), le = this.ctx.transform.scaleX;
|
|
64568
|
-
Q.call(this, { text: T, x: z, y:
|
|
64568
|
+
Q.call(this, { text: T, x: z, y: Y, scale: le, renderingMode: "stroke", angle: re, align: this.textAlign, maxWidth: ee });
|
|
64569
64569
|
}
|
|
64570
64570
|
}, u.prototype.measureText = function(T) {
|
|
64571
64571
|
if (typeof T != "string")
|
|
64572
64572
|
throw pn.error("jsPDF.context2d.measureText: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.measureText");
|
|
64573
|
-
var z = this.pdf,
|
|
64573
|
+
var z = this.pdf, Y = this.pdf.internal.scaleFactor, ee = z.internal.getFontSize(), re = z.getStringUnitWidth(T) * ee / z.internal.scaleFactor;
|
|
64574
64574
|
return new function(le) {
|
|
64575
64575
|
var Be = (le = le || {}).width || 0;
|
|
64576
64576
|
return Object.defineProperty(this, "width", { get: function() {
|
|
64577
64577
|
return Be;
|
|
64578
64578
|
} }), this;
|
|
64579
|
-
}({ width: re *= Math.round(96 *
|
|
64579
|
+
}({ width: re *= Math.round(96 * Y / 72 * 1e4) / 1e4 });
|
|
64580
64580
|
}, u.prototype.scale = function(T, z) {
|
|
64581
64581
|
if (isNaN(T) || isNaN(z))
|
|
64582
64582
|
throw pn.error("jsPDF.context2d.scale: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.scale");
|
|
64583
|
-
var
|
|
64584
|
-
this.ctx.transform = this.ctx.transform.multiply(
|
|
64583
|
+
var Y = new d(T, 0, 0, z, 0, 0);
|
|
64584
|
+
this.ctx.transform = this.ctx.transform.multiply(Y);
|
|
64585
64585
|
}, u.prototype.rotate = function(T) {
|
|
64586
64586
|
if (isNaN(T))
|
|
64587
64587
|
throw pn.error("jsPDF.context2d.rotate: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.rotate");
|
|
@@ -64590,23 +64590,23 @@ function $B(t) {
|
|
|
64590
64590
|
}, u.prototype.translate = function(T, z) {
|
|
64591
64591
|
if (isNaN(T) || isNaN(z))
|
|
64592
64592
|
throw pn.error("jsPDF.context2d.translate: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.translate");
|
|
64593
|
-
var
|
|
64594
|
-
this.ctx.transform = this.ctx.transform.multiply(
|
|
64595
|
-
}, u.prototype.transform = function(T, z,
|
|
64596
|
-
if (isNaN(T) || isNaN(z) || isNaN(
|
|
64593
|
+
var Y = new d(1, 0, 0, 1, T, z);
|
|
64594
|
+
this.ctx.transform = this.ctx.transform.multiply(Y);
|
|
64595
|
+
}, u.prototype.transform = function(T, z, Y, ee, re, le) {
|
|
64596
|
+
if (isNaN(T) || isNaN(z) || isNaN(Y) || isNaN(ee) || isNaN(re) || isNaN(le))
|
|
64597
64597
|
throw pn.error("jsPDF.context2d.transform: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.transform");
|
|
64598
|
-
var Be = new d(T, z,
|
|
64598
|
+
var Be = new d(T, z, Y, ee, re, le);
|
|
64599
64599
|
this.ctx.transform = this.ctx.transform.multiply(Be);
|
|
64600
|
-
}, u.prototype.setTransform = function(T, z,
|
|
64601
|
-
T = isNaN(T) ? 1 : T, z = isNaN(z) ? 0 : z,
|
|
64600
|
+
}, u.prototype.setTransform = function(T, z, Y, ee, re, le) {
|
|
64601
|
+
T = isNaN(T) ? 1 : T, z = isNaN(z) ? 0 : z, Y = isNaN(Y) ? 0 : Y, ee = isNaN(ee) ? 1 : ee, re = isNaN(re) ? 0 : re, le = isNaN(le) ? 0 : le, this.ctx.transform = new d(T, z, Y, ee, re, le);
|
|
64602
64602
|
};
|
|
64603
64603
|
var m = function() {
|
|
64604
64604
|
return this.margin[0] > 0 || this.margin[1] > 0 || this.margin[2] > 0 || this.margin[3] > 0;
|
|
64605
64605
|
};
|
|
64606
|
-
u.prototype.drawImage = function(T, z,
|
|
64606
|
+
u.prototype.drawImage = function(T, z, Y, ee, re, le, Be, we, Te) {
|
|
64607
64607
|
var Ne = this.pdf.getImageProperties(T), ze = 1, He = 1, Ee = 1, Z = 1;
|
|
64608
|
-
ee !== void 0 && we !== void 0 && (Ee = we / ee, Z = Te / re, ze = Ne.width / ee * we / ee, He = Ne.height / re * Te / re), le === void 0 && (le = z, Be =
|
|
64609
|
-
for (var xt, Et = this.ctx.transform.decompose(), O = ue(Et.rotate.shx), _ = new d(), C = (_ = (_ = (_ = _.multiply(Et.translate)).multiply(Et.skew)).multiply(Et.scale)).applyToRectangle(new a(le - z * Ee, Be -
|
|
64608
|
+
ee !== void 0 && we !== void 0 && (Ee = we / ee, Z = Te / re, ze = Ne.width / ee * we / ee, He = Ne.height / re * Te / re), le === void 0 && (le = z, Be = Y, z = 0, Y = 0), ee !== void 0 && we === void 0 && (we = ee, Te = re), ee === void 0 && we === void 0 && (we = Ne.width, Te = Ne.height);
|
|
64609
|
+
for (var xt, Et = this.ctx.transform.decompose(), O = ue(Et.rotate.shx), _ = new d(), C = (_ = (_ = (_ = _.multiply(Et.translate)).multiply(Et.skew)).multiply(Et.scale)).applyToRectangle(new a(le - z * Ee, Be - Y * Z, ee * ze, re * He)), N = w.call(this, C), se = [], ge = 0; ge < N.length; ge += 1)
|
|
64610
64610
|
se.indexOf(N[ge]) === -1 && se.push(N[ge]);
|
|
64611
64611
|
if (k(se), this.autoPaging)
|
|
64612
64612
|
for (var ke = se[0], Ge = se[se.length - 1], Je = ke; Je < Ge + 1; Je++) {
|
|
@@ -64624,54 +64624,54 @@ function $B(t) {
|
|
|
64624
64624
|
else
|
|
64625
64625
|
this.pdf.addImage(T, "JPEG", C.x, C.y, C.w, C.h, null, null, O);
|
|
64626
64626
|
};
|
|
64627
|
-
var w = function(T, z,
|
|
64627
|
+
var w = function(T, z, Y) {
|
|
64628
64628
|
var ee = [];
|
|
64629
|
-
z = z || this.pdf.internal.pageSize.width,
|
|
64629
|
+
z = z || this.pdf.internal.pageSize.width, Y = Y || this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2];
|
|
64630
64630
|
var re = this.posY + this.ctx.prevPageLastElemOffset;
|
|
64631
64631
|
switch (T.type) {
|
|
64632
64632
|
default:
|
|
64633
64633
|
case "mt":
|
|
64634
64634
|
case "lt":
|
|
64635
|
-
ee.push(Math.floor((T.y + re) /
|
|
64635
|
+
ee.push(Math.floor((T.y + re) / Y) + 1);
|
|
64636
64636
|
break;
|
|
64637
64637
|
case "arc":
|
|
64638
|
-
ee.push(Math.floor((T.y + re - T.radius) /
|
|
64638
|
+
ee.push(Math.floor((T.y + re - T.radius) / Y) + 1), ee.push(Math.floor((T.y + re + T.radius) / Y) + 1);
|
|
64639
64639
|
break;
|
|
64640
64640
|
case "qct":
|
|
64641
64641
|
var le = Ce(this.ctx.lastPoint.x, this.ctx.lastPoint.y, T.x1, T.y1, T.x, T.y);
|
|
64642
|
-
ee.push(Math.floor((le.y + re) /
|
|
64642
|
+
ee.push(Math.floor((le.y + re) / Y) + 1), ee.push(Math.floor((le.y + le.h + re) / Y) + 1);
|
|
64643
64643
|
break;
|
|
64644
64644
|
case "bct":
|
|
64645
64645
|
var Be = fe(this.ctx.lastPoint.x, this.ctx.lastPoint.y, T.x1, T.y1, T.x2, T.y2, T.x, T.y);
|
|
64646
|
-
ee.push(Math.floor((Be.y + re) /
|
|
64646
|
+
ee.push(Math.floor((Be.y + re) / Y) + 1), ee.push(Math.floor((Be.y + Be.h + re) / Y) + 1);
|
|
64647
64647
|
break;
|
|
64648
64648
|
case "rect":
|
|
64649
|
-
ee.push(Math.floor((T.y + re) /
|
|
64649
|
+
ee.push(Math.floor((T.y + re) / Y) + 1), ee.push(Math.floor((T.y + T.h + re) / Y) + 1);
|
|
64650
64650
|
}
|
|
64651
64651
|
for (var we = 0; we < ee.length; we += 1)
|
|
64652
64652
|
for (; this.pdf.internal.getNumberOfPages() < ee[we]; )
|
|
64653
64653
|
v.call(this);
|
|
64654
64654
|
return ee;
|
|
64655
64655
|
}, v = function() {
|
|
64656
|
-
var T = this.fillStyle, z = this.strokeStyle,
|
|
64657
|
-
this.pdf.addPage(), this.fillStyle = T, this.strokeStyle = z, this.font =
|
|
64658
|
-
}, B = function(T, z,
|
|
64656
|
+
var T = this.fillStyle, z = this.strokeStyle, Y = this.font, ee = this.lineCap, re = this.lineWidth, le = this.lineJoin;
|
|
64657
|
+
this.pdf.addPage(), this.fillStyle = T, this.strokeStyle = z, this.font = Y, this.lineCap = ee, this.lineWidth = re, this.lineJoin = le;
|
|
64658
|
+
}, B = function(T, z, Y) {
|
|
64659
64659
|
for (var ee = 0; ee < T.length; ee++)
|
|
64660
64660
|
switch (T[ee].type) {
|
|
64661
64661
|
case "bct":
|
|
64662
|
-
T[ee].x2 += z, T[ee].y2 +=
|
|
64662
|
+
T[ee].x2 += z, T[ee].y2 += Y;
|
|
64663
64663
|
case "qct":
|
|
64664
|
-
T[ee].x1 += z, T[ee].y1 +=
|
|
64664
|
+
T[ee].x1 += z, T[ee].y1 += Y;
|
|
64665
64665
|
default:
|
|
64666
|
-
T[ee].x += z, T[ee].y +=
|
|
64666
|
+
T[ee].x += z, T[ee].y += Y;
|
|
64667
64667
|
}
|
|
64668
64668
|
return T;
|
|
64669
64669
|
}, k = function(T) {
|
|
64670
|
-
return T.sort(function(z,
|
|
64671
|
-
return z -
|
|
64670
|
+
return T.sort(function(z, Y) {
|
|
64671
|
+
return z - Y;
|
|
64672
64672
|
});
|
|
64673
64673
|
}, E = function(T, z) {
|
|
64674
|
-
for (var
|
|
64674
|
+
for (var Y, ee, re = this.fillStyle, le = this.strokeStyle, Be = this.lineCap, we = this.lineWidth, Te = Math.abs(we * this.ctx.transform.scaleX), Ne = this.lineJoin, ze = JSON.parse(JSON.stringify(this.path)), He = JSON.parse(JSON.stringify(this.path)), Ee = [], Z = 0; Z < He.length; Z++)
|
|
64675
64675
|
if (He[Z].x !== void 0)
|
|
64676
64676
|
for (var xt = w.call(this, He[Z]), Et = 0; Et < xt.length; Et += 1)
|
|
64677
64677
|
Ee.indexOf(xt[Et]) === -1 && Ee.push(xt[Et]);
|
|
@@ -64684,7 +64684,7 @@ function $B(t) {
|
|
|
64684
64684
|
var se = this.pdf.internal.pageSize.width - this.margin[3] - this.margin[1], ge = N === 1 ? this.posY + this.margin[0] : this.margin[0], ke = this.pdf.internal.pageSize.height - this.posY - this.margin[0] - this.margin[2], Ge = this.pdf.internal.pageSize.height - this.margin[0] - this.margin[2], Je = N === 1 ? 0 : ke + (N - 2) * Ge;
|
|
64685
64685
|
if (this.ctx.clip_path.length !== 0) {
|
|
64686
64686
|
var ht = this.path;
|
|
64687
|
-
|
|
64687
|
+
Y = JSON.parse(JSON.stringify(this.ctx.clip_path)), this.path = B(Y, this.posX + this.margin[3], -Je + ge + this.ctx.prevPageLastElemOffset), q.call(this, T, !0), this.path = ht;
|
|
64688
64688
|
}
|
|
64689
64689
|
if (ee = JSON.parse(JSON.stringify(ze)), this.path = B(ee, this.posX + this.margin[3], -Je + ge + this.ctx.prevPageLastElemOffset), z === !1 || N === 0) {
|
|
64690
64690
|
var lt = (N > _ || N < C) && m.call(this);
|
|
@@ -64697,7 +64697,7 @@ function $B(t) {
|
|
|
64697
64697
|
this.path = ze;
|
|
64698
64698
|
}, q = function(T, z) {
|
|
64699
64699
|
if ((T !== "stroke" || z || !f.call(this)) && (T === "stroke" || z || !p.call(this))) {
|
|
64700
|
-
for (var
|
|
64700
|
+
for (var Y, ee, re = [], le = this.path, Be = 0; Be < le.length; Be++) {
|
|
64701
64701
|
var we = le[Be];
|
|
64702
64702
|
switch (we.type) {
|
|
64703
64703
|
case "begin":
|
|
@@ -64711,20 +64711,20 @@ function $B(t) {
|
|
|
64711
64711
|
break;
|
|
64712
64712
|
case "lt":
|
|
64713
64713
|
var Te = re.length;
|
|
64714
|
-
if (le[Be - 1] && !isNaN(le[Be - 1].x) && (
|
|
64714
|
+
if (le[Be - 1] && !isNaN(le[Be - 1].x) && (Y = [we.x - le[Be - 1].x, we.y - le[Be - 1].y], Te > 0)) {
|
|
64715
64715
|
for (; Te >= 0; Te--)
|
|
64716
64716
|
if (re[Te - 1].close !== !0 && re[Te - 1].begin !== !0) {
|
|
64717
|
-
re[Te - 1].deltas.push(
|
|
64717
|
+
re[Te - 1].deltas.push(Y), re[Te - 1].abs.push(we);
|
|
64718
64718
|
break;
|
|
64719
64719
|
}
|
|
64720
64720
|
}
|
|
64721
64721
|
break;
|
|
64722
64722
|
case "bct":
|
|
64723
|
-
|
|
64723
|
+
Y = [we.x1 - le[Be - 1].x, we.y1 - le[Be - 1].y, we.x2 - le[Be - 1].x, we.y2 - le[Be - 1].y, we.x - le[Be - 1].x, we.y - le[Be - 1].y], re[re.length - 1].deltas.push(Y);
|
|
64724
64724
|
break;
|
|
64725
64725
|
case "qct":
|
|
64726
64726
|
var Ne = le[Be - 1].x + 2 / 3 * (we.x1 - le[Be - 1].x), ze = le[Be - 1].y + 2 / 3 * (we.y1 - le[Be - 1].y), He = we.x + 2 / 3 * (we.x1 - we.x), Ee = we.y + 2 / 3 * (we.y1 - we.y), Z = we.x, xt = we.y;
|
|
64727
|
-
|
|
64727
|
+
Y = [Ne - le[Be - 1].x, ze - le[Be - 1].y, He - le[Be - 1].x, Ee - le[Be - 1].y, Z - le[Be - 1].x, xt - le[Be - 1].y], re[re.length - 1].deltas.push(Y);
|
|
64728
64728
|
break;
|
|
64729
64729
|
case "arc":
|
|
64730
64730
|
re.push({ deltas: [], abs: [], arc: !0 }), Array.isArray(re[re.length - 1].abs) && re[re.length - 1].abs.push(we);
|
|
@@ -64735,7 +64735,7 @@ function $B(t) {
|
|
|
64735
64735
|
if (re[O].arc)
|
|
64736
64736
|
for (var _ = re[O].abs, C = 0; C < _.length; C++) {
|
|
64737
64737
|
var N = _[C];
|
|
64738
|
-
N.type === "arc" ?
|
|
64738
|
+
N.type === "arc" ? K.call(this, N.x, N.y, N.radius, N.startAngle, N.endAngle, N.counterclockwise, void 0, z, !Et) : X.call(this, N.x, N.y), Et = !0;
|
|
64739
64739
|
}
|
|
64740
64740
|
else if (re[O].close === !0)
|
|
64741
64741
|
this.pdf.internal.out("h"), Et = !1;
|
|
@@ -64746,27 +64746,27 @@ function $B(t) {
|
|
|
64746
64746
|
ee && R.call(this, ee), z && ne.call(this);
|
|
64747
64747
|
}
|
|
64748
64748
|
}, D = function(T) {
|
|
64749
|
-
var z = this.pdf.internal.getFontSize() / this.pdf.internal.scaleFactor,
|
|
64749
|
+
var z = this.pdf.internal.getFontSize() / this.pdf.internal.scaleFactor, Y = z * (this.pdf.internal.getLineHeightFactor() - 1);
|
|
64750
64750
|
switch (this.ctx.textBaseline) {
|
|
64751
64751
|
case "bottom":
|
|
64752
|
-
return T -
|
|
64752
|
+
return T - Y;
|
|
64753
64753
|
case "top":
|
|
64754
|
-
return T + z -
|
|
64754
|
+
return T + z - Y;
|
|
64755
64755
|
case "hanging":
|
|
64756
|
-
return T + z - 2 *
|
|
64756
|
+
return T + z - 2 * Y;
|
|
64757
64757
|
case "middle":
|
|
64758
|
-
return T + z / 2 -
|
|
64758
|
+
return T + z / 2 - Y;
|
|
64759
64759
|
default:
|
|
64760
64760
|
return T;
|
|
64761
64761
|
}
|
|
64762
|
-
},
|
|
64762
|
+
}, W = function(T) {
|
|
64763
64763
|
return T + this.pdf.internal.getFontSize() / this.pdf.internal.scaleFactor * (this.pdf.internal.getLineHeightFactor() - 1);
|
|
64764
64764
|
};
|
|
64765
64765
|
u.prototype.createLinearGradient = function() {
|
|
64766
64766
|
var T = function() {
|
|
64767
64767
|
};
|
|
64768
|
-
return T.colorStops = [], T.addColorStop = function(z,
|
|
64769
|
-
this.colorStops.push([z,
|
|
64768
|
+
return T.colorStops = [], T.addColorStop = function(z, Y) {
|
|
64769
|
+
this.colorStops.push([z, Y]);
|
|
64770
64770
|
}, T.getColor = function() {
|
|
64771
64771
|
return this.colorStops.length === 0 ? "#000000" : this.colorStops[0][1];
|
|
64772
64772
|
}, T.isCanvasGradient = !0, T;
|
|
@@ -64775,8 +64775,8 @@ function $B(t) {
|
|
|
64775
64775
|
}, u.prototype.createRadialGradient = function() {
|
|
64776
64776
|
return this.createLinearGradient();
|
|
64777
64777
|
};
|
|
64778
|
-
var
|
|
64779
|
-
for (var Ne = be.call(this,
|
|
64778
|
+
var K = function(T, z, Y, ee, re, le, Be, we, Te) {
|
|
64779
|
+
for (var Ne = be.call(this, Y, ee, re, le), ze = 0; ze < Ne.length; ze++) {
|
|
64780
64780
|
var He = Ne[ze];
|
|
64781
64781
|
ze === 0 && (Te ? U.call(this, He.x1 + T, He.y1 + z) : X.call(this, He.x1 + T, He.y1 + z)), Ae.call(this, T, z, He.x2, He.y2, He.x3, He.y3, He.x4, He.y4);
|
|
64782
64782
|
}
|
|
@@ -64806,9 +64806,9 @@ function $B(t) {
|
|
|
64806
64806
|
default:
|
|
64807
64807
|
z = "left";
|
|
64808
64808
|
}
|
|
64809
|
-
var
|
|
64809
|
+
var Y = this.pdf.getTextDimensions(T.text), ee = D.call(this, T.y), re = W.call(this, ee) - Y.h, le = this.ctx.transform.applyToPoint(new o(T.x, ee)), Be = this.ctx.transform.decompose(), we = new d();
|
|
64810
64810
|
we = (we = (we = we.multiply(Be.translate)).multiply(Be.skew)).multiply(Be.scale);
|
|
64811
|
-
for (var Te, Ne, ze, He = this.ctx.transform.applyToRectangle(new a(T.x, ee,
|
|
64811
|
+
for (var Te, Ne, ze, He = this.ctx.transform.applyToRectangle(new a(T.x, ee, Y.w, Y.h)), Ee = we.applyToRectangle(new a(T.x, re, Y.w, Y.h)), Z = w.call(this, Ee), xt = [], Et = 0; Et < Z.length; Et += 1)
|
|
64812
64812
|
xt.indexOf(Z[Et]) === -1 && xt.push(Z[Et]);
|
|
64813
64813
|
if (k(xt), this.autoPaging)
|
|
64814
64814
|
for (var O = xt[0], _ = xt[xt.length - 1], C = O; C < _ + 1; C++) {
|
|
@@ -64832,39 +64832,39 @@ function $B(t) {
|
|
|
64832
64832
|
}
|
|
64833
64833
|
else
|
|
64834
64834
|
T.scale >= 0.01 && (Ne = this.pdf.internal.getFontSize(), this.pdf.setFontSize(Ne * T.scale), ze = this.lineWidth, this.lineWidth = ze * T.scale), this.pdf.text(T.text, le.x + this.posX, le.y + this.posY, { angle: T.angle, align: z, renderingMode: T.renderingMode, maxWidth: T.maxWidth }), T.scale >= 0.01 && (this.pdf.setFontSize(Ne), this.lineWidth = ze);
|
|
64835
|
-
}, X = function(T, z,
|
|
64836
|
-
|
|
64837
|
-
}, $ = function(T, z,
|
|
64838
|
-
return this.pdf.lines(T, z,
|
|
64839
|
-
}, Ae = function(T, z,
|
|
64840
|
-
this.pdf.internal.out([e(s(
|
|
64841
|
-
}, be = function(T, z,
|
|
64842
|
-
for (var re = 2 * Math.PI, le = Math.PI / 2; z >
|
|
64835
|
+
}, X = function(T, z, Y, ee) {
|
|
64836
|
+
Y = Y || 0, ee = ee || 0, this.pdf.internal.out(n(T + Y) + " " + r(z + ee) + " l");
|
|
64837
|
+
}, $ = function(T, z, Y) {
|
|
64838
|
+
return this.pdf.lines(T, z, Y, null, null);
|
|
64839
|
+
}, Ae = function(T, z, Y, ee, re, le, Be, we) {
|
|
64840
|
+
this.pdf.internal.out([e(s(Y + T)), e(i(ee + z)), e(s(re + T)), e(i(le + z)), e(s(Be + T)), e(i(we + z)), "c"].join(" "));
|
|
64841
|
+
}, be = function(T, z, Y, ee) {
|
|
64842
|
+
for (var re = 2 * Math.PI, le = Math.PI / 2; z > Y; )
|
|
64843
64843
|
z -= re;
|
|
64844
|
-
var Be = Math.abs(
|
|
64844
|
+
var Be = Math.abs(Y - z);
|
|
64845
64845
|
Be < re && ee && (Be = re - Be);
|
|
64846
64846
|
for (var we = [], Te = ee ? -1 : 1, Ne = z; Be > 1e-5; ) {
|
|
64847
64847
|
var ze = Ne + Te * Math.min(Be, le);
|
|
64848
64848
|
we.push(ve.call(this, T, Ne, ze)), Be -= Math.abs(ze - Ne), Ne = ze;
|
|
64849
64849
|
}
|
|
64850
64850
|
return we;
|
|
64851
|
-
}, ve = function(T, z,
|
|
64852
|
-
var ee = (
|
|
64853
|
-
return { x1: T * Math.cos(z), y1: T * Math.sin(z), x2: He * O - Ee * _, y2: He * _ + Ee * O, x3: Z * O - xt * _, y3: Z * _ + xt * O, x4: T * Math.cos(
|
|
64851
|
+
}, ve = function(T, z, Y) {
|
|
64852
|
+
var ee = (Y - z) / 2, re = T * Math.cos(ee), le = T * Math.sin(ee), Be = re, we = -le, Te = Be * Be + we * we, Ne = Te + Be * re + we * le, ze = 4 / 3 * (Math.sqrt(2 * Te * Ne) - Ne) / (Be * le - we * re), He = Be - ze * we, Ee = we + ze * Be, Z = He, xt = -Ee, Et = ee + z, O = Math.cos(Et), _ = Math.sin(Et);
|
|
64853
|
+
return { x1: T * Math.cos(z), y1: T * Math.sin(z), x2: He * O - Ee * _, y2: He * _ + Ee * O, x3: Z * O - xt * _, y3: Z * _ + xt * O, x4: T * Math.cos(Y), y4: T * Math.sin(Y) };
|
|
64854
64854
|
}, ue = function(T) {
|
|
64855
64855
|
return 180 * T / Math.PI;
|
|
64856
|
-
}, Ce = function(T, z,
|
|
64857
|
-
var Be = T + 0.5 * (
|
|
64856
|
+
}, Ce = function(T, z, Y, ee, re, le) {
|
|
64857
|
+
var Be = T + 0.5 * (Y - T), we = z + 0.5 * (ee - z), Te = re + 0.5 * (Y - re), Ne = le + 0.5 * (ee - le), ze = Math.min(T, re, Be, Te), He = Math.max(T, re, Be, Te), Ee = Math.min(z, le, we, Ne), Z = Math.max(z, le, we, Ne);
|
|
64858
64858
|
return new a(ze, Ee, He - ze, Z - Ee);
|
|
64859
|
-
}, fe = function(T, z,
|
|
64860
|
-
var Te, Ne, ze, He, Ee, Z, xt, Et, O, _, C, N, se, ge, ke =
|
|
64859
|
+
}, fe = function(T, z, Y, ee, re, le, Be, we) {
|
|
64860
|
+
var Te, Ne, ze, He, Ee, Z, xt, Et, O, _, C, N, se, ge, ke = Y - T, Ge = ee - z, Je = re - Y, ht = le - ee, lt = Be - re, Ke = we - le;
|
|
64861
64861
|
for (Ne = 0; Ne < 41; Ne++)
|
|
64862
|
-
O = (xt = (ze = T + (Te = Ne / 40) * ke) + Te * ((Ee =
|
|
64862
|
+
O = (xt = (ze = T + (Te = Ne / 40) * ke) + Te * ((Ee = Y + Te * Je) - ze)) + Te * (Ee + Te * (re + Te * lt - Ee) - xt), _ = (Et = (He = z + Te * Ge) + Te * ((Z = ee + Te * ht) - He)) + Te * (Z + Te * (le + Te * Ke - Z) - Et), Ne == 0 ? (C = O, N = _, se = O, ge = _) : (C = Math.min(C, O), N = Math.min(N, _), se = Math.max(se, O), ge = Math.max(ge, _));
|
|
64863
64863
|
return new a(Math.round(C), Math.round(N), Math.round(se - C), Math.round(ge - N));
|
|
64864
64864
|
}, de = function() {
|
|
64865
64865
|
if (this.prevLineDash || this.ctx.lineDash.length || this.ctx.lineDashOffset) {
|
|
64866
|
-
var T, z,
|
|
64867
|
-
this.prevLineDash !==
|
|
64866
|
+
var T, z, Y = (T = this.ctx.lineDash, z = this.ctx.lineDashOffset, JSON.stringify({ lineDash: T, lineDashOffset: z }));
|
|
64867
|
+
this.prevLineDash !== Y && (this.pdf.setLineDash(this.ctx.lineDash, this.ctx.lineDashOffset), this.prevLineDash = Y);
|
|
64868
64868
|
}
|
|
64869
64869
|
};
|
|
64870
64870
|
})(pt.API), /**
|
|
@@ -65405,14 +65405,14 @@ function(t) {
|
|
|
65405
65405
|
}(pt.API), pt.API.processPNG = function(t, e, n, r) {
|
|
65406
65406
|
if (this.__addimage__.isArrayBuffer(t) && (t = new Uint8Array(t)), this.__addimage__.isArrayBufferView(t)) {
|
|
65407
65407
|
var s, i = jee(t, { checkCrc: !0 }), o = i.width, a = i.height, d = i.channels, l = i.palette, c = i.depth;
|
|
65408
|
-
s = l && d === 1 ? function(
|
|
65409
|
-
for (var
|
|
65410
|
-
var fe = PC(U[Ce], 4), de = fe[0], T = fe[1], z = fe[2],
|
|
65411
|
-
$.push(de, T, z),
|
|
65408
|
+
s = l && d === 1 ? function(W) {
|
|
65409
|
+
for (var K = W.width, R = W.height, ne = W.data, U = W.palette, Q = W.depth, X = !1, $ = [], Ae = [], be = void 0, ve = !1, ue = 0, Ce = 0; Ce < U.length; Ce++) {
|
|
65410
|
+
var fe = PC(U[Ce], 4), de = fe[0], T = fe[1], z = fe[2], Y = fe[3];
|
|
65411
|
+
$.push(de, T, z), Y != null && (Y === 0 ? (ue++, Ae.length < 1 && Ae.push(Ce)) : Y < 255 && (ve = !0));
|
|
65412
65412
|
}
|
|
65413
65413
|
if (ve || ue > 1) {
|
|
65414
65414
|
X = !0, Ae = void 0;
|
|
65415
|
-
var ee =
|
|
65415
|
+
var ee = K * R;
|
|
65416
65416
|
be = new Uint8Array(ee);
|
|
65417
65417
|
for (var re = new DataView(ne.buffer), le = 0; le < ee; le++) {
|
|
65418
65418
|
var Be = Rb(re, le, Q), we = PC(U[Be], 4)[3];
|
|
@@ -65420,35 +65420,35 @@ function(t) {
|
|
|
65420
65420
|
}
|
|
65421
65421
|
}
|
|
65422
65422
|
return { colorSpace: "Indexed", colorsPerPixel: 1, colorBytes: ne, alphaBytes: be, needSMask: X, palette: $, mask: Ae };
|
|
65423
|
-
}(i) : d === 2 || d === 4 ? function(
|
|
65424
|
-
for (var
|
|
65423
|
+
}(i) : d === 2 || d === 4 ? function(W) {
|
|
65424
|
+
for (var K = W.data, R = W.width, ne = W.height, U = W.channels, Q = W.depth, X = U === 2 ? "DeviceGray" : "DeviceRGB", $ = U - 1, Ae = R * ne, be = $, ve = Ae * be, ue = 1 * Ae, Ce = Math.ceil(ve * Q / 8), fe = Math.ceil(ue * Q / 8), de = new Uint8Array(Ce), T = new Uint8Array(fe), z = new DataView(K.buffer), Y = new DataView(de.buffer), ee = new DataView(T.buffer), re = !1, le = 0; le < Ae; le++) {
|
|
65425
65425
|
for (var Be = le * U, we = 0; we < be; we++)
|
|
65426
|
-
XB(
|
|
65426
|
+
XB(Y, Rb(z, Be + we, Q), le * be + we, Q);
|
|
65427
65427
|
var Te = Rb(z, Be + be, Q);
|
|
65428
65428
|
Te < (1 << Q) - 1 && (re = !0), XB(ee, Te, 1 * le, Q);
|
|
65429
65429
|
}
|
|
65430
65430
|
return { colorSpace: X, colorsPerPixel: $, colorBytes: de, alphaBytes: T, needSMask: re };
|
|
65431
|
-
}(i) : function(
|
|
65432
|
-
var
|
|
65433
|
-
return { colorSpace: R, colorsPerPixel: R === "DeviceGray" ? 1 : 3, colorBytes:
|
|
65431
|
+
}(i) : function(W) {
|
|
65432
|
+
var K = W.data, R = W.channels === 1 ? "DeviceGray" : "DeviceRGB";
|
|
65433
|
+
return { colorSpace: R, colorsPerPixel: R === "DeviceGray" ? 1 : 3, colorBytes: K instanceof Uint8Array ? K : new Uint8Array(K.buffer), needSMask: !1 };
|
|
65434
65434
|
}(i);
|
|
65435
65435
|
var u, h, p, f = s, m = f.colorSpace, w = f.colorsPerPixel, v = f.colorBytes, B = f.alphaBytes, k = f.needSMask, E = f.palette, q = f.mask, D = null;
|
|
65436
|
-
return r !== pt.API.image_compression.NONE && typeof E2 == "function" ? (D = function(
|
|
65437
|
-
var
|
|
65438
|
-
switch (
|
|
65436
|
+
return r !== pt.API.image_compression.NONE && typeof E2 == "function" ? (D = function(W) {
|
|
65437
|
+
var K;
|
|
65438
|
+
switch (W) {
|
|
65439
65439
|
case pt.API.image_compression.FAST:
|
|
65440
|
-
|
|
65440
|
+
K = 11;
|
|
65441
65441
|
break;
|
|
65442
65442
|
case pt.API.image_compression.MEDIUM:
|
|
65443
|
-
|
|
65443
|
+
K = 13;
|
|
65444
65444
|
break;
|
|
65445
65445
|
case pt.API.image_compression.SLOW:
|
|
65446
|
-
|
|
65446
|
+
K = 14;
|
|
65447
65447
|
break;
|
|
65448
65448
|
default:
|
|
65449
|
-
|
|
65449
|
+
K = 12;
|
|
65450
65450
|
}
|
|
65451
|
-
return
|
|
65451
|
+
return K;
|
|
65452
65452
|
}(r), u = this.decode.FLATE_DECODE, h = "/Predictor ".concat(D, " "), t = VB(v, o * w, w, r), k && (p = VB(B, o, 1, r))) : (u = void 0, h = "", t = v, k && (p = B)), h += "/Colors ".concat(w, " /BitsPerComponent ").concat(c, " /Columns ").concat(o), (this.__addimage__.isArrayBuffer(t) || this.__addimage__.isArrayBufferView(t)) && (t = this.__addimage__.arrayBufferToBinaryString(t)), (p && this.__addimage__.isArrayBuffer(p) || this.__addimage__.isArrayBufferView(p)) && (p = this.__addimage__.arrayBufferToBinaryString(p)), { alias: n, data: t, index: e, filter: u, decodeParameters: h, transparency: q, palette: E, sMask: p, predictor: D, width: o, height: a, bitsPerComponent: c, colorSpace: m };
|
|
65453
65453
|
}
|
|
65454
65454
|
}, function(t) {
|
|
@@ -65670,8 +65670,8 @@ function(t) {
|
|
|
65670
65670
|
}, d = t.__fontmetrics__.uncompress = function(h) {
|
|
65671
65671
|
if (typeof h != "string")
|
|
65672
65672
|
throw new Error("Invalid argument passed to uncompress.");
|
|
65673
|
-
for (var p, f, m, w, v = {}, B = 1, k = v, E = [], q = "", D = "",
|
|
65674
|
-
(w = h[
|
|
65673
|
+
for (var p, f, m, w, v = {}, B = 1, k = v, E = [], q = "", D = "", W = h.length - 1, K = 1; K < W; K += 1)
|
|
65674
|
+
(w = h[K]) == "'" ? p ? (m = p.join(""), p = void 0) : p = [] : p ? p.push(w) : w == "{" ? (E.push([k, m]), k = {}, m = void 0) : w == "}" ? ((f = E.pop())[0][f[1]] = k, m = void 0, k = f[0]) : w == "-" ? B = -1 : m === void 0 ? r.hasOwnProperty(w) ? (q += r[w], m = parseInt(q, 16) * B, B = 1, q = "") : q += w : r.hasOwnProperty(w) ? (D += r[w], k[m] = parseInt(D, 16) * B, B = 1, m = void 0, D = "") : D += w;
|
|
65675
65675
|
return v;
|
|
65676
65676
|
}, l = { codePages: ["WinAnsiEncoding"], WinAnsiEncoding: d("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}") }, c = { Unicode: { Courier: l, "Courier-Bold": l, "Courier-BoldOblique": l, "Courier-Oblique": l, Helvetica: l, "Helvetica-Bold": l, "Helvetica-BoldOblique": l, "Helvetica-Oblique": l, "Times-Roman": l, "Times-Bold": l, "Times-BoldItalic": l, "Times-Italic": l } }, u = { Unicode: { "Courier-Oblique": d("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-BoldItalic": d("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"), "Helvetica-Bold": d("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"), Courier: d("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Courier-BoldOblique": d("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-Bold": d("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"), Symbol: d("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"), Helvetica: d("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"), "Helvetica-BoldOblique": d("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"), ZapfDingbats: d("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"), "Courier-Bold": d("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-Italic": d("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"), "Times-Roman": d("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"), "Helvetica-Oblique": d("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}") } };
|
|
65677
65677
|
t.events.push(["addFont", function(h) {
|
|
@@ -65713,7 +65713,7 @@ function(t) {
|
|
|
65713
65713
|
var l = d.getContext("2d");
|
|
65714
65714
|
l.fillStyle = "#fff", l.fillRect(0, 0, d.width, d.height);
|
|
65715
65715
|
var c = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, u = this;
|
|
65716
|
-
return (vt.canvg ? Promise.resolve(vt.canvg) : import("./index.es-
|
|
65716
|
+
return (vt.canvg ? Promise.resolve(vt.canvg) : import("./index.es-de7e7ff7.js")).catch(function(h) {
|
|
65717
65717
|
return Promise.reject(new Error("Could not load canvg: " + h));
|
|
65718
65718
|
}).then(function(h) {
|
|
65719
65719
|
return h.default ? h.default : h;
|
|
@@ -66015,15 +66015,15 @@ function(t) {
|
|
|
66015
66015
|
i = !0, Ce = "N";
|
|
66016
66016
|
}
|
|
66017
66017
|
return Ce;
|
|
66018
|
-
},
|
|
66018
|
+
}, W = function(U, Q, X) {
|
|
66019
66019
|
var $ = U.split("");
|
|
66020
|
-
return X &&
|
|
66021
|
-
},
|
|
66022
|
-
var $, Ae, be, ve, ue, Ce = -1, fe = U.length, de = 0, T = [], z = k ? p : h,
|
|
66020
|
+
return X && K($, X, { hiLevel: k }), $.reverse(), Q && Q.reverse(), $.join("");
|
|
66021
|
+
}, K = function(U, Q, X) {
|
|
66022
|
+
var $, Ae, be, ve, ue, Ce = -1, fe = U.length, de = 0, T = [], z = k ? p : h, Y = [];
|
|
66023
66023
|
for (B = !1, s = !1, i = !1, Ae = 0; Ae < fe; Ae++)
|
|
66024
|
-
|
|
66024
|
+
Y[Ae] = E(U[Ae]);
|
|
66025
66025
|
for (be = 0; be < fe; be++) {
|
|
66026
|
-
if (ue = de, T[be] = D(U,
|
|
66026
|
+
if (ue = de, T[be] = D(U, Y, T, be), $ = 240 & (de = z[ue][f[T[be]]]), de &= 15, Q[be] = ve = z[de][5], $ > 0)
|
|
66027
66027
|
if ($ === 16) {
|
|
66028
66028
|
for (Ae = Ce; Ae < be; Ae++)
|
|
66029
66029
|
Q[Ae] = 1;
|
|
@@ -66037,7 +66037,7 @@ function(t) {
|
|
|
66037
66037
|
Q[Ae] = ve;
|
|
66038
66038
|
Ce = -1;
|
|
66039
66039
|
}
|
|
66040
|
-
|
|
66040
|
+
Y[be] === "B" && (Q[be] = 0), X.hiLevel |= ve;
|
|
66041
66041
|
}
|
|
66042
66042
|
i && function(ee, re, le) {
|
|
66043
66043
|
for (var Be = 0; Be < le; Be++)
|
|
@@ -66046,7 +66046,7 @@ function(t) {
|
|
|
66046
66046
|
for (var we = Be - 1; we >= 0 && ee[we] === "WS"; we--)
|
|
66047
66047
|
re[we] = k;
|
|
66048
66048
|
}
|
|
66049
|
-
}(
|
|
66049
|
+
}(Y, Q, fe);
|
|
66050
66050
|
}, R = function(U, Q, X, $, Ae) {
|
|
66051
66051
|
if (!(Ae.hiLevel < U)) {
|
|
66052
66052
|
if (U === 1 && k === 1 && !s)
|
|
@@ -66064,7 +66064,7 @@ function(t) {
|
|
|
66064
66064
|
}
|
|
66065
66065
|
}, ne = function(U, Q, X) {
|
|
66066
66066
|
var $ = U.split(""), Ae = { hiLevel: k };
|
|
66067
|
-
return X || (X = []),
|
|
66067
|
+
return X || (X = []), K($, X, Ae), function(be, ve, ue) {
|
|
66068
66068
|
if (ue.hiLevel !== 0 && c)
|
|
66069
66069
|
for (var Ce, fe = 0; fe < be.length; fe++)
|
|
66070
66070
|
ve[fe] === 1 && (Ce = w.indexOf(be[fe])) >= 0 && (be[fe] = w[Ce + 1]);
|
|
@@ -66078,17 +66078,17 @@ function(t) {
|
|
|
66078
66078
|
a === void 0 && (a = q(Ae)), l === void 0 && (l = q(Ae));
|
|
66079
66079
|
}(U, Q), o || !d || l)
|
|
66080
66080
|
if (o && d && a ^ l)
|
|
66081
|
-
k = a ? 1 : 0, U =
|
|
66081
|
+
k = a ? 1 : 0, U = W(U, Q, X);
|
|
66082
66082
|
else if (!o && d && l)
|
|
66083
|
-
k = a ? 1 : 0, U = ne(U, Q, X), U =
|
|
66083
|
+
k = a ? 1 : 0, U = ne(U, Q, X), U = W(U, Q);
|
|
66084
66084
|
else if (!o || a || d || l) {
|
|
66085
66085
|
if (o && !d && a ^ l)
|
|
66086
|
-
U =
|
|
66086
|
+
U = W(U, Q), a ? (k = 0, U = ne(U, Q, X)) : (k = 1, U = ne(U, Q, X), U = W(U, Q));
|
|
66087
66087
|
else if (o && a && !d && l)
|
|
66088
|
-
k = 1, U = ne(U, Q, X), U =
|
|
66088
|
+
k = 1, U = ne(U, Q, X), U = W(U, Q);
|
|
66089
66089
|
else if (!o && !d && a ^ l) {
|
|
66090
66090
|
var $ = c;
|
|
66091
|
-
a ? (k = 1, U = ne(U, Q, X), k = 0, c = !1, U = ne(U, Q, X), c = $) : (k = 0, U = ne(U, Q, X), U =
|
|
66091
|
+
a ? (k = 1, U = ne(U, Q, X), k = 0, c = !1, U = ne(U, Q, X), c = $) : (k = 0, U = ne(U, Q, X), U = W(U, Q), k = 1, c = !1, U = ne(U, Q, X), c = $, U = W(U, Q));
|
|
66092
66092
|
}
|
|
66093
66093
|
} else
|
|
66094
66094
|
k = 0, U = ne(U, Q, X);
|
|
@@ -66303,7 +66303,7 @@ var nte = function() {
|
|
|
66303
66303
|
e.pos = u;
|
|
66304
66304
|
}
|
|
66305
66305
|
return t.encode = function(e, n) {
|
|
66306
|
-
var r, s, i, o, a, d, l, c, u, h, p, f, m, w, v, B, k, E, q, D,
|
|
66306
|
+
var r, s, i, o, a, d, l, c, u, h, p, f, m, w, v, B, k, E, q, D, W, K, R, ne, U, Q, X, $, Ae, be, ve, ue, Ce, fe, de, T, z, Y, ee, re, le, Be, we, Te, Ne, ze;
|
|
66307
66307
|
switch ($ = new zl(), o = Object.keys(e).sort(function(He, Ee) {
|
|
66308
66308
|
return He - Ee;
|
|
66309
66309
|
}), n) {
|
|
@@ -66319,7 +66319,7 @@ var nte = function() {
|
|
|
66319
66319
|
case "unicode":
|
|
66320
66320
|
for (Q = [], u = [], k = 0, B = {}, r = {}, v = l = null, be = 0, fe = o.length; be < fe; be++)
|
|
66321
66321
|
B[q = e[s = o[be]]] == null && (B[q] = ++k), r[s] = { old: q, new: B[q] }, a = B[q] - s, v != null && a === l || (v && u.push(v), Q.push(s), l = a), v = s;
|
|
66322
|
-
for (v && u.push(v), u.push(65535), Q.push(65535), ne = 2 * (R = Q.length),
|
|
66322
|
+
for (v && u.push(v), u.push(65535), Q.push(65535), ne = 2 * (R = Q.length), K = 2 * Math.pow(Math.log(R) / Math.LN2, 2), h = Math.log(K / 2) / Math.LN2, W = 2 * R - K, d = [], D = [], p = [], f = ve = 0, de = Q.length; ve < de; f = ++ve) {
|
|
66323
66323
|
if (U = Q[f], c = u[f], U === 65535) {
|
|
66324
66324
|
d.push(0), D.push(0);
|
|
66325
66325
|
break;
|
|
@@ -66330,11 +66330,11 @@ var nte = function() {
|
|
|
66330
66330
|
else
|
|
66331
66331
|
d.push(X - U), D.push(0);
|
|
66332
66332
|
}
|
|
66333
|
-
for ($.writeUInt16(3), $.writeUInt16(1), $.writeUInt32(12), $.writeUInt16(4), $.writeUInt16(16 + 8 * R + 2 * p.length), $.writeUInt16(0), $.writeUInt16(ne), $.writeUInt16(
|
|
66333
|
+
for ($.writeUInt16(3), $.writeUInt16(1), $.writeUInt32(12), $.writeUInt16(4), $.writeUInt16(16 + 8 * R + 2 * p.length), $.writeUInt16(0), $.writeUInt16(ne), $.writeUInt16(K), $.writeUInt16(h), $.writeUInt16(W), le = 0, T = u.length; le < T; le++)
|
|
66334
66334
|
s = u[le], $.writeUInt16(s);
|
|
66335
66335
|
for ($.writeUInt16(0), Be = 0, z = Q.length; Be < z; Be++)
|
|
66336
66336
|
s = Q[Be], $.writeUInt16(s);
|
|
66337
|
-
for (Te = 0,
|
|
66337
|
+
for (Te = 0, Y = d.length; Te < Y; Te++)
|
|
66338
66338
|
a = d[Te], $.writeUInt16(a);
|
|
66339
66339
|
for (Ne = 0, ee = D.length; Ne < ee; Ne++)
|
|
66340
66340
|
E = D[Ne], $.writeUInt16(E);
|