@idmui/spot 0.6.4 → 0.6.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.
|
@@ -315,7 +315,7 @@ class hr {
|
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
317
|
static pickHourly(A, e) {
|
|
318
|
-
var r, n, i, a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J,
|
|
318
|
+
var r, n, i, a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA, rA, oA, mA, b, N, P, S, Y, V, nA, hA, R, yA, HA, SA, _A, pA, G;
|
|
319
319
|
const zA = typeof e == "string" ? ee(e) : e, RA = A == null ? void 0 : A.weather, dA = A == null ? void 0 : A.marine, TA = ee((n = (r = RA == null ? void 0 : RA[0]) == null ? void 0 : r.hourly) == null ? void 0 : n.date).utc(), xA = TA.clone().add((o = (a = (i = RA == null ? void 0 : RA[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.time) == null ? void 0 : o.at(0), "h"), LA = TA.clone().add((d = (u = (c = RA == null ? void 0 : RA[0]) == null ? void 0 : c.hourly) == null ? void 0 : u.time) == null ? void 0 : d.at(-1), "h"), GA = [];
|
|
320
320
|
if (zA.isBetween(xA, LA, "millisecond", "[]")) {
|
|
321
321
|
const NA = zA.utc().diff(xA, "h", !1);
|
|
@@ -342,7 +342,7 @@ class hr {
|
|
|
342
342
|
pmsl: (_ = jA.pressure_msl) == null ? void 0 : _.at(NA),
|
|
343
343
|
psurf: (W = jA.surface_pressure) == null ? void 0 : W.at(NA),
|
|
344
344
|
code: (J = jA.weather_code) == null ? void 0 : J.at(NA),
|
|
345
|
-
visibility: this.m2nm((
|
|
345
|
+
visibility: this.m2nm((Z = jA.visibility) == null ? void 0 : Z.at(NA)),
|
|
346
346
|
wind: {
|
|
347
347
|
speed: (X = jA.wind_speed_10m) == null ? void 0 : X.at(NA),
|
|
348
348
|
kts: (k = jA.wind_speed_10m) == null ? void 0 : k.at(NA),
|
|
@@ -369,8 +369,8 @@ class hr {
|
|
|
369
369
|
sig: {
|
|
370
370
|
height: (T = vA.wave_height) == null ? void 0 : T.at(NA),
|
|
371
371
|
degree: (aA = vA.wave_direction) == null ? void 0 : aA.at(NA),
|
|
372
|
-
bearing: ((tA = vA.wave_direction) == null ? void 0 : tA.at(NA)) !== null ? (((
|
|
373
|
-
period: (
|
|
372
|
+
bearing: ((tA = vA.wave_direction) == null ? void 0 : tA.at(NA)) !== null ? ((($ = vA.wave_direction) == null ? void 0 : $.at(NA)) + 180) % 360 : null,
|
|
373
|
+
period: (AA = vA.wave_period) == null ? void 0 : AA.at(NA)
|
|
374
374
|
},
|
|
375
375
|
swell: {
|
|
376
376
|
height: (rA = vA.swell_wave_height) == null ? void 0 : rA.at(NA),
|
|
@@ -424,7 +424,7 @@ class hr {
|
|
|
424
424
|
};
|
|
425
425
|
}
|
|
426
426
|
static pickDaily(A, e) {
|
|
427
|
-
var r, n, i, a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J,
|
|
427
|
+
var r, n, i, a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA, rA, oA, mA, b, N, P, S, Y, V, nA, hA, R;
|
|
428
428
|
const yA = typeof e == "string" ? ee(e) : e, HA = A == null ? void 0 : A.weather, SA = A == null ? void 0 : A.marine, _A = ee((i = (n = (r = HA == null ? void 0 : HA[0]) == null ? void 0 : r.daily) == null ? void 0 : n.time) == null ? void 0 : i.at(0)), pA = ee((c = (o = (a = HA == null ? void 0 : HA[0]) == null ? void 0 : a.daily) == null ? void 0 : o.time) == null ? void 0 : c.at(-1)), G = [];
|
|
429
429
|
if (yA.isBetween(_A, pA, "millisecond", "[]")) {
|
|
430
430
|
let zA, RA;
|
|
@@ -453,7 +453,7 @@ class hr {
|
|
|
453
453
|
},
|
|
454
454
|
rh: {
|
|
455
455
|
max: (J = xA.relative_humidity_2m_max) == null ? void 0 : J.at(dA),
|
|
456
|
-
min: (
|
|
456
|
+
min: (Z = xA.relative_humidity_2m_min) == null ? void 0 : Z.at(dA),
|
|
457
457
|
mean: (X = xA.relative_humidity_2m_mean) == null ? void 0 : X.at(dA)
|
|
458
458
|
},
|
|
459
459
|
wind: {
|
|
@@ -481,7 +481,7 @@ class hr {
|
|
|
481
481
|
height: (T = LA.wave_height_max) == null ? void 0 : T.at(dA),
|
|
482
482
|
degree: (aA = LA.wave_direction_dominant) == null ? void 0 : aA.at(dA),
|
|
483
483
|
period: (tA = LA.wave_period_max) == null ? void 0 : tA.at(dA),
|
|
484
|
-
bearing: ((
|
|
484
|
+
bearing: (($ = LA.wave_direction_dominant) == null ? void 0 : $.at(dA)) !== null ? (((AA = LA.wave_direction_dominant) == null ? void 0 : AA.at(dA)) + 180) % 360 : null
|
|
485
485
|
},
|
|
486
486
|
swell: {
|
|
487
487
|
height: (rA = LA.swell_wave_height_max) == null ? void 0 : rA.at(dA),
|
|
@@ -4594,8 +4594,8 @@ var yw = 1, nc = 2, ic = 3, mu = 4, vu = 5, Qw = 7, Cu = 8, sc = 9, ac = 10, yu
|
|
|
4594
4594
|
} else if (B.name === "counters") {
|
|
4595
4595
|
var _ = B.values.filter(es), m = _[0], W = _[1], D = _[2];
|
|
4596
4596
|
if (m && Oe(m)) {
|
|
4597
|
-
var J = i.counters.getCounterValues(m.value),
|
|
4598
|
-
return ea(U,
|
|
4597
|
+
var J = i.counters.getCounterValues(m.value), Z = D && Oe(D) ? kc.parse(i.context, D.value) : 3, X = W && W.type === 0 ? W.value : "", k = J.map(function(U) {
|
|
4598
|
+
return ea(U, Z, !1);
|
|
4599
4599
|
}).join(X);
|
|
4600
4600
|
u.appendChild(o.createTextNode(k));
|
|
4601
4601
|
}
|
|
@@ -4823,8 +4823,8 @@ var lp = function(t, A) {
|
|
|
4823
4823
|
D.push((i + c) / r.width), D.push((v + B) / r.width), D.push((a + m) / r.height), D.push((u + p) / r.height);
|
|
4824
4824
|
var C = Math.max.apply(Math, D);
|
|
4825
4825
|
C > 1 && (i /= C, a /= C, c /= C, u /= C, B /= C, p /= C, v /= C, m /= C);
|
|
4826
|
-
var x = r.width - c, _ = r.height - p, W = r.width - B, J = r.height - m,
|
|
4827
|
-
this.topLeftBorderDoubleOuterBox = i > 0 || a > 0 ? Xe(r.left + q / 3, r.top +
|
|
4826
|
+
var x = r.width - c, _ = r.height - p, W = r.width - B, J = r.height - m, Z = e.borderTopWidth, X = e.borderRightWidth, k = e.borderBottomWidth, q = e.borderLeftWidth, cA = ze(e.paddingTop, A.bounds.width), U = ze(e.paddingRight, A.bounds.width), F = ze(e.paddingBottom, A.bounds.width), K = ze(e.paddingLeft, A.bounds.width);
|
|
4827
|
+
this.topLeftBorderDoubleOuterBox = i > 0 || a > 0 ? Xe(r.left + q / 3, r.top + Z / 3, i - q / 3, a - Z / 3, Le.TOP_LEFT) : new VA(r.left + q / 3, r.top + Z / 3), this.topRightBorderDoubleOuterBox = i > 0 || a > 0 ? Xe(r.left + x, r.top + Z / 3, c - X / 3, u - Z / 3, Le.TOP_RIGHT) : new VA(r.left + r.width - X / 3, r.top + Z / 3), this.bottomRightBorderDoubleOuterBox = B > 0 || p > 0 ? Xe(r.left + W, r.top + _, B - X / 3, p - k / 3, Le.BOTTOM_RIGHT) : new VA(r.left + r.width - X / 3, r.top + r.height - k / 3), this.bottomLeftBorderDoubleOuterBox = v > 0 || m > 0 ? Xe(r.left + q / 3, r.top + J, v - q / 3, m - k / 3, Le.BOTTOM_LEFT) : new VA(r.left + q / 3, r.top + r.height - k / 3), this.topLeftBorderDoubleInnerBox = i > 0 || a > 0 ? Xe(r.left + q * 2 / 3, r.top + Z * 2 / 3, i - q * 2 / 3, a - Z * 2 / 3, Le.TOP_LEFT) : new VA(r.left + q * 2 / 3, r.top + Z * 2 / 3), this.topRightBorderDoubleInnerBox = i > 0 || a > 0 ? Xe(r.left + x, r.top + Z * 2 / 3, c - X * 2 / 3, u - Z * 2 / 3, Le.TOP_RIGHT) : new VA(r.left + r.width - X * 2 / 3, r.top + Z * 2 / 3), this.bottomRightBorderDoubleInnerBox = B > 0 || p > 0 ? Xe(r.left + W, r.top + _, B - X * 2 / 3, p - k * 2 / 3, Le.BOTTOM_RIGHT) : new VA(r.left + r.width - X * 2 / 3, r.top + r.height - k * 2 / 3), this.bottomLeftBorderDoubleInnerBox = v > 0 || m > 0 ? Xe(r.left + q * 2 / 3, r.top + J, v - q * 2 / 3, m - k * 2 / 3, Le.BOTTOM_LEFT) : new VA(r.left + q * 2 / 3, r.top + r.height - k * 2 / 3), this.topLeftBorderStroke = i > 0 || a > 0 ? Xe(r.left + q / 2, r.top + Z / 2, i - q / 2, a - Z / 2, Le.TOP_LEFT) : new VA(r.left + q / 2, r.top + Z / 2), this.topRightBorderStroke = i > 0 || a > 0 ? Xe(r.left + x, r.top + Z / 2, c - X / 2, u - Z / 2, Le.TOP_RIGHT) : new VA(r.left + r.width - X / 2, r.top + Z / 2), this.bottomRightBorderStroke = B > 0 || p > 0 ? Xe(r.left + W, r.top + _, B - X / 2, p - k / 2, Le.BOTTOM_RIGHT) : new VA(r.left + r.width - X / 2, r.top + r.height - k / 2), this.bottomLeftBorderStroke = v > 0 || m > 0 ? Xe(r.left + q / 2, r.top + J, v - q / 2, m - k / 2, Le.BOTTOM_LEFT) : new VA(r.left + q / 2, r.top + r.height - k / 2), this.topLeftBorderBox = i > 0 || a > 0 ? Xe(r.left, r.top, i, a, Le.TOP_LEFT) : new VA(r.left, r.top), this.topRightBorderBox = c > 0 || u > 0 ? Xe(r.left + x, r.top, c, u, Le.TOP_RIGHT) : new VA(r.left + r.width, r.top), this.bottomRightBorderBox = B > 0 || p > 0 ? Xe(r.left + W, r.top + _, B, p, Le.BOTTOM_RIGHT) : new VA(r.left + r.width, r.top + r.height), this.bottomLeftBorderBox = v > 0 || m > 0 ? Xe(r.left, r.top + J, v, m, Le.BOTTOM_LEFT) : new VA(r.left, r.top + r.height), this.topLeftPaddingBox = i > 0 || a > 0 ? Xe(r.left + q, r.top + Z, Math.max(0, i - q), Math.max(0, a - Z), Le.TOP_LEFT) : new VA(r.left + q, r.top + Z), this.topRightPaddingBox = c > 0 || u > 0 ? Xe(r.left + Math.min(x, r.width - X), r.top + Z, x > r.width + X ? 0 : Math.max(0, c - X), Math.max(0, u - Z), Le.TOP_RIGHT) : new VA(r.left + r.width - X, r.top + Z), this.bottomRightPaddingBox = B > 0 || p > 0 ? Xe(r.left + Math.min(W, r.width - q), r.top + Math.min(_, r.height - k), Math.max(0, B - X), Math.max(0, p - k), Le.BOTTOM_RIGHT) : new VA(r.left + r.width - X, r.top + r.height - k), this.bottomLeftPaddingBox = v > 0 || m > 0 ? Xe(r.left + q, r.top + Math.min(J, r.height - k), Math.max(0, v - q), Math.max(0, m - k), Le.BOTTOM_LEFT) : new VA(r.left + q, r.top + r.height - k), this.topLeftContentBox = i > 0 || a > 0 ? Xe(r.left + q + K, r.top + Z + cA, Math.max(0, i - (q + K)), Math.max(0, a - (Z + cA)), Le.TOP_LEFT) : new VA(r.left + q + K, r.top + Z + cA), this.topRightContentBox = c > 0 || u > 0 ? Xe(r.left + Math.min(x, r.width + q + K), r.top + Z + cA, x > r.width + q + K ? 0 : c - q + K, u - (Z + cA), Le.TOP_RIGHT) : new VA(r.left + r.width - (X + U), r.top + Z + cA), this.bottomRightContentBox = B > 0 || p > 0 ? Xe(r.left + Math.min(W, r.width - (q + K)), r.top + Math.min(_, r.height + Z + cA), Math.max(0, B - (X + U)), p - (k + F), Le.BOTTOM_RIGHT) : new VA(r.left + r.width - (X + U), r.top + r.height - (k + F)), this.bottomLeftContentBox = v > 0 || m > 0 ? Xe(r.left + q + K, r.top + J, Math.max(0, v - (q + K)), m - (k + F), Le.BOTTOM_LEFT) : new VA(r.left + q + K, r.top + r.height - (k + F));
|
|
4828
4828
|
}
|
|
4829
4829
|
return t;
|
|
4830
4830
|
}()
|
|
@@ -5319,39 +5319,39 @@ var Xe = function(t, A, e, r, n) {
|
|
|
5319
5319
|
}, A.prototype.renderNodeContent = function(e) {
|
|
5320
5320
|
return qt(this, void 0, void 0, function() {
|
|
5321
5321
|
var r, n, i, a, o, c, x, x, u, d, B, p, W, g, v, J, m, D, C, x, _, W, J;
|
|
5322
|
-
return kt(this, function(
|
|
5323
|
-
switch (
|
|
5322
|
+
return kt(this, function(Z) {
|
|
5323
|
+
switch (Z.label) {
|
|
5324
5324
|
case 0:
|
|
5325
5325
|
this.applyEffects(e.getEffects(
|
|
5326
5326
|
4
|
|
5327
5327
|
/* CONTENT */
|
|
5328
|
-
)), r = e.container, n = e.curves, i = r.styles, a = 0, o = r.textNodes,
|
|
5328
|
+
)), r = e.container, n = e.curves, i = r.styles, a = 0, o = r.textNodes, Z.label = 1;
|
|
5329
5329
|
case 1:
|
|
5330
5330
|
return a < o.length ? (c = o[a], [4, this.renderTextNode(c, i)]) : [3, 4];
|
|
5331
5331
|
case 2:
|
|
5332
|
-
|
|
5332
|
+
Z.sent(), Z.label = 3;
|
|
5333
5333
|
case 3:
|
|
5334
5334
|
return a++, [3, 1];
|
|
5335
5335
|
case 4:
|
|
5336
5336
|
if (!(r instanceof zf))
|
|
5337
5337
|
return [3, 8];
|
|
5338
|
-
|
|
5338
|
+
Z.label = 5;
|
|
5339
5339
|
case 5:
|
|
5340
|
-
return
|
|
5340
|
+
return Z.trys.push([5, 7, , 8]), [4, this.context.cache.match(r.src)];
|
|
5341
5341
|
case 6:
|
|
5342
|
-
return x =
|
|
5342
|
+
return x = Z.sent(), this.renderReplacedElement(r, n, x), [3, 8];
|
|
5343
5343
|
case 7:
|
|
5344
|
-
return
|
|
5344
|
+
return Z.sent(), this.context.logger.error("Error loading image " + r.src), [3, 8];
|
|
5345
5345
|
case 8:
|
|
5346
5346
|
if (r instanceof Yf && this.renderReplacedElement(r, n, r.canvas), !(r instanceof qf))
|
|
5347
5347
|
return [3, 12];
|
|
5348
|
-
|
|
5348
|
+
Z.label = 9;
|
|
5349
5349
|
case 9:
|
|
5350
|
-
return
|
|
5350
|
+
return Z.trys.push([9, 11, , 12]), [4, this.context.cache.match(r.svg)];
|
|
5351
5351
|
case 10:
|
|
5352
|
-
return x =
|
|
5352
|
+
return x = Z.sent(), this.renderReplacedElement(r, n, x), [3, 12];
|
|
5353
5353
|
case 11:
|
|
5354
|
-
return
|
|
5354
|
+
return Z.sent(), this.context.logger.error("Error loading svg " + r.svg.substring(0, 255)), [3, 12];
|
|
5355
5355
|
case 12:
|
|
5356
5356
|
return r instanceof Jf && r.tree ? (u = new A(this.context, {
|
|
5357
5357
|
scale: this.options.scale,
|
|
@@ -5362,7 +5362,7 @@ var Xe = function(t, A, e, r, n) {
|
|
|
5362
5362
|
height: r.height
|
|
5363
5363
|
}), [4, u.render(r.tree)]) : [3, 14];
|
|
5364
5364
|
case 13:
|
|
5365
|
-
d =
|
|
5365
|
+
d = Z.sent(), r.width && r.height && this.ctx.drawImage(d, 0, 0, r.width, r.height, r.bounds.left, r.bounds.top, r.bounds.width, r.bounds.height), Z.label = 14;
|
|
5366
5366
|
case 14:
|
|
5367
5367
|
if (r instanceof ch && (B = Math.min(r.bounds.width, r.bounds.height), r.type === Po ? r.checked && (this.ctx.save(), this.path([
|
|
5368
5368
|
new VA(r.bounds.left + B * 0.39363, r.bounds.top + B * 0.79),
|
|
@@ -5398,17 +5398,17 @@ var Xe = function(t, A, e, r, n) {
|
|
|
5398
5398
|
return [3, 19];
|
|
5399
5399
|
if (C = r.styles.listStyleImage, C.type !== 0)
|
|
5400
5400
|
return [3, 18];
|
|
5401
|
-
x = void 0, _ = C.url,
|
|
5401
|
+
x = void 0, _ = C.url, Z.label = 15;
|
|
5402
5402
|
case 15:
|
|
5403
|
-
return
|
|
5403
|
+
return Z.trys.push([15, 17, , 18]), [4, this.context.cache.match(_)];
|
|
5404
5404
|
case 16:
|
|
5405
|
-
return x =
|
|
5405
|
+
return x = Z.sent(), this.ctx.drawImage(x, r.bounds.left - (x.width + 10), r.bounds.top), [3, 18];
|
|
5406
5406
|
case 17:
|
|
5407
|
-
return
|
|
5407
|
+
return Z.sent(), this.context.logger.error("Error loading list-style-image " + _), [3, 18];
|
|
5408
5408
|
case 18:
|
|
5409
5409
|
return [3, 20];
|
|
5410
5410
|
case 19:
|
|
5411
|
-
e.listValue && r.styles.listStyleType !== -1 && (W = this.createFontStyle(i)[0], this.ctx.font = W, this.ctx.fillStyle = yt(i.color), this.ctx.textBaseline = "middle", this.ctx.textAlign = "right", J = new cn(r.bounds.left, r.bounds.top + ze(r.styles.paddingTop, r.bounds.width), r.bounds.width, uu(i.lineHeight, i.fontSize.number) / 2 + 1), this.renderTextWithLetterSpacing(new Ws(e.listValue, J), i.letterSpacing, uu(i.lineHeight, i.fontSize.number) / 2 + 2), this.ctx.textBaseline = "bottom", this.ctx.textAlign = "left"),
|
|
5411
|
+
e.listValue && r.styles.listStyleType !== -1 && (W = this.createFontStyle(i)[0], this.ctx.font = W, this.ctx.fillStyle = yt(i.color), this.ctx.textBaseline = "middle", this.ctx.textAlign = "right", J = new cn(r.bounds.left, r.bounds.top + ze(r.styles.paddingTop, r.bounds.width), r.bounds.width, uu(i.lineHeight, i.fontSize.number) / 2 + 1), this.renderTextWithLetterSpacing(new Ws(e.listValue, J), i.letterSpacing, uu(i.lineHeight, i.fontSize.number) / 2 + 2), this.ctx.textBaseline = "bottom", this.ctx.textAlign = "left"), Z.label = 20;
|
|
5412
5412
|
case 20:
|
|
5413
5413
|
return [
|
|
5414
5414
|
2
|
|
@@ -5523,7 +5523,7 @@ var Xe = function(t, A, e, r, n) {
|
|
|
5523
5523
|
switch (u.label) {
|
|
5524
5524
|
case 0:
|
|
5525
5525
|
r = e.styles.backgroundImage.length - 1, n = function(d) {
|
|
5526
|
-
var B, p, g, cA, tA,
|
|
5526
|
+
var B, p, g, cA, tA, $, K, T, k, v, cA, tA, $, K, T, m, D, C, x, _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA, rA, oA, mA, b, N, P, S;
|
|
5527
5527
|
return kt(this, function(Y) {
|
|
5528
5528
|
switch (Y.label) {
|
|
5529
5529
|
case 0:
|
|
@@ -5541,15 +5541,15 @@ var Xe = function(t, A, e, r, n) {
|
|
|
5541
5541
|
B.width,
|
|
5542
5542
|
B.height,
|
|
5543
5543
|
B.width / B.height
|
|
5544
|
-
]), cA = g[0], tA = g[1],
|
|
5544
|
+
]), cA = g[0], tA = g[1], $ = g[2], K = g[3], T = g[4], k = i.ctx.createPattern(i.resizeImage(B, K, T), "repeat"), i.renderRepeat(cA, k, tA, $)), [3, 6];
|
|
5545
5545
|
case 5:
|
|
5546
|
-
H1(d) ? (v = gc(e, r, [null, null, null]), cA = v[0], tA = v[1],
|
|
5546
|
+
H1(d) ? (v = gc(e, r, [null, null, null]), cA = v[0], tA = v[1], $ = v[2], K = v[3], T = v[4], m = E1(d.angle, K, T), D = m[0], C = m[1], x = m[2], _ = m[3], W = m[4], J = document.createElement("canvas"), J.width = K, J.height = T, Z = J.getContext("2d"), X = Z.createLinearGradient(C, _, x, W), cu(d.stops, D).forEach(function(V) {
|
|
5547
5547
|
return X.addColorStop(V.stop, yt(V.color));
|
|
5548
|
-
}),
|
|
5548
|
+
}), Z.fillStyle = X, Z.fillRect(0, 0, K, T), K > 0 && T > 0 && (k = i.ctx.createPattern(J, "repeat"), i.renderRepeat(cA, k, tA, $))) : N1(d) && (q = gc(e, r, [
|
|
5549
5549
|
null,
|
|
5550
5550
|
null,
|
|
5551
5551
|
null
|
|
5552
|
-
]), cA = q[0], U = q[1], F = q[2], K = q[3], T = q[4], aA = d.position.length === 0 ? [sh] : d.position, tA = ze(aA[0], K),
|
|
5552
|
+
]), cA = q[0], U = q[1], F = q[2], K = q[3], T = q[4], aA = d.position.length === 0 ? [sh] : d.position, tA = ze(aA[0], K), $ = ze(aA[aA.length - 1], T), AA = x1(d, tA, $, K, T), rA = AA[0], oA = AA[1], rA > 0 && oA > 0 && (mA = i.ctx.createRadialGradient(U + tA, F + $, 0, U + tA, F + $, rA), cu(d.stops, rA * 2).forEach(function(V) {
|
|
5553
5553
|
return mA.addColorStop(V.stop, yt(V.color));
|
|
5554
5554
|
}), i.path(cA), i.ctx.fillStyle = mA, rA !== oA ? (b = e.bounds.left + 0.5 * e.bounds.width, N = e.bounds.top + 0.5 * e.bounds.height, P = oA / rA, S = 1 / P, i.ctx.save(), i.ctx.translate(b, N), i.ctx.transform(1, 0, 0, P, 0, 0), i.ctx.translate(-b, -N), i.ctx.fillRect(U, S * (F - N) + N, K, T * S), i.ctx.restore()) : i.ctx.fill())), Y.label = 6;
|
|
5555
5555
|
case 6:
|
|
@@ -5670,9 +5670,9 @@ var Xe = function(t, A, e, r, n) {
|
|
|
5670
5670
|
});
|
|
5671
5671
|
}, A.prototype.renderDashedDottedBorder = function(e, r, n, i, a) {
|
|
5672
5672
|
return qt(this, void 0, void 0, function() {
|
|
5673
|
-
var o, c, u, d, B, p, g, v, m, D, C, x, _, W, J,
|
|
5673
|
+
var o, c, u, d, B, p, g, v, m, D, C, x, _, W, J, Z, J, Z;
|
|
5674
5674
|
return kt(this, function(X) {
|
|
5675
|
-
return this.ctx.save(), o = kp(i, n), c = Ru(i, n), a === 2 && (this.path(c), this.ctx.clip()), Qr(c[0]) ? (u = c[0].start.x, d = c[0].start.y) : (u = c[0].x, d = c[0].y), Qr(c[1]) ? (B = c[1].end.x, p = c[1].end.y) : (B = c[1].x, p = c[1].y), n === 0 || n === 2 ? g = Math.abs(u - B) : g = Math.abs(d - p), this.ctx.beginPath(), a === 3 ? this.formatPath(o) : this.formatPath(c.slice(0, 2)), v = r < 3 ? r * 3 : r * 2, m = r < 3 ? r * 2 : r, a === 3 && (v = r, m = r), D = !0, g <= v * 2 ? D = !1 : g <= v * 2 + m ? (C = g / (2 * v + m), v *= C, m *= C) : (x = Math.floor((g + m) / (v + m)), _ = (g - x * v) / (x - 1), W = (g - (x + 1) * v) / x, m = W <= 0 || Math.abs(m - _) < Math.abs(m - W) ? _ : W), D && (a === 3 ? this.ctx.setLineDash([0, v + m]) : this.ctx.setLineDash([v, m])), a === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = r) : this.ctx.lineWidth = r * 2 + 1.1, this.ctx.strokeStyle = yt(e), this.ctx.stroke(), this.ctx.setLineDash([]), a === 2 && (Qr(c[0]) && (J = c[3],
|
|
5675
|
+
return this.ctx.save(), o = kp(i, n), c = Ru(i, n), a === 2 && (this.path(c), this.ctx.clip()), Qr(c[0]) ? (u = c[0].start.x, d = c[0].start.y) : (u = c[0].x, d = c[0].y), Qr(c[1]) ? (B = c[1].end.x, p = c[1].end.y) : (B = c[1].x, p = c[1].y), n === 0 || n === 2 ? g = Math.abs(u - B) : g = Math.abs(d - p), this.ctx.beginPath(), a === 3 ? this.formatPath(o) : this.formatPath(c.slice(0, 2)), v = r < 3 ? r * 3 : r * 2, m = r < 3 ? r * 2 : r, a === 3 && (v = r, m = r), D = !0, g <= v * 2 ? D = !1 : g <= v * 2 + m ? (C = g / (2 * v + m), v *= C, m *= C) : (x = Math.floor((g + m) / (v + m)), _ = (g - x * v) / (x - 1), W = (g - (x + 1) * v) / x, m = W <= 0 || Math.abs(m - _) < Math.abs(m - W) ? _ : W), D && (a === 3 ? this.ctx.setLineDash([0, v + m]) : this.ctx.setLineDash([v, m])), a === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = r) : this.ctx.lineWidth = r * 2 + 1.1, this.ctx.strokeStyle = yt(e), this.ctx.stroke(), this.ctx.setLineDash([]), a === 2 && (Qr(c[0]) && (J = c[3], Z = c[0], this.ctx.beginPath(), this.formatPath([new VA(J.end.x, J.end.y), new VA(Z.start.x, Z.start.y)]), this.ctx.stroke()), Qr(c[1]) && (J = c[1], Z = c[2], this.ctx.beginPath(), this.formatPath([new VA(J.end.x, J.end.y), new VA(Z.start.x, Z.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
|
|
5676
5676
|
2
|
|
5677
5677
|
/*return*/
|
|
5678
5678
|
];
|
|
@@ -5789,7 +5789,7 @@ var Xe = function(t, A, e, r, n) {
|
|
|
5789
5789
|
typeof window < "u" && ag.setContext(window);
|
|
5790
5790
|
var t2 = function(t, A) {
|
|
5791
5791
|
return qt(void 0, void 0, void 0, function() {
|
|
5792
|
-
var e, r, n, i, a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J, X,
|
|
5792
|
+
var e, r, n, i, a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J, X, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA, rA, oA, mA, b, N, P;
|
|
5793
5793
|
return kt(this, function(S) {
|
|
5794
5794
|
switch (S.label) {
|
|
5795
5795
|
case 0:
|
|
@@ -5810,7 +5810,7 @@ var t2 = function(t, A) {
|
|
|
5810
5810
|
scrollX: (T = A.scrollX) !== null && T !== void 0 ? T : r.pageXOffset,
|
|
5811
5811
|
scrollY: (aA = A.scrollY) !== null && aA !== void 0 ? aA : r.pageYOffset
|
|
5812
5812
|
}, o = new cn(a.scrollX, a.scrollY, a.windowWidth, a.windowHeight), c = new e2(i, o), u = (tA = A.foreignObjectRendering) !== null && tA !== void 0 ? tA : !1, d = {
|
|
5813
|
-
allowTaint: (
|
|
5813
|
+
allowTaint: ($ = A.allowTaint) !== null && $ !== void 0 ? $ : !1,
|
|
5814
5814
|
onclone: A.onclone,
|
|
5815
5815
|
ignoreElements: A.ignoreElements,
|
|
5816
5816
|
inlineImages: u,
|
|
@@ -5820,7 +5820,7 @@ var t2 = function(t, A) {
|
|
|
5820
5820
|
return g = S.sent(), v = hh(p) || np(p) ? Sd(p.ownerDocument) : zo(c, p), m = v.width, D = v.height, C = v.left, x = v.top, _ = r2(c, p, A.backgroundColor), W = {
|
|
5821
5821
|
canvas: A.canvas,
|
|
5822
5822
|
backgroundColor: _,
|
|
5823
|
-
scale: (rA = (
|
|
5823
|
+
scale: (rA = (AA = A.scale) !== null && AA !== void 0 ? AA : r.devicePixelRatio) !== null && rA !== void 0 ? rA : 1,
|
|
5824
5824
|
x: ((oA = A.x) !== null && oA !== void 0 ? oA : 0) + C,
|
|
5825
5825
|
y: ((mA = A.y) !== null && mA !== void 0 ? mA : 0) + x,
|
|
5826
5826
|
width: (b = A.width) !== null && b !== void 0 ? b : Math.ceil(m),
|
|
@@ -5829,7 +5829,7 @@ var t2 = function(t, A) {
|
|
|
5829
5829
|
case 2:
|
|
5830
5830
|
return J = S.sent(), [3, 5];
|
|
5831
5831
|
case 3:
|
|
5832
|
-
return c.logger.debug("Document cloned, element located at " + C + "," + x + " with size " + m + "x" + D + " using computed rendering"), c.logger.debug("Starting DOM parsing"),
|
|
5832
|
+
return c.logger.debug("Document cloned, element located at " + C + "," + x + " with size " + m + "x" + D + " using computed rendering"), c.logger.debug("Starting DOM parsing"), Z = $f(c, p), _ === Z.styles.backgroundColor && (Z.styles.backgroundColor = ln.TRANSPARENT), c.logger.debug("Starting renderer for element at " + W.x + "," + W.y + " with size " + W.width + "x" + W.height), X = new Yp(c, W), [4, X.render(Z)];
|
|
5833
5833
|
case 4:
|
|
5834
5834
|
J = S.sent(), S.label = 5;
|
|
5835
5835
|
case 5:
|
|
@@ -6022,7 +6022,7 @@ var s2 = /* @__PURE__ */ Yr(Tn, 9, 0), a2 = /* @__PURE__ */ Yr(Tn, 9, 1), o2 = /
|
|
|
6022
6022
|
if (x == 1)
|
|
6023
6023
|
g = a2, v = l2, m = 9, D = 5;
|
|
6024
6024
|
else if (x == 2) {
|
|
6025
|
-
var
|
|
6025
|
+
var Z = Hr(t, B, 31) + 257, X = Hr(t, B + 10, 15) + 4, k = Z + Hr(t, B + 5, 31) + 1;
|
|
6026
6026
|
B += 14;
|
|
6027
6027
|
for (var q = new Kt(k), cA = new Kt(19), U = 0; U < X; ++U)
|
|
6028
6028
|
cA[qc[U]] = Hr(t, B + U * 3, 7);
|
|
@@ -6034,13 +6034,13 @@ var s2 = /* @__PURE__ */ Yr(Tn, 9, 0), a2 = /* @__PURE__ */ Yr(Tn, 9, 1), o2 = /
|
|
|
6034
6034
|
if (_ < 16)
|
|
6035
6035
|
q[U++] = _;
|
|
6036
6036
|
else {
|
|
6037
|
-
var tA = 0,
|
|
6038
|
-
for (_ == 16 ? (
|
|
6037
|
+
var tA = 0, $ = 0;
|
|
6038
|
+
for (_ == 16 ? ($ = 3 + Hr(t, B, 3), B += 2, tA = q[U - 1]) : _ == 17 ? ($ = 3 + Hr(t, B, 7), B += 3) : _ == 18 && ($ = 11 + Hr(t, B, 127), B += 7); $--; )
|
|
6039
6039
|
q[U++] = tA;
|
|
6040
6040
|
}
|
|
6041
6041
|
}
|
|
6042
|
-
var
|
|
6043
|
-
m = dc(
|
|
6042
|
+
var AA = q.subarray(0, Z), rA = q.subarray(Z);
|
|
6043
|
+
m = dc(AA), D = dc(rA), g = Yr(AA, m, 1), v = Yr(rA, D, 1);
|
|
6044
6044
|
} else
|
|
6045
6045
|
Mr(1);
|
|
6046
6046
|
else {
|
|
@@ -6118,8 +6118,8 @@ var s2 = /* @__PURE__ */ Yr(Tn, 9, 0), a2 = /* @__PURE__ */ Yr(Tn, 9, 1), o2 = /
|
|
|
6118
6118
|
var a = new Kt(e[0].s + 1);
|
|
6119
6119
|
return a[e[0].s] = 1, { t: a, l: 1 };
|
|
6120
6120
|
}
|
|
6121
|
-
e.sort(function(J,
|
|
6122
|
-
return J.f -
|
|
6121
|
+
e.sort(function(J, Z) {
|
|
6122
|
+
return J.f - Z.f;
|
|
6123
6123
|
}), e.push({ s: -1, f: 25001 });
|
|
6124
6124
|
var o = e[0], c = e[1], u = 0, d = 1, B = 2;
|
|
6125
6125
|
for (e[0] = { s: -1, f: o.f + c.f, l: o, r: c }; d != n - 1; )
|
|
@@ -6129,8 +6129,8 @@ var s2 = /* @__PURE__ */ Yr(Tn, 9, 0), a2 = /* @__PURE__ */ Yr(Tn, 9, 1), o2 = /
|
|
|
6129
6129
|
var g = new ur(p + 1), v = Wc(e[d - 1], g, 0);
|
|
6130
6130
|
if (v > A) {
|
|
6131
6131
|
var r = 0, m = 0, D = v - A, C = 1 << D;
|
|
6132
|
-
for (i.sort(function(
|
|
6133
|
-
return g[X.s] - g[
|
|
6132
|
+
for (i.sort(function(Z, X) {
|
|
6133
|
+
return g[X.s] - g[Z.s] || Z.f - X.f;
|
|
6134
6134
|
}); r < n; ++r) {
|
|
6135
6135
|
var x = i[r].s;
|
|
6136
6136
|
if (g[x] > A)
|
|
@@ -6186,7 +6186,7 @@ var s2 = /* @__PURE__ */ Yr(Tn, 9, 0), a2 = /* @__PURE__ */ Yr(Tn, 9, 1), o2 = /
|
|
|
6186
6186
|
return (n + 4 + r) * 8;
|
|
6187
6187
|
}, zu = function(t, A, e, r, n, i, a, o, c, u, d) {
|
|
6188
6188
|
on(A, d++, e), ++n[256];
|
|
6189
|
-
for (var B = wc(n, 15), p = B.t, g = B.l, v = wc(i, 15), m = v.t, D = v.l, C = ju(p), x = C.c, _ = C.n, W = ju(m), J = W.c,
|
|
6189
|
+
for (var B = wc(n, 15), p = B.t, g = B.l, v = wc(i, 15), m = v.t, D = v.l, C = ju(p), x = C.c, _ = C.n, W = ju(m), J = W.c, Z = W.n, X = new ur(19), k = 0; k < x.length; ++k)
|
|
6190
6190
|
++X[x[k] & 31];
|
|
6191
6191
|
for (var k = 0; k < J.length; ++k)
|
|
6192
6192
|
++X[J[k] & 31];
|
|
@@ -6195,11 +6195,11 @@ var s2 = /* @__PURE__ */ Yr(Tn, 9, 0), a2 = /* @__PURE__ */ Yr(Tn, 9, 1), o2 = /
|
|
|
6195
6195
|
var K = u + 5 << 3, T = Os(n, Tn) + Os(i, ta) + a, aA = Os(n, p) + Os(i, m) + a + 14 + 3 * F + Os(X, cA) + 2 * X[16] + 3 * X[17] + 7 * X[18];
|
|
6196
6196
|
if (c >= 0 && K <= T && K <= aA)
|
|
6197
6197
|
return mg(A, d, t.subarray(c, c + u));
|
|
6198
|
-
var tA,
|
|
6198
|
+
var tA, $, AA, rA;
|
|
6199
6199
|
if (on(A, d, 1 + (aA < T)), d += 2, aA < T) {
|
|
6200
|
-
tA = Yr(p, g, 0),
|
|
6200
|
+
tA = Yr(p, g, 0), $ = p, AA = Yr(m, D, 0), rA = m;
|
|
6201
6201
|
var oA = Yr(cA, U, 0);
|
|
6202
|
-
on(A, d, _ - 257), on(A, d + 5,
|
|
6202
|
+
on(A, d, _ - 257), on(A, d + 5, Z - 1), on(A, d + 10, F - 4), d += 14;
|
|
6203
6203
|
for (var k = 0; k < F; ++k)
|
|
6204
6204
|
on(A, d + 3 * k, cA[qc[k]]);
|
|
6205
6205
|
d += 3 * F;
|
|
@@ -6209,46 +6209,46 @@ var s2 = /* @__PURE__ */ Yr(Tn, 9, 0), a2 = /* @__PURE__ */ Yr(Tn, 9, 1), o2 = /
|
|
|
6209
6209
|
on(A, d, oA[P]), d += cA[P], P > 15 && (on(A, d, N[k] >> 5 & 127), d += N[k] >> 12);
|
|
6210
6210
|
}
|
|
6211
6211
|
} else
|
|
6212
|
-
tA = s2,
|
|
6212
|
+
tA = s2, $ = Tn, AA = o2, rA = ta;
|
|
6213
6213
|
for (var k = 0; k < o; ++k) {
|
|
6214
6214
|
var S = r[k];
|
|
6215
6215
|
if (S > 255) {
|
|
6216
6216
|
var P = S >> 18 & 31;
|
|
6217
|
-
ks(A, d, tA[P + 257]), d +=
|
|
6217
|
+
ks(A, d, tA[P + 257]), d += $[P + 257], P > 7 && (on(A, d, S >> 23 & 31), d += el[P]);
|
|
6218
6218
|
var Y = S & 31;
|
|
6219
|
-
ks(A, d,
|
|
6219
|
+
ks(A, d, AA[Y]), d += rA[Y], Y > 3 && (ks(A, d, S >> 5 & 8191), d += tl[Y]);
|
|
6220
6220
|
} else
|
|
6221
|
-
ks(A, d, tA[S]), d +=
|
|
6221
|
+
ks(A, d, tA[S]), d += $[S];
|
|
6222
6222
|
}
|
|
6223
|
-
return ks(A, d, tA[256]), d +
|
|
6223
|
+
return ks(A, d, tA[256]), d + $[256];
|
|
6224
6224
|
}, u2 = /* @__PURE__ */ new fh([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), vg = /* @__PURE__ */ new Kt(0), f2 = function(t, A, e, r, n, i) {
|
|
6225
6225
|
var a = i.z || t.length, o = new Kt(r + a + 5 * (1 + Math.ceil(a / 7e3)) + n), c = o.subarray(r, o.length - n), u = i.l, d = (i.r || 0) & 7;
|
|
6226
6226
|
if (A) {
|
|
6227
6227
|
d && (c[0] = i.r >> 3);
|
|
6228
6228
|
for (var B = u2[A - 1], p = B >> 13, g = B & 8191, v = (1 << e) - 1, m = i.p || new ur(32768), D = i.h || new ur(v + 1), C = Math.ceil(e / 3), x = 2 * C, _ = function(_A) {
|
|
6229
6229
|
return (t[_A] ^ t[_A + 1] << C ^ t[_A + 2] << x) & v;
|
|
6230
|
-
}, W = new fh(25e3), J = new ur(288),
|
|
6230
|
+
}, W = new fh(25e3), J = new ur(288), Z = new ur(32), X = 0, k = 0, q = i.i || 0, cA = 0, U = i.w || 0, F = 0; q + 2 < a; ++q) {
|
|
6231
6231
|
var K = _(q), T = q & 32767, aA = D[K];
|
|
6232
6232
|
if (m[T] = aA, D[K] = T, U <= q) {
|
|
6233
6233
|
var tA = a - q;
|
|
6234
6234
|
if ((X > 7e3 || cA > 24576) && (tA > 423 || !u)) {
|
|
6235
|
-
d = zu(t, c, 0, W, J,
|
|
6236
|
-
for (var
|
|
6237
|
-
J[
|
|
6238
|
-
for (var
|
|
6239
|
-
|
|
6235
|
+
d = zu(t, c, 0, W, J, Z, k, cA, F, q - F, d), cA = X = k = 0, F = q;
|
|
6236
|
+
for (var $ = 0; $ < 286; ++$)
|
|
6237
|
+
J[$] = 0;
|
|
6238
|
+
for (var $ = 0; $ < 30; ++$)
|
|
6239
|
+
Z[$] = 0;
|
|
6240
6240
|
}
|
|
6241
|
-
var
|
|
6241
|
+
var AA = 2, rA = 0, oA = g, mA = T - aA & 32767;
|
|
6242
6242
|
if (tA > 2 && K == _(q - mA))
|
|
6243
6243
|
for (var b = Math.min(p, tA) - 1, N = Math.min(32767, q), P = Math.min(258, tA); mA <= N && --oA && T != aA; ) {
|
|
6244
|
-
if (t[q +
|
|
6244
|
+
if (t[q + AA] == t[q + AA - mA]) {
|
|
6245
6245
|
for (var S = 0; S < P && t[q + S] == t[q + S - mA]; ++S)
|
|
6246
6246
|
;
|
|
6247
|
-
if (S >
|
|
6248
|
-
if (
|
|
6247
|
+
if (S > AA) {
|
|
6248
|
+
if (AA = S, rA = mA, S > b)
|
|
6249
6249
|
break;
|
|
6250
|
-
for (var Y = Math.min(mA, S - 2), V = 0,
|
|
6251
|
-
var nA = q - mA +
|
|
6250
|
+
for (var Y = Math.min(mA, S - 2), V = 0, $ = 0; $ < Y; ++$) {
|
|
6251
|
+
var nA = q - mA + $ & 32767, hA = m[nA], R = nA - hA & 32767;
|
|
6252
6252
|
R > V && (V = R, aA = nA);
|
|
6253
6253
|
}
|
|
6254
6254
|
}
|
|
@@ -6256,16 +6256,16 @@ var s2 = /* @__PURE__ */ Yr(Tn, 9, 0), a2 = /* @__PURE__ */ Yr(Tn, 9, 1), o2 = /
|
|
|
6256
6256
|
T = aA, aA = m[T], mA += T - aA & 32767;
|
|
6257
6257
|
}
|
|
6258
6258
|
if (rA) {
|
|
6259
|
-
W[cA++] = 268435456 | Xc[
|
|
6260
|
-
var yA = Xc[
|
|
6261
|
-
k += el[yA] + tl[HA], ++J[257 + yA], ++
|
|
6259
|
+
W[cA++] = 268435456 | Xc[AA] << 18 | _u[rA];
|
|
6260
|
+
var yA = Xc[AA] & 31, HA = _u[rA] & 31;
|
|
6261
|
+
k += el[yA] + tl[HA], ++J[257 + yA], ++Z[HA], U = q + AA, ++X;
|
|
6262
6262
|
} else
|
|
6263
6263
|
W[cA++] = t[q], ++J[t[q]];
|
|
6264
6264
|
}
|
|
6265
6265
|
}
|
|
6266
6266
|
for (q = Math.max(q, U); q < a; ++q)
|
|
6267
6267
|
W[cA++] = t[q], ++J[t[q]];
|
|
6268
|
-
d = zu(t, c, u, W, J,
|
|
6268
|
+
d = zu(t, c, u, W, J, Z, k, cA, F, q - F, d), u || (i.r = d & 7 | c[d / 8 | 0] << 3, d -= 7, i.h = D, i.p = m, i.i = q, i.w = U);
|
|
6269
6269
|
} else {
|
|
6270
6270
|
for (var q = i.w || 0; q < a + u; q += 65535) {
|
|
6271
6271
|
var SA = q + 65535;
|
|
@@ -6682,7 +6682,7 @@ function le(t) {
|
|
|
6682
6682
|
function J() {
|
|
6683
6683
|
this.restoreGraphicsState(), u = "S", _ = x.COMPAT;
|
|
6684
6684
|
}
|
|
6685
|
-
var
|
|
6685
|
+
var Z = g.__private__.combineFontStyleAndFontWeight = function(h, Q) {
|
|
6686
6686
|
if (h == "bold" && Q == "normal" || h == "bold" && Q == 400 || h == "normal" && Q == "italic" || h == "bold" && Q == "italic")
|
|
6687
6687
|
throw new Error("Invalid Combination of fontweight and fontstyle");
|
|
6688
6688
|
return Q && (h = Q == 400 || Q === "normal" ? h === "italic" ? "italic" : "normal" : Q != 700 && Q !== "bold" || h !== "normal" ? (Q == 700 ? "bold" : Q) + "" + h : "bold"), h;
|
|
@@ -6738,17 +6738,17 @@ function le(t) {
|
|
|
6738
6738
|
g.__private__.setPrecision = g.setPrecision = function(h) {
|
|
6739
6739
|
typeof parseInt(h, 10) == "number" && (A = parseInt(h, 10));
|
|
6740
6740
|
};
|
|
6741
|
-
var aA, tA = "00000000000000000000000000000000",
|
|
6741
|
+
var aA, tA = "00000000000000000000000000000000", $ = g.__private__.getFileId = function() {
|
|
6742
6742
|
return tA;
|
|
6743
|
-
},
|
|
6743
|
+
}, AA = g.__private__.setFileId = function(h) {
|
|
6744
6744
|
return tA = h !== void 0 && /^[a-fA-F0-9]{32}$/.test(h) ? h.toUpperCase() : tA.split("").map(function() {
|
|
6745
6745
|
return "ABCDEF0123456789".charAt(Math.floor(16 * Math.random()));
|
|
6746
6746
|
}).join(""), d !== null && (Ht = new zi(d.userPermissions, d.userPassword, d.ownerPassword, tA)), tA;
|
|
6747
6747
|
};
|
|
6748
6748
|
g.setFileId = function(h) {
|
|
6749
|
-
return
|
|
6749
|
+
return AA(h), this;
|
|
6750
6750
|
}, g.getFileId = function() {
|
|
6751
|
-
return
|
|
6751
|
+
return $();
|
|
6752
6752
|
};
|
|
6753
6753
|
var rA = g.__private__.convertDateToPDFDate = function(h) {
|
|
6754
6754
|
var Q = h.getTimezoneOffset(), z = Q < 0 ? "+" : "-", eA = Math.floor(Math.abs(Q / 60)), gA = Math.abs(Q % 60), FA = [z, P(eA), "'", P(gA), "'"].join("");
|
|
@@ -7409,7 +7409,7 @@ Q`), Bt(gA, !0), Gt({ data: FA, filters: nr(), objectId: gA }), G("endobj"), eA;
|
|
|
7409
7409
|
UA = r;
|
|
7410
7410
|
}
|
|
7411
7411
|
var Ht = null;
|
|
7412
|
-
mA(),
|
|
7412
|
+
mA(), AA();
|
|
7413
7413
|
var wl = function(h) {
|
|
7414
7414
|
return d !== null ? Ht.encryptor(h, 0) : function(Q) {
|
|
7415
7415
|
return Q;
|
|
@@ -7778,7 +7778,7 @@ T* `) : h.join(` Tj
|
|
|
7778
7778
|
throw new Error("Invalid arguments passed to jsPDF.circle");
|
|
7779
7779
|
return this.ellipse(h, Q, z, z, eA);
|
|
7780
7780
|
}, g.setFont = function(h, Q, z) {
|
|
7781
|
-
return z && (Q =
|
|
7781
|
+
return z && (Q = Z(Q, z)), jA = fa(h, Q, { disableWarning: !1 }), this;
|
|
7782
7782
|
};
|
|
7783
7783
|
var Ql = g.__private__.getFont = g.getFont = function() {
|
|
7784
7784
|
return se[fa.apply(g, arguments)];
|
|
@@ -7792,7 +7792,7 @@ T* `) : h.join(` Tj
|
|
|
7792
7792
|
return z;
|
|
7793
7793
|
}, g.addFont = function(h, Q, z, eA, gA) {
|
|
7794
7794
|
var FA = ["StandardEncoding", "MacRomanEncoding", "Identity-H", "WinAnsiEncoding"];
|
|
7795
|
-
return arguments[3] && FA.indexOf(arguments[3]) !== -1 ? gA = arguments[3] : arguments[3] && FA.indexOf(arguments[3]) == -1 && (z =
|
|
7795
|
+
return arguments[3] && FA.indexOf(arguments[3]) !== -1 ? gA = arguments[3] : arguments[3] && FA.indexOf(arguments[3]) == -1 && (z = Z(z, eA)), gA = gA || "Identity-H", ns.call(this, h, Q, z, gA);
|
|
7796
7796
|
};
|
|
7797
7797
|
var Rn, ls = t.lineWidth || 0.200025, Bi = g.__private__.getLineWidth = g.getLineWidth = function() {
|
|
7798
7798
|
return ls;
|
|
@@ -8128,12 +8128,12 @@ var tr = function(t, A) {
|
|
|
8128
8128
|
C += n[_][D], W = !0, m = _, _--;
|
|
8129
8129
|
} else {
|
|
8130
8130
|
C = (C += n[_][D] + " ").substr(C.length - 1) == " " ? C.substr(0, C.length - 1) : C;
|
|
8131
|
-
var J = parseInt(_),
|
|
8132
|
-
if (
|
|
8131
|
+
var J = parseInt(_), Z = c(J, C, i), X = _ >= n.length - 1;
|
|
8132
|
+
if (Z && !X) {
|
|
8133
8133
|
C += " ", D = 0;
|
|
8134
8134
|
continue;
|
|
8135
8135
|
}
|
|
8136
|
-
if (
|
|
8136
|
+
if (Z || X) {
|
|
8137
8137
|
if (X)
|
|
8138
8138
|
m = J;
|
|
8139
8139
|
else if (t.multiline && (B + 2) * (x + 2) + 2 > a)
|
|
@@ -8879,45 +8879,45 @@ function Ug(t) {
|
|
|
8879
8879
|
(function(t) {
|
|
8880
8880
|
t.__addimage__ = {};
|
|
8881
8881
|
var A = "UNKNOWN", e = { PNG: [[137, 80, 78, 71]], TIFF: [[77, 77, 0, 42], [73, 73, 42, 0]], JPEG: [[255, 216, 255, 224, void 0, void 0, 74, 70, 73, 70, 0], [255, 216, 255, 225, void 0, void 0, 69, 120, 105, 102, 0, 0], [255, 216, 255, 219], [255, 216, 255, 238]], JPEG2000: [[0, 0, 0, 12, 106, 80, 32, 32]], GIF87a: [[71, 73, 70, 56, 55, 97]], GIF89a: [[71, 73, 70, 56, 57, 97]], WEBP: [[82, 73, 70, 70, void 0, void 0, void 0, void 0, 87, 69, 66, 80]], BMP: [[66, 77], [66, 65], [67, 73], [67, 80], [73, 67], [80, 84]] }, r = t.__addimage__.getImageFileTypeByImageData = function(U, F) {
|
|
8882
|
-
var K, T, aA, tA,
|
|
8882
|
+
var K, T, aA, tA, $, AA = A;
|
|
8883
8883
|
if ((F = F || A) === "RGBA" || U.data !== void 0 && U.data instanceof Uint8ClampedArray && "height" in U && "width" in U)
|
|
8884
8884
|
return "RGBA";
|
|
8885
|
-
if (
|
|
8886
|
-
for (
|
|
8887
|
-
for (aA = e[
|
|
8885
|
+
if (Z(U))
|
|
8886
|
+
for ($ in e)
|
|
8887
|
+
for (aA = e[$], K = 0; K < aA.length; K += 1) {
|
|
8888
8888
|
for (tA = !0, T = 0; T < aA[K].length; T += 1)
|
|
8889
8889
|
if (aA[K][T] !== void 0 && aA[K][T] !== U[T]) {
|
|
8890
8890
|
tA = !1;
|
|
8891
8891
|
break;
|
|
8892
8892
|
}
|
|
8893
8893
|
if (tA === !0) {
|
|
8894
|
-
|
|
8894
|
+
AA = $;
|
|
8895
8895
|
break;
|
|
8896
8896
|
}
|
|
8897
8897
|
}
|
|
8898
8898
|
else
|
|
8899
|
-
for (
|
|
8900
|
-
for (aA = e[
|
|
8899
|
+
for ($ in e)
|
|
8900
|
+
for (aA = e[$], K = 0; K < aA.length; K += 1) {
|
|
8901
8901
|
for (tA = !0, T = 0; T < aA[K].length; T += 1)
|
|
8902
8902
|
if (aA[K][T] !== void 0 && aA[K][T] !== U.charCodeAt(T)) {
|
|
8903
8903
|
tA = !1;
|
|
8904
8904
|
break;
|
|
8905
8905
|
}
|
|
8906
8906
|
if (tA === !0) {
|
|
8907
|
-
|
|
8907
|
+
AA = $;
|
|
8908
8908
|
break;
|
|
8909
8909
|
}
|
|
8910
8910
|
}
|
|
8911
|
-
return
|
|
8911
|
+
return AA === A && F !== A && (AA = F), AA;
|
|
8912
8912
|
}, n = function U(F) {
|
|
8913
8913
|
for (var K = this.internal.write, T = this.internal.putStream, aA = (0, this.internal.getFilters)(); aA.indexOf("FlateEncode") !== -1; )
|
|
8914
8914
|
aA.splice(aA.indexOf("FlateEncode"), 1);
|
|
8915
8915
|
F.objectId = this.internal.newObject();
|
|
8916
8916
|
var tA = [];
|
|
8917
8917
|
if (tA.push({ key: "Type", value: "/XObject" }), tA.push({ key: "Subtype", value: "/Image" }), tA.push({ key: "Width", value: F.width }), tA.push({ key: "Height", value: F.height }), F.colorSpace === D.INDEXED ? tA.push({ key: "ColorSpace", value: "[/Indexed /DeviceRGB " + (F.palette.length / 3 - 1) + " " + ("sMask" in F && F.sMask !== void 0 ? F.objectId + 2 : F.objectId + 1) + " 0 R]" }) : (tA.push({ key: "ColorSpace", value: "/" + F.colorSpace }), F.colorSpace === D.DEVICE_CMYK && tA.push({ key: "Decode", value: "[1 0 1 0 1 0 1 0]" })), tA.push({ key: "BitsPerComponent", value: F.bitsPerComponent }), "decodeParameters" in F && F.decodeParameters !== void 0 && tA.push({ key: "DecodeParms", value: "<<" + F.decodeParameters + ">>" }), "transparency" in F && Array.isArray(F.transparency)) {
|
|
8918
|
-
for (var
|
|
8919
|
-
|
|
8920
|
-
tA.push({ key: "Mask", value: "[" +
|
|
8918
|
+
for (var $ = "", AA = 0, rA = F.transparency.length; AA < rA; AA++)
|
|
8919
|
+
$ += F.transparency[AA] + " " + F.transparency[AA] + " ";
|
|
8920
|
+
tA.push({ key: "Mask", value: "[" + $ + "]" });
|
|
8921
8921
|
}
|
|
8922
8922
|
F.sMask !== void 0 && tA.push({ key: "SMask", value: F.objectId + 1 + " 0 R" });
|
|
8923
8923
|
var oA = F.filter !== void 0 ? ["/" + F.filter] : void 0;
|
|
@@ -8985,14 +8985,14 @@ function Ug(t) {
|
|
|
8985
8985
|
}, v = function(U, F, K) {
|
|
8986
8986
|
return U || F || (U = -96, F = -96), U < 0 && (U = -1 * K.width * 72 / U / this.internal.scaleFactor), F < 0 && (F = -1 * K.height * 72 / F / this.internal.scaleFactor), U === 0 && (U = F * K.width / K.height), F === 0 && (F = U * K.height / K.width), [U, F];
|
|
8987
8987
|
}, m = function(U, F, K, T, aA, tA) {
|
|
8988
|
-
var
|
|
8989
|
-
if (K =
|
|
8988
|
+
var $ = v.call(this, K, T, aA), AA = this.internal.getCoordinateString, rA = this.internal.getVerticalCoordinateString, oA = c.call(this);
|
|
8989
|
+
if (K = $[0], T = $[1], oA[aA.index] = aA, tA) {
|
|
8990
8990
|
tA *= Math.PI / 180;
|
|
8991
8991
|
var mA = Math.cos(tA), b = Math.sin(tA), N = function(S) {
|
|
8992
8992
|
return S.toFixed(4);
|
|
8993
8993
|
}, P = [N(mA), N(b), N(-1 * b), N(mA), 0, 0, "cm"];
|
|
8994
8994
|
}
|
|
8995
|
-
this.internal.write("q"), tA ? (this.internal.write([1, "0", "0", 1,
|
|
8995
|
+
this.internal.write("q"), tA ? (this.internal.write([1, "0", "0", 1, AA(U), rA(F + T), "cm"].join(" ")), this.internal.write(P.join(" ")), this.internal.write([AA(K), "0", "0", AA(T), "0", "0", "cm"].join(" "))) : this.internal.write([AA(K), "0", "0", AA(T), AA(U), rA(F + T), "cm"].join(" ")), this.isAdvancedAPI() && this.internal.write([1, 0, 0, -1, 0, 0, "cm"].join(" ")), this.internal.write("/I" + aA.index + " Do"), this.internal.write("Q");
|
|
8996
8996
|
}, D = 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" };
|
|
8997
8997
|
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" };
|
|
8998
8998
|
var C = t.image_compression = { NONE: "NONE", FAST: "FAST", MEDIUM: "MEDIUM", SLOW: "SLOW" }, x = t.__addimage__.sHashCode = function(U) {
|
|
@@ -9000,7 +9000,7 @@ function Ug(t) {
|
|
|
9000
9000
|
if (typeof U == "string")
|
|
9001
9001
|
for (K = U.length, F = 0; F < K; F++)
|
|
9002
9002
|
T = (T << 5) - T + U.charCodeAt(F), T |= 0;
|
|
9003
|
-
else if (
|
|
9003
|
+
else if (Z(U))
|
|
9004
9004
|
for (K = U.byteLength / 2, F = 0; F < K; F++)
|
|
9005
9005
|
T = (T << 5) - T + U[F], T |= 0;
|
|
9006
9006
|
return T;
|
|
@@ -9019,41 +9019,41 @@ function Ug(t) {
|
|
|
9019
9019
|
t.__addimage__.isArrayBuffer = function(U) {
|
|
9020
9020
|
return J() && U instanceof ArrayBuffer;
|
|
9021
9021
|
};
|
|
9022
|
-
var
|
|
9022
|
+
var Z = t.__addimage__.isArrayBufferView = function(U) {
|
|
9023
9023
|
return J() && typeof Uint32Array < "u" && (U instanceof Int8Array || U instanceof Uint8Array || typeof Uint8ClampedArray < "u" && U instanceof Uint8ClampedArray || U instanceof Int16Array || U instanceof Uint16Array || U instanceof Int32Array || U instanceof Uint32Array || U instanceof Float32Array || U instanceof Float64Array);
|
|
9024
9024
|
}, X = t.__addimage__.binaryStringToUint8Array = function(U) {
|
|
9025
9025
|
for (var F = U.length, K = new Uint8Array(F), T = 0; T < F; T++)
|
|
9026
9026
|
K[T] = U.charCodeAt(T);
|
|
9027
9027
|
return K;
|
|
9028
9028
|
}, k = t.__addimage__.arrayBufferToBinaryString = function(U) {
|
|
9029
|
-
for (var F = "", K =
|
|
9029
|
+
for (var F = "", K = Z(U) ? U : new Uint8Array(U), T = 0; T < K.length; T += 8192)
|
|
9030
9030
|
F += String.fromCharCode.apply(null, K.subarray(T, T + 8192));
|
|
9031
9031
|
return F;
|
|
9032
9032
|
};
|
|
9033
9033
|
t.addImage = function() {
|
|
9034
|
-
var U, F, K, T, aA, tA,
|
|
9035
|
-
if (typeof arguments[1] == "number" ? (F = A, K = arguments[1], T = arguments[2], aA = arguments[3], tA = arguments[4],
|
|
9034
|
+
var U, F, K, T, aA, tA, $, AA, rA;
|
|
9035
|
+
if (typeof arguments[1] == "number" ? (F = A, K = arguments[1], T = arguments[2], aA = arguments[3], tA = arguments[4], $ = arguments[5], AA = arguments[6], rA = arguments[7]) : (F = arguments[1], K = arguments[2], T = arguments[3], aA = arguments[4], tA = arguments[5], $ = arguments[6], AA = arguments[7], rA = arguments[8]), Se(U = arguments[0]) === "object" && !B(U) && "imageData" in U) {
|
|
9036
9036
|
var oA = U;
|
|
9037
|
-
U = oA.imageData, F = oA.format || F || A, K = oA.x || K || 0, T = oA.y || T || 0, aA = oA.w || oA.width || aA, tA = oA.h || oA.height || tA,
|
|
9037
|
+
U = oA.imageData, F = oA.format || F || A, K = oA.x || K || 0, T = oA.y || T || 0, aA = oA.w || oA.width || aA, tA = oA.h || oA.height || tA, $ = oA.alias || $, AA = oA.compression || AA, rA = oA.rotation || oA.angle || rA;
|
|
9038
9038
|
}
|
|
9039
9039
|
var mA = this.internal.getFilters();
|
|
9040
|
-
if (
|
|
9040
|
+
if (AA === void 0 && mA.indexOf("FlateEncode") !== -1 && (AA = "SLOW"), isNaN(K) || isNaN(T))
|
|
9041
9041
|
throw new Error("Invalid coordinates passed to jsPDF.addImage");
|
|
9042
9042
|
o.call(this);
|
|
9043
|
-
var b = q.call(this, U, F,
|
|
9043
|
+
var b = q.call(this, U, F, $, AA);
|
|
9044
9044
|
return m.call(this, K, T, aA, tA, b, rA), this;
|
|
9045
9045
|
};
|
|
9046
9046
|
var q = function(U, F, K, T) {
|
|
9047
|
-
var aA, tA,
|
|
9047
|
+
var aA, tA, $;
|
|
9048
9048
|
if (typeof U == "string" && r(U) === A) {
|
|
9049
9049
|
U = unescape(U);
|
|
9050
|
-
var
|
|
9051
|
-
(
|
|
9050
|
+
var AA = cA(U, !1);
|
|
9051
|
+
(AA !== "" || (AA = t.loadFile(U, !0)) !== void 0) && (U = AA);
|
|
9052
9052
|
}
|
|
9053
9053
|
if (B(U) && (U = p(U, F)), F = r(U, F), !d(F))
|
|
9054
9054
|
throw new Error("addImage does not support files of type '" + F + "', please ensure that a plugin for '" + F + "' support is added.");
|
|
9055
|
-
if (((
|
|
9056
|
-
return typeof rA == "string" ||
|
|
9055
|
+
if ((($ = K) == null || $.length === 0) && (K = function(rA) {
|
|
9056
|
+
return typeof rA == "string" || Z(rA) ? x(rA) : Z(rA.data) ? x(rA.data) : null;
|
|
9057
9057
|
}(U)), (aA = g.call(this, K)) || (J() && (U instanceof Uint8Array || F === "RGBA" || (tA = U, U = X(U))), aA = this["process" + F.toUpperCase()](U, u.call(this), K, function(rA) {
|
|
9058
9058
|
return rA && typeof rA == "string" && (rA = rA.toUpperCase()), rA in t.image_compression ? rA : C.NONE;
|
|
9059
9059
|
}(T), tA)), !aA)
|
|
@@ -9148,8 +9148,8 @@ function(t) {
|
|
|
9148
9148
|
break;
|
|
9149
9149
|
case "XYZ":
|
|
9150
9150
|
default:
|
|
9151
|
-
var
|
|
9152
|
-
r.options.left = r.options.left || 0, r.options.zoom === void 0 && (r.options.zoom = 0), i += " /XYZ " + r.options.left + " " +
|
|
9151
|
+
var Z = o(r.options.top);
|
|
9152
|
+
r.options.left = r.options.left || 0, r.options.zoom === void 0 && (r.options.zoom = 0), i += " /XYZ " + r.options.left + " " + Z + " " + r.options.zoom + "]";
|
|
9153
9153
|
}
|
|
9154
9154
|
i != "" && (i += " >>", this.internal.write(i));
|
|
9155
9155
|
}
|
|
@@ -9224,10 +9224,10 @@ function(t) {
|
|
|
9224
9224
|
var p = t.__arabicParser__.getCorrectForm = function(m, D, C) {
|
|
9225
9225
|
return a(m) ? i(m) === !1 ? -1 : !u(m) || !a(D) && !a(C) || !a(C) && o(D) || o(m) && !a(D) || o(m) && c(D) || o(m) && o(D) ? 0 : d(m) && a(D) && !o(D) && a(C) && u(C) ? 3 : o(m) || !a(C) ? 1 : 2 : -1;
|
|
9226
9226
|
}, g = function(m) {
|
|
9227
|
-
var D = 0, C = 0, x = 0, _ = "", W = "", J = "",
|
|
9228
|
-
for (D = 0; D <
|
|
9229
|
-
for (X.push(""), C = 0; C <
|
|
9230
|
-
_ =
|
|
9227
|
+
var D = 0, C = 0, x = 0, _ = "", W = "", J = "", Z = (m = m || "").split("\\s+"), X = [];
|
|
9228
|
+
for (D = 0; D < Z.length; D += 1) {
|
|
9229
|
+
for (X.push(""), C = 0; C < Z[D].length; C += 1)
|
|
9230
|
+
_ = Z[D][C], W = Z[D][C - 1], J = Z[D][C + 1], a(_) ? (x = p(_, W, J), X[D] += x !== -1 ? String.fromCharCode(A[_.charCodeAt(0)][x]) : _) : X[D] += _;
|
|
9231
9231
|
X[D] = B(X[D]);
|
|
9232
9232
|
}
|
|
9233
9233
|
return X.join(" ");
|
|
@@ -9394,7 +9394,7 @@ function(t) {
|
|
|
9394
9394
|
t.table = function(c, u, d, B, p) {
|
|
9395
9395
|
if (r.call(this), !d)
|
|
9396
9396
|
throw new Error("No data for PDF table.");
|
|
9397
|
-
var g, v, m, D, C = [], x = [], _ = [], W = {}, J = {},
|
|
9397
|
+
var g, v, m, D, C = [], x = [], _ = [], W = {}, J = {}, Z = [], X = [], k = (p = p || {}).autoSize || !1, q = p.printHeaders !== !1, cA = p.css && p.css["font-size"] !== void 0 ? 16 * p.css["font-size"] : p.fontSize || 12, U = p.margins || Object.assign({ width: this.getPageWidth() }, A), F = typeof p.padding == "number" ? p.padding : 3, K = p.headerBackgroundColor || "#c8c8c8", T = p.headerTextColor || "#000";
|
|
9398
9398
|
if (n.call(this), this.internal.__cell__.printHeaders = q, this.internal.__cell__.margins = U, this.internal.__cell__.table_font_size = cA, this.internal.__cell__.padding = F, this.internal.__cell__.headerBackgroundColor = K, this.internal.__cell__.headerTextColor = T, this.setFontSize(cA), B == null)
|
|
9399
9399
|
x = C = Object.keys(d[0]), _ = C.map(function() {
|
|
9400
9400
|
return "left";
|
|
@@ -9416,9 +9416,9 @@ function(t) {
|
|
|
9416
9416
|
for (g = 0; g < C.length; g += 1) {
|
|
9417
9417
|
for (W[D = C[g]] = d.map(function(oA) {
|
|
9418
9418
|
return oA[D];
|
|
9419
|
-
}), this.setFont(void 0, "bold"),
|
|
9420
|
-
|
|
9421
|
-
J[D] = Math.max.apply(null,
|
|
9419
|
+
}), this.setFont(void 0, "bold"), Z.push(this.getTextDimensions(x[g], { fontSize: this.internal.__cell__.table_font_size, scaleFactor: this.internal.scaleFactor }).w), v = W[D], this.setFont(void 0, "normal"), m = 0; m < v.length; m += 1)
|
|
9420
|
+
Z.push(this.getTextDimensions(v[m], { fontSize: this.internal.__cell__.table_font_size, scaleFactor: this.internal.scaleFactor }).w);
|
|
9421
|
+
J[D] = Math.max.apply(null, Z) + F + F, Z = [];
|
|
9422
9422
|
}
|
|
9423
9423
|
if (q) {
|
|
9424
9424
|
var aA = {};
|
|
@@ -9429,15 +9429,15 @@ function(t) {
|
|
|
9429
9429
|
return new i(c, u, J[oA], tA, aA[oA].text, void 0, aA[oA].align);
|
|
9430
9430
|
}), this.setTableHeaderRow(X), this.printHeaderRow(1, !1);
|
|
9431
9431
|
}
|
|
9432
|
-
var
|
|
9432
|
+
var $ = B.reduce(function(oA, mA) {
|
|
9433
9433
|
return oA[mA.name] = mA.align, oA;
|
|
9434
9434
|
}, {});
|
|
9435
9435
|
for (g = 0; g < d.length; g += 1) {
|
|
9436
9436
|
"rowStart" in p && p.rowStart instanceof Function && p.rowStart({ row: g, data: d[g] }, this);
|
|
9437
|
-
var
|
|
9437
|
+
var AA = o.call(this, d[g], J);
|
|
9438
9438
|
for (m = 0; m < C.length; m += 1) {
|
|
9439
9439
|
var rA = d[g][C[m]];
|
|
9440
|
-
"cellStart" in p && p.cellStart instanceof Function && p.cellStart({ row: g, col: m, data: rA }, this), a.call(this, new i(c, u, J[C[m]],
|
|
9440
|
+
"cellStart" in p && p.cellStart instanceof Function && p.cellStart({ row: g, col: m, data: rA }, this), a.call(this, new i(c, u, J[C[m]], AA, rA, g + 2, $[C[m]]));
|
|
9441
9441
|
}
|
|
9442
9442
|
}
|
|
9443
9443
|
return this.internal.__cell__.table_x = c, this.internal.__cell__.table_y = u, this;
|
|
@@ -9914,7 +9914,7 @@ var Qo, ef, tf, yc = ["times"];
|
|
|
9914
9914
|
if (isNaN(N) || isNaN(P) || typeof b != "string")
|
|
9915
9915
|
throw Re.error("jsPDF.context2d.fillText: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.fillText");
|
|
9916
9916
|
if (S = isNaN(S) ? void 0 : S, !g.call(this)) {
|
|
9917
|
-
var Y =
|
|
9917
|
+
var Y = AA(this.ctx.transform.rotation), V = this.ctx.transform.scaleX;
|
|
9918
9918
|
F.call(this, { text: b, x: N, y: P, scale: V, angle: Y, align: this.textAlign, maxWidth: S });
|
|
9919
9919
|
}
|
|
9920
9920
|
}, B.prototype.strokeText = function(b, N, P, S) {
|
|
@@ -9922,7 +9922,7 @@ var Qo, ef, tf, yc = ["times"];
|
|
|
9922
9922
|
throw Re.error("jsPDF.context2d.strokeText: Invalid arguments", arguments), new Error("Invalid arguments passed to jsPDF.context2d.strokeText");
|
|
9923
9923
|
if (!v.call(this)) {
|
|
9924
9924
|
S = isNaN(S) ? void 0 : S;
|
|
9925
|
-
var Y =
|
|
9925
|
+
var Y = AA(this.ctx.transform.rotation), V = this.ctx.transform.scaleX;
|
|
9926
9926
|
F.call(this, { text: b, x: N, y: P, scale: V, renderingMode: "stroke", angle: Y, align: this.textAlign, maxWidth: S });
|
|
9927
9927
|
}
|
|
9928
9928
|
}, B.prototype.measureText = function(b) {
|
|
@@ -9964,7 +9964,7 @@ var Qo, ef, tf, yc = ["times"];
|
|
|
9964
9964
|
B.prototype.drawImage = function(b, N, P, S, Y, V, nA, hA, R) {
|
|
9965
9965
|
var yA = this.pdf.getImageProperties(b), HA = 1, SA = 1, _A = 1, pA = 1;
|
|
9966
9966
|
S !== void 0 && hA !== void 0 && (_A = hA / S, pA = R / Y, HA = yA.width / S * hA / S, SA = yA.height / Y * R / Y), V === void 0 && (V = N, nA = P, N = 0, P = 0), S !== void 0 && hA === void 0 && (hA = S, R = Y), S === void 0 && hA === void 0 && (hA = yA.width, R = yA.height);
|
|
9967
|
-
for (var G, zA = this.ctx.transform.decompose(), RA =
|
|
9967
|
+
for (var G, zA = this.ctx.transform.decompose(), RA = AA(zA.rotate.shx), dA = new c(), TA = (dA = (dA = (dA = dA.multiply(zA.translate)).multiply(zA.skew)).multiply(zA.scale)).applyToRectangle(new o(V - N * _A, nA - P * pA, S * HA, Y * SA)), xA = D.call(this, TA), LA = [], GA = 0; GA < xA.length; GA += 1)
|
|
9968
9968
|
LA.indexOf(xA[GA]) === -1 && LA.push(xA[GA]);
|
|
9969
9969
|
if (_(LA), this.autoPaging)
|
|
9970
9970
|
for (var NA = LA[0], XA = LA[LA.length - 1], $A = NA; $A < XA + 1; $A++) {
|
|
@@ -10106,7 +10106,7 @@ var Qo, ef, tf, yc = ["times"];
|
|
|
10106
10106
|
}
|
|
10107
10107
|
S && q.call(this, S), N && cA.call(this);
|
|
10108
10108
|
}
|
|
10109
|
-
},
|
|
10109
|
+
}, Z = function(b) {
|
|
10110
10110
|
var N = this.pdf.internal.getFontSize() / this.pdf.internal.scaleFactor, P = N * (this.pdf.internal.getLineHeightFactor() - 1);
|
|
10111
10111
|
switch (this.ctx.textBaseline) {
|
|
10112
10112
|
case "bottom":
|
|
@@ -10172,7 +10172,7 @@ var Qo, ef, tf, yc = ["times"];
|
|
|
10172
10172
|
default:
|
|
10173
10173
|
N = "left";
|
|
10174
10174
|
}
|
|
10175
|
-
var P = this.pdf.getTextDimensions(b.text), S =
|
|
10175
|
+
var P = this.pdf.getTextDimensions(b.text), S = Z.call(this, b.y), Y = X.call(this, S) - P.h, V = this.ctx.transform.applyToPoint(new a(b.x, S)), nA = this.ctx.transform.decompose(), hA = new c();
|
|
10176
10176
|
hA = (hA = (hA = hA.multiply(nA.translate)).multiply(nA.skew)).multiply(nA.scale);
|
|
10177
10177
|
for (var R, yA, HA, SA = this.ctx.transform.applyToRectangle(new o(b.x, S, P.w, P.h)), _A = hA.applyToRectangle(new o(b.x, Y, P.w, P.h)), pA = D.call(this, _A), G = [], zA = 0; zA < pA.length; zA += 1)
|
|
10178
10178
|
G.indexOf(pA[zA]) === -1 && G.push(pA[zA]);
|
|
@@ -10211,13 +10211,13 @@ var Qo, ef, tf, yc = ["times"];
|
|
|
10211
10211
|
nA < Y && S && (nA = Y - nA);
|
|
10212
10212
|
for (var hA = [], R = S ? -1 : 1, yA = N; nA > 1e-5; ) {
|
|
10213
10213
|
var HA = yA + R * Math.min(nA, V);
|
|
10214
|
-
hA.push(
|
|
10214
|
+
hA.push($.call(this, b, yA, HA)), nA -= Math.abs(HA - yA), yA = HA;
|
|
10215
10215
|
}
|
|
10216
10216
|
return hA;
|
|
10217
|
-
},
|
|
10217
|
+
}, $ = function(b, N, P) {
|
|
10218
10218
|
var S = (P - N) / 2, Y = b * Math.cos(S), V = b * Math.sin(S), nA = Y, hA = -V, R = nA * nA + hA * hA, yA = R + nA * Y + hA * V, HA = 4 / 3 * (Math.sqrt(2 * R * yA) - yA) / (nA * V - hA * Y), SA = nA - HA * hA, _A = hA + HA * nA, pA = SA, G = -_A, zA = S + N, RA = Math.cos(zA), dA = Math.sin(zA);
|
|
10219
10219
|
return { x1: b * Math.cos(N), y1: b * Math.sin(N), x2: SA * RA - _A * dA, y2: SA * dA + _A * RA, x3: pA * RA - G * dA, y3: pA * dA + G * RA, x4: b * Math.cos(P), y4: b * Math.sin(P) };
|
|
10220
|
-
},
|
|
10220
|
+
}, AA = function(b) {
|
|
10221
10221
|
return 180 * b / Math.PI;
|
|
10222
10222
|
}, rA = function(b, N, P, S, Y, V) {
|
|
10223
10223
|
var nA = b + 0.5 * (P - b), hA = N + 0.5 * (S - N), R = Y + 0.5 * (P - Y), yA = V + 0.5 * (S - V), HA = Math.min(b, Y, nA, R), SA = Math.max(b, Y, nA, R), _A = Math.min(N, V, hA, yA), pA = Math.max(N, V, hA, yA);
|
|
@@ -10851,7 +10851,7 @@ var Ri, bo, rf, nf, sf, O2 = function() {
|
|
|
10851
10851
|
if (i == null && (i = this.imgData), i.length === 0)
|
|
10852
10852
|
return new Uint8Array(0);
|
|
10853
10853
|
function d(B, p, g, v) {
|
|
10854
|
-
var m, D, C, x, _, W, J,
|
|
10854
|
+
var m, D, C, x, _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA, rA, oA = Math.ceil((u.width - B) / g), mA = Math.ceil((u.height - p) / v), b = u.width == oA && u.height == mA;
|
|
10855
10855
|
for (F = a * oA, cA = b ? o : new Uint8Array(F * mA), W = i.length, U = 0, D = 0; U < mA && c < W; ) {
|
|
10856
10856
|
switch (i[c++]) {
|
|
10857
10857
|
case 0:
|
|
@@ -10863,16 +10863,16 @@ var Ri, bo, rf, nf, sf, O2 = function() {
|
|
|
10863
10863
|
m = i[c++], _ = x < a ? 0 : cA[D - a], cA[D++] = (m + _) % 256;
|
|
10864
10864
|
break;
|
|
10865
10865
|
case 2:
|
|
10866
|
-
for (x =
|
|
10866
|
+
for (x = $ = 0; $ < F; x = $ += 1)
|
|
10867
10867
|
m = i[c++], C = (x - x % a) / a, K = U && cA[(U - 1) * F + C * a + x % a], cA[D++] = (K + m) % 256;
|
|
10868
10868
|
break;
|
|
10869
10869
|
case 3:
|
|
10870
|
-
for (x =
|
|
10870
|
+
for (x = AA = 0; AA < F; x = AA += 1)
|
|
10871
10871
|
m = i[c++], C = (x - x % a) / a, _ = x < a ? 0 : cA[D - a], K = U && cA[(U - 1) * F + C * a + x % a], cA[D++] = (m + Math.floor((_ + K) / 2)) % 256;
|
|
10872
10872
|
break;
|
|
10873
10873
|
case 4:
|
|
10874
10874
|
for (x = rA = 0; rA < F; x = rA += 1)
|
|
10875
|
-
m = i[c++], C = (x - x % a) / a, _ = x < a ? 0 : cA[D - a], U === 0 ? K = T = 0 : (K = cA[(U - 1) * F + C * a + x % a], T = C && cA[(U - 1) * F + (C - 1) * a + x % a]), J = _ + K - T,
|
|
10875
|
+
m = i[c++], C = (x - x % a) / a, _ = x < a ? 0 : cA[D - a], U === 0 ? K = T = 0 : (K = cA[(U - 1) * F + C * a + x % a], T = C && cA[(U - 1) * F + (C - 1) * a + x % a]), J = _ + K - T, Z = Math.abs(J - _), k = Math.abs(J - K), q = Math.abs(J - T), X = Z <= k && Z <= q ? _ : k <= q ? K : T, cA[D++] = (m + X) % 256;
|
|
10876
10876
|
break;
|
|
10877
10877
|
default:
|
|
10878
10878
|
throw new Error("Invalid filter algorithm: " + i[c - 1]);
|
|
@@ -11045,8 +11045,8 @@ function K2(t) {
|
|
|
11045
11045
|
}
|
|
11046
11046
|
break;
|
|
11047
11047
|
case 44:
|
|
11048
|
-
var D = t[A++] | t[A++] << 8, C = t[A++] | t[A++] << 8, x = t[A++] | t[A++] << 8, _ = t[A++] | t[A++] << 8, W = t[A++], J = W >> 6 & 1,
|
|
11049
|
-
W >> 7 && (q = !0, X = A, k =
|
|
11048
|
+
var D = t[A++] | t[A++] << 8, C = t[A++] | t[A++] << 8, x = t[A++] | t[A++] << 8, _ = t[A++] | t[A++] << 8, W = t[A++], J = W >> 6 & 1, Z = 1 << (7 & W) + 1, X = o, k = c, q = !1;
|
|
11049
|
+
W >> 7 && (q = !0, X = A, k = Z, A += 3 * Z);
|
|
11050
11050
|
var cA = A;
|
|
11051
11051
|
for (A++; ; ) {
|
|
11052
11052
|
var U;
|
|
@@ -11075,16 +11075,16 @@ function K2(t) {
|
|
|
11075
11075
|
}, this.decodeAndBlitFrameBGRA = function(F, K) {
|
|
11076
11076
|
var T = this.frameInfo(F), aA = T.width * T.height, tA = new Uint8Array(aA);
|
|
11077
11077
|
af(t, T.data_offset, tA, aA);
|
|
11078
|
-
var
|
|
11079
|
-
|
|
11078
|
+
var $ = T.palette_offset, AA = T.transparent_index;
|
|
11079
|
+
AA === null && (AA = 256);
|
|
11080
11080
|
var rA = T.width, oA = e - rA, mA = rA, b = 4 * (T.y * e + T.x), N = 4 * ((T.y + T.height) * e + T.x), P = b, S = 4 * oA;
|
|
11081
11081
|
T.interlaced === !0 && (S += 4 * e * 7);
|
|
11082
11082
|
for (var Y = 8, V = 0, nA = tA.length; V < nA; ++V) {
|
|
11083
11083
|
var hA = tA[V];
|
|
11084
|
-
if (mA === 0 && (mA = rA, (P += S) >= N && (S = 4 * oA + 4 * e * (Y - 1), P = b + (rA + oA) * (Y << 1), Y >>= 1)), hA ===
|
|
11084
|
+
if (mA === 0 && (mA = rA, (P += S) >= N && (S = 4 * oA + 4 * e * (Y - 1), P = b + (rA + oA) * (Y << 1), Y >>= 1)), hA === AA)
|
|
11085
11085
|
P += 4;
|
|
11086
11086
|
else {
|
|
11087
|
-
var R = t[
|
|
11087
|
+
var R = t[$ + 3 * hA], yA = t[$ + 3 * hA + 1], HA = t[$ + 3 * hA + 2];
|
|
11088
11088
|
K[P++] = HA, K[P++] = yA, K[P++] = R, K[P++] = 255;
|
|
11089
11089
|
}
|
|
11090
11090
|
--mA;
|
|
@@ -11092,16 +11092,16 @@ function K2(t) {
|
|
|
11092
11092
|
}, this.decodeAndBlitFrameRGBA = function(F, K) {
|
|
11093
11093
|
var T = this.frameInfo(F), aA = T.width * T.height, tA = new Uint8Array(aA);
|
|
11094
11094
|
af(t, T.data_offset, tA, aA);
|
|
11095
|
-
var
|
|
11096
|
-
|
|
11095
|
+
var $ = T.palette_offset, AA = T.transparent_index;
|
|
11096
|
+
AA === null && (AA = 256);
|
|
11097
11097
|
var rA = T.width, oA = e - rA, mA = rA, b = 4 * (T.y * e + T.x), N = 4 * ((T.y + T.height) * e + T.x), P = b, S = 4 * oA;
|
|
11098
11098
|
T.interlaced === !0 && (S += 4 * e * 7);
|
|
11099
11099
|
for (var Y = 8, V = 0, nA = tA.length; V < nA; ++V) {
|
|
11100
11100
|
var hA = tA[V];
|
|
11101
|
-
if (mA === 0 && (mA = rA, (P += S) >= N && (S = 4 * oA + 4 * e * (Y - 1), P = b + (rA + oA) * (Y << 1), Y >>= 1)), hA ===
|
|
11101
|
+
if (mA === 0 && (mA = rA, (P += S) >= N && (S = 4 * oA + 4 * e * (Y - 1), P = b + (rA + oA) * (Y << 1), Y >>= 1)), hA === AA)
|
|
11102
11102
|
P += 4;
|
|
11103
11103
|
else {
|
|
11104
|
-
var R = t[
|
|
11104
|
+
var R = t[$ + 3 * hA], yA = t[$ + 3 * hA + 1], HA = t[$ + 3 * hA + 2];
|
|
11105
11105
|
K[P++] = R, K[P++] = yA, K[P++] = HA, K[P++] = 255;
|
|
11106
11106
|
}
|
|
11107
11107
|
--mA;
|
|
@@ -11166,7 +11166,7 @@ function af(t, A, e, r) {
|
|
|
11166
11166
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
11167
11167
|
*/
|
|
11168
11168
|
function Qc(t) {
|
|
11169
|
-
var A, e, r, n, i, a = Math.floor, o = new Array(64), c = new Array(64), u = new Array(64), d = new Array(64), B = new Array(65535), p = new Array(65535), g = new Array(64), v = new Array(64), m = [], D = 0, C = 7, x = new Array(64), _ = new Array(64), W = new Array(64), J = new Array(256),
|
|
11169
|
+
var A, e, r, n, i, a = Math.floor, o = new Array(64), c = new Array(64), u = new Array(64), d = new Array(64), B = new Array(65535), p = new Array(65535), g = new Array(64), v = new Array(64), m = [], D = 0, C = 7, x = new Array(64), _ = new Array(64), W = new Array(64), J = new Array(256), Z = new Array(2048), X = [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], q = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], cA = [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], F = [0, 0, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], K = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], T = [0, 0, 2, 1, 2, 4, 4, 3, 4, 7, 5, 4, 4, 0, 1, 2, 119], aA = [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];
|
|
11170
11170
|
function tA(b, N) {
|
|
11171
11171
|
for (var P = 0, S = 0, Y = new Array(), V = 1; V <= 16; V++) {
|
|
11172
11172
|
for (var nA = 1; nA <= b[V]; nA++)
|
|
@@ -11175,15 +11175,15 @@ function Qc(t) {
|
|
|
11175
11175
|
}
|
|
11176
11176
|
return Y;
|
|
11177
11177
|
}
|
|
11178
|
-
function
|
|
11178
|
+
function $(b) {
|
|
11179
11179
|
for (var N = b[0], P = b[1] - 1; P >= 0; )
|
|
11180
|
-
N & 1 << P && (D |= 1 << C), P--, --C < 0 && (D == 255 ? (
|
|
11180
|
+
N & 1 << P && (D |= 1 << C), P--, --C < 0 && (D == 255 ? (AA(255), AA(0)) : AA(D), C = 7, D = 0);
|
|
11181
11181
|
}
|
|
11182
|
-
function
|
|
11182
|
+
function AA(b) {
|
|
11183
11183
|
m.push(b);
|
|
11184
11184
|
}
|
|
11185
11185
|
function rA(b) {
|
|
11186
|
-
|
|
11186
|
+
AA(b >> 8 & 255), AA(255 & b);
|
|
11187
11187
|
}
|
|
11188
11188
|
function oA(b, N, P, S, Y) {
|
|
11189
11189
|
for (var V, nA = Y[0], hA = Y[240], R = function(dA, TA) {
|
|
@@ -11212,11 +11212,11 @@ function Qc(t) {
|
|
|
11212
11212
|
}(b, N), yA = 0; yA < 64; ++yA)
|
|
11213
11213
|
v[X[yA]] = R[yA];
|
|
11214
11214
|
var HA = v[0] - P;
|
|
11215
|
-
P = v[0], HA == 0 ?
|
|
11215
|
+
P = v[0], HA == 0 ? $(S[0]) : ($(S[p[V = 32767 + HA]]), $(B[V]));
|
|
11216
11216
|
for (var SA = 63; SA > 0 && v[SA] == 0; )
|
|
11217
11217
|
SA--;
|
|
11218
11218
|
if (SA == 0)
|
|
11219
|
-
return
|
|
11219
|
+
return $(nA), P;
|
|
11220
11220
|
for (var _A, pA = 1; pA <= SA; ) {
|
|
11221
11221
|
for (var G = pA; v[pA] == 0 && pA <= SA; )
|
|
11222
11222
|
++pA;
|
|
@@ -11224,12 +11224,12 @@ function Qc(t) {
|
|
|
11224
11224
|
if (zA >= 16) {
|
|
11225
11225
|
_A = zA >> 4;
|
|
11226
11226
|
for (var RA = 1; RA <= _A; ++RA)
|
|
11227
|
-
|
|
11227
|
+
$(hA);
|
|
11228
11228
|
zA &= 15;
|
|
11229
11229
|
}
|
|
11230
|
-
V = 32767 + v[pA],
|
|
11230
|
+
V = 32767 + v[pA], $(Y[(zA << 4) + p[V]]), $(B[V]), pA++;
|
|
11231
11231
|
}
|
|
11232
|
-
return SA != 63 &&
|
|
11232
|
+
return SA != 63 && $(nA), P;
|
|
11233
11233
|
}
|
|
11234
11234
|
function mA(b) {
|
|
11235
11235
|
b = Math.min(Math.max(b, 1), 100), i != b && (function(N) {
|
|
@@ -11247,50 +11247,50 @@ function Qc(t) {
|
|
|
11247
11247
|
}(b < 50 ? Math.floor(5e3 / b) : Math.floor(200 - 2 * b)), i = b);
|
|
11248
11248
|
}
|
|
11249
11249
|
this.encode = function(b, N) {
|
|
11250
|
-
N && mA(N), m = new Array(), D = 0, C = 7, rA(65496), rA(65504), rA(16),
|
|
11251
|
-
rA(65499), rA(132),
|
|
11250
|
+
N && mA(N), m = new Array(), D = 0, C = 7, rA(65496), rA(65504), rA(16), AA(74), AA(70), AA(73), AA(70), AA(0), AA(1), AA(1), AA(0), rA(1), rA(1), AA(0), AA(0), function() {
|
|
11251
|
+
rA(65499), rA(132), AA(0);
|
|
11252
11252
|
for (var LA = 0; LA < 64; LA++)
|
|
11253
|
-
|
|
11254
|
-
|
|
11253
|
+
AA(o[LA]);
|
|
11254
|
+
AA(1);
|
|
11255
11255
|
for (var GA = 0; GA < 64; GA++)
|
|
11256
|
-
|
|
11256
|
+
AA(c[GA]);
|
|
11257
11257
|
}(), function(LA, GA) {
|
|
11258
|
-
rA(65472), rA(17),
|
|
11258
|
+
rA(65472), rA(17), AA(8), rA(GA), rA(LA), AA(3), AA(1), AA(17), AA(0), AA(2), AA(17), AA(1), AA(3), AA(17), AA(1);
|
|
11259
11259
|
}(b.width, b.height), function() {
|
|
11260
|
-
rA(65476), rA(418),
|
|
11260
|
+
rA(65476), rA(418), AA(0);
|
|
11261
11261
|
for (var LA = 0; LA < 16; LA++)
|
|
11262
|
-
|
|
11262
|
+
AA(k[LA + 1]);
|
|
11263
11263
|
for (var GA = 0; GA <= 11; GA++)
|
|
11264
|
-
|
|
11265
|
-
|
|
11264
|
+
AA(q[GA]);
|
|
11265
|
+
AA(16);
|
|
11266
11266
|
for (var NA = 0; NA < 16; NA++)
|
|
11267
|
-
|
|
11267
|
+
AA(cA[NA + 1]);
|
|
11268
11268
|
for (var XA = 0; XA <= 161; XA++)
|
|
11269
|
-
|
|
11270
|
-
|
|
11269
|
+
AA(U[XA]);
|
|
11270
|
+
AA(1);
|
|
11271
11271
|
for (var $A = 0; $A < 16; $A++)
|
|
11272
|
-
|
|
11272
|
+
AA(F[$A + 1]);
|
|
11273
11273
|
for (var j = 0; j <= 11; j++)
|
|
11274
|
-
|
|
11275
|
-
|
|
11274
|
+
AA(K[j]);
|
|
11275
|
+
AA(17);
|
|
11276
11276
|
for (var IA = 0; IA < 16; IA++)
|
|
11277
|
-
|
|
11277
|
+
AA(T[IA + 1]);
|
|
11278
11278
|
for (var vA = 0; vA <= 161; vA++)
|
|
11279
|
-
|
|
11280
|
-
}(), rA(65498), rA(12),
|
|
11279
|
+
AA(aA[vA]);
|
|
11280
|
+
}(), rA(65498), rA(12), AA(3), AA(1), AA(0), AA(2), AA(17), AA(3), AA(17), AA(0), AA(63), AA(0);
|
|
11281
11281
|
var P = 0, S = 0, Y = 0;
|
|
11282
11282
|
D = 0, C = 7, this.encode.displayName = "_encode_";
|
|
11283
11283
|
for (var V, nA, hA, R, yA, HA, SA, _A, pA, G = b.data, zA = b.width, RA = b.height, dA = 4 * zA, TA = 0; TA < RA; ) {
|
|
11284
11284
|
for (V = 0; V < dA; ) {
|
|
11285
11285
|
for (yA = dA * TA + V, SA = -1, _A = 0, pA = 0; pA < 64; pA++)
|
|
11286
|
-
HA = yA + (_A = pA >> 3) * dA + (SA = 4 * (7 & pA)), TA + _A >= RA && (HA -= dA * (TA + 1 + _A - RA)), V + SA >= dA && (HA -= V + SA - dA + 4), nA = G[HA++], hA = G[HA++], R = G[HA++], x[pA] = (
|
|
11286
|
+
HA = yA + (_A = pA >> 3) * dA + (SA = 4 * (7 & pA)), TA + _A >= RA && (HA -= dA * (TA + 1 + _A - RA)), V + SA >= dA && (HA -= V + SA - dA + 4), nA = G[HA++], hA = G[HA++], R = G[HA++], x[pA] = (Z[nA] + Z[hA + 256 >> 0] + Z[R + 512 >> 0] >> 16) - 128, _[pA] = (Z[nA + 768 >> 0] + Z[hA + 1024 >> 0] + Z[R + 1280 >> 0] >> 16) - 128, W[pA] = (Z[nA + 1280 >> 0] + Z[hA + 1536 >> 0] + Z[R + 1792 >> 0] >> 16) - 128;
|
|
11287
11287
|
P = oA(x, u, P, A, r), S = oA(_, d, S, e, n), Y = oA(W, d, Y, e, n), V += 32;
|
|
11288
11288
|
}
|
|
11289
11289
|
TA += 8;
|
|
11290
11290
|
}
|
|
11291
11291
|
if (C >= 0) {
|
|
11292
11292
|
var xA = [];
|
|
11293
|
-
xA[1] = C + 1, xA[0] = (1 << C + 1) - 1,
|
|
11293
|
+
xA[1] = C + 1, xA[0] = (1 << C + 1) - 1, $(xA);
|
|
11294
11294
|
}
|
|
11295
11295
|
return rA(65497), new Uint8Array(m);
|
|
11296
11296
|
}, t = t || 50, function() {
|
|
@@ -11306,7 +11306,7 @@ function Qc(t) {
|
|
|
11306
11306
|
}
|
|
11307
11307
|
}(), function() {
|
|
11308
11308
|
for (var b = 0; b < 256; b++)
|
|
11309
|
-
|
|
11309
|
+
Z[b] = 19595 * b, Z[b + 256 >> 0] = 38470 * b, Z[b + 512 >> 0] = 7471 * b + 32768, Z[b + 768 >> 0] = -11059 * b, Z[b + 1024 >> 0] = -21709 * b, Z[b + 1280 >> 0] = 32768 * b + 8421375, Z[b + 1536 >> 0] = -27439 * b, Z[b + 1792 >> 0] = -5329 * b;
|
|
11310
11310
|
}(), mA(t);
|
|
11311
11311
|
}
|
|
11312
11312
|
/**
|
|
@@ -11430,11 +11430,11 @@ function of(t) {
|
|
|
11430
11430
|
f |= hA(s, 128) << l;
|
|
11431
11431
|
return f;
|
|
11432
11432
|
}
|
|
11433
|
-
function
|
|
11433
|
+
function $(s, l) {
|
|
11434
11434
|
var f = tA(s, l);
|
|
11435
11435
|
return nA(s) ? -f : f;
|
|
11436
11436
|
}
|
|
11437
|
-
function
|
|
11437
|
+
function AA(s, l, f, w) {
|
|
11438
11438
|
var y, I = 0;
|
|
11439
11439
|
for (A(s != null), A(l != null), A(4294967288 > w), s.Sb = w, s.Ra = 0, s.u = 0, s.h = 0, 4 < w && (w = 4), y = 0; y < w; ++y)
|
|
11440
11440
|
I += l[f + y] << 8 * y;
|
|
@@ -12194,9 +12194,9 @@ function of(t) {
|
|
|
12194
12194
|
if (A(I != null), A(L != null), L.Cb = nA(I), L.Cb) {
|
|
12195
12195
|
if (L.Bb = nA(I), nA(I)) {
|
|
12196
12196
|
for (L.Fb = nA(I), H = 0; 4 > H; ++H)
|
|
12197
|
-
L.Zb[H] = nA(I) ?
|
|
12197
|
+
L.Zb[H] = nA(I) ? $(I, 7) : 0;
|
|
12198
12198
|
for (H = 0; 4 > H; ++H)
|
|
12199
|
-
L.Lb[H] = nA(I) ?
|
|
12199
|
+
L.Lb[H] = nA(I) ? $(I, 6) : 0;
|
|
12200
12200
|
}
|
|
12201
12201
|
if (L.Bb)
|
|
12202
12202
|
for (H = 0; 3 > H; ++H)
|
|
@@ -12207,9 +12207,9 @@ function of(t) {
|
|
|
12207
12207
|
return tt(s, 3, "cannot parse segment header");
|
|
12208
12208
|
if ((L = s.ed).zd = nA(I), L.Tb = tA(I, 6), L.wb = tA(I, 3), L.Pc = nA(I), L.Pc && nA(I)) {
|
|
12209
12209
|
for (O = 0; 4 > O; ++O)
|
|
12210
|
-
nA(I) && (L.vd[O] =
|
|
12210
|
+
nA(I) && (L.vd[O] = $(I, 6));
|
|
12211
12211
|
for (O = 0; 4 > O; ++O)
|
|
12212
|
-
nA(I) && (L.od[O] =
|
|
12212
|
+
nA(I) && (L.od[O] = $(I, 6));
|
|
12213
12213
|
}
|
|
12214
12214
|
if (s.L = L.Tb == 0 ? 0 : L.zd ? 1 : 2, I.Ka)
|
|
12215
12215
|
return tt(s, 3, "cannot parse filter header");
|
|
@@ -12225,7 +12225,7 @@ function of(t) {
|
|
|
12225
12225
|
}
|
|
12226
12226
|
if (f != 0)
|
|
12227
12227
|
return tt(s, f, "cannot parse partitions");
|
|
12228
|
-
for (f = tA(H = s.m, 7), y = nA(H) ?
|
|
12228
|
+
for (f = tA(H = s.m, 7), y = nA(H) ? $(H, 4) : 0, w = nA(H) ? $(H, 4) : 0, L = nA(H) ? $(H, 4) : 0, O = nA(H) ? $(H, 4) : 0, H = nA(H) ? $(H, 4) : 0, iA = s.Qa, BA = 0; 4 > BA; ++BA) {
|
|
12229
12229
|
if (iA.Cb) {
|
|
12230
12230
|
var wA = iA.Zb[BA];
|
|
12231
12231
|
iA.Fb || (wA += f);
|
|
@@ -12775,7 +12775,7 @@ function of(t) {
|
|
|
12775
12775
|
l = 0;
|
|
12776
12776
|
break A;
|
|
12777
12777
|
}
|
|
12778
|
-
if (A(E != null), E.mc = l, l.c = E.c, l.i = E.i, l.l = E.l, l.l.ma = E, l.l.width = E.c, l.l.height = E.i, l.a = 0,
|
|
12778
|
+
if (A(E != null), E.mc = l, l.c = E.c, l.i = E.i, l.l = E.l, l.l.ma = E, l.l.width = E.c, l.l.height = E.i, l.a = 0, AA(l.m, L, wA, fA), !De(E.c, E.i, 1, l, null) || (l.ab == 1 && l.gc[0].hc == 3 && Rt(l.s) ? (E.ic = 1, L = l.c * l.i, l.Ta = null, l.Ua = 0, l.V = i(L), l.Ba = 0, l.V == null ? (l.a = 1, l = 0) : l = 1) : (E.ic = 0, l = On(l, E.c)), !l))
|
|
12779
12779
|
break e;
|
|
12780
12780
|
l = 1;
|
|
12781
12781
|
break A;
|
|
@@ -13125,7 +13125,7 @@ function of(t) {
|
|
|
13125
13125
|
sA = 7;
|
|
13126
13126
|
break;
|
|
13127
13127
|
}
|
|
13128
|
-
L = E, wA = PA, CA = I, s == null || 5 > f ? s = 0 : 5 <= f && s[l + 0] == 47 && !(s[l + 4] >> 5) ? (lA = [0], qA = [0], OA = [0],
|
|
13128
|
+
L = E, wA = PA, CA = I, s == null || 5 > f ? s = 0 : 5 <= f && s[l + 0] == 47 && !(s[l + 4] >> 5) ? (lA = [0], qA = [0], OA = [0], AA(MA = new b(), s, l, f), re(MA, lA, qA, OA) ? (L != null && (L[0] = lA[0]), wA != null && (wA[0] = qA[0]), CA != null && (CA[0] = OA[0]), s = 1) : s = 0) : s = 0;
|
|
13129
13129
|
} else {
|
|
13130
13130
|
if (10 > f) {
|
|
13131
13131
|
sA = 7;
|
|
@@ -13284,7 +13284,7 @@ function of(t) {
|
|
|
13284
13284
|
return 0;
|
|
13285
13285
|
if (fA == null)
|
|
13286
13286
|
return wA.a = 2, 0;
|
|
13287
|
-
if (wA.l = fA, wA.a = 0,
|
|
13287
|
+
if (wA.l = fA, wA.a = 0, AA(wA.m, fA.data, fA.w, fA.ha), !re(wA.m, PA, CA, sA)) {
|
|
13288
13288
|
wA.a = 3;
|
|
13289
13289
|
break e;
|
|
13290
13290
|
}
|
|
@@ -13390,7 +13390,7 @@ function of(t) {
|
|
|
13390
13390
|
for (B(k, q += 4), q += 8; q < k.length; ) {
|
|
13391
13391
|
var aA = u(k, q), tA = B(k, q += 4);
|
|
13392
13392
|
q += 4;
|
|
13393
|
-
var
|
|
13393
|
+
var $ = tA + (1 & tA);
|
|
13394
13394
|
switch (aA) {
|
|
13395
13395
|
case "VP8 ":
|
|
13396
13396
|
case "VP8L":
|
|
@@ -13398,20 +13398,20 @@ function of(t) {
|
|
|
13398
13398
|
break;
|
|
13399
13399
|
case "VP8X":
|
|
13400
13400
|
(oA = cA.header = {}).feature_flags = k[q];
|
|
13401
|
-
var
|
|
13402
|
-
oA.canvas_width = 1 + d(k,
|
|
13401
|
+
var AA = q + 4;
|
|
13402
|
+
oA.canvas_width = 1 + d(k, AA), AA += 3, oA.canvas_height = 1 + d(k, AA), AA += 3;
|
|
13403
13403
|
break;
|
|
13404
13404
|
case "ALPH":
|
|
13405
|
-
F = !0, K =
|
|
13405
|
+
F = !0, K = $ + 8, T = q - 8;
|
|
13406
13406
|
break;
|
|
13407
13407
|
case "ANIM":
|
|
13408
|
-
(oA = cA.header).bgcolor = B(k, q),
|
|
13408
|
+
(oA = cA.header).bgcolor = B(k, q), AA = q + 4, oA.loop_count = (mA = k)[(b = AA) + 0] << 0 | mA[b + 1] << 8, AA += 2;
|
|
13409
13409
|
break;
|
|
13410
13410
|
case "ANMF":
|
|
13411
13411
|
var rA, oA;
|
|
13412
13412
|
(oA = cA.frames[U] = {}).offset_x = 2 * d(k, q), q += 3, oA.offset_y = 2 * d(k, q), q += 3, oA.width = 1 + d(k, q), q += 3, oA.height = 1 + d(k, q), q += 3, oA.duration = d(k, q), q += 3, rA = k[q++], oA.dispose = 1 & rA, oA.blend = rA >> 1 & 1;
|
|
13413
13413
|
}
|
|
13414
|
-
aA != "ANMF" && (q +=
|
|
13414
|
+
aA != "ANMF" && (q += $);
|
|
13415
13415
|
}
|
|
13416
13416
|
var mA, b;
|
|
13417
13417
|
return cA;
|
|
@@ -13424,10 +13424,10 @@ function of(t) {
|
|
|
13424
13424
|
for (var W = 0; W < _.length && _[W].blend != 0; W++)
|
|
13425
13425
|
;
|
|
13426
13426
|
}
|
|
13427
|
-
var J = _[0],
|
|
13428
|
-
J.rgba =
|
|
13427
|
+
var J = _[0], Z = m.WebPDecodeRGBA(D, J.src_off, J.src_size, g, p);
|
|
13428
|
+
J.rgba = Z, J.imgwidth = g[0], J.imgheight = p[0];
|
|
13429
13429
|
for (var X = 0; X < g[0] * p[0] * 4; X++)
|
|
13430
|
-
v[X] =
|
|
13430
|
+
v[X] = Z[X];
|
|
13431
13431
|
return this.width = g, this.height = p, this.data = v, this;
|
|
13432
13432
|
}
|
|
13433
13433
|
(function(t) {
|
|
@@ -13449,14 +13449,14 @@ function of(t) {
|
|
|
13449
13449
|
var x = Jc(p, { level: D });
|
|
13450
13450
|
return t.__addimage__.arrayBufferToBinaryString(x);
|
|
13451
13451
|
}, r = function(p, g, v, m) {
|
|
13452
|
-
for (var D, C, x, _ = p.length / g, W = new Uint8Array(p.length + _), J = d(),
|
|
13453
|
-
if (x =
|
|
13454
|
-
W.set(m(D, v, C), x +
|
|
13452
|
+
for (var D, C, x, _ = p.length / g, W = new Uint8Array(p.length + _), J = d(), Z = 0; Z < _; Z += 1) {
|
|
13453
|
+
if (x = Z * g, D = p.subarray(x, x + g), m)
|
|
13454
|
+
W.set(m(D, v, C), x + Z);
|
|
13455
13455
|
else {
|
|
13456
13456
|
for (var X, k = J.length, q = []; X < k; X += 1)
|
|
13457
13457
|
q[X] = J[X](D, v, C);
|
|
13458
13458
|
var cA = B(q.concat());
|
|
13459
|
-
W.set(q[cA], x +
|
|
13459
|
+
W.set(q[cA], x + Z);
|
|
13460
13460
|
}
|
|
13461
13461
|
C = D;
|
|
13462
13462
|
}
|
|
@@ -13504,16 +13504,16 @@ function of(t) {
|
|
|
13504
13504
|
return g.indexOf(Math.min.apply(null, g));
|
|
13505
13505
|
};
|
|
13506
13506
|
t.processPNG = function(p, g, v, m) {
|
|
13507
|
-
var D, C, x, _, W, J,
|
|
13507
|
+
var D, C, x, _, W, J, Z, X, k, q, cA, U, F, K, T, aA = this.decode.FLATE_DECODE, tA = "";
|
|
13508
13508
|
if (this.__addimage__.isArrayBuffer(p) && (p = new Uint8Array(p)), this.__addimage__.isArrayBufferView(p)) {
|
|
13509
13509
|
if (p = (x = new O2(p)).imgData, C = x.bits, D = x.colorSpace, W = x.colors, [4, 6].indexOf(x.colorType) !== -1) {
|
|
13510
13510
|
if (x.bits === 8) {
|
|
13511
13511
|
k = (X = x.pixelBitlength == 32 ? new Uint32Array(x.decodePixels().buffer) : x.pixelBitlength == 16 ? new Uint16Array(x.decodePixels().buffer) : new Uint8Array(x.decodePixels().buffer)).length, cA = new Uint8Array(k * x.colors), q = new Uint8Array(k);
|
|
13512
|
-
var
|
|
13512
|
+
var $, AA = x.pixelBitlength - x.bits;
|
|
13513
13513
|
for (K = 0, T = 0; K < k; K++) {
|
|
13514
|
-
for (F = X[K],
|
|
13515
|
-
cA[T++] = F >>>
|
|
13516
|
-
q[K] = F >>>
|
|
13514
|
+
for (F = X[K], $ = 0; $ < AA; )
|
|
13515
|
+
cA[T++] = F >>> $ & 255, $ += x.bits;
|
|
13516
|
+
q[K] = F >>> $ & 255;
|
|
13517
13517
|
}
|
|
13518
13518
|
}
|
|
13519
13519
|
if (x.bits === 16) {
|
|
@@ -13522,7 +13522,7 @@ function of(t) {
|
|
|
13522
13522
|
F = X[K++], cA[T++] = F >>> 0 & 255, U && (cA[T++] = F >>> 16 & 255, F = X[K++], cA[T++] = F >>> 0 & 255), q[rA++] = F >>> 16 & 255;
|
|
13523
13523
|
C = 8;
|
|
13524
13524
|
}
|
|
13525
|
-
m !== t.image_compression.NONE && A() ? (p = e(cA, x.width * x.colors, x.colors, m),
|
|
13525
|
+
m !== t.image_compression.NONE && A() ? (p = e(cA, x.width * x.colors, x.colors, m), Z = e(q, x.width, 1, m)) : (p = cA, Z = q, aA = void 0);
|
|
13526
13526
|
}
|
|
13527
13527
|
if (x.colorType === 3 && (D = this.color_spaces.INDEXED, J = x.palette, x.transparency.indexed)) {
|
|
13528
13528
|
var oA = x.transparency.indexed, mA = 0;
|
|
@@ -13533,7 +13533,7 @@ function of(t) {
|
|
|
13533
13533
|
else if (mA !== k) {
|
|
13534
13534
|
for (X = x.decodePixels(), q = new Uint8Array(X.length), K = 0, k = X.length; K < k; K++)
|
|
13535
13535
|
q[K] = oA[X[K]];
|
|
13536
|
-
|
|
13536
|
+
Z = e(q, x.width, 1);
|
|
13537
13537
|
}
|
|
13538
13538
|
}
|
|
13539
13539
|
var b = function(N) {
|
|
@@ -13553,7 +13553,7 @@ function of(t) {
|
|
|
13553
13553
|
}
|
|
13554
13554
|
return P;
|
|
13555
13555
|
}(m);
|
|
13556
|
-
return aA === this.decode.FLATE_DECODE && (tA = "/Predictor " + b + " "), tA += "/Colors " + W + " /BitsPerComponent " + C + " /Columns " + x.width, (this.__addimage__.isArrayBuffer(p) || this.__addimage__.isArrayBufferView(p)) && (p = this.__addimage__.arrayBufferToBinaryString(p)), (
|
|
13556
|
+
return aA === this.decode.FLATE_DECODE && (tA = "/Predictor " + b + " "), tA += "/Colors " + W + " /BitsPerComponent " + C + " /Columns " + x.width, (this.__addimage__.isArrayBuffer(p) || this.__addimage__.isArrayBufferView(p)) && (p = this.__addimage__.arrayBufferToBinaryString(p)), (Z && this.__addimage__.isArrayBuffer(Z) || this.__addimage__.isArrayBufferView(Z)) && (Z = this.__addimage__.arrayBufferToBinaryString(Z)), { alias: v, data: p, index: g, filter: aA, decodeParameters: tA, transparency: _, palette: J, sMask: Z, predictor: b, width: x.width, height: x.height, bitsPerComponent: C, colorSpace: D };
|
|
13557
13557
|
}
|
|
13558
13558
|
};
|
|
13559
13559
|
})(le.API), function(t) {
|
|
@@ -13710,8 +13710,8 @@ function(t) {
|
|
|
13710
13710
|
if (c = e.lineIndent === -1 ? m[0].length + 2 : e.lineIndent || 0) {
|
|
13711
13711
|
var C = Array(c).join(" "), x = [];
|
|
13712
13712
|
m.map(function(W) {
|
|
13713
|
-
(W = W.split(/\s*\n/)).length > 1 ? x = x.concat(W.map(function(J,
|
|
13714
|
-
return (
|
|
13713
|
+
(W = W.split(/\s*\n/)).length > 1 ? x = x.concat(W.map(function(J, Z) {
|
|
13714
|
+
return (Z && J.length ? `
|
|
13715
13715
|
` : "") + J;
|
|
13716
13716
|
})) : x.push(W[0]);
|
|
13717
13717
|
}), m = x, c = rf.apply(this, [C, e]);
|
|
@@ -13775,7 +13775,7 @@ function(t) {
|
|
|
13775
13775
|
}, o = t.__fontmetrics__.uncompress = function(B) {
|
|
13776
13776
|
if (typeof B != "string")
|
|
13777
13777
|
throw new Error("Invalid argument passed to uncompress.");
|
|
13778
|
-
for (var p, g, v, m, D = {}, C = 1, x = D, _ = [], W = "", J = "",
|
|
13778
|
+
for (var p, g, v, m, D = {}, C = 1, x = D, _ = [], W = "", J = "", Z = B.length - 1, X = 1; X < Z; X += 1)
|
|
13779
13779
|
(m = B[X]) == "'" ? p ? (v = p.join(""), p = void 0) : p = [] : p ? p.push(m) : m == "{" ? (_.push([x, v]), x = {}, v = void 0) : m == "}" ? ((g = _.pop())[0][g[1]] = x, v = void 0, x = g[0]) : m == "-" ? C = -1 : v === void 0 ? e.hasOwnProperty(m) ? (W += e[m], v = parseInt(W, 16) * C, C = 1, W = "") : W += m : e.hasOwnProperty(m) ? (J += e[m], x[v] = parseInt(J, 16) * C, C = 1, v = void 0, J = "") : J += m;
|
|
13780
13780
|
return D;
|
|
13781
13781
|
}, c = { codePages: ["WinAnsiEncoding"], WinAnsiEncoding: o("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}") }, u = { Unicode: { Courier: c, "Courier-Bold": c, "Courier-BoldOblique": c, "Courier-Oblique": c, Helvetica: c, "Helvetica-Bold": c, "Helvetica-BoldOblique": c, "Helvetica-Oblique": c, "Times-Roman": c, "Times-Bold": c, "Times-BoldItalic": c, "Times-Italic": c } }, d = { Unicode: { "Courier-Oblique": o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-BoldItalic": o("{'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": o("{'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: o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Courier-BoldOblique": o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-Bold": o("{'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: o("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"), Helvetica: o("{'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": o("{'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: o("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"), "Courier-Bold": o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"), "Times-Italic": o("{'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": o("{'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": o("{'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}}}") } };
|
|
@@ -13833,7 +13833,7 @@ function(t) {
|
|
|
13833
13833
|
*/
|
|
13834
13834
|
function(t) {
|
|
13835
13835
|
function A() {
|
|
13836
|
-
return (ce.canvg ? Promise.resolve(ce.canvg) : import("./index.es-
|
|
13836
|
+
return (ce.canvg ? Promise.resolve(ce.canvg) : import("./index.es-c6ef3ae4.js")).catch(function(e) {
|
|
13837
13837
|
return Promise.reject(new Error("Could not load canvg: " + e));
|
|
13838
13838
|
}).then(function(e) {
|
|
13839
13839
|
return e.default ? e.default : e;
|
|
@@ -14083,8 +14083,8 @@ function(t) {
|
|
|
14083
14083
|
return !0;
|
|
14084
14084
|
}
|
|
14085
14085
|
return !1;
|
|
14086
|
-
},
|
|
14087
|
-
var aA, tA,
|
|
14086
|
+
}, Z = function(U, F, K, T) {
|
|
14087
|
+
var aA, tA, $, AA, rA = F[T];
|
|
14088
14088
|
switch (rA) {
|
|
14089
14089
|
case "L":
|
|
14090
14090
|
case "R":
|
|
@@ -14117,17 +14117,17 @@ function(t) {
|
|
|
14117
14117
|
rA = "N";
|
|
14118
14118
|
break;
|
|
14119
14119
|
}
|
|
14120
|
-
for (
|
|
14121
|
-
|
|
14122
|
-
rA =
|
|
14120
|
+
for ($ = T + 1, AA = F.length; $ < AA && F[$] === "ET"; )
|
|
14121
|
+
$++;
|
|
14122
|
+
rA = $ < AA && F[$] === "EN" ? "EN" : "N";
|
|
14123
14123
|
break;
|
|
14124
14124
|
case "NSM":
|
|
14125
14125
|
if (a && !o) {
|
|
14126
|
-
for (
|
|
14127
|
-
|
|
14128
|
-
if (
|
|
14126
|
+
for (AA = F.length, $ = T + 1; $ < AA && F[$] === "NSM"; )
|
|
14127
|
+
$++;
|
|
14128
|
+
if ($ < AA) {
|
|
14129
14129
|
var oA = U[T], mA = oA >= 1425 && oA <= 2303 || oA === 64286;
|
|
14130
|
-
if (aA = F[
|
|
14130
|
+
if (aA = F[$], mA && (aA === "R" || aA === "AL")) {
|
|
14131
14131
|
rA = "R";
|
|
14132
14132
|
break;
|
|
14133
14133
|
}
|
|
@@ -14156,11 +14156,11 @@ function(t) {
|
|
|
14156
14156
|
var T = U.split("");
|
|
14157
14157
|
return K && k(T, K, { hiLevel: _ }), T.reverse(), F && F.reverse(), T.join("");
|
|
14158
14158
|
}, k = function(U, F, K) {
|
|
14159
|
-
var T, aA, tA,
|
|
14159
|
+
var T, aA, tA, $, AA, rA = -1, oA = U.length, mA = 0, b = [], N = _ ? g : p, P = [];
|
|
14160
14160
|
for (x = !1, n = !1, i = !1, aA = 0; aA < oA; aA++)
|
|
14161
14161
|
P[aA] = W(U[aA]);
|
|
14162
14162
|
for (tA = 0; tA < oA; tA++) {
|
|
14163
|
-
if (
|
|
14163
|
+
if (AA = mA, b[tA] = Z(U, P, b, tA), T = 240 & (mA = N[AA][v[b[tA]]]), mA &= 15, F[tA] = $ = N[mA][5], T > 0)
|
|
14164
14164
|
if (T === 16) {
|
|
14165
14165
|
for (aA = rA; aA < tA; aA++)
|
|
14166
14166
|
F[aA] = 1;
|
|
@@ -14171,10 +14171,10 @@ function(t) {
|
|
|
14171
14171
|
rA === -1 && (rA = tA);
|
|
14172
14172
|
else if (rA > -1) {
|
|
14173
14173
|
for (aA = rA; aA < tA; aA++)
|
|
14174
|
-
F[aA] =
|
|
14174
|
+
F[aA] = $;
|
|
14175
14175
|
rA = -1;
|
|
14176
14176
|
}
|
|
14177
|
-
P[tA] === "B" && (F[tA] = 0), K.hiLevel |=
|
|
14177
|
+
P[tA] === "B" && (F[tA] = 0), K.hiLevel |= $;
|
|
14178
14178
|
}
|
|
14179
14179
|
i && function(S, Y, V) {
|
|
14180
14180
|
for (var nA = 0; nA < V; nA++)
|
|
@@ -14188,30 +14188,30 @@ function(t) {
|
|
|
14188
14188
|
if (!(aA.hiLevel < U)) {
|
|
14189
14189
|
if (U === 1 && _ === 1 && !n)
|
|
14190
14190
|
return F.reverse(), void (K && K.reverse());
|
|
14191
|
-
for (var tA,
|
|
14191
|
+
for (var tA, $, AA, rA, oA = F.length, mA = 0; mA < oA; ) {
|
|
14192
14192
|
if (T[mA] >= U) {
|
|
14193
|
-
for (
|
|
14194
|
-
|
|
14195
|
-
for (rA = mA,
|
|
14196
|
-
tA = F[rA], F[rA] = F[
|
|
14197
|
-
mA =
|
|
14193
|
+
for (AA = mA + 1; AA < oA && T[AA] >= U; )
|
|
14194
|
+
AA++;
|
|
14195
|
+
for (rA = mA, $ = AA - 1; rA < $; rA++, $--)
|
|
14196
|
+
tA = F[rA], F[rA] = F[$], F[$] = tA, K && (tA = K[rA], K[rA] = K[$], K[$] = tA);
|
|
14197
|
+
mA = AA;
|
|
14198
14198
|
}
|
|
14199
14199
|
mA++;
|
|
14200
14200
|
}
|
|
14201
14201
|
}
|
|
14202
14202
|
}, cA = function(U, F, K) {
|
|
14203
14203
|
var T = U.split(""), aA = { hiLevel: _ };
|
|
14204
|
-
return K || (K = []), k(T, K, aA), function(tA,
|
|
14205
|
-
if (
|
|
14204
|
+
return K || (K = []), k(T, K, aA), function(tA, $, AA) {
|
|
14205
|
+
if (AA.hiLevel !== 0 && d)
|
|
14206
14206
|
for (var rA, oA = 0; oA < tA.length; oA++)
|
|
14207
|
-
|
|
14207
|
+
$[oA] === 1 && (rA = D.indexOf(tA[oA])) >= 0 && (tA[oA] = D[rA + 1]);
|
|
14208
14208
|
}(T, K, aA), q(2, T, F, K, aA), q(1, T, F, K, aA), T.join("");
|
|
14209
14209
|
};
|
|
14210
14210
|
return this.__bidiEngine__.doBidiReorder = function(U, F, K) {
|
|
14211
14211
|
if (function(aA, tA) {
|
|
14212
14212
|
if (tA)
|
|
14213
|
-
for (var
|
|
14214
|
-
tA[
|
|
14213
|
+
for (var $ = 0; $ < aA.length; $++)
|
|
14214
|
+
tA[$] = $;
|
|
14215
14215
|
o === void 0 && (o = J(aA)), u === void 0 && (u = J(aA));
|
|
14216
14216
|
}(U, F), a || !c || u)
|
|
14217
14217
|
if (a && c && o ^ u)
|
|
@@ -14440,7 +14440,7 @@ var _2 = function(t) {
|
|
|
14440
14440
|
A.pos = B;
|
|
14441
14441
|
}
|
|
14442
14442
|
return t.encode = function(A, e) {
|
|
14443
|
-
var r, n, i, a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J,
|
|
14443
|
+
var r, n, i, a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA, rA, oA, mA, b, N, P, S, Y, V, nA, hA, R, yA, HA;
|
|
14444
14444
|
switch (T = new kn(), a = Object.keys(A).sort(function(SA, _A) {
|
|
14445
14445
|
return SA - _A;
|
|
14446
14446
|
}), e) {
|
|
@@ -14456,16 +14456,16 @@ var _2 = function(t) {
|
|
|
14456
14456
|
case "unicode":
|
|
14457
14457
|
for (F = [], B = [], _ = 0, x = {}, r = {}, C = u = null, tA = 0, oA = a.length; tA < oA; tA++)
|
|
14458
14458
|
x[J = A[n = a[tA]]] == null && (x[J] = ++_), r[n] = { old: J, new: x[J] }, o = x[J] - n, C != null && o === u || (C && B.push(C), F.push(n), u = o), C = n;
|
|
14459
|
-
for (C && B.push(C), B.push(65535), F.push(65535), cA = 2 * (q = F.length), k = 2 * Math.pow(Math.log(q) / Math.LN2, 2), p = Math.log(k / 2) / Math.LN2, X = 2 * q - k, c = [],
|
|
14459
|
+
for (C && B.push(C), B.push(65535), F.push(65535), cA = 2 * (q = F.length), k = 2 * Math.pow(Math.log(q) / Math.LN2, 2), p = Math.log(k / 2) / Math.LN2, X = 2 * q - k, c = [], Z = [], g = [], v = $ = 0, mA = F.length; $ < mA; v = ++$) {
|
|
14460
14460
|
if (U = F[v], d = B[v], U === 65535) {
|
|
14461
|
-
c.push(0),
|
|
14461
|
+
c.push(0), Z.push(0);
|
|
14462
14462
|
break;
|
|
14463
14463
|
}
|
|
14464
14464
|
if (U - (K = r[U].new) >= 32768)
|
|
14465
|
-
for (c.push(0),
|
|
14465
|
+
for (c.push(0), Z.push(2 * (g.length + q - v)), n = AA = U; U <= d ? AA <= d : AA >= d; n = U <= d ? ++AA : --AA)
|
|
14466
14466
|
g.push(r[n].new);
|
|
14467
14467
|
else
|
|
14468
|
-
c.push(K - U),
|
|
14468
|
+
c.push(K - U), Z.push(0);
|
|
14469
14469
|
}
|
|
14470
14470
|
for (T.writeUInt16(3), T.writeUInt16(1), T.writeUInt32(12), T.writeUInt16(4), T.writeUInt16(16 + 8 * q + 2 * g.length), T.writeUInt16(0), T.writeUInt16(cA), T.writeUInt16(k), T.writeUInt16(p), T.writeUInt16(X), V = 0, b = B.length; V < b; V++)
|
|
14471
14471
|
n = B[V], T.writeUInt16(n);
|
|
@@ -14473,8 +14473,8 @@ var _2 = function(t) {
|
|
|
14473
14473
|
n = F[nA], T.writeUInt16(n);
|
|
14474
14474
|
for (R = 0, P = c.length; R < P; R++)
|
|
14475
14475
|
o = c[R], T.writeUInt16(o);
|
|
14476
|
-
for (yA = 0, S =
|
|
14477
|
-
W =
|
|
14476
|
+
for (yA = 0, S = Z.length; yA < S; yA++)
|
|
14477
|
+
W = Z[yA], T.writeUInt16(W);
|
|
14478
14478
|
for (HA = 0, Y = g.length; HA < Y; HA++)
|
|
14479
14479
|
m = g[HA], T.writeUInt16(m);
|
|
14480
14480
|
return { charMap: r, subtable: T.data, maxGlyphID: _ + 1 };
|
|
@@ -15106,13 +15106,13 @@ const tm = {
|
|
|
15106
15106
|
)
|
|
15107
15107
|
), g = new Image(64, 64);
|
|
15108
15108
|
g.src = p, g.onload = async () => {
|
|
15109
|
-
var _, W, J,
|
|
15109
|
+
var _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA;
|
|
15110
15110
|
this.loading.weatherEchart = !1;
|
|
15111
|
-
for (let
|
|
15112
|
-
const
|
|
15113
|
-
t.push(oe(
|
|
15114
|
-
const rA = ((_ = hr.pickDaily(this.meteoData,
|
|
15115
|
-
if (r.push(this.roundPrecision((J = (W = rA.weather) == null ? void 0 : W.temp) == null ? void 0 : J.min, 0)), n.push(this.roundPrecision((X = (
|
|
15111
|
+
for (let $ = 0; $ < 7; $++) {
|
|
15112
|
+
const AA = ee(this.pickedDate).clone().add($, "d").format();
|
|
15113
|
+
t.push(oe(AA).tz(this.positionGmt).format("yyyy-MM-DD")), A.push(this.computeMMMDDLT(AA)), e.push($ === 0 ? "Today" : this.computeWeekLT(AA));
|
|
15114
|
+
const rA = ((_ = hr.pickDaily(this.meteoData, AA)) == null ? void 0 : _[0]) || {};
|
|
15115
|
+
if (r.push(this.roundPrecision((J = (W = rA.weather) == null ? void 0 : W.temp) == null ? void 0 : J.min, 0)), n.push(this.roundPrecision((X = (Z = rA.weather) == null ? void 0 : Z.temp) == null ? void 0 : X.max, 0)), o.push(this.roundPrecision((q = (k = rA.weather) == null ? void 0 : k.wind) == null ? void 0 : q.kts, 1) ?? "- kts"), u.push(this.roundPrecision((U = (cA = rA.weather) == null ? void 0 : cA.precip) == null ? void 0 : U.sum, 1) ?? "- mm"), (F = rA.weather) != null && F.url) {
|
|
15116
15116
|
const S = await this.convertSvgUrlToBase64((K = rA.weather) == null ? void 0 : K.url);
|
|
15117
15117
|
i.push({ symbol: "image://" + S });
|
|
15118
15118
|
} else
|
|
@@ -15120,10 +15120,10 @@ const tm = {
|
|
|
15120
15120
|
a.push((T = rA.weather) == null ? void 0 : T.name), c.push((tA = (aA = rA.weather) == null ? void 0 : aA.wind) == null ? void 0 : tA.bearing);
|
|
15121
15121
|
const oA = document.createElement("canvas"), mA = oA.getContext("2d");
|
|
15122
15122
|
oA.width = g.width, oA.height = g.height;
|
|
15123
|
-
const N = c[
|
|
15123
|
+
const N = c[$] * (Math.PI / 180);
|
|
15124
15124
|
mA.translate(oA.width / 2, oA.height / 2), mA.rotate(N), mA.translate(-g.width / 2, -g.height / 2), mA.drawImage(g, 0, 0, 64, 64);
|
|
15125
15125
|
const P = oA.toDataURL();
|
|
15126
|
-
d[`WindIcon${
|
|
15126
|
+
d[`WindIcon${$}`] = {
|
|
15127
15127
|
height: 12,
|
|
15128
15128
|
width: 12,
|
|
15129
15129
|
align: "left",
|
|
@@ -15132,7 +15132,7 @@ const tm = {
|
|
|
15132
15132
|
}
|
|
15133
15133
|
};
|
|
15134
15134
|
}
|
|
15135
|
-
const v = Math.max(...n.filter((
|
|
15135
|
+
const v = Math.max(...n.filter(($) => typeof $ == "number" && !isNaN($))) - Math.min(...r.filter(($) => typeof $ == "number" && !isNaN($))), m = Math.min(...r.filter(($) => typeof $ == "number" && !isNaN($))) - 1.5 * v, D = Math.max(...n.filter(($) => typeof $ == "number" && !isNaN($))) + 2 * v, C = 4 + 0.5 / t.length * 92 + "%", x = {
|
|
15136
15136
|
grid: {
|
|
15137
15137
|
bottom: 0,
|
|
15138
15138
|
top: 0,
|
|
@@ -15143,8 +15143,8 @@ const tm = {
|
|
|
15143
15143
|
trigger: "item",
|
|
15144
15144
|
show: !0,
|
|
15145
15145
|
position: "right",
|
|
15146
|
-
formatter: function(
|
|
15147
|
-
return
|
|
15146
|
+
formatter: function($) {
|
|
15147
|
+
return $.seriesName === "Weather Icon" ? a[$.dataIndex] : !1;
|
|
15148
15148
|
}
|
|
15149
15149
|
},
|
|
15150
15150
|
legend: {
|
|
@@ -15398,8 +15398,8 @@ const tm = {
|
|
|
15398
15398
|
vertical: "center"
|
|
15399
15399
|
}
|
|
15400
15400
|
},
|
|
15401
|
-
formatter: function(
|
|
15402
|
-
return `{WindIcon${
|
|
15401
|
+
formatter: function($) {
|
|
15402
|
+
return `{WindIcon${$.dataIndex}|}{title|${$.value}} kts`;
|
|
15403
15403
|
}
|
|
15404
15404
|
},
|
|
15405
15405
|
symbolSize: 0
|
|
@@ -15427,8 +15427,8 @@ const tm = {
|
|
|
15427
15427
|
vertical: "center"
|
|
15428
15428
|
}
|
|
15429
15429
|
},
|
|
15430
|
-
formatter: function(
|
|
15431
|
-
return `{dIcon|}{title|${
|
|
15430
|
+
formatter: function($) {
|
|
15431
|
+
return `{dIcon|}{title|${$.value}} mm`;
|
|
15432
15432
|
}
|
|
15433
15433
|
},
|
|
15434
15434
|
symbolSize: 0
|
|
@@ -15436,9 +15436,9 @@ const tm = {
|
|
|
15436
15436
|
]
|
|
15437
15437
|
};
|
|
15438
15438
|
this.$nextTick(() => {
|
|
15439
|
-
const
|
|
15440
|
-
|
|
15441
|
-
const rA =
|
|
15439
|
+
const $ = xe.init(document.getElementById("weather-chart"));
|
|
15440
|
+
$.setOption(x), $.on("click", (AA) => {
|
|
15441
|
+
const rA = AA.dataIndex, oA = t[rA].split("-");
|
|
15442
15442
|
this.pickedDate = oe().tz(this.positionGmt).set({ year: oA[0], month: Number(oA[1] - 1), date: Number(oA[2]), hour: 0, minute: 0, second: 0, millisecond: 0 }).format(), this.pickedWeek = rA === 0 ? "Today" : this.computeWeekLT(this.pickedDate), this.activeIndex = rA === 0 ? oe(this.etime).tz(this.positionGmt).hour() : void 0, this.initHoursTableData(), x.series[3].markArea = {
|
|
15443
15443
|
itemStyle: {
|
|
15444
15444
|
color: "rgba(64,159,255,0.25)"
|
|
@@ -15453,7 +15453,7 @@ const tm = {
|
|
|
15453
15453
|
}
|
|
15454
15454
|
]
|
|
15455
15455
|
]
|
|
15456
|
-
},
|
|
15456
|
+
}, $.setOption(x);
|
|
15457
15457
|
});
|
|
15458
15458
|
});
|
|
15459
15459
|
};
|
|
@@ -15488,16 +15488,16 @@ const tm = {
|
|
|
15488
15488
|
)
|
|
15489
15489
|
), n = new Image(64, 64);
|
|
15490
15490
|
n.src = r, n.onload = async () => {
|
|
15491
|
-
var a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J,
|
|
15491
|
+
var a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA, rA, oA, mA, b, N, P, S, Y, V, nA, hA, R, yA, HA, SA, _A, pA, G, zA, RA, dA, TA, xA, LA, GA, NA, XA, $A;
|
|
15492
15492
|
this.loading.meteogramEchart = !1;
|
|
15493
15493
|
const i = oe(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
|
|
15494
15494
|
for (let j = 0; j < 7 * 24; j++) {
|
|
15495
15495
|
const IA = ee(i).clone().add(j, "h").format();
|
|
15496
15496
|
(a = this.meteogramData) == null || a.dates.push(IA);
|
|
15497
15497
|
const vA = ((o = hr.pickHourly(t, IA)) == null ? void 0 : o[0]) || {};
|
|
15498
|
-
if (j % 12 === 0 && j % 24 !== 0 ? (c = this.meteogramData) == null || c.xDates.push(oe(IA).tz(this.positionGmt).format("MMM-DD")) : (u = this.meteogramData) == null || u.xDates.push(""), j % 3 === 0 ? (d = this.meteogramData) == null || d.hours.push(this.computeHourLT(IA)) : (B = this.meteogramData) == null || B.hours.push(""), (g = this.meteogramData) == null || g.temperaturesX.push([IA, this.roundPrecision((p = vA == null ? void 0 : vA.weather) == null ? void 0 : p.temp, 0)]), (m = this.meteogramData) == null || m.temperaturesY.push(this.roundPrecision((v = vA == null ? void 0 : vA.weather) == null ? void 0 : v.temp, 0)), (x = this.meteogramData) == null || x.precip.push(this.roundPrecision((C = (D = vA == null ? void 0 : vA.weather) == null ? void 0 : D.precip) == null ? void 0 : C.sum, 1)), (W = this.meteogramData) == null || W.visibility.push(this.roundPrecision((_ = vA == null ? void 0 : vA.weather) == null ? void 0 : _.visibility, 1)), (X = this.meteogramData) == null || X.windspeed.push(this.roundPrecision((
|
|
15499
|
-
if ((
|
|
15500
|
-
const jA = await this.convertSvgUrlToBase64((
|
|
15498
|
+
if (j % 12 === 0 && j % 24 !== 0 ? (c = this.meteogramData) == null || c.xDates.push(oe(IA).tz(this.positionGmt).format("MMM-DD")) : (u = this.meteogramData) == null || u.xDates.push(""), j % 3 === 0 ? (d = this.meteogramData) == null || d.hours.push(this.computeHourLT(IA)) : (B = this.meteogramData) == null || B.hours.push(""), (g = this.meteogramData) == null || g.temperaturesX.push([IA, this.roundPrecision((p = vA == null ? void 0 : vA.weather) == null ? void 0 : p.temp, 0)]), (m = this.meteogramData) == null || m.temperaturesY.push(this.roundPrecision((v = vA == null ? void 0 : vA.weather) == null ? void 0 : v.temp, 0)), (x = this.meteogramData) == null || x.precip.push(this.roundPrecision((C = (D = vA == null ? void 0 : vA.weather) == null ? void 0 : D.precip) == null ? void 0 : C.sum, 1)), (W = this.meteogramData) == null || W.visibility.push(this.roundPrecision((_ = vA == null ? void 0 : vA.weather) == null ? void 0 : _.visibility, 1)), (X = this.meteogramData) == null || X.windspeed.push(this.roundPrecision((Z = (J = vA.weather) == null ? void 0 : J.wind) == null ? void 0 : Z.kts, 1)), (cA = this.meteogramData) == null || cA.windGusts.push(this.roundPrecision((q = (k = vA == null ? void 0 : vA.weather) == null ? void 0 : k.wind) == null ? void 0 : q.gusts, 1)), (K = this.meteogramData) == null || K.sigWaveHeight.push(this.roundPrecision((F = (U = vA == null ? void 0 : vA.wave) == null ? void 0 : U.sig) == null ? void 0 : F.height)), (tA = this.meteogramData) == null || tA.swellHeight.push(this.roundPrecision((aA = (T = vA == null ? void 0 : vA.wave) == null ? void 0 : T.swell) == null ? void 0 : aA.height)), j % 6 === 0) {
|
|
15499
|
+
if (($ = vA.weather) != null && $.url) {
|
|
15500
|
+
const jA = await this.convertSvgUrlToBase64((AA = vA.weather) == null ? void 0 : AA.url);
|
|
15501
15501
|
(rA = this.meteogramData) == null || rA.weatherIcons.push({ symbol: "image://" + jA, symbolSize: 30 });
|
|
15502
15502
|
} else
|
|
15503
15503
|
this.hoursTableData.weatherIcons.push({ symbol: "", symbolSize: 0 });
|
|
@@ -15558,14 +15558,14 @@ const tm = {
|
|
|
15558
15558
|
)
|
|
15559
15559
|
), o = new Image(64, 64);
|
|
15560
15560
|
o.src = a, o.onload = async () => {
|
|
15561
|
-
var u, d, B, p, g, v, m, D, C, x, _, W, J,
|
|
15561
|
+
var u, d, B, p, g, v, m, D, C, x, _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA, rA, oA, mA, b, N, P, S, Y, V, nA, hA, R, yA, HA, SA, _A, pA, G, zA, RA, dA, TA, xA, LA, GA, NA, XA, $A, j, IA, vA, jA;
|
|
15562
15562
|
this.loading.meteogramEchart = !1;
|
|
15563
15563
|
const c = oe(n).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
|
|
15564
15564
|
for (let UA = 0; UA < r * 24; UA++) {
|
|
15565
15565
|
const uA = ee(c).clone().add(UA, "h").format();
|
|
15566
15566
|
(u = this.meteogramData) == null || u.dates.push(uA);
|
|
15567
15567
|
const bA = ((d = hr.pickHourly(t, uA)) == null ? void 0 : d[0]) || {};
|
|
15568
|
-
if ((p = this.meteogramData) == null || p.temperaturesY.push(this.roundPrecision((B = bA == null ? void 0 : bA.weather) == null ? void 0 : B.temp, 0)), (v = this.meteogramData) == null || v.visibility.push(this.roundPrecision((g = bA == null ? void 0 : bA.weather) == null ? void 0 : g.visibility, 1)), (C = this.meteogramData) == null || C.windspeed.push(this.roundPrecision((D = (m = bA.weather) == null ? void 0 : m.wind) == null ? void 0 : D.kts, 1)), (W = this.meteogramData) == null || W.windGusts.push(this.roundPrecision((_ = (x = bA == null ? void 0 : bA.weather) == null ? void 0 : x.wind) == null ? void 0 : _.gusts, 1)), (X = this.meteogramData) == null || X.sigWaveHeight.push(this.roundPrecision((
|
|
15568
|
+
if ((p = this.meteogramData) == null || p.temperaturesY.push(this.roundPrecision((B = bA == null ? void 0 : bA.weather) == null ? void 0 : B.temp, 0)), (v = this.meteogramData) == null || v.visibility.push(this.roundPrecision((g = bA == null ? void 0 : bA.weather) == null ? void 0 : g.visibility, 1)), (C = this.meteogramData) == null || C.windspeed.push(this.roundPrecision((D = (m = bA.weather) == null ? void 0 : m.wind) == null ? void 0 : D.kts, 1)), (W = this.meteogramData) == null || W.windGusts.push(this.roundPrecision((_ = (x = bA == null ? void 0 : bA.weather) == null ? void 0 : x.wind) == null ? void 0 : _.gusts, 1)), (X = this.meteogramData) == null || X.sigWaveHeight.push(this.roundPrecision((Z = (J = bA == null ? void 0 : bA.wave) == null ? void 0 : J.sig) == null ? void 0 : Z.height)), (cA = this.meteogramData) == null || cA.swellHeight.push(this.roundPrecision((q = (k = bA == null ? void 0 : bA.wave) == null ? void 0 : k.swell) == null ? void 0 : q.height)), UA % 3 === 0 ? ((K = this.meteogramData) == null || K.precip.push(this.roundPrecision((F = (U = bA == null ? void 0 : bA.weather) == null ? void 0 : U.precip) == null ? void 0 : F.sum3Hours, 1)), (aA = this.meteogramData) == null || aA.temperaturesX.push([uA, this.roundPrecision((T = bA == null ? void 0 : bA.weather) == null ? void 0 : T.temp, 0)])) : (tA = this.meteogramData) == null || tA.precip.push(null), UA % 12 === 0 && UA % 24 !== 0 ? ($ = this.meteogramData) == null || $.xDates.push(oe(uA).tz(this.positionGmt).format("MMM-DD")) : (AA = this.meteogramData) == null || AA.xDates.push(""), UA % 6 === 0 ? (rA = this.meteogramData) == null || rA.hours.push(this.computeHourLT(uA)) : (oA = this.meteogramData) == null || oA.hours.push(""), UA % 12 === 0) {
|
|
15569
15569
|
if ((mA = bA.weather) != null && mA.url) {
|
|
15570
15570
|
const te = await this.convertSvgUrlToBase64((b = bA.weather) == null ? void 0 : b.url);
|
|
15571
15571
|
(N = this.meteogramData) == null || N.weatherIcons.push({ symbol: "image://" + te, symbolSize: 30 });
|
|
@@ -15598,7 +15598,7 @@ const tm = {
|
|
|
15598
15598
|
};
|
|
15599
15599
|
},
|
|
15600
15600
|
initMeteogramEchart(t) {
|
|
15601
|
-
var v, m, D, C, x, _, W, J,
|
|
15601
|
+
var v, m, D, C, x, _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA, rA, oA, mA, b, N, P, S, Y, V, nA, hA, R, yA, HA, SA, _A, pA, G, zA, RA, dA, TA, xA, LA, GA, NA, XA, $A, j, IA, vA, jA, UA;
|
|
15602
15602
|
const A = xe.init(document.getElementById("weather-icons")), e = {
|
|
15603
15603
|
grid: {
|
|
15604
15604
|
show: !0,
|
|
@@ -15847,7 +15847,7 @@ const tm = {
|
|
|
15847
15847
|
},
|
|
15848
15848
|
singleAxis: [
|
|
15849
15849
|
{
|
|
15850
|
-
left: (X = (
|
|
15850
|
+
left: (X = (Z = this.meteogramData) == null ? void 0 : Z.singleAxisOffset) == null ? void 0 : X.l,
|
|
15851
15851
|
right: (q = (k = this.meteogramData) == null ? void 0 : k.singleAxisOffset) == null ? void 0 : q.r,
|
|
15852
15852
|
type: "category",
|
|
15853
15853
|
show: !1,
|
|
@@ -15899,8 +15899,8 @@ const tm = {
|
|
|
15899
15899
|
height: "2%"
|
|
15900
15900
|
},
|
|
15901
15901
|
{
|
|
15902
|
-
left: (
|
|
15903
|
-
right: (rA = (
|
|
15902
|
+
left: ($ = (tA = this.meteogramData) == null ? void 0 : tA.singleAxisOffset) == null ? void 0 : $.l,
|
|
15903
|
+
right: (rA = (AA = this.meteogramData) == null ? void 0 : AA.singleAxisOffset) == null ? void 0 : rA.r,
|
|
15904
15904
|
type: "category",
|
|
15905
15905
|
show: !1,
|
|
15906
15906
|
axisLine: {
|
|
@@ -16440,7 +16440,7 @@ const tm = {
|
|
|
16440
16440
|
});
|
|
16441
16441
|
},
|
|
16442
16442
|
async fetchSeasonalData() {
|
|
16443
|
-
var n, i, a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J,
|
|
16443
|
+
var n, i, a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA;
|
|
16444
16444
|
if (!this.token)
|
|
16445
16445
|
return !1;
|
|
16446
16446
|
this.loading.seasonalEchart = !0, this.seasonalData = {
|
|
@@ -16481,7 +16481,7 @@ const tm = {
|
|
|
16481
16481
|
const mA = ee(e.endDate).diff(ee(e.startDate), "day", !0);
|
|
16482
16482
|
for (let Y = 0; Y < mA; Y++) {
|
|
16483
16483
|
const V = ee(oA).clone().add(Y, "d").format(), nA = ((p = hr.pickDaily(rA, V)) == null ? void 0 : p[0]) || {};
|
|
16484
|
-
(g = this.seasonalData) == null || g.dates.push(oe(V).tz(this.positionGmt).format("MMM-DD")), (v = this.seasonalData) == null || v.xDates.push(oe(V).tz(this.positionGmt).format("DD")), (C = this.seasonalData) == null || C.highTemp.push(this.roundPrecision((D = (m = nA == null ? void 0 : nA.weather) == null ? void 0 : m.temp) == null ? void 0 : D.max, 0)), (W = this.seasonalData) == null || W.lowTemp.push(this.roundPrecision((_ = (x = nA == null ? void 0 : nA.weather) == null ? void 0 : x.temp) == null ? void 0 : _.min, 0)), (X = this.seasonalData) == null || X.windSpeed.push(this.roundPrecision((
|
|
16484
|
+
(g = this.seasonalData) == null || g.dates.push(oe(V).tz(this.positionGmt).format("MMM-DD")), (v = this.seasonalData) == null || v.xDates.push(oe(V).tz(this.positionGmt).format("DD")), (C = this.seasonalData) == null || C.highTemp.push(this.roundPrecision((D = (m = nA == null ? void 0 : nA.weather) == null ? void 0 : m.temp) == null ? void 0 : D.max, 0)), (W = this.seasonalData) == null || W.lowTemp.push(this.roundPrecision((_ = (x = nA == null ? void 0 : nA.weather) == null ? void 0 : x.temp) == null ? void 0 : _.min, 0)), (X = this.seasonalData) == null || X.windSpeed.push(this.roundPrecision((Z = (J = nA.weather) == null ? void 0 : J.wind) == null ? void 0 : Z.kts, 1)), (cA = this.seasonalData) == null || cA.windDirection.push((q = (k = nA.weather) == null ? void 0 : k.wind) == null ? void 0 : q.direction), (K = this.seasonalData) == null || K.precip.push(this.roundPrecision((F = (U = nA == null ? void 0 : nA.weather) == null ? void 0 : U.precip) == null ? void 0 : F.sum, 1));
|
|
16485
16485
|
}
|
|
16486
16486
|
(((aA = (T = r == null ? void 0 : r.data.data) == null ? void 0 : T.past) == null ? void 0 : aA.reverse()) || []).forEach((Y, V) => {
|
|
16487
16487
|
var nA, hA, R, yA, HA, SA, _A, pA, G, zA, RA, dA, TA;
|
|
@@ -16490,7 +16490,7 @@ const tm = {
|
|
|
16490
16490
|
const LA = ee(oA).clone().add(xA, "d").format(), GA = ((nA = hr.pickDaily(Y, LA)) == null ? void 0 : nA[0]) || {};
|
|
16491
16491
|
(yA = this.seasonalData) == null || yA.lastYearHighTemp.push(this.roundPrecision((R = (hA = GA == null ? void 0 : GA.weather) == null ? void 0 : hA.temp) == null ? void 0 : R.max, 0)), (_A = this.seasonalData) == null || _A.lastYearLowTemp.push(this.roundPrecision((SA = (HA = GA == null ? void 0 : GA.weather) == null ? void 0 : HA.temp) == null ? void 0 : SA.min, 0)), (zA = this.seasonalData) == null || zA.lastYearWindSpeed.push(this.roundPrecision((G = (pA = GA.weather) == null ? void 0 : pA.wind) == null ? void 0 : G.kts, 1)), (TA = this.seasonalData) == null || TA.lastYearPrecip.push(this.roundPrecision((dA = (RA = GA == null ? void 0 : GA.weather) == null ? void 0 : RA.precip) == null ? void 0 : dA.sum, 1));
|
|
16492
16492
|
}
|
|
16493
|
-
}), this.seasonalData.offset = 8 + 0.5 / ((
|
|
16493
|
+
}), this.seasonalData.offset = 8 + 0.5 / (($ = (tA = this.seasonalData) == null ? void 0 : tA.dates) == null ? void 0 : $.length) * 92 + "%", this.seasonalData.minHighTemp = Math.min(...this.seasonalData.highTemp.filter((Y) => typeof Y == "number" && !isNaN(Y))), this.seasonalData.maxHighTemp = Math.max(...this.seasonalData.highTemp.filter((Y) => typeof Y == "number" && !isNaN(Y))), this.seasonalData.minLowTemp = Math.min(...this.seasonalData.lowTemp.filter((Y) => typeof Y == "number" && !isNaN(Y))), this.seasonalData.maxLowTemp = Math.max(...this.seasonalData.lowTemp.filter((Y) => typeof Y == "number" && !isNaN(Y)));
|
|
16494
16494
|
let N = 0;
|
|
16495
16495
|
this.seasonalData.highTemp.forEach((Y, V) => {
|
|
16496
16496
|
Y === this.seasonalData.maxHighTemp && (N = V);
|
|
@@ -16498,7 +16498,7 @@ const tm = {
|
|
|
16498
16498
|
let P = 0;
|
|
16499
16499
|
this.seasonalData.lowTemp.forEach((Y, V) => {
|
|
16500
16500
|
Y === this.seasonalData.minLowTemp && (P = V);
|
|
16501
|
-
}), this.seasonalData.coldestDay = this.seasonalData.dates[P], this.seasonalData.meanWind = this.seasonalData.windSpeed.reduce((Y, V) => Y + V, 0) / ((
|
|
16501
|
+
}), this.seasonalData.coldestDay = this.seasonalData.dates[P], this.seasonalData.meanWind = this.seasonalData.windSpeed.reduce((Y, V) => Y + V, 0) / ((AA = this.seasonalData.windSpeed) == null ? void 0 : AA.length), this.seasonalData.maxWindSpeed = Math.max(...this.seasonalData.windSpeed.filter((Y) => typeof Y == "number" && !isNaN(Y)));
|
|
16502
16502
|
let S = 0;
|
|
16503
16503
|
this.seasonalData.windSpeed.forEach((Y, V) => {
|
|
16504
16504
|
Y === this.seasonalData.maxWindSpeed && (S = V);
|
|
@@ -16515,7 +16515,7 @@ const tm = {
|
|
|
16515
16515
|
return r;
|
|
16516
16516
|
},
|
|
16517
16517
|
initSeasonalEchart() {
|
|
16518
|
-
var x, _, W, J,
|
|
16518
|
+
var x, _, W, J, Z, X, k, q, cA, U;
|
|
16519
16519
|
let t = Math.max(
|
|
16520
16520
|
...[...this.seasonalData.highTemp, ...this.seasonalData.lastYearHighTemp].filter((F) => typeof F == "number" && !isNaN(F))
|
|
16521
16521
|
), A = Math.min(...[...this.seasonalData.lowTemp, ...this.seasonalData.lastYearLowTemp].filter((F) => typeof F == "number" && !isNaN(F))), e = Math.ceil((t + 1) / 5) * 5, r = Math.floor((A - 1) / 5) * 5, n = Math.ceil((e - r) / 5);
|
|
@@ -16545,7 +16545,7 @@ const tm = {
|
|
|
16545
16545
|
show: !0,
|
|
16546
16546
|
position: "right",
|
|
16547
16547
|
formatter: (F) => {
|
|
16548
|
-
var T, aA, tA,
|
|
16548
|
+
var T, aA, tA, $, AA, rA;
|
|
16549
16549
|
const K = (T = F == null ? void 0 : F[0]) == null ? void 0 : T.dataIndex;
|
|
16550
16550
|
return F.find((oA) => oA.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${(aA = this.seasonalData) == null ? void 0 : aA.dates[K]}</strong></div>
|
|
16551
16551
|
<div style="font-size: 13px;">
|
|
@@ -16554,11 +16554,11 @@ const tm = {
|
|
|
16554
16554
|
</div>
|
|
16555
16555
|
<div style="font-size: 13px;">
|
|
16556
16556
|
<span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: #f7c587;}"></span>
|
|
16557
|
-
<span>High, last year : </span><strong>${(
|
|
16557
|
+
<span>High, last year : </span><strong>${($ = F[1]) == null ? void 0 : $.value}</strong><span style="padding-left: 3px;">mm</span>
|
|
16558
16558
|
</div>
|
|
16559
16559
|
<div style="font-size: 13px;">
|
|
16560
16560
|
<span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: #2164bf;}"></span>
|
|
16561
|
-
<span>Low : </span><strong>${(
|
|
16561
|
+
<span>Low : </span><strong>${(AA = F[2]) == null ? void 0 : AA.value}</strong><span style="padding-left: 3px;">mm</span>
|
|
16562
16562
|
</div>
|
|
16563
16563
|
<div style="font-size: 13px;">
|
|
16564
16564
|
<span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: #7baef7;}"></span>
|
|
@@ -16666,7 +16666,7 @@ const tm = {
|
|
|
16666
16666
|
name: "Low, last year",
|
|
16667
16667
|
type: "line",
|
|
16668
16668
|
symbol: "none",
|
|
16669
|
-
data: (
|
|
16669
|
+
data: (Z = this.seasonalData) == null ? void 0 : Z.lastYearLowTemp,
|
|
16670
16670
|
itemStyle: {
|
|
16671
16671
|
color: "#7baef7"
|
|
16672
16672
|
},
|
|
@@ -16692,8 +16692,8 @@ const tm = {
|
|
|
16692
16692
|
T.setAttribute("x", "0"), T.setAttribute("y", "0"), T.setAttribute("width", "10"), T.setAttribute("height", "5"), T.setAttribute("fill", F), K.appendChild(T);
|
|
16693
16693
|
const aA = document.createElementNS("http://www.w3.org/2000/svg", "line");
|
|
16694
16694
|
aA.setAttribute("x1", "0"), aA.setAttribute("y1", "0"), aA.setAttribute("x2", "10"), aA.setAttribute("y2", "5"), aA.setAttribute("stroke", "#fff"), aA.setAttribute("stroke-width", "1"), K.appendChild(aA);
|
|
16695
|
-
const tA = new XMLSerializer().serializeToString(K),
|
|
16696
|
-
return URL.createObjectURL(
|
|
16695
|
+
const tA = new XMLSerializer().serializeToString(K), $ = new Blob([tA], { type: "image/svg+xml;charset=utf-8" });
|
|
16696
|
+
return URL.createObjectURL($);
|
|
16697
16697
|
})(),
|
|
16698
16698
|
repeat: "repeat"
|
|
16699
16699
|
};
|
|
@@ -16727,13 +16727,13 @@ const tm = {
|
|
|
16727
16727
|
show: !0,
|
|
16728
16728
|
position: "right",
|
|
16729
16729
|
formatter: (F) => {
|
|
16730
|
-
var T, aA, tA,
|
|
16730
|
+
var T, aA, tA, $, AA, rA, oA, mA, b, N, P, S, Y, V, nA, hA;
|
|
16731
16731
|
const K = (T = F == null ? void 0 : F[0]) == null ? void 0 : T.dataIndex;
|
|
16732
16732
|
if (F.find((R) => R.seriesType === "scatter"))
|
|
16733
16733
|
return !1;
|
|
16734
16734
|
{
|
|
16735
16735
|
let R = { color: "", colorLastYear: "", url: "" };
|
|
16736
|
-
return ((aA = F[2]) == null ? void 0 : aA.value) < 9.9 ? R.color = "rgba(172, 210, 255, 1)" : ((tA = F[2]) == null ? void 0 : tA.value) < 24.9 ? R.color = "rgba(3, 248, 103, 1)" : ((
|
|
16736
|
+
return ((aA = F[2]) == null ? void 0 : aA.value) < 9.9 ? R.color = "rgba(172, 210, 255, 1)" : ((tA = F[2]) == null ? void 0 : tA.value) < 24.9 ? R.color = "rgba(3, 248, 103, 1)" : (($ = F[2]) == null ? void 0 : $.value) < 49.9 ? R.color = "rgba(190, 226, 2, 18)" : ((AA = F[2]) == null ? void 0 : AA.value) < 99.9 ? R.color = "rgba(248, 1, 1, 1)" : ((rA = F[2]) == null ? void 0 : rA.value) > 100 ? R.color = "rgba(197, 5, 58, 1)" : R.color = "rgba(172, 210, 255, 1)", ((oA = F[3]) == null ? void 0 : oA.value) < 9.9 ? R.colorLastYear = "rgba(172, 210, 255, 1)" : ((mA = F[3]) == null ? void 0 : mA.value) < 24.9 ? R.colorLastYear = "rgba(3, 248, 103, 1)" : ((b = F[3]) == null ? void 0 : b.value) < 49.9 ? R.colorLastYear = "rgba(190, 226, 2, 18)" : ((N = F[3]) == null ? void 0 : N.value) < 99.9 ? R.colorLastYear = "rgba(248, 1, 1, 1)" : ((P = F[3]) == null ? void 0 : P.value) > 100 ? R.colorLastYear = "rgba(197, 5, 58, 1)" : R.colorLastYear = "rgba(172, 210, 255, 1)", R.url = (() => {
|
|
16737
16737
|
const yA = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
16738
16738
|
yA.setAttribute("width", "10"), yA.setAttribute("height", "10"), yA.setAttribute("viewBox", "0 0 10 10");
|
|
16739
16739
|
const HA = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
@@ -16997,7 +16997,7 @@ const tm = {
|
|
|
16997
16997
|
document.getElementById("weather-chart") && xe.dispose(document.getElementById("weather-chart")), document.getElementById("weather-icons") && xe.dispose(document.getElementById("weather-icons")), document.getElementById("weather-condition") && xe.dispose(document.getElementById("weather-condition")), document.getElementById("wave-swell") && xe.dispose(document.getElementById("wave-swell")), document.getElementById("temperature-echart") && xe.dispose(document.getElementById("temperature-echart")), document.getElementById("wind-precip-echart") && xe.dispose(document.getElementById("wind-precip-echart"));
|
|
16998
16998
|
},
|
|
16999
16999
|
async initHoursTableData() {
|
|
17000
|
-
var t, A, e, r, n, i, a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J,
|
|
17000
|
+
var t, A, e, r, n, i, a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA;
|
|
17001
17001
|
this.hoursTableData = {
|
|
17002
17002
|
hours: [],
|
|
17003
17003
|
utcHours: [],
|
|
@@ -17033,7 +17033,7 @@ const tm = {
|
|
|
17033
17033
|
this.hoursTableData.weatherUrls.push(b);
|
|
17034
17034
|
} else
|
|
17035
17035
|
this.hoursTableData.weatherUrls.push(null);
|
|
17036
|
-
this.hoursTableData.utcHours.push(ee(mA.utc).format("HH:mm")), this.hoursTableData.weatherNames.push(((r = mA.weather) == null ? void 0 : r.name) ?? "-"), this.hoursTableData.temp.push(this.roundPrecision((n = mA.weather) == null ? void 0 : n.temp, 0) ?? "-"), this.hoursTableData.precipProbability.push(this.roundPrecision((a = (i = mA.weather) == null ? void 0 : i.precip) == null ? void 0 : a.probability, 1) ?? "-"), this.hoursTableData.precip1h.push(this.roundPrecision((c = (o = mA.weather) == null ? void 0 : o.precip) == null ? void 0 : c.sum, 1) ?? "-"), this.hoursTableData.visibility.push(this.roundPrecision((u = mA.weather) == null ? void 0 : u.visibility, 0) ?? "-"), this.hoursTableData.humidity.push(this.roundPrecision((d = mA.weather) == null ? void 0 : d.rh, 0) ?? "-"), this.hoursTableData.windSpeed.push(this.roundPrecision((p = (B = mA.weather) == null ? void 0 : B.wind) == null ? void 0 : p.kts, 1)), this.hoursTableData.windDir.push((v = (g = mA.weather) == null ? void 0 : g.wind) == null ? void 0 : v.bearing), this.hoursTableData.windGust.push(this.roundPrecision((D = (m = mA.weather) == null ? void 0 : m.wind) == null ? void 0 : D.gusts, 1) ?? "-"), this.hoursTableData.sigwaveHeight.push(this.roundPrecision((x = (C = mA.wave) == null ? void 0 : C.sig) == null ? void 0 : x.height, 1) ?? "-"), this.hoursTableData.sigwaveDir.push((W = (_ = mA.wave) == null ? void 0 : _.sig) == null ? void 0 : W.bearing), this.hoursTableData.windwaveHeight.push(this.roundPrecision((
|
|
17036
|
+
this.hoursTableData.utcHours.push(ee(mA.utc).format("HH:mm")), this.hoursTableData.weatherNames.push(((r = mA.weather) == null ? void 0 : r.name) ?? "-"), this.hoursTableData.temp.push(this.roundPrecision((n = mA.weather) == null ? void 0 : n.temp, 0) ?? "-"), this.hoursTableData.precipProbability.push(this.roundPrecision((a = (i = mA.weather) == null ? void 0 : i.precip) == null ? void 0 : a.probability, 1) ?? "-"), this.hoursTableData.precip1h.push(this.roundPrecision((c = (o = mA.weather) == null ? void 0 : o.precip) == null ? void 0 : c.sum, 1) ?? "-"), this.hoursTableData.visibility.push(this.roundPrecision((u = mA.weather) == null ? void 0 : u.visibility, 0) ?? "-"), this.hoursTableData.humidity.push(this.roundPrecision((d = mA.weather) == null ? void 0 : d.rh, 0) ?? "-"), this.hoursTableData.windSpeed.push(this.roundPrecision((p = (B = mA.weather) == null ? void 0 : B.wind) == null ? void 0 : p.kts, 1)), this.hoursTableData.windDir.push((v = (g = mA.weather) == null ? void 0 : g.wind) == null ? void 0 : v.bearing), this.hoursTableData.windGust.push(this.roundPrecision((D = (m = mA.weather) == null ? void 0 : m.wind) == null ? void 0 : D.gusts, 1) ?? "-"), this.hoursTableData.sigwaveHeight.push(this.roundPrecision((x = (C = mA.wave) == null ? void 0 : C.sig) == null ? void 0 : x.height, 1) ?? "-"), this.hoursTableData.sigwaveDir.push((W = (_ = mA.wave) == null ? void 0 : _.sig) == null ? void 0 : W.bearing), this.hoursTableData.windwaveHeight.push(this.roundPrecision((Z = (J = mA.wave) == null ? void 0 : J.wd) == null ? void 0 : Z.height, 1) ?? "-"), this.hoursTableData.windwaveDir.push((k = (X = mA.wave) == null ? void 0 : X.wd) == null ? void 0 : k.bearing), this.hoursTableData.windwavePeriod.push(this.roundPrecision((cA = (q = mA.wave) == null ? void 0 : q.wd) == null ? void 0 : cA.period, 1) ?? "-"), this.hoursTableData.swellHeight.push(this.roundPrecision((F = (U = mA.wave) == null ? void 0 : U.swell) == null ? void 0 : F.height, 1) ?? "-"), this.hoursTableData.swellDir.push((T = (K = mA.wave) == null ? void 0 : K.swell) == null ? void 0 : T.bearing), this.hoursTableData.swellPeriod.push(this.roundPrecision((tA = (aA = mA.wave) == null ? void 0 : aA.swell) == null ? void 0 : tA.period, 1) ?? "-"), this.hoursTableData.currentSpeed.push(this.roundPrecision(($ = mA.current) == null ? void 0 : $.speed, 1) ?? "-"), this.hoursTableData.currentDir.push((AA = mA.current) == null ? void 0 : AA.bearing), this.hoursTableData.seaLevel.push(this.roundPrecision(mA.height, 1) ?? "-"), this.hoursTableData.seaTemp.push(this.roundPrecision(mA.sst, 0) ?? "-");
|
|
17037
17037
|
}
|
|
17038
17038
|
this.loading.hoursTable = !1;
|
|
17039
17039
|
},
|
|
@@ -17041,7 +17041,7 @@ const tm = {
|
|
|
17041
17041
|
this.position = {}, this.meteoData = {}, this.followItem = void 0, xe && document.getElementById("weather-chart") && xe.dispose(document.getElementById("weather-chart"));
|
|
17042
17042
|
},
|
|
17043
17043
|
async initDaysTableData() {
|
|
17044
|
-
var A, e, r, n, i, a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J,
|
|
17044
|
+
var A, e, r, n, i, a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA, rA, oA, mA, b;
|
|
17045
17045
|
this.daysTableData = [];
|
|
17046
17046
|
const t = oe(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
|
|
17047
17047
|
for (let N = 0; N < 14; N++) {
|
|
@@ -17060,13 +17060,13 @@ const tm = {
|
|
|
17060
17060
|
windSpeedMax: this.roundPrecision((D = (m = S == null ? void 0 : S.weather) == null ? void 0 : m.wind) == null ? void 0 : D.kts, 1) ?? "-",
|
|
17061
17061
|
windSpeedDir: (x = (C = S == null ? void 0 : S.weather) == null ? void 0 : C.wind) == null ? void 0 : x.bearing,
|
|
17062
17062
|
gustSpeedMax: this.roundPrecision((W = (_ = S == null ? void 0 : S.weather) == null ? void 0 : _.wind) == null ? void 0 : W.gusts, 1) ?? "-",
|
|
17063
|
-
windWaveHeight: this.roundPrecision((
|
|
17063
|
+
windWaveHeight: this.roundPrecision((Z = (J = S == null ? void 0 : S.wave) == null ? void 0 : J.wd) == null ? void 0 : Z.height, 1) ?? "-",
|
|
17064
17064
|
windWavePeriod: this.roundPrecision((k = (X = S == null ? void 0 : S.wave) == null ? void 0 : X.wd) == null ? void 0 : k.period, 1) ?? "-",
|
|
17065
17065
|
windWaveDir: (cA = (q = S == null ? void 0 : S.wave) == null ? void 0 : q.wd) == null ? void 0 : cA.bearing,
|
|
17066
17066
|
swellWaveHeight: this.roundPrecision((F = (U = S == null ? void 0 : S.wave) == null ? void 0 : U.swell) == null ? void 0 : F.height, 1) ?? "-",
|
|
17067
17067
|
swellWavePeriod: this.roundPrecision((T = (K = S == null ? void 0 : S.wave) == null ? void 0 : K.swell) == null ? void 0 : T.period, 1) ?? "-",
|
|
17068
17068
|
swellWaveDir: (tA = (aA = S == null ? void 0 : S.wave) == null ? void 0 : aA.swell) == null ? void 0 : tA.bearing,
|
|
17069
|
-
sigWaveHeight: this.roundPrecision((
|
|
17069
|
+
sigWaveHeight: this.roundPrecision((AA = ($ = S == null ? void 0 : S.wave) == null ? void 0 : $.sig) == null ? void 0 : AA.height, 1) ?? "-",
|
|
17070
17070
|
sigWavePeriod: this.roundPrecision((oA = (rA = S == null ? void 0 : S.wave) == null ? void 0 : rA.sig) == null ? void 0 : oA.period, 1) ?? "-",
|
|
17071
17071
|
sigWaveDir: (b = (mA = S == null ? void 0 : S.wave) == null ? void 0 : mA.sig) == null ? void 0 : b.bearing
|
|
17072
17072
|
});
|
|
@@ -17074,7 +17074,7 @@ const tm = {
|
|
|
17074
17074
|
this.loading.daysTable = !1;
|
|
17075
17075
|
},
|
|
17076
17076
|
initHourlyTableData(t, A, e, r) {
|
|
17077
|
-
var o, c, u, d, B, p, g, v, m, D, C, x, _, W, J,
|
|
17077
|
+
var o, c, u, d, B, p, g, v, m, D, C, x, _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA, rA, oA, mA, b, N, P, S, Y;
|
|
17078
17078
|
this.hourlyTableData = [];
|
|
17079
17079
|
const n = A || 14, i = e || this.etime, a = oe(i).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
|
|
17080
17080
|
for (let V = 0; V < n * 24; V++) {
|
|
@@ -17090,13 +17090,13 @@ const tm = {
|
|
|
17090
17090
|
windDir: (C = (D = R == null ? void 0 : R.weather) == null ? void 0 : D.wind) == null ? void 0 : C.direction,
|
|
17091
17091
|
windBearing: (_ = (x = R == null ? void 0 : R.weather) == null ? void 0 : x.wind) == null ? void 0 : _.bearing,
|
|
17092
17092
|
windBF: ((J = (W = R == null ? void 0 : R.weather) == null ? void 0 : W.wind) == null ? void 0 : J.scale) ?? "-",
|
|
17093
|
-
windGusts: this.roundPrecision((X = (
|
|
17093
|
+
windGusts: this.roundPrecision((X = (Z = R == null ? void 0 : R.weather) == null ? void 0 : Z.wind) == null ? void 0 : X.gusts, 1) ?? "-",
|
|
17094
17094
|
windWaveHeight: this.roundPrecision((q = (k = R == null ? void 0 : R.wave) == null ? void 0 : k.wd) == null ? void 0 : q.height, 1) ?? "-",
|
|
17095
17095
|
windWavePeriod: this.roundPrecision((U = (cA = R == null ? void 0 : R.wave) == null ? void 0 : cA.wd) == null ? void 0 : U.period, 1) ?? "-",
|
|
17096
17096
|
windWaveDir: (K = (F = R == null ? void 0 : R.wave) == null ? void 0 : F.wd) == null ? void 0 : K.direction,
|
|
17097
17097
|
windWaveBearing: (aA = (T = R == null ? void 0 : R.wave) == null ? void 0 : T.wd) == null ? void 0 : aA.bearing,
|
|
17098
|
-
sigWaveHeight: this.roundPrecision((
|
|
17099
|
-
sigWavePeriod: this.roundPrecision((rA = (
|
|
17098
|
+
sigWaveHeight: this.roundPrecision(($ = (tA = R == null ? void 0 : R.wave) == null ? void 0 : tA.sig) == null ? void 0 : $.height, 1) ?? "-",
|
|
17099
|
+
sigWavePeriod: this.roundPrecision((rA = (AA = R == null ? void 0 : R.wave) == null ? void 0 : AA.sig) == null ? void 0 : rA.period, 1) ?? "-",
|
|
17100
17100
|
sigWaveDir: (mA = (oA = R == null ? void 0 : R.wave) == null ? void 0 : oA.sig) == null ? void 0 : mA.direction,
|
|
17101
17101
|
sigWaveBearing: (N = (b = R == null ? void 0 : R.wave) == null ? void 0 : b.sig) == null ? void 0 : N.bearing,
|
|
17102
17102
|
currentDir: (P = R == null ? void 0 : R.current) == null ? void 0 : P.direction,
|
|
@@ -17233,17 +17233,17 @@ const tm = {
|
|
|
17233
17233
|
imageTimeout: 6e5,
|
|
17234
17234
|
logging: !0,
|
|
17235
17235
|
onclone: (v) => {
|
|
17236
|
-
const
|
|
17237
|
-
|
|
17238
|
-
const
|
|
17239
|
-
|
|
17240
|
-
const
|
|
17241
|
-
Array.from(
|
|
17242
|
-
|
|
17236
|
+
const C = document.getElementById("spotWeather").getBoundingClientRect().top, x = v.getElementById("pdfContent");
|
|
17237
|
+
x.style.margin = "0", x.style.padding = "20px", x.style.paddingTop = `${C * 3 + 20}px`;
|
|
17238
|
+
const _ = v.getElementById("brandSection");
|
|
17239
|
+
_.style.display = "block";
|
|
17240
|
+
const W = v.getElementsByClassName("no-pdf");
|
|
17241
|
+
Array.from(W).forEach((Z) => {
|
|
17242
|
+
Z.remove();
|
|
17243
17243
|
});
|
|
17244
|
-
const
|
|
17245
|
-
Array.from(
|
|
17246
|
-
|
|
17244
|
+
const J = x.getElementsByTagName("img");
|
|
17245
|
+
Array.from(J).forEach((Z) => {
|
|
17246
|
+
Z.crossOrigin = "anonymous", Z.src || (Z.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
|
|
17247
17247
|
});
|
|
17248
17248
|
}
|
|
17249
17249
|
}), o = 1200, u = o / a.width, d = a.height * u, B = new le({
|
|
@@ -17267,13 +17267,16 @@ const tm = {
|
|
|
17267
17267
|
let g = "";
|
|
17268
17268
|
this.menuIndex === 1 ? g = `WeatherForecast_History_${p}_${ee().format("YYYYMMDD")}` : this.menuIndex === 2 ? g = `WeatherForecast_7Day_${p}_${ee().format("YYYYMMDD")}` : this.menuIndex === 3 ? g = `WeatherForecast_14Day_${p}_${ee().format("YYYYMMDD")}` : this.menuIndex === 4 && (g = `WeatherForecast_Seasonal_${p}_${ee().format("YYYYMMDD")}`), B.save(`${g}.pdf`), this.menuIndex === 4 && (r.style.height = "unset"), this.loading.downloading = !1, i.forEach((v) => {
|
|
17269
17269
|
v.setOption({ renderer: "canvas" }), v.resize();
|
|
17270
|
-
});
|
|
17270
|
+
}), this.$message.success("Download succuss!");
|
|
17271
17271
|
} catch (r) {
|
|
17272
|
-
console.error("PDF generation failed:", r), this.menuIndex === 4 && (element.style.height = "unset"), this.loading.downloading = !1;
|
|
17272
|
+
console.error("PDF generation failed:", r), this.menuIndex === 4 && (element.style.height = "unset"), this.loading.downloading = !1, this.$message.error("Download failed ! ");
|
|
17273
17273
|
}
|
|
17274
17274
|
}
|
|
17275
17275
|
}
|
|
17276
|
-
}, rm = {
|
|
17276
|
+
}, rm = {
|
|
17277
|
+
class: "spot-weather",
|
|
17278
|
+
id: "spotWeather"
|
|
17279
|
+
}, nm = { class: "search-header-box no-pdf" }, im = { class: "search-header-box-inner flex-between" }, sm = { class: "search-box flex-start" }, am = { class: "menu-box flex-end" }, om = {
|
|
17277
17280
|
class: "content-box",
|
|
17278
17281
|
id: "pdfContent"
|
|
17279
17282
|
}, lm = {
|
|
@@ -17500,7 +17503,7 @@ const tm = {
|
|
|
17500
17503
|
class: "text"
|
|
17501
17504
|
}, _v = { class: "info-box-item flex-center" };
|
|
17502
17505
|
function jv(t, A, e, r, n, i) {
|
|
17503
|
-
var _, W, J,
|
|
17506
|
+
var _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA, rA, oA, mA, b, N, P, S, Y, V, nA, hA, R, yA, HA, SA, _A, pA, G, zA, RA, dA, TA, xA, LA, GA, NA, XA, $A;
|
|
17504
17507
|
const a = lr("ElOption"), o = lr("ElSelect"), c = lr("IdmBrand"), u = lr("ElTooltip"), d = lr("Download"), B = lr("ElIcon"), p = lr("Calendar"), g = lr("el-icon"), v = lr("ArrowRightBold"), m = lr("el-date-picker"), D = lr("ElInput"), C = lr("ElButton"), x = lr("ElDialog");
|
|
17505
17508
|
return QA(), EA("div", rm, [
|
|
17506
17509
|
M("div", nm, [
|
|
@@ -17619,7 +17622,7 @@ function jv(t, A, e, r, n, i) {
|
|
|
17619
17622
|
])
|
|
17620
17623
|
]),
|
|
17621
17624
|
n.menuIndex === 1 || n.menuIndex === 2 || n.menuIndex === 3 ? (QA(), EA("div", dm, [
|
|
17622
|
-
(
|
|
17625
|
+
(Z = n.position) != null && Z.name && e.token && !((X = n.loading) != null && X.meteogramEchart) ? (QA(), EA("div", Bm, [
|
|
17623
17626
|
M("div", wm, [
|
|
17624
17627
|
A[15] || (A[15] = M("div", { style: { "margin-right": "20px" } }, "Meteogram", -1)),
|
|
17625
17628
|
Yl(M("div", {
|
|
@@ -18100,7 +18103,7 @@ function jv(t, A, e, r, n, i) {
|
|
|
18100
18103
|
]))) : (QA(), EA("div", l5, "No Data"))
|
|
18101
18104
|
])) : Cr("", !0),
|
|
18102
18105
|
n.menuIndex === 3 ? (QA(), EA("div", c5, [
|
|
18103
|
-
(tA = n.position) != null && tA.name && e.token && !((
|
|
18106
|
+
(tA = n.position) != null && tA.name && e.token && !(($ = n.loading) != null && $.daysTable) ? (QA(), EA("div", h5, [
|
|
18104
18107
|
A[57] || (A[57] = M("div", { class: "date" }, "Daily Forecast", -1)),
|
|
18105
18108
|
M("table", u5, [
|
|
18106
18109
|
A[55] || (A[55] = M("tr", { class: "day tr-title" }, [
|
|
@@ -18276,7 +18279,7 @@ function jv(t, A, e, r, n, i) {
|
|
|
18276
18279
|
])
|
|
18277
18280
|
]))), 128))
|
|
18278
18281
|
])
|
|
18279
|
-
])) : (
|
|
18282
|
+
])) : (AA = n.loading) != null && AA.daysTable ? (QA(), EA("div", S5, A[58] || (A[58] = [
|
|
18280
18283
|
M("img", {
|
|
18281
18284
|
style: { height: "200px" },
|
|
18282
18285
|
src: Gi
|
|
@@ -18618,7 +18621,7 @@ function jv(t, A, e, r, n, i) {
|
|
|
18618
18621
|
}, 8, ["modelValue", "title"])
|
|
18619
18622
|
]);
|
|
18620
18623
|
}
|
|
18621
|
-
const zv = /* @__PURE__ */ nh(tm, [["render", jv], ["__scopeId", "data-v-
|
|
18624
|
+
const zv = /* @__PURE__ */ nh(tm, [["render", jv], ["__scopeId", "data-v-b43e02b7"]]), _C = {
|
|
18622
18625
|
install(t) {
|
|
18623
18626
|
t.component("SpotWeather", zv);
|
|
18624
18627
|
}
|
|
@@ -18799,14 +18802,14 @@ const Yv = {
|
|
|
18799
18802
|
)
|
|
18800
18803
|
), n = new Image(64, 64);
|
|
18801
18804
|
n.src = r, n.onload = () => {
|
|
18802
|
-
var a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J,
|
|
18805
|
+
var a, o, c, u, d, B, p, g, v, m, D, C, x, _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA, rA, oA, mA, b, N, P, S, Y, V, nA, hA, R, yA, HA, SA, _A, pA, G, zA, RA, dA, TA, xA, LA, GA, NA, XA, $A;
|
|
18803
18806
|
this.loading.meteogramEchart = !1;
|
|
18804
18807
|
const i = oe(this.etime).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
|
|
18805
18808
|
for (let j = 0; j < 7 * 24; j++) {
|
|
18806
18809
|
const IA = ee(i).clone().add(j, "h").format();
|
|
18807
18810
|
(a = this.meteogramData) == null || a.dates.push(IA);
|
|
18808
18811
|
const vA = ((o = hr.pickHourly(t, IA)) == null ? void 0 : o[0]) || {};
|
|
18809
|
-
if (j % 12 === 0 && j % 24 !== 0 ? (c = this.meteogramData) == null || c.xDates.push(oe(IA).tz(this.positionGmt).format("MMM-DD")) : (u = this.meteogramData) == null || u.xDates.push(""), j % 3 === 0 ? (d = this.meteogramData) == null || d.hours.push(this.computeHourLT(IA)) : (B = this.meteogramData) == null || B.hours.push(""), (g = this.meteogramData) == null || g.temperaturesX.push([IA, this.roundPrecision((p = vA == null ? void 0 : vA.weather) == null ? void 0 : p.temp, 0)]), (m = this.meteogramData) == null || m.temperaturesY.push(this.roundPrecision((v = vA == null ? void 0 : vA.weather) == null ? void 0 : v.temp, 0)), (x = this.meteogramData) == null || x.precip.push(this.roundPrecision((C = (D = vA == null ? void 0 : vA.weather) == null ? void 0 : D.precip) == null ? void 0 : C.sum, 1)), (W = this.meteogramData) == null || W.visibility.push(this.roundPrecision((_ = vA == null ? void 0 : vA.weather) == null ? void 0 : _.visibility, 1)), (X = this.meteogramData) == null || X.windspeed.push(this.roundPrecision((
|
|
18812
|
+
if (j % 12 === 0 && j % 24 !== 0 ? (c = this.meteogramData) == null || c.xDates.push(oe(IA).tz(this.positionGmt).format("MMM-DD")) : (u = this.meteogramData) == null || u.xDates.push(""), j % 3 === 0 ? (d = this.meteogramData) == null || d.hours.push(this.computeHourLT(IA)) : (B = this.meteogramData) == null || B.hours.push(""), (g = this.meteogramData) == null || g.temperaturesX.push([IA, this.roundPrecision((p = vA == null ? void 0 : vA.weather) == null ? void 0 : p.temp, 0)]), (m = this.meteogramData) == null || m.temperaturesY.push(this.roundPrecision((v = vA == null ? void 0 : vA.weather) == null ? void 0 : v.temp, 0)), (x = this.meteogramData) == null || x.precip.push(this.roundPrecision((C = (D = vA == null ? void 0 : vA.weather) == null ? void 0 : D.precip) == null ? void 0 : C.sum, 1)), (W = this.meteogramData) == null || W.visibility.push(this.roundPrecision((_ = vA == null ? void 0 : vA.weather) == null ? void 0 : _.visibility, 1)), (X = this.meteogramData) == null || X.windspeed.push(this.roundPrecision((Z = (J = vA.weather) == null ? void 0 : J.wind) == null ? void 0 : Z.kts, 1)), (cA = this.meteogramData) == null || cA.windGusts.push(this.roundPrecision((q = (k = vA == null ? void 0 : vA.weather) == null ? void 0 : k.wind) == null ? void 0 : q.gusts, 1)), (K = this.meteogramData) == null || K.sigWaveHeight.push(this.roundPrecision((F = (U = vA == null ? void 0 : vA.wave) == null ? void 0 : U.sig) == null ? void 0 : F.height)), (tA = this.meteogramData) == null || tA.swellHeight.push(this.roundPrecision((aA = (T = vA == null ? void 0 : vA.wave) == null ? void 0 : T.swell) == null ? void 0 : aA.height)), j % 6 === 0 ? ((AA = this.meteogramData) == null || AA.weatherIcons.push({ symbol: "image://" + (($ = vA.weather) == null ? void 0 : $.url), symbolSize: 30 }), (oA = this.meteogramData) == null || oA.weatherNames.push((rA = vA.weather) == null ? void 0 : rA.name)) : ((b = this.meteogramData) == null || b.weatherIcons.push({ symbol: "image://" + ((mA = vA.weather) == null ? void 0 : mA.url), symbolSize: 0 }), (N = this.meteogramData) == null || N.weatherNames.push("")), j % 3 === 0 ? (Y = this.meteogramData) == null || Y.windDir.push((S = (P = vA.weather) == null ? void 0 : P.wind) == null ? void 0 : S.bearing) : (V = this.meteogramData) == null || V.windDir.push(void 0), j % 3 === 0) {
|
|
18810
18813
|
const jA = document.createElement("canvas"), UA = jA.getContext("2d");
|
|
18811
18814
|
jA.width = n.width, jA.height = n.height;
|
|
18812
18815
|
const bA = ((nA = this.meteogramData) == null ? void 0 : nA.windDir[j]) * (Math.PI / 180);
|
|
@@ -18860,14 +18863,14 @@ const Yv = {
|
|
|
18860
18863
|
)
|
|
18861
18864
|
), o = new Image(64, 64);
|
|
18862
18865
|
o.src = a, o.onload = () => {
|
|
18863
|
-
var u, d, B, p, g, v, m, D, C, x, _, W, J,
|
|
18866
|
+
var u, d, B, p, g, v, m, D, C, x, _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA, rA, oA, mA, b, N, P, S, Y, V, nA, hA, R, yA, HA, SA, _A, pA, G, zA, RA, dA, TA, xA, LA, GA, NA, XA, $A, j, IA, vA, jA;
|
|
18864
18867
|
this.loading.meteogramEchart = !1;
|
|
18865
18868
|
const c = oe(n).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
|
|
18866
18869
|
for (let UA = 0; UA < r * 24; UA++) {
|
|
18867
18870
|
const uA = ee(c).clone().add(UA, "h").format();
|
|
18868
18871
|
(u = this.meteogramData) == null || u.dates.push(uA);
|
|
18869
18872
|
const bA = ((d = hr.pickHourly(t, uA)) == null ? void 0 : d[0]) || {};
|
|
18870
|
-
if ((p = this.meteogramData) == null || p.temperaturesY.push(this.roundPrecision((B = bA == null ? void 0 : bA.weather) == null ? void 0 : B.temp, 0)), (v = this.meteogramData) == null || v.visibility.push(this.roundPrecision((g = bA == null ? void 0 : bA.weather) == null ? void 0 : g.visibility, 1)), (C = this.meteogramData) == null || C.windspeed.push(this.roundPrecision((D = (m = bA.weather) == null ? void 0 : m.wind) == null ? void 0 : D.kts, 1)), (W = this.meteogramData) == null || W.windGusts.push(this.roundPrecision((_ = (x = bA == null ? void 0 : bA.weather) == null ? void 0 : x.wind) == null ? void 0 : _.gusts, 1)), (X = this.meteogramData) == null || X.sigWaveHeight.push(this.roundPrecision((
|
|
18873
|
+
if ((p = this.meteogramData) == null || p.temperaturesY.push(this.roundPrecision((B = bA == null ? void 0 : bA.weather) == null ? void 0 : B.temp, 0)), (v = this.meteogramData) == null || v.visibility.push(this.roundPrecision((g = bA == null ? void 0 : bA.weather) == null ? void 0 : g.visibility, 1)), (C = this.meteogramData) == null || C.windspeed.push(this.roundPrecision((D = (m = bA.weather) == null ? void 0 : m.wind) == null ? void 0 : D.kts, 1)), (W = this.meteogramData) == null || W.windGusts.push(this.roundPrecision((_ = (x = bA == null ? void 0 : bA.weather) == null ? void 0 : x.wind) == null ? void 0 : _.gusts, 1)), (X = this.meteogramData) == null || X.sigWaveHeight.push(this.roundPrecision((Z = (J = bA == null ? void 0 : bA.wave) == null ? void 0 : J.sig) == null ? void 0 : Z.height)), (cA = this.meteogramData) == null || cA.swellHeight.push(this.roundPrecision((q = (k = bA == null ? void 0 : bA.wave) == null ? void 0 : k.swell) == null ? void 0 : q.height)), UA % 3 === 0 ? ((K = this.meteogramData) == null || K.precip.push(this.roundPrecision((F = (U = bA == null ? void 0 : bA.weather) == null ? void 0 : U.precip) == null ? void 0 : F.sum3Hours, 1)), (aA = this.meteogramData) == null || aA.temperaturesX.push([uA, this.roundPrecision((T = bA == null ? void 0 : bA.weather) == null ? void 0 : T.temp, 0)])) : (tA = this.meteogramData) == null || tA.precip.push(null), UA % 12 === 0 && UA % 24 !== 0 ? ($ = this.meteogramData) == null || $.xDates.push(oe(uA).tz(this.positionGmt).format("MMM-DD")) : (AA = this.meteogramData) == null || AA.xDates.push(""), UA % 6 === 0 ? (rA = this.meteogramData) == null || rA.hours.push(this.computeHourLT(uA)) : (oA = this.meteogramData) == null || oA.hours.push(""), UA % 12 === 0 ? ((b = this.meteogramData) == null || b.weatherIcons.push({ symbol: "image://" + ((mA = bA.weather) == null ? void 0 : mA.url), symbolSize: 30 }), (P = this.meteogramData) == null || P.weatherNames.push((N = bA.weather) == null ? void 0 : N.name)) : ((Y = this.meteogramData) == null || Y.weatherIcons.push({ symbol: "image://" + ((S = bA.weather) == null ? void 0 : S.url), symbolSize: 0 }), (V = this.meteogramData) == null || V.weatherNames.push("")), UA % 6 === 0 ? (R = this.meteogramData) == null || R.windDir.push((hA = (nA = bA.weather) == null ? void 0 : nA.wind) == null ? void 0 : hA.bearing) : (yA = this.meteogramData) == null || yA.windDir.push(void 0), UA % 6 === 0) {
|
|
18871
18874
|
const te = document.createElement("canvas"), se = te.getContext("2d");
|
|
18872
18875
|
te.width = o.width, te.height = o.height;
|
|
18873
18876
|
const Ee = ((HA = this.meteogramData) == null ? void 0 : HA.windDir[UA]) * (Math.PI / 180);
|
|
@@ -18891,7 +18894,7 @@ const Yv = {
|
|
|
18891
18894
|
};
|
|
18892
18895
|
},
|
|
18893
18896
|
initMeteogramEchart(t) {
|
|
18894
|
-
var v, m, D, C, x, _, W, J,
|
|
18897
|
+
var v, m, D, C, x, _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA, rA, oA, mA, b, N, P, S, Y, V, nA, hA, R, yA, HA, SA, _A, pA, G, zA, RA, dA, TA, xA, LA, GA, NA, XA, $A, j, IA, vA, jA, UA;
|
|
18895
18898
|
const A = xe.init(document.getElementById("weather-icons")), e = {
|
|
18896
18899
|
grid: {
|
|
18897
18900
|
show: !0,
|
|
@@ -19138,7 +19141,7 @@ const Yv = {
|
|
|
19138
19141
|
},
|
|
19139
19142
|
singleAxis: [
|
|
19140
19143
|
{
|
|
19141
|
-
left: (X = (
|
|
19144
|
+
left: (X = (Z = this.meteogramData) == null ? void 0 : Z.singleAxisOffset) == null ? void 0 : X.l,
|
|
19142
19145
|
right: (q = (k = this.meteogramData) == null ? void 0 : k.singleAxisOffset) == null ? void 0 : q.r,
|
|
19143
19146
|
type: "category",
|
|
19144
19147
|
show: !1,
|
|
@@ -19190,8 +19193,8 @@ const Yv = {
|
|
|
19190
19193
|
height: "2%"
|
|
19191
19194
|
},
|
|
19192
19195
|
{
|
|
19193
|
-
left: (
|
|
19194
|
-
right: (rA = (
|
|
19196
|
+
left: ($ = (tA = this.meteogramData) == null ? void 0 : tA.singleAxisOffset) == null ? void 0 : $.l,
|
|
19197
|
+
right: (rA = (AA = this.meteogramData) == null ? void 0 : AA.singleAxisOffset) == null ? void 0 : rA.r,
|
|
19195
19198
|
type: "category",
|
|
19196
19199
|
show: !1,
|
|
19197
19200
|
axisLine: {
|
|
@@ -19734,7 +19737,7 @@ const Yv = {
|
|
|
19734
19737
|
document.getElementById("weather-chart") && xe.dispose(document.getElementById("weather-chart")), document.getElementById("weather-icons") && xe.dispose(document.getElementById("weather-icons")), document.getElementById("weather-condition") && xe.dispose(document.getElementById("weather-condition")), document.getElementById("wave-swell") && xe.dispose(document.getElementById("wave-swell")), document.getElementById("temperature-echart") && xe.dispose(document.getElementById("temperature-echart")), document.getElementById("wind-precip-echart") && xe.dispose(document.getElementById("wind-precip-echart"));
|
|
19735
19738
|
},
|
|
19736
19739
|
initHourlyTableData(t, A, e, r) {
|
|
19737
|
-
var o, c, u, d, B, p, g, v, m, D, C, x, _, W, J,
|
|
19740
|
+
var o, c, u, d, B, p, g, v, m, D, C, x, _, W, J, Z, X, k, q, cA, U, F, K, T, aA, tA, $, AA, rA, oA, mA, b, N, P, S, Y;
|
|
19738
19741
|
this.hourlyTableData = [];
|
|
19739
19742
|
const n = A || 14, i = e || this.etime, a = oe(i).tz(this.positionGmt).set({ hour: 0, minute: 0, second: 0, millisecond: 0 }).format();
|
|
19740
19743
|
for (let V = 0; V < n * 24; V++) {
|
|
@@ -19750,13 +19753,13 @@ const Yv = {
|
|
|
19750
19753
|
windDir: (C = (D = R == null ? void 0 : R.weather) == null ? void 0 : D.wind) == null ? void 0 : C.direction,
|
|
19751
19754
|
windBearing: (_ = (x = R == null ? void 0 : R.weather) == null ? void 0 : x.wind) == null ? void 0 : _.bearing,
|
|
19752
19755
|
windBF: ((J = (W = R == null ? void 0 : R.weather) == null ? void 0 : W.wind) == null ? void 0 : J.scale) ?? "-",
|
|
19753
|
-
windGusts: this.roundPrecision((X = (
|
|
19756
|
+
windGusts: this.roundPrecision((X = (Z = R == null ? void 0 : R.weather) == null ? void 0 : Z.wind) == null ? void 0 : X.gusts, 1) ?? "-",
|
|
19754
19757
|
windWaveHeight: this.roundPrecision((q = (k = R == null ? void 0 : R.wave) == null ? void 0 : k.wd) == null ? void 0 : q.height, 1) ?? "-",
|
|
19755
19758
|
windWavePeriod: this.roundPrecision((U = (cA = R == null ? void 0 : R.wave) == null ? void 0 : cA.wd) == null ? void 0 : U.period, 1) ?? "-",
|
|
19756
19759
|
windWaveDir: (K = (F = R == null ? void 0 : R.wave) == null ? void 0 : F.wd) == null ? void 0 : K.direction,
|
|
19757
19760
|
windWaveBearing: (aA = (T = R == null ? void 0 : R.wave) == null ? void 0 : T.wd) == null ? void 0 : aA.bearing,
|
|
19758
|
-
sigWaveHeight: this.roundPrecision((
|
|
19759
|
-
sigWavePeriod: this.roundPrecision((rA = (
|
|
19761
|
+
sigWaveHeight: this.roundPrecision(($ = (tA = R == null ? void 0 : R.wave) == null ? void 0 : tA.sig) == null ? void 0 : $.height, 1) ?? "-",
|
|
19762
|
+
sigWavePeriod: this.roundPrecision((rA = (AA = R == null ? void 0 : R.wave) == null ? void 0 : AA.sig) == null ? void 0 : rA.period, 1) ?? "-",
|
|
19760
19763
|
sigWaveDir: (mA = (oA = R == null ? void 0 : R.wave) == null ? void 0 : oA.sig) == null ? void 0 : mA.direction,
|
|
19761
19764
|
sigWaveBearing: (N = (b = R == null ? void 0 : R.wave) == null ? void 0 : b.sig) == null ? void 0 : N.bearing,
|
|
19762
19765
|
currentDir: (P = R == null ? void 0 : R.current) == null ? void 0 : P.direction,
|