@opensystemslab/map 0.8.3 → 1.0.0-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import { c as Ke, _ as Ua, g as Po } from "./index-CXqLab25.mjs";
1
+ import { c as Ke, _ as Ua, g as Po } from "./index-BcNEfKoK.mjs";
2
2
  var vt = function(a) {
3
3
  return a && a.Math === Math && a;
4
4
  }, D = (
@@ -49,8 +49,7 @@ var bi = function(a, e) {
49
49
  } : Wr, je = function(a) {
50
50
  return a == null;
51
51
  }, Nl = je, Il = TypeError, he = function(a) {
52
- if (Nl(a))
53
- throw new Il("Can't call method on " + a);
52
+ if (Nl(a)) throw new Il("Can't call method on " + a);
54
53
  return a;
55
54
  }, Ml = Do, _l = he, $t = function(a) {
56
55
  return Ml(_l(a));
@@ -83,16 +82,14 @@ var xi = hr, yn = xi, Bl = k, jl = D, Fl = jl.String, Lo = !!Object.getOwnProper
83
82
  return "Object";
84
83
  }
85
84
  }, ql = B, Ql = br, Kl = TypeError, Te = function(a) {
86
- if (ql(a))
87
- return a;
85
+ if (ql(a)) return a;
88
86
  throw new Kl(Ql(a) + " is not a function");
89
87
  }, Zl = Te, Jl = je, ot = function(a, e) {
90
88
  var t = a[e];
91
89
  return Jl(t) ? void 0 : Zl(t);
92
90
  }, Zr = Y, Jr = B, ea = ve, eh = TypeError, th = function(a, e) {
93
91
  var t, r;
94
- if (e === "string" && Jr(t = a.toString) && !ea(r = Zr(t, a)) || Jr(t = a.valueOf) && !ea(r = Zr(t, a)) || e !== "string" && Jr(t = a.toString) && !ea(r = Zr(t, a)))
95
- return r;
92
+ if (e === "string" && Jr(t = a.toString) && !ea(r = Zr(t, a)) || Jr(t = a.valueOf) && !ea(r = Zr(t, a)) || e !== "string" && Jr(t = a.toString) && !ea(r = Zr(t, a))) return r;
96
93
  throw new eh("Can't convert object to primitive value");
97
94
  }, Fo = { exports: {} }, mn = D, rh = Object.defineProperty, Ti = function(a, e) {
98
95
  try {
@@ -120,12 +117,10 @@ var Oi = Fo.exports, Tn = Oi, Si = function(a, e) {
120
117
  }, gh = D, dh = Si, On = fe, ph = Uo, yh = Lo, mh = Bo, Ze = gh.Symbol, ta = dh("wks"), bh = mh ? Ze.for || Ze : Ze && Ze.withoutSetter || ph, z = function(a) {
121
118
  return On(ta, a) || (ta[a] = yh && On(Ze, a) ? Ze[a] : bh("Symbol." + a)), ta[a];
122
119
  }, xh = Y, Sn = ve, En = jo, Th = ot, Oh = th, Sh = z, Eh = TypeError, $h = Sh("toPrimitive"), wh = function(a, e) {
123
- if (!Sn(a) || En(a))
124
- return a;
120
+ if (!Sn(a) || En(a)) return a;
125
121
  var t = Th(a, $h), r;
126
122
  if (t) {
127
- if (e === void 0 && (e = "default"), r = xh(t, a, e), !Sn(r) || En(r))
128
- return r;
123
+ if (e === void 0 && (e = "default"), r = xh(t, a, e), !Sn(r) || En(r)) return r;
129
124
  throw new Eh("Can't convert object to primitive value");
130
125
  }
131
126
  return e === void 0 && (e = "number"), Oh(a, e);
@@ -142,13 +137,11 @@ var Oi = Fo.exports, Tn = Oi, Si = function(a, e) {
142
137
  }).a !== 7;
143
138
  }), _h = le, Vh = Y, Dh = Ro, kh = bi, Lh = $t, Bh = Go, jh = fe, Fh = zo, wn = Object.getOwnPropertyDescriptor;
144
139
  Et.f = _h ? wn : function(e, t) {
145
- if (e = Lh(e), t = Bh(t), Fh)
146
- try {
147
- return wn(e, t);
148
- } catch {
149
- }
150
- if (jh(e, t))
151
- return kh(!Vh(Dh.f, e, t), e[t]);
140
+ if (e = Lh(e), t = Bh(t), Fh) try {
141
+ return wn(e, t);
142
+ } catch {
143
+ }
144
+ if (jh(e, t)) return kh(!Vh(Dh.f, e, t), e[t]);
152
145
  };
153
146
  var Oe = {}, Uh = le, Gh = k, Ho = Uh && Gh(function() {
154
147
  return Object.defineProperty(function() {
@@ -157,8 +150,7 @@ var Oe = {}, Uh = le, Gh = k, Ho = Uh && Gh(function() {
157
150
  writable: !1
158
151
  }).prototype !== 42;
159
152
  }), zh = ve, Hh = String, Yh = TypeError, J = function(a) {
160
- if (zh(a))
161
- return a;
153
+ if (zh(a)) return a;
162
154
  throw new Yh(Hh(a) + " is not an object");
163
155
  }, Xh = le, Wh = zo, qh = Ho, Ut = J, Cn = Go, Qh = TypeError, ra = Object.defineProperty, Kh = Object.getOwnPropertyDescriptor, aa = "enumerable", ia = "configurable", na = "writable";
164
156
  Oe.f = Xh ? qh ? function(e, t, r) {
@@ -172,13 +164,11 @@ Oe.f = Xh ? qh ? function(e, t, r) {
172
164
  }
173
165
  return ra(e, t, r);
174
166
  } : ra : function(e, t, r) {
175
- if (Ut(e), t = Cn(t), Ut(r), Wh)
176
- try {
177
- return ra(e, t, r);
178
- } catch {
179
- }
180
- if ("get" in r || "set" in r)
181
- throw new Qh("Accessors not supported");
167
+ if (Ut(e), t = Cn(t), Ut(r), Wh) try {
168
+ return ra(e, t, r);
169
+ } catch {
170
+ }
171
+ if ("get" in r || "set" in r) throw new Qh("Accessors not supported");
182
172
  return "value" in r && (e[t] = r.value), e;
183
173
  };
184
174
  var Zh = le, Jh = Oe, ev = bi, wt = Zh ? function(a, e, t) {
@@ -209,8 +199,7 @@ var $i = Ya.inspectSource, uv = D, lv = B, An = uv.WeakMap, hv = lv(An) && /nati
209
199
  if (cv || oa.state) {
210
200
  var de = oa.state || (oa.state = new mv());
211
201
  de.get = de.get, de.has = de.has, de.set = de.set, vr = function(a, e) {
212
- if (de.has(a))
213
- throw new Xa(Rn);
202
+ if (de.has(a)) throw new Xa(Rn);
214
203
  return e.facade = a, de.set(a, e), e;
215
204
  }, Tt = function(a) {
216
205
  return de.get(a) || {};
@@ -220,8 +209,7 @@ if (cv || oa.state) {
220
209
  } else {
221
210
  var Ye = pv("state");
222
211
  yv[Ye] = !0, vr = function(a, e) {
223
- if (sa(a, Ye))
224
- throw new Xa(Rn);
212
+ if (sa(a, Ye)) throw new Xa(Rn);
225
213
  return e.facade = a, dv(a, Ye, e), e;
226
214
  }, Tt = function(a) {
227
215
  return sa(a, Ye) ? a[Ye] : {};
@@ -285,17 +273,13 @@ var Qo = Yo.exports, Mv = B, _v = Oe, Vv = Qo, Dv = Ti, Ue = function(a, e, t, r
285
273
  }, Wv = $t, qv = zv, Qv = Pi, In = function(a) {
286
274
  return function(e, t, r) {
287
275
  var i = Wv(e), n = Qv(i);
288
- if (n === 0)
289
- return !a && -1;
276
+ if (n === 0) return !a && -1;
290
277
  var o = qv(r, n), s;
291
278
  if (a && t !== t) {
292
279
  for (; n > o; )
293
- if (s = i[o++], s !== s)
294
- return !0;
295
- } else
296
- for (; n > o; o++)
297
- if ((a || o in i) && i[o] === t)
298
- return a || o || 0;
280
+ if (s = i[o++], s !== s) return !0;
281
+ } else for (; n > o; o++)
282
+ if ((a || o in i) && i[o] === t) return a || o || 0;
299
283
  return !a && -1;
300
284
  };
301
285
  }, Zo = {
@@ -307,10 +291,8 @@ var Qo = Yo.exports, Mv = B, _v = Oe, Vv = Qo, Dv = Ti, Ue = function(a, e, t, r
307
291
  indexOf: In(!1)
308
292
  }, Kv = L, ua = fe, Zv = $t, Jv = Zo.indexOf, ef = Ci, Mn = Kv([].push), Jo = function(a, e) {
309
293
  var t = Zv(a), r = 0, i = [], n;
310
- for (n in t)
311
- !ua(ef, n) && ua(t, n) && Mn(i, n);
312
- for (; e.length > r; )
313
- ua(t, n = e[r++]) && (~Jv(i, n) || Mn(i, n));
294
+ for (n in t) !ua(ef, n) && ua(t, n) && Mn(i, n);
295
+ for (; e.length > r; ) ua(t, n = e[r++]) && (~Jv(i, n) || Mn(i, n));
314
296
  return i;
315
297
  }, Ri = [
316
298
  "constructor",
@@ -341,15 +323,13 @@ var nf = Fe, sf = L, of = Ko, uf = eu, lf = J, hf = sf([].concat), vf = nf("Refl
341
323
  return String(a).replace(mf, ".").toLowerCase();
342
324
  }, xf = Ct.data = {}, Tf = Ct.NATIVE = "N", Of = Ct.POLYFILL = "P", tu = Ct, zt = D, Sf = Et.f, Ef = wt, $f = Ue, wf = Ti, Cf = df, Af = tu, ee = function(a, e) {
343
325
  var t = a.target, r = a.global, i = a.stat, n, o, s, u, l, h;
344
- if (r ? o = zt : i ? o = zt[t] || wf(t, {}) : o = zt[t] && zt[t].prototype, o)
345
- for (s in e) {
346
- if (l = e[s], a.dontCallGetSet ? (h = Sf(o, s), u = h && h.value) : u = o[s], n = Af(r ? s : t + (i ? "." : "#") + s, a.forced), !n && u !== void 0) {
347
- if (typeof l == typeof u)
348
- continue;
349
- Cf(l, u);
350
- }
351
- (a.sham || u && u.sham) && Ef(l, "sham", !0), $f(o, s, l, a);
326
+ if (r ? o = zt : i ? o = zt[t] || wf(t, {}) : o = zt[t] && zt[t].prototype, o) for (s in e) {
327
+ if (l = e[s], a.dontCallGetSet ? (h = Sf(o, s), u = h && h.value) : u = o[s], n = Af(r ? s : t + (i ? "." : "#") + s, a.forced), !n && u !== void 0) {
328
+ if (typeof l == typeof u) continue;
329
+ Cf(l, u);
352
330
  }
331
+ (a.sham || u && u.sham) && Ef(l, "sham", !0), $f(o, s, l, a);
332
+ }
353
333
  }, Pf = D, Rf = Be, At = Rf(Pf.process) === "process", Nf = L, If = Te, Mf = function(a, e, t) {
354
334
  try {
355
335
  return Nf(If(Object.getOwnPropertyDescriptor(a, e)[t]));
@@ -358,8 +338,7 @@ var nf = Fe, sf = L, of = Ko, uf = eu, lf = J, hf = sf([].concat), vf = nf("Refl
358
338
  }, _f = ve, Vf = function(a) {
359
339
  return _f(a) || a === null;
360
340
  }, Df = Vf, kf = String, Lf = TypeError, Bf = function(a) {
361
- if (Df(a))
362
- return a;
341
+ if (Df(a)) return a;
363
342
  throw new Lf("Can't set " + kf(a) + " as a prototype");
364
343
  }, jf = Mf, Ff = ve, Uf = he, Gf = Bf, ru = Object.setPrototypeOf || ("__proto__" in {} ? function() {
365
344
  var a = !1, e = {}, t;
@@ -383,8 +362,7 @@ var nf = Fe, sf = L, of = Ko, uf = eu, lf = J, hf = sf([].concat), vf = nf("Refl
383
362
  }
384
363
  });
385
364
  }, ec = yr, tc = TypeError, rc = function(a, e) {
386
- if (ec(e, a))
387
- return a;
365
+ if (ec(e, a)) return a;
388
366
  throw new tc("Incorrect invocation");
389
367
  }, ac = z, ic = ac("toStringTag"), au = {};
390
368
  au[ic] = "z";
@@ -400,16 +378,14 @@ var nc = String(au) === "[object z]", sc = nc, oc = B, nr = Be, uc = z, lc = uc(
400
378
  return a === void 0 ? "Undefined" : a === null ? "Null" : typeof (t = fc(e = hc(a), lc)) == "string" ? t : vc ? nr(e) : (r = nr(e)) === "Object" && oc(e.callee) ? "Arguments" : r;
401
379
  }, cc = L, gc = k, iu = B, dc = Ni, pc = Fe, yc = $i, nu = function() {
402
380
  }, su = pc("Reflect", "construct"), Ii = /^\s*(?:class|function)\b/, mc = cc(Ii.exec), bc = !Ii.test(nu), ft = function(e) {
403
- if (!iu(e))
404
- return !1;
381
+ if (!iu(e)) return !1;
405
382
  try {
406
383
  return su(nu, [], e), !0;
407
384
  } catch {
408
385
  return !1;
409
386
  }
410
387
  }, ou = function(e) {
411
- if (!iu(e))
412
- return !1;
388
+ if (!iu(e)) return !1;
413
389
  switch (dc(e)) {
414
390
  case "AsyncFunction":
415
391
  case "GeneratorFunction":
@@ -429,8 +405,7 @@ var xc = !su || gc(function() {
429
405
  a = !0;
430
406
  }) || a;
431
407
  }) ? ou : ft, Tc = xc, Oc = br, Sc = TypeError, Ec = function(a) {
432
- if (Tc(a))
433
- return a;
408
+ if (Tc(a)) return a;
434
409
  throw new Sc(Oc(a) + " is not a constructor");
435
410
  }, Ln = J, $c = Ec, wc = je, Cc = z, Ac = Cc("species"), uu = function(a, e) {
436
411
  var t = Ln(a).constructor, r;
@@ -438,15 +413,13 @@ var xc = !su || gc(function() {
438
413
  }, Pc = pr, lu = Function.prototype, Bn = lu.apply, jn = lu.call, hu = typeof Reflect == "object" && Reflect.apply || (Pc ? jn.bind(Bn) : function() {
439
414
  return jn.apply(Bn, arguments);
440
415
  }), Rc = Be, Nc = L, wr = function(a) {
441
- if (Rc(a) === "Function")
442
- return Nc(a);
416
+ if (Rc(a) === "Function") return Nc(a);
443
417
  }, Fn = wr, Ic = Te, Mc = pr, _c = Fn(Fn.bind), Mi = function(a, e) {
444
418
  return Ic(a), e === void 0 ? a : Mc ? _c(a, e) : function() {
445
419
  return a.apply(e, arguments);
446
420
  };
447
421
  }, Vc = Fe, vu = Vc("document", "documentElement"), Dc = L, kc = Dc([].slice), Lc = TypeError, Bc = function(a, e) {
448
- if (a < e)
449
- throw new Lc("Not enough arguments");
422
+ if (a < e) throw new Lc("Not enough arguments");
450
423
  return a;
451
424
  }, jc = mr, fu = /(?:ipad|iphone|ipod).*applewebkit/i.test(jc), ae = D, Fc = hu, Uc = Mi, Un = B, Gc = fe, cu = k, Gn = vu, zc = kc, zn = Tr, Hc = Bc, Yc = fu, Xc = At, qa = ae.setImmediate, Qa = ae.clearImmediate, Wc = ae.process, la = ae.Dispatch, qc = ae.Function, Hn = ae.MessageChannel, Qc = ae.String, ha = 0, bt = {}, Yn = "onreadystatechange", Ot, Ie, va, fa;
452
425
  cu(function() {
@@ -489,8 +462,7 @@ var gu = {
489
462
  set: qa,
490
463
  clear: Qa
491
464
  }, qn = D, Kc = le, Zc = Object.getOwnPropertyDescriptor, Jc = function(a) {
492
- if (!Kc)
493
- return qn[a];
465
+ if (!Kc) return qn[a];
494
466
  var e = Zc(qn, a);
495
467
  return e && e.value;
496
468
  }, du = function() {
@@ -513,12 +485,11 @@ var pu = du, eg = mr, tg = /ipad|iphone|ipod/i.test(eg) && typeof Pebble < "u",
513
485
  if (!Ka) {
514
486
  var Xt = new ng(), Wt = function() {
515
487
  var a, e;
516
- for (da && (a = Jn.domain) && a.exit(); e = Xt.get(); )
517
- try {
518
- e();
519
- } catch (t) {
520
- throw Xt.head && Xe(), t;
521
- }
488
+ for (da && (a = Jn.domain) && a.exit(); e = Xt.get(); ) try {
489
+ e();
490
+ } catch (t) {
491
+ throw Xt.head && Xe(), t;
492
+ }
522
493
  a && a.enter();
523
494
  };
524
495
  !sg && !da && !ug && Kn && Zn ? (pa = !0, ya = Zn.createTextNode(""), new Kn(Wt).observe(ya, { characterData: !0 }), Xe = function() {
@@ -548,8 +519,7 @@ var lg = Ka, hg = function(a, e) {
548
519
  xt && xt.prototype;
549
520
  var Og = bg("species"), Za = !1, mu = pg(dg.PromiseRejectionEvent), Sg = yg("Promise", function() {
550
521
  var a = mg(xt), e = a !== String(xt);
551
- if (!e && ma === 66)
552
- return !0;
522
+ if (!e && ma === 66) return !0;
553
523
  if (!ma || ma < 51 || !/native code/.test(a)) {
554
524
  var t = new xt(function(n) {
555
525
  n(1);
@@ -559,8 +529,7 @@ var Og = bg("species"), Za = !1, mu = pg(dg.PromiseRejectionEvent), Sg = yg("Pro
559
529
  });
560
530
  }, i = t.constructor = {};
561
531
  if (i[Og] = r, Za = t.then(function() {
562
- }) instanceof r, !Za)
563
- return !0;
532
+ }) instanceof r, !Za) return !0;
564
533
  }
565
534
  return !e && (xg || Tg) && !mu;
566
535
  }), Pt = {
@@ -570,8 +539,7 @@ var Og = bg("species"), Za = !1, mu = pg(dg.PromiseRejectionEvent), Sg = yg("Pro
570
539
  }, lt = {}, ts = Te, Eg = TypeError, $g = function(a) {
571
540
  var e, t;
572
541
  this.promise = new a(function(r, i) {
573
- if (e !== void 0 || t !== void 0)
574
- throw new Eg("Bad Promise constructor");
542
+ if (e !== void 0 || t !== void 0) throw new Eg("Bad Promise constructor");
575
543
  e = r, t = i;
576
544
  }), this.resolve = ts(e), this.reject = ts(t);
577
545
  };
@@ -622,8 +590,7 @@ var wg = ee, cr = At, we = D, nt = Y, rs = Ue, as = ru, Cg = $r, Ag = Jf, Pg = T
622
590
  if (!a.done) {
623
591
  a.done = !0, t && (a = t);
624
592
  try {
625
- if (a.facade === e)
626
- throw new Su("Promise can't be resolved itself");
593
+ if (a.facade === e) throw new Su("Promise can't be resolved itself");
627
594
  var r = Cu(e);
628
595
  r ? Di(function() {
629
596
  var i = { done: !1 };
@@ -693,30 +660,25 @@ Ag(Ar);
693
660
  var Rt = {}, Yg = z, Xg = Rt, Wg = Yg("iterator"), qg = Array.prototype, Qg = function(a) {
694
661
  return a !== void 0 && (Xg.Array === a || qg[Wg] === a);
695
662
  }, Kg = Ni, us = ot, Zg = je, Jg = Rt, ed = z, td = ed("iterator"), Nu = function(a) {
696
- if (!Zg(a))
697
- return us(a, td) || us(a, "@@iterator") || Jg[Kg(a)];
663
+ if (!Zg(a)) return us(a, td) || us(a, "@@iterator") || Jg[Kg(a)];
698
664
  }, rd = Y, ad = Te, id = J, nd = br, sd = Nu, od = TypeError, ud = function(a, e) {
699
665
  var t = arguments.length < 2 ? sd(a) : e;
700
- if (ad(t))
701
- return id(rd(t, a));
666
+ if (ad(t)) return id(rd(t, a));
702
667
  throw new od(nd(a) + " is not iterable");
703
668
  }, ld = Y, ls = J, hd = ot, vd = function(a, e, t) {
704
669
  var r, i;
705
670
  ls(a);
706
671
  try {
707
672
  if (r = hd(a, "return"), !r) {
708
- if (e === "throw")
709
- throw t;
673
+ if (e === "throw") throw t;
710
674
  return t;
711
675
  }
712
676
  r = ld(r, a);
713
677
  } catch (n) {
714
678
  i = !0, r = n;
715
679
  }
716
- if (e === "throw")
717
- throw t;
718
- if (i)
719
- throw r;
680
+ if (e === "throw") throw t;
681
+ if (i) throw r;
720
682
  return ls(r), t;
721
683
  }, fd = Mi, cd = Y, gd = J, dd = br, pd = Qg, yd = Pi, hs = yr, md = ud, bd = Nu, vs = vd, xd = TypeError, or = function(a, e) {
722
684
  this.stopped = a, this.result = e;
@@ -731,12 +693,10 @@ var Rt = {}, Yg = z, Xg = Rt, Wg = Yg("iterator"), qg = Array.prototype, Qg = fu
731
693
  else if (o)
732
694
  l = a;
733
695
  else {
734
- if (h = bd(a), !h)
735
- throw new xd(dd(a) + " is not iterable");
696
+ if (h = bd(a), !h) throw new xd(dd(a) + " is not iterable");
736
697
  if (pd(h)) {
737
698
  for (f = 0, c = yd(a); c > f; f++)
738
- if (v = y(a[f]), v && hs(fs, v))
739
- return v;
699
+ if (v = y(a[f]), v && hs(fs, v)) return v;
740
700
  return new or(!1);
741
701
  }
742
702
  l = md(a, h);
@@ -747,8 +707,7 @@ var Rt = {}, Yg = z, Xg = Rt, Wg = Yg("iterator"), qg = Array.prototype, Qg = fu
747
707
  } catch (x) {
748
708
  vs(l, "throw", x);
749
709
  }
750
- if (typeof v == "object" && v && hs(fs, v))
751
- return v;
710
+ if (typeof v == "object" && v && hs(fs, v)) return v;
752
711
  }
753
712
  return new or(!1);
754
713
  }, Td = z, Mu = Td("iterator"), _u = !1;
@@ -770,8 +729,7 @@ try {
770
729
  }
771
730
  var Sd = function(a, e) {
772
731
  try {
773
- if (!e && !_u)
774
- return !1;
732
+ if (!e && !_u) return !1;
775
733
  } catch {
776
734
  return !1;
777
735
  }
@@ -836,8 +794,7 @@ Yd({ target: "Promise", stat: !0, forced: Wd }, {
836
794
  }
837
795
  });
838
796
  var qd = J, Qd = ve, Kd = lt, Zd = function(a, e) {
839
- if (qd(a), Qd(e) && e.constructor === a)
840
- return e;
797
+ if (qd(a), Qd(e) && e.constructor === a) return e;
841
798
  var t = Kd.f(a), r = t.resolve;
842
799
  return r(e), t.promise;
843
800
  }, Jd = ee, ep = Fe, tp = Pt.CONSTRUCTOR, rp = Zd;
@@ -871,8 +828,7 @@ function xe(a) {
871
828
  };
872
829
  }
873
830
  var ap = Ni, ip = String, pe = function(a) {
874
- if (ap(a) === "Symbol")
875
- throw new TypeError("Cannot convert a Symbol value to a string");
831
+ if (ap(a) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
876
832
  return ip(a);
877
833
  }, np = J, Du = function() {
878
834
  var a = np(this), e = "";
@@ -894,8 +850,7 @@ var ap = Ni, ip = String, pe = function(a) {
894
850
  }, fp = le, cp = Ho, gp = Oe, dp = J, pp = $t, yp = vp;
895
851
  Lu.f = fp && !cp ? Object.defineProperties : function(e, t) {
896
852
  dp(e);
897
- for (var r = pp(t), i = yp(t), n = i.length, o = 0, s; n > o; )
898
- gp.f(e, s = i[o++], r[s]);
853
+ for (var r = pp(t), i = yp(t), n = i.length, o = 0, s; n > o; ) gp.f(e, s = i[o++], r[s]);
899
854
  return e;
900
855
  };
901
856
  var mp = J, bp = Lu, ys = Ri, xp = Ci, Tp = vu, Op = Tr, Sp = wi, ms = ">", bs = "<", ai = "prototype", ii = "script", Bu = Sp("IE_PROTO"), xa = function() {
@@ -914,8 +869,7 @@ var mp = J, bp = Lu, ys = Ri, xp = Ci, Tp = vu, Op = Tr, Sp = wi, ms = ">", bs =
914
869
  } catch {
915
870
  }
916
871
  ur = typeof document < "u" ? document.domain && Kt ? xs(Kt) : Ep() : xs(Kt);
917
- for (var a = ys.length; a--; )
918
- delete ur[ai][ys[a]];
872
+ for (var a = ys.length; a--; ) delete ur[ai][ys[a]];
919
873
  return ur();
920
874
  };
921
875
  xp[Bu] = !0;
@@ -993,8 +947,7 @@ var Os = Y, Ss = Ue, Xp = zi, Es = k, Uu = z, Wp = wt, qp = Uu("species"), Oa =
993
947
  var r = Cs(t, a, e);
994
948
  return r !== null && ay(r), r;
995
949
  }
996
- if (ny(a) === "RegExp")
997
- return Cs(sy, a, e);
950
+ if (ny(a) === "RegExp") return Cs(sy, a, e);
998
951
  throw new oy("RegExp#exec called on incompatible receiver");
999
952
  }, uy = Y, ly = Hi, hy = J, vy = je, fy = ut, Sa = pe, cy = he, gy = ot, dy = Xi, As = Wi;
1000
953
  ly("match", function(a, e, t) {
@@ -1009,10 +962,8 @@ ly("match", function(a, e, t) {
1009
962
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
1010
963
  function(r) {
1011
964
  var i = hy(this), n = Sa(r), o = t(e, i, n);
1012
- if (o.done)
1013
- return o.value;
1014
- if (!i.global)
1015
- return As(i, n);
965
+ if (o.done) return o.value;
966
+ if (!i.global) return As(i, n);
1016
967
  var s = i.unicode;
1017
968
  i.lastIndex = 0;
1018
969
  for (var u = [], l = 0, h; (h = As(i, n)) !== null; ) {
@@ -1041,8 +992,7 @@ var qi = L, py = xr, yy = Math.floor, Ea = qi("".charAt), my = qi("".replace), $
1041
992
  break;
1042
993
  default:
1043
994
  var c = +h;
1044
- if (c === 0)
1045
- return l;
995
+ if (c === 0) return l;
1046
996
  if (c > s) {
1047
997
  var v = yy(c / 10);
1048
998
  return v === 0 ? l : v <= s ? r[v - 1] === void 0 ? Ea(h, 1) : r[v - 1] + Ea(h, 1) : l;
@@ -1079,8 +1029,7 @@ Sy("replace", function(a, e, t) {
1079
1029
  var o = $y(this), s = We(i);
1080
1030
  if (typeof n == "string" && Rs(n, r) === -1 && Rs(n, "$<") === -1) {
1081
1031
  var u = t(e, o, s, n);
1082
- if (u.done)
1083
- return u.value;
1032
+ if (u.done) return u.value;
1084
1033
  }
1085
1034
  var l = wy(n);
1086
1035
  l || (n = We(n));
@@ -1092,8 +1041,7 @@ Sy("replace", function(a, e, t) {
1092
1041
  }
1093
1042
  for (var g = "", p = 0, y = 0; y < c.length; y++) {
1094
1043
  v = c[y];
1095
- for (var x = We(v[0]), b = Dy(ky(Ay(v.index), s.length), 0), T = [], $, E = 1; E < v.length; E++)
1096
- wa(T, By(v[E]));
1044
+ for (var x = We(v[0]), b = Dy(ky(Ay(v.index), s.length), 0), T = [], $, E = 1; E < v.length; E++) wa(T, By(v[E]));
1097
1045
  var O = v.groups;
1098
1046
  if (l) {
1099
1047
  var C = Ly([x], T, b, s);
@@ -1149,8 +1097,7 @@ var hm = function(a) {
1149
1097
  return a.prototype.constructor = null, Object.getPrototypeOf(new a()) !== a.prototype;
1150
1098
  }), cm = fe, gm = B, dm = xr, pm = wi, ym = fm, _s = pm("IE_PROTO"), vi = Object, mm = vi.prototype, zu = ym ? vi.getPrototypeOf : function(a) {
1151
1099
  var e = dm(a);
1152
- if (cm(e, _s))
1153
- return e[_s];
1100
+ if (cm(e, _s)) return e[_s];
1154
1101
  var t = e.constructor;
1155
1102
  return gm(t) && e instanceof t ? t.prototype : e instanceof vi ? mm : null;
1156
1103
  }, bm = k, xm = B, Tm = ve, Vs = zu, Om = Ue, Sm = z, fi = Sm("iterator"), Hu = !1, ke, Ca, Aa;
@@ -1176,10 +1123,8 @@ var Yu = {
1176
1123
  }, Gm = function(a, e, t, r, i, n, o) {
1177
1124
  Vm(t, e, r);
1178
1125
  var s = function(y) {
1179
- if (y === i && c)
1180
- return c;
1181
- if (!Zt && y && y in h)
1182
- return h[y];
1126
+ if (y === i && c) return c;
1127
+ if (!Zt && y && y in h) return h[y];
1183
1128
  switch (y) {
1184
1129
  case Bs:
1185
1130
  return function() {
@@ -1205,11 +1150,9 @@ var Yu = {
1205
1150
  values: s(gt),
1206
1151
  keys: n ? c : s(Bs),
1207
1152
  entries: s(js)
1208
- }, o)
1209
- for (p in g)
1210
- (Zt || l || !(p in h)) && Pa(h, p, g[p]);
1211
- else
1212
- Im({ target: e, proto: !0, forced: Zt || l }, g);
1153
+ }, o) for (p in g)
1154
+ (Zt || l || !(p in h)) && Pa(h, p, g[p]);
1155
+ else Im({ target: e, proto: !0, forced: Zt || l }, g);
1213
1156
  return h[ct] !== c && Pa(h, ct, c, { name: i }), Bm[e] = c, g;
1214
1157
  }, zm = function(a, e) {
1215
1158
  return { value: a, done: e };
@@ -1238,11 +1181,10 @@ var Yu = {
1238
1181
  Zi("keys");
1239
1182
  Zi("values");
1240
1183
  Zi("entries");
1241
- if (Wm && Us.name !== "values")
1242
- try {
1243
- Ym(Us, "name", { value: "values" });
1244
- } catch {
1245
- }
1184
+ if (Wm && Us.name !== "values") try {
1185
+ Ym(Us, "name", { value: "values" });
1186
+ } catch {
1187
+ }
1246
1188
  var Zm = {
1247
1189
  CSSRuleList: 0,
1248
1190
  CSSStyleDeclaration: 0,
@@ -1277,20 +1219,18 @@ var Zm = {
1277
1219
  TouchList: 0
1278
1220
  }, Jm = Tr, Ra = Jm("span").classList, Gs = Ra && Ra.constructor && Ra.constructor.prototype, e0 = Gs === Object.prototype ? void 0 : Gs, zs = D, Ku = Zm, t0 = e0, pt = Km, Hs = wt, r0 = $r, a0 = z, Na = a0("iterator"), Ia = pt.values, Zu = function(a, e) {
1279
1221
  if (a) {
1280
- if (a[Na] !== Ia)
1281
- try {
1282
- Hs(a, Na, Ia);
1283
- } catch {
1284
- a[Na] = Ia;
1285
- }
1222
+ if (a[Na] !== Ia) try {
1223
+ Hs(a, Na, Ia);
1224
+ } catch {
1225
+ a[Na] = Ia;
1226
+ }
1286
1227
  if (r0(a, e, !0), Ku[e]) {
1287
1228
  for (var t in pt)
1288
- if (a[t] !== pt[t])
1289
- try {
1290
- Hs(a, t, pt[t]);
1291
- } catch {
1292
- a[t] = pt[t];
1293
- }
1229
+ if (a[t] !== pt[t]) try {
1230
+ Hs(a, t, pt[t]);
1231
+ } catch {
1232
+ a[t] = pt[t];
1233
+ }
1294
1234
  }
1295
1235
  }
1296
1236
  };
@@ -1298,13 +1238,11 @@ for (var Ma in Ku)
1298
1238
  Zu(zs[Ma] && zs[Ma].prototype, Ma);
1299
1239
  Zu(t0, "DOMTokenList");
1300
1240
  function i0(a, e) {
1301
- if (Ua(a) != "object" || !a)
1302
- return a;
1241
+ if (Ua(a) != "object" || !a) return a;
1303
1242
  var t = a[Symbol.toPrimitive];
1304
1243
  if (t !== void 0) {
1305
1244
  var r = t.call(a, e || "default");
1306
- if (Ua(r) != "object")
1307
- return r;
1245
+ if (Ua(r) != "object") return r;
1308
1246
  throw new TypeError("@@toPrimitive must return a primitive value.");
1309
1247
  }
1310
1248
  return (e === "string" ? String : Number)(a);
@@ -1324,20 +1262,17 @@ function Ji(a, e, t) {
1324
1262
  var s0 = Te, o0 = xr, u0 = Do, l0 = Pi, Ys = TypeError, Xs = "Reduce of empty array with no initial value", Ws = function(a) {
1325
1263
  return function(e, t, r, i) {
1326
1264
  var n = o0(e), o = u0(n), s = l0(n);
1327
- if (s0(t), s === 0 && r < 2)
1328
- throw new Ys(Xs);
1265
+ if (s0(t), s === 0 && r < 2) throw new Ys(Xs);
1329
1266
  var u = a ? s - 1 : 0, l = a ? -1 : 1;
1330
- if (r < 2)
1331
- for (; ; ) {
1332
- if (u in o) {
1333
- i = o[u], u += l;
1334
- break;
1335
- }
1336
- if (u += l, a ? u < 0 : s <= u)
1337
- throw new Ys(Xs);
1267
+ if (r < 2) for (; ; ) {
1268
+ if (u in o) {
1269
+ i = o[u], u += l;
1270
+ break;
1338
1271
  }
1339
- for (; a ? u >= 0 : s > u; u += l)
1340
- u in o && (i = t(i, o[u], u, n));
1272
+ if (u += l, a ? u < 0 : s <= u)
1273
+ throw new Ys(Xs);
1274
+ }
1275
+ for (; a ? u >= 0 : s > u; u += l) u in o && (i = t(i, o[u], u, n));
1341
1276
  return i;
1342
1277
  };
1343
1278
  }, h0 = {
@@ -1403,25 +1338,20 @@ A0("split", function(a, e, t) {
1403
1338
  var o = P0(this), s = Ks(i);
1404
1339
  if (!Js) {
1405
1340
  var u = t(r, o, s, n, r !== e);
1406
- if (u.done)
1407
- return u.value;
1341
+ if (u.done) return u.value;
1408
1342
  }
1409
1343
  var l = I0(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 ? L0 : n >>> 0;
1410
- if (v === 0)
1411
- return [];
1412
- if (s.length === 0)
1413
- return Zs(c, s) === null ? [s] : [];
1344
+ if (v === 0) return [];
1345
+ if (s.length === 0) return Zs(c, s) === null ? [s] : [];
1414
1346
  for (var d = 0, g = 0, p = []; g < s.length; ) {
1415
1347
  c.lastIndex = qe ? 0 : g;
1416
1348
  var y = Zs(c, qe ? Da(s, g) : s), x;
1417
1349
  if (y === null || (x = B0(_0(c.lastIndex + (qe ? g : 0)), s.length)) === d)
1418
1350
  g = M0(s, g, h);
1419
1351
  else {
1420
- if (Va(p, Da(s, d, g)), p.length === v)
1421
- return p;
1352
+ if (Va(p, Da(s, d, g)), p.length === v) return p;
1422
1353
  for (var b = 1; b <= y.length - 1; b++)
1423
- if (Va(p, y[b]), p.length === v)
1424
- return p;
1354
+ if (Va(p, y[b]), p.length === v) return p;
1425
1355
  g = d = x;
1426
1356
  }
1427
1357
  }
@@ -1788,13 +1718,11 @@ var il = function(a, e) {
1788
1718
  return (il = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, r) {
1789
1719
  t.__proto__ = r;
1790
1720
  } || function(t, r) {
1791
- for (var i in r)
1792
- Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
1721
+ for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
1793
1722
  })(a, e);
1794
1723
  };
1795
1724
  function nl(a, e) {
1796
- if (typeof e != "function" && e !== null)
1797
- throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
1725
+ if (typeof e != "function" && e !== null) throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
1798
1726
  function t() {
1799
1727
  this.constructor = a;
1800
1728
  }
@@ -1805,27 +1733,17 @@ function Tb(a) {
1805
1733
  Array.isArray(a) || (a = [a]);
1806
1734
  for (var t = 0; t < a.length; t++) {
1807
1735
  var r = a[t];
1808
- if (r.type === m.CLOSE_PATH)
1809
- e += "z";
1810
- else if (r.type === m.HORIZ_LINE_TO)
1811
- e += (r.relative ? "h" : "H") + r.x;
1812
- else if (r.type === m.VERT_LINE_TO)
1813
- e += (r.relative ? "v" : "V") + r.y;
1814
- else if (r.type === m.MOVE_TO)
1815
- e += (r.relative ? "m" : "M") + r.x + " " + r.y;
1816
- else if (r.type === m.LINE_TO)
1817
- e += (r.relative ? "l" : "L") + r.x + " " + r.y;
1818
- else if (r.type === m.CURVE_TO)
1819
- e += (r.relative ? "c" : "C") + r.x1 + " " + r.y1 + " " + r.x2 + " " + r.y2 + " " + r.x + " " + r.y;
1820
- else if (r.type === m.SMOOTH_CURVE_TO)
1821
- e += (r.relative ? "s" : "S") + r.x2 + " " + r.y2 + " " + r.x + " " + r.y;
1822
- else if (r.type === m.QUAD_TO)
1823
- e += (r.relative ? "q" : "Q") + r.x1 + " " + r.y1 + " " + r.x + " " + r.y;
1824
- else if (r.type === m.SMOOTH_QUAD_TO)
1825
- e += (r.relative ? "t" : "T") + r.x + " " + r.y;
1736
+ if (r.type === m.CLOSE_PATH) e += "z";
1737
+ else if (r.type === m.HORIZ_LINE_TO) e += (r.relative ? "h" : "H") + r.x;
1738
+ else if (r.type === m.VERT_LINE_TO) e += (r.relative ? "v" : "V") + r.y;
1739
+ else if (r.type === m.MOVE_TO) e += (r.relative ? "m" : "M") + r.x + " " + r.y;
1740
+ else if (r.type === m.LINE_TO) e += (r.relative ? "l" : "L") + r.x + " " + r.y;
1741
+ else if (r.type === m.CURVE_TO) e += (r.relative ? "c" : "C") + r.x1 + " " + r.y1 + " " + r.x2 + " " + r.y2 + " " + r.x + " " + r.y;
1742
+ else if (r.type === m.SMOOTH_CURVE_TO) e += (r.relative ? "s" : "S") + r.x2 + " " + r.y2 + " " + r.x + " " + r.y;
1743
+ else if (r.type === m.QUAD_TO) e += (r.relative ? "q" : "Q") + r.x1 + " " + r.y1 + " " + r.x + " " + r.y;
1744
+ else if (r.type === m.SMOOTH_QUAD_TO) e += (r.relative ? "t" : "T") + r.x + " " + r.y;
1826
1745
  else {
1827
- if (r.type !== m.ARC)
1828
- throw new Error('Unexpected command type "' + r.type + '" at index ' + t + ".");
1746
+ if (r.type !== m.ARC) throw new Error('Unexpected command type "' + r.type + '" at index ' + t + ".");
1829
1747
  e += (r.relative ? "a" : "A") + r.rX + " " + r.rY + " " + r.xRot + " " + +r.lArcFlag + " " + +r.sweepFlag + " " + r.x + " " + r.y;
1830
1748
  }
1831
1749
  }
@@ -1836,11 +1754,8 @@ function pi(a, e) {
1836
1754
  return [t * Math.cos(e) - r * Math.sin(e), t * Math.sin(e) + r * Math.cos(e)];
1837
1755
  }
1838
1756
  function oe() {
1839
- for (var a = [], e = 0; e < arguments.length; e++)
1840
- a[e] = arguments[e];
1841
- for (var t = 0; t < a.length; t++)
1842
- if (typeof a[t] != "number")
1843
- throw new Error("assertNumbers arguments[" + t + "] is not a number. " + typeof a[t] + " == typeof " + a[t]);
1757
+ for (var a = [], e = 0; e < arguments.length; e++) a[e] = arguments[e];
1758
+ for (var t = 0; t < a.length; t++) if (typeof a[t] != "number") throw new Error("assertNumbers arguments[" + t + "] is not a number. " + typeof a[t] + " == typeof " + a[t]);
1844
1759
  return !0;
1845
1760
  }
1846
1761
  var Ee = Math.PI;
@@ -1856,10 +1771,8 @@ function ja(a, e, t) {
1856
1771
  function so(a, e, t) {
1857
1772
  oe(a, e, t);
1858
1773
  var r = a * a + e * e - t * t;
1859
- if (0 > r)
1860
- return [];
1861
- if (r === 0)
1862
- return [[a * t / (a * a + e * e), e * t / (a * a + e * e)]];
1774
+ if (0 > r) return [];
1775
+ if (r === 0) return [[a * t / (a * a + e * e), e * t / (a * a + e * e)]];
1863
1776
  var i = Math.sqrt(r);
1864
1777
  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)]];
1865
1778
  }
@@ -1874,10 +1787,8 @@ function lo(a, e, t, r) {
1874
1787
  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;
1875
1788
  return Math.abs(s) < i ? [-l / u] : function(h, f, c) {
1876
1789
  var v = h * h / 4 - f;
1877
- if (v < -c)
1878
- return [];
1879
- if (v <= c)
1880
- return [-h / 2];
1790
+ if (v < -c) return [];
1791
+ if (v <= c) return [-h / 2];
1881
1792
  var d = Math.sqrt(v);
1882
1793
  return [-h / 2 - d, -h / 2 + d];
1883
1794
  }(u / s, l / s, i);
@@ -1905,16 +1816,14 @@ function ho(a, e, t, r, i) {
1905
1816
  s = l.relative ? h + l.x1 : l.x1, u = l.relative ? f + l.y1 : l.y1;
1906
1817
  var c = l.x1, v = l.y1;
1907
1818
  l.type = m.CURVE_TO, l.x1 = ((l.relative ? 0 : h) + 2 * c) / 3, l.y1 = ((l.relative ? 0 : f) + 2 * v) / 3, l.x2 = (l.x + 2 * c) / 3, l.y2 = (l.y + 2 * v) / 3;
1908
- } else
1909
- s = NaN, u = NaN;
1819
+ } else s = NaN, u = NaN;
1910
1820
  return l;
1911
1821
  });
1912
1822
  }
1913
1823
  function i(s) {
1914
1824
  var u = 0, l = 0, h = NaN, f = NaN;
1915
1825
  return function(c) {
1916
- if (isNaN(h) && !(c.type & m.MOVE_TO))
1917
- throw new Error("path must start with moveto");
1826
+ if (isNaN(h) && !(c.type & m.MOVE_TO)) throw new Error("path must start with moveto");
1918
1827
  var v = s(c, u, l, h, f);
1919
1828
  return c.type & m.CLOSE_PATH && (u = h, l = f), c.x !== void 0 && (u = c.relative ? u + c.x : c.x), c.y !== void 0 && (l = c.relative ? l + c.y : c.y), c.type & m.MOVE_TO && (h = u, f = l), v;
1920
1829
  };
@@ -1927,21 +1836,18 @@ function ho(a, e, t, r, i) {
1927
1836
  }
1928
1837
  v.type & m.HORIZ_LINE_TO && u !== 0 && (v.type = m.LINE_TO, v.y = v.relative ? 0 : g), v.type & m.VERT_LINE_TO && l !== 0 && (v.type = m.LINE_TO, v.x = v.relative ? 0 : d), v.x !== void 0 && (v.x = v.x * s + $ * l + (b ? 0 : f)), v.y !== void 0 && (v.y = T * u + v.y * h + (b ? 0 : c)), v.x1 !== void 0 && (v.x1 = v.x1 * s + v.y1 * l + (b ? 0 : f)), v.y1 !== void 0 && (v.y1 = y * u + v.y1 * h + (b ? 0 : c)), v.x2 !== void 0 && (v.x2 = v.x2 * s + v.y2 * l + (b ? 0 : f)), v.y2 !== void 0 && (v.y2 = x * u + v.y2 * h + (b ? 0 : c));
1929
1838
  var O = s * h - u * l;
1930
- if (v.xRot !== void 0 && (s !== 1 || u !== 0 || l !== 0 || h !== 1))
1931
- if (O === 0)
1932
- delete v.rX, delete v.rY, delete v.xRot, delete v.lArcFlag, delete v.sweepFlag, v.type = m.LINE_TO;
1933
- else {
1934
- var C = v.xRot * Math.PI / 180, I = Math.sin(C), _ = Math.cos(C), j = 1 / E(v.rX), P = 1 / E(v.rY), X = E(_) * j + E(I) * P, W = 2 * I * _ * (j - P), G = E(I) * j + E(_) * P, q = X * h * h - W * u * h + G * u * u, H = W * (s * h + u * l) - 2 * (X * l * h + G * s * u), Q = X * l * l - W * s * l + G * s * s, R = (Math.atan2(H, q - Q) + Math.PI) % Math.PI / 2, M = Math.sin(R), K = Math.cos(R);
1935
- v.rX = Math.abs(O) / Math.sqrt(q * E(K) + H * M * K + Q * E(M)), v.rY = Math.abs(O) / Math.sqrt(q * E(M) - H * M * K + Q * E(K)), v.xRot = 180 * R / Math.PI;
1936
- }
1839
+ if (v.xRot !== void 0 && (s !== 1 || u !== 0 || l !== 0 || h !== 1)) if (O === 0) delete v.rX, delete v.rY, delete v.xRot, delete v.lArcFlag, delete v.sweepFlag, v.type = m.LINE_TO;
1840
+ else {
1841
+ var C = v.xRot * Math.PI / 180, I = Math.sin(C), _ = Math.cos(C), j = 1 / E(v.rX), P = 1 / E(v.rY), X = E(_) * j + E(I) * P, W = 2 * I * _ * (j - P), G = E(I) * j + E(_) * P, q = X * h * h - W * u * h + G * u * u, H = W * (s * h + u * l) - 2 * (X * l * h + G * s * u), Q = X * l * l - W * s * l + G * s * s, R = (Math.atan2(H, q - Q) + Math.PI) % Math.PI / 2, M = Math.sin(R), K = Math.cos(R);
1842
+ v.rX = Math.abs(O) / Math.sqrt(q * E(K) + H * M * K + Q * E(M)), v.rY = Math.abs(O) / Math.sqrt(q * E(M) - H * M * K + Q * E(K)), v.xRot = 180 * R / Math.PI;
1843
+ }
1937
1844
  return v.sweepFlag !== void 0 && 0 > O && (v.sweepFlag = +!v.sweepFlag), v;
1938
1845
  });
1939
1846
  }
1940
1847
  function o() {
1941
1848
  return function(s) {
1942
1849
  var u = {};
1943
- for (var l in s)
1944
- u[l] = s[l];
1850
+ for (var l in s) u[l] = s[l];
1945
1851
  return u;
1946
1852
  };
1947
1853
  }
@@ -1958,8 +1864,7 @@ function ho(a, e, t, r, i) {
1958
1864
  });
1959
1865
  }, a.NORMALIZE_HVZ = function(s, u, l) {
1960
1866
  return s === void 0 && (s = !0), u === void 0 && (u = !0), l === void 0 && (l = !0), i(function(h, f, c, v, d) {
1961
- if (isNaN(v) && !(h.type & m.MOVE_TO))
1962
- throw new Error("path must start with moveto");
1867
+ if (isNaN(v) && !(h.type & m.MOVE_TO)) throw new Error("path must start with moveto");
1963
1868
  return u && h.type & m.HORIZ_LINE_TO && (h.type = m.LINE_TO, h.y = h.relative ? 0 : c), l && h.type & m.VERT_LINE_TO && (h.type = m.LINE_TO, h.x = h.relative ? 0 : f), s && h.type & m.CLOSE_PATH && (h.type = m.LINE_TO, h.x = h.relative ? v - f : v, h.y = h.relative ? d - c : d), h.type & m.ARC && (h.rX === 0 || h.rY === 0) && (h.type = m.LINE_TO, delete h.rX, delete h.rY, delete h.xRot, delete h.lArcFlag, delete h.sweepFlag), h;
1964
1869
  });
1965
1870
  }, a.NORMALIZE_ST = t, a.QT_TO_C = r, a.INFO = i, a.SANITIZE = function(s) {
@@ -2015,8 +1920,7 @@ function ho(a, e, t, r, i) {
2015
1920
  }, a.CLONE = o, a.CALCULATE_BOUNDS = function() {
2016
1921
  var s = function(c) {
2017
1922
  var v = {};
2018
- for (var d in c)
2019
- v[d] = c[d];
1923
+ for (var d in c) v[d] = c[d];
2020
1924
  return v;
2021
1925
  }, u = e(), l = r(), h = t(), f = i(function(c, v, d) {
2022
1926
  var g = h(l(u(s(c))));
@@ -2099,8 +2003,7 @@ var se, sl = function() {
2099
2003
  return t.curNumber = "", t.curCommandType = -1, t.curCommandRelative = !1, t.canParseCommandOrComma = !0, t.curNumberHasExp = !1, t.curNumberHasExpDigits = !1, t.curNumberHasDecimal = !1, t.curArgs = [], t;
2100
2004
  }
2101
2005
  return nl(e, a), e.prototype.finish = function(t) {
2102
- if (t === void 0 && (t = []), this.parse(" ", t), this.curArgs.length !== 0 || !this.canParseCommandOrComma)
2103
- throw new SyntaxError("Unterminated command at the path end.");
2006
+ if (t === void 0 && (t = []), this.parse(" ", t), this.curArgs.length !== 0 || !this.canParseCommandOrComma) throw new SyntaxError("Unterminated command at the path end.");
2104
2007
  return t;
2105
2008
  }, e.prototype.parse = function(t, r) {
2106
2009
  var i = this;
@@ -2109,69 +2012,41 @@ var se, sl = function() {
2109
2012
  r.push(f), i.curArgs.length = 0, i.canParseCommandOrComma = !0;
2110
2013
  }, o = 0; o < t.length; o++) {
2111
2014
  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 = vo(s) && (this.curNumber === "0" && s === "0" || u);
2112
- if (!vo(s) || l)
2113
- if (s !== "e" && s !== "E")
2114
- if (s !== "-" && s !== "+" || !this.curNumberHasExp || this.curNumberHasExpDigits)
2115
- if (s !== "." || this.curNumberHasExp || this.curNumberHasDecimal || u) {
2116
- if (this.curNumber && this.curCommandType !== -1) {
2117
- var h = Number(this.curNumber);
2118
- if (isNaN(h))
2119
- throw new SyntaxError("Invalid number ending at " + o);
2120
- if (this.curCommandType === m.ARC) {
2121
- if (this.curArgs.length === 0 || this.curArgs.length === 1) {
2122
- if (0 > h)
2123
- throw new SyntaxError('Expected positive number, got "' + h + '" at index "' + o + '"');
2124
- } else if ((this.curArgs.length === 3 || this.curArgs.length === 4) && this.curNumber !== "0" && this.curNumber !== "1")
2125
- throw new SyntaxError('Expected a flag, got "' + this.curNumber + '" at index "' + o + '"');
2126
- }
2127
- this.curArgs.push(h), this.curArgs.length === Eb[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;
2128
- }
2129
- if (!Ob(s))
2130
- if (s === "," && this.canParseCommandOrComma)
2131
- this.canParseCommandOrComma = !1;
2132
- else if (s !== "+" && s !== "-" && s !== ".")
2133
- if (l)
2134
- this.curNumber = s, this.curNumberHasDecimal = !1;
2135
- else {
2136
- if (this.curArgs.length !== 0)
2137
- throw new SyntaxError("Unterminated command at index " + o + ".");
2138
- if (!this.canParseCommandOrComma)
2139
- throw new SyntaxError('Unexpected character "' + s + '" at index ' + o + ". Command cannot follow comma");
2140
- if (this.canParseCommandOrComma = !1, s !== "z" && s !== "Z")
2141
- if (s === "h" || s === "H")
2142
- this.curCommandType = m.HORIZ_LINE_TO, this.curCommandRelative = s === "h";
2143
- else if (s === "v" || s === "V")
2144
- this.curCommandType = m.VERT_LINE_TO, this.curCommandRelative = s === "v";
2145
- else if (s === "m" || s === "M")
2146
- this.curCommandType = m.MOVE_TO, this.curCommandRelative = s === "m";
2147
- else if (s === "l" || s === "L")
2148
- this.curCommandType = m.LINE_TO, this.curCommandRelative = s === "l";
2149
- else if (s === "c" || s === "C")
2150
- this.curCommandType = m.CURVE_TO, this.curCommandRelative = s === "c";
2151
- else if (s === "s" || s === "S")
2152
- this.curCommandType = m.SMOOTH_CURVE_TO, this.curCommandRelative = s === "s";
2153
- else if (s === "q" || s === "Q")
2154
- this.curCommandType = m.QUAD_TO, this.curCommandRelative = s === "q";
2155
- else if (s === "t" || s === "T")
2156
- this.curCommandType = m.SMOOTH_QUAD_TO, this.curCommandRelative = s === "t";
2157
- else {
2158
- if (s !== "a" && s !== "A")
2159
- throw new SyntaxError('Unexpected character "' + s + '" at index ' + o + ".");
2160
- this.curCommandType = m.ARC, this.curCommandRelative = s === "a";
2161
- }
2162
- else
2163
- r.push({ type: m.CLOSE_PATH }), this.canParseCommandOrComma = !0, this.curCommandType = -1;
2164
- }
2165
- else
2166
- this.curNumber = s, this.curNumberHasDecimal = s === ".";
2167
- } else
2168
- this.curNumber += s, this.curNumberHasDecimal = !0;
2169
- else
2170
- this.curNumber += s;
2171
- else
2172
- this.curNumber += s, this.curNumberHasExp = !0;
2173
- else
2174
- this.curNumber += s, this.curNumberHasExpDigits = this.curNumberHasExp;
2015
+ if (!vo(s) || l) if (s !== "e" && s !== "E") if (s !== "-" && s !== "+" || !this.curNumberHasExp || this.curNumberHasExpDigits) if (s !== "." || this.curNumberHasExp || this.curNumberHasDecimal || u) {
2016
+ if (this.curNumber && this.curCommandType !== -1) {
2017
+ var h = Number(this.curNumber);
2018
+ if (isNaN(h)) throw new SyntaxError("Invalid number ending at " + o);
2019
+ if (this.curCommandType === m.ARC) {
2020
+ if (this.curArgs.length === 0 || this.curArgs.length === 1) {
2021
+ if (0 > h) throw new SyntaxError('Expected positive number, got "' + h + '" at index "' + o + '"');
2022
+ } else if ((this.curArgs.length === 3 || this.curArgs.length === 4) && this.curNumber !== "0" && this.curNumber !== "1") throw new SyntaxError('Expected a flag, got "' + this.curNumber + '" at index "' + o + '"');
2023
+ }
2024
+ this.curArgs.push(h), this.curArgs.length === Eb[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;
2025
+ }
2026
+ if (!Ob(s)) if (s === "," && this.canParseCommandOrComma) this.canParseCommandOrComma = !1;
2027
+ else if (s !== "+" && s !== "-" && s !== ".") if (l) this.curNumber = s, this.curNumberHasDecimal = !1;
2028
+ else {
2029
+ if (this.curArgs.length !== 0) throw new SyntaxError("Unterminated command at index " + o + ".");
2030
+ if (!this.canParseCommandOrComma) throw new SyntaxError('Unexpected character "' + s + '" at index ' + o + ". Command cannot follow comma");
2031
+ if (this.canParseCommandOrComma = !1, s !== "z" && s !== "Z") if (s === "h" || s === "H") this.curCommandType = m.HORIZ_LINE_TO, this.curCommandRelative = s === "h";
2032
+ else if (s === "v" || s === "V") this.curCommandType = m.VERT_LINE_TO, this.curCommandRelative = s === "v";
2033
+ else if (s === "m" || s === "M") this.curCommandType = m.MOVE_TO, this.curCommandRelative = s === "m";
2034
+ else if (s === "l" || s === "L") this.curCommandType = m.LINE_TO, this.curCommandRelative = s === "l";
2035
+ else if (s === "c" || s === "C") this.curCommandType = m.CURVE_TO, this.curCommandRelative = s === "c";
2036
+ else if (s === "s" || s === "S") this.curCommandType = m.SMOOTH_CURVE_TO, this.curCommandRelative = s === "s";
2037
+ else if (s === "q" || s === "Q") this.curCommandType = m.QUAD_TO, this.curCommandRelative = s === "q";
2038
+ else if (s === "t" || s === "T") this.curCommandType = m.SMOOTH_QUAD_TO, this.curCommandRelative = s === "t";
2039
+ else {
2040
+ if (s !== "a" && s !== "A") throw new SyntaxError('Unexpected character "' + s + '" at index ' + o + ".");
2041
+ this.curCommandType = m.ARC, this.curCommandRelative = s === "a";
2042
+ }
2043
+ else r.push({ type: m.CLOSE_PATH }), this.canParseCommandOrComma = !0, this.curCommandType = -1;
2044
+ }
2045
+ else this.curNumber = s, this.curNumberHasDecimal = s === ".";
2046
+ } else this.curNumber += s, this.curNumberHasDecimal = !0;
2047
+ else this.curNumber += s;
2048
+ else this.curNumber += s, this.curNumberHasExp = !0;
2049
+ else this.curNumber += s, this.curNumberHasExpDigits = this.curNumberHasExp;
2175
2050
  }
2176
2051
  return r;
2177
2052
  }, e.prototype.transform = function(t) {