@borurio-print/print-designer 1.0.20 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/dist-lib/TemplatePrintDialog.vue.d.ts +2 -0
- package/dist-lib/canvasPdfGenerator-pJNUI5Gk.js +10132 -0
- package/dist-lib/core/canvasPageRenderer.d.ts +7 -0
- package/dist-lib/core/canvasPdfGenerator.d.ts +10 -0
- package/dist-lib/core/pdfPageRenderer.d.ts +5 -0
- package/dist-lib/core/tableLayout.d.ts +19 -0
- package/dist-lib/core/templatePrintTypes.d.ts +2 -0
- package/dist-lib/core/types.d.ts +12 -1
- package/dist-lib/index-Bu8jtsvL.js +12902 -0
- package/dist-lib/index.d.ts +1 -1
- package/dist-lib/{index.es-CRgSmIHo.js → index.es-ZRdg0tBY.js} +161 -161
- package/dist-lib/index.js +5 -5
- package/dist-lib/style.css +1 -1
- package/package.json +1 -1
- package/dist-lib/index-DHOdPFKv.js +0 -12839
- package/dist-lib/pdfGenerator-Bg3lutiJ.js +0 -9680
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as Ea } from "./
|
|
1
|
+
import { k as Ta, m as Hu } from "./index-Bu8jtsvL.js";
|
|
2
|
+
import { _ as Ea } from "./canvasPdfGenerator-pJNUI5Gk.js";
|
|
3
3
|
var Ja = {}, en = {}, ir, rn;
|
|
4
4
|
function Q() {
|
|
5
5
|
if (rn) return ir;
|
|
@@ -153,7 +153,7 @@ function fe() {
|
|
|
153
153
|
}, Jr;
|
|
154
154
|
}
|
|
155
155
|
var et, yn;
|
|
156
|
-
function
|
|
156
|
+
function ke() {
|
|
157
157
|
if (yn) return et;
|
|
158
158
|
yn = 1;
|
|
159
159
|
var n = Q(), e = re(), r = function(t) {
|
|
@@ -206,7 +206,7 @@ var st, Tn;
|
|
|
206
206
|
function Ku() {
|
|
207
207
|
if (Tn) return st;
|
|
208
208
|
Tn = 1;
|
|
209
|
-
var n =
|
|
209
|
+
var n = ke(), e = re(), r = xr(), t = Xu(), i = Object;
|
|
210
210
|
return st = t ? function(a) {
|
|
211
211
|
return typeof a == "symbol";
|
|
212
212
|
} : function(a) {
|
|
@@ -349,20 +349,20 @@ function Ul() {
|
|
|
349
349
|
return l === void 0 && (l = "number"), i(u, l);
|
|
350
350
|
}, bt;
|
|
351
351
|
}
|
|
352
|
-
var xt,
|
|
352
|
+
var xt, kn;
|
|
353
353
|
function Zu() {
|
|
354
|
-
if (
|
|
355
|
-
|
|
354
|
+
if (kn) return xt;
|
|
355
|
+
kn = 1;
|
|
356
356
|
var n = Ul(), e = Ku();
|
|
357
357
|
return xt = function(r) {
|
|
358
358
|
var t = n(r, "string");
|
|
359
359
|
return e(t) ? t : t + "";
|
|
360
360
|
}, xt;
|
|
361
361
|
}
|
|
362
|
-
var St,
|
|
362
|
+
var St, Ln;
|
|
363
363
|
function Tr() {
|
|
364
|
-
if (
|
|
365
|
-
|
|
364
|
+
if (Ln) return St;
|
|
365
|
+
Ln = 1;
|
|
366
366
|
var n = Q(), e = fe(), r = n.document, t = e(r) && e(r.createElement);
|
|
367
367
|
return St = function(i) {
|
|
368
368
|
return t ? r.createElement(i) : {};
|
|
@@ -557,7 +557,7 @@ function rl() {
|
|
|
557
557
|
}, "toString"), wt.exports;
|
|
558
558
|
}
|
|
559
559
|
var qt, Zn;
|
|
560
|
-
function
|
|
560
|
+
function Le() {
|
|
561
561
|
if (Zn) return qt;
|
|
562
562
|
Zn = 1;
|
|
563
563
|
var n = re(), e = Ne(), r = rl(), t = _a();
|
|
@@ -591,25 +591,25 @@ function $l() {
|
|
|
591
591
|
return (i > 0 ? e : n)(i);
|
|
592
592
|
}, Vt;
|
|
593
593
|
}
|
|
594
|
-
var
|
|
594
|
+
var kt, es;
|
|
595
595
|
function wr() {
|
|
596
|
-
if (es) return
|
|
596
|
+
if (es) return kt;
|
|
597
597
|
es = 1;
|
|
598
598
|
var n = $l();
|
|
599
|
-
return
|
|
599
|
+
return kt = function(e) {
|
|
600
600
|
var r = +e;
|
|
601
601
|
return r !== r || r === 0 ? 0 : n(r);
|
|
602
|
-
},
|
|
602
|
+
}, kt;
|
|
603
603
|
}
|
|
604
|
-
var
|
|
604
|
+
var Lt, rs;
|
|
605
605
|
function zl() {
|
|
606
|
-
if (rs) return
|
|
606
|
+
if (rs) return Lt;
|
|
607
607
|
rs = 1;
|
|
608
608
|
var n = wr(), e = Math.max, r = Math.min;
|
|
609
|
-
return
|
|
609
|
+
return Lt = function(t, i) {
|
|
610
610
|
var a = n(t);
|
|
611
611
|
return a < 0 ? e(a + i, 0) : r(a, i);
|
|
612
|
-
},
|
|
612
|
+
}, Lt;
|
|
613
613
|
}
|
|
614
614
|
var jt, ts;
|
|
615
615
|
function Je() {
|
|
@@ -622,7 +622,7 @@ function Je() {
|
|
|
622
622
|
}, jt;
|
|
623
623
|
}
|
|
624
624
|
var Bt, is;
|
|
625
|
-
function
|
|
625
|
+
function ka() {
|
|
626
626
|
if (is) return Bt;
|
|
627
627
|
is = 1;
|
|
628
628
|
var n = Je();
|
|
@@ -634,7 +634,7 @@ var Ft, as;
|
|
|
634
634
|
function tl() {
|
|
635
635
|
if (as) return Ft;
|
|
636
636
|
as = 1;
|
|
637
|
-
var n = sr(), e = zl(), r =
|
|
637
|
+
var n = sr(), e = zl(), r = ka(), t = function(i) {
|
|
638
638
|
return function(a, s, o) {
|
|
639
639
|
var u = n(a), l = r(u);
|
|
640
640
|
if (l === 0) return !i && -1;
|
|
@@ -669,7 +669,7 @@ function il() {
|
|
|
669
669
|
}, Ut;
|
|
670
670
|
}
|
|
671
671
|
var Gt, ss;
|
|
672
|
-
function
|
|
672
|
+
function La() {
|
|
673
673
|
return ss || (ss = 1, Gt = [
|
|
674
674
|
"constructor",
|
|
675
675
|
"hasOwnProperty",
|
|
@@ -684,7 +684,7 @@ var os;
|
|
|
684
684
|
function Hl() {
|
|
685
685
|
if (os) return Dt;
|
|
686
686
|
os = 1;
|
|
687
|
-
var n = il(), e =
|
|
687
|
+
var n = il(), e = La(), r = e.concat("length", "prototype");
|
|
688
688
|
return Dt.f = Object.getOwnPropertyNames || function(i) {
|
|
689
689
|
return n(i, r);
|
|
690
690
|
}, Dt;
|
|
@@ -697,7 +697,7 @@ var zt, ls;
|
|
|
697
697
|
function Yl() {
|
|
698
698
|
if (ls) return zt;
|
|
699
699
|
ls = 1;
|
|
700
|
-
var n =
|
|
700
|
+
var n = ke(), e = ee(), r = Hl(), t = Wl(), i = le(), a = e([].concat);
|
|
701
701
|
return zt = n("Reflect", "ownKeys") || function(o) {
|
|
702
702
|
var u = r.f(i(o)), l = t.f;
|
|
703
703
|
return l ? a(u, l(o)) : u;
|
|
@@ -731,7 +731,7 @@ var Yt, cs;
|
|
|
731
731
|
function he() {
|
|
732
732
|
if (cs) return Yt;
|
|
733
733
|
cs = 1;
|
|
734
|
-
var n = Q(), e = Er().f, r = ur(), t =
|
|
734
|
+
var n = Q(), e = Er().f, r = ur(), t = Le(), i = _a(), a = Xl(), s = al();
|
|
735
735
|
return Yt = function(o, u) {
|
|
736
736
|
var l = o.target, h = o.global, f = o.stat, c, v, g, d, m, y;
|
|
737
737
|
if (h ? v = n : f ? v = n[l] || i(l, {}) : v = n[l] && n[l].prototype, v) for (g in u) {
|
|
@@ -837,7 +837,7 @@ var ai, Os;
|
|
|
837
837
|
function rh() {
|
|
838
838
|
if (Os) return ai;
|
|
839
839
|
Os = 1;
|
|
840
|
-
var n =
|
|
840
|
+
var n = ke(), e = eh(), r = se(), t = pe(), i = r("species");
|
|
841
841
|
return ai = function(a) {
|
|
842
842
|
var s = n(a);
|
|
843
843
|
t && s && !s[i] && e(s, i, {
|
|
@@ -886,7 +886,7 @@ var ui, Cs;
|
|
|
886
886
|
function ah() {
|
|
887
887
|
if (Cs) return ui;
|
|
888
888
|
Cs = 1;
|
|
889
|
-
var n = ee(), e = J(), r = re(), t = ol(), i =
|
|
889
|
+
var n = ee(), e = J(), r = re(), t = ol(), i = ke(), a = qa(), s = function() {
|
|
890
890
|
}, o = i("Reflect", "construct"), u = /^\s*(?:class|function)\b/, l = n(u.exec), h = !u.test(s), f = function(g) {
|
|
891
891
|
if (!r(g)) return !1;
|
|
892
892
|
try {
|
|
@@ -968,7 +968,7 @@ var gi, Ns;
|
|
|
968
968
|
function hl() {
|
|
969
969
|
if (Ns) return gi;
|
|
970
970
|
Ns = 1;
|
|
971
|
-
var n =
|
|
971
|
+
var n = ke();
|
|
972
972
|
return gi = n("document", "documentElement"), gi;
|
|
973
973
|
}
|
|
974
974
|
var di, Ms;
|
|
@@ -1040,10 +1040,10 @@ function cl() {
|
|
|
1040
1040
|
clear: v
|
|
1041
1041
|
}, mi;
|
|
1042
1042
|
}
|
|
1043
|
-
var bi,
|
|
1043
|
+
var bi, ks;
|
|
1044
1044
|
function uh() {
|
|
1045
|
-
if (
|
|
1046
|
-
|
|
1045
|
+
if (ks) return bi;
|
|
1046
|
+
ks = 1;
|
|
1047
1047
|
var n = Q(), e = pe(), r = Object.getOwnPropertyDescriptor;
|
|
1048
1048
|
return bi = function(t) {
|
|
1049
1049
|
if (!e) return n[t];
|
|
@@ -1051,10 +1051,10 @@ function uh() {
|
|
|
1051
1051
|
return i && i.value;
|
|
1052
1052
|
}, bi;
|
|
1053
1053
|
}
|
|
1054
|
-
var xi,
|
|
1054
|
+
var xi, Ls;
|
|
1055
1055
|
function vl() {
|
|
1056
|
-
if (
|
|
1057
|
-
|
|
1056
|
+
if (Ls) return xi;
|
|
1057
|
+
Ls = 1;
|
|
1058
1058
|
var n = function() {
|
|
1059
1059
|
this.head = null, this.tail = null;
|
|
1060
1060
|
};
|
|
@@ -1186,13 +1186,13 @@ var Ws;
|
|
|
1186
1186
|
function vh() {
|
|
1187
1187
|
if (Ws) return en;
|
|
1188
1188
|
Ws = 1;
|
|
1189
|
-
var n = he(), e = xe(), r = Pr(), t = Q(), i = Kl(), a = oe(), s =
|
|
1189
|
+
var n = he(), e = xe(), r = Pr(), t = Q(), i = Kl(), a = oe(), s = Le(), o = sl(), u = Ar(), l = rh(), h = _e(), f = re(), c = fe(), v = th(), g = ul(), d = cl().set, m = fh(), y = ch(), p = Ba(), b = vl(), x = Cr(), R = lr(), T = hr(), S = fr(), E = "Promise", _ = T.CONSTRUCTOR, A = T.REJECTION_EVENT, M = T.SUBCLASSING, N = x.getterFor(E), w = x.set, C = R && R.prototype, U = R, B = C, V = t.TypeError, q = t.document, D = t.process, L = S.f, P = L, F = !!(q && q.createEvent && t.dispatchEvent), j = "unhandledrejection", z = "rejectionhandled", Z = 0, te = 1, ve = 2, rr = 1, tr = 2, Oe, Be, Fe, Ce, Ue = function(I) {
|
|
1190
1190
|
var $;
|
|
1191
1191
|
return c(I) && f($ = I.then) ? $ : !1;
|
|
1192
1192
|
}, Ge = function(I, $) {
|
|
1193
1193
|
var H = $.value, W = $.state === te, X = W ? I.ok : I.fail, Ye = I.resolve, gr = I.reject, Xe = I.domain, Ke, Qa, Za;
|
|
1194
1194
|
try {
|
|
1195
|
-
X ? (W || ($.rejection === tr &&
|
|
1195
|
+
X ? (W || ($.rejection === tr && Ll($), $.rejection = rr), X === !0 ? Ke = H : (Xe && Xe.enter(), Ke = X(H), Xe && (Xe.exit(), Za = !0)), Ke === I.promise ? gr(new V("Promise-chain cycle")) : (Qa = Ue(Ke)) ? a(Qa, Ke, Ye, gr) : Ye(Ke)) : gr(H);
|
|
1196
1196
|
} catch (jl) {
|
|
1197
1197
|
Xe && !Za && Xe.exit(), gr(jl);
|
|
1198
1198
|
}
|
|
@@ -1215,7 +1215,7 @@ function vh() {
|
|
|
1215
1215
|
});
|
|
1216
1216
|
}, Ka = function(I) {
|
|
1217
1217
|
return I.rejection !== rr && !I.parent;
|
|
1218
|
-
},
|
|
1218
|
+
}, Ll = function(I) {
|
|
1219
1219
|
a(d, t, function() {
|
|
1220
1220
|
var $ = I.facade;
|
|
1221
1221
|
r ? D.emit("rejectionHandled", $) : ze(z, $, I.value);
|
|
@@ -1226,7 +1226,7 @@ function vh() {
|
|
|
1226
1226
|
};
|
|
1227
1227
|
}, We = function(I, $, H) {
|
|
1228
1228
|
I.done || (I.done = !0, H && (I = H), I.value = $, I.state = ve, $e(I, !0));
|
|
1229
|
-
},
|
|
1229
|
+
}, Lr = function(I, $, H) {
|
|
1230
1230
|
if (!I.done) {
|
|
1231
1231
|
I.done = !0, H && (I = H);
|
|
1232
1232
|
try {
|
|
@@ -1238,7 +1238,7 @@ function vh() {
|
|
|
1238
1238
|
a(
|
|
1239
1239
|
W,
|
|
1240
1240
|
$,
|
|
1241
|
-
He(
|
|
1241
|
+
He(Lr, X, I),
|
|
1242
1242
|
He(We, X, I)
|
|
1243
1243
|
);
|
|
1244
1244
|
} catch (Ye) {
|
|
@@ -1254,7 +1254,7 @@ function vh() {
|
|
|
1254
1254
|
v(this, B), h($), a(Oe, this);
|
|
1255
1255
|
var H = N(this);
|
|
1256
1256
|
try {
|
|
1257
|
-
$(He(
|
|
1257
|
+
$(He(Lr, H), He(We, H));
|
|
1258
1258
|
} catch (W) {
|
|
1259
1259
|
We(H, W);
|
|
1260
1260
|
}
|
|
@@ -1270,14 +1270,14 @@ function vh() {
|
|
|
1270
1270
|
value: null
|
|
1271
1271
|
});
|
|
1272
1272
|
}, Oe.prototype = s(B, "then", function($, H) {
|
|
1273
|
-
var W = N(this), X =
|
|
1273
|
+
var W = N(this), X = L(g(this, U));
|
|
1274
1274
|
return W.parent = !0, X.ok = f($) ? $ : !0, X.fail = f(H) && H, X.domain = r ? D.domain : void 0, W.state === Z ? W.reactions.add(X) : m(function() {
|
|
1275
1275
|
Ge(X, W);
|
|
1276
1276
|
}), X.promise;
|
|
1277
1277
|
}), Be = function() {
|
|
1278
1278
|
var I = new Oe(), $ = N(I);
|
|
1279
|
-
this.promise = I, this.resolve = He(
|
|
1280
|
-
}, S.f =
|
|
1279
|
+
this.promise = I, this.resolve = He(Lr, $), this.reject = He(We, $);
|
|
1280
|
+
}, S.f = L = function(I) {
|
|
1281
1281
|
return I === U || I === Fe ? new Be(I) : P(I);
|
|
1282
1282
|
}, !e && f(R) && C !== Object.prototype)) {
|
|
1283
1283
|
Ce = C.then, M || s(C, "then", function($, H) {
|
|
@@ -1355,7 +1355,7 @@ var qi, eo;
|
|
|
1355
1355
|
function dl() {
|
|
1356
1356
|
if (eo) return qi;
|
|
1357
1357
|
eo = 1;
|
|
1358
|
-
var n = ja(), e = oe(), r = le(), t = Sr(), i = gh(), a =
|
|
1358
|
+
var n = ja(), e = oe(), r = le(), t = Sr(), i = gh(), a = ka(), s = xr(), o = dh(), u = gl(), l = ph(), h = TypeError, f = function(v, g) {
|
|
1359
1359
|
this.stopped = v, this.result = g;
|
|
1360
1360
|
}, c = f.prototype;
|
|
1361
1361
|
return qi = function(v, g, d) {
|
|
@@ -1467,7 +1467,7 @@ var ao = {}, no;
|
|
|
1467
1467
|
function bh() {
|
|
1468
1468
|
if (no) return ao;
|
|
1469
1469
|
no = 1;
|
|
1470
|
-
var n = he(), e = xe(), r = hr().CONSTRUCTOR, t = lr(), i =
|
|
1470
|
+
var n = he(), e = xe(), r = hr().CONSTRUCTOR, t = lr(), i = ke(), a = re(), s = Le(), o = t && t.prototype;
|
|
1471
1471
|
if (n({ target: "Promise", proto: !0, forced: r, real: !0 }, {
|
|
1472
1472
|
catch: function(l) {
|
|
1473
1473
|
return this.then(void 0, l);
|
|
@@ -1507,22 +1507,22 @@ function Sh() {
|
|
|
1507
1507
|
}
|
|
1508
1508
|
}), uo;
|
|
1509
1509
|
}
|
|
1510
|
-
var ho = {},
|
|
1510
|
+
var ho = {}, ki, fo;
|
|
1511
1511
|
function Oh() {
|
|
1512
|
-
if (fo) return
|
|
1512
|
+
if (fo) return ki;
|
|
1513
1513
|
fo = 1;
|
|
1514
1514
|
var n = le(), e = fe(), r = fr();
|
|
1515
|
-
return
|
|
1515
|
+
return ki = function(t, i) {
|
|
1516
1516
|
if (n(t), e(i) && i.constructor === t) return i;
|
|
1517
1517
|
var a = r.f(t), s = a.resolve;
|
|
1518
1518
|
return s(i), a.promise;
|
|
1519
|
-
},
|
|
1519
|
+
}, ki;
|
|
1520
1520
|
}
|
|
1521
1521
|
var co;
|
|
1522
1522
|
function Th() {
|
|
1523
1523
|
if (co) return ho;
|
|
1524
1524
|
co = 1;
|
|
1525
|
-
var n = he(), e =
|
|
1525
|
+
var n = he(), e = ke(), r = xe(), t = lr(), i = hr().CONSTRUCTOR, a = Oh(), s = e("Promise"), o = r && !i;
|
|
1526
1526
|
return n({ target: "Promise", stat: !0, forced: r || i }, {
|
|
1527
1527
|
resolve: function(l) {
|
|
1528
1528
|
return a(o && this === s ? t : this, l);
|
|
@@ -1557,15 +1557,15 @@ function Re(n) {
|
|
|
1557
1557
|
});
|
|
1558
1558
|
};
|
|
1559
1559
|
}
|
|
1560
|
-
var po = {}, yo = {},
|
|
1560
|
+
var po = {}, yo = {}, Li, mo;
|
|
1561
1561
|
function Se() {
|
|
1562
|
-
if (mo) return
|
|
1562
|
+
if (mo) return Li;
|
|
1563
1563
|
mo = 1;
|
|
1564
1564
|
var n = ol(), e = String;
|
|
1565
|
-
return
|
|
1565
|
+
return Li = function(r) {
|
|
1566
1566
|
if (n(r) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
|
|
1567
1567
|
return e(r);
|
|
1568
|
-
},
|
|
1568
|
+
}, Li;
|
|
1569
1569
|
}
|
|
1570
1570
|
var ji, bo;
|
|
1571
1571
|
function yl() {
|
|
@@ -1600,7 +1600,7 @@ var Fi = {}, Ui, So;
|
|
|
1600
1600
|
function Rh() {
|
|
1601
1601
|
if (So) return Ui;
|
|
1602
1602
|
So = 1;
|
|
1603
|
-
var n = il(), e =
|
|
1603
|
+
var n = il(), e = La();
|
|
1604
1604
|
return Ui = Object.keys || function(t) {
|
|
1605
1605
|
return n(t, e);
|
|
1606
1606
|
}, Ui;
|
|
@@ -1620,7 +1620,7 @@ var Gi, To;
|
|
|
1620
1620
|
function Nr() {
|
|
1621
1621
|
if (To) return Gi;
|
|
1622
1622
|
To = 1;
|
|
1623
|
-
var n = le(), e = Ch(), r =
|
|
1623
|
+
var n = le(), e = Ch(), r = La(), t = Va(), i = hl(), a = Tr(), s = Da(), o = ">", u = "<", l = "prototype", h = "script", f = s("IE_PROTO"), c = function() {
|
|
1624
1624
|
}, v = function(p) {
|
|
1625
1625
|
return u + h + o + p + u + "/" + h + o;
|
|
1626
1626
|
}, g = function(p) {
|
|
@@ -1682,15 +1682,15 @@ function Fa() {
|
|
|
1682
1682
|
var E = this, _ = o(E), A = r(S), M = _.raw, N, w, C;
|
|
1683
1683
|
if (M)
|
|
1684
1684
|
return M.lastIndex = E.lastIndex, N = n(c, M, A), E.lastIndex = M.lastIndex, N && _.groups && R(N, _.groups), N;
|
|
1685
|
-
var U = _.groups, B = p && E.sticky, V = n(t, E), q = E.source, D = 0,
|
|
1685
|
+
var U = _.groups, B = p && E.sticky, V = n(t, E), q = E.source, D = 0, L = A;
|
|
1686
1686
|
if (B) {
|
|
1687
|
-
V = d(V, "y", ""), g(V, "g") === -1 && (V += "g"),
|
|
1687
|
+
V = d(V, "y", ""), g(V, "g") === -1 && (V += "g"), L = m(A, E.lastIndex);
|
|
1688
1688
|
var P = E.lastIndex > 0 && v(A, E.lastIndex - 1);
|
|
1689
1689
|
E.lastIndex > 0 && (!E.multiline || E.multiline && P !== `
|
|
1690
|
-
` && P !== "\r" && P !== "\u2028" && P !== "\u2029") && (q = "(?: (?:" + q + "))",
|
|
1690
|
+
` && P !== "\r" && P !== "\u2028" && P !== "\u2029") && (q = "(?: (?:" + q + "))", L = " " + L, D++), w = new RegExp("^(?:" + q + ")", V);
|
|
1691
1691
|
}
|
|
1692
1692
|
b && (w = new RegExp("^" + q + "$(?!\\s)", V)), y && (C = E.lastIndex);
|
|
1693
|
-
var F = n(f, B ? w : E,
|
|
1693
|
+
var F = n(f, B ? w : E, L);
|
|
1694
1694
|
return B ? F ? (F.input = A, F[0] = m(F[0], D), F.index = E.lastIndex, E.lastIndex += F[0].length) : E.lastIndex = 0 : y && F && (E.lastIndex = E.global ? F.index + F[0].length : C), b && F && F.length > 1 && n(h, F[0], w, function() {
|
|
1695
1695
|
for (var j = 1; j < arguments.length - 2; j++)
|
|
1696
1696
|
arguments[j] === void 0 && (F[j] = void 0);
|
|
@@ -1710,7 +1710,7 @@ var Wi, Po;
|
|
|
1710
1710
|
function Ua() {
|
|
1711
1711
|
if (Po) return Wi;
|
|
1712
1712
|
Po = 1, Ah();
|
|
1713
|
-
var n = oe(), e =
|
|
1713
|
+
var n = oe(), e = Le(), r = Fa(), t = J(), i = se(), a = ur(), s = i("species"), o = RegExp.prototype;
|
|
1714
1714
|
return Wi = function(u, l, h, f) {
|
|
1715
1715
|
var c = i(u), v = !t(function() {
|
|
1716
1716
|
var y = {};
|
|
@@ -1890,10 +1890,10 @@ function Mh() {
|
|
|
1890
1890
|
});
|
|
1891
1891
|
}, Ji;
|
|
1892
1892
|
}
|
|
1893
|
-
var
|
|
1893
|
+
var ko;
|
|
1894
1894
|
function qh() {
|
|
1895
|
-
if (
|
|
1896
|
-
|
|
1895
|
+
if (ko) return Do;
|
|
1896
|
+
ko = 1;
|
|
1897
1897
|
var n = ll(), e = oe(), r = ee(), t = Ua(), i = J(), a = le(), s = re(), o = fe(), u = wr(), l = Je(), h = Se(), f = ye(), c = Ga(), v = Ze(), g = Mh(), d = Mr(), m = $a(), y = se(), p = y("replace"), b = Math.max, x = Math.min, R = r([].concat), T = r([].push), S = r("".indexOf), E = r("".slice), _ = function(w) {
|
|
1898
1898
|
return w === void 0 ? w : String(w);
|
|
1899
1899
|
}, A = (function() {
|
|
@@ -1913,43 +1913,43 @@ function qh() {
|
|
|
1913
1913
|
// `String.prototype.replace` method
|
|
1914
1914
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
1915
1915
|
function(q, D) {
|
|
1916
|
-
var
|
|
1917
|
-
return P ? e(P, q,
|
|
1916
|
+
var L = f(this), P = o(q) ? v(q, p) : void 0;
|
|
1917
|
+
return P ? e(P, q, L, D) : e(C, h(L), q, D);
|
|
1918
1918
|
},
|
|
1919
1919
|
// `RegExp.prototype[@@replace]` method
|
|
1920
1920
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
1921
1921
|
function(V, q) {
|
|
1922
|
-
var D = a(this),
|
|
1922
|
+
var D = a(this), L = h(V), P = s(q);
|
|
1923
1923
|
P || (q = h(q));
|
|
1924
1924
|
var F = h(d(D));
|
|
1925
1925
|
if (typeof q == "string" && !~S(q, B) && !~S(q, "$<") && !~S(F, "y")) {
|
|
1926
|
-
var j = U(C, D,
|
|
1926
|
+
var j = U(C, D, L, q);
|
|
1927
1927
|
if (j.done) return j.value;
|
|
1928
1928
|
}
|
|
1929
1929
|
var z = !!~S(F, "g"), Z;
|
|
1930
1930
|
z && (Z = !!~S(F, "u") || !!~S(F, "v"), D.lastIndex = 0);
|
|
1931
|
-
for (var te = [], ve; ve = m(D,
|
|
1931
|
+
for (var te = [], ve; ve = m(D, L), !(ve === null || (T(te, ve), !z)); ) {
|
|
1932
1932
|
var rr = h(ve[0]);
|
|
1933
|
-
rr === "" && (D.lastIndex = c(
|
|
1933
|
+
rr === "" && (D.lastIndex = c(L, l(D.lastIndex), Z));
|
|
1934
1934
|
}
|
|
1935
1935
|
for (var tr = "", Oe = 0, Be = 0; Be < te.length; Be++) {
|
|
1936
1936
|
ve = te[Be];
|
|
1937
|
-
for (var Fe = h(ve[0]), Ce = b(x(u(ve.index),
|
|
1937
|
+
for (var Fe = h(ve[0]), Ce = b(x(u(ve.index), L.length), 0), Ue = [], Ge, $e = 1; $e < ve.length; $e++) T(Ue, _(ve[$e]));
|
|
1938
1938
|
var ze = ve.groups;
|
|
1939
1939
|
if (P) {
|
|
1940
|
-
var vr = R([Fe], Ue, Ce,
|
|
1940
|
+
var vr = R([Fe], Ue, Ce, L);
|
|
1941
1941
|
ze !== void 0 && T(vr, ze), Ge = h(n(q, void 0, vr));
|
|
1942
1942
|
} else
|
|
1943
|
-
Ge = g(Fe,
|
|
1944
|
-
Ce >= Oe && (tr += E(
|
|
1943
|
+
Ge = g(Fe, L, Ce, Ue, ze, q);
|
|
1944
|
+
Ce >= Oe && (tr += E(L, Oe, Ce) + Ge, Oe = Ce + Fe.length);
|
|
1945
1945
|
}
|
|
1946
|
-
return tr + E(
|
|
1946
|
+
return tr + E(L, Oe);
|
|
1947
1947
|
}
|
|
1948
1948
|
];
|
|
1949
1949
|
}, !N || !A || M), Do;
|
|
1950
1950
|
}
|
|
1951
1951
|
qh();
|
|
1952
|
-
var
|
|
1952
|
+
var Lo = {}, ea, jo;
|
|
1953
1953
|
function Dh() {
|
|
1954
1954
|
if (jo) return ea;
|
|
1955
1955
|
jo = 1;
|
|
@@ -1990,7 +1990,7 @@ function Ha() {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
var Uo;
|
|
1992
1992
|
function Vh() {
|
|
1993
|
-
if (Uo) return
|
|
1993
|
+
if (Uo) return Lo;
|
|
1994
1994
|
Uo = 1;
|
|
1995
1995
|
var n = he(), e = Ir(), r = Er().f, t = Je(), i = Se(), a = za(), s = ye(), o = Ha(), u = xe(), l = e("".slice), h = Math.min, f = o("startsWith"), c = !u && !f && !!(function() {
|
|
1996
1996
|
var v = r(String.prototype, "startsWith");
|
|
@@ -2003,11 +2003,11 @@ function Vh() {
|
|
|
2003
2003
|
var m = i(g), y = t(h(arguments.length > 1 ? arguments[1] : void 0, d.length));
|
|
2004
2004
|
return l(d, y, y + m.length) === m;
|
|
2005
2005
|
}
|
|
2006
|
-
}),
|
|
2006
|
+
}), Lo;
|
|
2007
2007
|
}
|
|
2008
2008
|
Vh();
|
|
2009
2009
|
var ia, Go;
|
|
2010
|
-
function
|
|
2010
|
+
function kh() {
|
|
2011
2011
|
if (Go) return ia;
|
|
2012
2012
|
Go = 1;
|
|
2013
2013
|
var n = se(), e = Nr(), r = Ne().f, t = n("unscopables"), i = Array.prototype;
|
|
@@ -2019,7 +2019,7 @@ function Lh() {
|
|
|
2019
2019
|
}, ia;
|
|
2020
2020
|
}
|
|
2021
2021
|
var aa, $o;
|
|
2022
|
-
function
|
|
2022
|
+
function Lh() {
|
|
2023
2023
|
if ($o) return aa;
|
|
2024
2024
|
$o = 1;
|
|
2025
2025
|
var n = J();
|
|
@@ -2033,7 +2033,7 @@ var na, zo;
|
|
|
2033
2033
|
function bl() {
|
|
2034
2034
|
if (zo) return na;
|
|
2035
2035
|
zo = 1;
|
|
2036
|
-
var n = me(), e = re(), r = Or(), t = Da(), i =
|
|
2036
|
+
var n = me(), e = re(), r = Or(), t = Da(), i = Lh(), a = t("IE_PROTO"), s = Object, o = s.prototype;
|
|
2037
2037
|
return na = i ? s.getPrototypeOf : function(u) {
|
|
2038
2038
|
var l = r(u);
|
|
2039
2039
|
if (n(l, a)) return l[a];
|
|
@@ -2045,7 +2045,7 @@ var sa, Ho;
|
|
|
2045
2045
|
function xl() {
|
|
2046
2046
|
if (Ho) return sa;
|
|
2047
2047
|
Ho = 1;
|
|
2048
|
-
var n = J(), e = re(), r = fe(), t = Nr(), i = bl(), a =
|
|
2048
|
+
var n = J(), e = re(), r = fe(), t = Nr(), i = bl(), a = Le(), s = se(), o = xe(), u = s("iterator"), l = !1, h, f, c;
|
|
2049
2049
|
[].keys && (c = [].keys(), "next" in c ? (f = i(i(c)), f !== Object.prototype && (h = f)) : l = !0);
|
|
2050
2050
|
var v = !r(h) || n(function() {
|
|
2051
2051
|
var g = {};
|
|
@@ -2074,7 +2074,7 @@ var ua, Yo;
|
|
|
2074
2074
|
function Bh() {
|
|
2075
2075
|
if (Yo) return ua;
|
|
2076
2076
|
Yo = 1;
|
|
2077
|
-
var n = he(), e = oe(), r = xe(), t = Rr(), i = re(), a = jh(), s = bl(), o = sl(), u = Ar(), l = ur(), h =
|
|
2077
|
+
var n = he(), e = oe(), r = xe(), t = Rr(), i = re(), a = jh(), s = bl(), o = sl(), u = Ar(), l = ur(), h = Le(), f = se(), c = _r(), v = xl(), g = t.PROPER, d = t.CONFIGURABLE, m = v.IteratorPrototype, y = v.BUGGY_SAFARI_ITERATORS, p = f("iterator"), b = "keys", x = "values", R = "entries", T = function() {
|
|
2078
2078
|
return this;
|
|
2079
2079
|
};
|
|
2080
2080
|
return ua = function(S, E, _, A, M, N, w) {
|
|
@@ -2099,8 +2099,8 @@ function Bh() {
|
|
|
2099
2099
|
return function() {
|
|
2100
2100
|
return new _(this);
|
|
2101
2101
|
};
|
|
2102
|
-
}, U = E + " Iterator", B = !1, V = S.prototype, q = V[p] || V["@@iterator"] || M && V[M], D = !y && q || C(M),
|
|
2103
|
-
if (
|
|
2102
|
+
}, U = E + " Iterator", B = !1, V = S.prototype, q = V[p] || V["@@iterator"] || M && V[M], D = !y && q || C(M), L = E === "Array" && V.entries || q, P, F, j;
|
|
2103
|
+
if (L && (P = s(L.call(new S())), P !== Object.prototype && P.next && (!r && s(P) !== m && (o ? o(P, m) : i(P[p]) || h(P, p, T)), u(P, U, !0, !0), r && (c[U] = T))), g && M === x && q && q.name !== x && (!r && d ? l(V, "name", x) : (B = !0, D = function() {
|
|
2104
2104
|
return e(q, this);
|
|
2105
2105
|
})), M)
|
|
2106
2106
|
if (F = {
|
|
@@ -2123,7 +2123,7 @@ var ha, Ko;
|
|
|
2123
2123
|
function Sl() {
|
|
2124
2124
|
if (Ko) return ha;
|
|
2125
2125
|
Ko = 1;
|
|
2126
|
-
var n = sr(), e =
|
|
2126
|
+
var n = sr(), e = kh(), r = _r(), t = Cr(), i = Ne().f, a = Bh(), s = Fh(), o = xe(), u = pe(), l = "Array Iterator", h = t.set, f = t.getterFor(l);
|
|
2127
2127
|
ha = a(Array, "Array", function(v, g) {
|
|
2128
2128
|
h(this, {
|
|
2129
2129
|
type: l,
|
|
@@ -2249,7 +2249,7 @@ var ru = {}, va, tu;
|
|
|
2249
2249
|
function Wh() {
|
|
2250
2250
|
if (tu) return va;
|
|
2251
2251
|
tu = 1;
|
|
2252
|
-
var n = _e(), e = Or(), r = Wu(), t =
|
|
2252
|
+
var n = _e(), e = Or(), r = Wu(), t = ka(), i = TypeError, a = "Reduce of empty array with no initial value", s = function(o) {
|
|
2253
2253
|
return function(u, l, h, f) {
|
|
2254
2254
|
var c = e(u), v = r(c), g = t(c);
|
|
2255
2255
|
if (n(l), g === 0 && h < 2) throw new i(a);
|
|
@@ -2358,8 +2358,8 @@ function Kh() {
|
|
|
2358
2358
|
}
|
|
2359
2359
|
var B = s(w, RegExp), V = l(f(w)), q = !!~x(V, "u") || !!~x(V, "v");
|
|
2360
2360
|
d ? ~x(V, "g") || (V += "g") : ~x(V, "y") || (V += "y");
|
|
2361
|
-
var D = new B(d ? "^(?:" + w.source + ")" : w, V),
|
|
2362
|
-
if (
|
|
2361
|
+
var D = new B(d ? "^(?:" + w.source + ")" : w, V), L = N === void 0 ? m : N >>> 0;
|
|
2362
|
+
if (L === 0) return [];
|
|
2363
2363
|
if (C.length === 0) return c(D, C) === null ? [C] : [];
|
|
2364
2364
|
for (var P = 0, F = 0, j = []; F < C.length; ) {
|
|
2365
2365
|
D.lastIndex = d ? 0 : F;
|
|
@@ -2367,9 +2367,9 @@ function Kh() {
|
|
|
2367
2367
|
if (z === null || (Z = y(u(D.lastIndex + (d ? F : 0)), C.length)) === P)
|
|
2368
2368
|
F = o(C, F, q);
|
|
2369
2369
|
else {
|
|
2370
|
-
if (p(j, b(C, P, F)), j.length ===
|
|
2370
|
+
if (p(j, b(C, P, F)), j.length === L) return j;
|
|
2371
2371
|
for (var te = 1; te <= z.length - 1; te++)
|
|
2372
|
-
if (p(j, z[te]), j.length ===
|
|
2372
|
+
if (p(j, z[te]), j.length === L) return j;
|
|
2373
2373
|
F = P = Z;
|
|
2374
2374
|
}
|
|
2375
2375
|
}
|
|
@@ -2901,8 +2901,8 @@ function Pu(n, e, r, t, i) {
|
|
|
2901
2901
|
var S = o * h - u * l;
|
|
2902
2902
|
if (v.xRot !== void 0 && (o !== 1 || u !== 0 || l !== 0 || h !== 1)) if (S === 0) delete v.rX, delete v.rY, delete v.xRot, delete v.lArcFlag, delete v.sweepFlag, v.type = O.LINE_TO;
|
|
2903
2903
|
else {
|
|
2904
|
-
var E = v.xRot * Math.PI / 180, _ = Math.sin(E), A = Math.cos(E), M = 1 / T(v.rX), N = 1 / T(v.rY), w = T(A) * M + T(_) * N, C = 2 * _ * A * (M - N), U = T(_) * M + T(A) * N, B = w * h * h - C * u * h + U * u * u, V = C * (o * h + u * l) - 2 * (w * l * h + U * o * u), q = w * l * l - C * o * l + U * o * o, D = (Math.atan2(V, B - q) + Math.PI) % Math.PI / 2,
|
|
2905
|
-
v.rX = Math.abs(S) / Math.sqrt(B * T(P) + V *
|
|
2904
|
+
var E = v.xRot * Math.PI / 180, _ = Math.sin(E), A = Math.cos(E), M = 1 / T(v.rX), N = 1 / T(v.rY), w = T(A) * M + T(_) * N, C = 2 * _ * A * (M - N), U = T(_) * M + T(A) * N, B = w * h * h - C * u * h + U * u * u, V = C * (o * h + u * l) - 2 * (w * l * h + U * o * u), q = w * l * l - C * o * l + U * o * o, D = (Math.atan2(V, B - q) + Math.PI) % Math.PI / 2, L = Math.sin(D), P = Math.cos(D);
|
|
2905
|
+
v.rX = Math.abs(S) / Math.sqrt(B * T(P) + V * L * P + q * T(L)), v.rY = Math.abs(S) / Math.sqrt(B * T(L) - V * L * P + q * T(P)), v.xRot = 180 * D / Math.PI;
|
|
2906
2906
|
}
|
|
2907
2907
|
return v.sweepFlag !== void 0 && 0 > S && (v.sweepFlag = +!v.sweepFlag), v;
|
|
2908
2908
|
}));
|
|
@@ -2965,13 +2965,13 @@ function Pu(n, e, r, t, i) {
|
|
|
2965
2965
|
var v, g, d, m;
|
|
2966
2966
|
h.cX || Sa(h, f, c);
|
|
2967
2967
|
for (var y = Math.min(h.phi1, h.phi2), p = Math.max(h.phi1, h.phi2) - y, b = Math.ceil(p / 90), x = new Array(b), R = f, T = c, S = 0; S < b; S++) {
|
|
2968
|
-
var E = Ru(h.phi1, h.phi2, S / b), _ = Ru(h.phi1, h.phi2, (S + 1) / b), A = _ - E, M = 4 / 3 * Math.tan(A * Te / 4), N = [Math.cos(E * Te) - M * Math.sin(E * Te), Math.sin(E * Te) + M * Math.cos(E * Te)], w = N[0], C = N[1], U = [Math.cos(_ * Te), Math.sin(_ * Te)], B = U[0], V = U[1], q = [B + M * Math.sin(_ * Te), V - M * Math.cos(_ * Te)], D = q[0],
|
|
2968
|
+
var E = Ru(h.phi1, h.phi2, S / b), _ = Ru(h.phi1, h.phi2, (S + 1) / b), A = _ - E, M = 4 / 3 * Math.tan(A * Te / 4), N = [Math.cos(E * Te) - M * Math.sin(E * Te), Math.sin(E * Te) + M * Math.cos(E * Te)], w = N[0], C = N[1], U = [Math.cos(_ * Te), Math.sin(_ * Te)], B = U[0], V = U[1], q = [B + M * Math.sin(_ * Te), V - M * Math.cos(_ * Te)], D = q[0], L = q[1];
|
|
2969
2969
|
x[S] = { relative: h.relative, type: O.CURVE_TO };
|
|
2970
2970
|
var P = function(F, j) {
|
|
2971
2971
|
var z = Ca([F * h.rX, j * h.rY], h.xRot), Z = z[0], te = z[1];
|
|
2972
2972
|
return [h.cX + Z, h.cY + te];
|
|
2973
2973
|
};
|
|
2974
|
-
v = P(w, C), x[S].x1 = v[0], x[S].y1 = v[1], g = P(D,
|
|
2974
|
+
v = P(w, C), x[S].x1 = v[0], x[S].y1 = v[1], g = P(D, L), x[S].x2 = g[0], x[S].y2 = g[1], d = P(B, V), x[S].x = d[0], x[S].y = d[1], h.relative && (x[S].x1 -= R, x[S].y1 -= T, x[S].x2 -= R, x[S].y2 -= T, x[S].x -= R, x[S].y -= T), R = (m = [x[S].x, x[S].y])[0], T = m[1];
|
|
2975
2975
|
}
|
|
2976
2976
|
return x;
|
|
2977
2977
|
})(o, o.relative ? 0 : u, o.relative ? 0 : l) : o;
|
|
@@ -2987,11 +2987,11 @@ function Pu(n, e, r, t, i) {
|
|
|
2987
2987
|
return v;
|
|
2988
2988
|
}, u = e(), l = t(), h = r(), f = i((function(c, v, g) {
|
|
2989
2989
|
var d = h(l(u(o(c))));
|
|
2990
|
-
function m(
|
|
2991
|
-
|
|
2990
|
+
function m(L) {
|
|
2991
|
+
L > f.maxX && (f.maxX = L), L < f.minX && (f.minX = L);
|
|
2992
2992
|
}
|
|
2993
|
-
function y(
|
|
2994
|
-
|
|
2993
|
+
function y(L) {
|
|
2994
|
+
L > f.maxY && (f.maxY = L), L < f.minY && (f.minY = L);
|
|
2995
2995
|
}
|
|
2996
2996
|
if (d.type & O.DRAWING_COMMANDS && (m(v), y(g)), d.type & O.HORIZ_LINE_TO && m(d.x), d.type & O.VERT_LINE_TO && y(d.y), d.type & O.LINE_TO && (m(d.x), y(d.y)), d.type & O.CURVE_TO) {
|
|
2997
2997
|
m(d.x), y(d.y);
|
|
@@ -3002,8 +3002,8 @@ function Pu(n, e, r, t, i) {
|
|
|
3002
3002
|
}
|
|
3003
3003
|
if (d.type & O.ARC) {
|
|
3004
3004
|
m(d.x), y(d.y), Sa(d, v, g);
|
|
3005
|
-
for (var T = d.xRot / 180 * Math.PI, S = Math.cos(T) * d.rX, E = Math.sin(T) * d.rX, _ = -Math.sin(T) * d.rY, A = Math.cos(T) * d.rY, M = d.phi1 < d.phi2 ? [d.phi1, d.phi2] : -180 > d.phi2 ? [d.phi2 + 360, d.phi1 + 360] : [d.phi2, d.phi1], N = M[0], w = M[1], C = function(
|
|
3006
|
-
var P =
|
|
3005
|
+
for (var T = d.xRot / 180 * Math.PI, S = Math.cos(T) * d.rX, E = Math.sin(T) * d.rX, _ = -Math.sin(T) * d.rY, A = Math.cos(T) * d.rY, M = d.phi1 < d.phi2 ? [d.phi1, d.phi2] : -180 > d.phi2 ? [d.phi2 + 360, d.phi1 + 360] : [d.phi2, d.phi1], N = M[0], w = M[1], C = function(L) {
|
|
3006
|
+
var P = L[0], F = L[1], j = 180 * Math.atan2(F, P) / Math.PI;
|
|
3007
3007
|
return j < N ? j + 360 : j;
|
|
3008
3008
|
}, U = 0, B = Eu(_, -S, 0).map(C); U < B.length; U++)
|
|
3009
3009
|
(D = B[U]) > N && D < w && m(Cu(d.cX, S, _, D));
|
|
@@ -3148,7 +3148,7 @@ var ge, Cl = (function() {
|
|
|
3148
3148
|
function df() {
|
|
3149
3149
|
if (_u) return Iu;
|
|
3150
3150
|
_u = 1;
|
|
3151
|
-
var n = Rr().PROPER, e =
|
|
3151
|
+
var n = Rr().PROPER, e = Le(), r = le(), t = Se(), i = J(), a = Mr(), s = "toString", o = RegExp.prototype, u = o[s], l = i(function() {
|
|
3152
3152
|
return u.call({ source: "a", flags: "b" }) !== "/a/b";
|
|
3153
3153
|
}), h = n && u.name !== s;
|
|
3154
3154
|
return (l || h) && e(o, s, function() {
|
|
@@ -3178,29 +3178,29 @@ function bf(n, e, r, t, i, a) {
|
|
|
3178
3178
|
function xf(n, e, r, t, i, a) {
|
|
3179
3179
|
const s = n.data;
|
|
3180
3180
|
let o, u, l, h, f, c, v, g, d, m, y, p, b, x, R, T, S, E, _, A, M, N, w, C;
|
|
3181
|
-
const U = a + a + 1, B = t - 1, V = i - 1, q = a + 1, D = q * (q + 1) / 2,
|
|
3182
|
-
let P =
|
|
3181
|
+
const U = a + a + 1, B = t - 1, V = i - 1, q = a + 1, D = q * (q + 1) / 2, L = new Nu();
|
|
3182
|
+
let P = L, F;
|
|
3183
3183
|
for (l = 1; l < U; l++)
|
|
3184
3184
|
P = P.next = new Nu(), l === q && (F = P);
|
|
3185
|
-
P.next =
|
|
3185
|
+
P.next = L;
|
|
3186
3186
|
let j = null, z = null;
|
|
3187
3187
|
v = c = 0;
|
|
3188
3188
|
const Z = pf[a], te = yf[a];
|
|
3189
3189
|
for (u = 0; u < i; u++) {
|
|
3190
|
-
for (T = S = E = _ = g = d = m = y = 0, p = q * (A = s[c]), b = q * (M = s[c + 1]), x = q * (N = s[c + 2]), R = q * (w = s[c + 3]), g += D * A, d += D * M, m += D * N, y += D * w, P =
|
|
3190
|
+
for (T = S = E = _ = g = d = m = y = 0, p = q * (A = s[c]), b = q * (M = s[c + 1]), x = q * (N = s[c + 2]), R = q * (w = s[c + 3]), g += D * A, d += D * M, m += D * N, y += D * w, P = L, l = 0; l < q; l++)
|
|
3191
3191
|
P.r = A, P.g = M, P.b = N, P.a = w, P = P.next;
|
|
3192
3192
|
for (l = 1; l < q; l++)
|
|
3193
3193
|
h = c + ((B < l ? B : l) << 2), g += (P.r = A = s[h]) * (C = q - l), d += (P.g = M = s[h + 1]) * C, m += (P.b = N = s[h + 2]) * C, y += (P.a = w = s[h + 3]) * C, T += A, S += M, E += N, _ += w, P = P.next;
|
|
3194
|
-
for (j =
|
|
3194
|
+
for (j = L, z = F, o = 0; o < t; o++)
|
|
3195
3195
|
s[c + 3] = w = y * Z >> te, w !== 0 ? (w = 255 / w, s[c] = (g * Z >> te) * w, s[c + 1] = (d * Z >> te) * w, s[c + 2] = (m * Z >> te) * w) : s[c] = s[c + 1] = s[c + 2] = 0, g -= p, d -= b, m -= x, y -= R, p -= j.r, b -= j.g, x -= j.b, R -= j.a, h = v + ((h = o + a + 1) < B ? h : B) << 2, T += j.r = s[h], S += j.g = s[h + 1], E += j.b = s[h + 2], _ += j.a = s[h + 3], g += T, d += S, m += E, y += _, j = j.next, p += A = z.r, b += M = z.g, x += N = z.b, R += w = z.a, T -= A, S -= M, E -= N, _ -= w, z = z.next, c += 4;
|
|
3196
3196
|
v += t;
|
|
3197
3197
|
}
|
|
3198
3198
|
for (o = 0; o < t; o++) {
|
|
3199
|
-
for (S = E = _ = T = d = m = y = g = 0, c = o << 2, p = q * (A = s[c]), b = q * (M = s[c + 1]), x = q * (N = s[c + 2]), R = q * (w = s[c + 3]), g += D * A, d += D * M, m += D * N, y += D * w, P =
|
|
3199
|
+
for (S = E = _ = T = d = m = y = g = 0, c = o << 2, p = q * (A = s[c]), b = q * (M = s[c + 1]), x = q * (N = s[c + 2]), R = q * (w = s[c + 3]), g += D * A, d += D * M, m += D * N, y += D * w, P = L, l = 0; l < q; l++)
|
|
3200
3200
|
P.r = A, P.g = M, P.b = N, P.a = w, P = P.next;
|
|
3201
3201
|
for (f = t, l = 1; l <= a; l++)
|
|
3202
3202
|
c = f + o << 2, g += (P.r = A = s[c]) * (C = q - l), d += (P.g = M = s[c + 1]) * C, m += (P.b = N = s[c + 2]) * C, y += (P.a = w = s[c + 3]) * C, T += A, S += M, E += N, _ += w, P = P.next, l < V && (f += t);
|
|
3203
|
-
for (c = o, j =
|
|
3203
|
+
for (c = o, j = L, z = F, u = 0; u < i; u++)
|
|
3204
3204
|
h = c << 2, s[h + 3] = w = y * Z >> te, w > 0 ? (w = 255 / w, s[h] = (g * Z >> te) * w, s[h + 1] = (d * Z >> te) * w, s[h + 2] = (m * Z >> te) * w) : s[h] = s[h + 1] = s[h + 2] = 0, g -= p, d -= b, m -= x, y -= R, p -= j.r, b -= j.g, x -= j.b, R -= j.a, h = o + ((h = u + q) < V ? h : V) * t << 2, g += T += j.r = s[h], d += S += j.g = s[h + 1], m += E += j.b = s[h + 2], y += _ += j.a = s[h + 3], j = j.next, p += A = z.r, b += M = z.g, x += N = z.b, R += w = z.a, T -= A, S -= M, E -= N, _ -= w, z = z.next, c += t;
|
|
3205
3205
|
}
|
|
3206
3206
|
return n;
|
|
@@ -3303,10 +3303,10 @@ function Du(n) {
|
|
|
3303
3303
|
function Vu(n) {
|
|
3304
3304
|
return 3 * n * n * (1 - n);
|
|
3305
3305
|
}
|
|
3306
|
-
function
|
|
3306
|
+
function ku(n) {
|
|
3307
3307
|
return 3 * n * (1 - n) * (1 - n);
|
|
3308
3308
|
}
|
|
3309
|
-
function
|
|
3309
|
+
function Lu(n) {
|
|
3310
3310
|
return (1 - n) * (1 - n) * (1 - n);
|
|
3311
3311
|
}
|
|
3312
3312
|
function ju(n) {
|
|
@@ -3318,19 +3318,19 @@ function Bu(n) {
|
|
|
3318
3318
|
function Fu(n) {
|
|
3319
3319
|
return (1 - n) * (1 - n);
|
|
3320
3320
|
}
|
|
3321
|
-
class
|
|
3321
|
+
class k {
|
|
3322
3322
|
constructor(e, r, t) {
|
|
3323
3323
|
this.document = e, this.name = r, this.value = t, this.isNormalizedColor = !1;
|
|
3324
3324
|
}
|
|
3325
3325
|
static empty(e) {
|
|
3326
|
-
return new
|
|
3326
|
+
return new k(e, "EMPTY", "");
|
|
3327
3327
|
}
|
|
3328
3328
|
split() {
|
|
3329
3329
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : " ", {
|
|
3330
3330
|
document: r,
|
|
3331
3331
|
name: t
|
|
3332
3332
|
} = this;
|
|
3333
|
-
return er(this.getString()).trim().split(e).map((i) => new
|
|
3333
|
+
return er(this.getString()).trim().split(e).map((i) => new k(r, t, i));
|
|
3334
3334
|
}
|
|
3335
3335
|
hasValue(e) {
|
|
3336
3336
|
var {
|
|
@@ -3473,7 +3473,7 @@ class L {
|
|
|
3473
3473
|
return null;
|
|
3474
3474
|
}
|
|
3475
3475
|
getTextBaseline() {
|
|
3476
|
-
return this.hasValue() ?
|
|
3476
|
+
return this.hasValue() ? k.textBaselineMapping[this.getString()] : null;
|
|
3477
3477
|
}
|
|
3478
3478
|
addOpacity(e) {
|
|
3479
3479
|
for (var r = this.getColor(), t = r.length, i = 0, a = 0; a < t && (r[a] === "," && i++, i !== 3); a++)
|
|
@@ -3482,10 +3482,10 @@ class L {
|
|
|
3482
3482
|
var s = new Ra(r);
|
|
3483
3483
|
s.ok && (s.alpha = e.getNumber(), r = s.toRGBA());
|
|
3484
3484
|
}
|
|
3485
|
-
return new
|
|
3485
|
+
return new k(this.document, this.name, r);
|
|
3486
3486
|
}
|
|
3487
3487
|
}
|
|
3488
|
-
|
|
3488
|
+
k.textBaselineMapping = {
|
|
3489
3489
|
baseline: "alphabetic",
|
|
3490
3490
|
"before-edge": "top",
|
|
3491
3491
|
"text-before-edge": "top",
|
|
@@ -3558,7 +3558,7 @@ class ie {
|
|
|
3558
3558
|
this.x = i, this.y = a;
|
|
3559
3559
|
}
|
|
3560
3560
|
}
|
|
3561
|
-
class
|
|
3561
|
+
class kf {
|
|
3562
3562
|
constructor(e) {
|
|
3563
3563
|
this.screen = e, this.working = !1, this.events = [], this.eventElements = [], this.onClick = this.onClick.bind(this), this.onMouseMove = this.onMouseMove.bind(this);
|
|
3564
3564
|
}
|
|
@@ -3675,7 +3675,7 @@ class qr {
|
|
|
3675
3675
|
fetch: r = Al,
|
|
3676
3676
|
window: t = Pl
|
|
3677
3677
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3678
|
-
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new Vf(), this.mouse = new
|
|
3678
|
+
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new Vf(), this.mouse = new kf(this), this.animations = [], this.waits = [], this.frameDuration = 0, this.isReadyLock = !1, this.isFirstRender = !0, this.intervalId = null, this.window = t, this.fetch = r;
|
|
3679
3679
|
}
|
|
3680
3680
|
wait(e) {
|
|
3681
3681
|
this.waits.push(e);
|
|
@@ -3710,7 +3710,7 @@ class qr {
|
|
|
3710
3710
|
clipY: d = 0
|
|
3711
3711
|
} = e, m = er(i).replace(/^defer\s/, ""), [y, p] = m.split(" "), b = y || "xMidYMid", x = p || "meet", R = a / s, T = o / u, S = Math.min(R, T), E = Math.max(R, T), _ = s, A = u;
|
|
3712
3712
|
x === "meet" && (_ *= S, A *= S), x === "slice" && (_ *= E, A *= E);
|
|
3713
|
-
var M = new
|
|
3713
|
+
var M = new k(r, "refX", f), N = new k(r, "refY", c), w = M.hasValue() && N.hasValue();
|
|
3714
3714
|
if (w && t.translate(-S * M.getPixels("x"), -S * N.getPixels("y")), v) {
|
|
3715
3715
|
var C = S * g, U = S * d;
|
|
3716
3716
|
t.beginPath(), t.moveTo(C, U), t.lineTo(a, U), t.lineTo(a, o), t.lineTo(C, o), t.closePath(), t.clip();
|
|
@@ -3802,12 +3802,12 @@ class qr {
|
|
|
3802
3802
|
qr.defaultWindow = Pl;
|
|
3803
3803
|
qr.defaultFetch = Al;
|
|
3804
3804
|
var {
|
|
3805
|
-
defaultFetch:
|
|
3805
|
+
defaultFetch: Lf
|
|
3806
3806
|
} = qr, jf = typeof DOMParser < "u" ? DOMParser : null;
|
|
3807
3807
|
class Oa {
|
|
3808
3808
|
constructor() {
|
|
3809
3809
|
var {
|
|
3810
|
-
fetch: e =
|
|
3810
|
+
fetch: e = Lf,
|
|
3811
3811
|
DOMParser: r = jf
|
|
3812
3812
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3813
3813
|
this.fetch = e, this.DOMParser = r;
|
|
@@ -3870,7 +3870,7 @@ class Ff {
|
|
|
3870
3870
|
constructor(e, r, t) {
|
|
3871
3871
|
this.type = "rotate", this.angle = null, this.originX = null, this.originY = null, this.cx = 0, this.cy = 0;
|
|
3872
3872
|
var i = ce(r);
|
|
3873
|
-
this.angle = new
|
|
3873
|
+
this.angle = new k(e, "angle", i[0]), this.originX = t[0], this.originY = t[1], this.cx = i[1] || 0, this.cy = i[2] || 0;
|
|
3874
3874
|
}
|
|
3875
3875
|
apply(e) {
|
|
3876
3876
|
var {
|
|
@@ -3979,7 +3979,7 @@ class Il {
|
|
|
3979
3979
|
}
|
|
3980
3980
|
class _l extends Il {
|
|
3981
3981
|
constructor(e, r, t) {
|
|
3982
|
-
super(e, r, t), this.type = "skew", this.angle = null, this.angle = new
|
|
3982
|
+
super(e, r, t), this.type = "skew", this.angle = null, this.angle = new k(e, "angle", r);
|
|
3983
3983
|
}
|
|
3984
3984
|
}
|
|
3985
3985
|
class Gf extends _l {
|
|
@@ -4048,13 +4048,13 @@ class K {
|
|
|
4048
4048
|
if (this.document = e, this.node = r, this.captureTextNodes = t, this.attributes = /* @__PURE__ */ Object.create(null), this.styles = /* @__PURE__ */ Object.create(null), this.stylesSpecificity = /* @__PURE__ */ Object.create(null), this.animationFrozen = !1, this.animationFrozenValue = "", this.parent = null, this.children = [], !(!r || r.nodeType !== 1)) {
|
|
4049
4049
|
if (Array.from(r.attributes).forEach((o) => {
|
|
4050
4050
|
var u = Cf(o.nodeName);
|
|
4051
|
-
this.attributes[u] = new
|
|
4051
|
+
this.attributes[u] = new k(e, u, o.value);
|
|
4052
4052
|
}), this.addStylesFromStyleDefinition(), this.getAttribute("style").hasValue()) {
|
|
4053
4053
|
var i = this.getAttribute("style").getString().split(";").map((o) => o.trim());
|
|
4054
4054
|
i.forEach((o) => {
|
|
4055
4055
|
if (o) {
|
|
4056
4056
|
var [u, l] = o.split(":").map((h) => h.trim());
|
|
4057
|
-
this.styles[u] = new
|
|
4057
|
+
this.styles[u] = new k(e, u, l);
|
|
4058
4058
|
}
|
|
4059
4059
|
});
|
|
4060
4060
|
}
|
|
@@ -4074,16 +4074,16 @@ class K {
|
|
|
4074
4074
|
getAttribute(e) {
|
|
4075
4075
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = this.attributes[e];
|
|
4076
4076
|
if (!t && r) {
|
|
4077
|
-
var i = new
|
|
4077
|
+
var i = new k(this.document, e, "");
|
|
4078
4078
|
return this.attributes[e] = i, i;
|
|
4079
4079
|
}
|
|
4080
|
-
return t ||
|
|
4080
|
+
return t || k.empty(this.document);
|
|
4081
4081
|
}
|
|
4082
4082
|
getHrefAttribute() {
|
|
4083
4083
|
for (var e in this.attributes)
|
|
4084
4084
|
if (e === "href" || e.endsWith(":href"))
|
|
4085
4085
|
return this.attributes[e];
|
|
4086
|
-
return
|
|
4086
|
+
return k.empty(this.document);
|
|
4087
4087
|
}
|
|
4088
4088
|
getStyle(e) {
|
|
4089
4089
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, i = this.styles[e];
|
|
@@ -4103,10 +4103,10 @@ class K {
|
|
|
4103
4103
|
}
|
|
4104
4104
|
}
|
|
4105
4105
|
if (r) {
|
|
4106
|
-
var u = new
|
|
4106
|
+
var u = new k(this.document, e, "");
|
|
4107
4107
|
return this.styles[e] = u, u;
|
|
4108
4108
|
}
|
|
4109
|
-
return i ||
|
|
4109
|
+
return i || k.empty(this.document);
|
|
4110
4110
|
}
|
|
4111
4111
|
render(e) {
|
|
4112
4112
|
if (!(this.getStyle("display").getString() === "none" || this.getStyle("visibility").getString() === "hidden")) {
|
|
@@ -4461,7 +4461,7 @@ class je extends K {
|
|
|
4461
4461
|
u !== "inherit" && (e.fillStyle = u === "none" ? "rgba(0,0,0,0)" : u);
|
|
4462
4462
|
}
|
|
4463
4463
|
if (i.hasValue()) {
|
|
4464
|
-
var l = new
|
|
4464
|
+
var l = new k(this.document, "fill", e.fillStyle).addOpacity(i).getColor();
|
|
4465
4465
|
e.fillStyle = l;
|
|
4466
4466
|
}
|
|
4467
4467
|
if (a.isUrlDefinition()) {
|
|
@@ -4473,7 +4473,7 @@ class je extends K {
|
|
|
4473
4473
|
f !== "inherit" && (e.strokeStyle = f === "none" ? "rgba(0,0,0,0)" : f);
|
|
4474
4474
|
}
|
|
4475
4475
|
if (s.hasValue()) {
|
|
4476
|
-
var c = new
|
|
4476
|
+
var c = new k(this.document, "stroke", e.strokeStyle).addOpacity(s).getString();
|
|
4477
4477
|
e.strokeStyle = c;
|
|
4478
4478
|
}
|
|
4479
4479
|
var v = this.getStyle("stroke-width");
|
|
@@ -5007,7 +5007,7 @@ class cr extends je {
|
|
|
5007
5007
|
} = t, s = e.canvas;
|
|
5008
5008
|
if (i.setDefaults(e), s.style && typeof e.font < "u" && a && typeof a.getComputedStyle < "u") {
|
|
5009
5009
|
e.font = a.getComputedStyle(s).getPropertyValue("font");
|
|
5010
|
-
var o = new
|
|
5010
|
+
var o = new k(t, "fontSize", ue.parse(e.font).fontSize);
|
|
5011
5011
|
o.hasValue() && (t.rootEmSize = o.getPixels("y"), t.emSize = t.rootEmSize);
|
|
5012
5012
|
}
|
|
5013
5013
|
this.getAttribute("x").hasValue() || this.getAttribute("x", !0).setValue(0), this.getAttribute("y").hasValue() || this.getAttribute("y", !0).setValue(0);
|
|
@@ -5165,12 +5165,12 @@ class ic extends K {
|
|
|
5165
5165
|
}
|
|
5166
5166
|
createPattern(e, r, t) {
|
|
5167
5167
|
var i = this.getStyle("width").getPixels("x", !0), a = this.getStyle("height").getPixels("y", !0), s = new cr(this.document, null);
|
|
5168
|
-
s.attributes.viewBox = new
|
|
5168
|
+
s.attributes.viewBox = new k(this.document, "viewBox", this.getAttribute("viewBox").getValue()), s.attributes.width = new k(this.document, "width", "".concat(i, "px")), s.attributes.height = new k(this.document, "height", "".concat(a, "px")), s.attributes.transform = new k(this.document, "transform", this.getAttribute("patternTransform").getValue()), s.children = this.children;
|
|
5169
5169
|
var o = this.document.createCanvas(i, a), u = o.getContext("2d"), l = this.getAttribute("x"), h = this.getAttribute("y");
|
|
5170
5170
|
l.hasValue() && h.hasValue() && u.translate(l.getPixels("x", !0), h.getPixels("y", !0)), t.hasValue() ? this.styles["fill-opacity"] = t : Reflect.deleteProperty(this.styles, "fill-opacity");
|
|
5171
5171
|
for (var f = -1; f <= 1; f++)
|
|
5172
5172
|
for (var c = -1; c <= 1; c++)
|
|
5173
|
-
u.save(), s.attributes.x = new
|
|
5173
|
+
u.save(), s.attributes.x = new k(this.document, "x", f * o.width), s.attributes.y = new k(this.document, "y", c * o.height), s.render(u), u.restore();
|
|
5174
5174
|
var v = e.createPattern(o, "repeat");
|
|
5175
5175
|
return v;
|
|
5176
5176
|
}
|
|
@@ -5187,7 +5187,7 @@ class ac extends K {
|
|
|
5187
5187
|
} = r, s = this.getAttribute("orient").getString("auto"), o = this.getAttribute("markerUnits").getString("strokeWidth");
|
|
5188
5188
|
e.translate(i, a), s === "auto" && e.rotate(t), o === "strokeWidth" && e.scale(e.lineWidth, e.lineWidth), e.save();
|
|
5189
5189
|
var u = new cr(this.document, null);
|
|
5190
|
-
u.type = this.type, u.attributes.viewBox = new
|
|
5190
|
+
u.type = this.type, u.attributes.viewBox = new k(this.document, "viewBox", this.getAttribute("viewBox").getValue()), u.attributes.refX = new k(this.document, "refX", this.getAttribute("refX").getValue()), u.attributes.refY = new k(this.document, "refY", this.getAttribute("refY").getValue()), u.attributes.width = new k(this.document, "width", this.getAttribute("markerWidth").getValue()), u.attributes.height = new k(this.document, "height", this.getAttribute("markerHeight").getValue()), u.attributes.overflow = new k(this.document, "overflow", this.getAttribute("overflow").getValue()), u.attributes.fill = new k(this.document, "fill", this.getAttribute("fill").getColor("black")), u.attributes.stroke = new k(this.document, "stroke", this.getAttribute("stroke").getValue("none")), u.children = this.children, u.render(e), e.restore(), o === "strokeWidth" && e.scale(1 / e.lineWidth, 1 / e.lineWidth), s === "auto" && e.rotate(-t), e.translate(-i, -a);
|
|
5191
5191
|
}
|
|
5192
5192
|
}
|
|
5193
5193
|
}
|
|
@@ -5240,11 +5240,11 @@ class Dl extends K {
|
|
|
5240
5240
|
MAX_VIRTUAL_PIXELS: u,
|
|
5241
5241
|
viewPort: l
|
|
5242
5242
|
} = o.screen, [h] = l.viewPorts, f = new Ml(o, null);
|
|
5243
|
-
f.attributes.x = new
|
|
5243
|
+
f.attributes.x = new k(o, "x", -u / 3), f.attributes.y = new k(o, "y", -u / 3), f.attributes.width = new k(o, "width", u), f.attributes.height = new k(o, "height", u);
|
|
5244
5244
|
var c = new Ya(o, null);
|
|
5245
|
-
c.attributes.transform = new
|
|
5245
|
+
c.attributes.transform = new k(o, "transform", this.getAttribute("gradientTransform").getValue()), c.children = [f];
|
|
5246
5246
|
var v = new cr(o, null);
|
|
5247
|
-
v.attributes.x = new
|
|
5247
|
+
v.attributes.x = new k(o, "x", 0), v.attributes.y = new k(o, "y", 0), v.attributes.width = new k(o, "width", h.width), v.attributes.height = new k(o, "height", h.height), v.children = [c];
|
|
5248
5248
|
var g = o.createCanvas(h.width, h.height), d = g.getContext("2d");
|
|
5249
5249
|
return d.fillStyle = s, v.render(d), d.createPattern(g, "no-repeat");
|
|
5250
5250
|
}
|
|
@@ -5257,7 +5257,7 @@ class Dl extends K {
|
|
|
5257
5257
|
}
|
|
5258
5258
|
addParentOpacity(e, r) {
|
|
5259
5259
|
if (e.hasValue()) {
|
|
5260
|
-
var t = new
|
|
5260
|
+
var t = new k(this.document, "color", r);
|
|
5261
5261
|
return t.addOpacity(e).getColor();
|
|
5262
5262
|
}
|
|
5263
5263
|
return r;
|
|
@@ -5300,7 +5300,7 @@ class uc extends K {
|
|
|
5300
5300
|
}
|
|
5301
5301
|
class Xa extends K {
|
|
5302
5302
|
constructor(e, r, t) {
|
|
5303
|
-
super(e, r, t), this.type = "animate", this.duration = 0, this.initialValue = null, this.initialUnits = "", this.removed = !1, this.frozen = !1, e.screen.animations.push(this), this.begin = this.getAttribute("begin").getMilliseconds(), this.maxDuration = this.begin + this.getAttribute("dur").getMilliseconds(), this.from = this.getAttribute("from"), this.to = this.getAttribute("to"), this.values = new
|
|
5303
|
+
super(e, r, t), this.type = "animate", this.duration = 0, this.initialValue = null, this.initialUnits = "", this.removed = !1, this.frozen = !1, e.screen.animations.push(this), this.begin = this.getAttribute("begin").getMilliseconds(), this.maxDuration = this.begin + this.getAttribute("dur").getMilliseconds(), this.from = this.getAttribute("from"), this.to = this.getAttribute("to"), this.values = new k(e, "values", null);
|
|
5304
5304
|
var i = this.getAttribute("values");
|
|
5305
5305
|
i.hasValue() && this.values.setValue(i.getString().split(";"));
|
|
5306
5306
|
}
|
|
@@ -5353,7 +5353,7 @@ class Xa extends K {
|
|
|
5353
5353
|
};
|
|
5354
5354
|
if (r.hasValue()) {
|
|
5355
5355
|
var i = t.progress * (r.getValue().length - 1), a = Math.floor(i), s = Math.ceil(i);
|
|
5356
|
-
t.from = new
|
|
5356
|
+
t.from = new k(e, "from", parseFloat(r.getValue()[a])), t.to = new k(e, "to", parseFloat(r.getValue()[s])), t.progress = (i - a) / (s - a);
|
|
5357
5357
|
} else
|
|
5358
5358
|
t.from = this.from, t.to = this.to;
|
|
5359
5359
|
return t;
|
|
@@ -5465,7 +5465,7 @@ class dc extends Ae {
|
|
|
5465
5465
|
y: i
|
|
5466
5466
|
} = this, {
|
|
5467
5467
|
mouse: a
|
|
5468
|
-
} = r.screen, s = new
|
|
5468
|
+
} = r.screen, s = new k(r, "fontSize", ue.parse(r.ctx.font).fontSize);
|
|
5469
5469
|
a.isWorking() && a.checkBoundingBox(this, new be(t, i - s.getPixels("y"), t + this.measureText(e), i));
|
|
5470
5470
|
} else if (this.children.length > 0) {
|
|
5471
5471
|
var o = new Ya(this.document, null);
|
|
@@ -5855,7 +5855,7 @@ class pc extends Ae {
|
|
|
5855
5855
|
return this.pathLength === -1 && (this.pathLength = this.dataArray.reduce((e, r) => r.pathLength > 0 ? e + r.pathLength : e, 0)), this.pathLength;
|
|
5856
5856
|
}
|
|
5857
5857
|
getPointOnCubicBezier(e, r, t, i, a, s, o, u, l) {
|
|
5858
|
-
var h = u * Du(e) + s * Vu(e) + i *
|
|
5858
|
+
var h = u * Du(e) + s * Vu(e) + i * ku(e) + r * Lu(e), f = l * Du(e) + o * Vu(e) + a * ku(e) + t * Lu(e);
|
|
5859
5859
|
return {
|
|
5860
5860
|
x: h,
|
|
5861
5861
|
y: f
|
|
@@ -6027,7 +6027,7 @@ class Vl extends K {
|
|
|
6027
6027
|
var v = e.styles[c] || {};
|
|
6028
6028
|
if (h.forEach((m) => {
|
|
6029
6029
|
var y = m.indexOf(":"), p = m.substr(0, y).trim(), b = m.substr(y + 1, m.length - y).trim();
|
|
6030
|
-
p && b && (v[p] = new
|
|
6030
|
+
p && b && (v[p] = new k(e, p, b));
|
|
6031
6031
|
}), e.styles[c] = v, e.stylesSpecificity[c] = Df(c), c === "@font-face") {
|
|
6032
6032
|
var g = v["font-family"].getString().replace(/"|'/g, ""), d = v.src.getString().split(",");
|
|
6033
6033
|
d.forEach((m) => {
|
|
@@ -6066,9 +6066,9 @@ class Sc extends je {
|
|
|
6066
6066
|
} = this;
|
|
6067
6067
|
if (t) {
|
|
6068
6068
|
var i = t;
|
|
6069
|
-
if (t.type === "symbol" && (i = new cr(r, null), i.attributes.viewBox = new
|
|
6069
|
+
if (t.type === "symbol" && (i = new cr(r, null), i.attributes.viewBox = new k(r, "viewBox", t.getAttribute("viewBox").getString()), i.attributes.preserveAspectRatio = new k(r, "preserveAspectRatio", t.getAttribute("preserveAspectRatio").getString()), i.attributes.overflow = new k(r, "overflow", t.getAttribute("overflow").getString()), i.children = t.children, t.styles.opacity = new k(r, "opacity", this.calculateOpacity())), i.type === "svg") {
|
|
6070
6070
|
var a = this.getStyle("width", !1, !0), s = this.getStyle("height", !1, !0);
|
|
6071
|
-
a.hasValue() && (i.attributes.width = new
|
|
6071
|
+
a.hasValue() && (i.attributes.width = new k(r, "width", a.getString())), s.hasValue() && (i.attributes.height = new k(r, "height", s.getString()));
|
|
6072
6072
|
}
|
|
6073
6073
|
var o = i.parent;
|
|
6074
6074
|
i.parent = this, i.render(e), i.parent = o;
|
|
@@ -6104,7 +6104,7 @@ function ae(n, e, r) {
|
|
|
6104
6104
|
function Ee(n, e, r, t) {
|
|
6105
6105
|
return e + Math.cos(n) * r + Math.sin(n) * t;
|
|
6106
6106
|
}
|
|
6107
|
-
class
|
|
6107
|
+
class kl extends K {
|
|
6108
6108
|
constructor(e, r, t) {
|
|
6109
6109
|
super(e, r, t), this.type = "feColorMatrix";
|
|
6110
6110
|
var i = ce(this.getAttribute("values").getString());
|
|
@@ -6153,7 +6153,7 @@ class Vr extends K {
|
|
|
6153
6153
|
}), i = Math.floor(u.x1), a = Math.floor(u.y1), s = Math.floor(u.width), o = Math.floor(u.height);
|
|
6154
6154
|
}
|
|
6155
6155
|
var l = this.removeStyles(r, Vr.ignoreStyles), h = t.createCanvas(i + s, a + o), f = h.getContext("2d");
|
|
6156
|
-
t.screen.setDefaults(f), this.renderChildren(f), new
|
|
6156
|
+
t.screen.setDefaults(f), this.renderChildren(f), new kl(t, {
|
|
6157
6157
|
nodeType: 1,
|
|
6158
6158
|
childNodes: [],
|
|
6159
6159
|
attributes: [{
|
|
@@ -6194,7 +6194,7 @@ class Oc extends K {
|
|
|
6194
6194
|
render(e) {
|
|
6195
6195
|
}
|
|
6196
6196
|
}
|
|
6197
|
-
class
|
|
6197
|
+
class kr extends K {
|
|
6198
6198
|
constructor() {
|
|
6199
6199
|
super(...arguments), this.type = "filter";
|
|
6200
6200
|
}
|
|
@@ -6211,7 +6211,7 @@ class Lr extends K {
|
|
|
6211
6211
|
});
|
|
6212
6212
|
var u = Math.floor(a.width), l = Math.floor(a.height), h = u + 2 * s, f = l + 2 * o;
|
|
6213
6213
|
if (!(h < 1 || f < 1)) {
|
|
6214
|
-
var c = Math.floor(a.x), v = Math.floor(a.y), g = this.removeStyles(r,
|
|
6214
|
+
var c = Math.floor(a.x), v = Math.floor(a.y), g = this.removeStyles(r, kr.ignoreStyles), d = t.createCanvas(h, f), m = d.getContext("2d");
|
|
6215
6215
|
t.screen.setDefaults(m), m.translate(-c + s, -v + o), r.render(m), i.forEach((y) => {
|
|
6216
6216
|
typeof y.apply == "function" && y.apply(m, 0, 0, h, f);
|
|
6217
6217
|
}), e.drawImage(d, 0, 0, h, f, c - s, v - o, h, f), this.restoreStyles(r, g);
|
|
@@ -6221,7 +6221,7 @@ class Lr extends K {
|
|
|
6221
6221
|
render(e) {
|
|
6222
6222
|
}
|
|
6223
6223
|
}
|
|
6224
|
-
|
|
6224
|
+
kr.ignoreStyles = ["filter", "transform", "clip-path"];
|
|
6225
6225
|
class Tc extends K {
|
|
6226
6226
|
constructor(e, r, t) {
|
|
6227
6227
|
super(e, r, t), this.type = "feDropShadow", this.addStylesFromStyleDefinition();
|
|
@@ -6299,11 +6299,11 @@ var Ac = {
|
|
|
6299
6299
|
use: Sc,
|
|
6300
6300
|
mask: Vr,
|
|
6301
6301
|
clipPath: Oc,
|
|
6302
|
-
filter:
|
|
6302
|
+
filter: kr,
|
|
6303
6303
|
feDropShadow: Tc,
|
|
6304
6304
|
feMorphology: Ec,
|
|
6305
6305
|
feComposite: Rc,
|
|
6306
|
-
feColorMatrix:
|
|
6306
|
+
feColorMatrix: kl,
|
|
6307
6307
|
feGaussianBlur: Cc,
|
|
6308
6308
|
title: wc,
|
|
6309
6309
|
desc: Pc
|
|
@@ -6567,8 +6567,8 @@ export {
|
|
|
6567
6567
|
be as BoundingBox,
|
|
6568
6568
|
Du as CB1,
|
|
6569
6569
|
Vu as CB2,
|
|
6570
|
-
|
|
6571
|
-
|
|
6570
|
+
ku as CB3,
|
|
6571
|
+
Lu as CB4,
|
|
6572
6572
|
nr as Canvg,
|
|
6573
6573
|
Jf as CircleElement,
|
|
6574
6574
|
Oc as ClipPathElement,
|
|
@@ -6577,12 +6577,12 @@ export {
|
|
|
6577
6577
|
Pe as Document,
|
|
6578
6578
|
K as Element,
|
|
6579
6579
|
ec as EllipseElement,
|
|
6580
|
-
|
|
6580
|
+
kl as FeColorMatrixElement,
|
|
6581
6581
|
Rc as FeCompositeElement,
|
|
6582
6582
|
Tc as FeDropShadowElement,
|
|
6583
6583
|
Cc as FeGaussianBlurElement,
|
|
6584
6584
|
Ec as FeMorphologyElement,
|
|
6585
|
-
|
|
6585
|
+
kr as FilterElement,
|
|
6586
6586
|
ue as Font,
|
|
6587
6587
|
fc as FontElement,
|
|
6588
6588
|
cc as FontFaceElement,
|
|
@@ -6596,7 +6596,7 @@ export {
|
|
|
6596
6596
|
Vr as MaskElement,
|
|
6597
6597
|
Il as Matrix,
|
|
6598
6598
|
vc as MissingGlyphElement,
|
|
6599
|
-
|
|
6599
|
+
kf as Mouse,
|
|
6600
6600
|
Qe as PSEUDO_ZERO,
|
|
6601
6601
|
Oa as Parser,
|
|
6602
6602
|
Y as PathElement,
|
|
@@ -6605,7 +6605,7 @@ export {
|
|
|
6605
6605
|
ie as Point,
|
|
6606
6606
|
tc as PolygonElement,
|
|
6607
6607
|
ql as PolylineElement,
|
|
6608
|
-
|
|
6608
|
+
k as Property,
|
|
6609
6609
|
ju as QB1,
|
|
6610
6610
|
Bu as QB2,
|
|
6611
6611
|
Fu as QB3,
|