presenter 0.8.6 → 0.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- var ie = Object.defineProperty;
2
- var oe = (n, e, t) => e in n ? ie(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var I = (n, e, t) => oe(n, typeof e != "symbol" ? e + "" : e, t);
1
+ var oe = Object.defineProperty;
2
+ var se = (n, e, t) => e in n ? oe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var k = (n, e, t) => se(n, typeof e != "symbol" ? e + "" : e, t);
4
4
  const ft = {
5
5
  /** Represents an animated change in an object's properties. */
6
6
  ANIMATE: "Animate",
@@ -9,13 +9,13 @@ const ft = {
9
9
  /** Represents an immediate update to an object's properties without animation. */
10
10
  UPDATE: "Update"
11
11
  };
12
- function se(n) {
12
+ function ae(n) {
13
13
  return n * n * n;
14
14
  }
15
- function ae(n) {
15
+ function he(n) {
16
16
  return --n * n * n + 1;
17
17
  }
18
- function he(n) {
18
+ function le(n) {
19
19
  return ((n *= 2) <= 1 ? n * n * n : (n -= 2) * n * n + 2) / 2;
20
20
  }
21
21
  var i0 = 1.70158;
@@ -33,7 +33,7 @@ var i0 = 1.70158;
33
33
  }
34
34
  return t.overshoot = n, t;
35
35
  })(i0);
36
- var le = (function n(e) {
36
+ var ce = (function n(e) {
37
37
  e = +e;
38
38
  function t(o) {
39
39
  return ((o *= 2) < 1 ? o * o * ((e + 1) * o - e) : (o -= 2) * o * ((e + 1) * o + e) + 2) / 2;
@@ -42,11 +42,11 @@ var le = (function n(e) {
42
42
  })(i0);
43
43
  const o0 = {
44
44
  LINEAR: (n) => n,
45
- CUBIC: he,
46
- CUBIC_IN: se,
47
- CUBIC_OUT: ae,
48
- BACK_IN_OUT: le.overshoot(0.8)
49
- }, ce = o0.LINEAR;
45
+ CUBIC: le,
46
+ CUBIC_IN: ae,
47
+ CUBIC_OUT: he,
48
+ BACK_IN_OUT: ce.overshoot(0.8)
49
+ }, ue = o0.LINEAR;
50
50
  function s0(n, e, t = {}) {
51
51
  return {
52
52
  type: ft.ANIMATE,
@@ -54,7 +54,7 @@ function s0(n, e, t = {}) {
54
54
  props: e,
55
55
  delay: 0,
56
56
  duration: 1e3,
57
- easing: ce,
57
+ easing: ue,
58
58
  block: !1,
59
59
  interpolators: null,
60
60
  isKey: !1,
@@ -62,21 +62,21 @@ function s0(n, e, t = {}) {
62
62
  ...typeof t == "number" ? { duration: t } : t
63
63
  };
64
64
  }
65
- function Nn(n, e = {}) {
65
+ function Fn(n, e = {}) {
66
66
  return s0(n, { opacity: 1 }, {
67
67
  duration: 500,
68
68
  easing: o0.CUBIC,
69
69
  ...typeof e == "number" ? { duration: e } : e
70
70
  });
71
71
  }
72
- function Rn(n, e = {}) {
72
+ function Bn(n, e = {}) {
73
73
  return s0(n, { opacity: 0 }, {
74
74
  duration: 500,
75
75
  easing: o0.CUBIC,
76
76
  ...typeof e == "number" ? { duration: e } : e
77
77
  });
78
78
  }
79
- function D0(n, e, t = {}) {
79
+ function q0(n, e, t = {}) {
80
80
  return {
81
81
  type: ft.UPDATE,
82
82
  isKey: !1,
@@ -86,11 +86,11 @@ function D0(n, e, t = {}) {
86
86
  ...t
87
87
  };
88
88
  }
89
- function Fn(n) {
90
- return D0(n, { opacity: 0 });
89
+ function Dn(n) {
90
+ return q0(n, { opacity: 0 });
91
91
  }
92
- function Bn(n) {
93
- return D0(n, { opacity: 1 });
92
+ function qn(n) {
93
+ return q0(n, { opacity: 1 });
94
94
  }
95
95
  const ot = {
96
96
  TOP_LEFT: "TopLeft",
@@ -139,7 +139,7 @@ G.RED = G(255, 0, 0);
139
139
  G.TRANSPARENT = G(0, 0, 0, 0);
140
140
  G.WHITE = G(255, 255, 255);
141
141
  const Q = { red: 0, green: 0, blue: 0, alpha: 1 };
142
- function q0(n = null) {
142
+ function z0(n = null) {
143
143
  return {
144
144
  content: null,
145
145
  setup: null,
@@ -151,14 +151,14 @@ function q0(n = null) {
151
151
  ...n
152
152
  };
153
153
  }
154
- function z0(n, e = null) {
154
+ function j0(n, e = null) {
155
155
  return n.alpha * (e ?? 1);
156
156
  }
157
- function St(n, e = null) {
158
- const { red: t, green: o, blue: i } = n, a = t << 16 | o << 8 | i, s = Math.round(z0(n, e) * 255);
157
+ function Et(n, e = null) {
158
+ const { red: t, green: o, blue: i } = n, a = t << 16 | o << 8 | i, s = Math.round(j0(n, e) * 255);
159
159
  return `#${a.toString(16).padStart(6, "0")}${s !== 255 ? s.toString(16).padStart(2, "0") : ""}`;
160
160
  }
161
- function Dn(n = null) {
161
+ function zn(n = null) {
162
162
  const {
163
163
  url: e = "https://wikipedia.org/",
164
164
  backgroundColor: t = G.TRANSPARENT,
@@ -170,28 +170,28 @@ function Dn(n = null) {
170
170
  height: h = 1e3,
171
171
  width: c = 1e3,
172
172
  x: u = 0,
173
- y: p = 0
173
+ y: d = 0
174
174
  } = n || {}, l = document.createElement("iframe");
175
- l.src = e, l.style.backgroundColor = St(t), l.style.border = i > 0 ? `${i}px solid ${St(o)}` : "none", l.style.pointerEvents = a;
175
+ l.src = e, l.style.backgroundColor = Et(t), l.style.border = i > 0 ? `${i}px solid ${Et(o)}` : "none", l.style.pointerEvents = a;
176
176
  const f = (100 / s).toFixed(3) + "%";
177
- return l.style.height = i === 0 ? f : `calc(${f} - ${i * 2}px)`, l.style.width = i === 0 ? f : `calc(${f} - ${i * 2}px)`, l.style.transform = `scale(${s})`, l.style.transformOrigin = "top left", q0({
177
+ return l.style.height = i === 0 ? f : `calc(${f} - ${i * 2}px)`, l.style.width = i === 0 ? f : `calc(${f} - ${i * 2}px)`, l.style.transform = `scale(${s})`, l.style.transformOrigin = "top left", z0({
178
178
  content: l,
179
179
  anchor: r,
180
180
  height: h,
181
181
  width: c,
182
182
  x: u,
183
- y: p
183
+ y: d
184
184
  });
185
185
  }
186
186
  const xt = {
187
187
  LEFT: "left",
188
188
  CENTER: "center",
189
189
  RIGHT: "right"
190
- }, ue = xt.LEFT;
190
+ }, fe = xt.LEFT;
191
191
  function st(n, e) {
192
192
  throw new Error("Unexpected value: " + n);
193
193
  }
194
- function qn(n = null) {
194
+ function jn(n = null) {
195
195
  const {
196
196
  alignment: e = xt.LEFT,
197
197
  scale: t = 1,
@@ -217,13 +217,13 @@ function qn(n = null) {
217
217
  st(e);
218
218
  }
219
219
  c.appendChild(u);
220
- const p = {
220
+ const d = {
221
221
  video: {
222
222
  displaySurface: "window"
223
223
  },
224
224
  audio: !1
225
225
  };
226
- return navigator.mediaDevices.getDisplayMedia(p).then((l) => {
226
+ return navigator.mediaDevices.getDisplayMedia(d).then((l) => {
227
227
  const f = l.getVideoTracks()[0];
228
228
  f !== void 0 && (f.onended = function() {
229
229
  u.style.display = "none";
@@ -234,7 +234,7 @@ function qn(n = null) {
234
234
  u.srcObject.getTracks().forEach((f) => f.stop()), u.style.display = "none", u.srcObject = null;
235
235
  };
236
236
  }
237
- return q0({
237
+ return z0({
238
238
  content: null,
239
239
  setup: h,
240
240
  anchor: o,
@@ -265,7 +265,7 @@ function lt(n) {
265
265
  ...n
266
266
  };
267
267
  }
268
- function zn(n = null) {
268
+ function Hn(n = null) {
269
269
  const { arrowheadSize: e, width: t = 10, ...o } = n || {}, i = e ?? t * 4;
270
270
  return lt({
271
271
  objectType: U.ARROW,
@@ -283,8 +283,8 @@ function zn(n = null) {
283
283
  ...o
284
284
  });
285
285
  }
286
- const fe = 50;
287
- function jn(n = null) {
286
+ const ge = 50;
287
+ function Un(n = null) {
288
288
  return lt({
289
289
  objectType: U.CIRCLE,
290
290
  anchor: ht,
@@ -292,7 +292,7 @@ function jn(n = null) {
292
292
  strokeWidth: 0,
293
293
  drawn: 1,
294
294
  fillColor: Q,
295
- radius: fe,
295
+ radius: ge,
296
296
  x: 0,
297
297
  y: 0,
298
298
  ...n
@@ -323,7 +323,7 @@ function g0(n, e = null) {
323
323
  ...e
324
324
  });
325
325
  }
326
- function Hn(n) {
326
+ function $n(n) {
327
327
  const {
328
328
  anchor: e = ht,
329
329
  cols: t = 1,
@@ -335,23 +335,23 @@ function Hn(n) {
335
335
  height: h = 0,
336
336
  x: c = 0,
337
337
  y: u = 0,
338
- objects: p = () => null
338
+ objects: d = () => null
339
339
  } = n, l = [], f = [];
340
340
  let v = 0, y = 0;
341
341
  for (let P = 0; P < o; P++) {
342
- const E = [];
342
+ const S = [];
343
343
  v = 0;
344
344
  let L = 0;
345
- for (let S = 0; S < t; S++) {
346
- const T = p(P, S), k = typeof r == "function" ? r(P, S) : r, F = typeof h == "function" ? h(P, S) : h;
347
- E.push(T), T != null && f.push(
345
+ for (let E = 0; E < t; E++) {
346
+ const T = d(P, E), I = typeof r == "function" ? r(P, E) : r, F = typeof h == "function" ? h(P, E) : h;
347
+ S.push(T), T != null && f.push(
348
348
  g0([T], {
349
349
  x: v,
350
350
  y
351
351
  })
352
- ), v += k + i, L = Math.max(L, F);
352
+ ), v += I + i, L = Math.max(L, F);
353
353
  }
354
- l.push(E), y += L + a;
354
+ l.push(S), y += L + a;
355
355
  }
356
356
  return {
357
357
  grid: g0(f, {
@@ -365,7 +365,7 @@ function Hn(n) {
365
365
  objects: l
366
366
  };
367
367
  }
368
- function Un(n = null) {
368
+ function Wn(n = null) {
369
369
  return lt({
370
370
  objectType: U.IMAGE,
371
371
  anchor: ht,
@@ -379,7 +379,7 @@ function Un(n = null) {
379
379
  ...n
380
380
  });
381
381
  }
382
- function $n(n = null) {
382
+ function Yn(n = null) {
383
383
  return lt({
384
384
  objectType: U.LINE,
385
385
  color: Q,
@@ -394,7 +394,7 @@ function $n(n = null) {
394
394
  ...n
395
395
  });
396
396
  }
397
- function Yn(n, e = null) {
397
+ function Xn(n, e = null) {
398
398
  return lt({
399
399
  objectType: U.MASK,
400
400
  anchor: ht,
@@ -407,11 +407,11 @@ function Yn(n, e = null) {
407
407
  ...e
408
408
  });
409
409
  }
410
- var ge = Object.defineProperty, O = (n, e) => ge(n, "name", { value: e, configurable: !0 }), Pt = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, pe = /([astvzqmhlc])([^astvzqmhlc]*)/gi, de = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi, xe = O((n) => {
410
+ var de = Object.defineProperty, O = (n, e) => de(n, "name", { value: e, configurable: !0 }), Pt = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, pe = /([astvzqmhlc])([^astvzqmhlc]*)/gi, xe = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi, ye = O((n) => {
411
411
  const e = (n && n.length > 0 ? n : "M0,0").match(pe);
412
412
  if (!e) throw new Error(`No path elements found in string ${n}`);
413
413
  return e.reduce((t, o) => {
414
- let i = o.charAt(0), a = i.toLowerCase(), s = ye(o.substring(1));
414
+ let i = o.charAt(0), a = i.toLowerCase(), s = ve(o.substring(1));
415
415
  if (a === "m" && s.length > 2 && (t.push([i, ...s.splice(0, 2)]), a = "l", i = i === "m" ? "l" : "L"), a.toLowerCase() === "a" && (s.length === 5 || s.length === 6)) {
416
416
  const r = o.substring(1).trim().split(" ");
417
417
  s = [Number(r[0]), Number(r[1]), Number(r[2]), Number(r[3].charAt(0)), Number(r[3].charAt(1)), Number(r[3].substring(2)), Number(r[4])];
@@ -426,51 +426,51 @@ var ge = Object.defineProperty, O = (n, e) => ge(n, "name", { value: e, configur
426
426
  }
427
427
  return t;
428
428
  }, []);
429
- }, "default"), ye = O((n) => {
430
- const e = n.match(de);
429
+ }, "default"), ve = O((n) => {
430
+ const e = n.match(xe);
431
431
  return e ? e.map(Number) : [];
432
432
  }, "parseValues"), mt, J = (mt = class {
433
433
  constructor(e, t, o, i) {
434
- I(this, "x0");
435
- I(this, "x1");
436
- I(this, "y0");
437
- I(this, "y1");
438
- I(this, "getTotalLength", O(() => Math.sqrt(Math.pow(this.x0 - this.x1, 2) + Math.pow(this.y0 - this.y1, 2)), "getTotalLength"));
439
- I(this, "getPointAtLength", O((e) => {
434
+ k(this, "x0");
435
+ k(this, "x1");
436
+ k(this, "y0");
437
+ k(this, "y1");
438
+ k(this, "getTotalLength", O(() => Math.sqrt(Math.pow(this.x0 - this.x1, 2) + Math.pow(this.y0 - this.y1, 2)), "getTotalLength"));
439
+ k(this, "getPointAtLength", O((e) => {
440
440
  let t = e / Math.sqrt(Math.pow(this.x0 - this.x1, 2) + Math.pow(this.y0 - this.y1, 2));
441
441
  t = Number.isNaN(t) ? 1 : t;
442
442
  const o = (this.x1 - this.x0) * t, i = (this.y1 - this.y0) * t;
443
443
  return { x: this.x0 + o, y: this.y0 + i };
444
444
  }, "getPointAtLength"));
445
- I(this, "getTangentAtLength", O((e) => {
445
+ k(this, "getTangentAtLength", O((e) => {
446
446
  const t = Math.sqrt((this.x1 - this.x0) * (this.x1 - this.x0) + (this.y1 - this.y0) * (this.y1 - this.y0));
447
447
  return { x: (this.x1 - this.x0) / t, y: (this.y1 - this.y0) / t };
448
448
  }, "getTangentAtLength"));
449
- I(this, "getPropertiesAtLength", O((e) => {
449
+ k(this, "getPropertiesAtLength", O((e) => {
450
450
  const t = this.getPointAtLength(e), o = this.getTangentAtLength(e);
451
451
  return { x: t.x, y: t.y, tangentX: o.x, tangentY: o.y };
452
452
  }, "getPropertiesAtLength"));
453
453
  this.x0 = e, this.x1 = t, this.y0 = o, this.y1 = i;
454
454
  }
455
- }, O(mt, "LinearPosition"), mt), bt, p0 = (bt = class {
455
+ }, O(mt, "LinearPosition"), mt), bt, d0 = (bt = class {
456
456
  constructor(e, t, o, i, a, s, r, h, c) {
457
- I(this, "x0");
458
- I(this, "y0");
459
- I(this, "rx");
460
- I(this, "ry");
461
- I(this, "xAxisRotate");
462
- I(this, "LargeArcFlag");
463
- I(this, "SweepFlag");
464
- I(this, "x1");
465
- I(this, "y1");
466
- I(this, "length");
467
- I(this, "getTotalLength", O(() => this.length, "getTotalLength"));
468
- I(this, "getPointAtLength", O((e) => {
457
+ k(this, "x0");
458
+ k(this, "y0");
459
+ k(this, "rx");
460
+ k(this, "ry");
461
+ k(this, "xAxisRotate");
462
+ k(this, "LargeArcFlag");
463
+ k(this, "SweepFlag");
464
+ k(this, "x1");
465
+ k(this, "y1");
466
+ k(this, "length");
467
+ k(this, "getTotalLength", O(() => this.length, "getTotalLength"));
468
+ k(this, "getPointAtLength", O((e) => {
469
469
  e < 0 ? e = 0 : e > this.length && (e = this.length);
470
- const t = d0({ x: this.x0, y: this.y0 }, this.rx, this.ry, this.xAxisRotate, this.LargeArcFlag, this.SweepFlag, { x: this.x1, y: this.y1 }, e / this.length);
470
+ const t = p0({ x: this.x0, y: this.y0 }, this.rx, this.ry, this.xAxisRotate, this.LargeArcFlag, this.SweepFlag, { x: this.x1, y: this.y1 }, e / this.length);
471
471
  return { x: t.x, y: t.y };
472
472
  }, "getPointAtLength"));
473
- I(this, "getTangentAtLength", O((e) => {
473
+ k(this, "getTangentAtLength", O((e) => {
474
474
  e < 0 ? e = 0 : e > this.length && (e = this.length);
475
475
  const t = 0.05, o = this.getPointAtLength(e);
476
476
  let i;
@@ -478,73 +478,73 @@ var ge = Object.defineProperty, O = (n, e) => ge(n, "name", { value: e, configur
478
478
  const a = i.x - o.x, s = i.y - o.y, r = Math.sqrt(a * a + s * s);
479
479
  return e < this.length - t ? { x: -a / r, y: -s / r } : { x: a / r, y: s / r };
480
480
  }, "getTangentAtLength"));
481
- I(this, "getPropertiesAtLength", O((e) => {
481
+ k(this, "getPropertiesAtLength", O((e) => {
482
482
  const t = this.getTangentAtLength(e), o = this.getPointAtLength(e);
483
483
  return { x: o.x, y: o.y, tangentX: t.x, tangentY: t.y };
484
484
  }, "getPropertiesAtLength"));
485
485
  this.x0 = e, this.y0 = t, this.rx = o, this.ry = i, this.xAxisRotate = a, this.LargeArcFlag = s, this.SweepFlag = r, this.x1 = h, this.y1 = c;
486
- const u = ve(300, function(p) {
487
- return d0({ x: e, y: t }, o, i, a, s, r, { x: h, y: c }, p);
486
+ const u = we(300, function(d) {
487
+ return p0({ x: e, y: t }, o, i, a, s, r, { x: h, y: c }, d);
488
488
  });
489
489
  this.length = u.arcLength;
490
490
  }
491
- }, O(bt, "Arc"), bt), d0 = O((n, e, t, o, i, a, s, r) => {
492
- e = Math.abs(e), t = Math.abs(t), o = we(o, 360);
493
- const h = me(o);
491
+ }, O(bt, "Arc"), bt), p0 = O((n, e, t, o, i, a, s, r) => {
492
+ e = Math.abs(e), t = Math.abs(t), o = me(o, 360);
493
+ const h = be(o);
494
494
  if (n.x === s.x && n.y === s.y) return { x: n.x, y: n.y, ellipticalArcAngle: 0 };
495
495
  if (e === 0 || t === 0) return { x: 0, y: 0, ellipticalArcAngle: 0 };
496
- const c = (n.x - s.x) / 2, u = (n.y - s.y) / 2, p = { x: Math.cos(h) * c + Math.sin(h) * u, y: -Math.sin(h) * c + Math.cos(h) * u }, l = Math.pow(p.x, 2) / Math.pow(e, 2) + Math.pow(p.y, 2) / Math.pow(t, 2);
496
+ const c = (n.x - s.x) / 2, u = (n.y - s.y) / 2, d = { x: Math.cos(h) * c + Math.sin(h) * u, y: -Math.sin(h) * c + Math.cos(h) * u }, l = Math.pow(d.x, 2) / Math.pow(e, 2) + Math.pow(d.y, 2) / Math.pow(t, 2);
497
497
  l > 1 && (e = Math.sqrt(l) * e, t = Math.sqrt(l) * t);
498
- let f = (Math.pow(e, 2) * Math.pow(t, 2) - Math.pow(e, 2) * Math.pow(p.y, 2) - Math.pow(t, 2) * Math.pow(p.x, 2)) / (Math.pow(e, 2) * Math.pow(p.y, 2) + Math.pow(t, 2) * Math.pow(p.x, 2));
498
+ let f = (Math.pow(e, 2) * Math.pow(t, 2) - Math.pow(e, 2) * Math.pow(d.y, 2) - Math.pow(t, 2) * Math.pow(d.x, 2)) / (Math.pow(e, 2) * Math.pow(d.y, 2) + Math.pow(t, 2) * Math.pow(d.x, 2));
499
499
  f = f < 0 ? 0 : f;
500
- const v = (i !== a ? 1 : -1) * Math.sqrt(f), y = v * (e * p.y / t), M = v * (-t * p.x / e), P = { x: Math.cos(h) * y - Math.sin(h) * M + (n.x + s.x) / 2, y: Math.sin(h) * y + Math.cos(h) * M + (n.y + s.y) / 2 }, E = { x: (p.x - y) / e, y: (p.y - M) / t }, L = y0({ x: 1, y: 0 }, E);
501
- let S = y0(E, { x: (-p.x - y) / e, y: (-p.y - M) / t });
502
- !a && S > 0 ? S -= 2 * Math.PI : a && S < 0 && (S += 2 * Math.PI), S %= 2 * Math.PI;
503
- const T = L + S * r, k = e * Math.cos(T), F = t * Math.sin(T);
504
- return { x: Math.cos(h) * k - Math.sin(h) * F + P.x, y: Math.sin(h) * k + Math.cos(h) * F + P.y, ellipticalArcStartAngle: L, ellipticalArcEndAngle: L + S, ellipticalArcAngle: T, ellipticalArcCenter: P, resultantRx: e, resultantRy: t };
505
- }, "pointOnEllipticalArc"), ve = O((n, e) => {
500
+ const v = (i !== a ? 1 : -1) * Math.sqrt(f), y = v * (e * d.y / t), M = v * (-t * d.x / e), P = { x: Math.cos(h) * y - Math.sin(h) * M + (n.x + s.x) / 2, y: Math.sin(h) * y + Math.cos(h) * M + (n.y + s.y) / 2 }, S = { x: (d.x - y) / e, y: (d.y - M) / t }, L = y0({ x: 1, y: 0 }, S);
501
+ let E = y0(S, { x: (-d.x - y) / e, y: (-d.y - M) / t });
502
+ !a && E > 0 ? E -= 2 * Math.PI : a && E < 0 && (E += 2 * Math.PI), E %= 2 * Math.PI;
503
+ const T = L + E * r, I = e * Math.cos(T), F = t * Math.sin(T);
504
+ return { x: Math.cos(h) * I - Math.sin(h) * F + P.x, y: Math.sin(h) * I + Math.cos(h) * F + P.y, ellipticalArcStartAngle: L, ellipticalArcEndAngle: L + E, ellipticalArcAngle: T, ellipticalArcCenter: P, resultantRx: e, resultantRy: t };
505
+ }, "pointOnEllipticalArc"), we = O((n, e) => {
506
506
  n = n ?? 500;
507
507
  let t = 0;
508
508
  const o = [], i = [];
509
509
  let a, s = e(0);
510
510
  for (let r = 0; r < n; r++) {
511
- const h = be(r * (1 / n), 0, 1);
511
+ const h = Ae(r * (1 / n), 0, 1);
512
512
  a = e(h), t += x0(s, a), i.push([s, a]), o.push({ t: h, arcLength: t }), s = a;
513
513
  }
514
514
  return a = e(1), i.push([s, a]), t += x0(s, a), o.push({ t: 1, arcLength: t }), { arcLength: t, arcLengthMap: o, approximationLines: i };
515
- }, "approximateArcLengthOfCurve"), we = O((n, e) => (n % e + e) % e, "mod"), me = O((n) => n * (Math.PI / 180), "toRadians"), x0 = O((n, e) => Math.sqrt(Math.pow(e.x - n.x, 2) + Math.pow(e.y - n.y, 2)), "distance"), be = O((n, e, t) => Math.min(Math.max(n, e), t), "clamp"), y0 = O((n, e) => {
515
+ }, "approximateArcLengthOfCurve"), me = O((n, e) => (n % e + e) % e, "mod"), be = O((n) => n * (Math.PI / 180), "toRadians"), x0 = O((n, e) => Math.sqrt(Math.pow(e.x - n.x, 2) + Math.pow(e.y - n.y, 2)), "distance"), Ae = O((n, e, t) => Math.min(Math.max(n, e), t), "clamp"), y0 = O((n, e) => {
516
516
  const t = n.x * e.x + n.y * e.y, o = Math.sqrt((Math.pow(n.x, 2) + Math.pow(n.y, 2)) * (Math.pow(e.x, 2) + Math.pow(e.y, 2)));
517
517
  return (n.x * e.y - n.y * e.x < 0 ? -1 : 1) * Math.acos(t / o);
518
- }, "angleBetween"), Ae = [[], [], [-0.5773502691896257, 0.5773502691896258], [0, -0.7745966692414833, 0.7745966692414833], [-0.33998104358485626, 0.33998104358485626, -0.8611363115940526, 0.8611363115940526], [0, -0.5384693101056831, 0.5384693101056831, -0.906179845938664, 0.906179845938664], [0.6612093864662645, -0.6612093864662645, -0.2386191860831969, 0.2386191860831969, -0.932469514203152, 0.932469514203152], [0, 0.4058451513773972, -0.4058451513773972, -0.7415311855993945, 0.7415311855993945, -0.9491079123427585, 0.9491079123427585], [-0.1834346424956498, 0.1834346424956498, -0.525532409916329, 0.525532409916329, -0.7966664774136267, 0.7966664774136267, -0.9602898564975363, 0.9602898564975363], [0, -0.8360311073266358, 0.8360311073266358, -0.9681602395076261, 0.9681602395076261, -0.3242534234038089, 0.3242534234038089, -0.6133714327005904, 0.6133714327005904], [-0.14887433898163122, 0.14887433898163122, -0.4333953941292472, 0.4333953941292472, -0.6794095682990244, 0.6794095682990244, -0.8650633666889845, 0.8650633666889845, -0.9739065285171717, 0.9739065285171717], [0, -0.26954315595234496, 0.26954315595234496, -0.5190961292068118, 0.5190961292068118, -0.7301520055740494, 0.7301520055740494, -0.8870625997680953, 0.8870625997680953, -0.978228658146057, 0.978228658146057], [-0.1252334085114689, 0.1252334085114689, -0.3678314989981802, 0.3678314989981802, -0.5873179542866175, 0.5873179542866175, -0.7699026741943047, 0.7699026741943047, -0.9041172563704749, 0.9041172563704749, -0.9815606342467192, 0.9815606342467192], [0, -0.2304583159551348, 0.2304583159551348, -0.44849275103644687, 0.44849275103644687, -0.6423493394403402, 0.6423493394403402, -0.8015780907333099, 0.8015780907333099, -0.9175983992229779, 0.9175983992229779, -0.9841830547185881, 0.9841830547185881], [-0.10805494870734367, 0.10805494870734367, -0.31911236892788974, 0.31911236892788974, -0.5152486363581541, 0.5152486363581541, -0.6872929048116855, 0.6872929048116855, -0.827201315069765, 0.827201315069765, -0.9284348836635735, 0.9284348836635735, -0.9862838086968123, 0.9862838086968123], [0, -0.20119409399743451, 0.20119409399743451, -0.3941513470775634, 0.3941513470775634, -0.5709721726085388, 0.5709721726085388, -0.7244177313601701, 0.7244177313601701, -0.8482065834104272, 0.8482065834104272, -0.937273392400706, 0.937273392400706, -0.9879925180204854, 0.9879925180204854], [-0.09501250983763744, 0.09501250983763744, -0.2816035507792589, 0.2816035507792589, -0.45801677765722737, 0.45801677765722737, -0.6178762444026438, 0.6178762444026438, -0.755404408355003, 0.755404408355003, -0.8656312023878318, 0.8656312023878318, -0.9445750230732326, 0.9445750230732326, -0.9894009349916499, 0.9894009349916499], [0, -0.17848418149584785, 0.17848418149584785, -0.3512317634538763, 0.3512317634538763, -0.5126905370864769, 0.5126905370864769, -0.6576711592166907, 0.6576711592166907, -0.7815140038968014, 0.7815140038968014, -0.8802391537269859, 0.8802391537269859, -0.9506755217687678, 0.9506755217687678, -0.9905754753144174, 0.9905754753144174], [-0.0847750130417353, 0.0847750130417353, -0.2518862256915055, 0.2518862256915055, -0.41175116146284263, 0.41175116146284263, -0.5597708310739475, 0.5597708310739475, -0.6916870430603532, 0.6916870430603532, -0.8037049589725231, 0.8037049589725231, -0.8926024664975557, 0.8926024664975557, -0.9558239495713977, 0.9558239495713977, -0.9915651684209309, 0.9915651684209309], [0, -0.16035864564022537, 0.16035864564022537, -0.31656409996362983, 0.31656409996362983, -0.46457074137596094, 0.46457074137596094, -0.600545304661681, 0.600545304661681, -0.7209661773352294, 0.7209661773352294, -0.8227146565371428, 0.8227146565371428, -0.9031559036148179, 0.9031559036148179, -0.96020815213483, 0.96020815213483, -0.9924068438435844, 0.9924068438435844], [-0.07652652113349734, 0.07652652113349734, -0.22778585114164507, 0.22778585114164507, -0.37370608871541955, 0.37370608871541955, -0.5108670019508271, 0.5108670019508271, -0.636053680726515, 0.636053680726515, -0.7463319064601508, 0.7463319064601508, -0.8391169718222188, 0.8391169718222188, -0.912234428251326, 0.912234428251326, -0.9639719272779138, 0.9639719272779138, -0.9931285991850949, 0.9931285991850949], [0, -0.1455618541608951, 0.1455618541608951, -0.2880213168024011, 0.2880213168024011, -0.4243421202074388, 0.4243421202074388, -0.5516188358872198, 0.5516188358872198, -0.6671388041974123, 0.6671388041974123, -0.7684399634756779, 0.7684399634756779, -0.8533633645833173, 0.8533633645833173, -0.9200993341504008, 0.9200993341504008, -0.9672268385663063, 0.9672268385663063, -0.9937521706203895, 0.9937521706203895], [-0.06973927331972223, 0.06973927331972223, -0.20786042668822127, 0.20786042668822127, -0.34193582089208424, 0.34193582089208424, -0.469355837986757, 0.469355837986757, -0.5876404035069116, 0.5876404035069116, -0.6944872631866827, 0.6944872631866827, -0.7878168059792081, 0.7878168059792081, -0.8658125777203002, 0.8658125777203002, -0.926956772187174, 0.926956772187174, -0.9700604978354287, 0.9700604978354287, -0.9942945854823992, 0.9942945854823992], [0, -0.1332568242984661, 0.1332568242984661, -0.26413568097034495, 0.26413568097034495, -0.3903010380302908, 0.3903010380302908, -0.5095014778460075, 0.5095014778460075, -0.6196098757636461, 0.6196098757636461, -0.7186613631319502, 0.7186613631319502, -0.8048884016188399, 0.8048884016188399, -0.8767523582704416, 0.8767523582704416, -0.9329710868260161, 0.9329710868260161, -0.9725424712181152, 0.9725424712181152, -0.9947693349975522, 0.9947693349975522], [-0.06405689286260563, 0.06405689286260563, -0.1911188674736163, 0.1911188674736163, -0.3150426796961634, 0.3150426796961634, -0.4337935076260451, 0.4337935076260451, -0.5454214713888396, 0.5454214713888396, -0.6480936519369755, 0.6480936519369755, -0.7401241915785544, 0.7401241915785544, -0.820001985973903, 0.820001985973903, -0.8864155270044011, 0.8864155270044011, -0.9382745520027328, 0.9382745520027328, -0.9747285559713095, 0.9747285559713095, -0.9951872199970213, 0.9951872199970213]], Me = [[], [], [1, 1], [0.8888888888888888, 0.5555555555555556, 0.5555555555555556], [0.6521451548625461, 0.6521451548625461, 0.34785484513745385, 0.34785484513745385], [0.5688888888888889, 0.47862867049936647, 0.47862867049936647, 0.23692688505618908, 0.23692688505618908], [0.3607615730481386, 0.3607615730481386, 0.46791393457269104, 0.46791393457269104, 0.17132449237917036, 0.17132449237917036], [0.4179591836734694, 0.3818300505051189, 0.3818300505051189, 0.27970539148927664, 0.27970539148927664, 0.1294849661688697, 0.1294849661688697], [0.362683783378362, 0.362683783378362, 0.31370664587788727, 0.31370664587788727, 0.22238103445337448, 0.22238103445337448, 0.10122853629037626, 0.10122853629037626], [0.3302393550012598, 0.1806481606948574, 0.1806481606948574, 0.08127438836157441, 0.08127438836157441, 0.31234707704000286, 0.31234707704000286, 0.26061069640293544, 0.26061069640293544], [0.29552422471475287, 0.29552422471475287, 0.26926671930999635, 0.26926671930999635, 0.21908636251598204, 0.21908636251598204, 0.1494513491505806, 0.1494513491505806, 0.06667134430868814, 0.06667134430868814], [0.2729250867779006, 0.26280454451024665, 0.26280454451024665, 0.23319376459199048, 0.23319376459199048, 0.18629021092773426, 0.18629021092773426, 0.1255803694649046, 0.1255803694649046, 0.05566856711617366, 0.05566856711617366], [0.24914704581340277, 0.24914704581340277, 0.2334925365383548, 0.2334925365383548, 0.20316742672306592, 0.20316742672306592, 0.16007832854334622, 0.16007832854334622, 0.10693932599531843, 0.10693932599531843, 0.04717533638651183, 0.04717533638651183], [0.2325515532308739, 0.22628318026289723, 0.22628318026289723, 0.2078160475368885, 0.2078160475368885, 0.17814598076194574, 0.17814598076194574, 0.13887351021978725, 0.13887351021978725, 0.09212149983772845, 0.09212149983772845, 0.04048400476531588, 0.04048400476531588], [0.2152638534631578, 0.2152638534631578, 0.2051984637212956, 0.2051984637212956, 0.18553839747793782, 0.18553839747793782, 0.15720316715819355, 0.15720316715819355, 0.12151857068790319, 0.12151857068790319, 0.08015808715976021, 0.08015808715976021, 0.03511946033175186, 0.03511946033175186], [0.2025782419255613, 0.19843148532711158, 0.19843148532711158, 0.1861610000155622, 0.1861610000155622, 0.16626920581699392, 0.16626920581699392, 0.13957067792615432, 0.13957067792615432, 0.10715922046717194, 0.10715922046717194, 0.07036604748810812, 0.07036604748810812, 0.03075324199611727, 0.03075324199611727], [0.1894506104550685, 0.1894506104550685, 0.18260341504492358, 0.18260341504492358, 0.16915651939500254, 0.16915651939500254, 0.14959598881657674, 0.14959598881657674, 0.12462897125553388, 0.12462897125553388, 0.09515851168249279, 0.09515851168249279, 0.062253523938647894, 0.062253523938647894, 0.027152459411754096, 0.027152459411754096], [0.17944647035620653, 0.17656270536699264, 0.17656270536699264, 0.16800410215645004, 0.16800410215645004, 0.15404576107681028, 0.15404576107681028, 0.13513636846852548, 0.13513636846852548, 0.11188384719340397, 0.11188384719340397, 0.08503614831717918, 0.08503614831717918, 0.0554595293739872, 0.0554595293739872, 0.02414830286854793, 0.02414830286854793], [0.1691423829631436, 0.1691423829631436, 0.16427648374583273, 0.16427648374583273, 0.15468467512626524, 0.15468467512626524, 0.14064291467065065, 0.14064291467065065, 0.12255520671147846, 0.12255520671147846, 0.10094204410628717, 0.10094204410628717, 0.07642573025488905, 0.07642573025488905, 0.0497145488949698, 0.0497145488949698, 0.02161601352648331, 0.02161601352648331], [0.1610544498487837, 0.15896884339395434, 0.15896884339395434, 0.15276604206585967, 0.15276604206585967, 0.1426067021736066, 0.1426067021736066, 0.12875396253933621, 0.12875396253933621, 0.11156664554733399, 0.11156664554733399, 0.09149002162245, 0.09149002162245, 0.06904454273764123, 0.06904454273764123, 0.0448142267656996, 0.0448142267656996, 0.019461788229726478, 0.019461788229726478], [0.15275338713072584, 0.15275338713072584, 0.14917298647260374, 0.14917298647260374, 0.14209610931838204, 0.14209610931838204, 0.13168863844917664, 0.13168863844917664, 0.11819453196151841, 0.11819453196151841, 0.10193011981724044, 0.10193011981724044, 0.08327674157670475, 0.08327674157670475, 0.06267204833410907, 0.06267204833410907, 0.04060142980038694, 0.04060142980038694, 0.017614007139152118, 0.017614007139152118], [0.14608113364969041, 0.14452440398997005, 0.14452440398997005, 0.13988739479107315, 0.13988739479107315, 0.13226893863333747, 0.13226893863333747, 0.12183141605372853, 0.12183141605372853, 0.10879729916714838, 0.10879729916714838, 0.09344442345603386, 0.09344442345603386, 0.0761001136283793, 0.0761001136283793, 0.057134425426857205, 0.057134425426857205, 0.036953789770852494, 0.036953789770852494, 0.016017228257774335, 0.016017228257774335], [0.13925187285563198, 0.13925187285563198, 0.13654149834601517, 0.13654149834601517, 0.13117350478706238, 0.13117350478706238, 0.12325237681051242, 0.12325237681051242, 0.11293229608053922, 0.11293229608053922, 0.10041414444288096, 0.10041414444288096, 0.08594160621706773, 0.08594160621706773, 0.06979646842452049, 0.06979646842452049, 0.052293335152683286, 0.052293335152683286, 0.03377490158481415, 0.03377490158481415, 0.0146279952982722, 0.0146279952982722], [0.13365457218610619, 0.1324620394046966, 0.1324620394046966, 0.12890572218808216, 0.12890572218808216, 0.12304908430672953, 0.12304908430672953, 0.11499664022241136, 0.11499664022241136, 0.10489209146454141, 0.10489209146454141, 0.09291576606003515, 0.09291576606003515, 0.07928141177671895, 0.07928141177671895, 0.06423242140852585, 0.06423242140852585, 0.04803767173108467, 0.04803767173108467, 0.030988005856979445, 0.030988005856979445, 0.013411859487141771, 0.013411859487141771], [0.12793819534675216, 0.12793819534675216, 0.1258374563468283, 0.1258374563468283, 0.12167047292780339, 0.12167047292780339, 0.1155056680537256, 0.1155056680537256, 0.10744427011596563, 0.10744427011596563, 0.09761865210411388, 0.09761865210411388, 0.08619016153195327, 0.08619016153195327, 0.0733464814110803, 0.0733464814110803, 0.05929858491543678, 0.05929858491543678, 0.04427743881741981, 0.04427743881741981, 0.028531388628933663, 0.028531388628933663, 0.0123412297999872, 0.0123412297999872]], Le = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]], Te = O((n, e, t) => ({ x: (1 - t) * (1 - t) * (1 - t) * n[0] + 3 * (1 - t) * (1 - t) * t * n[1] + 3 * (1 - t) * t * t * n[2] + t * t * t * n[3], y: (1 - t) * (1 - t) * (1 - t) * e[0] + 3 * (1 - t) * (1 - t) * t * e[1] + 3 * (1 - t) * t * t * e[2] + t * t * t * e[3] }), "cubicPoint"), Ce = O((n, e, t) => j0([3 * (n[1] - n[0]), 3 * (n[2] - n[1]), 3 * (n[3] - n[2])], [3 * (e[1] - e[0]), 3 * (e[2] - e[1]), 3 * (e[3] - e[2])], t), "cubicDerivative"), Pe = O((n, e, t) => {
518
+ }, "angleBetween"), Me = [[], [], [-0.5773502691896257, 0.5773502691896258], [0, -0.7745966692414833, 0.7745966692414833], [-0.33998104358485626, 0.33998104358485626, -0.8611363115940526, 0.8611363115940526], [0, -0.5384693101056831, 0.5384693101056831, -0.906179845938664, 0.906179845938664], [0.6612093864662645, -0.6612093864662645, -0.2386191860831969, 0.2386191860831969, -0.932469514203152, 0.932469514203152], [0, 0.4058451513773972, -0.4058451513773972, -0.7415311855993945, 0.7415311855993945, -0.9491079123427585, 0.9491079123427585], [-0.1834346424956498, 0.1834346424956498, -0.525532409916329, 0.525532409916329, -0.7966664774136267, 0.7966664774136267, -0.9602898564975363, 0.9602898564975363], [0, -0.8360311073266358, 0.8360311073266358, -0.9681602395076261, 0.9681602395076261, -0.3242534234038089, 0.3242534234038089, -0.6133714327005904, 0.6133714327005904], [-0.14887433898163122, 0.14887433898163122, -0.4333953941292472, 0.4333953941292472, -0.6794095682990244, 0.6794095682990244, -0.8650633666889845, 0.8650633666889845, -0.9739065285171717, 0.9739065285171717], [0, -0.26954315595234496, 0.26954315595234496, -0.5190961292068118, 0.5190961292068118, -0.7301520055740494, 0.7301520055740494, -0.8870625997680953, 0.8870625997680953, -0.978228658146057, 0.978228658146057], [-0.1252334085114689, 0.1252334085114689, -0.3678314989981802, 0.3678314989981802, -0.5873179542866175, 0.5873179542866175, -0.7699026741943047, 0.7699026741943047, -0.9041172563704749, 0.9041172563704749, -0.9815606342467192, 0.9815606342467192], [0, -0.2304583159551348, 0.2304583159551348, -0.44849275103644687, 0.44849275103644687, -0.6423493394403402, 0.6423493394403402, -0.8015780907333099, 0.8015780907333099, -0.9175983992229779, 0.9175983992229779, -0.9841830547185881, 0.9841830547185881], [-0.10805494870734367, 0.10805494870734367, -0.31911236892788974, 0.31911236892788974, -0.5152486363581541, 0.5152486363581541, -0.6872929048116855, 0.6872929048116855, -0.827201315069765, 0.827201315069765, -0.9284348836635735, 0.9284348836635735, -0.9862838086968123, 0.9862838086968123], [0, -0.20119409399743451, 0.20119409399743451, -0.3941513470775634, 0.3941513470775634, -0.5709721726085388, 0.5709721726085388, -0.7244177313601701, 0.7244177313601701, -0.8482065834104272, 0.8482065834104272, -0.937273392400706, 0.937273392400706, -0.9879925180204854, 0.9879925180204854], [-0.09501250983763744, 0.09501250983763744, -0.2816035507792589, 0.2816035507792589, -0.45801677765722737, 0.45801677765722737, -0.6178762444026438, 0.6178762444026438, -0.755404408355003, 0.755404408355003, -0.8656312023878318, 0.8656312023878318, -0.9445750230732326, 0.9445750230732326, -0.9894009349916499, 0.9894009349916499], [0, -0.17848418149584785, 0.17848418149584785, -0.3512317634538763, 0.3512317634538763, -0.5126905370864769, 0.5126905370864769, -0.6576711592166907, 0.6576711592166907, -0.7815140038968014, 0.7815140038968014, -0.8802391537269859, 0.8802391537269859, -0.9506755217687678, 0.9506755217687678, -0.9905754753144174, 0.9905754753144174], [-0.0847750130417353, 0.0847750130417353, -0.2518862256915055, 0.2518862256915055, -0.41175116146284263, 0.41175116146284263, -0.5597708310739475, 0.5597708310739475, -0.6916870430603532, 0.6916870430603532, -0.8037049589725231, 0.8037049589725231, -0.8926024664975557, 0.8926024664975557, -0.9558239495713977, 0.9558239495713977, -0.9915651684209309, 0.9915651684209309], [0, -0.16035864564022537, 0.16035864564022537, -0.31656409996362983, 0.31656409996362983, -0.46457074137596094, 0.46457074137596094, -0.600545304661681, 0.600545304661681, -0.7209661773352294, 0.7209661773352294, -0.8227146565371428, 0.8227146565371428, -0.9031559036148179, 0.9031559036148179, -0.96020815213483, 0.96020815213483, -0.9924068438435844, 0.9924068438435844], [-0.07652652113349734, 0.07652652113349734, -0.22778585114164507, 0.22778585114164507, -0.37370608871541955, 0.37370608871541955, -0.5108670019508271, 0.5108670019508271, -0.636053680726515, 0.636053680726515, -0.7463319064601508, 0.7463319064601508, -0.8391169718222188, 0.8391169718222188, -0.912234428251326, 0.912234428251326, -0.9639719272779138, 0.9639719272779138, -0.9931285991850949, 0.9931285991850949], [0, -0.1455618541608951, 0.1455618541608951, -0.2880213168024011, 0.2880213168024011, -0.4243421202074388, 0.4243421202074388, -0.5516188358872198, 0.5516188358872198, -0.6671388041974123, 0.6671388041974123, -0.7684399634756779, 0.7684399634756779, -0.8533633645833173, 0.8533633645833173, -0.9200993341504008, 0.9200993341504008, -0.9672268385663063, 0.9672268385663063, -0.9937521706203895, 0.9937521706203895], [-0.06973927331972223, 0.06973927331972223, -0.20786042668822127, 0.20786042668822127, -0.34193582089208424, 0.34193582089208424, -0.469355837986757, 0.469355837986757, -0.5876404035069116, 0.5876404035069116, -0.6944872631866827, 0.6944872631866827, -0.7878168059792081, 0.7878168059792081, -0.8658125777203002, 0.8658125777203002, -0.926956772187174, 0.926956772187174, -0.9700604978354287, 0.9700604978354287, -0.9942945854823992, 0.9942945854823992], [0, -0.1332568242984661, 0.1332568242984661, -0.26413568097034495, 0.26413568097034495, -0.3903010380302908, 0.3903010380302908, -0.5095014778460075, 0.5095014778460075, -0.6196098757636461, 0.6196098757636461, -0.7186613631319502, 0.7186613631319502, -0.8048884016188399, 0.8048884016188399, -0.8767523582704416, 0.8767523582704416, -0.9329710868260161, 0.9329710868260161, -0.9725424712181152, 0.9725424712181152, -0.9947693349975522, 0.9947693349975522], [-0.06405689286260563, 0.06405689286260563, -0.1911188674736163, 0.1911188674736163, -0.3150426796961634, 0.3150426796961634, -0.4337935076260451, 0.4337935076260451, -0.5454214713888396, 0.5454214713888396, -0.6480936519369755, 0.6480936519369755, -0.7401241915785544, 0.7401241915785544, -0.820001985973903, 0.820001985973903, -0.8864155270044011, 0.8864155270044011, -0.9382745520027328, 0.9382745520027328, -0.9747285559713095, 0.9747285559713095, -0.9951872199970213, 0.9951872199970213]], Le = [[], [], [1, 1], [0.8888888888888888, 0.5555555555555556, 0.5555555555555556], [0.6521451548625461, 0.6521451548625461, 0.34785484513745385, 0.34785484513745385], [0.5688888888888889, 0.47862867049936647, 0.47862867049936647, 0.23692688505618908, 0.23692688505618908], [0.3607615730481386, 0.3607615730481386, 0.46791393457269104, 0.46791393457269104, 0.17132449237917036, 0.17132449237917036], [0.4179591836734694, 0.3818300505051189, 0.3818300505051189, 0.27970539148927664, 0.27970539148927664, 0.1294849661688697, 0.1294849661688697], [0.362683783378362, 0.362683783378362, 0.31370664587788727, 0.31370664587788727, 0.22238103445337448, 0.22238103445337448, 0.10122853629037626, 0.10122853629037626], [0.3302393550012598, 0.1806481606948574, 0.1806481606948574, 0.08127438836157441, 0.08127438836157441, 0.31234707704000286, 0.31234707704000286, 0.26061069640293544, 0.26061069640293544], [0.29552422471475287, 0.29552422471475287, 0.26926671930999635, 0.26926671930999635, 0.21908636251598204, 0.21908636251598204, 0.1494513491505806, 0.1494513491505806, 0.06667134430868814, 0.06667134430868814], [0.2729250867779006, 0.26280454451024665, 0.26280454451024665, 0.23319376459199048, 0.23319376459199048, 0.18629021092773426, 0.18629021092773426, 0.1255803694649046, 0.1255803694649046, 0.05566856711617366, 0.05566856711617366], [0.24914704581340277, 0.24914704581340277, 0.2334925365383548, 0.2334925365383548, 0.20316742672306592, 0.20316742672306592, 0.16007832854334622, 0.16007832854334622, 0.10693932599531843, 0.10693932599531843, 0.04717533638651183, 0.04717533638651183], [0.2325515532308739, 0.22628318026289723, 0.22628318026289723, 0.2078160475368885, 0.2078160475368885, 0.17814598076194574, 0.17814598076194574, 0.13887351021978725, 0.13887351021978725, 0.09212149983772845, 0.09212149983772845, 0.04048400476531588, 0.04048400476531588], [0.2152638534631578, 0.2152638534631578, 0.2051984637212956, 0.2051984637212956, 0.18553839747793782, 0.18553839747793782, 0.15720316715819355, 0.15720316715819355, 0.12151857068790319, 0.12151857068790319, 0.08015808715976021, 0.08015808715976021, 0.03511946033175186, 0.03511946033175186], [0.2025782419255613, 0.19843148532711158, 0.19843148532711158, 0.1861610000155622, 0.1861610000155622, 0.16626920581699392, 0.16626920581699392, 0.13957067792615432, 0.13957067792615432, 0.10715922046717194, 0.10715922046717194, 0.07036604748810812, 0.07036604748810812, 0.03075324199611727, 0.03075324199611727], [0.1894506104550685, 0.1894506104550685, 0.18260341504492358, 0.18260341504492358, 0.16915651939500254, 0.16915651939500254, 0.14959598881657674, 0.14959598881657674, 0.12462897125553388, 0.12462897125553388, 0.09515851168249279, 0.09515851168249279, 0.062253523938647894, 0.062253523938647894, 0.027152459411754096, 0.027152459411754096], [0.17944647035620653, 0.17656270536699264, 0.17656270536699264, 0.16800410215645004, 0.16800410215645004, 0.15404576107681028, 0.15404576107681028, 0.13513636846852548, 0.13513636846852548, 0.11188384719340397, 0.11188384719340397, 0.08503614831717918, 0.08503614831717918, 0.0554595293739872, 0.0554595293739872, 0.02414830286854793, 0.02414830286854793], [0.1691423829631436, 0.1691423829631436, 0.16427648374583273, 0.16427648374583273, 0.15468467512626524, 0.15468467512626524, 0.14064291467065065, 0.14064291467065065, 0.12255520671147846, 0.12255520671147846, 0.10094204410628717, 0.10094204410628717, 0.07642573025488905, 0.07642573025488905, 0.0497145488949698, 0.0497145488949698, 0.02161601352648331, 0.02161601352648331], [0.1610544498487837, 0.15896884339395434, 0.15896884339395434, 0.15276604206585967, 0.15276604206585967, 0.1426067021736066, 0.1426067021736066, 0.12875396253933621, 0.12875396253933621, 0.11156664554733399, 0.11156664554733399, 0.09149002162245, 0.09149002162245, 0.06904454273764123, 0.06904454273764123, 0.0448142267656996, 0.0448142267656996, 0.019461788229726478, 0.019461788229726478], [0.15275338713072584, 0.15275338713072584, 0.14917298647260374, 0.14917298647260374, 0.14209610931838204, 0.14209610931838204, 0.13168863844917664, 0.13168863844917664, 0.11819453196151841, 0.11819453196151841, 0.10193011981724044, 0.10193011981724044, 0.08327674157670475, 0.08327674157670475, 0.06267204833410907, 0.06267204833410907, 0.04060142980038694, 0.04060142980038694, 0.017614007139152118, 0.017614007139152118], [0.14608113364969041, 0.14452440398997005, 0.14452440398997005, 0.13988739479107315, 0.13988739479107315, 0.13226893863333747, 0.13226893863333747, 0.12183141605372853, 0.12183141605372853, 0.10879729916714838, 0.10879729916714838, 0.09344442345603386, 0.09344442345603386, 0.0761001136283793, 0.0761001136283793, 0.057134425426857205, 0.057134425426857205, 0.036953789770852494, 0.036953789770852494, 0.016017228257774335, 0.016017228257774335], [0.13925187285563198, 0.13925187285563198, 0.13654149834601517, 0.13654149834601517, 0.13117350478706238, 0.13117350478706238, 0.12325237681051242, 0.12325237681051242, 0.11293229608053922, 0.11293229608053922, 0.10041414444288096, 0.10041414444288096, 0.08594160621706773, 0.08594160621706773, 0.06979646842452049, 0.06979646842452049, 0.052293335152683286, 0.052293335152683286, 0.03377490158481415, 0.03377490158481415, 0.0146279952982722, 0.0146279952982722], [0.13365457218610619, 0.1324620394046966, 0.1324620394046966, 0.12890572218808216, 0.12890572218808216, 0.12304908430672953, 0.12304908430672953, 0.11499664022241136, 0.11499664022241136, 0.10489209146454141, 0.10489209146454141, 0.09291576606003515, 0.09291576606003515, 0.07928141177671895, 0.07928141177671895, 0.06423242140852585, 0.06423242140852585, 0.04803767173108467, 0.04803767173108467, 0.030988005856979445, 0.030988005856979445, 0.013411859487141771, 0.013411859487141771], [0.12793819534675216, 0.12793819534675216, 0.1258374563468283, 0.1258374563468283, 0.12167047292780339, 0.12167047292780339, 0.1155056680537256, 0.1155056680537256, 0.10744427011596563, 0.10744427011596563, 0.09761865210411388, 0.09761865210411388, 0.08619016153195327, 0.08619016153195327, 0.0733464814110803, 0.0733464814110803, 0.05929858491543678, 0.05929858491543678, 0.04427743881741981, 0.04427743881741981, 0.028531388628933663, 0.028531388628933663, 0.0123412297999872, 0.0123412297999872]], Te = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]], Ce = O((n, e, t) => ({ x: (1 - t) * (1 - t) * (1 - t) * n[0] + 3 * (1 - t) * (1 - t) * t * n[1] + 3 * (1 - t) * t * t * n[2] + t * t * t * n[3], y: (1 - t) * (1 - t) * (1 - t) * e[0] + 3 * (1 - t) * (1 - t) * t * e[1] + 3 * (1 - t) * t * t * e[2] + t * t * t * e[3] }), "cubicPoint"), Pe = O((n, e, t) => H0([3 * (n[1] - n[0]), 3 * (n[2] - n[1]), 3 * (n[3] - n[2])], [3 * (e[1] - e[0]), 3 * (e[2] - e[1]), 3 * (e[3] - e[2])], t), "cubicDerivative"), Se = O((n, e, t) => {
519
519
  let o, i;
520
520
  const a = t / 2;
521
521
  o = 0;
522
- for (let s = 0; s < 20; s++) i = a * Ae[20][s] + a, o += Me[20][s] * H0(n, e, i);
522
+ for (let s = 0; s < 20; s++) i = a * Me[20][s] + a, o += Le[20][s] * U0(n, e, i);
523
523
  return a * o;
524
- }, "getCubicArcLength"), j0 = O((n, e, t) => ({ x: (1 - t) * (1 - t) * n[0] + 2 * (1 - t) * t * n[1] + t * t * n[2], y: (1 - t) * (1 - t) * e[0] + 2 * (1 - t) * t * e[1] + t * t * e[2] }), "quadraticPoint"), Ee = O((n, e, t) => {
524
+ }, "getCubicArcLength"), H0 = O((n, e, t) => ({ x: (1 - t) * (1 - t) * n[0] + 2 * (1 - t) * t * n[1] + t * t * n[2], y: (1 - t) * (1 - t) * e[0] + 2 * (1 - t) * t * e[1] + t * t * e[2] }), "quadraticPoint"), Ee = O((n, e, t) => {
525
525
  t === void 0 && (t = 1);
526
526
  const o = n[0] - 2 * n[1] + n[2], i = e[0] - 2 * e[1] + e[2], a = 2 * n[1] - 2 * n[0], s = 2 * e[1] - 2 * e[0], r = 4 * (o * o + i * i), h = 4 * (o * a + i * s), c = a * a + s * s;
527
527
  if (r === 0) return t * Math.sqrt(Math.pow(n[2] - n[0], 2) + Math.pow(e[2] - e[0], 2));
528
- const u = h / (2 * r), p = t + u, l = c / r - u * u, f = p * p + l > 0 ? Math.sqrt(p * p + l) : 0, v = u * u + l > 0 ? Math.sqrt(u * u + l) : 0, y = u + Math.sqrt(u * u + l) !== 0 && (p + f) / (u + v) !== 0 ? l * Math.log(Math.abs((p + f) / (u + v))) : 0;
529
- return Math.sqrt(r) / 2 * (p * f - u * v + y);
530
- }, "getQuadraticArcLength"), Se = O((n, e, t) => ({ x: 2 * (1 - t) * (n[1] - n[0]) + 2 * t * (n[2] - n[1]), y: 2 * (1 - t) * (e[1] - e[0]) + 2 * t * (e[2] - e[1]) }), "quadraticDerivative");
531
- function H0(n, e, t) {
532
- const o = Kt(1, t, n), i = Kt(1, t, e), a = o * o + i * i;
528
+ const u = h / (2 * r), d = t + u, l = c / r - u * u, f = d * d + l > 0 ? Math.sqrt(d * d + l) : 0, v = u * u + l > 0 ? Math.sqrt(u * u + l) : 0, y = u + Math.sqrt(u * u + l) !== 0 && (d + f) / (u + v) !== 0 ? l * Math.log(Math.abs((d + f) / (u + v))) : 0;
529
+ return Math.sqrt(r) / 2 * (d * f - u * v + y);
530
+ }, "getQuadraticArcLength"), Ie = O((n, e, t) => ({ x: 2 * (1 - t) * (n[1] - n[0]) + 2 * t * (n[2] - n[1]), y: 2 * (1 - t) * (e[1] - e[0]) + 2 * t * (e[2] - e[1]) }), "quadraticDerivative");
531
+ function U0(n, e, t) {
532
+ const o = Zt(1, t, n), i = Zt(1, t, e), a = o * o + i * i;
533
533
  return Math.sqrt(a);
534
534
  }
535
- O(H0, "BFunc");
536
- var Kt = O((n, e, t) => {
535
+ O(U0, "BFunc");
536
+ var Zt = O((n, e, t) => {
537
537
  const o = t.length - 1;
538
538
  let i, a;
539
539
  if (o === 0) return 0;
540
540
  if (n === 0) {
541
541
  a = 0;
542
- for (let s = 0; s <= o; s++) a += Le[o][s] * Math.pow(1 - e, o - s) * Math.pow(e, s) * t[s];
542
+ for (let s = 0; s <= o; s++) a += Te[o][s] * Math.pow(1 - e, o - s) * Math.pow(e, s) * t[s];
543
543
  return a;
544
544
  }
545
545
  i = new Array(o);
546
546
  for (let s = 0; s < o; s++) i[s] = o * (t[s + 1] - t[s]);
547
- return Kt(n - 1, e, i);
547
+ return Zt(n - 1, e, i);
548
548
  }, "getDerivative"), Dt = O((n, e, t) => {
549
549
  let o = 1, i = n / e, a = (n - t(i)) / e, s = 0;
550
550
  for (; o > 1e-3; ) {
@@ -559,67 +559,67 @@ var Kt = O((n, e, t) => {
559
559
  return i;
560
560
  }, "t2length"), At, ct = (At = class {
561
561
  constructor(e, t, o, i, a, s, r, h) {
562
- I(this, "a");
563
- I(this, "b");
564
- I(this, "c");
565
- I(this, "d");
566
- I(this, "length");
567
- I(this, "getArcLength");
568
- I(this, "getPoint");
569
- I(this, "getDerivative");
570
- I(this, "getTotalLength", O(() => this.length, "getTotalLength"));
571
- I(this, "getPointAtLength", O((e) => {
562
+ k(this, "a");
563
+ k(this, "b");
564
+ k(this, "c");
565
+ k(this, "d");
566
+ k(this, "length");
567
+ k(this, "getArcLength");
568
+ k(this, "getPoint");
569
+ k(this, "getDerivative");
570
+ k(this, "getTotalLength", O(() => this.length, "getTotalLength"));
571
+ k(this, "getPointAtLength", O((e) => {
572
572
  const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i = Dt(e, this.length, (a) => this.getArcLength(t, o, a));
573
573
  return this.getPoint(t, o, i);
574
574
  }, "getPointAtLength"));
575
- I(this, "getTangentAtLength", O((e) => {
575
+ k(this, "getTangentAtLength", O((e) => {
576
576
  const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i = Dt(e, this.length, (h) => this.getArcLength(t, o, h)), a = this.getDerivative(t, o, i), s = Math.sqrt(a.x * a.x + a.y * a.y);
577
577
  let r;
578
578
  return r = s > 0 ? { x: a.x / s, y: a.y / s } : { x: 0, y: 0 }, r;
579
579
  }, "getTangentAtLength"));
580
- I(this, "getPropertiesAtLength", O((e) => {
580
+ k(this, "getPropertiesAtLength", O((e) => {
581
581
  const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i = Dt(e, this.length, (c) => this.getArcLength(t, o, c)), a = this.getDerivative(t, o, i), s = Math.sqrt(a.x * a.x + a.y * a.y);
582
582
  let r;
583
583
  r = s > 0 ? { x: a.x / s, y: a.y / s } : { x: 0, y: 0 };
584
584
  const h = this.getPoint(t, o, i);
585
585
  return { x: h.x, y: h.y, tangentX: r.x, tangentY: r.y };
586
586
  }, "getPropertiesAtLength"));
587
- I(this, "getC", O(() => this.c, "getC"));
588
- I(this, "getD", O(() => this.d, "getD"));
589
- this.a = { x: e, y: t }, this.b = { x: o, y: i }, this.c = { x: a, y: s }, r !== void 0 && h !== void 0 ? (this.getArcLength = Pe, this.getPoint = Te, this.getDerivative = Ce, this.d = { x: r, y: h }) : (this.getArcLength = Ee, this.getPoint = j0, this.getDerivative = Se, this.d = { x: 0, y: 0 }), this.length = this.getArcLength([this.a.x, this.b.x, this.c.x, this.d.x], [this.a.y, this.b.y, this.c.y, this.d.y], 1);
587
+ k(this, "getC", O(() => this.c, "getC"));
588
+ k(this, "getD", O(() => this.d, "getD"));
589
+ this.a = { x: e, y: t }, this.b = { x: o, y: i }, this.c = { x: a, y: s }, r !== void 0 && h !== void 0 ? (this.getArcLength = Se, this.getPoint = Ce, this.getDerivative = Pe, this.d = { x: r, y: h }) : (this.getArcLength = Ee, this.getPoint = H0, this.getDerivative = Ie, this.d = { x: 0, y: 0 }), this.length = this.getArcLength([this.a.x, this.b.x, this.c.x, this.d.x], [this.a.y, this.b.y, this.c.y, this.d.y], 1);
590
590
  }
591
591
  }, O(At, "Bezier"), At), Mt, ke = (Mt = class {
592
592
  constructor(e) {
593
- I(this, "length", 0);
594
- I(this, "partial_lengths", []);
595
- I(this, "functions", []);
596
- I(this, "initial_point", null);
597
- I(this, "getPartAtLength", O((e) => {
593
+ k(this, "length", 0);
594
+ k(this, "partial_lengths", []);
595
+ k(this, "functions", []);
596
+ k(this, "initial_point", null);
597
+ k(this, "getPartAtLength", O((e) => {
598
598
  e < 0 ? e = 0 : e > this.length && (e = this.length);
599
599
  let t = this.partial_lengths.length - 1;
600
600
  for (; this.partial_lengths[t] >= e && t > 0; ) t--;
601
601
  return t++, { fraction: e - this.partial_lengths[t - 1], i: t };
602
602
  }, "getPartAtLength"));
603
- I(this, "getTotalLength", O(() => this.length, "getTotalLength"));
604
- I(this, "getPointAtLength", O((e) => {
603
+ k(this, "getTotalLength", O(() => this.length, "getTotalLength"));
604
+ k(this, "getPointAtLength", O((e) => {
605
605
  const t = this.getPartAtLength(e), o = this.functions[t.i];
606
606
  if (o) return o.getPointAtLength(t.fraction);
607
607
  if (this.initial_point) return this.initial_point;
608
608
  throw new Error("Wrong function at this part.");
609
609
  }, "getPointAtLength"));
610
- I(this, "getTangentAtLength", O((e) => {
610
+ k(this, "getTangentAtLength", O((e) => {
611
611
  const t = this.getPartAtLength(e), o = this.functions[t.i];
612
612
  if (o) return o.getTangentAtLength(t.fraction);
613
613
  if (this.initial_point) return { x: 0, y: 0 };
614
614
  throw new Error("Wrong function at this part.");
615
615
  }, "getTangentAtLength"));
616
- I(this, "getPropertiesAtLength", O((e) => {
616
+ k(this, "getPropertiesAtLength", O((e) => {
617
617
  const t = this.getPartAtLength(e), o = this.functions[t.i];
618
618
  if (o) return o.getPropertiesAtLength(t.fraction);
619
619
  if (this.initial_point) return { x: this.initial_point.x, y: this.initial_point.y, tangentX: 0, tangentY: 0 };
620
620
  throw new Error("Wrong function at this part.");
621
621
  }, "getPropertiesAtLength"));
622
- I(this, "getParts", O(() => {
622
+ k(this, "getParts", O(() => {
623
623
  const e = [];
624
624
  for (let t = 0; t < this.functions.length; t++) if (this.functions[t] !== null) {
625
625
  this.functions[t] = this.functions[t];
@@ -628,7 +628,7 @@ var Kt = O((n, e, t) => {
628
628
  }
629
629
  return e;
630
630
  }, "getParts"));
631
- const t = Array.isArray(e) ? e : xe(e);
631
+ const t = Array.isArray(e) ? e : ye(e);
632
632
  let o, i = [0, 0], a = [0, 0], s = [0, 0];
633
633
  for (let r = 0; r < t.length; r++) {
634
634
  if (t[r][0] === "M") i = [t[r][1], t[r][2]], s = [i[0], i[1]], this.functions.push(null), r === 0 && (this.initial_point = { x: t[r][1], y: t[r][2] });
@@ -686,10 +686,10 @@ var Kt = O((n, e, t) => {
686
686
  }
687
687
  a = [2 * i[0] - a[0], 2 * i[1] - a[1]], i = [t[r][1] + i[0], t[r][2] + i[1]];
688
688
  } else if (t[r][0] === "A") {
689
- const h = new p0(i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4] === 1, t[r][5] === 1, t[r][6], t[r][7]);
689
+ const h = new d0(i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4] === 1, t[r][5] === 1, t[r][6], t[r][7]);
690
690
  this.length += h.getTotalLength(), i = [t[r][6], t[r][7]], this.functions.push(h);
691
691
  } else if (t[r][0] === "a") {
692
- const h = new p0(i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4] === 1, t[r][5] === 1, i[0] + t[r][6], i[1] + t[r][7]);
692
+ const h = new d0(i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4] === 1, t[r][5] === 1, i[0] + t[r][6], i[1] + t[r][7]);
693
693
  this.length += h.getTotalLength(), i = [i[0] + t[r][6], i[1] + t[r][7]], this.functions.push(h);
694
694
  }
695
695
  this.partial_lengths.push(this.length);
@@ -697,26 +697,26 @@ var Kt = O((n, e, t) => {
697
697
  }
698
698
  }, O(Mt, "SVGPathProperties"), Mt), Lt, Qt = (Lt = class {
699
699
  constructor(e) {
700
- I(this, "inst");
701
- I(this, "getTotalLength", O(() => this.inst.getTotalLength(), "getTotalLength"));
702
- I(this, "getPointAtLength", O((e) => this.inst.getPointAtLength(e), "getPointAtLength"));
703
- I(this, "getTangentAtLength", O((e) => this.inst.getTangentAtLength(e), "getTangentAtLength"));
704
- I(this, "getPropertiesAtLength", O((e) => this.inst.getPropertiesAtLength(e), "getPropertiesAtLength"));
705
- I(this, "getParts", O(() => this.inst.getParts(), "getParts"));
700
+ k(this, "inst");
701
+ k(this, "getTotalLength", O(() => this.inst.getTotalLength(), "getTotalLength"));
702
+ k(this, "getPointAtLength", O((e) => this.inst.getPointAtLength(e), "getPointAtLength"));
703
+ k(this, "getTangentAtLength", O((e) => this.inst.getTangentAtLength(e), "getTangentAtLength"));
704
+ k(this, "getPropertiesAtLength", O((e) => this.inst.getPropertiesAtLength(e), "getPropertiesAtLength"));
705
+ k(this, "getParts", O(() => this.inst.getParts(), "getParts"));
706
706
  if (this.inst = new ke(e), !(this instanceof Qt)) return new Qt(e);
707
707
  }
708
708
  }, O(Lt, "_svgPathProperties"), Lt);
709
- function Ie(n = G.BLACK) {
709
+ function _e(n = G.BLACK) {
710
710
  return { ...n, alpha: 0 };
711
711
  }
712
- function Wn(n = null) {
712
+ function Gn(n = null) {
713
713
  const { path: e, height: t = 100, width: o = 100, viewboxHeight: i, viewboxWidth: a, ...s } = n ?? {}, r = e ?? "M 0 0 L 100 100", c = new Qt(r).getTotalLength();
714
714
  return lt({
715
715
  objectType: U.PATH,
716
716
  anchor: ht,
717
717
  strokeColor: Q,
718
718
  drawn: 1,
719
- fillColor: Ie(),
719
+ fillColor: _e(),
720
720
  isRounded: !1,
721
721
  height: t,
722
722
  path: r,
@@ -730,7 +730,7 @@ function Wn(n = null) {
730
730
  ...s
731
731
  });
732
732
  }
733
- function Xn(n = null) {
733
+ function Kn(n = null) {
734
734
  return lt({
735
735
  objectType: U.POLYGON,
736
736
  strokeColor: Q,
@@ -745,7 +745,7 @@ function Xn(n = null) {
745
745
  ...n
746
746
  });
747
747
  }
748
- function Gn(n = null) {
748
+ function Vn(n = null) {
749
749
  return lt({
750
750
  objectType: U.RECTANGLE,
751
751
  anchor: ht,
@@ -761,7 +761,7 @@ function Gn(n = null) {
761
761
  ...n
762
762
  });
763
763
  }
764
- function Vn(n = null) {
764
+ function Zn(n = null) {
765
765
  return lt({
766
766
  objectType: U.SVG,
767
767
  anchor: ht,
@@ -773,11 +773,11 @@ function Vn(n = null) {
773
773
  ...n
774
774
  });
775
775
  }
776
- const _e = {
776
+ const Oe = {
777
777
  NORMAL: "normal",
778
778
  ITALIC: "italic",
779
779
  OBLIQUE: "oblique"
780
- }, Oe = _e.NORMAL, Ne = {
780
+ }, Ne = Oe.NORMAL, Re = {
781
781
  THIN: 100,
782
782
  EXTRA_LIGHT: 200,
783
783
  LIGHT: 300,
@@ -787,57 +787,57 @@ const _e = {
787
787
  BOLD: 700,
788
788
  EXTRA_BOLD: 800,
789
789
  BLACK: 900
790
- }, Re = Ne.NORMAL, Fe = {
790
+ }, Fe = Re.NORMAL, Be = {
791
791
  color: Q,
792
792
  fontFamily: "sans-serif",
793
793
  fontSize: 100,
794
- fontStyle: Oe,
795
- fontWeight: Re,
794
+ fontStyle: Ne,
795
+ fontWeight: Fe,
796
796
  ligatures: !1,
797
797
  subscript: !1,
798
798
  superscript: !1
799
799
  };
800
- function U0(n) {
800
+ function $0(n) {
801
801
  return typeof n == "string" ? [[{ text: n }]] : n.map((e) => e.map((t) => typeof t == "string" ? { text: t } : t));
802
802
  }
803
- function Be(n) {
804
- return U0(n).reduce(
803
+ function De(n) {
804
+ return $0(n).reduce(
805
805
  (t, o) => t + o.reduce((i, a) => i + a.text.length, 0),
806
806
  0
807
807
  );
808
808
  }
809
- function De(n = "", e = null) {
809
+ function qe(n = "", e = null) {
810
810
  return lt({
811
811
  objectType: U.TEXT,
812
- alignment: ue,
812
+ alignment: fe,
813
813
  anchor: ht,
814
814
  length: null,
815
815
  lineSpacing: 1,
816
816
  text: n,
817
817
  x: 0,
818
818
  y: 0,
819
- ...Fe,
819
+ ...Be,
820
820
  ...e
821
821
  });
822
822
  }
823
- De.writeOn = (n, e = {}) => s0(
823
+ qe.writeOn = (n, e = {}) => s0(
824
824
  n,
825
825
  {
826
- length: Be(n.text)
826
+ length: De(n.text)
827
827
  },
828
828
  e
829
829
  );
830
830
  const a0 = "presenter.navigator.open";
831
- function $0() {
831
+ function W0() {
832
832
  return typeof document > "u" ? !1 : Array.from(document.scripts).some((n) => n.src.includes("/@vite/client"));
833
833
  }
834
- function qe() {
834
+ function ze() {
835
835
  var n;
836
- return $0() ? ((n = h0()) == null ? void 0 : n.getItem(a0)) === "true" : !1;
836
+ return W0() ? ((n = h0()) == null ? void 0 : n.getItem(a0)) === "true" : !1;
837
837
  }
838
- function ze() {
838
+ function je() {
839
839
  var n;
840
- $0() && ((n = h0()) == null || n.setItem(a0, "true"));
840
+ W0() && ((n = h0()) == null || n.setItem(a0, "true"));
841
841
  }
842
842
  function Y0() {
843
843
  var n;
@@ -850,7 +850,7 @@ function h0() {
850
850
  return null;
851
851
  }
852
852
  }
853
- function W0(n) {
853
+ function X0(n) {
854
854
  return n.altKey || n.ctrlKey || n.metaKey || n.shiftKey;
855
855
  }
856
856
  function v0(n) {
@@ -860,7 +860,7 @@ function v0(n) {
860
860
  const e = n, t = (o = e.tagName) == null ? void 0 : o.toLowerCase();
861
861
  return t === "input" || t === "textarea" || t === "select" || t === "button" || e.isContentEditable ? !0 : (((i = e.closest) == null ? void 0 : i.call(e, "[contenteditable=''], [contenteditable='true']")) ?? null) !== null;
862
862
  }
863
- function je(n) {
863
+ function He(n) {
864
864
  var o;
865
865
  const { slides: e } = n, t = {
866
866
  // First build of first slide
@@ -899,13 +899,17 @@ function qt(n, e, t, o) {
899
899
  else
900
900
  n[e] = { slideIndex: t, buildIndex: o };
901
901
  }
902
- function X0(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigator: s }, { focusOnPointerDown: r = !1, keyEventTarget: h = e, signal: c } = {}) {
903
- t.shortcuts = je(n);
902
+ function w0(n, e) {
903
+ const t = n[e];
904
+ return t !== void 0 ? t : isNaN(Number(e)) ? null : { slideIndex: Number(e) - 1, buildIndex: 0 };
905
+ }
906
+ function G0(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigator: s }, { focusOnPointerDown: r = !1, keyEventTarget: h = e, signal: c } = {}) {
907
+ t.shortcuts = He(n);
904
908
  const u = c === void 0 ? void 0 : { signal: c };
905
909
  r && (e.hasAttribute("tabindex") || (e.tabIndex = -1), e.addEventListener(
906
910
  "pointerdown",
907
- (p) => {
908
- v0(p.target) || e.focus({ preventScroll: !0 });
911
+ (d) => {
912
+ v0(d.target) || e.focus({ preventScroll: !0 });
909
913
  },
910
914
  u
911
915
  )), e.addEventListener(
@@ -916,53 +920,68 @@ function X0(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigat
916
920
  u
917
921
  ), h.addEventListener(
918
922
  "keyup",
919
- (p) => {
920
- const l = p;
921
- if (!v0(l.target)) {
922
- if (l.code === "Escape") {
923
+ (d) => {
924
+ const l = d;
925
+ if (v0(l.target))
926
+ return;
927
+ if (l.code === "Escape") {
928
+ t.textCommand = null;
929
+ return;
930
+ }
931
+ if (l.code === "ArrowRight" || l.code === "Space") {
932
+ o(l.shiftKey);
933
+ return;
934
+ }
935
+ if (l.code === "ArrowLeft") {
936
+ i(l.shiftKey);
937
+ return;
938
+ }
939
+ const f = Ue(l);
940
+ if (f !== null) {
941
+ const v = w0(
942
+ t.shortcuts,
943
+ f
944
+ );
945
+ t.textCommand = null, v !== null && (l.preventDefault(), a(v.slideIndex, v.buildIndex));
946
+ return;
947
+ }
948
+ if (t.textCommand !== null) {
949
+ if (l.code === "Enter") {
950
+ const v = t.textCommand;
923
951
  t.textCommand = null;
952
+ const y = w0(
953
+ t.shortcuts,
954
+ v
955
+ );
956
+ y !== null && a(y.slideIndex, y.buildIndex);
924
957
  return;
925
- }
926
- if (l.code === "ArrowRight" || l.code === "Space") {
927
- o(l.shiftKey);
928
- return;
929
- }
930
- if (l.code === "ArrowLeft") {
931
- i(l.shiftKey);
932
- return;
933
- }
934
- if (t.textCommand !== null) {
935
- if (l.code === "Enter") {
936
- const f = t.textCommand;
937
- t.textCommand = null;
938
- const v = t.shortcuts[f];
939
- v !== void 0 ? a(v.slideIndex, v.buildIndex) : isNaN(Number(f)) || a(Number(f) - 1, 0);
940
- return;
941
- } else l.code === "Backspace" ? t.textCommand = t.textCommand.slice(0, -1) : t.textCommand += l.key;
942
- return;
943
- }
944
- if (l.key === "g") {
945
- t.textCommand = "";
946
- return;
947
- }
948
- if (l.key === "`" && !W0(l)) {
949
- s();
950
- return;
951
- }
958
+ } else l.code === "Backspace" ? t.textCommand = t.textCommand.slice(0, -1) : t.textCommand += l.key;
959
+ return;
960
+ }
961
+ if (l.key === "g") {
962
+ t.textCommand = "";
963
+ return;
964
+ }
965
+ if (l.key === "`" && !X0(l)) {
966
+ s();
967
+ return;
952
968
  }
953
969
  },
954
970
  u
955
971
  );
956
972
  }
973
+ function Ue(n) {
974
+ return !n.altKey || n.ctrlKey || n.metaKey || n.shiftKey ? null : n.code.startsWith("Key") && n.code.length === 4 ? n.code.slice(3).toLowerCase() : n.code.startsWith("Digit") && n.code.length === 6 ? n.code.slice(5) : n.code.startsWith("Numpad") && n.code.length === 7 ? n.code.slice(6) : null;
975
+ }
957
976
  let R = null, Ot = null, yt = null;
958
- const w0 = "__presenterNavigatorInstanceId";
959
- let G0 = {
977
+ const m0 = "__presenterNavigatorInstanceId";
978
+ let K0 = {
960
979
  width: 700,
961
980
  height: 680,
962
981
  left: 20,
963
982
  top: 50
964
983
  };
965
- function He({
984
+ function $e({
966
985
  presentation: n,
967
986
  shortcutState: e,
968
987
  onNavigateToSlide: t,
@@ -973,18 +992,18 @@ function He({
973
992
  }) {
974
993
  if (R !== null && !R.closed && (Nt(R), !s))
975
994
  return R.focus(), Ot;
976
- if ((R === null || R.closed) && (R = window.open("", "Navigator", We())), R === null)
995
+ if ((R === null || R.closed) && (R = window.open("", "Navigator", Ge())), R === null)
977
996
  return console.error("Failed to open navigator window."), null;
978
997
  yt == null || yt();
979
- const r = Xe(R), h = new AbortController();
998
+ const r = Ke(R), h = new AbortController();
980
999
  yt = () => h.abort();
981
- const c = Ue(
1000
+ const c = We(
982
1001
  n,
983
1002
  t,
984
1003
  i,
985
1004
  r.isActive
986
1005
  );
987
- return Ot = c, ze(), R.document.title = n.title, R.document.body.replaceChildren(c.element), X0(
1006
+ return Ot = c, je(), R.document.title = n.title, R.document.body.replaceChildren(c.element), G0(
988
1007
  n,
989
1008
  c.element,
990
1009
  e,
@@ -995,8 +1014,8 @@ function He({
995
1014
  onPrevious: (u) => {
996
1015
  r.isActive() && a(u);
997
1016
  },
998
- onRenderSlide: (u, p) => {
999
- r.isActive() && o(u, p);
1017
+ onRenderSlide: (u, d) => {
1018
+ r.isActive() && o(u, d);
1000
1019
  },
1001
1020
  onShowNavigator: () => {
1002
1021
  r.isActive() && Jt();
@@ -1019,14 +1038,14 @@ function He({
1019
1038
  ), R.addEventListener(
1020
1039
  "keyup",
1021
1040
  (u) => {
1022
- r.isActive() && (u.key === "Escape" || u.key === "`" && !W0(u)) && Jt();
1041
+ r.isActive() && (u.key === "Escape" || u.key === "`" && !X0(u)) && Jt();
1023
1042
  },
1024
1043
  {
1025
1044
  signal: h.signal
1026
1045
  }
1027
1046
  ), Ot;
1028
1047
  }
1029
- function Ue(n, e, t, o = () => !0) {
1048
+ function We(n, e, t, o = () => !0) {
1030
1049
  const i = (R == null ? void 0 : R.document) ?? document, a = i.createElement("div");
1031
1050
  a.style.boxSizing = "border-box", a.style.display = "grid", a.style.gridTemplateColumns = "260px 1fr", a.style.gap = "18px", a.style.height = "100vh", a.style.overflow = "hidden", a.style.padding = "18px", a.style.fontFamily = '-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif', a.style.backgroundColor = "#f5f6f8", a.style.color = "#1f2937", i.body.style.margin = "0", i.body.style.overflow = "hidden";
1032
1051
  const s = i.createElement("div");
@@ -1037,46 +1056,46 @@ function Ue(n, e, t, o = () => !0) {
1037
1056
  h.style.display = "flex", h.style.gap = "14px", h.style.alignItems = "center", h.style.flexWrap = "wrap", h.style.fontSize = "13px", h.style.color = "#4b5563";
1038
1057
  const c = i.createElement("div");
1039
1058
  c.style.display = "flex", c.style.gap = "14px", c.style.flex = "1 1 auto", c.style.minHeight = "0", c.style.minWidth = "0", c.style.overflow = "hidden";
1040
- const u = m0("Current", n), p = m0("Next", n);
1041
- p.container.style.cursor = "pointer", p.container.addEventListener("click", () => {
1059
+ const u = b0("Current", n), d = b0("Next", n);
1060
+ d.container.style.cursor = "pointer", d.container.addEventListener("click", () => {
1042
1061
  o() && t();
1043
1062
  });
1044
- const l = n.slides.map((L, S) => {
1045
- const T = $e(L, S);
1046
- return T.style.cursor = "pointer", T.addEventListener("click", (k) => {
1047
- o() && (k.shiftKey && Jt(), e(S));
1063
+ const l = n.slides.map((L, E) => {
1064
+ const T = Ye(L, E);
1065
+ return T.style.cursor = "pointer", T.addEventListener("click", (I) => {
1066
+ o() && (I.shiftKey && Jt(), e(E));
1048
1067
  }), s.appendChild(T), T;
1049
- }), f = zt("Slides", s, !0), v = zt("Current", u.container, !0), y = zt("Next", p.container, !0), M = () => {
1050
- const L = v.input.checked && y.input.checked && E();
1051
- a.style.gridTemplateColumns = f.input.checked ? "260px 1fr" : "1fr", c.style.flexDirection = L ? "column" : "row", u.container.style.flex = "1 1 0", p.container.style.flex = "1 1 0", requestAnimationFrame(() => {
1052
- u.resize(), p.resize();
1068
+ }), f = zt("Slides", s, !0), v = zt("Current", u.container, !0), y = zt("Next", d.container, !0), M = () => {
1069
+ const L = v.input.checked && y.input.checked && S();
1070
+ a.style.gridTemplateColumns = f.input.checked ? "260px 1fr" : "1fr", c.style.flexDirection = L ? "column" : "row", u.container.style.flex = "1 1 0", d.container.style.flex = "1 1 0", requestAnimationFrame(() => {
1071
+ u.resize(), d.resize();
1053
1072
  });
1054
1073
  };
1055
- f.input.addEventListener("change", M), v.input.addEventListener("change", M), y.input.addEventListener("change", M), R == null || R.addEventListener("resize", M), h.appendChild(f.element), h.appendChild(v.element), h.appendChild(y.element), c.appendChild(u.container), c.appendChild(p.container), r.appendChild(h), r.appendChild(c), a.appendChild(s), a.appendChild(r);
1056
- function P(L, S, T, k) {
1074
+ f.input.addEventListener("change", M), v.input.addEventListener("change", M), y.input.addEventListener("change", M), R == null || R.addEventListener("resize", M), h.appendChild(f.element), h.appendChild(v.element), h.appendChild(y.element), c.appendChild(u.container), c.appendChild(d.container), r.appendChild(h), r.appendChild(c), a.appendChild(s), a.appendChild(r);
1075
+ function P(L, E, T, I) {
1057
1076
  o() && (l.forEach((F, X) => {
1058
1077
  const z = X === L;
1059
1078
  F.style.backgroundColor = z ? "#dbeafe" : "#ffffff", F.style.borderColor = z ? "#60a5fa" : "#e5e7eb", F.style.color = z ? "#1e3a8a" : "#1f2937";
1060
- }), u.label.textContent = b0(n, L, S), p.label.textContent = b0(n, T, k), Ye(l[L], s), M());
1079
+ }), u.label.textContent = A0(n, L, E), d.label.textContent = A0(n, T, I), Xe(l[L], s), M());
1061
1080
  }
1062
- function E() {
1081
+ function S() {
1063
1082
  const L = R;
1064
1083
  if (L === null)
1065
1084
  return !1;
1066
- const S = f.input.checked ? 278 : 0, T = L.innerWidth - 36 - S, k = L.innerHeight - 36 - h.offsetHeight - 14;
1067
- return T <= 0 || k <= 0 ? !1 : T / k < 1.1;
1085
+ const E = f.input.checked ? 278 : 0, T = L.innerWidth - 36 - E, I = L.innerHeight - 36 - h.offsetHeight - 14;
1086
+ return T <= 0 || I <= 0 ? !1 : T / I < 1.1;
1068
1087
  }
1069
1088
  return {
1070
1089
  element: a,
1071
1090
  currentCanvas: u.canvas,
1072
- nextCanvas: p.canvas,
1091
+ nextCanvas: d.canvas,
1073
1092
  currentLabel: u.label,
1074
- nextLabel: p.label,
1093
+ nextLabel: d.label,
1075
1094
  isOpen: () => R !== null && !R.closed,
1076
1095
  update: P
1077
1096
  };
1078
1097
  }
1079
- function $e(n, e) {
1098
+ function Ye(n, e) {
1080
1099
  const t = (R == null ? void 0 : R.document) ?? document, o = t.createElement("div");
1081
1100
  o.style.display = "flex", o.style.alignItems = "center", o.style.gap = "10px", o.style.padding = "8px 10px", o.style.backgroundColor = "#ffffff", o.style.border = "1px solid #e5e7eb", o.style.borderRadius = "6px", o.style.boxShadow = "0 1px 2px rgba(15, 23, 42, 0.06)", o.style.fontSize = "14px", o.style.lineHeight = "1", o.style.userSelect = "none";
1082
1101
  const i = t.createElement("div");
@@ -1084,7 +1103,7 @@ function $e(n, e) {
1084
1103
  const a = t.createElement("div");
1085
1104
  return a.textContent = n.title.length > 0 ? n.title : `Slide ${e + 1}`, a.style.overflow = "hidden", a.style.textOverflow = "ellipsis", a.style.whiteSpace = "nowrap", o.appendChild(i), o.appendChild(a), o;
1086
1105
  }
1087
- function m0(n, e) {
1106
+ function b0(n, e) {
1088
1107
  var u;
1089
1108
  const t = (R == null ? void 0 : R.document) ?? document, o = t.createElement("div");
1090
1109
  o.style.display = "flex", o.style.alignItems = "center", o.style.flexDirection = "column", o.style.minHeight = "0", o.style.minWidth = "0";
@@ -1097,10 +1116,10 @@ function m0(n, e) {
1097
1116
  const r = t.createElement("canvas");
1098
1117
  r.style.display = "block", r.style.width = "0", r.style.height = "0";
1099
1118
  function h() {
1100
- const p = s.clientWidth, l = s.clientHeight;
1101
- if (p <= 0 || l <= 0)
1119
+ const d = s.clientWidth, l = s.clientHeight;
1120
+ if (d <= 0 || l <= 0)
1102
1121
  return;
1103
- const f = e.size.width / e.size.height, v = Math.min(p, l * f), y = v / f;
1122
+ const f = e.size.width / e.size.height, v = Math.min(d, l * f), y = v / f;
1104
1123
  r.style.width = `${v}px`, r.style.height = `${y}px`;
1105
1124
  }
1106
1125
  const c = (u = t.defaultView) == null ? void 0 : u.ResizeObserver;
@@ -1114,13 +1133,13 @@ function zt(n, e, t) {
1114
1133
  e.style.display = s.checked ? i : "none";
1115
1134
  }), a.appendChild(s), a.appendChild(o.createTextNode(n)), { element: a, input: s };
1116
1135
  }
1117
- function b0(n, e, t) {
1136
+ function A0(n, e, t) {
1118
1137
  if (e === null)
1119
1138
  return "End of presentation";
1120
1139
  const o = n.slides[e];
1121
1140
  return o === void 0 ? "No slide" : `Slide ${e + 1} of ${n.slides.length}, Build ${t + 1} of ${o.animations.length + 1}`;
1122
1141
  }
1123
- function Ye(n, e) {
1142
+ function Xe(n, e) {
1124
1143
  if (n === void 0)
1125
1144
  return;
1126
1145
  const t = n.offsetTop, o = t + n.offsetHeight, i = e.scrollTop, a = i + e.clientHeight;
@@ -1129,23 +1148,23 @@ function Ye(n, e) {
1129
1148
  function Jt() {
1130
1149
  Nt(R), Y0(), yt == null || yt(), R == null || R.close(), R = null, Ot = null, yt = null;
1131
1150
  }
1132
- function We() {
1133
- const { width: n, height: e, left: t, top: o } = G0;
1151
+ function Ge() {
1152
+ const { width: n, height: e, left: t, top: o } = K0;
1134
1153
  return `width=${n},height=${e},left=${t},top=${o}`;
1135
1154
  }
1136
1155
  function Nt(n) {
1137
- n === null || n.closed || (G0 = {
1156
+ n === null || n.closed || (K0 = {
1138
1157
  width: n.outerWidth,
1139
1158
  height: n.outerHeight,
1140
1159
  left: n.screenX,
1141
1160
  top: n.screenY
1142
1161
  });
1143
1162
  }
1144
- function Xe(n) {
1163
+ function Ke(n) {
1145
1164
  var o;
1146
1165
  const e = typeof ((o = globalThis.crypto) == null ? void 0 : o.randomUUID) == "function" ? globalThis.crypto.randomUUID() : `${Date.now()}-${Math.random()}`, t = n;
1147
- return t[w0] = e, {
1148
- isActive: () => !n.closed && t[w0] === e
1166
+ return t[m0] = e, {
1167
+ isActive: () => !n.closed && t[m0] === e
1149
1168
  };
1150
1169
  }
1151
1170
  function at(n = null) {
@@ -1155,8 +1174,8 @@ function at(n = null) {
1155
1174
  ...n
1156
1175
  };
1157
1176
  }
1158
- const Ge = at({ width: 0, height: 0 });
1159
- function Ve(n = null) {
1177
+ const Ve = at({ width: 0, height: 0 });
1178
+ function Ze(n = null) {
1160
1179
  return {
1161
1180
  backgroundColor: G.WHITE,
1162
1181
  slides: [],
@@ -1168,7 +1187,7 @@ function Ve(n = null) {
1168
1187
  ...n
1169
1188
  };
1170
1189
  }
1171
- function Ze(n) {
1190
+ function Qe(n) {
1172
1191
  const e = Array.isArray(n) ? n : [n];
1173
1192
  let t = 0, o = 0;
1174
1193
  for (const i of e)
@@ -1187,25 +1206,25 @@ function Ze(n) {
1187
1206
  return o;
1188
1207
  }
1189
1208
  function l0(n, e = null) {
1190
- const { red: t, green: o, blue: i } = n, a = z0(n, e);
1209
+ const { red: t, green: o, blue: i } = n, a = j0(n, e);
1191
1210
  return `rgba(${t}, ${o}, ${i}, ${a})`;
1192
1211
  }
1193
1212
  function V0(n) {
1194
1213
  return n === document.body;
1195
1214
  }
1196
- function Ke(n, e) {
1215
+ function Je(n, e) {
1197
1216
  const t = document.createElement("div");
1198
1217
  if (t.style.width = "100%", t.style.aspectRatio = `${n.size.width} / ${n.size.height}`, t.style.position = "relative", V0(e)) {
1199
1218
  t.style.top = "50%", t.style.transform = "translateY(-50%)", t.style.marginLeft = "auto", t.style.marginRight = "auto", t.style.overflowY = "clip", document.title = n.title, document.documentElement.style.height = "100%", document.body.style.margin = "0", document.body.style.height = "100%", document.body.style.width = "100%", document.body.style.backgroundColor = "#000000";
1200
1219
  const o = n.size.height / n.size.width;
1201
- A0(t, o), window.matchMedia(`(min-aspect-ratio: ${n.size.width} / ${n.size.height})`).addEventListener("change", () => A0(t, o));
1220
+ M0(t, o), window.matchMedia(`(min-aspect-ratio: ${n.size.width} / ${n.size.height})`).addEventListener("change", () => M0(t, o));
1202
1221
  }
1203
1222
  return t;
1204
1223
  }
1205
- function A0(n, e) {
1224
+ function M0(n, e) {
1206
1225
  window.innerHeight / window.innerWidth > e ? (n.style.width = "100%", n.style.height = "auto") : (n.style.width = "auto", n.style.height = "100%");
1207
1226
  }
1208
- const Qe = {
1227
+ const t1 = {
1209
1228
  check: (n) => typeof n == "object" && n !== null && typeof n.red == "number" && typeof n.green == "number" && typeof n.blue == "number" && typeof n.alpha == "number",
1210
1229
  interpolate: (n, e, t) => ({
1211
1230
  red: Math.round(n.red + (e.red - n.red) * t),
@@ -1213,23 +1232,23 @@ const Qe = {
1213
1232
  blue: Math.round(n.blue + (e.blue - n.blue) * t),
1214
1233
  alpha: n.alpha + (e.alpha - n.alpha) * t
1215
1234
  })
1216
- }, Je = {
1235
+ }, e1 = {
1217
1236
  check: (n) => !0,
1218
1237
  interpolate: (n, e) => e
1219
- }, t1 = {
1238
+ }, n1 = {
1220
1239
  check: (n) => typeof n == "number",
1221
1240
  interpolate: (n, e, t) => n + (e - n) * t
1222
- }, M0 = [
1241
+ }, L0 = [
1242
+ n1,
1223
1243
  t1,
1224
- Qe,
1225
- Je
1244
+ e1
1226
1245
  ];
1227
- function e1(n, e, t, o = null) {
1246
+ function r1(n, e, t, o = null) {
1228
1247
  if (t === 0)
1229
1248
  return n;
1230
1249
  if (t === 1)
1231
1250
  return { ...n, ...e };
1232
- const i = o != null ? [...o, ...M0] : M0, a = {};
1251
+ const i = o != null ? [...o, ...L0] : L0, a = {};
1233
1252
  for (const s in e) {
1234
1253
  const r = n[s], h = e[s];
1235
1254
  for (const c of i)
@@ -1244,7 +1263,7 @@ function e1(n, e, t, o = null) {
1244
1263
  }
1245
1264
  return { ...n, ...a };
1246
1265
  }
1247
- function L0(n, e, t = null) {
1266
+ function T0(n, e, t = null) {
1248
1267
  if (e === null)
1249
1268
  return;
1250
1269
  const o = Array.isArray(e) ? e : [e];
@@ -1266,7 +1285,7 @@ function L0(n, e, t = null) {
1266
1285
  );
1267
1286
  n.set(a.object, {
1268
1287
  ...s,
1269
- ...e1(
1288
+ ...r1(
1270
1289
  s,
1271
1290
  a.props,
1272
1291
  a.easing(h),
@@ -1296,7 +1315,7 @@ function L0(n, e, t = null) {
1296
1315
  function Z0(n) {
1297
1316
  return "objects" in n ? n.objects.filter((e) => "objectType" in e) : [];
1298
1317
  }
1299
- function n1({
1318
+ function i1({
1300
1319
  slide: n,
1301
1320
  buildIndex: e,
1302
1321
  buildTime: t
@@ -1312,15 +1331,15 @@ function n1({
1312
1331
  const a = t === null ? e : e - 1;
1313
1332
  for (let s = 0; s < a; s++) {
1314
1333
  const r = n.animations[s] ?? null;
1315
- L0(o, r);
1334
+ T0(o, r);
1316
1335
  }
1317
1336
  if (t !== null && e > 0) {
1318
1337
  const s = n.animations[e - 1] ?? null;
1319
- L0(o, s, t);
1338
+ T0(o, s, t);
1320
1339
  }
1321
1340
  return o;
1322
1341
  }
1323
- function r1(n) {
1342
+ function o1(n) {
1324
1343
  const e = {};
1325
1344
  function t(o) {
1326
1345
  if (o.objectType === U.SVG) {
@@ -1336,38 +1355,38 @@ function r1(n) {
1336
1355
  t(i);
1337
1356
  return e;
1338
1357
  }
1339
- const dt = "presenterState";
1340
- function i1(n, e) {
1341
- const t = localStorage.getItem(dt);
1358
+ const pt = "presenterState";
1359
+ function s1(n, e) {
1360
+ const t = localStorage.getItem(pt);
1342
1361
  if (t === null)
1343
1362
  return null;
1344
1363
  if (e === null)
1345
- return localStorage.removeItem(dt), null;
1364
+ return localStorage.removeItem(pt), null;
1346
1365
  let o;
1347
1366
  try {
1348
1367
  o = JSON.parse(t);
1349
1368
  } catch (c) {
1350
- return console.error("Failed to parse presentation state from localStorage:", c), localStorage.removeItem(dt), null;
1369
+ return console.error("Failed to parse presentation state from localStorage:", c), localStorage.removeItem(pt), null;
1351
1370
  }
1352
1371
  const { title: i, timestamp: a } = o;
1353
1372
  let { slideIndex: s, buildIndex: r } = o;
1354
1373
  if (typeof i != "string" || typeof s != "number" || typeof r != "number" || typeof a != "number" || i !== n.title || Date.now() - a > 1e3 * 60 * e)
1355
- return localStorage.removeItem(dt), null;
1374
+ return localStorage.removeItem(pt), null;
1356
1375
  s > n.slides.length - 1 && (s = n.slides.length - 1, r = 0);
1357
1376
  const h = n.slides[s];
1358
- return h === void 0 ? (localStorage.removeItem(dt), null) : (r > h.animations.length && (r = h.animations.length), {
1377
+ return h === void 0 ? (localStorage.removeItem(pt), null) : (r > h.animations.length && (r = h.animations.length), {
1359
1378
  title: i,
1360
1379
  slideIndex: s,
1361
1380
  buildIndex: r
1362
1381
  });
1363
1382
  }
1364
- function o1({ title: n, slideIndex: e, buildIndex: t }) {
1383
+ function a1({ title: n, slideIndex: e, buildIndex: t }) {
1365
1384
  localStorage.setItem(
1366
- dt,
1385
+ pt,
1367
1386
  JSON.stringify({ title: n, slideIndex: e, buildIndex: t, timestamp: Date.now() })
1368
1387
  );
1369
1388
  }
1370
- const T0 = Object.freeze({
1389
+ const C0 = Object.freeze({
1371
1390
  canvas: null,
1372
1391
  extrasContainer: null,
1373
1392
  mountedExtrasCleanups: [],
@@ -1380,14 +1399,14 @@ const T0 = Object.freeze({
1380
1399
  textCommand: null,
1381
1400
  shortcuts: {}
1382
1401
  }
1383
- }), Z = {
1402
+ }), V = {
1384
1403
  Browser: "browser",
1385
1404
  Node: "node"
1386
1405
  };
1387
- function s1(n, e) {
1406
+ function h1(n, e) {
1388
1407
  e.context.clearRect(0, 0, n.width, n.height);
1389
1408
  }
1390
- function a1(n) {
1409
+ function l1(n) {
1391
1410
  const e = document.createElement("canvas");
1392
1411
  return e.setAttribute("width", n.width.toString()), e.setAttribute("height", n.height.toString()), e.style.position = "absolute", e.style.width = "100%", e;
1393
1412
  }
@@ -1395,31 +1414,31 @@ const gt = {
1395
1414
  Browser: "browser",
1396
1415
  Node: "node"
1397
1416
  };
1398
- function h1(n) {
1417
+ function c1(n) {
1399
1418
  const e = new Path2D(n);
1400
1419
  return {
1401
1420
  type: gt.Browser,
1402
1421
  path: e
1403
1422
  };
1404
1423
  }
1405
- function l1(n) {
1406
- const { drawn: e, startX: t, startY: o, endX: i, endY: a, arrowheadSize: s, isArrowheadFilled: r, isDrawnFromCenter: h } = n, c = { x: t, y: o }, u = { x: i, y: a }, p = Math.atan2(u.y - c.y, u.x - c.x), l = { x: c.x + (u.x - c.x) / 2, y: c.y + (u.y - c.y) / 2 }, f = u.x - c.x, v = u.y - c.y, M = Math.hypot(f, v) * e, P = Math.cos(p), E = Math.sin(p), L = h ? { x: l.x - P * M / 2, y: l.y - E * M / 2 } : c, S = h ? { x: l.x + P * M / 2, y: l.y + E * M / 2 } : { x: c.x + P * M, y: c.y + E * M }, T = r ? Math.PI / 6 : Math.PI / 4.5, k = M < s * 2 ? M / 2 : s, F = {
1407
- x: S.x - k * Math.cos(p - T),
1408
- y: S.y - k * Math.sin(p - T)
1424
+ function u1(n) {
1425
+ const { drawn: e, startX: t, startY: o, endX: i, endY: a, arrowheadSize: s, isArrowheadFilled: r, isDrawnFromCenter: h } = n, c = { x: t, y: o }, u = { x: i, y: a }, d = Math.atan2(u.y - c.y, u.x - c.x), l = { x: c.x + (u.x - c.x) / 2, y: c.y + (u.y - c.y) / 2 }, f = u.x - c.x, v = u.y - c.y, M = Math.hypot(f, v) * e, P = Math.cos(d), S = Math.sin(d), L = h ? { x: l.x - P * M / 2, y: l.y - S * M / 2 } : c, E = h ? { x: l.x + P * M / 2, y: l.y + S * M / 2 } : { x: c.x + P * M, y: c.y + S * M }, T = r ? Math.PI / 6 : Math.PI / 4.5, I = M < s * 2 ? M / 2 : s, F = {
1426
+ x: E.x - I * Math.cos(d - T),
1427
+ y: E.y - I * Math.sin(d - T)
1409
1428
  }, X = {
1410
- x: S.x - k * Math.cos(p + T),
1411
- y: S.y - k * Math.sin(p + T)
1429
+ x: E.x - I * Math.cos(d + T),
1430
+ y: E.y - I * Math.sin(d + T)
1412
1431
  }, z = {
1413
- x: L.x + k * Math.cos(p - T),
1414
- y: L.y + k * Math.sin(p - T)
1415
- }, Y = {
1416
- x: L.x + k * Math.cos(p + T),
1417
- y: L.y + k * Math.sin(p + T)
1432
+ x: L.x + I * Math.cos(d - T),
1433
+ y: L.y + I * Math.sin(d - T)
1434
+ }, W = {
1435
+ x: L.x + I * Math.cos(d + T),
1436
+ y: L.y + I * Math.sin(d + T)
1418
1437
  };
1419
1438
  return {
1420
- arrowPoints: [L, S],
1421
- arrowheadPoints: [F, S, X],
1422
- doubledArrowheadPoints: [z, L, Y]
1439
+ arrowPoints: [L, E],
1440
+ arrowheadPoints: [F, E, X],
1441
+ doubledArrowheadPoints: [z, L, W]
1423
1442
  };
1424
1443
  }
1425
1444
  function vt({
@@ -1444,15 +1463,15 @@ function vt({
1444
1463
  ]) : n.context.setLineDash([u, c - u]);
1445
1464
  } else
1446
1465
  n.context.setLineDash([]);
1447
- if (n.context.lineWidth = h, n.context.strokeStyle = St(e, a), n.context.lineCap = i ? "round" : "butt", s === void 0) {
1466
+ if (n.context.lineWidth = h, n.context.strokeStyle = Et(e, a), n.context.lineCap = i ? "round" : "butt", s === void 0) {
1448
1467
  n.context.stroke();
1449
1468
  return;
1450
1469
  }
1451
1470
  switch (n.type) {
1452
- case Z.Browser:
1471
+ case V.Browser:
1453
1472
  s.type === gt.Browser ? n.context.stroke(s.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
1454
1473
  break;
1455
- case Z.Node:
1474
+ case V.Node:
1456
1475
  s.type === gt.Node ? n.context.stroke(s.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
1457
1476
  break;
1458
1477
  default:
@@ -1466,10 +1485,10 @@ function wt({ ctx: n, path: e, color: t, opacity: o = null }) {
1466
1485
  return;
1467
1486
  }
1468
1487
  switch (n.type) {
1469
- case Z.Browser:
1488
+ case V.Browser:
1470
1489
  e.type === gt.Browser ? n.context.fill(e.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
1471
1490
  break;
1472
- case Z.Node:
1491
+ case V.Node:
1473
1492
  e.type === gt.Node ? n.context.fill(e.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
1474
1493
  break;
1475
1494
  default:
@@ -1491,7 +1510,7 @@ function jt(n, e) {
1491
1510
  }
1492
1511
  return { path: t, length: i };
1493
1512
  }
1494
- const c1 = ({
1513
+ const f1 = ({
1495
1514
  ctx: n,
1496
1515
  object: e,
1497
1516
  opacity: t,
@@ -1500,7 +1519,7 @@ const c1 = ({
1500
1519
  const i = e.opacity * t;
1501
1520
  if (i === 0 || e.drawn === 0)
1502
1521
  return;
1503
- const { arrowPoints: a, arrowheadPoints: s, doubledArrowheadPoints: r } = l1(e), { path: h } = jt(a, o), { path: c } = jt(s, o);
1522
+ const { arrowPoints: a, arrowheadPoints: s, doubledArrowheadPoints: r } = u1(e), { path: h } = jt(a, o), { path: c } = jt(s, o);
1504
1523
  if (vt({
1505
1524
  color: e.color,
1506
1525
  ctx: n,
@@ -1537,32 +1556,32 @@ const c1 = ({
1537
1556
  });
1538
1557
  }
1539
1558
  };
1540
- function u1(n, e) {
1559
+ function g1(n, e) {
1541
1560
  const t = n.radius - n.strokeWidth / 2;
1542
1561
  if (t <= 0)
1543
1562
  return;
1544
1563
  const o = e(), i = -Math.PI / 2;
1545
1564
  return o.path.arc(n.x, n.y, t, i, i + 2 * Math.PI), o;
1546
1565
  }
1547
- function f1(n, e) {
1566
+ function d1(n, e) {
1548
1567
  const t = e(), o = -Math.PI / 2;
1549
1568
  t.path.arc(n.x, n.y, n.radius, o, o + 2 * Math.PI);
1550
1569
  const i = 2 * Math.PI * n.radius;
1551
1570
  return { path: t, length: i };
1552
1571
  }
1553
- function K0(n, e) {
1572
+ function Q0(n, e) {
1554
1573
  switch (n.type) {
1555
- case Z.Browser:
1574
+ case V.Browser:
1556
1575
  e.type === gt.Browser ? n.context.clip(e.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
1557
1576
  break;
1558
- case Z.Node:
1577
+ case V.Node:
1559
1578
  e.type === gt.Node ? n.context.clip(e.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
1560
1579
  break;
1561
1580
  default:
1562
1581
  st(n);
1563
1582
  }
1564
1583
  }
1565
- const g1 = ({
1584
+ const p1 = ({
1566
1585
  ctx: n,
1567
1586
  object: e,
1568
1587
  opacity: t,
@@ -1571,10 +1590,10 @@ const g1 = ({
1571
1590
  const i = e.opacity * t;
1572
1591
  if (i === 0 || e.drawn === 0 && e.fillColor.alpha === 0)
1573
1592
  return;
1574
- const { path: a, length: s } = f1(e, o);
1593
+ const { path: a, length: s } = d1(e, o);
1575
1594
  if (i < 1 && e.strokeWidth > 0) {
1576
- const r = u1(e, o);
1577
- r !== void 0 && (n.context.save(), K0(n, r), wt({ ctx: n, path: a, color: e.fillColor, opacity: i }), n.context.restore());
1595
+ const r = g1(e, o);
1596
+ r !== void 0 && (n.context.save(), Q0(n, r), wt({ ctx: n, path: a, color: e.fillColor, opacity: i }), n.context.restore());
1578
1597
  } else
1579
1598
  wt({ ctx: n, path: a, color: e.fillColor, opacity: i });
1580
1599
  vt({
@@ -1587,100 +1606,100 @@ const g1 = ({
1587
1606
  width: e.strokeWidth
1588
1607
  });
1589
1608
  };
1590
- function W(n = null) {
1609
+ function Y(n = null) {
1591
1610
  return {
1592
1611
  x: 0,
1593
1612
  y: 0,
1594
1613
  ...n
1595
1614
  };
1596
1615
  }
1597
- const p1 = W();
1616
+ const x1 = Y();
1598
1617
  function ut(n = null) {
1599
1618
  return {
1600
- origin: p1,
1601
- size: Ge,
1619
+ origin: x1,
1620
+ size: Ve,
1602
1621
  ...n
1603
1622
  };
1604
1623
  }
1605
1624
  ut();
1606
- function pt(n, e, t) {
1625
+ function dt(n, e, t) {
1607
1626
  const { x: o, y: i } = n, { width: a, height: s } = t;
1608
1627
  switch (e) {
1609
1628
  case ot.TOP_LEFT:
1610
1629
  return ut({
1611
- origin: W({ x: o, y: i }),
1630
+ origin: Y({ x: o, y: i }),
1612
1631
  size: t
1613
1632
  });
1614
1633
  case ot.TOP:
1615
1634
  return ut({
1616
- origin: W({ x: o - a / 2, y: i }),
1635
+ origin: Y({ x: o - a / 2, y: i }),
1617
1636
  size: t
1618
1637
  });
1619
1638
  case ot.TOP_RIGHT:
1620
1639
  return ut({
1621
- origin: W({ x: o - a, y: i }),
1640
+ origin: Y({ x: o - a, y: i }),
1622
1641
  size: t
1623
1642
  });
1624
1643
  case ot.LEFT:
1625
1644
  return ut({
1626
- origin: W({ x: o, y: i - s / 2 }),
1645
+ origin: Y({ x: o, y: i - s / 2 }),
1627
1646
  size: t
1628
1647
  });
1629
1648
  case ot.CENTER:
1630
1649
  return ut({
1631
- origin: W({ x: o - a / 2, y: i - s / 2 }),
1650
+ origin: Y({ x: o - a / 2, y: i - s / 2 }),
1632
1651
  size: t
1633
1652
  });
1634
1653
  case ot.RIGHT:
1635
1654
  return ut({
1636
- origin: W({ x: o - a, y: i - s / 2 }),
1655
+ origin: Y({ x: o - a, y: i - s / 2 }),
1637
1656
  size: t
1638
1657
  });
1639
1658
  case ot.BOTTOM_LEFT:
1640
1659
  return ut({
1641
- origin: W({ x: o, y: i - s }),
1660
+ origin: Y({ x: o, y: i - s }),
1642
1661
  size: t
1643
1662
  });
1644
1663
  case ot.BOTTOM:
1645
1664
  return ut({
1646
- origin: W({ x: o - a / 2, y: i - s }),
1665
+ origin: Y({ x: o - a / 2, y: i - s }),
1647
1666
  size: t
1648
1667
  });
1649
1668
  case ot.BOTTOM_RIGHT:
1650
1669
  return ut({
1651
- origin: W({ x: o - a, y: i - s }),
1670
+ origin: Y({ x: o - a, y: i - s }),
1652
1671
  size: t
1653
1672
  });
1654
1673
  default:
1655
1674
  st(e);
1656
1675
  }
1657
1676
  }
1658
- const d1 = ({
1677
+ const y1 = ({
1659
1678
  ctx: n,
1660
1679
  object: e,
1661
1680
  renderObject: t,
1662
1681
  opacity: o
1663
1682
  }) => {
1664
- const i = e.scale * e.scaleX, a = e.scale * e.scaleY, s = pt(
1665
- W({ x: e.x, y: e.y }),
1683
+ const i = e.scale * e.scaleX, a = e.scale * e.scaleY, s = dt(
1684
+ Y({ x: e.x, y: e.y }),
1666
1685
  e.anchor,
1667
1686
  at({
1668
1687
  width: e.width * Math.abs(i),
1669
1688
  height: e.height * Math.abs(a)
1670
1689
  })
1671
- ), { rotation: r, rotateOriginX: h, rotateOriginY: c, skewOriginX: u, skewOriginY: p, skewX: l, skewY: f } = e;
1690
+ ), { rotation: r, rotateOriginX: h, rotateOriginY: c, skewOriginX: u, skewOriginY: d, skewX: l, skewY: f } = e;
1672
1691
  if (!(i === 0 || a === 0)) {
1673
- n.context.save(), n.context.translate(s.origin.x, s.origin.y), n.context.scale(i, a), n.context.translate(h, c), n.context.rotate(r * Math.PI / 180), n.context.translate(-h, -c), n.context.translate(u, p), n.context.transform(
1692
+ n.context.save(), n.context.translate(s.origin.x, s.origin.y), n.context.scale(i, a), n.context.translate(h, c), n.context.rotate(r * Math.PI / 180), n.context.translate(-h, -c), n.context.translate(u, d), n.context.transform(
1674
1693
  1,
1675
1694
  Math.tan(f * Math.PI / 180),
1676
1695
  Math.tan(l * Math.PI / 180),
1677
1696
  1,
1678
1697
  0,
1679
1698
  0
1680
- ), n.context.translate(-u, -p);
1699
+ ), n.context.translate(-u, -d);
1681
1700
  for (const v of e.objects)
1682
1701
  t(v, o * e.opacity);
1683
- e.previewColor !== null && (n.context.fillStyle = St(e.previewColor), n.context.fillRect(0, 0, e.width, e.height)), e.rotateOriginPreviewSize > 0 && (n.context.fillStyle = "red", n.context.beginPath(), n.context.arc(h, c, e.rotateOriginPreviewSize, 0, 2 * Math.PI), n.context.fill()), e.skewOriginPreviewSize > 0 && (n.context.fillStyle = "blue", n.context.beginPath(), n.context.arc(u, p, e.skewOriginPreviewSize, 0, 2 * Math.PI), n.context.fill()), n.context.restore();
1702
+ e.previewColor !== null && (n.context.fillStyle = Et(e.previewColor), n.context.fillRect(0, 0, e.width, e.height)), e.rotateOriginPreviewSize > 0 && (n.context.fillStyle = "red", n.context.beginPath(), n.context.arc(h, c, e.rotateOriginPreviewSize, 0, 2 * Math.PI), n.context.fill()), e.skewOriginPreviewSize > 0 && (n.context.fillStyle = "blue", n.context.beginPath(), n.context.arc(u, d, e.skewOriginPreviewSize, 0, 2 * Math.PI), n.context.fill()), n.context.restore();
1684
1703
  }
1685
1704
  };
1686
1705
  function c0(n, e, t, o, i = 0) {
@@ -1707,18 +1726,18 @@ function c0(n, e, t, o, i = 0) {
1707
1726
  const s = 2 * (e.width + e.height - 4 * t) + 2 * Math.PI * t + i;
1708
1727
  return { path: a, length: s };
1709
1728
  }
1710
- const kt = {
1729
+ const It = {
1711
1730
  Browser: "browser",
1712
1731
  Node: "node"
1713
- }, x1 = ({
1732
+ }, v1 = ({
1714
1733
  ctx: n,
1715
1734
  imageById: e,
1716
1735
  object: t,
1717
1736
  opacity: o,
1718
1737
  createPath2D: i
1719
1738
  }) => {
1720
- const a = pt(
1721
- W({ x: t.x, y: t.y }),
1739
+ const a = dt(
1740
+ Y({ x: t.x, y: t.y }),
1722
1741
  t.anchor,
1723
1742
  at({ width: t.width, height: t.height })
1724
1743
  ), s = e[t.imageId];
@@ -1731,10 +1750,10 @@ const kt = {
1731
1750
  i
1732
1751
  );
1733
1752
  switch (n.type) {
1734
- case Z.Browser:
1753
+ case V.Browser:
1735
1754
  r.path.type === gt.Browser ? n.context.clip(r.path.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
1736
1755
  break;
1737
- case Z.Node:
1756
+ case V.Node:
1738
1757
  r.path.type === gt.Node ? n.context.clip(r.path.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
1739
1758
  break;
1740
1759
  default:
@@ -1742,8 +1761,8 @@ const kt = {
1742
1761
  }
1743
1762
  }
1744
1763
  switch (n.context.globalAlpha = o * t.opacity, n.context.imageSmoothingEnabled = t.smooth, n.type) {
1745
- case Z.Browser:
1746
- s.type === kt.Browser ? n.context.drawImage(
1764
+ case V.Browser:
1765
+ s.type === It.Browser ? n.context.drawImage(
1747
1766
  s.image,
1748
1767
  a.origin.x,
1749
1768
  a.origin.y,
@@ -1751,8 +1770,8 @@ const kt = {
1751
1770
  a.size.height
1752
1771
  ) : console.warn("Attempted to use Node Image in Browser Canvas context");
1753
1772
  break;
1754
- case Z.Node:
1755
- s.type === kt.Node ? n.context.drawImage(
1773
+ case V.Node:
1774
+ s.type === It.Node ? n.context.drawImage(
1756
1775
  s.image,
1757
1776
  a.origin.x,
1758
1777
  a.origin.y,
@@ -1766,13 +1785,13 @@ const kt = {
1766
1785
  n.context.restore();
1767
1786
  }
1768
1787
  };
1769
- function y1(n, e) {
1788
+ function w1(n, e) {
1770
1789
  const t = e();
1771
1790
  t.path.moveTo(n.startX, n.startY), t.path.lineTo(n.endX, n.endY);
1772
1791
  const o = Math.hypot(n.endX - n.startX, n.endY - n.startY);
1773
1792
  return { path: t, length: o };
1774
1793
  }
1775
- const v1 = ({
1794
+ const m1 = ({
1776
1795
  ctx: n,
1777
1796
  object: e,
1778
1797
  opacity: t,
@@ -1781,7 +1800,7 @@ const v1 = ({
1781
1800
  const i = e.opacity * t;
1782
1801
  if (i === 0 || e.drawn === 0)
1783
1802
  return;
1784
- const { path: a, length: s } = y1(e, o);
1803
+ const { path: a, length: s } = w1(e, o);
1785
1804
  vt({
1786
1805
  color: e.color,
1787
1806
  ctx: n,
@@ -1793,23 +1812,23 @@ const v1 = ({
1793
1812
  opacity: i,
1794
1813
  width: e.width
1795
1814
  });
1796
- }, w1 = ({
1815
+ }, b1 = ({
1797
1816
  ctx: n,
1798
1817
  object: e,
1799
1818
  opacity: t,
1800
1819
  renderObject: o
1801
1820
  }) => {
1802
1821
  n.context.save();
1803
- const i = pt(
1804
- W({ x: e.x, y: e.y }),
1822
+ const i = dt(
1823
+ Y({ x: e.x, y: e.y }),
1805
1824
  e.anchor,
1806
1825
  at({ width: e.width, height: e.height })
1807
1826
  );
1808
- e.preview && (n.context.lineWidth = 4, n.context.strokeStyle = St(G.RED), n.context.rect(i.origin.x, i.origin.y, i.size.width, i.size.height), n.context.stroke()), n.context.beginPath(), n.context.rect(i.origin.x, i.origin.y, i.size.width, i.size.height), n.context.closePath(), n.context.clip();
1827
+ e.preview && (n.context.lineWidth = 4, n.context.strokeStyle = Et(G.RED), n.context.rect(i.origin.x, i.origin.y, i.size.width, i.size.height), n.context.stroke()), n.context.beginPath(), n.context.rect(i.origin.x, i.origin.y, i.size.width, i.size.height), n.context.closePath(), n.context.clip();
1809
1828
  for (const a of e.objects)
1810
1829
  o(a, t * e.opacity);
1811
1830
  n.context.restore();
1812
- }, m1 = ({
1831
+ }, A1 = ({
1813
1832
  ctx: n,
1814
1833
  object: e,
1815
1834
  opacity: t,
@@ -1818,8 +1837,8 @@ const v1 = ({
1818
1837
  const i = e.opacity * t;
1819
1838
  if (i === 0 || e.drawn === 0 && e.fillColor.alpha === 0)
1820
1839
  return;
1821
- const { origin: a } = pt(
1822
- W({ x: e.x, y: e.y }),
1840
+ const { origin: a } = dt(
1841
+ Y({ x: e.x, y: e.y }),
1823
1842
  e.anchor,
1824
1843
  at({ width: e.width, height: e.height })
1825
1844
  ), s = o(e.path);
@@ -1839,7 +1858,7 @@ const v1 = ({
1839
1858
  width: e.strokeWidth
1840
1859
  }), n.context.restore();
1841
1860
  };
1842
- function b1(n, e) {
1861
+ function M1(n, e) {
1843
1862
  const t = e(), o = n.points, i = o[0];
1844
1863
  if (i === void 0)
1845
1864
  return { path: t, length: 0 };
@@ -1860,7 +1879,7 @@ function b1(n, e) {
1860
1879
  );
1861
1880
  return a += r, { path: t, length: a };
1862
1881
  }
1863
- const A1 = ({
1882
+ const L1 = ({
1864
1883
  ctx: n,
1865
1884
  object: e,
1866
1885
  opacity: t,
@@ -1869,7 +1888,7 @@ const A1 = ({
1869
1888
  const i = e.opacity * t;
1870
1889
  if (i === 0 || e.drawn === 0 && e.fillColor.alpha === 0)
1871
1890
  return;
1872
- const { path: a, length: s } = b1(e, o);
1891
+ const { path: a, length: s } = M1(e, o);
1873
1892
  wt({
1874
1893
  ctx: n,
1875
1894
  path: a,
@@ -1885,15 +1904,15 @@ const A1 = ({
1885
1904
  width: e.strokeWidth
1886
1905
  });
1887
1906
  };
1888
- function M1(n, e) {
1889
- const t = n.strokeWidth / 2, { origin: o, size: i } = pt(
1890
- W({ x: n.x, y: n.y }),
1907
+ function T1(n, e) {
1908
+ const t = n.strokeWidth / 2, { origin: o, size: i } = dt(
1909
+ Y({ x: n.x, y: n.y }),
1891
1910
  n.anchor,
1892
1911
  at({ width: n.width, height: n.height })
1893
1912
  ), a = i.width - n.strokeWidth, s = i.height - n.strokeWidth;
1894
1913
  if (a <= 0 || s <= 0)
1895
1914
  return;
1896
- const r = W({ x: o.x + t, y: o.y + t }), h = at({ width: a, height: s }), c = Math.max(
1915
+ const r = Y({ x: o.x + t, y: o.y + t }), h = at({ width: a, height: s }), c = Math.max(
1897
1916
  0,
1898
1917
  Math.min(n.cornerRadius - t, Math.min(a, s) / 2)
1899
1918
  );
@@ -1902,9 +1921,9 @@ function M1(n, e) {
1902
1921
  const u = e();
1903
1922
  return u.path.moveTo(r.x, r.y), u.path.lineTo(r.x + a, r.y), u.path.lineTo(r.x + a, r.y + s), u.path.lineTo(r.x, r.y + s), u.path.closePath(), u;
1904
1923
  }
1905
- function L1(n, e) {
1906
- const { origin: t, size: o } = pt(
1907
- W({ x: n.x, y: n.y }),
1924
+ function C1(n, e) {
1925
+ const { origin: t, size: o } = dt(
1926
+ Y({ x: n.x, y: n.y }),
1908
1927
  n.anchor,
1909
1928
  at({ width: n.width, height: n.height })
1910
1929
  ), i = Math.max(
@@ -1920,7 +1939,7 @@ function L1(n, e) {
1920
1939
  return { path: s, length: r };
1921
1940
  }
1922
1941
  }
1923
- const T1 = ({
1942
+ const P1 = ({
1924
1943
  ctx: n,
1925
1944
  object: e,
1926
1945
  opacity: t,
@@ -1929,10 +1948,10 @@ const T1 = ({
1929
1948
  const i = e.opacity * t;
1930
1949
  if (i === 0 || e.drawn === 0 && e.fillColor.alpha === 0)
1931
1950
  return;
1932
- const { path: a, length: s } = L1(e, o);
1951
+ const { path: a, length: s } = C1(e, o);
1933
1952
  if (i < 1 && e.strokeWidth > 0) {
1934
- const r = M1(e, o);
1935
- r !== void 0 && (n.context.save(), K0(n, r), wt({ ctx: n, path: a, color: e.fillColor, opacity: i }), n.context.restore());
1953
+ const r = T1(e, o);
1954
+ r !== void 0 && (n.context.save(), Q0(n, r), wt({ ctx: n, path: a, color: e.fillColor, opacity: i }), n.context.restore());
1936
1955
  } else
1937
1956
  wt({ ctx: n, path: a, color: e.fillColor, opacity: i });
1938
1957
  vt({
@@ -1944,7 +1963,7 @@ const T1 = ({
1944
1963
  opacity: i,
1945
1964
  width: e.strokeWidth
1946
1965
  });
1947
- }, C1 = ({
1966
+ }, S1 = ({
1948
1967
  ctx: n,
1949
1968
  imageById: e,
1950
1969
  object: t,
@@ -1956,14 +1975,14 @@ const T1 = ({
1956
1975
  const a = e[t.svg];
1957
1976
  if (a === void 0)
1958
1977
  return;
1959
- const s = pt(
1960
- W({ x: t.x, y: t.y }),
1978
+ const s = dt(
1979
+ Y({ x: t.x, y: t.y }),
1961
1980
  t.anchor,
1962
1981
  at({ width: t.width, height: t.height })
1963
1982
  );
1964
1983
  switch (n.context.save(), n.context.globalAlpha = i, n.type) {
1965
- case Z.Browser:
1966
- a.type === kt.Browser && n.context.drawImage(
1984
+ case V.Browser:
1985
+ a.type === It.Browser && n.context.drawImage(
1967
1986
  a.image,
1968
1987
  s.origin.x,
1969
1988
  s.origin.y,
@@ -1971,8 +1990,8 @@ const T1 = ({
1971
1990
  s.size.height
1972
1991
  );
1973
1992
  break;
1974
- case Z.Node:
1975
- a.type === kt.Node && n.context.drawImage(
1993
+ case V.Node:
1994
+ a.type === It.Node && n.context.drawImage(
1976
1995
  a.image,
1977
1996
  s.origin.x,
1978
1997
  s.origin.y,
@@ -1985,7 +2004,7 @@ const T1 = ({
1985
2004
  }
1986
2005
  n.context.restore();
1987
2006
  };
1988
- function P1(n) {
2007
+ function E1(n) {
1989
2008
  return {
1990
2009
  color: n.color,
1991
2010
  fontFamily: n.fontFamily,
@@ -1997,7 +2016,7 @@ function P1(n) {
1997
2016
  superscript: n.superscript
1998
2017
  };
1999
2018
  }
2000
- function E1(n, e = 1) {
2019
+ function I1(n, e = 1) {
2001
2020
  const t = Math.max(...n.map((a) => a.reduce((s, r) => s + r.width, 0)));
2002
2021
  let o = 0, i = 0;
2003
2022
  for (let a = 0; a < n.length; a++) {
@@ -2012,8 +2031,8 @@ function E1(n, e = 1) {
2012
2031
  width: t
2013
2032
  };
2014
2033
  }
2015
- const S1 = 0.7, k1 = 0.3;
2016
- function Q0(n) {
2034
+ const k1 = 0.7, _1 = 0.3;
2035
+ function J0(n) {
2017
2036
  const e = n.superscript, t = n.subscript && !e;
2018
2037
  return !e && !t ? {
2019
2038
  baselineShift: 0,
@@ -2021,32 +2040,32 @@ function Q0(n) {
2021
2040
  isSubscript: !1,
2022
2041
  isSuperscript: !1
2023
2042
  } : {
2024
- baselineShift: n.fontSize * k1 * (e ? -1 : 1),
2025
- fontSize: n.fontSize * S1,
2043
+ baselineShift: n.fontSize * _1 * (e ? -1 : 1),
2044
+ fontSize: n.fontSize * k1,
2026
2045
  isSubscript: t,
2027
2046
  isSuperscript: e
2028
2047
  };
2029
2048
  }
2030
- function I1(n) {
2049
+ function O1(n) {
2031
2050
  return {
2032
2051
  width: n.width,
2033
2052
  height: n.fontBoundingBoxAscent
2034
2053
  };
2035
2054
  }
2036
- function J0(n, e, t = 1) {
2037
- const o = Q0(e);
2038
- n.context.fillStyle = l0(e.color, t), n.context.font = `${e.fontStyle} ${e.fontWeight} ${o.fontSize}px ${e.fontFamily}`, n.type === Z.Browser ? n.context.textRendering = e.ligatures ? "optimizeLegibility" : "optimizeSpeed" : n.context.fontVariant = e.ligatures ? "common-ligatures" : "no-common-ligatures";
2055
+ function te(n, e, t = 1) {
2056
+ const o = J0(e);
2057
+ n.context.fillStyle = l0(e.color, t), n.context.font = `${e.fontStyle} ${e.fontWeight} ${o.fontSize}px ${e.fontFamily}`, n.type === V.Browser ? n.context.textRendering = e.ligatures ? "optimizeLegibility" : "optimizeSpeed" : n.context.fontVariant = e.ligatures ? "common-ligatures" : "no-common-ligatures";
2039
2058
  }
2040
- function _1(n, e, t) {
2059
+ function N1(n, e, t) {
2041
2060
  const o = [];
2042
2061
  for (const i of n) {
2043
2062
  const a = [];
2044
2063
  for (const s of i) {
2045
2064
  const { text: r, ...h } = s, c = { ...e, ...h };
2046
- J0(t, c);
2047
- const u = t.context.measureText(r), p = I1(u), { baselineShift: l } = Q0(c), f = p.height + Math.max(0, -l), v = Math.max(0, l);
2065
+ te(t, c);
2066
+ const u = t.context.measureText(r), d = O1(u), { baselineShift: l } = J0(c), f = d.height + Math.max(0, -l), v = Math.max(0, l);
2048
2067
  a.push({
2049
- ...p,
2068
+ ...d,
2050
2069
  baselineShift: l,
2051
2070
  bottom: v,
2052
2071
  height: f + v,
@@ -2057,19 +2076,19 @@ function _1(n, e, t) {
2057
2076
  }
2058
2077
  return o;
2059
2078
  }
2060
- const O1 = ({ ctx: n, object: e, opacity: t }) => {
2079
+ const R1 = ({ ctx: n, object: e, opacity: t }) => {
2061
2080
  const o = e.opacity * t;
2062
2081
  if (o === 0)
2063
2082
  return;
2064
- const { length: i } = e, a = U0(e.text), s = P1(e), r = _1(a, s, n), h = E1(r, e.lineSpacing), c = pt(W({ x: e.x, y: e.y }), e.anchor, h);
2065
- let u = c.origin.x, p = c.origin.y, l = 0, f = 0;
2083
+ const { length: i } = e, a = $0(e.text), s = E1(e), r = N1(a, s, n), h = I1(r, e.lineSpacing), c = dt(Y({ x: e.x, y: e.y }), e.anchor, h);
2084
+ let u = c.origin.x, d = c.origin.y, l = 0, f = 0;
2066
2085
  for (let v = 0; v < a.length; v++) {
2067
2086
  const y = a[v], M = r[v];
2068
2087
  if (y == null || M == null) {
2069
2088
  console.error("Could not determine text units or sizes for line");
2070
2089
  continue;
2071
2090
  }
2072
- const P = M.reduce((k, F) => k + F.width, 0), E = M.length === 0 ? f : M.reduce((k, F) => Math.max(k, F.top), 0), L = M.length === 0 ? 0 : M.reduce((k, F) => Math.max(k, F.bottom), 0), S = E + L;
2091
+ const P = M.reduce((I, F) => I + F.width, 0), S = M.length === 0 ? f : M.reduce((I, F) => Math.max(I, F.top), 0), L = M.length === 0 ? 0 : M.reduce((I, F) => Math.max(I, F.bottom), 0), E = S + L;
2073
2092
  switch (e.alignment) {
2074
2093
  case xt.LEFT:
2075
2094
  u = c.origin.x;
@@ -2084,52 +2103,52 @@ const O1 = ({ ctx: n, object: e, opacity: t }) => {
2084
2103
  st(e.alignment);
2085
2104
  break;
2086
2105
  }
2087
- p += f * (e.lineSpacing - 1);
2088
- const T = p + E;
2089
- f = S;
2090
- for (let k = 0; k < y.length && !(i !== null && l >= i); k++) {
2091
- const F = y[k], X = M[k];
2106
+ d += f * (e.lineSpacing - 1);
2107
+ const T = d + S;
2108
+ f = E;
2109
+ for (let I = 0; I < y.length && !(i !== null && l >= i); I++) {
2110
+ const F = y[I], X = M[I];
2092
2111
  if (F == null || X == null) {
2093
2112
  console.error("Could not determine text unit or size for unit");
2094
2113
  continue;
2095
2114
  }
2096
- const { text: z, ...Y } = F;
2115
+ const { text: z, ...W } = F;
2097
2116
  let tt;
2098
2117
  if (i !== null && l + z.length > i) {
2099
- const K = i - l;
2100
- tt = z.slice(0, K);
2118
+ const Z = i - l;
2119
+ tt = z.slice(0, Z);
2101
2120
  }
2102
2121
  const et = tt ?? z;
2103
2122
  l += et.length;
2104
- const nt = { ...s, ...Y };
2105
- J0(n, nt, o), n.context.fillText(et, u, T + X.baselineShift), u += X.width;
2123
+ const nt = { ...s, ...W };
2124
+ te(n, nt, o), n.context.fillText(et, u, T + X.baselineShift), u += X.width;
2106
2125
  }
2107
- p += S;
2108
- }
2109
- }, N1 = {
2110
- [U.ARROW]: c1,
2111
- [U.CIRCLE]: g1,
2112
- [U.GROUP]: d1,
2113
- [U.IMAGE]: x1,
2114
- [U.LINE]: v1,
2115
- [U.MASK]: w1,
2116
- [U.PATH]: m1,
2117
- [U.POLYGON]: A1,
2118
- [U.RECTANGLE]: T1,
2126
+ d += E;
2127
+ }
2128
+ }, F1 = {
2129
+ [U.ARROW]: f1,
2130
+ [U.CIRCLE]: p1,
2131
+ [U.GROUP]: y1,
2132
+ [U.IMAGE]: v1,
2133
+ [U.LINE]: m1,
2134
+ [U.MASK]: b1,
2135
+ [U.PATH]: A1,
2136
+ [U.POLYGON]: L1,
2137
+ [U.RECTANGLE]: P1,
2119
2138
  [U.SLIDE_OBJECT]: () => {
2120
2139
  },
2121
- [U.SVG]: C1,
2122
- [U.TEXT]: O1
2140
+ [U.SVG]: S1,
2141
+ [U.TEXT]: R1
2123
2142
  };
2124
- function R1(n) {
2143
+ function B1(n) {
2125
2144
  const e = document.createElementNS("http://www.w3.org/2000/svg", "svg");
2126
2145
  return e.setAttribute("viewBox", `0 0 ${n.width} ${n.height}`), e.style.backgroundColor = "transparent", e.style.position = "absolute", e.style.width = "100%", e;
2127
2146
  }
2128
- function F1(n, e) {
2147
+ function D1(n, e) {
2129
2148
  if (n === null)
2130
2149
  return null;
2131
- const t = pt(
2132
- W({ x: e.x, y: e.y }),
2150
+ const t = dt(
2151
+ Y({ x: e.x, y: e.y }),
2133
2152
  e.anchor,
2134
2153
  at({ width: e.width, height: e.height })
2135
2154
  ), o = document.createElementNS("http://www.w3.org/2000/svg", "foreignObject");
@@ -2145,20 +2164,20 @@ function F1(n, e) {
2145
2164
  a !== null && a(), n.removeChild(o);
2146
2165
  };
2147
2166
  }
2148
- async function B1(n) {
2167
+ async function q1(n) {
2149
2168
  if (Object.keys(n).length === 0)
2150
2169
  return {};
2151
2170
  const e = {}, t = (i) => new Promise((a, s) => {
2152
2171
  const r = new Image();
2153
2172
  if (r.onload = () => a(r), r.onerror = (c) => s(c), i.includes("</svg>")) {
2154
- const c = i.replace(/<\?xml[^?]*\?>\s*/g, ""), u = new Blob([c], { type: "image/svg+xml;charset=utf-8" }), p = URL.createObjectURL(u);
2155
- r.src = p;
2173
+ const c = i.replace(/<\?xml[^?]*\?>\s*/g, ""), u = new Blob([c], { type: "image/svg+xml;charset=utf-8" }), d = URL.createObjectURL(u);
2174
+ r.src = d;
2156
2175
  } else
2157
2176
  r.src = i;
2158
2177
  }), o = Object.entries(n).map(async ([i, a]) => {
2159
2178
  const s = await t(a);
2160
2179
  e[i] = {
2161
- type: kt.Browser,
2180
+ type: It.Browser,
2162
2181
  image: s
2163
2182
  };
2164
2183
  });
@@ -2169,57 +2188,57 @@ async function B1(n) {
2169
2188
  }
2170
2189
  return e;
2171
2190
  }
2172
- class Zn {
2191
+ class Qn {
2173
2192
  constructor(e) {
2174
2193
  this.navigator = null;
2175
2194
  const { objectRenderers: t, scale: o = 1, ...i } = e;
2176
2195
  this.props = {
2177
- presentation: Ve(),
2196
+ presentation: Ze(),
2178
2197
  element: document.body,
2179
2198
  objectRenderers: {
2180
- ...N1,
2199
+ ...F1,
2181
2200
  ...t
2182
2201
  },
2183
2202
  cacheDurationMinutes: 15,
2184
- scale: D1(o),
2203
+ scale: z1(o),
2185
2204
  ...i
2186
- }, this.state = { ...T0 };
2205
+ }, this.state = { ...C0 };
2187
2206
  }
2188
2207
  /** Starts the presentation. */
2189
2208
  async present() {
2190
- const { presentation: e, element: t, scale: o } = this.props, i = a1(e.size), a = R1(e.size);
2209
+ const { presentation: e, element: t, scale: o } = this.props, i = l1(e.size), a = B1(e.size);
2191
2210
  a.style.transformOrigin = "center center", a.style.transform = `scale(${o})`, this.state = {
2192
- ...T0,
2193
- imageById: await B1({
2211
+ ...C0,
2212
+ imageById: await q1({
2194
2213
  ...e.resources.images,
2195
- ...r1(e)
2214
+ ...o1(e)
2196
2215
  }),
2197
2216
  canvas: i,
2198
2217
  extrasContainer: a
2199
2218
  };
2200
- const s = Ke(e, t), r = V0(t), h = (p, l) => {
2219
+ const s = Je(e, t), r = V0(t), h = (d, l) => {
2201
2220
  this.state.shortcutState.shortcuts.b = {
2202
2221
  slideIndex: this.state.slideIndex,
2203
2222
  buildIndex: this.state.buildIndex
2204
- }, this.renderSlide(p ?? this.state.slideIndex, l);
2205
- }, c = (p = !1) => {
2206
- r && (this.navigator = He({
2223
+ }, this.renderSlide(d ?? this.state.slideIndex, l);
2224
+ }, c = (d = !1) => {
2225
+ r && (this.navigator = $e({
2207
2226
  presentation: e,
2208
2227
  shortcutState: this.state.shortcutState,
2209
2228
  onNavigateToSlide: (l) => this.renderSlide(l),
2210
2229
  onRenderSlide: h,
2211
2230
  onNext: (l) => this.next(l),
2212
2231
  onPrevious: (l) => this.previous(l),
2213
- forceRefresh: p
2232
+ forceRefresh: d
2214
2233
  }), this.updateNavigator());
2215
2234
  };
2216
- X0(
2235
+ G0(
2217
2236
  e,
2218
2237
  s,
2219
2238
  this.state.shortcutState,
2220
2239
  {
2221
- onNext: (p) => this.next(p),
2222
- onPrevious: (p) => this.previous(p),
2240
+ onNext: (d) => this.next(d),
2241
+ onPrevious: (d) => this.previous(d),
2223
2242
  onRenderSlide: h,
2224
2243
  onShowNavigator: () => c()
2225
2244
  },
@@ -2228,12 +2247,12 @@ class Zn {
2228
2247
  keyEventTarget: r ? window : s
2229
2248
  }
2230
2249
  ), t.replaceChildren(), s.appendChild(i), s.appendChild(a), t.appendChild(s);
2231
- const u = i1(e, this.props.cacheDurationMinutes);
2232
- u !== null ? this.renderSlide(u.slideIndex, u.buildIndex) : this.renderSlide(0), qe() && c(!0);
2250
+ const u = s1(e, this.props.cacheDurationMinutes);
2251
+ u !== null ? this.renderSlide(u.slideIndex, u.buildIndex) : this.renderSlide(0), ze() && c(!0);
2233
2252
  }
2234
2253
  renderSlide(e, t = 0, o = null) {
2235
2254
  const { presentation: i } = this.props, { canvas: a } = this.state, s = this.state.slideIndex !== e;
2236
- this.state.slideIndex = e, this.state.buildIndex = t, o === null && o1({ title: i.title, slideIndex: e, buildIndex: t });
2255
+ this.state.slideIndex = e, this.state.buildIndex = t, o === null && a1({ title: i.title, slideIndex: e, buildIndex: t });
2237
2256
  const r = i.slides[e];
2238
2257
  if (!(r === void 0 || a === null)) {
2239
2258
  if (s || this.state.mountedExtrasCleanups.length === 0 && r.extras.length > 0) {
@@ -2241,7 +2260,7 @@ class Zn {
2241
2260
  h();
2242
2261
  this.state.mountedExtrasCleanups = [];
2243
2262
  for (const h of r.extras) {
2244
- const c = F1(this.state.extrasContainer, h);
2263
+ const c = D1(this.state.extrasContainer, h);
2245
2264
  c !== null && this.state.mountedExtrasCleanups.push(c);
2246
2265
  }
2247
2266
  }
@@ -2255,28 +2274,28 @@ class Zn {
2255
2274
  if (c === null)
2256
2275
  return;
2257
2276
  const u = {
2258
- type: Z.Browser,
2277
+ type: V.Browser,
2259
2278
  context: c
2260
2279
  };
2261
- s1(e, u);
2262
- const p = r.slides[t];
2263
- if (p === void 0)
2280
+ h1(e, u);
2281
+ const d = r.slides[t];
2282
+ if (d === void 0)
2264
2283
  return;
2265
- const l = n1({
2266
- slide: p,
2284
+ const l = i1({
2285
+ slide: d,
2267
2286
  buildIndex: o,
2268
2287
  buildTime: i
2269
2288
  });
2270
2289
  u.context.fillStyle = l0(r.backgroundColor), u.context.fillRect(0, 0, e.width, e.height);
2271
2290
  function f(y, M) {
2272
- const P = s[y.objectType], E = l.get(y);
2273
- P === void 0 || E === void 0 || P({
2291
+ const P = s[y.objectType], S = l.get(y);
2292
+ P === void 0 || S === void 0 || P({
2274
2293
  ctx: u,
2275
2294
  imageById: h,
2276
- object: E,
2295
+ object: S,
2277
2296
  opacity: M,
2278
2297
  renderObject: f,
2279
- createPath2D: h1
2298
+ createPath2D: c1
2280
2299
  });
2281
2300
  }
2282
2301
  const v = a !== 1;
@@ -2284,7 +2303,7 @@ class Zn {
2284
2303
  e.width * (1 - a) / 2,
2285
2304
  e.height * (1 - a) / 2
2286
2305
  ), u.context.scale(a, a));
2287
- for (const y of p.objects)
2306
+ for (const y of d.objects)
2288
2307
  f(y, 1);
2289
2308
  v && u.context.restore();
2290
2309
  }
@@ -2317,8 +2336,8 @@ class Zn {
2317
2336
  return;
2318
2337
  const r = s.animations[a];
2319
2338
  if (r !== void 0 && !e) {
2320
- const h = performance.now(), c = Ze(r), u = (p) => {
2321
- const l = p - h;
2339
+ const h = performance.now(), c = Qe(r), u = (d) => {
2340
+ const l = d - h;
2322
2341
  l < c ? (this.renderSlide(i, a + 1, l), this.state.currentAnimationId = requestAnimationFrame(u)) : this.renderSlide(i, a + 1, null);
2323
2342
  };
2324
2343
  this.state.currentAnimationId = requestAnimationFrame(u);
@@ -2347,12 +2366,12 @@ class Zn {
2347
2366
  this.props.element.style.cursor = "none", (t = (e = this.state.canvas) == null ? void 0 : e.parentElement) == null || t.style.setProperty("cursor", "none");
2348
2367
  }
2349
2368
  }
2350
- function D1(n) {
2369
+ function z1(n) {
2351
2370
  return n <= 0 || n > 1 ? (console.warn(
2352
2371
  `BrowserCanvasRenderer scale must be positive and no greater than 1. Received ${n}; using 1 instead.`
2353
2372
  ), 1) : n;
2354
2373
  }
2355
- function Kn(n = 1e3) {
2374
+ function Jn(n = 1e3) {
2356
2375
  return {
2357
2376
  type: ft.PAUSE,
2358
2377
  isKey: !1,
@@ -2360,7 +2379,7 @@ function Kn(n = 1e3) {
2360
2379
  shortcut: null
2361
2380
  };
2362
2381
  }
2363
- function Qn(n = null) {
2382
+ function t2(n = null) {
2364
2383
  return {
2365
2384
  objects: [],
2366
2385
  animations: [],
@@ -2373,32 +2392,32 @@ function Qn(n = null) {
2373
2392
  ...n
2374
2393
  };
2375
2394
  }
2376
- function Jn(n, e = {}) {
2395
+ function e2(n, e = {}) {
2377
2396
  return {
2378
2397
  ...e,
2379
2398
  text: n
2380
2399
  };
2381
2400
  }
2382
- function t2(n = G.BLACK) {
2401
+ function n2(n = G.BLACK) {
2383
2402
  return { ...n, alpha: 1 };
2384
2403
  }
2385
- function q1(n) {
2404
+ function j1(n) {
2386
2405
  for (var e = -1, t = n.length, o, i = n[t - 1], a = 0; ++e < t; )
2387
2406
  o = i, i = n[e], a += o[1] * i[0] - o[0] * i[1];
2388
2407
  return a / 2;
2389
2408
  }
2390
- function z1(n) {
2409
+ function H1(n) {
2391
2410
  for (var e = -1, t = n.length, o = n[t - 1], i, a, s = o[0], r = o[1], h = 0; ++e < t; )
2392
2411
  i = s, a = r, o = n[e], s = o[0], r = o[1], i -= s, a -= r, h += Math.sqrt(i * i + a * a);
2393
2412
  return h;
2394
2413
  }
2395
- function j1(n) {
2414
+ function U1(n) {
2396
2415
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
2397
2416
  }
2398
- var Ht, C0;
2399
- function H1() {
2400
- if (C0) return Ht;
2401
- C0 = 1;
2417
+ var Ht, P0;
2418
+ function $1() {
2419
+ if (P0) return Ht;
2420
+ P0 = 1;
2402
2421
  var n = { a: 7, c: 6, h: 1, l: 2, m: 2, r: 4, q: 4, s: 4, t: 2, v: 1, z: 0 }, e = [
2403
2422
  5760,
2404
2423
  6158,
@@ -2472,7 +2491,7 @@ function H1() {
2472
2491
  f.err = "SvgPath: arc flag can be 0 or 1 only (at pos " + f.index + ")";
2473
2492
  }
2474
2493
  function u(f) {
2475
- var v = f.index, y = v, M = f.max, P = !1, E = !1, L = !1, S = !1, T;
2494
+ var v = f.index, y = v, M = f.max, P = !1, S = !1, L = !1, E = !1, T;
2476
2495
  if (y >= M) {
2477
2496
  f.err = "SvgPath: missed param (at pos " + y + ")";
2478
2497
  return;
@@ -2487,16 +2506,16 @@ function H1() {
2487
2506
  return;
2488
2507
  }
2489
2508
  for (; y < M && a(f.path.charCodeAt(y)); )
2490
- y++, E = !0;
2509
+ y++, S = !0;
2491
2510
  T = y < M ? f.path.charCodeAt(y) : 0;
2492
2511
  }
2493
2512
  if (T === 46) {
2494
- for (S = !0, y++; a(f.path.charCodeAt(y)); )
2513
+ for (E = !0, y++; a(f.path.charCodeAt(y)); )
2495
2514
  y++, L = !0;
2496
2515
  T = y < M ? f.path.charCodeAt(y) : 0;
2497
2516
  }
2498
2517
  if (T === 101 || T === 69) {
2499
- if (S && !E && !L) {
2518
+ if (E && !S && !L) {
2500
2519
  f.err = "SvgPath: invalid float exponent (at pos " + y + ")";
2501
2520
  return;
2502
2521
  }
@@ -2510,7 +2529,7 @@ function H1() {
2510
2529
  }
2511
2530
  f.index = y, f.param = parseFloat(f.path.slice(v, y)) + 0;
2512
2531
  }
2513
- function p(f) {
2532
+ function d(f) {
2514
2533
  var v, y;
2515
2534
  v = f.path[f.segmentStart], y = v.toLowerCase();
2516
2535
  var M = f.data;
@@ -2521,19 +2540,19 @@ function H1() {
2521
2540
  ;
2522
2541
  }
2523
2542
  function l(f) {
2524
- var v = f.max, y, M, P, E, L;
2543
+ var v = f.max, y, M, P, S, L;
2525
2544
  if (f.segmentStart = f.index, y = f.path.charCodeAt(f.index), M = i(y), !o(y)) {
2526
2545
  f.err = "SvgPath: bad command " + f.path[f.index] + " (at pos " + f.index + ")";
2527
2546
  return;
2528
2547
  }
2529
- if (E = n[f.path[f.index].toLowerCase()], f.index++, h(f), f.data = [], !E) {
2530
- p(f);
2548
+ if (S = n[f.path[f.index].toLowerCase()], f.index++, h(f), f.data = [], !S) {
2549
+ d(f);
2531
2550
  return;
2532
2551
  }
2533
2552
  for (P = !1; ; ) {
2534
- for (L = E; L > 0; L--) {
2553
+ for (L = S; L > 0; L--) {
2535
2554
  if (M && (L === 3 || L === 4) ? c(f) : u(f), f.err.length) {
2536
- p(f);
2555
+ d(f);
2537
2556
  return;
2538
2557
  }
2539
2558
  f.data.push(f.param), h(f), P = !1, f.index < v && f.path.charCodeAt(f.index) === 44 && (f.index++, h(f), P = !0);
@@ -2541,7 +2560,7 @@ function H1() {
2541
2560
  if (!P && (f.index >= f.max || !s(f.path.charCodeAt(f.index))))
2542
2561
  break;
2543
2562
  }
2544
- p(f);
2563
+ d(f);
2545
2564
  }
2546
2565
  return Ht = function(v) {
2547
2566
  var y = new r(v), M = y.max;
@@ -2553,10 +2572,10 @@ function H1() {
2553
2572
  };
2554
2573
  }, Ht;
2555
2574
  }
2556
- var Ut, P0;
2557
- function te() {
2558
- if (P0) return Ut;
2559
- P0 = 1;
2575
+ var Ut, S0;
2576
+ function ee() {
2577
+ if (S0) return Ut;
2578
+ S0 = 1;
2560
2579
  function n(t, o) {
2561
2580
  return [
2562
2581
  t[0] * o[0] + t[2] * o[1],
@@ -2604,10 +2623,10 @@ function te() {
2604
2623
  }, Ut = e, Ut;
2605
2624
  }
2606
2625
  var $t, E0;
2607
- function U1() {
2626
+ function W1() {
2608
2627
  if (E0) return $t;
2609
2628
  E0 = 1;
2610
- var n = te(), e = {
2629
+ var n = ee(), e = {
2611
2630
  matrix: !0,
2612
2631
  scale: !0,
2613
2632
  rotate: !0,
@@ -2649,52 +2668,52 @@ function U1() {
2649
2668
  }), s;
2650
2669
  }, $t;
2651
2670
  }
2652
- var Yt, S0;
2653
- function $1() {
2654
- if (S0) return Yt;
2655
- S0 = 1;
2671
+ var Wt, I0;
2672
+ function Y1() {
2673
+ if (I0) return Wt;
2674
+ I0 = 1;
2656
2675
  var n = Math.PI * 2;
2657
2676
  function e(i, a, s, r) {
2658
2677
  var h = i * r - a * s < 0 ? -1 : 1, c = i * s + a * r;
2659
2678
  return c > 1 && (c = 1), c < -1 && (c = -1), h * Math.acos(c);
2660
2679
  }
2661
- function t(i, a, s, r, h, c, u, p, l, f) {
2662
- var v = f * (i - s) / 2 + l * (a - r) / 2, y = -l * (i - s) / 2 + f * (a - r) / 2, M = u * u, P = p * p, E = v * v, L = y * y, S = M * P - M * L - P * E;
2663
- S < 0 && (S = 0), S /= M * L + P * E, S = Math.sqrt(S) * (h === c ? -1 : 1);
2664
- var T = S * u / p * y, k = S * -p / u * v, F = f * T - l * k + (i + s) / 2, X = l * T + f * k + (a + r) / 2, z = (v - T) / u, Y = (y - k) / p, tt = (-v - T) / u, et = (-y - k) / p, nt = e(1, 0, z, Y), K = e(z, Y, tt, et);
2665
- return c === 0 && K > 0 && (K -= n), c === 1 && K < 0 && (K += n), [F, X, nt, K];
2680
+ function t(i, a, s, r, h, c, u, d, l, f) {
2681
+ var v = f * (i - s) / 2 + l * (a - r) / 2, y = -l * (i - s) / 2 + f * (a - r) / 2, M = u * u, P = d * d, S = v * v, L = y * y, E = M * P - M * L - P * S;
2682
+ E < 0 && (E = 0), E /= M * L + P * S, E = Math.sqrt(E) * (h === c ? -1 : 1);
2683
+ var T = E * u / d * y, I = E * -d / u * v, F = f * T - l * I + (i + s) / 2, X = l * T + f * I + (a + r) / 2, z = (v - T) / u, W = (y - I) / d, tt = (-v - T) / u, et = (-y - I) / d, nt = e(1, 0, z, W), Z = e(z, W, tt, et);
2684
+ return c === 0 && Z > 0 && (Z -= n), c === 1 && Z < 0 && (Z += n), [F, X, nt, Z];
2666
2685
  }
2667
2686
  function o(i, a) {
2668
2687
  var s = 1.3333333333333333 * Math.tan(a / 4), r = Math.cos(i), h = Math.sin(i), c = Math.cos(i + a), u = Math.sin(i + a);
2669
2688
  return [r, h, r - h * s, h + r * s, c + u * s, u - c * s, c, u];
2670
2689
  }
2671
- return Yt = function(a, s, r, h, c, u, p, l, f) {
2690
+ return Wt = function(a, s, r, h, c, u, d, l, f) {
2672
2691
  var v = Math.sin(f * n / 360), y = Math.cos(f * n / 360), M = y * (a - r) / 2 + v * (s - h) / 2, P = -v * (a - r) / 2 + y * (s - h) / 2;
2673
2692
  if (M === 0 && P === 0)
2674
2693
  return [];
2675
- if (p === 0 || l === 0)
2694
+ if (d === 0 || l === 0)
2676
2695
  return [];
2677
- p = Math.abs(p), l = Math.abs(l);
2678
- var E = M * M / (p * p) + P * P / (l * l);
2679
- E > 1 && (p *= Math.sqrt(E), l *= Math.sqrt(E));
2680
- var L = t(a, s, r, h, c, u, p, l, v, y), S = [], T = L[2], k = L[3], F = Math.max(Math.ceil(Math.abs(k) / (n / 4)), 1);
2681
- k /= F;
2696
+ d = Math.abs(d), l = Math.abs(l);
2697
+ var S = M * M / (d * d) + P * P / (l * l);
2698
+ S > 1 && (d *= Math.sqrt(S), l *= Math.sqrt(S));
2699
+ var L = t(a, s, r, h, c, u, d, l, v, y), E = [], T = L[2], I = L[3], F = Math.max(Math.ceil(Math.abs(I) / (n / 4)), 1);
2700
+ I /= F;
2682
2701
  for (var X = 0; X < F; X++)
2683
- S.push(o(T, k)), T += k;
2684
- return S.map(function(z) {
2685
- for (var Y = 0; Y < z.length; Y += 2) {
2686
- var tt = z[Y + 0], et = z[Y + 1];
2687
- tt *= p, et *= l;
2688
- var nt = y * tt - v * et, K = v * tt + y * et;
2689
- z[Y + 0] = nt + L[0], z[Y + 1] = K + L[1];
2702
+ E.push(o(T, I)), T += I;
2703
+ return E.map(function(z) {
2704
+ for (var W = 0; W < z.length; W += 2) {
2705
+ var tt = z[W + 0], et = z[W + 1];
2706
+ tt *= d, et *= l;
2707
+ var nt = y * tt - v * et, Z = v * tt + y * et;
2708
+ z[W + 0] = nt + L[0], z[W + 1] = Z + L[1];
2690
2709
  }
2691
2710
  return z;
2692
2711
  });
2693
- }, Yt;
2712
+ }, Wt;
2694
2713
  }
2695
- var Wt, k0;
2696
- function Y1() {
2697
- if (k0) return Wt;
2714
+ var Yt, k0;
2715
+ function X1() {
2716
+ if (k0) return Yt;
2698
2717
  k0 = 1;
2699
2718
  var n = 1e-10, e = Math.PI / 180;
2700
2719
  function t(o, i, a) {
@@ -2711,21 +2730,21 @@ function Y1() {
2711
2730
  ], r = s[0] * s[0] + s[2] * s[2], h = s[1] * s[1] + s[3] * s[3], c = ((s[0] - s[3]) * (s[0] - s[3]) + (s[2] + s[1]) * (s[2] + s[1])) * ((s[0] + s[3]) * (s[0] + s[3]) + (s[2] - s[1]) * (s[2] - s[1])), u = (r + h) / 2;
2712
2731
  if (c < n * u)
2713
2732
  return this.rx = this.ry = Math.sqrt(u), this.ax = 0, this;
2714
- var p = s[0] * s[1] + s[2] * s[3];
2733
+ var d = s[0] * s[1] + s[2] * s[3];
2715
2734
  c = Math.sqrt(c);
2716
2735
  var l = u + c / 2, f = u - c / 2;
2717
- return this.ax = Math.abs(p) < n && Math.abs(l - h) < n ? 90 : Math.atan(
2718
- Math.abs(p) > Math.abs(l - h) ? (l - r) / p : p / (l - h)
2736
+ return this.ax = Math.abs(d) < n && Math.abs(l - h) < n ? 90 : Math.atan(
2737
+ Math.abs(d) > Math.abs(l - h) ? (l - r) / d : d / (l - h)
2719
2738
  ) * 180 / Math.PI, this.ax >= 0 ? (this.rx = Math.sqrt(l), this.ry = Math.sqrt(f)) : (this.ax += 90, this.rx = Math.sqrt(f), this.ry = Math.sqrt(l)), this;
2720
2739
  }, t.prototype.isDegenerate = function() {
2721
2740
  return this.rx < n * this.ry || this.ry < n * this.rx;
2722
- }, Wt = t, Wt;
2741
+ }, Yt = t, Yt;
2723
2742
  }
2724
- var Xt, I0;
2725
- function W1() {
2726
- if (I0) return Xt;
2727
- I0 = 1;
2728
- var n = H1(), e = U1(), t = te(), o = $1(), i = Y1();
2743
+ var Xt, _0;
2744
+ function G1() {
2745
+ if (_0) return Xt;
2746
+ _0 = 1;
2747
+ var n = $1(), e = W1(), t = ee(), o = Y1(), i = X1();
2729
2748
  function a(s) {
2730
2749
  if (!(this instanceof a))
2731
2750
  return new a(s);
@@ -2745,7 +2764,7 @@ function W1() {
2745
2764
  throw new Error("SvgPath.from: invalid param type " + s);
2746
2765
  }, a.prototype.__matrix = function(s) {
2747
2766
  var r = this, h;
2748
- s.queue.length && this.iterate(function(c, u, p, l) {
2767
+ s.queue.length && this.iterate(function(c, u, d, l) {
2749
2768
  var f, v, y, M;
2750
2769
  switch (c[0]) {
2751
2770
  // Process 'assymetric' commands separately
@@ -2753,22 +2772,22 @@ function W1() {
2753
2772
  f = s.calc(0, c[1], !0), v = f[0] === 0 ? ["v", f[1]] : ["l", f[0], f[1]];
2754
2773
  break;
2755
2774
  case "V":
2756
- f = s.calc(p, c[1], !1), v = f[0] === s.calc(p, l, !1)[0] ? ["V", f[1]] : ["L", f[0], f[1]];
2775
+ f = s.calc(d, c[1], !1), v = f[0] === s.calc(d, l, !1)[0] ? ["V", f[1]] : ["L", f[0], f[1]];
2757
2776
  break;
2758
2777
  case "h":
2759
2778
  f = s.calc(c[1], 0, !0), v = f[1] === 0 ? ["h", f[0]] : ["l", f[0], f[1]];
2760
2779
  break;
2761
2780
  case "H":
2762
- f = s.calc(c[1], l, !1), v = f[1] === s.calc(p, l, !1)[1] ? ["H", f[0]] : ["L", f[0], f[1]];
2781
+ f = s.calc(c[1], l, !1), v = f[1] === s.calc(d, l, !1)[1] ? ["H", f[0]] : ["L", f[0], f[1]];
2763
2782
  break;
2764
2783
  case "a":
2765
2784
  case "A":
2766
- var P = s.toArray(), E = i(c[1], c[2], c[3]).transform(P);
2767
- if (P[0] * P[3] - P[1] * P[2] < 0 && (c[5] = c[5] ? "0" : "1"), f = s.calc(c[6], c[7], c[0] === "a"), c[0] === "A" && c[6] === p && c[7] === l || c[0] === "a" && c[6] === 0 && c[7] === 0) {
2785
+ var P = s.toArray(), S = i(c[1], c[2], c[3]).transform(P);
2786
+ if (P[0] * P[3] - P[1] * P[2] < 0 && (c[5] = c[5] ? "0" : "1"), f = s.calc(c[6], c[7], c[0] === "a"), c[0] === "A" && c[6] === d && c[7] === l || c[0] === "a" && c[6] === 0 && c[7] === 0) {
2768
2787
  v = [c[0] === "a" ? "l" : "L", f[0], f[1]];
2769
2788
  break;
2770
2789
  }
2771
- E.isDegenerate() ? v = [c[0] === "a" ? "l" : "L", f[0], f[1]] : v = [c[0], E.rx, E.ry, E.ax, c[4], c[5], f[0], f[1]];
2790
+ S.isDegenerate() ? v = [c[0] === "a" ? "l" : "L", f[0], f[1]] : v = [c[0], S.rx, S.ry, S.ax, c[4], c[5], f[0], f[1]];
2772
2791
  break;
2773
2792
  case "m":
2774
2793
  M = u > 0, f = s.calc(c[1], c[2], M), v = ["m", f[0], f[1]];
@@ -2794,10 +2813,10 @@ function W1() {
2794
2813
  var s = "", r = "", h = !1;
2795
2814
  this.__evaluateStack();
2796
2815
  for (var c = 0, u = this.segments.length; c < u; c++) {
2797
- var p = this.segments[c], l = p[0];
2816
+ var d = this.segments[c], l = d[0];
2798
2817
  l !== r || l === "m" || l === "M" ? (l === "m" && r === "z" && (s += " "), s += l, h = !1) : h = !0;
2799
- for (var f = 1; f < p.length; f++) {
2800
- var v = p[f];
2818
+ for (var f = 1; f < d.length; f++) {
2819
+ var v = d[f];
2801
2820
  f === 1 ? h && v >= 0 && (s += " ") : v >= 0 && (s += " "), s += v;
2802
2821
  }
2803
2822
  r = l;
@@ -2818,7 +2837,7 @@ function W1() {
2818
2837
  }, a.prototype.transform = function(s) {
2819
2838
  return s.trim() ? (this.__stack.push(e(s)), this) : this;
2820
2839
  }, a.prototype.round = function(s) {
2821
- var r = 0, h = 0, c = 0, u = 0, p;
2840
+ var r = 0, h = 0, c = 0, u = 0, d;
2822
2841
  return s = s || 0, this.__evaluateStack(), this.segments.forEach(function(l) {
2823
2842
  var f = l[0].toLowerCase() === l[0];
2824
2843
  switch (l[0]) {
@@ -2843,37 +2862,37 @@ function W1() {
2843
2862
  f && (l[6] += c, l[7] += u), c = l[6] - l[6].toFixed(s), u = l[7] - l[7].toFixed(s), l[1] = +l[1].toFixed(s), l[2] = +l[2].toFixed(s), l[3] = +l[3].toFixed(s + 2), l[6] = +l[6].toFixed(s), l[7] = +l[7].toFixed(s);
2844
2863
  return;
2845
2864
  default:
2846
- p = l.length, f && (l[p - 2] += c, l[p - 1] += u), c = l[p - 2] - l[p - 2].toFixed(s), u = l[p - 1] - l[p - 1].toFixed(s), l.forEach(function(v, y) {
2865
+ d = l.length, f && (l[d - 2] += c, l[d - 1] += u), c = l[d - 2] - l[d - 2].toFixed(s), u = l[d - 1] - l[d - 1].toFixed(s), l.forEach(function(v, y) {
2847
2866
  y && (l[y] = +l[y].toFixed(s));
2848
2867
  });
2849
2868
  return;
2850
2869
  }
2851
2870
  }), this;
2852
2871
  }, a.prototype.iterate = function(s, r) {
2853
- var h = this.segments, c = {}, u = !1, p = 0, l = 0, f = 0, v = 0, y, M, P;
2854
- if (r || this.__evaluateStack(), h.forEach(function(E, L) {
2855
- var S = s(E, L, p, l);
2856
- Array.isArray(S) && (c[L] = S, u = !0);
2857
- var T = E[0] === E[0].toLowerCase();
2858
- switch (E[0]) {
2872
+ var h = this.segments, c = {}, u = !1, d = 0, l = 0, f = 0, v = 0, y, M, P;
2873
+ if (r || this.__evaluateStack(), h.forEach(function(S, L) {
2874
+ var E = s(S, L, d, l);
2875
+ Array.isArray(E) && (c[L] = E, u = !0);
2876
+ var T = S[0] === S[0].toLowerCase();
2877
+ switch (S[0]) {
2859
2878
  case "m":
2860
2879
  case "M":
2861
- p = E[1] + (T ? p : 0), l = E[2] + (T ? l : 0), f = p, v = l;
2880
+ d = S[1] + (T ? d : 0), l = S[2] + (T ? l : 0), f = d, v = l;
2862
2881
  return;
2863
2882
  case "h":
2864
2883
  case "H":
2865
- p = E[1] + (T ? p : 0);
2884
+ d = S[1] + (T ? d : 0);
2866
2885
  return;
2867
2886
  case "v":
2868
2887
  case "V":
2869
- l = E[1] + (T ? l : 0);
2888
+ l = S[1] + (T ? l : 0);
2870
2889
  return;
2871
2890
  case "z":
2872
2891
  case "Z":
2873
- p = f, l = v;
2892
+ d = f, l = v;
2874
2893
  return;
2875
2894
  default:
2876
- p = E[E.length - 2] + (T ? p : 0), l = E[E.length - 1] + (T ? l : 0);
2895
+ d = S[S.length - 2] + (T ? d : 0), l = S[S.length - 1] + (T ? l : 0);
2877
2896
  }
2878
2897
  }), !u)
2879
2898
  return this;
@@ -2886,9 +2905,9 @@ function W1() {
2886
2905
  return this.segments = P, this;
2887
2906
  }, a.prototype.abs = function() {
2888
2907
  return this.iterate(function(s, r, h, c) {
2889
- var u = s[0], p = u.toUpperCase(), l;
2890
- if (u !== p)
2891
- switch (s[0] = p, u) {
2908
+ var u = s[0], d = u.toUpperCase(), l;
2909
+ if (u !== d)
2910
+ switch (s[0] = d, u) {
2892
2911
  case "v":
2893
2912
  s[1] += c;
2894
2913
  return;
@@ -2902,9 +2921,9 @@ function W1() {
2902
2921
  }, !0), this;
2903
2922
  }, a.prototype.rel = function() {
2904
2923
  return this.iterate(function(s, r, h, c) {
2905
- var u = s[0], p = u.toLowerCase(), l;
2906
- if (u !== p && !(r === 0 && u === "M"))
2907
- switch (s[0] = p, u) {
2924
+ var u = s[0], d = u.toLowerCase(), l;
2925
+ if (u !== d && !(r === 0 && u === "M"))
2926
+ switch (s[0] = d, u) {
2908
2927
  case "V":
2909
2928
  s[1] -= c;
2910
2929
  return;
@@ -2918,25 +2937,25 @@ function W1() {
2918
2937
  }, !0), this;
2919
2938
  }, a.prototype.unarc = function() {
2920
2939
  return this.iterate(function(s, r, h, c) {
2921
- var u, p, l, f = [], v = s[0];
2922
- return v !== "A" && v !== "a" ? null : (v === "a" ? (p = h + s[6], l = c + s[7]) : (p = s[6], l = s[7]), u = o(h, c, p, l, s[4], s[5], s[1], s[2], s[3]), u.length === 0 ? [[s[0] === "a" ? "l" : "L", s[6], s[7]]] : (u.forEach(function(y) {
2940
+ var u, d, l, f = [], v = s[0];
2941
+ return v !== "A" && v !== "a" ? null : (v === "a" ? (d = h + s[6], l = c + s[7]) : (d = s[6], l = s[7]), u = o(h, c, d, l, s[4], s[5], s[1], s[2], s[3]), u.length === 0 ? [[s[0] === "a" ? "l" : "L", s[6], s[7]]] : (u.forEach(function(y) {
2923
2942
  f.push(["C", y[2], y[3], y[4], y[5], y[6], y[7]]);
2924
2943
  }), f));
2925
2944
  }), this;
2926
2945
  }, a.prototype.unshort = function() {
2927
- var s = this.segments, r, h, c, u, p;
2946
+ var s = this.segments, r, h, c, u, d;
2928
2947
  return this.iterate(function(l, f, v, y) {
2929
- var M = l[0], P = M.toUpperCase(), E;
2930
- f && (P === "T" ? (E = M === "t", c = s[f - 1], c[0] === "Q" ? (r = c[1] - v, h = c[2] - y) : c[0] === "q" ? (r = c[1] - c[3], h = c[2] - c[4]) : (r = 0, h = 0), u = -r, p = -h, E || (u += v, p += y), s[f] = [
2931
- E ? "q" : "Q",
2948
+ var M = l[0], P = M.toUpperCase(), S;
2949
+ f && (P === "T" ? (S = M === "t", c = s[f - 1], c[0] === "Q" ? (r = c[1] - v, h = c[2] - y) : c[0] === "q" ? (r = c[1] - c[3], h = c[2] - c[4]) : (r = 0, h = 0), u = -r, d = -h, S || (u += v, d += y), s[f] = [
2950
+ S ? "q" : "Q",
2932
2951
  u,
2933
- p,
2952
+ d,
2934
2953
  l[1],
2935
2954
  l[2]
2936
- ]) : P === "S" && (E = M === "s", c = s[f - 1], c[0] === "C" ? (r = c[3] - v, h = c[4] - y) : c[0] === "c" ? (r = c[3] - c[5], h = c[4] - c[6]) : (r = 0, h = 0), u = -r, p = -h, E || (u += v, p += y), s[f] = [
2937
- E ? "c" : "C",
2955
+ ]) : P === "S" && (S = M === "s", c = s[f - 1], c[0] === "C" ? (r = c[3] - v, h = c[4] - y) : c[0] === "c" ? (r = c[3] - c[5], h = c[4] - c[6]) : (r = 0, h = 0), u = -r, d = -h, S || (u += v, d += y), s[f] = [
2956
+ S ? "c" : "C",
2938
2957
  u,
2939
- p,
2958
+ d,
2940
2959
  l[1],
2941
2960
  l[2],
2942
2961
  l[3],
@@ -2945,36 +2964,36 @@ function W1() {
2945
2964
  }), this;
2946
2965
  }, Xt = a, Xt;
2947
2966
  }
2948
- var Gt, _0;
2949
- function X1() {
2950
- return _0 || (_0 = 1, Gt = W1()), Gt;
2967
+ var Gt, O0;
2968
+ function K1() {
2969
+ return O0 || (O0 = 1, Gt = G1()), Gt;
2951
2970
  }
2952
- var G1 = X1();
2953
- const V1 = /* @__PURE__ */ j1(G1);
2954
- var Vt = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, Z1 = /([astvzqmhlc])([^astvzqmhlc]*)/ig;
2955
- function K1(n) {
2971
+ var V1 = K1();
2972
+ const Z1 = /* @__PURE__ */ U1(V1);
2973
+ var Kt = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, Q1 = /([astvzqmhlc])([^astvzqmhlc]*)/ig;
2974
+ function J1(n) {
2956
2975
  var e = [];
2957
- return n.replace(Z1, function(t, o, i) {
2976
+ return n.replace(Q1, function(t, o, i) {
2958
2977
  var a = o.toLowerCase();
2959
- for (i = J1(i), a === "m" && i.length > 2 && (e.push([o].concat(i.splice(0, 2))), a = "l", o = o === "m" ? "l" : "L"); i.length >= 0; ) {
2960
- if (i.length === Vt[a])
2978
+ for (i = en(i), a === "m" && i.length > 2 && (e.push([o].concat(i.splice(0, 2))), a = "l", o = o === "m" ? "l" : "L"); i.length >= 0; ) {
2979
+ if (i.length === Kt[a])
2961
2980
  return i.unshift(o), e.push(i);
2962
- if (i.length < Vt[a])
2981
+ if (i.length < Kt[a])
2963
2982
  throw new Error("malformed path data");
2964
- e.push([o].concat(i.splice(0, Vt[a])));
2983
+ e.push([o].concat(i.splice(0, Kt[a])));
2965
2984
  }
2966
2985
  }), e;
2967
2986
  }
2968
- var Q1 = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;
2969
- function J1(n) {
2970
- var e = n.match(Q1);
2987
+ var tn = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;
2988
+ function en(n) {
2989
+ var e = n.match(tn);
2971
2990
  return e ? e.map(Number) : [];
2972
2991
  }
2973
2992
  function it(n, e, t, o, i, a, s, r) {
2974
2993
  return new t0(n, e, t, o, i, a, s, r);
2975
2994
  }
2976
2995
  function t0(n, e, t, o, i, a, s, r) {
2977
- this.a = { x: n, y: e }, this.b = { x: t, y: o }, this.c = { x: i, y: a }, this.d = { x: s, y: r }, s != null && r !== null && r !== void 0 ? (this.getArcLength = cn, this.getPoint = nn, this.getDerivative = en) : (this.getArcLength = rn, this.getPoint = ee, this.getDerivative = tn), this.init();
2996
+ this.a = { x: n, y: e }, this.b = { x: t, y: o }, this.c = { x: i, y: a }, this.d = { x: s, y: r }, s != null && r !== null && r !== void 0 ? (this.getArcLength = fn, this.getPoint = on, this.getDerivative = rn) : (this.getArcLength = sn, this.getPoint = ne, this.getDerivative = nn), this.init();
2978
2997
  }
2979
2998
  t0.prototype = {
2980
2999
  constructor: t0,
@@ -2988,7 +3007,7 @@ t0.prototype = {
2988
3007
  return this.length;
2989
3008
  },
2990
3009
  getPointAtLength: function(n) {
2991
- var e = Zt(
3010
+ var e = Vt(
2992
3011
  n,
2993
3012
  this.length,
2994
3013
  this.getArcLength,
@@ -3002,7 +3021,7 @@ t0.prototype = {
3002
3021
  );
3003
3022
  },
3004
3023
  getTangentAtLength: function(n) {
3005
- var e = Zt(
3024
+ var e = Vt(
3006
3025
  n,
3007
3026
  this.length,
3008
3027
  this.getArcLength,
@@ -3016,7 +3035,7 @@ t0.prototype = {
3016
3035
  return o > 0 ? i = { x: t.x / o, y: t.y / o } : i = { x: 0, y: 0 }, i;
3017
3036
  },
3018
3037
  getPropertiesAtLength: function(n) {
3019
- var e = Zt(
3038
+ var e = Vt(
3020
3039
  n,
3021
3040
  this.length,
3022
3041
  this.getArcLength,
@@ -3036,46 +3055,46 @@ t0.prototype = {
3036
3055
  return { x: a.x, y: a.y, tangentX: i.x, tangentY: i.y };
3037
3056
  }
3038
3057
  };
3039
- function tn(n, e, t) {
3058
+ function nn(n, e, t) {
3040
3059
  return {
3041
3060
  x: (1 - t) * 2 * (n[1] - n[0]) + t * 2 * (n[2] - n[1]),
3042
3061
  y: (1 - t) * 2 * (e[1] - e[0]) + t * 2 * (e[2] - e[1])
3043
3062
  };
3044
3063
  }
3045
- function en(n, e, t) {
3046
- var o = ee(
3064
+ function rn(n, e, t) {
3065
+ var o = ne(
3047
3066
  [3 * (n[1] - n[0]), 3 * (n[2] - n[1]), 3 * (n[3] - n[2])],
3048
3067
  [3 * (e[1] - e[0]), 3 * (e[2] - e[1]), 3 * (e[3] - e[2])],
3049
3068
  t
3050
3069
  );
3051
3070
  return o;
3052
3071
  }
3053
- function Zt(n, e, t, o, i) {
3072
+ function Vt(n, e, t, o, i) {
3054
3073
  for (var a = 1, s = n / e, r = (n - t(o, i, s)) / e; a > 1e-3; ) {
3055
- var h = t(o, i, s + r), c = t(o, i, s - r), u = Math.abs(n - h) / e, p = Math.abs(n - c) / e;
3056
- u < a ? (a = u, s += r) : p < a ? (a = p, s -= r) : r /= 2;
3074
+ var h = t(o, i, s + r), c = t(o, i, s - r), u = Math.abs(n - h) / e, d = Math.abs(n - c) / e;
3075
+ u < a ? (a = u, s += r) : d < a ? (a = d, s -= r) : r /= 2;
3057
3076
  }
3058
3077
  return s;
3059
3078
  }
3060
- function ee(n, e, t) {
3079
+ function ne(n, e, t) {
3061
3080
  var o = (1 - t) * (1 - t) * n[0] + 2 * (1 - t) * t * n[1] + t * t * n[2], i = (1 - t) * (1 - t) * e[0] + 2 * (1 - t) * t * e[1] + t * t * e[2];
3062
3081
  return { x: o, y: i };
3063
3082
  }
3064
- function nn(n, e, t) {
3083
+ function on(n, e, t) {
3065
3084
  var o = (1 - t) * (1 - t) * (1 - t) * n[0] + 3 * (1 - t) * (1 - t) * t * n[1] + 3 * (1 - t) * t * t * n[2] + t * t * t * n[3], i = (1 - t) * (1 - t) * (1 - t) * e[0] + 3 * (1 - t) * (1 - t) * t * e[1] + 3 * (1 - t) * t * t * e[2] + t * t * t * e[3];
3066
3085
  return { x: o, y: i };
3067
3086
  }
3068
- function rn(n, e, t) {
3087
+ function sn(n, e, t) {
3069
3088
  t === void 0 && (t = 1);
3070
3089
  var o = n[0] - 2 * n[1] + n[2], i = e[0] - 2 * e[1] + e[2], a = 2 * n[1] - 2 * n[0], s = 2 * e[1] - 2 * e[0], r = 4 * (o * o + i * i), h = 4 * (o * a + i * s), c = a * a + s * s;
3071
3090
  if (r === 0)
3072
3091
  return t * Math.sqrt(Math.pow(n[2] - n[0], 2) + Math.pow(e[2] - e[0], 2));
3073
- var u = h / (2 * r), p = c / r, l = t + u, f = p - u * u;
3092
+ var u = h / (2 * r), d = c / r, l = t + u, f = d - u * u;
3074
3093
  return Math.sqrt(r) / 2 * (l * Math.sqrt(l * l + f) - u * Math.sqrt(u * u + f) + f * Math.log(Math.abs(
3075
3094
  (l + Math.sqrt(l * l + f)) / (u + Math.sqrt(u * u + f))
3076
3095
  )));
3077
3096
  }
3078
- var on = [
3097
+ var an = [
3079
3098
  [],
3080
3099
  [],
3081
3100
  [-0.5773502691896257, 0.5773502691896257],
@@ -3101,7 +3120,7 @@ var on = [
3101
3120
  [-0.06973927331972223, 0.06973927331972223, -0.20786042668822127, 0.20786042668822127, -0.34193582089208424, 0.34193582089208424, -0.469355837986757, 0.469355837986757, -0.5876404035069116, 0.5876404035069116, -0.6944872631866827, 0.6944872631866827, -0.7878168059792081, 0.7878168059792081, -0.8658125777203002, 0.8658125777203002, -0.926956772187174, 0.926956772187174, -0.9700604978354287, 0.9700604978354287, -0.9942945854823992, 0.9942945854823992],
3102
3121
  [0, -0.1332568242984661, 0.1332568242984661, -0.26413568097034495, 0.26413568097034495, -0.3903010380302908, 0.3903010380302908, -0.5095014778460075, 0.5095014778460075, -0.6196098757636461, 0.6196098757636461, -0.7186613631319502, 0.7186613631319502, -0.8048884016188399, 0.8048884016188399, -0.8767523582704416, 0.8767523582704416, -0.9329710868260161, 0.9329710868260161, -0.9725424712181152, 0.9725424712181152, -0.9947693349975522, 0.9947693349975522],
3103
3122
  [-0.06405689286260563, 0.06405689286260563, -0.1911188674736163, 0.1911188674736163, -0.3150426796961634, 0.3150426796961634, -0.4337935076260451, 0.4337935076260451, -0.5454214713888396, 0.5454214713888396, -0.6480936519369755, 0.6480936519369755, -0.7401241915785544, 0.7401241915785544, -0.820001985973903, 0.820001985973903, -0.8864155270044011, 0.8864155270044011, -0.9382745520027328, 0.9382745520027328, -0.9747285559713095, 0.9747285559713095, -0.9951872199970213, 0.9951872199970213]
3104
- ], sn = [
3123
+ ], hn = [
3105
3124
  [],
3106
3125
  [],
3107
3126
  [1, 1],
@@ -3127,9 +3146,9 @@ var on = [
3127
3146
  [0.13925187285563198, 0.13925187285563198, 0.13654149834601517, 0.13654149834601517, 0.13117350478706238, 0.13117350478706238, 0.12325237681051242, 0.12325237681051242, 0.11293229608053922, 0.11293229608053922, 0.10041414444288096, 0.10041414444288096, 0.08594160621706773, 0.08594160621706773, 0.06979646842452049, 0.06979646842452049, 0.052293335152683286, 0.052293335152683286, 0.03377490158481415, 0.03377490158481415, 0.0146279952982722, 0.0146279952982722],
3128
3147
  [0.13365457218610619, 0.1324620394046966, 0.1324620394046966, 0.12890572218808216, 0.12890572218808216, 0.12304908430672953, 0.12304908430672953, 0.11499664022241136, 0.11499664022241136, 0.10489209146454141, 0.10489209146454141, 0.09291576606003515, 0.09291576606003515, 0.07928141177671895, 0.07928141177671895, 0.06423242140852585, 0.06423242140852585, 0.04803767173108467, 0.04803767173108467, 0.030988005856979445, 0.030988005856979445, 0.013411859487141771, 0.013411859487141771],
3129
3148
  [0.12793819534675216, 0.12793819534675216, 0.1258374563468283, 0.1258374563468283, 0.12167047292780339, 0.12167047292780339, 0.1155056680537256, 0.1155056680537256, 0.10744427011596563, 0.10744427011596563, 0.09761865210411388, 0.09761865210411388, 0.08619016153195327, 0.08619016153195327, 0.0733464814110803, 0.0733464814110803, 0.05929858491543678, 0.05929858491543678, 0.04427743881741981, 0.04427743881741981, 0.028531388628933663, 0.028531388628933663, 0.0123412297999872, 0.0123412297999872]
3130
- ], an = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]];
3131
- function hn(n, e) {
3132
- return an[n][e];
3149
+ ], ln = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]];
3150
+ function cn(n, e) {
3151
+ return ln[n][e];
3133
3152
  }
3134
3153
  function e0(n, e, t) {
3135
3154
  var o = t.length - 1, i, a, s;
@@ -3137,7 +3156,7 @@ function e0(n, e, t) {
3137
3156
  return 0;
3138
3157
  if (n === 0) {
3139
3158
  for (a = 0, s = 0; s <= o; s++)
3140
- a += hn(o, s) * Math.pow(1 - e, o - s) * Math.pow(e, s) * t[s];
3159
+ a += cn(o, s) * Math.pow(1 - e, o - s) * Math.pow(e, s) * t[s];
3141
3160
  return a;
3142
3161
  } else {
3143
3162
  for (i = new Array(o), s = 0; s < o; s++)
@@ -3145,65 +3164,65 @@ function e0(n, e, t) {
3145
3164
  return e0(n - 1, e, i);
3146
3165
  }
3147
3166
  }
3148
- function ln(n, e, t) {
3167
+ function un(n, e, t) {
3149
3168
  var o = e0(1, t, n), i = e0(1, t, e), a = o * o + i * i;
3150
3169
  return Math.sqrt(a);
3151
3170
  }
3152
- function cn(n, e, t) {
3171
+ function fn(n, e, t) {
3153
3172
  var o, i, a, s;
3154
3173
  t === void 0 && (t = 1);
3155
3174
  var r = 20;
3156
3175
  for (o = t / 2, i = 0, a = 0; a < r; a++)
3157
- s = o * on[r][a] + o, i += sn[r][a] * ln(n, e, s);
3176
+ s = o * an[r][a] + o, i += hn[r][a] * un(n, e, s);
3158
3177
  return o * i;
3159
3178
  }
3160
- var Et = Math.PI * 2;
3161
- function O0(n, e, t, o) {
3179
+ var St = Math.PI * 2;
3180
+ function N0(n, e, t, o) {
3162
3181
  var i = n * o - e * t < 0 ? -1 : 1, a = n * t + e * o;
3163
3182
  return a > 1 && (a = 1), a < -1 && (a = -1), i * Math.acos(a);
3164
3183
  }
3165
- function un(n, e, t, o, i, a, s, r, h, c) {
3166
- var u = c * (n - t) / 2 + h * (e - o) / 2, p = -h * (n - t) / 2 + c * (e - o) / 2, l = s * s, f = r * r, v = u * u, y = p * p, M = l * f - l * y - f * v;
3184
+ function gn(n, e, t, o, i, a, s, r, h, c) {
3185
+ var u = c * (n - t) / 2 + h * (e - o) / 2, d = -h * (n - t) / 2 + c * (e - o) / 2, l = s * s, f = r * r, v = u * u, y = d * d, M = l * f - l * y - f * v;
3167
3186
  M < 0 && (M = 0), M /= l * y + f * v, M = Math.sqrt(M) * (i === a ? -1 : 1);
3168
- var P = M * s / r * p, E = M * -r / s * u, L = c * P - h * E + (n + t) / 2, S = h * P + c * E + (e + o) / 2, T = (u - P) / s, k = (p - E) / r, F = (-u - P) / s, X = (-p - E) / r, z = O0(1, 0, T, k), Y = O0(T, k, F, X);
3169
- return a === 0 && Y > 0 && (Y -= Et), a === 1 && Y < 0 && (Y += Et), [L, S, z, Y];
3187
+ var P = M * s / r * d, S = M * -r / s * u, L = c * P - h * S + (n + t) / 2, E = h * P + c * S + (e + o) / 2, T = (u - P) / s, I = (d - S) / r, F = (-u - P) / s, X = (-d - S) / r, z = N0(1, 0, T, I), W = N0(T, I, F, X);
3188
+ return a === 0 && W > 0 && (W -= St), a === 1 && W < 0 && (W += St), [L, E, z, W];
3170
3189
  }
3171
- function fn(n, e) {
3190
+ function dn(n, e) {
3172
3191
  var t = 1.3333333333333333 * Math.tan(e / 4), o = Math.cos(n), i = Math.sin(n), a = Math.cos(n + e), s = Math.sin(n + e);
3173
3192
  return [o, i, o - i * t, i + o * t, a + s * t, s - a * t, a, s];
3174
3193
  }
3175
- function gn(n, e, t, o, i, a, s, r, h) {
3176
- var c = Math.sin(i * Et / 360), u = Math.cos(i * Et / 360), p = u * (n - r) / 2 + c * (e - h) / 2, l = -c * (n - r) / 2 + u * (e - h) / 2;
3177
- if (p === 0 && l === 0)
3194
+ function pn(n, e, t, o, i, a, s, r, h) {
3195
+ var c = Math.sin(i * St / 360), u = Math.cos(i * St / 360), d = u * (n - r) / 2 + c * (e - h) / 2, l = -c * (n - r) / 2 + u * (e - h) / 2;
3196
+ if (d === 0 && l === 0)
3178
3197
  return [];
3179
3198
  if (t === 0 || o === 0)
3180
3199
  return [];
3181
3200
  t = Math.abs(t), o = Math.abs(o);
3182
- var f = p * p / (t * t) + l * l / (o * o);
3201
+ var f = d * d / (t * t) + l * l / (o * o);
3183
3202
  f > 1 && (t *= Math.sqrt(f), o *= Math.sqrt(f));
3184
- var v = un(n, e, r, h, a, s, t, o, c, u), y = [], M = v[2], P = v[3], E = Math.max(Math.ceil(Math.abs(P) / (Et / 4)), 1);
3185
- P /= E;
3186
- for (var L = 0; L < E; L++)
3187
- y.push(fn(M, P)), M += P;
3188
- return y.map(function(S) {
3189
- for (var T = 0; T < S.length; T += 2) {
3190
- var k = S[T + 0], F = S[T + 1];
3191
- k *= t, F *= o;
3192
- var X = u * k - c * F, z = c * k + u * F;
3193
- S[T + 0] = X + v[0], S[T + 1] = z + v[1];
3203
+ var v = gn(n, e, r, h, a, s, t, o, c, u), y = [], M = v[2], P = v[3], S = Math.max(Math.ceil(Math.abs(P) / (St / 4)), 1);
3204
+ P /= S;
3205
+ for (var L = 0; L < S; L++)
3206
+ y.push(dn(M, P)), M += P;
3207
+ return y.map(function(E) {
3208
+ for (var T = 0; T < E.length; T += 2) {
3209
+ var I = E[T + 0], F = E[T + 1];
3210
+ I *= t, F *= o;
3211
+ var X = u * I - c * F, z = c * I + u * F;
3212
+ E[T + 0] = X + v[0], E[T + 1] = z + v[1];
3194
3213
  }
3195
- return S;
3214
+ return E;
3196
3215
  });
3197
3216
  }
3198
- function N0(n, e, t, o, i, a, s, r, h) {
3217
+ function R0(n, e, t, o, i, a, s, r, h) {
3199
3218
  return new n0(n, e, t, o, i, a, s, r, h);
3200
3219
  }
3201
3220
  function n0(n, e, t, o, i, a, s, r, h) {
3202
- var c = 0, u = [], p = [], l = gn(n, e, t, o, i, a, s, r, h);
3221
+ var c = 0, u = [], d = [], l = pn(n, e, t, o, i, a, s, r, h);
3203
3222
  l.forEach(function(f) {
3204
3223
  var v = new it(f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7]), y = v.getTotalLength();
3205
- c += y, u.push(y), p.push(v);
3206
- }), this.length = c, this.partialLengths = u, this.curves = p;
3224
+ c += y, u.push(y), d.push(v);
3225
+ }), this.length = c, this.partialLengths = u, this.curves = d;
3207
3226
  }
3208
3227
  n0.prototype = {
3209
3228
  constructor: n0,
@@ -3236,33 +3255,33 @@ n0.prototype = {
3236
3255
  }
3237
3256
  };
3238
3257
  function rt(n, e, t, o) {
3239
- return new It(n, e, t, o);
3258
+ return new kt(n, e, t, o);
3240
3259
  }
3241
- function It(n, e, t, o) {
3260
+ function kt(n, e, t, o) {
3242
3261
  this.x0 = n, this.x1 = e, this.y0 = t, this.y1 = o;
3243
3262
  }
3244
- It.prototype.getTotalLength = function() {
3263
+ kt.prototype.getTotalLength = function() {
3245
3264
  return Math.sqrt(Math.pow(this.x0 - this.x1, 2) + Math.pow(this.y0 - this.y1, 2));
3246
3265
  };
3247
- It.prototype.getPointAtLength = function(n) {
3266
+ kt.prototype.getPointAtLength = function(n) {
3248
3267
  var e = n / Math.sqrt(Math.pow(this.x0 - this.x1, 2) + Math.pow(this.y0 - this.y1, 2)), t = (this.x1 - this.x0) * e, o = (this.y1 - this.y0) * e;
3249
3268
  return { x: this.x0 + t, y: this.y0 + o };
3250
3269
  };
3251
- It.prototype.getTangentAtLength = function() {
3270
+ kt.prototype.getTangentAtLength = function() {
3252
3271
  var n = Math.sqrt((this.x1 - this.x0) * (this.x1 - this.x0) + (this.y1 - this.y0) * (this.y1 - this.y0));
3253
3272
  return { x: (this.x1 - this.x0) / n, y: (this.y1 - this.y0) / n };
3254
3273
  };
3255
- It.prototype.getPropertiesAtLength = function(n) {
3274
+ kt.prototype.getPropertiesAtLength = function(n) {
3256
3275
  var e = this.getPointAtLength(n), t = this.getTangentAtLength();
3257
3276
  return { x: e.x, y: e.y, tangentX: t.x, tangentY: t.y };
3258
3277
  };
3259
- function pn(n) {
3278
+ function xn(n) {
3260
3279
  var e = 0, t = [], o = [];
3261
3280
  function i(s) {
3262
3281
  if (!s)
3263
3282
  return null;
3264
- for (var r = K1(s), h = [0, 0], c = [0, 0], u, p, l = 0; l < r.length; l++)
3265
- r[l][0] === "M" ? (h = [r[l][1], r[l][2]], p = [h[0], h[1]], o.push(null)) : r[l][0] === "m" ? (h = [r[l][1] + h[0], r[l][2] + h[1]], p = [h[0], h[1]], o.push(null)) : r[l][0] === "L" ? (e = e + Math.sqrt(Math.pow(h[0] - r[l][1], 2) + Math.pow(h[1] - r[l][2], 2)), o.push(new rt(h[0], r[l][1], h[1], r[l][2])), h = [r[l][1], r[l][2]]) : r[l][0] === "l" ? (e = e + Math.sqrt(Math.pow(r[l][1], 2) + Math.pow(r[l][2], 2)), o.push(new rt(h[0], r[l][1] + h[0], h[1], r[l][2] + h[1])), h = [r[l][1] + h[0], r[l][2] + h[1]]) : r[l][0] === "H" ? (e = e + Math.abs(h[0] - r[l][1]), o.push(new rt(h[0], r[l][1], h[1], h[1])), h[0] = r[l][1]) : r[l][0] === "h" ? (e = e + Math.abs(r[l][1]), o.push(new rt(h[0], h[0] + r[l][1], h[1], h[1])), h[0] = r[l][1] + h[0]) : r[l][0] === "V" ? (e = e + Math.abs(h[1] - r[l][1]), o.push(new rt(h[0], h[0], h[1], r[l][1])), h[1] = r[l][1]) : r[l][0] === "v" ? (e = e + Math.abs(r[l][1]), o.push(new rt(h[0], h[0], h[1], h[1] + r[l][1])), h[1] = r[l][1] + h[1]) : r[l][0] === "z" || r[l][0] === "Z" ? (e = e + Math.sqrt(Math.pow(p[0] - h[0], 2) + Math.pow(p[1] - h[1], 2)), o.push(new rt(h[0], p[0], h[1], p[1])), h = [p[0], p[1]]) : r[l][0] === "C" ? (u = new it(h[0], h[1], r[l][1], r[l][2], r[l][3], r[l][4], r[l][5], r[l][6]), e = e + u.getTotalLength(), h = [r[l][5], r[l][6]], o.push(u)) : r[l][0] === "c" ? (u = new it(h[0], h[1], h[0] + r[l][1], h[1] + r[l][2], h[0] + r[l][3], h[1] + r[l][4], h[0] + r[l][5], h[1] + r[l][6]), e = e + u.getTotalLength(), h = [r[l][5] + h[0], r[l][6] + h[1]], o.push(u)) : r[l][0] === "S" ? (l > 0 && ["C", "c", "S", "s"].indexOf(r[l - 1][0]) > -1 ? u = new it(h[0], h[1], 2 * h[0] - r[l - 1][r[l - 1].length - 4], 2 * h[1] - r[l - 1][r[l - 1].length - 3], r[l][1], r[l][2], r[l][3], r[l][4]) : u = new it(h[0], h[1], h[0], h[1], r[l][1], r[l][2], r[l][3], r[l][4]), e = e + u.getTotalLength(), h = [r[l][3], r[l][4]], o.push(u)) : r[l][0] === "s" ? (l > 0 && ["C", "c", "S", "s"].indexOf(r[l - 1][0]) > -1 ? u = new it(h[0], h[1], h[0] + u.d.x - u.c.x, h[1] + u.d.y - u.c.y, h[0] + r[l][1], h[1] + r[l][2], h[0] + r[l][3], h[1] + r[l][4]) : u = new it(h[0], h[1], h[0], h[1], h[0] + r[l][1], h[1] + r[l][2], h[0] + r[l][3], h[1] + r[l][4]), e = e + u.getTotalLength(), h = [r[l][3] + h[0], r[l][4] + h[1]], o.push(u)) : r[l][0] === "Q" ? (h[0] != r[l][1] && h[1] != r[l][2] ? u = new it(h[0], h[1], r[l][1], r[l][2], r[l][3], r[l][4]) : u = new rt(r[l][1], r[l][3], r[l][2], r[l][4]), e = e + u.getTotalLength(), o.push(u), h = [r[l][3], r[l][4]], c = [r[l][1], r[l][2]]) : r[l][0] === "q" ? (r[l][1] == 0 && r[l][2] == 0 ? u = new rt(h[0] + r[l][1], h[0] + r[l][3], h[1] + r[l][2], h[1] + r[l][4]) : u = new it(h[0], h[1], h[0] + r[l][1], h[1] + r[l][2], h[0] + r[l][3], h[1] + r[l][4]), e = e + u.getTotalLength(), c = [h[0] + r[l][1], h[1] + r[l][2]], h = [r[l][3] + h[0], r[l][4] + h[1]], o.push(u)) : r[l][0] === "T" ? (l > 0 && ["Q", "q", "T", "t"].indexOf(r[l - 1][0]) > -1 ? u = new it(h[0], h[1], 2 * h[0] - c[0], 2 * h[1] - c[1], r[l][1], r[l][2]) : u = new rt(h[0], r[l][1], h[1], r[l][2]), o.push(u), e = e + u.getTotalLength(), c = [2 * h[0] - c[0], 2 * h[1] - c[1]], h = [r[l][1], r[l][2]]) : r[l][0] === "t" ? (l > 0 && ["Q", "q", "T", "t"].indexOf(r[l - 1][0]) > -1 ? u = new it(h[0], h[1], 2 * h[0] - c[0], 2 * h[1] - c[1], h[0] + r[l][1], h[1] + r[l][2]) : u = new rt(h[0], h[0] + r[l][1], h[1], h[1] + r[l][2]), e = e + u.getTotalLength(), c = [2 * h[0] - c[0], 2 * h[1] - c[1]], h = [r[l][1] + h[0], r[l][2] + h[0]], o.push(u)) : r[l][0] === "A" ? (u = new N0(h[0], h[1], r[l][1], r[l][2], r[l][3], r[l][4], r[l][5], r[l][6], r[l][7]), e = e + u.getTotalLength(), h = [r[l][6], r[l][7]], o.push(u)) : r[l][0] === "a" && (u = new N0(h[0], h[1], r[l][1], r[l][2], r[l][3], r[l][4], r[l][5], h[0] + r[l][6], h[1] + r[l][7]), e = e + u.getTotalLength(), h = [h[0] + r[l][6], h[1] + r[l][7]], o.push(u)), t.push(e);
3283
+ for (var r = J1(s), h = [0, 0], c = [0, 0], u, d, l = 0; l < r.length; l++)
3284
+ r[l][0] === "M" ? (h = [r[l][1], r[l][2]], d = [h[0], h[1]], o.push(null)) : r[l][0] === "m" ? (h = [r[l][1] + h[0], r[l][2] + h[1]], d = [h[0], h[1]], o.push(null)) : r[l][0] === "L" ? (e = e + Math.sqrt(Math.pow(h[0] - r[l][1], 2) + Math.pow(h[1] - r[l][2], 2)), o.push(new rt(h[0], r[l][1], h[1], r[l][2])), h = [r[l][1], r[l][2]]) : r[l][0] === "l" ? (e = e + Math.sqrt(Math.pow(r[l][1], 2) + Math.pow(r[l][2], 2)), o.push(new rt(h[0], r[l][1] + h[0], h[1], r[l][2] + h[1])), h = [r[l][1] + h[0], r[l][2] + h[1]]) : r[l][0] === "H" ? (e = e + Math.abs(h[0] - r[l][1]), o.push(new rt(h[0], r[l][1], h[1], h[1])), h[0] = r[l][1]) : r[l][0] === "h" ? (e = e + Math.abs(r[l][1]), o.push(new rt(h[0], h[0] + r[l][1], h[1], h[1])), h[0] = r[l][1] + h[0]) : r[l][0] === "V" ? (e = e + Math.abs(h[1] - r[l][1]), o.push(new rt(h[0], h[0], h[1], r[l][1])), h[1] = r[l][1]) : r[l][0] === "v" ? (e = e + Math.abs(r[l][1]), o.push(new rt(h[0], h[0], h[1], h[1] + r[l][1])), h[1] = r[l][1] + h[1]) : r[l][0] === "z" || r[l][0] === "Z" ? (e = e + Math.sqrt(Math.pow(d[0] - h[0], 2) + Math.pow(d[1] - h[1], 2)), o.push(new rt(h[0], d[0], h[1], d[1])), h = [d[0], d[1]]) : r[l][0] === "C" ? (u = new it(h[0], h[1], r[l][1], r[l][2], r[l][3], r[l][4], r[l][5], r[l][6]), e = e + u.getTotalLength(), h = [r[l][5], r[l][6]], o.push(u)) : r[l][0] === "c" ? (u = new it(h[0], h[1], h[0] + r[l][1], h[1] + r[l][2], h[0] + r[l][3], h[1] + r[l][4], h[0] + r[l][5], h[1] + r[l][6]), e = e + u.getTotalLength(), h = [r[l][5] + h[0], r[l][6] + h[1]], o.push(u)) : r[l][0] === "S" ? (l > 0 && ["C", "c", "S", "s"].indexOf(r[l - 1][0]) > -1 ? u = new it(h[0], h[1], 2 * h[0] - r[l - 1][r[l - 1].length - 4], 2 * h[1] - r[l - 1][r[l - 1].length - 3], r[l][1], r[l][2], r[l][3], r[l][4]) : u = new it(h[0], h[1], h[0], h[1], r[l][1], r[l][2], r[l][3], r[l][4]), e = e + u.getTotalLength(), h = [r[l][3], r[l][4]], o.push(u)) : r[l][0] === "s" ? (l > 0 && ["C", "c", "S", "s"].indexOf(r[l - 1][0]) > -1 ? u = new it(h[0], h[1], h[0] + u.d.x - u.c.x, h[1] + u.d.y - u.c.y, h[0] + r[l][1], h[1] + r[l][2], h[0] + r[l][3], h[1] + r[l][4]) : u = new it(h[0], h[1], h[0], h[1], h[0] + r[l][1], h[1] + r[l][2], h[0] + r[l][3], h[1] + r[l][4]), e = e + u.getTotalLength(), h = [r[l][3] + h[0], r[l][4] + h[1]], o.push(u)) : r[l][0] === "Q" ? (h[0] != r[l][1] && h[1] != r[l][2] ? u = new it(h[0], h[1], r[l][1], r[l][2], r[l][3], r[l][4]) : u = new rt(r[l][1], r[l][3], r[l][2], r[l][4]), e = e + u.getTotalLength(), o.push(u), h = [r[l][3], r[l][4]], c = [r[l][1], r[l][2]]) : r[l][0] === "q" ? (r[l][1] == 0 && r[l][2] == 0 ? u = new rt(h[0] + r[l][1], h[0] + r[l][3], h[1] + r[l][2], h[1] + r[l][4]) : u = new it(h[0], h[1], h[0] + r[l][1], h[1] + r[l][2], h[0] + r[l][3], h[1] + r[l][4]), e = e + u.getTotalLength(), c = [h[0] + r[l][1], h[1] + r[l][2]], h = [r[l][3] + h[0], r[l][4] + h[1]], o.push(u)) : r[l][0] === "T" ? (l > 0 && ["Q", "q", "T", "t"].indexOf(r[l - 1][0]) > -1 ? u = new it(h[0], h[1], 2 * h[0] - c[0], 2 * h[1] - c[1], r[l][1], r[l][2]) : u = new rt(h[0], r[l][1], h[1], r[l][2]), o.push(u), e = e + u.getTotalLength(), c = [2 * h[0] - c[0], 2 * h[1] - c[1]], h = [r[l][1], r[l][2]]) : r[l][0] === "t" ? (l > 0 && ["Q", "q", "T", "t"].indexOf(r[l - 1][0]) > -1 ? u = new it(h[0], h[1], 2 * h[0] - c[0], 2 * h[1] - c[1], h[0] + r[l][1], h[1] + r[l][2]) : u = new rt(h[0], h[0] + r[l][1], h[1], h[1] + r[l][2]), e = e + u.getTotalLength(), c = [2 * h[0] - c[0], 2 * h[1] - c[1]], h = [r[l][1] + h[0], r[l][2] + h[0]], o.push(u)) : r[l][0] === "A" ? (u = new R0(h[0], h[1], r[l][1], r[l][2], r[l][3], r[l][4], r[l][5], r[l][6], r[l][7]), e = e + u.getTotalLength(), h = [r[l][6], r[l][7]], o.push(u)) : r[l][0] === "a" && (u = new R0(h[0], h[1], r[l][1], r[l][2], r[l][3], r[l][4], r[l][5], h[0] + r[l][6], h[1] + r[l][7]), e = e + u.getTotalLength(), h = [h[0] + r[l][6], h[1] + r[l][7]], o.push(u)), t.push(e);
3266
3285
  return i;
3267
3286
  }
3268
3287
  i.getTotalLength = function() {
@@ -3288,20 +3307,20 @@ function pn(n) {
3288
3307
  function Ft(n, e) {
3289
3308
  return Math.sqrt((n[0] - e[0]) * (n[0] - e[0]) + (n[1] - e[1]) * (n[1] - e[1]));
3290
3309
  }
3291
- function ne(n, e, t) {
3310
+ function re(n, e, t) {
3292
3311
  return [n[0] + (e[0] - n[0]) * t, n[1] + (e[1] - n[1]) * t];
3293
3312
  }
3294
- function dn(n, e) {
3313
+ function yn(n, e) {
3295
3314
  return Ft(n, e) < 1e-9;
3296
3315
  }
3297
- function xn(n, e, t) {
3298
- let o = n.map((i, a) => yn(i, e[a]));
3316
+ function vn(n, e, t) {
3317
+ let o = n.map((i, a) => wn(i, e[a]));
3299
3318
  return function(i) {
3300
3319
  let a = o.map((s) => s(i));
3301
- return t ? mn(a) : a;
3320
+ return t ? An(a) : a;
3302
3321
  };
3303
3322
  }
3304
- function yn(n, e) {
3323
+ function wn(n, e) {
3305
3324
  return function(t) {
3306
3325
  return n.map((o, i) => o + t * (e[i] - o));
3307
3326
  };
@@ -3314,20 +3333,20 @@ Example valid ways of supplying a shape would be:
3314
3333
  [[0, 0], [10, 0], [10, 10]]
3315
3334
  "M0,0 L10,0 L10,10Z"
3316
3335
  `;
3317
- function vn(n) {
3318
- return new V1(n).abs();
3336
+ function mn(n) {
3337
+ return new Z1(n).abs();
3319
3338
  }
3320
- function wn(n) {
3339
+ function bn(n) {
3321
3340
  return n.toString().split("M").map((e, t) => (e = e.trim(), t && e ? "M" + e : e)).filter((e) => e);
3322
3341
  }
3323
- function mn(n) {
3342
+ function An(n) {
3324
3343
  return "M" + n.join("L") + "Z";
3325
3344
  }
3326
- function bn(n, e) {
3327
- let t = vn(n);
3328
- return An(t) || Mn(t, e);
3345
+ function Mn(n, e) {
3346
+ let t = mn(n);
3347
+ return Ln(t) || Tn(t, e);
3329
3348
  }
3330
- function An(n) {
3349
+ function Ln(n) {
3331
3350
  let e = n.segments || [], t = [];
3332
3351
  if (!e.length || e[0][0] !== "M")
3333
3352
  return !1;
@@ -3346,11 +3365,11 @@ function An(n) {
3346
3365
  }
3347
3366
  return t.length ? { ring: t } : !1;
3348
3367
  }
3349
- function Mn(n, e) {
3350
- let t = wn(n)[0], o = [], i, a, s = 3;
3368
+ function Tn(n, e) {
3369
+ let t = bn(n)[0], o = [], i, a, s = 3;
3351
3370
  if (!t)
3352
3371
  throw new TypeError(r0);
3353
- a = Ln(t), i = a.getTotalLength(), e && Rt(e) && e > 0 && (s = Math.max(s, Math.ceil(i / e)));
3372
+ a = Cn(t), i = a.getTotalLength(), e && Rt(e) && e > 0 && (s = Math.max(s, Math.ceil(i / e)));
3354
3373
  for (let r = 0; r < s; r++) {
3355
3374
  let h = a.getPointAtLength(i * r / s);
3356
3375
  o.push([h.x, h.y]);
@@ -3360,51 +3379,51 @@ function Mn(n, e) {
3360
3379
  skipBisect: !0
3361
3380
  };
3362
3381
  }
3363
- function Ln(n) {
3382
+ function Cn(n) {
3364
3383
  if (typeof window < "u" && window && window.document)
3365
3384
  try {
3366
3385
  let e = window.document.createElementNS("http://www.w3.org/2000/svg", "path");
3367
3386
  return e.setAttributeNS(null, "d", n), e;
3368
3387
  } catch {
3369
3388
  }
3370
- return pn(n);
3389
+ return xn(n);
3371
3390
  }
3372
- function R0(n, e) {
3373
- const t = n.length + e, o = z1(n) / e;
3391
+ function F0(n, e) {
3392
+ const t = n.length + e, o = H1(n) / e;
3374
3393
  let i = 0, a = 0, s = o / 2;
3375
3394
  for (; n.length < t; ) {
3376
3395
  let r = n[i], h = n[(i + 1) % n.length], c = Ft(r, h);
3377
3396
  if (s <= a + c) {
3378
- n.splice(i + 1, 0, c ? ne(r, h, (s - a) / c) : r.slice(0)), s += o;
3397
+ n.splice(i + 1, 0, c ? re(r, h, (s - a) / c) : r.slice(0)), s += o;
3379
3398
  continue;
3380
3399
  }
3381
3400
  a += c, i++;
3382
3401
  }
3383
3402
  }
3384
- function Tn(n, e = 1 / 0) {
3403
+ function Pn(n, e = 1 / 0) {
3385
3404
  for (let t = 0; t < n.length; t++) {
3386
3405
  let o = n[t], i = t === n.length - 1 ? n[0] : n[t + 1];
3387
3406
  for (; Ft(o, i) > e; )
3388
- i = ne(o, i, 0.5), n.splice(t + 1, 0, i);
3407
+ i = re(o, i, 0.5), n.splice(t + 1, 0, i);
3389
3408
  }
3390
3409
  }
3391
- function F0(n, e) {
3410
+ function B0(n, e) {
3392
3411
  let t, o, i;
3393
3412
  if (typeof n == "string") {
3394
- let a = bn(n, e);
3413
+ let a = Mn(n, e);
3395
3414
  n = a.ring, i = a.skipBisect;
3396
3415
  } else if (!Array.isArray(n))
3397
3416
  throw new TypeError(r0);
3398
- if (t = n.slice(0), !Cn(t))
3417
+ if (t = n.slice(0), !Sn(t))
3399
3418
  throw new TypeError(r0);
3400
- return t.length > 1 && dn(t[0], t[t.length - 1]) && t.pop(), o = q1(t), o > 0 && t.reverse(), !i && e && Rt(e) && e > 0 && Tn(t, e), t;
3419
+ return t.length > 1 && yn(t[0], t[t.length - 1]) && t.pop(), o = j1(t), o > 0 && t.reverse(), !i && e && Rt(e) && e > 0 && Pn(t, e), t;
3401
3420
  }
3402
- function Cn(n) {
3421
+ function Sn(n) {
3403
3422
  return n.every(function(e) {
3404
3423
  return Array.isArray(e) && e.length >= 2 && Rt(e[0]) && Rt(e[1]);
3405
3424
  });
3406
3425
  }
3407
- function Pn(n, e) {
3426
+ function En(n, e) {
3408
3427
  let t = n.length, o = 1 / 0, i, a, s;
3409
3428
  for (let r = 0; r < t; r++)
3410
3429
  a = 0, e.forEach(function(h, c) {
@@ -3413,108 +3432,108 @@ function Pn(n, e) {
3413
3432
  }), a < o && (o = a, i = r);
3414
3433
  i && (s = n.splice(0, i), n.splice(n.length, 0, ...s));
3415
3434
  }
3416
- function En(n, e, { maxSegmentLength: t = 10, string: o = !0 } = {}) {
3417
- let i = F0(n, t), a = F0(e, t), s = Sn(i, a, o);
3435
+ function In(n, e, { maxSegmentLength: t = 10, string: o = !0 } = {}) {
3436
+ let i = B0(n, t), a = B0(e, t), s = kn(i, a, o);
3418
3437
  return !o || typeof n != "string" && typeof e != "string" ? s : (r) => r < 1e-4 && typeof n == "string" ? n : 1 - r < 1e-4 && typeof e == "string" ? e : s(r);
3419
3438
  }
3420
- function Sn(n, e, t) {
3439
+ function kn(n, e, t) {
3421
3440
  let o;
3422
- return o = n.length - e.length, R0(n, o < 0 ? o * -1 : 0), R0(e, o > 0 ? o : 0), Pn(n, e), xn(n, e, t);
3423
- }
3424
- var _t = { exports: {} }, B0;
3425
- function kn() {
3426
- if (B0) return _t.exports;
3427
- B0 = 1, _t.exports = n, _t.exports.default = n;
3428
- function n(g, x, d) {
3429
- d = d || 2;
3430
- var w = x && x.length, m = w ? x[0] * d : g.length, b = e(g, 0, m, d, !0), A = [];
3441
+ return o = n.length - e.length, F0(n, o < 0 ? o * -1 : 0), F0(e, o > 0 ? o : 0), En(n, e), vn(n, e, t);
3442
+ }
3443
+ var _t = { exports: {} }, D0;
3444
+ function _n() {
3445
+ if (D0) return _t.exports;
3446
+ D0 = 1, _t.exports = n, _t.exports.default = n;
3447
+ function n(g, x, p) {
3448
+ p = p || 2;
3449
+ var w = x && x.length, m = w ? x[0] * p : g.length, b = e(g, 0, m, p, !0), A = [];
3431
3450
  if (!b || b.next === b.prev) return A;
3432
- var C, N, _, $, j, B, V;
3433
- if (w && (b = h(g, x, b, d)), g.length > 80 * d) {
3451
+ var C, N, _, $, j, B, K;
3452
+ if (w && (b = h(g, x, b, p)), g.length > 80 * p) {
3434
3453
  C = _ = g[0], N = $ = g[1];
3435
- for (var H = d; H < m; H += d)
3454
+ for (var H = p; H < m; H += p)
3436
3455
  j = g[H], B = g[H + 1], j < C && (C = j), B < N && (N = B), j > _ && (_ = j), B > $ && ($ = B);
3437
- V = Math.max(_ - C, $ - N), V = V !== 0 ? 32767 / V : 0;
3456
+ K = Math.max(_ - C, $ - N), K = K !== 0 ? 32767 / K : 0;
3438
3457
  }
3439
- return o(b, A, d, C, N, V, 0), A;
3458
+ return o(b, A, p, C, N, K, 0), A;
3440
3459
  }
3441
- function e(g, x, d, w, m) {
3460
+ function e(g, x, p, w, m) {
3442
3461
  var b, A;
3443
- if (m === Bt(g, x, d, w) > 0)
3444
- for (b = x; b < d; b += w) A = et(b, g[b], g[b + 1], A);
3462
+ if (m === Bt(g, x, p, w) > 0)
3463
+ for (b = x; b < p; b += w) A = et(b, g[b], g[b + 1], A);
3445
3464
  else
3446
- for (b = d - w; b >= x; b -= w) A = et(b, g[b], g[b + 1], A);
3447
- return A && S(A, A.next) && (nt(A), A = A.next), A;
3465
+ for (b = p - w; b >= x; b -= w) A = et(b, g[b], g[b + 1], A);
3466
+ return A && E(A, A.next) && (nt(A), A = A.next), A;
3448
3467
  }
3449
3468
  function t(g, x) {
3450
3469
  if (!g) return g;
3451
3470
  x || (x = g);
3452
- var d = g, w;
3471
+ var p = g, w;
3453
3472
  do
3454
- if (w = !1, !d.steiner && (S(d, d.next) || L(d.prev, d, d.next) === 0)) {
3455
- if (nt(d), d = x = d.prev, d === d.next) break;
3473
+ if (w = !1, !p.steiner && (E(p, p.next) || L(p.prev, p, p.next) === 0)) {
3474
+ if (nt(p), p = x = p.prev, p === p.next) break;
3456
3475
  w = !0;
3457
3476
  } else
3458
- d = d.next;
3459
- while (w || d !== x);
3477
+ p = p.next;
3478
+ while (w || p !== x);
3460
3479
  return x;
3461
3480
  }
3462
- function o(g, x, d, w, m, b, A) {
3481
+ function o(g, x, p, w, m, b, A) {
3463
3482
  if (g) {
3464
3483
  !A && b && f(g, w, m, b);
3465
3484
  for (var C = g, N, _; g.prev !== g.next; ) {
3466
3485
  if (N = g.prev, _ = g.next, b ? a(g, w, m, b) : i(g)) {
3467
- x.push(N.i / d | 0), x.push(g.i / d | 0), x.push(_.i / d | 0), nt(g), g = _.next, C = _.next;
3486
+ x.push(N.i / p | 0), x.push(g.i / p | 0), x.push(_.i / p | 0), nt(g), g = _.next, C = _.next;
3468
3487
  continue;
3469
3488
  }
3470
3489
  if (g = _, g === C) {
3471
- A ? A === 1 ? (g = s(t(g), x, d), o(g, x, d, w, m, b, 2)) : A === 2 && r(g, x, d, w, m, b) : o(t(g), x, d, w, m, b, 1);
3490
+ A ? A === 1 ? (g = s(t(g), x, p), o(g, x, p, w, m, b, 2)) : A === 2 && r(g, x, p, w, m, b) : o(t(g), x, p, w, m, b, 1);
3472
3491
  break;
3473
3492
  }
3474
3493
  }
3475
3494
  }
3476
3495
  }
3477
3496
  function i(g) {
3478
- var x = g.prev, d = g, w = g.next;
3479
- if (L(x, d, w) >= 0) return !1;
3480
- for (var m = x.x, b = d.x, A = w.x, C = x.y, N = d.y, _ = w.y, $ = m < b ? m < A ? m : A : b < A ? b : A, j = C < N ? C < _ ? C : _ : N < _ ? N : _, B = m > b ? m > A ? m : A : b > A ? b : A, V = C > N ? C > _ ? C : _ : N > _ ? N : _, H = w.next; H !== x; ) {
3481
- if (H.x >= $ && H.x <= B && H.y >= j && H.y <= V && P(m, C, b, N, A, _, H.x, H.y) && L(H.prev, H, H.next) >= 0) return !1;
3497
+ var x = g.prev, p = g, w = g.next;
3498
+ if (L(x, p, w) >= 0) return !1;
3499
+ for (var m = x.x, b = p.x, A = w.x, C = x.y, N = p.y, _ = w.y, $ = m < b ? m < A ? m : A : b < A ? b : A, j = C < N ? C < _ ? C : _ : N < _ ? N : _, B = m > b ? m > A ? m : A : b > A ? b : A, K = C > N ? C > _ ? C : _ : N > _ ? N : _, H = w.next; H !== x; ) {
3500
+ if (H.x >= $ && H.x <= B && H.y >= j && H.y <= K && P(m, C, b, N, A, _, H.x, H.y) && L(H.prev, H, H.next) >= 0) return !1;
3482
3501
  H = H.next;
3483
3502
  }
3484
3503
  return !0;
3485
3504
  }
3486
- function a(g, x, d, w) {
3505
+ function a(g, x, p, w) {
3487
3506
  var m = g.prev, b = g, A = g.next;
3488
3507
  if (L(m, b, A) >= 0) return !1;
3489
- for (var C = m.x, N = b.x, _ = A.x, $ = m.y, j = b.y, B = A.y, V = C < N ? C < _ ? C : _ : N < _ ? N : _, H = $ < j ? $ < B ? $ : B : j < B ? j : B, Tt = C > N ? C > _ ? C : _ : N > _ ? N : _, Ct = $ > j ? $ > B ? $ : B : j > B ? j : B, u0 = y(V, H, x, d, w), f0 = y(Tt, Ct, x, d, w), D = g.prevZ, q = g.nextZ; D && D.z >= u0 && q && q.z <= f0; ) {
3490
- if (D.x >= V && D.x <= Tt && D.y >= H && D.y <= Ct && D !== m && D !== A && P(C, $, N, j, _, B, D.x, D.y) && L(D.prev, D, D.next) >= 0 || (D = D.prevZ, q.x >= V && q.x <= Tt && q.y >= H && q.y <= Ct && q !== m && q !== A && P(C, $, N, j, _, B, q.x, q.y) && L(q.prev, q, q.next) >= 0)) return !1;
3508
+ for (var C = m.x, N = b.x, _ = A.x, $ = m.y, j = b.y, B = A.y, K = C < N ? C < _ ? C : _ : N < _ ? N : _, H = $ < j ? $ < B ? $ : B : j < B ? j : B, Tt = C > N ? C > _ ? C : _ : N > _ ? N : _, Ct = $ > j ? $ > B ? $ : B : j > B ? j : B, u0 = y(K, H, x, p, w), f0 = y(Tt, Ct, x, p, w), D = g.prevZ, q = g.nextZ; D && D.z >= u0 && q && q.z <= f0; ) {
3509
+ if (D.x >= K && D.x <= Tt && D.y >= H && D.y <= Ct && D !== m && D !== A && P(C, $, N, j, _, B, D.x, D.y) && L(D.prev, D, D.next) >= 0 || (D = D.prevZ, q.x >= K && q.x <= Tt && q.y >= H && q.y <= Ct && q !== m && q !== A && P(C, $, N, j, _, B, q.x, q.y) && L(q.prev, q, q.next) >= 0)) return !1;
3491
3510
  q = q.nextZ;
3492
3511
  }
3493
3512
  for (; D && D.z >= u0; ) {
3494
- if (D.x >= V && D.x <= Tt && D.y >= H && D.y <= Ct && D !== m && D !== A && P(C, $, N, j, _, B, D.x, D.y) && L(D.prev, D, D.next) >= 0) return !1;
3513
+ if (D.x >= K && D.x <= Tt && D.y >= H && D.y <= Ct && D !== m && D !== A && P(C, $, N, j, _, B, D.x, D.y) && L(D.prev, D, D.next) >= 0) return !1;
3495
3514
  D = D.prevZ;
3496
3515
  }
3497
3516
  for (; q && q.z <= f0; ) {
3498
- if (q.x >= V && q.x <= Tt && q.y >= H && q.y <= Ct && q !== m && q !== A && P(C, $, N, j, _, B, q.x, q.y) && L(q.prev, q, q.next) >= 0) return !1;
3517
+ if (q.x >= K && q.x <= Tt && q.y >= H && q.y <= Ct && q !== m && q !== A && P(C, $, N, j, _, B, q.x, q.y) && L(q.prev, q, q.next) >= 0) return !1;
3499
3518
  q = q.nextZ;
3500
3519
  }
3501
3520
  return !0;
3502
3521
  }
3503
- function s(g, x, d) {
3522
+ function s(g, x, p) {
3504
3523
  var w = g;
3505
3524
  do {
3506
3525
  var m = w.prev, b = w.next.next;
3507
- !S(m, b) && T(m, w, w.next, b) && z(m, b) && z(b, m) && (x.push(m.i / d | 0), x.push(w.i / d | 0), x.push(b.i / d | 0), nt(w), nt(w.next), w = g = b), w = w.next;
3526
+ !E(m, b) && T(m, w, w.next, b) && z(m, b) && z(b, m) && (x.push(m.i / p | 0), x.push(w.i / p | 0), x.push(b.i / p | 0), nt(w), nt(w.next), w = g = b), w = w.next;
3508
3527
  } while (w !== g);
3509
3528
  return t(w);
3510
3529
  }
3511
- function r(g, x, d, w, m, b) {
3530
+ function r(g, x, p, w, m, b) {
3512
3531
  var A = g;
3513
3532
  do {
3514
3533
  for (var C = A.next.next; C !== A.prev; ) {
3515
- if (A.i !== C.i && E(A, C)) {
3534
+ if (A.i !== C.i && S(A, C)) {
3516
3535
  var N = tt(A, C);
3517
- A = t(A, A.next), N = t(N, N.next), o(A, x, d, w, m, b, 0), o(N, x, d, w, m, b, 0);
3536
+ A = t(A, A.next), N = t(N, N.next), o(A, x, p, w, m, b, 0), o(N, x, p, w, m, b, 0);
3518
3537
  return;
3519
3538
  }
3520
3539
  C = C.next;
@@ -3522,169 +3541,169 @@ function kn() {
3522
3541
  A = A.next;
3523
3542
  } while (A !== g);
3524
3543
  }
3525
- function h(g, x, d, w) {
3544
+ function h(g, x, p, w) {
3526
3545
  var m = [], b, A, C, N, _;
3527
3546
  for (b = 0, A = x.length; b < A; b++)
3528
3547
  C = x[b] * w, N = b < A - 1 ? x[b + 1] * w : g.length, _ = e(g, C, N, w, !1), _ === _.next && (_.steiner = !0), m.push(M(_));
3529
3548
  for (m.sort(c), b = 0; b < m.length; b++)
3530
- d = u(m[b], d);
3531
- return d;
3549
+ p = u(m[b], p);
3550
+ return p;
3532
3551
  }
3533
3552
  function c(g, x) {
3534
3553
  return g.x - x.x;
3535
3554
  }
3536
3555
  function u(g, x) {
3537
- var d = p(g, x);
3538
- if (!d)
3556
+ var p = d(g, x);
3557
+ if (!p)
3539
3558
  return x;
3540
- var w = tt(d, g);
3541
- return t(w, w.next), t(d, d.next);
3559
+ var w = tt(p, g);
3560
+ return t(w, w.next), t(p, p.next);
3542
3561
  }
3543
- function p(g, x) {
3544
- var d = x, w = g.x, m = g.y, b = -1 / 0, A;
3562
+ function d(g, x) {
3563
+ var p = x, w = g.x, m = g.y, b = -1 / 0, A;
3545
3564
  do {
3546
- if (m <= d.y && m >= d.next.y && d.next.y !== d.y) {
3547
- var C = d.x + (m - d.y) * (d.next.x - d.x) / (d.next.y - d.y);
3548
- if (C <= w && C > b && (b = C, A = d.x < d.next.x ? d : d.next, C === w))
3565
+ if (m <= p.y && m >= p.next.y && p.next.y !== p.y) {
3566
+ var C = p.x + (m - p.y) * (p.next.x - p.x) / (p.next.y - p.y);
3567
+ if (C <= w && C > b && (b = C, A = p.x < p.next.x ? p : p.next, C === w))
3549
3568
  return A;
3550
3569
  }
3551
- d = d.next;
3552
- } while (d !== x);
3570
+ p = p.next;
3571
+ } while (p !== x);
3553
3572
  if (!A) return null;
3554
3573
  var N = A, _ = A.x, $ = A.y, j = 1 / 0, B;
3555
- d = A;
3574
+ p = A;
3556
3575
  do
3557
- w >= d.x && d.x >= _ && w !== d.x && P(m < $ ? w : b, m, _, $, m < $ ? b : w, m, d.x, d.y) && (B = Math.abs(m - d.y) / (w - d.x), z(d, g) && (B < j || B === j && (d.x > A.x || d.x === A.x && l(A, d))) && (A = d, j = B)), d = d.next;
3558
- while (d !== N);
3576
+ w >= p.x && p.x >= _ && w !== p.x && P(m < $ ? w : b, m, _, $, m < $ ? b : w, m, p.x, p.y) && (B = Math.abs(m - p.y) / (w - p.x), z(p, g) && (B < j || B === j && (p.x > A.x || p.x === A.x && l(A, p))) && (A = p, j = B)), p = p.next;
3577
+ while (p !== N);
3559
3578
  return A;
3560
3579
  }
3561
3580
  function l(g, x) {
3562
3581
  return L(g.prev, g, x.prev) < 0 && L(x.next, g, g.next) < 0;
3563
3582
  }
3564
- function f(g, x, d, w) {
3583
+ function f(g, x, p, w) {
3565
3584
  var m = g;
3566
3585
  do
3567
- m.z === 0 && (m.z = y(m.x, m.y, x, d, w)), m.prevZ = m.prev, m.nextZ = m.next, m = m.next;
3586
+ m.z === 0 && (m.z = y(m.x, m.y, x, p, w)), m.prevZ = m.prev, m.nextZ = m.next, m = m.next;
3568
3587
  while (m !== g);
3569
3588
  m.prevZ.nextZ = null, m.prevZ = null, v(m);
3570
3589
  }
3571
3590
  function v(g) {
3572
- var x, d, w, m, b, A, C, N, _ = 1;
3591
+ var x, p, w, m, b, A, C, N, _ = 1;
3573
3592
  do {
3574
- for (d = g, g = null, b = null, A = 0; d; ) {
3575
- for (A++, w = d, C = 0, x = 0; x < _ && (C++, w = w.nextZ, !!w); x++)
3593
+ for (p = g, g = null, b = null, A = 0; p; ) {
3594
+ for (A++, w = p, C = 0, x = 0; x < _ && (C++, w = w.nextZ, !!w); x++)
3576
3595
  ;
3577
3596
  for (N = _; C > 0 || N > 0 && w; )
3578
- C !== 0 && (N === 0 || !w || d.z <= w.z) ? (m = d, d = d.nextZ, C--) : (m = w, w = w.nextZ, N--), b ? b.nextZ = m : g = m, m.prevZ = b, b = m;
3579
- d = w;
3597
+ C !== 0 && (N === 0 || !w || p.z <= w.z) ? (m = p, p = p.nextZ, C--) : (m = w, w = w.nextZ, N--), b ? b.nextZ = m : g = m, m.prevZ = b, b = m;
3598
+ p = w;
3580
3599
  }
3581
3600
  b.nextZ = null, _ *= 2;
3582
3601
  } while (A > 1);
3583
3602
  return g;
3584
3603
  }
3585
- function y(g, x, d, w, m) {
3586
- return g = (g - d) * m | 0, x = (x - w) * m | 0, g = (g | g << 8) & 16711935, g = (g | g << 4) & 252645135, g = (g | g << 2) & 858993459, g = (g | g << 1) & 1431655765, x = (x | x << 8) & 16711935, x = (x | x << 4) & 252645135, x = (x | x << 2) & 858993459, x = (x | x << 1) & 1431655765, g | x << 1;
3604
+ function y(g, x, p, w, m) {
3605
+ return g = (g - p) * m | 0, x = (x - w) * m | 0, g = (g | g << 8) & 16711935, g = (g | g << 4) & 252645135, g = (g | g << 2) & 858993459, g = (g | g << 1) & 1431655765, x = (x | x << 8) & 16711935, x = (x | x << 4) & 252645135, x = (x | x << 2) & 858993459, x = (x | x << 1) & 1431655765, g | x << 1;
3587
3606
  }
3588
3607
  function M(g) {
3589
- var x = g, d = g;
3608
+ var x = g, p = g;
3590
3609
  do
3591
- (x.x < d.x || x.x === d.x && x.y < d.y) && (d = x), x = x.next;
3610
+ (x.x < p.x || x.x === p.x && x.y < p.y) && (p = x), x = x.next;
3592
3611
  while (x !== g);
3593
- return d;
3612
+ return p;
3594
3613
  }
3595
- function P(g, x, d, w, m, b, A, C) {
3596
- return (m - A) * (x - C) >= (g - A) * (b - C) && (g - A) * (w - C) >= (d - A) * (x - C) && (d - A) * (b - C) >= (m - A) * (w - C);
3614
+ function P(g, x, p, w, m, b, A, C) {
3615
+ return (m - A) * (x - C) >= (g - A) * (b - C) && (g - A) * (w - C) >= (p - A) * (x - C) && (p - A) * (b - C) >= (m - A) * (w - C);
3597
3616
  }
3598
- function E(g, x) {
3617
+ function S(g, x) {
3599
3618
  return g.next.i !== x.i && g.prev.i !== x.i && !X(g, x) && // dones't intersect other edges
3600
- (z(g, x) && z(x, g) && Y(g, x) && // locally visible
3619
+ (z(g, x) && z(x, g) && W(g, x) && // locally visible
3601
3620
  (L(g.prev, g, x.prev) || L(g, x.prev, x)) || // does not create opposite-facing sectors
3602
- S(g, x) && L(g.prev, g, g.next) > 0 && L(x.prev, x, x.next) > 0);
3621
+ E(g, x) && L(g.prev, g, g.next) > 0 && L(x.prev, x, x.next) > 0);
3603
3622
  }
3604
- function L(g, x, d) {
3605
- return (x.y - g.y) * (d.x - x.x) - (x.x - g.x) * (d.y - x.y);
3623
+ function L(g, x, p) {
3624
+ return (x.y - g.y) * (p.x - x.x) - (x.x - g.x) * (p.y - x.y);
3606
3625
  }
3607
- function S(g, x) {
3626
+ function E(g, x) {
3608
3627
  return g.x === x.x && g.y === x.y;
3609
3628
  }
3610
- function T(g, x, d, w) {
3611
- var m = F(L(g, x, d)), b = F(L(g, x, w)), A = F(L(d, w, g)), C = F(L(d, w, x));
3612
- return !!(m !== b && A !== C || m === 0 && k(g, d, x) || b === 0 && k(g, w, x) || A === 0 && k(d, g, w) || C === 0 && k(d, x, w));
3629
+ function T(g, x, p, w) {
3630
+ var m = F(L(g, x, p)), b = F(L(g, x, w)), A = F(L(p, w, g)), C = F(L(p, w, x));
3631
+ return !!(m !== b && A !== C || m === 0 && I(g, p, x) || b === 0 && I(g, w, x) || A === 0 && I(p, g, w) || C === 0 && I(p, x, w));
3613
3632
  }
3614
- function k(g, x, d) {
3615
- return x.x <= Math.max(g.x, d.x) && x.x >= Math.min(g.x, d.x) && x.y <= Math.max(g.y, d.y) && x.y >= Math.min(g.y, d.y);
3633
+ function I(g, x, p) {
3634
+ return x.x <= Math.max(g.x, p.x) && x.x >= Math.min(g.x, p.x) && x.y <= Math.max(g.y, p.y) && x.y >= Math.min(g.y, p.y);
3616
3635
  }
3617
3636
  function F(g) {
3618
3637
  return g > 0 ? 1 : g < 0 ? -1 : 0;
3619
3638
  }
3620
3639
  function X(g, x) {
3621
- var d = g;
3640
+ var p = g;
3622
3641
  do {
3623
- if (d.i !== g.i && d.next.i !== g.i && d.i !== x.i && d.next.i !== x.i && T(d, d.next, g, x)) return !0;
3624
- d = d.next;
3625
- } while (d !== g);
3642
+ if (p.i !== g.i && p.next.i !== g.i && p.i !== x.i && p.next.i !== x.i && T(p, p.next, g, x)) return !0;
3643
+ p = p.next;
3644
+ } while (p !== g);
3626
3645
  return !1;
3627
3646
  }
3628
3647
  function z(g, x) {
3629
3648
  return L(g.prev, g, g.next) < 0 ? L(g, x, g.next) >= 0 && L(g, g.prev, x) >= 0 : L(g, x, g.prev) < 0 || L(g, g.next, x) < 0;
3630
3649
  }
3631
- function Y(g, x) {
3632
- var d = g, w = !1, m = (g.x + x.x) / 2, b = (g.y + x.y) / 2;
3650
+ function W(g, x) {
3651
+ var p = g, w = !1, m = (g.x + x.x) / 2, b = (g.y + x.y) / 2;
3633
3652
  do
3634
- d.y > b != d.next.y > b && d.next.y !== d.y && m < (d.next.x - d.x) * (b - d.y) / (d.next.y - d.y) + d.x && (w = !w), d = d.next;
3635
- while (d !== g);
3653
+ p.y > b != p.next.y > b && p.next.y !== p.y && m < (p.next.x - p.x) * (b - p.y) / (p.next.y - p.y) + p.x && (w = !w), p = p.next;
3654
+ while (p !== g);
3636
3655
  return w;
3637
3656
  }
3638
3657
  function tt(g, x) {
3639
- var d = new K(g.i, g.x, g.y), w = new K(x.i, x.x, x.y), m = g.next, b = x.prev;
3640
- return g.next = x, x.prev = g, d.next = m, m.prev = d, w.next = d, d.prev = w, b.next = w, w.prev = b, w;
3658
+ var p = new Z(g.i, g.x, g.y), w = new Z(x.i, x.x, x.y), m = g.next, b = x.prev;
3659
+ return g.next = x, x.prev = g, p.next = m, m.prev = p, w.next = p, p.prev = w, b.next = w, w.prev = b, w;
3641
3660
  }
3642
- function et(g, x, d, w) {
3643
- var m = new K(g, x, d);
3661
+ function et(g, x, p, w) {
3662
+ var m = new Z(g, x, p);
3644
3663
  return w ? (m.next = w.next, m.prev = w, w.next.prev = m, w.next = m) : (m.prev = m, m.next = m), m;
3645
3664
  }
3646
3665
  function nt(g) {
3647
3666
  g.next.prev = g.prev, g.prev.next = g.next, g.prevZ && (g.prevZ.nextZ = g.nextZ), g.nextZ && (g.nextZ.prevZ = g.prevZ);
3648
3667
  }
3649
- function K(g, x, d) {
3650
- this.i = g, this.x = x, this.y = d, this.prev = null, this.next = null, this.z = 0, this.prevZ = null, this.nextZ = null, this.steiner = !1;
3668
+ function Z(g, x, p) {
3669
+ this.i = g, this.x = x, this.y = p, this.prev = null, this.next = null, this.z = 0, this.prevZ = null, this.nextZ = null, this.steiner = !1;
3651
3670
  }
3652
- n.deviation = function(g, x, d, w) {
3653
- var m = x && x.length, b = m ? x[0] * d : g.length, A = Math.abs(Bt(g, 0, b, d));
3671
+ n.deviation = function(g, x, p, w) {
3672
+ var m = x && x.length, b = m ? x[0] * p : g.length, A = Math.abs(Bt(g, 0, b, p));
3654
3673
  if (m)
3655
3674
  for (var C = 0, N = x.length; C < N; C++) {
3656
- var _ = x[C] * d, $ = C < N - 1 ? x[C + 1] * d : g.length;
3657
- A -= Math.abs(Bt(g, _, $, d));
3675
+ var _ = x[C] * p, $ = C < N - 1 ? x[C + 1] * p : g.length;
3676
+ A -= Math.abs(Bt(g, _, $, p));
3658
3677
  }
3659
3678
  var j = 0;
3660
3679
  for (C = 0; C < w.length; C += 3) {
3661
- var B = w[C] * d, V = w[C + 1] * d, H = w[C + 2] * d;
3680
+ var B = w[C] * p, K = w[C + 1] * p, H = w[C + 2] * p;
3662
3681
  j += Math.abs(
3663
- (g[B] - g[H]) * (g[V + 1] - g[B + 1]) - (g[B] - g[V]) * (g[H + 1] - g[B + 1])
3682
+ (g[B] - g[H]) * (g[K + 1] - g[B + 1]) - (g[B] - g[K]) * (g[H + 1] - g[B + 1])
3664
3683
  );
3665
3684
  }
3666
3685
  return A === 0 && j === 0 ? 0 : Math.abs((j - A) / A);
3667
3686
  };
3668
- function Bt(g, x, d, w) {
3669
- for (var m = 0, b = x, A = d - w; b < d; b += w)
3687
+ function Bt(g, x, p, w) {
3688
+ for (var m = 0, b = x, A = p - w; b < p; b += w)
3670
3689
  m += (g[A] - g[b]) * (g[b + 1] + g[A + 1]), A = b;
3671
3690
  return m;
3672
3691
  }
3673
3692
  return n.flatten = function(g) {
3674
- for (var x = g[0][0].length, d = { vertices: [], holes: [], dimensions: x }, w = 0, m = 0; m < g.length; m++) {
3693
+ for (var x = g[0][0].length, p = { vertices: [], holes: [], dimensions: x }, w = 0, m = 0; m < g.length; m++) {
3675
3694
  for (var b = 0; b < g[m].length; b++)
3676
- for (var A = 0; A < x; A++) d.vertices.push(g[m][b][A]);
3677
- m > 0 && (w += g[m - 1].length, d.holes.push(w));
3695
+ for (var A = 0; A < x; A++) p.vertices.push(g[m][b][A]);
3696
+ m > 0 && (w += g[m - 1].length, p.holes.push(w));
3678
3697
  }
3679
- return d;
3698
+ return p;
3680
3699
  }, _t.exports;
3681
3700
  }
3682
- kn();
3683
- function re(n, e) {
3701
+ _n();
3702
+ function ie(n, e) {
3684
3703
  return n < e ? -1 : n > e ? 1 : n >= e ? 0 : NaN;
3685
3704
  }
3686
- function In(n) {
3687
- return n.length === 1 && (n = _n(n)), {
3705
+ function On(n) {
3706
+ return n.length === 1 && (n = Nn(n)), {
3688
3707
  left: function(e, t, o, i) {
3689
3708
  for (o == null && (o = 0), i == null && (i = e.length); o < i; ) {
3690
3709
  var a = o + i >>> 1;
@@ -3701,31 +3720,31 @@ function In(n) {
3701
3720
  }
3702
3721
  };
3703
3722
  }
3704
- function _n(n) {
3723
+ function Nn(n) {
3705
3724
  return function(e, t) {
3706
- return re(n(e), t);
3725
+ return ie(n(e), t);
3707
3726
  };
3708
3727
  }
3709
- In(re);
3710
- function e2(n, e, t = 3) {
3711
- const o = En(n, e, { maxSegmentLength: t });
3728
+ On(ie);
3729
+ function r2(n, e, t = 3) {
3730
+ const o = In(n, e, { maxSegmentLength: t });
3712
3731
  return {
3713
3732
  check: (i) => typeof i == "string",
3714
3733
  interpolate: (i, a, s) => o(s)
3715
3734
  };
3716
3735
  }
3717
- function n2(n) {
3736
+ function i2(n) {
3718
3737
  const e = (o) => n.width * o, t = (o) => n.height * o;
3719
3738
  return {
3720
3739
  scaleX: e,
3721
3740
  scaleY: t,
3722
- position: (o, i) => W({
3741
+ position: (o, i) => Y({
3723
3742
  x: e(o),
3724
3743
  y: t(i)
3725
3744
  })
3726
3745
  };
3727
3746
  }
3728
- function r2(n) {
3747
+ function o2(n) {
3729
3748
  const e = [];
3730
3749
  if (n.isAllKey) {
3731
3750
  for (let t = 0; t <= n.animations.length; t++)
@@ -3740,46 +3759,46 @@ export {
3740
3759
  xt as Alignment,
3741
3760
  ot as Anchor,
3742
3761
  s0 as Animate,
3743
- zn as Arrow,
3744
- Zn as BrowserCanvasRenderer,
3745
- jn as Circle,
3762
+ Hn as Arrow,
3763
+ Qn as BrowserCanvasRenderer,
3764
+ Un as Circle,
3746
3765
  G as Color,
3747
3766
  o0 as Easing,
3748
- Nn as FadeIn,
3749
- Rn as FadeOut,
3750
- _e as FontStyle,
3751
- Ne as FontWeight,
3752
- Hn as Grid,
3767
+ Fn as FadeIn,
3768
+ Bn as FadeOut,
3769
+ Oe as FontStyle,
3770
+ Re as FontWeight,
3771
+ $n as Grid,
3753
3772
  g0 as Group,
3754
- Fn as Hide,
3755
- Dn as IFrame,
3756
- Un as Image,
3757
- $n as Line,
3758
- Yn as Mask,
3773
+ Dn as Hide,
3774
+ zn as IFrame,
3775
+ Wn as Image,
3776
+ Yn as Line,
3777
+ Xn as Mask,
3759
3778
  U as ObjectType,
3760
- t2 as Opaque,
3761
- Wn as Path,
3762
- Kn as Pause,
3763
- Xn as Polygon,
3764
- W as Position,
3765
- Ve as Presentation,
3766
- Gn as Rectangle,
3767
- Vn as SVG,
3768
- qn as ScreenCapture,
3769
- Bn as Show,
3779
+ n2 as Opaque,
3780
+ Gn as Path,
3781
+ Jn as Pause,
3782
+ Kn as Polygon,
3783
+ Y as Position,
3784
+ Ze as Presentation,
3785
+ Vn as Rectangle,
3786
+ Zn as SVG,
3787
+ jn as ScreenCapture,
3788
+ qn as Show,
3770
3789
  at as Size,
3771
- Qn as Slide,
3790
+ t2 as Slide,
3772
3791
  lt as SlideObject,
3773
- q0 as SlideWebExtra,
3774
- De as Text,
3775
- Jn as TextUnit,
3776
- Ie as Transparent,
3777
- D0 as Update,
3778
- r2 as getKeySlideBuildIndices,
3779
- n2 as getSizingFunctions,
3780
- e2 as getSmoothPathInterpolator,
3781
- Be as getTextContentLength,
3782
- Qe as interpolateColor,
3783
- t1 as interpolateNumber
3792
+ z0 as SlideWebExtra,
3793
+ qe as Text,
3794
+ e2 as TextUnit,
3795
+ _e as Transparent,
3796
+ q0 as Update,
3797
+ o2 as getKeySlideBuildIndices,
3798
+ i2 as getSizingFunctions,
3799
+ r2 as getSmoothPathInterpolator,
3800
+ De as getTextContentLength,
3801
+ t1 as interpolateColor,
3802
+ n1 as interpolateNumber
3784
3803
  };
3785
3804
  //# sourceMappingURL=presenter.mjs.map