@opensystemslab/map 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,108 +1,114 @@
1
- import { c as cr } from "./index-8d60c5e4.mjs";
2
- var Gt = function(a) {
1
+ import { c as fr, g as _o } from "./index-c7aa277b.mjs";
2
+ var zt = function(a) {
3
3
  return a && a.Math == Math && a;
4
- }, z = Gt(typeof globalThis == "object" && globalThis) || Gt(typeof window == "object" && window) || Gt(typeof self == "object" && self) || Gt(typeof cr == "object" && cr) || function() {
5
- return this;
6
- }() || Function("return this")(), ut = {}, L = function(a) {
4
+ }, z = (
5
+ // eslint-disable-next-line es/no-global-this -- safe
6
+ zt(typeof globalThis == "object" && globalThis) || zt(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
7
+ zt(typeof self == "object" && self) || zt(typeof fr == "object" && fr) || // eslint-disable-next-line no-new-func -- fallback
8
+ function() {
9
+ return this;
10
+ }() || Function("return this")()
11
+ ), ot = {}, L = function(a) {
7
12
  try {
8
13
  return !!a();
9
14
  } catch {
10
15
  return !0;
11
16
  }
12
- }, Cl = L, ce = !Cl(function() {
17
+ }, Pl = L, ce = !Pl(function() {
13
18
  return Object.defineProperty({}, 1, { get: function() {
14
19
  return 7;
15
20
  } })[1] != 7;
16
- }), wl = L, Tr = !wl(function() {
17
- var a = function() {
18
- }.bind();
21
+ }), Rl = L, xr = !Rl(function() {
22
+ var a = (function() {
23
+ }).bind();
19
24
  return typeof a != "function" || a.hasOwnProperty("prototype");
20
- }), Al = Tr, Ht = Function.prototype.call, Y = Al ? Ht.bind(Ht) : function() {
21
- return Ht.apply(Ht, arguments);
22
- }, Mo = {}, _o = {}.propertyIsEnumerable, Do = Object.getOwnPropertyDescriptor, Pl = Do && !_o.call({ 1: 2 }, 1);
23
- Mo.f = Pl ? function(e) {
24
- var t = Do(this, e);
25
+ }), Il = xr, Gt = Function.prototype.call, Y = Il ? Gt.bind(Gt) : function() {
26
+ return Gt.apply(Gt, arguments);
27
+ }, Do = {}, Vo = {}.propertyIsEnumerable, Lo = Object.getOwnPropertyDescriptor, Nl = Lo && !Vo.call({ 1: 2 }, 1);
28
+ Do.f = Nl ? function(e) {
29
+ var t = Lo(this, e);
25
30
  return !!t && t.enumerable;
26
- } : _o;
27
- var Or = function(a, e) {
31
+ } : Vo;
32
+ var Tr = function(a, e) {
28
33
  return {
29
34
  enumerable: !(a & 1),
30
35
  configurable: !(a & 2),
31
36
  writable: !(a & 4),
32
37
  value: e
33
38
  };
34
- }, Vo = Tr, Lo = Function.prototype, Ya = Lo.call, Rl = Vo && Lo.bind.bind(Ya, Ya), k = Vo ? Rl : function(a) {
39
+ }, ko = xr, Bo = Function.prototype, Ya = Bo.call, Ml = ko && Bo.bind.bind(Ya, Ya), k = ko ? Ml : function(a) {
35
40
  return function() {
36
41
  return Ya.apply(a, arguments);
37
42
  };
38
- }, ko = k, Il = ko({}.toString), Nl = ko("".slice), Fe = function(a) {
39
- return Nl(Il(a), 8, -1);
40
- }, Ml = k, _l = L, Dl = Fe, ea = Object, Vl = Ml("".split), Bo = _l(function() {
41
- return !ea("z").propertyIsEnumerable(0);
43
+ }, Fo = k, _l = Fo({}.toString), Dl = Fo("".slice), Fe = function(a) {
44
+ return Dl(_l(a), 8, -1);
45
+ }, Vl = k, Ll = L, kl = Fe, Jr = Object, Bl = Vl("".split), jo = Ll(function() {
46
+ return !Jr("z").propertyIsEnumerable(0);
42
47
  }) ? function(a) {
43
- return Dl(a) == "String" ? Vl(a, "") : ea(a);
44
- } : ea, je = function(a) {
48
+ return kl(a) == "String" ? Bl(a, "") : Jr(a);
49
+ } : Jr, je = function(a) {
45
50
  return a == null;
46
- }, Ll = je, kl = TypeError, ge = function(a) {
47
- if (Ll(a))
48
- throw kl("Can't call method on " + a);
51
+ }, Fl = je, jl = TypeError, ge = function(a) {
52
+ if (Fl(a))
53
+ throw jl("Can't call method on " + a);
49
54
  return a;
50
- }, Bl = Bo, Fl = ge, wt = function(a) {
51
- return Bl(Fl(a));
52
- }, Xa = typeof document == "object" && document.all, jl = typeof Xa > "u" && Xa !== void 0, Fo = {
55
+ }, Ul = jo, zl = ge, Ct = function(a) {
56
+ return Ul(zl(a));
57
+ }, Xa = typeof document == "object" && document.all, Gl = typeof Xa > "u" && Xa !== void 0, Uo = {
53
58
  all: Xa,
54
- IS_HTMLDDA: jl
55
- }, jo = Fo, Ul = jo.all, D = jo.IS_HTMLDDA ? function(a) {
56
- return typeof a == "function" || a === Ul;
59
+ IS_HTMLDDA: Gl
60
+ }, zo = Uo, Hl = zo.all, D = zo.IS_HTMLDDA ? function(a) {
61
+ return typeof a == "function" || a === Hl;
57
62
  } : function(a) {
58
63
  return typeof a == "function";
59
- }, pn = D, Uo = Fo, zl = Uo.all, Te = Uo.IS_HTMLDDA ? function(a) {
60
- return typeof a == "object" ? a !== null : pn(a) || a === zl;
64
+ }, yn = D, Go = Uo, Yl = Go.all, Te = Go.IS_HTMLDDA ? function(a) {
65
+ return typeof a == "object" ? a !== null : yn(a) || a === Yl;
61
66
  } : function(a) {
62
- return typeof a == "object" ? a !== null : pn(a);
63
- }, ta = z, Gl = D, Hl = function(a) {
64
- return Gl(a) ? a : void 0;
67
+ return typeof a == "object" ? a !== null : yn(a);
68
+ }, ea = z, Xl = D, Wl = function(a) {
69
+ return Xl(a) ? a : void 0;
65
70
  }, Ue = function(a, e) {
66
- return arguments.length < 2 ? Hl(ta[a]) : ta[a] && ta[a][e];
67
- }, Yl = k, Sr = Yl({}.isPrototypeOf), Er = typeof navigator < "u" && String(navigator.userAgent) || "", zo = z, ra = Er, yn = zo.process, mn = zo.Deno, bn = yn && yn.versions || mn && mn.version, xn = bn && bn.v8, ue, gr;
68
- xn && (ue = xn.split("."), gr = ue[0] > 0 && ue[0] < 4 ? 1 : +(ue[0] + ue[1]));
69
- !gr && ra && (ue = ra.match(/Edge\/(\d+)/), (!ue || ue[1] >= 74) && (ue = ra.match(/Chrome\/(\d+)/), ue && (gr = +ue[1])));
70
- var Oi = gr, Tn = Oi, Xl = L, Go = !!Object.getOwnPropertySymbols && !Xl(function() {
71
+ return arguments.length < 2 ? Wl(ea[a]) : ea[a] && ea[a][e];
72
+ }, ql = k, Or = ql({}.isPrototypeOf), Sr = typeof navigator < "u" && String(navigator.userAgent) || "", Ho = z, ta = Sr, mn = Ho.process, bn = Ho.Deno, xn = mn && mn.versions || bn && bn.version, Tn = xn && xn.v8, ue, cr;
73
+ Tn && (ue = Tn.split("."), cr = ue[0] > 0 && ue[0] < 4 ? 1 : +(ue[0] + ue[1]));
74
+ !cr && ta && (ue = ta.match(/Edge\/(\d+)/), (!ue || ue[1] >= 74) && (ue = ta.match(/Chrome\/(\d+)/), ue && (cr = +ue[1])));
75
+ var Oi = cr, On = Oi, Ql = L, Yo = !!Object.getOwnPropertySymbols && !Ql(function() {
71
76
  var a = Symbol();
72
- return !String(a) || !(Object(a) instanceof Symbol) || !Symbol.sham && Tn && Tn < 41;
73
- }), Wl = Go, Ho = Wl && !Symbol.sham && typeof Symbol.iterator == "symbol", ql = Ue, Ql = D, Kl = Sr, Zl = Ho, Jl = Object, Yo = Zl ? function(a) {
77
+ return !String(a) || !(Object(a) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
78
+ !Symbol.sham && On && On < 41;
79
+ }), Kl = Yo, Xo = Kl && !Symbol.sham && typeof Symbol.iterator == "symbol", Zl = Ue, Jl = D, eh = Or, th = Xo, rh = Object, Wo = th ? function(a) {
74
80
  return typeof a == "symbol";
75
81
  } : function(a) {
76
- var e = ql("Symbol");
77
- return Ql(e) && Kl(e.prototype, Jl(a));
78
- }, eh = String, $r = function(a) {
82
+ var e = Zl("Symbol");
83
+ return Jl(e) && eh(e.prototype, rh(a));
84
+ }, ah = String, Er = function(a) {
79
85
  try {
80
- return eh(a);
86
+ return ah(a);
81
87
  } catch {
82
88
  return "Object";
83
89
  }
84
- }, th = D, rh = $r, ah = TypeError, we = function(a) {
85
- if (th(a))
90
+ }, ih = D, nh = Er, sh = TypeError, we = function(a) {
91
+ if (ih(a))
86
92
  return a;
87
- throw ah(rh(a) + " is not a function");
88
- }, ih = we, nh = je, lt = function(a, e) {
93
+ throw sh(nh(a) + " is not a function");
94
+ }, oh = we, uh = je, ut = function(a, e) {
89
95
  var t = a[e];
90
- return nh(t) ? void 0 : ih(t);
91
- }, aa = Y, ia = D, na = Te, sh = TypeError, oh = function(a, e) {
96
+ return uh(t) ? void 0 : oh(t);
97
+ }, ra = Y, aa = D, ia = Te, lh = TypeError, hh = function(a, e) {
92
98
  var t, r;
93
- if (e === "string" && ia(t = a.toString) && !na(r = aa(t, a)) || ia(t = a.valueOf) && !na(r = aa(t, a)) || e !== "string" && ia(t = a.toString) && !na(r = aa(t, a)))
99
+ if (e === "string" && aa(t = a.toString) && !ia(r = ra(t, a)) || aa(t = a.valueOf) && !ia(r = ra(t, a)) || e !== "string" && aa(t = a.toString) && !ia(r = ra(t, a)))
94
100
  return r;
95
- throw sh("Can't convert object to primitive value");
96
- }, Cr = { exports: {} }, On = z, uh = Object.defineProperty, Si = function(a, e) {
101
+ throw lh("Can't convert object to primitive value");
102
+ }, qo = { exports: {} }, Sn = z, vh = Object.defineProperty, Si = function(a, e) {
97
103
  try {
98
- uh(On, a, { value: e, configurable: !0, writable: !0 });
104
+ vh(Sn, a, { value: e, configurable: !0, writable: !0 });
99
105
  } catch {
100
- On[a] = e;
106
+ Sn[a] = e;
101
107
  }
102
108
  return e;
103
- }, lh = z, hh = Si, Sn = "__core-js_shared__", vh = lh[Sn] || hh(Sn, {}), Ei = vh, En = Ei;
104
- (Cr.exports = function(a, e) {
105
- return En[a] || (En[a] = e !== void 0 ? e : {});
109
+ }, fh = z, ch = Si, En = "__core-js_shared__", gh = fh[En] || ch(En, {}), Ei = gh, $n = Ei;
110
+ (qo.exports = function(a, e) {
111
+ return $n[a] || ($n[a] = e !== void 0 ? e : {});
106
112
  })("versions", []).push({
107
113
  version: "3.27.2",
108
114
  mode: "global",
@@ -110,156 +116,156 @@ var Oi = gr, Tn = Oi, Xl = L, Go = !!Object.getOwnPropertySymbols && !Xl(functio
110
116
  license: "https://github.com/zloirock/core-js/blob/v3.27.2/LICENSE",
111
117
  source: "https://github.com/zloirock/core-js"
112
118
  });
113
- var fh = ge, ch = Object, wr = function(a) {
114
- return ch(fh(a));
115
- }, gh = k, dh = wr, ph = gh({}.hasOwnProperty), le = Object.hasOwn || function(e, t) {
116
- return ph(dh(e), t);
117
- }, yh = k, mh = 0, bh = Math.random(), xh = yh(1 .toString), Xo = function(a) {
118
- return "Symbol(" + (a === void 0 ? "" : a) + ")_" + xh(++mh + bh, 36);
119
- }, Th = z, Oh = Cr.exports, $n = le, Sh = Xo, Eh = Go, $h = Ho, Je = Th.Symbol, sa = Oh("wks"), Ch = $h ? Je.for || Je : Je && Je.withoutSetter || Sh, G = function(a) {
120
- return $n(sa, a) || (sa[a] = Eh && $n(Je, a) ? Je[a] : Ch("Symbol." + a)), sa[a];
121
- }, wh = Y, Cn = Te, wn = Yo, Ah = lt, Ph = oh, Rh = G, Ih = TypeError, Nh = Rh("toPrimitive"), Mh = function(a, e) {
122
- if (!Cn(a) || wn(a))
119
+ var $i = qo.exports, dh = ge, ph = Object, $r = function(a) {
120
+ return ph(dh(a));
121
+ }, yh = k, mh = $r, bh = yh({}.hasOwnProperty), le = Object.hasOwn || function(e, t) {
122
+ return bh(mh(e), t);
123
+ }, xh = k, Th = 0, Oh = Math.random(), Sh = xh(1 .toString), Qo = function(a) {
124
+ return "Symbol(" + (a === void 0 ? "" : a) + ")_" + Sh(++Th + Oh, 36);
125
+ }, Eh = z, $h = $i, Cn = le, Ch = Qo, wh = Yo, Ah = Xo, Je = Eh.Symbol, na = $h("wks"), Ph = Ah ? Je.for || Je : Je && Je.withoutSetter || Ch, G = function(a) {
126
+ return Cn(na, a) || (na[a] = wh && Cn(Je, a) ? Je[a] : Ph("Symbol." + a)), na[a];
127
+ }, Rh = Y, wn = Te, An = Wo, Ih = ut, Nh = hh, Mh = G, _h = TypeError, Dh = Mh("toPrimitive"), Vh = function(a, e) {
128
+ if (!wn(a) || An(a))
123
129
  return a;
124
- var t = Ah(a, Nh), r;
130
+ var t = Ih(a, Dh), r;
125
131
  if (t) {
126
- if (e === void 0 && (e = "default"), r = wh(t, a, e), !Cn(r) || wn(r))
132
+ if (e === void 0 && (e = "default"), r = Rh(t, a, e), !wn(r) || An(r))
127
133
  return r;
128
- throw Ih("Can't convert object to primitive value");
129
- }
130
- return e === void 0 && (e = "number"), Ph(a, e);
131
- }, _h = Mh, Dh = Yo, $i = function(a) {
132
- var e = _h(a, "string");
133
- return Dh(e) ? e : e + "";
134
- }, Vh = z, An = Te, Wa = Vh.document, Lh = An(Wa) && An(Wa.createElement), Ar = function(a) {
135
- return Lh ? Wa.createElement(a) : {};
136
- }, kh = ce, Bh = L, Fh = Ar, Wo = !kh && !Bh(function() {
137
- return Object.defineProperty(Fh("div"), "a", {
134
+ throw _h("Can't convert object to primitive value");
135
+ }
136
+ return e === void 0 && (e = "number"), Nh(a, e);
137
+ }, Lh = Vh, kh = Wo, Ci = function(a) {
138
+ var e = Lh(a, "string");
139
+ return kh(e) ? e : e + "";
140
+ }, Bh = z, Pn = Te, Wa = Bh.document, Fh = Pn(Wa) && Pn(Wa.createElement), Cr = function(a) {
141
+ return Fh ? Wa.createElement(a) : {};
142
+ }, jh = ce, Uh = L, zh = Cr, Ko = !jh && !Uh(function() {
143
+ return Object.defineProperty(zh("div"), "a", {
138
144
  get: function() {
139
145
  return 7;
140
146
  }
141
147
  }).a != 7;
142
- }), jh = ce, Uh = Y, zh = Mo, Gh = Or, Hh = wt, Yh = $i, Xh = le, Wh = Wo, Pn = Object.getOwnPropertyDescriptor;
143
- ut.f = jh ? Pn : function(e, t) {
144
- if (e = Hh(e), t = Yh(t), Wh)
148
+ }), Gh = ce, Hh = Y, Yh = Do, Xh = Tr, Wh = Ct, qh = Ci, Qh = le, Kh = Ko, Rn = Object.getOwnPropertyDescriptor;
149
+ ot.f = Gh ? Rn : function(e, t) {
150
+ if (e = Wh(e), t = qh(t), Kh)
145
151
  try {
146
- return Pn(e, t);
152
+ return Rn(e, t);
147
153
  } catch {
148
154
  }
149
- if (Xh(e, t))
150
- return Gh(!Uh(zh.f, e, t), e[t]);
155
+ if (Qh(e, t))
156
+ return Xh(!Hh(Yh.f, e, t), e[t]);
151
157
  };
152
- var de = {}, qh = ce, Qh = L, qo = qh && Qh(function() {
158
+ var de = {}, Zh = ce, Jh = L, Zo = Zh && Jh(function() {
153
159
  return Object.defineProperty(function() {
154
160
  }, "prototype", {
155
161
  value: 42,
156
162
  writable: !1
157
163
  }).prototype != 42;
158
- }), Kh = Te, Zh = String, Jh = TypeError, K = function(a) {
159
- if (Kh(a))
164
+ }), ev = Te, tv = String, rv = TypeError, K = function(a) {
165
+ if (ev(a))
160
166
  return a;
161
- throw Jh(Zh(a) + " is not an object");
162
- }, ev = ce, tv = Wo, rv = qo, Yt = K, Rn = $i, av = TypeError, oa = Object.defineProperty, iv = Object.getOwnPropertyDescriptor, ua = "enumerable", la = "configurable", ha = "writable";
163
- de.f = ev ? rv ? function(e, t, r) {
164
- if (Yt(e), t = Rn(t), Yt(r), typeof e == "function" && t === "prototype" && "value" in r && ha in r && !r[ha]) {
165
- var i = iv(e, t);
166
- i && i[ha] && (e[t] = r.value, r = {
167
- configurable: la in r ? r[la] : i[la],
168
- enumerable: ua in r ? r[ua] : i[ua],
167
+ throw rv(tv(a) + " is not an object");
168
+ }, av = ce, iv = Ko, nv = Zo, Ht = K, In = Ci, sv = TypeError, sa = Object.defineProperty, ov = Object.getOwnPropertyDescriptor, oa = "enumerable", ua = "configurable", la = "writable";
169
+ de.f = av ? nv ? function(e, t, r) {
170
+ if (Ht(e), t = In(t), Ht(r), typeof e == "function" && t === "prototype" && "value" in r && la in r && !r[la]) {
171
+ var i = ov(e, t);
172
+ i && i[la] && (e[t] = r.value, r = {
173
+ configurable: ua in r ? r[ua] : i[ua],
174
+ enumerable: oa in r ? r[oa] : i[oa],
169
175
  writable: !1
170
176
  });
171
177
  }
172
- return oa(e, t, r);
173
- } : oa : function(e, t, r) {
174
- if (Yt(e), t = Rn(t), Yt(r), tv)
178
+ return sa(e, t, r);
179
+ } : sa : function(e, t, r) {
180
+ if (Ht(e), t = In(t), Ht(r), iv)
175
181
  try {
176
- return oa(e, t, r);
182
+ return sa(e, t, r);
177
183
  } catch {
178
184
  }
179
185
  if ("get" in r || "set" in r)
180
- throw av("Accessors not supported");
186
+ throw sv("Accessors not supported");
181
187
  return "value" in r && (e[t] = r.value), e;
182
188
  };
183
- var nv = ce, sv = de, ov = Or, At = nv ? function(a, e, t) {
184
- return sv.f(a, e, ov(1, t));
189
+ var uv = ce, lv = de, hv = Tr, wt = uv ? function(a, e, t) {
190
+ return lv.f(a, e, hv(1, t));
185
191
  } : function(a, e, t) {
186
192
  return a[e] = t, a;
187
- }, Qo = { exports: {} }, qa = ce, uv = le, Ko = Function.prototype, lv = qa && Object.getOwnPropertyDescriptor, Ci = uv(Ko, "name"), hv = Ci && function() {
188
- }.name === "something", vv = Ci && (!qa || qa && lv(Ko, "name").configurable), Pr = {
189
- EXISTS: Ci,
190
- PROPER: hv,
191
- CONFIGURABLE: vv
192
- }, fv = k, cv = D, Qa = Ei, gv = fv(Function.toString);
193
- cv(Qa.inspectSource) || (Qa.inspectSource = function(a) {
194
- return gv(a);
193
+ }, Jo = { exports: {} }, qa = ce, vv = le, eu = Function.prototype, fv = qa && Object.getOwnPropertyDescriptor, wi = vv(eu, "name"), cv = wi && (function() {
194
+ }).name === "something", gv = wi && (!qa || qa && fv(eu, "name").configurable), wr = {
195
+ EXISTS: wi,
196
+ PROPER: cv,
197
+ CONFIGURABLE: gv
198
+ }, dv = k, pv = D, Qa = Ei, yv = dv(Function.toString);
199
+ pv(Qa.inspectSource) || (Qa.inspectSource = function(a) {
200
+ return yv(a);
195
201
  });
196
- var wi = Qa.inspectSource, dv = z, pv = D, In = dv.WeakMap, yv = pv(In) && /native code/.test(String(In)), mv = Cr.exports, bv = Xo, Nn = mv("keys"), Ai = function(a) {
197
- return Nn[a] || (Nn[a] = bv(a));
198
- }, Pi = {}, xv = yv, Zo = z, Tv = Te, Ov = At, va = le, fa = Ei, Sv = Ai, Ev = Pi, Mn = "Object already initialized", Ka = Zo.TypeError, $v = Zo.WeakMap, dr, Et, pr, Cv = function(a) {
199
- return pr(a) ? Et(a) : dr(a, {});
200
- }, wv = function(a) {
202
+ var Ai = Qa.inspectSource, mv = z, bv = D, Nn = mv.WeakMap, xv = bv(Nn) && /native code/.test(String(Nn)), Tv = $i, Ov = Qo, Mn = Tv("keys"), Pi = function(a) {
203
+ return Mn[a] || (Mn[a] = Ov(a));
204
+ }, Ri = {}, Sv = xv, tu = z, Ev = Te, $v = wt, ha = le, va = Ei, Cv = Pi, wv = Ri, _n = "Object already initialized", Ka = tu.TypeError, Av = tu.WeakMap, gr, St, dr, Pv = function(a) {
205
+ return dr(a) ? St(a) : gr(a, {});
206
+ }, Rv = function(a) {
201
207
  return function(e) {
202
208
  var t;
203
- if (!Tv(e) || (t = Et(e)).type !== a)
209
+ if (!Ev(e) || (t = St(e)).type !== a)
204
210
  throw Ka("Incompatible receiver, " + a + " required");
205
211
  return t;
206
212
  };
207
213
  };
208
- if (xv || fa.state) {
209
- var fe = fa.state || (fa.state = new $v());
210
- fe.get = fe.get, fe.has = fe.has, fe.set = fe.set, dr = function(a, e) {
214
+ if (Sv || va.state) {
215
+ var fe = va.state || (va.state = new Av());
216
+ fe.get = fe.get, fe.has = fe.has, fe.set = fe.set, gr = function(a, e) {
211
217
  if (fe.has(a))
212
- throw Ka(Mn);
218
+ throw Ka(_n);
213
219
  return e.facade = a, fe.set(a, e), e;
214
- }, Et = function(a) {
220
+ }, St = function(a) {
215
221
  return fe.get(a) || {};
216
- }, pr = function(a) {
222
+ }, dr = function(a) {
217
223
  return fe.has(a);
218
224
  };
219
225
  } else {
220
- var Xe = Sv("state");
221
- Ev[Xe] = !0, dr = function(a, e) {
222
- if (va(a, Xe))
223
- throw Ka(Mn);
224
- return e.facade = a, Ov(a, Xe, e), e;
225
- }, Et = function(a) {
226
- return va(a, Xe) ? a[Xe] : {};
227
- }, pr = function(a) {
228
- return va(a, Xe);
226
+ var Xe = Cv("state");
227
+ wv[Xe] = !0, gr = function(a, e) {
228
+ if (ha(a, Xe))
229
+ throw Ka(_n);
230
+ return e.facade = a, $v(a, Xe, e), e;
231
+ }, St = function(a) {
232
+ return ha(a, Xe) ? a[Xe] : {};
233
+ }, dr = function(a) {
234
+ return ha(a, Xe);
229
235
  };
230
236
  }
231
- var Rr = {
232
- set: dr,
233
- get: Et,
234
- has: pr,
235
- enforce: Cv,
236
- getterFor: wv
237
- }, Ri = k, Av = L, Pv = D, Xt = le, Za = ce, Rv = Pr.CONFIGURABLE, Iv = wi, Jo = Rr, Nv = Jo.enforce, Mv = Jo.get, _n = String, or = Object.defineProperty, _v = Ri("".slice), Dv = Ri("".replace), Vv = Ri([].join), Lv = Za && !Av(function() {
238
- return or(function() {
237
+ var Ar = {
238
+ set: gr,
239
+ get: St,
240
+ has: dr,
241
+ enforce: Pv,
242
+ getterFor: Rv
243
+ }, Ii = k, Iv = L, Nv = D, Yt = le, Za = ce, Mv = wr.CONFIGURABLE, _v = Ai, ru = Ar, Dv = ru.enforce, Vv = ru.get, Dn = String, sr = Object.defineProperty, Lv = Ii("".slice), kv = Ii("".replace), Bv = Ii([].join), Fv = Za && !Iv(function() {
244
+ return sr(function() {
239
245
  }, "length", { value: 8 }).length !== 8;
240
- }), kv = String(String).split("String"), Bv = Qo.exports = function(a, e, t) {
241
- _v(_n(e), 0, 7) === "Symbol(" && (e = "[" + Dv(_n(e), /^Symbol\(([^)]*)\)/, "$1") + "]"), t && t.getter && (e = "get " + e), t && t.setter && (e = "set " + e), (!Xt(a, "name") || Rv && a.name !== e) && (Za ? or(a, "name", { value: e, configurable: !0 }) : a.name = e), Lv && t && Xt(t, "arity") && a.length !== t.arity && or(a, "length", { value: t.arity });
246
+ }), jv = String(String).split("String"), Uv = Jo.exports = function(a, e, t) {
247
+ Lv(Dn(e), 0, 7) === "Symbol(" && (e = "[" + kv(Dn(e), /^Symbol\(([^)]*)\)/, "$1") + "]"), t && t.getter && (e = "get " + e), t && t.setter && (e = "set " + e), (!Yt(a, "name") || Mv && a.name !== e) && (Za ? sr(a, "name", { value: e, configurable: !0 }) : a.name = e), Fv && t && Yt(t, "arity") && a.length !== t.arity && sr(a, "length", { value: t.arity });
242
248
  try {
243
- t && Xt(t, "constructor") && t.constructor ? Za && or(a, "prototype", { writable: !1 }) : a.prototype && (a.prototype = void 0);
249
+ t && Yt(t, "constructor") && t.constructor ? Za && sr(a, "prototype", { writable: !1 }) : a.prototype && (a.prototype = void 0);
244
250
  } catch {
245
251
  }
246
- var r = Nv(a);
247
- return Xt(r, "source") || (r.source = Vv(kv, typeof e == "string" ? e : "")), a;
252
+ var r = Dv(a);
253
+ return Yt(r, "source") || (r.source = Bv(jv, typeof e == "string" ? e : "")), a;
248
254
  };
249
- Function.prototype.toString = Bv(function() {
250
- return Pv(this) && Mv(this).source || Iv(this);
255
+ Function.prototype.toString = Uv(function() {
256
+ return Nv(this) && Vv(this).source || _v(this);
251
257
  }, "toString");
252
- var Fv = D, jv = de, Uv = Qo.exports, zv = Si, ze = function(a, e, t, r) {
258
+ var zv = Jo.exports, Gv = D, Hv = de, Yv = zv, Xv = Si, ze = function(a, e, t, r) {
253
259
  r || (r = {});
254
260
  var i = r.enumerable, n = r.name !== void 0 ? r.name : e;
255
- if (Fv(t) && Uv(t, n, r), r.global)
256
- i ? a[e] = t : zv(e, t);
261
+ if (Gv(t) && Yv(t, n, r), r.global)
262
+ i ? a[e] = t : Xv(e, t);
257
263
  else {
258
264
  try {
259
265
  r.unsafe ? a[e] && (i = !0) : delete a[e];
260
266
  } catch {
261
267
  }
262
- i ? a[e] = t : jv.f(a, e, {
268
+ i ? a[e] = t : Hv.f(a, e, {
263
269
  value: t,
264
270
  enumerable: !1,
265
271
  configurable: !r.nonConfigurable,
@@ -267,22 +273,22 @@ var Fv = D, jv = de, Uv = Qo.exports, zv = Si, ze = function(a, e, t, r) {
267
273
  });
268
274
  }
269
275
  return a;
270
- }, eu = {}, Gv = Math.ceil, Hv = Math.floor, Yv = Math.trunc || function(e) {
276
+ }, au = {}, Wv = Math.ceil, qv = Math.floor, Qv = Math.trunc || function(e) {
271
277
  var t = +e;
272
- return (t > 0 ? Hv : Gv)(t);
273
- }, Xv = Yv, Ir = function(a) {
278
+ return (t > 0 ? qv : Wv)(t);
279
+ }, Kv = Qv, Pr = function(a) {
274
280
  var e = +a;
275
- return e !== e || e === 0 ? 0 : Xv(e);
276
- }, Wv = Ir, qv = Math.max, Qv = Math.min, tu = function(a, e) {
277
- var t = Wv(a);
278
- return t < 0 ? qv(t + e, 0) : Qv(t, e);
279
- }, Kv = Ir, Zv = Math.min, ht = function(a) {
280
- return a > 0 ? Zv(Kv(a), 9007199254740991) : 0;
281
- }, Jv = ht, Nr = function(a) {
282
- return Jv(a.length);
283
- }, ef = wt, tf = tu, rf = Nr, Dn = function(a) {
281
+ return e !== e || e === 0 ? 0 : Kv(e);
282
+ }, Zv = Pr, Jv = Math.max, ef = Math.min, iu = function(a, e) {
283
+ var t = Zv(a);
284
+ return t < 0 ? Jv(t + e, 0) : ef(t, e);
285
+ }, tf = Pr, rf = Math.min, lt = function(a) {
286
+ return a > 0 ? rf(tf(a), 9007199254740991) : 0;
287
+ }, af = lt, Rr = function(a) {
288
+ return af(a.length);
289
+ }, nf = Ct, sf = iu, of = Rr, Vn = function(a) {
284
290
  return function(e, t, r) {
285
- var i = ef(e), n = rf(i), o = tf(r, n), s;
291
+ var i = nf(e), n = of(i), o = sf(r, n), s;
286
292
  if (a && t != t) {
287
293
  for (; n > o; )
288
294
  if (s = i[o++], s != s)
@@ -293,17 +299,21 @@ var Fv = D, jv = de, Uv = Qo.exports, zv = Si, ze = function(a, e, t, r) {
293
299
  return a || o || 0;
294
300
  return !a && -1;
295
301
  };
296
- }, ru = {
297
- includes: Dn(!0),
298
- indexOf: Dn(!1)
299
- }, af = k, ca = le, nf = wt, sf = ru.indexOf, of = Pi, Vn = af([].push), au = function(a, e) {
300
- var t = nf(a), r = 0, i = [], n;
302
+ }, nu = {
303
+ // `Array.prototype.includes` method
304
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
305
+ includes: Vn(!0),
306
+ // `Array.prototype.indexOf` method
307
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
308
+ indexOf: Vn(!1)
309
+ }, uf = k, fa = le, lf = Ct, hf = nu.indexOf, vf = Ri, Ln = uf([].push), su = function(a, e) {
310
+ var t = lf(a), r = 0, i = [], n;
301
311
  for (n in t)
302
- !ca(of, n) && ca(t, n) && Vn(i, n);
312
+ !fa(vf, n) && fa(t, n) && Ln(i, n);
303
313
  for (; e.length > r; )
304
- ca(t, n = e[r++]) && (~sf(i, n) || Vn(i, n));
314
+ fa(t, n = e[r++]) && (~hf(i, n) || Ln(i, n));
305
315
  return i;
306
- }, Ii = [
316
+ }, Ni = [
307
317
  "constructor",
308
318
  "hasOwnProperty",
309
319
  "isPrototypeOf",
@@ -311,169 +321,169 @@ var Fv = D, jv = de, Uv = Qo.exports, zv = Si, ze = function(a, e, t, r) {
311
321
  "toLocaleString",
312
322
  "toString",
313
323
  "valueOf"
314
- ], uf = au, lf = Ii, hf = lf.concat("length", "prototype");
315
- eu.f = Object.getOwnPropertyNames || function(e) {
316
- return uf(e, hf);
324
+ ], ff = su, cf = Ni, gf = cf.concat("length", "prototype");
325
+ au.f = Object.getOwnPropertyNames || function(e) {
326
+ return ff(e, gf);
317
327
  };
318
- var iu = {};
319
- iu.f = Object.getOwnPropertySymbols;
320
- var vf = Ue, ff = k, cf = eu, gf = iu, df = K, pf = ff([].concat), yf = vf("Reflect", "ownKeys") || function(e) {
321
- var t = cf.f(df(e)), r = gf.f;
322
- return r ? pf(t, r(e)) : t;
323
- }, Ln = le, mf = yf, bf = ut, xf = de, Tf = function(a, e, t) {
324
- for (var r = mf(e), i = xf.f, n = bf.f, o = 0; o < r.length; o++) {
328
+ var ou = {};
329
+ ou.f = Object.getOwnPropertySymbols;
330
+ var df = Ue, pf = k, yf = au, mf = ou, bf = K, xf = pf([].concat), Tf = df("Reflect", "ownKeys") || function(e) {
331
+ var t = yf.f(bf(e)), r = mf.f;
332
+ return r ? xf(t, r(e)) : t;
333
+ }, kn = le, Of = Tf, Sf = ot, Ef = de, $f = function(a, e, t) {
334
+ for (var r = Of(e), i = Ef.f, n = Sf.f, o = 0; o < r.length; o++) {
325
335
  var s = r[o];
326
- !Ln(a, s) && !(t && Ln(t, s)) && i(a, s, n(e, s));
327
- }
328
- }, Of = L, Sf = D, Ef = /#|\.prototype\./, Pt = function(a, e) {
329
- var t = Cf[$f(a)];
330
- return t == Af ? !0 : t == wf ? !1 : Sf(e) ? Of(e) : !!e;
331
- }, $f = Pt.normalize = function(a) {
332
- return String(a).replace(Ef, ".").toLowerCase();
333
- }, Cf = Pt.data = {}, wf = Pt.NATIVE = "N", Af = Pt.POLYFILL = "P", nu = Pt, ga = z, Pf = ut.f, Rf = At, If = ze, Nf = Si, Mf = Tf, _f = nu, ee = function(a, e) {
336
+ !kn(a, s) && !(t && kn(t, s)) && i(a, s, n(e, s));
337
+ }
338
+ }, Cf = L, wf = D, Af = /#|\.prototype\./, At = function(a, e) {
339
+ var t = Rf[Pf(a)];
340
+ return t == Nf ? !0 : t == If ? !1 : wf(e) ? Cf(e) : !!e;
341
+ }, Pf = At.normalize = function(a) {
342
+ return String(a).replace(Af, ".").toLowerCase();
343
+ }, Rf = At.data = {}, If = At.NATIVE = "N", Nf = At.POLYFILL = "P", uu = At, ca = z, Mf = ot.f, _f = wt, Df = ze, Vf = Si, Lf = $f, kf = uu, ee = function(a, e) {
334
344
  var t = a.target, r = a.global, i = a.stat, n, o, s, u, l, h;
335
- if (r ? o = ga : i ? o = ga[t] || Nf(t, {}) : o = (ga[t] || {}).prototype, o)
345
+ if (r ? o = ca : i ? o = ca[t] || Vf(t, {}) : o = (ca[t] || {}).prototype, o)
336
346
  for (s in e) {
337
- if (l = e[s], a.dontCallGetSet ? (h = Pf(o, s), u = h && h.value) : u = o[s], n = _f(r ? s : t + (i ? "." : "#") + s, a.forced), !n && u !== void 0) {
347
+ if (l = e[s], a.dontCallGetSet ? (h = Mf(o, s), u = h && h.value) : u = o[s], n = kf(r ? s : t + (i ? "." : "#") + s, a.forced), !n && u !== void 0) {
338
348
  if (typeof l == typeof u)
339
349
  continue;
340
- Mf(l, u);
350
+ Lf(l, u);
341
351
  }
342
- (a.sham || u && u.sham) && Rf(l, "sham", !0), If(o, s, l, a);
352
+ (a.sham || u && u.sham) && _f(l, "sham", !0), Df(o, s, l, a);
343
353
  }
344
- }, Df = Fe, Rt = typeof process < "u" && Df(process) == "process", Vf = D, Lf = String, kf = TypeError, Bf = function(a) {
345
- if (typeof a == "object" || Vf(a))
354
+ }, Bf = Fe, Pt = typeof process < "u" && Bf(process) == "process", Ff = D, jf = String, Uf = TypeError, zf = function(a) {
355
+ if (typeof a == "object" || Ff(a))
346
356
  return a;
347
- throw kf("Can't set " + Lf(a) + " as a prototype");
348
- }, Ff = k, jf = K, Uf = Bf, su = Object.setPrototypeOf || ("__proto__" in {} ? function() {
357
+ throw Uf("Can't set " + jf(a) + " as a prototype");
358
+ }, Gf = k, Hf = K, Yf = zf, lu = Object.setPrototypeOf || ("__proto__" in {} ? function() {
349
359
  var a = !1, e = {}, t;
350
360
  try {
351
- t = Ff(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set), t(e, []), a = e instanceof Array;
361
+ t = Gf(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set), t(e, []), a = e instanceof Array;
352
362
  } catch {
353
363
  }
354
364
  return function(i, n) {
355
- return jf(i), Uf(n), a ? t(i, n) : i.__proto__ = n, i;
365
+ return Hf(i), Yf(n), a ? t(i, n) : i.__proto__ = n, i;
356
366
  };
357
- }() : void 0), zf = de.f, Gf = le, Hf = G, kn = Hf("toStringTag"), Ni = function(a, e, t) {
358
- a && !t && (a = a.prototype), a && !Gf(a, kn) && zf(a, kn, { configurable: !0, value: e });
359
- }, Yf = Ue, Xf = de, Wf = G, qf = ce, Bn = Wf("species"), Qf = function(a) {
360
- var e = Yf(a), t = Xf.f;
361
- qf && e && !e[Bn] && t(e, Bn, {
367
+ }() : void 0), Xf = de.f, Wf = le, qf = G, Bn = qf("toStringTag"), Mi = function(a, e, t) {
368
+ a && !t && (a = a.prototype), a && !Wf(a, Bn) && Xf(a, Bn, { configurable: !0, value: e });
369
+ }, Qf = Ue, Kf = de, Zf = G, Jf = ce, Fn = Zf("species"), ec = function(a) {
370
+ var e = Qf(a), t = Kf.f;
371
+ Jf && e && !e[Fn] && t(e, Fn, {
362
372
  configurable: !0,
363
373
  get: function() {
364
374
  return this;
365
375
  }
366
376
  });
367
- }, Kf = Sr, Zf = TypeError, Jf = function(a, e) {
368
- if (Kf(e, a))
377
+ }, tc = Or, rc = TypeError, ac = function(a, e) {
378
+ if (tc(e, a))
369
379
  return a;
370
- throw Zf("Incorrect invocation");
371
- }, ec = G, tc = ec("toStringTag"), ou = {};
372
- ou[tc] = "z";
373
- var rc = String(ou) === "[object z]", ac = rc, ic = D, ur = Fe, nc = G, sc = nc("toStringTag"), oc = Object, uc = ur(function() {
380
+ throw rc("Incorrect invocation");
381
+ }, ic = G, nc = ic("toStringTag"), hu = {};
382
+ hu[nc] = "z";
383
+ var sc = String(hu) === "[object z]", oc = sc, uc = D, or = Fe, lc = G, hc = lc("toStringTag"), vc = Object, fc = or(function() {
374
384
  return arguments;
375
- }()) == "Arguments", lc = function(a, e) {
385
+ }()) == "Arguments", cc = function(a, e) {
376
386
  try {
377
387
  return a[e];
378
388
  } catch {
379
389
  }
380
- }, Mi = ac ? ur : function(a) {
390
+ }, _i = oc ? or : function(a) {
381
391
  var e, t, r;
382
- return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t = lc(e = oc(a), sc)) == "string" ? t : uc ? ur(e) : (r = ur(e)) == "Object" && ic(e.callee) ? "Arguments" : r;
383
- }, hc = k, vc = L, uu = D, fc = Mi, cc = Ue, gc = wi, lu = function() {
384
- }, dc = [], hu = cc("Reflect", "construct"), _i = /^\s*(?:class|function)\b/, pc = hc(_i.exec), yc = !_i.exec(lu), ct = function(e) {
385
- if (!uu(e))
392
+ return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t = cc(e = vc(a), hc)) == "string" ? t : fc ? or(e) : (r = or(e)) == "Object" && uc(e.callee) ? "Arguments" : r;
393
+ }, gc = k, dc = L, vu = D, pc = _i, yc = Ue, mc = Ai, fu = function() {
394
+ }, bc = [], cu = yc("Reflect", "construct"), Di = /^\s*(?:class|function)\b/, xc = gc(Di.exec), Tc = !Di.exec(fu), ft = function(e) {
395
+ if (!vu(e))
386
396
  return !1;
387
397
  try {
388
- return hu(lu, dc, e), !0;
398
+ return cu(fu, bc, e), !0;
389
399
  } catch {
390
400
  return !1;
391
401
  }
392
- }, vu = function(e) {
393
- if (!uu(e))
402
+ }, gu = function(e) {
403
+ if (!vu(e))
394
404
  return !1;
395
- switch (fc(e)) {
405
+ switch (pc(e)) {
396
406
  case "AsyncFunction":
397
407
  case "GeneratorFunction":
398
408
  case "AsyncGeneratorFunction":
399
409
  return !1;
400
410
  }
401
411
  try {
402
- return yc || !!pc(_i, gc(e));
412
+ return Tc || !!xc(Di, mc(e));
403
413
  } catch {
404
414
  return !0;
405
415
  }
406
416
  };
407
- vu.sham = !0;
408
- var mc = !hu || vc(function() {
417
+ gu.sham = !0;
418
+ var Oc = !cu || dc(function() {
409
419
  var a;
410
- return ct(ct.call) || !ct(Object) || !ct(function() {
420
+ return ft(ft.call) || !ft(Object) || !ft(function() {
411
421
  a = !0;
412
422
  }) || a;
413
- }) ? vu : ct, bc = mc, xc = $r, Tc = TypeError, Oc = function(a) {
414
- if (bc(a))
423
+ }) ? gu : ft, Sc = Oc, Ec = Er, $c = TypeError, Cc = function(a) {
424
+ if (Sc(a))
415
425
  return a;
416
- throw Tc(xc(a) + " is not a constructor");
417
- }, Fn = K, Sc = Oc, Ec = je, $c = G, Cc = $c("species"), fu = function(a, e) {
418
- var t = Fn(a).constructor, r;
419
- return t === void 0 || Ec(r = Fn(t)[Cc]) ? e : Sc(r);
420
- }, wc = Tr, cu = Function.prototype, jn = cu.apply, Un = cu.call, Di = typeof Reflect == "object" && Reflect.apply || (wc ? Un.bind(jn) : function() {
421
- return Un.apply(jn, arguments);
422
- }), Ac = Fe, Pc = k, It = function(a) {
423
- if (Ac(a) === "Function")
424
- return Pc(a);
425
- }, zn = It, Rc = we, Ic = Tr, Nc = zn(zn.bind), Vi = function(a, e) {
426
- return Rc(a), e === void 0 ? a : Ic ? Nc(a, e) : function() {
426
+ throw $c(Ec(a) + " is not a constructor");
427
+ }, jn = K, wc = Cc, Ac = je, Pc = G, Rc = Pc("species"), du = function(a, e) {
428
+ var t = jn(a).constructor, r;
429
+ return t === void 0 || Ac(r = jn(t)[Rc]) ? e : wc(r);
430
+ }, Ic = xr, pu = Function.prototype, Un = pu.apply, zn = pu.call, Vi = typeof Reflect == "object" && Reflect.apply || (Ic ? zn.bind(Un) : function() {
431
+ return zn.apply(Un, arguments);
432
+ }), Nc = Fe, Mc = k, Rt = function(a) {
433
+ if (Nc(a) === "Function")
434
+ return Mc(a);
435
+ }, Gn = Rt, _c = we, Dc = xr, Vc = Gn(Gn.bind), Li = function(a, e) {
436
+ return _c(a), e === void 0 ? a : Dc ? Vc(a, e) : function() {
427
437
  return a.apply(e, arguments);
428
438
  };
429
- }, Mc = Ue, gu = Mc("document", "documentElement"), _c = k, Dc = _c([].slice), Vc = TypeError, Lc = function(a, e) {
439
+ }, Lc = Ue, yu = Lc("document", "documentElement"), kc = k, Bc = kc([].slice), Fc = TypeError, jc = function(a, e) {
430
440
  if (a < e)
431
- throw Vc("Not enough arguments");
441
+ throw Fc("Not enough arguments");
432
442
  return a;
433
- }, kc = Er, du = /(?:ipad|iphone|ipod).*applewebkit/i.test(kc), ae = z, Bc = Di, Fc = Vi, Gn = D, jc = le, pu = L, Hn = gu, Uc = Dc, Yn = Ar, zc = Lc, Gc = du, Hc = Rt, Ja = ae.setImmediate, ei = ae.clearImmediate, Yc = ae.process, da = ae.Dispatch, Xc = ae.Function, Xn = ae.MessageChannel, Wc = ae.String, pa = 0, Ot = {}, Wn = "onreadystatechange", $t, Ne, ya, ma;
434
- pu(function() {
435
- $t = ae.location;
443
+ }, Uc = Sr, mu = /(?:ipad|iphone|ipod).*applewebkit/i.test(Uc), ae = z, zc = Vi, Gc = Li, Hn = D, Hc = le, bu = L, Yn = yu, Yc = Bc, Xn = Cr, Xc = jc, Wc = mu, qc = Pt, Ja = ae.setImmediate, ei = ae.clearImmediate, Qc = ae.process, ga = ae.Dispatch, Kc = ae.Function, Wn = ae.MessageChannel, Zc = ae.String, da = 0, Tt = {}, qn = "onreadystatechange", Et, Ne, pa, ya;
444
+ bu(function() {
445
+ Et = ae.location;
436
446
  });
437
- var Li = function(a) {
438
- if (jc(Ot, a)) {
439
- var e = Ot[a];
440
- delete Ot[a], e();
447
+ var ki = function(a) {
448
+ if (Hc(Tt, a)) {
449
+ var e = Tt[a];
450
+ delete Tt[a], e();
441
451
  }
442
- }, ba = function(a) {
452
+ }, ma = function(a) {
443
453
  return function() {
444
- Li(a);
454
+ ki(a);
445
455
  };
446
- }, qn = function(a) {
447
- Li(a.data);
448
456
  }, Qn = function(a) {
449
- ae.postMessage(Wc(a), $t.protocol + "//" + $t.host);
457
+ ki(a.data);
458
+ }, Kn = function(a) {
459
+ ae.postMessage(Zc(a), Et.protocol + "//" + Et.host);
450
460
  };
451
461
  (!Ja || !ei) && (Ja = function(e) {
452
- zc(arguments.length, 1);
453
- var t = Gn(e) ? e : Xc(e), r = Uc(arguments, 1);
454
- return Ot[++pa] = function() {
455
- Bc(t, void 0, r);
456
- }, Ne(pa), pa;
462
+ Xc(arguments.length, 1);
463
+ var t = Hn(e) ? e : Kc(e), r = Yc(arguments, 1);
464
+ return Tt[++da] = function() {
465
+ zc(t, void 0, r);
466
+ }, Ne(da), da;
457
467
  }, ei = function(e) {
458
- delete Ot[e];
459
- }, Hc ? Ne = function(a) {
460
- Yc.nextTick(ba(a));
461
- } : da && da.now ? Ne = function(a) {
462
- da.now(ba(a));
463
- } : Xn && !Gc ? (ya = new Xn(), ma = ya.port2, ya.port1.onmessage = qn, Ne = Fc(ma.postMessage, ma)) : ae.addEventListener && Gn(ae.postMessage) && !ae.importScripts && $t && $t.protocol !== "file:" && !pu(Qn) ? (Ne = Qn, ae.addEventListener("message", qn, !1)) : Wn in Yn("script") ? Ne = function(a) {
464
- Hn.appendChild(Yn("script"))[Wn] = function() {
465
- Hn.removeChild(this), Li(a);
468
+ delete Tt[e];
469
+ }, qc ? Ne = function(a) {
470
+ Qc.nextTick(ma(a));
471
+ } : ga && ga.now ? Ne = function(a) {
472
+ ga.now(ma(a));
473
+ } : Wn && !Wc ? (pa = new Wn(), ya = pa.port2, pa.port1.onmessage = Qn, Ne = Gc(ya.postMessage, ya)) : ae.addEventListener && Hn(ae.postMessage) && !ae.importScripts && Et && Et.protocol !== "file:" && !bu(Kn) ? (Ne = Kn, ae.addEventListener("message", Qn, !1)) : qn in Xn("script") ? Ne = function(a) {
474
+ Yn.appendChild(Xn("script"))[qn] = function() {
475
+ Yn.removeChild(this), ki(a);
466
476
  };
467
477
  } : Ne = function(a) {
468
- setTimeout(ba(a), 0);
478
+ setTimeout(ma(a), 0);
469
479
  });
470
- var yu = {
480
+ var xu = {
471
481
  set: Ja,
472
482
  clear: ei
473
- }, mu = function() {
483
+ }, Tu = function() {
474
484
  this.head = null, this.tail = null;
475
485
  };
476
- mu.prototype = {
486
+ Tu.prototype = {
477
487
  add: function(a) {
478
488
  var e = { item: a, next: null }, t = this.tail;
479
489
  t ? t.next = e : this.head = e, this.tail = e;
@@ -486,126 +496,126 @@ mu.prototype = {
486
496
  }
487
497
  }
488
498
  };
489
- var bu = mu, qc = Er, Qc = /ipad|iphone|ipod/i.test(qc) && typeof Pebble < "u", Kc = Er, Zc = /web0s(?!.*chrome)/i.test(Kc), Le = z, Kn = Vi, Jc = ut.f, xa = yu.set, eg = bu, tg = du, rg = Qc, ag = Zc, Ta = Rt, Zn = Le.MutationObserver || Le.WebKitMutationObserver, Jn = Le.document, es = Le.process, Wt = Le.Promise, ts = Jc(Le, "queueMicrotask"), ti = ts && ts.value, We, Oa, Sa, qt, rs;
499
+ var Ou = Tu, Jc = Sr, eg = /ipad|iphone|ipod/i.test(Jc) && typeof Pebble < "u", tg = Sr, rg = /web0s(?!.*chrome)/i.test(tg), Le = z, Zn = Li, ag = ot.f, ba = xu.set, ig = Ou, ng = mu, sg = eg, og = rg, xa = Pt, Jn = Le.MutationObserver || Le.WebKitMutationObserver, es = Le.document, ts = Le.process, Xt = Le.Promise, rs = ag(Le, "queueMicrotask"), ti = rs && rs.value, We, Ta, Oa, Wt, as;
490
500
  if (!ti) {
491
- var Qt = new eg(), Kt = function() {
501
+ var qt = new ig(), Qt = function() {
492
502
  var a, e;
493
- for (Ta && (a = es.domain) && a.exit(); e = Qt.get(); )
503
+ for (xa && (a = ts.domain) && a.exit(); e = qt.get(); )
494
504
  try {
495
505
  e();
496
506
  } catch (t) {
497
- throw Qt.head && We(), t;
507
+ throw qt.head && We(), t;
498
508
  }
499
509
  a && a.enter();
500
510
  };
501
- !tg && !Ta && !ag && Zn && Jn ? (Oa = !0, Sa = Jn.createTextNode(""), new Zn(Kt).observe(Sa, { characterData: !0 }), We = function() {
502
- Sa.data = Oa = !Oa;
503
- }) : !rg && Wt && Wt.resolve ? (qt = Wt.resolve(void 0), qt.constructor = Wt, rs = Kn(qt.then, qt), We = function() {
504
- rs(Kt);
505
- }) : Ta ? We = function() {
506
- es.nextTick(Kt);
507
- } : (xa = Kn(xa, Le), We = function() {
508
- xa(Kt);
511
+ !ng && !xa && !og && Jn && es ? (Ta = !0, Oa = es.createTextNode(""), new Jn(Qt).observe(Oa, { characterData: !0 }), We = function() {
512
+ Oa.data = Ta = !Ta;
513
+ }) : !sg && Xt && Xt.resolve ? (Wt = Xt.resolve(void 0), Wt.constructor = Xt, as = Zn(Wt.then, Wt), We = function() {
514
+ as(Qt);
515
+ }) : xa ? We = function() {
516
+ ts.nextTick(Qt);
517
+ } : (ba = Zn(ba, Le), We = function() {
518
+ ba(Qt);
509
519
  }), ti = function(a) {
510
- Qt.head || We(), Qt.add(a);
520
+ qt.head || We(), qt.add(a);
511
521
  };
512
522
  }
513
- var ig = ti, ng = function(a, e) {
523
+ var ug = ti, lg = function(a, e) {
514
524
  try {
515
525
  arguments.length == 1 ? console.error(a) : console.error(a, e);
516
526
  } catch {
517
527
  }
518
- }, ki = function(a) {
528
+ }, Bi = function(a) {
519
529
  try {
520
530
  return { error: !1, value: a() };
521
531
  } catch (e) {
522
532
  return { error: !0, value: e };
523
533
  }
524
- }, sg = z, Mr = sg.Promise, xu = typeof Deno == "object" && Deno && typeof Deno.version == "object", og = xu, ug = Rt, lg = !og && !ug && typeof window == "object" && typeof document == "object", hg = z, St = Mr, vg = D, fg = nu, cg = wi, gg = G, dg = lg, pg = xu, Ea = Oi;
525
- St && St.prototype;
526
- var yg = gg("species"), ri = !1, Tu = vg(hg.PromiseRejectionEvent), mg = fg("Promise", function() {
527
- var a = cg(St), e = a !== String(St);
528
- if (!e && Ea === 66)
534
+ }, hg = z, Ir = hg.Promise, Su = typeof Deno == "object" && Deno && typeof Deno.version == "object", vg = Su, fg = Pt, cg = !vg && !fg && typeof window == "object" && typeof document == "object", gg = z, Ot = Ir, dg = D, pg = uu, yg = Ai, mg = G, bg = cg, xg = Su, Sa = Oi;
535
+ Ot && Ot.prototype;
536
+ var Tg = mg("species"), ri = !1, Eu = dg(gg.PromiseRejectionEvent), Og = pg("Promise", function() {
537
+ var a = yg(Ot), e = a !== String(Ot);
538
+ if (!e && Sa === 66)
529
539
  return !0;
530
- if (!Ea || Ea < 51 || !/native code/.test(a)) {
531
- var t = new St(function(n) {
540
+ if (!Sa || Sa < 51 || !/native code/.test(a)) {
541
+ var t = new Ot(function(n) {
532
542
  n(1);
533
543
  }), r = function(n) {
534
544
  n(function() {
535
545
  }, function() {
536
546
  });
537
547
  }, i = t.constructor = {};
538
- if (i[yg] = r, ri = t.then(function() {
548
+ if (i[Tg] = r, ri = t.then(function() {
539
549
  }) instanceof r, !ri)
540
550
  return !0;
541
551
  }
542
- return !e && (dg || pg) && !Tu;
543
- }), Nt = {
544
- CONSTRUCTOR: mg,
545
- REJECTION_EVENT: Tu,
552
+ return !e && (bg || xg) && !Eu;
553
+ }), It = {
554
+ CONSTRUCTOR: Og,
555
+ REJECTION_EVENT: Eu,
546
556
  SUBCLASSING: ri
547
- }, vt = {}, as = we, bg = TypeError, xg = function(a) {
557
+ }, ht = {}, is = we, Sg = TypeError, Eg = function(a) {
548
558
  var e, t;
549
559
  this.promise = new a(function(r, i) {
550
560
  if (e !== void 0 || t !== void 0)
551
- throw bg("Bad Promise constructor");
561
+ throw Sg("Bad Promise constructor");
552
562
  e = r, t = i;
553
- }), this.resolve = as(e), this.reject = as(t);
563
+ }), this.resolve = is(e), this.reject = is(t);
554
564
  };
555
- vt.f = function(a) {
556
- return new xg(a);
565
+ ht.f = function(a) {
566
+ return new Eg(a);
557
567
  };
558
- var Tg = ee, yr = Rt, $e = z, st = Y, is = ze, ns = su, Og = Ni, Sg = Qf, Eg = we, lr = D, $g = Te, Cg = Jf, wg = fu, Ou = yu.set, Bi = ig, Ag = ng, Pg = ki, Rg = bu, Su = Rr, mr = Mr, Fi = Nt, Eu = vt, _r = "Promise", $u = Fi.CONSTRUCTOR, Ig = Fi.REJECTION_EVENT, Ng = Fi.SUBCLASSING, $a = Su.getterFor(_r), Mg = Su.set, Ze = mr && mr.prototype, Ve = mr, Zt = Ze, Cu = $e.TypeError, ai = $e.document, ji = $e.process, ii = Eu.f, _g = ii, Dg = !!(ai && ai.createEvent && $e.dispatchEvent), wu = "unhandledrejection", Vg = "rejectionhandled", ss = 0, Au = 1, Lg = 2, Ui = 1, Pu = 2, Jt, os, kg, us, Ru = function(a) {
568
+ var $g = ee, pr = Pt, $e = z, nt = Y, ns = ze, ss = lu, Cg = Mi, wg = ec, Ag = we, ur = D, Pg = Te, Rg = ac, Ig = du, $u = xu.set, Fi = ug, Ng = lg, Mg = Bi, _g = Ou, Cu = Ar, yr = Ir, ji = It, wu = ht, Nr = "Promise", Au = ji.CONSTRUCTOR, Dg = ji.REJECTION_EVENT, Vg = ji.SUBCLASSING, Ea = Cu.getterFor(Nr), Lg = Cu.set, Ze = yr && yr.prototype, Ve = yr, Kt = Ze, Pu = $e.TypeError, ai = $e.document, Ui = $e.process, ii = wu.f, kg = ii, Bg = !!(ai && ai.createEvent && $e.dispatchEvent), Ru = "unhandledrejection", Fg = "rejectionhandled", os = 0, Iu = 1, jg = 2, zi = 1, Nu = 2, Zt, us, Ug, ls, Mu = function(a) {
559
569
  var e;
560
- return $g(a) && lr(e = a.then) ? e : !1;
561
- }, Iu = function(a, e) {
562
- var t = e.value, r = e.state == Au, i = r ? a.ok : a.fail, n = a.resolve, o = a.reject, s = a.domain, u, l, h;
570
+ return Pg(a) && ur(e = a.then) ? e : !1;
571
+ }, _u = function(a, e) {
572
+ var t = e.value, r = e.state == Iu, i = r ? a.ok : a.fail, n = a.resolve, o = a.reject, s = a.domain, u, l, h;
563
573
  try {
564
- i ? (r || (e.rejection === Pu && Fg(e), e.rejection = Ui), i === !0 ? u = t : (s && s.enter(), u = i(t), s && (s.exit(), h = !0)), u === a.promise ? o(Cu("Promise-chain cycle")) : (l = Ru(u)) ? st(l, u, n, o) : n(u)) : o(t);
574
+ i ? (r || (e.rejection === Nu && Gg(e), e.rejection = zi), i === !0 ? u = t : (s && s.enter(), u = i(t), s && (s.exit(), h = !0)), u === a.promise ? o(Pu("Promise-chain cycle")) : (l = Mu(u)) ? nt(l, u, n, o) : n(u)) : o(t);
565
575
  } catch (f) {
566
576
  s && !h && s.exit(), o(f);
567
577
  }
568
- }, Nu = function(a, e) {
569
- a.notified || (a.notified = !0, Bi(function() {
578
+ }, Du = function(a, e) {
579
+ a.notified || (a.notified = !0, Fi(function() {
570
580
  for (var t = a.reactions, r; r = t.get(); )
571
- Iu(r, a);
572
- a.notified = !1, e && !a.rejection && Bg(a);
581
+ _u(r, a);
582
+ a.notified = !1, e && !a.rejection && zg(a);
573
583
  }));
574
- }, Mu = function(a, e, t) {
584
+ }, Vu = function(a, e, t) {
575
585
  var r, i;
576
- Dg ? (r = ai.createEvent("Event"), r.promise = e, r.reason = t, r.initEvent(a, !1, !0), $e.dispatchEvent(r)) : r = { promise: e, reason: t }, !Ig && (i = $e["on" + a]) ? i(r) : a === wu && Ag("Unhandled promise rejection", t);
577
- }, Bg = function(a) {
578
- st(Ou, $e, function() {
579
- var e = a.facade, t = a.value, r = ls(a), i;
580
- if (r && (i = Pg(function() {
581
- yr ? ji.emit("unhandledRejection", t, e) : Mu(wu, e, t);
582
- }), a.rejection = yr || ls(a) ? Pu : Ui, i.error))
586
+ Bg ? (r = ai.createEvent("Event"), r.promise = e, r.reason = t, r.initEvent(a, !1, !0), $e.dispatchEvent(r)) : r = { promise: e, reason: t }, !Dg && (i = $e["on" + a]) ? i(r) : a === Ru && Ng("Unhandled promise rejection", t);
587
+ }, zg = function(a) {
588
+ nt($u, $e, function() {
589
+ var e = a.facade, t = a.value, r = hs(a), i;
590
+ if (r && (i = Mg(function() {
591
+ pr ? Ui.emit("unhandledRejection", t, e) : Vu(Ru, e, t);
592
+ }), a.rejection = pr || hs(a) ? Nu : zi, i.error))
583
593
  throw i.value;
584
594
  });
585
- }, ls = function(a) {
586
- return a.rejection !== Ui && !a.parent;
587
- }, Fg = function(a) {
588
- st(Ou, $e, function() {
595
+ }, hs = function(a) {
596
+ return a.rejection !== zi && !a.parent;
597
+ }, Gg = function(a) {
598
+ nt($u, $e, function() {
589
599
  var e = a.facade;
590
- yr ? ji.emit("rejectionHandled", e) : Mu(Vg, e, a.value);
600
+ pr ? Ui.emit("rejectionHandled", e) : Vu(Fg, e, a.value);
591
601
  });
592
602
  }, et = function(a, e, t) {
593
603
  return function(r) {
594
604
  a(e, r, t);
595
605
  };
596
606
  }, rt = function(a, e, t) {
597
- a.done || (a.done = !0, t && (a = t), a.value = e, a.state = Lg, Nu(a, !0));
607
+ a.done || (a.done = !0, t && (a = t), a.value = e, a.state = jg, Du(a, !0));
598
608
  }, ni = function(a, e, t) {
599
609
  if (!a.done) {
600
610
  a.done = !0, t && (a = t);
601
611
  try {
602
612
  if (a.facade === e)
603
- throw Cu("Promise can't be resolved itself");
604
- var r = Ru(e);
605
- r ? Bi(function() {
613
+ throw Pu("Promise can't be resolved itself");
614
+ var r = Mu(e);
615
+ r ? Fi(function() {
606
616
  var i = { done: !1 };
607
617
  try {
608
- st(
618
+ nt(
609
619
  r,
610
620
  e,
611
621
  et(ni, i, a),
@@ -614,79 +624,79 @@ var Tg = ee, yr = Rt, $e = z, st = Y, is = ze, ns = su, Og = Ni, Sg = Qf, Eg = w
614
624
  } catch (n) {
615
625
  rt(i, n, a);
616
626
  }
617
- }) : (a.value = e, a.state = Au, Nu(a, !1));
627
+ }) : (a.value = e, a.state = Iu, Du(a, !1));
618
628
  } catch (i) {
619
629
  rt({ done: !1 }, i, a);
620
630
  }
621
631
  }
622
632
  };
623
- if ($u && (Ve = function(e) {
624
- Cg(this, Zt), Eg(e), st(Jt, this);
625
- var t = $a(this);
633
+ if (Au && (Ve = function(e) {
634
+ Rg(this, Kt), Ag(e), nt(Zt, this);
635
+ var t = Ea(this);
626
636
  try {
627
637
  e(et(ni, t), et(rt, t));
628
638
  } catch (r) {
629
639
  rt(t, r);
630
640
  }
631
- }, Zt = Ve.prototype, Jt = function(e) {
632
- Mg(this, {
633
- type: _r,
641
+ }, Kt = Ve.prototype, Zt = function(e) {
642
+ Lg(this, {
643
+ type: Nr,
634
644
  done: !1,
635
645
  notified: !1,
636
646
  parent: !1,
637
- reactions: new Rg(),
647
+ reactions: new _g(),
638
648
  rejection: !1,
639
- state: ss,
649
+ state: os,
640
650
  value: void 0
641
651
  });
642
- }, Jt.prototype = is(Zt, "then", function(e, t) {
643
- var r = $a(this), i = ii(wg(this, Ve));
644
- return r.parent = !0, i.ok = lr(e) ? e : !0, i.fail = lr(t) && t, i.domain = yr ? ji.domain : void 0, r.state == ss ? r.reactions.add(i) : Bi(function() {
645
- Iu(i, r);
652
+ }, Zt.prototype = ns(Kt, "then", function(e, t) {
653
+ var r = Ea(this), i = ii(Ig(this, Ve));
654
+ return r.parent = !0, i.ok = ur(e) ? e : !0, i.fail = ur(t) && t, i.domain = pr ? Ui.domain : void 0, r.state == os ? r.reactions.add(i) : Fi(function() {
655
+ _u(i, r);
646
656
  }), i.promise;
647
- }), os = function() {
648
- var a = new Jt(), e = $a(a);
657
+ }), us = function() {
658
+ var a = new Zt(), e = Ea(a);
649
659
  this.promise = a, this.resolve = et(ni, e), this.reject = et(rt, e);
650
- }, Eu.f = ii = function(a) {
651
- return a === Ve || a === kg ? new os(a) : _g(a);
652
- }, lr(mr) && Ze !== Object.prototype)) {
653
- us = Ze.then, Ng || is(Ze, "then", function(e, t) {
660
+ }, wu.f = ii = function(a) {
661
+ return a === Ve || a === Ug ? new us(a) : kg(a);
662
+ }, ur(yr) && Ze !== Object.prototype)) {
663
+ ls = Ze.then, Vg || ns(Ze, "then", function(e, t) {
654
664
  var r = this;
655
665
  return new Ve(function(i, n) {
656
- st(us, r, i, n);
666
+ nt(ls, r, i, n);
657
667
  }).then(e, t);
658
668
  }, { unsafe: !0 });
659
669
  try {
660
670
  delete Ze.constructor;
661
671
  } catch {
662
672
  }
663
- ns && ns(Ze, Zt);
673
+ ss && ss(Ze, Kt);
664
674
  }
665
- Tg({ global: !0, constructor: !0, wrap: !0, forced: $u }, {
675
+ $g({ global: !0, constructor: !0, wrap: !0, forced: Au }, {
666
676
  Promise: Ve
667
677
  });
668
- Og(Ve, _r, !1);
669
- Sg(_r);
670
- var Mt = {}, jg = G, Ug = Mt, zg = jg("iterator"), Gg = Array.prototype, Hg = function(a) {
671
- return a !== void 0 && (Ug.Array === a || Gg[zg] === a);
672
- }, Yg = Mi, hs = lt, Xg = je, Wg = Mt, qg = G, Qg = qg("iterator"), _u = function(a) {
673
- if (!Xg(a))
674
- return hs(a, Qg) || hs(a, "@@iterator") || Wg[Yg(a)];
675
- }, Kg = Y, Zg = we, Jg = K, ed = $r, td = _u, rd = TypeError, ad = function(a, e) {
676
- var t = arguments.length < 2 ? td(a) : e;
677
- if (Zg(t))
678
- return Jg(Kg(t, a));
679
- throw rd(ed(a) + " is not iterable");
680
- }, id = Y, vs = K, nd = lt, sd = function(a, e, t) {
678
+ Cg(Ve, Nr, !1);
679
+ wg(Nr);
680
+ var Nt = {}, Hg = G, Yg = Nt, Xg = Hg("iterator"), Wg = Array.prototype, qg = function(a) {
681
+ return a !== void 0 && (Yg.Array === a || Wg[Xg] === a);
682
+ }, Qg = _i, vs = ut, Kg = je, Zg = Nt, Jg = G, ed = Jg("iterator"), Lu = function(a) {
683
+ if (!Kg(a))
684
+ return vs(a, ed) || vs(a, "@@iterator") || Zg[Qg(a)];
685
+ }, td = Y, rd = we, ad = K, id = Er, nd = Lu, sd = TypeError, od = function(a, e) {
686
+ var t = arguments.length < 2 ? nd(a) : e;
687
+ if (rd(t))
688
+ return ad(td(t, a));
689
+ throw sd(id(a) + " is not iterable");
690
+ }, ud = Y, fs = K, ld = ut, hd = function(a, e, t) {
681
691
  var r, i;
682
- vs(a);
692
+ fs(a);
683
693
  try {
684
- if (r = nd(a, "return"), !r) {
694
+ if (r = ld(a, "return"), !r) {
685
695
  if (e === "throw")
686
696
  throw t;
687
697
  return t;
688
698
  }
689
- r = id(r, a);
699
+ r = ud(r, a);
690
700
  } catch (n) {
691
701
  i = !0, r = n;
692
702
  }
@@ -694,64 +704,64 @@ var Mt = {}, jg = G, Ug = Mt, zg = jg("iterator"), Gg = Array.prototype, Hg = fu
694
704
  throw t;
695
705
  if (i)
696
706
  throw r;
697
- return vs(r), t;
698
- }, od = Vi, ud = Y, ld = K, hd = $r, vd = Hg, fd = Nr, fs = Sr, cd = ad, gd = _u, cs = sd, dd = TypeError, hr = function(a, e) {
707
+ return fs(r), t;
708
+ }, vd = Li, fd = Y, cd = K, gd = Er, dd = qg, pd = Rr, cs = Or, yd = od, md = Lu, gs = hd, bd = TypeError, lr = function(a, e) {
699
709
  this.stopped = a, this.result = e;
700
- }, gs = hr.prototype, Du = function(a, e, t) {
701
- 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 = od(e, r), l, h, f, c, v, d, g, p = function(x) {
702
- return l && cs(l, "normal", x), new hr(!0, x);
710
+ }, ds = lr.prototype, ku = function(a, e, t) {
711
+ 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 = vd(e, r), l, h, f, c, v, d, g, p = function(x) {
712
+ return l && gs(l, "normal", x), new lr(!0, x);
703
713
  }, y = function(x) {
704
- return i ? (ld(x), s ? u(x[0], x[1], p) : u(x[0], x[1])) : s ? u(x, p) : u(x);
714
+ return i ? (cd(x), s ? u(x[0], x[1], p) : u(x[0], x[1])) : s ? u(x, p) : u(x);
705
715
  };
706
716
  if (n)
707
717
  l = a.iterator;
708
718
  else if (o)
709
719
  l = a;
710
720
  else {
711
- if (h = gd(a), !h)
712
- throw dd(hd(a) + " is not iterable");
713
- if (vd(h)) {
714
- for (f = 0, c = fd(a); c > f; f++)
715
- if (v = y(a[f]), v && fs(gs, v))
721
+ if (h = md(a), !h)
722
+ throw bd(gd(a) + " is not iterable");
723
+ if (dd(h)) {
724
+ for (f = 0, c = pd(a); c > f; f++)
725
+ if (v = y(a[f]), v && cs(ds, v))
716
726
  return v;
717
- return new hr(!1);
727
+ return new lr(!1);
718
728
  }
719
- l = cd(a, h);
729
+ l = yd(a, h);
720
730
  }
721
- for (d = n ? a.next : l.next; !(g = ud(d, l)).done; ) {
731
+ for (d = n ? a.next : l.next; !(g = fd(d, l)).done; ) {
722
732
  try {
723
733
  v = y(g.value);
724
734
  } catch (x) {
725
- cs(l, "throw", x);
735
+ gs(l, "throw", x);
726
736
  }
727
- if (typeof v == "object" && v && fs(gs, v))
737
+ if (typeof v == "object" && v && cs(ds, v))
728
738
  return v;
729
739
  }
730
- return new hr(!1);
731
- }, pd = G, Vu = pd("iterator"), Lu = !1;
740
+ return new lr(!1);
741
+ }, xd = G, Bu = xd("iterator"), Fu = !1;
732
742
  try {
733
- var yd = 0, ds = {
743
+ var Td = 0, ps = {
734
744
  next: function() {
735
- return { done: !!yd++ };
745
+ return { done: !!Td++ };
736
746
  },
737
747
  return: function() {
738
- Lu = !0;
748
+ Fu = !0;
739
749
  }
740
750
  };
741
- ds[Vu] = function() {
751
+ ps[Bu] = function() {
742
752
  return this;
743
- }, Array.from(ds, function() {
753
+ }, Array.from(ps, function() {
744
754
  throw 2;
745
755
  });
746
756
  } catch {
747
757
  }
748
- var md = function(a, e) {
749
- if (!e && !Lu)
758
+ var Od = function(a, e) {
759
+ if (!e && !Fu)
750
760
  return !1;
751
761
  var t = !1;
752
762
  try {
753
763
  var r = {};
754
- r[Vu] = function() {
764
+ r[Bu] = function() {
755
765
  return {
756
766
  next: function() {
757
767
  return { done: t = !0 };
@@ -761,17 +771,17 @@ var md = function(a, e) {
761
771
  } catch {
762
772
  }
763
773
  return t;
764
- }, bd = Mr, xd = md, Td = Nt.CONSTRUCTOR, ku = Td || !xd(function(a) {
765
- bd.all(a).then(void 0, function() {
774
+ }, Sd = Ir, Ed = Od, $d = It.CONSTRUCTOR, ju = $d || !Ed(function(a) {
775
+ Sd.all(a).then(void 0, function() {
766
776
  });
767
- }), Od = ee, Sd = Y, Ed = we, $d = vt, Cd = ki, wd = Du, Ad = ku;
768
- Od({ target: "Promise", stat: !0, forced: Ad }, {
777
+ }), Cd = ee, wd = Y, Ad = we, Pd = ht, Rd = Bi, Id = ku, Nd = ju;
778
+ Cd({ target: "Promise", stat: !0, forced: Nd }, {
769
779
  all: function(e) {
770
- var t = this, r = $d.f(t), i = r.resolve, n = r.reject, o = Cd(function() {
771
- var s = Ed(t.resolve), u = [], l = 0, h = 1;
772
- wd(e, function(f) {
780
+ var t = this, r = Pd.f(t), i = r.resolve, n = r.reject, o = Rd(function() {
781
+ var s = Ad(t.resolve), u = [], l = 0, h = 1;
782
+ Id(e, function(f) {
773
783
  var c = l++, v = !1;
774
- h++, Sd(s, t, f).then(function(d) {
784
+ h++, wd(s, t, f).then(function(d) {
775
785
  v || (v = !0, u[c] = d, --h || i(u));
776
786
  }, n);
777
787
  }), --h || i(u);
@@ -779,48 +789,48 @@ Od({ target: "Promise", stat: !0, forced: Ad }, {
779
789
  return o.error && n(o.value), r.promise;
780
790
  }
781
791
  });
782
- var Pd = ee, Rd = Nt.CONSTRUCTOR, si = Mr, Id = Ue, Nd = D, Md = ze, ps = si && si.prototype;
783
- Pd({ target: "Promise", proto: !0, forced: Rd, real: !0 }, {
792
+ var Md = ee, _d = It.CONSTRUCTOR, si = Ir, Dd = Ue, Vd = D, Ld = ze, ys = si && si.prototype;
793
+ Md({ target: "Promise", proto: !0, forced: _d, real: !0 }, {
784
794
  catch: function(a) {
785
795
  return this.then(void 0, a);
786
796
  }
787
797
  });
788
- if (Nd(si)) {
789
- var ys = Id("Promise").prototype.catch;
790
- ps.catch !== ys && Md(ps, "catch", ys, { unsafe: !0 });
798
+ if (Vd(si)) {
799
+ var ms = Dd("Promise").prototype.catch;
800
+ ys.catch !== ms && Ld(ys, "catch", ms, { unsafe: !0 });
791
801
  }
792
- var _d = ee, Dd = Y, Vd = we, Ld = vt, kd = ki, Bd = Du, Fd = ku;
793
- _d({ target: "Promise", stat: !0, forced: Fd }, {
802
+ var kd = ee, Bd = Y, Fd = we, jd = ht, Ud = Bi, zd = ku, Gd = ju;
803
+ kd({ target: "Promise", stat: !0, forced: Gd }, {
794
804
  race: function(e) {
795
- var t = this, r = Ld.f(t), i = r.reject, n = kd(function() {
796
- var o = Vd(t.resolve);
797
- Bd(e, function(s) {
798
- Dd(o, t, s).then(r.resolve, i);
805
+ var t = this, r = jd.f(t), i = r.reject, n = Ud(function() {
806
+ var o = Fd(t.resolve);
807
+ zd(e, function(s) {
808
+ Bd(o, t, s).then(r.resolve, i);
799
809
  });
800
810
  });
801
811
  return n.error && i(n.value), r.promise;
802
812
  }
803
813
  });
804
- var jd = ee, Ud = Y, zd = vt, Gd = Nt.CONSTRUCTOR;
805
- jd({ target: "Promise", stat: !0, forced: Gd }, {
814
+ var Hd = ee, Yd = Y, Xd = ht, Wd = It.CONSTRUCTOR;
815
+ Hd({ target: "Promise", stat: !0, forced: Wd }, {
806
816
  reject: function(e) {
807
- var t = zd.f(this);
808
- return Ud(t.reject, void 0, e), t.promise;
817
+ var t = Xd.f(this);
818
+ return Yd(t.reject, void 0, e), t.promise;
809
819
  }
810
820
  });
811
- var Hd = K, Yd = Te, Xd = vt, Wd = function(a, e) {
812
- if (Hd(a), Yd(e) && e.constructor === a)
821
+ var qd = K, Qd = Te, Kd = ht, Zd = function(a, e) {
822
+ if (qd(a), Qd(e) && e.constructor === a)
813
823
  return e;
814
- var t = Xd.f(a), r = t.resolve;
824
+ var t = Kd.f(a), r = t.resolve;
815
825
  return r(e), t.promise;
816
- }, qd = ee, Qd = Ue, Kd = Nt.CONSTRUCTOR, Zd = Wd;
817
- Qd("Promise");
818
- qd({ target: "Promise", stat: !0, forced: Kd }, {
826
+ }, Jd = ee, ep = Ue, tp = It.CONSTRUCTOR, rp = Zd;
827
+ ep("Promise");
828
+ Jd({ target: "Promise", stat: !0, forced: tp }, {
819
829
  resolve: function(e) {
820
- return Zd(this, e);
830
+ return rp(this, e);
821
831
  }
822
832
  });
823
- function ms(a, e, t, r, i, n, o) {
833
+ function bs(a, e, t, r, i, n, o) {
824
834
  try {
825
835
  var s = a[n](o), u = s.value;
826
836
  } catch (l) {
@@ -835,216 +845,228 @@ function xe(a) {
835
845
  return new Promise(function(r, i) {
836
846
  var n = a.apply(e, t);
837
847
  function o(u) {
838
- ms(n, r, i, o, s, "next", u);
848
+ bs(n, r, i, o, s, "next", u);
839
849
  }
840
850
  function s(u) {
841
- ms(n, r, i, o, s, "throw", u);
851
+ bs(n, r, i, o, s, "throw", u);
842
852
  }
843
853
  o(void 0);
844
854
  });
845
855
  };
846
856
  }
847
- var Jd = Mi, ep = String, pe = function(a) {
848
- if (Jd(a) === "Symbol")
857
+ var ap = _i, ip = String, pe = function(a) {
858
+ if (ap(a) === "Symbol")
849
859
  throw TypeError("Cannot convert a Symbol value to a string");
850
- return ep(a);
851
- }, tp = K, Bu = function() {
852
- var a = tp(this), e = "";
860
+ return ip(a);
861
+ }, np = K, Uu = function() {
862
+ var a = np(this), e = "";
853
863
  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;
854
- }, zi = L, rp = z, Gi = rp.RegExp, Hi = zi(function() {
855
- var a = Gi("a", "y");
864
+ }, Gi = L, sp = z, Hi = sp.RegExp, Yi = Gi(function() {
865
+ var a = Hi("a", "y");
856
866
  return a.lastIndex = 2, a.exec("abcd") != null;
857
- }), ap = Hi || zi(function() {
858
- return !Gi("a", "y").sticky;
859
- }), ip = Hi || zi(function() {
860
- var a = Gi("^r", "gy");
867
+ }), op = Yi || Gi(function() {
868
+ return !Hi("a", "y").sticky;
869
+ }), up = Yi || Gi(function() {
870
+ var a = Hi("^r", "gy");
861
871
  return a.lastIndex = 2, a.exec("str") != null;
862
- }), Fu = {
863
- BROKEN_CARET: ip,
864
- MISSED_STICKY: ap,
865
- UNSUPPORTED_Y: Hi
866
- }, ju = {}, np = au, sp = Ii, op = Object.keys || function(e) {
867
- return np(e, sp);
868
- }, up = ce, lp = qo, hp = de, vp = K, fp = wt, cp = op;
869
- ju.f = up && !lp ? Object.defineProperties : function(e, t) {
870
- vp(e);
871
- for (var r = fp(t), i = cp(t), n = i.length, o = 0, s; n > o; )
872
- hp.f(e, s = i[o++], r[s]);
872
+ }), zu = {
873
+ BROKEN_CARET: up,
874
+ MISSED_STICKY: op,
875
+ UNSUPPORTED_Y: Yi
876
+ }, Gu = {}, lp = su, hp = Ni, vp = Object.keys || function(e) {
877
+ return lp(e, hp);
878
+ }, fp = ce, cp = Zo, gp = de, dp = K, pp = Ct, yp = vp;
879
+ Gu.f = fp && !cp ? Object.defineProperties : function(e, t) {
880
+ dp(e);
881
+ for (var r = pp(t), i = yp(t), n = i.length, o = 0, s; n > o; )
882
+ gp.f(e, s = i[o++], r[s]);
873
883
  return e;
874
884
  };
875
- var gp = K, dp = ju, bs = Ii, pp = Pi, yp = gu, mp = Ar, bp = Ai, xs = ">", Ts = "<", oi = "prototype", ui = "script", Uu = bp("IE_PROTO"), Ca = function() {
876
- }, zu = function(a) {
877
- return Ts + ui + xs + a + Ts + "/" + ui + xs;
878
- }, Os = function(a) {
879
- a.write(zu("")), a.close();
885
+ var mp = K, bp = Gu, xs = Ni, xp = Ri, Tp = yu, Op = Cr, Sp = Pi, Ts = ">", Os = "<", oi = "prototype", ui = "script", Hu = Sp("IE_PROTO"), $a = function() {
886
+ }, Yu = function(a) {
887
+ return Os + ui + Ts + a + Os + "/" + ui + Ts;
888
+ }, Ss = function(a) {
889
+ a.write(Yu("")), a.close();
880
890
  var e = a.parentWindow.Object;
881
891
  return a = null, e;
882
- }, xp = function() {
883
- var a = mp("iframe"), e = "java" + ui + ":", t;
884
- return a.style.display = "none", yp.appendChild(a), a.src = String(e), t = a.contentWindow.document, t.open(), t.write(zu("document.F=Object")), t.close(), t.F;
885
- }, er, vr = function() {
892
+ }, Ep = function() {
893
+ var a = Op("iframe"), e = "java" + ui + ":", t;
894
+ return a.style.display = "none", Tp.appendChild(a), a.src = String(e), t = a.contentWindow.document, t.open(), t.write(Yu("document.F=Object")), t.close(), t.F;
895
+ }, Jt, hr = function() {
886
896
  try {
887
- er = new ActiveXObject("htmlfile");
897
+ Jt = new ActiveXObject("htmlfile");
888
898
  } catch {
889
899
  }
890
- vr = typeof document < "u" ? document.domain && er ? Os(er) : xp() : Os(er);
891
- for (var a = bs.length; a--; )
892
- delete vr[oi][bs[a]];
893
- return vr();
900
+ hr = typeof document < "u" ? document.domain && Jt ? Ss(Jt) : Ep() : Ss(Jt);
901
+ for (var a = xs.length; a--; )
902
+ delete hr[oi][xs[a]];
903
+ return hr();
894
904
  };
895
- pp[Uu] = !0;
896
- var Yi = Object.create || function(e, t) {
905
+ xp[Hu] = !0;
906
+ var Xi = Object.create || function(e, t) {
897
907
  var r;
898
- return e !== null ? (Ca[oi] = gp(e), r = new Ca(), Ca[oi] = null, r[Uu] = e) : r = vr(), t === void 0 ? r : dp.f(r, t);
899
- }, Tp = L, Op = z, Sp = Op.RegExp, Ep = Tp(function() {
900
- var a = Sp(".", "s");
908
+ return e !== null ? ($a[oi] = mp(e), r = new $a(), $a[oi] = null, r[Hu] = e) : r = hr(), t === void 0 ? r : bp.f(r, t);
909
+ }, $p = L, Cp = z, wp = Cp.RegExp, Ap = $p(function() {
910
+ var a = wp(".", "s");
901
911
  return !(a.dotAll && a.exec(`
902
912
  `) && a.flags === "s");
903
- }), $p = L, Cp = z, wp = Cp.RegExp, Ap = $p(function() {
904
- var a = wp("(?<a>b)", "g");
913
+ }), Pp = L, Rp = z, Ip = Rp.RegExp, Np = Pp(function() {
914
+ var a = Ip("(?<a>b)", "g");
905
915
  return a.exec("b").groups.a !== "b" || "b".replace(a, "$<a>c") !== "bc";
906
- }), tt = Y, Dr = k, Pp = pe, Rp = Bu, Ip = Fu, Np = Cr.exports, Mp = Yi, _p = Rr.get, Dp = Ep, Vp = Ap, Lp = Np("native-string-replace", String.prototype.replace), br = RegExp.prototype.exec, li = br, kp = Dr("".charAt), Bp = Dr("".indexOf), Fp = Dr("".replace), wa = Dr("".slice), hi = function() {
916
+ }), tt = Y, Mr = k, Mp = pe, _p = Uu, Dp = zu, Vp = $i, Lp = Xi, kp = Ar.get, Bp = Ap, Fp = Np, jp = Vp("native-string-replace", String.prototype.replace), mr = RegExp.prototype.exec, li = mr, Up = Mr("".charAt), zp = Mr("".indexOf), Gp = Mr("".replace), Ca = Mr("".slice), hi = function() {
907
917
  var a = /a/, e = /b*/g;
908
- return tt(br, a, "a"), tt(br, e, "a"), a.lastIndex !== 0 || e.lastIndex !== 0;
909
- }(), Gu = Ip.BROKEN_CARET, vi = /()??/.exec("")[1] !== void 0, jp = hi || vi || Gu || Dp || Vp;
910
- jp && (li = function(e) {
911
- var t = this, r = _p(t), i = Pp(e), n = r.raw, o, s, u, l, h, f, c;
918
+ return tt(mr, a, "a"), tt(mr, e, "a"), a.lastIndex !== 0 || e.lastIndex !== 0;
919
+ }(), Xu = Dp.BROKEN_CARET, vi = /()??/.exec("")[1] !== void 0, Hp = hi || vi || Xu || Bp || Fp;
920
+ Hp && (li = function(e) {
921
+ var t = this, r = kp(t), i = Mp(e), n = r.raw, o, s, u, l, h, f, c;
912
922
  if (n)
913
923
  return n.lastIndex = t.lastIndex, o = tt(li, n, i), t.lastIndex = n.lastIndex, o;
914
- var v = r.groups, d = Gu && t.sticky, g = tt(Rp, t), p = t.source, y = 0, x = i;
915
- if (d && (g = Fp(g, "y", ""), Bp(g, "g") === -1 && (g += "g"), x = wa(i, t.lastIndex), t.lastIndex > 0 && (!t.multiline || t.multiline && kp(i, t.lastIndex - 1) !== `
916
- `) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")", g)), vi && (s = new RegExp("^" + p + "$(?!\\s)", g)), hi && (u = t.lastIndex), l = tt(br, d ? s : t, x), d ? l ? (l.input = wa(l.input, y), l[0] = wa(l[0], y), l.index = t.lastIndex, t.lastIndex += l[0].length) : t.lastIndex = 0 : hi && l && (t.lastIndex = t.global ? l.index + l[0].length : u), vi && l && l.length > 1 && tt(Lp, l[0], s, function() {
924
+ var v = r.groups, d = Xu && t.sticky, g = tt(_p, t), p = t.source, y = 0, x = i;
925
+ if (d && (g = Gp(g, "y", ""), zp(g, "g") === -1 && (g += "g"), x = Ca(i, t.lastIndex), t.lastIndex > 0 && (!t.multiline || t.multiline && Up(i, t.lastIndex - 1) !== `
926
+ `) && (p = "(?: " + p + ")", x = " " + x, y++), s = new RegExp("^(?:" + p + ")", g)), vi && (s = new RegExp("^" + p + "$(?!\\s)", g)), hi && (u = t.lastIndex), l = tt(mr, d ? s : t, x), d ? l ? (l.input = Ca(l.input, y), l[0] = Ca(l[0], y), l.index = t.lastIndex, t.lastIndex += l[0].length) : t.lastIndex = 0 : hi && l && (t.lastIndex = t.global ? l.index + l[0].length : u), vi && l && l.length > 1 && tt(jp, l[0], s, function() {
917
927
  for (h = 1; h < arguments.length - 2; h++)
918
928
  arguments[h] === void 0 && (l[h] = void 0);
919
929
  }), l && v)
920
- for (l.groups = f = Mp(null), h = 0; h < v.length; h++)
930
+ for (l.groups = f = Lp(null), h = 0; h < v.length; h++)
921
931
  c = v[h], f[c[0]] = l[c[1]];
922
932
  return l;
923
933
  });
924
- var Vr = li, Up = ee, Ss = Vr;
925
- Up({ target: "RegExp", proto: !0, forced: /./.exec !== Ss }, {
926
- exec: Ss
934
+ var _r = li, Yp = ee, Es = _r;
935
+ Yp({ target: "RegExp", proto: !0, forced: /./.exec !== Es }, {
936
+ exec: Es
927
937
  });
928
- var Es = It, $s = ze, zp = Vr, Cs = L, Hu = G, Gp = At, Hp = Hu("species"), Aa = RegExp.prototype, Xi = function(a, e, t, r) {
929
- var i = Hu(a), n = !Cs(function() {
938
+ var $s = Rt, Cs = ze, Xp = _r, ws = L, Wu = G, Wp = wt, qp = Wu("species"), wa = RegExp.prototype, Wi = function(a, e, t, r) {
939
+ var i = Wu(a), n = !ws(function() {
930
940
  var l = {};
931
941
  return l[i] = function() {
932
942
  return 7;
933
943
  }, ""[a](l) != 7;
934
- }), o = n && !Cs(function() {
944
+ }), o = n && !ws(function() {
935
945
  var l = !1, h = /a/;
936
- return a === "split" && (h = {}, h.constructor = {}, h.constructor[Hp] = function() {
946
+ return a === "split" && (h = {}, h.constructor = {}, h.constructor[qp] = function() {
937
947
  return h;
938
948
  }, h.flags = "", h[i] = /./[i]), h.exec = function() {
939
949
  return l = !0, null;
940
950
  }, h[i](""), !l;
941
951
  });
942
952
  if (!n || !o || t) {
943
- var s = Es(/./[i]), u = e(i, ""[a], function(l, h, f, c, v) {
944
- var d = Es(l), g = h.exec;
945
- return g === zp || g === Aa.exec ? n && !v ? { done: !0, value: s(h, f, c) } : { done: !0, value: d(f, h, c) } : { done: !1 };
953
+ var s = $s(/./[i]), u = e(i, ""[a], function(l, h, f, c, v) {
954
+ var d = $s(l), g = h.exec;
955
+ return g === Xp || g === wa.exec ? n && !v ? { done: !0, value: s(h, f, c) } : { done: !0, value: d(f, h, c) } : { done: !1 };
946
956
  });
947
- $s(String.prototype, a, u[0]), $s(Aa, i, u[1]);
957
+ Cs(String.prototype, a, u[0]), Cs(wa, i, u[1]);
948
958
  }
949
- r && Gp(Aa[i], "sham", !0);
950
- }, Wi = k, Yp = Ir, Xp = pe, Wp = ge, qp = Wi("".charAt), ws = Wi("".charCodeAt), Qp = Wi("".slice), As = function(a) {
959
+ r && Wp(wa[i], "sham", !0);
960
+ }, qi = k, Qp = Pr, Kp = pe, Zp = ge, Jp = qi("".charAt), As = qi("".charCodeAt), ey = qi("".slice), Ps = function(a) {
951
961
  return function(e, t) {
952
- var r = Xp(Wp(e)), i = Yp(t), n = r.length, o, s;
953
- return i < 0 || i >= n ? a ? "" : void 0 : (o = ws(r, i), o < 55296 || o > 56319 || i + 1 === n || (s = ws(r, i + 1)) < 56320 || s > 57343 ? a ? qp(r, i) : o : a ? Qp(r, i, i + 2) : (o - 55296 << 10) + (s - 56320) + 65536);
962
+ var r = Kp(Zp(e)), i = Qp(t), n = r.length, o, s;
963
+ return i < 0 || i >= n ? a ? "" : void 0 : (o = As(r, i), o < 55296 || o > 56319 || i + 1 === n || (s = As(r, i + 1)) < 56320 || s > 57343 ? a ? Jp(r, i) : o : a ? ey(r, i, i + 2) : (o - 55296 << 10) + (s - 56320) + 65536);
954
964
  };
955
- }, Kp = {
956
- codeAt: As(!1),
957
- charAt: As(!0)
958
- }, Zp = Kp.charAt, qi = function(a, e, t) {
959
- return e + (t ? Zp(a, e).length : 1);
960
- }, Ps = Y, Jp = K, ey = D, ty = Fe, ry = Vr, ay = TypeError, Qi = function(a, e) {
965
+ }, ty = {
966
+ // `String.prototype.codePointAt` method
967
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
968
+ codeAt: Ps(!1),
969
+ // `String.prototype.at` method
970
+ // https://github.com/mathiasbynens/String.prototype.at
971
+ charAt: Ps(!0)
972
+ }, ry = ty.charAt, Qi = function(a, e, t) {
973
+ return e + (t ? ry(a, e).length : 1);
974
+ }, Rs = Y, ay = K, iy = D, ny = Fe, sy = _r, oy = TypeError, Ki = function(a, e) {
961
975
  var t = a.exec;
962
- if (ey(t)) {
963
- var r = Ps(t, a, e);
964
- return r !== null && Jp(r), r;
965
- }
966
- if (ty(a) === "RegExp")
967
- return Ps(ry, a, e);
968
- throw ay("RegExp#exec called on incompatible receiver");
969
- }, iy = Y, ny = Xi, sy = K, oy = je, uy = ht, Pa = pe, ly = ge, hy = lt, vy = qi, Rs = Qi;
970
- ny("match", function(a, e, t) {
976
+ if (iy(t)) {
977
+ var r = Rs(t, a, e);
978
+ return r !== null && ay(r), r;
979
+ }
980
+ if (ny(a) === "RegExp")
981
+ return Rs(sy, a, e);
982
+ throw oy("RegExp#exec called on incompatible receiver");
983
+ }, uy = Y, ly = Wi, hy = K, vy = je, fy = lt, Aa = pe, cy = ge, gy = ut, dy = Qi, Is = Ki;
984
+ ly("match", function(a, e, t) {
971
985
  return [
986
+ // `String.prototype.match` method
987
+ // https://tc39.es/ecma262/#sec-string.prototype.match
972
988
  function(i) {
973
- var n = ly(this), o = oy(i) ? void 0 : hy(i, a);
974
- return o ? iy(o, i, n) : new RegExp(i)[a](Pa(n));
989
+ var n = cy(this), o = vy(i) ? void 0 : gy(i, a);
990
+ return o ? uy(o, i, n) : new RegExp(i)[a](Aa(n));
975
991
  },
992
+ // `RegExp.prototype[@@match]` method
993
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
976
994
  function(r) {
977
- var i = sy(this), n = Pa(r), o = t(e, i, n);
995
+ var i = hy(this), n = Aa(r), o = t(e, i, n);
978
996
  if (o.done)
979
997
  return o.value;
980
998
  if (!i.global)
981
- return Rs(i, n);
999
+ return Is(i, n);
982
1000
  var s = i.unicode;
983
1001
  i.lastIndex = 0;
984
- for (var u = [], l = 0, h; (h = Rs(i, n)) !== null; ) {
985
- var f = Pa(h[0]);
986
- u[l] = f, f === "" && (i.lastIndex = vy(n, uy(i.lastIndex), s)), l++;
1002
+ for (var u = [], l = 0, h; (h = Is(i, n)) !== null; ) {
1003
+ var f = Aa(h[0]);
1004
+ u[l] = f, f === "" && (i.lastIndex = dy(n, fy(i.lastIndex), s)), l++;
987
1005
  }
988
1006
  return l === 0 ? null : u;
989
1007
  }
990
1008
  ];
991
1009
  });
992
- var Ki = k, fy = wr, cy = Math.floor, Ra = Ki("".charAt), gy = Ki("".replace), Ia = Ki("".slice), dy = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, py = /\$([$&'`]|\d{1,2})/g, yy = function(a, e, t, r, i, n) {
993
- var o = t + a.length, s = r.length, u = py;
994
- return i !== void 0 && (i = fy(i), u = dy), gy(n, u, function(l, h) {
1010
+ var Zi = k, py = $r, yy = Math.floor, Pa = Zi("".charAt), my = Zi("".replace), Ra = Zi("".slice), by = /\$([$&'`]|\d{1,2}|<[^>]*>)/g, xy = /\$([$&'`]|\d{1,2})/g, Ty = function(a, e, t, r, i, n) {
1011
+ var o = t + a.length, s = r.length, u = xy;
1012
+ return i !== void 0 && (i = py(i), u = by), my(n, u, function(l, h) {
995
1013
  var f;
996
- switch (Ra(h, 0)) {
1014
+ switch (Pa(h, 0)) {
997
1015
  case "$":
998
1016
  return "$";
999
1017
  case "&":
1000
1018
  return a;
1001
1019
  case "`":
1002
- return Ia(e, 0, t);
1020
+ return Ra(e, 0, t);
1003
1021
  case "'":
1004
- return Ia(e, o);
1022
+ return Ra(e, o);
1005
1023
  case "<":
1006
- f = i[Ia(h, 1, -1)];
1024
+ f = i[Ra(h, 1, -1)];
1007
1025
  break;
1008
1026
  default:
1009
1027
  var c = +h;
1010
1028
  if (c === 0)
1011
1029
  return l;
1012
1030
  if (c > s) {
1013
- var v = cy(c / 10);
1014
- return v === 0 ? l : v <= s ? r[v - 1] === void 0 ? Ra(h, 1) : r[v - 1] + Ra(h, 1) : l;
1031
+ var v = yy(c / 10);
1032
+ return v === 0 ? l : v <= s ? r[v - 1] === void 0 ? Pa(h, 1) : r[v - 1] + Pa(h, 1) : l;
1015
1033
  }
1016
1034
  f = r[c - 1];
1017
1035
  }
1018
1036
  return f === void 0 ? "" : f;
1019
1037
  });
1020
- }, my = Di, Is = Y, Lr = k, by = Xi, xy = L, Ty = K, Oy = D, Sy = je, Ey = Ir, $y = ht, qe = pe, Cy = ge, wy = qi, Ay = lt, Py = yy, Ry = Qi, Iy = G, fi = Iy("replace"), Ny = Math.max, My = Math.min, _y = Lr([].concat), Na = Lr([].push), Ns = Lr("".indexOf), Ms = Lr("".slice), Dy = function(a) {
1038
+ }, Oy = Vi, Ns = Y, Dr = k, Sy = Wi, Ey = L, $y = K, Cy = D, wy = je, Ay = Pr, Py = lt, qe = pe, Ry = ge, Iy = Qi, Ny = ut, My = Ty, _y = Ki, Dy = G, fi = Dy("replace"), Vy = Math.max, Ly = Math.min, ky = Dr([].concat), Ia = Dr([].push), Ms = Dr("".indexOf), _s = Dr("".slice), By = function(a) {
1021
1039
  return a === void 0 ? a : String(a);
1022
- }, Vy = function() {
1040
+ }, Fy = function() {
1023
1041
  return "a".replace(/./, "$0") === "$0";
1024
- }(), _s = function() {
1042
+ }(), Ds = function() {
1025
1043
  return /./[fi] ? /./[fi]("a", "$0") === "" : !1;
1026
- }(), Ly = !xy(function() {
1044
+ }(), jy = !Ey(function() {
1027
1045
  var a = /./;
1028
1046
  return a.exec = function() {
1029
1047
  var e = [];
1030
1048
  return e.groups = { a: "7" }, e;
1031
1049
  }, "".replace(a, "$<a>") !== "7";
1032
1050
  });
1033
- by("replace", function(a, e, t) {
1034
- var r = _s ? "$" : "$0";
1051
+ Sy("replace", function(a, e, t) {
1052
+ var r = Ds ? "$" : "$0";
1035
1053
  return [
1054
+ // `String.prototype.replace` method
1055
+ // https://tc39.es/ecma262/#sec-string.prototype.replace
1036
1056
  function(n, o) {
1037
- var s = Cy(this), u = Sy(n) ? void 0 : Ay(n, fi);
1038
- return u ? Is(u, n, s, o) : Is(e, qe(s), n, o);
1057
+ var s = Ry(this), u = wy(n) ? void 0 : Ny(n, fi);
1058
+ return u ? Ns(u, n, s, o) : Ns(e, qe(s), n, o);
1039
1059
  },
1060
+ // `RegExp.prototype[@@replace]` method
1061
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1040
1062
  function(i, n) {
1041
- var o = Ty(this), s = qe(i);
1042
- if (typeof n == "string" && Ns(n, r) === -1 && Ns(n, "$<") === -1) {
1063
+ var o = $y(this), s = qe(i);
1064
+ if (typeof n == "string" && Ms(n, r) === -1 && Ms(n, "$<") === -1) {
1043
1065
  var u = t(e, o, s, n);
1044
1066
  if (u.done)
1045
1067
  return u.value;
1046
1068
  }
1047
- var l = Oy(n);
1069
+ var l = Cy(n);
1048
1070
  l || (n = qe(n));
1049
1071
  var h = o.global;
1050
1072
  if (h) {
@@ -1052,113 +1074,113 @@ by("replace", function(a, e, t) {
1052
1074
  o.lastIndex = 0;
1053
1075
  }
1054
1076
  for (var c = []; ; ) {
1055
- var v = Ry(o, s);
1056
- if (v === null || (Na(c, v), !h))
1077
+ var v = _y(o, s);
1078
+ if (v === null || (Ia(c, v), !h))
1057
1079
  break;
1058
1080
  var d = qe(v[0]);
1059
- d === "" && (o.lastIndex = wy(s, $y(o.lastIndex), f));
1081
+ d === "" && (o.lastIndex = Iy(s, Py(o.lastIndex), f));
1060
1082
  }
1061
1083
  for (var g = "", p = 0, y = 0; y < c.length; y++) {
1062
1084
  v = c[y];
1063
- for (var x = qe(v[0]), b = Ny(My(Ey(v.index), s.length), 0), T = [], $ = 1; $ < v.length; $++)
1064
- Na(T, Dy(v[$]));
1085
+ for (var x = qe(v[0]), b = Vy(Ly(Ay(v.index), s.length), 0), T = [], $ = 1; $ < v.length; $++)
1086
+ Ia(T, By(v[$]));
1065
1087
  var E = v.groups;
1066
1088
  if (l) {
1067
- var O = _y([x], T, b, s);
1068
- E !== void 0 && Na(O, E);
1069
- var w = qe(my(n, void 0, O));
1089
+ var O = ky([x], T, b, s);
1090
+ E !== void 0 && Ia(O, E);
1091
+ var w = qe(Oy(n, void 0, O));
1070
1092
  } else
1071
- w = Py(x, s, b, T, E, n);
1072
- b >= p && (g += Ms(s, p, b) + w, p = b + x.length);
1093
+ w = My(x, s, b, T, E, n);
1094
+ b >= p && (g += _s(s, p, b) + w, p = b + x.length);
1073
1095
  }
1074
- return g + Ms(s, p);
1096
+ return g + _s(s, p);
1075
1097
  }
1076
1098
  ];
1077
- }, !Ly || !Vy || _s);
1078
- var ky = Te, By = Fe, Fy = G, jy = Fy("match"), Yu = function(a) {
1099
+ }, !jy || !Fy || Ds);
1100
+ var Uy = Te, zy = Fe, Gy = G, Hy = Gy("match"), qu = function(a) {
1079
1101
  var e;
1080
- return ky(a) && ((e = a[jy]) !== void 0 ? !!e : By(a) == "RegExp");
1081
- }, Uy = Yu, zy = TypeError, Zi = function(a) {
1082
- if (Uy(a))
1083
- throw zy("The method doesn't accept regular expressions");
1102
+ return Uy(a) && ((e = a[Hy]) !== void 0 ? !!e : zy(a) == "RegExp");
1103
+ }, Yy = qu, Xy = TypeError, Ji = function(a) {
1104
+ if (Yy(a))
1105
+ throw Xy("The method doesn't accept regular expressions");
1084
1106
  return a;
1085
- }, Gy = G, Hy = Gy("match"), Ji = function(a) {
1107
+ }, Wy = G, qy = Wy("match"), en = function(a) {
1086
1108
  var e = /./;
1087
1109
  try {
1088
1110
  "/./"[a](e);
1089
1111
  } catch {
1090
1112
  try {
1091
- return e[Hy] = !1, "/./"[a](e);
1113
+ return e[qy] = !1, "/./"[a](e);
1092
1114
  } catch {
1093
1115
  }
1094
1116
  }
1095
1117
  return !1;
1096
- }, Yy = ee, Xu = It, Xy = ut.f, Wy = ht, Ds = pe, qy = Zi, Qy = ge, Ky = Ji, Vs = Xu("".startsWith), Zy = Xu("".slice), Jy = Math.min, Wu = Ky("startsWith"), em = !Wu && !!function() {
1097
- var a = Xy(String.prototype, "startsWith");
1118
+ }, Qy = ee, Qu = Rt, Ky = ot.f, Zy = lt, Vs = pe, Jy = Ji, em = ge, tm = en, Ls = Qu("".startsWith), rm = Qu("".slice), am = Math.min, Ku = tm("startsWith"), im = !Ku && !!function() {
1119
+ var a = Ky(String.prototype, "startsWith");
1098
1120
  return a && !a.writable;
1099
1121
  }();
1100
- Yy({ target: "String", proto: !0, forced: !em && !Wu }, {
1122
+ Qy({ target: "String", proto: !0, forced: !im && !Ku }, {
1101
1123
  startsWith: function(e) {
1102
- var t = Ds(Qy(this));
1103
- qy(e);
1104
- var r = Wy(Jy(arguments.length > 1 ? arguments[1] : void 0, t.length)), i = Ds(e);
1105
- return Vs ? Vs(t, i, r) : Zy(t, r, r + i.length) === i;
1124
+ var t = Vs(em(this));
1125
+ Jy(e);
1126
+ var r = Zy(am(arguments.length > 1 ? arguments[1] : void 0, t.length)), i = Vs(e);
1127
+ return Ls ? Ls(t, i, r) : rm(t, r, r + i.length) === i;
1106
1128
  }
1107
1129
  });
1108
- var tm = G, rm = Yi, am = de.f, ci = tm("unscopables"), gi = Array.prototype;
1109
- gi[ci] == null && am(gi, ci, {
1130
+ var nm = G, sm = Xi, om = de.f, ci = nm("unscopables"), gi = Array.prototype;
1131
+ gi[ci] == null && om(gi, ci, {
1110
1132
  configurable: !0,
1111
- value: rm(null)
1133
+ value: sm(null)
1112
1134
  });
1113
- var im = function(a) {
1135
+ var um = function(a) {
1114
1136
  gi[ci][a] = !0;
1115
- }, nm = L, sm = !nm(function() {
1137
+ }, lm = L, hm = !lm(function() {
1116
1138
  function a() {
1117
1139
  }
1118
1140
  return a.prototype.constructor = null, Object.getPrototypeOf(new a()) !== a.prototype;
1119
- }), om = le, um = D, lm = wr, hm = Ai, vm = sm, Ls = hm("IE_PROTO"), di = Object, fm = di.prototype, qu = vm ? di.getPrototypeOf : function(a) {
1120
- var e = lm(a);
1121
- if (om(e, Ls))
1122
- return e[Ls];
1141
+ }), vm = le, fm = D, cm = $r, gm = Pi, dm = hm, ks = gm("IE_PROTO"), di = Object, pm = di.prototype, Zu = dm ? di.getPrototypeOf : function(a) {
1142
+ var e = cm(a);
1143
+ if (vm(e, ks))
1144
+ return e[ks];
1123
1145
  var t = e.constructor;
1124
- return um(t) && e instanceof t ? t.prototype : e instanceof di ? fm : null;
1125
- }, cm = L, gm = D, dm = Te, ks = qu, pm = ze, ym = G, pi = ym("iterator"), Qu = !1, ke, Ma, _a;
1126
- [].keys && (_a = [].keys(), "next" in _a ? (Ma = ks(ks(_a)), Ma !== Object.prototype && (ke = Ma)) : Qu = !0);
1127
- var mm = !dm(ke) || cm(function() {
1146
+ return fm(t) && e instanceof t ? t.prototype : e instanceof di ? pm : null;
1147
+ }, ym = L, mm = D, bm = Te, Bs = Zu, xm = ze, Tm = G, pi = Tm("iterator"), Ju = !1, ke, Na, Ma;
1148
+ [].keys && (Ma = [].keys(), "next" in Ma ? (Na = Bs(Bs(Ma)), Na !== Object.prototype && (ke = Na)) : Ju = !0);
1149
+ var Om = !bm(ke) || ym(function() {
1128
1150
  var a = {};
1129
1151
  return ke[pi].call(a) !== a;
1130
1152
  });
1131
- mm && (ke = {});
1132
- gm(ke[pi]) || pm(ke, pi, function() {
1153
+ Om && (ke = {});
1154
+ mm(ke[pi]) || xm(ke, pi, function() {
1133
1155
  return this;
1134
1156
  });
1135
- var Ku = {
1157
+ var el = {
1136
1158
  IteratorPrototype: ke,
1137
- BUGGY_SAFARI_ITERATORS: Qu
1138
- }, bm = Ku.IteratorPrototype, xm = Yi, Tm = Or, Om = Ni, Sm = Mt, Em = function() {
1159
+ BUGGY_SAFARI_ITERATORS: Ju
1160
+ }, Sm = el.IteratorPrototype, Em = Xi, $m = Tr, Cm = Mi, wm = Nt, Am = function() {
1139
1161
  return this;
1140
- }, $m = function(a, e, t, r) {
1162
+ }, Pm = function(a, e, t, r) {
1141
1163
  var i = e + " Iterator";
1142
- return a.prototype = xm(bm, { next: Tm(+!r, t) }), Om(a, i, !1), Sm[i] = Em, a;
1143
- }, Cm = ee, wm = Y, Zu = Pr, Am = D, Pm = $m, Bs = qu, Fs = su, Rm = Ni, Im = At, Da = ze, Nm = G, Mm = Mt, Ju = Ku, _m = Zu.PROPER, Dm = Zu.CONFIGURABLE, js = Ju.IteratorPrototype, tr = Ju.BUGGY_SAFARI_ITERATORS, gt = Nm("iterator"), Us = "keys", dt = "values", zs = "entries", Vm = function() {
1164
+ return a.prototype = Em(Sm, { next: $m(+!r, t) }), Cm(a, i, !1), wm[i] = Am, a;
1165
+ }, Rm = ee, Im = Y, tl = wr, Nm = D, Mm = Pm, Fs = Zu, js = lu, _m = Mi, Dm = wt, _a = ze, Vm = G, Lm = Nt, rl = el, km = tl.PROPER, Bm = tl.CONFIGURABLE, Us = rl.IteratorPrototype, er = rl.BUGGY_SAFARI_ITERATORS, ct = Vm("iterator"), zs = "keys", gt = "values", Gs = "entries", Fm = function() {
1144
1166
  return this;
1145
- }, Lm = function(a, e, t, r, i, n, o) {
1146
- Pm(t, e, r);
1167
+ }, jm = function(a, e, t, r, i, n, o) {
1168
+ Mm(t, e, r);
1147
1169
  var s = function(y) {
1148
1170
  if (y === i && c)
1149
1171
  return c;
1150
- if (!tr && y in h)
1172
+ if (!er && y in h)
1151
1173
  return h[y];
1152
1174
  switch (y) {
1153
- case Us:
1175
+ case zs:
1154
1176
  return function() {
1155
1177
  return new t(this, y);
1156
1178
  };
1157
- case dt:
1179
+ case gt:
1158
1180
  return function() {
1159
1181
  return new t(this, y);
1160
1182
  };
1161
- case zs:
1183
+ case Gs:
1162
1184
  return function() {
1163
1185
  return new t(this, y);
1164
1186
  };
@@ -1166,42 +1188,45 @@ var Ku = {
1166
1188
  return function() {
1167
1189
  return new t(this);
1168
1190
  };
1169
- }, u = e + " Iterator", l = !1, h = a.prototype, f = h[gt] || h["@@iterator"] || i && h[i], c = !tr && f || s(i), v = e == "Array" && h.entries || f, d, g, p;
1170
- if (v && (d = Bs(v.call(new a())), d !== Object.prototype && d.next && (Bs(d) !== js && (Fs ? Fs(d, js) : Am(d[gt]) || Da(d, gt, Vm)), Rm(d, u, !0))), _m && i == dt && f && f.name !== dt && (Dm ? Im(h, "name", dt) : (l = !0, c = function() {
1171
- return wm(f, this);
1191
+ }, u = e + " Iterator", l = !1, h = a.prototype, f = h[ct] || h["@@iterator"] || i && h[i], c = !er && f || s(i), v = e == "Array" && h.entries || f, d, g, p;
1192
+ if (v && (d = Fs(v.call(new a())), d !== Object.prototype && d.next && (Fs(d) !== Us && (js ? js(d, Us) : Nm(d[ct]) || _a(d, ct, Fm)), _m(d, u, !0))), km && i == gt && f && f.name !== gt && (Bm ? Dm(h, "name", gt) : (l = !0, c = function() {
1193
+ return Im(f, this);
1172
1194
  })), i)
1173
1195
  if (g = {
1174
- values: s(dt),
1175
- keys: n ? c : s(Us),
1176
- entries: s(zs)
1196
+ values: s(gt),
1197
+ keys: n ? c : s(zs),
1198
+ entries: s(Gs)
1177
1199
  }, o)
1178
1200
  for (p in g)
1179
- (tr || l || !(p in h)) && Da(h, p, g[p]);
1201
+ (er || l || !(p in h)) && _a(h, p, g[p]);
1180
1202
  else
1181
- Cm({ target: e, proto: !0, forced: tr || l }, g);
1182
- return h[gt] !== c && Da(h, gt, c, { name: i }), Mm[e] = c, g;
1183
- }, km = function(a, e) {
1203
+ Rm({ target: e, proto: !0, forced: er || l }, g);
1204
+ return h[ct] !== c && _a(h, ct, c, { name: i }), Lm[e] = c, g;
1205
+ }, Um = function(a, e) {
1184
1206
  return { value: a, done: e };
1185
- }, Bm = wt, en = im, Gs = Mt, el = Rr, Fm = de.f, jm = Lm, rr = km, Um = ce, tl = "Array Iterator", zm = el.set, Gm = el.getterFor(tl), Hm = jm(Array, "Array", function(a, e) {
1186
- zm(this, {
1187
- type: tl,
1188
- target: Bm(a),
1207
+ }, zm = Ct, tn = um, Hs = Nt, al = Ar, Gm = de.f, Hm = jm, tr = Um, Ym = ce, il = "Array Iterator", Xm = al.set, Wm = al.getterFor(il), qm = Hm(Array, "Array", function(a, e) {
1208
+ Xm(this, {
1209
+ type: il,
1210
+ target: zm(a),
1211
+ // target
1189
1212
  index: 0,
1213
+ // next index
1190
1214
  kind: e
1215
+ // kind
1191
1216
  });
1192
1217
  }, function() {
1193
- var a = Gm(this), e = a.target, t = a.kind, r = a.index++;
1194
- return !e || r >= e.length ? (a.target = void 0, rr(void 0, !0)) : t == "keys" ? rr(r, !1) : t == "values" ? rr(e[r], !1) : rr([r, e[r]], !1);
1195
- }, "values"), Hs = Gs.Arguments = Gs.Array;
1196
- en("keys");
1197
- en("values");
1198
- en("entries");
1199
- if (Um && Hs.name !== "values")
1218
+ var a = Wm(this), e = a.target, t = a.kind, r = a.index++;
1219
+ return !e || r >= e.length ? (a.target = void 0, tr(void 0, !0)) : t == "keys" ? tr(r, !1) : t == "values" ? tr(e[r], !1) : tr([r, e[r]], !1);
1220
+ }, "values"), Ys = Hs.Arguments = Hs.Array;
1221
+ tn("keys");
1222
+ tn("values");
1223
+ tn("entries");
1224
+ if (Ym && Ys.name !== "values")
1200
1225
  try {
1201
- Fm(Hs, "name", { value: "values" });
1226
+ Gm(Ys, "name", { value: "values" });
1202
1227
  } catch {
1203
1228
  }
1204
- var Ym = {
1229
+ var Qm = {
1205
1230
  CSSRuleList: 0,
1206
1231
  CSSStyleDeclaration: 0,
1207
1232
  CSSValueList: 0,
@@ -1233,29 +1258,29 @@ var Ym = {
1233
1258
  TextTrackCueList: 0,
1234
1259
  TextTrackList: 0,
1235
1260
  TouchList: 0
1236
- }, Xm = Ar, Va = Xm("span").classList, Ys = Va && Va.constructor && Va.constructor.prototype, Wm = Ys === Object.prototype ? void 0 : Ys, Xs = z, rl = Ym, qm = Wm, bt = Hm, La = At, al = G, ka = al("iterator"), Ws = al("toStringTag"), Ba = bt.values, il = function(a, e) {
1261
+ }, Km = Cr, Da = Km("span").classList, Xs = Da && Da.constructor && Da.constructor.prototype, Zm = Xs === Object.prototype ? void 0 : Xs, Ws = z, nl = Qm, Jm = Zm, mt = qm, Va = wt, sl = G, La = sl("iterator"), qs = sl("toStringTag"), ka = mt.values, ol = function(a, e) {
1237
1262
  if (a) {
1238
- if (a[ka] !== Ba)
1263
+ if (a[La] !== ka)
1239
1264
  try {
1240
- La(a, ka, Ba);
1265
+ Va(a, La, ka);
1241
1266
  } catch {
1242
- a[ka] = Ba;
1267
+ a[La] = ka;
1243
1268
  }
1244
- if (a[Ws] || La(a, Ws, e), rl[e]) {
1245
- for (var t in bt)
1246
- if (a[t] !== bt[t])
1269
+ if (a[qs] || Va(a, qs, e), nl[e]) {
1270
+ for (var t in mt)
1271
+ if (a[t] !== mt[t])
1247
1272
  try {
1248
- La(a, t, bt[t]);
1273
+ Va(a, t, mt[t]);
1249
1274
  } catch {
1250
- a[t] = bt[t];
1275
+ a[t] = mt[t];
1251
1276
  }
1252
1277
  }
1253
1278
  }
1254
1279
  };
1255
- for (var Fa in rl)
1256
- il(Xs[Fa] && Xs[Fa].prototype, Fa);
1257
- il(qm, "DOMTokenList");
1258
- function tn(a, e, t) {
1280
+ for (var Ba in nl)
1281
+ ol(Ws[Ba] && Ws[Ba].prototype, Ba);
1282
+ ol(Jm, "DOMTokenList");
1283
+ function rn(a, e, t) {
1259
1284
  return e in a ? Object.defineProperty(a, e, {
1260
1285
  value: t,
1261
1286
  enumerable: !0,
@@ -1263,10 +1288,10 @@ function tn(a, e, t) {
1263
1288
  writable: !0
1264
1289
  }) : a[e] = t, a;
1265
1290
  }
1266
- var Qm = we, Km = wr, Zm = Bo, Jm = Nr, e0 = TypeError, qs = function(a) {
1291
+ var e0 = we, t0 = $r, r0 = jo, a0 = Rr, i0 = TypeError, Qs = function(a) {
1267
1292
  return function(e, t, r, i) {
1268
- Qm(t);
1269
- var n = Km(e), o = Zm(n), s = Jm(n), u = a ? s - 1 : 0, l = a ? -1 : 1;
1293
+ e0(t);
1294
+ var n = t0(e), o = r0(n), s = a0(n), u = a ? s - 1 : 0, l = a ? -1 : 1;
1270
1295
  if (r < 2)
1271
1296
  for (; ; ) {
1272
1297
  if (u in o) {
@@ -1274,49 +1299,53 @@ var Qm = we, Km = wr, Zm = Bo, Jm = Nr, e0 = TypeError, qs = function(a) {
1274
1299
  break;
1275
1300
  }
1276
1301
  if (u += l, a ? u < 0 : s <= u)
1277
- throw e0("Reduce of empty array with no initial value");
1302
+ throw i0("Reduce of empty array with no initial value");
1278
1303
  }
1279
1304
  for (; a ? u >= 0 : s > u; u += l)
1280
1305
  u in o && (i = t(i, o[u], u, n));
1281
1306
  return i;
1282
1307
  };
1283
- }, t0 = {
1284
- left: qs(!1),
1285
- right: qs(!0)
1286
- }, r0 = L, nl = function(a, e) {
1308
+ }, n0 = {
1309
+ // `Array.prototype.reduce` method
1310
+ // https://tc39.es/ecma262/#sec-array.prototype.reduce
1311
+ left: Qs(!1),
1312
+ // `Array.prototype.reduceRight` method
1313
+ // https://tc39.es/ecma262/#sec-array.prototype.reduceright
1314
+ right: Qs(!0)
1315
+ }, s0 = L, ul = function(a, e) {
1287
1316
  var t = [][a];
1288
- return !!t && r0(function() {
1317
+ return !!t && s0(function() {
1289
1318
  t.call(null, e || function() {
1290
1319
  return 1;
1291
1320
  }, 1);
1292
1321
  });
1293
- }, a0 = ee, i0 = t0.left, n0 = nl, Qs = Oi, s0 = Rt, o0 = !s0 && Qs > 79 && Qs < 83, u0 = o0 || !n0("reduce");
1294
- a0({ target: "Array", proto: !0, forced: u0 }, {
1322
+ }, o0 = ee, u0 = n0.left, l0 = ul, Ks = Oi, h0 = Pt, v0 = !h0 && Ks > 79 && Ks < 83, f0 = v0 || !l0("reduce");
1323
+ o0({ target: "Array", proto: !0, forced: f0 }, {
1295
1324
  reduce: function(e) {
1296
1325
  var t = arguments.length;
1297
- return i0(this, e, t, t > 1 ? arguments[1] : void 0);
1326
+ return u0(this, e, t, t > 1 ? arguments[1] : void 0);
1298
1327
  }
1299
1328
  });
1300
- var l0 = ee, sl = It, h0 = ut.f, v0 = ht, Ks = pe, f0 = Zi, c0 = ge, g0 = Ji, Zs = sl("".endsWith), d0 = sl("".slice), p0 = Math.min, ol = g0("endsWith"), y0 = !ol && !!function() {
1301
- var a = h0(String.prototype, "endsWith");
1329
+ var c0 = ee, ll = Rt, g0 = ot.f, d0 = lt, Zs = pe, p0 = Ji, y0 = ge, m0 = en, Js = ll("".endsWith), b0 = ll("".slice), x0 = Math.min, hl = m0("endsWith"), T0 = !hl && !!function() {
1330
+ var a = g0(String.prototype, "endsWith");
1302
1331
  return a && !a.writable;
1303
1332
  }();
1304
- l0({ target: "String", proto: !0, forced: !y0 && !ol }, {
1333
+ c0({ target: "String", proto: !0, forced: !T0 && !hl }, {
1305
1334
  endsWith: function(e) {
1306
- var t = Ks(c0(this));
1307
- f0(e);
1308
- var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i : p0(v0(r), i), o = Ks(e);
1309
- return Zs ? Zs(t, o, n) : d0(t, n - o.length, n) === o;
1335
+ var t = Zs(y0(this));
1336
+ p0(e);
1337
+ var r = arguments.length > 1 ? arguments[1] : void 0, i = t.length, n = r === void 0 ? i : x0(d0(r), i), o = Zs(e);
1338
+ return Js ? Js(t, o, n) : b0(t, n - o.length, n) === o;
1310
1339
  }
1311
1340
  });
1312
- var m0 = $i, b0 = de, x0 = Or, T0 = function(a, e, t) {
1313
- var r = m0(e);
1314
- r in a ? b0.f(a, r, x0(0, t)) : a[r] = t;
1315
- }, Js = tu, O0 = Nr, S0 = T0, E0 = Array, $0 = Math.max, C0 = function(a, e, t) {
1316
- for (var r = O0(a), i = Js(e, r), n = Js(t === void 0 ? r : t, r), o = E0($0(n - i, 0)), s = 0; i < n; i++, s++)
1317
- S0(o, s, a[i]);
1341
+ var O0 = Ci, S0 = de, E0 = Tr, $0 = function(a, e, t) {
1342
+ var r = O0(e);
1343
+ r in a ? S0.f(a, r, E0(0, t)) : a[r] = t;
1344
+ }, eo = iu, C0 = Rr, w0 = $0, A0 = Array, P0 = Math.max, R0 = function(a, e, t) {
1345
+ for (var r = C0(a), i = eo(e, r), n = eo(t === void 0 ? r : t, r), o = A0(P0(n - i, 0)), s = 0; i < n; i++, s++)
1346
+ w0(o, s, a[i]);
1318
1347
  return o.length = s, o;
1319
- }, w0 = Di, pt = Y, rn = k, A0 = Xi, P0 = K, R0 = je, I0 = Yu, eo = ge, N0 = fu, M0 = qi, _0 = ht, ja = pe, D0 = lt, to = C0, ro = Qi, V0 = Vr, L0 = Fu, k0 = L, Qe = L0.UNSUPPORTED_Y, ao = 4294967295, B0 = Math.min, ul = [].push, F0 = rn(/./.exec), Ke = rn(ul), yt = rn("".slice), j0 = !k0(function() {
1348
+ }, I0 = Vi, dt = Y, an = k, N0 = Wi, M0 = K, _0 = je, D0 = qu, to = ge, V0 = du, L0 = Qi, k0 = lt, Fa = pe, B0 = ut, ro = R0, ao = Ki, F0 = _r, j0 = zu, U0 = L, Qe = j0.UNSUPPORTED_Y, io = 4294967295, z0 = Math.min, vl = [].push, G0 = an(/./.exec), Ke = an(vl), pt = an("".slice), H0 = !U0(function() {
1320
1349
  var a = /(?:)/, e = a.exec;
1321
1350
  a.exec = function() {
1322
1351
  return e.apply(this, arguments);
@@ -1324,42 +1353,51 @@ var m0 = $i, b0 = de, x0 = Or, T0 = function(a, e, t) {
1324
1353
  var t = "ab".split(a);
1325
1354
  return t.length !== 2 || t[0] !== "a" || t[1] !== "b";
1326
1355
  });
1327
- A0("split", function(a, e, t) {
1356
+ N0("split", function(a, e, t) {
1328
1357
  var r;
1329
- return "abbc".split(/(b)*/)[1] == "c" || "test".split(/(?:)/, -1).length != 4 || "ab".split(/(?:ab)*/).length != 2 || ".".split(/(.?)(.?)/).length != 4 || ".".split(/()()/).length > 1 || "".split(/.?/).length ? r = function(i, n) {
1330
- var o = ja(eo(this)), s = n === void 0 ? ao : n >>> 0;
1358
+ return "abbc".split(/(b)*/)[1] == "c" || // eslint-disable-next-line regexp/no-empty-group -- required for testing
1359
+ "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
1360
+ ".".split(/()()/).length > 1 || "".split(/.?/).length ? r = function(i, n) {
1361
+ var o = Fa(to(this)), s = n === void 0 ? io : n >>> 0;
1331
1362
  if (s === 0)
1332
1363
  return [];
1333
1364
  if (i === void 0)
1334
1365
  return [o];
1335
- if (!I0(i))
1336
- return pt(e, o, i, s);
1337
- for (var u = [], l = (i.ignoreCase ? "i" : "") + (i.multiline ? "m" : "") + (i.unicode ? "u" : "") + (i.sticky ? "y" : ""), h = 0, f = new RegExp(i.source, l + "g"), c, v, d; (c = pt(V0, f, o)) && (v = f.lastIndex, !(v > h && (Ke(u, yt(o, h, c.index)), c.length > 1 && c.index < o.length && w0(ul, u, to(c, 1)), d = c[0].length, h = v, u.length >= s))); )
1366
+ if (!D0(i))
1367
+ return dt(e, o, i, s);
1368
+ for (var u = [], l = (i.ignoreCase ? "i" : "") + (i.multiline ? "m" : "") + (i.unicode ? "u" : "") + (i.sticky ? "y" : ""), h = 0, f = new RegExp(i.source, l + "g"), c, v, d; (c = dt(F0, f, o)) && (v = f.lastIndex, !(v > h && (Ke(u, pt(o, h, c.index)), c.length > 1 && c.index < o.length && I0(vl, u, ro(c, 1)), d = c[0].length, h = v, u.length >= s))); )
1338
1369
  f.lastIndex === c.index && f.lastIndex++;
1339
- return h === o.length ? (d || !F0(f, "")) && Ke(u, "") : Ke(u, yt(o, h)), u.length > s ? to(u, 0, s) : u;
1370
+ return h === o.length ? (d || !G0(f, "")) && Ke(u, "") : Ke(u, pt(o, h)), u.length > s ? ro(u, 0, s) : u;
1340
1371
  } : "0".split(void 0, 0).length ? r = function(i, n) {
1341
- return i === void 0 && n === 0 ? [] : pt(e, this, i, n);
1372
+ return i === void 0 && n === 0 ? [] : dt(e, this, i, n);
1342
1373
  } : r = e, [
1374
+ // `String.prototype.split` method
1375
+ // https://tc39.es/ecma262/#sec-string.prototype.split
1343
1376
  function(n, o) {
1344
- var s = eo(this), u = R0(n) ? void 0 : D0(n, a);
1345
- return u ? pt(u, n, s, o) : pt(r, ja(s), n, o);
1377
+ var s = to(this), u = _0(n) ? void 0 : B0(n, a);
1378
+ return u ? dt(u, n, s, o) : dt(r, Fa(s), n, o);
1346
1379
  },
1380
+ // `RegExp.prototype[@@split]` method
1381
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@split
1382
+ //
1383
+ // NOTE: This cannot be properly polyfilled in engines that don't support
1384
+ // the 'y' flag.
1347
1385
  function(i, n) {
1348
- var o = P0(this), s = ja(i), u = t(r, o, s, n, r !== e);
1386
+ var o = M0(this), s = Fa(i), u = t(r, o, s, n, r !== e);
1349
1387
  if (u.done)
1350
1388
  return u.value;
1351
- var l = N0(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 ? ao : n >>> 0;
1389
+ 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 ? io : n >>> 0;
1352
1390
  if (v === 0)
1353
1391
  return [];
1354
1392
  if (s.length === 0)
1355
- return ro(c, s) === null ? [s] : [];
1393
+ return ao(c, s) === null ? [s] : [];
1356
1394
  for (var d = 0, g = 0, p = []; g < s.length; ) {
1357
1395
  c.lastIndex = Qe ? 0 : g;
1358
- var y = ro(c, Qe ? yt(s, g) : s), x;
1359
- if (y === null || (x = B0(_0(c.lastIndex + (Qe ? g : 0)), s.length)) === d)
1360
- g = M0(s, g, h);
1396
+ var y = ao(c, Qe ? pt(s, g) : s), x;
1397
+ if (y === null || (x = z0(k0(c.lastIndex + (Qe ? g : 0)), s.length)) === d)
1398
+ g = L0(s, g, h);
1361
1399
  else {
1362
- if (Ke(p, yt(s, d, g)), p.length === v)
1400
+ if (Ke(p, pt(s, d, g)), p.length === v)
1363
1401
  return p;
1364
1402
  for (var b = 1; b <= y.length - 1; b++)
1365
1403
  if (Ke(p, y[b]), p.length === v)
@@ -1367,41 +1405,41 @@ A0("split", function(a, e, t) {
1367
1405
  g = d = x;
1368
1406
  }
1369
1407
  }
1370
- return Ke(p, yt(s, d)), p;
1408
+ return Ke(p, pt(s, d)), p;
1371
1409
  }
1372
1410
  ];
1373
- }, !j0, Qe);
1374
- var at = { exports: {} }, xt = { exports: {} };
1411
+ }, !H0, Qe);
1412
+ var Vr = { exports: {} }, bt = { exports: {} };
1375
1413
  (function() {
1376
1414
  var a, e, t, r, i, n;
1377
- typeof performance < "u" && performance !== null && performance.now ? xt.exports = function() {
1415
+ typeof performance < "u" && performance !== null && performance.now ? bt.exports = function() {
1378
1416
  return performance.now();
1379
- } : typeof process < "u" && process !== null && process.hrtime ? (xt.exports = function() {
1417
+ } : typeof process < "u" && process !== null && process.hrtime ? (bt.exports = function() {
1380
1418
  return (a() - i) / 1e6;
1381
1419
  }, e = process.hrtime, a = function() {
1382
1420
  var o;
1383
1421
  return o = e(), o[0] * 1e9 + o[1];
1384
- }, r = a(), n = process.uptime() * 1e9, i = r - n) : Date.now ? (xt.exports = function() {
1422
+ }, r = a(), n = process.uptime() * 1e9, i = r - n) : Date.now ? (bt.exports = function() {
1385
1423
  return Date.now() - t;
1386
- }, t = Date.now()) : (xt.exports = function() {
1387
- return new Date().getTime() - t;
1388
- }, t = new Date().getTime());
1389
- }).call(cr);
1390
- var U0 = xt.exports, be = typeof window > "u" ? cr : window, ar = ["moz", "webkit"], it = "AnimationFrame", ot = be["request" + it], Ct = be["cancel" + it] || be["cancelRequest" + it];
1391
- for (var mt = 0; !ot && mt < ar.length; mt++)
1392
- ot = be[ar[mt] + "Request" + it], Ct = be[ar[mt] + "Cancel" + it] || be[ar[mt] + "CancelRequest" + it];
1393
- if (!ot || !Ct) {
1394
- var Ua = 0, io = 0, Me = [], z0 = 1e3 / 60;
1395
- ot = function(a) {
1424
+ }, t = Date.now()) : (bt.exports = function() {
1425
+ return (/* @__PURE__ */ new Date()).getTime() - t;
1426
+ }, t = (/* @__PURE__ */ new Date()).getTime());
1427
+ }).call(fr);
1428
+ var Y0 = bt.exports, X0 = Y0, be = typeof window > "u" ? fr : window, rr = ["moz", "webkit"], at = "AnimationFrame", st = be["request" + at], $t = be["cancel" + at] || be["cancelRequest" + at];
1429
+ for (var yt = 0; !st && yt < rr.length; yt++)
1430
+ st = be[rr[yt] + "Request" + at], $t = be[rr[yt] + "Cancel" + at] || be[rr[yt] + "CancelRequest" + at];
1431
+ if (!st || !$t) {
1432
+ var ja = 0, no = 0, Me = [], W0 = 1e3 / 60;
1433
+ st = function(a) {
1396
1434
  if (Me.length === 0) {
1397
- var e = U0(), t = Math.max(0, z0 - (e - Ua));
1398
- Ua = t + e, setTimeout(function() {
1435
+ var e = X0(), t = Math.max(0, W0 - (e - ja));
1436
+ ja = t + e, setTimeout(function() {
1399
1437
  var r = Me.slice(0);
1400
1438
  Me.length = 0;
1401
1439
  for (var i = 0; i < r.length; i++)
1402
1440
  if (!r[i].cancelled)
1403
1441
  try {
1404
- r[i].callback(Ua);
1442
+ r[i].callback(ja);
1405
1443
  } catch (n) {
1406
1444
  setTimeout(function() {
1407
1445
  throw n;
@@ -1410,45 +1448,53 @@ if (!ot || !Ct) {
1410
1448
  }, Math.round(t));
1411
1449
  }
1412
1450
  return Me.push({
1413
- handle: ++io,
1451
+ handle: ++no,
1414
1452
  callback: a,
1415
1453
  cancelled: !1
1416
- }), io;
1417
- }, Ct = function(a) {
1454
+ }), no;
1455
+ }, $t = function(a) {
1418
1456
  for (var e = 0; e < Me.length; e++)
1419
1457
  Me[e].handle === a && (Me[e].cancelled = !0);
1420
1458
  };
1421
1459
  }
1422
- at.exports = function(a) {
1423
- return ot.call(be, a);
1460
+ Vr.exports = function(a) {
1461
+ return st.call(be, a);
1424
1462
  };
1425
- at.exports.cancel = function() {
1426
- Ct.apply(be, arguments);
1463
+ Vr.exports.cancel = function() {
1464
+ $t.apply(be, arguments);
1427
1465
  };
1428
- at.exports.polyfill = function(a) {
1429
- a || (a = be), a.requestAnimationFrame = ot, a.cancelAnimationFrame = Ct;
1466
+ Vr.exports.polyfill = function(a) {
1467
+ a || (a = be), a.requestAnimationFrame = st, a.cancelAnimationFrame = $t;
1430
1468
  };
1431
- var ll = `
1432
- \v\f\r                 \u2028\u2029\uFEFF`, G0 = k, H0 = ge, Y0 = pe, X0 = ll, no = G0("".replace), xr = "[" + X0 + "]", W0 = RegExp("^" + xr + xr + "*"), q0 = RegExp(xr + xr + "*$"), za = function(a) {
1469
+ var q0 = Vr.exports;
1470
+ const Ua = /* @__PURE__ */ _o(q0);
1471
+ var fl = `
1472
+ \v\f\r                 \u2028\u2029\uFEFF`, Q0 = k, K0 = ge, Z0 = pe, J0 = fl, so = Q0("".replace), br = "[" + J0 + "]", eb = RegExp("^" + br + br + "*"), tb = RegExp(br + br + "*$"), za = function(a) {
1433
1473
  return function(e) {
1434
- var t = Y0(H0(e));
1435
- return a & 1 && (t = no(t, W0, "")), a & 2 && (t = no(t, q0, "")), t;
1474
+ var t = Z0(K0(e));
1475
+ return a & 1 && (t = so(t, eb, "")), a & 2 && (t = so(t, tb, "")), t;
1436
1476
  };
1437
- }, Q0 = {
1477
+ }, rb = {
1478
+ // `String.prototype.{ trimLeft, trimStart }` methods
1479
+ // https://tc39.es/ecma262/#sec-string.prototype.trimstart
1438
1480
  start: za(1),
1481
+ // `String.prototype.{ trimRight, trimEnd }` methods
1482
+ // https://tc39.es/ecma262/#sec-string.prototype.trimend
1439
1483
  end: za(2),
1484
+ // `String.prototype.trim` method
1485
+ // https://tc39.es/ecma262/#sec-string.prototype.trim
1440
1486
  trim: za(3)
1441
- }, K0 = Pr.PROPER, Z0 = L, so = ll, oo = "​…᠎", J0 = function(a) {
1442
- return Z0(function() {
1443
- return !!so[a]() || oo[a]() !== oo || K0 && so[a].name !== a;
1487
+ }, ab = wr.PROPER, ib = L, oo = fl, uo = "​…᠎", nb = function(a) {
1488
+ return ib(function() {
1489
+ return !!oo[a]() || uo[a]() !== uo || ab && oo[a].name !== a;
1444
1490
  });
1445
- }, eb = ee, tb = Q0.trim, rb = J0;
1446
- eb({ target: "String", proto: !0, forced: rb("trim") }, {
1491
+ }, sb = ee, ob = rb.trim, ub = nb;
1492
+ sb({ target: "String", proto: !0, forced: ub("trim") }, {
1447
1493
  trim: function() {
1448
- return tb(this);
1494
+ return ob(this);
1449
1495
  }
1450
1496
  });
1451
- var yi = function(a) {
1497
+ var lb = function(a) {
1452
1498
  this.ok = !1, this.alpha = 1, a.charAt(0) == "#" && (a = a.substr(1, 6)), a = a.replace(/ /g, ""), a = a.toLowerCase();
1453
1499
  var e = {
1454
1500
  aliceblue: "f0f8ff",
@@ -1677,48 +1723,64 @@ var yi = function(a) {
1677
1723
  }
1678
1724
  return v;
1679
1725
  };
1680
- }, ab = ee, ib = It, nb = ru.indexOf, sb = nl, mi = ib([].indexOf), hl = !!mi && 1 / mi([1], 1, -0) < 0, ob = hl || !sb("indexOf");
1681
- ab({ target: "Array", proto: !0, forced: ob }, {
1726
+ };
1727
+ const yi = /* @__PURE__ */ _o(lb);
1728
+ var hb = ee, vb = Rt, fb = nu.indexOf, cb = ul, mi = vb([].indexOf), cl = !!mi && 1 / mi([1], 1, -0) < 0, gb = cl || !cb("indexOf");
1729
+ hb({ target: "Array", proto: !0, forced: gb }, {
1682
1730
  indexOf: function(e) {
1683
1731
  var t = arguments.length > 1 ? arguments[1] : void 0;
1684
- return hl ? mi(this, e, t) || 0 : nb(this, e, t);
1732
+ return cl ? mi(this, e, t) || 0 : fb(this, e, t);
1685
1733
  }
1686
1734
  });
1687
- var ub = ee, lb = k, hb = Zi, vb = ge, uo = pe, fb = Ji, cb = lb("".indexOf);
1688
- ub({ target: "String", proto: !0, forced: !fb("includes") }, {
1735
+ var db = ee, pb = k, yb = Ji, mb = ge, lo = pe, bb = en, xb = pb("".indexOf);
1736
+ db({ target: "String", proto: !0, forced: !bb("includes") }, {
1689
1737
  includes: function(e) {
1690
- return !!~cb(
1691
- uo(vb(this)),
1692
- uo(hb(e)),
1738
+ return !!~xb(
1739
+ lo(mb(this)),
1740
+ lo(yb(e)),
1693
1741
  arguments.length > 1 ? arguments[1] : void 0
1694
1742
  );
1695
1743
  }
1696
1744
  });
1697
- var gb = Fe, db = Array.isArray || function(e) {
1698
- return gb(e) == "Array";
1699
- }, pb = ee, yb = k, mb = db, bb = yb([].reverse), lo = [1, 2];
1700
- pb({ target: "Array", proto: !0, forced: String(lo) === String(lo.reverse()) }, {
1745
+ var Tb = Fe, Ob = Array.isArray || function(e) {
1746
+ return Tb(e) == "Array";
1747
+ }, Sb = ee, Eb = k, $b = Ob, Cb = Eb([].reverse), ho = [1, 2];
1748
+ Sb({ target: "Array", proto: !0, forced: String(ho) === String(ho.reverse()) }, {
1701
1749
  reverse: function() {
1702
- return mb(this) && (this.length = this.length), bb(this);
1750
+ return $b(this) && (this.length = this.length), Cb(this);
1703
1751
  }
1704
1752
  });
1705
- var vl = function(a, e) {
1706
- return (vl = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
1753
+ /*! *****************************************************************************
1754
+ Copyright (c) Microsoft Corporation.
1755
+
1756
+ Permission to use, copy, modify, and/or distribute this software for any
1757
+ purpose with or without fee is hereby granted.
1758
+
1759
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1760
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1761
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1762
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1763
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1764
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1765
+ PERFORMANCE OF THIS SOFTWARE.
1766
+ ***************************************************************************** */
1767
+ var gl = function(a, e) {
1768
+ return (gl = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
1707
1769
  t.__proto__ = r;
1708
1770
  } || function(t, r) {
1709
1771
  for (var i in r)
1710
1772
  Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
1711
1773
  })(a, e);
1712
1774
  };
1713
- function fl(a, e) {
1775
+ function dl(a, e) {
1714
1776
  if (typeof e != "function" && e !== null)
1715
1777
  throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
1716
1778
  function t() {
1717
1779
  this.constructor = a;
1718
1780
  }
1719
- vl(a, e), a.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
1781
+ gl(a, e), a.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
1720
1782
  }
1721
- function xb(a) {
1783
+ function wb(a) {
1722
1784
  var e = "";
1723
1785
  Array.isArray(a) || (a = [a]);
1724
1786
  for (var t = 0; t < a.length; t++) {
@@ -1771,7 +1833,7 @@ function Ga(a, e, t) {
1771
1833
  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 * Se);
1772
1834
  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 * Se), a.sweepFlag === 1 && a.phi2 < a.phi1 && (a.phi2 += 2 * Se), a.phi1 *= 180 / Se, a.phi2 *= 180 / Se;
1773
1835
  }
1774
- function ho(a, e, t) {
1836
+ function vo(a, e, t) {
1775
1837
  oe(a, e, t);
1776
1838
  var r = a * a + e * e - t * t;
1777
1839
  if (0 > r)
@@ -1782,13 +1844,13 @@ function ho(a, e, t) {
1782
1844
  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)]];
1783
1845
  }
1784
1846
  var j, ye = Math.PI / 180;
1785
- function vo(a, e, t) {
1847
+ function fo(a, e, t) {
1786
1848
  return (1 - t) * a + t * e;
1787
1849
  }
1788
- function fo(a, e, t, r) {
1850
+ function co(a, e, t, r) {
1789
1851
  return a + Math.cos(r / 180 * Se) * e + Math.sin(r / 180 * Se) * t;
1790
1852
  }
1791
- function co(a, e, t, r) {
1853
+ function go(a, e, t, r) {
1792
1854
  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;
1793
1855
  return Math.abs(s) < i ? [-l / u] : function(h, f, c) {
1794
1856
  c === void 0 && (c = 1e-6);
@@ -1801,7 +1863,7 @@ function co(a, e, t, r) {
1801
1863
  return [-h / 2 - d, -h / 2 + d];
1802
1864
  }(u / s, l / s, i);
1803
1865
  }
1804
- function go(a, e, t, r, i) {
1866
+ function po(a, e, t, r, i) {
1805
1867
  var n = 1 - i;
1806
1868
  return a * (n * n * n) + e * (3 * n * n * i) + t * (3 * n * i * i) + r * (i * i * i);
1807
1869
  }
@@ -1916,11 +1978,11 @@ function go(a, e, t, r, i) {
1916
1978
  var v, d, g, p;
1917
1979
  h.cX || Ga(h, f, c);
1918
1980
  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++) {
1919
- var w = vo(h.phi1, h.phi2, O / b), N = vo(h.phi1, h.phi2, (O + 1) / b), _ = N - w, B = 4 / 3 * Math.tan(_ * ye / 4), P = [Math.cos(w * ye) - B * Math.sin(w * ye), Math.sin(w * ye) + B * Math.cos(w * ye)], X = P[0], W = P[1], U = [Math.cos(N * ye), Math.sin(N * ye)], q = U[0], H = U[1], Q = [q + B * Math.sin(N * ye), H - B * Math.cos(N * ye)], R = Q[0], M = Q[1];
1981
+ var w = fo(h.phi1, h.phi2, O / b), N = fo(h.phi1, h.phi2, (O + 1) / b), _ = N - w, B = 4 / 3 * Math.tan(_ * ye / 4), P = [Math.cos(w * ye) - B * Math.sin(w * ye), Math.sin(w * ye) + B * Math.cos(w * ye)], X = P[0], W = P[1], U = [Math.cos(N * ye), Math.sin(N * ye)], q = U[0], H = U[1], Q = [q + B * Math.sin(N * ye), H - B * Math.cos(N * ye)], R = Q[0], M = Q[1];
1920
1982
  T[O] = { relative: h.relative, type: m.CURVE_TO };
1921
1983
  var Z = function(ne, ve) {
1922
- var Oe = bi([ne * h.rX, ve * h.rY], h.xRot), He = Oe[0], Dt = Oe[1];
1923
- return [h.cX + He, h.cY + Dt];
1984
+ var Oe = bi([ne * h.rX, ve * h.rY], h.xRot), He = Oe[0], _t = Oe[1];
1985
+ return [h.cX + He, h.cY + _t];
1924
1986
  };
1925
1987
  v = Z(X, W), T[O].x1 = v[0], T[O].y1 = v[1], d = Z(R, M), T[O].x2 = d[0], T[O].y2 = d[1], g = Z(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];
1926
1988
  }
@@ -1947,21 +2009,21 @@ function go(a, e, t, r, i) {
1947
2009
  }
1948
2010
  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) {
1949
2011
  p(g.x), y(g.y);
1950
- for (var x = 0, b = co(v, g.x1, g.x2, g.x); x < b.length; x++)
1951
- 0 < (R = b[x]) && 1 > R && p(go(v, g.x1, g.x2, g.x, R));
1952
- for (var T = 0, $ = co(d, g.y1, g.y2, g.y); T < $.length; T++)
1953
- 0 < (R = $[T]) && 1 > R && y(go(d, g.y1, g.y2, g.y, R));
2012
+ for (var x = 0, b = go(v, g.x1, g.x2, g.x); x < b.length; x++)
2013
+ 0 < (R = b[x]) && 1 > R && p(po(v, g.x1, g.x2, g.x, R));
2014
+ for (var T = 0, $ = go(d, g.y1, g.y2, g.y); T < $.length; T++)
2015
+ 0 < (R = $[T]) && 1 > R && y(po(d, g.y1, g.y2, g.y, R));
1954
2016
  }
1955
2017
  if (g.type & m.ARC) {
1956
2018
  p(g.x), y(g.y), Ga(g, v, d);
1957
2019
  for (var E = g.xRot / 180 * Math.PI, O = Math.cos(E) * g.rX, w = Math.sin(E) * g.rX, N = -Math.sin(E) * g.rY, _ = Math.cos(E) * g.rY, B = g.phi1 < g.phi2 ? [g.phi1, g.phi2] : -180 > g.phi2 ? [g.phi2 + 360, g.phi1 + 360] : [g.phi2, g.phi1], P = B[0], X = B[1], W = function(M) {
1958
2020
  var Z = M[0], ne = M[1], ve = 180 * Math.atan2(ne, Z) / Math.PI;
1959
2021
  return ve < P ? ve + 360 : ve;
1960
- }, U = 0, q = ho(N, -O, 0).map(W); U < q.length; U++)
1961
- (R = q[U]) > P && R < X && p(fo(g.cX, O, N, R));
1962
- for (var H = 0, Q = ho(_, -w, 0).map(W); H < Q.length; H++) {
2022
+ }, U = 0, q = vo(N, -O, 0).map(W); U < q.length; U++)
2023
+ (R = q[U]) > P && R < X && p(co(g.cX, O, N, R));
2024
+ for (var H = 0, Q = vo(_, -w, 0).map(W); H < Q.length; H++) {
1963
2025
  var R;
1964
- (R = Q[H]) > P && R < X && y(fo(g.cY, w, _, R));
2026
+ (R = Q[H]) > P && R < X && y(co(g.cY, w, _, R));
1965
2027
  }
1966
2028
  }
1967
2029
  return c;
@@ -1969,7 +2031,7 @@ function go(a, e, t, r, i) {
1969
2031
  return f.minX = 1 / 0, f.maxX = -1 / 0, f.minY = 1 / 0, f.maxY = -1 / 0, f;
1970
2032
  };
1971
2033
  })(j || (j = {}));
1972
- var se, cl = function() {
2034
+ var se, pl = function() {
1973
2035
  function a() {
1974
2036
  }
1975
2037
  return a.prototype.round = function(e) {
@@ -2007,17 +2069,17 @@ var se, cl = function() {
2007
2069
  }, a.prototype.annotateArcs = function() {
2008
2070
  return this.transform(j.ANNOTATE_ARCS());
2009
2071
  }, a;
2010
- }(), Tb = function(a) {
2072
+ }(), Ab = function(a) {
2011
2073
  return a === " " || a === " " || a === "\r" || a === `
2012
2074
  `;
2013
- }, po = function(a) {
2075
+ }, yo = function(a) {
2014
2076
  return "0".charCodeAt(0) <= a.charCodeAt(0) && a.charCodeAt(0) <= "9".charCodeAt(0);
2015
- }, Ob = function(a) {
2077
+ }, Pb = function(a) {
2016
2078
  function e() {
2017
2079
  var t = a.call(this) || this;
2018
2080
  return t.curNumber = "", t.curCommandType = -1, t.curCommandRelative = !1, t.canParseCommandOrComma = !0, t.curNumberHasExp = !1, t.curNumberHasExpDigits = !1, t.curNumberHasDecimal = !1, t.curArgs = [], t;
2019
2081
  }
2020
- return fl(e, a), e.prototype.finish = function(t) {
2082
+ return dl(e, a), e.prototype.finish = function(t) {
2021
2083
  if (t === void 0 && (t = []), this.parse(" ", t), this.curArgs.length !== 0 || !this.canParseCommandOrComma)
2022
2084
  throw new SyntaxError("Unterminated command at the path end.");
2023
2085
  return t;
@@ -2027,8 +2089,8 @@ var se, cl = function() {
2027
2089
  for (var n = function(f) {
2028
2090
  r.push(f), i.curArgs.length = 0, i.canParseCommandOrComma = !0;
2029
2091
  }, o = 0; o < t.length; o++) {
2030
- 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 = po(s) && (this.curNumber === "0" && s === "0" || u);
2031
- if (!po(s) || l)
2092
+ 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 = yo(s) && (this.curNumber === "0" && s === "0" || u);
2093
+ if (!yo(s) || l)
2032
2094
  if (s !== "e" && s !== "E")
2033
2095
  if (s !== "-" && s !== "+" || !this.curNumberHasExp || this.curNumberHasExpDigits)
2034
2096
  if (s !== "." || this.curNumberHasExp || this.curNumberHasDecimal || u) {
@@ -2043,9 +2105,9 @@ var se, cl = function() {
2043
2105
  } else if ((this.curArgs.length === 3 || this.curArgs.length === 4) && this.curNumber !== "0" && this.curNumber !== "1")
2044
2106
  throw new SyntaxError('Expected a flag, got "' + this.curNumber + '" at index "' + o + '"');
2045
2107
  }
2046
- this.curArgs.push(h), this.curArgs.length === Sb[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;
2108
+ this.curArgs.push(h), this.curArgs.length === Rb[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;
2047
2109
  }
2048
- if (!Tb(s))
2110
+ if (!Ab(s))
2049
2111
  if (s === "," && this.canParseCommandOrComma)
2050
2112
  this.canParseCommandOrComma = !1;
2051
2113
  else if (s !== "+" && s !== "-" && s !== ".")
@@ -2103,12 +2165,12 @@ var se, cl = function() {
2103
2165
  return i;
2104
2166
  } } });
2105
2167
  }, e;
2106
- }(cl), m = function(a) {
2168
+ }(pl), m = function(a) {
2107
2169
  function e(t) {
2108
2170
  var r = a.call(this) || this;
2109
2171
  return r.commands = typeof t == "string" ? e.parse(t) : t, r;
2110
2172
  }
2111
- return fl(e, a), e.prototype.encode = function() {
2173
+ return dl(e, a), e.prototype.encode = function() {
2112
2174
  return e.encode(this.commands);
2113
2175
  }, e.prototype.getBounds = function() {
2114
2176
  var t = j.CALCULATE_BOUNDS();
@@ -2120,35 +2182,36 @@ var se, cl = function() {
2120
2182
  }
2121
2183
  return this.commands = r, this;
2122
2184
  }, e.encode = function(t) {
2123
- return xb(t);
2185
+ return wb(t);
2124
2186
  }, e.parse = function(t) {
2125
- var r = new Ob(), i = [];
2187
+ var r = new Pb(), i = [];
2126
2188
  return r.parse(t, i), r.finish(i), i;
2127
2189
  }, 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;
2128
- }(cl), Sb = ((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), Eb = Y, $b = le, Cb = Sr, wb = Bu, yo = RegExp.prototype, Ab = function(a) {
2190
+ }(pl), Rb = ((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), Ib = Y, Nb = le, Mb = Or, _b = Uu, mo = RegExp.prototype, Db = function(a) {
2129
2191
  var e = a.flags;
2130
- return e === void 0 && !("flags" in yo) && !$b(a, "flags") && Cb(yo, a) ? Eb(wb, a) : e;
2131
- }, Pb = Pr.PROPER, Rb = ze, Ib = K, mo = pe, Nb = L, Mb = Ab, an = "toString", _b = RegExp.prototype, gl = _b[an], Db = Nb(function() {
2132
- return gl.call({ source: "a", flags: "b" }) != "/a/b";
2133
- }), Vb = Pb && gl.name != an;
2134
- (Db || Vb) && Rb(RegExp.prototype, an, function() {
2135
- var e = Ib(this), t = mo(e.source), r = mo(Mb(e));
2192
+ return e === void 0 && !("flags" in mo) && !Nb(a, "flags") && Mb(mo, a) ? Ib(_b, a) : e;
2193
+ }, Vb = wr.PROPER, Lb = ze, kb = K, bo = pe, Bb = L, Fb = Db, nn = "toString", jb = RegExp.prototype, yl = jb[nn], Ub = Bb(function() {
2194
+ return yl.call({ source: "a", flags: "b" }) != "/a/b";
2195
+ }), zb = Vb && yl.name != nn;
2196
+ (Ub || zb) && Lb(RegExp.prototype, nn, function() {
2197
+ var e = kb(this), t = bo(e.source), r = bo(Fb(e));
2136
2198
  return "/" + t + "/" + r;
2137
2199
  }, { unsafe: !0 });
2138
- function fr(a) {
2139
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? fr = function(e) {
2200
+ function vr(a) {
2201
+ "@babel/helpers - typeof";
2202
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? vr = function(e) {
2140
2203
  return typeof e;
2141
- } : fr = function(e) {
2204
+ } : vr = function(e) {
2142
2205
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
2143
- }, fr(a);
2206
+ }, vr(a);
2144
2207
  }
2145
- function Lb(a, e) {
2208
+ function Gb(a, e) {
2146
2209
  if (!(a instanceof e))
2147
2210
  throw new TypeError("Cannot call a class as a function");
2148
2211
  }
2149
- var kb = [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], Bb = [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];
2150
- function Fb(a, e, t, r, i) {
2151
- if (typeof a == "string" && (a = document.getElementById(a)), !a || fr(a) !== "object" || !("getContext" in a))
2212
+ var Hb = [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], Yb = [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];
2213
+ function Xb(a, e, t, r, i) {
2214
+ if (typeof a == "string" && (a = document.getElementById(a)), !a || vr(a) !== "object" || !("getContext" in a))
2152
2215
  throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");
2153
2216
  var n = a.getContext("2d");
2154
2217
  try {
@@ -2157,64 +2220,69 @@ function Fb(a, e, t, r, i) {
2157
2220
  throw new Error("unable to access image data: " + o);
2158
2221
  }
2159
2222
  }
2160
- function jb(a, e, t, r, i, n) {
2223
+ function Wb(a, e, t, r, i, n) {
2161
2224
  if (!(isNaN(n) || n < 1)) {
2162
2225
  n |= 0;
2163
- var o = Fb(a, e, t, r, i);
2164
- o = Ub(o, e, t, r, i, n), a.getContext("2d").putImageData(o, e, t);
2226
+ var o = Xb(a, e, t, r, i);
2227
+ o = qb(o, e, t, r, i, n), a.getContext("2d").putImageData(o, e, t);
2165
2228
  }
2166
2229
  }
2167
- function Ub(a, e, t, r, i, n) {
2168
- 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 bo(), v = c, d, g = 1; g < s; g++)
2169
- v = v.next = new bo(), g === h && (d = v);
2230
+ function qb(a, e, t, r, i, n) {
2231
+ 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 xo(), v = c, d, g = 1; g < s; g++)
2232
+ v = v.next = new xo(), g === h && (d = v);
2170
2233
  v.next = c;
2171
- for (var p = null, y = null, x = 0, b = 0, T = kb[n], $ = Bb[n], E = 0; E < i; E++) {
2234
+ for (var p = null, y = null, x = 0, b = 0, T = Hb[n], $ = Yb[n], E = 0; E < i; E++) {
2172
2235
  v = c;
2173
2236
  for (var O = o[b], w = o[b + 1], N = o[b + 2], _ = o[b + 3], B = 0; B < h; B++)
2174
2237
  v.r = O, v.g = w, v.b = N, v.a = _, v = v.next;
2175
2238
  for (var P = 0, X = 0, W = 0, U = 0, q = h * O, H = h * w, Q = h * N, R = h * _, M = f * O, Z = f * w, ne = f * N, ve = f * _, Oe = 1; Oe < h; Oe++) {
2176
- var He = b + ((u < Oe ? u : Oe) << 2), Dt = o[He], on = o[He + 1], un = o[He + 2], ln = o[He + 3], Vt = h - Oe;
2177
- M += (v.r = Dt) * Vt, Z += (v.g = on) * Vt, ne += (v.b = un) * Vt, ve += (v.a = ln) * Vt, P += Dt, X += on, W += un, U += ln, v = v.next;
2239
+ var He = b + ((u < Oe ? u : Oe) << 2), _t = o[He], un = o[He + 1], ln = o[He + 2], hn = o[He + 3], Dt = h - Oe;
2240
+ M += (v.r = _t) * Dt, Z += (v.g = un) * Dt, ne += (v.b = ln) * Dt, ve += (v.a = hn) * Dt, P += _t, X += un, W += ln, U += hn, v = v.next;
2178
2241
  }
2179
2242
  p = c, y = d;
2180
- for (var Ur = 0; Ur < r; Ur++) {
2181
- var zr = ve * T >> $;
2182
- if (o[b + 3] = zr, zr !== 0) {
2183
- var Gr = 255 / zr;
2184
- o[b] = (M * T >> $) * Gr, o[b + 1] = (Z * T >> $) * Gr, o[b + 2] = (ne * T >> $) * Gr;
2243
+ for (var jr = 0; jr < r; jr++) {
2244
+ var Ur = ve * T >> $;
2245
+ if (o[b + 3] = Ur, Ur !== 0) {
2246
+ var zr = 255 / Ur;
2247
+ o[b] = (M * T >> $) * zr, o[b + 1] = (Z * T >> $) * zr, o[b + 2] = (ne * T >> $) * zr;
2185
2248
  } else
2186
2249
  o[b] = o[b + 1] = o[b + 2] = 0;
2187
2250
  M -= q, Z -= H, ne -= Q, ve -= R, q -= p.r, H -= p.g, Q -= p.b, R -= p.a;
2188
- var Ae = Ur + n + 1;
2251
+ var Ae = jr + n + 1;
2189
2252
  Ae = x + (Ae < u ? Ae : u) << 2, P += p.r = o[Ae], X += p.g = o[Ae + 1], W += p.b = o[Ae + 2], U += p.a = o[Ae + 3], M += P, Z += X, ne += W, ve += U, p = p.next;
2190
- var Lt = y, hn = Lt.r, vn = Lt.g, fn = Lt.b, cn = Lt.a;
2191
- q += hn, H += vn, Q += fn, R += cn, P -= hn, X -= vn, W -= fn, U -= cn, y = y.next, b += 4;
2253
+ var Vt = y, vn = Vt.r, fn = Vt.g, cn = Vt.b, gn = Vt.a;
2254
+ q += vn, H += fn, Q += cn, R += gn, P -= vn, X -= fn, W -= cn, U -= gn, y = y.next, b += 4;
2192
2255
  }
2193
2256
  x += r;
2194
2257
  }
2195
2258
  for (var Ye = 0; Ye < r; Ye++) {
2196
2259
  b = Ye << 2;
2197
- var Pe = o[b], Re = o[b + 1], Ie = o[b + 2], te = o[b + 3], Hr = h * Pe, Yr = h * Re, Xr = h * Ie, Wr = h * te, kt = f * Pe, Bt = f * Re, Ft = f * Ie, jt = f * te;
2260
+ var Pe = o[b], Re = o[b + 1], Ie = o[b + 2], te = o[b + 3], Gr = h * Pe, Hr = h * Re, Yr = h * Ie, Xr = h * te, Lt = f * Pe, kt = f * Re, Bt = f * Ie, Ft = f * te;
2198
2261
  v = c;
2199
- for (var gn = 0; gn < h; gn++)
2262
+ for (var dn = 0; dn < h; dn++)
2200
2263
  v.r = Pe, v.g = Re, v.b = Ie, v.a = te, v = v.next;
2201
- for (var dn = r, qr = 0, Qr = 0, Kr = 0, Zr = 0, Ut = 1; Ut <= n; Ut++) {
2202
- b = dn + Ye << 2;
2203
- var zt = h - Ut;
2204
- kt += (v.r = Pe = o[b]) * zt, Bt += (v.g = Re = o[b + 1]) * zt, Ft += (v.b = Ie = o[b + 2]) * zt, jt += (v.a = te = o[b + 3]) * zt, Zr += Pe, qr += Re, Qr += Ie, Kr += te, v = v.next, Ut < l && (dn += r);
2264
+ for (var pn = r, Wr = 0, qr = 0, Qr = 0, Kr = 0, jt = 1; jt <= n; jt++) {
2265
+ b = pn + Ye << 2;
2266
+ var Ut = h - jt;
2267
+ Lt += (v.r = Pe = o[b]) * Ut, kt += (v.g = Re = o[b + 1]) * Ut, Bt += (v.b = Ie = o[b + 2]) * Ut, Ft += (v.a = te = o[b + 3]) * Ut, Kr += Pe, Wr += Re, qr += Ie, Qr += te, v = v.next, jt < l && (pn += r);
2205
2268
  }
2206
2269
  b = Ye, p = c, y = d;
2207
- for (var Jr = 0; Jr < i; Jr++) {
2270
+ for (var Zr = 0; Zr < i; Zr++) {
2208
2271
  var re = b << 2;
2209
- o[re + 3] = te = jt * T >> $, te > 0 ? (te = 255 / te, o[re] = (kt * T >> $) * te, o[re + 1] = (Bt * T >> $) * te, o[re + 2] = (Ft * T >> $) * te) : o[re] = o[re + 1] = o[re + 2] = 0, kt -= Hr, Bt -= Yr, Ft -= Xr, jt -= Wr, Hr -= p.r, Yr -= p.g, Xr -= p.b, Wr -= p.a, re = Ye + ((re = Jr + h) < l ? re : l) * r << 2, kt += Zr += p.r = o[re], Bt += qr += p.g = o[re + 1], Ft += Qr += p.b = o[re + 2], jt += Kr += p.a = o[re + 3], p = p.next, Hr += Pe = y.r, Yr += Re = y.g, Xr += Ie = y.b, Wr += te = y.a, Zr -= Pe, qr -= Re, Qr -= Ie, Kr -= te, y = y.next, b += r;
2272
+ o[re + 3] = te = Ft * T >> $, te > 0 ? (te = 255 / te, o[re] = (Lt * T >> $) * te, o[re + 1] = (kt * T >> $) * te, o[re + 2] = (Bt * T >> $) * te) : o[re] = o[re + 1] = o[re + 2] = 0, Lt -= Gr, kt -= Hr, Bt -= Yr, Ft -= Xr, Gr -= p.r, Hr -= p.g, Yr -= p.b, Xr -= p.a, re = Ye + ((re = Zr + h) < l ? re : l) * r << 2, Lt += Kr += p.r = o[re], kt += Wr += p.g = o[re + 1], Bt += qr += p.b = o[re + 2], Ft += Qr += p.a = o[re + 3], p = p.next, Gr += Pe = y.r, Hr += Re = y.g, Yr += Ie = y.b, Xr += te = y.a, Kr -= Pe, Wr -= Re, qr -= Ie, Qr -= te, y = y.next, b += r;
2210
2273
  }
2211
2274
  }
2212
2275
  return a;
2213
2276
  }
2214
- var bo = function a() {
2215
- Lb(this, a), this.r = 0, this.g = 0, this.b = 0, this.a = 0, this.next = null;
2216
- };
2217
- function zb() {
2277
+ var xo = (
2278
+ /**
2279
+ * Set properties.
2280
+ */
2281
+ function a() {
2282
+ Gb(this, a), this.r = 0, this.g = 0, this.b = 0, this.a = 0, this.next = null;
2283
+ }
2284
+ );
2285
+ function Qb() {
2218
2286
  var {
2219
2287
  DOMParser: a
2220
2288
  } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = {
@@ -2234,7 +2302,7 @@ function zb() {
2234
2302
  };
2235
2303
  return (typeof DOMParser < "u" || typeof a > "u") && Reflect.deleteProperty(e, "DOMParser"), e;
2236
2304
  }
2237
- function Gb(a) {
2305
+ function Kb(a) {
2238
2306
  var {
2239
2307
  DOMParser: e,
2240
2308
  canvas: t,
@@ -2250,76 +2318,76 @@ function Gb(a) {
2250
2318
  createImage: t.loadImage
2251
2319
  };
2252
2320
  }
2253
- var r2 = /* @__PURE__ */ Object.freeze({
2321
+ var l2 = /* @__PURE__ */ Object.freeze({
2254
2322
  __proto__: null,
2255
- offscreen: zb,
2256
- node: Gb
2323
+ offscreen: Qb,
2324
+ node: Kb
2257
2325
  });
2258
- function ft(a) {
2326
+ function vt(a) {
2259
2327
  return a.replace(/(?!\u3000)\s+/gm, " ");
2260
2328
  }
2261
- function Hb(a) {
2329
+ function Zb(a) {
2262
2330
  return a.replace(/^[\n \t]+/, "");
2263
2331
  }
2264
- function Yb(a) {
2332
+ function Jb(a) {
2265
2333
  return a.replace(/[\n \t]+$/, "");
2266
2334
  }
2267
2335
  function ie(a) {
2268
2336
  var e = (a || "").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm) || [];
2269
2337
  return e.map(parseFloat);
2270
2338
  }
2271
- var Xb = /^[A-Z-]+$/;
2272
- function Wb(a) {
2273
- return Xb.test(a) ? a.toLowerCase() : a;
2339
+ var e1 = /^[A-Z-]+$/;
2340
+ function t1(a) {
2341
+ return e1.test(a) ? a.toLowerCase() : a;
2274
2342
  }
2275
- function dl(a) {
2343
+ function ml(a) {
2276
2344
  var e = /url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(a) || [];
2277
2345
  return e[2] || e[3] || e[4];
2278
2346
  }
2279
- function qb(a) {
2347
+ function r1(a) {
2280
2348
  if (!a.startsWith("rgb"))
2281
2349
  return a;
2282
2350
  var e = 3, t = a.replace(/\d+(\.\d+)?/g, (r, i) => e-- && i ? String(Math.round(parseFloat(r))) : r);
2283
2351
  return t;
2284
2352
  }
2285
- var Qb = /(\[[^\]]+\])/g, Kb = /(#[^\s+>~.[:]+)/g, Zb = /(\.[^\s+>~.[:]+)/g, Jb = /(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi, e1 = /(:[\w-]+\([^)]*\))/gi, t1 = /(:[^\s+>~.[:]+)/g, r1 = /([^\s+>~.[:]+)/g;
2353
+ var a1 = /(\[[^\]]+\])/g, i1 = /(#[^\s+>~.[:]+)/g, n1 = /(\.[^\s+>~.[:]+)/g, s1 = /(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi, o1 = /(:[\w-]+\([^)]*\))/gi, u1 = /(:[^\s+>~.[:]+)/g, l1 = /([^\s+>~.[:]+)/g;
2286
2354
  function _e(a, e) {
2287
2355
  var t = e.exec(a);
2288
2356
  return t ? [a.replace(e, " "), t.length] : [a, 0];
2289
2357
  }
2290
- function a1(a) {
2358
+ function h1(a) {
2291
2359
  var e = [0, 0, 0], t = a.replace(/:not\(([^)]*)\)/g, " $1 ").replace(/{[\s\S]*/gm, " "), r = 0;
2292
- return [t, r] = _e(t, Qb), e[1] += r, [t, r] = _e(t, Kb), e[0] += r, [t, r] = _e(t, Zb), e[1] += r, [t, r] = _e(t, Jb), e[2] += r, [t, r] = _e(t, e1), e[1] += r, [t, r] = _e(t, t1), e[1] += r, t = t.replace(/[*\s+>~]/g, " ").replace(/[#.]/g, " "), [t, r] = _e(t, r1), e[2] += r, e.join("");
2360
+ return [t, r] = _e(t, a1), e[1] += r, [t, r] = _e(t, i1), e[0] += r, [t, r] = _e(t, n1), e[1] += r, [t, r] = _e(t, s1), e[2] += r, [t, r] = _e(t, o1), e[1] += r, [t, r] = _e(t, u1), e[1] += r, t = t.replace(/[*\s+>~]/g, " ").replace(/[#.]/g, " "), [t, r] = _e(t, l1), e[2] += r, e.join("");
2293
2361
  }
2294
- var nt = 1e-8;
2295
- function xo(a) {
2362
+ var it = 1e-8;
2363
+ function To(a) {
2296
2364
  return Math.sqrt(Math.pow(a[0], 2) + Math.pow(a[1], 2));
2297
2365
  }
2298
2366
  function xi(a, e) {
2299
- return (a[0] * e[0] + a[1] * e[1]) / (xo(a) * xo(e));
2367
+ return (a[0] * e[0] + a[1] * e[1]) / (To(a) * To(e));
2300
2368
  }
2301
- function To(a, e) {
2369
+ function Oo(a, e) {
2302
2370
  return (a[0] * e[1] < a[1] * e[0] ? -1 : 1) * Math.acos(xi(a, e));
2303
2371
  }
2304
- function Oo(a) {
2372
+ function So(a) {
2305
2373
  return a * a * a;
2306
2374
  }
2307
- function So(a) {
2375
+ function Eo(a) {
2308
2376
  return 3 * a * a * (1 - a);
2309
2377
  }
2310
- function Eo(a) {
2378
+ function $o(a) {
2311
2379
  return 3 * a * (1 - a) * (1 - a);
2312
2380
  }
2313
- function $o(a) {
2381
+ function Co(a) {
2314
2382
  return (1 - a) * (1 - a) * (1 - a);
2315
2383
  }
2316
- function Co(a) {
2384
+ function wo(a) {
2317
2385
  return a * a;
2318
2386
  }
2319
- function wo(a) {
2387
+ function Ao(a) {
2320
2388
  return 2 * a * (1 - a);
2321
2389
  }
2322
- function Ao(a) {
2390
+ function Po(a) {
2323
2391
  return (1 - a) * (1 - a);
2324
2392
  }
2325
2393
  class S {
@@ -2334,7 +2402,7 @@ class S {
2334
2402
  document: t,
2335
2403
  name: r
2336
2404
  } = this;
2337
- return ft(this.getString()).trim().split(e).map((i) => new S(t, r, i));
2405
+ return vt(this.getString()).trim().split(e).map((i) => new S(t, r, i));
2338
2406
  }
2339
2407
  hasValue(e) {
2340
2408
  var {
@@ -2382,7 +2450,7 @@ class S {
2382
2450
  }
2383
2451
  getColor(e) {
2384
2452
  var t = this.getString(e);
2385
- return this.isNormalizedColor || (this.isNormalizedColor = !0, t = qb(t), this.value = t), t;
2453
+ return this.isNormalizedColor || (this.isNormalizedColor = !0, t = r1(t), this.value = t), t;
2386
2454
  }
2387
2455
  getDpi() {
2388
2456
  return 96;
@@ -2502,7 +2570,7 @@ S.textBaselineMapping = {
2502
2570
  hanging: "hanging",
2503
2571
  mathematical: "alphabetic"
2504
2572
  };
2505
- class i1 {
2573
+ class v1 {
2506
2574
  constructor() {
2507
2575
  this.viewPorts = [];
2508
2576
  }
@@ -2562,7 +2630,7 @@ class V {
2562
2630
  this.x = i, this.y = n;
2563
2631
  }
2564
2632
  }
2565
- class n1 {
2633
+ class f1 {
2566
2634
  constructor(e) {
2567
2635
  this.screen = e, this.working = !1, this.events = [], this.eventElements = [], this.onClick = this.onClick.bind(this), this.onMouseMove = this.onMouseMove.bind(this);
2568
2636
  }
@@ -2580,7 +2648,7 @@ class n1 {
2580
2648
  }
2581
2649
  }
2582
2650
  stop() {
2583
- if (!!this.working) {
2651
+ if (this.working) {
2584
2652
  var e = this.screen.ctx.canvas;
2585
2653
  this.working = !1, e.onclick = null, e.onmousemove = null;
2586
2654
  }
@@ -2589,7 +2657,7 @@ class n1 {
2589
2657
  return this.working && this.events.length > 0;
2590
2658
  }
2591
2659
  runEvents() {
2592
- if (!!this.working) {
2660
+ if (this.working) {
2593
2661
  var {
2594
2662
  screen: e,
2595
2663
  events: t,
@@ -2672,14 +2740,14 @@ class n1 {
2672
2740
  });
2673
2741
  }
2674
2742
  }
2675
- var pl = typeof window < "u" ? window : null, yl = typeof fetch < "u" ? fetch.bind(void 0) : null;
2676
- class kr {
2743
+ var bl = typeof window < "u" ? window : null, xl = typeof fetch < "u" ? fetch.bind(void 0) : null;
2744
+ class Lr {
2677
2745
  constructor(e) {
2678
2746
  var {
2679
- fetch: t = yl,
2680
- window: r = pl
2747
+ fetch: t = xl,
2748
+ window: r = bl
2681
2749
  } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
2682
- this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new i1(), this.mouse = new n1(this), this.animations = [], this.waits = [], this.frameDuration = 0, this.isReadyLock = !1, this.isFirstRender = !0, this.intervalId = null, this.window = r, this.fetch = t;
2750
+ this.ctx = e, this.FRAMERATE = 30, this.MAX_VIRTUAL_PIXELS = 3e4, this.CLIENT_WIDTH = 800, this.CLIENT_HEIGHT = 600, this.viewPort = new v1(), this.mouse = new f1(this), this.animations = [], this.waits = [], this.frameDuration = 0, this.isReadyLock = !1, this.isFirstRender = !0, this.intervalId = null, this.window = r, this.fetch = t;
2683
2751
  }
2684
2752
  wait(e) {
2685
2753
  this.waits.push(e);
@@ -2712,7 +2780,7 @@ class kr {
2712
2780
  clip: v = !1,
2713
2781
  clipX: d = 0,
2714
2782
  clipY: g = 0
2715
- } = e, p = ft(i).replace(/^defer\s/, ""), [y, x] = p.split(" "), b = y || "xMidYMid", T = x || "meet", $ = n / o, E = s / u, O = Math.min($, E), w = Math.max($, E), N = o, _ = u;
2783
+ } = 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), w = Math.max($, E), N = o, _ = u;
2716
2784
  T === "meet" && (N *= O, _ *= O), T === "slice" && (N *= w, _ *= w);
2717
2785
  var B = new S(t, "refX", f), P = new S(t, "refY", c), X = B.hasValue() && P.hasValue();
2718
2786
  if (X && r.translate(-O * B.getPixels("x"), -O * P.getPixels("y")), v) {
@@ -2756,13 +2824,13 @@ class kr {
2756
2824
  this.resolveReady = b;
2757
2825
  }), this.isReady() && this.render(e, n, o, u, l, h, f), !!t) {
2758
2826
  var g = Date.now(), p = g, y = 0, x = () => {
2759
- 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 = at.exports(x);
2827
+ 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 = Ua(x);
2760
2828
  };
2761
- r || v.start(), this.intervalId = at.exports(x);
2829
+ r || v.start(), this.intervalId = Ua(x);
2762
2830
  }
2763
2831
  }
2764
2832
  stop() {
2765
- this.intervalId && (at.exports.cancel(this.intervalId), this.intervalId = null), this.mouse.stop();
2833
+ this.intervalId && (Ua.cancel(this.intervalId), this.intervalId = null), this.mouse.stop();
2766
2834
  }
2767
2835
  shouldUpdate(e, t) {
2768
2836
  if (!e) {
@@ -2803,16 +2871,16 @@ class kr {
2803
2871
  r || f.clearRect(0, 0, p, y), e.render(f), c && (this.isFirstRender = !1);
2804
2872
  }
2805
2873
  }
2806
- kr.defaultWindow = pl;
2807
- kr.defaultFetch = yl;
2874
+ Lr.defaultWindow = bl;
2875
+ Lr.defaultFetch = xl;
2808
2876
  var {
2809
- defaultFetch: s1
2810
- } = kr, o1 = typeof DOMParser < "u" ? DOMParser : null;
2877
+ defaultFetch: c1
2878
+ } = Lr, g1 = typeof DOMParser < "u" ? DOMParser : null;
2811
2879
  class Ha {
2812
2880
  constructor() {
2813
2881
  var {
2814
- fetch: e = s1,
2815
- DOMParser: t = o1
2882
+ fetch: e = c1,
2883
+ DOMParser: t = g1
2816
2884
  } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
2817
2885
  this.fetch = e, this.DOMParser = t;
2818
2886
  }
@@ -2844,7 +2912,7 @@ class Ha {
2844
2912
  })();
2845
2913
  }
2846
2914
  }
2847
- class u1 {
2915
+ class d1 {
2848
2916
  constructor(e, t) {
2849
2917
  this.type = "translate", this.point = null, this.point = V.parse(t);
2850
2918
  }
@@ -2870,7 +2938,7 @@ class u1 {
2870
2938
  e.applyTransform([1, 0, 0, 1, t || 0, r || 0]);
2871
2939
  }
2872
2940
  }
2873
- class l1 {
2941
+ class p1 {
2874
2942
  constructor(e, t, r) {
2875
2943
  this.type = "rotate", this.angle = null, this.originX = null, this.originY = null, this.cx = 0, this.cy = 0;
2876
2944
  var i = ie(t);
@@ -2909,6 +2977,7 @@ class l1 {
2909
2977
  1,
2910
2978
  t || 0,
2911
2979
  r || 0
2980
+ // this.p.y
2912
2981
  ]), e.applyTransform([Math.cos(n), Math.sin(n), -Math.sin(n), Math.cos(n), 0, 0]), e.applyTransform([
2913
2982
  1,
2914
2983
  0,
@@ -2916,14 +2985,15 @@ class l1 {
2916
2985
  1,
2917
2986
  -t || 0,
2918
2987
  -r || 0
2988
+ // -this.p.y
2919
2989
  ]);
2920
2990
  }
2921
2991
  }
2922
- class h1 {
2992
+ class y1 {
2923
2993
  constructor(e, t, r) {
2924
2994
  this.type = "scale", this.scale = null, this.originX = null, this.originY = null;
2925
2995
  var i = V.parseScale(t);
2926
- (i.x === 0 || i.y === 0) && (i.x = nt, i.y = nt), this.scale = i, this.originX = r[0], this.originY = r[1];
2996
+ (i.x === 0 || i.y === 0) && (i.x = it, i.y = it), this.scale = i, this.originX = r[0], this.originY = r[1];
2927
2997
  }
2928
2998
  apply(e) {
2929
2999
  var {
@@ -2955,7 +3025,7 @@ class h1 {
2955
3025
  e.applyTransform([t || 0, 0, 0, r || 0, 0, 0]);
2956
3026
  }
2957
3027
  }
2958
- class ml {
3028
+ class Tl {
2959
3029
  constructor(e, t, r) {
2960
3030
  this.type = "matrix", this.matrix = [], this.originX = null, this.originY = null, this.matrix = ie(t), this.originX = r[0], this.originY = r[1];
2961
3031
  }
@@ -2979,35 +3049,35 @@ class ml {
2979
3049
  e.applyTransform(this.matrix);
2980
3050
  }
2981
3051
  }
2982
- class bl extends ml {
3052
+ class Ol extends Tl {
2983
3053
  constructor(e, t, r) {
2984
3054
  super(e, t, r), this.type = "skew", this.angle = null, this.angle = new S(e, "angle", t);
2985
3055
  }
2986
3056
  }
2987
- class v1 extends bl {
3057
+ class m1 extends Ol {
2988
3058
  constructor(e, t, r) {
2989
3059
  super(e, t, r), this.type = "skewX", this.matrix = [1, 0, Math.tan(this.angle.getRadians()), 1, 0, 0];
2990
3060
  }
2991
3061
  }
2992
- class f1 extends bl {
3062
+ class b1 extends Ol {
2993
3063
  constructor(e, t, r) {
2994
3064
  super(e, t, r), this.type = "skewY", this.matrix = [1, Math.tan(this.angle.getRadians()), 0, 1, 0, 0];
2995
3065
  }
2996
3066
  }
2997
- function c1(a) {
2998
- return ft(a).trim().replace(/\)([a-zA-Z])/g, ") $1").replace(/\)(\s?,\s?)/g, ") ").split(/\s(?=[a-z])/);
3067
+ function x1(a) {
3068
+ return vt(a).trim().replace(/\)([a-zA-Z])/g, ") $1").replace(/\)(\s?,\s?)/g, ") ").split(/\s(?=[a-z])/);
2999
3069
  }
3000
- function g1(a) {
3070
+ function T1(a) {
3001
3071
  var [e, t] = a.split("(");
3002
3072
  return [e.trim(), t.trim().replace(")", "")];
3003
3073
  }
3004
3074
  class Be {
3005
3075
  constructor(e, t, r) {
3006
3076
  this.document = e, this.transforms = [];
3007
- var i = c1(t);
3077
+ var i = x1(t);
3008
3078
  i.forEach((n) => {
3009
3079
  if (n !== "none") {
3010
- var [o, s] = g1(n), u = Be.transformTypes[o];
3080
+ var [o, s] = T1(n), u = Be.transformTypes[o];
3011
3081
  typeof u < "u" && this.transforms.push(new u(this.document, s, r));
3012
3082
  }
3013
3083
  });
@@ -3028,6 +3098,7 @@ class Be {
3028
3098
  } = this, r = t.length, i = r - 1; i >= 0; i--)
3029
3099
  t[i].unapply(e);
3030
3100
  }
3101
+ // TODO: applyToPoint unused ... remove?
3031
3102
  applyToPoint(e) {
3032
3103
  for (var {
3033
3104
  transforms: t
@@ -3036,24 +3107,24 @@ class Be {
3036
3107
  }
3037
3108
  }
3038
3109
  Be.transformTypes = {
3039
- translate: u1,
3040
- rotate: l1,
3041
- scale: h1,
3042
- matrix: ml,
3043
- skewX: v1,
3044
- skewY: f1
3110
+ translate: d1,
3111
+ rotate: p1,
3112
+ scale: y1,
3113
+ matrix: Tl,
3114
+ skewX: m1,
3115
+ skewY: b1
3045
3116
  };
3046
3117
  class I {
3047
3118
  constructor(e, t) {
3048
3119
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
3049
3120
  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)) {
3050
3121
  if (Array.from(t.attributes).forEach((s) => {
3051
- var u = Wb(s.nodeName);
3122
+ var u = t1(s.nodeName);
3052
3123
  this.attributes[u] = new S(e, u, s.value);
3053
3124
  }), this.addStylesFromStyleDefinition(), this.getAttribute("style").hasValue()) {
3054
3125
  var i = this.getAttribute("style").getString().split(";").map((s) => s.trim());
3055
3126
  i.forEach((s) => {
3056
- if (!!s) {
3127
+ if (s) {
3057
3128
  var [u, l] = s.split(":").map((h) => h.trim());
3058
3129
  this.styles[u] = new S(e, u, l);
3059
3130
  }
@@ -3190,19 +3261,19 @@ class I {
3190
3261
  }
3191
3262
  }
3192
3263
  I.ignoreChildTypes = ["title"];
3193
- class d1 extends I {
3264
+ class O1 extends I {
3194
3265
  constructor(e, t, r) {
3195
3266
  super(e, t, r);
3196
3267
  }
3197
3268
  }
3198
- function p1(a) {
3269
+ function S1(a) {
3199
3270
  var e = a.trim();
3200
3271
  return /^('|")/.test(e) ? e : '"'.concat(e, '"');
3201
3272
  }
3202
- function y1(a) {
3203
- return typeof process > "u" ? a : a.trim().split(",").map(p1).join(",");
3273
+ function E1(a) {
3274
+ return typeof process > "u" ? a : a.trim().split(",").map(S1).join(",");
3204
3275
  }
3205
- function m1(a) {
3276
+ function $1(a) {
3206
3277
  if (!a)
3207
3278
  return "";
3208
3279
  var e = a.trim().toLowerCase();
@@ -3218,7 +3289,7 @@ function m1(a) {
3218
3289
  return /^oblique\s+(-|)\d+deg$/.test(e) ? e : "";
3219
3290
  }
3220
3291
  }
3221
- function b1(a) {
3292
+ function C1(a) {
3222
3293
  if (!a)
3223
3294
  return "";
3224
3295
  var e = a.trim().toLowerCase();
@@ -3241,7 +3312,7 @@ class J {
3241
3312
  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;
3242
3313
  }
3243
3314
  static parse() {
3244
- 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 = ft(e).trim().split(" "), l = {
3315
+ 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 = {
3245
3316
  fontSize: !1,
3246
3317
  fontStyle: !1,
3247
3318
  fontWeight: !1,
@@ -3268,11 +3339,12 @@ class J {
3268
3339
  }
3269
3340
  toString() {
3270
3341
  return [
3271
- m1(this.fontStyle),
3342
+ $1(this.fontStyle),
3272
3343
  this.fontVariant,
3273
- b1(this.fontWeight),
3344
+ C1(this.fontWeight),
3274
3345
  this.fontSize,
3275
- y1(this.fontFamily)
3346
+ // Wrap fontFamily only on nodejs and only for canvas.ctx
3347
+ E1(this.fontFamily)
3276
3348
  ].join(" ").trim();
3277
3349
  }
3278
3350
  }
@@ -3306,7 +3378,7 @@ class he {
3306
3378
  this.addPoint(null, e);
3307
3379
  }
3308
3380
  addBoundingBox(e) {
3309
- if (!!e) {
3381
+ if (e) {
3310
3382
  var {
3311
3383
  x1: t,
3312
3384
  y1: r,
@@ -3336,6 +3408,7 @@ class he {
3336
3408
  0 < c && c < 1 && (e ? this.addX(this.sumCubic(c, t, r, i, n)) : this.addY(this.sumCubic(c, t, r, i, n)));
3337
3409
  }
3338
3410
  }
3411
+ // from http://blog.hackers-cafe.net/2009/06/how-to-calculate-bezier-curves-bounding.html
3339
3412
  addBezierCurve(e, t, r, i, n, o, s, u) {
3340
3413
  this.addPoint(e, t), this.addPoint(s, u), this.bezierCurveAdd(!0, e, r, n, s), this.bezierCurveAdd(!1, t, i, o, u);
3341
3414
  }
@@ -3478,7 +3551,7 @@ class Ge extends I {
3478
3551
  var v = this.getStyle("stroke-width");
3479
3552
  if (v.hasValue()) {
3480
3553
  var d = v.getPixels();
3481
- e.lineWidth = d || nt;
3554
+ e.lineWidth = d || it;
3482
3555
  }
3483
3556
  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");
3484
3557
  if (g.hasValue() && (e.lineCap = g.getString()), p.hasValue() && (e.lineJoin = p.getString()), y.hasValue() && (e.miterLimit = y.getNumber()), x.hasValue() && x.getString() !== "none") {
@@ -3754,7 +3827,7 @@ class A extends Ge {
3754
3827
  c > 1 && (i *= Math.sqrt(c), n *= Math.sqrt(c));
3755
3828
  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)));
3756
3829
  isNaN(v) && (v = 0);
3757
- var d = new V(v * i * f.y / n, v * -n * f.x / i), g = new V((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 = To([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 = To(y, x);
3830
+ var d = new V(v * i * f.y / n, v * -n * f.x / i), g = new V((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 = Oo([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 = Oo(y, x);
3758
3831
  return xi(y, x) <= -1 && (b = Math.PI), xi(y, x) >= 1 && (b = 0), {
3759
3832
  currentPoint: h,
3760
3833
  rX: i,
@@ -3781,7 +3854,7 @@ class A extends Ge {
3781
3854
  } = A.pathA(r), c = 1 - s ? 1 : -1, v = h + c * (f / 2), d = new V(l.x + n * Math.cos(v), l.y + o * Math.sin(v));
3782
3855
  if (r.addMarkerAngle(d, v - c * Math.PI / 2), r.addMarkerAngle(i, v - c * Math.PI), t.addPoint(i.x, i.y), e && !isNaN(h) && !isNaN(f)) {
3783
3856
  var g = n > o ? n : o, p = n > o ? 1 : n / o, y = n > o ? o / n : 1;
3784
- e.translate(l.x, l.y), e.rotate(u), e.scale(p, y), e.arc(0, 0, g, h, h + f, Boolean(1 - s)), e.scale(1 / p, 1 / y), e.rotate(-u), e.translate(-l.x, -l.y);
3857
+ e.translate(l.x, l.y), e.rotate(u), e.scale(p, y), e.arc(0, 0, g, h, h + f, !!(1 - s)), e.scale(1 / p, 1 / y), e.rotate(-u), e.translate(-l.x, -l.y);
3785
3858
  }
3786
3859
  }
3787
3860
  static pathZ(e) {
@@ -3791,7 +3864,7 @@ class A extends Ge {
3791
3864
  A.pathZ(this.pathParser), e && t.x1 !== t.x2 && t.y1 !== t.y2 && e.closePath();
3792
3865
  }
3793
3866
  }
3794
- class xl extends A {
3867
+ class Sl extends A {
3795
3868
  constructor(e, t, r) {
3796
3869
  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();
3797
3870
  }
@@ -3836,7 +3909,7 @@ class Ce extends Ge {
3836
3909
  var o = t.length, s = t[r - 1], u = t[r + 1], l = "isolated";
3837
3910
  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] < "u") {
3838
3911
  var h = e.glyphs[i];
3839
- n = h instanceof xl ? h : h[l];
3912
+ n = h instanceof Sl ? h : h[l];
3840
3913
  }
3841
3914
  } else
3842
3915
  n = e.glyphs[i];
@@ -3846,10 +3919,12 @@ class Ce extends Ge {
3846
3919
  return "";
3847
3920
  }
3848
3921
  getTextFromNode(e) {
3849
- var t = e || this.node, r = Array.from(t.parentNode.childNodes), i = r.indexOf(t), n = r.length - 1, o = ft(
3922
+ var t = e || this.node, r = Array.from(t.parentNode.childNodes), i = r.indexOf(t), n = r.length - 1, o = vt(
3923
+ // textNode.value
3924
+ // || textNode.text
3850
3925
  t.textContent || ""
3851
3926
  );
3852
- return i === 0 && (o = Hb(o)), i === n && (o = Yb(o)), o;
3927
+ return i === 0 && (o = Zb(o)), i === n && (o = Jb(o)), o;
3853
3928
  }
3854
3929
  renderChildren(e) {
3855
3930
  if (this.type !== "text") {
@@ -3911,7 +3986,7 @@ class Ce extends Ge {
3911
3986
  if (typeof n.measureText != "function")
3912
3987
  return n;
3913
3988
  e.save(), n.setContext(e, !0);
3914
- var o = n.getAttribute("x"), s = n.getAttribute("y"), u = n.getAttribute("dx"), l = n.getAttribute("dy"), h = n.getStyle("font-family").getDefinition(), f = Boolean(h) && h.isRTL;
3989
+ var o = n.getAttribute("x"), s = n.getAttribute("y"), u = n.getAttribute("dx"), l = n.getAttribute("dy"), h = n.getStyle("font-family").getDefinition(), f = !!h && h.isRTL;
3915
3990
  i === 0 && (o.hasValue() || o.setValue(n.getInheritedAttribute("x")), s.hasValue() || s.setValue(n.getInheritedAttribute("y")), u.hasValue() || u.setValue(n.getInheritedAttribute("dx")), l.hasValue() || l.setValue(n.getInheritedAttribute("dy")));
3916
3991
  var c = n.measureText(e);
3917
3992
  return f && (t.x -= c), o.hasValue() ? (t.applyAnchoring(), n.x = o.getPixels("x"), u.hasValue() && (n.x += u.getPixels("x"))) : (u.hasValue() && (t.x += u.getPixels("x")), n.x = t.x), t.x = n.x, f || (t.x += c), s.hasValue() ? (n.y = s.getPixels("y"), l.hasValue() && (n.y += l.getPixels("y"))) : (l.hasValue() && (t.y += l.getPixels("y")), n.y = t.y), t.y = n.y, t.leafTexts.push(n), t.minX = Math.min(t.minX, n.x, n.x + c), t.maxX = Math.max(t.maxX, n.x, n.x + c), n.clearContext(e), e.restore(), n;
@@ -3962,6 +4037,12 @@ class Ce extends Ge {
3962
4037
  } = e.measureText(t);
3963
4038
  return this.clearContext(e), e.restore(), c;
3964
4039
  }
4040
+ /**
4041
+ * Inherits positional attributes from {@link TextElement} parent(s). Attributes
4042
+ * are only inherited from a parent to its first child.
4043
+ * @param name - The attribute name.
4044
+ * @returns The attribute value or null.
4045
+ */
3965
4046
  getInheritedAttribute(e) {
3966
4047
  for (var t = this; t instanceof Ce && t.isFirstChild(); ) {
3967
4048
  var r = t.parent.getAttribute(e);
@@ -3972,20 +4053,20 @@ class Ce extends Ge {
3972
4053
  return null;
3973
4054
  }
3974
4055
  }
3975
- class Br extends Ce {
4056
+ class kr extends Ce {
3976
4057
  constructor(e, t, r) {
3977
- super(e, t, new.target === Br ? !0 : r), this.type = "tspan", this.text = this.children.length > 0 ? "" : this.getTextFromNode();
4058
+ super(e, t, new.target === kr ? !0 : r), this.type = "tspan", this.text = this.children.length > 0 ? "" : this.getTextFromNode();
3978
4059
  }
3979
4060
  getText() {
3980
4061
  return this.text;
3981
4062
  }
3982
4063
  }
3983
- class x1 extends Br {
4064
+ class w1 extends kr {
3984
4065
  constructor() {
3985
4066
  super(...arguments), this.type = "textNode";
3986
4067
  }
3987
4068
  }
3988
- class _t extends Ge {
4069
+ class Mt extends Ge {
3989
4070
  constructor() {
3990
4071
  super(...arguments), this.type = "svg", this.root = !1;
3991
4072
  }
@@ -4027,6 +4108,12 @@ class _t extends Ge {
4027
4108
  clearContext(e) {
4028
4109
  super.clearContext(e), this.document.screen.viewPort.removeCurrent();
4029
4110
  }
4111
+ /**
4112
+ * Resize SVG to fit in given size.
4113
+ * @param width
4114
+ * @param height
4115
+ * @param preserveAspectRatio
4116
+ */
4030
4117
  resize(e) {
4031
4118
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1, i = this.getAttribute("width", !0), n = this.getAttribute("height", !0), o = this.getAttribute("viewBox"), s = this.getAttribute("style"), u = i.getNumber(0), l = n.getNumber(0);
4032
4119
  if (r)
@@ -4042,7 +4129,7 @@ class _t extends Ge {
4042
4129
  }
4043
4130
  }
4044
4131
  }
4045
- class Tl extends A {
4132
+ class El extends A {
4046
4133
  constructor() {
4047
4134
  super(...arguments), this.type = "rect";
4048
4135
  }
@@ -4058,7 +4145,7 @@ class Tl extends A {
4058
4145
  return null;
4059
4146
  }
4060
4147
  }
4061
- class T1 extends A {
4148
+ class A1 extends A {
4062
4149
  constructor() {
4063
4150
  super(...arguments), this.type = "circle";
4064
4151
  }
@@ -4070,7 +4157,7 @@ class T1 extends A {
4070
4157
  return null;
4071
4158
  }
4072
4159
  }
4073
- class O1 extends A {
4160
+ class P1 extends A {
4074
4161
  constructor() {
4075
4162
  super(...arguments), this.type = "ellipse";
4076
4163
  }
@@ -4082,7 +4169,7 @@ class O1 extends A {
4082
4169
  return null;
4083
4170
  }
4084
4171
  }
4085
- class S1 extends A {
4172
+ class R1 extends A {
4086
4173
  constructor() {
4087
4174
  super(...arguments), this.type = "line";
4088
4175
  }
@@ -4104,7 +4191,7 @@ class S1 extends A {
4104
4191
  return [[e, r], [t, r]];
4105
4192
  }
4106
4193
  }
4107
- class Ol extends A {
4194
+ class $l extends A {
4108
4195
  constructor(e, t, r) {
4109
4196
  super(e, t, r), this.type = "polyline", this.points = [], this.points = V.parsePath(this.getAttribute("points").getString());
4110
4197
  }
@@ -4132,7 +4219,7 @@ class Ol extends A {
4132
4219
  }), r.length > 0 && r.push([e[e.length - 1], r[r.length - 1][1]]), r;
4133
4220
  }
4134
4221
  }
4135
- class E1 extends Ol {
4222
+ class I1 extends $l {
4136
4223
  constructor() {
4137
4224
  super(...arguments), this.type = "polygon";
4138
4225
  }
@@ -4144,12 +4231,12 @@ class E1 extends Ol {
4144
4231
  return e && (e.lineTo(r, i), e.closePath()), t;
4145
4232
  }
4146
4233
  }
4147
- class $1 extends I {
4234
+ class N1 extends I {
4148
4235
  constructor() {
4149
4236
  super(...arguments), this.type = "pattern";
4150
4237
  }
4151
4238
  createPattern(e, t, r) {
4152
- var i = this.getStyle("width").getPixels("x", !0), n = this.getStyle("height").getPixels("y", !0), o = new _t(this.document, null);
4239
+ var i = this.getStyle("width").getPixels("x", !0), n = this.getStyle("height").getPixels("y", !0), o = new Mt(this.document, null);
4153
4240
  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;
4154
4241
  var s = this.document.createCanvas(i, n), u = s.getContext("2d"), l = this.getAttribute("x"), h = this.getAttribute("y");
4155
4242
  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");
@@ -4160,30 +4247,30 @@ class $1 extends I {
4160
4247
  return v;
4161
4248
  }
4162
4249
  }
4163
- class C1 extends I {
4250
+ class M1 extends I {
4164
4251
  constructor() {
4165
4252
  super(...arguments), this.type = "marker";
4166
4253
  }
4167
4254
  render(e, t, r) {
4168
- if (!!t) {
4255
+ if (t) {
4169
4256
  var {
4170
4257
  x: i,
4171
4258
  y: n
4172
4259
  } = t, o = this.getAttribute("orient").getString("auto"), s = this.getAttribute("markerUnits").getString("strokeWidth");
4173
4260
  e.translate(i, n), o === "auto" && e.rotate(r), s === "strokeWidth" && e.scale(e.lineWidth, e.lineWidth), e.save();
4174
- var u = new _t(this.document, null);
4261
+ var u = new Mt(this.document, null);
4175
4262
  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);
4176
4263
  }
4177
4264
  }
4178
4265
  }
4179
- class w1 extends I {
4266
+ class _1 extends I {
4180
4267
  constructor() {
4181
4268
  super(...arguments), this.type = "defs";
4182
4269
  }
4183
4270
  render() {
4184
4271
  }
4185
4272
  }
4186
- class nn extends Ge {
4273
+ class sn extends Ge {
4187
4274
  constructor() {
4188
4275
  super(...arguments), this.type = "g";
4189
4276
  }
@@ -4194,7 +4281,7 @@ class nn extends Ge {
4194
4281
  }), t;
4195
4282
  }
4196
4283
  }
4197
- class Sl extends I {
4284
+ class Cl extends I {
4198
4285
  constructor(e, t, r) {
4199
4286
  super(e, t, r), this.attributesToInherit = ["gradientUnits"], this.stops = [];
4200
4287
  var {
@@ -4224,11 +4311,11 @@ class Sl extends I {
4224
4311
  } = this, {
4225
4312
  MAX_VIRTUAL_PIXELS: u,
4226
4313
  viewPort: l
4227
- } = s.screen, [h] = l.viewPorts, f = new Tl(s, null);
4314
+ } = s.screen, [h] = l.viewPorts, f = new El(s, null);
4228
4315
  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);
4229
- var c = new nn(s, null);
4316
+ var c = new sn(s, null);
4230
4317
  c.attributes.transform = new S(s, "transform", this.getAttribute("gradientTransform").getValue()), c.children = [f];
4231
- var v = new _t(s, null);
4318
+ var v = new Mt(s, null);
4232
4319
  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];
4233
4320
  var d = s.createCanvas(h.width, h.height), g = d.getContext("2d");
4234
4321
  return g.fillStyle = o, v.render(g), g.createPattern(d, "no-repeat");
@@ -4248,7 +4335,7 @@ class Sl extends I {
4248
4335
  return t;
4249
4336
  }
4250
4337
  }
4251
- class A1 extends Sl {
4338
+ class D1 extends Cl {
4252
4339
  constructor(e, t, r) {
4253
4340
  super(e, t, r), this.type = "linearGradient", this.attributesToInherit.push("x1", "y1", "x2", "y2");
4254
4341
  }
@@ -4261,7 +4348,7 @@ class A1 extends Sl {
4261
4348
  return n === s && o === u ? null : e.createLinearGradient(n, o, s, u);
4262
4349
  }
4263
4350
  }
4264
- class P1 extends Sl {
4351
+ class V1 extends Cl {
4265
4352
  constructor(e, t, r) {
4266
4353
  super(e, t, r), this.type = "radialGradient", this.attributesToInherit.push("cx", "cy", "r", "fx", "fy", "fr");
4267
4354
  }
@@ -4276,14 +4363,14 @@ class P1 extends Sl {
4276
4363
  return e.createRadialGradient(s, u, h, n, o, l);
4277
4364
  }
4278
4365
  }
4279
- class R1 extends I {
4366
+ class L1 extends I {
4280
4367
  constructor(e, t, r) {
4281
4368
  super(e, t, r), this.type = "stop";
4282
4369
  var i = Math.max(0, Math.min(1, this.getAttribute("offset").getNumber())), n = this.getStyle("stop-opacity"), o = this.getStyle("stop-color", !0);
4283
4370
  o.getString() === "" && o.setValue("#000"), n.hasValue() && (o = o.addOpacity(n)), this.offset = i, this.color = o.getColor();
4284
4371
  }
4285
4372
  }
4286
- class sn extends I {
4373
+ class on extends I {
4287
4374
  constructor(e, t, r) {
4288
4375
  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);
4289
4376
  var i = this.getAttribute("values");
@@ -4344,7 +4431,7 @@ class sn extends I {
4344
4431
  return r;
4345
4432
  }
4346
4433
  }
4347
- class I1 extends sn {
4434
+ class k1 extends on {
4348
4435
  constructor() {
4349
4436
  super(...arguments), this.type = "animateColor";
4350
4437
  }
@@ -4361,7 +4448,7 @@ class I1 extends sn {
4361
4448
  return this.getAttribute("from").getColor();
4362
4449
  }
4363
4450
  }
4364
- class N1 extends sn {
4451
+ class B1 extends on {
4365
4452
  constructor() {
4366
4453
  super(...arguments), this.type = "animateTransform";
4367
4454
  }
@@ -4377,7 +4464,7 @@ class N1 extends sn {
4377
4464
  return o;
4378
4465
  }
4379
4466
  }
4380
- class M1 extends I {
4467
+ class F1 extends I {
4381
4468
  constructor(e, t, r) {
4382
4469
  super(e, t, r), this.type = "font", this.glyphs = {}, this.horizAdvX = this.getAttribute("horiz-adv-x").getNumber();
4383
4470
  var {
@@ -4406,17 +4493,17 @@ class M1 extends I {
4406
4493
  render() {
4407
4494
  }
4408
4495
  }
4409
- class _1 extends I {
4496
+ class j1 extends I {
4410
4497
  constructor(e, t, r) {
4411
4498
  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();
4412
4499
  }
4413
4500
  }
4414
- class D1 extends A {
4501
+ class U1 extends A {
4415
4502
  constructor() {
4416
4503
  super(...arguments), this.type = "missing-glyph", this.horizAdvX = 0;
4417
4504
  }
4418
4505
  }
4419
- class V1 extends Ce {
4506
+ class z1 extends Ce {
4420
4507
  constructor() {
4421
4508
  super(...arguments), this.type = "tref";
4422
4509
  }
@@ -4430,7 +4517,7 @@ class V1 extends Ce {
4430
4517
  return "";
4431
4518
  }
4432
4519
  }
4433
- class L1 extends Ce {
4520
+ class G1 extends Ce {
4434
4521
  constructor(e, t, r) {
4435
4522
  super(e, t, r), this.type = "a";
4436
4523
  var {
@@ -4453,7 +4540,7 @@ class L1 extends Ce {
4453
4540
  } = t.screen, o = new S(t, "fontSize", J.parse(t.ctx.font).fontSize);
4454
4541
  n.isWorking() && n.checkBoundingBox(this, new he(r, i - o.getPixels("y"), r + this.measureText(e), i));
4455
4542
  } else if (this.children.length > 0) {
4456
- var s = new nn(this.document, null);
4543
+ var s = new sn(this.document, null);
4457
4544
  s.children = this.children, s.parent = this, s.render(e);
4458
4545
  }
4459
4546
  }
@@ -4468,7 +4555,7 @@ class L1 extends Ce {
4468
4555
  e.canvas.style.cursor = "pointer";
4469
4556
  }
4470
4557
  }
4471
- function Po(a, e) {
4558
+ function Ro(a, e) {
4472
4559
  var t = Object.keys(a);
4473
4560
  if (Object.getOwnPropertySymbols) {
4474
4561
  var r = Object.getOwnPropertySymbols(a);
@@ -4478,18 +4565,18 @@ function Po(a, e) {
4478
4565
  }
4479
4566
  return t;
4480
4567
  }
4481
- function ir(a) {
4568
+ function ar(a) {
4482
4569
  for (var e = 1; e < arguments.length; e++) {
4483
4570
  var t = arguments[e] != null ? arguments[e] : {};
4484
- e % 2 ? Po(Object(t), !0).forEach(function(r) {
4485
- tn(a, r, t[r]);
4486
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Po(Object(t)).forEach(function(r) {
4571
+ e % 2 ? Ro(Object(t), !0).forEach(function(r) {
4572
+ rn(a, r, t[r]);
4573
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Ro(Object(t)).forEach(function(r) {
4487
4574
  Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
4488
4575
  });
4489
4576
  }
4490
4577
  return a;
4491
4578
  }
4492
- class k1 extends Ce {
4579
+ class H1 extends Ce {
4493
4580
  constructor(e, t, r) {
4494
4581
  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]]);
4495
4582
  var i = this.getHrefAttribute().getDefinition();
@@ -4522,7 +4609,7 @@ class k1 extends Ce {
4522
4609
  break;
4523
4610
  case C.ARC: {
4524
4611
  var [o, s, u, l, h, f, c, v] = n, d = u > l ? u : l, g = u > l ? 1 : u / l, p = u > l ? l / u : 1;
4525
- e && (e.translate(o, s), e.rotate(c), e.scale(g, p), e.arc(0, 0, d, h, h + f, Boolean(1 - v)), e.scale(1 / g, 1 / p), e.rotate(-c), e.translate(-o, -s));
4612
+ e && (e.translate(o, s), e.rotate(c), e.scale(g, p), e.arc(0, 0, d, h, h + f, !!(1 - v)), e.scale(1 / g, 1 / p), e.rotate(-c), e.translate(-o, -s));
4526
4613
  break;
4527
4614
  }
4528
4615
  case C.CLOSE_PATH:
@@ -4559,10 +4646,10 @@ class k1 extends Ce {
4559
4646
  }, p = v && d ? Math.atan2(d.y - v.y, d.x - v.x) : 0;
4560
4647
  if (s) {
4561
4648
  var y = Math.cos(Math.PI / 2 + p) * s, x = Math.cos(-p) * s;
4562
- g.p0 = ir(ir({}, v), {}, {
4649
+ g.p0 = ar(ar({}, v), {}, {
4563
4650
  x: v.x + y,
4564
4651
  y: v.y + x
4565
- }), g.p1 = ir(ir({}, d), {}, {
4652
+ }), g.p1 = ar(ar({}, d), {}, {
4566
4653
  x: d.x + y,
4567
4654
  y: d.y + x
4568
4655
  });
@@ -4582,6 +4669,9 @@ class k1 extends Ce {
4582
4669
  var n = this.measureTargetText(e, i);
4583
4670
  return r.set(i, n), n;
4584
4671
  }
4672
+ // This method supposes what all custom fonts already loaded.
4673
+ // If some font will be loaded after this method call, <textPath> will not be rendered correctly.
4674
+ // You need to call this method manually to update glyphs cache.
4585
4675
  setTextData(e) {
4586
4676
  if (!this.glyphInfo) {
4587
4677
  var t = this.getText(), r = t.split(""), i = t.split(" ").length - 1, n = this.parent.getAttribute("dx").split().map((T) => T.getPixels("x")), o = this.parent.getAttribute("dy").getPixels("y"), s = this.parent.getStyle("text-anchor").getString("start"), u = this.getStyle("letter-spacing"), l = this.parent.getStyle("letter-spacing"), h = 0;
@@ -4600,6 +4690,8 @@ class k1 extends Ce {
4600
4690
  rotation: w
4601
4691
  } = this.findSegmentToFitChar(e, s, p, y, i, b, o, T, $);
4602
4692
  b = E, !(!O.p0 || !O.p1) && this.glyphInfo.push({
4693
+ // transposeX: midpoint.x,
4694
+ // transposeY: midpoint.y,
4603
4695
  text: r[$],
4604
4696
  p0: O.p0,
4605
4697
  p1: O.p1,
@@ -4764,7 +4856,7 @@ class k1 extends Ce {
4764
4856
  return 0;
4765
4857
  }
4766
4858
  getPointOnLine(e, t, r, i, n) {
4767
- 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 + nt), l = Math.sqrt(e * e / (1 + u * u));
4859
+ 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));
4768
4860
  i < t && (l *= -1);
4769
4861
  var h = u * l, f = null;
4770
4862
  if (i === t)
@@ -4772,14 +4864,14 @@ class k1 extends Ce {
4772
4864
  x: o,
4773
4865
  y: s + h
4774
4866
  };
4775
- else if ((s - r) / (o - t + nt) === u)
4867
+ else if ((s - r) / (o - t + it) === u)
4776
4868
  f = {
4777
4869
  x: o + l,
4778
4870
  y: s + h
4779
4871
  };
4780
4872
  else {
4781
4873
  var c = 0, v = 0, d = this.getLineLength(t, r, i, n);
4782
- if (d < nt)
4874
+ if (d < it)
4783
4875
  return null;
4784
4876
  var g = (o - t) * (i - t) + (s - r) * (n - r);
4785
4877
  g /= d * d, c = t + g * (i - t), v = r + g * (n - r);
@@ -4835,14 +4927,14 @@ class k1 extends Ce {
4835
4927
  return this.pathLength === -1 && (this.pathLength = this.dataArray.reduce((e, t) => t.pathLength > 0 ? e + t.pathLength : e, 0)), this.pathLength;
4836
4928
  }
4837
4929
  getPointOnCubicBezier(e, t, r, i, n, o, s, u, l) {
4838
- var h = u * Oo(e) + o * So(e) + i * Eo(e) + t * $o(e), f = l * Oo(e) + s * So(e) + n * Eo(e) + r * $o(e);
4930
+ var h = u * So(e) + o * Eo(e) + i * $o(e) + t * Co(e), f = l * So(e) + s * Eo(e) + n * $o(e) + r * Co(e);
4839
4931
  return {
4840
4932
  x: h,
4841
4933
  y: f
4842
4934
  };
4843
4935
  }
4844
4936
  getPointOnQuadraticBezier(e, t, r, i, n, o, s) {
4845
- var u = o * Co(e) + i * wo(e) + t * Ao(e), l = s * Co(e) + n * wo(e) + r * Ao(e);
4937
+ var u = o * wo(e) + i * Ao(e) + t * Po(e), l = s * wo(e) + n * Ao(e) + r * Po(e);
4846
4938
  return {
4847
4939
  x: u,
4848
4940
  y: l
@@ -4858,6 +4950,7 @@ class k1 extends Ce {
4858
4950
  y: t + (l.x * u + l.y * s)
4859
4951
  };
4860
4952
  }
4953
+ // TODO need some optimisations. possibly build cache only for curved segments?
4861
4954
  buildEquidistantCache(e, t) {
4862
4955
  var r = this.getPathLength(), i = t || 0.25, n = e || r / 100;
4863
4956
  if (!this.equidistantCache || this.equidistantCache.step !== n || this.equidistantCache.precision !== i) {
@@ -4883,12 +4976,12 @@ class k1 extends Ce {
4883
4976
  return this.equidistantCache.points[i] || null;
4884
4977
  }
4885
4978
  }
4886
- var B1 = /^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;
4887
- class F1 extends Ge {
4979
+ var Y1 = /^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;
4980
+ class X1 extends Ge {
4888
4981
  constructor(e, t, r) {
4889
4982
  super(e, t, r), this.type = "image", this.loaded = !1;
4890
4983
  var i = this.getHrefAttribute().getString();
4891
- if (!!i) {
4984
+ if (i) {
4892
4985
  var n = i.endsWith(".svg") || /^\s*data:image\/svg\+xml/i.test(i);
4893
4986
  e.images.push(this), n ? this.loadSvg(i) : this.loadImage(i), this.isSvg = n;
4894
4987
  }
@@ -4908,7 +5001,7 @@ class F1 extends Ge {
4908
5001
  loadSvg(e) {
4909
5002
  var t = this;
4910
5003
  return xe(function* () {
4911
- var r = B1.exec(e);
5004
+ var r = Y1.exec(e);
4912
5005
  if (r) {
4913
5006
  var i = r[5];
4914
5007
  r[4] === "base64" ? t.image = atob(i) : t.image = decodeURIComponent(i);
@@ -4960,14 +5053,14 @@ class F1 extends Ge {
4960
5053
  return new he(e, t, e + r, t + i);
4961
5054
  }
4962
5055
  }
4963
- class j1 extends Ge {
5056
+ class W1 extends Ge {
4964
5057
  constructor() {
4965
5058
  super(...arguments), this.type = "symbol";
4966
5059
  }
4967
5060
  render(e) {
4968
5061
  }
4969
5062
  }
4970
- class U1 {
5063
+ class q1 {
4971
5064
  constructor(e) {
4972
5065
  this.document = e, this.loaded = !1, e.fonts.push(this);
4973
5066
  }
@@ -4989,29 +5082,30 @@ class U1 {
4989
5082
  })();
4990
5083
  }
4991
5084
  }
4992
- class El extends I {
5085
+ class wl extends I {
4993
5086
  constructor(e, t, r) {
4994
5087
  super(e, t, r), this.type = "style";
4995
- var i = ft(
5088
+ var i = vt(
4996
5089
  Array.from(t.childNodes).map((o) => o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm, "").replace(/@import.*;/g, "")
5090
+ // remove imports
4997
5091
  ), n = i.split("}");
4998
5092
  n.forEach((o) => {
4999
5093
  var s = o.trim();
5000
- if (!!s) {
5094
+ if (s) {
5001
5095
  var u = s.split("{"), l = u[0].split(","), h = u[1].split(";");
5002
5096
  l.forEach((f) => {
5003
5097
  var c = f.trim();
5004
- if (!!c) {
5098
+ if (c) {
5005
5099
  var v = e.styles[c] || {};
5006
5100
  if (h.forEach((p) => {
5007
5101
  var y = p.indexOf(":"), x = p.substr(0, y).trim(), b = p.substr(y + 1, p.length - y).trim();
5008
5102
  x && b && (v[x] = new S(e, x, b));
5009
- }), e.styles[c] = v, e.stylesSpecificity[c] = a1(c), c === "@font-face") {
5103
+ }), e.styles[c] = v, e.stylesSpecificity[c] = h1(c), c === "@font-face") {
5010
5104
  var d = v["font-family"].getString().replace(/"|'/g, ""), g = v.src.getString().split(",");
5011
5105
  g.forEach((p) => {
5012
5106
  if (p.indexOf('format("svg")') > 0) {
5013
- var y = dl(p);
5014
- y && new U1(e).load(d, y);
5107
+ var y = ml(p);
5108
+ y && new q1(e).load(d, y);
5015
5109
  }
5016
5110
  });
5017
5111
  }
@@ -5021,8 +5115,8 @@ class El extends I {
5021
5115
  });
5022
5116
  }
5023
5117
  }
5024
- El.parseExternalUrl = dl;
5025
- class z1 extends Ge {
5118
+ wl.parseExternalUrl = ml;
5119
+ class Q1 extends Ge {
5026
5120
  constructor() {
5027
5121
  super(...arguments), this.type = "use";
5028
5122
  }
@@ -5044,7 +5138,7 @@ class z1 extends Ge {
5044
5138
  } = this;
5045
5139
  if (r) {
5046
5140
  var i = r;
5047
- if (r.type === "symbol" && (i = new _t(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") {
5141
+ 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") {
5048
5142
  var n = this.getStyle("width", !1, !0), o = this.getStyle("height", !1, !0);
5049
5143
  n.hasValue() && (i.attributes.width = new S(t, "width", n.getString())), o.hasValue() && (i.attributes.height = new S(t, "height", o.getString()));
5050
5144
  }
@@ -5069,10 +5163,10 @@ class z1 extends Ge {
5069
5163
  return this.cachedElement || (this.cachedElement = this.getHrefAttribute().getDefinition()), this.cachedElement;
5070
5164
  }
5071
5165
  }
5072
- function nr(a, e, t, r, i, n) {
5166
+ function ir(a, e, t, r, i, n) {
5073
5167
  return a[t * r * 4 + e * 4 + n];
5074
5168
  }
5075
- function sr(a, e, t, r, i, n, o) {
5169
+ function nr(a, e, t, r, i, n, o) {
5076
5170
  a[t * r * 4 + e * 4 + n] = o;
5077
5171
  }
5078
5172
  function F(a, e, t) {
@@ -5082,7 +5176,7 @@ function F(a, e, t) {
5082
5176
  function me(a, e, t, r) {
5083
5177
  return e + Math.cos(a) * t + Math.sin(a) * r;
5084
5178
  }
5085
- class $l extends I {
5179
+ class Al extends I {
5086
5180
  constructor(e, t, r) {
5087
5181
  super(e, t, r), this.type = "feColorMatrix";
5088
5182
  var i = ie(this.getAttribute("values").getString());
@@ -5109,13 +5203,13 @@ class $l extends I {
5109
5203
  matrix: s
5110
5204
  } = this, u = e.getImageData(0, 0, i, n), l = 0; l < n; l++)
5111
5205
  for (var h = 0; h < i; h++) {
5112
- 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);
5113
- 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);
5206
+ var f = ir(u.data, h, l, i, n, 0), c = ir(u.data, h, l, i, n, 1), v = ir(u.data, h, l, i, n, 2), d = ir(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);
5207
+ o && (g = 0, p = 0, y = 0, x *= d / 255), nr(u.data, h, l, i, n, 0, g), nr(u.data, h, l, i, n, 1, p), nr(u.data, h, l, i, n, 2, y), nr(u.data, h, l, i, n, 3, x);
5114
5208
  }
5115
5209
  e.clearRect(0, 0, i, n), e.putImageData(u, 0, 0);
5116
5210
  }
5117
5211
  }
5118
- class Fr extends I {
5212
+ class Br extends I {
5119
5213
  constructor() {
5120
5214
  super(...arguments), this.type = "mask";
5121
5215
  }
@@ -5129,8 +5223,8 @@ class Fr extends I {
5129
5223
  u.addBoundingBox(d.getBoundingBox(e));
5130
5224
  }), i = Math.floor(u.x1), n = Math.floor(u.y1), o = Math.floor(u.width), s = Math.floor(u.height);
5131
5225
  }
5132
- var l = this.removeStyles(t, Fr.ignoreStyles), h = r.createCanvas(i + o, n + s), f = h.getContext("2d");
5133
- r.screen.setDefaults(f), this.renderChildren(f), new $l(r, {
5226
+ var l = this.removeStyles(t, Br.ignoreStyles), h = r.createCanvas(i + o, n + s), f = h.getContext("2d");
5227
+ r.screen.setDefaults(f), this.renderChildren(f), new Al(r, {
5134
5228
  nodeType: 1,
5135
5229
  childNodes: [],
5136
5230
  attributes: [{
@@ -5147,10 +5241,10 @@ class Fr extends I {
5147
5241
  render(e) {
5148
5242
  }
5149
5243
  }
5150
- Fr.ignoreStyles = ["mask", "transform", "clip-path"];
5151
- var Ro = () => {
5244
+ Br.ignoreStyles = ["mask", "transform", "clip-path"];
5245
+ var Io = () => {
5152
5246
  };
5153
- class G1 extends I {
5247
+ class K1 extends I {
5154
5248
  constructor() {
5155
5249
  super(...arguments), this.type = "clipPath";
5156
5250
  }
@@ -5161,7 +5255,7 @@ class G1 extends I {
5161
5255
  beginPath: i,
5162
5256
  closePath: n
5163
5257
  } = e;
5164
- r && (r.beginPath = Ro, r.closePath = Ro), Reflect.apply(i, e, []), this.children.forEach((o) => {
5258
+ r && (r.beginPath = Io, r.closePath = Io), Reflect.apply(i, e, []), this.children.forEach((o) => {
5165
5259
  if (!(typeof o.path > "u")) {
5166
5260
  var s = typeof o.elementTransform < "u" ? o.elementTransform() : null;
5167
5261
  s || (s = Be.fromElement(t, o)), s && s.apply(e), o.path(e), r && (r.closePath = n), s && s.unapply(e);
@@ -5171,7 +5265,7 @@ class G1 extends I {
5171
5265
  render(e) {
5172
5266
  }
5173
5267
  }
5174
- class jr extends I {
5268
+ class Fr extends I {
5175
5269
  constructor() {
5176
5270
  super(...arguments), this.type = "filter";
5177
5271
  }
@@ -5180,7 +5274,7 @@ class jr extends I {
5180
5274
  document: r,
5181
5275
  children: i
5182
5276
  } = this, n = t.getBoundingBox(e);
5183
- if (!!n) {
5277
+ if (n) {
5184
5278
  var o = 0, s = 0;
5185
5279
  i.forEach((y) => {
5186
5280
  var x = y.extraFilterDistance || 0;
@@ -5188,7 +5282,7 @@ class jr extends I {
5188
5282
  });
5189
5283
  var u = Math.floor(n.width), l = Math.floor(n.height), h = u + 2 * o, f = l + 2 * s;
5190
5284
  if (!(h < 1 || f < 1)) {
5191
- var c = Math.floor(n.x), v = Math.floor(n.y), d = this.removeStyles(t, jr.ignoreStyles), g = r.createCanvas(h, f), p = g.getContext("2d");
5285
+ var c = Math.floor(n.x), v = Math.floor(n.y), d = this.removeStyles(t, Fr.ignoreStyles), g = r.createCanvas(h, f), p = g.getContext("2d");
5192
5286
  r.screen.setDefaults(p), p.translate(-c + o, -v + s), t.render(p), i.forEach((y) => {
5193
5287
  typeof y.apply == "function" && y.apply(p, 0, 0, h, f);
5194
5288
  }), e.drawImage(g, 0, 0, h, f, c - o, v - s, h, f), this.restoreStyles(t, d);
@@ -5198,29 +5292,29 @@ class jr extends I {
5198
5292
  render(e) {
5199
5293
  }
5200
5294
  }
5201
- jr.ignoreStyles = ["filter", "transform", "clip-path"];
5202
- class H1 extends I {
5295
+ Fr.ignoreStyles = ["filter", "transform", "clip-path"];
5296
+ class Z1 extends I {
5203
5297
  constructor(e, t, r) {
5204
5298
  super(e, t, r), this.type = "feDropShadow", this.addStylesFromStyleDefinition();
5205
5299
  }
5206
5300
  apply(e, t, r, i, n) {
5207
5301
  }
5208
5302
  }
5209
- class Y1 extends I {
5303
+ class J1 extends I {
5210
5304
  constructor() {
5211
5305
  super(...arguments), this.type = "feMorphology";
5212
5306
  }
5213
5307
  apply(e, t, r, i, n) {
5214
5308
  }
5215
5309
  }
5216
- class X1 extends I {
5310
+ class e2 extends I {
5217
5311
  constructor() {
5218
5312
  super(...arguments), this.type = "feComposite";
5219
5313
  }
5220
5314
  apply(e, t, r, i, n) {
5221
5315
  }
5222
5316
  }
5223
- class W1 extends I {
5317
+ class t2 extends I {
5224
5318
  constructor(e, t, r) {
5225
5319
  super(e, t, r), this.type = "feGaussianBlur", this.blurRadius = Math.floor(this.getAttribute("stdDeviation").getNumber()), this.extraFilterDistance = this.blurRadius;
5226
5320
  }
@@ -5229,63 +5323,63 @@ class W1 extends I {
5229
5323
  document: o,
5230
5324
  blurRadius: s
5231
5325
  } = this, u = o.window ? o.window.document.body : null, l = e.canvas;
5232
- l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)), jb(l, t, r, i, n, s), u && u.removeChild(l);
5326
+ l.id = o.getUniqueId(), u && (l.style.display = "none", u.appendChild(l)), Wb(l, t, r, i, n, s), u && u.removeChild(l);
5233
5327
  }
5234
5328
  }
5235
- class q1 extends I {
5329
+ class r2 extends I {
5236
5330
  constructor() {
5237
5331
  super(...arguments), this.type = "title";
5238
5332
  }
5239
5333
  }
5240
- class Q1 extends I {
5334
+ class a2 extends I {
5241
5335
  constructor() {
5242
5336
  super(...arguments), this.type = "desc";
5243
5337
  }
5244
5338
  }
5245
- var K1 = {
5246
- svg: _t,
5247
- rect: Tl,
5248
- circle: T1,
5249
- ellipse: O1,
5250
- line: S1,
5251
- polyline: Ol,
5252
- polygon: E1,
5339
+ var i2 = {
5340
+ svg: Mt,
5341
+ rect: El,
5342
+ circle: A1,
5343
+ ellipse: P1,
5344
+ line: R1,
5345
+ polyline: $l,
5346
+ polygon: I1,
5253
5347
  path: A,
5254
- pattern: $1,
5255
- marker: C1,
5256
- defs: w1,
5257
- linearGradient: A1,
5258
- radialGradient: P1,
5259
- stop: R1,
5260
- animate: sn,
5261
- animateColor: I1,
5262
- animateTransform: N1,
5263
- font: M1,
5264
- "font-face": _1,
5265
- "missing-glyph": D1,
5266
- glyph: xl,
5348
+ pattern: N1,
5349
+ marker: M1,
5350
+ defs: _1,
5351
+ linearGradient: D1,
5352
+ radialGradient: V1,
5353
+ stop: L1,
5354
+ animate: on,
5355
+ animateColor: k1,
5356
+ animateTransform: B1,
5357
+ font: F1,
5358
+ "font-face": j1,
5359
+ "missing-glyph": U1,
5360
+ glyph: Sl,
5267
5361
  text: Ce,
5268
- tspan: Br,
5269
- tref: V1,
5270
- a: L1,
5271
- textPath: k1,
5272
- image: F1,
5273
- g: nn,
5274
- symbol: j1,
5275
- style: El,
5276
- use: z1,
5277
- mask: Fr,
5278
- clipPath: G1,
5279
- filter: jr,
5280
- feDropShadow: H1,
5281
- feMorphology: Y1,
5282
- feComposite: X1,
5283
- feColorMatrix: $l,
5284
- feGaussianBlur: W1,
5285
- title: q1,
5286
- desc: Q1
5362
+ tspan: kr,
5363
+ tref: z1,
5364
+ a: G1,
5365
+ textPath: H1,
5366
+ image: X1,
5367
+ g: sn,
5368
+ symbol: W1,
5369
+ style: wl,
5370
+ use: Q1,
5371
+ mask: Br,
5372
+ clipPath: K1,
5373
+ filter: Fr,
5374
+ feDropShadow: Z1,
5375
+ feMorphology: J1,
5376
+ feComposite: e2,
5377
+ feColorMatrix: Al,
5378
+ feGaussianBlur: t2,
5379
+ title: r2,
5380
+ desc: a2
5287
5381
  };
5288
- function Io(a, e) {
5382
+ function No(a, e) {
5289
5383
  var t = Object.keys(a);
5290
5384
  if (Object.getOwnPropertySymbols) {
5291
5385
  var r = Object.getOwnPropertySymbols(a);
@@ -5295,22 +5389,22 @@ function Io(a, e) {
5295
5389
  }
5296
5390
  return t;
5297
5391
  }
5298
- function Z1(a) {
5392
+ function n2(a) {
5299
5393
  for (var e = 1; e < arguments.length; e++) {
5300
5394
  var t = arguments[e] != null ? arguments[e] : {};
5301
- e % 2 ? Io(Object(t), !0).forEach(function(r) {
5302
- tn(a, r, t[r]);
5303
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Io(Object(t)).forEach(function(r) {
5395
+ e % 2 ? No(Object(t), !0).forEach(function(r) {
5396
+ rn(a, r, t[r]);
5397
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : No(Object(t)).forEach(function(r) {
5304
5398
  Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
5305
5399
  });
5306
5400
  }
5307
5401
  return a;
5308
5402
  }
5309
- function J1(a, e) {
5403
+ function s2(a, e) {
5310
5404
  var t = document.createElement("canvas");
5311
5405
  return t.width = a, t.height = e, t;
5312
5406
  }
5313
- function e2(a) {
5407
+ function o2(a) {
5314
5408
  return Ti.apply(this, arguments);
5315
5409
  }
5316
5410
  function Ti() {
@@ -5381,21 +5475,21 @@ class Ee {
5381
5475
  }
5382
5476
  createElement(e) {
5383
5477
  var t = e.nodeName.replace(/^[^:]+:/, ""), r = Ee.elementTypes[t];
5384
- return typeof r < "u" ? new r(this, e) : new d1(this, e);
5478
+ return typeof r < "u" ? new r(this, e) : new O1(this, e);
5385
5479
  }
5386
5480
  createTextNode(e) {
5387
- return new x1(this, e);
5481
+ return new w1(this, e);
5388
5482
  }
5389
5483
  setViewBox(e) {
5390
- this.screen.setViewBox(Z1({
5484
+ this.screen.setViewBox(n2({
5391
5485
  document: this
5392
5486
  }, e));
5393
5487
  }
5394
5488
  }
5395
- Ee.createCanvas = J1;
5396
- Ee.createImage = e2;
5397
- Ee.elementTypes = K1;
5398
- function No(a, e) {
5489
+ Ee.createCanvas = s2;
5490
+ Ee.createImage = o2;
5491
+ Ee.elementTypes = i2;
5492
+ function Mo(a, e) {
5399
5493
  var t = Object.keys(a);
5400
5494
  if (Object.getOwnPropertySymbols) {
5401
5495
  var r = Object.getOwnPropertySymbols(a);
@@ -5408,46 +5502,92 @@ function No(a, e) {
5408
5502
  function De(a) {
5409
5503
  for (var e = 1; e < arguments.length; e++) {
5410
5504
  var t = arguments[e] != null ? arguments[e] : {};
5411
- e % 2 ? No(Object(t), !0).forEach(function(r) {
5412
- tn(a, r, t[r]);
5413
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : No(Object(t)).forEach(function(r) {
5505
+ e % 2 ? Mo(Object(t), !0).forEach(function(r) {
5506
+ rn(a, r, t[r]);
5507
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : Mo(Object(t)).forEach(function(r) {
5414
5508
  Object.defineProperty(a, r, Object.getOwnPropertyDescriptor(t, r));
5415
5509
  });
5416
5510
  }
5417
5511
  return a;
5418
5512
  }
5419
- class Tt {
5513
+ class xt {
5514
+ /**
5515
+ * Main constructor.
5516
+ * @param ctx - Rendering context.
5517
+ * @param svg - SVG Document.
5518
+ * @param options - Rendering options.
5519
+ */
5420
5520
  constructor(e, t) {
5421
5521
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
5422
- this.parser = new Ha(r), this.screen = new kr(e, r), this.options = r;
5522
+ this.parser = new Ha(r), this.screen = new Lr(e, r), this.options = r;
5423
5523
  var i = new Ee(this, r), n = i.createDocumentElement(t);
5424
5524
  this.document = i, this.documentElement = n;
5425
5525
  }
5526
+ /**
5527
+ * Create Canvg instance from SVG source string or URL.
5528
+ * @param ctx - Rendering context.
5529
+ * @param svg - SVG source string or URL.
5530
+ * @param options - Rendering options.
5531
+ * @returns Canvg instance.
5532
+ */
5426
5533
  static from(e, t) {
5427
5534
  var r = arguments;
5428
5535
  return xe(function* () {
5429
5536
  var i = r.length > 2 && r[2] !== void 0 ? r[2] : {}, n = new Ha(i), o = yield n.parse(t);
5430
- return new Tt(e, o, i);
5537
+ return new xt(e, o, i);
5431
5538
  })();
5432
5539
  }
5540
+ /**
5541
+ * Create Canvg instance from SVG source string.
5542
+ * @param ctx - Rendering context.
5543
+ * @param svg - SVG source string.
5544
+ * @param options - Rendering options.
5545
+ * @returns Canvg instance.
5546
+ */
5433
5547
  static fromString(e, t) {
5434
5548
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = new Ha(r), n = i.parseFromString(t);
5435
- return new Tt(e, n, r);
5436
- }
5549
+ return new xt(e, n, r);
5550
+ }
5551
+ /**
5552
+ * Create new Canvg instance with inherited options.
5553
+ * @param ctx - Rendering context.
5554
+ * @param svg - SVG source string or URL.
5555
+ * @param options - Rendering options.
5556
+ * @returns Canvg instance.
5557
+ */
5437
5558
  fork(e, t) {
5438
5559
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
5439
- return Tt.from(e, t, De(De({}, this.options), r));
5440
- }
5560
+ return xt.from(e, t, De(De({}, this.options), r));
5561
+ }
5562
+ /**
5563
+ * Create new Canvg instance with inherited options.
5564
+ * @param ctx - Rendering context.
5565
+ * @param svg - SVG source string.
5566
+ * @param options - Rendering options.
5567
+ * @returns Canvg instance.
5568
+ */
5441
5569
  forkString(e, t) {
5442
5570
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
5443
- return Tt.fromString(e, t, De(De({}, this.options), r));
5571
+ return xt.fromString(e, t, De(De({}, this.options), r));
5444
5572
  }
5573
+ /**
5574
+ * Document is ready promise.
5575
+ * @returns Ready promise.
5576
+ */
5445
5577
  ready() {
5446
5578
  return this.screen.ready();
5447
5579
  }
5580
+ /**
5581
+ * Document is ready value.
5582
+ * @returns Is ready or not.
5583
+ */
5448
5584
  isReady() {
5449
5585
  return this.screen.isReady();
5450
5586
  }
5587
+ /**
5588
+ * Render only first frame, ignoring animations and mouse.
5589
+ * @param options - Rendering options.
5590
+ */
5451
5591
  render() {
5452
5592
  var e = arguments, t = this;
5453
5593
  return xe(function* () {
@@ -5459,6 +5599,10 @@ class Tt {
5459
5599
  }, r)), yield t.ready(), t.stop();
5460
5600
  })();
5461
5601
  }
5602
+ /**
5603
+ * Start rendering.
5604
+ * @param options - Render options.
5605
+ */
5462
5606
  start() {
5463
5607
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, {
5464
5608
  documentElement: t,
@@ -5469,99 +5613,108 @@ class Tt {
5469
5613
  enableRedraw: !0
5470
5614
  }, i), e));
5471
5615
  }
5616
+ /**
5617
+ * Stop rendering.
5618
+ */
5472
5619
  stop() {
5473
5620
  this.screen.stop();
5474
5621
  }
5622
+ /**
5623
+ * Resize SVG to fit in given size.
5624
+ * @param width
5625
+ * @param height
5626
+ * @param preserveAspectRatio
5627
+ */
5475
5628
  resize(e) {
5476
5629
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : e, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
5477
5630
  this.documentElement.resize(e, t, r);
5478
5631
  }
5479
5632
  }
5480
5633
  export {
5481
- L1 as AElement,
5482
- I1 as AnimateColorElement,
5483
- sn as AnimateElement,
5484
- N1 as AnimateTransformElement,
5634
+ G1 as AElement,
5635
+ k1 as AnimateColorElement,
5636
+ on as AnimateElement,
5637
+ B1 as AnimateTransformElement,
5485
5638
  he as BoundingBox,
5486
- Oo as CB1,
5487
- So as CB2,
5488
- Eo as CB3,
5489
- $o as CB4,
5490
- Tt as Canvg,
5491
- T1 as CircleElement,
5492
- G1 as ClipPathElement,
5493
- w1 as DefsElement,
5494
- Q1 as DescElement,
5639
+ So as CB1,
5640
+ Eo as CB2,
5641
+ $o as CB3,
5642
+ Co as CB4,
5643
+ xt as Canvg,
5644
+ A1 as CircleElement,
5645
+ K1 as ClipPathElement,
5646
+ _1 as DefsElement,
5647
+ a2 as DescElement,
5495
5648
  Ee as Document,
5496
5649
  I as Element,
5497
- O1 as EllipseElement,
5498
- $l as FeColorMatrixElement,
5499
- X1 as FeCompositeElement,
5500
- H1 as FeDropShadowElement,
5501
- W1 as FeGaussianBlurElement,
5502
- Y1 as FeMorphologyElement,
5503
- jr as FilterElement,
5650
+ P1 as EllipseElement,
5651
+ Al as FeColorMatrixElement,
5652
+ e2 as FeCompositeElement,
5653
+ Z1 as FeDropShadowElement,
5654
+ t2 as FeGaussianBlurElement,
5655
+ J1 as FeMorphologyElement,
5656
+ Fr as FilterElement,
5504
5657
  J as Font,
5505
- M1 as FontElement,
5506
- _1 as FontFaceElement,
5507
- nn as GElement,
5508
- xl as GlyphElement,
5509
- Sl as GradientElement,
5510
- F1 as ImageElement,
5511
- S1 as LineElement,
5512
- A1 as LinearGradientElement,
5513
- C1 as MarkerElement,
5514
- Fr as MaskElement,
5515
- ml as Matrix,
5516
- D1 as MissingGlyphElement,
5517
- n1 as Mouse,
5518
- nt as PSEUDO_ZERO,
5658
+ F1 as FontElement,
5659
+ j1 as FontFaceElement,
5660
+ sn as GElement,
5661
+ Sl as GlyphElement,
5662
+ Cl as GradientElement,
5663
+ X1 as ImageElement,
5664
+ R1 as LineElement,
5665
+ D1 as LinearGradientElement,
5666
+ M1 as MarkerElement,
5667
+ Br as MaskElement,
5668
+ Tl as Matrix,
5669
+ U1 as MissingGlyphElement,
5670
+ f1 as Mouse,
5671
+ it as PSEUDO_ZERO,
5519
5672
  Ha as Parser,
5520
5673
  A as PathElement,
5521
5674
  C as PathParser,
5522
- $1 as PatternElement,
5675
+ N1 as PatternElement,
5523
5676
  V as Point,
5524
- E1 as PolygonElement,
5525
- Ol as PolylineElement,
5677
+ I1 as PolygonElement,
5678
+ $l as PolylineElement,
5526
5679
  S as Property,
5527
- Co as QB1,
5528
- wo as QB2,
5529
- Ao as QB3,
5530
- P1 as RadialGradientElement,
5531
- Tl as RectElement,
5680
+ wo as QB1,
5681
+ Ao as QB2,
5682
+ Po as QB3,
5683
+ V1 as RadialGradientElement,
5684
+ El as RectElement,
5532
5685
  Ge as RenderedElement,
5533
- l1 as Rotate,
5534
- _t as SVGElement,
5535
- U1 as SVGFontLoader,
5536
- h1 as Scale,
5537
- kr as Screen,
5538
- bl as Skew,
5539
- v1 as SkewX,
5540
- f1 as SkewY,
5541
- R1 as StopElement,
5542
- El as StyleElement,
5543
- j1 as SymbolElement,
5544
- V1 as TRefElement,
5545
- Br as TSpanElement,
5686
+ p1 as Rotate,
5687
+ Mt as SVGElement,
5688
+ q1 as SVGFontLoader,
5689
+ y1 as Scale,
5690
+ Lr as Screen,
5691
+ Ol as Skew,
5692
+ m1 as SkewX,
5693
+ b1 as SkewY,
5694
+ L1 as StopElement,
5695
+ wl as StyleElement,
5696
+ W1 as SymbolElement,
5697
+ z1 as TRefElement,
5698
+ kr as TSpanElement,
5546
5699
  Ce as TextElement,
5547
- k1 as TextPathElement,
5548
- q1 as TitleElement,
5700
+ H1 as TextPathElement,
5701
+ r2 as TitleElement,
5549
5702
  Be as Transform,
5550
- u1 as Translate,
5551
- d1 as UnknownElement,
5552
- z1 as UseElement,
5553
- i1 as ViewPort,
5554
- ft as compressSpaces,
5555
- Tt as default,
5556
- a1 as getSelectorSpecificity,
5557
- Wb as normalizeAttributeName,
5558
- qb as normalizeColor,
5559
- dl as parseExternalUrl,
5560
- r2 as presets,
5703
+ d1 as Translate,
5704
+ O1 as UnknownElement,
5705
+ Q1 as UseElement,
5706
+ v1 as ViewPort,
5707
+ vt as compressSpaces,
5708
+ xt as default,
5709
+ h1 as getSelectorSpecificity,
5710
+ t1 as normalizeAttributeName,
5711
+ r1 as normalizeColor,
5712
+ ml as parseExternalUrl,
5713
+ l2 as presets,
5561
5714
  ie as toNumbers,
5562
- Hb as trimLeft,
5563
- Yb as trimRight,
5564
- xo as vectorMagnitude,
5565
- To as vectorsAngle,
5715
+ Zb as trimLeft,
5716
+ Jb as trimRight,
5717
+ To as vectorMagnitude,
5718
+ Oo as vectorsAngle,
5566
5719
  xi as vectorsRatio
5567
5720
  };