presenter 0.9.0 → 0.9.1

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,7 +1,7 @@
1
1
  var m0 = Object.defineProperty;
2
2
  var b0 = (n, e, t) => e in n ? m0(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
- var k = (n, e, t) => b0(n, typeof e != "symbol" ? e + "" : e, t);
4
- const dt = {
3
+ var I = (n, e, t) => b0(n, typeof e != "symbol" ? e + "" : e, t);
4
+ const ut = {
5
5
  /** Represents an animated change in an object's properties. */
6
6
  ANIMATE: "Animate",
7
7
  /** Represents a pause in the animation timeline. */
@@ -15,7 +15,7 @@ function A0(n) {
15
15
  function T0(n) {
16
16
  return --n * n * n + 1;
17
17
  }
18
- function M0(n) {
18
+ function L0(n) {
19
19
  return ((n *= 2) <= 1 ? n * n * n : (n -= 2) * n * n + 2) / 2;
20
20
  }
21
21
  var le = 1.70158;
@@ -33,7 +33,7 @@ var le = 1.70158;
33
33
  }
34
34
  return t.overshoot = n, t;
35
35
  })(le);
36
- var L0 = (function n(e) {
36
+ var M0 = (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,14 +42,14 @@ var L0 = (function n(e) {
42
42
  })(le);
43
43
  const he = {
44
44
  LINEAR: (n) => n,
45
- CUBIC: M0,
45
+ CUBIC: L0,
46
46
  CUBIC_IN: A0,
47
47
  CUBIC_OUT: T0,
48
- BACK_IN_OUT: L0.overshoot(0.8)
48
+ BACK_IN_OUT: M0.overshoot(0.8)
49
49
  }, C0 = he.LINEAR;
50
50
  function ce(n, e, t = {}) {
51
51
  return {
52
- type: dt.ANIMATE,
52
+ type: ut.ANIMATE,
53
53
  object: n,
54
54
  props: e,
55
55
  delay: 0,
@@ -62,14 +62,14 @@ function ce(n, e, t = {}) {
62
62
  ...typeof t == "number" ? { duration: t } : t
63
63
  };
64
64
  }
65
- function gi(n, e = {}) {
65
+ function pi(n, e = {}) {
66
66
  return ce(n, { opacity: 1 }, {
67
67
  duration: 500,
68
68
  easing: he.CUBIC,
69
69
  ...typeof e == "number" ? { duration: e } : e
70
70
  });
71
71
  }
72
- function pi(n, e = {}) {
72
+ function xi(n, e = {}) {
73
73
  return ce(n, { opacity: 0 }, {
74
74
  duration: 500,
75
75
  easing: he.CUBIC,
@@ -78,7 +78,7 @@ function pi(n, e = {}) {
78
78
  }
79
79
  function Ke(n, e, t = {}) {
80
80
  return {
81
- type: dt.UPDATE,
81
+ type: ut.UPDATE,
82
82
  isKey: !1,
83
83
  object: n,
84
84
  props: e,
@@ -86,13 +86,13 @@ function Ke(n, e, t = {}) {
86
86
  ...t
87
87
  };
88
88
  }
89
- function xi(n) {
89
+ function yi(n) {
90
90
  return Ke(n, { opacity: 0 });
91
91
  }
92
- function yi(n) {
92
+ function vi(n) {
93
93
  return Ke(n, { opacity: 1 });
94
94
  }
95
- const lt = {
95
+ const ot = {
96
96
  TOP_LEFT: "TopLeft",
97
97
  TOP: "Top",
98
98
  TOP_RIGHT: "TopRight",
@@ -102,7 +102,7 @@ const lt = {
102
102
  BOTTOM_LEFT: "BottomLeft",
103
103
  BOTTOM: "Bottom",
104
104
  BOTTOM_RIGHT: "BottomRight"
105
- }, et = lt.TOP_LEFT;
105
+ }, tt = ot.TOP_LEFT;
106
106
  function G(n, e = 0, t = 0, o = 1) {
107
107
  if (typeof n == "string") {
108
108
  const i = n.replace("#", ""), a = parseInt(i, 16);
@@ -143,7 +143,7 @@ function Ze(n = null) {
143
143
  return {
144
144
  content: null,
145
145
  setup: null,
146
- anchor: lt.TOP_LEFT,
146
+ anchor: ot.TOP_LEFT,
147
147
  height: 0,
148
148
  width: 0,
149
149
  x: 0,
@@ -158,7 +158,7 @@ function It(n, e = null) {
158
158
  const { red: t, green: o, blue: i } = n, a = t << 16 | o << 8 | i, s = Math.round(Je(n, e) * 255);
159
159
  return `#${a.toString(16).padStart(6, "0")}${s !== 255 ? s.toString(16).padStart(2, "0") : ""}`;
160
160
  }
161
- function vi(n = null) {
161
+ function wi(n = null) {
162
162
  const {
163
163
  url: e = "https://wikipedia.org/",
164
164
  backgroundColor: t = G.TRANSPARENT,
@@ -166,7 +166,7 @@ function vi(n = null) {
166
166
  strokeWidth: i = 0,
167
167
  pointerEvents: a = "auto",
168
168
  scale: s = 1,
169
- anchor: r = et,
169
+ anchor: r = tt,
170
170
  height: l = 1e3,
171
171
  width: c = 1e3,
172
172
  x: u = 0,
@@ -188,14 +188,14 @@ const yt = {
188
188
  CENTER: "center",
189
189
  RIGHT: "right"
190
190
  }, S0 = yt.LEFT;
191
- function ht(n, e) {
191
+ function st(n, e) {
192
192
  throw new Error("Unexpected value: " + n);
193
193
  }
194
- function wi(n = null) {
194
+ function mi(n = null) {
195
195
  const {
196
196
  alignment: e = yt.LEFT,
197
197
  scale: t = 1,
198
- anchor: o = et,
198
+ anchor: o = tt,
199
199
  height: i = 1e3,
200
200
  width: a = 1e3,
201
201
  x: s = 0,
@@ -214,7 +214,7 @@ function wi(n = null) {
214
214
  u.style.transformOrigin = "top right";
215
215
  break;
216
216
  default:
217
- ht(e);
217
+ st(e);
218
218
  }
219
219
  c.appendChild(u);
220
220
  const g = {
@@ -244,7 +244,7 @@ function wi(n = null) {
244
244
  y: r
245
245
  });
246
246
  }
247
- const V = {
247
+ const z = {
248
248
  ARROW: "Arrow",
249
249
  CIRCLE: "Circle",
250
250
  GROUP: "Group",
@@ -259,17 +259,17 @@ const V = {
259
259
  SVG: "SVG",
260
260
  TEXT: "Text"
261
261
  };
262
- function nt(n) {
262
+ function et(n) {
263
263
  return {
264
- objectType: V.SLIDE_OBJECT,
264
+ objectType: z.SLIDE_OBJECT,
265
265
  opacity: 1,
266
266
  ...n
267
267
  };
268
268
  }
269
- function mi(n = null) {
269
+ function bi(n = null) {
270
270
  const { arrowheadSize: e, width: t = 10, ...o } = n || {}, i = e ?? t * 4;
271
- return nt({
272
- objectType: V.ARROW,
271
+ return et({
272
+ objectType: z.ARROW,
273
273
  arrowheadSize: i,
274
274
  color: J,
275
275
  drawn: 1,
@@ -285,10 +285,10 @@ function mi(n = null) {
285
285
  });
286
286
  }
287
287
  const P0 = 50;
288
- function bi(n = null) {
289
- return nt({
290
- objectType: V.CIRCLE,
291
- anchor: et,
288
+ function Ai(n = null) {
289
+ return et({
290
+ objectType: z.CIRCLE,
291
+ anchor: tt,
292
292
  strokeColor: J,
293
293
  strokeWidth: 0,
294
294
  drawn: 1,
@@ -300,9 +300,9 @@ function bi(n = null) {
300
300
  });
301
301
  }
302
302
  function we(n, e = null) {
303
- return nt({
304
- objectType: V.GROUP,
305
- anchor: et,
303
+ return et({
304
+ objectType: z.GROUP,
305
+ anchor: tt,
306
306
  height: 0,
307
307
  objects: n,
308
308
  previewColor: null,
@@ -324,9 +324,9 @@ function we(n, e = null) {
324
324
  ...e
325
325
  });
326
326
  }
327
- function Ai(n) {
327
+ function Ti(n) {
328
328
  const {
329
- anchor: e = et,
329
+ anchor: e = tt,
330
330
  cols: t = 1,
331
331
  rows: o = 1,
332
332
  gapX: i = 0,
@@ -339,20 +339,20 @@ function Ai(n) {
339
339
  objects: g = () => null
340
340
  } = n, h = [], f = [];
341
341
  let v = 0, y = 0;
342
- for (let L = 0; L < o; L++) {
343
- const P = [];
342
+ for (let M = 0; M < o; M++) {
343
+ const C = [];
344
344
  v = 0;
345
345
  let S = 0;
346
346
  for (let E = 0; E < t; E++) {
347
- const M = g(L, E), I = typeof r == "function" ? r(L, E) : r, F = typeof l == "function" ? l(L, E) : l;
348
- P.push(M), M != null && f.push(
349
- we([M], {
347
+ const L = g(M, E), _ = typeof r == "function" ? r(M, E) : r, F = typeof l == "function" ? l(M, E) : l;
348
+ C.push(L), L != null && f.push(
349
+ we([L], {
350
350
  x: v,
351
351
  y
352
352
  })
353
- ), v += I + i, S = Math.max(S, F);
353
+ ), v += _ + i, S = Math.max(S, F);
354
354
  }
355
- h.push(P), y += S + a;
355
+ h.push(C), y += S + a;
356
356
  }
357
357
  return {
358
358
  grid: we(f, {
@@ -366,10 +366,10 @@ function Ai(n) {
366
366
  objects: h
367
367
  };
368
368
  }
369
- function Ti(n = null) {
370
- return nt({
371
- objectType: V.IMAGE,
372
- anchor: et,
369
+ function Li(n = null) {
370
+ return et({
371
+ objectType: z.IMAGE,
372
+ anchor: tt,
373
373
  cornerRadius: 0,
374
374
  height: 100,
375
375
  imageId: "",
@@ -381,8 +381,8 @@ function Ti(n = null) {
381
381
  });
382
382
  }
383
383
  function Mi(n = null) {
384
- return nt({
385
- objectType: V.LINE,
384
+ return et({
385
+ objectType: z.LINE,
386
386
  color: J,
387
387
  drawn: 1,
388
388
  endX: 100,
@@ -395,10 +395,10 @@ function Mi(n = null) {
395
395
  ...n
396
396
  });
397
397
  }
398
- function Li(n, e = null) {
399
- return nt({
400
- objectType: V.MASK,
401
- anchor: et,
398
+ function Ci(n, e = null) {
399
+ return et({
400
+ objectType: z.MASK,
401
+ anchor: tt,
402
402
  height: 100,
403
403
  objects: n,
404
404
  preview: !1,
@@ -408,7 +408,7 @@ function Li(n, e = null) {
408
408
  ...e
409
409
  });
410
410
  }
411
- var E0 = Object.defineProperty, _ = (n, e) => E0(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 }, I0 = /([astvzqmhlc])([^astvzqmhlc]*)/gi, k0 = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi, O0 = _((n) => {
411
+ var E0 = Object.defineProperty, O = (n, e) => E0(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 }, I0 = /([astvzqmhlc])([^astvzqmhlc]*)/gi, k0 = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi, O0 = O((n) => {
412
412
  const e = (n && n.length > 0 ? n : "M0,0").match(I0);
413
413
  if (!e) throw new Error(`No path elements found in string ${n}`);
414
414
  return e.reduce((t, o) => {
@@ -427,51 +427,51 @@ var E0 = Object.defineProperty, _ = (n, e) => E0(n, "name", { value: e, configur
427
427
  }
428
428
  return t;
429
429
  }, []);
430
- }, "default"), _0 = _((n) => {
430
+ }, "default"), _0 = O((n) => {
431
431
  const e = n.match(k0);
432
432
  return e ? e.map(Number) : [];
433
- }, "parseValues"), bt, tt = (bt = class {
433
+ }, "parseValues"), bt, Q = (bt = class {
434
434
  constructor(e, t, o, i) {
435
- k(this, "x0");
436
- k(this, "x1");
437
- k(this, "y0");
438
- k(this, "y1");
439
- k(this, "getTotalLength", _(() => Math.sqrt(Math.pow(this.x0 - this.x1, 2) + Math.pow(this.y0 - this.y1, 2)), "getTotalLength"));
440
- k(this, "getPointAtLength", _((e) => {
435
+ I(this, "x0");
436
+ I(this, "x1");
437
+ I(this, "y0");
438
+ I(this, "y1");
439
+ I(this, "getTotalLength", O(() => Math.sqrt(Math.pow(this.x0 - this.x1, 2) + Math.pow(this.y0 - this.y1, 2)), "getTotalLength"));
440
+ I(this, "getPointAtLength", O((e) => {
441
441
  let t = e / Math.sqrt(Math.pow(this.x0 - this.x1, 2) + Math.pow(this.y0 - this.y1, 2));
442
442
  t = Number.isNaN(t) ? 1 : t;
443
443
  const o = (this.x1 - this.x0) * t, i = (this.y1 - this.y0) * t;
444
444
  return { x: this.x0 + o, y: this.y0 + i };
445
445
  }, "getPointAtLength"));
446
- k(this, "getTangentAtLength", _((e) => {
446
+ I(this, "getTangentAtLength", O((e) => {
447
447
  const t = Math.sqrt((this.x1 - this.x0) * (this.x1 - this.x0) + (this.y1 - this.y0) * (this.y1 - this.y0));
448
448
  return { x: (this.x1 - this.x0) / t, y: (this.y1 - this.y0) / t };
449
449
  }, "getTangentAtLength"));
450
- k(this, "getPropertiesAtLength", _((e) => {
450
+ I(this, "getPropertiesAtLength", O((e) => {
451
451
  const t = this.getPointAtLength(e), o = this.getTangentAtLength(e);
452
452
  return { x: t.x, y: t.y, tangentX: o.x, tangentY: o.y };
453
453
  }, "getPropertiesAtLength"));
454
454
  this.x0 = e, this.x1 = t, this.y0 = o, this.y1 = i;
455
455
  }
456
- }, _(bt, "LinearPosition"), bt), At, me = (At = class {
456
+ }, O(bt, "LinearPosition"), bt), At, me = (At = class {
457
457
  constructor(e, t, o, i, a, s, r, l, c) {
458
- k(this, "x0");
459
- k(this, "y0");
460
- k(this, "rx");
461
- k(this, "ry");
462
- k(this, "xAxisRotate");
463
- k(this, "LargeArcFlag");
464
- k(this, "SweepFlag");
465
- k(this, "x1");
466
- k(this, "y1");
467
- k(this, "length");
468
- k(this, "getTotalLength", _(() => this.length, "getTotalLength"));
469
- k(this, "getPointAtLength", _((e) => {
458
+ I(this, "x0");
459
+ I(this, "y0");
460
+ I(this, "rx");
461
+ I(this, "ry");
462
+ I(this, "xAxisRotate");
463
+ I(this, "LargeArcFlag");
464
+ I(this, "SweepFlag");
465
+ I(this, "x1");
466
+ I(this, "y1");
467
+ I(this, "length");
468
+ I(this, "getTotalLength", O(() => this.length, "getTotalLength"));
469
+ I(this, "getPointAtLength", O((e) => {
470
470
  e < 0 ? e = 0 : e > this.length && (e = this.length);
471
471
  const t = be({ 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);
472
472
  return { x: t.x, y: t.y };
473
473
  }, "getPointAtLength"));
474
- k(this, "getTangentAtLength", _((e) => {
474
+ I(this, "getTangentAtLength", O((e) => {
475
475
  e < 0 ? e = 0 : e > this.length && (e = this.length);
476
476
  const t = 0.05, o = this.getPointAtLength(e);
477
477
  let i;
@@ -479,7 +479,7 @@ var E0 = Object.defineProperty, _ = (n, e) => E0(n, "name", { value: e, configur
479
479
  const a = i.x - o.x, s = i.y - o.y, r = Math.sqrt(a * a + s * s);
480
480
  return e < this.length - t ? { x: -a / r, y: -s / r } : { x: a / r, y: s / r };
481
481
  }, "getTangentAtLength"));
482
- k(this, "getPropertiesAtLength", _((e) => {
482
+ I(this, "getPropertiesAtLength", O((e) => {
483
483
  const t = this.getTangentAtLength(e), o = this.getPointAtLength(e);
484
484
  return { x: o.x, y: o.y, tangentX: t.x, tangentY: t.y };
485
485
  }, "getPropertiesAtLength"));
@@ -489,7 +489,7 @@ var E0 = Object.defineProperty, _ = (n, e) => E0(n, "name", { value: e, configur
489
489
  });
490
490
  this.length = u.arcLength;
491
491
  }
492
- }, _(At, "Arc"), At), be = _((n, e, t, o, i, a, s, r) => {
492
+ }, O(At, "Arc"), At), be = O((n, e, t, o, i, a, s, r) => {
493
493
  e = Math.abs(e), t = Math.abs(t), o = R0(o, 360);
494
494
  const l = F0(o);
495
495
  if (n.x === s.x && n.y === s.y) return { x: n.x, y: n.y, ellipticalArcAngle: 0 };
@@ -498,12 +498,12 @@ var E0 = Object.defineProperty, _ = (n, e) => E0(n, "name", { value: e, configur
498
498
  h > 1 && (e = Math.sqrt(h) * e, t = Math.sqrt(h) * t);
499
499
  let f = (Math.pow(e, 2) * Math.pow(t, 2) - Math.pow(e, 2) * Math.pow(g.y, 2) - Math.pow(t, 2) * Math.pow(g.x, 2)) / (Math.pow(e, 2) * Math.pow(g.y, 2) + Math.pow(t, 2) * Math.pow(g.x, 2));
500
500
  f = f < 0 ? 0 : f;
501
- const v = (i !== a ? 1 : -1) * Math.sqrt(f), y = v * (e * g.y / t), T = v * (-t * g.x / e), L = { x: Math.cos(l) * y - Math.sin(l) * T + (n.x + s.x) / 2, y: Math.sin(l) * y + Math.cos(l) * T + (n.y + s.y) / 2 }, P = { x: (g.x - y) / e, y: (g.y - T) / t }, S = Te({ x: 1, y: 0 }, P);
502
- let E = Te(P, { x: (-g.x - y) / e, y: (-g.y - T) / t });
501
+ const v = (i !== a ? 1 : -1) * Math.sqrt(f), y = v * (e * g.y / t), T = v * (-t * g.x / e), M = { x: Math.cos(l) * y - Math.sin(l) * T + (n.x + s.x) / 2, y: Math.sin(l) * y + Math.cos(l) * T + (n.y + s.y) / 2 }, C = { x: (g.x - y) / e, y: (g.y - T) / t }, S = Te({ x: 1, y: 0 }, C);
502
+ let E = Te(C, { x: (-g.x - y) / e, y: (-g.y - T) / t });
503
503
  !a && E > 0 ? E -= 2 * Math.PI : a && E < 0 && (E += 2 * Math.PI), E %= 2 * Math.PI;
504
- const M = S + E * r, I = e * Math.cos(M), F = t * Math.sin(M);
505
- return { x: Math.cos(l) * I - Math.sin(l) * F + L.x, y: Math.sin(l) * I + Math.cos(l) * F + L.y, ellipticalArcStartAngle: S, ellipticalArcEndAngle: S + E, ellipticalArcAngle: M, ellipticalArcCenter: L, resultantRx: e, resultantRy: t };
506
- }, "pointOnEllipticalArc"), N0 = _((n, e) => {
504
+ const L = S + E * r, _ = e * Math.cos(L), F = t * Math.sin(L);
505
+ return { x: Math.cos(l) * _ - Math.sin(l) * F + M.x, y: Math.sin(l) * _ + Math.cos(l) * F + M.y, ellipticalArcStartAngle: S, ellipticalArcEndAngle: S + E, ellipticalArcAngle: L, ellipticalArcCenter: M, resultantRx: e, resultantRy: t };
506
+ }, "pointOnEllipticalArc"), N0 = O((n, e) => {
507
507
  n = n ?? 500;
508
508
  let t = 0;
509
509
  const o = [], i = [];
@@ -513,28 +513,28 @@ var E0 = Object.defineProperty, _ = (n, e) => E0(n, "name", { value: e, configur
513
513
  a = e(l), t += Ae(s, a), i.push([s, a]), o.push({ t: l, arcLength: t }), s = a;
514
514
  }
515
515
  return a = e(1), i.push([s, a]), t += Ae(s, a), o.push({ t: 1, arcLength: t }), { arcLength: t, arcLengthMap: o, approximationLines: i };
516
- }, "approximateArcLengthOfCurve"), R0 = _((n, e) => (n % e + e) % e, "mod"), F0 = _((n) => n * (Math.PI / 180), "toRadians"), Ae = _((n, e) => Math.sqrt(Math.pow(e.x - n.x, 2) + Math.pow(e.y - n.y, 2)), "distance"), B0 = _((n, e, t) => Math.min(Math.max(n, e), t), "clamp"), Te = _((n, e) => {
516
+ }, "approximateArcLengthOfCurve"), R0 = O((n, e) => (n % e + e) % e, "mod"), F0 = O((n) => n * (Math.PI / 180), "toRadians"), Ae = O((n, e) => Math.sqrt(Math.pow(e.x - n.x, 2) + Math.pow(e.y - n.y, 2)), "distance"), B0 = O((n, e, t) => Math.min(Math.max(n, e), t), "clamp"), Te = O((n, e) => {
517
517
  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)));
518
518
  return (n.x * e.y - n.y * e.x < 0 ? -1 : 1) * Math.acos(t / o);
519
- }, "angleBetween"), D0 = [[], [], [-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]], q0 = [[], [], [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]], z0 = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]], V0 = _((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"), j0 = _((n, e, t) => Qe([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"), H0 = _((n, e, t) => {
519
+ }, "angleBetween"), D0 = [[], [], [-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]], q0 = [[], [], [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]], z0 = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]], V0 = 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"), j0 = O((n, e, t) => Qe([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"), U0 = O((n, e, t) => {
520
520
  let o, i;
521
521
  const a = t / 2;
522
522
  o = 0;
523
523
  for (let s = 0; s < 20; s++) i = a * D0[20][s] + a, o += q0[20][s] * t0(n, e, i);
524
524
  return a * o;
525
- }, "getCubicArcLength"), Qe = _((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"), U0 = _((n, e, t) => {
525
+ }, "getCubicArcLength"), Qe = 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"), H0 = O((n, e, t) => {
526
526
  t === void 0 && (t = 1);
527
527
  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), l = 4 * (o * a + i * s), c = a * a + s * s;
528
528
  if (r === 0) return t * Math.sqrt(Math.pow(n[2] - n[0], 2) + Math.pow(e[2] - e[0], 2));
529
529
  const u = l / (2 * r), g = t + u, h = c / r - u * u, f = g * g + h > 0 ? Math.sqrt(g * g + h) : 0, v = u * u + h > 0 ? Math.sqrt(u * u + h) : 0, y = u + Math.sqrt(u * u + h) !== 0 && (g + f) / (u + v) !== 0 ? h * Math.log(Math.abs((g + f) / (u + v))) : 0;
530
530
  return Math.sqrt(r) / 2 * (g * f - u * v + y);
531
- }, "getQuadraticArcLength"), $0 = _((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
+ }, "getQuadraticArcLength"), Y0 = 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");
532
532
  function t0(n, e, t) {
533
533
  const o = te(1, t, n), i = te(1, t, e), a = o * o + i * i;
534
534
  return Math.sqrt(a);
535
535
  }
536
- _(t0, "BFunc");
537
- var te = _((n, e, t) => {
536
+ O(t0, "BFunc");
537
+ var te = O((n, e, t) => {
538
538
  const o = t.length - 1;
539
539
  let i, a;
540
540
  if (o === 0) return 0;
@@ -546,7 +546,7 @@ var te = _((n, e, t) => {
546
546
  i = new Array(o);
547
547
  for (let s = 0; s < o; s++) i[s] = o * (t[s + 1] - t[s]);
548
548
  return te(n - 1, e, i);
549
- }, "getDerivative"), Vt = _((n, e, t) => {
549
+ }, "getDerivative"), Vt = O((n, e, t) => {
550
550
  let o = 1, i = n / e, a = (n - t(i)) / e, s = 0;
551
551
  for (; o > 1e-3; ) {
552
552
  const r = t(i + a), l = Math.abs(n - r) / e;
@@ -558,69 +558,69 @@ var te = _((n, e, t) => {
558
558
  if (s++, s > 500) break;
559
559
  }
560
560
  return i;
561
- }, "t2length"), Tt, ct = (Tt = class {
561
+ }, "t2length"), Tt, at = (Tt = class {
562
562
  constructor(e, t, o, i, a, s, r, l) {
563
- k(this, "a");
564
- k(this, "b");
565
- k(this, "c");
566
- k(this, "d");
567
- k(this, "length");
568
- k(this, "getArcLength");
569
- k(this, "getPoint");
570
- k(this, "getDerivative");
571
- k(this, "getTotalLength", _(() => this.length, "getTotalLength"));
572
- k(this, "getPointAtLength", _((e) => {
563
+ I(this, "a");
564
+ I(this, "b");
565
+ I(this, "c");
566
+ I(this, "d");
567
+ I(this, "length");
568
+ I(this, "getArcLength");
569
+ I(this, "getPoint");
570
+ I(this, "getDerivative");
571
+ I(this, "getTotalLength", O(() => this.length, "getTotalLength"));
572
+ I(this, "getPointAtLength", O((e) => {
573
573
  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 = Vt(e, this.length, (a) => this.getArcLength(t, o, a));
574
574
  return this.getPoint(t, o, i);
575
575
  }, "getPointAtLength"));
576
- k(this, "getTangentAtLength", _((e) => {
576
+ I(this, "getTangentAtLength", O((e) => {
577
577
  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 = Vt(e, this.length, (l) => this.getArcLength(t, o, l)), a = this.getDerivative(t, o, i), s = Math.sqrt(a.x * a.x + a.y * a.y);
578
578
  let r;
579
579
  return r = s > 0 ? { x: a.x / s, y: a.y / s } : { x: 0, y: 0 }, r;
580
580
  }, "getTangentAtLength"));
581
- k(this, "getPropertiesAtLength", _((e) => {
581
+ I(this, "getPropertiesAtLength", O((e) => {
582
582
  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 = Vt(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);
583
583
  let r;
584
584
  r = s > 0 ? { x: a.x / s, y: a.y / s } : { x: 0, y: 0 };
585
585
  const l = this.getPoint(t, o, i);
586
586
  return { x: l.x, y: l.y, tangentX: r.x, tangentY: r.y };
587
587
  }, "getPropertiesAtLength"));
588
- k(this, "getC", _(() => this.c, "getC"));
589
- k(this, "getD", _(() => this.d, "getD"));
590
- this.a = { x: e, y: t }, this.b = { x: o, y: i }, this.c = { x: a, y: s }, r !== void 0 && l !== void 0 ? (this.getArcLength = H0, this.getPoint = V0, this.getDerivative = j0, this.d = { x: r, y: l }) : (this.getArcLength = U0, this.getPoint = Qe, this.getDerivative = $0, 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);
588
+ I(this, "getC", O(() => this.c, "getC"));
589
+ I(this, "getD", O(() => this.d, "getD"));
590
+ this.a = { x: e, y: t }, this.b = { x: o, y: i }, this.c = { x: a, y: s }, r !== void 0 && l !== void 0 ? (this.getArcLength = U0, this.getPoint = V0, this.getDerivative = j0, this.d = { x: r, y: l }) : (this.getArcLength = H0, this.getPoint = Qe, this.getDerivative = Y0, 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);
591
591
  }
592
- }, _(Tt, "Bezier"), Tt), Mt, W0 = (Mt = class {
592
+ }, O(Tt, "Bezier"), Tt), Lt, $0 = (Lt = class {
593
593
  constructor(e) {
594
- k(this, "length", 0);
595
- k(this, "partial_lengths", []);
596
- k(this, "functions", []);
597
- k(this, "initial_point", null);
598
- k(this, "getPartAtLength", _((e) => {
594
+ I(this, "length", 0);
595
+ I(this, "partial_lengths", []);
596
+ I(this, "functions", []);
597
+ I(this, "initial_point", null);
598
+ I(this, "getPartAtLength", O((e) => {
599
599
  e < 0 ? e = 0 : e > this.length && (e = this.length);
600
600
  let t = this.partial_lengths.length - 1;
601
601
  for (; this.partial_lengths[t] >= e && t > 0; ) t--;
602
602
  return t++, { fraction: e - this.partial_lengths[t - 1], i: t };
603
603
  }, "getPartAtLength"));
604
- k(this, "getTotalLength", _(() => this.length, "getTotalLength"));
605
- k(this, "getPointAtLength", _((e) => {
604
+ I(this, "getTotalLength", O(() => this.length, "getTotalLength"));
605
+ I(this, "getPointAtLength", O((e) => {
606
606
  const t = this.getPartAtLength(e), o = this.functions[t.i];
607
607
  if (o) return o.getPointAtLength(t.fraction);
608
608
  if (this.initial_point) return this.initial_point;
609
609
  throw new Error("Wrong function at this part.");
610
610
  }, "getPointAtLength"));
611
- k(this, "getTangentAtLength", _((e) => {
611
+ I(this, "getTangentAtLength", O((e) => {
612
612
  const t = this.getPartAtLength(e), o = this.functions[t.i];
613
613
  if (o) return o.getTangentAtLength(t.fraction);
614
614
  if (this.initial_point) return { x: 0, y: 0 };
615
615
  throw new Error("Wrong function at this part.");
616
616
  }, "getTangentAtLength"));
617
- k(this, "getPropertiesAtLength", _((e) => {
617
+ I(this, "getPropertiesAtLength", O((e) => {
618
618
  const t = this.getPartAtLength(e), o = this.functions[t.i];
619
619
  if (o) return o.getPropertiesAtLength(t.fraction);
620
620
  if (this.initial_point) return { x: this.initial_point.x, y: this.initial_point.y, tangentX: 0, tangentY: 0 };
621
621
  throw new Error("Wrong function at this part.");
622
622
  }, "getPropertiesAtLength"));
623
- k(this, "getParts", _(() => {
623
+ I(this, "getParts", O(() => {
624
624
  const e = [];
625
625
  for (let t = 0; t < this.functions.length; t++) if (this.functions[t] !== null) {
626
626
  this.functions[t] = this.functions[t];
@@ -634,55 +634,55 @@ var te = _((n, e, t) => {
634
634
  for (let r = 0; r < t.length; r++) {
635
635
  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] });
636
636
  else if (t[r][0] === "m") i = [t[r][1] + i[0], t[r][2] + i[1]], s = [i[0], i[1]], this.functions.push(null);
637
- else if (t[r][0] === "L") this.length += Math.sqrt(Math.pow(i[0] - t[r][1], 2) + Math.pow(i[1] - t[r][2], 2)), this.functions.push(new tt(i[0], t[r][1], i[1], t[r][2])), i = [t[r][1], t[r][2]];
638
- else if (t[r][0] === "l") this.length += Math.sqrt(Math.pow(t[r][1], 2) + Math.pow(t[r][2], 2)), this.functions.push(new tt(i[0], t[r][1] + i[0], i[1], t[r][2] + i[1])), i = [t[r][1] + i[0], t[r][2] + i[1]];
639
- else if (t[r][0] === "H") this.length += Math.abs(i[0] - t[r][1]), this.functions.push(new tt(i[0], t[r][1], i[1], i[1])), i[0] = t[r][1];
640
- else if (t[r][0] === "h") this.length += Math.abs(t[r][1]), this.functions.push(new tt(i[0], i[0] + t[r][1], i[1], i[1])), i[0] = t[r][1] + i[0];
641
- else if (t[r][0] === "V") this.length += Math.abs(i[1] - t[r][1]), this.functions.push(new tt(i[0], i[0], i[1], t[r][1])), i[1] = t[r][1];
642
- else if (t[r][0] === "v") this.length += Math.abs(t[r][1]), this.functions.push(new tt(i[0], i[0], i[1], i[1] + t[r][1])), i[1] = t[r][1] + i[1];
643
- else if (t[r][0] === "z" || t[r][0] === "Z") this.length += Math.sqrt(Math.pow(s[0] - i[0], 2) + Math.pow(s[1] - i[1], 2)), this.functions.push(new tt(i[0], s[0], i[1], s[1])), i = [s[0], s[1]];
644
- else if (t[r][0] === "C") o = new ct(i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4], t[r][5], t[r][6]), this.length += o.getTotalLength(), i = [t[r][5], t[r][6]], this.functions.push(o);
645
- else if (t[r][0] === "c") o = new ct(i[0], i[1], i[0] + t[r][1], i[1] + t[r][2], i[0] + t[r][3], i[1] + t[r][4], i[0] + t[r][5], i[1] + t[r][6]), o.getTotalLength() > 0 ? (this.length += o.getTotalLength(), this.functions.push(o), i = [t[r][5] + i[0], t[r][6] + i[1]]) : this.functions.push(new tt(i[0], i[0], i[1], i[1]));
637
+ else if (t[r][0] === "L") this.length += Math.sqrt(Math.pow(i[0] - t[r][1], 2) + Math.pow(i[1] - t[r][2], 2)), this.functions.push(new Q(i[0], t[r][1], i[1], t[r][2])), i = [t[r][1], t[r][2]];
638
+ else if (t[r][0] === "l") this.length += Math.sqrt(Math.pow(t[r][1], 2) + Math.pow(t[r][2], 2)), this.functions.push(new Q(i[0], t[r][1] + i[0], i[1], t[r][2] + i[1])), i = [t[r][1] + i[0], t[r][2] + i[1]];
639
+ else if (t[r][0] === "H") this.length += Math.abs(i[0] - t[r][1]), this.functions.push(new Q(i[0], t[r][1], i[1], i[1])), i[0] = t[r][1];
640
+ else if (t[r][0] === "h") this.length += Math.abs(t[r][1]), this.functions.push(new Q(i[0], i[0] + t[r][1], i[1], i[1])), i[0] = t[r][1] + i[0];
641
+ else if (t[r][0] === "V") this.length += Math.abs(i[1] - t[r][1]), this.functions.push(new Q(i[0], i[0], i[1], t[r][1])), i[1] = t[r][1];
642
+ else if (t[r][0] === "v") this.length += Math.abs(t[r][1]), this.functions.push(new Q(i[0], i[0], i[1], i[1] + t[r][1])), i[1] = t[r][1] + i[1];
643
+ else if (t[r][0] === "z" || t[r][0] === "Z") this.length += Math.sqrt(Math.pow(s[0] - i[0], 2) + Math.pow(s[1] - i[1], 2)), this.functions.push(new Q(i[0], s[0], i[1], s[1])), i = [s[0], s[1]];
644
+ else if (t[r][0] === "C") o = new at(i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4], t[r][5], t[r][6]), this.length += o.getTotalLength(), i = [t[r][5], t[r][6]], this.functions.push(o);
645
+ else if (t[r][0] === "c") o = new at(i[0], i[1], i[0] + t[r][1], i[1] + t[r][2], i[0] + t[r][3], i[1] + t[r][4], i[0] + t[r][5], i[1] + t[r][6]), o.getTotalLength() > 0 ? (this.length += o.getTotalLength(), this.functions.push(o), i = [t[r][5] + i[0], t[r][6] + i[1]]) : this.functions.push(new Q(i[0], i[0], i[1], i[1]));
646
646
  else if (t[r][0] === "S") {
647
647
  if (r > 0 && ["C", "c", "S", "s"].indexOf(t[r - 1][0]) > -1) {
648
648
  if (o) {
649
649
  const l = o.getC();
650
- o = new ct(i[0], i[1], 2 * i[0] - l.x, 2 * i[1] - l.y, t[r][1], t[r][2], t[r][3], t[r][4]);
650
+ o = new at(i[0], i[1], 2 * i[0] - l.x, 2 * i[1] - l.y, t[r][1], t[r][2], t[r][3], t[r][4]);
651
651
  }
652
- } else o = new ct(i[0], i[1], i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4]);
652
+ } else o = new at(i[0], i[1], i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4]);
653
653
  o && (this.length += o.getTotalLength(), i = [t[r][3], t[r][4]], this.functions.push(o));
654
654
  } else if (t[r][0] === "s") {
655
655
  if (r > 0 && ["C", "c", "S", "s"].indexOf(t[r - 1][0]) > -1) {
656
656
  if (o) {
657
657
  const l = o.getC(), c = o.getD();
658
- o = new ct(i[0], i[1], i[0] + c.x - l.x, i[1] + c.y - l.y, i[0] + t[r][1], i[1] + t[r][2], i[0] + t[r][3], i[1] + t[r][4]);
658
+ o = new at(i[0], i[1], i[0] + c.x - l.x, i[1] + c.y - l.y, i[0] + t[r][1], i[1] + t[r][2], i[0] + t[r][3], i[1] + t[r][4]);
659
659
  }
660
- } else o = new ct(i[0], i[1], i[0], i[1], i[0] + t[r][1], i[1] + t[r][2], i[0] + t[r][3], i[1] + t[r][4]);
660
+ } else o = new at(i[0], i[1], i[0], i[1], i[0] + t[r][1], i[1] + t[r][2], i[0] + t[r][3], i[1] + t[r][4]);
661
661
  o && (this.length += o.getTotalLength(), i = [t[r][3] + i[0], t[r][4] + i[1]], this.functions.push(o));
662
662
  } else if (t[r][0] === "Q") {
663
663
  if (i[0] === t[r][1] && i[1] === t[r][2]) {
664
- const l = new tt(t[r][1], t[r][3], t[r][2], t[r][4]);
664
+ const l = new Q(t[r][1], t[r][3], t[r][2], t[r][4]);
665
665
  this.length += l.getTotalLength(), this.functions.push(l);
666
- } else o = new ct(i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4], void 0, void 0), this.length += o.getTotalLength(), this.functions.push(o);
666
+ } else o = new at(i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4], void 0, void 0), this.length += o.getTotalLength(), this.functions.push(o);
667
667
  i = [t[r][3], t[r][4]], a = [t[r][1], t[r][2]];
668
668
  } else if (t[r][0] === "q") {
669
- if (t[r][1] !== 0 || t[r][2] !== 0) o = new ct(i[0], i[1], i[0] + t[r][1], i[1] + t[r][2], i[0] + t[r][3], i[1] + t[r][4], void 0, void 0), this.length += o.getTotalLength(), this.functions.push(o);
669
+ if (t[r][1] !== 0 || t[r][2] !== 0) o = new at(i[0], i[1], i[0] + t[r][1], i[1] + t[r][2], i[0] + t[r][3], i[1] + t[r][4], void 0, void 0), this.length += o.getTotalLength(), this.functions.push(o);
670
670
  else {
671
- const l = new tt(i[0] + t[r][1], i[0] + t[r][3], i[1] + t[r][2], i[1] + t[r][4]);
671
+ const l = new Q(i[0] + t[r][1], i[0] + t[r][3], i[1] + t[r][2], i[1] + t[r][4]);
672
672
  this.length += l.getTotalLength(), this.functions.push(l);
673
673
  }
674
674
  a = [i[0] + t[r][1], i[1] + t[r][2]], i = [t[r][3] + i[0], t[r][4] + i[1]];
675
675
  } else if (t[r][0] === "T") {
676
- if (r > 0 && ["Q", "q", "T", "t"].indexOf(t[r - 1][0]) > -1) o = new ct(i[0], i[1], 2 * i[0] - a[0], 2 * i[1] - a[1], t[r][1], t[r][2], void 0, void 0), this.functions.push(o), this.length += o.getTotalLength();
676
+ if (r > 0 && ["Q", "q", "T", "t"].indexOf(t[r - 1][0]) > -1) o = new at(i[0], i[1], 2 * i[0] - a[0], 2 * i[1] - a[1], t[r][1], t[r][2], void 0, void 0), this.functions.push(o), this.length += o.getTotalLength();
677
677
  else {
678
- const l = new tt(i[0], t[r][1], i[1], t[r][2]);
678
+ const l = new Q(i[0], t[r][1], i[1], t[r][2]);
679
679
  this.functions.push(l), this.length += l.getTotalLength();
680
680
  }
681
681
  a = [2 * i[0] - a[0], 2 * i[1] - a[1]], i = [t[r][1], t[r][2]];
682
682
  } else if (t[r][0] === "t") {
683
- if (r > 0 && ["Q", "q", "T", "t"].indexOf(t[r - 1][0]) > -1) o = new ct(i[0], i[1], 2 * i[0] - a[0], 2 * i[1] - a[1], i[0] + t[r][1], i[1] + t[r][2], void 0, void 0), this.length += o.getTotalLength(), this.functions.push(o);
683
+ if (r > 0 && ["Q", "q", "T", "t"].indexOf(t[r - 1][0]) > -1) o = new at(i[0], i[1], 2 * i[0] - a[0], 2 * i[1] - a[1], i[0] + t[r][1], i[1] + t[r][2], void 0, void 0), this.length += o.getTotalLength(), this.functions.push(o);
684
684
  else {
685
- const l = new tt(i[0], i[0] + t[r][1], i[1], i[1] + t[r][2]);
685
+ const l = new Q(i[0], i[0] + t[r][1], i[1], i[1] + t[r][2]);
686
686
  this.length += l.getTotalLength(), this.functions.push(l);
687
687
  }
688
688
  a = [2 * i[0] - a[0], 2 * i[1] - a[1]], i = [t[r][1] + i[0], t[r][2] + i[1]];
@@ -696,28 +696,28 @@ var te = _((n, e, t) => {
696
696
  this.partial_lengths.push(this.length);
697
697
  }
698
698
  }
699
- }, _(Mt, "SVGPathProperties"), Mt), Lt, ee = (Lt = class {
699
+ }, O(Lt, "SVGPathProperties"), Lt), Mt, ee = (Mt = class {
700
700
  constructor(e) {
701
- k(this, "inst");
702
- k(this, "getTotalLength", _(() => this.inst.getTotalLength(), "getTotalLength"));
703
- k(this, "getPointAtLength", _((e) => this.inst.getPointAtLength(e), "getPointAtLength"));
704
- k(this, "getTangentAtLength", _((e) => this.inst.getTangentAtLength(e), "getTangentAtLength"));
705
- k(this, "getPropertiesAtLength", _((e) => this.inst.getPropertiesAtLength(e), "getPropertiesAtLength"));
706
- k(this, "getParts", _(() => this.inst.getParts(), "getParts"));
707
- if (this.inst = new W0(e), !(this instanceof ee)) return new ee(e);
701
+ I(this, "inst");
702
+ I(this, "getTotalLength", O(() => this.inst.getTotalLength(), "getTotalLength"));
703
+ I(this, "getPointAtLength", O((e) => this.inst.getPointAtLength(e), "getPointAtLength"));
704
+ I(this, "getTangentAtLength", O((e) => this.inst.getTangentAtLength(e), "getTangentAtLength"));
705
+ I(this, "getPropertiesAtLength", O((e) => this.inst.getPropertiesAtLength(e), "getPropertiesAtLength"));
706
+ I(this, "getParts", O(() => this.inst.getParts(), "getParts"));
707
+ if (this.inst = new $0(e), !(this instanceof ee)) return new ee(e);
708
708
  }
709
- }, _(Lt, "_svgPathProperties"), Lt);
710
- function Y0(n = G.BLACK) {
709
+ }, O(Mt, "_svgPathProperties"), Mt);
710
+ function W0(n = G.BLACK) {
711
711
  return { ...n, alpha: 0 };
712
712
  }
713
- function Ci(n = null) {
713
+ function Si(n = null) {
714
714
  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 ee(r).getTotalLength();
715
- return nt({
716
- objectType: V.PATH,
717
- anchor: et,
715
+ return et({
716
+ objectType: z.PATH,
717
+ anchor: tt,
718
718
  strokeColor: J,
719
719
  drawn: 1,
720
- fillColor: Y0(),
720
+ fillColor: W0(),
721
721
  isRounded: !1,
722
722
  height: t,
723
723
  path: r,
@@ -731,9 +731,9 @@ function Ci(n = null) {
731
731
  ...s
732
732
  });
733
733
  }
734
- function Si(n = null) {
735
- return nt({
736
- objectType: V.POLYGON,
734
+ function Pi(n = null) {
735
+ return et({
736
+ objectType: z.POLYGON,
737
737
  strokeColor: J,
738
738
  strokeWidth: 0,
739
739
  drawn: 1,
@@ -746,10 +746,10 @@ function Si(n = null) {
746
746
  ...n
747
747
  });
748
748
  }
749
- function Pi(n = null) {
750
- return nt({
751
- objectType: V.RECTANGLE,
752
- anchor: et,
749
+ function Ei(n = null) {
750
+ return et({
751
+ objectType: z.RECTANGLE,
752
+ anchor: tt,
753
753
  strokeColor: J,
754
754
  strokeWidth: 0,
755
755
  drawn: 1,
@@ -762,10 +762,10 @@ function Pi(n = null) {
762
762
  ...n
763
763
  });
764
764
  }
765
- function Ei(n = null) {
766
- return nt({
767
- objectType: V.SPOTLIGHT,
768
- anchor: et,
765
+ function Ii(n = null) {
766
+ return et({
767
+ objectType: z.SPOTLIGHT,
768
+ anchor: tt,
769
769
  color: G(0, 0, 0, 0.8),
770
770
  height: 200,
771
771
  cornerRadius: 50,
@@ -775,10 +775,10 @@ function Ei(n = null) {
775
775
  ...n
776
776
  });
777
777
  }
778
- function Ii(n = null) {
779
- return nt({
780
- objectType: V.SVG,
781
- anchor: et,
778
+ function ki(n = null) {
779
+ return et({
780
+ objectType: z.SVG,
781
+ anchor: tt,
782
782
  height: 100,
783
783
  svg: "",
784
784
  width: 100,
@@ -821,10 +821,10 @@ function Q0(n) {
821
821
  );
822
822
  }
823
823
  function tn(n = "", e = null) {
824
- return nt({
825
- objectType: V.TEXT,
824
+ return et({
825
+ objectType: z.TEXT,
826
826
  alignment: S0,
827
- anchor: et,
827
+ anchor: tt,
828
828
  length: null,
829
829
  lineSpacing: 1,
830
830
  text: n,
@@ -900,7 +900,7 @@ function ge() {
900
900
  function r0(n) {
901
901
  return n.altKey || n.ctrlKey || n.metaKey || n.shiftKey;
902
902
  }
903
- function Me(n) {
903
+ function Le(n) {
904
904
  var o, i;
905
905
  if (n === null)
906
906
  return !1;
@@ -946,7 +946,7 @@ function jt(n, e, t, o) {
946
946
  else
947
947
  n[e] = { slideIndex: t, buildIndex: o };
948
948
  }
949
- function Le(n, e) {
949
+ function Me(n, e) {
950
950
  const t = n[e];
951
951
  return t !== void 0 ? t : isNaN(Number(e)) ? null : { slideIndex: Number(e) - 1, buildIndex: 0 };
952
952
  }
@@ -956,7 +956,7 @@ function o0(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigat
956
956
  r && (e.hasAttribute("tabindex") || (e.tabIndex = -1), e.addEventListener(
957
957
  "pointerdown",
958
958
  (g) => {
959
- Me(g.target) || e.focus({ preventScroll: !0 });
959
+ Le(g.target) || e.focus({ preventScroll: !0 });
960
960
  },
961
961
  u
962
962
  )), e.addEventListener(
@@ -969,7 +969,7 @@ function o0(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigat
969
969
  "keyup",
970
970
  (g) => {
971
971
  const h = g;
972
- if (Me(h.target))
972
+ if (Le(h.target))
973
973
  return;
974
974
  if (h.code === "Escape") {
975
975
  t.textCommand = null;
@@ -985,7 +985,7 @@ function o0(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigat
985
985
  }
986
986
  const f = on(h);
987
987
  if (f !== null) {
988
- const v = Le(
988
+ const v = Me(
989
989
  t.shortcuts,
990
990
  f
991
991
  );
@@ -996,7 +996,7 @@ function o0(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigat
996
996
  if (h.code === "Enter") {
997
997
  const v = t.textCommand;
998
998
  t.textCommand = null;
999
- const y = Le(
999
+ const y = Me(
1000
1000
  t.shortcuts,
1001
1001
  v
1002
1002
  );
@@ -1107,20 +1107,20 @@ function an(n, e, t, o = () => !0) {
1107
1107
  g.container.style.cursor = "pointer", g.container.addEventListener("click", () => {
1108
1108
  o() && t();
1109
1109
  });
1110
- const f = n.slides.map((E, M) => {
1111
- const I = ln(E, M);
1112
- return I.style.cursor = "pointer", I.addEventListener("click", (F) => {
1113
- o() && (F.shiftKey && ne(), e(M));
1114
- }), s.appendChild(I), I;
1115
- }), v = Ht("Slides", s, h.visibility.slides), y = Ht(
1110
+ const f = n.slides.map((E, L) => {
1111
+ const _ = ln(E, L);
1112
+ return _.style.cursor = "pointer", _.addEventListener("click", (F) => {
1113
+ o() && (F.shiftKey && ne(), e(L));
1114
+ }), s.appendChild(_), _;
1115
+ }), v = Ut("Slides", s, h.visibility.slides), y = Ut(
1116
1116
  "Current",
1117
1117
  u.container,
1118
1118
  h.visibility.current
1119
- ), T = Ht(
1119
+ ), T = Ut(
1120
1120
  "Next",
1121
1121
  g.container,
1122
1122
  h.visibility.next
1123
- ), L = () => {
1123
+ ), M = () => {
1124
1124
  const E = y.input.checked && T.input.checked && S();
1125
1125
  a.style.gridTemplateColumns = v.input.checked ? "260px 1fr" : "1fr", c.style.flexDirection = E ? "column" : "row", u.container.style.flex = "1 1 0", g.container.style.flex = "1 1 0", requestAnimationFrame(() => {
1126
1126
  u.resize(), g.resize();
@@ -1134,19 +1134,19 @@ function an(n, e, t, o = () => !0) {
1134
1134
  }
1135
1135
  });
1136
1136
  };
1137
- v.input.addEventListener("change", L), y.input.addEventListener("change", L), T.input.addEventListener("change", L), R == null || R.addEventListener("resize", L), l.appendChild(v.element), l.appendChild(y.element), l.appendChild(T.element), c.appendChild(u.container), c.appendChild(g.container), r.appendChild(l), r.appendChild(c), a.appendChild(s), a.appendChild(r);
1138
- function P(E, M, I, F) {
1139
- o() && (f.forEach((Y, z) => {
1140
- const U = z === E;
1141
- Y.style.backgroundColor = U ? "#dbeafe" : "#ffffff", Y.style.borderColor = U ? "#60a5fa" : "#e5e7eb", Y.style.color = U ? "#1e3a8a" : "#1f2937";
1142
- }), u.label.textContent = Pe(n, E, M), g.label.textContent = Pe(n, I, F), hn(f[E], s), L());
1137
+ v.input.addEventListener("change", M), y.input.addEventListener("change", M), T.input.addEventListener("change", M), R == null || R.addEventListener("resize", M), l.appendChild(v.element), l.appendChild(y.element), l.appendChild(T.element), c.appendChild(u.container), c.appendChild(g.container), r.appendChild(l), r.appendChild(c), a.appendChild(s), a.appendChild(r);
1138
+ function C(E, L, _, F) {
1139
+ o() && (f.forEach((W, U) => {
1140
+ const H = U === E;
1141
+ W.style.backgroundColor = H ? "#dbeafe" : "#ffffff", W.style.borderColor = H ? "#60a5fa" : "#e5e7eb", W.style.color = H ? "#1e3a8a" : "#1f2937";
1142
+ }), u.label.textContent = Pe(n, E, L), g.label.textContent = Pe(n, _, F), hn(f[E], s), M());
1143
1143
  }
1144
1144
  function S() {
1145
1145
  const E = R;
1146
1146
  if (E === null)
1147
1147
  return !1;
1148
- const M = v.input.checked ? 278 : 0, I = E.innerWidth - 36 - M, F = E.innerHeight - 36 - l.offsetHeight - 14;
1149
- return I <= 0 || F <= 0 ? !1 : I / F < 1.1;
1148
+ const L = v.input.checked ? 278 : 0, _ = E.innerWidth - 36 - L, F = E.innerHeight - 36 - l.offsetHeight - 14;
1149
+ return _ <= 0 || F <= 0 ? !1 : _ / F < 1.1;
1150
1150
  }
1151
1151
  return {
1152
1152
  element: a,
@@ -1155,7 +1155,7 @@ function an(n, e, t, o = () => !0) {
1155
1155
  currentLabel: u.label,
1156
1156
  nextLabel: g.label,
1157
1157
  isOpen: () => R !== null && !R.closed,
1158
- update: P
1158
+ update: C
1159
1159
  };
1160
1160
  }
1161
1161
  function ln(n, e) {
@@ -1188,7 +1188,7 @@ function Se(n, e) {
1188
1188
  const c = (u = t.defaultView) == null ? void 0 : u.ResizeObserver;
1189
1189
  return c !== void 0 && new c(l).observe(s), R == null || R.addEventListener("resize", l), s.appendChild(r), o.appendChild(i), o.appendChild(a), o.appendChild(s), { container: o, label: a, canvas: r, resize: l };
1190
1190
  }
1191
- function Ht(n, e, t) {
1191
+ function Ut(n, e, t) {
1192
1192
  const o = (R == null ? void 0 : R.document) ?? document, i = e.style.display || "block", a = o.createElement("label");
1193
1193
  a.style.display = "inline-flex", a.style.alignItems = "center", a.style.gap = "6px", a.style.userSelect = "none";
1194
1194
  const s = o.createElement("input");
@@ -1230,20 +1230,20 @@ function un(n) {
1230
1230
  isActive: () => !n.closed && t[Ce] === e
1231
1231
  };
1232
1232
  }
1233
- function Q(n = null) {
1233
+ function K(n = null) {
1234
1234
  return {
1235
1235
  height: 0,
1236
1236
  width: 0,
1237
1237
  ...n
1238
1238
  };
1239
1239
  }
1240
- const fn = Q({ width: 0, height: 0 });
1240
+ const fn = K({ width: 0, height: 0 });
1241
1241
  function dn(n = null) {
1242
1242
  return {
1243
1243
  backgroundColor: G.WHITE,
1244
1244
  slides: [],
1245
1245
  title: "Presentation",
1246
- size: Q({ width: 3840, height: 2160 }),
1246
+ size: K({ width: 3840, height: 2160 }),
1247
1247
  resources: {
1248
1248
  images: {}
1249
1249
  },
@@ -1255,16 +1255,16 @@ function gn(n) {
1255
1255
  let t = 0, o = 0;
1256
1256
  for (const i of e)
1257
1257
  switch (i.type) {
1258
- case dt.PAUSE:
1258
+ case ut.PAUSE:
1259
1259
  t += i.duration;
1260
1260
  break;
1261
- case dt.ANIMATE:
1261
+ case ut.ANIMATE:
1262
1262
  o = Math.max(o, t + i.delay + i.duration), i.block && (t += i.delay + i.duration);
1263
1263
  break;
1264
- case dt.UPDATE:
1264
+ case ut.UPDATE:
1265
1265
  break;
1266
1266
  default:
1267
- ht(i);
1267
+ st(i);
1268
1268
  }
1269
1269
  return o;
1270
1270
  }
@@ -1335,7 +1335,7 @@ function ke(n, e, t = null) {
1335
1335
  if (t !== null && i > t)
1336
1336
  break;
1337
1337
  switch (a.type) {
1338
- case dt.ANIMATE: {
1338
+ case ut.ANIMATE: {
1339
1339
  const s = n.get(a.object);
1340
1340
  if (s === void 0)
1341
1341
  break;
@@ -1357,7 +1357,7 @@ function ke(n, e, t = null) {
1357
1357
  }), a.block && (i += a.delay + a.duration);
1358
1358
  break;
1359
1359
  }
1360
- case dt.UPDATE: {
1360
+ case ut.UPDATE: {
1361
1361
  const s = n.get(a.object);
1362
1362
  if (s === void 0)
1363
1363
  break;
@@ -1367,11 +1367,11 @@ function ke(n, e, t = null) {
1367
1367
  });
1368
1368
  break;
1369
1369
  }
1370
- case dt.PAUSE:
1370
+ case ut.PAUSE:
1371
1371
  i += a.duration;
1372
1372
  break;
1373
1373
  default:
1374
- ht(a);
1374
+ st(a);
1375
1375
  }
1376
1376
  }
1377
1377
  }
@@ -1405,7 +1405,7 @@ function mn({
1405
1405
  function bn(n) {
1406
1406
  const e = {};
1407
1407
  function t(o) {
1408
- if (o.objectType === V.SVG) {
1408
+ if (o.objectType === z.SVG) {
1409
1409
  const a = o.svg;
1410
1410
  a !== void 0 && a.length > 0 && (e[a] = a);
1411
1411
  }
@@ -1461,46 +1461,46 @@ const _e = Object.freeze({
1461
1461
  textCommand: null,
1462
1462
  shortcuts: {}
1463
1463
  }
1464
- }), K = {
1464
+ }), Z = {
1465
1465
  Browser: "browser",
1466
1466
  Node: "node"
1467
1467
  };
1468
1468
  function Tn(n, e) {
1469
1469
  e.context.clearRect(0, 0, n.width, n.height);
1470
1470
  }
1471
- function Mn(n) {
1471
+ function Ln(n) {
1472
1472
  const e = document.createElement("canvas");
1473
1473
  return e.setAttribute("width", n.width.toString()), e.setAttribute("height", n.height.toString()), e.style.position = "absolute", e.style.width = "100%", e;
1474
1474
  }
1475
- const gt = {
1475
+ const ft = {
1476
1476
  Browser: "browser",
1477
1477
  Node: "node"
1478
1478
  };
1479
- function Ln(n) {
1479
+ function Mn(n) {
1480
1480
  const e = new Path2D(n);
1481
1481
  return {
1482
- type: gt.Browser,
1482
+ type: ft.Browser,
1483
1483
  path: e
1484
1484
  };
1485
1485
  }
1486
1486
  function Cn(n) {
1487
- const { drawn: e, startX: t, startY: o, endX: i, endY: a, arrowheadSize: s, isArrowheadFilled: r, isDrawnFromCenter: l } = n, c = { x: t, y: o }, u = { x: i, y: a }, g = Math.atan2(u.y - c.y, u.x - c.x), h = { 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, T = Math.hypot(f, v) * e, L = Math.cos(g), P = Math.sin(g), S = l ? { x: h.x - L * T / 2, y: h.y - P * T / 2 } : c, E = l ? { x: h.x + L * T / 2, y: h.y + P * T / 2 } : { x: c.x + L * T, y: c.y + P * T }, M = r ? Math.PI / 6 : Math.PI / 4.5, I = T < s * 2 ? T / 2 : s, F = {
1488
- x: E.x - I * Math.cos(g - M),
1489
- y: E.y - I * Math.sin(g - M)
1490
- }, Y = {
1491
- x: E.x - I * Math.cos(g + M),
1492
- y: E.y - I * Math.sin(g + M)
1493
- }, z = {
1494
- x: S.x + I * Math.cos(g - M),
1495
- y: S.y + I * Math.sin(g - M)
1487
+ const { drawn: e, startX: t, startY: o, endX: i, endY: a, arrowheadSize: s, isArrowheadFilled: r, isDrawnFromCenter: l } = n, c = { x: t, y: o }, u = { x: i, y: a }, g = Math.atan2(u.y - c.y, u.x - c.x), h = { 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, T = Math.hypot(f, v) * e, M = Math.cos(g), C = Math.sin(g), S = l ? { x: h.x - M * T / 2, y: h.y - C * T / 2 } : c, E = l ? { x: h.x + M * T / 2, y: h.y + C * T / 2 } : { x: c.x + M * T, y: c.y + C * T }, L = r ? Math.PI / 6 : Math.PI / 4.5, _ = T < s * 2 ? T / 2 : s, F = {
1488
+ x: E.x - _ * Math.cos(g - L),
1489
+ y: E.y - _ * Math.sin(g - L)
1490
+ }, W = {
1491
+ x: E.x - _ * Math.cos(g + L),
1492
+ y: E.y - _ * Math.sin(g + L)
1496
1493
  }, U = {
1497
- x: S.x + I * Math.cos(g + M),
1498
- y: S.y + I * Math.sin(g + M)
1494
+ x: S.x + _ * Math.cos(g - L),
1495
+ y: S.y + _ * Math.sin(g - L)
1496
+ }, H = {
1497
+ x: S.x + _ * Math.cos(g + L),
1498
+ y: S.y + _ * Math.sin(g + L)
1499
1499
  };
1500
1500
  return {
1501
1501
  arrowPoints: [S, E],
1502
- arrowheadPoints: [F, E, Y],
1503
- doubledArrowheadPoints: [z, S, U]
1502
+ arrowheadPoints: [F, E, W],
1503
+ doubledArrowheadPoints: [U, S, H]
1504
1504
  };
1505
1505
  }
1506
1506
  function wt({
@@ -1530,34 +1530,34 @@ function wt({
1530
1530
  return;
1531
1531
  }
1532
1532
  switch (n.type) {
1533
- case K.Browser:
1534
- s.type === gt.Browser ? n.context.stroke(s.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
1533
+ case Z.Browser:
1534
+ s.type === ft.Browser ? n.context.stroke(s.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
1535
1535
  break;
1536
- case K.Node:
1537
- s.type === gt.Node ? n.context.stroke(s.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
1536
+ case Z.Node:
1537
+ s.type === ft.Node ? n.context.stroke(s.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
1538
1538
  break;
1539
1539
  default:
1540
- ht(n);
1540
+ st(n);
1541
1541
  }
1542
1542
  }
1543
1543
  }
1544
- function pt({ ctx: n, path: e, color: t, opacity: o = null }) {
1544
+ function dt({ ctx: n, path: e, color: t, opacity: o = null }) {
1545
1545
  if (n.context.fillStyle = pe(t, o), e === void 0) {
1546
1546
  n.context.fill();
1547
1547
  return;
1548
1548
  }
1549
1549
  switch (n.type) {
1550
- case K.Browser:
1551
- e.type === gt.Browser ? n.context.fill(e.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
1550
+ case Z.Browser:
1551
+ e.type === ft.Browser ? n.context.fill(e.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
1552
1552
  break;
1553
- case K.Node:
1554
- e.type === gt.Node ? n.context.fill(e.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
1553
+ case Z.Node:
1554
+ e.type === ft.Node ? n.context.fill(e.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
1555
1555
  break;
1556
1556
  default:
1557
- ht(n);
1557
+ st(n);
1558
1558
  }
1559
1559
  }
1560
- function Ut(n, e) {
1560
+ function Ht(n, e) {
1561
1561
  const t = e(), o = n[0];
1562
1562
  if (o === void 0)
1563
1563
  return { path: t, length: 0 };
@@ -1581,14 +1581,14 @@ const Sn = ({
1581
1581
  const i = e.opacity * t;
1582
1582
  if (i === 0 || e.drawn === 0)
1583
1583
  return;
1584
- const { arrowPoints: a, arrowheadPoints: s, doubledArrowheadPoints: r } = Cn(e), { path: l } = Ut(a, o), { path: c } = Ut(s, o);
1584
+ const { arrowPoints: a, arrowheadPoints: s, doubledArrowheadPoints: r } = Cn(e), { path: l } = Ht(a, o), { path: c } = Ht(s, o);
1585
1585
  if (wt({
1586
1586
  color: e.color,
1587
1587
  ctx: n,
1588
1588
  path: l,
1589
1589
  opacity: i,
1590
1590
  width: e.width
1591
- }), e.isArrowheadFilled && (c.path.closePath(), pt({
1591
+ }), e.isArrowheadFilled && (c.path.closePath(), dt({
1592
1592
  ctx: n,
1593
1593
  path: c,
1594
1594
  color: e.color,
@@ -1600,11 +1600,11 @@ const Sn = ({
1600
1600
  opacity: i,
1601
1601
  width: e.width
1602
1602
  }), e.isArrowheadDoubled) {
1603
- const { path: u } = Ut(
1603
+ const { path: u } = Ht(
1604
1604
  r,
1605
1605
  o
1606
1606
  );
1607
- e.isArrowheadFilled && (u.path.closePath(), pt({
1607
+ e.isArrowheadFilled && (u.path.closePath(), dt({
1608
1608
  ctx: n,
1609
1609
  path: u,
1610
1610
  color: e.color,
@@ -1633,14 +1633,14 @@ function En(n, e) {
1633
1633
  }
1634
1634
  function h0(n, e) {
1635
1635
  switch (n.type) {
1636
- case K.Browser:
1637
- e.type === gt.Browser ? n.context.clip(e.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
1636
+ case Z.Browser:
1637
+ e.type === ft.Browser ? n.context.clip(e.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
1638
1638
  break;
1639
- case K.Node:
1640
- e.type === gt.Node ? n.context.clip(e.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
1639
+ case Z.Node:
1640
+ e.type === ft.Node ? n.context.clip(e.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
1641
1641
  break;
1642
1642
  default:
1643
- ht(n);
1643
+ st(n);
1644
1644
  }
1645
1645
  }
1646
1646
  const In = ({
@@ -1655,9 +1655,9 @@ const In = ({
1655
1655
  const { path: a, length: s } = En(e, o);
1656
1656
  if (i < 1 && e.strokeWidth > 0) {
1657
1657
  const r = Pn(e, o);
1658
- r !== void 0 && (n.context.save(), h0(n, r), pt({ ctx: n, path: a, color: e.fillColor, opacity: i }), n.context.restore());
1658
+ r !== void 0 && (n.context.save(), h0(n, r), dt({ ctx: n, path: a, color: e.fillColor, opacity: i }), n.context.restore());
1659
1659
  } else
1660
- pt({ ctx: n, path: a, color: e.fillColor, opacity: i });
1660
+ dt({ ctx: n, path: a, color: e.fillColor, opacity: i });
1661
1661
  wt({
1662
1662
  color: e.strokeColor,
1663
1663
  ctx: n,
@@ -1668,72 +1668,72 @@ const In = ({
1668
1668
  width: e.strokeWidth
1669
1669
  });
1670
1670
  };
1671
- function $(n = null) {
1671
+ function Y(n = null) {
1672
1672
  return {
1673
1673
  x: 0,
1674
1674
  y: 0,
1675
1675
  ...n
1676
1676
  };
1677
1677
  }
1678
- const kn = $();
1679
- function ut(n = null) {
1678
+ const kn = Y();
1679
+ function lt(n = null) {
1680
1680
  return {
1681
1681
  origin: kn,
1682
1682
  size: fn,
1683
1683
  ...n
1684
1684
  };
1685
1685
  }
1686
- ut();
1687
- function ft(n, e, t) {
1686
+ lt();
1687
+ function ht(n, e, t) {
1688
1688
  const { x: o, y: i } = n, { width: a, height: s } = t;
1689
1689
  switch (e) {
1690
- case lt.TOP_LEFT:
1691
- return ut({
1692
- origin: $({ x: o, y: i }),
1690
+ case ot.TOP_LEFT:
1691
+ return lt({
1692
+ origin: Y({ x: o, y: i }),
1693
1693
  size: t
1694
1694
  });
1695
- case lt.TOP:
1696
- return ut({
1697
- origin: $({ x: o - a / 2, y: i }),
1695
+ case ot.TOP:
1696
+ return lt({
1697
+ origin: Y({ x: o - a / 2, y: i }),
1698
1698
  size: t
1699
1699
  });
1700
- case lt.TOP_RIGHT:
1701
- return ut({
1702
- origin: $({ x: o - a, y: i }),
1700
+ case ot.TOP_RIGHT:
1701
+ return lt({
1702
+ origin: Y({ x: o - a, y: i }),
1703
1703
  size: t
1704
1704
  });
1705
- case lt.LEFT:
1706
- return ut({
1707
- origin: $({ x: o, y: i - s / 2 }),
1705
+ case ot.LEFT:
1706
+ return lt({
1707
+ origin: Y({ x: o, y: i - s / 2 }),
1708
1708
  size: t
1709
1709
  });
1710
- case lt.CENTER:
1711
- return ut({
1712
- origin: $({ x: o - a / 2, y: i - s / 2 }),
1710
+ case ot.CENTER:
1711
+ return lt({
1712
+ origin: Y({ x: o - a / 2, y: i - s / 2 }),
1713
1713
  size: t
1714
1714
  });
1715
- case lt.RIGHT:
1716
- return ut({
1717
- origin: $({ x: o - a, y: i - s / 2 }),
1715
+ case ot.RIGHT:
1716
+ return lt({
1717
+ origin: Y({ x: o - a, y: i - s / 2 }),
1718
1718
  size: t
1719
1719
  });
1720
- case lt.BOTTOM_LEFT:
1721
- return ut({
1722
- origin: $({ x: o, y: i - s }),
1720
+ case ot.BOTTOM_LEFT:
1721
+ return lt({
1722
+ origin: Y({ x: o, y: i - s }),
1723
1723
  size: t
1724
1724
  });
1725
- case lt.BOTTOM:
1726
- return ut({
1727
- origin: $({ x: o - a / 2, y: i - s }),
1725
+ case ot.BOTTOM:
1726
+ return lt({
1727
+ origin: Y({ x: o - a / 2, y: i - s }),
1728
1728
  size: t
1729
1729
  });
1730
- case lt.BOTTOM_RIGHT:
1731
- return ut({
1732
- origin: $({ x: o - a, y: i - s }),
1730
+ case ot.BOTTOM_RIGHT:
1731
+ return lt({
1732
+ origin: Y({ x: o - a, y: i - s }),
1733
1733
  size: t
1734
1734
  });
1735
1735
  default:
1736
- ht(e);
1736
+ st(e);
1737
1737
  }
1738
1738
  }
1739
1739
  const On = ({
@@ -1742,10 +1742,10 @@ const On = ({
1742
1742
  renderObject: t,
1743
1743
  opacity: o
1744
1744
  }) => {
1745
- const i = e.scale * e.scaleX, a = e.scale * e.scaleY, s = ft(
1746
- $({ x: e.x, y: e.y }),
1745
+ const i = e.scale * e.scaleX, a = e.scale * e.scaleY, s = ht(
1746
+ Y({ x: e.x, y: e.y }),
1747
1747
  e.anchor,
1748
- Q({
1748
+ K({
1749
1749
  width: e.width * Math.abs(i),
1750
1750
  height: e.height * Math.abs(a)
1751
1751
  })
@@ -1798,10 +1798,10 @@ const kt = {
1798
1798
  opacity: o,
1799
1799
  createPath2D: i
1800
1800
  }) => {
1801
- const a = ft(
1802
- $({ x: t.x, y: t.y }),
1801
+ const a = ht(
1802
+ Y({ x: t.x, y: t.y }),
1803
1803
  t.anchor,
1804
- Q({ width: t.width, height: t.height })
1804
+ K({ width: t.width, height: t.height })
1805
1805
  ), s = e[t.imageId];
1806
1806
  if (s !== void 0) {
1807
1807
  if (n.context.save(), t.cornerRadius > 0) {
@@ -1812,18 +1812,18 @@ const kt = {
1812
1812
  i
1813
1813
  );
1814
1814
  switch (n.type) {
1815
- case K.Browser:
1816
- r.path.type === gt.Browser ? n.context.clip(r.path.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
1815
+ case Z.Browser:
1816
+ r.path.type === ft.Browser ? n.context.clip(r.path.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
1817
1817
  break;
1818
- case K.Node:
1819
- r.path.type === gt.Node ? n.context.clip(r.path.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
1818
+ case Z.Node:
1819
+ r.path.type === ft.Node ? n.context.clip(r.path.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
1820
1820
  break;
1821
1821
  default:
1822
- ht(n);
1822
+ st(n);
1823
1823
  }
1824
1824
  }
1825
1825
  switch (n.context.globalAlpha = o * t.opacity, n.context.imageSmoothingEnabled = t.smooth, n.type) {
1826
- case K.Browser:
1826
+ case Z.Browser:
1827
1827
  s.type === kt.Browser ? n.context.drawImage(
1828
1828
  s.image,
1829
1829
  a.origin.x,
@@ -1832,7 +1832,7 @@ const kt = {
1832
1832
  a.size.height
1833
1833
  ) : console.warn("Attempted to use Node Image in Browser Canvas context");
1834
1834
  break;
1835
- case K.Node:
1835
+ case Z.Node:
1836
1836
  s.type === kt.Node ? n.context.drawImage(
1837
1837
  s.image,
1838
1838
  a.origin.x,
@@ -1842,7 +1842,7 @@ const kt = {
1842
1842
  ) : console.warn("Attempted to use Browser Image in Node Canvas context");
1843
1843
  break;
1844
1844
  default:
1845
- ht(n);
1845
+ st(n);
1846
1846
  }
1847
1847
  n.context.restore();
1848
1848
  }
@@ -1881,10 +1881,10 @@ const Rn = ({
1881
1881
  renderObject: o
1882
1882
  }) => {
1883
1883
  n.context.save();
1884
- const i = ft(
1885
- $({ x: e.x, y: e.y }),
1884
+ const i = ht(
1885
+ Y({ x: e.x, y: e.y }),
1886
1886
  e.anchor,
1887
- Q({ width: e.width, height: e.height })
1887
+ K({ width: e.width, height: e.height })
1888
1888
  );
1889
1889
  e.preview && (n.context.lineWidth = 4, n.context.strokeStyle = It(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();
1890
1890
  for (const a of e.objects)
@@ -1899,12 +1899,12 @@ const Rn = ({
1899
1899
  const i = e.opacity * t;
1900
1900
  if (i === 0 || e.drawn === 0 && e.fillColor.alpha === 0)
1901
1901
  return;
1902
- const { origin: a } = ft(
1903
- $({ x: e.x, y: e.y }),
1902
+ const { origin: a } = ht(
1903
+ Y({ x: e.x, y: e.y }),
1904
1904
  e.anchor,
1905
- Q({ width: e.width, height: e.height })
1905
+ K({ width: e.width, height: e.height })
1906
1906
  ), s = o(e.path);
1907
- n.context.save(), n.context.translate(a.x, a.y), n.context.scale(e.width / e.viewboxWidth, e.height / e.viewboxHeight), pt({
1907
+ n.context.save(), n.context.translate(a.x, a.y), n.context.scale(e.width / e.viewboxWidth, e.height / e.viewboxHeight), dt({
1908
1908
  ctx: n,
1909
1909
  path: s,
1910
1910
  color: e.fillColor,
@@ -1951,7 +1951,7 @@ const qn = ({
1951
1951
  if (i === 0 || e.drawn === 0 && e.fillColor.alpha === 0)
1952
1952
  return;
1953
1953
  const { path: a, length: s } = Dn(e, o);
1954
- pt({
1954
+ dt({
1955
1955
  ctx: n,
1956
1956
  path: a,
1957
1957
  color: e.fillColor,
@@ -1967,14 +1967,14 @@ const qn = ({
1967
1967
  });
1968
1968
  };
1969
1969
  function zn(n, e) {
1970
- const t = n.strokeWidth / 2, { origin: o, size: i } = ft(
1971
- $({ x: n.x, y: n.y }),
1970
+ const t = n.strokeWidth / 2, { origin: o, size: i } = ht(
1971
+ Y({ x: n.x, y: n.y }),
1972
1972
  n.anchor,
1973
- Q({ width: n.width, height: n.height })
1973
+ K({ width: n.width, height: n.height })
1974
1974
  ), a = i.width - n.strokeWidth, s = i.height - n.strokeWidth;
1975
1975
  if (a <= 0 || s <= 0)
1976
1976
  return;
1977
- const r = $({ x: o.x + t, y: o.y + t }), l = Q({ width: a, height: s }), c = Math.max(
1977
+ const r = Y({ x: o.x + t, y: o.y + t }), l = K({ width: a, height: s }), c = Math.max(
1978
1978
  0,
1979
1979
  Math.min(n.cornerRadius - t, Math.min(a, s) / 2)
1980
1980
  );
@@ -1984,10 +1984,10 @@ function zn(n, e) {
1984
1984
  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;
1985
1985
  }
1986
1986
  function Vn(n, e) {
1987
- const { origin: t, size: o } = ft(
1988
- $({ x: n.x, y: n.y }),
1987
+ const { origin: t, size: o } = ht(
1988
+ Y({ x: n.x, y: n.y }),
1989
1989
  n.anchor,
1990
- Q({ width: n.width, height: n.height })
1990
+ K({ width: n.width, height: n.height })
1991
1991
  ), i = Math.max(
1992
1992
  0,
1993
1993
  Math.min(n.cornerRadius, Math.min(o.width, o.height) / 2)
@@ -2013,9 +2013,9 @@ const jn = ({
2013
2013
  const { path: a, length: s } = Vn(e, o);
2014
2014
  if (i < 1 && e.strokeWidth > 0) {
2015
2015
  const r = zn(e, o);
2016
- r !== void 0 && (n.context.save(), h0(n, r), pt({ ctx: n, path: a, color: e.fillColor, opacity: i }), n.context.restore());
2016
+ r !== void 0 && (n.context.save(), h0(n, r), dt({ ctx: n, path: a, color: e.fillColor, opacity: i }), n.context.restore());
2017
2017
  } else
2018
- pt({ ctx: n, path: a, color: e.fillColor, opacity: i });
2018
+ dt({ ctx: n, path: a, color: e.fillColor, opacity: i });
2019
2019
  wt({
2020
2020
  color: e.strokeColor,
2021
2021
  ctx: n,
@@ -2026,11 +2026,11 @@ const jn = ({
2026
2026
  width: e.strokeWidth
2027
2027
  });
2028
2028
  };
2029
- function Hn(n) {
2030
- const { origin: e, size: t } = ft(
2031
- $({ x: n.x, y: n.y }),
2029
+ function Un(n) {
2030
+ const { origin: e, size: t } = ht(
2031
+ Y({ x: n.x, y: n.y }),
2032
2032
  n.anchor,
2033
- Q({ width: n.width, height: n.height })
2033
+ K({ width: n.width, height: n.height })
2034
2034
  );
2035
2035
  return {
2036
2036
  origin: e,
@@ -2041,11 +2041,11 @@ function Hn(n) {
2041
2041
  )
2042
2042
  };
2043
2043
  }
2044
- function Un(n, e, t, o = {
2045
- origin: $({ x: 0, y: 0 }),
2044
+ function Hn(n, e, t, o = {
2045
+ origin: Y({ x: 0, y: 0 }),
2046
2046
  size: e
2047
2047
  }) {
2048
- const i = t(), { origin: a, size: s, cornerRadius: r } = Hn(n), { origin: l, size: c } = o;
2048
+ const i = t(), { origin: a, size: s, cornerRadius: r } = Un(n), { origin: l, size: c } = o;
2049
2049
  return i.path.moveTo(l.x, l.y), i.path.lineTo(l.x + c.width, l.y), i.path.lineTo(l.x + c.width, l.y + c.height), i.path.lineTo(l.x, l.y + c.height), i.path.lineTo(l.x, l.y), r === 0 ? (i.path.moveTo(a.x, a.y), i.path.lineTo(a.x, a.y + s.height), i.path.lineTo(a.x + s.width, a.y + s.height), i.path.lineTo(a.x + s.width, a.y), i.path.lineTo(a.x, a.y), i) : (i.path.moveTo(a.x + r, a.y), i.path.arcTo(a.x, a.y, a.x, a.y + r, r), i.path.lineTo(a.x, a.y + s.height - r), i.path.arcTo(
2050
2050
  a.x,
2051
2051
  a.y + s.height,
@@ -2066,7 +2066,7 @@ function Un(n, e, t, o = {
2066
2066
  r
2067
2067
  ), i.path.lineTo(a.x + r, a.y), i);
2068
2068
  }
2069
- const $n = ({
2069
+ const Yn = ({
2070
2070
  createPath2D: n,
2071
2071
  ctx: e,
2072
2072
  object: t,
@@ -2077,18 +2077,18 @@ const $n = ({
2077
2077
  const s = t.opacity * o;
2078
2078
  if (s === 0 || t.color.alpha === 0)
2079
2079
  return;
2080
- const r = Q({
2080
+ const r = K({
2081
2081
  width: a.width / i,
2082
2082
  height: a.height / i
2083
- }), l = $({
2083
+ }), l = Y({
2084
2084
  x: (a.width - r.width) / 2,
2085
2085
  y: (a.height - r.height) / 2
2086
- }), c = Un(t, a, n, {
2086
+ }), c = Hn(t, a, n, {
2087
2087
  origin: l,
2088
2088
  size: r
2089
2089
  });
2090
- pt({ ctx: e, path: c, color: t.color, opacity: s });
2091
- }, Wn = ({
2090
+ dt({ ctx: e, path: c, color: t.color, opacity: s });
2091
+ }, $n = ({
2092
2092
  ctx: n,
2093
2093
  imageById: e,
2094
2094
  object: t,
@@ -2100,13 +2100,13 @@ const $n = ({
2100
2100
  const a = e[t.svg];
2101
2101
  if (a === void 0)
2102
2102
  return;
2103
- const s = ft(
2104
- $({ x: t.x, y: t.y }),
2103
+ const s = ht(
2104
+ Y({ x: t.x, y: t.y }),
2105
2105
  t.anchor,
2106
- Q({ width: t.width, height: t.height })
2106
+ K({ width: t.width, height: t.height })
2107
2107
  );
2108
2108
  switch (n.context.save(), n.context.globalAlpha = i, n.type) {
2109
- case K.Browser:
2109
+ case Z.Browser:
2110
2110
  a.type === kt.Browser && n.context.drawImage(
2111
2111
  a.image,
2112
2112
  s.origin.x,
@@ -2115,7 +2115,7 @@ const $n = ({
2115
2115
  s.size.height
2116
2116
  );
2117
2117
  break;
2118
- case K.Node:
2118
+ case Z.Node:
2119
2119
  a.type === kt.Node && n.context.drawImage(
2120
2120
  a.image,
2121
2121
  s.origin.x,
@@ -2125,11 +2125,11 @@ const $n = ({
2125
2125
  );
2126
2126
  break;
2127
2127
  default:
2128
- ht(n);
2128
+ st(n);
2129
2129
  }
2130
2130
  n.context.restore();
2131
2131
  };
2132
- function Yn(n) {
2132
+ function Wn(n) {
2133
2133
  return {
2134
2134
  color: n.color,
2135
2135
  fontFamily: n.fontFamily,
@@ -2141,22 +2141,46 @@ function Yn(n) {
2141
2141
  superscript: n.superscript
2142
2142
  };
2143
2143
  }
2144
- function Gn(n, e = 1) {
2145
- const t = Math.max(...n.map((a) => a.reduce((s, r) => s + r.width, 0)));
2146
- let o = 0, i = 0;
2147
- for (let a = 0; a < n.length; a++) {
2148
- const s = n[a];
2149
- if (s === void 0)
2150
- continue;
2151
- const r = Math.max(...s.map((l) => l.height));
2152
- o += r + i * (e - 1), i = r;
2144
+ function Gn(n) {
2145
+ return {
2146
+ bottom: Math.max(...n.map((e) => e.bottom), 0),
2147
+ height: Math.max(...n.map((e) => e.height), 0),
2148
+ lineAdvance: Math.max(...n.map((e) => e.lineAdvance), 0),
2149
+ top: Math.max(...n.map((e) => e.top), 0),
2150
+ width: n.reduce((e, t) => e + t.width, 0)
2151
+ };
2152
+ }
2153
+ function Xn(n, e = 1) {
2154
+ var c;
2155
+ const t = n.map(Gn);
2156
+ if (t.length === 0)
2157
+ return {
2158
+ lines: [],
2159
+ size: K()
2160
+ };
2161
+ let o = ((c = t[0]) == null ? void 0 : c.top) ?? 0, i = 0;
2162
+ const a = [];
2163
+ for (let u = 0; u < t.length; u++) {
2164
+ const g = t[u];
2165
+ g !== void 0 && (u > 0 && (o += i * e), a.push({
2166
+ ...g,
2167
+ baselineY: o
2168
+ }), i = g.lineAdvance);
2153
2169
  }
2170
+ const s = Math.min(...a.map((u) => u.baselineY - u.top), 0), r = Math.max(...a.map((u) => u.baselineY + u.bottom), 0), l = -s;
2154
2171
  return {
2155
- height: o,
2156
- width: t
2172
+ lines: a.map((u) => ({
2173
+ ...u,
2174
+ // Keep all returned baselines relative to the top edge of the final text block
2175
+ baselineY: u.baselineY + l
2176
+ })),
2177
+ size: K({
2178
+ height: r - s,
2179
+ width: Math.max(...a.map((u) => u.width), 0)
2180
+ })
2157
2181
  };
2158
2182
  }
2159
- const Xn = 0.7, Kn = 0.3;
2183
+ const Kn = 0.7, Zn = 0.3;
2160
2184
  function c0(n) {
2161
2185
  const e = n.superscript, t = n.subscript && !e;
2162
2186
  return !e && !t ? {
@@ -2165,8 +2189,8 @@ function c0(n) {
2165
2189
  isSubscript: !1,
2166
2190
  isSuperscript: !1
2167
2191
  } : {
2168
- baselineShift: n.fontSize * Kn * (e ? -1 : 1),
2169
- fontSize: n.fontSize * Xn,
2192
+ baselineShift: n.fontSize * Zn * (e ? -1 : 1),
2193
+ fontSize: n.fontSize * Kn,
2170
2194
  isSubscript: t,
2171
2195
  isSuperscript: e
2172
2196
  };
@@ -2174,7 +2198,7 @@ function c0(n) {
2174
2198
  function Ne(n, e = 0) {
2175
2199
  return n ?? e;
2176
2200
  }
2177
- function Zn(n) {
2201
+ function Jn(n) {
2178
2202
  const e = Ne(
2179
2203
  n.fontBoundingBoxAscent,
2180
2204
  n.actualBoundingBoxAscent
@@ -2191,104 +2215,102 @@ function Zn(n) {
2191
2215
  }
2192
2216
  function u0(n, e, t = 1) {
2193
2217
  const o = c0(e);
2194
- n.context.fillStyle = pe(e.color, t), n.context.font = `${e.fontStyle} ${e.fontWeight} ${o.fontSize}px ${e.fontFamily}`, n.type === K.Browser ? n.context.textRendering = e.ligatures ? "optimizeLegibility" : "optimizeSpeed" : n.context.fontVariant = e.ligatures ? "common-ligatures" : "no-common-ligatures";
2218
+ n.context.fillStyle = pe(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";
2195
2219
  }
2196
- function Jn(n, e, t) {
2220
+ function Qn(n, e, t) {
2197
2221
  const o = [];
2198
2222
  for (const i of n) {
2199
- const a = [];
2200
- for (const s of i) {
2201
- const { text: r, ...l } = s, c = { ...e, ...l };
2202
- u0(t, c);
2203
- const u = t.context.measureText(r), g = Zn(u), { baselineShift: h } = c0(c), f = Math.max(0, g.top - h), v = Math.max(0, g.bottom + h);
2223
+ const a = [], s = i.length === 0 ? [{ text: "" }] : i;
2224
+ for (const r of s) {
2225
+ const { text: l, ...c } = r, u = { ...e, ...c };
2226
+ u0(t, u);
2227
+ const g = t.context.measureText(l), h = Jn(g), { baselineShift: f } = c0(u), v = Math.max(0, h.top - f), y = Math.max(0, h.bottom + f);
2204
2228
  a.push({
2205
- ...g,
2206
- baselineShift: h,
2207
- bottom: v,
2208
- height: f + v,
2209
- top: f
2229
+ ...h,
2230
+ baselineShift: f,
2231
+ bottom: y,
2232
+ height: v + y,
2233
+ lineAdvance: u.fontSize,
2234
+ top: v
2210
2235
  });
2211
2236
  }
2212
2237
  o.push(a);
2213
2238
  }
2214
2239
  return o;
2215
2240
  }
2216
- const Qn = ({ ctx: n, object: e, opacity: t }) => {
2241
+ const t1 = ({ ctx: n, object: e, opacity: t }) => {
2217
2242
  const o = e.opacity * t;
2218
2243
  if (o === 0)
2219
2244
  return;
2220
- const { length: i } = e, a = e0(e.text), s = Yn(e), r = Jn(a, s, n), l = Gn(r, e.lineSpacing), c = ft($({ x: e.x, y: e.y }), e.anchor, l);
2221
- let u = c.origin.x, g = c.origin.y, h = 0, f = 0;
2222
- for (let v = 0; v < a.length; v++) {
2223
- const y = a[v], T = r[v];
2224
- if (y == null || T == null) {
2245
+ const { length: i } = e, a = e0(e.text), s = Wn(e), r = Qn(a, s, n), l = Xn(r, e.lineSpacing), c = ht(Y({ x: e.x, y: e.y }), e.anchor, l.size);
2246
+ let u = c.origin.x, g = 0;
2247
+ for (let h = 0; h < a.length; h++) {
2248
+ const f = a[h], v = r[h], y = l.lines[h];
2249
+ if (f == null || v == null || y == null) {
2225
2250
  console.error("Could not determine text units or sizes for line");
2226
2251
  continue;
2227
2252
  }
2228
- const L = T.reduce((I, F) => I + F.width, 0), P = T.length === 0 ? f : T.reduce((I, F) => Math.max(I, F.top), 0), S = T.length === 0 ? 0 : T.reduce((I, F) => Math.max(I, F.bottom), 0), E = P + S;
2253
+ const T = v.reduce((C, S) => C + S.width, 0);
2229
2254
  switch (e.alignment) {
2230
2255
  case yt.LEFT:
2231
2256
  u = c.origin.x;
2232
2257
  break;
2233
2258
  case yt.CENTER:
2234
- u = c.origin.x + (c.size.width - L) / 2;
2259
+ u = c.origin.x + (c.size.width - T) / 2;
2235
2260
  break;
2236
2261
  case yt.RIGHT:
2237
- u = c.origin.x + (c.size.width - L);
2262
+ u = c.origin.x + (c.size.width - T);
2238
2263
  break;
2239
2264
  default:
2240
- ht(e.alignment);
2265
+ st(e.alignment);
2241
2266
  break;
2242
2267
  }
2243
- g += f * (e.lineSpacing - 1);
2244
- const M = g + P;
2245
- f = E;
2246
- for (let I = 0; I < y.length && !(i !== null && h >= i); I++) {
2247
- const F = y[I], Y = T[I];
2248
- if (F == null || Y == null) {
2268
+ const M = c.origin.y + y.baselineY;
2269
+ for (let C = 0; C < f.length && !(i !== null && g >= i); C++) {
2270
+ const S = f[C], E = v[C];
2271
+ if (S == null || E == null) {
2249
2272
  console.error("Could not determine text unit or size for unit");
2250
2273
  continue;
2251
2274
  }
2252
- const { text: z, ...U } = F;
2253
- let it;
2254
- if (i !== null && h + z.length > i) {
2255
- const Z = i - h;
2256
- it = z.slice(0, Z);
2275
+ const { text: L, ..._ } = S;
2276
+ let F;
2277
+ if (i !== null && g + L.length > i) {
2278
+ const H = i - g;
2279
+ F = L.slice(0, H);
2257
2280
  }
2258
- const rt = it ?? z;
2259
- h += rt.length;
2260
- const ot = { ...s, ...U };
2261
- u0(n, ot, o), n.context.fillText(rt, u, M + Y.baselineShift), u += Y.width;
2281
+ const W = F ?? L;
2282
+ g += W.length;
2283
+ const U = { ...s, ..._ };
2284
+ u0(n, U, o), n.context.fillText(W, u, M + E.baselineShift), u += E.width;
2262
2285
  }
2263
- g += E;
2264
2286
  }
2265
- }, t1 = {
2266
- [V.ARROW]: Sn,
2267
- [V.CIRCLE]: In,
2268
- [V.GROUP]: On,
2269
- [V.IMAGE]: _n,
2270
- [V.LINE]: Rn,
2271
- [V.MASK]: Fn,
2272
- [V.PATH]: Bn,
2273
- [V.POLYGON]: qn,
2274
- [V.RECTANGLE]: jn,
2275
- [V.SLIDE_OBJECT]: () => {
2287
+ }, e1 = {
2288
+ [z.ARROW]: Sn,
2289
+ [z.CIRCLE]: In,
2290
+ [z.GROUP]: On,
2291
+ [z.IMAGE]: _n,
2292
+ [z.LINE]: Rn,
2293
+ [z.MASK]: Fn,
2294
+ [z.PATH]: Bn,
2295
+ [z.POLYGON]: qn,
2296
+ [z.RECTANGLE]: jn,
2297
+ [z.SLIDE_OBJECT]: () => {
2276
2298
  },
2277
- [V.SPOTLIGHT]: $n,
2278
- [V.SVG]: Wn,
2279
- [V.TEXT]: Qn
2299
+ [z.SPOTLIGHT]: Yn,
2300
+ [z.SVG]: $n,
2301
+ [z.TEXT]: t1
2280
2302
  };
2281
- function e1(n) {
2303
+ function n1(n) {
2282
2304
  const e = document.createElementNS("http://www.w3.org/2000/svg", "svg");
2283
2305
  return e.setAttribute("viewBox", `0 0 ${n.width} ${n.height}`), e.style.backgroundColor = "transparent", e.style.position = "absolute", e.style.width = "100%", e;
2284
2306
  }
2285
- function n1(n, e) {
2307
+ function i1(n, e) {
2286
2308
  if (n === null)
2287
2309
  return null;
2288
- const t = ft(
2289
- $({ x: e.x, y: e.y }),
2310
+ const t = ht(
2311
+ Y({ x: e.x, y: e.y }),
2290
2312
  e.anchor,
2291
- Q({ width: e.width, height: e.height })
2313
+ K({ width: e.width, height: e.height })
2292
2314
  ), o = document.createElementNS("http://www.w3.org/2000/svg", "foreignObject");
2293
2315
  o.setAttribute("x", t.origin.x.toString()), o.setAttribute("y", t.origin.y.toString()), o.setAttribute("width", e.width.toString()), o.setAttribute("height", e.height.toString());
2294
2316
  const i = e.content;
@@ -2302,7 +2324,7 @@ function n1(n, e) {
2302
2324
  a !== null && a(), n.removeChild(o);
2303
2325
  };
2304
2326
  }
2305
- async function i1(n) {
2327
+ async function r1(n) {
2306
2328
  if (Object.keys(n).length === 0)
2307
2329
  return {};
2308
2330
  const e = {}, t = (i) => new Promise((a, s) => {
@@ -2327,7 +2349,7 @@ async function i1(n) {
2327
2349
  return e;
2328
2350
  }
2329
2351
  const Re = "presenterPendingVariables:";
2330
- function r1() {
2352
+ function o1() {
2331
2353
  const n = f0();
2332
2354
  if (n === null)
2333
2355
  return {};
@@ -2346,7 +2368,7 @@ function r1() {
2346
2368
  return console.error("Failed to parse pending presenter variable state from sessionStorage:", e), n.removeItem(ie()), {};
2347
2369
  }
2348
2370
  }
2349
- function o1(n) {
2371
+ function s1(n) {
2350
2372
  const e = f0();
2351
2373
  e !== null && e.setItem(ie(), JSON.stringify({ values: n }));
2352
2374
  }
@@ -2360,33 +2382,33 @@ function f0() {
2360
2382
  return null;
2361
2383
  }
2362
2384
  }
2363
- const s1 = 0, a1 = 1, d0 = 0, l1 = 0.01, Dt = /* @__PURE__ */ new Map();
2385
+ const a1 = 0, l1 = 1, d0 = 0, h1 = 0.01, Dt = /* @__PURE__ */ new Map();
2364
2386
  let Ot = /* @__PURE__ */ new Map(), Fe = !1, Be = 1;
2365
- function ki(n = null) {
2366
- g1();
2367
- const e = n ?? {}, t = d1(), o = f1(t, e), i = Ot.get(o.id);
2387
+ function Oi(n = null) {
2388
+ p1();
2389
+ const e = n ?? {}, t = g1(), o = d1(t, e), i = Ot.get(o.id);
2368
2390
  if (i !== void 0) {
2369
2391
  const a = g0(i, o);
2370
2392
  return Ot.set(o.id, a), a;
2371
2393
  }
2372
2394
  return o.default;
2373
2395
  }
2374
- function h1() {
2396
+ function c1() {
2375
2397
  return Array.from(Dt.values());
2376
2398
  }
2377
- function c1(n) {
2399
+ function u1(n) {
2378
2400
  const e = Dt.get(n);
2379
2401
  return e === void 0 ? d0 : Ot.get(e.id) ?? e.default;
2380
2402
  }
2381
- function u1(n, e) {
2403
+ function f1(n, e) {
2382
2404
  const t = Dt.get(n);
2383
2405
  if (t === void 0)
2384
2406
  return e;
2385
2407
  const o = g0(e, t);
2386
2408
  return Ot.set(t.id, o), o;
2387
2409
  }
2388
- function f1(n, e) {
2389
- const t = e.min ?? s1, o = e.max ?? a1, i = Math.min(t, o), a = Math.max(t, o), s = e.increment !== void 0 && e.increment > 0 ? e.increment : l1, r = {
2410
+ function d1(n, e) {
2411
+ const t = e.min ?? a1, o = e.max ?? l1, i = Math.min(t, o), a = Math.max(t, o), s = e.increment !== void 0 && e.increment > 0 ? e.increment : h1, r = {
2390
2412
  id: n,
2391
2413
  name: e.name ?? n,
2392
2414
  min: i,
@@ -2396,12 +2418,12 @@ function f1(n, e) {
2396
2418
  };
2397
2419
  return Dt.set(n, r), r;
2398
2420
  }
2399
- function d1() {
2421
+ function g1() {
2400
2422
  const n = `var${Be}`;
2401
2423
  return Be += 1, n;
2402
2424
  }
2403
- function g1() {
2404
- Fe || (Ot = new Map(Object.entries(r1())), Fe = !0);
2425
+ function p1() {
2426
+ Fe || (Ot = new Map(Object.entries(o1())), Fe = !0);
2405
2427
  }
2406
2428
  function g0(n, e) {
2407
2429
  return p0(n, e.min, e.max);
@@ -2409,11 +2431,11 @@ function g0(n, e) {
2409
2431
  function p0(n, e, t) {
2410
2432
  return Math.max(e, Math.min(t, n));
2411
2433
  }
2412
- function p1({
2434
+ function x1({
2413
2435
  onCommit: n,
2414
2436
  onPreview: e
2415
2437
  }) {
2416
- const t = h1();
2438
+ const t = c1();
2417
2439
  if (t.length === 0)
2418
2440
  return null;
2419
2441
  const o = document.createElement("div");
@@ -2440,10 +2462,10 @@ function p1({
2440
2462
  backdropFilter: "blur(10px)"
2441
2463
  });
2442
2464
  for (const i of t)
2443
- o.appendChild(x1(i, e, n));
2465
+ o.appendChild(y1(i, e, n));
2444
2466
  return o;
2445
2467
  }
2446
- function x1(n, e, t) {
2468
+ function y1(n, e, t) {
2447
2469
  const o = document.createElement("div");
2448
2470
  o.dataset.presenterVariableId = n.id, o.dataset.presenterVariableName = n.name, Object.assign(o.style, {
2449
2471
  display: "grid",
@@ -2476,9 +2498,9 @@ function x1(n, e, t) {
2476
2498
  color: "#ffffff",
2477
2499
  font: "inherit"
2478
2500
  });
2479
- let r = c1(n.id);
2501
+ let r = u1(n.id);
2480
2502
  const l = (g) => {
2481
- const h = y1(g);
2503
+ const h = v1(g);
2482
2504
  a.value = h, s.value = h;
2483
2505
  }, c = (g) => {
2484
2506
  Number.isFinite(g) && (r = e(n.id, g), l(r));
@@ -2487,20 +2509,20 @@ function x1(n, e, t) {
2487
2509
  };
2488
2510
  return a.addEventListener("input", () => c(a.valueAsNumber)), a.addEventListener("change", () => u(a.valueAsNumber)), s.addEventListener("change", () => u(s.valueAsNumber)), l(r), o.appendChild(i), o.appendChild(a), o.appendChild(s), o;
2489
2511
  }
2490
- function y1(n) {
2512
+ function v1(n) {
2491
2513
  return Number.isInteger(n) ? n.toString() : parseFloat(n.toFixed(6)).toString();
2492
2514
  }
2493
- function v1({ container: n, onCommit: e }) {
2494
- const t = p1({
2515
+ function w1({ container: n, onCommit: e }) {
2516
+ const t = x1({
2495
2517
  onPreview: (o, i) => {
2496
- const a = u1(o, i);
2497
- return o1({ [o]: a }), a;
2518
+ const a = f1(o, i);
2519
+ return s1({ [o]: a }), a;
2498
2520
  },
2499
2521
  onCommit: e
2500
2522
  });
2501
2523
  t !== null && n.appendChild(t);
2502
2524
  }
2503
- class Oi {
2525
+ class _i {
2504
2526
  constructor(e) {
2505
2527
  this.navigator = null;
2506
2528
  const { objectRenderers: t, scale: o = 1, ...i } = e;
@@ -2508,11 +2530,11 @@ class Oi {
2508
2530
  presentation: dn(),
2509
2531
  element: document.body,
2510
2532
  objectRenderers: {
2511
- ...t1,
2533
+ ...e1,
2512
2534
  ...t
2513
2535
  },
2514
2536
  cacheDurationMinutes: 15,
2515
- scale: w1(o),
2537
+ scale: m1(o),
2516
2538
  ...i
2517
2539
  }, this.state = { ..._e };
2518
2540
  }
@@ -2520,10 +2542,10 @@ class Oi {
2520
2542
  async present() {
2521
2543
  const { presentation: e, element: t, scale: o } = this.props;
2522
2544
  this.hideCursor();
2523
- const i = Mn(e.size), a = e1(e.size);
2545
+ const i = Ln(e.size), a = n1(e.size);
2524
2546
  a.style.transformOrigin = "center center", a.style.transform = `scale(${o})`, this.state = {
2525
2547
  ..._e,
2526
- imageById: await i1({
2548
+ imageById: await r1({
2527
2549
  ...e.resources.images,
2528
2550
  ...bn(e)
2529
2551
  }),
@@ -2560,7 +2582,7 @@ class Oi {
2560
2582
  focusOnPointerDown: !r,
2561
2583
  keyEventTarget: r ? window : s
2562
2584
  }
2563
- ), t.replaceChildren(), s.appendChild(i), s.appendChild(a), v1({
2585
+ ), t.replaceChildren(), s.appendChild(i), s.appendChild(a), w1({
2564
2586
  container: s,
2565
2587
  onCommit: () => this.reloadAfterVariableChange()
2566
2588
  }), t.appendChild(s);
@@ -2585,7 +2607,7 @@ class Oi {
2585
2607
  l();
2586
2608
  this.state.mountedExtrasCleanups = [];
2587
2609
  for (const l of r.extras) {
2588
- const c = n1(this.state.extrasContainer, l);
2610
+ const c = i1(this.state.extrasContainer, l);
2589
2611
  c !== null && this.state.mountedExtrasCleanups.push(c);
2590
2612
  }
2591
2613
  }
@@ -2599,7 +2621,7 @@ class Oi {
2599
2621
  if (c === null)
2600
2622
  return;
2601
2623
  const u = {
2602
- type: K.Browser,
2624
+ type: Z.Browser,
2603
2625
  context: c
2604
2626
  };
2605
2627
  Tn(e, u);
@@ -2613,15 +2635,15 @@ class Oi {
2613
2635
  });
2614
2636
  u.context.fillStyle = pe(r.backgroundColor), u.context.fillRect(0, 0, e.width, e.height);
2615
2637
  function f(y, T) {
2616
- const L = s[y.objectType], P = h.get(y);
2617
- L === void 0 || P === void 0 || L({
2638
+ const M = s[y.objectType], C = h.get(y);
2639
+ M === void 0 || C === void 0 || M({
2618
2640
  ctx: u,
2619
2641
  imageById: l,
2620
- object: P,
2642
+ object: C,
2621
2643
  opacity: T,
2622
2644
  renderScale: a,
2623
2645
  renderObject: f,
2624
- createPath2D: Ln,
2646
+ createPath2D: Mn,
2625
2647
  slideSize: r.size
2626
2648
  });
2627
2649
  }
@@ -2693,20 +2715,20 @@ class Oi {
2693
2715
  this.props.element.style.cursor = "none", (t = (e = this.state.canvas) == null ? void 0 : e.parentElement) == null || t.style.setProperty("cursor", "none");
2694
2716
  }
2695
2717
  }
2696
- function w1(n) {
2718
+ function m1(n) {
2697
2719
  return n <= 0 || n > 1 ? (console.warn(
2698
2720
  `BrowserCanvasRenderer scale must be positive and no greater than 1. Received ${n}; using 1 instead.`
2699
2721
  ), 1) : n;
2700
2722
  }
2701
- function _i(n = 1e3) {
2723
+ function Ni(n = 1e3) {
2702
2724
  return {
2703
- type: dt.PAUSE,
2725
+ type: ut.PAUSE,
2704
2726
  isKey: !1,
2705
2727
  duration: n,
2706
2728
  shortcut: null
2707
2729
  };
2708
2730
  }
2709
- function Ni(n = null) {
2731
+ function Ri(n = null) {
2710
2732
  return {
2711
2733
  objects: [],
2712
2734
  animations: [],
@@ -2719,31 +2741,31 @@ function Ni(n = null) {
2719
2741
  ...n
2720
2742
  };
2721
2743
  }
2722
- function Ri(n, e = {}) {
2744
+ function Fi(n, e = {}) {
2723
2745
  return {
2724
2746
  ...e,
2725
2747
  text: n
2726
2748
  };
2727
2749
  }
2728
- function Fi(n = G.BLACK) {
2750
+ function Bi(n = G.BLACK) {
2729
2751
  return { ...n, alpha: 1 };
2730
2752
  }
2731
- function m1(n) {
2753
+ function b1(n) {
2732
2754
  for (var e = -1, t = n.length, o, i = n[t - 1], a = 0; ++e < t; )
2733
2755
  o = i, i = n[e], a += o[1] * i[0] - o[0] * i[1];
2734
2756
  return a / 2;
2735
2757
  }
2736
- function b1(n) {
2758
+ function A1(n) {
2737
2759
  for (var e = -1, t = n.length, o = n[t - 1], i, a, s = o[0], r = o[1], l = 0; ++e < t; )
2738
2760
  i = s, a = r, o = n[e], s = o[0], r = o[1], i -= s, a -= r, l += Math.sqrt(i * i + a * a);
2739
2761
  return l;
2740
2762
  }
2741
- function A1(n) {
2763
+ function T1(n) {
2742
2764
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
2743
2765
  }
2744
- var $t, De;
2745
- function T1() {
2746
- if (De) return $t;
2766
+ var Yt, De;
2767
+ function L1() {
2768
+ if (De) return Yt;
2747
2769
  De = 1;
2748
2770
  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 = [
2749
2771
  5760,
@@ -2818,35 +2840,35 @@ function T1() {
2818
2840
  f.err = "SvgPath: arc flag can be 0 or 1 only (at pos " + f.index + ")";
2819
2841
  }
2820
2842
  function u(f) {
2821
- var v = f.index, y = v, T = f.max, L = !1, P = !1, S = !1, E = !1, M;
2843
+ var v = f.index, y = v, T = f.max, M = !1, C = !1, S = !1, E = !1, L;
2822
2844
  if (y >= T) {
2823
2845
  f.err = "SvgPath: missed param (at pos " + y + ")";
2824
2846
  return;
2825
2847
  }
2826
- if (M = f.path.charCodeAt(y), (M === 43 || M === 45) && (y++, M = y < T ? f.path.charCodeAt(y) : 0), !a(M) && M !== 46) {
2848
+ if (L = f.path.charCodeAt(y), (L === 43 || L === 45) && (y++, L = y < T ? f.path.charCodeAt(y) : 0), !a(L) && L !== 46) {
2827
2849
  f.err = "SvgPath: param should start with 0..9 or `.` (at pos " + y + ")";
2828
2850
  return;
2829
2851
  }
2830
- if (M !== 46) {
2831
- if (L = M === 48, y++, M = y < T ? f.path.charCodeAt(y) : 0, L && y < T && M && a(M)) {
2852
+ if (L !== 46) {
2853
+ if (M = L === 48, y++, L = y < T ? f.path.charCodeAt(y) : 0, M && y < T && L && a(L)) {
2832
2854
  f.err = "SvgPath: numbers started with `0` such as `09` are illegal (at pos " + v + ")";
2833
2855
  return;
2834
2856
  }
2835
2857
  for (; y < T && a(f.path.charCodeAt(y)); )
2836
- y++, P = !0;
2837
- M = y < T ? f.path.charCodeAt(y) : 0;
2858
+ y++, C = !0;
2859
+ L = y < T ? f.path.charCodeAt(y) : 0;
2838
2860
  }
2839
- if (M === 46) {
2861
+ if (L === 46) {
2840
2862
  for (E = !0, y++; a(f.path.charCodeAt(y)); )
2841
2863
  y++, S = !0;
2842
- M = y < T ? f.path.charCodeAt(y) : 0;
2864
+ L = y < T ? f.path.charCodeAt(y) : 0;
2843
2865
  }
2844
- if (M === 101 || M === 69) {
2845
- if (E && !P && !S) {
2866
+ if (L === 101 || L === 69) {
2867
+ if (E && !C && !S) {
2846
2868
  f.err = "SvgPath: invalid float exponent (at pos " + y + ")";
2847
2869
  return;
2848
2870
  }
2849
- if (y++, M = y < T ? f.path.charCodeAt(y) : 0, (M === 43 || M === 45) && y++, y < T && a(f.path.charCodeAt(y)))
2871
+ if (y++, L = y < T ? f.path.charCodeAt(y) : 0, (L === 43 || L === 45) && y++, y < T && a(f.path.charCodeAt(y)))
2850
2872
  for (; y < T && a(f.path.charCodeAt(y)); )
2851
2873
  y++;
2852
2874
  else {
@@ -2867,29 +2889,29 @@ function T1() {
2867
2889
  ;
2868
2890
  }
2869
2891
  function h(f) {
2870
- var v = f.max, y, T, L, P, S;
2892
+ var v = f.max, y, T, M, C, S;
2871
2893
  if (f.segmentStart = f.index, y = f.path.charCodeAt(f.index), T = i(y), !o(y)) {
2872
2894
  f.err = "SvgPath: bad command " + f.path[f.index] + " (at pos " + f.index + ")";
2873
2895
  return;
2874
2896
  }
2875
- if (P = n[f.path[f.index].toLowerCase()], f.index++, l(f), f.data = [], !P) {
2897
+ if (C = n[f.path[f.index].toLowerCase()], f.index++, l(f), f.data = [], !C) {
2876
2898
  g(f);
2877
2899
  return;
2878
2900
  }
2879
- for (L = !1; ; ) {
2880
- for (S = P; S > 0; S--) {
2901
+ for (M = !1; ; ) {
2902
+ for (S = C; S > 0; S--) {
2881
2903
  if (T && (S === 3 || S === 4) ? c(f) : u(f), f.err.length) {
2882
2904
  g(f);
2883
2905
  return;
2884
2906
  }
2885
- f.data.push(f.param), l(f), L = !1, f.index < v && f.path.charCodeAt(f.index) === 44 && (f.index++, l(f), L = !0);
2907
+ f.data.push(f.param), l(f), M = !1, f.index < v && f.path.charCodeAt(f.index) === 44 && (f.index++, l(f), M = !0);
2886
2908
  }
2887
- if (!L && (f.index >= f.max || !s(f.path.charCodeAt(f.index))))
2909
+ if (!M && (f.index >= f.max || !s(f.path.charCodeAt(f.index))))
2888
2910
  break;
2889
2911
  }
2890
2912
  g(f);
2891
2913
  }
2892
- return $t = function(v) {
2914
+ return Yt = function(v) {
2893
2915
  var y = new r(v), T = y.max;
2894
2916
  for (l(y); y.index < T && !y.err.length; )
2895
2917
  h(y);
@@ -2897,11 +2919,11 @@ function T1() {
2897
2919
  err: y.err,
2898
2920
  segments: y.result
2899
2921
  };
2900
- }, $t;
2922
+ }, Yt;
2901
2923
  }
2902
- var Wt, qe;
2924
+ var $t, qe;
2903
2925
  function x0() {
2904
- if (qe) return Wt;
2926
+ if (qe) return $t;
2905
2927
  qe = 1;
2906
2928
  function n(t, o) {
2907
2929
  return [
@@ -2947,11 +2969,11 @@ function x0() {
2947
2969
  t * a[0] + o * a[2] + (i ? 0 : a[4]),
2948
2970
  t * a[1] + o * a[3] + (i ? 0 : a[5])
2949
2971
  ]) : [t, o];
2950
- }, Wt = e, Wt;
2972
+ }, $t = e, $t;
2951
2973
  }
2952
- var Yt, ze;
2974
+ var Wt, ze;
2953
2975
  function M1() {
2954
- if (ze) return Yt;
2976
+ if (ze) return Wt;
2955
2977
  ze = 1;
2956
2978
  var n = x0(), e = {
2957
2979
  matrix: !0,
@@ -2961,7 +2983,7 @@ function M1() {
2961
2983
  skewX: !0,
2962
2984
  skewY: !0
2963
2985
  }, t = /\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/, o = /[\s,]+/;
2964
- return Yt = function(a) {
2986
+ return Wt = function(a) {
2965
2987
  var s = new n(), r, l;
2966
2988
  return a.split(t).forEach(function(c) {
2967
2989
  if (c.length) {
@@ -2993,10 +3015,10 @@ function M1() {
2993
3015
  }
2994
3016
  }
2995
3017
  }), s;
2996
- }, Yt;
3018
+ }, Wt;
2997
3019
  }
2998
3020
  var Gt, Ve;
2999
- function L1() {
3021
+ function C1() {
3000
3022
  if (Ve) return Gt;
3001
3023
  Ve = 1;
3002
3024
  var n = Math.PI * 2;
@@ -3005,41 +3027,41 @@ function L1() {
3005
3027
  return c > 1 && (c = 1), c < -1 && (c = -1), l * Math.acos(c);
3006
3028
  }
3007
3029
  function t(i, a, s, r, l, c, u, g, h, f) {
3008
- var v = f * (i - s) / 2 + h * (a - r) / 2, y = -h * (i - s) / 2 + f * (a - r) / 2, T = u * u, L = g * g, P = v * v, S = y * y, E = T * L - T * S - L * P;
3009
- E < 0 && (E = 0), E /= T * S + L * P, E = Math.sqrt(E) * (l === c ? -1 : 1);
3010
- var M = E * u / g * y, I = E * -g / u * v, F = f * M - h * I + (i + s) / 2, Y = h * M + f * I + (a + r) / 2, z = (v - M) / u, U = (y - I) / g, it = (-v - M) / u, rt = (-y - I) / g, ot = e(1, 0, z, U), Z = e(z, U, it, rt);
3011
- return c === 0 && Z > 0 && (Z -= n), c === 1 && Z < 0 && (Z += n), [F, Y, ot, Z];
3030
+ var v = f * (i - s) / 2 + h * (a - r) / 2, y = -h * (i - s) / 2 + f * (a - r) / 2, T = u * u, M = g * g, C = v * v, S = y * y, E = T * M - T * S - M * C;
3031
+ E < 0 && (E = 0), E /= T * S + M * C, E = Math.sqrt(E) * (l === c ? -1 : 1);
3032
+ var L = E * u / g * y, _ = E * -g / u * v, F = f * L - h * _ + (i + s) / 2, W = h * L + f * _ + (a + r) / 2, U = (v - L) / u, H = (y - _) / g, gt = (-v - L) / u, pt = (-y - _) / g, ct = e(1, 0, U, H), nt = e(U, H, gt, pt);
3033
+ return c === 0 && nt > 0 && (nt -= n), c === 1 && nt < 0 && (nt += n), [F, W, ct, nt];
3012
3034
  }
3013
3035
  function o(i, a) {
3014
3036
  var s = 1.3333333333333333 * Math.tan(a / 4), r = Math.cos(i), l = Math.sin(i), c = Math.cos(i + a), u = Math.sin(i + a);
3015
3037
  return [r, l, r - l * s, l + r * s, c + u * s, u - c * s, c, u];
3016
3038
  }
3017
3039
  return Gt = function(a, s, r, l, c, u, g, h, f) {
3018
- var v = Math.sin(f * n / 360), y = Math.cos(f * n / 360), T = y * (a - r) / 2 + v * (s - l) / 2, L = -v * (a - r) / 2 + y * (s - l) / 2;
3019
- if (T === 0 && L === 0)
3040
+ var v = Math.sin(f * n / 360), y = Math.cos(f * n / 360), T = y * (a - r) / 2 + v * (s - l) / 2, M = -v * (a - r) / 2 + y * (s - l) / 2;
3041
+ if (T === 0 && M === 0)
3020
3042
  return [];
3021
3043
  if (g === 0 || h === 0)
3022
3044
  return [];
3023
3045
  g = Math.abs(g), h = Math.abs(h);
3024
- var P = T * T / (g * g) + L * L / (h * h);
3025
- P > 1 && (g *= Math.sqrt(P), h *= Math.sqrt(P));
3026
- var S = t(a, s, r, l, c, u, g, h, v, y), E = [], M = S[2], I = S[3], F = Math.max(Math.ceil(Math.abs(I) / (n / 4)), 1);
3027
- I /= F;
3028
- for (var Y = 0; Y < F; Y++)
3029
- E.push(o(M, I)), M += I;
3030
- return E.map(function(z) {
3031
- for (var U = 0; U < z.length; U += 2) {
3032
- var it = z[U + 0], rt = z[U + 1];
3033
- it *= g, rt *= h;
3034
- var ot = y * it - v * rt, Z = v * it + y * rt;
3035
- z[U + 0] = ot + S[0], z[U + 1] = Z + S[1];
3046
+ var C = T * T / (g * g) + M * M / (h * h);
3047
+ C > 1 && (g *= Math.sqrt(C), h *= Math.sqrt(C));
3048
+ var S = t(a, s, r, l, c, u, g, h, v, y), E = [], L = S[2], _ = S[3], F = Math.max(Math.ceil(Math.abs(_) / (n / 4)), 1);
3049
+ _ /= F;
3050
+ for (var W = 0; W < F; W++)
3051
+ E.push(o(L, _)), L += _;
3052
+ return E.map(function(U) {
3053
+ for (var H = 0; H < U.length; H += 2) {
3054
+ var gt = U[H + 0], pt = U[H + 1];
3055
+ gt *= g, pt *= h;
3056
+ var ct = y * gt - v * pt, nt = v * gt + y * pt;
3057
+ U[H + 0] = ct + S[0], U[H + 1] = nt + S[1];
3036
3058
  }
3037
- return z;
3059
+ return U;
3038
3060
  });
3039
3061
  }, Gt;
3040
3062
  }
3041
3063
  var Xt, je;
3042
- function C1() {
3064
+ function S1() {
3043
3065
  if (je) return Xt;
3044
3066
  je = 1;
3045
3067
  var n = 1e-10, e = Math.PI / 180;
@@ -3067,11 +3089,11 @@ function C1() {
3067
3089
  return this.rx < n * this.ry || this.ry < n * this.rx;
3068
3090
  }, Xt = t, Xt;
3069
3091
  }
3070
- var Kt, He;
3071
- function S1() {
3072
- if (He) return Kt;
3073
- He = 1;
3074
- var n = T1(), e = M1(), t = x0(), o = L1(), i = C1();
3092
+ var Kt, Ue;
3093
+ function P1() {
3094
+ if (Ue) return Kt;
3095
+ Ue = 1;
3096
+ var n = L1(), e = M1(), t = x0(), o = C1(), i = S1();
3075
3097
  function a(s) {
3076
3098
  if (!(this instanceof a))
3077
3099
  return new a(s);
@@ -3109,12 +3131,12 @@ function S1() {
3109
3131
  break;
3110
3132
  case "a":
3111
3133
  case "A":
3112
- var L = s.toArray(), P = i(c[1], c[2], c[3]).transform(L);
3113
- if (L[0] * L[3] - L[1] * L[2] < 0 && (c[5] = c[5] ? "0" : "1"), f = s.calc(c[6], c[7], c[0] === "a"), c[0] === "A" && c[6] === g && c[7] === h || c[0] === "a" && c[6] === 0 && c[7] === 0) {
3134
+ var M = s.toArray(), C = i(c[1], c[2], c[3]).transform(M);
3135
+ if (M[0] * M[3] - M[1] * M[2] < 0 && (c[5] = c[5] ? "0" : "1"), f = s.calc(c[6], c[7], c[0] === "a"), c[0] === "A" && c[6] === g && c[7] === h || c[0] === "a" && c[6] === 0 && c[7] === 0) {
3114
3136
  v = [c[0] === "a" ? "l" : "L", f[0], f[1]];
3115
3137
  break;
3116
3138
  }
3117
- P.isDegenerate() ? v = [c[0] === "a" ? "l" : "L", f[0], f[1]] : v = [c[0], P.rx, P.ry, P.ax, c[4], c[5], f[0], f[1]];
3139
+ C.isDegenerate() ? v = [c[0] === "a" ? "l" : "L", f[0], f[1]] : v = [c[0], C.rx, C.ry, C.ax, c[4], c[5], f[0], f[1]];
3118
3140
  break;
3119
3141
  case "m":
3120
3142
  T = u > 0, f = s.calc(c[1], c[2], T), v = ["m", f[0], f[1]];
@@ -3196,40 +3218,40 @@ function S1() {
3196
3218
  }
3197
3219
  }), this;
3198
3220
  }, a.prototype.iterate = function(s, r) {
3199
- var l = this.segments, c = {}, u = !1, g = 0, h = 0, f = 0, v = 0, y, T, L;
3200
- if (r || this.__evaluateStack(), l.forEach(function(P, S) {
3201
- var E = s(P, S, g, h);
3221
+ var l = this.segments, c = {}, u = !1, g = 0, h = 0, f = 0, v = 0, y, T, M;
3222
+ if (r || this.__evaluateStack(), l.forEach(function(C, S) {
3223
+ var E = s(C, S, g, h);
3202
3224
  Array.isArray(E) && (c[S] = E, u = !0);
3203
- var M = P[0] === P[0].toLowerCase();
3204
- switch (P[0]) {
3225
+ var L = C[0] === C[0].toLowerCase();
3226
+ switch (C[0]) {
3205
3227
  case "m":
3206
3228
  case "M":
3207
- g = P[1] + (M ? g : 0), h = P[2] + (M ? h : 0), f = g, v = h;
3229
+ g = C[1] + (L ? g : 0), h = C[2] + (L ? h : 0), f = g, v = h;
3208
3230
  return;
3209
3231
  case "h":
3210
3232
  case "H":
3211
- g = P[1] + (M ? g : 0);
3233
+ g = C[1] + (L ? g : 0);
3212
3234
  return;
3213
3235
  case "v":
3214
3236
  case "V":
3215
- h = P[1] + (M ? h : 0);
3237
+ h = C[1] + (L ? h : 0);
3216
3238
  return;
3217
3239
  case "z":
3218
3240
  case "Z":
3219
3241
  g = f, h = v;
3220
3242
  return;
3221
3243
  default:
3222
- g = P[P.length - 2] + (M ? g : 0), h = P[P.length - 1] + (M ? h : 0);
3244
+ g = C[C.length - 2] + (L ? g : 0), h = C[C.length - 1] + (L ? h : 0);
3223
3245
  }
3224
3246
  }), !u)
3225
3247
  return this;
3226
- for (L = [], y = 0; y < l.length; y++)
3248
+ for (M = [], y = 0; y < l.length; y++)
3227
3249
  if (typeof c[y] < "u")
3228
3250
  for (T = 0; T < c[y].length; T++)
3229
- L.push(c[y][T]);
3251
+ M.push(c[y][T]);
3230
3252
  else
3231
- L.push(l[y]);
3232
- return this.segments = L, this;
3253
+ M.push(l[y]);
3254
+ return this.segments = M, this;
3233
3255
  }, a.prototype.abs = function() {
3234
3256
  return this.iterate(function(s, r, l, c) {
3235
3257
  var u = s[0], g = u.toUpperCase(), h;
@@ -3272,15 +3294,15 @@ function S1() {
3272
3294
  }, a.prototype.unshort = function() {
3273
3295
  var s = this.segments, r, l, c, u, g;
3274
3296
  return this.iterate(function(h, f, v, y) {
3275
- var T = h[0], L = T.toUpperCase(), P;
3276
- f && (L === "T" ? (P = T === "t", c = s[f - 1], c[0] === "Q" ? (r = c[1] - v, l = c[2] - y) : c[0] === "q" ? (r = c[1] - c[3], l = c[2] - c[4]) : (r = 0, l = 0), u = -r, g = -l, P || (u += v, g += y), s[f] = [
3277
- P ? "q" : "Q",
3297
+ var T = h[0], M = T.toUpperCase(), C;
3298
+ f && (M === "T" ? (C = T === "t", c = s[f - 1], c[0] === "Q" ? (r = c[1] - v, l = c[2] - y) : c[0] === "q" ? (r = c[1] - c[3], l = c[2] - c[4]) : (r = 0, l = 0), u = -r, g = -l, C || (u += v, g += y), s[f] = [
3299
+ C ? "q" : "Q",
3278
3300
  u,
3279
3301
  g,
3280
3302
  h[1],
3281
3303
  h[2]
3282
- ]) : L === "S" && (P = T === "s", c = s[f - 1], c[0] === "C" ? (r = c[3] - v, l = c[4] - y) : c[0] === "c" ? (r = c[3] - c[5], l = c[4] - c[6]) : (r = 0, l = 0), u = -r, g = -l, P || (u += v, g += y), s[f] = [
3283
- P ? "c" : "C",
3304
+ ]) : M === "S" && (C = T === "s", c = s[f - 1], c[0] === "C" ? (r = c[3] - v, l = c[4] - y) : c[0] === "c" ? (r = c[3] - c[5], l = c[4] - c[6]) : (r = 0, l = 0), u = -r, g = -l, C || (u += v, g += y), s[f] = [
3305
+ C ? "c" : "C",
3284
3306
  u,
3285
3307
  g,
3286
3308
  h[1],
@@ -3291,18 +3313,18 @@ function S1() {
3291
3313
  }), this;
3292
3314
  }, Kt = a, Kt;
3293
3315
  }
3294
- var Zt, Ue;
3295
- function P1() {
3296
- return Ue || (Ue = 1, Zt = S1()), Zt;
3316
+ var Zt, He;
3317
+ function E1() {
3318
+ return He || (He = 1, Zt = P1()), Zt;
3297
3319
  }
3298
- var E1 = P1();
3299
- const I1 = /* @__PURE__ */ A1(E1);
3300
- var Jt = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, k1 = /([astvzqmhlc])([^astvzqmhlc]*)/ig;
3301
- function O1(n) {
3320
+ var I1 = E1();
3321
+ const k1 = /* @__PURE__ */ T1(I1);
3322
+ var Jt = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, O1 = /([astvzqmhlc])([^astvzqmhlc]*)/ig;
3323
+ function _1(n) {
3302
3324
  var e = [];
3303
- return n.replace(k1, function(t, o, i) {
3325
+ return n.replace(O1, function(t, o, i) {
3304
3326
  var a = o.toLowerCase();
3305
- for (i = N1(i), a === "m" && i.length > 2 && (e.push([o].concat(i.splice(0, 2))), a = "l", o = o === "m" ? "l" : "L"); i.length >= 0; ) {
3327
+ for (i = R1(i), a === "m" && i.length > 2 && (e.push([o].concat(i.splice(0, 2))), a = "l", o = o === "m" ? "l" : "L"); i.length >= 0; ) {
3306
3328
  if (i.length === Jt[a])
3307
3329
  return i.unshift(o), e.push(i);
3308
3330
  if (i.length < Jt[a])
@@ -3311,16 +3333,16 @@ function O1(n) {
3311
3333
  }
3312
3334
  }), e;
3313
3335
  }
3314
- var _1 = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;
3315
- function N1(n) {
3316
- var e = n.match(_1);
3336
+ var N1 = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;
3337
+ function R1(n) {
3338
+ var e = n.match(N1);
3317
3339
  return e ? e.map(Number) : [];
3318
3340
  }
3319
- function at(n, e, t, o, i, a, s, r) {
3341
+ function rt(n, e, t, o, i, a, s, r) {
3320
3342
  return new re(n, e, t, o, i, a, s, r);
3321
3343
  }
3322
3344
  function re(n, e, t, o, i, a, s, r) {
3323
- 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 = U1, this.getPoint = B1, this.getDerivative = F1) : (this.getArcLength = D1, this.getPoint = y0, this.getDerivative = R1), this.init();
3345
+ 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 = Y1, this.getPoint = D1, this.getDerivative = B1) : (this.getArcLength = q1, this.getPoint = y0, this.getDerivative = F1), this.init();
3324
3346
  }
3325
3347
  re.prototype = {
3326
3348
  constructor: re,
@@ -3382,13 +3404,13 @@ re.prototype = {
3382
3404
  return { x: a.x, y: a.y, tangentX: i.x, tangentY: i.y };
3383
3405
  }
3384
3406
  };
3385
- function R1(n, e, t) {
3407
+ function F1(n, e, t) {
3386
3408
  return {
3387
3409
  x: (1 - t) * 2 * (n[1] - n[0]) + t * 2 * (n[2] - n[1]),
3388
3410
  y: (1 - t) * 2 * (e[1] - e[0]) + t * 2 * (e[2] - e[1])
3389
3411
  };
3390
3412
  }
3391
- function F1(n, e, t) {
3413
+ function B1(n, e, t) {
3392
3414
  var o = y0(
3393
3415
  [3 * (n[1] - n[0]), 3 * (n[2] - n[1]), 3 * (n[3] - n[2])],
3394
3416
  [3 * (e[1] - e[0]), 3 * (e[2] - e[1]), 3 * (e[3] - e[2])],
@@ -3407,11 +3429,11 @@ function y0(n, e, t) {
3407
3429
  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];
3408
3430
  return { x: o, y: i };
3409
3431
  }
3410
- function B1(n, e, t) {
3432
+ function D1(n, e, t) {
3411
3433
  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];
3412
3434
  return { x: o, y: i };
3413
3435
  }
3414
- function D1(n, e, t) {
3436
+ function q1(n, e, t) {
3415
3437
  t === void 0 && (t = 1);
3416
3438
  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), l = 4 * (o * a + i * s), c = a * a + s * s;
3417
3439
  if (r === 0)
@@ -3421,7 +3443,7 @@ function D1(n, e, t) {
3421
3443
  (h + Math.sqrt(h * h + f)) / (u + Math.sqrt(u * u + f))
3422
3444
  )));
3423
3445
  }
3424
- var q1 = [
3446
+ var z1 = [
3425
3447
  [],
3426
3448
  [],
3427
3449
  [-0.5773502691896257, 0.5773502691896257],
@@ -3447,7 +3469,7 @@ var q1 = [
3447
3469
  [-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],
3448
3470
  [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],
3449
3471
  [-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]
3450
- ], z1 = [
3472
+ ], V1 = [
3451
3473
  [],
3452
3474
  [],
3453
3475
  [1, 1],
@@ -3473,9 +3495,9 @@ var q1 = [
3473
3495
  [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],
3474
3496
  [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],
3475
3497
  [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]
3476
- ], V1 = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]];
3477
- function j1(n, e) {
3478
- return V1[n][e];
3498
+ ], j1 = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]];
3499
+ function U1(n, e) {
3500
+ return j1[n][e];
3479
3501
  }
3480
3502
  function oe(n, e, t) {
3481
3503
  var o = t.length - 1, i, a, s;
@@ -3483,7 +3505,7 @@ function oe(n, e, t) {
3483
3505
  return 0;
3484
3506
  if (n === 0) {
3485
3507
  for (a = 0, s = 0; s <= o; s++)
3486
- a += j1(o, s) * Math.pow(1 - e, o - s) * Math.pow(e, s) * t[s];
3508
+ a += U1(o, s) * Math.pow(1 - e, o - s) * Math.pow(e, s) * t[s];
3487
3509
  return a;
3488
3510
  } else {
3489
3511
  for (i = new Array(o), s = 0; s < o; s++)
@@ -3495,30 +3517,30 @@ function H1(n, e, t) {
3495
3517
  var o = oe(1, t, n), i = oe(1, t, e), a = o * o + i * i;
3496
3518
  return Math.sqrt(a);
3497
3519
  }
3498
- function U1(n, e, t) {
3520
+ function Y1(n, e, t) {
3499
3521
  var o, i, a, s;
3500
3522
  t === void 0 && (t = 1);
3501
3523
  var r = 20;
3502
3524
  for (o = t / 2, i = 0, a = 0; a < r; a++)
3503
- s = o * q1[r][a] + o, i += z1[r][a] * H1(n, e, s);
3525
+ s = o * z1[r][a] + o, i += V1[r][a] * H1(n, e, s);
3504
3526
  return o * i;
3505
3527
  }
3506
3528
  var Et = Math.PI * 2;
3507
- function $e(n, e, t, o) {
3529
+ function Ye(n, e, t, o) {
3508
3530
  var i = n * o - e * t < 0 ? -1 : 1, a = n * t + e * o;
3509
3531
  return a > 1 && (a = 1), a < -1 && (a = -1), i * Math.acos(a);
3510
3532
  }
3511
3533
  function $1(n, e, t, o, i, a, s, r, l, c) {
3512
3534
  var u = c * (n - t) / 2 + l * (e - o) / 2, g = -l * (n - t) / 2 + c * (e - o) / 2, h = s * s, f = r * r, v = u * u, y = g * g, T = h * f - h * y - f * v;
3513
3535
  T < 0 && (T = 0), T /= h * y + f * v, T = Math.sqrt(T) * (i === a ? -1 : 1);
3514
- var L = T * s / r * g, P = T * -r / s * u, S = c * L - l * P + (n + t) / 2, E = l * L + c * P + (e + o) / 2, M = (u - L) / s, I = (g - P) / r, F = (-u - L) / s, Y = (-g - P) / r, z = $e(1, 0, M, I), U = $e(M, I, F, Y);
3515
- return a === 0 && U > 0 && (U -= Et), a === 1 && U < 0 && (U += Et), [S, E, z, U];
3536
+ var M = T * s / r * g, C = T * -r / s * u, S = c * M - l * C + (n + t) / 2, E = l * M + c * C + (e + o) / 2, L = (u - M) / s, _ = (g - C) / r, F = (-u - M) / s, W = (-g - C) / r, U = Ye(1, 0, L, _), H = Ye(L, _, F, W);
3537
+ return a === 0 && H > 0 && (H -= Et), a === 1 && H < 0 && (H += Et), [S, E, U, H];
3516
3538
  }
3517
3539
  function W1(n, e) {
3518
3540
  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);
3519
3541
  return [o, i, o - i * t, i + o * t, a + s * t, s - a * t, a, s];
3520
3542
  }
3521
- function Y1(n, e, t, o, i, a, s, r, l) {
3543
+ function G1(n, e, t, o, i, a, s, r, l) {
3522
3544
  var c = Math.sin(i * Et / 360), u = Math.cos(i * Et / 360), g = u * (n - r) / 2 + c * (e - l) / 2, h = -c * (n - r) / 2 + u * (e - l) / 2;
3523
3545
  if (g === 0 && h === 0)
3524
3546
  return [];
@@ -3527,27 +3549,27 @@ function Y1(n, e, t, o, i, a, s, r, l) {
3527
3549
  t = Math.abs(t), o = Math.abs(o);
3528
3550
  var f = g * g / (t * t) + h * h / (o * o);
3529
3551
  f > 1 && (t *= Math.sqrt(f), o *= Math.sqrt(f));
3530
- var v = $1(n, e, r, l, a, s, t, o, c, u), y = [], T = v[2], L = v[3], P = Math.max(Math.ceil(Math.abs(L) / (Et / 4)), 1);
3531
- L /= P;
3532
- for (var S = 0; S < P; S++)
3533
- y.push(W1(T, L)), T += L;
3552
+ var v = $1(n, e, r, l, a, s, t, o, c, u), y = [], T = v[2], M = v[3], C = Math.max(Math.ceil(Math.abs(M) / (Et / 4)), 1);
3553
+ M /= C;
3554
+ for (var S = 0; S < C; S++)
3555
+ y.push(W1(T, M)), T += M;
3534
3556
  return y.map(function(E) {
3535
- for (var M = 0; M < E.length; M += 2) {
3536
- var I = E[M + 0], F = E[M + 1];
3537
- I *= t, F *= o;
3538
- var Y = u * I - c * F, z = c * I + u * F;
3539
- E[M + 0] = Y + v[0], E[M + 1] = z + v[1];
3557
+ for (var L = 0; L < E.length; L += 2) {
3558
+ var _ = E[L + 0], F = E[L + 1];
3559
+ _ *= t, F *= o;
3560
+ var W = u * _ - c * F, U = c * _ + u * F;
3561
+ E[L + 0] = W + v[0], E[L + 1] = U + v[1];
3540
3562
  }
3541
3563
  return E;
3542
3564
  });
3543
3565
  }
3544
- function We(n, e, t, o, i, a, s, r, l) {
3566
+ function $e(n, e, t, o, i, a, s, r, l) {
3545
3567
  return new se(n, e, t, o, i, a, s, r, l);
3546
3568
  }
3547
3569
  function se(n, e, t, o, i, a, s, r, l) {
3548
- var c = 0, u = [], g = [], h = Y1(n, e, t, o, i, a, s, r, l);
3570
+ var c = 0, u = [], g = [], h = G1(n, e, t, o, i, a, s, r, l);
3549
3571
  h.forEach(function(f) {
3550
- var v = new at(f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7]), y = v.getTotalLength();
3572
+ var v = new rt(f[0], f[1], f[2], f[3], f[4], f[5], f[6], f[7]), y = v.getTotalLength();
3551
3573
  c += y, u.push(y), g.push(v);
3552
3574
  }), this.length = c, this.partialLengths = u, this.curves = g;
3553
3575
  }
@@ -3581,7 +3603,7 @@ se.prototype = {
3581
3603
  return { x: t.x, y: t.y, tangentX: e.x, tangentY: e.y };
3582
3604
  }
3583
3605
  };
3584
- function st(n, e, t, o) {
3606
+ function it(n, e, t, o) {
3585
3607
  return new _t(n, e, t, o);
3586
3608
  }
3587
3609
  function _t(n, e, t, o) {
@@ -3602,13 +3624,13 @@ _t.prototype.getPropertiesAtLength = function(n) {
3602
3624
  var e = this.getPointAtLength(n), t = this.getTangentAtLength();
3603
3625
  return { x: e.x, y: e.y, tangentX: t.x, tangentY: t.y };
3604
3626
  };
3605
- function G1(n) {
3627
+ function X1(n) {
3606
3628
  var e = 0, t = [], o = [];
3607
3629
  function i(s) {
3608
3630
  if (!s)
3609
3631
  return null;
3610
- for (var r = O1(s), l = [0, 0], c = [0, 0], u, g, h = 0; h < r.length; h++)
3611
- r[h][0] === "M" ? (l = [r[h][1], r[h][2]], g = [l[0], l[1]], o.push(null)) : r[h][0] === "m" ? (l = [r[h][1] + l[0], r[h][2] + l[1]], g = [l[0], l[1]], o.push(null)) : r[h][0] === "L" ? (e = e + Math.sqrt(Math.pow(l[0] - r[h][1], 2) + Math.pow(l[1] - r[h][2], 2)), o.push(new st(l[0], r[h][1], l[1], r[h][2])), l = [r[h][1], r[h][2]]) : r[h][0] === "l" ? (e = e + Math.sqrt(Math.pow(r[h][1], 2) + Math.pow(r[h][2], 2)), o.push(new st(l[0], r[h][1] + l[0], l[1], r[h][2] + l[1])), l = [r[h][1] + l[0], r[h][2] + l[1]]) : r[h][0] === "H" ? (e = e + Math.abs(l[0] - r[h][1]), o.push(new st(l[0], r[h][1], l[1], l[1])), l[0] = r[h][1]) : r[h][0] === "h" ? (e = e + Math.abs(r[h][1]), o.push(new st(l[0], l[0] + r[h][1], l[1], l[1])), l[0] = r[h][1] + l[0]) : r[h][0] === "V" ? (e = e + Math.abs(l[1] - r[h][1]), o.push(new st(l[0], l[0], l[1], r[h][1])), l[1] = r[h][1]) : r[h][0] === "v" ? (e = e + Math.abs(r[h][1]), o.push(new st(l[0], l[0], l[1], l[1] + r[h][1])), l[1] = r[h][1] + l[1]) : r[h][0] === "z" || r[h][0] === "Z" ? (e = e + Math.sqrt(Math.pow(g[0] - l[0], 2) + Math.pow(g[1] - l[1], 2)), o.push(new st(l[0], g[0], l[1], g[1])), l = [g[0], g[1]]) : r[h][0] === "C" ? (u = new at(l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4], r[h][5], r[h][6]), e = e + u.getTotalLength(), l = [r[h][5], r[h][6]], o.push(u)) : r[h][0] === "c" ? (u = new at(l[0], l[1], l[0] + r[h][1], l[1] + r[h][2], l[0] + r[h][3], l[1] + r[h][4], l[0] + r[h][5], l[1] + r[h][6]), e = e + u.getTotalLength(), l = [r[h][5] + l[0], r[h][6] + l[1]], o.push(u)) : r[h][0] === "S" ? (h > 0 && ["C", "c", "S", "s"].indexOf(r[h - 1][0]) > -1 ? u = new at(l[0], l[1], 2 * l[0] - r[h - 1][r[h - 1].length - 4], 2 * l[1] - r[h - 1][r[h - 1].length - 3], r[h][1], r[h][2], r[h][3], r[h][4]) : u = new at(l[0], l[1], l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4]), e = e + u.getTotalLength(), l = [r[h][3], r[h][4]], o.push(u)) : r[h][0] === "s" ? (h > 0 && ["C", "c", "S", "s"].indexOf(r[h - 1][0]) > -1 ? u = new at(l[0], l[1], l[0] + u.d.x - u.c.x, l[1] + u.d.y - u.c.y, l[0] + r[h][1], l[1] + r[h][2], l[0] + r[h][3], l[1] + r[h][4]) : u = new at(l[0], l[1], l[0], l[1], l[0] + r[h][1], l[1] + r[h][2], l[0] + r[h][3], l[1] + r[h][4]), e = e + u.getTotalLength(), l = [r[h][3] + l[0], r[h][4] + l[1]], o.push(u)) : r[h][0] === "Q" ? (l[0] != r[h][1] && l[1] != r[h][2] ? u = new at(l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4]) : u = new st(r[h][1], r[h][3], r[h][2], r[h][4]), e = e + u.getTotalLength(), o.push(u), l = [r[h][3], r[h][4]], c = [r[h][1], r[h][2]]) : r[h][0] === "q" ? (r[h][1] == 0 && r[h][2] == 0 ? u = new st(l[0] + r[h][1], l[0] + r[h][3], l[1] + r[h][2], l[1] + r[h][4]) : u = new at(l[0], l[1], l[0] + r[h][1], l[1] + r[h][2], l[0] + r[h][3], l[1] + r[h][4]), e = e + u.getTotalLength(), c = [l[0] + r[h][1], l[1] + r[h][2]], l = [r[h][3] + l[0], r[h][4] + l[1]], o.push(u)) : r[h][0] === "T" ? (h > 0 && ["Q", "q", "T", "t"].indexOf(r[h - 1][0]) > -1 ? u = new at(l[0], l[1], 2 * l[0] - c[0], 2 * l[1] - c[1], r[h][1], r[h][2]) : u = new st(l[0], r[h][1], l[1], r[h][2]), o.push(u), e = e + u.getTotalLength(), c = [2 * l[0] - c[0], 2 * l[1] - c[1]], l = [r[h][1], r[h][2]]) : r[h][0] === "t" ? (h > 0 && ["Q", "q", "T", "t"].indexOf(r[h - 1][0]) > -1 ? u = new at(l[0], l[1], 2 * l[0] - c[0], 2 * l[1] - c[1], l[0] + r[h][1], l[1] + r[h][2]) : u = new st(l[0], l[0] + r[h][1], l[1], l[1] + r[h][2]), e = e + u.getTotalLength(), c = [2 * l[0] - c[0], 2 * l[1] - c[1]], l = [r[h][1] + l[0], r[h][2] + l[0]], o.push(u)) : r[h][0] === "A" ? (u = new We(l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4], r[h][5], r[h][6], r[h][7]), e = e + u.getTotalLength(), l = [r[h][6], r[h][7]], o.push(u)) : r[h][0] === "a" && (u = new We(l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4], r[h][5], l[0] + r[h][6], l[1] + r[h][7]), e = e + u.getTotalLength(), l = [l[0] + r[h][6], l[1] + r[h][7]], o.push(u)), t.push(e);
3632
+ for (var r = _1(s), l = [0, 0], c = [0, 0], u, g, h = 0; h < r.length; h++)
3633
+ r[h][0] === "M" ? (l = [r[h][1], r[h][2]], g = [l[0], l[1]], o.push(null)) : r[h][0] === "m" ? (l = [r[h][1] + l[0], r[h][2] + l[1]], g = [l[0], l[1]], o.push(null)) : r[h][0] === "L" ? (e = e + Math.sqrt(Math.pow(l[0] - r[h][1], 2) + Math.pow(l[1] - r[h][2], 2)), o.push(new it(l[0], r[h][1], l[1], r[h][2])), l = [r[h][1], r[h][2]]) : r[h][0] === "l" ? (e = e + Math.sqrt(Math.pow(r[h][1], 2) + Math.pow(r[h][2], 2)), o.push(new it(l[0], r[h][1] + l[0], l[1], r[h][2] + l[1])), l = [r[h][1] + l[0], r[h][2] + l[1]]) : r[h][0] === "H" ? (e = e + Math.abs(l[0] - r[h][1]), o.push(new it(l[0], r[h][1], l[1], l[1])), l[0] = r[h][1]) : r[h][0] === "h" ? (e = e + Math.abs(r[h][1]), o.push(new it(l[0], l[0] + r[h][1], l[1], l[1])), l[0] = r[h][1] + l[0]) : r[h][0] === "V" ? (e = e + Math.abs(l[1] - r[h][1]), o.push(new it(l[0], l[0], l[1], r[h][1])), l[1] = r[h][1]) : r[h][0] === "v" ? (e = e + Math.abs(r[h][1]), o.push(new it(l[0], l[0], l[1], l[1] + r[h][1])), l[1] = r[h][1] + l[1]) : r[h][0] === "z" || r[h][0] === "Z" ? (e = e + Math.sqrt(Math.pow(g[0] - l[0], 2) + Math.pow(g[1] - l[1], 2)), o.push(new it(l[0], g[0], l[1], g[1])), l = [g[0], g[1]]) : r[h][0] === "C" ? (u = new rt(l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4], r[h][5], r[h][6]), e = e + u.getTotalLength(), l = [r[h][5], r[h][6]], o.push(u)) : r[h][0] === "c" ? (u = new rt(l[0], l[1], l[0] + r[h][1], l[1] + r[h][2], l[0] + r[h][3], l[1] + r[h][4], l[0] + r[h][5], l[1] + r[h][6]), e = e + u.getTotalLength(), l = [r[h][5] + l[0], r[h][6] + l[1]], o.push(u)) : r[h][0] === "S" ? (h > 0 && ["C", "c", "S", "s"].indexOf(r[h - 1][0]) > -1 ? u = new rt(l[0], l[1], 2 * l[0] - r[h - 1][r[h - 1].length - 4], 2 * l[1] - r[h - 1][r[h - 1].length - 3], r[h][1], r[h][2], r[h][3], r[h][4]) : u = new rt(l[0], l[1], l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4]), e = e + u.getTotalLength(), l = [r[h][3], r[h][4]], o.push(u)) : r[h][0] === "s" ? (h > 0 && ["C", "c", "S", "s"].indexOf(r[h - 1][0]) > -1 ? u = new rt(l[0], l[1], l[0] + u.d.x - u.c.x, l[1] + u.d.y - u.c.y, l[0] + r[h][1], l[1] + r[h][2], l[0] + r[h][3], l[1] + r[h][4]) : u = new rt(l[0], l[1], l[0], l[1], l[0] + r[h][1], l[1] + r[h][2], l[0] + r[h][3], l[1] + r[h][4]), e = e + u.getTotalLength(), l = [r[h][3] + l[0], r[h][4] + l[1]], o.push(u)) : r[h][0] === "Q" ? (l[0] != r[h][1] && l[1] != r[h][2] ? u = new rt(l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4]) : u = new it(r[h][1], r[h][3], r[h][2], r[h][4]), e = e + u.getTotalLength(), o.push(u), l = [r[h][3], r[h][4]], c = [r[h][1], r[h][2]]) : r[h][0] === "q" ? (r[h][1] == 0 && r[h][2] == 0 ? u = new it(l[0] + r[h][1], l[0] + r[h][3], l[1] + r[h][2], l[1] + r[h][4]) : u = new rt(l[0], l[1], l[0] + r[h][1], l[1] + r[h][2], l[0] + r[h][3], l[1] + r[h][4]), e = e + u.getTotalLength(), c = [l[0] + r[h][1], l[1] + r[h][2]], l = [r[h][3] + l[0], r[h][4] + l[1]], o.push(u)) : r[h][0] === "T" ? (h > 0 && ["Q", "q", "T", "t"].indexOf(r[h - 1][0]) > -1 ? u = new rt(l[0], l[1], 2 * l[0] - c[0], 2 * l[1] - c[1], r[h][1], r[h][2]) : u = new it(l[0], r[h][1], l[1], r[h][2]), o.push(u), e = e + u.getTotalLength(), c = [2 * l[0] - c[0], 2 * l[1] - c[1]], l = [r[h][1], r[h][2]]) : r[h][0] === "t" ? (h > 0 && ["Q", "q", "T", "t"].indexOf(r[h - 1][0]) > -1 ? u = new rt(l[0], l[1], 2 * l[0] - c[0], 2 * l[1] - c[1], l[0] + r[h][1], l[1] + r[h][2]) : u = new it(l[0], l[0] + r[h][1], l[1], l[1] + r[h][2]), e = e + u.getTotalLength(), c = [2 * l[0] - c[0], 2 * l[1] - c[1]], l = [r[h][1] + l[0], r[h][2] + l[0]], o.push(u)) : r[h][0] === "A" ? (u = new $e(l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4], r[h][5], r[h][6], r[h][7]), e = e + u.getTotalLength(), l = [r[h][6], r[h][7]], o.push(u)) : r[h][0] === "a" && (u = new $e(l[0], l[1], r[h][1], r[h][2], r[h][3], r[h][4], r[h][5], l[0] + r[h][6], l[1] + r[h][7]), e = e + u.getTotalLength(), l = [l[0] + r[h][6], l[1] + r[h][7]], o.push(u)), t.push(e);
3612
3634
  return i;
3613
3635
  }
3614
3636
  i.getTotalLength = function() {
@@ -3637,17 +3659,17 @@ function qt(n, e) {
3637
3659
  function v0(n, e, t) {
3638
3660
  return [n[0] + (e[0] - n[0]) * t, n[1] + (e[1] - n[1]) * t];
3639
3661
  }
3640
- function X1(n, e) {
3662
+ function K1(n, e) {
3641
3663
  return qt(n, e) < 1e-9;
3642
3664
  }
3643
- function K1(n, e, t) {
3644
- let o = n.map((i, a) => Z1(i, e[a]));
3665
+ function Z1(n, e, t) {
3666
+ let o = n.map((i, a) => J1(i, e[a]));
3645
3667
  return function(i) {
3646
3668
  let a = o.map((s) => s(i));
3647
- return t ? ti(a) : a;
3669
+ return t ? ei(a) : a;
3648
3670
  };
3649
3671
  }
3650
- function Z1(n, e) {
3672
+ function J1(n, e) {
3651
3673
  return function(t) {
3652
3674
  return n.map((o, i) => o + t * (e[i] - o));
3653
3675
  };
@@ -3660,20 +3682,20 @@ Example valid ways of supplying a shape would be:
3660
3682
  [[0, 0], [10, 0], [10, 10]]
3661
3683
  "M0,0 L10,0 L10,10Z"
3662
3684
  `;
3663
- function J1(n) {
3664
- return new I1(n).abs();
3665
- }
3666
3685
  function Q1(n) {
3667
- return n.toString().split("M").map((e, t) => (e = e.trim(), t && e ? "M" + e : e)).filter((e) => e);
3686
+ return new k1(n).abs();
3668
3687
  }
3669
3688
  function ti(n) {
3689
+ return n.toString().split("M").map((e, t) => (e = e.trim(), t && e ? "M" + e : e)).filter((e) => e);
3690
+ }
3691
+ function ei(n) {
3670
3692
  return "M" + n.join("L") + "Z";
3671
3693
  }
3672
- function ei(n, e) {
3673
- let t = J1(n);
3674
- return ni(t) || ii(t, e);
3694
+ function ni(n, e) {
3695
+ let t = Q1(n);
3696
+ return ii(t) || ri(t, e);
3675
3697
  }
3676
- function ni(n) {
3698
+ function ii(n) {
3677
3699
  let e = n.segments || [], t = [];
3678
3700
  if (!e.length || e[0][0] !== "M")
3679
3701
  return !1;
@@ -3692,11 +3714,11 @@ function ni(n) {
3692
3714
  }
3693
3715
  return t.length ? { ring: t } : !1;
3694
3716
  }
3695
- function ii(n, e) {
3696
- let t = Q1(n)[0], o = [], i, a, s = 3;
3717
+ function ri(n, e) {
3718
+ let t = ti(n)[0], o = [], i, a, s = 3;
3697
3719
  if (!t)
3698
3720
  throw new TypeError(ae);
3699
- a = ri(t), i = a.getTotalLength(), e && Bt(e) && e > 0 && (s = Math.max(s, Math.ceil(i / e)));
3721
+ a = oi(t), i = a.getTotalLength(), e && Bt(e) && e > 0 && (s = Math.max(s, Math.ceil(i / e)));
3700
3722
  for (let r = 0; r < s; r++) {
3701
3723
  let l = a.getPointAtLength(i * r / s);
3702
3724
  o.push([l.x, l.y]);
@@ -3706,17 +3728,17 @@ function ii(n, e) {
3706
3728
  skipBisect: !0
3707
3729
  };
3708
3730
  }
3709
- function ri(n) {
3731
+ function oi(n) {
3710
3732
  if (typeof window < "u" && window && window.document)
3711
3733
  try {
3712
3734
  let e = window.document.createElementNS("http://www.w3.org/2000/svg", "path");
3713
3735
  return e.setAttributeNS(null, "d", n), e;
3714
3736
  } catch {
3715
3737
  }
3716
- return G1(n);
3738
+ return X1(n);
3717
3739
  }
3718
- function Ye(n, e) {
3719
- const t = n.length + e, o = b1(n) / e;
3740
+ function We(n, e) {
3741
+ const t = n.length + e, o = A1(n) / e;
3720
3742
  let i = 0, a = 0, s = o / 2;
3721
3743
  for (; n.length < t; ) {
3722
3744
  let r = n[i], l = n[(i + 1) % n.length], c = qt(r, l);
@@ -3727,7 +3749,7 @@ function Ye(n, e) {
3727
3749
  a += c, i++;
3728
3750
  }
3729
3751
  }
3730
- function oi(n, e = 1 / 0) {
3752
+ function si(n, e = 1 / 0) {
3731
3753
  for (let t = 0; t < n.length; t++) {
3732
3754
  let o = n[t], i = t === n.length - 1 ? n[0] : n[t + 1];
3733
3755
  for (; qt(o, i) > e; )
@@ -3737,20 +3759,20 @@ function oi(n, e = 1 / 0) {
3737
3759
  function Ge(n, e) {
3738
3760
  let t, o, i;
3739
3761
  if (typeof n == "string") {
3740
- let a = ei(n, e);
3762
+ let a = ni(n, e);
3741
3763
  n = a.ring, i = a.skipBisect;
3742
3764
  } else if (!Array.isArray(n))
3743
3765
  throw new TypeError(ae);
3744
- if (t = n.slice(0), !si(t))
3766
+ if (t = n.slice(0), !ai(t))
3745
3767
  throw new TypeError(ae);
3746
- return t.length > 1 && X1(t[0], t[t.length - 1]) && t.pop(), o = m1(t), o > 0 && t.reverse(), !i && e && Bt(e) && e > 0 && oi(t, e), t;
3768
+ return t.length > 1 && K1(t[0], t[t.length - 1]) && t.pop(), o = b1(t), o > 0 && t.reverse(), !i && e && Bt(e) && e > 0 && si(t, e), t;
3747
3769
  }
3748
- function si(n) {
3770
+ function ai(n) {
3749
3771
  return n.every(function(e) {
3750
3772
  return Array.isArray(e) && e.length >= 2 && Bt(e[0]) && Bt(e[1]);
3751
3773
  });
3752
3774
  }
3753
- function ai(n, e) {
3775
+ function li(n, e) {
3754
3776
  let t = n.length, o = 1 / 0, i, a, s;
3755
3777
  for (let r = 0; r < t; r++)
3756
3778
  a = 0, e.forEach(function(l, c) {
@@ -3759,38 +3781,38 @@ function ai(n, e) {
3759
3781
  }), a < o && (o = a, i = r);
3760
3782
  i && (s = n.splice(0, i), n.splice(n.length, 0, ...s));
3761
3783
  }
3762
- function li(n, e, { maxSegmentLength: t = 10, string: o = !0 } = {}) {
3763
- let i = Ge(n, t), a = Ge(e, t), s = hi(i, a, o);
3784
+ function hi(n, e, { maxSegmentLength: t = 10, string: o = !0 } = {}) {
3785
+ let i = Ge(n, t), a = Ge(e, t), s = ci(i, a, o);
3764
3786
  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);
3765
3787
  }
3766
- function hi(n, e, t) {
3788
+ function ci(n, e, t) {
3767
3789
  let o;
3768
- return o = n.length - e.length, Ye(n, o < 0 ? o * -1 : 0), Ye(e, o > 0 ? o : 0), ai(n, e), K1(n, e, t);
3790
+ return o = n.length - e.length, We(n, o < 0 ? o * -1 : 0), We(e, o > 0 ? o : 0), li(n, e), Z1(n, e, t);
3769
3791
  }
3770
3792
  var Nt = { exports: {} }, Xe;
3771
- function ci() {
3793
+ function ui() {
3772
3794
  if (Xe) return Nt.exports;
3773
3795
  Xe = 1, Nt.exports = n, Nt.exports.default = n;
3774
3796
  function n(d, x, p) {
3775
3797
  p = p || 2;
3776
3798
  var w = x && x.length, m = w ? x[0] * p : d.length, b = e(d, 0, m, p, !0), A = [];
3777
3799
  if (!b || b.next === b.prev) return A;
3778
- var C, N, O, W, j, B, X;
3800
+ var P, N, k, $, V, B, X;
3779
3801
  if (w && (b = l(d, x, b, p)), d.length > 80 * p) {
3780
- C = O = d[0], N = W = d[1];
3781
- for (var H = p; H < m; H += p)
3782
- j = d[H], B = d[H + 1], j < C && (C = j), B < N && (N = B), j > O && (O = j), B > W && (W = B);
3783
- X = Math.max(O - C, W - N), X = X !== 0 ? 32767 / X : 0;
3802
+ P = k = d[0], N = $ = d[1];
3803
+ for (var j = p; j < m; j += p)
3804
+ V = d[j], B = d[j + 1], V < P && (P = V), B < N && (N = B), V > k && (k = V), B > $ && ($ = B);
3805
+ X = Math.max(k - P, $ - N), X = X !== 0 ? 32767 / X : 0;
3784
3806
  }
3785
- return o(b, A, p, C, N, X, 0), A;
3807
+ return o(b, A, p, P, N, X, 0), A;
3786
3808
  }
3787
3809
  function e(d, x, p, w, m) {
3788
3810
  var b, A;
3789
3811
  if (m === zt(d, x, p, w) > 0)
3790
- for (b = x; b < p; b += w) A = rt(b, d[b], d[b + 1], A);
3812
+ for (b = x; b < p; b += w) A = pt(b, d[b], d[b + 1], A);
3791
3813
  else
3792
- for (b = p - w; b >= x; b -= w) A = rt(b, d[b], d[b + 1], A);
3793
- return A && E(A, A.next) && (ot(A), A = A.next), A;
3814
+ for (b = p - w; b >= x; b -= w) A = pt(b, d[b], d[b + 1], A);
3815
+ return A && E(A, A.next) && (ct(A), A = A.next), A;
3794
3816
  }
3795
3817
  function t(d, x) {
3796
3818
  if (!d) return d;
@@ -3798,7 +3820,7 @@ function ci() {
3798
3820
  var p = d, w;
3799
3821
  do
3800
3822
  if (w = !1, !p.steiner && (E(p, p.next) || S(p.prev, p, p.next) === 0)) {
3801
- if (ot(p), p = x = p.prev, p === p.next) break;
3823
+ if (ct(p), p = x = p.prev, p === p.next) break;
3802
3824
  w = !0;
3803
3825
  } else
3804
3826
  p = p.next;
@@ -3808,12 +3830,12 @@ function ci() {
3808
3830
  function o(d, x, p, w, m, b, A) {
3809
3831
  if (d) {
3810
3832
  !A && b && f(d, w, m, b);
3811
- for (var C = d, N, O; d.prev !== d.next; ) {
3812
- if (N = d.prev, O = d.next, b ? a(d, w, m, b) : i(d)) {
3813
- x.push(N.i / p | 0), x.push(d.i / p | 0), x.push(O.i / p | 0), ot(d), d = O.next, C = O.next;
3833
+ for (var P = d, N, k; d.prev !== d.next; ) {
3834
+ if (N = d.prev, k = d.next, b ? a(d, w, m, b) : i(d)) {
3835
+ x.push(N.i / p | 0), x.push(d.i / p | 0), x.push(k.i / p | 0), ct(d), d = k.next, P = k.next;
3814
3836
  continue;
3815
3837
  }
3816
- if (d = O, d === C) {
3838
+ if (d = k, d === P) {
3817
3839
  A ? A === 1 ? (d = s(t(d), x, p), o(d, x, p, w, m, b, 2)) : A === 2 && r(d, x, p, w, m, b) : o(t(d), x, p, w, m, b, 1);
3818
3840
  break;
3819
3841
  }
@@ -3823,25 +3845,25 @@ function ci() {
3823
3845
  function i(d) {
3824
3846
  var x = d.prev, p = d, w = d.next;
3825
3847
  if (S(x, p, w) >= 0) return !1;
3826
- for (var m = x.x, b = p.x, A = w.x, C = x.y, N = p.y, O = w.y, W = m < b ? m < A ? m : A : b < A ? b : A, j = C < N ? C < O ? C : O : N < O ? N : O, B = m > b ? m > A ? m : A : b > A ? b : A, X = C > N ? C > O ? C : O : N > O ? N : O, H = w.next; H !== x; ) {
3827
- if (H.x >= W && H.x <= B && H.y >= j && H.y <= X && L(m, C, b, N, A, O, H.x, H.y) && S(H.prev, H, H.next) >= 0) return !1;
3828
- H = H.next;
3848
+ for (var m = x.x, b = p.x, A = w.x, P = x.y, N = p.y, k = w.y, $ = m < b ? m < A ? m : A : b < A ? b : A, V = P < N ? P < k ? P : k : N < k ? N : k, B = m > b ? m > A ? m : A : b > A ? b : A, X = P > N ? P > k ? P : k : N > k ? N : k, j = w.next; j !== x; ) {
3849
+ if (j.x >= $ && j.x <= B && j.y >= V && j.y <= X && M(m, P, b, N, A, k, j.x, j.y) && S(j.prev, j, j.next) >= 0) return !1;
3850
+ j = j.next;
3829
3851
  }
3830
3852
  return !0;
3831
3853
  }
3832
3854
  function a(d, x, p, w) {
3833
3855
  var m = d.prev, b = d, A = d.next;
3834
3856
  if (S(m, b, A) >= 0) return !1;
3835
- for (var C = m.x, N = b.x, O = A.x, W = m.y, j = b.y, B = A.y, X = C < N ? C < O ? C : O : N < O ? N : O, H = W < j ? W < B ? W : B : j < B ? j : B, Ct = C > N ? C > O ? C : O : N > O ? N : O, St = W > j ? W > B ? W : B : j > B ? j : B, ye = y(X, H, x, p, w), ve = y(Ct, St, x, p, w), D = d.prevZ, q = d.nextZ; D && D.z >= ye && q && q.z <= ve; ) {
3836
- if (D.x >= X && D.x <= Ct && D.y >= H && D.y <= St && D !== m && D !== A && L(C, W, N, j, O, B, D.x, D.y) && S(D.prev, D, D.next) >= 0 || (D = D.prevZ, q.x >= X && q.x <= Ct && q.y >= H && q.y <= St && q !== m && q !== A && L(C, W, N, j, O, B, q.x, q.y) && S(q.prev, q, q.next) >= 0)) return !1;
3857
+ for (var P = m.x, N = b.x, k = A.x, $ = m.y, V = b.y, B = A.y, X = P < N ? P < k ? P : k : N < k ? N : k, j = $ < V ? $ < B ? $ : B : V < B ? V : B, Ct = P > N ? P > k ? P : k : N > k ? N : k, St = $ > V ? $ > B ? $ : B : V > B ? V : B, ye = y(X, j, x, p, w), ve = y(Ct, St, x, p, w), D = d.prevZ, q = d.nextZ; D && D.z >= ye && q && q.z <= ve; ) {
3858
+ if (D.x >= X && D.x <= Ct && D.y >= j && D.y <= St && D !== m && D !== A && M(P, $, N, V, k, B, D.x, D.y) && S(D.prev, D, D.next) >= 0 || (D = D.prevZ, q.x >= X && q.x <= Ct && q.y >= j && q.y <= St && q !== m && q !== A && M(P, $, N, V, k, B, q.x, q.y) && S(q.prev, q, q.next) >= 0)) return !1;
3837
3859
  q = q.nextZ;
3838
3860
  }
3839
3861
  for (; D && D.z >= ye; ) {
3840
- if (D.x >= X && D.x <= Ct && D.y >= H && D.y <= St && D !== m && D !== A && L(C, W, N, j, O, B, D.x, D.y) && S(D.prev, D, D.next) >= 0) return !1;
3862
+ if (D.x >= X && D.x <= Ct && D.y >= j && D.y <= St && D !== m && D !== A && M(P, $, N, V, k, B, D.x, D.y) && S(D.prev, D, D.next) >= 0) return !1;
3841
3863
  D = D.prevZ;
3842
3864
  }
3843
3865
  for (; q && q.z <= ve; ) {
3844
- if (q.x >= X && q.x <= Ct && q.y >= H && q.y <= St && q !== m && q !== A && L(C, W, N, j, O, B, q.x, q.y) && S(q.prev, q, q.next) >= 0) return !1;
3866
+ if (q.x >= X && q.x <= Ct && q.y >= j && q.y <= St && q !== m && q !== A && M(P, $, N, V, k, B, q.x, q.y) && S(q.prev, q, q.next) >= 0) return !1;
3845
3867
  q = q.nextZ;
3846
3868
  }
3847
3869
  return !0;
@@ -3850,28 +3872,28 @@ function ci() {
3850
3872
  var w = d;
3851
3873
  do {
3852
3874
  var m = w.prev, b = w.next.next;
3853
- !E(m, b) && M(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), ot(w), ot(w.next), w = d = b), w = w.next;
3875
+ !E(m, b) && L(m, w, w.next, b) && U(m, b) && U(b, m) && (x.push(m.i / p | 0), x.push(w.i / p | 0), x.push(b.i / p | 0), ct(w), ct(w.next), w = d = b), w = w.next;
3854
3876
  } while (w !== d);
3855
3877
  return t(w);
3856
3878
  }
3857
3879
  function r(d, x, p, w, m, b) {
3858
3880
  var A = d;
3859
3881
  do {
3860
- for (var C = A.next.next; C !== A.prev; ) {
3861
- if (A.i !== C.i && P(A, C)) {
3862
- var N = it(A, C);
3882
+ for (var P = A.next.next; P !== A.prev; ) {
3883
+ if (A.i !== P.i && C(A, P)) {
3884
+ var N = gt(A, P);
3863
3885
  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);
3864
3886
  return;
3865
3887
  }
3866
- C = C.next;
3888
+ P = P.next;
3867
3889
  }
3868
3890
  A = A.next;
3869
3891
  } while (A !== d);
3870
3892
  }
3871
3893
  function l(d, x, p, w) {
3872
- var m = [], b, A, C, N, O;
3894
+ var m = [], b, A, P, N, k;
3873
3895
  for (b = 0, A = x.length; b < A; b++)
3874
- C = x[b] * w, N = b < A - 1 ? x[b + 1] * w : d.length, O = e(d, C, N, w, !1), O === O.next && (O.steiner = !0), m.push(T(O));
3896
+ P = x[b] * w, N = b < A - 1 ? x[b + 1] * w : d.length, k = e(d, P, N, w, !1), k === k.next && (k.steiner = !0), m.push(T(k));
3875
3897
  for (m.sort(c), b = 0; b < m.length; b++)
3876
3898
  p = u(m[b], p);
3877
3899
  return p;
@@ -3883,24 +3905,24 @@ function ci() {
3883
3905
  var p = g(d, x);
3884
3906
  if (!p)
3885
3907
  return x;
3886
- var w = it(p, d);
3908
+ var w = gt(p, d);
3887
3909
  return t(w, w.next), t(p, p.next);
3888
3910
  }
3889
3911
  function g(d, x) {
3890
3912
  var p = x, w = d.x, m = d.y, b = -1 / 0, A;
3891
3913
  do {
3892
3914
  if (m <= p.y && m >= p.next.y && p.next.y !== p.y) {
3893
- var C = p.x + (m - p.y) * (p.next.x - p.x) / (p.next.y - p.y);
3894
- if (C <= w && C > b && (b = C, A = p.x < p.next.x ? p : p.next, C === w))
3915
+ var P = p.x + (m - p.y) * (p.next.x - p.x) / (p.next.y - p.y);
3916
+ if (P <= w && P > b && (b = P, A = p.x < p.next.x ? p : p.next, P === w))
3895
3917
  return A;
3896
3918
  }
3897
3919
  p = p.next;
3898
3920
  } while (p !== x);
3899
3921
  if (!A) return null;
3900
- var N = A, O = A.x, W = A.y, j = 1 / 0, B;
3922
+ var N = A, k = A.x, $ = A.y, V = 1 / 0, B;
3901
3923
  p = A;
3902
3924
  do
3903
- w >= p.x && p.x >= O && w !== p.x && L(m < W ? w : b, m, O, W, m < W ? b : w, m, p.x, p.y) && (B = Math.abs(m - p.y) / (w - p.x), z(p, d) && (B < j || B === j && (p.x > A.x || p.x === A.x && h(A, p))) && (A = p, j = B)), p = p.next;
3925
+ w >= p.x && p.x >= k && w !== p.x && M(m < $ ? w : b, m, k, $, m < $ ? b : w, m, p.x, p.y) && (B = Math.abs(m - p.y) / (w - p.x), U(p, d) && (B < V || B === V && (p.x > A.x || p.x === A.x && h(A, p))) && (A = p, V = B)), p = p.next;
3904
3926
  while (p !== N);
3905
3927
  return A;
3906
3928
  }
@@ -3915,16 +3937,16 @@ function ci() {
3915
3937
  m.prevZ.nextZ = null, m.prevZ = null, v(m);
3916
3938
  }
3917
3939
  function v(d) {
3918
- var x, p, w, m, b, A, C, N, O = 1;
3940
+ var x, p, w, m, b, A, P, N, k = 1;
3919
3941
  do {
3920
3942
  for (p = d, d = null, b = null, A = 0; p; ) {
3921
- for (A++, w = p, C = 0, x = 0; x < O && (C++, w = w.nextZ, !!w); x++)
3943
+ for (A++, w = p, P = 0, x = 0; x < k && (P++, w = w.nextZ, !!w); x++)
3922
3944
  ;
3923
- for (N = O; C > 0 || N > 0 && w; )
3924
- 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 : d = m, m.prevZ = b, b = m;
3945
+ for (N = k; P > 0 || N > 0 && w; )
3946
+ P !== 0 && (N === 0 || !w || p.z <= w.z) ? (m = p, p = p.nextZ, P--) : (m = w, w = w.nextZ, N--), b ? b.nextZ = m : d = m, m.prevZ = b, b = m;
3925
3947
  p = w;
3926
3948
  }
3927
- b.nextZ = null, O *= 2;
3949
+ b.nextZ = null, k *= 2;
3928
3950
  } while (A > 1);
3929
3951
  return d;
3930
3952
  }
@@ -3938,12 +3960,12 @@ function ci() {
3938
3960
  while (x !== d);
3939
3961
  return p;
3940
3962
  }
3941
- function L(d, x, p, w, m, b, A, C) {
3942
- return (m - A) * (x - C) >= (d - A) * (b - C) && (d - A) * (w - C) >= (p - A) * (x - C) && (p - A) * (b - C) >= (m - A) * (w - C);
3963
+ function M(d, x, p, w, m, b, A, P) {
3964
+ return (m - A) * (x - P) >= (d - A) * (b - P) && (d - A) * (w - P) >= (p - A) * (x - P) && (p - A) * (b - P) >= (m - A) * (w - P);
3943
3965
  }
3944
- function P(d, x) {
3945
- return d.next.i !== x.i && d.prev.i !== x.i && !Y(d, x) && // dones't intersect other edges
3946
- (z(d, x) && z(x, d) && U(d, x) && // locally visible
3966
+ function C(d, x) {
3967
+ return d.next.i !== x.i && d.prev.i !== x.i && !W(d, x) && // dones't intersect other edges
3968
+ (U(d, x) && U(x, d) && H(d, x) && // locally visible
3947
3969
  (S(d.prev, d, x.prev) || S(d, x.prev, x)) || // does not create opposite-facing sectors
3948
3970
  E(d, x) && S(d.prev, d, d.next) > 0 && S(x.prev, x, x.next) > 0);
3949
3971
  }
@@ -3953,63 +3975,63 @@ function ci() {
3953
3975
  function E(d, x) {
3954
3976
  return d.x === x.x && d.y === x.y;
3955
3977
  }
3956
- function M(d, x, p, w) {
3957
- var m = F(S(d, x, p)), b = F(S(d, x, w)), A = F(S(p, w, d)), C = F(S(p, w, x));
3958
- return !!(m !== b && A !== C || m === 0 && I(d, p, x) || b === 0 && I(d, w, x) || A === 0 && I(p, d, w) || C === 0 && I(p, x, w));
3978
+ function L(d, x, p, w) {
3979
+ var m = F(S(d, x, p)), b = F(S(d, x, w)), A = F(S(p, w, d)), P = F(S(p, w, x));
3980
+ return !!(m !== b && A !== P || m === 0 && _(d, p, x) || b === 0 && _(d, w, x) || A === 0 && _(p, d, w) || P === 0 && _(p, x, w));
3959
3981
  }
3960
- function I(d, x, p) {
3982
+ function _(d, x, p) {
3961
3983
  return x.x <= Math.max(d.x, p.x) && x.x >= Math.min(d.x, p.x) && x.y <= Math.max(d.y, p.y) && x.y >= Math.min(d.y, p.y);
3962
3984
  }
3963
3985
  function F(d) {
3964
3986
  return d > 0 ? 1 : d < 0 ? -1 : 0;
3965
3987
  }
3966
- function Y(d, x) {
3988
+ function W(d, x) {
3967
3989
  var p = d;
3968
3990
  do {
3969
- if (p.i !== d.i && p.next.i !== d.i && p.i !== x.i && p.next.i !== x.i && M(p, p.next, d, x)) return !0;
3991
+ if (p.i !== d.i && p.next.i !== d.i && p.i !== x.i && p.next.i !== x.i && L(p, p.next, d, x)) return !0;
3970
3992
  p = p.next;
3971
3993
  } while (p !== d);
3972
3994
  return !1;
3973
3995
  }
3974
- function z(d, x) {
3996
+ function U(d, x) {
3975
3997
  return S(d.prev, d, d.next) < 0 ? S(d, x, d.next) >= 0 && S(d, d.prev, x) >= 0 : S(d, x, d.prev) < 0 || S(d, d.next, x) < 0;
3976
3998
  }
3977
- function U(d, x) {
3999
+ function H(d, x) {
3978
4000
  var p = d, w = !1, m = (d.x + x.x) / 2, b = (d.y + x.y) / 2;
3979
4001
  do
3980
4002
  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;
3981
4003
  while (p !== d);
3982
4004
  return w;
3983
4005
  }
3984
- function it(d, x) {
3985
- var p = new Z(d.i, d.x, d.y), w = new Z(x.i, x.x, x.y), m = d.next, b = x.prev;
4006
+ function gt(d, x) {
4007
+ var p = new nt(d.i, d.x, d.y), w = new nt(x.i, x.x, x.y), m = d.next, b = x.prev;
3986
4008
  return d.next = x, x.prev = d, p.next = m, m.prev = p, w.next = p, p.prev = w, b.next = w, w.prev = b, w;
3987
4009
  }
3988
- function rt(d, x, p, w) {
3989
- var m = new Z(d, x, p);
4010
+ function pt(d, x, p, w) {
4011
+ var m = new nt(d, x, p);
3990
4012
  return w ? (m.next = w.next, m.prev = w, w.next.prev = m, w.next = m) : (m.prev = m, m.next = m), m;
3991
4013
  }
3992
- function ot(d) {
4014
+ function ct(d) {
3993
4015
  d.next.prev = d.prev, d.prev.next = d.next, d.prevZ && (d.prevZ.nextZ = d.nextZ), d.nextZ && (d.nextZ.prevZ = d.prevZ);
3994
4016
  }
3995
- function Z(d, x, p) {
4017
+ function nt(d, x, p) {
3996
4018
  this.i = d, this.x = x, this.y = p, this.prev = null, this.next = null, this.z = 0, this.prevZ = null, this.nextZ = null, this.steiner = !1;
3997
4019
  }
3998
4020
  n.deviation = function(d, x, p, w) {
3999
4021
  var m = x && x.length, b = m ? x[0] * p : d.length, A = Math.abs(zt(d, 0, b, p));
4000
4022
  if (m)
4001
- for (var C = 0, N = x.length; C < N; C++) {
4002
- var O = x[C] * p, W = C < N - 1 ? x[C + 1] * p : d.length;
4003
- A -= Math.abs(zt(d, O, W, p));
4023
+ for (var P = 0, N = x.length; P < N; P++) {
4024
+ var k = x[P] * p, $ = P < N - 1 ? x[P + 1] * p : d.length;
4025
+ A -= Math.abs(zt(d, k, $, p));
4004
4026
  }
4005
- var j = 0;
4006
- for (C = 0; C < w.length; C += 3) {
4007
- var B = w[C] * p, X = w[C + 1] * p, H = w[C + 2] * p;
4008
- j += Math.abs(
4009
- (d[B] - d[H]) * (d[X + 1] - d[B + 1]) - (d[B] - d[X]) * (d[H + 1] - d[B + 1])
4027
+ var V = 0;
4028
+ for (P = 0; P < w.length; P += 3) {
4029
+ var B = w[P] * p, X = w[P + 1] * p, j = w[P + 2] * p;
4030
+ V += Math.abs(
4031
+ (d[B] - d[j]) * (d[X + 1] - d[B + 1]) - (d[B] - d[X]) * (d[j + 1] - d[B + 1])
4010
4032
  );
4011
4033
  }
4012
- return A === 0 && j === 0 ? 0 : Math.abs((j - A) / A);
4034
+ return A === 0 && V === 0 ? 0 : Math.abs((V - A) / A);
4013
4035
  };
4014
4036
  function zt(d, x, p, w) {
4015
4037
  for (var m = 0, b = x, A = p - w; b < p; b += w)
@@ -4025,12 +4047,12 @@ function ci() {
4025
4047
  return p;
4026
4048
  }, Nt.exports;
4027
4049
  }
4028
- ci();
4050
+ ui();
4029
4051
  function w0(n, e) {
4030
4052
  return n < e ? -1 : n > e ? 1 : n >= e ? 0 : NaN;
4031
4053
  }
4032
- function ui(n) {
4033
- return n.length === 1 && (n = fi(n)), {
4054
+ function fi(n) {
4055
+ return n.length === 1 && (n = di(n)), {
4034
4056
  left: function(e, t, o, i) {
4035
4057
  for (o == null && (o = 0), i == null && (i = e.length); o < i; ) {
4036
4058
  var a = o + i >>> 1;
@@ -4047,31 +4069,31 @@ function ui(n) {
4047
4069
  }
4048
4070
  };
4049
4071
  }
4050
- function fi(n) {
4072
+ function di(n) {
4051
4073
  return function(e, t) {
4052
4074
  return w0(n(e), t);
4053
4075
  };
4054
4076
  }
4055
- ui(w0);
4056
- function Bi(n, e, t = 3) {
4057
- const o = li(n, e, { maxSegmentLength: t });
4077
+ fi(w0);
4078
+ function Di(n, e, t = 3) {
4079
+ const o = hi(n, e, { maxSegmentLength: t });
4058
4080
  return {
4059
4081
  check: (i) => typeof i == "string",
4060
4082
  interpolate: (i, a, s) => o(s)
4061
4083
  };
4062
4084
  }
4063
- function Di(n) {
4085
+ function qi(n) {
4064
4086
  const e = (o) => n.width * o, t = (o) => n.height * o;
4065
4087
  return {
4066
4088
  scaleX: e,
4067
4089
  scaleY: t,
4068
- position: (o, i) => $({
4090
+ position: (o, i) => Y({
4069
4091
  x: e(o),
4070
4092
  y: t(i)
4071
4093
  })
4072
4094
  };
4073
4095
  }
4074
- function qi(n) {
4096
+ function zi(n) {
4075
4097
  const e = [];
4076
4098
  if (n.isAllKey) {
4077
4099
  for (let t = 0; t <= n.animations.length; t++)
@@ -4084,48 +4106,48 @@ function qi(n) {
4084
4106
  }
4085
4107
  export {
4086
4108
  yt as Alignment,
4087
- lt as Anchor,
4109
+ ot as Anchor,
4088
4110
  ce as Animate,
4089
- mi as Arrow,
4090
- Oi as BrowserCanvasRenderer,
4091
- bi as Circle,
4111
+ bi as Arrow,
4112
+ _i as BrowserCanvasRenderer,
4113
+ Ai as Circle,
4092
4114
  G as Color,
4093
4115
  he as Easing,
4094
- gi as FadeIn,
4095
- pi as FadeOut,
4116
+ pi as FadeIn,
4117
+ xi as FadeOut,
4096
4118
  G0 as FontStyle,
4097
4119
  K0 as FontWeight,
4098
- Ai as Grid,
4120
+ Ti as Grid,
4099
4121
  we as Group,
4100
- xi as Hide,
4101
- vi as IFrame,
4102
- Ti as Image,
4122
+ yi as Hide,
4123
+ wi as IFrame,
4124
+ Li as Image,
4103
4125
  Mi as Line,
4104
- Li as Mask,
4105
- V as ObjectType,
4106
- Fi as Opaque,
4107
- Ci as Path,
4108
- _i as Pause,
4109
- Si as Polygon,
4110
- $ as Position,
4126
+ Ci as Mask,
4127
+ z as ObjectType,
4128
+ Bi as Opaque,
4129
+ Si as Path,
4130
+ Ni as Pause,
4131
+ Pi as Polygon,
4132
+ Y as Position,
4111
4133
  dn as Presentation,
4112
- Pi as Rectangle,
4113
- Ii as SVG,
4114
- wi as ScreenCapture,
4115
- yi as Show,
4116
- Q as Size,
4117
- Ni as Slide,
4118
- nt as SlideObject,
4134
+ Ei as Rectangle,
4135
+ ki as SVG,
4136
+ mi as ScreenCapture,
4137
+ vi as Show,
4138
+ K as Size,
4139
+ Ri as Slide,
4140
+ et as SlideObject,
4119
4141
  Ze as SlideWebExtra,
4120
- Ei as Spotlight,
4142
+ Ii as Spotlight,
4121
4143
  tn as Text,
4122
- Ri as TextUnit,
4123
- Y0 as Transparent,
4144
+ Fi as TextUnit,
4145
+ W0 as Transparent,
4124
4146
  Ke as Update,
4125
- ki as Variable,
4126
- qi as getKeySlideBuildIndices,
4127
- Di as getSizingFunctions,
4128
- Bi as getSmoothPathInterpolator,
4147
+ Oi as Variable,
4148
+ zi as getKeySlideBuildIndices,
4149
+ qi as getSizingFunctions,
4150
+ Di as getSmoothPathInterpolator,
4129
4151
  Q0 as getTextContentLength,
4130
4152
  xn as interpolateColor,
4131
4153
  vn as interpolateNumber