@ranty/ranty-sdk 2.18.0-beta.2 → 2.18.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-f468f606.js → index-a02ab99a.js} +41056 -19436
- package/dist/{index.es-9bcf5c0b.js → index.es-019b9625.js} +1159 -1159
- package/dist/index.js +12 -12
- package/dist/style.css +1 -0
- package/package.json +5 -2
|
@@ -1,266 +1,266 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
var
|
|
1
|
+
import { c as Ze, _ as Ha, p as Qe, g as Vo } from "./index-a02ab99a.js";
|
|
2
|
+
var ft = function(a) {
|
|
3
3
|
return a && a.Math === Math && a;
|
|
4
4
|
}, V = (
|
|
5
5
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
ft(typeof globalThis == "object" && globalThis) || ft(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
7
|
+
ft(typeof self == "object" && self) || ft(typeof Ze == "object" && Ze) || ft(typeof Ze == "object" && Ze) || // eslint-disable-next-line no-new-func -- fallback
|
|
8
8
|
function() {
|
|
9
9
|
return this;
|
|
10
10
|
}() || Function("return this")()
|
|
11
|
-
),
|
|
11
|
+
), wt = {}, k = function(a) {
|
|
12
12
|
try {
|
|
13
13
|
return !!a();
|
|
14
14
|
} catch (e) {
|
|
15
15
|
return !0;
|
|
16
16
|
}
|
|
17
|
-
},
|
|
17
|
+
}, wl = k, le = !wl(function() {
|
|
18
18
|
return Object.defineProperty({}, 1, { get: function() {
|
|
19
19
|
return 7;
|
|
20
20
|
} })[1] !== 7;
|
|
21
|
-
}),
|
|
21
|
+
}), Cl = k, br = !Cl(function() {
|
|
22
22
|
var a = function() {
|
|
23
23
|
}.bind();
|
|
24
24
|
return typeof a != "function" || a.hasOwnProperty("prototype");
|
|
25
|
-
}),
|
|
26
|
-
return
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
var t =
|
|
25
|
+
}), Al = br, Gt = Function.prototype.call, Y = Al ? Gt.bind(Gt) : function() {
|
|
26
|
+
return Gt.apply(Gt, arguments);
|
|
27
|
+
}, Do = {}, ko = {}.propertyIsEnumerable, Lo = Object.getOwnPropertyDescriptor, Pl = Lo && !ko.call({ 1: 2 }, 1);
|
|
28
|
+
Do.f = Pl ? function(e) {
|
|
29
|
+
var t = Lo(this, e);
|
|
30
30
|
return !!t && t.enumerable;
|
|
31
|
-
} :
|
|
32
|
-
var
|
|
31
|
+
} : ko;
|
|
32
|
+
var Oi = function(a, e) {
|
|
33
33
|
return {
|
|
34
34
|
enumerable: !(a & 1),
|
|
35
35
|
configurable: !(a & 2),
|
|
36
36
|
writable: !(a & 4),
|
|
37
37
|
value: e
|
|
38
38
|
};
|
|
39
|
-
},
|
|
39
|
+
}, Bo = br, jo = Function.prototype, Ya = jo.call, Rl = Bo && jo.bind.bind(Ya, Ya), L = Bo ? Rl : function(a) {
|
|
40
40
|
return function() {
|
|
41
|
-
return
|
|
41
|
+
return Ya.apply(a, arguments);
|
|
42
42
|
};
|
|
43
|
-
},
|
|
44
|
-
return Nl(
|
|
45
|
-
},
|
|
46
|
-
return !
|
|
43
|
+
}, Fo = L, Nl = Fo({}.toString), Il = Fo("".slice), Be = function(a) {
|
|
44
|
+
return Il(Nl(a), 8, -1);
|
|
45
|
+
}, Ml = L, _l = k, Vl = Be, Kr = Object, Dl = Ml("".split), Uo = _l(function() {
|
|
46
|
+
return !Kr("z").propertyIsEnumerable(0);
|
|
47
47
|
}) ? function(a) {
|
|
48
|
-
return
|
|
49
|
-
} :
|
|
48
|
+
return Vl(a) === "String" ? Dl(a, "") : Kr(a);
|
|
49
|
+
} : Kr, je = function(a) {
|
|
50
50
|
return a == null;
|
|
51
|
-
},
|
|
52
|
-
if (
|
|
53
|
-
throw new
|
|
51
|
+
}, kl = je, Ll = TypeError, he = function(a) {
|
|
52
|
+
if (kl(a))
|
|
53
|
+
throw new Ll("Can't call method on " + a);
|
|
54
54
|
return a;
|
|
55
|
-
},
|
|
56
|
-
return
|
|
57
|
-
},
|
|
58
|
-
return typeof a == "function" || a ===
|
|
55
|
+
}, Bl = Uo, jl = he, Ct = function(a) {
|
|
56
|
+
return Bl(jl(a));
|
|
57
|
+
}, Zr = typeof document == "object" && document.all, B = typeof Zr == "undefined" && Zr !== void 0 ? function(a) {
|
|
58
|
+
return typeof a == "function" || a === Zr;
|
|
59
59
|
} : function(a) {
|
|
60
60
|
return typeof a == "function";
|
|
61
|
-
},
|
|
62
|
-
return typeof a == "object" ? a !== null :
|
|
63
|
-
},
|
|
64
|
-
return
|
|
61
|
+
}, Fl = B, ve = function(a) {
|
|
62
|
+
return typeof a == "object" ? a !== null : Fl(a);
|
|
63
|
+
}, Jr = V, Ul = B, Gl = function(a) {
|
|
64
|
+
return Ul(a) ? a : void 0;
|
|
65
65
|
}, Fe = function(a, e) {
|
|
66
|
-
return arguments.length < 2 ?
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
!
|
|
70
|
-
var
|
|
66
|
+
return arguments.length < 2 ? Gl(Jr[a]) : Jr[a] && Jr[a][e];
|
|
67
|
+
}, zl = L, xr = zl({}.isPrototypeOf), Hl = V, pn = Hl.navigator, yn = pn && pn.userAgent, At = yn ? String(yn) : "", Go = V, ea = At, mn = Go.process, bn = Go.Deno, xn = mn && mn.versions || bn && bn.version, Tn = xn && xn.v8, ue, cr;
|
|
68
|
+
Tn && (ue = Tn.split("."), cr = ue[0] > 0 && ue[0] < 4 ? 1 : +(ue[0] + ue[1]));
|
|
69
|
+
!cr && ea && (ue = ea.match(/Edge\/(\d+)/), (!ue || ue[1] >= 74) && (ue = ea.match(/Chrome\/(\d+)/), ue && (cr = +ue[1])));
|
|
70
|
+
var Si = cr, On = Si, Yl = k, Xl = V, Wl = Xl.String, zo = !!Object.getOwnPropertySymbols && !Yl(function() {
|
|
71
71
|
var a = Symbol("symbol detection");
|
|
72
|
-
return !
|
|
73
|
-
!Symbol.sham &&
|
|
74
|
-
}),
|
|
72
|
+
return !Wl(a) || !(Object(a) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
73
|
+
!Symbol.sham && On && On < 41;
|
|
74
|
+
}), ql = zo, Ho = ql && !Symbol.sham && typeof Symbol.iterator == "symbol", Ql = Fe, Kl = B, Zl = xr, Jl = Ho, eh = Object, Yo = Jl ? function(a) {
|
|
75
75
|
return typeof a == "symbol";
|
|
76
76
|
} : function(a) {
|
|
77
|
-
var e =
|
|
78
|
-
return
|
|
79
|
-
},
|
|
77
|
+
var e = Ql("Symbol");
|
|
78
|
+
return Kl(e) && Zl(e.prototype, eh(a));
|
|
79
|
+
}, th = String, Tr = function(a) {
|
|
80
80
|
try {
|
|
81
|
-
return
|
|
81
|
+
return th(a);
|
|
82
82
|
} catch (e) {
|
|
83
83
|
return "Object";
|
|
84
84
|
}
|
|
85
|
-
},
|
|
86
|
-
if (
|
|
85
|
+
}, rh = B, ah = Tr, ih = TypeError, Te = function(a) {
|
|
86
|
+
if (rh(a))
|
|
87
87
|
return a;
|
|
88
|
-
throw new ah(
|
|
89
|
-
},
|
|
88
|
+
throw new ih(ah(a) + " is not a function");
|
|
89
|
+
}, nh = Te, sh = je, ut = function(a, e) {
|
|
90
90
|
var t = a[e];
|
|
91
|
-
return
|
|
92
|
-
},
|
|
91
|
+
return sh(t) ? void 0 : nh(t);
|
|
92
|
+
}, ta = Y, ra = B, aa = ve, oh = TypeError, uh = function(a, e) {
|
|
93
93
|
var t, r;
|
|
94
|
-
if (e === "string" &&
|
|
94
|
+
if (e === "string" && ra(t = a.toString) && !aa(r = ta(t, a)) || ra(t = a.valueOf) && !aa(r = ta(t, a)) || e !== "string" && ra(t = a.toString) && !aa(r = ta(t, a)))
|
|
95
95
|
return r;
|
|
96
|
-
throw new
|
|
97
|
-
},
|
|
96
|
+
throw new oh("Can't convert object to primitive value");
|
|
97
|
+
}, Xo = { exports: {} }, Sn = V, lh = Object.defineProperty, Ei = function(a, e) {
|
|
98
98
|
try {
|
|
99
|
-
|
|
99
|
+
lh(Sn, a, { value: e, configurable: !0, writable: !0 });
|
|
100
100
|
} catch (t) {
|
|
101
|
-
|
|
101
|
+
Sn[a] = e;
|
|
102
102
|
}
|
|
103
103
|
return e;
|
|
104
|
-
},
|
|
105
|
-
(
|
|
104
|
+
}, hh = V, vh = Ei, En = "__core-js_shared__", $n = Xo.exports = hh[En] || vh(En, {});
|
|
105
|
+
($n.versions || ($n.versions = [])).push({
|
|
106
106
|
version: "3.39.0",
|
|
107
107
|
mode: "global",
|
|
108
108
|
copyright: "© 2014-2024 Denis Pushkarev (zloirock.ru)",
|
|
109
109
|
license: "https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",
|
|
110
110
|
source: "https://github.com/zloirock/core-js"
|
|
111
111
|
});
|
|
112
|
-
var
|
|
113
|
-
return
|
|
114
|
-
},
|
|
115
|
-
return fh(
|
|
116
|
-
},
|
|
117
|
-
return dh(
|
|
118
|
-
},
|
|
119
|
-
return "Symbol(" + (a === void 0 ? "" : a) + ")_" +
|
|
120
|
-
},
|
|
121
|
-
return
|
|
122
|
-
},
|
|
123
|
-
if (!
|
|
112
|
+
var $i = Xo.exports, wn = $i, wi = function(a, e) {
|
|
113
|
+
return wn[a] || (wn[a] = e || {});
|
|
114
|
+
}, fh = he, ch = Object, Or = function(a) {
|
|
115
|
+
return ch(fh(a));
|
|
116
|
+
}, gh = L, dh = Or, ph = gh({}.hasOwnProperty), fe = Object.hasOwn || function(e, t) {
|
|
117
|
+
return ph(dh(e), t);
|
|
118
|
+
}, yh = L, mh = 0, bh = Math.random(), xh = yh(1 .toString), Wo = function(a) {
|
|
119
|
+
return "Symbol(" + (a === void 0 ? "" : a) + ")_" + xh(++mh + bh, 36);
|
|
120
|
+
}, Th = V, Oh = wi, Cn = fe, Sh = Wo, Eh = zo, $h = Ho, Je = Th.Symbol, ia = Oh("wks"), wh = $h ? Je.for || Je : Je && Je.withoutSetter || Sh, z = function(a) {
|
|
121
|
+
return Cn(ia, a) || (ia[a] = Eh && Cn(Je, a) ? Je[a] : wh("Symbol." + a)), ia[a];
|
|
122
|
+
}, Ch = Y, An = ve, Pn = Yo, Ah = ut, Ph = uh, Rh = z, Nh = TypeError, Ih = Rh("toPrimitive"), Mh = function(a, e) {
|
|
123
|
+
if (!An(a) || Pn(a))
|
|
124
124
|
return a;
|
|
125
|
-
var t =
|
|
125
|
+
var t = Ah(a, Ih), r;
|
|
126
126
|
if (t) {
|
|
127
|
-
if (e === void 0 && (e = "default"), r =
|
|
127
|
+
if (e === void 0 && (e = "default"), r = Ch(t, a, e), !An(r) || Pn(r))
|
|
128
128
|
return r;
|
|
129
|
-
throw new
|
|
130
|
-
}
|
|
131
|
-
return e === void 0 && (e = "number"),
|
|
132
|
-
},
|
|
133
|
-
var e =
|
|
134
|
-
return
|
|
135
|
-
},
|
|
136
|
-
return
|
|
137
|
-
},
|
|
138
|
-
return Object.defineProperty(
|
|
129
|
+
throw new Nh("Can't convert object to primitive value");
|
|
130
|
+
}
|
|
131
|
+
return e === void 0 && (e = "number"), Ph(a, e);
|
|
132
|
+
}, _h = Mh, Vh = Yo, qo = function(a) {
|
|
133
|
+
var e = _h(a, "string");
|
|
134
|
+
return Vh(e) ? e : e + "";
|
|
135
|
+
}, Dh = V, Rn = ve, Xa = Dh.document, kh = Rn(Xa) && Rn(Xa.createElement), Sr = function(a) {
|
|
136
|
+
return kh ? Xa.createElement(a) : {};
|
|
137
|
+
}, Lh = le, Bh = k, jh = Sr, Qo = !Lh && !Bh(function() {
|
|
138
|
+
return Object.defineProperty(jh("div"), "a", {
|
|
139
139
|
get: function() {
|
|
140
140
|
return 7;
|
|
141
141
|
}
|
|
142
142
|
}).a !== 7;
|
|
143
|
-
}),
|
|
144
|
-
|
|
145
|
-
if (e =
|
|
143
|
+
}), Fh = le, Uh = Y, Gh = Do, zh = Oi, Hh = Ct, Yh = qo, Xh = fe, Wh = Qo, Nn = Object.getOwnPropertyDescriptor;
|
|
144
|
+
wt.f = Fh ? Nn : function(e, t) {
|
|
145
|
+
if (e = Hh(e), t = Yh(t), Wh)
|
|
146
146
|
try {
|
|
147
|
-
return
|
|
147
|
+
return Nn(e, t);
|
|
148
148
|
} catch (r) {
|
|
149
149
|
}
|
|
150
|
-
if (
|
|
151
|
-
return
|
|
150
|
+
if (Xh(e, t))
|
|
151
|
+
return zh(!Uh(Gh.f, e, t), e[t]);
|
|
152
152
|
};
|
|
153
|
-
var Oe = {},
|
|
153
|
+
var Oe = {}, qh = le, Qh = k, Ko = qh && Qh(function() {
|
|
154
154
|
return Object.defineProperty(function() {
|
|
155
155
|
}, "prototype", {
|
|
156
156
|
value: 42,
|
|
157
157
|
writable: !1
|
|
158
158
|
}).prototype !== 42;
|
|
159
|
-
}),
|
|
160
|
-
if (
|
|
159
|
+
}), Kh = ve, Zh = String, Jh = TypeError, J = function(a) {
|
|
160
|
+
if (Kh(a))
|
|
161
161
|
return a;
|
|
162
|
-
throw new Zh(
|
|
163
|
-
},
|
|
164
|
-
Oe.f =
|
|
165
|
-
if (
|
|
166
|
-
var i =
|
|
167
|
-
i && i[
|
|
168
|
-
configurable:
|
|
169
|
-
enumerable:
|
|
162
|
+
throw new Jh(Zh(a) + " is not an object");
|
|
163
|
+
}, ev = le, tv = Qo, rv = Ko, zt = J, In = qo, av = TypeError, na = Object.defineProperty, iv = Object.getOwnPropertyDescriptor, sa = "enumerable", oa = "configurable", ua = "writable";
|
|
164
|
+
Oe.f = ev ? rv ? function(e, t, r) {
|
|
165
|
+
if (zt(e), t = In(t), zt(r), typeof e == "function" && t === "prototype" && "value" in r && ua in r && !r[ua]) {
|
|
166
|
+
var i = iv(e, t);
|
|
167
|
+
i && i[ua] && (e[t] = r.value, r = {
|
|
168
|
+
configurable: oa in r ? r[oa] : i[oa],
|
|
169
|
+
enumerable: sa in r ? r[sa] : i[sa],
|
|
170
170
|
writable: !1
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
return
|
|
174
|
-
} :
|
|
175
|
-
if (
|
|
173
|
+
return na(e, t, r);
|
|
174
|
+
} : na : function(e, t, r) {
|
|
175
|
+
if (zt(e), t = In(t), zt(r), tv)
|
|
176
176
|
try {
|
|
177
|
-
return
|
|
177
|
+
return na(e, t, r);
|
|
178
178
|
} catch (i) {
|
|
179
179
|
}
|
|
180
180
|
if ("get" in r || "set" in r)
|
|
181
|
-
throw new
|
|
181
|
+
throw new av("Accessors not supported");
|
|
182
182
|
return "value" in r && (e[t] = r.value), e;
|
|
183
183
|
};
|
|
184
|
-
var
|
|
185
|
-
return
|
|
184
|
+
var nv = le, sv = Oe, ov = Oi, Pt = nv ? function(a, e, t) {
|
|
185
|
+
return sv.f(a, e, ov(1, t));
|
|
186
186
|
} : function(a, e, t) {
|
|
187
187
|
return a[e] = t, a;
|
|
188
|
-
},
|
|
189
|
-
}.name === "something",
|
|
190
|
-
EXISTS:
|
|
191
|
-
PROPER:
|
|
192
|
-
CONFIGURABLE:
|
|
193
|
-
},
|
|
194
|
-
|
|
195
|
-
return
|
|
188
|
+
}, Zo = { exports: {} }, Wa = le, uv = fe, Jo = Function.prototype, lv = Wa && Object.getOwnPropertyDescriptor, Ci = uv(Jo, "name"), hv = Ci && function() {
|
|
189
|
+
}.name === "something", vv = Ci && (!Wa || Wa && lv(Jo, "name").configurable), Er = {
|
|
190
|
+
EXISTS: Ci,
|
|
191
|
+
PROPER: hv,
|
|
192
|
+
CONFIGURABLE: vv
|
|
193
|
+
}, fv = L, cv = B, qa = $i, gv = fv(Function.toString);
|
|
194
|
+
cv(qa.inspectSource) || (qa.inspectSource = function(a) {
|
|
195
|
+
return gv(a);
|
|
196
196
|
});
|
|
197
|
-
var
|
|
198
|
-
return
|
|
199
|
-
},
|
|
200
|
-
return
|
|
201
|
-
},
|
|
197
|
+
var Ai = qa.inspectSource, dv = V, pv = B, Mn = dv.WeakMap, yv = pv(Mn) && /native code/.test(String(Mn)), mv = wi, bv = Wo, _n = mv("keys"), Pi = function(a) {
|
|
198
|
+
return _n[a] || (_n[a] = bv(a));
|
|
199
|
+
}, Ri = {}, xv = yv, eu = V, Tv = ve, Ov = Pt, la = fe, ha = $i, Sv = Pi, Ev = Ri, Vn = "Object already initialized", Qa = eu.TypeError, $v = eu.WeakMap, gr, St, dr, wv = function(a) {
|
|
200
|
+
return dr(a) ? St(a) : gr(a, {});
|
|
201
|
+
}, Cv = function(a) {
|
|
202
202
|
return function(e) {
|
|
203
203
|
var t;
|
|
204
|
-
if (!
|
|
205
|
-
throw new
|
|
204
|
+
if (!Tv(e) || (t = St(e)).type !== a)
|
|
205
|
+
throw new Qa("Incompatible receiver, " + a + " required");
|
|
206
206
|
return t;
|
|
207
207
|
};
|
|
208
208
|
};
|
|
209
|
-
if (
|
|
210
|
-
var de =
|
|
211
|
-
de.get = de.get, de.has = de.has, de.set = de.set,
|
|
209
|
+
if (xv || ha.state) {
|
|
210
|
+
var de = ha.state || (ha.state = new $v());
|
|
211
|
+
de.get = de.get, de.has = de.has, de.set = de.set, gr = function(a, e) {
|
|
212
212
|
if (de.has(a))
|
|
213
|
-
throw new
|
|
213
|
+
throw new Qa(Vn);
|
|
214
214
|
return e.facade = a, de.set(a, e), e;
|
|
215
|
-
},
|
|
215
|
+
}, St = function(a) {
|
|
216
216
|
return de.get(a) || {};
|
|
217
|
-
},
|
|
217
|
+
}, dr = function(a) {
|
|
218
218
|
return de.has(a);
|
|
219
219
|
};
|
|
220
220
|
} else {
|
|
221
|
-
var Ye =
|
|
222
|
-
|
|
223
|
-
if (
|
|
224
|
-
throw new
|
|
225
|
-
return e.facade = a,
|
|
226
|
-
},
|
|
227
|
-
return
|
|
228
|
-
},
|
|
229
|
-
return
|
|
221
|
+
var Ye = Sv("state");
|
|
222
|
+
Ev[Ye] = !0, gr = function(a, e) {
|
|
223
|
+
if (la(a, Ye))
|
|
224
|
+
throw new Qa(Vn);
|
|
225
|
+
return e.facade = a, Ov(a, Ye, e), e;
|
|
226
|
+
}, St = function(a) {
|
|
227
|
+
return la(a, Ye) ? a[Ye] : {};
|
|
228
|
+
}, dr = function(a) {
|
|
229
|
+
return la(a, Ye);
|
|
230
230
|
};
|
|
231
231
|
}
|
|
232
|
-
var
|
|
233
|
-
set:
|
|
234
|
-
get:
|
|
235
|
-
has:
|
|
236
|
-
enforce:
|
|
237
|
-
getterFor:
|
|
238
|
-
},
|
|
239
|
-
return
|
|
232
|
+
var $r = {
|
|
233
|
+
set: gr,
|
|
234
|
+
get: St,
|
|
235
|
+
has: dr,
|
|
236
|
+
enforce: wv,
|
|
237
|
+
getterFor: Cv
|
|
238
|
+
}, Ni = L, Av = k, Pv = B, Ht = fe, Ka = le, Rv = Er.CONFIGURABLE, Nv = Ai, tu = $r, Iv = tu.enforce, Mv = tu.get, Dn = String, or = Object.defineProperty, _v = Ni("".slice), Vv = Ni("".replace), Dv = Ni([].join), kv = Ka && !Av(function() {
|
|
239
|
+
return or(function() {
|
|
240
240
|
}, "length", { value: 8 }).length !== 8;
|
|
241
|
-
}),
|
|
242
|
-
|
|
241
|
+
}), Lv = String(String).split("String"), Bv = Zo.exports = function(a, e, t) {
|
|
242
|
+
_v(Dn(e), 0, 7) === "Symbol(" && (e = "[" + Vv(Dn(e), /^Symbol\(([^)]*)\).*$/, "$1") + "]"), t && t.getter && (e = "get " + e), t && t.setter && (e = "set " + e), (!Ht(a, "name") || Rv && a.name !== e) && (Ka ? or(a, "name", { value: e, configurable: !0 }) : a.name = e), kv && t && Ht(t, "arity") && a.length !== t.arity && or(a, "length", { value: t.arity });
|
|
243
243
|
try {
|
|
244
|
-
t &&
|
|
244
|
+
t && Ht(t, "constructor") && t.constructor ? Ka && or(a, "prototype", { writable: !1 }) : a.prototype && (a.prototype = void 0);
|
|
245
245
|
} catch (i) {
|
|
246
246
|
}
|
|
247
|
-
var r =
|
|
248
|
-
return
|
|
247
|
+
var r = Iv(a);
|
|
248
|
+
return Ht(r, "source") || (r.source = Dv(Lv, typeof e == "string" ? e : "")), a;
|
|
249
249
|
};
|
|
250
|
-
Function.prototype.toString =
|
|
251
|
-
return
|
|
250
|
+
Function.prototype.toString = Bv(function() {
|
|
251
|
+
return Pv(this) && Mv(this).source || Nv(this);
|
|
252
252
|
}, "toString");
|
|
253
|
-
var
|
|
253
|
+
var ru = Zo.exports, jv = B, Fv = Oe, Uv = ru, Gv = Ei, Ue = function(a, e, t, r) {
|
|
254
254
|
r || (r = {});
|
|
255
255
|
var i = r.enumerable, n = r.name !== void 0 ? r.name : e;
|
|
256
|
-
if (
|
|
257
|
-
i ? a[e] = t :
|
|
256
|
+
if (jv(t) && Uv(t, n, r), r.global)
|
|
257
|
+
i ? a[e] = t : Gv(e, t);
|
|
258
258
|
else {
|
|
259
259
|
try {
|
|
260
260
|
r.unsafe ? a[e] && (i = !0) : delete a[e];
|
|
261
261
|
} catch (o) {
|
|
262
262
|
}
|
|
263
|
-
i ? a[e] = t :
|
|
263
|
+
i ? a[e] = t : Fv.f(a, e, {
|
|
264
264
|
value: t,
|
|
265
265
|
enumerable: !1,
|
|
266
266
|
configurable: !r.nonConfigurable,
|
|
@@ -268,26 +268,26 @@ var tu = Ko.exports, Bv = B, jv = Oe, Fv = tu, Uv = Si, Ue = function(a, e, t, r
|
|
|
268
268
|
});
|
|
269
269
|
}
|
|
270
270
|
return a;
|
|
271
|
-
},
|
|
271
|
+
}, au = {}, zv = Math.ceil, Hv = Math.floor, Yv = Math.trunc || function(e) {
|
|
272
272
|
var t = +e;
|
|
273
|
-
return (t > 0 ?
|
|
274
|
-
},
|
|
273
|
+
return (t > 0 ? Hv : zv)(t);
|
|
274
|
+
}, Xv = Yv, wr = function(a) {
|
|
275
275
|
var e = +a;
|
|
276
|
-
return e !== e || e === 0 ? 0 :
|
|
277
|
-
},
|
|
278
|
-
var t =
|
|
279
|
-
return t < 0 ?
|
|
280
|
-
},
|
|
281
|
-
var e =
|
|
282
|
-
return e > 0 ?
|
|
283
|
-
},
|
|
284
|
-
return
|
|
285
|
-
},
|
|
276
|
+
return e !== e || e === 0 ? 0 : Xv(e);
|
|
277
|
+
}, Wv = wr, qv = Math.max, Qv = Math.min, Kv = function(a, e) {
|
|
278
|
+
var t = Wv(a);
|
|
279
|
+
return t < 0 ? qv(t + e, 0) : Qv(t, e);
|
|
280
|
+
}, Zv = wr, Jv = Math.min, lt = function(a) {
|
|
281
|
+
var e = Zv(a);
|
|
282
|
+
return e > 0 ? Jv(e, 9007199254740991) : 0;
|
|
283
|
+
}, ef = lt, Ii = function(a) {
|
|
284
|
+
return ef(a.length);
|
|
285
|
+
}, tf = Ct, rf = Kv, af = Ii, kn = function(a) {
|
|
286
286
|
return function(e, t, r) {
|
|
287
|
-
var i =
|
|
287
|
+
var i = tf(e), n = af(i);
|
|
288
288
|
if (n === 0)
|
|
289
289
|
return !a && -1;
|
|
290
|
-
var o =
|
|
290
|
+
var o = rf(r, n), s;
|
|
291
291
|
if (a && t !== t) {
|
|
292
292
|
for (; n > o; )
|
|
293
293
|
if (s = i[o++], s !== s)
|
|
@@ -298,21 +298,21 @@ var tu = Ko.exports, Bv = B, jv = Oe, Fv = tu, Uv = Si, Ue = function(a, e, t, r
|
|
|
298
298
|
return a || o || 0;
|
|
299
299
|
return !a && -1;
|
|
300
300
|
};
|
|
301
|
-
},
|
|
301
|
+
}, iu = {
|
|
302
302
|
// `Array.prototype.includes` method
|
|
303
303
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
304
|
-
includes:
|
|
304
|
+
includes: kn(!0),
|
|
305
305
|
// `Array.prototype.indexOf` method
|
|
306
306
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
307
|
-
indexOf:
|
|
308
|
-
},
|
|
309
|
-
var t =
|
|
307
|
+
indexOf: kn(!1)
|
|
308
|
+
}, nf = L, va = fe, sf = Ct, of = iu.indexOf, uf = Ri, Ln = nf([].push), nu = function(a, e) {
|
|
309
|
+
var t = sf(a), r = 0, i = [], n;
|
|
310
310
|
for (n in t)
|
|
311
|
-
!
|
|
311
|
+
!va(uf, n) && va(t, n) && Ln(i, n);
|
|
312
312
|
for (; e.length > r; )
|
|
313
|
-
|
|
313
|
+
va(t, n = e[r++]) && (~of(i, n) || Ln(i, n));
|
|
314
314
|
return i;
|
|
315
|
-
},
|
|
315
|
+
}, Mi = [
|
|
316
316
|
"constructor",
|
|
317
317
|
"hasOwnProperty",
|
|
318
318
|
"isPrototypeOf",
|
|
@@ -320,187 +320,187 @@ var tu = Ko.exports, Bv = B, jv = Oe, Fv = tu, Uv = Si, Ue = function(a, e, t, r
|
|
|
320
320
|
"toLocaleString",
|
|
321
321
|
"toString",
|
|
322
322
|
"valueOf"
|
|
323
|
-
],
|
|
324
|
-
|
|
325
|
-
return
|
|
323
|
+
], lf = nu, hf = Mi, vf = hf.concat("length", "prototype");
|
|
324
|
+
au.f = Object.getOwnPropertyNames || function(e) {
|
|
325
|
+
return lf(e, vf);
|
|
326
326
|
};
|
|
327
|
-
var
|
|
328
|
-
|
|
329
|
-
var
|
|
330
|
-
var t =
|
|
331
|
-
return r ?
|
|
332
|
-
},
|
|
333
|
-
for (var r =
|
|
327
|
+
var su = {};
|
|
328
|
+
su.f = Object.getOwnPropertySymbols;
|
|
329
|
+
var ff = Fe, cf = L, gf = au, df = su, pf = J, yf = cf([].concat), mf = ff("Reflect", "ownKeys") || function(e) {
|
|
330
|
+
var t = gf.f(pf(e)), r = df.f;
|
|
331
|
+
return r ? yf(t, r(e)) : t;
|
|
332
|
+
}, Bn = fe, bf = mf, xf = wt, Tf = Oe, Of = function(a, e, t) {
|
|
333
|
+
for (var r = bf(e), i = Tf.f, n = xf.f, o = 0; o < r.length; o++) {
|
|
334
334
|
var s = r[o];
|
|
335
|
-
!
|
|
336
|
-
}
|
|
337
|
-
},
|
|
338
|
-
var t = wf
|
|
339
|
-
return t ===
|
|
340
|
-
},
|
|
341
|
-
return String(a).replace(
|
|
342
|
-
},
|
|
335
|
+
!Bn(a, s) && !(t && Bn(t, s)) && i(a, s, n(e, s));
|
|
336
|
+
}
|
|
337
|
+
}, Sf = k, Ef = B, $f = /#|\.prototype\./, Rt = function(a, e) {
|
|
338
|
+
var t = Cf[wf(a)];
|
|
339
|
+
return t === Pf ? !0 : t === Af ? !1 : Ef(e) ? Sf(e) : !!e;
|
|
340
|
+
}, wf = Rt.normalize = function(a) {
|
|
341
|
+
return String(a).replace($f, ".").toLowerCase();
|
|
342
|
+
}, Cf = Rt.data = {}, Af = Rt.NATIVE = "N", Pf = Rt.POLYFILL = "P", ou = Rt, Yt = V, Rf = wt.f, Nf = Pt, If = Ue, Mf = Ei, _f = Of, Vf = ou, ee = function(a, e) {
|
|
343
343
|
var t = a.target, r = a.global, i = a.stat, n, o, s, u, l, h;
|
|
344
|
-
if (r ? o =
|
|
344
|
+
if (r ? o = Yt : i ? o = Yt[t] || Mf(t, {}) : o = Yt[t] && Yt[t].prototype, o)
|
|
345
345
|
for (s in e) {
|
|
346
|
-
if (l = e[s], a.dontCallGetSet ? (h =
|
|
346
|
+
if (l = e[s], a.dontCallGetSet ? (h = Rf(o, s), u = h && h.value) : u = o[s], n = Vf(r ? s : t + (i ? "." : "#") + s, a.forced), !n && u !== void 0) {
|
|
347
347
|
if (typeof l == typeof u)
|
|
348
348
|
continue;
|
|
349
|
-
|
|
349
|
+
_f(l, u);
|
|
350
350
|
}
|
|
351
|
-
(a.sham || u && u.sham) &&
|
|
351
|
+
(a.sham || u && u.sham) && Nf(l, "sham", !0), If(o, s, l, a);
|
|
352
352
|
}
|
|
353
|
-
},
|
|
354
|
-
return
|
|
355
|
-
},
|
|
356
|
-
return
|
|
357
|
-
}(),
|
|
353
|
+
}, ct = V, Df = At, kf = Be, Xt = function(a) {
|
|
354
|
+
return Df.slice(0, a.length) === a;
|
|
355
|
+
}, uu = function() {
|
|
356
|
+
return Xt("Bun/") ? "BUN" : Xt("Cloudflare-Workers") ? "CLOUDFLARE" : Xt("Deno/") ? "DENO" : Xt("Node.js/") ? "NODE" : ct.Bun && typeof Bun.version == "string" ? "BUN" : ct.Deno && typeof Deno.version == "object" ? "DENO" : kf(ct.process) === "process" ? "NODE" : ct.window && ct.document ? "BROWSER" : "REST";
|
|
357
|
+
}(), Lf = uu, Cr = Lf === "NODE", Bf = L, jf = Te, Ff = function(a, e, t) {
|
|
358
358
|
try {
|
|
359
|
-
return
|
|
359
|
+
return Bf(jf(Object.getOwnPropertyDescriptor(a, e)[t]));
|
|
360
360
|
} catch (r) {
|
|
361
361
|
}
|
|
362
|
-
},
|
|
363
|
-
return
|
|
364
|
-
},
|
|
365
|
-
if (
|
|
362
|
+
}, Uf = ve, Gf = function(a) {
|
|
363
|
+
return Uf(a) || a === null;
|
|
364
|
+
}, zf = Gf, Hf = String, Yf = TypeError, Xf = function(a) {
|
|
365
|
+
if (zf(a))
|
|
366
366
|
return a;
|
|
367
|
-
throw new
|
|
368
|
-
},
|
|
367
|
+
throw new Yf("Can't set " + Hf(a) + " as a prototype");
|
|
368
|
+
}, Wf = Ff, qf = ve, Qf = he, Kf = Xf, lu = Object.setPrototypeOf || ("__proto__" in {} ? function() {
|
|
369
369
|
var a = !1, e = {}, t;
|
|
370
370
|
try {
|
|
371
|
-
t =
|
|
371
|
+
t = Wf(Object.prototype, "__proto__", "set"), t(e, []), a = e instanceof Array;
|
|
372
372
|
} catch (r) {
|
|
373
373
|
}
|
|
374
374
|
return function(i, n) {
|
|
375
|
-
return
|
|
375
|
+
return Qf(i), Kf(n), qf(i) && (a ? t(i, n) : i.__proto__ = n), i;
|
|
376
376
|
};
|
|
377
|
-
}() : void 0),
|
|
378
|
-
a && !t && (a = a.prototype), a && !
|
|
379
|
-
},
|
|
380
|
-
return t.get &&
|
|
381
|
-
},
|
|
382
|
-
var e =
|
|
383
|
-
|
|
377
|
+
}() : void 0), Zf = Oe.f, Jf = fe, ec = z, jn = ec("toStringTag"), Ar = function(a, e, t) {
|
|
378
|
+
a && !t && (a = a.prototype), a && !Jf(a, jn) && Zf(a, jn, { configurable: !0, value: e });
|
|
379
|
+
}, Fn = ru, tc = Oe, rc = function(a, e, t) {
|
|
380
|
+
return t.get && Fn(t.get, e, { getter: !0 }), t.set && Fn(t.set, e, { setter: !0 }), tc.f(a, e, t);
|
|
381
|
+
}, ac = Fe, ic = rc, nc = z, sc = le, Un = nc("species"), oc = function(a) {
|
|
382
|
+
var e = ac(a);
|
|
383
|
+
sc && e && !e[Un] && ic(e, Un, {
|
|
384
384
|
configurable: !0,
|
|
385
385
|
get: function() {
|
|
386
386
|
return this;
|
|
387
387
|
}
|
|
388
388
|
});
|
|
389
|
-
},
|
|
390
|
-
if (
|
|
389
|
+
}, uc = xr, lc = TypeError, hc = function(a, e) {
|
|
390
|
+
if (uc(e, a))
|
|
391
391
|
return a;
|
|
392
|
-
throw new
|
|
393
|
-
},
|
|
394
|
-
|
|
395
|
-
var
|
|
392
|
+
throw new lc("Incorrect invocation");
|
|
393
|
+
}, vc = z, fc = vc("toStringTag"), hu = {};
|
|
394
|
+
hu[fc] = "z";
|
|
395
|
+
var cc = String(hu) === "[object z]", gc = cc, dc = B, ur = Be, pc = z, yc = pc("toStringTag"), mc = Object, bc = ur(function() {
|
|
396
396
|
return arguments;
|
|
397
|
-
}()) === "Arguments",
|
|
397
|
+
}()) === "Arguments", xc = function(a, e) {
|
|
398
398
|
try {
|
|
399
399
|
return a[e];
|
|
400
400
|
} catch (t) {
|
|
401
401
|
}
|
|
402
|
-
},
|
|
402
|
+
}, _i = gc ? ur : function(a) {
|
|
403
403
|
var e, t, r;
|
|
404
|
-
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t =
|
|
405
|
-
},
|
|
406
|
-
},
|
|
407
|
-
if (!
|
|
404
|
+
return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t = xc(e = mc(a), yc)) == "string" ? t : bc ? ur(e) : (r = ur(e)) === "Object" && dc(e.callee) ? "Arguments" : r;
|
|
405
|
+
}, Tc = L, Oc = k, vu = B, Sc = _i, Ec = Fe, $c = Ai, fu = function() {
|
|
406
|
+
}, cu = Ec("Reflect", "construct"), Vi = /^\s*(?:class|function)\b/, wc = Tc(Vi.exec), Cc = !Vi.test(fu), gt = function(e) {
|
|
407
|
+
if (!vu(e))
|
|
408
408
|
return !1;
|
|
409
409
|
try {
|
|
410
|
-
return fu
|
|
410
|
+
return cu(fu, [], e), !0;
|
|
411
411
|
} catch (t) {
|
|
412
412
|
return !1;
|
|
413
413
|
}
|
|
414
|
-
},
|
|
415
|
-
if (!
|
|
414
|
+
}, gu = function(e) {
|
|
415
|
+
if (!vu(e))
|
|
416
416
|
return !1;
|
|
417
|
-
switch (
|
|
417
|
+
switch (Sc(e)) {
|
|
418
418
|
case "AsyncFunction":
|
|
419
419
|
case "GeneratorFunction":
|
|
420
420
|
case "AsyncGeneratorFunction":
|
|
421
421
|
return !1;
|
|
422
422
|
}
|
|
423
423
|
try {
|
|
424
|
-
return
|
|
424
|
+
return Cc || !!wc(Vi, $c(e));
|
|
425
425
|
} catch (t) {
|
|
426
426
|
return !0;
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
|
-
|
|
430
|
-
var
|
|
429
|
+
gu.sham = !0;
|
|
430
|
+
var Ac = !cu || Oc(function() {
|
|
431
431
|
var a;
|
|
432
|
-
return
|
|
432
|
+
return gt(gt.call) || !gt(Object) || !gt(function() {
|
|
433
433
|
a = !0;
|
|
434
434
|
}) || a;
|
|
435
|
-
}) ?
|
|
436
|
-
if (
|
|
435
|
+
}) ? gu : gt, Pc = Ac, Rc = Tr, Nc = TypeError, Ic = function(a) {
|
|
436
|
+
if (Pc(a))
|
|
437
437
|
return a;
|
|
438
|
-
throw new Rc(
|
|
439
|
-
},
|
|
440
|
-
var t =
|
|
441
|
-
return t === void 0 ||
|
|
442
|
-
},
|
|
443
|
-
return
|
|
444
|
-
}),
|
|
445
|
-
if (
|
|
446
|
-
return
|
|
447
|
-
},
|
|
448
|
-
return
|
|
438
|
+
throw new Nc(Rc(a) + " is not a constructor");
|
|
439
|
+
}, Gn = J, Mc = Ic, _c = je, Vc = z, Dc = Vc("species"), du = function(a, e) {
|
|
440
|
+
var t = Gn(a).constructor, r;
|
|
441
|
+
return t === void 0 || _c(r = Gn(t)[Dc]) ? e : Mc(r);
|
|
442
|
+
}, kc = br, pu = Function.prototype, zn = pu.apply, Hn = pu.call, yu = typeof Reflect == "object" && Reflect.apply || (kc ? Hn.bind(zn) : function() {
|
|
443
|
+
return Hn.apply(zn, arguments);
|
|
444
|
+
}), Lc = Be, Bc = L, Pr = function(a) {
|
|
445
|
+
if (Lc(a) === "Function")
|
|
446
|
+
return Bc(a);
|
|
447
|
+
}, Yn = Pr, jc = Te, Fc = br, Uc = Yn(Yn.bind), Di = function(a, e) {
|
|
448
|
+
return jc(a), e === void 0 ? a : Fc ? Uc(a, e) : function() {
|
|
449
449
|
return a.apply(e, arguments);
|
|
450
450
|
};
|
|
451
|
-
},
|
|
451
|
+
}, Gc = Fe, mu = Gc("document", "documentElement"), zc = L, Hc = zc([].slice), Yc = TypeError, Xc = function(a, e) {
|
|
452
452
|
if (a < e)
|
|
453
|
-
throw new
|
|
453
|
+
throw new Yc("Not enough arguments");
|
|
454
454
|
return a;
|
|
455
|
-
},
|
|
456
|
-
|
|
457
|
-
|
|
455
|
+
}, Wc = At, bu = /(?:ipad|iphone|ipod).*applewebkit/i.test(Wc), ae = V, qc = yu, Qc = Di, Xn = B, Kc = fe, xu = k, Wn = mu, Zc = Hc, qn = Sr, Jc = Xc, eg = bu, tg = Cr, Za = ae.setImmediate, Ja = ae.clearImmediate, rg = ae.process, fa = ae.Dispatch, ag = ae.Function, Qn = ae.MessageChannel, ig = ae.String, ca = 0, Tt = {}, Kn = "onreadystatechange", Et, Ie, ga, da;
|
|
456
|
+
xu(function() {
|
|
457
|
+
Et = ae.location;
|
|
458
458
|
});
|
|
459
|
-
var
|
|
460
|
-
if (
|
|
461
|
-
var e =
|
|
462
|
-
delete
|
|
459
|
+
var ki = function(a) {
|
|
460
|
+
if (Kc(Tt, a)) {
|
|
461
|
+
var e = Tt[a];
|
|
462
|
+
delete Tt[a], e();
|
|
463
463
|
}
|
|
464
|
-
},
|
|
464
|
+
}, pa = function(a) {
|
|
465
465
|
return function() {
|
|
466
|
-
|
|
466
|
+
ki(a);
|
|
467
467
|
};
|
|
468
|
-
}, Kn = function(a) {
|
|
469
|
-
Di(a.data);
|
|
470
468
|
}, Zn = function(a) {
|
|
471
|
-
|
|
469
|
+
ki(a.data);
|
|
470
|
+
}, Jn = function(a) {
|
|
471
|
+
ae.postMessage(ig(a), Et.protocol + "//" + Et.host);
|
|
472
472
|
};
|
|
473
|
-
(!
|
|
474
|
-
|
|
475
|
-
var t =
|
|
476
|
-
return
|
|
477
|
-
|
|
478
|
-
}, Ie(
|
|
479
|
-
},
|
|
480
|
-
delete
|
|
481
|
-
},
|
|
482
|
-
|
|
483
|
-
} :
|
|
484
|
-
|
|
485
|
-
} :
|
|
486
|
-
|
|
487
|
-
|
|
473
|
+
(!Za || !Ja) && (Za = function(e) {
|
|
474
|
+
Jc(arguments.length, 1);
|
|
475
|
+
var t = Xn(e) ? e : ag(e), r = Zc(arguments, 1);
|
|
476
|
+
return Tt[++ca] = function() {
|
|
477
|
+
qc(t, void 0, r);
|
|
478
|
+
}, Ie(ca), ca;
|
|
479
|
+
}, Ja = function(e) {
|
|
480
|
+
delete Tt[e];
|
|
481
|
+
}, tg ? Ie = function(a) {
|
|
482
|
+
rg.nextTick(pa(a));
|
|
483
|
+
} : fa && fa.now ? Ie = function(a) {
|
|
484
|
+
fa.now(pa(a));
|
|
485
|
+
} : Qn && !eg ? (ga = new Qn(), da = ga.port2, ga.port1.onmessage = Zn, Ie = Qc(da.postMessage, da)) : ae.addEventListener && Xn(ae.postMessage) && !ae.importScripts && Et && Et.protocol !== "file:" && !xu(Jn) ? (Ie = Jn, ae.addEventListener("message", Zn, !1)) : Kn in qn("script") ? Ie = function(a) {
|
|
486
|
+
Wn.appendChild(qn("script"))[Kn] = function() {
|
|
487
|
+
Wn.removeChild(this), ki(a);
|
|
488
488
|
};
|
|
489
489
|
} : Ie = function(a) {
|
|
490
|
-
setTimeout(
|
|
490
|
+
setTimeout(pa(a), 0);
|
|
491
491
|
});
|
|
492
|
-
var
|
|
493
|
-
set:
|
|
494
|
-
clear:
|
|
495
|
-
},
|
|
496
|
-
if (!
|
|
497
|
-
return
|
|
498
|
-
var e =
|
|
492
|
+
var Tu = {
|
|
493
|
+
set: Za,
|
|
494
|
+
clear: Ja
|
|
495
|
+
}, es = V, ng = le, sg = Object.getOwnPropertyDescriptor, og = function(a) {
|
|
496
|
+
if (!ng)
|
|
497
|
+
return es[a];
|
|
498
|
+
var e = sg(es, a);
|
|
499
499
|
return e && e.value;
|
|
500
|
-
},
|
|
500
|
+
}, Ou = function() {
|
|
501
501
|
this.head = null, this.tail = null;
|
|
502
502
|
};
|
|
503
|
-
|
|
503
|
+
Ou.prototype = {
|
|
504
504
|
add: function(a) {
|
|
505
505
|
var e = { item: a, next: null }, t = this.tail;
|
|
506
506
|
t ? t.next = e : this.head = e, this.tail = e;
|
|
@@ -513,207 +513,207 @@ Tu.prototype = {
|
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
515
|
};
|
|
516
|
-
var
|
|
517
|
-
if (!
|
|
518
|
-
var
|
|
516
|
+
var Su = Ou, ug = At, lg = /ipad|iphone|ipod/i.test(ug) && typeof Pebble != "undefined", hg = At, vg = /web0s(?!.*chrome)/i.test(hg), nt = V, fg = og, ts = Di, ya = Tu.set, cg = Su, gg = bu, dg = lg, pg = vg, ma = Cr, rs = nt.MutationObserver || nt.WebKitMutationObserver, as = nt.document, is = nt.process, Wt = nt.Promise, ei = fg("queueMicrotask"), Xe, ba, xa, qt, ns;
|
|
517
|
+
if (!ei) {
|
|
518
|
+
var Qt = new cg(), Kt = function() {
|
|
519
519
|
var a, e;
|
|
520
|
-
for (
|
|
520
|
+
for (ma && (a = is.domain) && a.exit(); e = Qt.get(); )
|
|
521
521
|
try {
|
|
522
522
|
e();
|
|
523
523
|
} catch (t) {
|
|
524
|
-
throw
|
|
524
|
+
throw Qt.head && Xe(), t;
|
|
525
525
|
}
|
|
526
526
|
a && a.enter();
|
|
527
527
|
};
|
|
528
|
-
!
|
|
529
|
-
|
|
530
|
-
}) : !
|
|
531
|
-
|
|
532
|
-
}) :
|
|
533
|
-
|
|
534
|
-
} : (
|
|
535
|
-
|
|
536
|
-
}),
|
|
537
|
-
|
|
528
|
+
!gg && !ma && !pg && rs && as ? (ba = !0, xa = as.createTextNode(""), new rs(Kt).observe(xa, { characterData: !0 }), Xe = function() {
|
|
529
|
+
xa.data = ba = !ba;
|
|
530
|
+
}) : !dg && Wt && Wt.resolve ? (qt = Wt.resolve(void 0), qt.constructor = Wt, ns = ts(qt.then, qt), Xe = function() {
|
|
531
|
+
ns(Kt);
|
|
532
|
+
}) : ma ? Xe = function() {
|
|
533
|
+
is.nextTick(Kt);
|
|
534
|
+
} : (ya = ts(ya, nt), Xe = function() {
|
|
535
|
+
ya(Kt);
|
|
536
|
+
}), ei = function(a) {
|
|
537
|
+
Qt.head || Xe(), Qt.add(a);
|
|
538
538
|
};
|
|
539
539
|
}
|
|
540
|
-
var
|
|
540
|
+
var yg = ei, mg = function(a, e) {
|
|
541
541
|
try {
|
|
542
542
|
arguments.length === 1 ? console.error(a) : console.error(a, e);
|
|
543
543
|
} catch (t) {
|
|
544
544
|
}
|
|
545
|
-
},
|
|
545
|
+
}, Li = function(a) {
|
|
546
546
|
try {
|
|
547
547
|
return { error: !1, value: a() };
|
|
548
548
|
} catch (e) {
|
|
549
549
|
return { error: !0, value: e };
|
|
550
550
|
}
|
|
551
|
-
},
|
|
552
|
-
|
|
553
|
-
var
|
|
554
|
-
var a =
|
|
555
|
-
if (!e &&
|
|
551
|
+
}, bg = V, Rr = bg.Promise, xg = V, Ot = Rr, Tg = B, Og = ou, Sg = Ai, Eg = z, ss = uu, Ta = Si;
|
|
552
|
+
Ot && Ot.prototype;
|
|
553
|
+
var $g = Eg("species"), ti = !1, Eu = Tg(xg.PromiseRejectionEvent), wg = Og("Promise", function() {
|
|
554
|
+
var a = Sg(Ot), e = a !== String(Ot);
|
|
555
|
+
if (!e && Ta === 66)
|
|
556
556
|
return !0;
|
|
557
|
-
if (!
|
|
558
|
-
var t = new
|
|
557
|
+
if (!Ta || Ta < 51 || !/native code/.test(a)) {
|
|
558
|
+
var t = new Ot(function(n) {
|
|
559
559
|
n(1);
|
|
560
560
|
}), r = function(n) {
|
|
561
561
|
n(function() {
|
|
562
562
|
}, function() {
|
|
563
563
|
});
|
|
564
564
|
}, i = t.constructor = {};
|
|
565
|
-
if (i[
|
|
566
|
-
}) instanceof r, !
|
|
565
|
+
if (i[$g] = r, ti = t.then(function() {
|
|
566
|
+
}) instanceof r, !ti)
|
|
567
567
|
return !0;
|
|
568
568
|
}
|
|
569
|
-
return !e && (
|
|
570
|
-
}),
|
|
571
|
-
CONSTRUCTOR:
|
|
572
|
-
REJECTION_EVENT:
|
|
573
|
-
SUBCLASSING:
|
|
574
|
-
},
|
|
569
|
+
return !e && (ss === "BROWSER" || ss === "DENO") && !Eu;
|
|
570
|
+
}), Nt = {
|
|
571
|
+
CONSTRUCTOR: wg,
|
|
572
|
+
REJECTION_EVENT: Eu,
|
|
573
|
+
SUBCLASSING: ti
|
|
574
|
+
}, ht = {}, os = Te, Cg = TypeError, Ag = function(a) {
|
|
575
575
|
var e, t;
|
|
576
576
|
this.promise = new a(function(r, i) {
|
|
577
577
|
if (e !== void 0 || t !== void 0)
|
|
578
|
-
throw new
|
|
578
|
+
throw new Cg("Bad Promise constructor");
|
|
579
579
|
e = r, t = i;
|
|
580
|
-
}), this.resolve =
|
|
580
|
+
}), this.resolve = os(e), this.reject = os(t);
|
|
581
581
|
};
|
|
582
|
-
|
|
583
|
-
return new
|
|
582
|
+
ht.f = function(a) {
|
|
583
|
+
return new Ag(a);
|
|
584
584
|
};
|
|
585
|
-
var
|
|
585
|
+
var Pg = ee, pr = Cr, we = V, st = Y, us = Ue, ls = lu, Rg = Ar, Ng = oc, Ig = Te, lr = B, Mg = ve, _g = hc, Vg = du, $u = Tu.set, Bi = yg, Dg = mg, kg = Li, Lg = Su, wu = $r, yr = Rr, ji = Nt, Cu = ht, Nr = "Promise", Au = ji.CONSTRUCTOR, Bg = ji.REJECTION_EVENT, jg = ji.SUBCLASSING, Oa = wu.getterFor(Nr), Fg = wu.set, Ke = yr && yr.prototype, De = yr, Zt = Ke, Pu = we.TypeError, ri = we.document, Fi = we.process, ai = Cu.f, Ug = ai, Gg = !!(ri && ri.createEvent && we.dispatchEvent), Ru = "unhandledrejection", zg = "rejectionhandled", hs = 0, Nu = 1, Hg = 2, Ui = 1, Iu = 2, Jt, vs, Yg, fs, Mu = function(a) {
|
|
586
586
|
var e;
|
|
587
|
-
return
|
|
588
|
-
},
|
|
589
|
-
var t = e.value, r = e.state ===
|
|
587
|
+
return Mg(a) && lr(e = a.then) ? e : !1;
|
|
588
|
+
}, _u = function(a, e) {
|
|
589
|
+
var t = e.value, r = e.state === Nu, i = r ? a.ok : a.fail, n = a.resolve, o = a.reject, s = a.domain, u, l, h;
|
|
590
590
|
try {
|
|
591
|
-
i ? (r || (e.rejection ===
|
|
591
|
+
i ? (r || (e.rejection === Iu && Wg(e), e.rejection = Ui), i === !0 ? u = t : (s && s.enter(), u = i(t), s && (s.exit(), h = !0)), u === a.promise ? o(new Pu("Promise-chain cycle")) : (l = Mu(u)) ? st(l, u, n, o) : n(u)) : o(t);
|
|
592
592
|
} catch (f) {
|
|
593
593
|
s && !h && s.exit(), o(f);
|
|
594
594
|
}
|
|
595
|
-
},
|
|
596
|
-
a.notified || (a.notified = !0,
|
|
595
|
+
}, Vu = function(a, e) {
|
|
596
|
+
a.notified || (a.notified = !0, Bi(function() {
|
|
597
597
|
for (var t = a.reactions, r; r = t.get(); )
|
|
598
|
-
|
|
599
|
-
a.notified = !1, e && !a.rejection &&
|
|
598
|
+
_u(r, a);
|
|
599
|
+
a.notified = !1, e && !a.rejection && Xg(a);
|
|
600
600
|
}));
|
|
601
|
-
},
|
|
601
|
+
}, Du = function(a, e, t) {
|
|
602
602
|
var r, i;
|
|
603
|
-
|
|
604
|
-
},
|
|
605
|
-
|
|
606
|
-
var e = a.facade, t = a.value, r =
|
|
607
|
-
if (r && (i =
|
|
608
|
-
|
|
609
|
-
}), a.rejection =
|
|
603
|
+
Gg ? (r = ri.createEvent("Event"), r.promise = e, r.reason = t, r.initEvent(a, !1, !0), we.dispatchEvent(r)) : r = { promise: e, reason: t }, !Bg && (i = we["on" + a]) ? i(r) : a === Ru && Dg("Unhandled promise rejection", t);
|
|
604
|
+
}, Xg = function(a) {
|
|
605
|
+
st($u, we, function() {
|
|
606
|
+
var e = a.facade, t = a.value, r = cs(a), i;
|
|
607
|
+
if (r && (i = kg(function() {
|
|
608
|
+
pr ? Fi.emit("unhandledRejection", t, e) : Du(Ru, e, t);
|
|
609
|
+
}), a.rejection = pr || cs(a) ? Iu : Ui, i.error))
|
|
610
610
|
throw i.value;
|
|
611
611
|
});
|
|
612
|
-
},
|
|
613
|
-
return a.rejection !==
|
|
614
|
-
},
|
|
615
|
-
|
|
612
|
+
}, cs = function(a) {
|
|
613
|
+
return a.rejection !== Ui && !a.parent;
|
|
614
|
+
}, Wg = function(a) {
|
|
615
|
+
st($u, we, function() {
|
|
616
616
|
var e = a.facade;
|
|
617
|
-
|
|
617
|
+
pr ? Fi.emit("rejectionHandled", e) : Du(zg, e, a.value);
|
|
618
618
|
});
|
|
619
|
-
},
|
|
619
|
+
}, et = function(a, e, t) {
|
|
620
620
|
return function(r) {
|
|
621
621
|
a(e, r, t);
|
|
622
622
|
};
|
|
623
|
-
},
|
|
624
|
-
a.done || (a.done = !0, t && (a = t), a.value = e, a.state =
|
|
625
|
-
},
|
|
623
|
+
}, rt = function(a, e, t) {
|
|
624
|
+
a.done || (a.done = !0, t && (a = t), a.value = e, a.state = Hg, Vu(a, !0));
|
|
625
|
+
}, ii = function(a, e, t) {
|
|
626
626
|
if (!a.done) {
|
|
627
627
|
a.done = !0, t && (a = t);
|
|
628
628
|
try {
|
|
629
629
|
if (a.facade === e)
|
|
630
|
-
throw new
|
|
631
|
-
var r =
|
|
632
|
-
r ?
|
|
630
|
+
throw new Pu("Promise can't be resolved itself");
|
|
631
|
+
var r = Mu(e);
|
|
632
|
+
r ? Bi(function() {
|
|
633
633
|
var i = { done: !1 };
|
|
634
634
|
try {
|
|
635
|
-
|
|
635
|
+
st(
|
|
636
636
|
r,
|
|
637
637
|
e,
|
|
638
|
-
|
|
639
|
-
|
|
638
|
+
et(ii, i, a),
|
|
639
|
+
et(rt, i, a)
|
|
640
640
|
);
|
|
641
641
|
} catch (n) {
|
|
642
|
-
|
|
642
|
+
rt(i, n, a);
|
|
643
643
|
}
|
|
644
|
-
}) : (a.value = e, a.state =
|
|
644
|
+
}) : (a.value = e, a.state = Nu, Vu(a, !1));
|
|
645
645
|
} catch (i) {
|
|
646
|
-
|
|
646
|
+
rt({ done: !1 }, i, a);
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
};
|
|
650
|
-
if (
|
|
651
|
-
|
|
652
|
-
var t =
|
|
650
|
+
if (Au && (De = function(e) {
|
|
651
|
+
_g(this, Zt), Ig(e), st(Jt, this);
|
|
652
|
+
var t = Oa(this);
|
|
653
653
|
try {
|
|
654
|
-
e(
|
|
654
|
+
e(et(ii, t), et(rt, t));
|
|
655
655
|
} catch (r) {
|
|
656
|
-
|
|
656
|
+
rt(t, r);
|
|
657
657
|
}
|
|
658
|
-
},
|
|
659
|
-
|
|
660
|
-
type:
|
|
658
|
+
}, Zt = De.prototype, Jt = function(e) {
|
|
659
|
+
Fg(this, {
|
|
660
|
+
type: Nr,
|
|
661
661
|
done: !1,
|
|
662
662
|
notified: !1,
|
|
663
663
|
parent: !1,
|
|
664
|
-
reactions: new
|
|
664
|
+
reactions: new Lg(),
|
|
665
665
|
rejection: !1,
|
|
666
|
-
state:
|
|
666
|
+
state: hs,
|
|
667
667
|
value: null
|
|
668
668
|
});
|
|
669
|
-
},
|
|
670
|
-
var r =
|
|
671
|
-
return r.parent = !0, i.ok =
|
|
672
|
-
|
|
669
|
+
}, Jt.prototype = us(Zt, "then", function(e, t) {
|
|
670
|
+
var r = Oa(this), i = ai(Vg(this, De));
|
|
671
|
+
return r.parent = !0, i.ok = lr(e) ? e : !0, i.fail = lr(t) && t, i.domain = pr ? Fi.domain : void 0, r.state === hs ? r.reactions.add(i) : Bi(function() {
|
|
672
|
+
_u(i, r);
|
|
673
673
|
}), i.promise;
|
|
674
|
-
}),
|
|
675
|
-
var a = new
|
|
676
|
-
this.promise = a, this.resolve =
|
|
677
|
-
},
|
|
678
|
-
return a === De || a ===
|
|
679
|
-
},
|
|
680
|
-
|
|
674
|
+
}), vs = function() {
|
|
675
|
+
var a = new Jt(), e = Oa(a);
|
|
676
|
+
this.promise = a, this.resolve = et(ii, e), this.reject = et(rt, e);
|
|
677
|
+
}, Cu.f = ai = function(a) {
|
|
678
|
+
return a === De || a === Yg ? new vs(a) : Ug(a);
|
|
679
|
+
}, lr(yr) && Ke !== Object.prototype)) {
|
|
680
|
+
fs = Ke.then, jg || us(Ke, "then", function(e, t) {
|
|
681
681
|
var r = this;
|
|
682
682
|
return new De(function(i, n) {
|
|
683
|
-
|
|
683
|
+
st(fs, r, i, n);
|
|
684
684
|
}).then(e, t);
|
|
685
685
|
}, { unsafe: !0 });
|
|
686
686
|
try {
|
|
687
|
-
delete
|
|
687
|
+
delete Ke.constructor;
|
|
688
688
|
} catch (a) {
|
|
689
689
|
}
|
|
690
|
-
|
|
690
|
+
ls && ls(Ke, Zt);
|
|
691
691
|
}
|
|
692
|
-
|
|
692
|
+
Pg({ global: !0, constructor: !0, wrap: !0, forced: Au }, {
|
|
693
693
|
Promise: De
|
|
694
694
|
});
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
var
|
|
698
|
-
return a !== void 0 && (
|
|
699
|
-
},
|
|
700
|
-
if (!
|
|
701
|
-
return
|
|
702
|
-
},
|
|
703
|
-
var t = arguments.length < 2 ?
|
|
704
|
-
if (
|
|
705
|
-
return
|
|
706
|
-
throw new
|
|
707
|
-
},
|
|
695
|
+
Rg(De, Nr, !1);
|
|
696
|
+
Ng(Nr);
|
|
697
|
+
var It = {}, qg = z, Qg = It, Kg = qg("iterator"), Zg = Array.prototype, Jg = function(a) {
|
|
698
|
+
return a !== void 0 && (Qg.Array === a || Zg[Kg] === a);
|
|
699
|
+
}, ed = _i, gs = ut, td = je, rd = It, ad = z, id = ad("iterator"), ku = function(a) {
|
|
700
|
+
if (!td(a))
|
|
701
|
+
return gs(a, id) || gs(a, "@@iterator") || rd[ed(a)];
|
|
702
|
+
}, nd = Y, sd = Te, od = J, ud = Tr, ld = ku, hd = TypeError, vd = function(a, e) {
|
|
703
|
+
var t = arguments.length < 2 ? ld(a) : e;
|
|
704
|
+
if (sd(t))
|
|
705
|
+
return od(nd(t, a));
|
|
706
|
+
throw new hd(ud(a) + " is not iterable");
|
|
707
|
+
}, fd = Y, ds = J, cd = ut, gd = function(a, e, t) {
|
|
708
708
|
var r, i;
|
|
709
|
-
|
|
709
|
+
ds(a);
|
|
710
710
|
try {
|
|
711
|
-
if (r =
|
|
711
|
+
if (r = cd(a, "return"), !r) {
|
|
712
712
|
if (e === "throw")
|
|
713
713
|
throw t;
|
|
714
714
|
return t;
|
|
715
715
|
}
|
|
716
|
-
r =
|
|
716
|
+
r = fd(r, a);
|
|
717
717
|
} catch (n) {
|
|
718
718
|
i = !0, r = n;
|
|
719
719
|
}
|
|
@@ -721,60 +721,60 @@ var Nt = {}, Wg = z, qg = Nt, Qg = Wg("iterator"), Kg = Array.prototype, Zg = fu
|
|
|
721
721
|
throw t;
|
|
722
722
|
if (i)
|
|
723
723
|
throw r;
|
|
724
|
-
return
|
|
725
|
-
},
|
|
724
|
+
return ds(r), t;
|
|
725
|
+
}, dd = Di, pd = Y, yd = J, md = Tr, bd = Jg, xd = Ii, ps = xr, Td = vd, Od = ku, ys = gd, Sd = TypeError, hr = function(a, e) {
|
|
726
726
|
this.stopped = a, this.result = e;
|
|
727
|
-
},
|
|
728
|
-
var r = t && t.that, i = !!(t && t.AS_ENTRIES), n = !!(t && t.IS_RECORD), o = !!(t && t.IS_ITERATOR), s = !!(t && t.INTERRUPTED), u =
|
|
729
|
-
return l &&
|
|
727
|
+
}, ms = hr.prototype, Lu = function(a, e, t) {
|
|
728
|
+
var r = t && t.that, i = !!(t && t.AS_ENTRIES), n = !!(t && t.IS_RECORD), o = !!(t && t.IS_ITERATOR), s = !!(t && t.INTERRUPTED), u = dd(e, r), l, h, f, c, v, d, g, p = function(x) {
|
|
729
|
+
return l && ys(l, "normal", x), new hr(!0, x);
|
|
730
730
|
}, y = function(x) {
|
|
731
|
-
return i ? (
|
|
731
|
+
return i ? (yd(x), s ? u(x[0], x[1], p) : u(x[0], x[1])) : s ? u(x, p) : u(x);
|
|
732
732
|
};
|
|
733
733
|
if (n)
|
|
734
734
|
l = a.iterator;
|
|
735
735
|
else if (o)
|
|
736
736
|
l = a;
|
|
737
737
|
else {
|
|
738
|
-
if (h =
|
|
739
|
-
throw new
|
|
740
|
-
if (
|
|
741
|
-
for (f = 0, c =
|
|
742
|
-
if (v = y(a[f]), v &&
|
|
738
|
+
if (h = Od(a), !h)
|
|
739
|
+
throw new Sd(md(a) + " is not iterable");
|
|
740
|
+
if (bd(h)) {
|
|
741
|
+
for (f = 0, c = xd(a); c > f; f++)
|
|
742
|
+
if (v = y(a[f]), v && ps(ms, v))
|
|
743
743
|
return v;
|
|
744
|
-
return new
|
|
744
|
+
return new hr(!1);
|
|
745
745
|
}
|
|
746
|
-
l =
|
|
746
|
+
l = Td(a, h);
|
|
747
747
|
}
|
|
748
|
-
for (d = n ? a.next : l.next; !(g =
|
|
748
|
+
for (d = n ? a.next : l.next; !(g = pd(d, l)).done; ) {
|
|
749
749
|
try {
|
|
750
750
|
v = y(g.value);
|
|
751
751
|
} catch (x) {
|
|
752
|
-
|
|
752
|
+
ys(l, "throw", x);
|
|
753
753
|
}
|
|
754
|
-
if (typeof v == "object" && v &&
|
|
754
|
+
if (typeof v == "object" && v && ps(ms, v))
|
|
755
755
|
return v;
|
|
756
756
|
}
|
|
757
|
-
return new
|
|
758
|
-
},
|
|
757
|
+
return new hr(!1);
|
|
758
|
+
}, Ed = z, Bu = Ed("iterator"), ju = !1;
|
|
759
759
|
try {
|
|
760
|
-
var
|
|
760
|
+
var $d = 0, bs = {
|
|
761
761
|
next: function() {
|
|
762
|
-
return { done:
|
|
762
|
+
return { done: !!$d++ };
|
|
763
763
|
},
|
|
764
764
|
return: function() {
|
|
765
|
-
|
|
765
|
+
ju = !0;
|
|
766
766
|
}
|
|
767
767
|
};
|
|
768
|
-
|
|
768
|
+
bs[Bu] = function() {
|
|
769
769
|
return this;
|
|
770
|
-
}, Array.from(
|
|
770
|
+
}, Array.from(bs, function() {
|
|
771
771
|
throw 2;
|
|
772
772
|
});
|
|
773
773
|
} catch (a) {
|
|
774
774
|
}
|
|
775
|
-
var
|
|
775
|
+
var wd = function(a, e) {
|
|
776
776
|
try {
|
|
777
|
-
if (!e && !
|
|
777
|
+
if (!e && !ju)
|
|
778
778
|
return !1;
|
|
779
779
|
} catch (i) {
|
|
780
780
|
return !1;
|
|
@@ -782,7 +782,7 @@ var $d = function(a, e) {
|
|
|
782
782
|
var t = !1;
|
|
783
783
|
try {
|
|
784
784
|
var r = {};
|
|
785
|
-
r[
|
|
785
|
+
r[Bu] = function() {
|
|
786
786
|
return {
|
|
787
787
|
next: function() {
|
|
788
788
|
return { done: t = !0 };
|
|
@@ -792,17 +792,17 @@ var $d = function(a, e) {
|
|
|
792
792
|
} catch (i) {
|
|
793
793
|
}
|
|
794
794
|
return t;
|
|
795
|
-
},
|
|
796
|
-
|
|
795
|
+
}, Cd = Rr, Ad = wd, Pd = Nt.CONSTRUCTOR, Fu = Pd || !Ad(function(a) {
|
|
796
|
+
Cd.all(a).then(void 0, function() {
|
|
797
797
|
});
|
|
798
|
-
}),
|
|
799
|
-
|
|
798
|
+
}), Rd = ee, Nd = Y, Id = Te, Md = ht, _d = Li, Vd = Lu, Dd = Fu;
|
|
799
|
+
Rd({ target: "Promise", stat: !0, forced: Dd }, {
|
|
800
800
|
all: function(e) {
|
|
801
|
-
var t = this, r =
|
|
802
|
-
var s =
|
|
803
|
-
|
|
801
|
+
var t = this, r = Md.f(t), i = r.resolve, n = r.reject, o = _d(function() {
|
|
802
|
+
var s = Id(t.resolve), u = [], l = 0, h = 1;
|
|
803
|
+
Vd(e, function(f) {
|
|
804
804
|
var c = l++, v = !1;
|
|
805
|
-
h++,
|
|
805
|
+
h++, Nd(s, t, f).then(function(d) {
|
|
806
806
|
v || (v = !0, u[c] = d, --h || i(u));
|
|
807
807
|
}, n);
|
|
808
808
|
}), --h || i(u);
|
|
@@ -810,48 +810,48 @@ Pd({ target: "Promise", stat: !0, forced: Vd }, {
|
|
|
810
810
|
return o.error && n(o.value), r.promise;
|
|
811
811
|
}
|
|
812
812
|
});
|
|
813
|
-
var
|
|
814
|
-
|
|
813
|
+
var kd = ee, Ld = Nt.CONSTRUCTOR, ni = Rr, Bd = Fe, jd = B, Fd = Ue, xs = ni && ni.prototype;
|
|
814
|
+
kd({ target: "Promise", proto: !0, forced: Ld, real: !0 }, {
|
|
815
815
|
catch: function(a) {
|
|
816
816
|
return this.then(void 0, a);
|
|
817
817
|
}
|
|
818
818
|
});
|
|
819
|
-
if (
|
|
820
|
-
var
|
|
821
|
-
|
|
819
|
+
if (jd(ni)) {
|
|
820
|
+
var Ts = Bd("Promise").prototype.catch;
|
|
821
|
+
xs.catch !== Ts && Fd(xs, "catch", Ts, { unsafe: !0 });
|
|
822
822
|
}
|
|
823
|
-
var
|
|
824
|
-
|
|
823
|
+
var Ud = ee, Gd = Y, zd = Te, Hd = ht, Yd = Li, Xd = Lu, Wd = Fu;
|
|
824
|
+
Ud({ target: "Promise", stat: !0, forced: Wd }, {
|
|
825
825
|
race: function(e) {
|
|
826
|
-
var t = this, r =
|
|
827
|
-
var o =
|
|
828
|
-
|
|
829
|
-
|
|
826
|
+
var t = this, r = Hd.f(t), i = r.reject, n = Yd(function() {
|
|
827
|
+
var o = zd(t.resolve);
|
|
828
|
+
Xd(e, function(s) {
|
|
829
|
+
Gd(o, t, s).then(r.resolve, i);
|
|
830
830
|
});
|
|
831
831
|
});
|
|
832
832
|
return n.error && i(n.value), r.promise;
|
|
833
833
|
}
|
|
834
834
|
});
|
|
835
|
-
var
|
|
836
|
-
|
|
835
|
+
var qd = ee, Qd = ht, Kd = Nt.CONSTRUCTOR;
|
|
836
|
+
qd({ target: "Promise", stat: !0, forced: Kd }, {
|
|
837
837
|
reject: function(e) {
|
|
838
|
-
var t =
|
|
838
|
+
var t = Qd.f(this), r = t.reject;
|
|
839
839
|
return r(e), t.promise;
|
|
840
840
|
}
|
|
841
841
|
});
|
|
842
|
-
var
|
|
843
|
-
if (
|
|
842
|
+
var Zd = J, Jd = ve, ep = ht, tp = function(a, e) {
|
|
843
|
+
if (Zd(a), Jd(e) && e.constructor === a)
|
|
844
844
|
return e;
|
|
845
|
-
var t =
|
|
845
|
+
var t = ep.f(a), r = t.resolve;
|
|
846
846
|
return r(e), t.promise;
|
|
847
|
-
},
|
|
848
|
-
|
|
849
|
-
|
|
847
|
+
}, rp = ee, ap = Fe, ip = Nt.CONSTRUCTOR, np = tp;
|
|
848
|
+
ap("Promise");
|
|
849
|
+
rp({ target: "Promise", stat: !0, forced: ip }, {
|
|
850
850
|
resolve: function(e) {
|
|
851
|
-
return
|
|
851
|
+
return np(this, e);
|
|
852
852
|
}
|
|
853
853
|
});
|
|
854
|
-
function
|
|
854
|
+
function Os(a, e, t, r, i, n, o) {
|
|
855
855
|
try {
|
|
856
856
|
var s = a[n](o), u = s.value;
|
|
857
857
|
} catch (l) {
|
|
@@ -865,105 +865,105 @@ function xe(a) {
|
|
|
865
865
|
return new Promise(function(r, i) {
|
|
866
866
|
var n = a.apply(e, t);
|
|
867
867
|
function o(u) {
|
|
868
|
-
|
|
868
|
+
Os(n, r, i, o, s, "next", u);
|
|
869
869
|
}
|
|
870
870
|
function s(u) {
|
|
871
|
-
|
|
871
|
+
Os(n, r, i, o, s, "throw", u);
|
|
872
872
|
}
|
|
873
873
|
o(void 0);
|
|
874
874
|
});
|
|
875
875
|
};
|
|
876
876
|
}
|
|
877
|
-
var
|
|
878
|
-
if (
|
|
877
|
+
var sp = _i, op = String, pe = function(a) {
|
|
878
|
+
if (sp(a) === "Symbol")
|
|
879
879
|
throw new TypeError("Cannot convert a Symbol value to a string");
|
|
880
|
-
return
|
|
881
|
-
},
|
|
882
|
-
var a =
|
|
880
|
+
return op(a);
|
|
881
|
+
}, up = J, Uu = function() {
|
|
882
|
+
var a = up(this), e = "";
|
|
883
883
|
return a.hasIndices && (e += "d"), a.global && (e += "g"), a.ignoreCase && (e += "i"), a.multiline && (e += "m"), a.dotAll && (e += "s"), a.unicode && (e += "u"), a.unicodeSets && (e += "v"), a.sticky && (e += "y"), e;
|
|
884
|
-
},
|
|
885
|
-
var a =
|
|
884
|
+
}, Gi = k, lp = V, zi = lp.RegExp, Hi = Gi(function() {
|
|
885
|
+
var a = zi("a", "y");
|
|
886
886
|
return a.lastIndex = 2, a.exec("abcd") !== null;
|
|
887
|
-
}),
|
|
888
|
-
return !
|
|
889
|
-
}),
|
|
890
|
-
var a =
|
|
887
|
+
}), hp = Hi || Gi(function() {
|
|
888
|
+
return !zi("a", "y").sticky;
|
|
889
|
+
}), vp = Hi || Gi(function() {
|
|
890
|
+
var a = zi("^r", "gy");
|
|
891
891
|
return a.lastIndex = 2, a.exec("str") !== null;
|
|
892
|
-
}),
|
|
893
|
-
BROKEN_CARET:
|
|
894
|
-
MISSED_STICKY:
|
|
895
|
-
UNSUPPORTED_Y:
|
|
896
|
-
},
|
|
897
|
-
return
|
|
898
|
-
},
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
for (var r =
|
|
902
|
-
|
|
892
|
+
}), Gu = {
|
|
893
|
+
BROKEN_CARET: vp,
|
|
894
|
+
MISSED_STICKY: hp,
|
|
895
|
+
UNSUPPORTED_Y: Hi
|
|
896
|
+
}, zu = {}, fp = nu, cp = Mi, gp = Object.keys || function(e) {
|
|
897
|
+
return fp(e, cp);
|
|
898
|
+
}, dp = le, pp = Ko, yp = Oe, mp = J, bp = Ct, xp = gp;
|
|
899
|
+
zu.f = dp && !pp ? Object.defineProperties : function(e, t) {
|
|
900
|
+
mp(e);
|
|
901
|
+
for (var r = bp(t), i = xp(t), n = i.length, o = 0, s; n > o; )
|
|
902
|
+
yp.f(e, s = i[o++], r[s]);
|
|
903
903
|
return e;
|
|
904
904
|
};
|
|
905
|
-
var
|
|
906
|
-
},
|
|
907
|
-
return
|
|
908
|
-
},
|
|
909
|
-
a.write(
|
|
905
|
+
var Tp = J, Op = zu, Ss = Mi, Sp = Ri, Ep = mu, $p = Sr, wp = Pi, Es = ">", $s = "<", si = "prototype", oi = "script", Hu = wp("IE_PROTO"), Sa = function() {
|
|
906
|
+
}, Yu = function(a) {
|
|
907
|
+
return $s + oi + Es + a + $s + "/" + oi + Es;
|
|
908
|
+
}, ws = function(a) {
|
|
909
|
+
a.write(Yu("")), a.close();
|
|
910
910
|
var e = a.parentWindow.Object;
|
|
911
911
|
return a = null, e;
|
|
912
|
-
},
|
|
913
|
-
var a =
|
|
914
|
-
return a.style.display = "none",
|
|
915
|
-
},
|
|
912
|
+
}, Cp = function() {
|
|
913
|
+
var a = $p("iframe"), e = "java" + oi + ":", t;
|
|
914
|
+
return a.style.display = "none", Ep.appendChild(a), a.src = String(e), t = a.contentWindow.document, t.open(), t.write(Yu("document.F=Object")), t.close(), t.F;
|
|
915
|
+
}, er, vr = function() {
|
|
916
916
|
try {
|
|
917
|
-
|
|
917
|
+
er = new ActiveXObject("htmlfile");
|
|
918
918
|
} catch (e) {
|
|
919
919
|
}
|
|
920
|
-
|
|
921
|
-
for (var a =
|
|
922
|
-
delete
|
|
923
|
-
return
|
|
920
|
+
vr = typeof document != "undefined" ? document.domain && er ? ws(er) : Cp() : ws(er);
|
|
921
|
+
for (var a = Ss.length; a--; )
|
|
922
|
+
delete vr[si][Ss[a]];
|
|
923
|
+
return vr();
|
|
924
924
|
};
|
|
925
|
-
|
|
926
|
-
var
|
|
925
|
+
Sp[Hu] = !0;
|
|
926
|
+
var Yi = Object.create || function(e, t) {
|
|
927
927
|
var r;
|
|
928
|
-
return e !== null ? (
|
|
929
|
-
},
|
|
930
|
-
var a =
|
|
928
|
+
return e !== null ? (Sa[si] = Tp(e), r = new Sa(), Sa[si] = null, r[Hu] = e) : r = vr(), t === void 0 ? r : Op.f(r, t);
|
|
929
|
+
}, Ap = k, Pp = V, Rp = Pp.RegExp, Np = Ap(function() {
|
|
930
|
+
var a = Rp(".", "s");
|
|
931
931
|
return !(a.dotAll && a.test(`
|
|
932
932
|
`) && a.flags === "s");
|
|
933
|
-
}),
|
|
934
|
-
var a =
|
|
933
|
+
}), Ip = k, Mp = V, _p = Mp.RegExp, Vp = Ip(function() {
|
|
934
|
+
var a = _p("(?<a>b)", "g");
|
|
935
935
|
return a.exec("b").groups.a !== "b" || "b".replace(a, "$<a>c") !== "bc";
|
|
936
|
-
}),
|
|
936
|
+
}), tt = Y, Ir = L, Dp = pe, kp = Uu, Lp = Gu, Bp = wi, jp = Yi, Fp = $r.get, Up = Np, Gp = Vp, zp = Bp("native-string-replace", String.prototype.replace), mr = RegExp.prototype.exec, ui = mr, Hp = Ir("".charAt), Yp = Ir("".indexOf), Xp = Ir("".replace), Ea = Ir("".slice), li = function() {
|
|
937
937
|
var a = /a/, e = /b*/g;
|
|
938
|
-
return
|
|
939
|
-
}(),
|
|
940
|
-
|
|
941
|
-
var t = this, r =
|
|
938
|
+
return tt(mr, a, "a"), tt(mr, e, "a"), a.lastIndex !== 0 || e.lastIndex !== 0;
|
|
939
|
+
}(), Xu = Lp.BROKEN_CARET, hi = /()??/.exec("")[1] !== void 0, Wp = li || hi || Xu || Up || Gp;
|
|
940
|
+
Wp && (ui = function(e) {
|
|
941
|
+
var t = this, r = Fp(t), i = Dp(e), n = r.raw, o, s, u, l, h, f, c;
|
|
942
942
|
if (n)
|
|
943
|
-
return n.lastIndex = t.lastIndex, o =
|
|
944
|
-
var v = r.groups, d =
|
|
945
|
-
if (d && (g =
|
|
946
|
-
`) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")", g)),
|
|
943
|
+
return n.lastIndex = t.lastIndex, o = tt(ui, n, i), t.lastIndex = n.lastIndex, o;
|
|
944
|
+
var v = r.groups, d = Xu && t.sticky, g = tt(kp, t), p = t.source, y = 0, x = i;
|
|
945
|
+
if (d && (g = Xp(g, "y", ""), Yp(g, "g") === -1 && (g += "g"), x = Ea(i, t.lastIndex), t.lastIndex > 0 && (!t.multiline || t.multiline && Hp(i, t.lastIndex - 1) !== `
|
|
946
|
+
`) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")", g)), hi && (s = new RegExp("^" + p + "$(?!\\s)", g)), li && (u = t.lastIndex), l = tt(mr, d ? s : t, x), d ? l ? (l.input = Ea(l.input, y), l[0] = Ea(l[0], y), l.index = t.lastIndex, t.lastIndex += l[0].length) : t.lastIndex = 0 : li && l && (t.lastIndex = t.global ? l.index + l[0].length : u), hi && l && l.length > 1 && tt(zp, l[0], s, function() {
|
|
947
947
|
for (h = 1; h < arguments.length - 2; h++)
|
|
948
948
|
arguments[h] === void 0 && (l[h] = void 0);
|
|
949
949
|
}), l && v)
|
|
950
|
-
for (l.groups = f =
|
|
950
|
+
for (l.groups = f = jp(null), h = 0; h < v.length; h++)
|
|
951
951
|
c = v[h], f[c[0]] = l[c[1]];
|
|
952
952
|
return l;
|
|
953
953
|
});
|
|
954
|
-
var
|
|
955
|
-
|
|
956
|
-
exec:
|
|
954
|
+
var Xi = ui, qp = ee, Cs = Xi;
|
|
955
|
+
qp({ target: "RegExp", proto: !0, forced: /./.exec !== Cs }, {
|
|
956
|
+
exec: Cs
|
|
957
957
|
});
|
|
958
|
-
var
|
|
959
|
-
var i =
|
|
958
|
+
var As = Y, Ps = Ue, Qp = Xi, Rs = k, Wu = z, Kp = Pt, Zp = Wu("species"), $a = RegExp.prototype, Wi = function(a, e, t, r) {
|
|
959
|
+
var i = Wu(a), n = !Rs(function() {
|
|
960
960
|
var l = {};
|
|
961
961
|
return l[i] = function() {
|
|
962
962
|
return 7;
|
|
963
963
|
}, ""[a](l) !== 7;
|
|
964
|
-
}), o = n && !
|
|
964
|
+
}), o = n && !Rs(function() {
|
|
965
965
|
var l = !1, h = /a/;
|
|
966
|
-
return a === "split" && (h = {}, h.constructor = {}, h.constructor[
|
|
966
|
+
return a === "split" && (h = {}, h.constructor = {}, h.constructor[Zp] = function() {
|
|
967
967
|
return h;
|
|
968
968
|
}, h.flags = "", h[i] = /./[i]), h.exec = function() {
|
|
969
969
|
return l = !0, null;
|
|
@@ -972,228 +972,228 @@ var Cs = Y, As = Ue, qp = Yi, Ps = k, Xu = z, Qp = At, Kp = Xu("species"), Ea =
|
|
|
972
972
|
if (!n || !o || t) {
|
|
973
973
|
var s = /./[i], u = e(i, ""[a], function(l, h, f, c, v) {
|
|
974
974
|
var d = h.exec;
|
|
975
|
-
return d ===
|
|
975
|
+
return d === Qp || d === $a.exec ? n && !v ? { done: !0, value: As(s, h, f, c) } : { done: !0, value: As(l, f, h, c) } : { done: !1 };
|
|
976
976
|
});
|
|
977
|
-
|
|
977
|
+
Ps(String.prototype, a, u[0]), Ps($a, i, u[1]);
|
|
978
978
|
}
|
|
979
|
-
r &&
|
|
980
|
-
},
|
|
979
|
+
r && Kp($a[i], "sham", !0);
|
|
980
|
+
}, qi = L, Jp = wr, ey = pe, ty = he, ry = qi("".charAt), Ns = qi("".charCodeAt), ay = qi("".slice), Is = function(a) {
|
|
981
981
|
return function(e, t) {
|
|
982
|
-
var r =
|
|
983
|
-
return i < 0 || i >= n ? a ? "" : void 0 : (o =
|
|
982
|
+
var r = ey(ty(e)), i = Jp(t), n = r.length, o, s;
|
|
983
|
+
return i < 0 || i >= n ? a ? "" : void 0 : (o = Ns(r, i), o < 55296 || o > 56319 || i + 1 === n || (s = Ns(r, i + 1)) < 56320 || s > 57343 ? a ? ry(r, i) : o : a ? ay(r, i, i + 2) : (o - 55296 << 10) + (s - 56320) + 65536);
|
|
984
984
|
};
|
|
985
|
-
},
|
|
985
|
+
}, iy = {
|
|
986
986
|
// `String.prototype.codePointAt` method
|
|
987
987
|
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
988
|
-
codeAt:
|
|
988
|
+
codeAt: Is(!1),
|
|
989
989
|
// `String.prototype.at` method
|
|
990
990
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
991
|
-
charAt:
|
|
992
|
-
},
|
|
993
|
-
return e + (t ?
|
|
994
|
-
},
|
|
991
|
+
charAt: Is(!0)
|
|
992
|
+
}, ny = iy.charAt, Qi = function(a, e, t) {
|
|
993
|
+
return e + (t ? ny(a, e).length : 1);
|
|
994
|
+
}, Ms = Y, sy = J, oy = B, uy = Be, ly = Xi, hy = TypeError, Ki = function(a, e) {
|
|
995
995
|
var t = a.exec;
|
|
996
|
-
if (
|
|
997
|
-
var r =
|
|
998
|
-
return r !== null &&
|
|
999
|
-
}
|
|
1000
|
-
if (
|
|
1001
|
-
return
|
|
1002
|
-
throw new
|
|
1003
|
-
},
|
|
1004
|
-
|
|
996
|
+
if (oy(t)) {
|
|
997
|
+
var r = Ms(t, a, e);
|
|
998
|
+
return r !== null && sy(r), r;
|
|
999
|
+
}
|
|
1000
|
+
if (uy(a) === "RegExp")
|
|
1001
|
+
return Ms(ly, a, e);
|
|
1002
|
+
throw new hy("RegExp#exec called on incompatible receiver");
|
|
1003
|
+
}, vy = Y, fy = Wi, cy = J, gy = je, dy = lt, wa = pe, py = he, yy = ut, my = Qi, _s = Ki;
|
|
1004
|
+
fy("match", function(a, e, t) {
|
|
1005
1005
|
return [
|
|
1006
1006
|
// `String.prototype.match` method
|
|
1007
1007
|
// https://tc39.es/ecma262/#sec-string.prototype.match
|
|
1008
1008
|
function(i) {
|
|
1009
|
-
var n =
|
|
1010
|
-
return o ?
|
|
1009
|
+
var n = py(this), o = gy(i) ? void 0 : yy(i, a);
|
|
1010
|
+
return o ? vy(o, i, n) : new RegExp(i)[a](wa(n));
|
|
1011
1011
|
},
|
|
1012
1012
|
// `RegExp.prototype[@@match]` method
|
|
1013
1013
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
|
|
1014
1014
|
function(r) {
|
|
1015
|
-
var i =
|
|
1015
|
+
var i = cy(this), n = wa(r), o = t(e, i, n);
|
|
1016
1016
|
if (o.done)
|
|
1017
1017
|
return o.value;
|
|
1018
1018
|
if (!i.global)
|
|
1019
|
-
return
|
|
1019
|
+
return _s(i, n);
|
|
1020
1020
|
var s = i.unicode;
|
|
1021
1021
|
i.lastIndex = 0;
|
|
1022
|
-
for (var u = [], l = 0, h; (h =
|
|
1023
|
-
var f =
|
|
1024
|
-
u[l] = f, f === "" && (i.lastIndex =
|
|
1022
|
+
for (var u = [], l = 0, h; (h = _s(i, n)) !== null; ) {
|
|
1023
|
+
var f = wa(h[0]);
|
|
1024
|
+
u[l] = f, f === "" && (i.lastIndex = my(n, dy(i.lastIndex), s)), l++;
|
|
1025
1025
|
}
|
|
1026
1026
|
return l === 0 ? null : u;
|
|
1027
1027
|
}
|
|
1028
1028
|
];
|
|
1029
1029
|
});
|
|
1030
|
-
var
|
|
1031
|
-
var o = t + a.length, s = r.length, u =
|
|
1032
|
-
return i !== void 0 && (i =
|
|
1030
|
+
var Zi = L, by = Or, xy = Math.floor, Ca = Zi("".charAt), Ty = Zi("".replace), Aa = Zi("".slice), Oy = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, Sy = /\$([$&'`]|\d{1,2})/g, Ey = function(a, e, t, r, i, n) {
|
|
1031
|
+
var o = t + a.length, s = r.length, u = Sy;
|
|
1032
|
+
return i !== void 0 && (i = by(i), u = Oy), Ty(n, u, function(l, h) {
|
|
1033
1033
|
var f;
|
|
1034
|
-
switch (
|
|
1034
|
+
switch (Ca(h, 0)) {
|
|
1035
1035
|
case "$":
|
|
1036
1036
|
return "$";
|
|
1037
1037
|
case "&":
|
|
1038
1038
|
return a;
|
|
1039
1039
|
case "`":
|
|
1040
|
-
return
|
|
1040
|
+
return Aa(e, 0, t);
|
|
1041
1041
|
case "'":
|
|
1042
|
-
return
|
|
1042
|
+
return Aa(e, o);
|
|
1043
1043
|
case "<":
|
|
1044
|
-
f = i[
|
|
1044
|
+
f = i[Aa(h, 1, -1)];
|
|
1045
1045
|
break;
|
|
1046
1046
|
default:
|
|
1047
1047
|
var c = +h;
|
|
1048
1048
|
if (c === 0)
|
|
1049
1049
|
return l;
|
|
1050
1050
|
if (c > s) {
|
|
1051
|
-
var v =
|
|
1052
|
-
return v === 0 ? l : v <= s ? r[v - 1] === void 0 ?
|
|
1051
|
+
var v = xy(c / 10);
|
|
1052
|
+
return v === 0 ? l : v <= s ? r[v - 1] === void 0 ? Ca(h, 1) : r[v - 1] + Ca(h, 1) : l;
|
|
1053
1053
|
}
|
|
1054
1054
|
f = r[c - 1];
|
|
1055
1055
|
}
|
|
1056
1056
|
return f === void 0 ? "" : f;
|
|
1057
1057
|
});
|
|
1058
|
-
},
|
|
1058
|
+
}, $y = yu, Vs = Y, Mr = L, wy = Wi, Cy = k, Ay = J, Py = B, Ry = je, Ny = wr, Iy = lt, We = pe, My = he, _y = Qi, Vy = ut, Dy = Ey, ky = Ki, Ly = z, vi = Ly("replace"), By = Math.max, jy = Math.min, Fy = Mr([].concat), Pa = Mr([].push), Ds = Mr("".indexOf), ks = Mr("".slice), Uy = function(a) {
|
|
1059
1059
|
return a === void 0 ? a : String(a);
|
|
1060
|
-
},
|
|
1060
|
+
}, Gy = function() {
|
|
1061
1061
|
return "a".replace(/./, "$0") === "$0";
|
|
1062
|
-
}(),
|
|
1063
|
-
return /./[
|
|
1064
|
-
}(),
|
|
1062
|
+
}(), Ls = function() {
|
|
1063
|
+
return /./[vi] ? /./[vi]("a", "$0") === "" : !1;
|
|
1064
|
+
}(), zy = !Cy(function() {
|
|
1065
1065
|
var a = /./;
|
|
1066
1066
|
return a.exec = function() {
|
|
1067
1067
|
var e = [];
|
|
1068
1068
|
return e.groups = { a: "7" }, e;
|
|
1069
1069
|
}, "".replace(a, "$<a>") !== "7";
|
|
1070
1070
|
});
|
|
1071
|
-
|
|
1072
|
-
var r =
|
|
1071
|
+
wy("replace", function(a, e, t) {
|
|
1072
|
+
var r = Ls ? "$" : "$0";
|
|
1073
1073
|
return [
|
|
1074
1074
|
// `String.prototype.replace` method
|
|
1075
1075
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
1076
1076
|
function(n, o) {
|
|
1077
|
-
var s =
|
|
1078
|
-
return u ?
|
|
1077
|
+
var s = My(this), u = Ry(n) ? void 0 : Vy(n, vi);
|
|
1078
|
+
return u ? Vs(u, n, s, o) : Vs(e, We(s), n, o);
|
|
1079
1079
|
},
|
|
1080
1080
|
// `RegExp.prototype[@@replace]` method
|
|
1081
1081
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
1082
1082
|
function(i, n) {
|
|
1083
|
-
var o =
|
|
1084
|
-
if (typeof n == "string" &&
|
|
1083
|
+
var o = Ay(this), s = We(i);
|
|
1084
|
+
if (typeof n == "string" && Ds(n, r) === -1 && Ds(n, "$<") === -1) {
|
|
1085
1085
|
var u = t(e, o, s, n);
|
|
1086
1086
|
if (u.done)
|
|
1087
1087
|
return u.value;
|
|
1088
1088
|
}
|
|
1089
|
-
var l =
|
|
1089
|
+
var l = Py(n);
|
|
1090
1090
|
l || (n = We(n));
|
|
1091
1091
|
var h = o.global, f;
|
|
1092
1092
|
h && (f = o.unicode, o.lastIndex = 0);
|
|
1093
|
-
for (var c = [], v; v =
|
|
1093
|
+
for (var c = [], v; v = ky(o, s), !(v === null || (Pa(c, v), !h)); ) {
|
|
1094
1094
|
var d = We(v[0]);
|
|
1095
|
-
d === "" && (o.lastIndex =
|
|
1095
|
+
d === "" && (o.lastIndex = _y(s, Iy(o.lastIndex), f));
|
|
1096
1096
|
}
|
|
1097
1097
|
for (var g = "", p = 0, y = 0; y < c.length; y++) {
|
|
1098
1098
|
v = c[y];
|
|
1099
|
-
for (var x = We(v[0]), b =
|
|
1100
|
-
|
|
1099
|
+
for (var x = We(v[0]), b = By(jy(Ny(v.index), s.length), 0), T = [], $, E = 1; E < v.length; E++)
|
|
1100
|
+
Pa(T, Uy(v[E]));
|
|
1101
1101
|
var O = v.groups;
|
|
1102
1102
|
if (l) {
|
|
1103
|
-
var C =
|
|
1104
|
-
O !== void 0 &&
|
|
1103
|
+
var C = Fy([x], T, b, s);
|
|
1104
|
+
O !== void 0 && Pa(C, O), $ = We($y(n, void 0, C));
|
|
1105
1105
|
} else
|
|
1106
|
-
$ =
|
|
1107
|
-
b >= p && (g +=
|
|
1106
|
+
$ = Dy(x, s, b, T, O, n);
|
|
1107
|
+
b >= p && (g += ks(s, p, b) + $, p = b + x.length);
|
|
1108
1108
|
}
|
|
1109
|
-
return g +
|
|
1109
|
+
return g + ks(s, p);
|
|
1110
1110
|
}
|
|
1111
1111
|
];
|
|
1112
|
-
}, !
|
|
1113
|
-
var
|
|
1112
|
+
}, !zy || !Gy || Ls);
|
|
1113
|
+
var Hy = ve, Yy = Be, Xy = z, Wy = Xy("match"), qy = function(a) {
|
|
1114
1114
|
var e;
|
|
1115
|
-
return
|
|
1116
|
-
},
|
|
1117
|
-
if (
|
|
1118
|
-
throw new
|
|
1115
|
+
return Hy(a) && ((e = a[Wy]) !== void 0 ? !!e : Yy(a) === "RegExp");
|
|
1116
|
+
}, Qy = qy, Ky = TypeError, Ji = function(a) {
|
|
1117
|
+
if (Qy(a))
|
|
1118
|
+
throw new Ky("The method doesn't accept regular expressions");
|
|
1119
1119
|
return a;
|
|
1120
|
-
},
|
|
1120
|
+
}, Zy = z, Jy = Zy("match"), en = function(a) {
|
|
1121
1121
|
var e = /./;
|
|
1122
1122
|
try {
|
|
1123
1123
|
"/./"[a](e);
|
|
1124
1124
|
} catch (t) {
|
|
1125
1125
|
try {
|
|
1126
|
-
return e[
|
|
1126
|
+
return e[Jy] = !1, "/./"[a](e);
|
|
1127
1127
|
} catch (r) {
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
return !1;
|
|
1131
|
-
},
|
|
1132
|
-
var a =
|
|
1131
|
+
}, em = ee, tm = Pr, rm = wt.f, am = lt, Bs = pe, im = Ji, nm = he, sm = en, om = tm("".slice), um = Math.min, qu = sm("startsWith"), lm = !qu && !!function() {
|
|
1132
|
+
var a = rm(String.prototype, "startsWith");
|
|
1133
1133
|
return a && !a.writable;
|
|
1134
1134
|
}();
|
|
1135
|
-
|
|
1135
|
+
em({ target: "String", proto: !0, forced: !lm && !qu }, {
|
|
1136
1136
|
startsWith: function(e) {
|
|
1137
|
-
var t =
|
|
1138
|
-
|
|
1139
|
-
var r =
|
|
1140
|
-
return
|
|
1137
|
+
var t = Bs(nm(this));
|
|
1138
|
+
im(e);
|
|
1139
|
+
var r = am(um(arguments.length > 1 ? arguments[1] : void 0, t.length)), i = Bs(e);
|
|
1140
|
+
return om(t, r, r + i.length) === i;
|
|
1141
1141
|
}
|
|
1142
1142
|
});
|
|
1143
|
-
var
|
|
1144
|
-
fi
|
|
1143
|
+
var hm = z, vm = Yi, fm = Oe.f, fi = hm("unscopables"), ci = Array.prototype;
|
|
1144
|
+
ci[fi] === void 0 && fm(ci, fi, {
|
|
1145
1145
|
configurable: !0,
|
|
1146
|
-
value:
|
|
1146
|
+
value: vm(null)
|
|
1147
1147
|
});
|
|
1148
|
-
var
|
|
1149
|
-
fi
|
|
1150
|
-
},
|
|
1148
|
+
var cm = function(a) {
|
|
1149
|
+
ci[fi][a] = !0;
|
|
1150
|
+
}, gm = k, dm = !gm(function() {
|
|
1151
1151
|
function a() {
|
|
1152
1152
|
}
|
|
1153
1153
|
return a.prototype.constructor = null, Object.getPrototypeOf(new a()) !== a.prototype;
|
|
1154
|
-
}),
|
|
1155
|
-
var e =
|
|
1156
|
-
if (
|
|
1157
|
-
return e[
|
|
1154
|
+
}), pm = fe, ym = B, mm = Or, bm = Pi, xm = dm, js = bm("IE_PROTO"), gi = Object, Tm = gi.prototype, Qu = xm ? gi.getPrototypeOf : function(a) {
|
|
1155
|
+
var e = mm(a);
|
|
1156
|
+
if (pm(e, js))
|
|
1157
|
+
return e[js];
|
|
1158
1158
|
var t = e.constructor;
|
|
1159
|
-
return
|
|
1160
|
-
},
|
|
1161
|
-
[].keys && (
|
|
1162
|
-
var
|
|
1159
|
+
return ym(t) && e instanceof t ? t.prototype : e instanceof gi ? Tm : null;
|
|
1160
|
+
}, Om = k, Sm = B, Em = ve, Fs = Qu, $m = Ue, wm = z, di = wm("iterator"), Ku = !1, ke, Ra, Na;
|
|
1161
|
+
[].keys && (Na = [].keys(), "next" in Na ? (Ra = Fs(Fs(Na)), Ra !== Object.prototype && (ke = Ra)) : Ku = !0);
|
|
1162
|
+
var Cm = !Em(ke) || Om(function() {
|
|
1163
1163
|
var a = {};
|
|
1164
|
-
return ke[
|
|
1164
|
+
return ke[di].call(a) !== a;
|
|
1165
1165
|
});
|
|
1166
|
-
|
|
1167
|
-
|
|
1166
|
+
Cm && (ke = {});
|
|
1167
|
+
Sm(ke[di]) || $m(ke, di, function() {
|
|
1168
1168
|
return this;
|
|
1169
1169
|
});
|
|
1170
|
-
var
|
|
1170
|
+
var Zu = {
|
|
1171
1171
|
IteratorPrototype: ke,
|
|
1172
|
-
BUGGY_SAFARI_ITERATORS:
|
|
1173
|
-
},
|
|
1172
|
+
BUGGY_SAFARI_ITERATORS: Ku
|
|
1173
|
+
}, Am = Zu.IteratorPrototype, Pm = Yi, Rm = Oi, Nm = Ar, Im = It, Mm = function() {
|
|
1174
1174
|
return this;
|
|
1175
|
-
},
|
|
1175
|
+
}, _m = function(a, e, t, r) {
|
|
1176
1176
|
var i = e + " Iterator";
|
|
1177
|
-
return a.prototype = Am
|
|
1178
|
-
},
|
|
1177
|
+
return a.prototype = Pm(Am, { next: Rm(+!r, t) }), Nm(a, i, !1), Im[i] = Mm, a;
|
|
1178
|
+
}, Vm = ee, Dm = Y, Ju = Er, km = B, Lm = _m, Us = Qu, Gs = lu, Bm = Ar, jm = Pt, Ia = Ue, Fm = z, Um = It, el = Zu, Gm = Ju.PROPER, zm = Ju.CONFIGURABLE, zs = el.IteratorPrototype, tr = el.BUGGY_SAFARI_ITERATORS, dt = Fm("iterator"), Hs = "keys", pt = "values", Ys = "entries", Hm = function() {
|
|
1179
1179
|
return this;
|
|
1180
|
-
},
|
|
1181
|
-
|
|
1180
|
+
}, Ym = function(a, e, t, r, i, n, o) {
|
|
1181
|
+
Lm(t, e, r);
|
|
1182
1182
|
var s = function(y) {
|
|
1183
1183
|
if (y === i && c)
|
|
1184
1184
|
return c;
|
|
1185
|
-
if (!
|
|
1185
|
+
if (!tr && y && y in h)
|
|
1186
1186
|
return h[y];
|
|
1187
1187
|
switch (y) {
|
|
1188
|
-
case
|
|
1188
|
+
case Hs:
|
|
1189
1189
|
return function() {
|
|
1190
1190
|
return new t(this, y);
|
|
1191
1191
|
};
|
|
1192
|
-
case
|
|
1192
|
+
case pt:
|
|
1193
1193
|
return function() {
|
|
1194
1194
|
return new t(this, y);
|
|
1195
1195
|
};
|
|
1196
|
-
case
|
|
1196
|
+
case Ys:
|
|
1197
1197
|
return function() {
|
|
1198
1198
|
return new t(this, y);
|
|
1199
1199
|
};
|
|
@@ -1201,26 +1201,26 @@ var Ku = {
|
|
|
1201
1201
|
return function() {
|
|
1202
1202
|
return new t(this);
|
|
1203
1203
|
};
|
|
1204
|
-
}, u = e + " Iterator", l = !1, h = a.prototype, f = h[
|
|
1205
|
-
if (v && (d =
|
|
1206
|
-
return
|
|
1204
|
+
}, u = e + " Iterator", l = !1, h = a.prototype, f = h[dt] || h["@@iterator"] || i && h[i], c = !tr && f || s(i), v = e === "Array" && h.entries || f, d, g, p;
|
|
1205
|
+
if (v && (d = Us(v.call(new a())), d !== Object.prototype && d.next && (Us(d) !== zs && (Gs ? Gs(d, zs) : km(d[dt]) || Ia(d, dt, Hm)), Bm(d, u, !0))), Gm && i === pt && f && f.name !== pt && (zm ? jm(h, "name", pt) : (l = !0, c = function() {
|
|
1206
|
+
return Dm(f, this);
|
|
1207
1207
|
})), i)
|
|
1208
1208
|
if (g = {
|
|
1209
|
-
values: s(
|
|
1210
|
-
keys: n ? c : s(
|
|
1211
|
-
entries: s(
|
|
1209
|
+
values: s(pt),
|
|
1210
|
+
keys: n ? c : s(Hs),
|
|
1211
|
+
entries: s(Ys)
|
|
1212
1212
|
}, o)
|
|
1213
1213
|
for (p in g)
|
|
1214
|
-
(
|
|
1214
|
+
(tr || l || !(p in h)) && Ia(h, p, g[p]);
|
|
1215
1215
|
else
|
|
1216
|
-
|
|
1217
|
-
return h[
|
|
1218
|
-
},
|
|
1216
|
+
Vm({ target: e, proto: !0, forced: tr || l }, g);
|
|
1217
|
+
return h[dt] !== c && Ia(h, dt, c, { name: i }), Um[e] = c, g;
|
|
1218
|
+
}, Xm = function(a, e) {
|
|
1219
1219
|
return { value: a, done: e };
|
|
1220
|
-
},
|
|
1221
|
-
|
|
1222
|
-
type:
|
|
1223
|
-
target:
|
|
1220
|
+
}, Wm = Ct, tn = cm, Xs = It, tl = $r, qm = Oe.f, Qm = Ym, rr = Xm, Km = le, rl = "Array Iterator", Zm = tl.set, Jm = tl.getterFor(rl), e0 = Qm(Array, "Array", function(a, e) {
|
|
1221
|
+
Zm(this, {
|
|
1222
|
+
type: rl,
|
|
1223
|
+
target: Wm(a),
|
|
1224
1224
|
// target
|
|
1225
1225
|
index: 0,
|
|
1226
1226
|
// next index
|
|
@@ -1228,26 +1228,26 @@ var Ku = {
|
|
|
1228
1228
|
// kind
|
|
1229
1229
|
});
|
|
1230
1230
|
}, function() {
|
|
1231
|
-
var a =
|
|
1231
|
+
var a = Jm(this), e = a.target, t = a.index++;
|
|
1232
1232
|
if (!e || t >= e.length)
|
|
1233
|
-
return a.target = null,
|
|
1233
|
+
return a.target = null, rr(void 0, !0);
|
|
1234
1234
|
switch (a.kind) {
|
|
1235
1235
|
case "keys":
|
|
1236
|
-
return
|
|
1236
|
+
return rr(t, !1);
|
|
1237
1237
|
case "values":
|
|
1238
|
-
return
|
|
1239
|
-
}
|
|
1240
|
-
return
|
|
1241
|
-
}, "values"),
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
if (
|
|
1238
|
+
return rr(e[t], !1);
|
|
1239
|
+
}
|
|
1240
|
+
return rr([t, e[t]], !1);
|
|
1241
|
+
}, "values"), Ws = Xs.Arguments = Xs.Array;
|
|
1242
|
+
tn("keys");
|
|
1243
|
+
tn("values");
|
|
1244
|
+
tn("entries");
|
|
1245
|
+
if (Km && Ws.name !== "values")
|
|
1246
1246
|
try {
|
|
1247
|
-
|
|
1247
|
+
qm(Ws, "name", { value: "values" });
|
|
1248
1248
|
} catch (a) {
|
|
1249
1249
|
}
|
|
1250
|
-
var
|
|
1250
|
+
var t0 = {
|
|
1251
1251
|
CSSRuleList: 0,
|
|
1252
1252
|
CSSStyleDeclaration: 0,
|
|
1253
1253
|
CSSValueList: 0,
|
|
@@ -1279,57 +1279,57 @@ var e0 = {
|
|
|
1279
1279
|
TextTrackCueList: 0,
|
|
1280
1280
|
TextTrackList: 0,
|
|
1281
1281
|
TouchList: 0
|
|
1282
|
-
},
|
|
1282
|
+
}, r0 = Sr, Ma = r0("span").classList, qs = Ma && Ma.constructor && Ma.constructor.prototype, a0 = qs === Object.prototype ? void 0 : qs, Qs = V, al = t0, i0 = a0, mt = e0, Ks = Pt, n0 = Ar, s0 = z, _a = s0("iterator"), Va = mt.values, il = function(a, e) {
|
|
1283
1283
|
if (a) {
|
|
1284
|
-
if (a[
|
|
1284
|
+
if (a[_a] !== Va)
|
|
1285
1285
|
try {
|
|
1286
|
-
|
|
1286
|
+
Ks(a, _a, Va);
|
|
1287
1287
|
} catch (r) {
|
|
1288
|
-
a[
|
|
1288
|
+
a[_a] = Va;
|
|
1289
1289
|
}
|
|
1290
|
-
if (
|
|
1291
|
-
for (var t in
|
|
1292
|
-
if (a[t] !==
|
|
1290
|
+
if (n0(a, e, !0), al[e]) {
|
|
1291
|
+
for (var t in mt)
|
|
1292
|
+
if (a[t] !== mt[t])
|
|
1293
1293
|
try {
|
|
1294
|
-
|
|
1294
|
+
Ks(a, t, mt[t]);
|
|
1295
1295
|
} catch (r) {
|
|
1296
|
-
a[t] =
|
|
1296
|
+
a[t] = mt[t];
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
1300
|
};
|
|
1301
|
-
for (var
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
function
|
|
1305
|
-
if (
|
|
1301
|
+
for (var Da in al)
|
|
1302
|
+
il(Qs[Da] && Qs[Da].prototype, Da);
|
|
1303
|
+
il(i0, "DOMTokenList");
|
|
1304
|
+
function o0(a, e) {
|
|
1305
|
+
if (Ha(a) != "object" || !a)
|
|
1306
1306
|
return a;
|
|
1307
1307
|
var t = a[Symbol.toPrimitive];
|
|
1308
1308
|
if (t !== void 0) {
|
|
1309
1309
|
var r = t.call(a, e || "default");
|
|
1310
|
-
if (
|
|
1310
|
+
if (Ha(r) != "object")
|
|
1311
1311
|
return r;
|
|
1312
1312
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1313
1313
|
}
|
|
1314
1314
|
return (e === "string" ? String : Number)(a);
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1317
|
-
var e =
|
|
1318
|
-
return
|
|
1316
|
+
function u0(a) {
|
|
1317
|
+
var e = o0(a, "string");
|
|
1318
|
+
return Ha(e) == "symbol" ? e : e + "";
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1321
|
-
return (e =
|
|
1320
|
+
function rn(a, e, t) {
|
|
1321
|
+
return (e = u0(e)) in a ? Object.defineProperty(a, e, {
|
|
1322
1322
|
value: t,
|
|
1323
1323
|
enumerable: !0,
|
|
1324
1324
|
configurable: !0,
|
|
1325
1325
|
writable: !0
|
|
1326
1326
|
}) : a[e] = t, a;
|
|
1327
1327
|
}
|
|
1328
|
-
var
|
|
1328
|
+
var l0 = Te, h0 = Or, v0 = Uo, f0 = Ii, Zs = TypeError, Js = "Reduce of empty array with no initial value", eo = function(a) {
|
|
1329
1329
|
return function(e, t, r, i) {
|
|
1330
|
-
var n =
|
|
1331
|
-
if (
|
|
1332
|
-
throw new
|
|
1330
|
+
var n = h0(e), o = v0(n), s = f0(n);
|
|
1331
|
+
if (l0(t), s === 0 && r < 2)
|
|
1332
|
+
throw new Zs(Js);
|
|
1333
1333
|
var u = a ? s - 1 : 0, l = a ? -1 : 1;
|
|
1334
1334
|
if (r < 2)
|
|
1335
1335
|
for (; ; ) {
|
|
@@ -1338,65 +1338,65 @@ var u0 = Te, l0 = Tr, h0 = Fo, v0 = Ni, Ks = TypeError, Zs = "Reduce of empty ar
|
|
|
1338
1338
|
break;
|
|
1339
1339
|
}
|
|
1340
1340
|
if (u += l, a ? u < 0 : s <= u)
|
|
1341
|
-
throw new
|
|
1341
|
+
throw new Zs(Js);
|
|
1342
1342
|
}
|
|
1343
1343
|
for (; a ? u >= 0 : s > u; u += l)
|
|
1344
1344
|
u in o && (i = t(i, o[u], u, n));
|
|
1345
1345
|
return i;
|
|
1346
1346
|
};
|
|
1347
|
-
},
|
|
1347
|
+
}, c0 = {
|
|
1348
1348
|
// `Array.prototype.reduce` method
|
|
1349
1349
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1350
|
-
left:
|
|
1350
|
+
left: eo(!1),
|
|
1351
1351
|
// `Array.prototype.reduceRight` method
|
|
1352
1352
|
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
|
|
1353
|
-
right:
|
|
1354
|
-
},
|
|
1353
|
+
right: eo(!0)
|
|
1354
|
+
}, g0 = k, nl = function(a, e) {
|
|
1355
1355
|
var t = [][a];
|
|
1356
|
-
return !!t &&
|
|
1356
|
+
return !!t && g0(function() {
|
|
1357
1357
|
t.call(null, e || function() {
|
|
1358
1358
|
return 1;
|
|
1359
1359
|
}, 1);
|
|
1360
1360
|
});
|
|
1361
|
-
},
|
|
1362
|
-
|
|
1361
|
+
}, d0 = ee, p0 = c0.left, y0 = nl, to = Si, m0 = Cr, b0 = !m0 && to > 79 && to < 83, x0 = b0 || !y0("reduce");
|
|
1362
|
+
d0({ target: "Array", proto: !0, forced: x0 }, {
|
|
1363
1363
|
reduce: function(e) {
|
|
1364
1364
|
var t = arguments.length;
|
|
1365
|
-
return
|
|
1365
|
+
return p0(this, e, t, t > 1 ? arguments[1] : void 0);
|
|
1366
1366
|
}
|
|
1367
1367
|
});
|
|
1368
|
-
var
|
|
1369
|
-
var a =
|
|
1368
|
+
var T0 = ee, O0 = Pr, S0 = wt.f, E0 = lt, ro = pe, $0 = Ji, w0 = he, C0 = en, A0 = O0("".slice), P0 = Math.min, sl = C0("endsWith"), R0 = !sl && !!function() {
|
|
1369
|
+
var a = S0(String.prototype, "endsWith");
|
|
1370
1370
|
return a && !a.writable;
|
|
1371
1371
|
}();
|
|
1372
|
-
|
|
1372
|
+
T0({ target: "String", proto: !0, forced: !R0 && !sl }, {
|
|
1373
1373
|
endsWith: function(e) {
|
|
1374
|
-
var t =
|
|
1375
|
-
|
|
1376
|
-
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i :
|
|
1377
|
-
return
|
|
1374
|
+
var t = ro(w0(this));
|
|
1375
|
+
$0(e);
|
|
1376
|
+
var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i : P0(E0(r), i), o = ro(e);
|
|
1377
|
+
return A0(t, n - o.length, n) === o;
|
|
1378
1378
|
}
|
|
1379
1379
|
});
|
|
1380
|
-
var
|
|
1380
|
+
var ka = Y, ol = L, N0 = Wi, I0 = J, M0 = je, _0 = he, V0 = du, D0 = Qi, k0 = lt, ao = pe, L0 = ut, io = Ki, B0 = Gu, j0 = k, qe = B0.UNSUPPORTED_Y, F0 = 4294967295, U0 = Math.min, La = ol([].push), Ba = ol("".slice), G0 = !j0(function() {
|
|
1381
1381
|
var a = /(?:)/, e = a.exec;
|
|
1382
1382
|
a.exec = function() {
|
|
1383
1383
|
return e.apply(this, arguments);
|
|
1384
1384
|
};
|
|
1385
1385
|
var t = "ab".split(a);
|
|
1386
1386
|
return t.length !== 2 || t[0] !== "a" || t[1] !== "b";
|
|
1387
|
-
}),
|
|
1387
|
+
}), no = "abbc".split(/(b)*/)[1] === "c" || // eslint-disable-next-line regexp/no-empty-group -- required for testing
|
|
1388
1388
|
"test".split(/(?:)/, -1).length !== 4 || "ab".split(/(?:ab)*/).length !== 2 || ".".split(/(.?)(.?)/).length !== 4 || // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
|
|
1389
1389
|
".".split(/()()/).length > 1 || "".split(/.?/).length;
|
|
1390
|
-
|
|
1390
|
+
N0("split", function(a, e, t) {
|
|
1391
1391
|
var r = "0".split(void 0, 0).length ? function(i, n) {
|
|
1392
|
-
return i === void 0 && n === 0 ? [] :
|
|
1392
|
+
return i === void 0 && n === 0 ? [] : ka(e, this, i, n);
|
|
1393
1393
|
} : e;
|
|
1394
1394
|
return [
|
|
1395
1395
|
// `String.prototype.split` method
|
|
1396
1396
|
// https://tc39.es/ecma262/#sec-string.prototype.split
|
|
1397
1397
|
function(n, o) {
|
|
1398
|
-
var s =
|
|
1399
|
-
return u ?
|
|
1398
|
+
var s = _0(this), u = M0(n) ? void 0 : L0(n, a);
|
|
1399
|
+
return u ? ka(u, n, s, o) : ka(r, ao(s), n, o);
|
|
1400
1400
|
},
|
|
1401
1401
|
// `RegExp.prototype[@@split]` method
|
|
1402
1402
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@split
|
|
@@ -1404,66 +1404,66 @@ R0("split", function(a, e, t) {
|
|
|
1404
1404
|
// NOTE: This cannot be properly polyfilled in engines that don't support
|
|
1405
1405
|
// the 'y' flag.
|
|
1406
1406
|
function(i, n) {
|
|
1407
|
-
var o =
|
|
1408
|
-
if (!
|
|
1407
|
+
var o = I0(this), s = ao(i);
|
|
1408
|
+
if (!no) {
|
|
1409
1409
|
var u = t(r, o, s, n, r !== e);
|
|
1410
1410
|
if (u.done)
|
|
1411
1411
|
return u.value;
|
|
1412
1412
|
}
|
|
1413
|
-
var l =
|
|
1413
|
+
var l = V0(o, RegExp), h = o.unicode, f = (o.ignoreCase ? "i" : "") + (o.multiline ? "m" : "") + (o.unicode ? "u" : "") + (qe ? "g" : "y"), c = new l(qe ? "^(?:" + o.source + ")" : o, f), v = n === void 0 ? F0 : n >>> 0;
|
|
1414
1414
|
if (v === 0)
|
|
1415
1415
|
return [];
|
|
1416
1416
|
if (s.length === 0)
|
|
1417
|
-
return
|
|
1417
|
+
return io(c, s) === null ? [s] : [];
|
|
1418
1418
|
for (var d = 0, g = 0, p = []; g < s.length; ) {
|
|
1419
1419
|
c.lastIndex = qe ? 0 : g;
|
|
1420
|
-
var y =
|
|
1421
|
-
if (y === null || (x =
|
|
1422
|
-
g =
|
|
1420
|
+
var y = io(c, qe ? Ba(s, g) : s), x;
|
|
1421
|
+
if (y === null || (x = U0(k0(c.lastIndex + (qe ? g : 0)), s.length)) === d)
|
|
1422
|
+
g = D0(s, g, h);
|
|
1423
1423
|
else {
|
|
1424
|
-
if (
|
|
1424
|
+
if (La(p, Ba(s, d, g)), p.length === v)
|
|
1425
1425
|
return p;
|
|
1426
1426
|
for (var b = 1; b <= y.length - 1; b++)
|
|
1427
|
-
if (
|
|
1427
|
+
if (La(p, y[b]), p.length === v)
|
|
1428
1428
|
return p;
|
|
1429
1429
|
g = d = x;
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
|
-
return
|
|
1432
|
+
return La(p, Ba(s, d)), p;
|
|
1433
1433
|
}
|
|
1434
1434
|
];
|
|
1435
|
-
},
|
|
1436
|
-
var
|
|
1435
|
+
}, no || !G0, qe);
|
|
1436
|
+
var _r = { exports: {} }, bt = { exports: {} };
|
|
1437
1437
|
(function() {
|
|
1438
1438
|
var a, e, t, r, i, n;
|
|
1439
|
-
typeof performance != "undefined" && performance !== null && performance.now ?
|
|
1439
|
+
typeof performance != "undefined" && performance !== null && performance.now ? bt.exports = function() {
|
|
1440
1440
|
return performance.now();
|
|
1441
|
-
} : typeof
|
|
1441
|
+
} : typeof Qe != "undefined" && Qe !== null && Qe.hrtime ? (bt.exports = function() {
|
|
1442
1442
|
return (a() - i) / 1e6;
|
|
1443
|
-
}, e =
|
|
1443
|
+
}, e = Qe.hrtime, a = function() {
|
|
1444
1444
|
var o;
|
|
1445
1445
|
return o = e(), o[0] * 1e9 + o[1];
|
|
1446
|
-
}, r = a(), n =
|
|
1446
|
+
}, r = a(), n = Qe.uptime() * 1e9, i = r - n) : Date.now ? (bt.exports = function() {
|
|
1447
1447
|
return Date.now() - t;
|
|
1448
|
-
}, t = Date.now()) : (
|
|
1448
|
+
}, t = Date.now()) : (bt.exports = function() {
|
|
1449
1449
|
return (/* @__PURE__ */ new Date()).getTime() - t;
|
|
1450
1450
|
}, t = (/* @__PURE__ */ new Date()).getTime());
|
|
1451
|
-
}).call(
|
|
1452
|
-
var
|
|
1453
|
-
for (var
|
|
1454
|
-
|
|
1455
|
-
if (!
|
|
1456
|
-
var
|
|
1457
|
-
|
|
1451
|
+
}).call(Ze);
|
|
1452
|
+
var z0 = bt.exports, H0 = z0, be = typeof window == "undefined" ? Ze : window, ar = ["moz", "webkit"], at = "AnimationFrame", ot = be["request" + at], $t = be["cancel" + at] || be["cancelRequest" + at];
|
|
1453
|
+
for (var yt = 0; !ot && yt < ar.length; yt++)
|
|
1454
|
+
ot = be[ar[yt] + "Request" + at], $t = be[ar[yt] + "Cancel" + at] || be[ar[yt] + "CancelRequest" + at];
|
|
1455
|
+
if (!ot || !$t) {
|
|
1456
|
+
var ja = 0, so = 0, Me = [], Y0 = 1e3 / 60;
|
|
1457
|
+
ot = function(a) {
|
|
1458
1458
|
if (Me.length === 0) {
|
|
1459
|
-
var e =
|
|
1460
|
-
|
|
1459
|
+
var e = H0(), t = Math.max(0, Y0 - (e - ja));
|
|
1460
|
+
ja = t + e, setTimeout(function() {
|
|
1461
1461
|
var r = Me.slice(0);
|
|
1462
1462
|
Me.length = 0;
|
|
1463
1463
|
for (var i = 0; i < r.length; i++)
|
|
1464
1464
|
if (!r[i].cancelled)
|
|
1465
1465
|
try {
|
|
1466
|
-
r[i].callback(
|
|
1466
|
+
r[i].callback(ja);
|
|
1467
1467
|
} catch (n) {
|
|
1468
1468
|
setTimeout(function() {
|
|
1469
1469
|
throw n;
|
|
@@ -1472,53 +1472,53 @@ if (!st || !Et) {
|
|
|
1472
1472
|
}, Math.round(t));
|
|
1473
1473
|
}
|
|
1474
1474
|
return Me.push({
|
|
1475
|
-
handle: ++
|
|
1475
|
+
handle: ++so,
|
|
1476
1476
|
callback: a,
|
|
1477
1477
|
cancelled: !1
|
|
1478
|
-
}),
|
|
1479
|
-
},
|
|
1478
|
+
}), so;
|
|
1479
|
+
}, $t = function(a) {
|
|
1480
1480
|
for (var e = 0; e < Me.length; e++)
|
|
1481
1481
|
Me[e].handle === a && (Me[e].cancelled = !0);
|
|
1482
1482
|
};
|
|
1483
1483
|
}
|
|
1484
|
-
|
|
1485
|
-
return
|
|
1484
|
+
_r.exports = function(a) {
|
|
1485
|
+
return ot.call(be, a);
|
|
1486
1486
|
};
|
|
1487
|
-
|
|
1488
|
-
|
|
1487
|
+
_r.exports.cancel = function() {
|
|
1488
|
+
$t.apply(be, arguments);
|
|
1489
1489
|
};
|
|
1490
|
-
|
|
1491
|
-
a || (a = be), a.requestAnimationFrame =
|
|
1490
|
+
_r.exports.polyfill = function(a) {
|
|
1491
|
+
a || (a = be), a.requestAnimationFrame = ot, a.cancelAnimationFrame = $t;
|
|
1492
1492
|
};
|
|
1493
|
-
var
|
|
1494
|
-
const
|
|
1495
|
-
var
|
|
1496
|
-
\v\f\r \u2028\u2029\uFEFF`,
|
|
1493
|
+
var X0 = _r.exports;
|
|
1494
|
+
const Fa = /* @__PURE__ */ Vo(X0);
|
|
1495
|
+
var ul = `
|
|
1496
|
+
\v\f\r \u2028\u2029\uFEFF`, W0 = L, q0 = he, Q0 = pe, pi = ul, oo = W0("".replace), K0 = RegExp("^[" + pi + "]+"), Z0 = RegExp("(^|[^" + pi + "])[" + pi + "]+$"), Ua = function(a) {
|
|
1497
1497
|
return function(e) {
|
|
1498
|
-
var t = q0(
|
|
1499
|
-
return a & 1 && (t =
|
|
1498
|
+
var t = Q0(q0(e));
|
|
1499
|
+
return a & 1 && (t = oo(t, K0, "")), a & 2 && (t = oo(t, Z0, "$1")), t;
|
|
1500
1500
|
};
|
|
1501
|
-
},
|
|
1501
|
+
}, J0 = {
|
|
1502
1502
|
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
1503
1503
|
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
1504
|
-
start:
|
|
1504
|
+
start: Ua(1),
|
|
1505
1505
|
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
1506
1506
|
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
1507
|
-
end:
|
|
1507
|
+
end: Ua(2),
|
|
1508
1508
|
// `String.prototype.trim` method
|
|
1509
1509
|
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
1510
|
-
trim:
|
|
1511
|
-
},
|
|
1512
|
-
return
|
|
1513
|
-
return !!
|
|
1510
|
+
trim: Ua(3)
|
|
1511
|
+
}, eb = Er.PROPER, tb = k, uo = ul, lo = "
", rb = function(a) {
|
|
1512
|
+
return tb(function() {
|
|
1513
|
+
return !!uo[a]() || lo[a]() !== lo || eb && uo[a].name !== a;
|
|
1514
1514
|
});
|
|
1515
|
-
},
|
|
1516
|
-
|
|
1515
|
+
}, ab = ee, ib = J0.trim, nb = rb;
|
|
1516
|
+
ab({ target: "String", proto: !0, forced: nb("trim") }, {
|
|
1517
1517
|
trim: function() {
|
|
1518
|
-
return
|
|
1518
|
+
return ib(this);
|
|
1519
1519
|
}
|
|
1520
1520
|
});
|
|
1521
|
-
var
|
|
1521
|
+
var sb = function(a) {
|
|
1522
1522
|
this.ok = !1, this.alpha = 1, a.charAt(0) == "#" && (a = a.substr(1, 6)), a = a.replace(/ /g, ""), a = a.toLowerCase();
|
|
1523
1523
|
var e = {
|
|
1524
1524
|
aliceblue: "f0f8ff",
|
|
@@ -1748,30 +1748,30 @@ var nb = function(a) {
|
|
|
1748
1748
|
return v;
|
|
1749
1749
|
};
|
|
1750
1750
|
};
|
|
1751
|
-
const
|
|
1752
|
-
var
|
|
1753
|
-
|
|
1751
|
+
const yi = /* @__PURE__ */ Vo(sb);
|
|
1752
|
+
var ob = ee, ub = Pr, lb = iu.indexOf, hb = nl, mi = ub([].indexOf), ll = !!mi && 1 / mi([1], 1, -0) < 0, vb = ll || !hb("indexOf");
|
|
1753
|
+
ob({ target: "Array", proto: !0, forced: vb }, {
|
|
1754
1754
|
indexOf: function(e) {
|
|
1755
1755
|
var t = arguments.length > 1 ? arguments[1] : void 0;
|
|
1756
|
-
return
|
|
1756
|
+
return ll ? mi(this, e, t) || 0 : lb(this, e, t);
|
|
1757
1757
|
}
|
|
1758
1758
|
});
|
|
1759
|
-
var
|
|
1760
|
-
|
|
1759
|
+
var fb = ee, cb = L, gb = Ji, db = he, ho = pe, pb = en, yb = cb("".indexOf);
|
|
1760
|
+
fb({ target: "String", proto: !0, forced: !pb("includes") }, {
|
|
1761
1761
|
includes: function(e) {
|
|
1762
|
-
return !!~
|
|
1763
|
-
|
|
1764
|
-
|
|
1762
|
+
return !!~yb(
|
|
1763
|
+
ho(db(this)),
|
|
1764
|
+
ho(gb(e)),
|
|
1765
1765
|
arguments.length > 1 ? arguments[1] : void 0
|
|
1766
1766
|
);
|
|
1767
1767
|
}
|
|
1768
1768
|
});
|
|
1769
|
-
var
|
|
1770
|
-
return
|
|
1771
|
-
},
|
|
1772
|
-
|
|
1769
|
+
var mb = Be, bb = Array.isArray || function(e) {
|
|
1770
|
+
return mb(e) === "Array";
|
|
1771
|
+
}, xb = ee, Tb = L, Ob = bb, Sb = Tb([].reverse), vo = [1, 2];
|
|
1772
|
+
xb({ target: "Array", proto: !0, forced: String(vo) === String(vo.reverse()) }, {
|
|
1773
1773
|
reverse: function() {
|
|
1774
|
-
return
|
|
1774
|
+
return Ob(this) && (this.length = this.length), Sb(this);
|
|
1775
1775
|
}
|
|
1776
1776
|
});
|
|
1777
1777
|
/*! *****************************************************************************
|
|
@@ -1788,23 +1788,23 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
1788
1788
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
1789
1789
|
PERFORMANCE OF THIS SOFTWARE.
|
|
1790
1790
|
***************************************************************************** */
|
|
1791
|
-
var
|
|
1792
|
-
return (
|
|
1791
|
+
var hl = function(a, e) {
|
|
1792
|
+
return (hl = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
|
|
1793
1793
|
t.__proto__ = r;
|
|
1794
1794
|
} || function(t, r) {
|
|
1795
1795
|
for (var i in r)
|
|
1796
1796
|
Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
|
|
1797
1797
|
})(a, e);
|
|
1798
1798
|
};
|
|
1799
|
-
function
|
|
1799
|
+
function vl(a, e) {
|
|
1800
1800
|
if (typeof e != "function" && e !== null)
|
|
1801
1801
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
1802
1802
|
function t() {
|
|
1803
1803
|
this.constructor = a;
|
|
1804
1804
|
}
|
|
1805
|
-
|
|
1805
|
+
hl(a, e), a.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
1806
1806
|
}
|
|
1807
|
-
function
|
|
1807
|
+
function Eb(a) {
|
|
1808
1808
|
var e = "";
|
|
1809
1809
|
Array.isArray(a) || (a = [a]);
|
|
1810
1810
|
for (var t = 0; t < a.length; t++) {
|
|
@@ -1835,7 +1835,7 @@ function Sb(a) {
|
|
|
1835
1835
|
}
|
|
1836
1836
|
return e;
|
|
1837
1837
|
}
|
|
1838
|
-
function
|
|
1838
|
+
function bi(a, e) {
|
|
1839
1839
|
var t = a[0], r = a[1];
|
|
1840
1840
|
return [t * Math.cos(e) - r * Math.sin(e), t * Math.sin(e) + r * Math.cos(e)];
|
|
1841
1841
|
}
|
|
@@ -1848,16 +1848,16 @@ function oe() {
|
|
|
1848
1848
|
return !0;
|
|
1849
1849
|
}
|
|
1850
1850
|
var Ee = Math.PI;
|
|
1851
|
-
function
|
|
1851
|
+
function Ga(a, e, t) {
|
|
1852
1852
|
a.lArcFlag = a.lArcFlag === 0 ? 0 : 1, a.sweepFlag = a.sweepFlag === 0 ? 0 : 1;
|
|
1853
1853
|
var r = a.rX, i = a.rY, n = a.x, o = a.y;
|
|
1854
1854
|
r = Math.abs(a.rX), i = Math.abs(a.rY);
|
|
1855
|
-
var s =
|
|
1855
|
+
var s = bi([(e - n) / 2, (t - o) / 2], -a.xRot / 180 * Ee), u = s[0], l = s[1], h = Math.pow(u, 2) / Math.pow(r, 2) + Math.pow(l, 2) / Math.pow(i, 2);
|
|
1856
1856
|
1 < h && (r *= Math.sqrt(h), i *= Math.sqrt(h)), a.rX = r, a.rY = i;
|
|
1857
|
-
var f = Math.pow(r, 2) * Math.pow(l, 2) + Math.pow(i, 2) * Math.pow(u, 2), c = (a.lArcFlag !== a.sweepFlag ? 1 : -1) * Math.sqrt(Math.max(0, (Math.pow(r, 2) * Math.pow(i, 2) - f) / f)), v = r * l / i * c, d = -i * u / r * c, g =
|
|
1857
|
+
var f = Math.pow(r, 2) * Math.pow(l, 2) + Math.pow(i, 2) * Math.pow(u, 2), c = (a.lArcFlag !== a.sweepFlag ? 1 : -1) * Math.sqrt(Math.max(0, (Math.pow(r, 2) * Math.pow(i, 2) - f) / f)), v = r * l / i * c, d = -i * u / r * c, g = bi([v, d], a.xRot / 180 * Ee);
|
|
1858
1858
|
a.cX = g[0] + (e + n) / 2, a.cY = g[1] + (t + o) / 2, a.phi1 = Math.atan2((l - d) / i, (u - v) / r), a.phi2 = Math.atan2((-l - d) / i, (-u - v) / r), a.sweepFlag === 0 && a.phi2 > a.phi1 && (a.phi2 -= 2 * Ee), a.sweepFlag === 1 && a.phi2 < a.phi1 && (a.phi2 += 2 * Ee), a.phi1 *= 180 / Ee, a.phi2 *= 180 / Ee;
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1860
|
+
function fo(a, e, t) {
|
|
1861
1861
|
oe(a, e, t);
|
|
1862
1862
|
var r = a * a + e * e - t * t;
|
|
1863
1863
|
if (0 > r)
|
|
@@ -1868,13 +1868,13 @@ function vo(a, e, t) {
|
|
|
1868
1868
|
return [[(a * t + e * i) / (a * a + e * e), (e * t - a * i) / (a * a + e * e)], [(a * t - e * i) / (a * a + e * e), (e * t + a * i) / (a * a + e * e)]];
|
|
1869
1869
|
}
|
|
1870
1870
|
var U, ye = Math.PI / 180;
|
|
1871
|
-
function
|
|
1871
|
+
function co(a, e, t) {
|
|
1872
1872
|
return (1 - t) * a + t * e;
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1874
|
+
function go(a, e, t, r) {
|
|
1875
1875
|
return a + Math.cos(r / 180 * Ee) * e + Math.sin(r / 180 * Ee) * t;
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1877
|
+
function po(a, e, t, r) {
|
|
1878
1878
|
var i = 1e-6, n = e - a, o = t - e, s = 3 * n + 3 * (r - t) - 6 * o, u = 6 * (o - n), l = 3 * n;
|
|
1879
1879
|
return Math.abs(s) < i ? [-l / u] : function(h, f, c) {
|
|
1880
1880
|
c === void 0 && (c = 1e-6);
|
|
@@ -1887,7 +1887,7 @@ function go(a, e, t, r) {
|
|
|
1887
1887
|
return [-h / 2 - d, -h / 2 + d];
|
|
1888
1888
|
}(u / s, l / s, i);
|
|
1889
1889
|
}
|
|
1890
|
-
function
|
|
1890
|
+
function yo(a, e, t, r, i) {
|
|
1891
1891
|
var n = 1 - i;
|
|
1892
1892
|
return a * (n * n * n) + e * (3 * n * n * i) + t * (3 * n * i * i) + r * (i * i * i);
|
|
1893
1893
|
}
|
|
@@ -2000,13 +2000,13 @@ function po(a, e, t, r, i) {
|
|
|
2000
2000
|
return i(function(s, u, l) {
|
|
2001
2001
|
return m.ARC === s.type ? function(h, f, c) {
|
|
2002
2002
|
var v, d, g, p;
|
|
2003
|
-
h.cX ||
|
|
2003
|
+
h.cX || Ga(h, f, c);
|
|
2004
2004
|
for (var y = Math.min(h.phi1, h.phi2), x = Math.max(h.phi1, h.phi2) - y, b = Math.ceil(x / 90), T = new Array(b), $ = f, E = c, O = 0; O < b; O++) {
|
|
2005
|
-
var C =
|
|
2005
|
+
var C = co(h.phi1, h.phi2, O / b), I = co(h.phi1, h.phi2, (O + 1) / b), _ = I - C, j = 4 / 3 * Math.tan(_ * ye / 4), P = [Math.cos(C * ye) - j * Math.sin(C * ye), Math.sin(C * ye) + j * Math.cos(C * ye)], X = P[0], W = P[1], G = [Math.cos(I * ye), Math.sin(I * ye)], q = G[0], H = G[1], Q = [q + j * Math.sin(I * ye), H - j * Math.cos(I * ye)], R = Q[0], M = Q[1];
|
|
2006
2006
|
T[O] = { relative: h.relative, type: m.CURVE_TO };
|
|
2007
2007
|
var K = function(ne, ge) {
|
|
2008
|
-
var Se =
|
|
2009
|
-
return [h.cX + ze, h.cY +
|
|
2008
|
+
var Se = bi([ne * h.rX, ge * h.rY], h.xRot), ze = Se[0], _t = Se[1];
|
|
2009
|
+
return [h.cX + ze, h.cY + _t];
|
|
2010
2010
|
};
|
|
2011
2011
|
v = K(X, W), T[O].x1 = v[0], T[O].y1 = v[1], d = K(R, M), T[O].x2 = d[0], T[O].y2 = d[1], g = K(q, H), T[O].x = g[0], T[O].y = g[1], h.relative && (T[O].x1 -= $, T[O].y1 -= E, T[O].x2 -= $, T[O].y2 -= E, T[O].x -= $, T[O].y -= E), $ = (p = [T[O].x, T[O].y])[0], E = p[1];
|
|
2012
2012
|
}
|
|
@@ -2015,7 +2015,7 @@ function po(a, e, t, r, i) {
|
|
|
2015
2015
|
});
|
|
2016
2016
|
}, a.ANNOTATE_ARCS = function() {
|
|
2017
2017
|
return i(function(s, u, l) {
|
|
2018
|
-
return s.relative && (u = 0, l = 0), m.ARC === s.type &&
|
|
2018
|
+
return s.relative && (u = 0, l = 0), m.ARC === s.type && Ga(s, u, l), s;
|
|
2019
2019
|
});
|
|
2020
2020
|
}, a.CLONE = o, a.CALCULATE_BOUNDS = function() {
|
|
2021
2021
|
var s = function(c) {
|
|
@@ -2033,21 +2033,21 @@ function po(a, e, t, r, i) {
|
|
|
2033
2033
|
}
|
|
2034
2034
|
if (g.type & m.DRAWING_COMMANDS && (p(v), y(d)), g.type & m.HORIZ_LINE_TO && p(g.x), g.type & m.VERT_LINE_TO && y(g.y), g.type & m.LINE_TO && (p(g.x), y(g.y)), g.type & m.CURVE_TO) {
|
|
2035
2035
|
p(g.x), y(g.y);
|
|
2036
|
-
for (var x = 0, b =
|
|
2037
|
-
0 < (R = b[x]) && 1 > R && p(
|
|
2038
|
-
for (var T = 0, $ =
|
|
2039
|
-
0 < (R = $[T]) && 1 > R && y(
|
|
2036
|
+
for (var x = 0, b = po(v, g.x1, g.x2, g.x); x < b.length; x++)
|
|
2037
|
+
0 < (R = b[x]) && 1 > R && p(yo(v, g.x1, g.x2, g.x, R));
|
|
2038
|
+
for (var T = 0, $ = po(d, g.y1, g.y2, g.y); T < $.length; T++)
|
|
2039
|
+
0 < (R = $[T]) && 1 > R && y(yo(d, g.y1, g.y2, g.y, R));
|
|
2040
2040
|
}
|
|
2041
2041
|
if (g.type & m.ARC) {
|
|
2042
|
-
p(g.x), y(g.y),
|
|
2042
|
+
p(g.x), y(g.y), Ga(g, v, d);
|
|
2043
2043
|
for (var E = g.xRot / 180 * Math.PI, O = Math.cos(E) * g.rX, C = Math.sin(E) * g.rX, I = -Math.sin(E) * g.rY, _ = Math.cos(E) * g.rY, j = g.phi1 < g.phi2 ? [g.phi1, g.phi2] : -180 > g.phi2 ? [g.phi2 + 360, g.phi1 + 360] : [g.phi2, g.phi1], P = j[0], X = j[1], W = function(M) {
|
|
2044
2044
|
var K = M[0], ne = M[1], ge = 180 * Math.atan2(ne, K) / Math.PI;
|
|
2045
2045
|
return ge < P ? ge + 360 : ge;
|
|
2046
|
-
}, G = 0, q =
|
|
2047
|
-
(R = q[G]) > P && R < X && p(
|
|
2048
|
-
for (var H = 0, Q =
|
|
2046
|
+
}, G = 0, q = fo(I, -O, 0).map(W); G < q.length; G++)
|
|
2047
|
+
(R = q[G]) > P && R < X && p(go(g.cX, O, I, R));
|
|
2048
|
+
for (var H = 0, Q = fo(_, -C, 0).map(W); H < Q.length; H++) {
|
|
2049
2049
|
var R;
|
|
2050
|
-
(R = Q[H]) > P && R < X && y(
|
|
2050
|
+
(R = Q[H]) > P && R < X && y(go(g.cY, C, _, R));
|
|
2051
2051
|
}
|
|
2052
2052
|
}
|
|
2053
2053
|
return c;
|
|
@@ -2055,7 +2055,7 @@ function po(a, e, t, r, i) {
|
|
|
2055
2055
|
return f.minX = 1 / 0, f.maxX = -1 / 0, f.minY = 1 / 0, f.maxY = -1 / 0, f;
|
|
2056
2056
|
};
|
|
2057
2057
|
})(U || (U = {}));
|
|
2058
|
-
var se,
|
|
2058
|
+
var se, fl = function() {
|
|
2059
2059
|
function a() {
|
|
2060
2060
|
}
|
|
2061
2061
|
return a.prototype.round = function(e) {
|
|
@@ -2093,17 +2093,17 @@ var se, vl = function() {
|
|
|
2093
2093
|
}, a.prototype.annotateArcs = function() {
|
|
2094
2094
|
return this.transform(U.ANNOTATE_ARCS());
|
|
2095
2095
|
}, a;
|
|
2096
|
-
}(),
|
|
2096
|
+
}(), $b = function(a) {
|
|
2097
2097
|
return a === " " || a === " " || a === "\r" || a === `
|
|
2098
2098
|
`;
|
|
2099
|
-
},
|
|
2099
|
+
}, mo = function(a) {
|
|
2100
2100
|
return "0".charCodeAt(0) <= a.charCodeAt(0) && a.charCodeAt(0) <= "9".charCodeAt(0);
|
|
2101
|
-
},
|
|
2101
|
+
}, wb = function(a) {
|
|
2102
2102
|
function e() {
|
|
2103
2103
|
var t = a.call(this) || this;
|
|
2104
2104
|
return t.curNumber = "", t.curCommandType = -1, t.curCommandRelative = !1, t.canParseCommandOrComma = !0, t.curNumberHasExp = !1, t.curNumberHasExpDigits = !1, t.curNumberHasDecimal = !1, t.curArgs = [], t;
|
|
2105
2105
|
}
|
|
2106
|
-
return
|
|
2106
|
+
return vl(e, a), e.prototype.finish = function(t) {
|
|
2107
2107
|
if (t === void 0 && (t = []), this.parse(" ", t), this.curArgs.length !== 0 || !this.canParseCommandOrComma)
|
|
2108
2108
|
throw new SyntaxError("Unterminated command at the path end.");
|
|
2109
2109
|
return t;
|
|
@@ -2113,8 +2113,8 @@ var se, vl = function() {
|
|
|
2113
2113
|
for (var n = function(f) {
|
|
2114
2114
|
r.push(f), i.curArgs.length = 0, i.canParseCommandOrComma = !0;
|
|
2115
2115
|
}, o = 0; o < t.length; o++) {
|
|
2116
|
-
var s = t[o], u = !(this.curCommandType !== m.ARC || this.curArgs.length !== 3 && this.curArgs.length !== 4 || this.curNumber.length !== 1 || this.curNumber !== "0" && this.curNumber !== "1"), l =
|
|
2117
|
-
if (!
|
|
2116
|
+
var s = t[o], u = !(this.curCommandType !== m.ARC || this.curArgs.length !== 3 && this.curArgs.length !== 4 || this.curNumber.length !== 1 || this.curNumber !== "0" && this.curNumber !== "1"), l = mo(s) && (this.curNumber === "0" && s === "0" || u);
|
|
2117
|
+
if (!mo(s) || l)
|
|
2118
2118
|
if (s !== "e" && s !== "E")
|
|
2119
2119
|
if (s !== "-" && s !== "+" || !this.curNumberHasExp || this.curNumberHasExpDigits)
|
|
2120
2120
|
if (s !== "." || this.curNumberHasExp || this.curNumberHasDecimal || u) {
|
|
@@ -2129,9 +2129,9 @@ var se, vl = function() {
|
|
|
2129
2129
|
} else if ((this.curArgs.length === 3 || this.curArgs.length === 4) && this.curNumber !== "0" && this.curNumber !== "1")
|
|
2130
2130
|
throw new SyntaxError('Expected a flag, got "' + this.curNumber + '" at index "' + o + '"');
|
|
2131
2131
|
}
|
|
2132
|
-
this.curArgs.push(h), this.curArgs.length ===
|
|
2132
|
+
this.curArgs.push(h), this.curArgs.length === Cb[this.curCommandType] && (m.HORIZ_LINE_TO === this.curCommandType ? n({ type: m.HORIZ_LINE_TO, relative: this.curCommandRelative, x: h }) : m.VERT_LINE_TO === this.curCommandType ? n({ type: m.VERT_LINE_TO, relative: this.curCommandRelative, y: h }) : this.curCommandType === m.MOVE_TO || this.curCommandType === m.LINE_TO || this.curCommandType === m.SMOOTH_QUAD_TO ? (n({ type: this.curCommandType, relative: this.curCommandRelative, x: this.curArgs[0], y: this.curArgs[1] }), m.MOVE_TO === this.curCommandType && (this.curCommandType = m.LINE_TO)) : this.curCommandType === m.CURVE_TO ? n({ type: m.CURVE_TO, relative: this.curCommandRelative, x1: this.curArgs[0], y1: this.curArgs[1], x2: this.curArgs[2], y2: this.curArgs[3], x: this.curArgs[4], y: this.curArgs[5] }) : this.curCommandType === m.SMOOTH_CURVE_TO ? n({ type: m.SMOOTH_CURVE_TO, relative: this.curCommandRelative, x2: this.curArgs[0], y2: this.curArgs[1], x: this.curArgs[2], y: this.curArgs[3] }) : this.curCommandType === m.QUAD_TO ? n({ type: m.QUAD_TO, relative: this.curCommandRelative, x1: this.curArgs[0], y1: this.curArgs[1], x: this.curArgs[2], y: this.curArgs[3] }) : this.curCommandType === m.ARC && n({ type: m.ARC, relative: this.curCommandRelative, rX: this.curArgs[0], rY: this.curArgs[1], xRot: this.curArgs[2], lArcFlag: this.curArgs[3], sweepFlag: this.curArgs[4], x: this.curArgs[5], y: this.curArgs[6] })), this.curNumber = "", this.curNumberHasExpDigits = !1, this.curNumberHasExp = !1, this.curNumberHasDecimal = !1, this.canParseCommandOrComma = !0;
|
|
2133
2133
|
}
|
|
2134
|
-
if (
|
|
2134
|
+
if (!$b(s))
|
|
2135
2135
|
if (s === "," && this.canParseCommandOrComma)
|
|
2136
2136
|
this.canParseCommandOrComma = !1;
|
|
2137
2137
|
else if (s !== "+" && s !== "-" && s !== ".")
|
|
@@ -2189,12 +2189,12 @@ var se, vl = function() {
|
|
|
2189
2189
|
return i;
|
|
2190
2190
|
} } });
|
|
2191
2191
|
}, e;
|
|
2192
|
-
}(
|
|
2192
|
+
}(fl), m = function(a) {
|
|
2193
2193
|
function e(t) {
|
|
2194
2194
|
var r = a.call(this) || this;
|
|
2195
2195
|
return r.commands = typeof t == "string" ? e.parse(t) : t, r;
|
|
2196
2196
|
}
|
|
2197
|
-
return
|
|
2197
|
+
return vl(e, a), e.prototype.encode = function() {
|
|
2198
2198
|
return e.encode(this.commands);
|
|
2199
2199
|
}, e.prototype.getBounds = function() {
|
|
2200
2200
|
var t = U.CALCULATE_BOUNDS();
|
|
@@ -2206,36 +2206,36 @@ var se, vl = function() {
|
|
|
2206
2206
|
}
|
|
2207
2207
|
return this.commands = r, this;
|
|
2208
2208
|
}, e.encode = function(t) {
|
|
2209
|
-
return
|
|
2209
|
+
return Eb(t);
|
|
2210
2210
|
}, e.parse = function(t) {
|
|
2211
|
-
var r = new
|
|
2211
|
+
var r = new wb(), i = [];
|
|
2212
2212
|
return r.parse(t, i), r.finish(i), i;
|
|
2213
2213
|
}, e.CLOSE_PATH = 1, e.MOVE_TO = 2, e.HORIZ_LINE_TO = 4, e.VERT_LINE_TO = 8, e.LINE_TO = 16, e.CURVE_TO = 32, e.SMOOTH_CURVE_TO = 64, e.QUAD_TO = 128, e.SMOOTH_QUAD_TO = 256, e.ARC = 512, e.LINE_COMMANDS = e.LINE_TO | e.HORIZ_LINE_TO | e.VERT_LINE_TO, e.DRAWING_COMMANDS = e.HORIZ_LINE_TO | e.VERT_LINE_TO | e.LINE_TO | e.CURVE_TO | e.SMOOTH_CURVE_TO | e.QUAD_TO | e.SMOOTH_QUAD_TO | e.ARC, e;
|
|
2214
|
-
}(
|
|
2214
|
+
}(fl), Cb = ((se = {})[m.MOVE_TO] = 2, se[m.LINE_TO] = 2, se[m.HORIZ_LINE_TO] = 1, se[m.VERT_LINE_TO] = 1, se[m.CLOSE_PATH] = 0, se[m.QUAD_TO] = 4, se[m.SMOOTH_QUAD_TO] = 2, se[m.CURVE_TO] = 6, se[m.SMOOTH_CURVE_TO] = 4, se[m.ARC] = 7, se), Ab = Y, Pb = fe, Rb = xr, Nb = Uu, bo = RegExp.prototype, Ib = function(a) {
|
|
2215
2215
|
var e = a.flags;
|
|
2216
|
-
return e === void 0 && !("flags" in
|
|
2217
|
-
},
|
|
2218
|
-
return
|
|
2219
|
-
}),
|
|
2220
|
-
(
|
|
2221
|
-
var e =
|
|
2216
|
+
return e === void 0 && !("flags" in bo) && !Pb(a, "flags") && Rb(bo, a) ? Ab(Nb, a) : e;
|
|
2217
|
+
}, Mb = Er.PROPER, _b = Ue, Vb = J, xo = pe, Db = k, kb = Ib, an = "toString", cl = RegExp.prototype, gl = cl[an], Lb = Db(function() {
|
|
2218
|
+
return gl.call({ source: "a", flags: "b" }) !== "/a/b";
|
|
2219
|
+
}), Bb = Mb && gl.name !== an;
|
|
2220
|
+
(Lb || Bb) && _b(cl, an, function() {
|
|
2221
|
+
var e = Vb(this), t = xo(e.source), r = xo(kb(e));
|
|
2222
2222
|
return "/" + t + "/" + r;
|
|
2223
2223
|
}, { unsafe: !0 });
|
|
2224
|
-
function
|
|
2224
|
+
function fr(a) {
|
|
2225
2225
|
"@babel/helpers - typeof";
|
|
2226
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
2226
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? fr = function(e) {
|
|
2227
2227
|
return typeof e;
|
|
2228
|
-
} :
|
|
2228
|
+
} : fr = function(e) {
|
|
2229
2229
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
2230
|
-
},
|
|
2230
|
+
}, fr(a);
|
|
2231
2231
|
}
|
|
2232
|
-
function
|
|
2232
|
+
function jb(a, e) {
|
|
2233
2233
|
if (!(a instanceof e))
|
|
2234
2234
|
throw new TypeError("Cannot call a class as a function");
|
|
2235
2235
|
}
|
|
2236
|
-
var
|
|
2237
|
-
function
|
|
2238
|
-
if (typeof a == "string" && (a = document.getElementById(a)), !a ||
|
|
2236
|
+
var Fb = [512, 512, 456, 512, 328, 456, 335, 512, 405, 328, 271, 456, 388, 335, 292, 512, 454, 405, 364, 328, 298, 271, 496, 456, 420, 388, 360, 335, 312, 292, 273, 512, 482, 454, 428, 405, 383, 364, 345, 328, 312, 298, 284, 271, 259, 496, 475, 456, 437, 420, 404, 388, 374, 360, 347, 335, 323, 312, 302, 292, 282, 273, 265, 512, 497, 482, 468, 454, 441, 428, 417, 405, 394, 383, 373, 364, 354, 345, 337, 328, 320, 312, 305, 298, 291, 284, 278, 271, 265, 259, 507, 496, 485, 475, 465, 456, 446, 437, 428, 420, 412, 404, 396, 388, 381, 374, 367, 360, 354, 347, 341, 335, 329, 323, 318, 312, 307, 302, 297, 292, 287, 282, 278, 273, 269, 265, 261, 512, 505, 497, 489, 482, 475, 468, 461, 454, 447, 441, 435, 428, 422, 417, 411, 405, 399, 394, 389, 383, 378, 373, 368, 364, 359, 354, 350, 345, 341, 337, 332, 328, 324, 320, 316, 312, 309, 305, 301, 298, 294, 291, 287, 284, 281, 278, 274, 271, 268, 265, 262, 259, 257, 507, 501, 496, 491, 485, 480, 475, 470, 465, 460, 456, 451, 446, 442, 437, 433, 428, 424, 420, 416, 412, 408, 404, 400, 396, 392, 388, 385, 381, 377, 374, 370, 367, 363, 360, 357, 354, 350, 347, 344, 341, 338, 335, 332, 329, 326, 323, 320, 318, 315, 312, 310, 307, 304, 302, 299, 297, 294, 292, 289, 287, 285, 282, 280, 278, 275, 273, 271, 269, 267, 265, 263, 261, 259], Ub = [9, 11, 12, 13, 13, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24];
|
|
2237
|
+
function Gb(a, e, t, r, i) {
|
|
2238
|
+
if (typeof a == "string" && (a = document.getElementById(a)), !a || fr(a) !== "object" || !("getContext" in a))
|
|
2239
2239
|
throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");
|
|
2240
2240
|
var n = a.getContext("2d");
|
|
2241
2241
|
try {
|
|
@@ -2244,69 +2244,69 @@ function Ub(a, e, t, r, i) {
|
|
|
2244
2244
|
throw new Error("unable to access image data: " + o);
|
|
2245
2245
|
}
|
|
2246
2246
|
}
|
|
2247
|
-
function
|
|
2247
|
+
function zb(a, e, t, r, i, n) {
|
|
2248
2248
|
if (!(isNaN(n) || n < 1)) {
|
|
2249
2249
|
n |= 0;
|
|
2250
|
-
var o =
|
|
2251
|
-
o =
|
|
2250
|
+
var o = Gb(a, e, t, r, i);
|
|
2251
|
+
o = Hb(o, e, t, r, i, n), a.getContext("2d").putImageData(o, e, t);
|
|
2252
2252
|
}
|
|
2253
2253
|
}
|
|
2254
|
-
function
|
|
2255
|
-
for (var o = a.data, s = 2 * n + 1, u = r - 1, l = i - 1, h = n + 1, f = h * (h + 1) / 2, c = new
|
|
2256
|
-
v = v.next = new
|
|
2254
|
+
function Hb(a, e, t, r, i, n) {
|
|
2255
|
+
for (var o = a.data, s = 2 * n + 1, u = r - 1, l = i - 1, h = n + 1, f = h * (h + 1) / 2, c = new To(), v = c, d, g = 1; g < s; g++)
|
|
2256
|
+
v = v.next = new To(), g === h && (d = v);
|
|
2257
2257
|
v.next = c;
|
|
2258
|
-
for (var p = null, y = null, x = 0, b = 0, T =
|
|
2258
|
+
for (var p = null, y = null, x = 0, b = 0, T = Fb[n], $ = Ub[n], E = 0; E < i; E++) {
|
|
2259
2259
|
v = c;
|
|
2260
2260
|
for (var O = o[b], C = o[b + 1], I = o[b + 2], _ = o[b + 3], j = 0; j < h; j++)
|
|
2261
2261
|
v.r = O, v.g = C, v.b = I, v.a = _, v = v.next;
|
|
2262
2262
|
for (var P = 0, X = 0, W = 0, G = 0, q = h * O, H = h * C, Q = h * I, R = h * _, M = f * O, K = f * C, ne = f * I, ge = f * _, Se = 1; Se < h; Se++) {
|
|
2263
|
-
var ze = b + ((u < Se ? u : Se) << 2),
|
|
2264
|
-
M += (v.r =
|
|
2263
|
+
var ze = b + ((u < Se ? u : Se) << 2), _t = o[ze], on = o[ze + 1], un = o[ze + 2], ln = o[ze + 3], Vt = h - Se;
|
|
2264
|
+
M += (v.r = _t) * Vt, K += (v.g = on) * Vt, ne += (v.b = un) * Vt, ge += (v.a = ln) * Vt, P += _t, X += on, W += un, G += ln, v = v.next;
|
|
2265
2265
|
}
|
|
2266
2266
|
p = c, y = d;
|
|
2267
|
-
for (var
|
|
2268
|
-
var
|
|
2269
|
-
if (o[b + 3] =
|
|
2270
|
-
var
|
|
2271
|
-
o[b] = (M * T >>> $) *
|
|
2267
|
+
for (var Br = 0; Br < r; Br++) {
|
|
2268
|
+
var jr = ge * T >>> $;
|
|
2269
|
+
if (o[b + 3] = jr, jr !== 0) {
|
|
2270
|
+
var Fr = 255 / jr;
|
|
2271
|
+
o[b] = (M * T >>> $) * Fr, o[b + 1] = (K * T >>> $) * Fr, o[b + 2] = (ne * T >>> $) * Fr;
|
|
2272
2272
|
} else
|
|
2273
2273
|
o[b] = o[b + 1] = o[b + 2] = 0;
|
|
2274
2274
|
M -= q, K -= H, ne -= Q, ge -= R, q -= p.r, H -= p.g, Q -= p.b, R -= p.a;
|
|
2275
|
-
var Ae =
|
|
2275
|
+
var Ae = Br + n + 1;
|
|
2276
2276
|
Ae = x + (Ae < u ? Ae : u) << 2, P += p.r = o[Ae], X += p.g = o[Ae + 1], W += p.b = o[Ae + 2], G += p.a = o[Ae + 3], M += P, K += X, ne += W, ge += G, p = p.next;
|
|
2277
|
-
var
|
|
2278
|
-
q +=
|
|
2277
|
+
var Dt = y, hn = Dt.r, vn = Dt.g, fn = Dt.b, cn = Dt.a;
|
|
2278
|
+
q += hn, H += vn, Q += fn, R += cn, P -= hn, X -= vn, W -= fn, G -= cn, y = y.next, b += 4;
|
|
2279
2279
|
}
|
|
2280
2280
|
x += r;
|
|
2281
2281
|
}
|
|
2282
2282
|
for (var He = 0; He < r; He++) {
|
|
2283
2283
|
b = He << 2;
|
|
2284
|
-
var Pe = o[b], Re = o[b + 1], Ne = o[b + 2], te = o[b + 3],
|
|
2284
|
+
var Pe = o[b], Re = o[b + 1], Ne = o[b + 2], te = o[b + 3], Ur = h * Pe, Gr = h * Re, zr = h * Ne, Hr = h * te, kt = f * Pe, Lt = f * Re, Bt = f * Ne, jt = f * te;
|
|
2285
2285
|
v = c;
|
|
2286
|
-
for (var
|
|
2286
|
+
for (var gn = 0; gn < h; gn++)
|
|
2287
2287
|
v.r = Pe, v.g = Re, v.b = Ne, v.a = te, v = v.next;
|
|
2288
|
-
for (var
|
|
2289
|
-
b =
|
|
2290
|
-
var
|
|
2291
|
-
|
|
2288
|
+
for (var dn = r, Yr = 0, Xr = 0, Wr = 0, qr = 0, Ft = 1; Ft <= n; Ft++) {
|
|
2289
|
+
b = dn + He << 2;
|
|
2290
|
+
var Ut = h - Ft;
|
|
2291
|
+
kt += (v.r = Pe = o[b]) * Ut, Lt += (v.g = Re = o[b + 1]) * Ut, Bt += (v.b = Ne = o[b + 2]) * Ut, jt += (v.a = te = o[b + 3]) * Ut, qr += Pe, Yr += Re, Xr += Ne, Wr += te, v = v.next, Ft < l && (dn += r);
|
|
2292
2292
|
}
|
|
2293
2293
|
b = He, p = c, y = d;
|
|
2294
|
-
for (var
|
|
2294
|
+
for (var Qr = 0; Qr < i; Qr++) {
|
|
2295
2295
|
var re = b << 2;
|
|
2296
|
-
o[re + 3] = te =
|
|
2296
|
+
o[re + 3] = te = jt * T >>> $, te > 0 ? (te = 255 / te, o[re] = (kt * T >>> $) * te, o[re + 1] = (Lt * T >>> $) * te, o[re + 2] = (Bt * T >>> $) * te) : o[re] = o[re + 1] = o[re + 2] = 0, kt -= Ur, Lt -= Gr, Bt -= zr, jt -= Hr, Ur -= p.r, Gr -= p.g, zr -= p.b, Hr -= p.a, re = He + ((re = Qr + h) < l ? re : l) * r << 2, kt += qr += p.r = o[re], Lt += Yr += p.g = o[re + 1], Bt += Xr += p.b = o[re + 2], jt += Wr += p.a = o[re + 3], p = p.next, Ur += Pe = y.r, Gr += Re = y.g, zr += Ne = y.b, Hr += te = y.a, qr -= Pe, Yr -= Re, Xr -= Ne, Wr -= te, y = y.next, b += r;
|
|
2297
2297
|
}
|
|
2298
2298
|
}
|
|
2299
2299
|
return a;
|
|
2300
2300
|
}
|
|
2301
|
-
var
|
|
2301
|
+
var To = (
|
|
2302
2302
|
/**
|
|
2303
2303
|
* Set properties.
|
|
2304
2304
|
*/
|
|
2305
2305
|
function a() {
|
|
2306
|
-
|
|
2306
|
+
jb(this, a), this.r = 0, this.g = 0, this.b = 0, this.a = 0, this.next = null;
|
|
2307
2307
|
}
|
|
2308
2308
|
);
|
|
2309
|
-
function
|
|
2309
|
+
function Yb() {
|
|
2310
2310
|
var {
|
|
2311
2311
|
DOMParser: a
|
|
2312
2312
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = {
|
|
@@ -2326,7 +2326,7 @@ function Hb() {
|
|
|
2326
2326
|
};
|
|
2327
2327
|
return (typeof DOMParser != "undefined" || typeof a == "undefined") && Reflect.deleteProperty(e, "DOMParser"), e;
|
|
2328
2328
|
}
|
|
2329
|
-
function
|
|
2329
|
+
function Xb(a) {
|
|
2330
2330
|
var {
|
|
2331
2331
|
DOMParser: e,
|
|
2332
2332
|
canvas: t,
|
|
@@ -2342,76 +2342,76 @@ function Yb(a) {
|
|
|
2342
2342
|
createImage: t.loadImage
|
|
2343
2343
|
};
|
|
2344
2344
|
}
|
|
2345
|
-
var
|
|
2345
|
+
var n2 = /* @__PURE__ */ Object.freeze({
|
|
2346
2346
|
__proto__: null,
|
|
2347
|
-
offscreen:
|
|
2348
|
-
node:
|
|
2347
|
+
offscreen: Yb,
|
|
2348
|
+
node: Xb
|
|
2349
2349
|
});
|
|
2350
|
-
function
|
|
2350
|
+
function vt(a) {
|
|
2351
2351
|
return a.replace(/(?!\u3000)\s+/gm, " ");
|
|
2352
2352
|
}
|
|
2353
|
-
function
|
|
2353
|
+
function Wb(a) {
|
|
2354
2354
|
return a.replace(/^[\n \t]+/, "");
|
|
2355
2355
|
}
|
|
2356
|
-
function
|
|
2356
|
+
function qb(a) {
|
|
2357
2357
|
return a.replace(/[\n \t]+$/, "");
|
|
2358
2358
|
}
|
|
2359
2359
|
function ie(a) {
|
|
2360
2360
|
var e = (a || "").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm) || [];
|
|
2361
2361
|
return e.map(parseFloat);
|
|
2362
2362
|
}
|
|
2363
|
-
var
|
|
2364
|
-
function
|
|
2365
|
-
return
|
|
2363
|
+
var Qb = /^[A-Z-]+$/;
|
|
2364
|
+
function Kb(a) {
|
|
2365
|
+
return Qb.test(a) ? a.toLowerCase() : a;
|
|
2366
2366
|
}
|
|
2367
|
-
function
|
|
2367
|
+
function dl(a) {
|
|
2368
2368
|
var e = /url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(a) || [];
|
|
2369
2369
|
return e[2] || e[3] || e[4];
|
|
2370
2370
|
}
|
|
2371
|
-
function
|
|
2371
|
+
function Zb(a) {
|
|
2372
2372
|
if (!a.startsWith("rgb"))
|
|
2373
2373
|
return a;
|
|
2374
2374
|
var e = 3, t = a.replace(/\d+(\.\d+)?/g, (r, i) => e-- && i ? String(Math.round(parseFloat(r))) : r);
|
|
2375
2375
|
return t;
|
|
2376
2376
|
}
|
|
2377
|
-
var
|
|
2377
|
+
var Jb = /(\[[^\]]+\])/g, e1 = /(#[^\s+>~.[:]+)/g, t1 = /(\.[^\s+>~.[:]+)/g, r1 = /(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi, a1 = /(:[\w-]+\([^)]*\))/gi, i1 = /(:[^\s+>~.[:]+)/g, n1 = /([^\s+>~.[:]+)/g;
|
|
2378
2378
|
function _e(a, e) {
|
|
2379
2379
|
var t = e.exec(a);
|
|
2380
2380
|
return t ? [a.replace(e, " "), t.length] : [a, 0];
|
|
2381
2381
|
}
|
|
2382
|
-
function
|
|
2382
|
+
function s1(a) {
|
|
2383
2383
|
var e = [0, 0, 0], t = a.replace(/:not\(([^)]*)\)/g, " $1 ").replace(/{[\s\S]*/gm, " "), r = 0;
|
|
2384
|
-
return [t, r] = _e(t,
|
|
2384
|
+
return [t, r] = _e(t, Jb), e[1] += r, [t, r] = _e(t, e1), e[0] += r, [t, r] = _e(t, t1), e[1] += r, [t, r] = _e(t, r1), e[2] += r, [t, r] = _e(t, a1), e[1] += r, [t, r] = _e(t, i1), e[1] += r, t = t.replace(/[*\s+>~]/g, " ").replace(/[#.]/g, " "), [t, r] = _e(t, n1), e[2] += r, e.join("");
|
|
2385
2385
|
}
|
|
2386
|
-
var
|
|
2387
|
-
function
|
|
2386
|
+
var it = 1e-8;
|
|
2387
|
+
function Oo(a) {
|
|
2388
2388
|
return Math.sqrt(Math.pow(a[0], 2) + Math.pow(a[1], 2));
|
|
2389
2389
|
}
|
|
2390
|
-
function
|
|
2391
|
-
return (a[0] * e[0] + a[1] * e[1]) / (
|
|
2390
|
+
function xi(a, e) {
|
|
2391
|
+
return (a[0] * e[0] + a[1] * e[1]) / (Oo(a) * Oo(e));
|
|
2392
2392
|
}
|
|
2393
|
-
function
|
|
2394
|
-
return (a[0] * e[1] < a[1] * e[0] ? -1 : 1) * Math.acos(
|
|
2393
|
+
function So(a, e) {
|
|
2394
|
+
return (a[0] * e[1] < a[1] * e[0] ? -1 : 1) * Math.acos(xi(a, e));
|
|
2395
2395
|
}
|
|
2396
|
-
function
|
|
2396
|
+
function Eo(a) {
|
|
2397
2397
|
return a * a * a;
|
|
2398
2398
|
}
|
|
2399
|
-
function
|
|
2399
|
+
function $o(a) {
|
|
2400
2400
|
return 3 * a * a * (1 - a);
|
|
2401
2401
|
}
|
|
2402
|
-
function
|
|
2402
|
+
function wo(a) {
|
|
2403
2403
|
return 3 * a * (1 - a) * (1 - a);
|
|
2404
2404
|
}
|
|
2405
|
-
function
|
|
2405
|
+
function Co(a) {
|
|
2406
2406
|
return (1 - a) * (1 - a) * (1 - a);
|
|
2407
2407
|
}
|
|
2408
|
-
function
|
|
2408
|
+
function Ao(a) {
|
|
2409
2409
|
return a * a;
|
|
2410
2410
|
}
|
|
2411
|
-
function
|
|
2411
|
+
function Po(a) {
|
|
2412
2412
|
return 2 * a * (1 - a);
|
|
2413
2413
|
}
|
|
2414
|
-
function
|
|
2414
|
+
function Ro(a) {
|
|
2415
2415
|
return (1 - a) * (1 - a);
|
|
2416
2416
|
}
|
|
2417
2417
|
class S {
|
|
@@ -2426,7 +2426,7 @@ class S {
|
|
|
2426
2426
|
document: t,
|
|
2427
2427
|
name: r
|
|
2428
2428
|
} = this;
|
|
2429
|
-
return
|
|
2429
|
+
return vt(this.getString()).trim().split(e).map((i) => new S(t, r, i));
|
|
2430
2430
|
}
|
|
2431
2431
|
hasValue(e) {
|
|
2432
2432
|
var {
|
|
@@ -2474,7 +2474,7 @@ class S {
|
|
|
2474
2474
|
}
|
|
2475
2475
|
getColor(e) {
|
|
2476
2476
|
var t = this.getString(e);
|
|
2477
|
-
return this.isNormalizedColor || (this.isNormalizedColor = !0, t =
|
|
2477
|
+
return this.isNormalizedColor || (this.isNormalizedColor = !0, t = Zb(t), this.value = t), t;
|
|
2478
2478
|
}
|
|
2479
2479
|
getDpi() {
|
|
2480
2480
|
return 96;
|
|
@@ -2575,7 +2575,7 @@ class S {
|
|
|
2575
2575
|
for (var t = this.getColor(), r = t.length, i = 0, n = 0; n < r && (t[n] === "," && i++, i !== 3); n++)
|
|
2576
2576
|
;
|
|
2577
2577
|
if (e.hasValue() && this.isString() && i !== 3) {
|
|
2578
|
-
var o = new
|
|
2578
|
+
var o = new yi(t);
|
|
2579
2579
|
o.ok && (o.alpha = e.getNumber(), t = o.toRGBA());
|
|
2580
2580
|
}
|
|
2581
2581
|
return new S(this.document, this.name, t);
|
|
@@ -2594,7 +2594,7 @@ S.textBaselineMapping = {
|
|
|
2594
2594
|
hanging: "hanging",
|
|
2595
2595
|
mathematical: "alphabetic"
|
|
2596
2596
|
};
|
|
2597
|
-
class
|
|
2597
|
+
class o1 {
|
|
2598
2598
|
constructor() {
|
|
2599
2599
|
this.viewPorts = [];
|
|
2600
2600
|
}
|
|
@@ -2654,7 +2654,7 @@ class D {
|
|
|
2654
2654
|
this.x = i, this.y = n;
|
|
2655
2655
|
}
|
|
2656
2656
|
}
|
|
2657
|
-
class
|
|
2657
|
+
class u1 {
|
|
2658
2658
|
constructor(e) {
|
|
2659
2659
|
this.screen = e, this.working = !1, this.events = [], this.eventElements = [], this.onClick = this.onClick.bind(this), this.onMouseMove = this.onMouseMove.bind(this);
|
|
2660
2660
|
}
|
|
@@ -2764,14 +2764,14 @@ class o1 {
|
|
|
2764
2764
|
});
|
|
2765
2765
|
}
|
|
2766
2766
|
}
|
|
2767
|
-
var
|
|
2768
|
-
class
|
|
2767
|
+
var pl = typeof window != "undefined" ? window : null, yl = typeof fetch != "undefined" ? fetch.bind(void 0) : null;
|
|
2768
|
+
class Vr {
|
|
2769
2769
|
constructor(e) {
|
|
2770
2770
|
var {
|
|
2771
|
-
fetch: t =
|
|
2772
|
-
window: r =
|
|
2771
|
+
fetch: t = yl,
|
|
2772
|
+
window: r = pl
|
|
2773
2773
|
} = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2774
|
-
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new
|
|
2774
|
+
this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new o1(), this.mouse = new u1(this), this.animations = [], this.waits = [], this.frameDuration = 0, this.isReadyLock = !1, this.isFirstRender = !0, this.intervalId = null, this.window = r, this.fetch = t;
|
|
2775
2775
|
}
|
|
2776
2776
|
wait(e) {
|
|
2777
2777
|
this.waits.push(e);
|
|
@@ -2804,7 +2804,7 @@ class _r {
|
|
|
2804
2804
|
clip: v = !1,
|
|
2805
2805
|
clipX: d = 0,
|
|
2806
2806
|
clipY: g = 0
|
|
2807
|
-
} = e, p =
|
|
2807
|
+
} = e, p = vt(i).replace(/^defer\s/, ""), [y, x] = p.split(" "), b = y || "xMidYMid", T = x || "meet", $ = n / o, E = s / u, O = Math.min($, E), C = Math.max($, E), I = o, _ = u;
|
|
2808
2808
|
T === "meet" && (I *= O, _ *= O), T === "slice" && (I *= C, _ *= C);
|
|
2809
2809
|
var j = new S(t, "refX", f), P = new S(t, "refY", c), X = j.hasValue() && P.hasValue();
|
|
2810
2810
|
if (X && r.translate(-O * j.getPixels("x"), -O * P.getPixels("y")), v) {
|
|
@@ -2848,13 +2848,13 @@ class _r {
|
|
|
2848
2848
|
this.resolveReady = b;
|
|
2849
2849
|
}), this.isReady() && this.render(e, n, o, u, l, h, f), !!t) {
|
|
2850
2850
|
var g = Date.now(), p = g, y = 0, x = () => {
|
|
2851
|
-
g = Date.now(), y = g - p, y >= d && (p = g - y % d, this.shouldUpdate(i, s) && (this.render(e, n, o, u, l, h, f), v.runEvents())), this.intervalId =
|
|
2851
|
+
g = Date.now(), y = g - p, y >= d && (p = g - y % d, this.shouldUpdate(i, s) && (this.render(e, n, o, u, l, h, f), v.runEvents())), this.intervalId = Fa(x);
|
|
2852
2852
|
};
|
|
2853
|
-
r || v.start(), this.intervalId =
|
|
2853
|
+
r || v.start(), this.intervalId = Fa(x);
|
|
2854
2854
|
}
|
|
2855
2855
|
}
|
|
2856
2856
|
stop() {
|
|
2857
|
-
this.intervalId && (
|
|
2857
|
+
this.intervalId && (Fa.cancel(this.intervalId), this.intervalId = null), this.mouse.stop();
|
|
2858
2858
|
}
|
|
2859
2859
|
shouldUpdate(e, t) {
|
|
2860
2860
|
if (!e) {
|
|
@@ -2895,16 +2895,16 @@ class _r {
|
|
|
2895
2895
|
r || f.clearRect(0, 0, p, y), e.render(f), c && (this.isFirstRender = !1);
|
|
2896
2896
|
}
|
|
2897
2897
|
}
|
|
2898
|
-
|
|
2899
|
-
|
|
2898
|
+
Vr.defaultWindow = pl;
|
|
2899
|
+
Vr.defaultFetch = yl;
|
|
2900
2900
|
var {
|
|
2901
|
-
defaultFetch:
|
|
2902
|
-
} =
|
|
2903
|
-
class
|
|
2901
|
+
defaultFetch: l1
|
|
2902
|
+
} = Vr, h1 = typeof DOMParser != "undefined" ? DOMParser : null;
|
|
2903
|
+
class za {
|
|
2904
2904
|
constructor() {
|
|
2905
2905
|
var {
|
|
2906
|
-
fetch: e =
|
|
2907
|
-
DOMParser: t =
|
|
2906
|
+
fetch: e = l1,
|
|
2907
|
+
DOMParser: t = h1
|
|
2908
2908
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2909
2909
|
this.fetch = e, this.DOMParser = t;
|
|
2910
2910
|
}
|
|
@@ -2936,7 +2936,7 @@ class Ga {
|
|
|
2936
2936
|
})();
|
|
2937
2937
|
}
|
|
2938
2938
|
}
|
|
2939
|
-
class
|
|
2939
|
+
class v1 {
|
|
2940
2940
|
constructor(e, t) {
|
|
2941
2941
|
this.type = "translate", this.point = null, this.point = D.parse(t);
|
|
2942
2942
|
}
|
|
@@ -2962,7 +2962,7 @@ class h1 {
|
|
|
2962
2962
|
e.applyTransform([1, 0, 0, 1, t || 0, r || 0]);
|
|
2963
2963
|
}
|
|
2964
2964
|
}
|
|
2965
|
-
class
|
|
2965
|
+
class f1 {
|
|
2966
2966
|
constructor(e, t, r) {
|
|
2967
2967
|
this.type = "rotate", this.angle = null, this.originX = null, this.originY = null, this.cx = 0, this.cy = 0;
|
|
2968
2968
|
var i = ie(t);
|
|
@@ -3013,11 +3013,11 @@ class v1 {
|
|
|
3013
3013
|
]);
|
|
3014
3014
|
}
|
|
3015
3015
|
}
|
|
3016
|
-
class
|
|
3016
|
+
class c1 {
|
|
3017
3017
|
constructor(e, t, r) {
|
|
3018
3018
|
this.type = "scale", this.scale = null, this.originX = null, this.originY = null;
|
|
3019
3019
|
var i = D.parseScale(t);
|
|
3020
|
-
(i.x === 0 || i.y === 0) && (i.x =
|
|
3020
|
+
(i.x === 0 || i.y === 0) && (i.x = it, i.y = it), this.scale = i, this.originX = r[0], this.originY = r[1];
|
|
3021
3021
|
}
|
|
3022
3022
|
apply(e) {
|
|
3023
3023
|
var {
|
|
@@ -3049,7 +3049,7 @@ class f1 {
|
|
|
3049
3049
|
e.applyTransform([t || 0, 0, 0, r || 0, 0, 0]);
|
|
3050
3050
|
}
|
|
3051
3051
|
}
|
|
3052
|
-
class
|
|
3052
|
+
class ml {
|
|
3053
3053
|
constructor(e, t, r) {
|
|
3054
3054
|
this.type = "matrix", this.matrix = [], this.originX = null, this.originY = null, this.matrix = ie(t), this.originX = r[0], this.originY = r[1];
|
|
3055
3055
|
}
|
|
@@ -3073,35 +3073,35 @@ class yl {
|
|
|
3073
3073
|
e.applyTransform(this.matrix);
|
|
3074
3074
|
}
|
|
3075
3075
|
}
|
|
3076
|
-
class
|
|
3076
|
+
class bl extends ml {
|
|
3077
3077
|
constructor(e, t, r) {
|
|
3078
3078
|
super(e, t, r), this.type = "skew", this.angle = null, this.angle = new S(e, "angle", t);
|
|
3079
3079
|
}
|
|
3080
3080
|
}
|
|
3081
|
-
class
|
|
3081
|
+
class g1 extends bl {
|
|
3082
3082
|
constructor(e, t, r) {
|
|
3083
3083
|
super(e, t, r), this.type = "skewX", this.matrix = [1, 0, Math.tan(this.angle.getRadians()), 1, 0, 0];
|
|
3084
3084
|
}
|
|
3085
3085
|
}
|
|
3086
|
-
class
|
|
3086
|
+
class d1 extends bl {
|
|
3087
3087
|
constructor(e, t, r) {
|
|
3088
3088
|
super(e, t, r), this.type = "skewY", this.matrix = [1, Math.tan(this.angle.getRadians()), 0, 1, 0, 0];
|
|
3089
3089
|
}
|
|
3090
3090
|
}
|
|
3091
|
-
function d1(a) {
|
|
3092
|
-
return ht(a).trim().replace(/\)([a-zA-Z])/g, ") $1").replace(/\)(\s?,\s?)/g, ") ").split(/\s(?=[a-z])/);
|
|
3093
|
-
}
|
|
3094
3091
|
function p1(a) {
|
|
3092
|
+
return vt(a).trim().replace(/\)([a-zA-Z])/g, ") $1").replace(/\)(\s?,\s?)/g, ") ").split(/\s(?=[a-z])/);
|
|
3093
|
+
}
|
|
3094
|
+
function y1(a) {
|
|
3095
3095
|
var [e, t] = a.split("(");
|
|
3096
3096
|
return [e.trim(), t.trim().replace(")", "")];
|
|
3097
3097
|
}
|
|
3098
3098
|
class Le {
|
|
3099
3099
|
constructor(e, t, r) {
|
|
3100
3100
|
this.document = e, this.transforms = [];
|
|
3101
|
-
var i =
|
|
3101
|
+
var i = p1(t);
|
|
3102
3102
|
i.forEach((n) => {
|
|
3103
3103
|
if (n !== "none") {
|
|
3104
|
-
var [o, s] =
|
|
3104
|
+
var [o, s] = y1(n), u = Le.transformTypes[o];
|
|
3105
3105
|
typeof u != "undefined" && this.transforms.push(new u(this.document, s, r));
|
|
3106
3106
|
}
|
|
3107
3107
|
});
|
|
@@ -3131,19 +3131,19 @@ class Le {
|
|
|
3131
3131
|
}
|
|
3132
3132
|
}
|
|
3133
3133
|
Le.transformTypes = {
|
|
3134
|
-
translate:
|
|
3135
|
-
rotate:
|
|
3136
|
-
scale:
|
|
3137
|
-
matrix:
|
|
3138
|
-
skewX:
|
|
3139
|
-
skewY:
|
|
3134
|
+
translate: v1,
|
|
3135
|
+
rotate: f1,
|
|
3136
|
+
scale: c1,
|
|
3137
|
+
matrix: ml,
|
|
3138
|
+
skewX: g1,
|
|
3139
|
+
skewY: d1
|
|
3140
3140
|
};
|
|
3141
3141
|
class N {
|
|
3142
3142
|
constructor(e, t) {
|
|
3143
3143
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
3144
3144
|
if (this.document = e, this.node = t, this.captureTextNodes = r, this.attributes = {}, this.styles = {}, this.stylesSpecificity = {}, this.animationFrozen = !1, this.animationFrozenValue = "", this.parent = null, this.children = [], !(!t || t.nodeType !== 1)) {
|
|
3145
3145
|
if (Array.from(t.attributes).forEach((s) => {
|
|
3146
|
-
var u =
|
|
3146
|
+
var u = Kb(s.nodeName);
|
|
3147
3147
|
this.attributes[u] = new S(e, u, s.value);
|
|
3148
3148
|
}), this.addStylesFromStyleDefinition(), this.getAttribute("style").hasValue()) {
|
|
3149
3149
|
var i = this.getAttribute("style").getString().split(";").map((s) => s.trim());
|
|
@@ -3285,19 +3285,19 @@ class N {
|
|
|
3285
3285
|
}
|
|
3286
3286
|
}
|
|
3287
3287
|
N.ignoreChildTypes = ["title"];
|
|
3288
|
-
class
|
|
3288
|
+
class m1 extends N {
|
|
3289
3289
|
constructor(e, t, r) {
|
|
3290
3290
|
super(e, t, r);
|
|
3291
3291
|
}
|
|
3292
3292
|
}
|
|
3293
|
-
function
|
|
3293
|
+
function b1(a) {
|
|
3294
3294
|
var e = a.trim();
|
|
3295
3295
|
return /^('|")/.test(e) ? e : '"'.concat(e, '"');
|
|
3296
3296
|
}
|
|
3297
|
-
function b1(a) {
|
|
3298
|
-
return typeof process == "undefined" ? a : a.trim().split(",").map(m1).join(",");
|
|
3299
|
-
}
|
|
3300
3297
|
function x1(a) {
|
|
3298
|
+
return typeof Qe == "undefined" ? a : a.trim().split(",").map(b1).join(",");
|
|
3299
|
+
}
|
|
3300
|
+
function T1(a) {
|
|
3301
3301
|
if (!a)
|
|
3302
3302
|
return "";
|
|
3303
3303
|
var e = a.trim().toLowerCase();
|
|
@@ -3313,7 +3313,7 @@ function x1(a) {
|
|
|
3313
3313
|
return /^oblique\s+(-|)\d+deg$/.test(e) ? e : "";
|
|
3314
3314
|
}
|
|
3315
3315
|
}
|
|
3316
|
-
function
|
|
3316
|
+
function O1(a) {
|
|
3317
3317
|
if (!a)
|
|
3318
3318
|
return "";
|
|
3319
3319
|
var e = a.trim().toLowerCase();
|
|
@@ -3336,7 +3336,7 @@ class Z {
|
|
|
3336
3336
|
this.fontFamily = n || s.fontFamily, this.fontSize = i || s.fontSize, this.fontStyle = e || s.fontStyle, this.fontWeight = r || s.fontWeight, this.fontVariant = t || s.fontVariant;
|
|
3337
3337
|
}
|
|
3338
3338
|
static parse() {
|
|
3339
|
-
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 ? arguments[1] : void 0, r = "", i = "", n = "", o = "", s = "", u =
|
|
3339
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 ? arguments[1] : void 0, r = "", i = "", n = "", o = "", s = "", u = vt(e).trim().split(" "), l = {
|
|
3340
3340
|
fontSize: !1,
|
|
3341
3341
|
fontStyle: !1,
|
|
3342
3342
|
fontWeight: !1,
|
|
@@ -3363,12 +3363,12 @@ class Z {
|
|
|
3363
3363
|
}
|
|
3364
3364
|
toString() {
|
|
3365
3365
|
return [
|
|
3366
|
-
|
|
3366
|
+
T1(this.fontStyle),
|
|
3367
3367
|
this.fontVariant,
|
|
3368
|
-
|
|
3368
|
+
O1(this.fontWeight),
|
|
3369
3369
|
this.fontSize,
|
|
3370
3370
|
// Wrap fontFamily only on nodejs and only for canvas.ctx
|
|
3371
|
-
|
|
3371
|
+
x1(this.fontFamily)
|
|
3372
3372
|
].join(" ").trim();
|
|
3373
3373
|
}
|
|
3374
3374
|
}
|
|
@@ -3575,7 +3575,7 @@ class Ge extends N {
|
|
|
3575
3575
|
var v = this.getStyle("stroke-width");
|
|
3576
3576
|
if (v.hasValue()) {
|
|
3577
3577
|
var d = v.getPixels();
|
|
3578
|
-
e.lineWidth = d ||
|
|
3578
|
+
e.lineWidth = d || it;
|
|
3579
3579
|
}
|
|
3580
3580
|
var g = this.getStyle("stroke-linecap"), p = this.getStyle("stroke-linejoin"), y = this.getStyle("stroke-miterlimit"), x = this.getStyle("stroke-dasharray"), b = this.getStyle("stroke-dashoffset");
|
|
3581
3581
|
if (g.hasValue() && (e.lineCap = g.getString()), p.hasValue() && (e.lineJoin = p.getString()), y.hasValue() && (e.miterLimit = y.getNumber()), x.hasValue() && x.getString() !== "none") {
|
|
@@ -3851,8 +3851,8 @@ class A extends Ge {
|
|
|
3851
3851
|
c > 1 && (i *= Math.sqrt(c), n *= Math.sqrt(c));
|
|
3852
3852
|
var v = (s === u ? -1 : 1) * Math.sqrt((Math.pow(i, 2) * Math.pow(n, 2) - Math.pow(i, 2) * Math.pow(f.y, 2) - Math.pow(n, 2) * Math.pow(f.x, 2)) / (Math.pow(i, 2) * Math.pow(f.y, 2) + Math.pow(n, 2) * Math.pow(f.x, 2)));
|
|
3853
3853
|
isNaN(v) && (v = 0);
|
|
3854
|
-
var d = new D(v * i * f.y / n, v * -n * f.x / i), g = new D((t.x + h.x) / 2 + Math.cos(l) * d.x - Math.sin(l) * d.y, (t.y + h.y) / 2 + Math.sin(l) * d.x + Math.cos(l) * d.y), p =
|
|
3855
|
-
return
|
|
3854
|
+
var d = new D(v * i * f.y / n, v * -n * f.x / i), g = new D((t.x + h.x) / 2 + Math.cos(l) * d.x - Math.sin(l) * d.y, (t.y + h.y) / 2 + Math.sin(l) * d.x + Math.cos(l) * d.y), p = So([1, 0], [(f.x - d.x) / i, (f.y - d.y) / n]), y = [(f.x - d.x) / i, (f.y - d.y) / n], x = [(-f.x - d.x) / i, (-f.y - d.y) / n], b = So(y, x);
|
|
3855
|
+
return xi(y, x) <= -1 && (b = Math.PI), xi(y, x) >= 1 && (b = 0), {
|
|
3856
3856
|
currentPoint: h,
|
|
3857
3857
|
rX: i,
|
|
3858
3858
|
rY: n,
|
|
@@ -3888,7 +3888,7 @@ class A extends Ge {
|
|
|
3888
3888
|
A.pathZ(this.pathParser), e && t.x1 !== t.x2 && t.y1 !== t.y2 && e.closePath();
|
|
3889
3889
|
}
|
|
3890
3890
|
}
|
|
3891
|
-
class
|
|
3891
|
+
class xl extends A {
|
|
3892
3892
|
constructor(e, t, r) {
|
|
3893
3893
|
super(e, t, r), this.type = "glyph", this.horizAdvX = this.getAttribute("horiz-adv-x").getNumber(), this.unicode = this.getAttribute("unicode").getString(), this.arabicForm = this.getAttribute("arabic-form").getString();
|
|
3894
3894
|
}
|
|
@@ -3933,7 +3933,7 @@ class Ce extends Ge {
|
|
|
3933
3933
|
var o = t.length, s = t[r - 1], u = t[r + 1], l = "isolated";
|
|
3934
3934
|
if ((r === 0 || s === " ") && r < o - 1 && u !== " " && (l = "terminal"), r > 0 && s !== " " && r < o - 1 && u !== " " && (l = "medial"), r > 0 && s !== " " && (r === o - 1 || u === " ") && (l = "initial"), typeof e.glyphs[i] != "undefined") {
|
|
3935
3935
|
var h = e.glyphs[i];
|
|
3936
|
-
n = h instanceof
|
|
3936
|
+
n = h instanceof xl ? h : h[l];
|
|
3937
3937
|
}
|
|
3938
3938
|
} else
|
|
3939
3939
|
n = e.glyphs[i];
|
|
@@ -3943,12 +3943,12 @@ class Ce extends Ge {
|
|
|
3943
3943
|
return "";
|
|
3944
3944
|
}
|
|
3945
3945
|
getTextFromNode(e) {
|
|
3946
|
-
var t = e || this.node, r = Array.from(t.parentNode.childNodes), i = r.indexOf(t), n = r.length - 1, o =
|
|
3946
|
+
var t = e || this.node, r = Array.from(t.parentNode.childNodes), i = r.indexOf(t), n = r.length - 1, o = vt(
|
|
3947
3947
|
// textNode.value
|
|
3948
3948
|
// || textNode.text
|
|
3949
3949
|
t.textContent || ""
|
|
3950
3950
|
);
|
|
3951
|
-
return i === 0 && (o =
|
|
3951
|
+
return i === 0 && (o = Wb(o)), i === n && (o = qb(o)), o;
|
|
3952
3952
|
}
|
|
3953
3953
|
renderChildren(e) {
|
|
3954
3954
|
if (this.type !== "text") {
|
|
@@ -4077,20 +4077,20 @@ class Ce extends Ge {
|
|
|
4077
4077
|
return null;
|
|
4078
4078
|
}
|
|
4079
4079
|
}
|
|
4080
|
-
class
|
|
4080
|
+
class Dr extends Ce {
|
|
4081
4081
|
constructor(e, t, r) {
|
|
4082
|
-
super(e, t, new.target ===
|
|
4082
|
+
super(e, t, new.target === Dr ? !0 : r), this.type = "tspan", this.text = this.children.length > 0 ? "" : this.getTextFromNode();
|
|
4083
4083
|
}
|
|
4084
4084
|
getText() {
|
|
4085
4085
|
return this.text;
|
|
4086
4086
|
}
|
|
4087
4087
|
}
|
|
4088
|
-
class
|
|
4088
|
+
class S1 extends Dr {
|
|
4089
4089
|
constructor() {
|
|
4090
4090
|
super(...arguments), this.type = "textNode";
|
|
4091
4091
|
}
|
|
4092
4092
|
}
|
|
4093
|
-
class
|
|
4093
|
+
class Mt extends Ge {
|
|
4094
4094
|
constructor() {
|
|
4095
4095
|
super(...arguments), this.type = "svg", this.root = !1;
|
|
4096
4096
|
}
|
|
@@ -4153,7 +4153,7 @@ class It extends Ge {
|
|
|
4153
4153
|
}
|
|
4154
4154
|
}
|
|
4155
4155
|
}
|
|
4156
|
-
class
|
|
4156
|
+
class Tl extends A {
|
|
4157
4157
|
constructor() {
|
|
4158
4158
|
super(...arguments), this.type = "rect";
|
|
4159
4159
|
}
|
|
@@ -4169,7 +4169,7 @@ class xl extends A {
|
|
|
4169
4169
|
return null;
|
|
4170
4170
|
}
|
|
4171
4171
|
}
|
|
4172
|
-
class
|
|
4172
|
+
class E1 extends A {
|
|
4173
4173
|
constructor() {
|
|
4174
4174
|
super(...arguments), this.type = "circle";
|
|
4175
4175
|
}
|
|
@@ -4181,7 +4181,7 @@ class S1 extends A {
|
|
|
4181
4181
|
return null;
|
|
4182
4182
|
}
|
|
4183
4183
|
}
|
|
4184
|
-
class
|
|
4184
|
+
class $1 extends A {
|
|
4185
4185
|
constructor() {
|
|
4186
4186
|
super(...arguments), this.type = "ellipse";
|
|
4187
4187
|
}
|
|
@@ -4193,7 +4193,7 @@ class E1 extends A {
|
|
|
4193
4193
|
return null;
|
|
4194
4194
|
}
|
|
4195
4195
|
}
|
|
4196
|
-
class
|
|
4196
|
+
class w1 extends A {
|
|
4197
4197
|
constructor() {
|
|
4198
4198
|
super(...arguments), this.type = "line";
|
|
4199
4199
|
}
|
|
@@ -4215,7 +4215,7 @@ class $1 extends A {
|
|
|
4215
4215
|
return [[e, r], [t, r]];
|
|
4216
4216
|
}
|
|
4217
4217
|
}
|
|
4218
|
-
class
|
|
4218
|
+
class Ol extends A {
|
|
4219
4219
|
constructor(e, t, r) {
|
|
4220
4220
|
super(e, t, r), this.type = "polyline", this.points = [], this.points = D.parsePath(this.getAttribute("points").getString());
|
|
4221
4221
|
}
|
|
@@ -4243,7 +4243,7 @@ class Tl extends A {
|
|
|
4243
4243
|
}), r.length > 0 && r.push([e[e.length - 1], r[r.length - 1][1]]), r;
|
|
4244
4244
|
}
|
|
4245
4245
|
}
|
|
4246
|
-
class
|
|
4246
|
+
class C1 extends Ol {
|
|
4247
4247
|
constructor() {
|
|
4248
4248
|
super(...arguments), this.type = "polygon";
|
|
4249
4249
|
}
|
|
@@ -4255,12 +4255,12 @@ class w1 extends Tl {
|
|
|
4255
4255
|
return e && (e.lineTo(r, i), e.closePath()), t;
|
|
4256
4256
|
}
|
|
4257
4257
|
}
|
|
4258
|
-
class
|
|
4258
|
+
class A1 extends N {
|
|
4259
4259
|
constructor() {
|
|
4260
4260
|
super(...arguments), this.type = "pattern";
|
|
4261
4261
|
}
|
|
4262
4262
|
createPattern(e, t, r) {
|
|
4263
|
-
var i = this.getStyle("width").getPixels("x", !0), n = this.getStyle("height").getPixels("y", !0), o = new
|
|
4263
|
+
var i = this.getStyle("width").getPixels("x", !0), n = this.getStyle("height").getPixels("y", !0), o = new Mt(this.document, null);
|
|
4264
4264
|
o.attributes.viewBox = new S(this.document, "viewBox", this.getAttribute("viewBox").getValue()), o.attributes.width = new S(this.document, "width", "".concat(i, "px")), o.attributes.height = new S(this.document, "height", "".concat(n, "px")), o.attributes.transform = new S(this.document, "transform", this.getAttribute("patternTransform").getValue()), o.children = this.children;
|
|
4265
4265
|
var s = this.document.createCanvas(i, n), u = s.getContext("2d"), l = this.getAttribute("x"), h = this.getAttribute("y");
|
|
4266
4266
|
l.hasValue() && h.hasValue() && u.translate(l.getPixels("x", !0), h.getPixels("y", !0)), r.hasValue() ? this.styles["fill-opacity"] = r : Reflect.deleteProperty(this.styles, "fill-opacity");
|
|
@@ -4271,7 +4271,7 @@ class C1 extends N {
|
|
|
4271
4271
|
return v;
|
|
4272
4272
|
}
|
|
4273
4273
|
}
|
|
4274
|
-
class
|
|
4274
|
+
class P1 extends N {
|
|
4275
4275
|
constructor() {
|
|
4276
4276
|
super(...arguments), this.type = "marker";
|
|
4277
4277
|
}
|
|
@@ -4282,19 +4282,19 @@ class A1 extends N {
|
|
|
4282
4282
|
y: n
|
|
4283
4283
|
} = t, o = this.getAttribute("orient").getString("auto"), s = this.getAttribute("markerUnits").getString("strokeWidth");
|
|
4284
4284
|
e.translate(i, n), o === "auto" && e.rotate(r), s === "strokeWidth" && e.scale(e.lineWidth, e.lineWidth), e.save();
|
|
4285
|
-
var u = new
|
|
4285
|
+
var u = new Mt(this.document, null);
|
|
4286
4286
|
u.type = this.type, u.attributes.viewBox = new S(this.document, "viewBox", this.getAttribute("viewBox").getValue()), u.attributes.refX = new S(this.document, "refX", this.getAttribute("refX").getValue()), u.attributes.refY = new S(this.document, "refY", this.getAttribute("refY").getValue()), u.attributes.width = new S(this.document, "width", this.getAttribute("markerWidth").getValue()), u.attributes.height = new S(this.document, "height", this.getAttribute("markerHeight").getValue()), u.attributes.overflow = new S(this.document, "overflow", this.getAttribute("overflow").getValue()), u.attributes.fill = new S(this.document, "fill", this.getAttribute("fill").getColor("black")), u.attributes.stroke = new S(this.document, "stroke", this.getAttribute("stroke").getValue("none")), u.children = this.children, u.render(e), e.restore(), s === "strokeWidth" && e.scale(1 / e.lineWidth, 1 / e.lineWidth), o === "auto" && e.rotate(-r), e.translate(-i, -n);
|
|
4287
4287
|
}
|
|
4288
4288
|
}
|
|
4289
4289
|
}
|
|
4290
|
-
class
|
|
4290
|
+
class R1 extends N {
|
|
4291
4291
|
constructor() {
|
|
4292
4292
|
super(...arguments), this.type = "defs";
|
|
4293
4293
|
}
|
|
4294
4294
|
render() {
|
|
4295
4295
|
}
|
|
4296
4296
|
}
|
|
4297
|
-
class
|
|
4297
|
+
class nn extends Ge {
|
|
4298
4298
|
constructor() {
|
|
4299
4299
|
super(...arguments), this.type = "g";
|
|
4300
4300
|
}
|
|
@@ -4305,7 +4305,7 @@ class an extends Ge {
|
|
|
4305
4305
|
}), t;
|
|
4306
4306
|
}
|
|
4307
4307
|
}
|
|
4308
|
-
class
|
|
4308
|
+
class Sl extends N {
|
|
4309
4309
|
constructor(e, t, r) {
|
|
4310
4310
|
super(e, t, r), this.attributesToInherit = ["gradientUnits"], this.stops = [];
|
|
4311
4311
|
var {
|
|
@@ -4335,11 +4335,11 @@ class Ol extends N {
|
|
|
4335
4335
|
} = this, {
|
|
4336
4336
|
MAX_VIRTUAL_PIXELS: u,
|
|
4337
4337
|
viewPort: l
|
|
4338
|
-
} = s.screen, [h] = l.viewPorts, f = new
|
|
4338
|
+
} = s.screen, [h] = l.viewPorts, f = new Tl(s, null);
|
|
4339
4339
|
f.attributes.x = new S(s, "x", -u / 3), f.attributes.y = new S(s, "y", -u / 3), f.attributes.width = new S(s, "width", u), f.attributes.height = new S(s, "height", u);
|
|
4340
|
-
var c = new
|
|
4340
|
+
var c = new nn(s, null);
|
|
4341
4341
|
c.attributes.transform = new S(s, "transform", this.getAttribute("gradientTransform").getValue()), c.children = [f];
|
|
4342
|
-
var v = new
|
|
4342
|
+
var v = new Mt(s, null);
|
|
4343
4343
|
v.attributes.x = new S(s, "x", 0), v.attributes.y = new S(s, "y", 0), v.attributes.width = new S(s, "width", h.width), v.attributes.height = new S(s, "height", h.height), v.children = [c];
|
|
4344
4344
|
var d = s.createCanvas(h.width, h.height), g = d.getContext("2d");
|
|
4345
4345
|
return g.fillStyle = o, v.render(g), g.createPattern(d, "no-repeat");
|
|
@@ -4359,7 +4359,7 @@ class Ol extends N {
|
|
|
4359
4359
|
return t;
|
|
4360
4360
|
}
|
|
4361
4361
|
}
|
|
4362
|
-
class
|
|
4362
|
+
class N1 extends Sl {
|
|
4363
4363
|
constructor(e, t, r) {
|
|
4364
4364
|
super(e, t, r), this.type = "linearGradient", this.attributesToInherit.push("x1", "y1", "x2", "y2");
|
|
4365
4365
|
}
|
|
@@ -4372,7 +4372,7 @@ class R1 extends Ol {
|
|
|
4372
4372
|
return n === s && o === u ? null : e.createLinearGradient(n, o, s, u);
|
|
4373
4373
|
}
|
|
4374
4374
|
}
|
|
4375
|
-
class
|
|
4375
|
+
class I1 extends Sl {
|
|
4376
4376
|
constructor(e, t, r) {
|
|
4377
4377
|
super(e, t, r), this.type = "radialGradient", this.attributesToInherit.push("cx", "cy", "r", "fx", "fy", "fr");
|
|
4378
4378
|
}
|
|
@@ -4387,14 +4387,14 @@ class N1 extends Ol {
|
|
|
4387
4387
|
return e.createRadialGradient(s, u, h, n, o, l);
|
|
4388
4388
|
}
|
|
4389
4389
|
}
|
|
4390
|
-
class
|
|
4390
|
+
class M1 extends N {
|
|
4391
4391
|
constructor(e, t, r) {
|
|
4392
4392
|
super(e, t, r), this.type = "stop";
|
|
4393
4393
|
var i = Math.max(0, Math.min(1, this.getAttribute("offset").getNumber())), n = this.getStyle("stop-opacity"), o = this.getStyle("stop-color", !0);
|
|
4394
4394
|
o.getString() === "" && o.setValue("#000"), n.hasValue() && (o = o.addOpacity(n)), this.offset = i, this.color = o.getColor();
|
|
4395
4395
|
}
|
|
4396
4396
|
}
|
|
4397
|
-
class
|
|
4397
|
+
class sn extends N {
|
|
4398
4398
|
constructor(e, t, r) {
|
|
4399
4399
|
super(e, t, r), 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 S(e, "values", null);
|
|
4400
4400
|
var i = this.getAttribute("values");
|
|
@@ -4455,7 +4455,7 @@ class nn extends N {
|
|
|
4455
4455
|
return r;
|
|
4456
4456
|
}
|
|
4457
4457
|
}
|
|
4458
|
-
class
|
|
4458
|
+
class _1 extends sn {
|
|
4459
4459
|
constructor() {
|
|
4460
4460
|
super(...arguments), this.type = "animateColor";
|
|
4461
4461
|
}
|
|
@@ -4464,7 +4464,7 @@ class M1 extends nn {
|
|
|
4464
4464
|
progress: e,
|
|
4465
4465
|
from: t,
|
|
4466
4466
|
to: r
|
|
4467
|
-
} = this.getProgress(), i = new
|
|
4467
|
+
} = this.getProgress(), i = new yi(t.getColor()), n = new yi(r.getColor());
|
|
4468
4468
|
if (i.ok && n.ok) {
|
|
4469
4469
|
var o = i.r + (n.r - i.r) * e, s = i.g + (n.g - i.g) * e, u = i.b + (n.b - i.b) * e;
|
|
4470
4470
|
return "rgb(".concat(Math.floor(o), ", ").concat(Math.floor(s), ", ").concat(Math.floor(u), ")");
|
|
@@ -4472,7 +4472,7 @@ class M1 extends nn {
|
|
|
4472
4472
|
return this.getAttribute("from").getColor();
|
|
4473
4473
|
}
|
|
4474
4474
|
}
|
|
4475
|
-
class
|
|
4475
|
+
class V1 extends sn {
|
|
4476
4476
|
constructor() {
|
|
4477
4477
|
super(...arguments), this.type = "animateTransform";
|
|
4478
4478
|
}
|
|
@@ -4488,7 +4488,7 @@ class _1 extends nn {
|
|
|
4488
4488
|
return o;
|
|
4489
4489
|
}
|
|
4490
4490
|
}
|
|
4491
|
-
class
|
|
4491
|
+
class D1 extends N {
|
|
4492
4492
|
constructor(e, t, r) {
|
|
4493
4493
|
super(e, t, r), this.type = "font", this.glyphs = {}, this.horizAdvX = this.getAttribute("horiz-adv-x").getNumber();
|
|
4494
4494
|
var {
|
|
@@ -4517,17 +4517,17 @@ class V1 extends N {
|
|
|
4517
4517
|
render() {
|
|
4518
4518
|
}
|
|
4519
4519
|
}
|
|
4520
|
-
class
|
|
4520
|
+
class k1 extends N {
|
|
4521
4521
|
constructor(e, t, r) {
|
|
4522
4522
|
super(e, t, r), this.type = "font-face", this.ascent = this.getAttribute("ascent").getNumber(), this.descent = this.getAttribute("descent").getNumber(), this.unitsPerEm = this.getAttribute("units-per-em").getNumber();
|
|
4523
4523
|
}
|
|
4524
4524
|
}
|
|
4525
|
-
class
|
|
4525
|
+
class L1 extends A {
|
|
4526
4526
|
constructor() {
|
|
4527
4527
|
super(...arguments), this.type = "missing-glyph", this.horizAdvX = 0;
|
|
4528
4528
|
}
|
|
4529
4529
|
}
|
|
4530
|
-
class
|
|
4530
|
+
class B1 extends Ce {
|
|
4531
4531
|
constructor() {
|
|
4532
4532
|
super(...arguments), this.type = "tref";
|
|
4533
4533
|
}
|
|
@@ -4541,7 +4541,7 @@ class L1 extends Ce {
|
|
|
4541
4541
|
return "";
|
|
4542
4542
|
}
|
|
4543
4543
|
}
|
|
4544
|
-
class
|
|
4544
|
+
class j1 extends Ce {
|
|
4545
4545
|
constructor(e, t, r) {
|
|
4546
4546
|
super(e, t, r), this.type = "a";
|
|
4547
4547
|
var {
|
|
@@ -4564,7 +4564,7 @@ class B1 extends Ce {
|
|
|
4564
4564
|
} = t.screen, o = new S(t, "fontSize", Z.parse(t.ctx.font).fontSize);
|
|
4565
4565
|
n.isWorking() && n.checkBoundingBox(this, new ce(r, i - o.getPixels("y"), r + this.measureText(e), i));
|
|
4566
4566
|
} else if (this.children.length > 0) {
|
|
4567
|
-
var s = new
|
|
4567
|
+
var s = new nn(this.document, null);
|
|
4568
4568
|
s.children = this.children, s.parent = this, s.render(e);
|
|
4569
4569
|
}
|
|
4570
4570
|
}
|
|
@@ -4579,7 +4579,7 @@ class B1 extends Ce {
|
|
|
4579
4579
|
e.canvas.style.cursor = "pointer";
|
|
4580
4580
|
}
|
|
4581
4581
|
}
|
|
4582
|
-
function
|
|
4582
|
+
function No(a, e) {
|
|
4583
4583
|
var t = Object.keys(a);
|
|
4584
4584
|
if (Object.getOwnPropertySymbols) {
|
|
4585
4585
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -4589,18 +4589,18 @@ function Ro(a, e) {
|
|
|
4589
4589
|
}
|
|
4590
4590
|
return t;
|
|
4591
4591
|
}
|
|
4592
|
-
function
|
|
4592
|
+
function ir(a) {
|
|
4593
4593
|
for (var e = 1; e < arguments.length; e++) {
|
|
4594
4594
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
4595
|
-
e % 2 ?
|
|
4596
|
-
|
|
4597
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
4595
|
+
e % 2 ? No(Object(t), !0).forEach(function(r) {
|
|
4596
|
+
rn(a, r, t[r]);
|
|
4597
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : No(Object(t)).forEach(function(r) {
|
|
4598
4598
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
4599
4599
|
});
|
|
4600
4600
|
}
|
|
4601
4601
|
return a;
|
|
4602
4602
|
}
|
|
4603
|
-
class
|
|
4603
|
+
class F1 extends Ce {
|
|
4604
4604
|
constructor(e, t, r) {
|
|
4605
4605
|
super(e, t, r), this.type = "textPath", this.textWidth = 0, this.textHeight = 0, this.pathLength = -1, this.glyphInfo = null, this.letterSpacingCache = [], this.measuresCache = /* @__PURE__ */ new Map([["", 0]]);
|
|
4606
4606
|
var i = this.getHrefAttribute().getDefinition();
|
|
@@ -4670,10 +4670,10 @@ class j1 extends Ce {
|
|
|
4670
4670
|
}, p = v && d ? Math.atan2(d.y - v.y, d.x - v.x) : 0;
|
|
4671
4671
|
if (s) {
|
|
4672
4672
|
var y = Math.cos(Math.PI / 2 + p) * s, x = Math.cos(-p) * s;
|
|
4673
|
-
g.p0 =
|
|
4673
|
+
g.p0 = ir(ir({}, v), {}, {
|
|
4674
4674
|
x: v.x + y,
|
|
4675
4675
|
y: v.y + x
|
|
4676
|
-
}), g.p1 =
|
|
4676
|
+
}), g.p1 = ir(ir({}, d), {}, {
|
|
4677
4677
|
x: d.x + y,
|
|
4678
4678
|
y: d.y + x
|
|
4679
4679
|
});
|
|
@@ -4880,7 +4880,7 @@ class j1 extends Ce {
|
|
|
4880
4880
|
return 0;
|
|
4881
4881
|
}
|
|
4882
4882
|
getPointOnLine(e, t, r, i, n) {
|
|
4883
|
-
var o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : t, s = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : r, u = (n - r) / (i - t +
|
|
4883
|
+
var o = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : t, s = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : r, u = (n - r) / (i - t + it), l = Math.sqrt(e * e / (1 + u * u));
|
|
4884
4884
|
i < t && (l *= -1);
|
|
4885
4885
|
var h = u * l, f = null;
|
|
4886
4886
|
if (i === t)
|
|
@@ -4888,14 +4888,14 @@ class j1 extends Ce {
|
|
|
4888
4888
|
x: o,
|
|
4889
4889
|
y: s + h
|
|
4890
4890
|
};
|
|
4891
|
-
else if ((s - r) / (o - t +
|
|
4891
|
+
else if ((s - r) / (o - t + it) === u)
|
|
4892
4892
|
f = {
|
|
4893
4893
|
x: o + l,
|
|
4894
4894
|
y: s + h
|
|
4895
4895
|
};
|
|
4896
4896
|
else {
|
|
4897
4897
|
var c = 0, v = 0, d = this.getLineLength(t, r, i, n);
|
|
4898
|
-
if (d <
|
|
4898
|
+
if (d < it)
|
|
4899
4899
|
return null;
|
|
4900
4900
|
var g = (o - t) * (i - t) + (s - r) * (n - r);
|
|
4901
4901
|
g /= d * d, c = t + g * (i - t), v = r + g * (n - r);
|
|
@@ -4951,14 +4951,14 @@ class j1 extends Ce {
|
|
|
4951
4951
|
return this.pathLength === -1 && (this.pathLength = this.dataArray.reduce((e, t) => t.pathLength > 0 ? e + t.pathLength : e, 0)), this.pathLength;
|
|
4952
4952
|
}
|
|
4953
4953
|
getPointOnCubicBezier(e, t, r, i, n, o, s, u, l) {
|
|
4954
|
-
var h = u *
|
|
4954
|
+
var h = u * Eo(e) + o * $o(e) + i * wo(e) + t * Co(e), f = l * Eo(e) + s * $o(e) + n * wo(e) + r * Co(e);
|
|
4955
4955
|
return {
|
|
4956
4956
|
x: h,
|
|
4957
4957
|
y: f
|
|
4958
4958
|
};
|
|
4959
4959
|
}
|
|
4960
4960
|
getPointOnQuadraticBezier(e, t, r, i, n, o, s) {
|
|
4961
|
-
var u = o *
|
|
4961
|
+
var u = o * Ao(e) + i * Po(e) + t * Ro(e), l = s * Ao(e) + n * Po(e) + r * Ro(e);
|
|
4962
4962
|
return {
|
|
4963
4963
|
x: u,
|
|
4964
4964
|
y: l
|
|
@@ -5000,8 +5000,8 @@ class j1 extends Ce {
|
|
|
5000
5000
|
return this.equidistantCache.points[i] || null;
|
|
5001
5001
|
}
|
|
5002
5002
|
}
|
|
5003
|
-
var
|
|
5004
|
-
class
|
|
5003
|
+
var U1 = /^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;
|
|
5004
|
+
class G1 extends Ge {
|
|
5005
5005
|
constructor(e, t, r) {
|
|
5006
5006
|
super(e, t, r), this.type = "image", this.loaded = !1;
|
|
5007
5007
|
var i = this.getHrefAttribute().getString();
|
|
@@ -5025,7 +5025,7 @@ class U1 extends Ge {
|
|
|
5025
5025
|
loadSvg(e) {
|
|
5026
5026
|
var t = this;
|
|
5027
5027
|
return xe(function* () {
|
|
5028
|
-
var r =
|
|
5028
|
+
var r = U1.exec(e);
|
|
5029
5029
|
if (r) {
|
|
5030
5030
|
var i = r[5];
|
|
5031
5031
|
r[4] === "base64" ? t.image = atob(i) : t.image = decodeURIComponent(i);
|
|
@@ -5077,14 +5077,14 @@ class U1 extends Ge {
|
|
|
5077
5077
|
return new ce(e, t, e + r, t + i);
|
|
5078
5078
|
}
|
|
5079
5079
|
}
|
|
5080
|
-
class
|
|
5080
|
+
class z1 extends Ge {
|
|
5081
5081
|
constructor() {
|
|
5082
5082
|
super(...arguments), this.type = "symbol";
|
|
5083
5083
|
}
|
|
5084
5084
|
render(e) {
|
|
5085
5085
|
}
|
|
5086
5086
|
}
|
|
5087
|
-
class
|
|
5087
|
+
class H1 {
|
|
5088
5088
|
constructor(e) {
|
|
5089
5089
|
this.document = e, this.loaded = !1, e.fonts.push(this);
|
|
5090
5090
|
}
|
|
@@ -5106,10 +5106,10 @@ class z1 {
|
|
|
5106
5106
|
})();
|
|
5107
5107
|
}
|
|
5108
5108
|
}
|
|
5109
|
-
class
|
|
5109
|
+
class El extends N {
|
|
5110
5110
|
constructor(e, t, r) {
|
|
5111
5111
|
super(e, t, r), this.type = "style";
|
|
5112
|
-
var i =
|
|
5112
|
+
var i = vt(
|
|
5113
5113
|
Array.from(t.childNodes).map((o) => o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm, "").replace(/@import.*;/g, "")
|
|
5114
5114
|
// remove imports
|
|
5115
5115
|
), n = i.split("}");
|
|
@@ -5124,12 +5124,12 @@ class Sl extends N {
|
|
|
5124
5124
|
if (h.forEach((p) => {
|
|
5125
5125
|
var y = p.indexOf(":"), x = p.substr(0, y).trim(), b = p.substr(y + 1, p.length - y).trim();
|
|
5126
5126
|
x && b && (v[x] = new S(e, x, b));
|
|
5127
|
-
}), e.styles[c] = v, e.stylesSpecificity[c] =
|
|
5127
|
+
}), e.styles[c] = v, e.stylesSpecificity[c] = s1(c), c === "@font-face") {
|
|
5128
5128
|
var d = v["font-family"].getString().replace(/"|'/g, ""), g = v.src.getString().split(",");
|
|
5129
5129
|
g.forEach((p) => {
|
|
5130
5130
|
if (p.indexOf('format("svg")') > 0) {
|
|
5131
|
-
var y =
|
|
5132
|
-
y && new
|
|
5131
|
+
var y = dl(p);
|
|
5132
|
+
y && new H1(e).load(d, y);
|
|
5133
5133
|
}
|
|
5134
5134
|
});
|
|
5135
5135
|
}
|
|
@@ -5139,8 +5139,8 @@ class Sl extends N {
|
|
|
5139
5139
|
});
|
|
5140
5140
|
}
|
|
5141
5141
|
}
|
|
5142
|
-
|
|
5143
|
-
class
|
|
5142
|
+
El.parseExternalUrl = dl;
|
|
5143
|
+
class Y1 extends Ge {
|
|
5144
5144
|
constructor() {
|
|
5145
5145
|
super(...arguments), this.type = "use";
|
|
5146
5146
|
}
|
|
@@ -5162,7 +5162,7 @@ class H1 extends Ge {
|
|
|
5162
5162
|
} = this;
|
|
5163
5163
|
if (r) {
|
|
5164
5164
|
var i = r;
|
|
5165
|
-
if (r.type === "symbol" && (i = new
|
|
5165
|
+
if (r.type === "symbol" && (i = new Mt(t, null), i.attributes.viewBox = new S(t, "viewBox", r.getAttribute("viewBox").getString()), i.attributes.preserveAspectRatio = new S(t, "preserveAspectRatio", r.getAttribute("preserveAspectRatio").getString()), i.attributes.overflow = new S(t, "overflow", r.getAttribute("overflow").getString()), i.children = r.children, r.styles.opacity = new S(t, "opacity", this.calculateOpacity())), i.type === "svg") {
|
|
5166
5166
|
var n = this.getStyle("width", !1, !0), o = this.getStyle("height", !1, !0);
|
|
5167
5167
|
n.hasValue() && (i.attributes.width = new S(t, "width", n.getString())), o.hasValue() && (i.attributes.height = new S(t, "height", o.getString()));
|
|
5168
5168
|
}
|
|
@@ -5187,10 +5187,10 @@ class H1 extends Ge {
|
|
|
5187
5187
|
return this.cachedElement || (this.cachedElement = this.getHrefAttribute().getDefinition()), this.cachedElement;
|
|
5188
5188
|
}
|
|
5189
5189
|
}
|
|
5190
|
-
function
|
|
5190
|
+
function nr(a, e, t, r, i, n) {
|
|
5191
5191
|
return a[t * r * 4 + e * 4 + n];
|
|
5192
5192
|
}
|
|
5193
|
-
function
|
|
5193
|
+
function sr(a, e, t, r, i, n, o) {
|
|
5194
5194
|
a[t * r * 4 + e * 4 + n] = o;
|
|
5195
5195
|
}
|
|
5196
5196
|
function F(a, e, t) {
|
|
@@ -5200,7 +5200,7 @@ function F(a, e, t) {
|
|
|
5200
5200
|
function me(a, e, t, r) {
|
|
5201
5201
|
return e + Math.cos(a) * t + Math.sin(a) * r;
|
|
5202
5202
|
}
|
|
5203
|
-
class
|
|
5203
|
+
class $l extends N {
|
|
5204
5204
|
constructor(e, t, r) {
|
|
5205
5205
|
super(e, t, r), this.type = "feColorMatrix";
|
|
5206
5206
|
var i = ie(this.getAttribute("values").getString());
|
|
@@ -5227,13 +5227,13 @@ class El extends N {
|
|
|
5227
5227
|
matrix: s
|
|
5228
5228
|
} = this, u = e.getImageData(0, 0, i, n), l = 0; l < n; l++)
|
|
5229
5229
|
for (var h = 0; h < i; h++) {
|
|
5230
|
-
var f =
|
|
5231
|
-
o && (g = 0, p = 0, y = 0, x *= d / 255),
|
|
5230
|
+
var f = nr(u.data, h, l, i, n, 0), c = nr(u.data, h, l, i, n, 1), v = nr(u.data, h, l, i, n, 2), d = nr(u.data, h, l, i, n, 3), g = F(s, 0, f) + F(s, 1, c) + F(s, 2, v) + F(s, 3, d) + F(s, 4, 1), p = F(s, 5, f) + F(s, 6, c) + F(s, 7, v) + F(s, 8, d) + F(s, 9, 1), y = F(s, 10, f) + F(s, 11, c) + F(s, 12, v) + F(s, 13, d) + F(s, 14, 1), x = F(s, 15, f) + F(s, 16, c) + F(s, 17, v) + F(s, 18, d) + F(s, 19, 1);
|
|
5231
|
+
o && (g = 0, p = 0, y = 0, x *= d / 255), sr(u.data, h, l, i, n, 0, g), sr(u.data, h, l, i, n, 1, p), sr(u.data, h, l, i, n, 2, y), sr(u.data, h, l, i, n, 3, x);
|
|
5232
5232
|
}
|
|
5233
5233
|
e.clearRect(0, 0, i, n), e.putImageData(u, 0, 0);
|
|
5234
5234
|
}
|
|
5235
5235
|
}
|
|
5236
|
-
class
|
|
5236
|
+
class kr extends N {
|
|
5237
5237
|
constructor() {
|
|
5238
5238
|
super(...arguments), this.type = "mask";
|
|
5239
5239
|
}
|
|
@@ -5247,8 +5247,8 @@ class Dr extends N {
|
|
|
5247
5247
|
u.addBoundingBox(d.getBoundingBox(e));
|
|
5248
5248
|
}), i = Math.floor(u.x1), n = Math.floor(u.y1), o = Math.floor(u.width), s = Math.floor(u.height);
|
|
5249
5249
|
}
|
|
5250
|
-
var l = this.removeStyles(t,
|
|
5251
|
-
r.screen.setDefaults(f), this.renderChildren(f), new
|
|
5250
|
+
var l = this.removeStyles(t, kr.ignoreStyles), h = r.createCanvas(i + o, n + s), f = h.getContext("2d");
|
|
5251
|
+
r.screen.setDefaults(f), this.renderChildren(f), new $l(r, {
|
|
5252
5252
|
nodeType: 1,
|
|
5253
5253
|
childNodes: [],
|
|
5254
5254
|
attributes: [{
|
|
@@ -5265,10 +5265,10 @@ class Dr extends N {
|
|
|
5265
5265
|
render(e) {
|
|
5266
5266
|
}
|
|
5267
5267
|
}
|
|
5268
|
-
|
|
5269
|
-
var
|
|
5268
|
+
kr.ignoreStyles = ["mask", "transform", "clip-path"];
|
|
5269
|
+
var Io = () => {
|
|
5270
5270
|
};
|
|
5271
|
-
class
|
|
5271
|
+
class X1 extends N {
|
|
5272
5272
|
constructor() {
|
|
5273
5273
|
super(...arguments), this.type = "clipPath";
|
|
5274
5274
|
}
|
|
@@ -5279,7 +5279,7 @@ class Y1 extends N {
|
|
|
5279
5279
|
beginPath: i,
|
|
5280
5280
|
closePath: n
|
|
5281
5281
|
} = e;
|
|
5282
|
-
r && (r.beginPath =
|
|
5282
|
+
r && (r.beginPath = Io, r.closePath = Io), Reflect.apply(i, e, []), this.children.forEach((o) => {
|
|
5283
5283
|
if (typeof o.path != "undefined") {
|
|
5284
5284
|
var s = typeof o.elementTransform != "undefined" ? o.elementTransform() : null;
|
|
5285
5285
|
s || (s = Le.fromElement(t, o)), s && s.apply(e), o.path(e), r && (r.closePath = n), s && s.unapply(e);
|
|
@@ -5289,7 +5289,7 @@ class Y1 extends N {
|
|
|
5289
5289
|
render(e) {
|
|
5290
5290
|
}
|
|
5291
5291
|
}
|
|
5292
|
-
class
|
|
5292
|
+
class Lr extends N {
|
|
5293
5293
|
constructor() {
|
|
5294
5294
|
super(...arguments), this.type = "filter";
|
|
5295
5295
|
}
|
|
@@ -5306,7 +5306,7 @@ class kr extends N {
|
|
|
5306
5306
|
});
|
|
5307
5307
|
var u = Math.floor(n.width), l = Math.floor(n.height), h = u + 2 * o, f = l + 2 * s;
|
|
5308
5308
|
if (!(h < 1 || f < 1)) {
|
|
5309
|
-
var c = Math.floor(n.x), v = Math.floor(n.y), d = this.removeStyles(t,
|
|
5309
|
+
var c = Math.floor(n.x), v = Math.floor(n.y), d = this.removeStyles(t, Lr.ignoreStyles), g = r.createCanvas(h, f), p = g.getContext("2d");
|
|
5310
5310
|
r.screen.setDefaults(p), p.translate(-c + o, -v + s), t.render(p), i.forEach((y) => {
|
|
5311
5311
|
typeof y.apply == "function" && y.apply(p, 0, 0, h, f);
|
|
5312
5312
|
}), e.drawImage(g, 0, 0, h, f, c - o, v - s, h, f), this.restoreStyles(t, d);
|
|
@@ -5316,29 +5316,29 @@ class kr extends N {
|
|
|
5316
5316
|
render(e) {
|
|
5317
5317
|
}
|
|
5318
5318
|
}
|
|
5319
|
-
|
|
5320
|
-
class
|
|
5319
|
+
Lr.ignoreStyles = ["filter", "transform", "clip-path"];
|
|
5320
|
+
class W1 extends N {
|
|
5321
5321
|
constructor(e, t, r) {
|
|
5322
5322
|
super(e, t, r), this.type = "feDropShadow", this.addStylesFromStyleDefinition();
|
|
5323
5323
|
}
|
|
5324
5324
|
apply(e, t, r, i, n) {
|
|
5325
5325
|
}
|
|
5326
5326
|
}
|
|
5327
|
-
class
|
|
5327
|
+
class q1 extends N {
|
|
5328
5328
|
constructor() {
|
|
5329
5329
|
super(...arguments), this.type = "feMorphology";
|
|
5330
5330
|
}
|
|
5331
5331
|
apply(e, t, r, i, n) {
|
|
5332
5332
|
}
|
|
5333
5333
|
}
|
|
5334
|
-
class
|
|
5334
|
+
class Q1 extends N {
|
|
5335
5335
|
constructor() {
|
|
5336
5336
|
super(...arguments), this.type = "feComposite";
|
|
5337
5337
|
}
|
|
5338
5338
|
apply(e, t, r, i, n) {
|
|
5339
5339
|
}
|
|
5340
5340
|
}
|
|
5341
|
-
class
|
|
5341
|
+
class K1 extends N {
|
|
5342
5342
|
constructor(e, t, r) {
|
|
5343
5343
|
super(e, t, r), this.type = "feGaussianBlur", this.blurRadius = Math.floor(this.getAttribute("stdDeviation").getNumber()), this.extraFilterDistance = this.blurRadius;
|
|
5344
5344
|
}
|
|
@@ -5347,63 +5347,63 @@ class Q1 extends N {
|
|
|
5347
5347
|
document: o,
|
|
5348
5348
|
blurRadius: s
|
|
5349
5349
|
} = this, u = o.window ? o.window.document.body : null, l = e.canvas;
|
|
5350
|
-
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)),
|
|
5350
|
+
l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)), zb(l, t, r, i, n, s), u && u.removeChild(l);
|
|
5351
5351
|
}
|
|
5352
5352
|
}
|
|
5353
|
-
class
|
|
5353
|
+
class Z1 extends N {
|
|
5354
5354
|
constructor() {
|
|
5355
5355
|
super(...arguments), this.type = "title";
|
|
5356
5356
|
}
|
|
5357
5357
|
}
|
|
5358
|
-
class
|
|
5358
|
+
class J1 extends N {
|
|
5359
5359
|
constructor() {
|
|
5360
5360
|
super(...arguments), this.type = "desc";
|
|
5361
5361
|
}
|
|
5362
5362
|
}
|
|
5363
|
-
var
|
|
5364
|
-
svg:
|
|
5365
|
-
rect:
|
|
5366
|
-
circle:
|
|
5367
|
-
ellipse:
|
|
5368
|
-
line:
|
|
5369
|
-
polyline:
|
|
5370
|
-
polygon:
|
|
5363
|
+
var e2 = {
|
|
5364
|
+
svg: Mt,
|
|
5365
|
+
rect: Tl,
|
|
5366
|
+
circle: E1,
|
|
5367
|
+
ellipse: $1,
|
|
5368
|
+
line: w1,
|
|
5369
|
+
polyline: Ol,
|
|
5370
|
+
polygon: C1,
|
|
5371
5371
|
path: A,
|
|
5372
|
-
pattern:
|
|
5373
|
-
marker:
|
|
5374
|
-
defs:
|
|
5375
|
-
linearGradient:
|
|
5376
|
-
radialGradient:
|
|
5377
|
-
stop:
|
|
5378
|
-
animate:
|
|
5379
|
-
animateColor:
|
|
5380
|
-
animateTransform:
|
|
5381
|
-
font:
|
|
5382
|
-
"font-face":
|
|
5383
|
-
"missing-glyph":
|
|
5384
|
-
glyph:
|
|
5372
|
+
pattern: A1,
|
|
5373
|
+
marker: P1,
|
|
5374
|
+
defs: R1,
|
|
5375
|
+
linearGradient: N1,
|
|
5376
|
+
radialGradient: I1,
|
|
5377
|
+
stop: M1,
|
|
5378
|
+
animate: sn,
|
|
5379
|
+
animateColor: _1,
|
|
5380
|
+
animateTransform: V1,
|
|
5381
|
+
font: D1,
|
|
5382
|
+
"font-face": k1,
|
|
5383
|
+
"missing-glyph": L1,
|
|
5384
|
+
glyph: xl,
|
|
5385
5385
|
text: Ce,
|
|
5386
|
-
tspan:
|
|
5387
|
-
tref:
|
|
5388
|
-
a:
|
|
5389
|
-
textPath:
|
|
5390
|
-
image:
|
|
5391
|
-
g:
|
|
5392
|
-
symbol:
|
|
5393
|
-
style:
|
|
5394
|
-
use:
|
|
5395
|
-
mask:
|
|
5396
|
-
clipPath:
|
|
5397
|
-
filter:
|
|
5398
|
-
feDropShadow:
|
|
5399
|
-
feMorphology:
|
|
5400
|
-
feComposite:
|
|
5401
|
-
feColorMatrix:
|
|
5402
|
-
feGaussianBlur:
|
|
5403
|
-
title:
|
|
5404
|
-
desc:
|
|
5386
|
+
tspan: Dr,
|
|
5387
|
+
tref: B1,
|
|
5388
|
+
a: j1,
|
|
5389
|
+
textPath: F1,
|
|
5390
|
+
image: G1,
|
|
5391
|
+
g: nn,
|
|
5392
|
+
symbol: z1,
|
|
5393
|
+
style: El,
|
|
5394
|
+
use: Y1,
|
|
5395
|
+
mask: kr,
|
|
5396
|
+
clipPath: X1,
|
|
5397
|
+
filter: Lr,
|
|
5398
|
+
feDropShadow: W1,
|
|
5399
|
+
feMorphology: q1,
|
|
5400
|
+
feComposite: Q1,
|
|
5401
|
+
feColorMatrix: $l,
|
|
5402
|
+
feGaussianBlur: K1,
|
|
5403
|
+
title: Z1,
|
|
5404
|
+
desc: J1
|
|
5405
5405
|
};
|
|
5406
|
-
function
|
|
5406
|
+
function Mo(a, e) {
|
|
5407
5407
|
var t = Object.keys(a);
|
|
5408
5408
|
if (Object.getOwnPropertySymbols) {
|
|
5409
5409
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -5413,26 +5413,26 @@ function Io(a, e) {
|
|
|
5413
5413
|
}
|
|
5414
5414
|
return t;
|
|
5415
5415
|
}
|
|
5416
|
-
function
|
|
5416
|
+
function t2(a) {
|
|
5417
5417
|
for (var e = 1; e < arguments.length; e++) {
|
|
5418
5418
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
5419
|
-
e % 2 ?
|
|
5420
|
-
|
|
5421
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
5419
|
+
e % 2 ? Mo(Object(t), !0).forEach(function(r) {
|
|
5420
|
+
rn(a, r, t[r]);
|
|
5421
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Mo(Object(t)).forEach(function(r) {
|
|
5422
5422
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
5423
5423
|
});
|
|
5424
5424
|
}
|
|
5425
5425
|
return a;
|
|
5426
5426
|
}
|
|
5427
|
-
function
|
|
5427
|
+
function r2(a, e) {
|
|
5428
5428
|
var t = document.createElement("canvas");
|
|
5429
5429
|
return t.width = a, t.height = e, t;
|
|
5430
5430
|
}
|
|
5431
|
-
function
|
|
5432
|
-
return
|
|
5431
|
+
function a2(a) {
|
|
5432
|
+
return Ti.apply(this, arguments);
|
|
5433
5433
|
}
|
|
5434
|
-
function
|
|
5435
|
-
return
|
|
5434
|
+
function Ti() {
|
|
5435
|
+
return Ti = xe(function* (a) {
|
|
5436
5436
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = document.createElement("img");
|
|
5437
5437
|
return e && (t.crossOrigin = "Anonymous"), new Promise((r, i) => {
|
|
5438
5438
|
t.onload = () => {
|
|
@@ -5441,7 +5441,7 @@ function xi() {
|
|
|
5441
5441
|
i(l);
|
|
5442
5442
|
}, t.src = a;
|
|
5443
5443
|
});
|
|
5444
|
-
}),
|
|
5444
|
+
}), Ti.apply(this, arguments);
|
|
5445
5445
|
}
|
|
5446
5446
|
class $e {
|
|
5447
5447
|
constructor(e) {
|
|
@@ -5499,21 +5499,21 @@ class $e {
|
|
|
5499
5499
|
}
|
|
5500
5500
|
createElement(e) {
|
|
5501
5501
|
var t = e.nodeName.replace(/^[^:]+:/, ""), r = $e.elementTypes[t];
|
|
5502
|
-
return typeof r != "undefined" ? new r(this, e) : new
|
|
5502
|
+
return typeof r != "undefined" ? new r(this, e) : new m1(this, e);
|
|
5503
5503
|
}
|
|
5504
5504
|
createTextNode(e) {
|
|
5505
|
-
return new
|
|
5505
|
+
return new S1(this, e);
|
|
5506
5506
|
}
|
|
5507
5507
|
setViewBox(e) {
|
|
5508
|
-
this.screen.setViewBox(
|
|
5508
|
+
this.screen.setViewBox(t2({
|
|
5509
5509
|
document: this
|
|
5510
5510
|
}, e));
|
|
5511
5511
|
}
|
|
5512
5512
|
}
|
|
5513
|
-
$e.createCanvas =
|
|
5514
|
-
$e.createImage =
|
|
5515
|
-
$e.elementTypes =
|
|
5516
|
-
function
|
|
5513
|
+
$e.createCanvas = r2;
|
|
5514
|
+
$e.createImage = a2;
|
|
5515
|
+
$e.elementTypes = e2;
|
|
5516
|
+
function _o(a, e) {
|
|
5517
5517
|
var t = Object.keys(a);
|
|
5518
5518
|
if (Object.getOwnPropertySymbols) {
|
|
5519
5519
|
var r = Object.getOwnPropertySymbols(a);
|
|
@@ -5526,15 +5526,15 @@ function Mo(a, e) {
|
|
|
5526
5526
|
function Ve(a) {
|
|
5527
5527
|
for (var e = 1; e < arguments.length; e++) {
|
|
5528
5528
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
5529
|
-
e % 2 ?
|
|
5530
|
-
|
|
5531
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) :
|
|
5529
|
+
e % 2 ? _o(Object(t), !0).forEach(function(r) {
|
|
5530
|
+
rn(a, r, t[r]);
|
|
5531
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : _o(Object(t)).forEach(function(r) {
|
|
5532
5532
|
Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
|
|
5533
5533
|
});
|
|
5534
5534
|
}
|
|
5535
5535
|
return a;
|
|
5536
5536
|
}
|
|
5537
|
-
class
|
|
5537
|
+
class xt {
|
|
5538
5538
|
/**
|
|
5539
5539
|
* Main constructor.
|
|
5540
5540
|
* @param ctx - Rendering context.
|
|
@@ -5543,7 +5543,7 @@ class bt {
|
|
|
5543
5543
|
*/
|
|
5544
5544
|
constructor(e, t) {
|
|
5545
5545
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5546
|
-
this.parser = new
|
|
5546
|
+
this.parser = new za(r), this.screen = new Vr(e, r), this.options = r;
|
|
5547
5547
|
var i = new $e(this, r), n = i.createDocumentElement(t);
|
|
5548
5548
|
this.document = i, this.documentElement = n;
|
|
5549
5549
|
}
|
|
@@ -5557,8 +5557,8 @@ class bt {
|
|
|
5557
5557
|
static from(e, t) {
|
|
5558
5558
|
var r = arguments;
|
|
5559
5559
|
return xe(function* () {
|
|
5560
|
-
var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new
|
|
5561
|
-
return new
|
|
5560
|
+
var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new za(i), o = yield n.parse(t);
|
|
5561
|
+
return new xt(e, o, i);
|
|
5562
5562
|
})();
|
|
5563
5563
|
}
|
|
5564
5564
|
/**
|
|
@@ -5569,8 +5569,8 @@ class bt {
|
|
|
5569
5569
|
* @returns Canvg instance.
|
|
5570
5570
|
*/
|
|
5571
5571
|
static fromString(e, t) {
|
|
5572
|
-
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new
|
|
5573
|
-
return new
|
|
5572
|
+
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new za(r), n = i.parseFromString(t);
|
|
5573
|
+
return new xt(e, n, r);
|
|
5574
5574
|
}
|
|
5575
5575
|
/**
|
|
5576
5576
|
* Create new Canvg instance with inherited options.
|
|
@@ -5581,7 +5581,7 @@ class bt {
|
|
|
5581
5581
|
*/
|
|
5582
5582
|
fork(e, t) {
|
|
5583
5583
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5584
|
-
return
|
|
5584
|
+
return xt.from(e, t, Ve(Ve({}, this.options), r));
|
|
5585
5585
|
}
|
|
5586
5586
|
/**
|
|
5587
5587
|
* Create new Canvg instance with inherited options.
|
|
@@ -5592,7 +5592,7 @@ class bt {
|
|
|
5592
5592
|
*/
|
|
5593
5593
|
forkString(e, t) {
|
|
5594
5594
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5595
|
-
return
|
|
5595
|
+
return xt.fromString(e, t, Ve(Ve({}, this.options), r));
|
|
5596
5596
|
}
|
|
5597
5597
|
/**
|
|
5598
5598
|
* Document is ready promise.
|
|
@@ -5655,90 +5655,90 @@ class bt {
|
|
|
5655
5655
|
}
|
|
5656
5656
|
}
|
|
5657
5657
|
export {
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5658
|
+
j1 as AElement,
|
|
5659
|
+
_1 as AnimateColorElement,
|
|
5660
|
+
sn as AnimateElement,
|
|
5661
|
+
V1 as AnimateTransformElement,
|
|
5662
5662
|
ce as BoundingBox,
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5663
|
+
Eo as CB1,
|
|
5664
|
+
$o as CB2,
|
|
5665
|
+
wo as CB3,
|
|
5666
|
+
Co as CB4,
|
|
5667
|
+
xt as Canvg,
|
|
5668
|
+
E1 as CircleElement,
|
|
5669
|
+
X1 as ClipPathElement,
|
|
5670
|
+
R1 as DefsElement,
|
|
5671
|
+
J1 as DescElement,
|
|
5672
5672
|
$e as Document,
|
|
5673
5673
|
N as Element,
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5674
|
+
$1 as EllipseElement,
|
|
5675
|
+
$l as FeColorMatrixElement,
|
|
5676
|
+
Q1 as FeCompositeElement,
|
|
5677
|
+
W1 as FeDropShadowElement,
|
|
5678
|
+
K1 as FeGaussianBlurElement,
|
|
5679
|
+
q1 as FeMorphologyElement,
|
|
5680
|
+
Lr as FilterElement,
|
|
5681
5681
|
Z as Font,
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5682
|
+
D1 as FontElement,
|
|
5683
|
+
k1 as FontFaceElement,
|
|
5684
|
+
nn as GElement,
|
|
5685
|
+
xl as GlyphElement,
|
|
5686
|
+
Sl as GradientElement,
|
|
5687
|
+
G1 as ImageElement,
|
|
5688
|
+
w1 as LineElement,
|
|
5689
|
+
N1 as LinearGradientElement,
|
|
5690
|
+
P1 as MarkerElement,
|
|
5691
|
+
kr as MaskElement,
|
|
5692
|
+
ml as Matrix,
|
|
5693
|
+
L1 as MissingGlyphElement,
|
|
5694
|
+
u1 as Mouse,
|
|
5695
|
+
it as PSEUDO_ZERO,
|
|
5696
|
+
za as Parser,
|
|
5697
5697
|
A as PathElement,
|
|
5698
5698
|
w as PathParser,
|
|
5699
|
-
|
|
5699
|
+
A1 as PatternElement,
|
|
5700
5700
|
D as Point,
|
|
5701
|
-
|
|
5702
|
-
|
|
5701
|
+
C1 as PolygonElement,
|
|
5702
|
+
Ol as PolylineElement,
|
|
5703
5703
|
S as Property,
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5704
|
+
Ao as QB1,
|
|
5705
|
+
Po as QB2,
|
|
5706
|
+
Ro as QB3,
|
|
5707
|
+
I1 as RadialGradientElement,
|
|
5708
|
+
Tl as RectElement,
|
|
5709
5709
|
Ge as RenderedElement,
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5710
|
+
f1 as Rotate,
|
|
5711
|
+
Mt as SVGElement,
|
|
5712
|
+
H1 as SVGFontLoader,
|
|
5713
|
+
c1 as Scale,
|
|
5714
|
+
Vr as Screen,
|
|
5715
|
+
bl as Skew,
|
|
5716
|
+
g1 as SkewX,
|
|
5717
|
+
d1 as SkewY,
|
|
5718
|
+
M1 as StopElement,
|
|
5719
|
+
El as StyleElement,
|
|
5720
|
+
z1 as SymbolElement,
|
|
5721
|
+
B1 as TRefElement,
|
|
5722
|
+
Dr as TSpanElement,
|
|
5723
5723
|
Ce as TextElement,
|
|
5724
|
-
|
|
5725
|
-
|
|
5724
|
+
F1 as TextPathElement,
|
|
5725
|
+
Z1 as TitleElement,
|
|
5726
5726
|
Le as Transform,
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5727
|
+
v1 as Translate,
|
|
5728
|
+
m1 as UnknownElement,
|
|
5729
|
+
Y1 as UseElement,
|
|
5730
|
+
o1 as ViewPort,
|
|
5731
|
+
vt as compressSpaces,
|
|
5732
|
+
xt as default,
|
|
5733
|
+
s1 as getSelectorSpecificity,
|
|
5734
|
+
Kb as normalizeAttributeName,
|
|
5735
|
+
Zb as normalizeColor,
|
|
5736
|
+
dl as parseExternalUrl,
|
|
5737
|
+
n2 as presets,
|
|
5738
5738
|
ie as toNumbers,
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5739
|
+
Wb as trimLeft,
|
|
5740
|
+
qb as trimRight,
|
|
5741
|
+
Oo as vectorMagnitude,
|
|
5742
|
+
So as vectorsAngle,
|
|
5743
|
+
xi as vectorsRatio
|
|
5744
5744
|
};
|