labmaker-plugin 0.0.369 → 0.0.371

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.
@@ -378,7 +378,7 @@ function bf(A, c, e, t, s, l) {
378
378
  style: L2({ width: l.kWidth + "px", height: l.kHeight + "px" })
379
379
  }, [
380
380
  Q("iframe", {
381
- onClick: c[0] || (c[0] = (...n) => l.showKaltura && l.showKaltura(...n)),
381
+ onClick: c[0] || (c[0] = (...r) => l.showKaltura && l.showKaltura(...r)),
382
382
  class: "videoIframe",
383
383
  src: l.kalturaMedia(e.content),
384
384
  width: l.kWidth + "px",
@@ -392,7 +392,7 @@ function bf(A, c, e, t, s, l) {
392
392
  e.content.kalturaType == "audio" ? (C(), M("div", {
393
393
  key: 1,
394
394
  class: K(["kAudio", { active: s.showingKaltura == !0 }]),
395
- onClick: c[1] || (c[1] = (...n) => l.showKaltura && l.showKaltura(...n))
395
+ onClick: c[1] || (c[1] = (...r) => l.showKaltura && l.showKaltura(...r))
396
396
  }, [
397
397
  Q("iframe", {
398
398
  id: "my_iframe",
@@ -408,7 +408,7 @@ function bf(A, c, e, t, s, l) {
408
408
  e.content.kalturaType == "audiobtn" ? (C(), M("div", {
409
409
  key: 2,
410
410
  class: K(["kAudiobtn", { active: s.showingKaltura == !0 }]),
411
- onClick: c[2] || (c[2] = (...n) => l.showKaltura && l.showKaltura(...n))
411
+ onClick: c[2] || (c[2] = (...r) => l.showKaltura && l.showKaltura(...r))
412
412
  }, [
413
413
  Q("iframe", {
414
414
  src: l.kalturaMedia(e.content),
@@ -428,7 +428,7 @@ function bf(A, c, e, t, s, l) {
428
428
  type: "primary",
429
429
  "aria-label": "text version",
430
430
  class: "toggleSwitch ftSwitch btn btn-primary vidText",
431
- onClick: c[3] || (c[3] = E2((n) => l.showText(e.content.kalturaType), ["stop"]))
431
+ onClick: c[3] || (c[3] = E2((r) => l.showText(e.content.kalturaType), ["stop"]))
432
432
  }, {
433
433
  default: T(() => [
434
434
  h2(s2(l.getButtonText(e.content.kalturaType)), 1)
@@ -487,7 +487,7 @@ function Pf(A, c, e, t, s, l) {
487
487
  D(a, {
488
488
  class: K(["imageSlide", l.dark]),
489
489
  modelValue: s.value1,
490
- "onUpdate:modelValue": c[0] || (c[0] = (n) => s.value1 = n),
490
+ "onUpdate:modelValue": c[0] || (c[0] = (r) => s.value1 = r),
491
491
  step: 5,
492
492
  "show-tooltip": !1,
493
493
  vertical: l.vertical
@@ -631,41 +631,41 @@ const Vf = {
631
631
  class: "big_green"
632
632
  };
633
633
  function $f(A, c, e, t, s, l) {
634
- const a = H("el-button"), n = H("lab-feedback");
634
+ const a = H("el-button"), r = H("lab-feedback");
635
635
  return C(), M("div", Wf, [
636
636
  Q("img", {
637
637
  src: e.content.image,
638
638
  alt: e.content.imageAlt
639
639
  }, null, 8, Xf),
640
640
  Q("div", qf, [
641
- (C(!0), M(O, null, l2(l.hotspots(), (r, o) => (C(), M(O, null, [
641
+ (C(!0), M(O, null, l2(l.hotspots(), (n, o) => (C(), M(O, null, [
642
642
  l.showSpot(o) ? (C(), R(a, {
643
643
  key: 0,
644
- type: r.buttonType,
645
- onClick: E2((i) => l.changePage(r, o), ["stop"]),
644
+ type: n.buttonType,
645
+ onClick: E2((i) => l.changePage(n, o), ["stop"]),
646
646
  id: "hotspot_" + o,
647
- class: K([["is-" + r.buttonShape, { noBG: r.buttonImage }, r.class, l.spotDone(o)], "hotspot"]),
648
- style: L2({ top: l.pixelFormat(r.cordinatesX), left: l.pixelFormat(r.cordinatesY), width: l.pixelFormat(r.dimensionsW), height: l.pixelFormat(r.dimensionsH) }),
649
- icon: r.buttonIcon
647
+ class: K([["is-" + n.buttonShape, { noBG: n.buttonImage }, n.class, l.spotDone(o)], "hotspot"]),
648
+ style: L2({ top: l.pixelFormat(n.cordinatesX), left: l.pixelFormat(n.cordinatesY), width: l.pixelFormat(n.dimensionsW), height: l.pixelFormat(n.dimensionsH) }),
649
+ icon: n.buttonIcon
650
650
  }, {
651
651
  default: T(() => [
652
- r.buttonImage ? (C(), M("img", {
652
+ n.buttonImage ? (C(), M("img", {
653
653
  key: 0,
654
654
  class: "im-ButtonImage",
655
- src: r.buttonImage,
656
- alt: l.imgAlt(o, r.buttonImageAlt)
655
+ src: n.buttonImage,
656
+ alt: l.imgAlt(o, n.buttonImageAlt)
657
657
  }, null, 8, Yf)) : F("", !0),
658
658
  Q("span", {
659
659
  class: "im-buttonText",
660
- innerHTML: r.name
660
+ innerHTML: n.name
661
661
  }, null, 8, Jf),
662
662
  l.spotDone(o) ? (C(), M("div", jf)) : F("", !0)
663
663
  ]),
664
664
  _: 2
665
665
  }, 1032, ["type", "onClick", "id", "class", "style", "icon"])) : F("", !0),
666
- l.showFeedback(o) ? (C(), R(n, {
666
+ l.showFeedback(o) ? (C(), R(r, {
667
667
  key: 1,
668
- content: r
668
+ content: n
669
669
  }, null, 8, ["content"])) : F("", !0)
670
670
  ], 64))), 256))
671
671
  ])
@@ -703,8 +703,8 @@ const Au = {
703
703
  }
704
704
  }, cu = ["innerHTML"], eu = ["src", "alt"], tu = { class: "hotspotArea" };
705
705
  function su(A, c, e, t, s, l) {
706
- const a = H("el-col"), n = H("el-button"), r = H("el-row");
707
- return C(), R(r, { class: "imageReplacer" }, {
706
+ const a = H("el-col"), r = H("el-button"), n = H("el-row");
707
+ return C(), R(n, { class: "imageReplacer" }, {
708
708
  default: T(() => [
709
709
  D(a, { span: 12 }, {
710
710
  default: T(() => [
@@ -723,7 +723,7 @@ function su(A, c, e, t, s, l) {
723
723
  alt: s.imageAlt
724
724
  }, null, 8, eu),
725
725
  Q("div", tu, [
726
- (C(!0), M(O, null, l2(e.content.hotspots, (o, i) => (C(), R(n, {
726
+ (C(!0), M(O, null, l2(e.content.hotspots, (o, i) => (C(), R(r, {
727
727
  type: o.buttonType,
728
728
  onClick: E2((f) => l.changeImage(i), ["stop"]),
729
729
  class: "hotspot",
@@ -786,7 +786,7 @@ function uu(A, c, e, t, s, l) {
786
786
  D(a, {
787
787
  class: K(["imageSlide", l.dark]),
788
788
  modelValue: s.value1,
789
- "onUpdate:modelValue": c[0] || (c[0] = (n) => s.value1 = n),
789
+ "onUpdate:modelValue": c[0] || (c[0] = (r) => s.value1 = r),
790
790
  "show-tooltip": !1,
791
791
  vertical: l.vertical,
792
792
  step: 1,
@@ -864,7 +864,7 @@ function gu(A, c, e, t, s, l) {
864
864
  D(a, {
865
865
  size: "medium",
866
866
  type: "primary",
867
- onClick: c[0] || (c[0] = (n) => s.showOverlay = !s.showOverlay)
867
+ onClick: c[0] || (c[0] = (r) => s.showOverlay = !s.showOverlay)
868
868
  }, {
869
869
  default: T(() => [
870
870
  h2(s2(l.overlayButtonText), 1)
@@ -962,7 +962,7 @@ const xu = {
962
962
  }, bu = { class: "el-dialog__header" }, Uu = { class: "my-header" }, Su = ["id", "innerHTML"], Hu = { class: "el-dialog__body" }, Nu = ["innerHTML"], Eu = { key: 1 }, ku = { key: 0 }, Iu = ["innerHTML"], Tu = ["src"], _u = ["innerHTML"], Du = { class: "el-dialog__footer" }, Ku = { class: "dialog-footer" };
963
963
  function Ou(A, c, e, t, s, l) {
964
964
  var f;
965
- const a = H("CloseBold"), n = H("el-icon"), r = H("el-button"), o = H("lab-kaltura"), i = H("lab-image");
965
+ const a = H("CloseBold"), r = H("el-icon"), n = H("el-button"), o = H("lab-kaltura"), i = H("lab-image");
966
966
  return s.show ? (C(), M("div", Fu, [
967
967
  Q("div", yu, [
968
968
  Q("div", {
@@ -978,14 +978,14 @@ function Ou(A, c, e, t, s, l) {
978
978
  innerHTML: l.feedbackHeader
979
979
  }, null, 10, Su)
980
980
  ]),
981
- D(r, {
981
+ D(n, {
982
982
  class: "el-dialog__headerbtn",
983
983
  size: "small",
984
984
  type: "primary",
985
985
  onClick: c[0] || (c[0] = E2((u) => l.feedbackClose(), ["stop"]))
986
986
  }, {
987
987
  default: T(() => [
988
- D(n, null, {
988
+ D(r, null, {
989
989
  default: T(() => [
990
990
  D(a)
991
991
  ]),
@@ -1029,7 +1029,7 @@ function Ou(A, c, e, t, s, l) {
1029
1029
  ]),
1030
1030
  Q("footer", Du, [
1031
1031
  Q("span", Ku, [
1032
- D(r, {
1032
+ D(n, {
1033
1033
  size: "small",
1034
1034
  id: "feedbackClose",
1035
1035
  type: "primary",
@@ -1120,8 +1120,8 @@ const Ru = {
1120
1120
  },
1121
1121
  choicesComplete(A) {
1122
1122
  let c = [], e = "not correct";
1123
- this.quizArray.forEach((a, n) => {
1124
- this.input[n] ? this.input[n] = this.content.options[n].answer : this.input.push(this.content.options[n].answer), c.push(this.content.options[n].answer), this.quizItemCompleted.push(n + 1);
1123
+ this.quizArray.forEach((a, r) => {
1124
+ this.input[r] ? this.input[r] = this.content.options[r].answer : this.input.push(this.content.options[r].answer), c.push(this.content.options[r].answer), this.quizItemCompleted.push(r + 1);
1125
1125
  }), A && (e = "correct");
1126
1126
  let t = {
1127
1127
  page: this.stepperStore.stepPage,
@@ -1153,7 +1153,7 @@ const Ru = {
1153
1153
  class: "textResults"
1154
1154
  }, Gu = ["innerHTML"], Vu = ["innerHTML"];
1155
1155
  function Wu(A, c, e, t, s, l) {
1156
- const a = H("el-option"), n = H("el-select"), r = H("el-date-picker"), o = H("el-button"), i = H("lab-feedback");
1156
+ const a = H("el-option"), r = H("el-select"), n = H("el-date-picker"), o = H("el-button"), i = H("lab-feedback");
1157
1157
  return C(), M("div", {
1158
1158
  class: K(["drop-down", e.content.class])
1159
1159
  }, [
@@ -1174,7 +1174,7 @@ function Wu(A, c, e, t, s, l) {
1174
1174
  Q("span", {
1175
1175
  class: K("quizText quizSection_" + u)
1176
1176
  }, s2(f) + " ", 3),
1177
- l.quizType(u) === "choose" ? (C(), R(n, {
1177
+ l.quizType(u) === "choose" ? (C(), R(r, {
1178
1178
  key: 0,
1179
1179
  onChange: (h) => l.choicesMade(u),
1180
1180
  modelValue: s.input[u],
@@ -1190,7 +1190,7 @@ function Wu(A, c, e, t, s, l) {
1190
1190
  ]),
1191
1191
  _: 2
1192
1192
  }, 1032, ["onChange", "modelValue", "onUpdate:modelValue", "placeholder"])) : F("", !0),
1193
- l.quizType(u) === "date" ? (C(), R(r, {
1193
+ l.quizType(u) === "date" ? (C(), R(n, {
1194
1194
  key: 1,
1195
1195
  onChange: (h) => l.choicesMade(u),
1196
1196
  modelValue: s.input[u],
@@ -1266,8 +1266,8 @@ const qu = {
1266
1266
  },
1267
1267
  choicesComplete(A) {
1268
1268
  let c = [], e = "not correct";
1269
- this.input.forEach((a, n) => {
1270
- this.input[n] = this.content.answers[n], c.push(this.content.answers[n]);
1269
+ this.input.forEach((a, r) => {
1270
+ this.input[r] = this.content.answers[r], c.push(this.content.answers[r]);
1271
1271
  }), A && (e = "correct");
1272
1272
  let t = {
1273
1273
  page: this.stepperStore.stepPage,
@@ -1293,7 +1293,7 @@ const qu = {
1293
1293
  }
1294
1294
  };
1295
1295
  function Yu(A, c, e, t, s, l) {
1296
- const a = H("el-input"), n = H("el-button"), r = H("lab-feedback");
1296
+ const a = H("el-input"), r = H("el-button"), n = H("lab-feedback");
1297
1297
  return C(), M("div", {
1298
1298
  class: K(["fill-blank", e.content.class])
1299
1299
  }, [
@@ -1309,7 +1309,7 @@ function Yu(A, c, e, t, s, l) {
1309
1309
  }, null, 8, ["modelValue", "onUpdate:modelValue"])) : F("", !0)
1310
1310
  ], 64))), 256))
1311
1311
  ]),
1312
- D(n, {
1312
+ D(r, {
1313
1313
  size: "small",
1314
1314
  type: "primary",
1315
1315
  class: "fill-blank-submit",
@@ -1320,7 +1320,7 @@ function Yu(A, c, e, t, s, l) {
1320
1320
  ])]),
1321
1321
  _: 1
1322
1322
  }),
1323
- l.showFeedback() ? (C(), R(r, {
1323
+ l.showFeedback() ? (C(), R(n, {
1324
1324
  key: 0,
1325
1325
  content: s.feedbackObject
1326
1326
  }, null, 8, ["content"])) : F("", !0)
@@ -1435,7 +1435,17 @@ const ju = {
1435
1435
  if (this.getAttempt < this.content.attempts) {
1436
1436
  let A = !0, c = 0;
1437
1437
  this.quizArrayInputKeys.forEach((e, t) => {
1438
- if (this.input[e] !== "" && (A = !1), this.content.answers[c] === this.input[e])
1438
+ if (this.input[e] !== "" && (A = !1), console.log(this.content.answers[c], this.input[e]), this.content.answers[c].indexOf(";") > -1) {
1439
+ let s = !1;
1440
+ if (this.content.answers[c].split(";").forEach((l) => {
1441
+ console.log(t, e), l === this.input[e] && (s = !0);
1442
+ }), s)
1443
+ this.correctChoices.includes(e) === !1 && this.correctChoices.push(e);
1444
+ else if (this.correctChoices.includes(e) === !0) {
1445
+ let l = this.correctChoices.indexOf(e);
1446
+ this.correctChoices.splice(l, 1);
1447
+ }
1448
+ } else if (this.content.answers[c] === this.input[e])
1439
1449
  this.correctChoices.includes(e) === !1 && this.correctChoices.push(e);
1440
1450
  else if (this.correctChoices.includes(e) === !0) {
1441
1451
  let s = this.correctChoices.indexOf(e);
@@ -1451,9 +1461,10 @@ const ju = {
1451
1461
  },
1452
1462
  choicesComplete(A) {
1453
1463
  let c = [], e = "not correct";
1454
- this.quizArrayInputKeys.forEach((a, n) => {
1455
- this.input[a] = this.content.answers[n], c.push(this.content.answers[n]), document.getElementById("mf_" + a).setValue(
1456
- this.content.answers[n],
1464
+ this.quizArrayInputKeys.forEach((a, r) => {
1465
+ let n = "";
1466
+ this.content.answers[r].indexOf(";") > -1 ? n = this.content.answers[r].split(";")[0] : n = this.content.answers[r], this.input[a] = n, c.push(n), document.getElementById("mf_" + a).setValue(
1467
+ n,
1457
1468
  { silenceNotifications: !0 }
1458
1469
  );
1459
1470
  }), A && (e = "correct");
@@ -1497,9 +1508,9 @@ const ju = {
1497
1508
  }
1498
1509
  }, $u = ["src", "alt"], Zu = ["innerHTML"], Am = ["innerHTML"], cm = ["innerHTML"], em = ["innerHTML"], tm = { key: 0 };
1499
1510
  function sm(A, c, e, t, s, l) {
1500
- const a = H("el-col"), n = H("math-field"), r = H("el-row"), o = H("el-button"), i = H("feedback");
1511
+ const a = H("el-col"), r = H("math-field"), n = H("el-row"), o = H("el-button"), i = H("feedback");
1501
1512
  return C(), M(O, null, [
1502
- D(r, {
1513
+ D(n, {
1503
1514
  class: K(["fill-blank", e.content.class])
1504
1515
  }, {
1505
1516
  default: T(() => {
@@ -1543,7 +1554,7 @@ function sm(A, c, e, t, s, l) {
1543
1554
  class: "quizText",
1544
1555
  innerHTML: u
1545
1556
  }, null, 8, em)) : (C(), M(O, { key: 1 }, [
1546
- D(n, {
1557
+ D(r, {
1547
1558
  class: "quizInput",
1548
1559
  id: "mf_" + h,
1549
1560
  style: {},
@@ -1607,14 +1618,14 @@ const am = {
1607
1618
  },
1608
1619
  choicesComplete(A) {
1609
1620
  let c, e = "not correct", t = document.querySelectorAll(".selectableButton");
1610
- for (let n = 0; n < t.length; n++)
1611
- t[n].classList.add("is-failure"), t[n].setAttribute("disabled", !0), this.content.choices[n].correct && (t[n].classList.add("is-success"), c = this.content.choices[n].text);
1621
+ for (let r = 0; r < t.length; r++)
1622
+ t[r].classList.add("is-failure"), t[r].setAttribute("disabled", !0), this.content.choices[r].correct && (t[r].classList.add("is-success"), c = this.content.choices[r].text);
1612
1623
  A && (e = "correct");
1613
1624
  let s = {
1614
1625
  page: this.stepperStore.stepPage,
1615
1626
  result: e,
1616
1627
  correctAnswer: c
1617
- }, l = this.stepperStore.results.find((n) => n.page === this.stepperStore.stepPage), a = this.stepperStore.results.indexOf(l);
1628
+ }, l = this.stepperStore.results.find((r) => r.page === this.stepperStore.stepPage), a = this.stepperStore.results.indexOf(l);
1618
1629
  l ? this.stepperStore.results.fill(l.result = e, a, a++) : this.stepperStore.results.push(s), this.stepperStore.finishSteps();
1619
1630
  },
1620
1631
  choicesCheck(A) {
@@ -1647,14 +1658,14 @@ const am = {
1647
1658
  }
1648
1659
  }, nm = ["innerHTML"], rm = { class: "selectArea" }, im = { class: "buttonSpan" }, om = ["src", "alt"], fm = { class: "selectable-buttonText" }, um = ["innerHTML"], mm = { class: "buttonSpan" }, hm = ["src", "alt"], pm = { class: "selectable-buttonText" };
1649
1660
  function dm(A, c, e, t, s, l) {
1650
- const a = H("lab-image"), n = H("el-col"), r = H("el-divider"), o = H("el-button"), i = H("lab-feedback"), f = H("el-row");
1661
+ const a = H("lab-image"), r = H("el-col"), n = H("el-divider"), o = H("el-button"), i = H("lab-feedback"), f = H("el-row");
1651
1662
  return C(), R(f, {
1652
1663
  id: e.content.id,
1653
1664
  class: K(["selectable", e.content.classes])
1654
1665
  }, {
1655
1666
  default: T(() => [
1656
1667
  e.content.image ? (C(), M(O, { key: 0 }, [
1657
- D(n, {
1668
+ D(r, {
1658
1669
  span: l.leftColWidth(A.index)
1659
1670
  }, {
1660
1671
  default: T(() => [
@@ -1666,7 +1677,7 @@ function dm(A, c, e, t, s, l) {
1666
1677
  ]),
1667
1678
  _: 1
1668
1679
  }, 8, ["span"]),
1669
- D(n, {
1680
+ D(r, {
1670
1681
  span: l.rightColWidth(A.index)
1671
1682
  }, {
1672
1683
  default: T(() => [
@@ -1676,7 +1687,7 @@ function dm(A, c, e, t, s, l) {
1676
1687
  }, null, 8, nm)) : F("", !0),
1677
1688
  Q("div", rm, [
1678
1689
  (C(!0), M(O, null, l2(e.content.choices, (u, h) => (C(), M(O, null, [
1679
- !e.content.noDivider && h > 0 ? (C(), R(r, { key: 0 })) : F("", !0),
1690
+ !e.content.noDivider && h > 0 ? (C(), R(n, { key: 0 })) : F("", !0),
1680
1691
  D(o, {
1681
1692
  size: "small",
1682
1693
  type: "primary",
@@ -1707,7 +1718,7 @@ function dm(A, c, e, t, s, l) {
1707
1718
  _: 1
1708
1719
  }, 8, ["span"])
1709
1720
  ], 64)) : (C(), M(O, { key: 1 }, [
1710
- D(n, { span: 12 }, {
1721
+ D(r, { span: 12 }, {
1711
1722
  default: T(() => [
1712
1723
  e.content.quiz ? (C(), M("p", {
1713
1724
  key: 0,
@@ -1716,13 +1727,13 @@ function dm(A, c, e, t, s, l) {
1716
1727
  ]),
1717
1728
  _: 1
1718
1729
  }),
1719
- D(n, {
1730
+ D(r, {
1720
1731
  span: 12,
1721
1732
  class: "selectArea"
1722
1733
  }, {
1723
1734
  default: T(() => [
1724
1735
  (C(!0), M(O, null, l2(e.content.choices, (u, h) => (C(), M(O, null, [
1725
- !e.content.noDivider && h > 0 ? (C(), R(r, { key: 0 })) : F("", !0),
1736
+ !e.content.noDivider && h > 0 ? (C(), R(n, { key: 0 })) : F("", !0),
1726
1737
  D(o, {
1727
1738
  size: "small",
1728
1739
  type: "primary",
@@ -1796,14 +1807,14 @@ const Cm = {
1796
1807
  },
1797
1808
  choicesComplete(A, c) {
1798
1809
  let e = [], t = "not correct";
1799
- this.content.noGrade ? e.push(c) : this.content.answers.forEach((n) => {
1800
- e.push(n);
1810
+ this.content.noGrade ? e.push(c) : this.content.answers.forEach((r) => {
1811
+ e.push(r);
1801
1812
  }), A && (t = "correct");
1802
1813
  let s = {
1803
1814
  page: this.stepperStore.stepPage,
1804
1815
  result: t,
1805
1816
  correctAnswer: e
1806
- }, l = this.stepperStore.results.find((n) => n.page === this.stepperStore.stepPage), a = this.stepperStore.results.indexOf(l);
1817
+ }, l = this.stepperStore.results.find((r) => r.page === this.stepperStore.stepPage), a = this.stepperStore.results.indexOf(l);
1807
1818
  l ? this.stepperStore.results.fill(l.result = t, a, a++) : this.stepperStore.results.push(s), this.stepperStore.finishSteps();
1808
1819
  },
1809
1820
  showFeedback() {
@@ -1831,7 +1842,7 @@ const Cm = {
1831
1842
  }
1832
1843
  }, Bm = ["innerHTML"];
1833
1844
  function Lm(A, c, e, t, s, l) {
1834
- const a = H("el-input"), n = H("el-button"), r = H("lab-feedback");
1845
+ const a = H("el-input"), r = H("el-button"), n = H("lab-feedback");
1835
1846
  return C(), M("div", {
1836
1847
  class: K(["textbox", e.content.class])
1837
1848
  }, [
@@ -1845,7 +1856,7 @@ function Lm(A, c, e, t, s, l) {
1845
1856
  type: "textarea",
1846
1857
  placeholder: "Please input"
1847
1858
  }, null, 8, ["modelValue"]),
1848
- this.content.input ? F("", !0) : (C(), R(n, {
1859
+ this.content.input ? F("", !0) : (C(), R(r, {
1849
1860
  key: 0,
1850
1861
  size: "small",
1851
1862
  type: "primary",
@@ -1857,7 +1868,7 @@ function Lm(A, c, e, t, s, l) {
1857
1868
  ])]),
1858
1869
  _: 1
1859
1870
  })),
1860
- l.showFeedback() ? (C(), R(r, {
1871
+ l.showFeedback() ? (C(), R(n, {
1861
1872
  key: 1,
1862
1873
  content: s.feedbackObject
1863
1874
  }, null, 8, ["content"])) : F("", !0)
@@ -1944,7 +1955,7 @@ const Mm = {
1944
1955
  class: "jl-menu-item"
1945
1956
  }, Nm = ["index", "onClick"];
1946
1957
  function Em(A, c, e, t, s, l) {
1947
- const a = H("CaretBottom"), n = H("el-icon"), r = H("CaretRight"), o = H("lab-feedback");
1958
+ const a = H("CaretBottom"), r = H("el-icon"), n = H("CaretRight"), o = H("lab-feedback");
1948
1959
  return C(), M("div", {
1949
1960
  class: K(["menu-chooser", e.content.class])
1950
1961
  }, [
@@ -1969,7 +1980,7 @@ function Em(A, c, e, t, s, l) {
1969
1980
  }, [
1970
1981
  Q("div", Qm, [
1971
1982
  h2(s2(i.name) + " ", 1),
1972
- D(n, null, {
1983
+ D(r, null, {
1973
1984
  default: T(() => [
1974
1985
  D(a)
1975
1986
  ]),
@@ -1992,9 +2003,9 @@ function Em(A, c, e, t, s, l) {
1992
2003
  }, [
1993
2004
  Q("div", ym, [
1994
2005
  h2(s2(u.name), 1),
1995
- D(n, null, {
2006
+ D(r, null, {
1996
2007
  default: T(() => [
1997
- D(r)
2008
+ D(n)
1998
2009
  ]),
1999
2010
  _: 1
2000
2011
  })
@@ -2115,7 +2126,7 @@ const Im = {
2115
2126
  }
2116
2127
  }, Tm = ["innerHTML"], _m = { class: "multiSentance" }, Dm = ["innerHTML", "onClick"], Km = ["innerHTML"];
2117
2128
  function Om(A, c, e, t, s, l) {
2118
- const a = H("el-button"), n = H("lab-feedback");
2129
+ const a = H("el-button"), r = H("lab-feedback");
2119
2130
  return C(), M("div", {
2120
2131
  class: K(["textbox", e.content.class])
2121
2132
  }, [
@@ -2123,18 +2134,18 @@ function Om(A, c, e, t, s, l) {
2123
2134
  innerHTML: e.content.quiz
2124
2135
  }, null, 8, Tm),
2125
2136
  Q("div", _m, [
2126
- (C(!0), M(O, null, l2(e.content.options, (r, o) => (C(), M(O, null, [
2127
- r.button ? (C(), M("a", {
2137
+ (C(!0), M(O, null, l2(e.content.options, (n, o) => (C(), M(O, null, [
2138
+ n.button ? (C(), M("a", {
2128
2139
  key: 0,
2129
2140
  role: "button",
2130
2141
  class: K(["multiSentanceButton el-button", { "el-button--success": s.selected.includes(o), "el-button--primary": !s.selected.includes(o) }]),
2131
- innerHTML: r.content,
2142
+ innerHTML: n.content,
2132
2143
  tabindex: "1",
2133
2144
  onClick: (i) => l.choicesMark(o),
2134
2145
  href: "javascript:void(0)"
2135
2146
  }, null, 10, Dm)) : (C(), M("span", {
2136
2147
  key: 1,
2137
- innerHTML: r.content
2148
+ innerHTML: n.content
2138
2149
  }, null, 8, Km))
2139
2150
  ], 64))), 256))
2140
2151
  ]),
@@ -2142,14 +2153,14 @@ function Om(A, c, e, t, s, l) {
2142
2153
  size: "small",
2143
2154
  type: "primary",
2144
2155
  class: "fill-blank-submit",
2145
- onClick: c[0] || (c[0] = (r) => l.choicesCheck())
2156
+ onClick: c[0] || (c[0] = (n) => l.choicesCheck())
2146
2157
  }, {
2147
2158
  default: T(() => [...c[1] || (c[1] = [
2148
2159
  h2("Submit", -1)
2149
2160
  ])]),
2150
2161
  _: 1
2151
2162
  }),
2152
- l.showFeedback() ? (C(), R(n, {
2163
+ l.showFeedback() ? (C(), R(r, {
2153
2164
  key: 0,
2154
2165
  content: s.feedbackObject
2155
2166
  }, null, 8, ["content"])) : F("", !0)
@@ -2401,18 +2412,18 @@ const Vm = {
2401
2412
  this.saveDimensionsBeforeMove({ pointerX: t, pointerY: s }), this.parentLimitation && (this.limits = this.calcDragLimitation());
2402
2413
  },
2403
2414
  bodyMove(A) {
2404
- const { dimensionsBeforeMove: c, parentWidth: e, parentHeight: t, gridX: s, gridY: l, width: a, height: n } = this;
2405
- let r = c.top - A.y, o = c.bottom + A.y, i = c.left - A.x, f = c.right + A.x;
2415
+ const { dimensionsBeforeMove: c, parentWidth: e, parentHeight: t, gridX: s, gridY: l, width: a, height: r } = this;
2416
+ let n = c.top - A.y, o = c.bottom + A.y, i = c.left - A.x, f = c.right + A.x;
2406
2417
  if (this.snapToGrid) {
2407
- let u = !0, h = !0, m = r - Math.floor(r / l) * l, p = t - o - Math.floor((t - o) / l) * l, B = i - Math.floor(i / s) * s, g = e - f - Math.floor((e - f) / s) * s;
2408
- m > l / 2 && (m -= l), p > l / 2 && (p -= l), B > s / 2 && (B -= s), g > s / 2 && (g -= s), Math.abs(p) < Math.abs(m) && (u = !1), Math.abs(g) < Math.abs(B) && (h = !1), r -= u ? m : p, o = t - n - r, i -= h ? B : g, f = e - a - i;
2418
+ let u = !0, h = !0, m = n - Math.floor(n / l) * l, p = t - o - Math.floor((t - o) / l) * l, B = i - Math.floor(i / s) * s, g = e - f - Math.floor((e - f) / s) * s;
2419
+ m > l / 2 && (m -= l), p > l / 2 && (p -= l), B > s / 2 && (B -= s), g > s / 2 && (g -= s), Math.abs(p) < Math.abs(m) && (u = !1), Math.abs(g) < Math.abs(B) && (h = !1), n -= u ? m : p, o = t - r - n, i -= h ? B : g, f = e - a - i;
2409
2420
  }
2410
2421
  ({
2411
2422
  newLeft: this.left,
2412
2423
  newRight: this.right,
2413
2424
  newTop: this.top,
2414
2425
  newBottom: this.bottom
2415
- } = this.rectCorrectionByLimit({ newLeft: i, newRight: f, newTop: r, newBottom: o })), this.$emit("dragging", this.rect);
2426
+ } = this.rectCorrectionByLimit({ newLeft: i, newRight: f, newTop: n, newBottom: o })), this.$emit("dragging", this.rect);
2416
2427
  },
2417
2428
  bodyUp() {
2418
2429
  this.bodyDrag = !1, this.$emit("dragging", this.rect), this.$emit("dragstop", this.rect), this.dimensionsBeforeMove = { pointerX: 0, pointerY: 0, x: 0, y: 0, w: 0, h: 0 }, this.limits = {
@@ -2440,20 +2451,20 @@ const Vm = {
2440
2451
  gridX: s,
2441
2452
  snapToGrid: l,
2442
2453
  parentHeight: a,
2443
- parentWidth: n
2454
+ parentWidth: r
2444
2455
  } = this;
2445
- let r = e.top, o = e.bottom, i = e.left, f = e.right;
2456
+ let n = e.top, o = e.bottom, i = e.left, f = e.right;
2446
2457
  switch (c[0]) {
2447
2458
  case "b":
2448
2459
  o = e.bottom + A.y, l && (o = a - Math.round((a - o) / t) * t);
2449
2460
  break;
2450
2461
  case "t":
2451
- r = e.top - A.y, l && (r = Math.round(r / t) * t);
2462
+ n = e.top - A.y, l && (n = Math.round(n / t) * t);
2452
2463
  break;
2453
2464
  }
2454
2465
  switch (c[1]) {
2455
2466
  case "r":
2456
- f = e.right + A.x, l && (f = n - Math.round((n - f) / s) * s);
2467
+ f = e.right + A.x, l && (f = r - Math.round((r - f) / s) * s);
2457
2468
  break;
2458
2469
  case "l":
2459
2470
  i = e.left - A.x, l && (i = Math.round(i / s) * s);
@@ -2462,14 +2473,14 @@ const Vm = {
2462
2473
  ({
2463
2474
  newLeft: i,
2464
2475
  newRight: f,
2465
- newTop: r,
2476
+ newTop: n,
2466
2477
  newBottom: o
2467
- } = this.rectCorrectionByLimit({ newLeft: i, newRight: f, newTop: r, newBottom: o })), this.aspectRatio && ({
2478
+ } = this.rectCorrectionByLimit({ newLeft: i, newRight: f, newTop: n, newBottom: o })), this.aspectRatio && ({
2468
2479
  newLeft: i,
2469
2480
  newRight: f,
2470
- newTop: r,
2481
+ newTop: n,
2471
2482
  newBottom: o
2472
- } = this.rectCorrectionByAspectRatio({ newLeft: i, newRight: f, newTop: r, newBottom: o })), this.left = i, this.right = f, this.top = r, this.bottom = o, this.$emit("resizing", this.rect);
2483
+ } = this.rectCorrectionByAspectRatio({ newLeft: i, newRight: f, newTop: n, newBottom: o })), this.left = i, this.right = f, this.top = n, this.bottom = o, this.$emit("resizing", this.rect);
2473
2484
  },
2474
2485
  stickUp() {
2475
2486
  this.stickDrag = !1, this.dimensionsBeforeMove = {
@@ -2497,32 +2508,32 @@ const Vm = {
2497
2508
  },
2498
2509
  calcResizeLimits() {
2499
2510
  const { aspectFactor: A, width: c, height: e, bottom: t, top: s, left: l, right: a } = this;
2500
- let { minh: n, minw: r } = this;
2511
+ let { minh: r, minw: n } = this;
2501
2512
  const o = this.parentLimitation ? 0 : null;
2502
- this.aspectRatio && (r / n > A ? n = r / A : r = A * n);
2513
+ this.aspectRatio && (n / r > A ? r = n / A : n = A * r);
2503
2514
  const i = {
2504
- left: { min: o, max: l + (c - r) },
2505
- right: { min: o, max: a + (c - r) },
2506
- top: { min: o, max: s + (e - n) },
2507
- bottom: { min: o, max: t + (e - n) }
2515
+ left: { min: o, max: l + (c - n) },
2516
+ right: { min: o, max: a + (c - n) },
2517
+ top: { min: o, max: s + (e - r) },
2518
+ bottom: { min: o, max: t + (e - r) }
2508
2519
  };
2509
2520
  if (this.aspectRatio) {
2510
2521
  const f = {
2511
2522
  left: {
2512
2523
  min: l - Math.min(s, t) * A * 2,
2513
- max: l + (e - n) / 2 * A * 2
2524
+ max: l + (e - r) / 2 * A * 2
2514
2525
  },
2515
2526
  right: {
2516
2527
  min: a - Math.min(s, t) * A * 2,
2517
- max: a + (e - n) / 2 * A * 2
2528
+ max: a + (e - r) / 2 * A * 2
2518
2529
  },
2519
2530
  top: {
2520
2531
  min: s - Math.min(l, a) / A * 2,
2521
- max: s + (c - r) / 2 / A * 2
2532
+ max: s + (c - n) / 2 / A * 2
2522
2533
  },
2523
2534
  bottom: {
2524
2535
  min: t - Math.min(l, a) / A * 2,
2525
- max: t + (c - r) / 2 / A * 2
2536
+ max: t + (c - n) / 2 / A * 2
2526
2537
  }
2527
2538
  };
2528
2539
  this.currentStick[0] === "m" ? (i.left = {
@@ -2557,16 +2568,16 @@ const Vm = {
2557
2568
  },
2558
2569
  rectCorrectionByAspectRatio(A) {
2559
2570
  let { newLeft: c, newRight: e, newTop: t, newBottom: s } = A;
2560
- const { parentWidth: l, parentHeight: a, currentStick: n, aspectFactor: r, dimensionsBeforeMove: o } = this;
2571
+ const { parentWidth: l, parentHeight: a, currentStick: r, aspectFactor: n, dimensionsBeforeMove: o } = this;
2561
2572
  let i = l - c - e, f = a - t - s;
2562
- if (n[1] === "m") {
2573
+ if (r[1] === "m") {
2563
2574
  const u = f - o.height;
2564
- c -= u * r / 2, e -= u * r / 2;
2565
- } else if (n[0] === "m") {
2575
+ c -= u * n / 2, e -= u * n / 2;
2576
+ } else if (r[0] === "m") {
2566
2577
  const u = i - o.width;
2567
- t -= u / r / 2, s -= u / r / 2;
2578
+ t -= u / n / 2, s -= u / n / 2;
2568
2579
  } else
2569
- i / f > r ? (i = r * f, n[1] === "l" ? c = l - e - i : e = l - c - i) : (f = i / r, n[0] === "t" ? t = a - s - f : s = a - t - f);
2580
+ i / f > n ? (i = n * f, r[1] === "l" ? c = l - e - i : e = l - c - i) : (f = i / n, r[0] === "t" ? t = a - s - f : s = a - t - f);
2570
2581
  return { newLeft: c, newRight: e, newTop: t, newBottom: s };
2571
2582
  }
2572
2583
  },
@@ -2691,8 +2702,8 @@ function Xm(A, c, e, t, s, l) {
2691
2702
  ], 4),
2692
2703
  (C(!0), M(O, null, l2(e.sticks, (a) => (C(), M("div", {
2693
2704
  class: K(["vdr-stick", ["vdr-stick-" + a, e.isResizable ? "" : "not-resizable"]]),
2694
- onMousedown: E2((n) => l.stickDown(a, n), ["stop", "prevent"]),
2695
- onTouchstart: E2((n) => l.stickDown(a, n), ["stop", "prevent"]),
2705
+ onMousedown: E2((r) => l.stickDown(a, r), ["stop", "prevent"]),
2706
+ onTouchstart: E2((r) => l.stickDown(a, r), ["stop", "prevent"]),
2696
2707
  style: L2(l.vdrStick(a))
2697
2708
  }, null, 46, Wm))), 256))
2698
2709
  ], 38);
@@ -2732,20 +2743,20 @@ const qm = {
2732
2743
  addEventListener("keydown", function(l) {
2733
2744
  let a = document.getElementById(l.target.id);
2734
2745
  if (l.altKey && l.key === "ArrowLeft") {
2735
- let n = Number(a.style.left.slice(0, -2));
2736
- n - 10 < 0 ? a.style.left = `${n}px` : a.style.left = `${n - 10}px`;
2746
+ let r = Number(a.style.left.slice(0, -2));
2747
+ r - 10 < 0 ? a.style.left = `${r}px` : a.style.left = `${r - 10}px`;
2737
2748
  }
2738
2749
  if (l.altKey && l.key === "ArrowRight") {
2739
- let n = Number(a.style.left.slice(0, -2));
2740
- n + 10 > s[0].offsetWidth - 50 ? a.style.left = `${n}px` : a.style.left = `${n + 10}px`;
2750
+ let r = Number(a.style.left.slice(0, -2));
2751
+ r + 10 > s[0].offsetWidth - 50 ? a.style.left = `${r}px` : a.style.left = `${r + 10}px`;
2741
2752
  }
2742
2753
  if (l.altKey && l.key === "ArrowUp") {
2743
- let n = Number(a.style.top.slice(0, -2));
2744
- n + 10 < 0 ? a.style.top = `${n}px` : a.style.top = `${n - 10}px`;
2754
+ let r = Number(a.style.top.slice(0, -2));
2755
+ r + 10 < 0 ? a.style.top = `${r}px` : a.style.top = `${r - 10}px`;
2745
2756
  }
2746
2757
  if (l.altKey && l.key === "ArrowDown") {
2747
- let n = Number(a.style.top.slice(0, -2));
2748
- n + 10 > s[0].offsetHeight - 80 ? a.style.top = `${n}px` : a.style.top = `${n + 10}px`;
2758
+ let r = Number(a.style.top.slice(0, -2));
2759
+ r + 10 > s[0].offsetHeight - 80 ? a.style.top = `${r}px` : a.style.top = `${r + 10}px`;
2749
2760
  }
2750
2761
  });
2751
2762
  });
@@ -2775,25 +2786,25 @@ function Ah(A, c, e, t, s, l) {
2775
2786
  Q("div", {
2776
2787
  class: K(["fridge", e.content.class, e.content.noOutline ? "no_outline" : ""])
2777
2788
  }, [
2778
- (C(!0), M(O, null, l2(e.content.magnets, (n, r) => (C(), R(a, {
2779
- id: "vdr_" + r,
2789
+ (C(!0), M(O, null, l2(e.content.magnets, (r, n) => (C(), R(a, {
2790
+ id: "vdr_" + n,
2780
2791
  isActive: !0,
2781
- w: n.width ? n.width : 50,
2782
- minw: n.minWidth ? n.minWidth : 50,
2783
- h: n.height ? n.height : 50,
2784
- minh: n.minHeight ? n.minHeight : 50,
2785
- x: n.x ? n.x : 0,
2786
- y: n.y ? n.y : 60 * r,
2787
- class: K(n.class),
2792
+ w: r.width ? r.width : 50,
2793
+ minw: r.minWidth ? r.minWidth : 50,
2794
+ h: r.height ? r.height : 50,
2795
+ minh: r.minHeight ? r.minHeight : 50,
2796
+ x: r.x ? r.x : 0,
2797
+ y: r.y ? r.y : 60 * n,
2798
+ class: K(r.class),
2788
2799
  parentLimitation: !0,
2789
- parentW: n.parentwidth ? n.parentwidth : l.getParentWidth(),
2790
- parentH: n.parentheight ? n.parentheight : l.getParentHeight(),
2791
- isResizable: n.resizable,
2792
- isDraggable: n.draggable,
2793
- snapToGrid: n.snap,
2794
- gridX: n.snapX,
2795
- gridY: n.snapY,
2796
- dragHandle: n.handle,
2800
+ parentW: r.parentwidth ? r.parentwidth : l.getParentWidth(),
2801
+ parentH: r.parentheight ? r.parentheight : l.getParentHeight(),
2802
+ isResizable: r.resizable,
2803
+ isDraggable: r.draggable,
2804
+ snapToGrid: r.snap,
2805
+ gridX: r.snapX,
2806
+ gridY: r.snapY,
2807
+ dragHandle: r.handle,
2797
2808
  onResizing: A.resize,
2798
2809
  onDragging: A.resize,
2799
2810
  aspectRatio: !0,
@@ -2802,15 +2813,15 @@ function Ah(A, c, e, t, s, l) {
2802
2813
  sticks: ["tl", "bl", "tr", "br"]
2803
2814
  }, {
2804
2815
  default: T(() => [
2805
- n.image ? (C(), M("img", {
2816
+ r.image ? (C(), M("img", {
2806
2817
  key: 0,
2807
- id: n.index,
2808
- src: n.image,
2809
- alt: n.imageAlt
2818
+ id: r.index,
2819
+ src: r.image,
2820
+ alt: r.imageAlt
2810
2821
  }, null, 8, $m)) : F("", !0),
2811
- n.text ? (C(), M("p", {
2822
+ r.text ? (C(), M("p", {
2812
2823
  key: 1,
2813
- innerHTML: n.text
2824
+ innerHTML: r.text
2814
2825
  }, null, 8, Zm)) : F("", !0)
2815
2826
  ]),
2816
2827
  _: 2
@@ -2890,12 +2901,12 @@ const eh = {
2890
2901
  id: "myAudio"
2891
2902
  }, lh = ["src"], ah = { class: "list-group-item" }, nh = ["onChange"], rh = ["id", "src", "alt", "data-swap"], ih = ["src", "alt", "data-swap"];
2892
2903
  function oh(A, c, e, t, s, l) {
2893
- const a = H("lab-image"), n = H("el-col"), r = H("draggable"), o = H("el-row");
2904
+ const a = H("lab-image"), r = H("el-col"), n = H("draggable"), o = H("el-row");
2894
2905
  return C(), R(o, {
2895
2906
  class: K(["dragDrop", e.content.handle])
2896
2907
  }, {
2897
2908
  default: T(() => [
2898
- D(n, { span: 24 }, {
2909
+ D(r, { span: 24 }, {
2899
2910
  default: T(() => [
2900
2911
  Q("div", {
2901
2912
  innerHTML: e.content.quiz
@@ -2915,9 +2926,9 @@ function oh(A, c, e, t, s, l) {
2915
2926
  ]),
2916
2927
  _: 1
2917
2928
  }),
2918
- (C(!0), M(O, null, l2(s.listOne, (i, f) => (C(), R(n, { span: l.binColumns }, {
2929
+ (C(!0), M(O, null, l2(s.listOne, (i, f) => (C(), R(r, { span: l.binColumns }, {
2919
2930
  default: T(() => [
2920
- D(r, {
2931
+ D(n, {
2921
2932
  class: K(["draggable list-group", e.content.bins[f].class]),
2922
2933
  style: L2({ width: l.pixelFormat(e.content.bins[f].width), height: l.pixelFormat(e.content.bins[f].height), background: l.dragBackground(e.content.bins[f].bgImage) }),
2923
2934
  modelValue: l.myList[f],
@@ -3005,16 +3016,16 @@ const uh = {
3005
3016
  let c = [];
3006
3017
  this.content.bins.forEach((l) => {
3007
3018
  let a = [];
3008
- l.items.forEach((r) => {
3009
- let o = { text: r.text, imageAlt: r.imageAlt };
3019
+ l.items.forEach((n) => {
3020
+ let o = { text: n.text, imageAlt: n.imageAlt };
3010
3021
  a.push(o);
3011
3022
  });
3012
- let n = {
3023
+ let r = {
3013
3024
  header: l.header,
3014
3025
  description: l.description,
3015
3026
  items: a
3016
3027
  };
3017
- c.push(n);
3028
+ c.push(r);
3018
3029
  });
3019
3030
  let e = {
3020
3031
  page: this.stepperStore.stepPage,
@@ -3106,14 +3117,14 @@ const uh = {
3106
3117
  class: "dropBin"
3107
3118
  }, gh = { class: "dragItems-button" }, Ch = ["id", "src", "alt"], Bh = { class: "dialog-footer" };
3108
3119
  function Lh(A, c, e, t, s, l) {
3109
- const a = H("lab-image"), n = H("el-col"), r = H("draggable"), o = H("el-row"), i = H("lab-feedback"), f = H("el-button"), u = H("el-dialog");
3120
+ const a = H("lab-image"), r = H("el-col"), n = H("draggable"), o = H("el-row"), i = H("lab-feedback"), f = H("el-button"), u = H("el-dialog");
3110
3121
  return C(), M(O, null, [
3111
3122
  D(o, {
3112
3123
  class: K(["dragDrop", e.content.handle]),
3113
3124
  id: "dragItemDiv"
3114
3125
  }, {
3115
3126
  default: T(() => [
3116
- D(n, { span: 24 }, {
3127
+ D(r, { span: 24 }, {
3117
3128
  default: T(() => [
3118
3129
  Q("div", {
3119
3130
  innerHTML: e.content.quiz
@@ -3126,9 +3137,9 @@ function Lh(A, c, e, t, s, l) {
3126
3137
  ]),
3127
3138
  _: 1
3128
3139
  }),
3129
- D(n, { span: 24 }, {
3140
+ D(r, { span: 24 }, {
3130
3141
  default: T(() => [
3131
- D(r, {
3142
+ D(n, {
3132
3143
  class: "dragItems",
3133
3144
  list: s.listTwo,
3134
3145
  group: "put",
@@ -3160,13 +3171,13 @@ function Lh(A, c, e, t, s, l) {
3160
3171
  ]),
3161
3172
  _: 1
3162
3173
  }),
3163
- (C(!0), M(O, null, l2(s.listOne, (h, m) => (C(), R(n, {
3174
+ (C(!0), M(O, null, l2(s.listOne, (h, m) => (C(), R(r, {
3164
3175
  class: "bins",
3165
3176
  span: l.binColumns
3166
3177
  }, {
3167
3178
  default: T(() => [
3168
3179
  Q("h4", null, s2(e.content.bins[m].header), 1),
3169
- D(r, {
3180
+ D(n, {
3170
3181
  class: K(["dropBins el-row", e.content.bins[m].class]),
3171
3182
  "data-index": m,
3172
3183
  list: s.listOne[m],
@@ -3287,7 +3298,7 @@ const zh = /* @__PURE__ */ e2(uh, [["render", Lh]]), Mh = "data:image/svg+xml,%3
3287
3298
  (C(), M("button", {
3288
3299
  key: a.type,
3289
3300
  class: K([t.value.tool === a.type ? "active" : "", `vp-tool-${a.type}`]),
3290
- onClick: (n) => e("set-tool", a.type),
3301
+ onClick: (r) => e("set-tool", a.type),
3291
3302
  title: a.type,
3292
3303
  innerHTML: a.icon
3293
3304
  }, null, 10, yh))
@@ -3354,8 +3365,8 @@ function F4({ history: A, tools: c, activeShape: e, includeActiveShape: t }) {
3354
3365
  return { simplifiedHistory: G(() => {
3355
3366
  const s = e != null && e.value ? [...A.value, e.value] : [...A.value];
3356
3367
  return c.value.reduce((l, a) => {
3357
- var n;
3358
- return ((n = a.simplifyHistory) == null ? void 0 : n.call(a, l, c.value)) ?? l;
3368
+ var r;
3369
+ return ((r = a.simplifyHistory) == null ? void 0 : r.call(a, l, c.value)) ?? l;
3359
3370
  }, s).filter((l) => {
3360
3371
  var a;
3361
3372
  return t || l.id !== ((a = e == null ? void 0 : e.value) == null ? void 0 : a.id);
@@ -3385,7 +3396,7 @@ const Kh = ["viewBox", "id"], Oh = /* @__PURE__ */ F1({
3385
3396
  return e.tools.find((f) => f.type === i);
3386
3397
  }
3387
3398
  const a = G(() => e.tools.map((i) => i.svgStyle ? typeof i.svgStyle == "function" ? i.svgStyle({ svgId: s.value }) : H2(i.svgStyle) : "").join(`
3388
- `)), { simplifiedHistory: n } = F4({ ...P4(e), includeActiveShape: !1 }), r = G(
3399
+ `)), { simplifiedHistory: r } = F4({ ...P4(e), includeActiveShape: !1 }), n = G(
3389
3400
  () => e.tools.filter((i) => i.ToolSvgComponent && (i.ToolSvgComponent.layer ?? 0) <= 0).sort((i, f) => {
3390
3401
  var u, h;
3391
3402
  return (((u = i.ToolSvgComponent) == null ? void 0 : u.layer) ?? 0) - (((h = f.ToolSvgComponent) == null ? void 0 : h.layer) ?? 0);
@@ -3406,7 +3417,7 @@ const Kh = ["viewBox", "id"], Oh = /* @__PURE__ */ F1({
3406
3417
  xmlns: "http://www.w3.org/2000/svg",
3407
3418
  class: "vp-image"
3408
3419
  }, [
3409
- (C(!0), M(O, null, l2(r.value, (h) => (C(), R(W0(h.ToolSvgComponent), {
3420
+ (C(!0), M(O, null, l2(n.value, (h) => (C(), R(W0(h.ToolSvgComponent), {
3410
3421
  key: h.type,
3411
3422
  history: i.history,
3412
3423
  tools: i.tools,
@@ -3414,7 +3425,7 @@ const Kh = ["viewBox", "id"], Oh = /* @__PURE__ */ F1({
3414
3425
  width: i.width,
3415
3426
  height: i.height
3416
3427
  }, null, 8, ["history", "tools", "activeShape", "width", "height"]))), 128)),
3417
- (C(!0), M(O, null, l2(H2(n), (h) => {
3428
+ (C(!0), M(O, null, l2(H2(r), (h) => {
3418
3429
  var m, p, B;
3419
3430
  return C(), R(W0((m = l(h.type)) == null ? void 0 : m.ShapeSvgComponent), {
3420
3431
  key: h.id + h.id === ((p = i.activeShape) == null ? void 0 : p.id),
@@ -3467,10 +3478,10 @@ function Qc(A, c = {}) {
3467
3478
  function xc({ snapAngles: A, posStart: c, x: e, y: t }) {
3468
3479
  if (!(A != null && A.value))
3469
3480
  return { x: e, y: t };
3470
- const s = e - c.x, l = t - c.y, a = Math.sqrt(Math.pow(s, 2) + Math.pow(l, 2)), n = Math.atan2(l, s), r = A.value.map((o) => (180 - o) * Math.PI / 180).map((o) => ({ angle: o, diff: Rh(n, o) })).sort((o, i) => o.diff - i.diff)[0].angle;
3481
+ const s = e - c.x, l = t - c.y, a = Math.sqrt(Math.pow(s, 2) + Math.pow(l, 2)), r = Math.atan2(l, s), n = A.value.map((o) => (180 - o) * Math.PI / 180).map((o) => ({ angle: o, diff: Rh(r, o) })).sort((o, i) => o.diff - i.diff)[0].angle;
3471
3482
  return {
3472
- x: c.x + a * Math.cos(r),
3473
- y: c.y + a * Math.sin(r)
3483
+ x: c.x + a * Math.cos(n),
3484
+ y: c.y + a * Math.sin(n)
3474
3485
  };
3475
3486
  }
3476
3487
  function Rh(A, c) {
@@ -3545,19 +3556,19 @@ function g2(...A) {
3545
3556
  Array.isArray(e) || (e = [e]), Array.isArray(t) || (t = [t]);
3546
3557
  const l = [], a = () => {
3547
3558
  l.forEach((i) => i()), l.length = 0;
3548
- }, n = (i, f, u, h) => (i.addEventListener(f, u, h), () => i.removeEventListener(f, u, h)), r = D1(
3559
+ }, r = (i, f, u, h) => (i.addEventListener(f, u, h), () => i.removeEventListener(f, u, h)), n = D1(
3549
3560
  () => [k1(c), E1(s)],
3550
3561
  ([i, f]) => {
3551
3562
  if (a(), !i)
3552
3563
  return;
3553
3564
  const u = Wh(f) ? { ...f } : f;
3554
3565
  l.push(
3555
- ...e.flatMap((h) => t.map((m) => n(i, h, m, u)))
3566
+ ...e.flatMap((h) => t.map((m) => r(i, h, m, u)))
3556
3567
  );
3557
3568
  },
3558
3569
  { immediate: !0, flush: "post" }
3559
3570
  ), o = () => {
3560
- r(), a();
3571
+ n(), a();
3561
3572
  };
3562
3573
  return Y6(o), o;
3563
3574
  }
@@ -3574,19 +3585,19 @@ function yc(A) {
3574
3585
  function bc(A, c, e = {}) {
3575
3586
  const { window: t = K1, ...s } = e;
3576
3587
  let l;
3577
- const a = yc(() => t && "MutationObserver" in t), n = () => {
3588
+ const a = yc(() => t && "MutationObserver" in t), r = () => {
3578
3589
  l && (l.disconnect(), l = void 0);
3579
- }, r = G(() => {
3590
+ }, n = G(() => {
3580
3591
  const u = E1(A), h = (Array.isArray(u) ? u : [u]).map(k1).filter(Gh);
3581
3592
  return new Set(h);
3582
3593
  }), o = D1(
3583
- () => r.value,
3594
+ () => n.value,
3584
3595
  (u) => {
3585
- n(), a.value && u.size && (l = new MutationObserver(c), u.forEach((h) => l.observe(h, s)));
3596
+ r(), a.value && u.size && (l = new MutationObserver(c), u.forEach((h) => l.observe(h, s)));
3586
3597
  },
3587
3598
  { immediate: !0, flush: "post" }
3588
3599
  ), i = () => l == null ? void 0 : l.takeRecords(), f = () => {
3589
- n(), o();
3600
+ r(), o();
3590
3601
  };
3591
3602
  return Y6(f), {
3592
3603
  isSupported: a,
@@ -3607,29 +3618,29 @@ function Zh(A = {}) {
3607
3618
  for (; i != null && i.shadowRoot; )
3608
3619
  i = (o = i == null ? void 0 : i.shadowRoot) == null ? void 0 : o.activeElement;
3609
3620
  return i;
3610
- }, n = $(), r = () => {
3611
- n.value = a();
3621
+ }, r = $(), n = () => {
3622
+ r.value = a();
3612
3623
  };
3613
3624
  return e && (g2(e, "blur", (o) => {
3614
- o.relatedTarget === null && r();
3615
- }, !0), g2(e, "focus", r, !0)), s && bc(l, (o) => {
3625
+ o.relatedTarget === null && n();
3626
+ }, !0), g2(e, "focus", n, !0)), s && bc(l, (o) => {
3616
3627
  o.filter((i) => i.removedNodes.length).map((i) => Array.from(i.removedNodes)).flat().forEach((i) => {
3617
- i === n.value && r();
3628
+ i === r.value && n();
3618
3629
  });
3619
3630
  }, {
3620
3631
  childList: !0,
3621
3632
  subtree: !0
3622
- }), r(), n;
3633
+ }), n(), r;
3623
3634
  }
3624
3635
  function Ap(A, c, e = {}) {
3625
3636
  const { window: t = K1, ...s } = e;
3626
3637
  let l;
3627
- const a = yc(() => t && "ResizeObserver" in t), n = () => {
3638
+ const a = yc(() => t && "ResizeObserver" in t), r = () => {
3628
3639
  l && (l.disconnect(), l = void 0);
3629
- }, r = G(() => Array.isArray(A) ? A.map((f) => k1(f)) : [k1(A)]), o = D1(
3630
- r,
3640
+ }, n = G(() => Array.isArray(A) ? A.map((f) => k1(f)) : [k1(A)]), o = D1(
3641
+ n,
3631
3642
  (f) => {
3632
- if (n(), a.value && t) {
3643
+ if (r(), a.value && t) {
3633
3644
  l = new ResizeObserver(c);
3634
3645
  for (const u of f)
3635
3646
  u && l.observe(u, s);
@@ -3637,7 +3648,7 @@ function Ap(A, c, e = {}) {
3637
3648
  },
3638
3649
  { immediate: !0, flush: "post" }
3639
3650
  ), i = () => {
3640
- n(), o();
3651
+ r(), o();
3641
3652
  };
3642
3653
  return Y6(i), {
3643
3654
  isSupported: a,
@@ -3650,15 +3661,15 @@ function cp(A, c = {}) {
3650
3661
  windowResize: t = !0,
3651
3662
  windowScroll: s = !0,
3652
3663
  immediate: l = !0
3653
- } = c, a = $(0), n = $(0), r = $(0), o = $(0), i = $(0), f = $(0), u = $(0), h = $(0);
3664
+ } = c, a = $(0), r = $(0), n = $(0), o = $(0), i = $(0), f = $(0), u = $(0), h = $(0);
3654
3665
  function m() {
3655
3666
  const p = k1(A);
3656
3667
  if (!p) {
3657
- e && (a.value = 0, n.value = 0, r.value = 0, o.value = 0, i.value = 0, f.value = 0, u.value = 0, h.value = 0);
3668
+ e && (a.value = 0, r.value = 0, n.value = 0, o.value = 0, i.value = 0, f.value = 0, u.value = 0, h.value = 0);
3658
3669
  return;
3659
3670
  }
3660
3671
  const B = p.getBoundingClientRect();
3661
- a.value = B.height, n.value = B.bottom, r.value = B.left, o.value = B.right, i.value = B.top, f.value = B.width, u.value = B.x, h.value = B.y;
3672
+ a.value = B.height, r.value = B.bottom, n.value = B.left, o.value = B.right, i.value = B.top, f.value = B.width, u.value = B.x, h.value = B.y;
3662
3673
  }
3663
3674
  return Ap(A, m), D1(() => k1(A), (p) => !p && m()), bc(A, m, {
3664
3675
  attributeFilter: ["style", "class"]
@@ -3666,8 +3677,8 @@ function cp(A, c = {}) {
3666
3677
  l && m();
3667
3678
  }), {
3668
3679
  height: a,
3669
- bottom: n,
3670
- left: r,
3680
+ bottom: r,
3681
+ left: n,
3671
3682
  right: o,
3672
3683
  top: i,
3673
3684
  width: f,
@@ -3693,14 +3704,14 @@ function tp(A = {}) {
3693
3704
  aliasMap: t = ep,
3694
3705
  passive: s = !0,
3695
3706
  onEventFired: l = Fc
3696
- } = A, a = L0(/* @__PURE__ */ new Set()), n = {
3707
+ } = A, a = L0(/* @__PURE__ */ new Set()), r = {
3697
3708
  toJSON() {
3698
3709
  return {};
3699
3710
  },
3700
3711
  current: a
3701
- }, r = c ? L0(n) : n, o = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
3712
+ }, n = c ? L0(r) : r, o = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
3702
3713
  function f(p, B) {
3703
- p in r && (c ? r[p] = B : r[p].value = B);
3714
+ p in n && (c ? n[p] = B : n[p].value = B);
3704
3715
  }
3705
3716
  function u() {
3706
3717
  a.clear();
@@ -3719,17 +3730,17 @@ function tp(A = {}) {
3719
3730
  }
3720
3731
  g2(e, "keydown", (p) => (h(p, !0), l(p)), { passive: s }), g2(e, "keyup", (p) => (h(p, !1), l(p)), { passive: s }), g2("blur", u, { passive: !0 }), g2("focus", u, { passive: !0 });
3721
3732
  const m = new Proxy(
3722
- r,
3733
+ n,
3723
3734
  {
3724
3735
  get(p, B, g) {
3725
3736
  if (typeof B != "string")
3726
3737
  return Reflect.get(p, B, g);
3727
- if (B = B.toLowerCase(), B in t && (B = t[B]), !(B in r))
3738
+ if (B = B.toLowerCase(), B in t && (B = t[B]), !(B in n))
3728
3739
  if (/[+_-]/.test(B)) {
3729
3740
  const L = B.split(/[+_-]/g).map((w) => w.trim());
3730
- r[B] = G(() => L.every((w) => E1(m[w])));
3741
+ n[B] = G(() => L.every((w) => E1(m[w])));
3731
3742
  } else
3732
- r[B] = $(!1);
3743
+ n[B] = $(!1);
3733
3744
  const d = Reflect.get(p, B, g);
3734
3745
  return c ? E1(d) : d;
3735
3746
  }
@@ -3744,20 +3755,20 @@ function sp(A = {}) {
3744
3755
  capture: t = !1,
3745
3756
  initialValue: s = !1,
3746
3757
  window: l = K1
3747
- } = A, a = $(s), n = $(null);
3758
+ } = A, a = $(s), r = $(null);
3748
3759
  if (!l)
3749
3760
  return {
3750
3761
  pressed: a,
3751
- sourceType: n
3762
+ sourceType: r
3752
3763
  };
3753
- const r = (f) => () => {
3754
- a.value = !0, n.value = f;
3764
+ const n = (f) => () => {
3765
+ a.value = !0, r.value = f;
3755
3766
  }, o = () => {
3756
- a.value = !1, n.value = null;
3767
+ a.value = !1, r.value = null;
3757
3768
  }, i = G(() => k1(A.target) || l);
3758
- return g2(i, "mousedown", r("mouse"), { passive: !0, capture: t }), g2(l, "mouseleave", o, { passive: !0, capture: t }), g2(l, "mouseup", o, { passive: !0, capture: t }), e && (g2(i, "dragstart", r("mouse"), { passive: !0, capture: t }), g2(l, "drop", o, { passive: !0, capture: t }), g2(l, "dragend", o, { passive: !0, capture: t })), c && (g2(i, "touchstart", r("touch"), { passive: !0, capture: t }), g2(l, "touchend", o, { passive: !0, capture: t }), g2(l, "touchcancel", o, { passive: !0, capture: t })), {
3769
+ return g2(i, "mousedown", n("mouse"), { passive: !0, capture: t }), g2(l, "mouseleave", o, { passive: !0, capture: t }), g2(l, "mouseup", o, { passive: !0, capture: t }), e && (g2(i, "dragstart", n("mouse"), { passive: !0, capture: t }), g2(l, "drop", o, { passive: !0, capture: t }), g2(l, "dragend", o, { passive: !0, capture: t })), c && (g2(i, "touchstart", n("touch"), { passive: !0, capture: t }), g2(l, "touchend", o, { passive: !0, capture: t }), g2(l, "touchcancel", o, { passive: !0, capture: t })), {
3759
3770
  pressed: a,
3760
- sourceType: n
3771
+ sourceType: r
3761
3772
  };
3762
3773
  }
3763
3774
  const Uc = {
@@ -3799,7 +3810,7 @@ function np({
3799
3810
  height: l,
3800
3811
  snapAngles: a
3801
3812
  }) {
3802
- const { x: n, y: r, pressure: o } = ap(), { pressed: i, sourceType: f } = sp(), {
3813
+ const { x: r, y: n, pressure: o } = ap(), { pressed: i, sourceType: f } = sp(), {
3803
3814
  top: u,
3804
3815
  left: h,
3805
3816
  right: m,
@@ -3815,17 +3826,17 @@ function np({
3815
3826
  }), S = G(() => xc({
3816
3827
  snapAngles: a,
3817
3828
  posStart: w,
3818
- x: Math.round((n.value - h.value) * s.value / B.value),
3819
- y: Math.round((r.value - u.value) * l.value / g.value)
3829
+ x: Math.round((r.value - h.value) * s.value / B.value),
3830
+ y: Math.round((n.value - u.value) * l.value / g.value)
3820
3831
  })), E = G(() => S.value.x), y = G(() => S.value.y), N = G(() => Math.max(0, Math.min(w.x, E.value))), X = G(() => Math.max(0, Math.min(w.y, y.value))), j = G(() => Math.min(s.value, Math.max(w.x, E.value))), _ = G(() => Math.min(l.value, Math.max(w.y, y.value))), Y = G(
3821
- () => n.value >= h.value && n.value <= m.value && r.value >= u.value && r.value <= p.value
3832
+ () => r.value >= h.value && r.value <= m.value && n.value >= u.value && n.value <= p.value
3822
3833
  ), z2 = G(
3823
- () => Math.floor(n.value) !== z.x || Math.floor(r.value) !== z.y
3834
+ () => Math.floor(r.value) !== z.x || Math.floor(n.value) !== z.y
3824
3835
  );
3825
3836
  return Oo(() => {
3826
- const u2 = !L.value && n.value === z.x && r.value === z.y && (h.value !== z.left || u.value !== z.top);
3837
+ const u2 = !L.value && r.value === z.x && n.value === z.y && (h.value !== z.left || u.value !== z.top);
3827
3838
  let V = o.value;
3828
- o.value === 0 && i.value && f.value === "touch" && (V = 0.5), V && !L.value && Y.value && z2.value && !x3 && !u2 ? (d(), L.value = !0, x3 = !0, w.x = E.value, w.y = y.value, v.x = E.value, v.y = y.value, c == null || c()) : V && L.value ? (v.x = E.value, v.y = y.value, e == null || e()) : !V && L.value && (L.value = !1, x3 = !1, t == null || t()), z.x = Math.floor(n.value), z.y = Math.floor(r.value), z.left = Math.floor(h.value), z.top = Math.floor(u.value);
3839
+ o.value === 0 && i.value && f.value === "touch" && (V = 0.5), V && !L.value && Y.value && z2.value && !x3 && !u2 ? (d(), L.value = !0, x3 = !0, w.x = E.value, w.y = y.value, v.x = E.value, v.y = y.value, c == null || c()) : V && L.value ? (v.x = E.value, v.y = y.value, e == null || e()) : !V && L.value && (L.value = !1, x3 = !1, t == null || t()), z.x = Math.floor(r.value), z.y = Math.floor(n.value), z.left = Math.floor(h.value), z.top = Math.floor(u.value);
3829
3840
  }), {
3830
3841
  x: E,
3831
3842
  y,
@@ -3843,8 +3854,8 @@ function np({
3843
3854
  posEnd: v,
3844
3855
  isDrawing: L,
3845
3856
  isInside: Y,
3846
- absoluteX: n,
3847
- absoluteY: r,
3857
+ absoluteX: r,
3858
+ absoluteY: n,
3848
3859
  isMoving: z2
3849
3860
  };
3850
3861
  }
@@ -3862,7 +3873,7 @@ function Sc() {
3862
3873
  };
3863
3874
  }
3864
3875
  function rp({ vpImage: A, tools: c, history: e, settings: t, width: s, height: l, emit: a }) {
3865
- const n = $([]), r = $(), o = $();
3876
+ const r = $([]), n = $(), o = $();
3866
3877
  function i() {
3867
3878
  return c == null ? void 0 : c.find((P) => P.type === (o.value ?? t.value.tool));
3868
3879
  }
@@ -3873,8 +3884,8 @@ function rp({ vpImage: A, tools: c, history: e, settings: t, width: s, height: l
3873
3884
  var P;
3874
3885
  return {
3875
3886
  settings: t.value,
3876
- activeShape: r.value,
3877
- id: ((P = r.value) == null ? void 0 : P.id) ?? q6(),
3887
+ activeShape: n.value,
3888
+ id: ((P = n.value) == null ? void 0 : P.id) ?? q6(),
3878
3889
  isDrawing: y.value,
3879
3890
  tools: c,
3880
3891
  posStart: S,
@@ -3917,25 +3928,25 @@ function rp({ vpImage: A, tools: c, history: e, settings: t, width: s, height: l
3917
3928
  snapAngles: f,
3918
3929
  onDrawStart() {
3919
3930
  var P, Z, p2, k2, d2, I2;
3920
- o.value = (k2 = (p2 = (Z = (P = document.elementsFromPoint(N.value, X.value)) == null ? void 0 : P[0]) == null ? void 0 : Z.getAttribute("class")) == null ? void 0 : p2.split(" ").find((b2) => b2.startsWith("use-tool-"))) == null ? void 0 : k2.substring(9), r.value = ((I2 = (d2 = i()) == null ? void 0 : d2.onDrawStart) == null ? void 0 : I2.call(d2, u.value)) ?? r.value, a == null || a("drawStart", u.value), a2(V);
3931
+ o.value = (k2 = (p2 = (Z = (P = document.elementsFromPoint(N.value, X.value)) == null ? void 0 : P[0]) == null ? void 0 : Z.getAttribute("class")) == null ? void 0 : p2.split(" ").find((b2) => b2.startsWith("use-tool-"))) == null ? void 0 : k2.substring(9), n.value = ((I2 = (d2 = i()) == null ? void 0 : d2.onDrawStart) == null ? void 0 : I2.call(d2, u.value)) ?? n.value, a == null || a("drawStart", u.value), a2(V);
3921
3932
  },
3922
3933
  onDraw() {
3923
3934
  var P, Z;
3924
- r.value = ((Z = (P = i()) == null ? void 0 : P.onDraw) == null ? void 0 : Z.call(P, u.value)) ?? r.value, a == null || a("draw", u.value), a2(V);
3935
+ n.value = ((Z = (P = i()) == null ? void 0 : P.onDraw) == null ? void 0 : Z.call(P, u.value)) ?? n.value, a == null || a("draw", u.value), a2(V);
3925
3936
  },
3926
3937
  async onDrawEnd() {
3927
3938
  var P, Z, p2;
3928
- r.value = (P = i()) != null && P.onDrawEnd ? await ((p2 = (Z = i()) == null ? void 0 : Z.onDrawEnd) == null ? void 0 : p2.call(Z, u.value)) : r.value, o.value = void 0, a == null || a("drawEnd", u.value), a2(V), r.value && (e.value.push(r.value), n.value = [], r.value = void 0);
3939
+ n.value = (P = i()) != null && P.onDrawEnd ? await ((p2 = (Z = i()) == null ? void 0 : Z.onDrawEnd) == null ? void 0 : p2.call(Z, u.value)) : n.value, o.value = void 0, a == null || a("drawEnd", u.value), a2(V), n.value && (e.value.push(n.value), r.value = [], n.value = void 0);
3929
3940
  }
3930
3941
  });
3931
3942
  function j(P) {
3932
3943
  t.value.tool = P, a2(V);
3933
3944
  }
3934
3945
  function _() {
3935
- e.value.length && (n.value.push(...e.value.slice(-1)), e.value = e.value.slice(0, -1)), a2(V);
3946
+ e.value.length && (r.value.push(...e.value.slice(-1)), e.value = e.value.slice(0, -1)), a2(V);
3936
3947
  }
3937
3948
  function Y() {
3938
- n.value.length && (e.value.push(...n.value.slice(-1)), n.value = n.value.slice(0, -1)), a2(V);
3949
+ r.value.length && (e.value.push(...r.value.slice(-1)), r.value = r.value.slice(0, -1)), a2(V);
3939
3950
  }
3940
3951
  function z2() {
3941
3952
  const P = A.value.$refs.svg;
@@ -3944,7 +3955,7 @@ function rp({ vpImage: A, tools: c, history: e, settings: t, width: s, height: l
3944
3955
  a == null || a("save", { svg: P, tools: c, history: e.value }), a2(V);
3945
3956
  }
3946
3957
  async function u2() {
3947
- n.value = e.value.reverse(), e.value = [];
3958
+ r.value = e.value.reverse(), e.value = [];
3948
3959
  const P = await Promise.all(
3949
3960
  c.filter((Z) => "onInitialize" in Z).flatMap(async (Z) => {
3950
3961
  var p2;
@@ -3955,7 +3966,7 @@ function rp({ vpImage: A, tools: c, history: e, settings: t, width: s, height: l
3955
3966
  }
3956
3967
  const V = {
3957
3968
  settings: t,
3958
- activeShape: r,
3969
+ activeShape: n,
3959
3970
  setTool: j,
3960
3971
  undo: _,
3961
3972
  redo: Y,
@@ -3995,10 +4006,10 @@ const Hc = /* @__PURE__ */ F1({
3995
4006
  }),
3996
4007
  emits: /* @__PURE__ */ Q4(["save", "drawStart", "draw", "drawEnd", "reset"], ["update:settings", "update:history"]),
3997
4008
  setup(A, { emit: c }) {
3998
- const e = c, t = A6(A, "settings"), s = A, l = $(s.width), a = $(s.height), n = A6(A, "history"), r = $(), { activeShape: o, setTool: i, undo: f, redo: u, save: h, reset: m } = rp({
3999
- vpImage: r,
4009
+ const e = c, t = A6(A, "settings"), s = A, l = $(s.width), a = $(s.height), r = A6(A, "history"), n = $(), { activeShape: o, setTool: i, undo: f, redo: u, save: h, reset: m } = rp({
4010
+ vpImage: n,
4000
4011
  tools: s.tools,
4001
- history: x4(n),
4012
+ history: x4(r),
4002
4013
  settings: x4(t),
4003
4014
  width: l,
4004
4015
  height: a,
@@ -4006,16 +4017,16 @@ const Hc = /* @__PURE__ */ F1({
4006
4017
  });
4007
4018
  return V6(() => {
4008
4019
  var p;
4009
- (p = n.value) != null && p.length || m();
4020
+ (p = r.value) != null && p.length || m();
4010
4021
  }), (p, B) => (C(), M("div", {
4011
4022
  class: K(["vue-paint vp-editor", `active-tool-${t.value.tool}`])
4012
4023
  }, [
4013
4024
  D(Oh, {
4014
4025
  ref_key: "vpImage",
4015
- ref: r,
4026
+ ref: n,
4016
4027
  tools: p.tools,
4017
4028
  activeShape: H2(o),
4018
- history: n.value,
4029
+ history: r.value,
4019
4030
  width: l.value,
4020
4031
  height: a.value
4021
4032
  }, null, 8, ["tools", "activeShape", "history", "width", "height"]),
@@ -4072,17 +4083,17 @@ const ip = 1e-12, TA = 112e-18, op = (A) => A >= -TA && A <= TA, Nc = (A, c) =>
4072
4083
  _A(c, [u, U0(u, d1(l, m)), U0(h, d1(a, m)), h]);
4073
4084
  return;
4074
4085
  }
4075
- const n = gp(A, t, s);
4076
- let r = Math.max(e, e * e), o, i = !0;
4086
+ const r = gp(A, t, s);
4087
+ let n = Math.max(e, e * e), o, i = !0;
4077
4088
  for (let u = 0; u <= 4; u++) {
4078
- const h = hp(A, t, s, n, l, a), m = Cp(A, t, s, h, n);
4089
+ const h = hp(A, t, s, r, l, a), m = Cp(A, t, s, h, r);
4079
4090
  if (m.error < e && i) {
4080
4091
  _A(c, h);
4081
4092
  return;
4082
4093
  }
4083
- if (o = m.index, m.error >= r)
4094
+ if (o = m.index, m.error >= n)
4084
4095
  break;
4085
- i = pp(A, t, s, n, h), r = m.error;
4096
+ i = pp(A, t, s, r, h), n = m.error;
4086
4097
  }
4087
4098
  const f = G2(A[o - 1], A[o + 1]);
4088
4099
  c6(A, c, e, t, o, l, f), c6(A, c, e, o, s, up(f), a);
@@ -4093,32 +4104,32 @@ const ip = 1e-12, TA = 112e-18, op = (A) => A >= -TA && A <= TA, Nc = (A, c) =>
4093
4104
  const a = (
4094
4105
  /*#=*/
4095
4106
  ip
4096
- ), n = Math.abs, r = A[c], o = A[e], i = [
4107
+ ), r = Math.abs, n = A[c], o = A[e], i = [
4097
4108
  [0, 0],
4098
4109
  [0, 0]
4099
4110
  ], f = [0, 0];
4100
4111
  for (let L = 0, w = e - c + 1; L < w; L++) {
4101
- const v = t[L], z = 1 - v, S = 3 * v * z, E = z * z * z, y = S * z, N = S * v, X = v * v * v, j = d1(s, y), _ = d1(l, N), Y = G2(G2(A[c + L], I1(r, E + y)), I1(o, N + X));
4112
+ const v = t[L], z = 1 - v, S = 3 * v * z, E = z * z * z, y = S * z, N = S * v, X = v * v * v, j = d1(s, y), _ = d1(l, N), Y = G2(G2(A[c + L], I1(n, E + y)), I1(o, N + X));
4102
4113
  i[0][0] += J2(j, j), i[0][1] += J2(j, _), i[1][0] = i[0][1], i[1][1] += J2(_, _), f[0] += J2(j, Y), f[1] += J2(_, Y);
4103
4114
  }
4104
4115
  const u = i[0][0] * i[1][1] - i[1][0] * i[0][1];
4105
4116
  let h, m;
4106
- if (n(u) > a) {
4117
+ if (r(u) > a) {
4107
4118
  const L = i[0][0] * f[1] - i[1][0] * f[0];
4108
4119
  h = (f[0] * i[1][1] - f[1] * i[0][1]) / u, m = L / u;
4109
4120
  } else {
4110
4121
  const L = i[0][0] + i[0][1], w = i[1][0] + i[1][1];
4111
- h = m = n(L) > a ? f[0] / L : n(w) > a ? f[1] / w : 0;
4122
+ h = m = r(L) > a ? f[0] / L : r(w) > a ? f[1] / w : 0;
4112
4123
  }
4113
- const p = J6(o, r), B = a * p;
4124
+ const p = J6(o, n), B = a * p;
4114
4125
  let g, d;
4115
4126
  if (h < B || m < B)
4116
4127
  h = m = p / 3;
4117
4128
  else {
4118
- const L = G2(o, r);
4129
+ const L = G2(o, n);
4119
4130
  g = d1(s, h), d = d1(l, m), J2(g, L) - J2(d, L) > p * p && (h = m = p / 3, g = d = null);
4120
4131
  }
4121
- return [r, U0(r, g || d1(s, h)), U0(o, d || d1(l, m)), o];
4132
+ return [n, U0(n, g || d1(s, h)), U0(o, d || d1(l, m)), o];
4122
4133
  }, pp = (A, c, e, t, s) => {
4123
4134
  for (let l = c; l <= e; l++)
4124
4135
  t[l - c] = dp(s, A[l], t[l - c]);
@@ -4132,8 +4143,8 @@ const ip = 1e-12, TA = 112e-18, op = (A) => A >= -TA && A <= TA, Nc = (A, c) =>
4132
4143
  t[i] = I1(G2(A[i + 1], A[i]), 3);
4133
4144
  for (let i = 0; i <= 1; i++)
4134
4145
  s[i] = I1(G2(t[i + 1], t[i]), 2);
4135
- const l = C4(3, A, e), a = C4(2, t, e), n = C4(1, s, e), r = G2(l, c), o = J2(a, a) + J2(r, n);
4136
- return op(o) ? e : e - J2(r, a) / o;
4146
+ const l = C4(3, A, e), a = C4(2, t, e), r = C4(1, s, e), n = G2(l, c), o = J2(a, a) + J2(n, r);
4147
+ return op(o) ? e : e - J2(n, a) / o;
4137
4148
  }, C4 = (A, c, e) => {
4138
4149
  const t = c.slice();
4139
4150
  for (let s = 1; s <= A; s++)
@@ -4149,9 +4160,9 @@ const ip = 1e-12, TA = 112e-18, op = (A) => A >= -TA && A <= TA, Nc = (A, c) =>
4149
4160
  return t;
4150
4161
  }, Cp = (A, c, e, t, s) => {
4151
4162
  let l = Math.floor((e - c + 1) / 2), a = 0;
4152
- for (let n = c + 1; n < e; n++) {
4153
- const r = C4(3, t, s[n - c]), o = G2(r, A[n]), i = o.x * o.x + o.y * o.y;
4154
- i >= a && (a = i, l = n);
4163
+ for (let r = c + 1; r < e; r++) {
4164
+ const n = C4(3, t, s[r - c]), o = G2(n, A[r]), i = o.x * o.x + o.y * o.y;
4165
+ i >= a && (a = i, l = r);
4155
4166
  }
4156
4167
  return {
4157
4168
  error: a,
@@ -4159,23 +4170,23 @@ const ip = 1e-12, TA = 112e-18, op = (A) => A >= -TA && A <= TA, Nc = (A, c) =>
4159
4170
  };
4160
4171
  }, Bp = (A, c, e) => {
4161
4172
  const t = A.length, s = 10 ** e, l = e < 16 ? (m) => Math.round(m * s) / s : (m) => m, a = (m, p) => l(m) + "," + l(p);
4162
- let n = !0, r, o, i, f;
4173
+ let r = !0, n, o, i, f;
4163
4174
  const u = [], h = (m, p) => {
4164
4175
  var B, g, d, L;
4165
4176
  const w = m.p.x, v = m.p.y;
4166
- if (n)
4167
- u.push("M" + a(w, v)), n = !1;
4177
+ if (r)
4178
+ u.push("M" + a(w, v)), r = !1;
4168
4179
  else {
4169
4180
  const z = w + (((B = m.i) == null ? void 0 : B.x) ?? 0), S = v + (((g = m.i) == null ? void 0 : g.y) ?? 0);
4170
- if (z === w && S === v && i === r && f === o) {
4181
+ if (z === w && S === v && i === n && f === o) {
4171
4182
  if (!p) {
4172
- const E = w - r, y = v - o;
4183
+ const E = w - n, y = v - o;
4173
4184
  u.push(E === 0 ? "v" + l(y) : y === 0 ? "h" + l(E) : "l" + a(E, y));
4174
4185
  }
4175
4186
  } else
4176
- u.push("c" + a(i - r, f - o) + " " + a(z - r, S - o) + " " + a(w - r, v - o));
4187
+ u.push("c" + a(i - n, f - o) + " " + a(z - n, S - o) + " " + a(w - n, v - o));
4177
4188
  }
4178
- r = w, o = v, i = w + (((d = m.o) == null ? void 0 : d.x) ?? 0), f = v + (((L = m.o) == null ? void 0 : L.y) ?? 0);
4189
+ n = w, o = v, i = w + (((d = m.o) == null ? void 0 : d.x) ?? 0), f = v + (((L = m.o) == null ? void 0 : L.y) ?? 0);
4179
4190
  };
4180
4191
  if (!t)
4181
4192
  return "";
@@ -4185,21 +4196,21 @@ const ip = 1e-12, TA = 112e-18, op = (A) => A >= -TA && A <= TA, Nc = (A, c) =>
4185
4196
  }, DA = (A, c = {}) => A.length === 0 ? "" : Bp(mp(A.map(typeof A[0].x == "number" ? (e) => A0(e.x, e.y) : (e) => A0(e[0], e[1])), c.closed, c.tolerance ?? 2.5), c.closed, c.precision ?? 5);
4186
4197
  function j6() {
4187
4198
  const A = "freehand", c = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 14 14"><path fill="currentColor" fill-rule="evenodd" d="M8.61 2.66c-.227-.198-.817-.365-1.602.129c-2.508 1.58-4.693 4.43-5.432 5.463a.75.75 0 1 1-1.22-.873c.75-1.047 3.078-4.112 5.853-5.86C7.41.763 8.75.795 9.594 1.527c.421.365.684.89.688 1.486c.004.591-.246 1.177-.702 1.698c-1.427 1.632-3.312 3.845-4.104 4.925c-.104.142-.111.25-.102.312c.01.07.047.136.11.183a.411.411 0 0 0 .299.067c.14-.017.36-.094.628-.339c.226-.208.461-.43.703-.657c.745-.701 1.55-1.46 2.356-2.053c.838-.616 1.818-.787 2.561-.333c.371.227.632.59.723 1.024c.09.43.004.878-.213 1.29c-.232.442-.434.76-.615 1.046l-.014.023a10.6 10.6 0 0 0-.485.819a.506.506 0 0 0-.024.415c.024.06.047.089.06.101c.092.007.172-.016.299-.114c.178-.139.377-.374.676-.766a.75.75 0 0 1 1.192.911c-.285.373-.594.764-.948 1.04c-.392.304-.867.489-1.444.413c-.633-.082-1.048-.57-1.231-1.037a2.007 2.007 0 0 1 .09-1.658c.19-.364.37-.647.541-.916l.021-.034c.177-.279.352-.556.555-.942c.085-.162.077-.255.071-.284a.068.068 0 0 0-.036-.051c-.043-.027-.347-.138-.89.262c-.726.533-1.433 1.2-2.16 1.884c-.255.24-.513.483-.775.723c-.923.846-2.047.959-2.838.367c-.77-.576-.981-1.68-.32-2.582c.837-1.142 2.767-3.405 4.185-5.026l.513.448l-.513-.448c.271-.31.332-.555.331-.702a.468.468 0 0 0-.171-.362Zm2.863 8.883l-.003-.002c.002 0 .003.001.003.002" clip-rule="evenodd"/></svg>', e = [];
4188
- function t({ settings: a, id: n, x: r, y: o }) {
4189
- return e.length = 0, e.push([r, o], [r, o]), {
4199
+ function t({ settings: a, id: r, x: n, y: o }) {
4200
+ return e.length = 0, e.push([n, o], [n, o]), {
4190
4201
  type: A,
4191
- id: n,
4192
- x: r,
4202
+ id: r,
4203
+ x: n,
4193
4204
  y: o,
4194
4205
  path: DA(e, { tolerance: 1, precision: 1 }).replace(/^M\d+,\d+/, ""),
4195
4206
  thickness: a.thickness,
4196
4207
  color: a.color
4197
4208
  };
4198
4209
  }
4199
- function s({ settings: a, id: n, x: r, y: o }) {
4200
- return e.push([r, o]), {
4210
+ function s({ settings: a, id: r, x: n, y: o }) {
4211
+ return e.push([n, o]), {
4201
4212
  type: A,
4202
- id: n,
4213
+ id: r,
4203
4214
  x: e[0][0],
4204
4215
  y: e[0][1],
4205
4216
  path: DA(e, { tolerance: 1, precision: 1 }).replace(/^M\d+,\d+/, ""),
@@ -4223,8 +4234,8 @@ function j6() {
4223
4234
  }
4224
4235
  `, handles: [{
4225
4236
  name: "base",
4226
- position: ({ x: a, y: n }) => ({ x: a, y: n }),
4227
- onMove: ({ x: a, y: n }) => ({ x: a, y: n })
4237
+ position: ({ x: a, y: r }) => ({ x: a, y: r }),
4238
+ onMove: ({ x: a, y: r }) => ({ x: a, y: r })
4228
4239
  }] };
4229
4240
  }
4230
4241
  const kc = [
@@ -4278,14 +4289,14 @@ const kc = [
4278
4289
  ];
4279
4290
  function Z6() {
4280
4291
  const A = "line", c = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M21.71 3.29a1 1 0 0 0-1.42 0l-18 18a1 1 0 0 0 0 1.42a1 1 0 0 0 1.42 0l18-18a1 1 0 0 0 0-1.42"/></svg>';
4281
- function e({ settings: s, id: l, posStart: a, x: n, y: r }) {
4292
+ function e({ settings: s, id: l, posStart: a, x: r, y: n }) {
4282
4293
  return {
4283
4294
  type: A,
4284
4295
  id: l,
4285
4296
  x1: a.x,
4286
4297
  y1: a.y,
4287
- x2: n,
4288
- y2: r,
4298
+ x2: r,
4299
+ y2: n,
4289
4300
  thickness: s.thickness,
4290
4301
  color: s.color
4291
4302
  };
@@ -4313,13 +4324,13 @@ function A8() {
4313
4324
  function e(l) {
4314
4325
  return `arrow-${l.color.replace(/[^a-z0-9]/gi, "")}`;
4315
4326
  }
4316
- function t({ id: l, settings: a, posStart: n, x: r, y: o }) {
4327
+ function t({ id: l, settings: a, posStart: r, x: n, y: o }) {
4317
4328
  return {
4318
4329
  type: A,
4319
4330
  id: l,
4320
- x1: n.x,
4321
- y1: n.y,
4322
- x2: r,
4331
+ x1: r.x,
4332
+ y1: r.y,
4333
+ x2: n,
4323
4334
  y2: o,
4324
4335
  thickness: a.thickness,
4325
4336
  color: a.color
@@ -4339,20 +4350,20 @@ function A8() {
4339
4350
  return { type: A, icon: c, onDraw: t, ShapeSvgComponent: s, ToolSvgComponent: {
4340
4351
  props: { history: Array, activeShape: Object, width: Number, height: Number, tools: Array },
4341
4352
  setup(l) {
4342
- const a = G(() => [...l.history, l.activeShape].filter((n) => (n == null ? void 0 : n.type) === "arrow").filter(
4343
- (n, r, o) => o.findIndex((i) => e(i) === e(n)) === r
4344
- ).map((n) => ({
4345
- id: e(n),
4346
- color: n.color
4353
+ const a = G(() => [...l.history, l.activeShape].filter((r) => (r == null ? void 0 : r.type) === "arrow").filter(
4354
+ (r, n, o) => o.findIndex((i) => e(i) === e(r)) === n
4355
+ ).map((r) => ({
4356
+ id: e(r),
4357
+ color: r.color
4347
4358
  })));
4348
4359
  return () => S2(
4349
4360
  "defs",
4350
4361
  a.value.map(
4351
- (n) => S2(
4362
+ (r) => S2(
4352
4363
  "marker",
4353
4364
  {
4354
- id: n.id,
4355
- key: n.id,
4365
+ id: r.id,
4366
+ key: r.id,
4356
4367
  viewBox: "0 0 10 10",
4357
4368
  refX: "2.5",
4358
4369
  refY: "2.5",
@@ -4363,7 +4374,7 @@ function A8() {
4363
4374
  [
4364
4375
  S2("polygon", {
4365
4376
  points: "0,5 1.7,2.5 0,0 5,2.5",
4366
- fill: n.color
4377
+ fill: r.color
4367
4378
  })
4368
4379
  ]
4369
4380
  )
@@ -4425,14 +4436,14 @@ const c8 = [
4425
4436
  ];
4426
4437
  function e8() {
4427
4438
  const A = "rectangle", c = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 256 256"><path fill="currentColor" d="M216 40H40a16 16 0 0 0-16 16v144a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16m0 160H40V56h176z"/></svg>';
4428
- function e({ settings: s, id: l, minX: a, minY: n, maxX: r, maxY: o }) {
4439
+ function e({ settings: s, id: l, minX: a, minY: r, maxX: n, maxY: o }) {
4429
4440
  return {
4430
4441
  type: A,
4431
4442
  id: l,
4432
4443
  x: a,
4433
- y: n,
4434
- width: r - a,
4435
- height: o - n,
4444
+ y: r,
4445
+ width: n - a,
4446
+ height: o - r,
4436
4447
  thickness: s.thickness,
4437
4448
  color: s.color
4438
4449
  };
@@ -4457,28 +4468,28 @@ function e8() {
4457
4468
  }
4458
4469
  function Lp() {
4459
4470
  const A = "crop", c = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M17 23v-4H7q-.825 0-1.412-.587T5 17V7H1V5h4V1h2v16h16v2h-4v4zm0-8V7H9V5h8q.825 0 1.413.588T19 7v8z"/></svg>';
4460
- function e({ id: n, minX: r, minY: o, maxX: i, maxY: f }) {
4471
+ function e({ id: r, minX: n, minY: o, maxX: i, maxY: f }) {
4461
4472
  return {
4462
4473
  type: A,
4463
- id: n,
4464
- x: r,
4474
+ id: r,
4475
+ x: n,
4465
4476
  y: o,
4466
- width: i - r,
4477
+ width: i - n,
4467
4478
  height: f - o
4468
4479
  };
4469
4480
  }
4470
- function t(n) {
4471
- const r = n.filter((o) => o.type === "crop");
4472
- return n.filter((o) => o.type !== "crop" || o.id === r[r.length - 1].id);
4481
+ function t(r) {
4482
+ const n = r.filter((o) => o.type === "crop");
4483
+ return r.filter((o) => o.type !== "crop" || o.id === n[n.length - 1].id);
4473
4484
  }
4474
4485
  const s = {
4475
4486
  props: { history: Array, activeShape: Object, width: Number, height: Number, tools: Array },
4476
- setup(n) {
4477
- const { simplifiedHistory: r } = F4({ ...P4(n), includeActiveShape: !0 }), o = G(() => r.value.find((u) => u.type === "crop")), i = G(() => o.value.width > 0 ? o.value.x : o.value.x + o.value.width), f = G(() => o.value.height > 0 ? o.value.y : o.value.y + o.value.height);
4487
+ setup(r) {
4488
+ const { simplifiedHistory: n } = F4({ ...P4(r), includeActiveShape: !0 }), o = G(() => n.value.find((u) => u.type === "crop")), i = G(() => o.value.width > 0 ? o.value.x : o.value.x + o.value.width), f = G(() => o.value.height > 0 ? o.value.y : o.value.y + o.value.height);
4478
4489
  return () => o.value ? S2("path", {
4479
4490
  class: "overlay",
4480
4491
  id: o.value.id,
4481
- d: `M 0,0 V ${n.height} H ${n.width} V 0 Z
4492
+ d: `M 0,0 V ${r.height} H ${r.width} V 0 Z
4482
4493
  M ${i.value},${f.value} H ${i.value + Math.abs(o.value.width)} V ${f.value + Math.abs(o.value.height)} H ${i.value} Z
4483
4494
  `
4484
4495
  }) : void 0;
@@ -4490,12 +4501,12 @@ function Lp() {
4490
4501
  fill: #020202;
4491
4502
  }
4492
4503
  `;
4493
- function a({ svg: n, history: r, tools: o }) {
4504
+ function a({ svg: r, history: n, tools: o }) {
4494
4505
  var i;
4495
- const { simplifiedHistory: f } = F4({ history: x4(r), tools: x4(o), includeActiveShape: !1 }), u = f.value.find((h) => h.type === "crop");
4506
+ const { simplifiedHistory: f } = F4({ history: x4(n), tools: x4(o), includeActiveShape: !1 }), u = f.value.find((h) => h.type === "crop");
4496
4507
  if (u) {
4497
4508
  const h = u.width > 0 ? u.x : u.x + u.width, m = u.height > 0 ? u.y : u.y + u.height, p = Math.abs(u.width), B = Math.abs(u.height);
4498
- console.log({ crop: u, x: h, y: m, width: p, height: B }), n.setAttribute("width", String(p)), n.setAttribute("height", String(B)), n.setAttribute("viewBox", `${h} ${m} ${p} ${B}`), (i = n.querySelector(".overlay")) == null || i.remove();
4509
+ console.log({ crop: u, x: h, y: m, width: p, height: B }), r.setAttribute("width", String(p)), r.setAttribute("height", String(B)), r.setAttribute("viewBox", `${h} ${m} ${p} ${B}`), (i = r.querySelector(".overlay")) == null || i.remove();
4499
4510
  }
4500
4511
  }
4501
4512
  return { type: A, icon: c, onDraw: e, svgStyle: l, simplifyHistory: t, ToolSvgComponent: s, beforeExport: a, handles: c8, snapAngles: G4 };
@@ -4524,14 +4535,14 @@ function zp({ blob: A, color: c }) {
4524
4535
  const s = {
4525
4536
  props: { history: Array, activeShape: Object, width: Number, height: Number, tools: Array },
4526
4537
  setup(a) {
4527
- const n = G(() => a.history.find(
4528
- (r) => r.type === "background"
4538
+ const r = G(() => a.history.find(
4539
+ (n) => n.type === "background"
4529
4540
  ));
4530
4541
  return () => {
4531
- var r;
4532
- return (r = n.value) != null && r.data ? S2("image", {
4533
- href: n.value.data,
4534
- id: n.value.id,
4542
+ var n;
4543
+ return (n = r.value) != null && n.data ? S2("image", {
4544
+ href: r.value.data,
4545
+ id: r.value.id,
4535
4546
  width: a.width
4536
4547
  }) : void 0;
4537
4548
  };
@@ -4559,7 +4570,7 @@ function t8({
4559
4570
  l.value = await Ic(u);
4560
4571
  }
4561
4572
  }
4562
- function n({ settings: u, id: h, minX: m, minY: p, maxX: B, maxY: g }) {
4573
+ function r({ settings: u, id: h, minX: m, minY: p, maxX: B, maxY: g }) {
4563
4574
  return {
4564
4575
  type: t,
4565
4576
  id: h,
@@ -4572,7 +4583,7 @@ function t8({
4572
4583
  content: ""
4573
4584
  };
4574
4585
  }
4575
- function r({ settings: u, id: h, minX: m, minY: p, maxX: B, maxY: g }) {
4586
+ function n({ settings: u, id: h, minX: m, minY: p, maxX: B, maxY: g }) {
4576
4587
  const d = Object.freeze({
4577
4588
  x: m,
4578
4589
  y: p,
@@ -4657,36 +4668,36 @@ function t8({
4657
4668
  const m = u.querySelector("style");
4658
4669
  !h.some((p) => p.type === "textarea") && m && (m.innerHTML = m.innerHTML.replace(i({ svgId: u.id }), ""));
4659
4670
  }
4660
- return { type: t, icon: s, onInitialize: a, onDraw: n, onDrawEnd: r, ShapeSvgComponent: o, svgStyle: i, handles: c8, snapAngles: G4, beforeExport: f };
4671
+ return { type: t, icon: s, onInitialize: a, onDraw: r, onDrawEnd: n, ShapeSvgComponent: o, svgStyle: i, handles: c8, snapAngles: G4, beforeExport: f };
4661
4672
  }
4662
4673
  function s8() {
4663
4674
  const A = "eraser", c = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="m16.24 3.56l4.95 4.94c.78.79.78 2.05 0 2.84L12 20.53a4.01 4.01 0 0 1-5.66 0L2.81 17c-.78-.79-.78-2.05 0-2.84l10.6-10.6c.79-.78 2.05-.78 2.83 0M4.22 15.58l3.54 3.53c.78.79 2.04.79 2.83 0l3.53-3.53l-4.95-4.95z"/></svg>', e = [];
4664
- function t(r, o) {
4665
- const i = document.elementsFromPoint(r, o), f = i.findIndex((h) => h.classList.contains("vp-image")), u = i.slice(0, f).map((h) => h.id).filter((h) => h && !e.includes(h));
4675
+ function t(n, o) {
4676
+ const i = document.elementsFromPoint(n, o), f = i.findIndex((h) => h.classList.contains("vp-image")), u = i.slice(0, f).map((h) => h.id).filter((h) => h && !e.includes(h));
4666
4677
  e.push(...u);
4667
4678
  }
4668
- function s({ id: r, absoluteX: o, absoluteY: i }) {
4679
+ function s({ id: n, absoluteX: o, absoluteY: i }) {
4669
4680
  return e.length = 0, t(o, i), {
4670
4681
  type: A,
4671
- id: r,
4682
+ id: n,
4672
4683
  targets: structuredClone(e)
4673
4684
  };
4674
4685
  }
4675
- function l({ id: r, absoluteX: o, absoluteY: i }) {
4686
+ function l({ id: n, absoluteX: o, absoluteY: i }) {
4676
4687
  return t(o, i), {
4677
4688
  type: A,
4678
- id: r,
4689
+ id: n,
4679
4690
  targets: structuredClone(e)
4680
4691
  };
4681
4692
  }
4682
- function a({ activeShape: r }) {
4683
- return e.length === 0 ? void 0 : r;
4693
+ function a({ activeShape: n }) {
4694
+ return e.length === 0 ? void 0 : n;
4684
4695
  }
4685
- function n(r) {
4686
- const o = r.filter((i) => i.type === "eraser").flatMap((i) => i.targets);
4687
- return r.filter((i) => i.type !== "eraser" && !o.includes(i.id));
4696
+ function r(n) {
4697
+ const o = n.filter((i) => i.type === "eraser").flatMap((i) => i.targets);
4698
+ return n.filter((i) => i.type !== "eraser" && !o.includes(i.id));
4688
4699
  }
4689
- return { type: A, icon: c, onDrawStart: s, onDraw: l, onDrawEnd: a, simplifyHistory: n };
4700
+ return { type: A, icon: c, onDrawStart: s, onDraw: l, onDrawEnd: a, simplifyHistory: r };
4690
4701
  }
4691
4702
  function l8({
4692
4703
  handlesOnActiveShape: A = !1,
@@ -4708,7 +4719,7 @@ function l8({
4708
4719
  angleSnap: !1
4709
4720
  };
4710
4721
  }
4711
- function n({ id: m, settings: p, posStart: B, x: g, y: d }) {
4722
+ function r({ id: m, settings: p, posStart: B, x: g, y: d }) {
4712
4723
  const L = p.angleSnap;
4713
4724
  p.angleSnap = !1;
4714
4725
  const w = {
@@ -4721,7 +4732,7 @@ function l8({
4721
4732
  };
4722
4733
  return p.angleSnap = L, w;
4723
4734
  }
4724
- function r({ activeShape: m }) {
4735
+ function n({ activeShape: m }) {
4725
4736
  return s.length === 0 ? void 0 : m;
4726
4737
  }
4727
4738
  function o(m, p, B) {
@@ -4794,7 +4805,7 @@ function l8({
4794
4805
  function h({ svg: m }) {
4795
4806
  m.querySelectorAll("circle.handle").forEach((p) => p.remove());
4796
4807
  }
4797
- return { type: e, icon: t, onDrawStart: a, onDraw: n, onDrawEnd: r, simplifyHistory: i, ToolSvgComponent: f, svgStyle: u, beforeExport: h };
4808
+ return { type: e, icon: t, onDrawStart: a, onDraw: r, onDrawEnd: n, simplifyHistory: i, ToolSvgComponent: f, svgStyle: u, beforeExport: h };
4798
4809
  }
4799
4810
  function Mp(...A) {
4800
4811
  return G(() => A.every((c) => E1(c)));
@@ -4819,25 +4830,25 @@ const wp = {
4819
4830
  function a8({ shortcuts: A = wp, angleSnapOnShift: c = !0 } = {}) {
4820
4831
  const e = "keyboard-shortcuts", t = Zh(), s = G(
4821
4832
  () => {
4822
- var r, o;
4823
- return ((r = t.value) == null ? void 0 : r.tagName) !== "INPUT" && ((o = t.value) == null ? void 0 : o.tagName) !== "TEXTAREA";
4833
+ var n, o;
4834
+ return ((n = t.value) == null ? void 0 : n.tagName) !== "INPUT" && ((o = t.value) == null ? void 0 : o.tagName) !== "TEXTAREA";
4824
4835
  }
4825
4836
  ), l = tp({
4826
4837
  passive: !1,
4827
- onEventFired(r) {
4828
- (r.ctrlKey || r.metaKey) && ["s", "z", "y"].includes(r.key) && r.type === "keydown" && r.preventDefault();
4838
+ onEventFired(n) {
4839
+ (n.ctrlKey || n.metaKey) && ["s", "z", "y"].includes(n.key) && n.type === "keydown" && n.preventDefault();
4829
4840
  }
4830
4841
  }), { getActiveEditor: a } = Sc();
4831
- async function n() {
4832
- Object.entries(A).forEach(([r, o]) => {
4833
- KA.includes(r) || (jh(Mp(l[r], s), () => {
4842
+ async function r() {
4843
+ Object.entries(A).forEach(([n, o]) => {
4844
+ KA.includes(n) || (jh(Mp(l[n], s), () => {
4834
4845
  o(a());
4835
- }), KA.push(r));
4846
+ }), KA.push(n));
4836
4847
  }), c && D1(l.shift, () => {
4837
4848
  a().settings.value.angleSnap = l.shift.value;
4838
4849
  });
4839
4850
  }
4840
- return { type: e, onInitialize: n };
4851
+ return { type: e, onInitialize: r };
4841
4852
  }
4842
4853
  const u1 = Math.sqrt(2) * 2, v2 = Math.sqrt(2), vp = [
4843
4854
  {
@@ -4892,21 +4903,21 @@ const u1 = Math.sqrt(2) * 2, v2 = Math.sqrt(2), vp = [
4892
4903
  ];
4893
4904
  function n8({ base: A = "edge" } = {}) {
4894
4905
  const c = "ellipse", e = Math.sqrt(2), t = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6s-8-2.69-8-6s3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8s10-3.58 10-8s-4.5-8-10-8"/></svg>';
4895
- function s({ settings: a, id: n, minX: r, minY: o, maxX: i, maxY: f, posStart: u }) {
4906
+ function s({ settings: a, id: r, minX: n, minY: o, maxX: i, maxY: f, posStart: u }) {
4896
4907
  const h = A === "edge" ? {
4897
- x: r + (i - r) / 2,
4908
+ x: n + (i - n) / 2,
4898
4909
  y: o + (f - o) / 2,
4899
- width: (i - r) * e,
4910
+ width: (i - n) * e,
4900
4911
  height: (f - o) * e
4901
4912
  } : {
4902
4913
  x: u.x,
4903
4914
  y: u.y,
4904
- width: (i - r) * e * 2,
4915
+ width: (i - n) * e * 2,
4905
4916
  height: (f - o) * e * 2
4906
4917
  };
4907
4918
  return {
4908
4919
  type: c,
4909
- id: n,
4920
+ id: r,
4910
4921
  base: A,
4911
4922
  ...h,
4912
4923
  thickness: a.thickness,
@@ -5035,10 +5046,10 @@ function Dc(A) {
5035
5046
  }) : [];
5036
5047
  }
5037
5048
  function Kc(A, c) {
5038
- var e = Dc(A), t = j2(I.und(e[0]) ? 1 : e[0], 0.1, 100), s = j2(I.und(e[1]) ? 100 : e[1], 0.1, 100), l = j2(I.und(e[2]) ? 10 : e[2], 0.1, 100), a = j2(I.und(e[3]) ? 0 : e[3], 0.1, 100), n = Math.sqrt(s / t), r = l / (2 * Math.sqrt(s * t)), o = r < 1 ? n * Math.sqrt(1 - r * r) : 0, i = 1, f = r < 1 ? (r * n + -a) / o : -a + n;
5049
+ var e = Dc(A), t = j2(I.und(e[0]) ? 1 : e[0], 0.1, 100), s = j2(I.und(e[1]) ? 100 : e[1], 0.1, 100), l = j2(I.und(e[2]) ? 10 : e[2], 0.1, 100), a = j2(I.und(e[3]) ? 0 : e[3], 0.1, 100), r = Math.sqrt(s / t), n = l / (2 * Math.sqrt(s * t)), o = n < 1 ? r * Math.sqrt(1 - n * n) : 0, i = 1, f = n < 1 ? (n * r + -a) / o : -a + r;
5039
5050
  function u(m) {
5040
5051
  var p = c ? c * m / 1e3 : m;
5041
- return r < 1 ? p = Math.exp(-p * r * n) * (i * Math.cos(o * p) + f * Math.sin(o * p)) : p = (i + f * p) * Math.exp(-p * n), m === 0 || m === 1 ? m : 1 - p;
5052
+ return n < 1 ? p = Math.exp(-p * n * r) * (i * Math.cos(o * p) + f * Math.sin(o * p)) : p = (i + f * p) * Math.exp(-p * r), m === 0 || m === 1 ? m : 1 - p;
5042
5053
  }
5043
5054
  function h() {
5044
5055
  var m = y4.springs[A];
@@ -5077,14 +5088,14 @@ var yp = function() {
5077
5088
  function a(i, f, u) {
5078
5089
  return 3 * e(f, u) * i * i + 2 * t(f, u) * i + s(f);
5079
5090
  }
5080
- function n(i, f, u, h, m) {
5091
+ function r(i, f, u, h, m) {
5081
5092
  var p, B, g = 0;
5082
5093
  do
5083
5094
  B = f + (u - f) / 2, p = l(B, h, m) - i, p > 0 ? u = B : f = B;
5084
5095
  while (Math.abs(p) > 1e-7 && ++g < 10);
5085
5096
  return B;
5086
5097
  }
5087
- function r(i, f, u, h) {
5098
+ function n(i, f, u, h) {
5088
5099
  for (var m = 0; m < 4; ++m) {
5089
5100
  var p = a(f, u, h);
5090
5101
  if (p === 0)
@@ -5106,7 +5117,7 @@ var yp = function() {
5106
5117
  d += c;
5107
5118
  --L;
5108
5119
  var v = (g - m[L]) / (m[L + 1] - m[L]), z = d + v * c, S = a(z, i, u);
5109
- return S >= 1e-3 ? r(g, z, i, u) : S === 0 ? z : n(g, d, d + c, i, u);
5120
+ return S >= 1e-3 ? n(g, z, i, u) : S === 0 ? z : r(g, d, d + c, i, u);
5110
5121
  }
5111
5122
  return function(g) {
5112
5123
  return i === f && u === h || g === 0 || g === 1 ? g : l(B(g), f, h);
@@ -5149,8 +5160,8 @@ var yp = function() {
5149
5160
  Elastic: function(t, s) {
5150
5161
  t === void 0 && (t = 1), s === void 0 && (s = 0.5);
5151
5162
  var l = j2(t, 1, 10), a = j2(s, 0.1, 2);
5152
- return function(n) {
5153
- return n === 0 || n === 1 ? n : -l * Math.pow(2, 10 * (n - 1)) * Math.sin((n - 1 - a / (Math.PI * 2) * Math.asin(1 / l)) * (Math.PI * 2) / a);
5163
+ return function(r) {
5164
+ return r === 0 || r === 1 ? r : -l * Math.pow(2, 10 * (r - 1)) * Math.sin((r - 1 - a / (Math.PI * 2) * Math.asin(1 / l)) * (Math.PI * 2) / a);
5154
5165
  };
5155
5166
  }
5156
5167
  }, e = ["Quad", "Cubic", "Quart", "Quint"];
@@ -5163,16 +5174,16 @@ var yp = function() {
5163
5174
  }), Object.keys(c).forEach(function(t) {
5164
5175
  var s = c[t];
5165
5176
  A["easeIn" + t] = s, A["easeOut" + t] = function(l, a) {
5166
- return function(n) {
5167
- return 1 - s(l, a)(1 - n);
5177
+ return function(r) {
5178
+ return 1 - s(l, a)(1 - r);
5168
5179
  };
5169
5180
  }, A["easeInOut" + t] = function(l, a) {
5170
- return function(n) {
5171
- return n < 0.5 ? s(l, a)(n * 2) / 2 : 1 - s(l, a)(n * -2 + 2) / 2;
5181
+ return function(r) {
5182
+ return r < 0.5 ? s(l, a)(r * 2) / 2 : 1 - s(l, a)(r * -2 + 2) / 2;
5172
5183
  };
5173
5184
  }, A["easeOutIn" + t] = function(l, a) {
5174
- return function(n) {
5175
- return n < 0.5 ? (1 - s(l, a)(1 - n * 2)) / 2 : (s(l, a)(n * 2 - 1) + 1) / 2;
5185
+ return function(r) {
5186
+ return r < 0.5 ? (1 - s(l, a)(1 - r * 2)) / 2 : (s(l, a)(r * 2 - 1) + 1) / 2;
5176
5187
  };
5177
5188
  };
5178
5189
  }), A;
@@ -5244,8 +5255,8 @@ function bp(A) {
5244
5255
  return c ? "rgba(" + c[1] + ",1)" : A;
5245
5256
  }
5246
5257
  function Up(A) {
5247
- var c = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, e = A.replace(c, function(n, r, o, i) {
5248
- return r + r + o + o + i + i;
5258
+ var c = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, e = A.replace(c, function(r, n, o, i) {
5259
+ return n + n + o + o + i + i;
5249
5260
  }), t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e), s = parseInt(t[1], 16), l = parseInt(t[2], 16), a = parseInt(t[3], 16);
5250
5261
  return "rgba(" + s + "," + l + "," + a + ",1)";
5251
5262
  }
@@ -5254,14 +5265,14 @@ function Sp(A) {
5254
5265
  function a(u, h, m) {
5255
5266
  return m < 0 && (m += 1), m > 1 && (m -= 1), m < 1 / 6 ? u + (h - u) * 6 * m : m < 1 / 2 ? h : m < 2 / 3 ? u + (h - u) * (2 / 3 - m) * 6 : u;
5256
5267
  }
5257
- var n, r, o;
5268
+ var r, n, o;
5258
5269
  if (t == 0)
5259
- n = r = o = s;
5270
+ r = n = o = s;
5260
5271
  else {
5261
5272
  var i = s < 0.5 ? s * (1 + t) : s + t - s * t, f = 2 * s - i;
5262
- n = a(f, i, e + 1 / 3), r = a(f, i, e), o = a(f, i, e - 1 / 3);
5273
+ r = a(f, i, e + 1 / 3), n = a(f, i, e), o = a(f, i, e - 1 / 3);
5263
5274
  }
5264
- return "rgba(" + n * 255 + "," + r * 255 + "," + o * 255 + "," + l + ")";
5275
+ return "rgba(" + r * 255 + "," + n * 255 + "," + o * 255 + "," + l + ")";
5265
5276
  }
5266
5277
  function Hp(A) {
5267
5278
  if (I.rgb(A))
@@ -5295,11 +5306,11 @@ function u8(A, c, e) {
5295
5306
  var s = y4.CSS[c + e];
5296
5307
  if (!I.und(s))
5297
5308
  return s;
5298
- var l = 100, a = document.createElement(A.tagName), n = A.parentNode && A.parentNode !== document ? A.parentNode : document.body;
5299
- n.appendChild(a), a.style.position = "absolute", a.style.width = l + e;
5300
- var r = l / a.offsetWidth;
5301
- n.removeChild(a);
5302
- var o = r * parseFloat(c);
5309
+ var l = 100, a = document.createElement(A.tagName), r = A.parentNode && A.parentNode !== document ? A.parentNode : document.body;
5310
+ r.appendChild(a), a.style.position = "absolute", a.style.width = l + e;
5311
+ var n = l / a.offsetWidth;
5312
+ r.removeChild(a);
5313
+ var o = n * parseFloat(c);
5303
5314
  return y4.CSS[c + e] = o, o;
5304
5315
  }
5305
5316
  function Pc(A, c, e) {
@@ -5415,16 +5426,16 @@ function Kp(A) {
5415
5426
  return c;
5416
5427
  }
5417
5428
  function qc(A, c) {
5418
- var e = c || {}, t = e.el || Kp(A), s = t.getBoundingClientRect(), l = $2(t, "viewBox"), a = s.width, n = s.height, r = e.viewBox || (l ? l.split(" ") : [0, 0, a, n]);
5429
+ var e = c || {}, t = e.el || Kp(A), s = t.getBoundingClientRect(), l = $2(t, "viewBox"), a = s.width, r = s.height, n = e.viewBox || (l ? l.split(" ") : [0, 0, a, r]);
5419
5430
  return {
5420
5431
  el: t,
5421
- viewBox: r,
5422
- x: r[0] / 1,
5423
- y: r[1] / 1,
5432
+ viewBox: n,
5433
+ x: n[0] / 1,
5434
+ y: n[1] / 1,
5424
5435
  w: a,
5425
- h: n,
5426
- vW: r[2],
5427
- vH: r[3]
5436
+ h: r,
5437
+ vW: n[2],
5438
+ vH: n[3]
5428
5439
  };
5429
5440
  }
5430
5441
  function Op(A, c) {
@@ -5444,14 +5455,14 @@ function Rp(A, c, e) {
5444
5455
  var f = c + i >= 1 ? c + i : 0;
5445
5456
  return A.el.getPointAtLength(f);
5446
5457
  }
5447
- var s = qc(A.el, A.svg), l = t(), a = t(-1), n = t(1), r = e ? 1 : s.w / s.vW, o = e ? 1 : s.h / s.vH;
5458
+ var s = qc(A.el, A.svg), l = t(), a = t(-1), r = t(1), n = e ? 1 : s.w / s.vW, o = e ? 1 : s.h / s.vH;
5448
5459
  switch (A.property) {
5449
5460
  case "x":
5450
- return (l.x - s.x) * r;
5461
+ return (l.x - s.x) * n;
5451
5462
  case "y":
5452
5463
  return (l.y - s.y) * o;
5453
5464
  case "angle":
5454
- return Math.atan2(n.y - a.y, n.x - a.x) * 180 / Math.PI;
5465
+ return Math.atan2(r.y - a.y, r.x - a.x) * 180 / Math.PI;
5455
5466
  }
5456
5467
  }
5457
5468
  function RA(A, c) {
@@ -5481,9 +5492,9 @@ function Pp(A, c) {
5481
5492
  s ? A = { value: A } : I.fnc(c.duration) || (e.duration = c.duration / t);
5482
5493
  }
5483
5494
  var l = I.arr(A) ? A : [A];
5484
- return l.map(function(a, n) {
5485
- var r = I.obj(a) && !I.pth(a) ? a : { value: a };
5486
- return I.und(r.delay) && (r.delay = n ? 0 : c.delay), I.und(r.endDelay) && (r.endDelay = n === l.length - 1 ? c.endDelay : 0), r;
5495
+ return l.map(function(a, r) {
5496
+ var n = I.obj(a) && !I.pth(a) ? a : { value: a };
5497
+ return I.und(n.delay) && (n.delay = r ? 0 : c.delay), I.und(n.endDelay) && (n.endDelay = r === l.length - 1 ? c.endDelay : 0), n;
5487
5498
  }).map(function(a) {
5488
5499
  return X4(a, e);
5489
5500
  });
@@ -5497,11 +5508,11 @@ function Gp(A) {
5497
5508
  return l.indexOf(a) < 0 && l.push(a), l;
5498
5509
  }, []), e = {}, t = function(l) {
5499
5510
  var a = c[l];
5500
- e[a] = A.map(function(n) {
5501
- var r = {};
5502
- for (var o in n)
5503
- I.key(o) ? o == a && (r.value = n[o]) : r[o] = n[o];
5504
- return r;
5511
+ e[a] = A.map(function(r) {
5512
+ var n = {};
5513
+ for (var o in r)
5514
+ I.key(o) ? o == a && (n.value = r[o]) : n[o] = r[o];
5515
+ return n;
5505
5516
  });
5506
5517
  }, s = 0; s < c.length; s++)
5507
5518
  t(s);
@@ -5530,7 +5541,7 @@ function Wp(A, c) {
5530
5541
  function Xp(A, c) {
5531
5542
  var e;
5532
5543
  return A.tweens.map(function(t) {
5533
- var s = Wp(t, c), l = s.value, a = I.arr(l) ? l[1] : l, n = l1(a), r = h8(c.target, A.name, n, c), o = e ? e.to.original : r, i = I.arr(l) ? l[0] : o, f = l1(i) || l1(r), u = n || f;
5544
+ var s = Wp(t, c), l = s.value, a = I.arr(l) ? l[1] : l, r = l1(a), n = h8(c.target, A.name, r, c), o = e ? e.to.original : n, i = I.arr(l) ? l[0] : o, f = l1(i) || l1(n), u = r || f;
5534
5545
  return I.und(a) && (a = o), s.from = RA(i, u), s.to = RA(p8(a, i), u), s.start = e ? e.end : 0, s.end = s.start + s.delay + s.duration + s.endDelay, s.easing = i8(s.easing, s.duration), s.isPath = I.pth(l), s.isPathTargetInsideSVG = s.isPath && I.svg(c.target), s.isColor = I.col(s.from.original), s.isColor && (s.round = 1), e = s, s;
5535
5546
  });
5536
5547
  }
@@ -5547,8 +5558,8 @@ var Jc = {
5547
5558
  transform: function(A, c, e, t, s) {
5548
5559
  if (t.list.set(c, e), c === t.last || s) {
5549
5560
  var l = "";
5550
- t.list.forEach(function(a, n) {
5551
- l += n + "(" + a + ") ";
5561
+ t.list.forEach(function(a, r) {
5562
+ l += r + "(" + a + ") ";
5552
5563
  }), A.style.transform = l;
5553
5564
  }
5554
5565
  }
@@ -5557,7 +5568,7 @@ function jc(A, c) {
5557
5568
  var e = Yc(A);
5558
5569
  e.forEach(function(t) {
5559
5570
  for (var s in c) {
5560
- var l = t6(c[s], t), a = t.target, n = l1(l), r = h8(a, s, n, t), o = n || l1(r), i = p8(Vc(l, o), r), f = m8(a, s);
5571
+ var l = t6(c[s], t), a = t.target, r = l1(l), n = h8(a, s, r, t), o = r || l1(n), i = p8(Vc(l, o), n), f = m8(a, s);
5561
5572
  Jc[f](a, s, i, t.transforms, !0);
5562
5573
  }
5563
5574
  });
@@ -5600,9 +5611,9 @@ function $c(A, c) {
5600
5611
  }
5601
5612
  var PA = 0;
5602
5613
  function Jp(A) {
5603
- var c = e6(_c, A), e = e6(r8, A), t = Vp(e, A), s = Yc(A.targets), l = Yp(s, t), a = $c(l, e), n = PA;
5614
+ var c = e6(_c, A), e = e6(r8, A), t = Vp(e, A), s = Yc(A.targets), l = Yp(s, t), a = $c(l, e), r = PA;
5604
5615
  return PA++, X4(c, {
5605
- id: n,
5616
+ id: r,
5606
5617
  children: [],
5607
5618
  animatables: s,
5608
5619
  animations: l,
@@ -5618,8 +5629,8 @@ var W2 = [], Zc = function() {
5618
5629
  }
5619
5630
  function e(s) {
5620
5631
  for (var l = W2.length, a = 0; a < l; ) {
5621
- var n = W2[a];
5622
- n.paused ? (W2.splice(a, 1), l--) : (n.tick(s), a++);
5632
+ var r = W2[a];
5633
+ r.paused ? (W2.splice(a, 1), l--) : (r.tick(s), a++);
5623
5634
  }
5624
5635
  A = a > 0 ? requestAnimationFrame(e) : void 0;
5625
5636
  }
@@ -5638,31 +5649,31 @@ function GA() {
5638
5649
  function i2(A) {
5639
5650
  A === void 0 && (A = {});
5640
5651
  var c = 0, e = 0, t = 0, s, l = 0, a = null;
5641
- function n(d) {
5652
+ function r(d) {
5642
5653
  var L = window.Promise && new Promise(function(w) {
5643
5654
  return a = w;
5644
5655
  });
5645
5656
  return d.finished = L, L;
5646
5657
  }
5647
- var r = Jp(A);
5648
- n(r);
5658
+ var n = Jp(A);
5659
+ r(n);
5649
5660
  function o() {
5650
- var d = r.direction;
5651
- d !== "alternate" && (r.direction = d !== "normal" ? "normal" : "reverse"), r.reversed = !r.reversed, s.forEach(function(L) {
5652
- return L.reversed = r.reversed;
5661
+ var d = n.direction;
5662
+ d !== "alternate" && (n.direction = d !== "normal" ? "normal" : "reverse"), n.reversed = !n.reversed, s.forEach(function(L) {
5663
+ return L.reversed = n.reversed;
5653
5664
  });
5654
5665
  }
5655
5666
  function i(d) {
5656
- return r.reversed ? r.duration - d : d;
5667
+ return n.reversed ? n.duration - d : d;
5657
5668
  }
5658
5669
  function f() {
5659
- c = 0, e = i(r.currentTime) * (1 / i2.speed);
5670
+ c = 0, e = i(n.currentTime) * (1 / i2.speed);
5660
5671
  }
5661
5672
  function u(d, L) {
5662
5673
  L && L.seek(d - L.timelineOffset);
5663
5674
  }
5664
5675
  function h(d) {
5665
- if (r.reversePlayback)
5676
+ if (n.reversePlayback)
5666
5677
  for (var w = l; w--; )
5667
5678
  u(d, s[w]);
5668
5679
  else
@@ -5670,7 +5681,7 @@ function i2(A) {
5670
5681
  u(d, s[L]);
5671
5682
  }
5672
5683
  function m(d) {
5673
- for (var L = 0, w = r.animations, v = w.length; L < v; ) {
5684
+ for (var L = 0, w = n.animations, v = w.length; L < v; ) {
5674
5685
  var z = w[L], S = z.animatable, E = z.tweens, y = E.length - 1, N = E[y];
5675
5686
  y && (N = V4(E, function(f1) {
5676
5687
  return d < f1.end;
@@ -5694,39 +5705,39 @@ function i2(A) {
5694
5705
  }
5695
5706
  }
5696
5707
  function p(d) {
5697
- r[d] && !r.passThrough && r[d](r);
5708
+ n[d] && !n.passThrough && n[d](n);
5698
5709
  }
5699
5710
  function B() {
5700
- r.remaining && r.remaining !== !0 && r.remaining--;
5711
+ n.remaining && n.remaining !== !0 && n.remaining--;
5701
5712
  }
5702
5713
  function g(d) {
5703
- var L = r.duration, w = r.delay, v = L - r.endDelay, z = i(d);
5704
- r.progress = j2(z / L * 100, 0, 100), r.reversePlayback = z < r.currentTime, s && h(z), !r.began && r.currentTime > 0 && (r.began = !0, p("begin")), !r.loopBegan && r.currentTime > 0 && (r.loopBegan = !0, p("loopBegin")), z <= w && r.currentTime !== 0 && m(0), (z >= v && r.currentTime !== L || !L) && m(L), z > w && z < v ? (r.changeBegan || (r.changeBegan = !0, r.changeCompleted = !1, p("changeBegin")), p("change"), m(z)) : r.changeBegan && (r.changeCompleted = !0, r.changeBegan = !1, p("changeComplete")), r.currentTime = j2(z, 0, L), r.began && p("update"), d >= L && (e = 0, B(), r.remaining ? (c = t, p("loopComplete"), r.loopBegan = !1, r.direction === "alternate" && o()) : (r.paused = !0, r.completed || (r.completed = !0, p("loopComplete"), p("complete"), !r.passThrough && "Promise" in window && (a(), n(r)))));
5714
+ var L = n.duration, w = n.delay, v = L - n.endDelay, z = i(d);
5715
+ n.progress = j2(z / L * 100, 0, 100), n.reversePlayback = z < n.currentTime, s && h(z), !n.began && n.currentTime > 0 && (n.began = !0, p("begin")), !n.loopBegan && n.currentTime > 0 && (n.loopBegan = !0, p("loopBegin")), z <= w && n.currentTime !== 0 && m(0), (z >= v && n.currentTime !== L || !L) && m(L), z > w && z < v ? (n.changeBegan || (n.changeBegan = !0, n.changeCompleted = !1, p("changeBegin")), p("change"), m(z)) : n.changeBegan && (n.changeCompleted = !0, n.changeBegan = !1, p("changeComplete")), n.currentTime = j2(z, 0, L), n.began && p("update"), d >= L && (e = 0, B(), n.remaining ? (c = t, p("loopComplete"), n.loopBegan = !1, n.direction === "alternate" && o()) : (n.paused = !0, n.completed || (n.completed = !0, p("loopComplete"), p("complete"), !n.passThrough && "Promise" in window && (a(), r(n)))));
5705
5716
  }
5706
- return r.reset = function() {
5707
- var d = r.direction;
5708
- r.passThrough = !1, r.currentTime = 0, r.progress = 0, r.paused = !0, r.began = !1, r.loopBegan = !1, r.changeBegan = !1, r.completed = !1, r.changeCompleted = !1, r.reversePlayback = !1, r.reversed = d === "reverse", r.remaining = r.loop, s = r.children, l = s.length;
5717
+ return n.reset = function() {
5718
+ var d = n.direction;
5719
+ n.passThrough = !1, n.currentTime = 0, n.progress = 0, n.paused = !0, n.began = !1, n.loopBegan = !1, n.changeBegan = !1, n.completed = !1, n.changeCompleted = !1, n.reversePlayback = !1, n.reversed = d === "reverse", n.remaining = n.loop, s = n.children, l = s.length;
5709
5720
  for (var L = l; L--; )
5710
- r.children[L].reset();
5711
- (r.reversed && r.loop !== !0 || d === "alternate" && r.loop === 1) && r.remaining++, m(r.reversed ? r.duration : 0);
5712
- }, r._onDocumentVisibility = f, r.set = function(d, L) {
5713
- return jc(d, L), r;
5714
- }, r.tick = function(d) {
5721
+ n.children[L].reset();
5722
+ (n.reversed && n.loop !== !0 || d === "alternate" && n.loop === 1) && n.remaining++, m(n.reversed ? n.duration : 0);
5723
+ }, n._onDocumentVisibility = f, n.set = function(d, L) {
5724
+ return jc(d, L), n;
5725
+ }, n.tick = function(d) {
5715
5726
  t = d, c || (c = t), g((t + (e - c)) * i2.speed);
5716
- }, r.seek = function(d) {
5727
+ }, n.seek = function(d) {
5717
5728
  g(i(d));
5718
- }, r.pause = function() {
5719
- r.paused = !0, f();
5720
- }, r.play = function() {
5721
- r.paused && (r.completed && r.reset(), r.paused = !1, W2.push(r), f(), Zc());
5722
- }, r.reverse = function() {
5723
- o(), r.completed = !r.reversed, f();
5724
- }, r.restart = function() {
5725
- r.reset(), r.play();
5726
- }, r.remove = function(d) {
5729
+ }, n.pause = function() {
5730
+ n.paused = !0, f();
5731
+ }, n.play = function() {
5732
+ n.paused && (n.completed && n.reset(), n.paused = !1, W2.push(n), f(), Zc());
5733
+ }, n.reverse = function() {
5734
+ o(), n.completed = !n.reversed, f();
5735
+ }, n.restart = function() {
5736
+ n.reset(), n.play();
5737
+ }, n.remove = function(d) {
5727
5738
  var L = g8(d);
5728
- A7(L, r);
5729
- }, r.reset(), r.autoplay && r.play(), r;
5739
+ A7(L, n);
5740
+ }, n.reset(), n.autoplay && n.play(), n;
5730
5741
  }
5731
5742
  function VA(A, c) {
5732
5743
  for (var e = c.length; e--; )
@@ -5749,14 +5760,14 @@ function jp(A) {
5749
5760
  }
5750
5761
  function $p(A, c) {
5751
5762
  c === void 0 && (c = {});
5752
- var e = c.direction || "normal", t = c.easing ? i8(c.easing) : null, s = c.grid, l = c.axis, a = c.from || 0, n = a === "first", r = a === "center", o = a === "last", i = I.arr(A), f = parseFloat(i ? A[0] : A), u = i ? parseFloat(A[1]) : 0, h = l1(i ? A[1] : A) || 0, m = c.start || 0 + (i ? f : 0), p = [], B = 0;
5763
+ var e = c.direction || "normal", t = c.easing ? i8(c.easing) : null, s = c.grid, l = c.axis, a = c.from || 0, r = a === "first", n = a === "center", o = a === "last", i = I.arr(A), f = parseFloat(i ? A[0] : A), u = i ? parseFloat(A[1]) : 0, h = l1(i ? A[1] : A) || 0, m = c.start || 0 + (i ? f : 0), p = [], B = 0;
5753
5764
  return function(g, d, L) {
5754
- if (n && (a = 0), r && (a = (L - 1) / 2), o && (a = L - 1), !p.length) {
5765
+ if (r && (a = 0), n && (a = (L - 1) / 2), o && (a = L - 1), !p.length) {
5755
5766
  for (var w = 0; w < L; w++) {
5756
5767
  if (!s)
5757
5768
  p.push(Math.abs(a - w));
5758
5769
  else {
5759
- var v = r ? (s[0] - 1) / 2 : a % s[0], z = r ? (s[1] - 1) / 2 : Math.floor(a / s[0]), S = w % s[0], E = Math.floor(w / s[0]), y = v - S, N = z - E, X = Math.sqrt(y * y + N * N);
5770
+ var v = n ? (s[0] - 1) / 2 : a % s[0], z = n ? (s[1] - 1) / 2 : Math.floor(a / s[0]), S = w % s[0], E = Math.floor(w / s[0]), y = v - S, N = z - E, X = Math.sqrt(y * y + N * N);
5760
5771
  l === "x" && (X = -y), l === "y" && (X = -N), p.push(X);
5761
5772
  }
5762
5773
  B = Math.max.apply(Math, p);
@@ -5780,13 +5791,13 @@ function Zp(A) {
5780
5791
  function a(u) {
5781
5792
  u.passThrough = !0;
5782
5793
  }
5783
- for (var n = 0; n < l.length; n++)
5784
- a(l[n]);
5785
- var r = X4(e, e6(r8, A));
5786
- r.targets = r.targets || A.targets;
5794
+ for (var r = 0; r < l.length; r++)
5795
+ a(l[r]);
5796
+ var n = X4(e, e6(r8, A));
5797
+ n.targets = n.targets || A.targets;
5787
5798
  var o = c.duration;
5788
- r.autoplay = !1, r.direction = c.direction, r.timelineOffset = I.und(t) ? o : p8(t, o), a(c), c.seek(r.timelineOffset);
5789
- var i = i2(r);
5799
+ n.autoplay = !1, n.direction = c.direction, n.timelineOffset = I.und(t) ? o : p8(t, o), a(c), c.seek(n.timelineOffset);
5800
+ var i = i2(n);
5790
5801
  a(i), l.push(i);
5791
5802
  var f = $c(l, A);
5792
5803
  return c.delay = f.delay, c.endDelay = f.endDelay, c.duration = f.duration, c.seek(0), c.reset(), c.autoplay && c.play(), c;
@@ -5854,8 +5865,8 @@ const n2 = [], Ad = {
5854
5865
  stepPage: this.stepperStore.getCurrentStep,
5855
5866
  history: this.history
5856
5867
  };
5857
- this.stepperStore.saveHistoryDraw(a), l.toBlob(function(n) {
5858
- return saveAs(n, `${A}_capture.jpg`);
5868
+ this.stepperStore.saveHistoryDraw(a), l.toBlob(function(r) {
5869
+ return saveAs(r, `${A}_capture.jpg`);
5859
5870
  }, "image/jpeg", 1);
5860
5871
  });
5861
5872
  },
@@ -5942,7 +5953,7 @@ const n2 = [], Ad = {
5942
5953
  }
5943
5954
  }, cd = { style: { "list-style-type": "none" } };
5944
5955
  function ed(A, c, e, t, s, l) {
5945
- const a = H("vp-editor"), n = H("Histogram"), r = H("el-icon"), o = H("el-button"), i = H("el-drawer");
5956
+ const a = H("vp-editor"), r = H("Histogram"), n = H("el-icon"), o = H("el-button"), i = H("el-drawer");
5946
5957
  return C(), M("div", {
5947
5958
  id: "drawCanvas",
5948
5959
  style: L2("background-image: url(" + e.content.backgoundImage + ")")
@@ -5962,9 +5973,9 @@ function ed(A, c, e, t, s, l) {
5962
5973
  onClick: c[2] || (c[2] = (f) => s.drawer = !0)
5963
5974
  }, {
5964
5975
  default: T(() => [
5965
- D(r, null, {
5976
+ D(n, null, {
5966
5977
  default: T(() => [
5967
- D(n)
5978
+ D(r)
5968
5979
  ]),
5969
5980
  _: 1
5970
5981
  })
@@ -6121,7 +6132,7 @@ const r2 = [], sd = {
6121
6132
  class: "hideCompareButtons"
6122
6133
  }, ad = { style: { "list-style-type": "none" } };
6123
6134
  function nd(A, c, e, t, s, l) {
6124
- const a = H("vp-editor"), n = H("el-button"), r = H("Histogram"), o = H("el-icon"), i = H("el-drawer");
6135
+ const a = H("vp-editor"), r = H("el-button"), n = H("Histogram"), o = H("el-icon"), i = H("el-drawer");
6125
6136
  return C(), M("div", {
6126
6137
  id: "drawCanvas",
6127
6138
  style: L2("background-image: url(" + e.content.backgoundImage + ")")
@@ -6139,7 +6150,7 @@ function nd(A, c, e, t, s, l) {
6139
6150
  onSave: c[1] || (c[1] = (f) => l.savejpg(e.content.header, f))
6140
6151
  }, null, 8, ["history", "settings", "tools"]),
6141
6152
  l.drawCompare ? (C(), M("div", ld, [
6142
- D(n, {
6153
+ D(r, {
6143
6154
  size: "medium",
6144
6155
  type: "primary",
6145
6156
  onClick: c[2] || (c[2] = (f) => s.showOverlay = !s.showOverlay)
@@ -6150,7 +6161,7 @@ function nd(A, c, e, t, s, l) {
6150
6161
  _: 1
6151
6162
  })
6152
6163
  ])) : F("", !0),
6153
- e.content.viewHistory ? (C(), R(n, {
6164
+ e.content.viewHistory ? (C(), R(r, {
6154
6165
  key: 2,
6155
6166
  class: "history",
6156
6167
  type: "info",
@@ -6159,7 +6170,7 @@ function nd(A, c, e, t, s, l) {
6159
6170
  default: T(() => [
6160
6171
  D(o, null, {
6161
6172
  default: T(() => [
6162
- D(r)
6173
+ D(n)
6163
6174
  ]),
6164
6175
  _: 1
6165
6176
  })
@@ -6286,14 +6297,14 @@ function U2(A, c, e, t) {
6286
6297
  });
6287
6298
  }
6288
6299
  return new (e || (e = Promise))(function(l, a) {
6289
- function n(i) {
6300
+ function r(i) {
6290
6301
  try {
6291
6302
  o(t.next(i));
6292
6303
  } catch (f) {
6293
6304
  a(f);
6294
6305
  }
6295
6306
  }
6296
- function r(i) {
6307
+ function n(i) {
6297
6308
  try {
6298
6309
  o(t.throw(i));
6299
6310
  } catch (f) {
@@ -6301,7 +6312,7 @@ function U2(A, c, e, t) {
6301
6312
  }
6302
6313
  }
6303
6314
  function o(i) {
6304
- i.done ? l(i.value) : s(i.value).then(n, r);
6315
+ i.done ? l(i.value) : s(i.value).then(r, n);
6305
6316
  }
6306
6317
  o((t = t.apply(A, c || [])).next());
6307
6318
  });
@@ -6312,15 +6323,15 @@ function x2(A, c) {
6312
6323
  throw l[1];
6313
6324
  return l[1];
6314
6325
  }, trys: [], ops: [] }, t, s, l, a;
6315
- return a = { next: n(0), throw: n(1), return: n(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
6326
+ return a = { next: r(0), throw: r(1), return: r(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
6316
6327
  return this;
6317
6328
  }), a;
6318
- function n(o) {
6329
+ function r(o) {
6319
6330
  return function(i) {
6320
- return r([o, i]);
6331
+ return n([o, i]);
6321
6332
  };
6322
6333
  }
6323
- function r(o) {
6334
+ function n(o) {
6324
6335
  if (t)
6325
6336
  throw new TypeError("Generator is already executing.");
6326
6337
  for (; e; )
@@ -6432,11 +6443,11 @@ var XA = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u0
6432
6443
  for (var Y0 = 0; Y0 < XA.length; Y0++)
6433
6444
  u0[XA.charCodeAt(Y0)] = Y0;
6434
6445
  var pd = function(A) {
6435
- var c = A.length * 0.75, e = A.length, t, s = 0, l, a, n, r;
6446
+ var c = A.length * 0.75, e = A.length, t, s = 0, l, a, r, n;
6436
6447
  A[A.length - 1] === "=" && (c--, A[A.length - 2] === "=" && c--);
6437
6448
  var o = typeof ArrayBuffer < "u" && typeof Uint8Array < "u" && typeof Uint8Array.prototype.slice < "u" ? new ArrayBuffer(c) : new Array(c), i = Array.isArray(o) ? o : new Uint8Array(o);
6438
6449
  for (t = 0; t < e; t += 4)
6439
- l = u0[A.charCodeAt(t)], a = u0[A.charCodeAt(t + 1)], n = u0[A.charCodeAt(t + 2)], r = u0[A.charCodeAt(t + 3)], i[s++] = l << 2 | a >> 4, i[s++] = (a & 15) << 4 | n >> 2, i[s++] = (n & 3) << 6 | r & 63;
6450
+ l = u0[A.charCodeAt(t)], a = u0[A.charCodeAt(t + 1)], r = u0[A.charCodeAt(t + 2)], n = u0[A.charCodeAt(t + 3)], i[s++] = l << 2 | a >> 4, i[s++] = (a & 15) << 4 | r >> 2, i[s++] = (r & 3) << 6 | n & 63;
6440
6451
  return o;
6441
6452
  }, dd = function(A) {
6442
6453
  for (var c = A.length, e = [], t = 0; t < c; t += 2)
@@ -6451,8 +6462,8 @@ var pd = function(A) {
6451
6462
  }, yd = function(A, c, e) {
6452
6463
  return A.slice ? A.slice(c, e) : new Uint32Array(Array.prototype.slice.call(A, c, e));
6453
6464
  }, bd = function(A, c) {
6454
- var e = pd(A), t = Array.isArray(e) ? gd(e) : new Uint32Array(e), s = Array.isArray(e) ? dd(e) : new Uint16Array(e), l = 24, a = qA(s, l / 2, t[4] / 2), n = t[5] === 2 ? qA(s, (l + t[4]) / 2) : yd(t, Math.ceil((l + t[4]) / 4));
6455
- return new Ud(t[0], t[1], t[2], t[3], a, n);
6465
+ var e = pd(A), t = Array.isArray(e) ? gd(e) : new Uint32Array(e), s = Array.isArray(e) ? dd(e) : new Uint16Array(e), l = 24, a = qA(s, l / 2, t[4] / 2), r = t[5] === 2 ? qA(s, (l + t[4]) / 2) : yd(t, Math.ceil((l + t[4]) / 4));
6466
+ return new Ud(t[0], t[1], t[2], t[3], a, r);
6456
6467
  }, Ud = (
6457
6468
  /** @class */
6458
6469
  function() {
@@ -6481,22 +6492,22 @@ var Hd = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
6481
6492
  c === void 0 && (c = "strict");
6482
6493
  var e = [], t = [], s = [];
6483
6494
  return A.forEach(function(l, a) {
6484
- var n = h6.get(l);
6485
- if (n > JA ? (s.push(!0), n -= JA) : s.push(!1), ["normal", "auto", "loose"].indexOf(c) !== -1 && [8208, 8211, 12316, 12448].indexOf(l) !== -1)
6495
+ var r = h6.get(l);
6496
+ if (r > JA ? (s.push(!0), r -= JA) : s.push(!1), ["normal", "auto", "loose"].indexOf(c) !== -1 && [8208, 8211, 12316, 12448].indexOf(l) !== -1)
6486
6497
  return t.push(a), e.push(r6);
6487
- if (n === Ed || n === a6) {
6498
+ if (r === Ed || r === a6) {
6488
6499
  if (a === 0)
6489
6500
  return t.push(a), e.push(b1);
6490
- var r = e[a - 1];
6491
- return Rd.indexOf(r) === -1 ? (t.push(t[a - 1]), e.push(r)) : (t.push(a), e.push(b1));
6501
+ var n = e[a - 1];
6502
+ return Rd.indexOf(n) === -1 ? (t.push(t[a - 1]), e.push(n)) : (t.push(a), e.push(b1));
6492
6503
  }
6493
- if (t.push(a), n === Dd)
6504
+ if (t.push(a), r === Dd)
6494
6505
  return e.push(c === "strict" ? i6 : S0);
6495
- if (n === l7 || n === _d)
6506
+ if (r === l7 || r === _d)
6496
6507
  return e.push(b1);
6497
- if (n === Kd)
6508
+ if (r === Kd)
6498
6509
  return l >= 131072 && l <= 196605 || l >= 196608 && l <= 262141 ? e.push(S0) : e.push(b1);
6499
- e.push(n);
6510
+ e.push(r);
6500
6511
  }), [t, e, s];
6501
6512
  }, H3 = function(A, c, e, t) {
6502
6513
  var s = t[e];
@@ -6512,17 +6523,17 @@ var Hd = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
6512
6523
  if (s === C1)
6513
6524
  for (var l = e; l > 0; ) {
6514
6525
  l--;
6515
- var n = t[l];
6516
- if (Array.isArray(A) ? A.indexOf(n) !== -1 : A === n)
6517
- for (var r = e; r <= t.length; ) {
6518
- r++;
6519
- var a = t[r];
6526
+ var r = t[l];
6527
+ if (Array.isArray(A) ? A.indexOf(r) !== -1 : A === r)
6528
+ for (var n = e; n <= t.length; ) {
6529
+ n++;
6530
+ var a = t[n];
6520
6531
  if (a === c)
6521
6532
  return !0;
6522
6533
  if (a !== C1)
6523
6534
  break;
6524
6535
  }
6525
- if (n !== C1)
6536
+ if (r !== C1)
6526
6537
  break;
6527
6538
  }
6528
6539
  return !1;
@@ -6541,27 +6552,27 @@ var Hd = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
6541
6552
  var l = t - 1;
6542
6553
  if (Array.isArray(s) && s[l] === !0)
6543
6554
  return W;
6544
- var a = l - 1, n = l + 1, r = c[l], o = a >= 0 ? c[a] : 0, i = c[n];
6545
- if (r === e7 && i === t7)
6555
+ var a = l - 1, r = l + 1, n = c[l], o = a >= 0 ? c[a] : 0, i = c[r];
6556
+ if (n === e7 && i === t7)
6546
6557
  return W;
6547
- if (p6.indexOf(r) !== -1)
6558
+ if (p6.indexOf(n) !== -1)
6548
6559
  return a7;
6549
6560
  if (p6.indexOf(i) !== -1 || n7.indexOf(i) !== -1)
6550
6561
  return W;
6551
6562
  if (t5(l, c) === s7)
6552
6563
  return A4;
6553
- if (h6.get(A[l]) === a6 || (r === $0 || r === Z0) && h6.get(A[n]) === a6 || r === jA || i === jA || r === $A || [C1, n6, m0].indexOf(r) === -1 && i === $A || [j0, n0, Td, O1, R1].indexOf(i) !== -1 || t5(l, c) === r0 || H3(U3, r0, l, c) || H3([j0, n0], i6, l, c) || H3(ZA, ZA, l, c))
6564
+ if (h6.get(A[l]) === a6 || (n === $0 || n === Z0) && h6.get(A[r]) === a6 || n === jA || i === jA || n === $A || [C1, n6, m0].indexOf(n) === -1 && i === $A || [j0, n0, Td, O1, R1].indexOf(i) !== -1 || t5(l, c) === r0 || H3(U3, r0, l, c) || H3([j0, n0], i6, l, c) || H3(ZA, ZA, l, c))
6554
6565
  return W;
6555
- if (r === C1)
6566
+ if (n === C1)
6556
6567
  return A4;
6557
- if (r === U3 || i === U3)
6568
+ if (n === U3 || i === U3)
6558
6569
  return W;
6559
- if (i === r6 || r === r6)
6570
+ if (i === r6 || n === r6)
6560
6571
  return A4;
6561
- if ([n6, m0, i6].indexOf(i) !== -1 || r === Id || o === u6 && Pd.indexOf(r) !== -1 || r === R1 && i === u6 || i === A5 || t1.indexOf(i) !== -1 && r === T2 || t1.indexOf(r) !== -1 && i === T2 || r === p0 && [S0, $0, Z0].indexOf(i) !== -1 || [S0, $0, Z0].indexOf(r) !== -1 && i === h0 || t1.indexOf(r) !== -1 && c5.indexOf(i) !== -1 || c5.indexOf(r) !== -1 && t1.indexOf(i) !== -1 || // (PR | PO) × ( OP | HY )? NU
6562
- [p0, h0].indexOf(r) !== -1 && (i === T2 || [r0, m0].indexOf(i) !== -1 && c[n + 1] === T2) || // ( OP | HY ) × NU
6563
- [r0, m0].indexOf(r) !== -1 && i === T2 || // NU × (NU | SY | IS)
6564
- r === T2 && [T2, R1, O1].indexOf(i) !== -1)
6572
+ if ([n6, m0, i6].indexOf(i) !== -1 || n === Id || o === u6 && Pd.indexOf(n) !== -1 || n === R1 && i === u6 || i === A5 || t1.indexOf(i) !== -1 && n === T2 || t1.indexOf(n) !== -1 && i === T2 || n === p0 && [S0, $0, Z0].indexOf(i) !== -1 || [S0, $0, Z0].indexOf(n) !== -1 && i === h0 || t1.indexOf(n) !== -1 && c5.indexOf(i) !== -1 || c5.indexOf(n) !== -1 && t1.indexOf(i) !== -1 || // (PR | PO) × ( OP | HY )? NU
6573
+ [p0, h0].indexOf(n) !== -1 && (i === T2 || [r0, m0].indexOf(i) !== -1 && c[r + 1] === T2) || // ( OP | HY ) × NU
6574
+ [r0, m0].indexOf(n) !== -1 && i === T2 || // NU × (NU | SY | IS)
6575
+ n === T2 && [T2, R1, O1].indexOf(i) !== -1)
6565
6576
  return W;
6566
6577
  if ([T2, R1, O1, j0, n0].indexOf(i) !== -1)
6567
6578
  for (var f = l; f >= 0; ) {
@@ -6574,7 +6585,7 @@ var Hd = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
6574
6585
  break;
6575
6586
  }
6576
6587
  if ([p0, h0].indexOf(i) !== -1)
6577
- for (var f = [j0, n0].indexOf(r) !== -1 ? a : l; f >= 0; ) {
6588
+ for (var f = [j0, n0].indexOf(n) !== -1 ? a : l; f >= 0; ) {
6578
6589
  var u = c[f];
6579
6590
  if (u === T2)
6580
6591
  return W;
@@ -6583,23 +6594,23 @@ var Hd = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
6583
6594
  else
6584
6595
  break;
6585
6596
  }
6586
- if (m6 === r && [m6, B4, o6, f6].indexOf(i) !== -1 || [B4, o6].indexOf(r) !== -1 && [B4, L4].indexOf(i) !== -1 || [L4, f6].indexOf(r) !== -1 && i === L4 || e5.indexOf(r) !== -1 && [A5, h0].indexOf(i) !== -1 || e5.indexOf(i) !== -1 && r === p0 || t1.indexOf(r) !== -1 && t1.indexOf(i) !== -1 || r === O1 && t1.indexOf(i) !== -1 || t1.concat(T2).indexOf(r) !== -1 && i === r0 && Od.indexOf(A[n]) === -1 || t1.concat(T2).indexOf(i) !== -1 && r === n0)
6597
+ if (m6 === n && [m6, B4, o6, f6].indexOf(i) !== -1 || [B4, o6].indexOf(n) !== -1 && [B4, L4].indexOf(i) !== -1 || [L4, f6].indexOf(n) !== -1 && i === L4 || e5.indexOf(n) !== -1 && [A5, h0].indexOf(i) !== -1 || e5.indexOf(i) !== -1 && n === p0 || t1.indexOf(n) !== -1 && t1.indexOf(i) !== -1 || n === O1 && t1.indexOf(i) !== -1 || t1.concat(T2).indexOf(n) !== -1 && i === r0 && Od.indexOf(A[r]) === -1 || t1.concat(T2).indexOf(i) !== -1 && n === n0)
6587
6598
  return W;
6588
- if (r === S3 && i === S3) {
6599
+ if (n === S3 && i === S3) {
6589
6600
  for (var h = e[l], m = 1; h > 0 && (h--, c[h] === S3); )
6590
6601
  m++;
6591
6602
  if (m % 2 !== 0)
6592
6603
  return W;
6593
6604
  }
6594
- return r === $0 && i === Z0 ? W : A4;
6605
+ return n === $0 && i === Z0 ? W : A4;
6595
6606
  }, Wd = function(A, c) {
6596
6607
  c || (c = { lineBreak: "normal", wordBreak: "normal" });
6597
6608
  var e = Gd(A, c.lineBreak), t = e[0], s = e[1], l = e[2];
6598
- (c.wordBreak === "break-all" || c.wordBreak === "break-word") && (s = s.map(function(n) {
6599
- return [T2, b1, l7].indexOf(n) !== -1 ? S0 : n;
6609
+ (c.wordBreak === "break-all" || c.wordBreak === "break-word") && (s = s.map(function(r) {
6610
+ return [T2, b1, l7].indexOf(r) !== -1 ? S0 : r;
6600
6611
  }));
6601
- var a = c.wordBreak === "keep-all" ? l.map(function(n, r) {
6602
- return n && A[r] >= 19968 && A[r] <= 40959;
6612
+ var a = c.wordBreak === "keep-all" ? l.map(function(r, n) {
6613
+ return r && A[n] >= 19968 && A[n] <= 40959;
6603
6614
  }) : void 0;
6604
6615
  return [t, s, a];
6605
6616
  }, Xd = (
@@ -6613,16 +6624,16 @@ var Hd = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
6613
6624
  }, A;
6614
6625
  }()
6615
6626
  ), qd = function(A, c) {
6616
- var e = Y4(A), t = Wd(e, c), s = t[0], l = t[1], a = t[2], n = e.length, r = 0, o = 0;
6627
+ var e = Y4(A), t = Wd(e, c), s = t[0], l = t[1], a = t[2], r = e.length, n = 0, o = 0;
6617
6628
  return {
6618
6629
  next: function() {
6619
- if (o >= n)
6630
+ if (o >= r)
6620
6631
  return { done: !0, value: null };
6621
- for (var i = W; o < n && (i = Vd(e, l, s, ++o, a)) === W; )
6632
+ for (var i = W; o < r && (i = Vd(e, l, s, ++o, a)) === W; )
6622
6633
  ;
6623
- if (i !== W || o === n) {
6624
- var f = new Xd(e, i, r, o);
6625
- return r = o, { value: f, done: !1 };
6634
+ if (i !== W || o === r) {
6635
+ var f = new Xd(e, i, n, o);
6636
+ return n = o, { value: f, done: !1 };
6626
6637
  }
6627
6638
  return { done: !0, value: null };
6628
6639
  }
@@ -6664,14 +6675,14 @@ var Hd = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
6664
6675
  A[c] === H0 && c++;
6665
6676
  for (var l = []; F2(A[c]); )
6666
6677
  l.push(A[c++]);
6667
- var a = l.length, n = a ? parseInt(f2.apply(void 0, l), 10) : 0;
6678
+ var a = l.length, r = a ? parseInt(f2.apply(void 0, l), 10) : 0;
6668
6679
  (A[c] === u7 || A[c] === o7) && c++;
6669
- var r = 1;
6670
- (A[c] === U1 || A[c] === N2) && (A[c] === N2 && (r = -1), c++);
6680
+ var n = 1;
6681
+ (A[c] === U1 || A[c] === N2) && (A[c] === N2 && (n = -1), c++);
6671
6682
  for (var o = []; F2(A[c]); )
6672
6683
  o.push(A[c++]);
6673
6684
  var i = o.length ? parseInt(f2.apply(void 0, o), 10) : 0;
6674
- return e * (s + n * Math.pow(10, -a)) * Math.pow(10, r * i);
6685
+ return e * (s + r * Math.pow(10, -a)) * Math.pow(10, n * i);
6675
6686
  }, kg = {
6676
6687
  type: 2
6677
6688
  /* LEFT_PARENTHESIS_TOKEN */
@@ -6780,12 +6791,12 @@ var Hd = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
6780
6791
  case hg:
6781
6792
  return Tg;
6782
6793
  case N2:
6783
- var n = c, r = this.peekCodePoint(0), o = this.peekCodePoint(1);
6784
- if (E3(n, r, o))
6794
+ var r = c, n = this.peekCodePoint(0), o = this.peekCodePoint(1);
6795
+ if (E3(r, n, o))
6785
6796
  return this.reconsumeCodePoint(c), this.consumeNumericToken();
6786
- if (a4(n, r, o))
6797
+ if (a4(r, n, o))
6787
6798
  return this.reconsumeCodePoint(c), this.consumeIdentLikeToken();
6788
- if (r === N2 && o === lg)
6799
+ if (n === N2 && o === lg)
6789
6800
  return this.consumeCodePoint(), this.consumeCodePoint(), qg;
6790
6801
  break;
6791
6802
  case H0:
@@ -6864,19 +6875,19 @@ var Hd = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
6864
6875
  for (var t = !1; e === s4 && c.length < 6; )
6865
6876
  c.push(e), e = this.consumeCodePoint(), t = !0;
6866
6877
  if (t) {
6867
- var s = parseInt(f2.apply(void 0, c.map(function(r) {
6868
- return r === s4 ? r7 : r;
6869
- })), 16), l = parseInt(f2.apply(void 0, c.map(function(r) {
6870
- return r === s4 ? m7 : r;
6878
+ var s = parseInt(f2.apply(void 0, c.map(function(n) {
6879
+ return n === s4 ? r7 : n;
6880
+ })), 16), l = parseInt(f2.apply(void 0, c.map(function(n) {
6881
+ return n === s4 ? m7 : n;
6871
6882
  })), 16);
6872
6883
  return { type: 30, start: s, end: l };
6873
6884
  }
6874
6885
  var a = parseInt(f2.apply(void 0, c), 16);
6875
6886
  if (this.peekCodePoint(0) === N2 && P1(this.peekCodePoint(1))) {
6876
6887
  this.consumeCodePoint(), e = this.consumeCodePoint();
6877
- for (var n = []; P1(e) && n.length < 6; )
6878
- n.push(e), e = this.consumeCodePoint();
6879
- var l = parseInt(f2.apply(void 0, n), 16);
6888
+ for (var r = []; P1(e) && r.length < 6; )
6889
+ r.push(e), e = this.consumeCodePoint();
6890
+ var l = parseInt(f2.apply(void 0, r), 16);
6880
6891
  return { type: 30, start: a, end: l };
6881
6892
  } else
6882
6893
  return { type: 30, start: a, end: a };
@@ -6956,8 +6967,8 @@ var Hd = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
6956
6967
  }, A.prototype.consumeNumericToken = function() {
6957
6968
  var c = this.consumeNumber(), e = c[0], t = c[1], s = this.peekCodePoint(0), l = this.peekCodePoint(1), a = this.peekCodePoint(2);
6958
6969
  if (a4(s, l, a)) {
6959
- var n = this.consumeName();
6960
- return { type: 15, number: e, flags: t, unit: n };
6970
+ var r = this.consumeName();
6971
+ return { type: 15, number: e, flags: t, unit: r };
6961
6972
  }
6962
6973
  return s === cg ? (this.consumeCodePoint(), { type: 16, number: e, flags: t }) : { type: 17, number: e, flags: t };
6963
6974
  }, A.prototype.consumeEscapedCodePoint = function() {
@@ -7199,9 +7210,9 @@ var Hd = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
7199
7210
  }
7200
7211
  }
7201
7212
  if (c.type === 20) {
7202
- var n = a1[c.value.toUpperCase()];
7203
- if (typeof n < "u")
7204
- return n;
7213
+ var r = a1[c.value.toUpperCase()];
7214
+ if (typeof r < "u")
7215
+ return r;
7205
7216
  }
7206
7217
  return a1.TRANSPARENT;
7207
7218
  }
@@ -7227,8 +7238,8 @@ var Hd = "KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF
7227
7238
  return L1(s, l, a, 1);
7228
7239
  }
7229
7240
  if (e.length === 4) {
7230
- var n = e.map(i5), s = n[0], l = n[1], a = n[2], r = n[3];
7231
- return L1(s, l, a, r);
7241
+ var r = e.map(i5), s = r[0], l = r[1], a = r[2], n = r[3];
7242
+ return L1(s, l, a, n);
7232
7243
  }
7233
7244
  return 0;
7234
7245
  };
@@ -7236,10 +7247,10 @@ function k3(A, c, e) {
7236
7247
  return e < 0 && (e += 1), e >= 1 && (e -= 1), e < 1 / 6 ? (c - A) * e * 6 + A : e < 1 / 2 ? c : e < 2 / 3 ? (c - A) * 6 * (2 / 3 - e) + A : A;
7237
7248
  }
7238
7249
  var f5 = function(A, c) {
7239
- var e = c.filter(c0), t = e[0], s = e[1], l = e[2], a = e[3], n = (t.type === 17 ? R2(t.number) : J4.parse(A, t)) / (Math.PI * 2), r = m2(s) ? s.number / 100 : 0, o = m2(l) ? l.number / 100 : 0, i = typeof a < "u" && m2(a) ? A2(a, 1) : 1;
7240
- if (r === 0)
7250
+ var e = c.filter(c0), t = e[0], s = e[1], l = e[2], a = e[3], r = (t.type === 17 ? R2(t.number) : J4.parse(A, t)) / (Math.PI * 2), n = m2(s) ? s.number / 100 : 0, o = m2(l) ? l.number / 100 : 0, i = typeof a < "u" && m2(a) ? A2(a, 1) : 1;
7251
+ if (n === 0)
7241
7252
  return L1(o * 255, o * 255, o * 255, 1);
7242
- var f = o <= 0.5 ? o * (r + 1) : o + r - o * r, u = o * 2 - f, h = k3(u, f, n + 1 / 3), m = k3(u, f, n), p = k3(u, f, n - 1 / 3);
7253
+ var f = o <= 0.5 ? o * (n + 1) : o + n - o * n, u = o * 2 - f, h = k3(u, f, r + 1 / 3), m = k3(u, f, r), p = k3(u, f, r - 1 / 3);
7243
7254
  return L1(h * 255, m * 255, p * 255, i);
7244
7255
  }, eC = {
7245
7256
  hsl: f5,
@@ -7428,10 +7439,10 @@ var f5 = function(A, c) {
7428
7439
  var e = A[0], t = A[A.length - 1];
7429
7440
  e.stop === null && (e.stop = w2), t.stop === null && (t.stop = B1);
7430
7441
  for (var s = [], l = 0, a = 0; a < A.length; a++) {
7431
- var n = A[a].stop;
7432
- if (n !== null) {
7433
- var r = A2(n, c);
7434
- r > l ? s.push(r) : s.push(l), l = r;
7442
+ var r = A[a].stop;
7443
+ if (r !== null) {
7444
+ var n = A2(r, c);
7445
+ n > l ? s.push(n) : s.push(l), l = n;
7435
7446
  } else
7436
7447
  s.push(null);
7437
7448
  }
@@ -7453,8 +7464,8 @@ var f5 = function(A, c) {
7453
7464
  var t = c / 2, s = e / 2, l = A2(A[0], c) - t, a = s - A2(A[1], e);
7454
7465
  return (Math.atan2(a, l) + Math.PI * 2) % (Math.PI * 2);
7455
7466
  }, aC = function(A, c, e) {
7456
- var t = typeof A == "number" ? A : lC(A, c, e), s = Math.abs(c * Math.sin(t)) + Math.abs(e * Math.cos(t)), l = c / 2, a = e / 2, n = s / 2, r = Math.sin(t - Math.PI / 2) * n, o = Math.cos(t - Math.PI / 2) * n;
7457
- return [s, l - o, l + o, a - r, a + r];
7467
+ var t = typeof A == "number" ? A : lC(A, c, e), s = Math.abs(c * Math.sin(t)) + Math.abs(e * Math.cos(t)), l = c / 2, a = e / 2, r = s / 2, n = Math.sin(t - Math.PI / 2) * r, o = Math.cos(t - Math.PI / 2) * r;
7468
+ return [s, l - o, l + o, a - n, a + n];
7458
7469
  }, V2 = function(A, c) {
7459
7470
  return Math.sqrt(A * A + c * c);
7460
7471
  }, m5 = function(A, c, e, t, s) {
@@ -7464,10 +7475,10 @@ var f5 = function(A, c) {
7464
7475
  [A, 0],
7465
7476
  [A, c]
7466
7477
  ];
7467
- return l.reduce(function(a, n) {
7468
- var r = n[0], o = n[1], i = V2(e - r, t - o);
7478
+ return l.reduce(function(a, r) {
7479
+ var n = r[0], o = r[1], i = V2(e - n, t - o);
7469
7480
  return (s ? i < a.optimumDistance : i > a.optimumDistance) ? {
7470
- optimumCorner: n,
7481
+ optimumCorner: r,
7471
7482
  optimumDistance: i
7472
7483
  } : a;
7473
7484
  }, {
@@ -7484,8 +7495,8 @@ var f5 = function(A, c) {
7484
7495
  if (A.shape === 0)
7485
7496
  l = a = Math.min(V2(c, e), V2(c, e - s), V2(c - t, e), V2(c - t, e - s));
7486
7497
  else if (A.shape === 1) {
7487
- var n = Math.min(Math.abs(e), Math.abs(e - s)) / Math.min(Math.abs(c), Math.abs(c - t)), r = m5(t, s, c, e, !0), o = r[0], i = r[1];
7488
- l = V2(o - c, (i - e) / n), a = n * l;
7498
+ var r = Math.min(Math.abs(e), Math.abs(e - s)) / Math.min(Math.abs(c), Math.abs(c - t)), n = m5(t, s, c, e, !0), o = n[0], i = n[1];
7499
+ l = V2(o - c, (i - e) / r), a = r * l;
7489
7500
  }
7490
7501
  break;
7491
7502
  case 1:
@@ -7495,8 +7506,8 @@ var f5 = function(A, c) {
7495
7506
  if (A.shape === 0)
7496
7507
  l = a = Math.max(V2(c, e), V2(c, e - s), V2(c - t, e), V2(c - t, e - s));
7497
7508
  else if (A.shape === 1) {
7498
- var n = Math.max(Math.abs(e), Math.abs(e - s)) / Math.max(Math.abs(c), Math.abs(c - t)), f = m5(t, s, c, e, !1), o = f[0], i = f[1];
7499
- l = V2(o - c, (i - e) / n), a = n * l;
7509
+ var r = Math.max(Math.abs(e), Math.abs(e - s)) / Math.max(Math.abs(c), Math.abs(c - t)), f = m5(t, s, c, e, !1), o = f[0], i = f[1];
7510
+ l = V2(o - c, (i - e) / r), a = r * l;
7500
7511
  }
7501
7512
  break;
7502
7513
  }
@@ -7514,8 +7525,8 @@ var f5 = function(A, c) {
7514
7525
  return;
7515
7526
  }
7516
7527
  }
7517
- var n = j4(A, s);
7518
- t.push(n);
7528
+ var r = j4(A, s);
7529
+ t.push(r);
7519
7530
  }), {
7520
7531
  angle: e,
7521
7532
  stops: t,
@@ -7535,8 +7546,8 @@ var f5 = function(A, c) {
7535
7546
  return;
7536
7547
  }
7537
7548
  }
7538
- var n = j4(A, s);
7539
- t.push(n);
7549
+ var r = j4(A, s);
7550
+ t.push(r);
7540
7551
  }), {
7541
7552
  angle: e,
7542
7553
  stops: t,
@@ -7544,9 +7555,9 @@ var f5 = function(A, c) {
7544
7555
  /* LINEAR_GRADIENT */
7545
7556
  };
7546
7557
  }, iC = function(A, c) {
7547
- var e = R2(180), t = [], s = 1, l = 0, a = 3, n = [];
7548
- return c1(c).forEach(function(r, o) {
7549
- var i = r[0];
7558
+ var e = R2(180), t = [], s = 1, l = 0, a = 3, r = [];
7559
+ return c1(c).forEach(function(n, o) {
7560
+ var i = n[0];
7550
7561
  if (o === 0) {
7551
7562
  if (J(i) && i.value === "linear") {
7552
7563
  s = 1;
@@ -7578,14 +7589,14 @@ var f5 = function(A, c) {
7578
7589
  angle: (e + R2(180)) % R2(360),
7579
7590
  stops: t,
7580
7591
  type: s
7581
- } : { size: a, shape: l, stops: t, position: n, type: s };
7592
+ } : { size: a, shape: l, stops: t, position: r, type: s };
7582
7593
  }, v7 = "closest-side", Q7 = "farthest-side", x7 = "closest-corner", F7 = "farthest-corner", y7 = "circle", b7 = "ellipse", U7 = "cover", S7 = "contain", oC = function(A, c) {
7583
7594
  var e = 0, t = 3, s = [], l = [];
7584
- return c1(c).forEach(function(a, n) {
7585
- var r = !0;
7586
- if (n === 0) {
7595
+ return c1(c).forEach(function(a, r) {
7596
+ var n = !0;
7597
+ if (r === 0) {
7587
7598
  var o = !1;
7588
- r = a.reduce(function(f, u) {
7599
+ n = a.reduce(function(f, u) {
7589
7600
  if (o)
7590
7601
  if (J(u))
7591
7602
  switch (u.value) {
@@ -7622,9 +7633,9 @@ var f5 = function(A, c) {
7622
7633
  else if (w1(u) || m2(u))
7623
7634
  return Array.isArray(t) || (t = []), t.push(u), !1;
7624
7635
  return f;
7625
- }, r);
7636
+ }, n);
7626
7637
  }
7627
- if (r) {
7638
+ if (n) {
7628
7639
  var i = j4(A, a);
7629
7640
  s.push(i);
7630
7641
  }
@@ -7638,9 +7649,9 @@ var f5 = function(A, c) {
7638
7649
  };
7639
7650
  }, i4 = function(A, c) {
7640
7651
  var e = 0, t = 3, s = [], l = [];
7641
- return c1(c).forEach(function(a, n) {
7642
- var r = !0;
7643
- if (n === 0 ? r = a.reduce(function(i, f) {
7652
+ return c1(c).forEach(function(a, r) {
7653
+ var n = !0;
7654
+ if (r === 0 ? n = a.reduce(function(i, f) {
7644
7655
  if (J(f))
7645
7656
  switch (f.value) {
7646
7657
  case "center":
@@ -7655,7 +7666,7 @@ var f5 = function(A, c) {
7655
7666
  else if (m2(f) || w1(f))
7656
7667
  return l.push(f), !1;
7657
7668
  return i;
7658
- }, r) : n === 1 && (r = a.reduce(function(i, f) {
7669
+ }, n) : r === 1 && (n = a.reduce(function(i, f) {
7659
7670
  if (J(f))
7660
7671
  switch (f.value) {
7661
7672
  case y7:
@@ -7676,7 +7687,7 @@ var f5 = function(A, c) {
7676
7687
  else if (w1(f) || m2(f))
7677
7688
  return Array.isArray(t) || (t = []), t.push(f), !1;
7678
7689
  return i;
7679
- }, r)), r) {
7690
+ }, n)), n) {
7680
7691
  var o = j4(A, a);
7681
7692
  s.push(o);
7682
7693
  }
@@ -8296,16 +8307,16 @@ var PC = {
8296
8307
  });
8297
8308
  return c.length === 6 ? c : null;
8298
8309
  }, iB = function(A) {
8299
- var c = A.filter(function(r) {
8300
- return r.type === 17;
8301
- }).map(function(r) {
8302
- return r.number;
8310
+ var c = A.filter(function(n) {
8311
+ return n.type === 17;
8312
+ }).map(function(n) {
8313
+ return n.number;
8303
8314
  }), e = c[0], t = c[1];
8304
8315
  c[2], c[3];
8305
8316
  var s = c[4], l = c[5];
8306
8317
  c[6], c[7], c[8], c[9], c[10], c[11];
8307
- var a = c[12], n = c[13];
8308
- return c[14], c[15], c.length === 16 ? [e, t, s, l, a, n] : null;
8318
+ var a = c[12], r = c[13];
8319
+ return c[14], c[15], c.length === 16 ? [e, t, s, l, a, r] : null;
8309
8320
  }, oB = {
8310
8321
  matrix: rB,
8311
8322
  matrix3d: iB
@@ -8517,10 +8528,10 @@ var hB = {
8517
8528
  if (e.type === 20 && e.value === "none")
8518
8529
  return null;
8519
8530
  for (var t = [], s = c.filter(d7), l = 0; l < s.length; l++) {
8520
- var a = s[l], n = s[l + 1];
8531
+ var a = s[l], r = s[l + 1];
8521
8532
  if (a.type === 20) {
8522
- var r = n && s0(n) ? n.number : 1;
8523
- t.push({ counter: a.value, increment: r });
8533
+ var n = r && s0(r) ? r.number : 1;
8534
+ t.push({ counter: a.value, increment: n });
8524
8535
  }
8525
8536
  }
8526
8537
  return t;
@@ -8536,8 +8547,8 @@ var hB = {
8536
8547
  for (var e = [], t = c.filter(d7), s = 0; s < t.length; s++) {
8537
8548
  var l = t[s], a = t[s + 1];
8538
8549
  if (J(l) && l.value !== "none") {
8539
- var n = a && s0(a) ? a.number : 0;
8540
- e.push({ counter: l.value, reset: n });
8550
+ var r = a && s0(a) ? a.number : 0;
8551
+ e.push({ counter: l.value, reset: r });
8541
8552
  }
8542
8553
  }
8543
8554
  return e;
@@ -8567,8 +8578,8 @@ var hB = {
8567
8578
  if (s.length % 2 !== 0)
8568
8579
  return null;
8569
8580
  for (var l = 0; l < s.length; l += 2) {
8570
- var a = s[l].value, n = s[l + 1].value;
8571
- t.push({ open: a, close: n });
8581
+ var a = s[l].value, r = s[l + 1].value;
8582
+ t.push({ open: a, close: r });
8572
8583
  }
8573
8584
  return t;
8574
8585
  }
@@ -8737,11 +8748,11 @@ var hB = {
8737
8748
  case "image":
8738
8749
  return L8.parse(A, l.parseComponentValue());
8739
8750
  case "length":
8740
- var n = l.parseComponentValue();
8741
- return w1(n) ? n : w2;
8742
- case "length-percentage":
8743
8751
  var r = l.parseComponentValue();
8744
- return m2(r) ? r : w2;
8752
+ return w1(r) ? r : w2;
8753
+ case "length-percentage":
8754
+ var n = l.parseComponentValue();
8755
+ return m2(n) ? n : w2;
8745
8756
  case "time":
8746
8757
  return N7.parse(A, l.parseComponentValue());
8747
8758
  }
@@ -8788,11 +8799,11 @@ var hB = {
8788
8799
  for (var o4 = 0; o4 < C5.length; o4++)
8789
8800
  g0[C5.charCodeAt(o4)] = o4;
8790
8801
  var _B = function(A) {
8791
- var c = A.length * 0.75, e = A.length, t, s = 0, l, a, n, r;
8802
+ var c = A.length * 0.75, e = A.length, t, s = 0, l, a, r, n;
8792
8803
  A[A.length - 1] === "=" && (c--, A[A.length - 2] === "=" && c--);
8793
8804
  var o = typeof ArrayBuffer < "u" && typeof Uint8Array < "u" && typeof Uint8Array.prototype.slice < "u" ? new ArrayBuffer(c) : new Array(c), i = Array.isArray(o) ? o : new Uint8Array(o);
8794
8805
  for (t = 0; t < e; t += 4)
8795
- l = g0[A.charCodeAt(t)], a = g0[A.charCodeAt(t + 1)], n = g0[A.charCodeAt(t + 2)], r = g0[A.charCodeAt(t + 3)], i[s++] = l << 2 | a >> 4, i[s++] = (a & 15) << 4 | n >> 2, i[s++] = (n & 3) << 6 | r & 63;
8806
+ l = g0[A.charCodeAt(t)], a = g0[A.charCodeAt(t + 1)], r = g0[A.charCodeAt(t + 2)], n = g0[A.charCodeAt(t + 3)], i[s++] = l << 2 | a >> 4, i[s++] = (a & 15) << 4 | r >> 2, i[s++] = (r & 3) << 6 | n & 63;
8796
8807
  return o;
8797
8808
  }, DB = function(A) {
8798
8809
  for (var c = A.length, e = [], t = 0; t < c; t += 2)
@@ -8807,8 +8818,8 @@ var _B = function(A) {
8807
8818
  }, jB = function(A, c, e) {
8808
8819
  return A.slice ? A.slice(c, e) : new Uint32Array(Array.prototype.slice.call(A, c, e));
8809
8820
  }, $B = function(A, c) {
8810
- var e = _B(A), t = Array.isArray(e) ? KB(e) : new Uint32Array(e), s = Array.isArray(e) ? DB(e) : new Uint16Array(e), l = 24, a = B5(s, l / 2, t[4] / 2), n = t[5] === 2 ? B5(s, (l + t[4]) / 2) : jB(t, Math.ceil((l + t[4]) / 4));
8811
- return new ZB(t[0], t[1], t[2], t[3], a, n);
8821
+ var e = _B(A), t = Array.isArray(e) ? KB(e) : new Uint32Array(e), s = Array.isArray(e) ? DB(e) : new Uint16Array(e), l = 24, a = B5(s, l / 2, t[4] / 2), r = t[5] === 2 ? B5(s, (l + t[4]) / 2) : jB(t, Math.ceil((l + t[4]) / 4));
8822
+ return new ZB(t[0], t[1], t[2], t[3], a, r);
8812
8823
  }, ZB = (
8813
8824
  /** @class */
8814
8825
  function() {
@@ -8873,9 +8884,9 @@ var cL = 1, _3 = 2, D3 = 3, z5 = 4, M5 = 5, eL = 7, w5 = 8, K3 = 9, O3 = 10, v5
8873
8884
  return K2;
8874
8885
  }
8875
8886
  if (l === R3 && a === R3) {
8876
- for (var n = 0; s === R3; )
8877
- n++, s = c[--t];
8878
- if (n % 2 === 0)
8887
+ for (var r = 0; s === R3; )
8888
+ r++, s = c[--t];
8889
+ if (r % 2 === 0)
8879
8890
  return K2;
8880
8891
  }
8881
8892
  return P3;
@@ -8888,8 +8899,8 @@ var cL = 1, _3 = 2, D3 = 3, z5 = 4, M5 = 5, eL = 7, w5 = 8, K3 = 9, O3 = 10, v5
8888
8899
  for (var a = K2; t < e && (a = nL(c, l, ++t)) === K2; )
8889
8900
  ;
8890
8901
  if (a !== K2 || t === e) {
8891
- var n = sL.apply(null, c.slice(s, t));
8892
- return s = t, { value: n, done: !1 };
8902
+ var r = sL.apply(null, c.slice(s, t));
8903
+ return s = t, { value: r, done: !1 };
8893
8904
  }
8894
8905
  return { done: !0, value: null };
8895
8906
  }
@@ -8916,16 +8927,16 @@ var cL = 1, _3 = 2, D3 = 3, z5 = 4, M5 = 5, eL = 7, w5 = 8, K3 = 9, O3 = 10, v5
8916
8927
  c.style.width = "50px", c.style.display = "block", c.style.fontSize = "12px", c.style.letterSpacing = "0px", c.style.wordSpacing = "0px", A.body.appendChild(c);
8917
8928
  var e = A.createRange();
8918
8929
  c.innerHTML = typeof "".repeat == "function" ? "&#128104;".repeat(10) : "";
8919
- var t = c.firstChild, s = Y4(t.data).map(function(r) {
8920
- return f2(r);
8921
- }), l = 0, a = {}, n = s.every(function(r, o) {
8922
- e.setStart(t, l), e.setEnd(t, l + r.length);
8930
+ var t = c.firstChild, s = Y4(t.data).map(function(n) {
8931
+ return f2(n);
8932
+ }), l = 0, a = {}, r = s.every(function(n, o) {
8933
+ e.setStart(t, l), e.setEnd(t, l + n.length);
8923
8934
  var i = e.getBoundingClientRect();
8924
- l += r.length;
8935
+ l += n.length;
8925
8936
  var f = i.x > a.x || i.y > a.y;
8926
8937
  return a = i, o === 0 ? !0 : f;
8927
8938
  });
8928
- return A.body.removeChild(c), n;
8939
+ return A.body.removeChild(c), r;
8929
8940
  }, uL = function() {
8930
8941
  return typeof new Image().crossOrigin < "u";
8931
8942
  }, mL = function() {
@@ -8953,20 +8964,20 @@ var cL = 1, _3 = 2, D3 = 3, z5 = 4, M5 = 5, eL = 7, w5 = 8, K3 = 9, O3 = 10, v5
8953
8964
  var s = new Image(), l = c.toDataURL();
8954
8965
  s.src = l;
8955
8966
  var a = L6(e, e, 0, 0, s);
8956
- return t.fillStyle = "red", t.fillRect(0, 0, e, e), b5(a).then(function(n) {
8957
- t.drawImage(n, 0, 0);
8958
- var r = t.getImageData(0, 0, e, e).data;
8967
+ return t.fillStyle = "red", t.fillRect(0, 0, e, e), b5(a).then(function(r) {
8968
+ t.drawImage(r, 0, 0);
8969
+ var n = t.getImageData(0, 0, e, e).data;
8959
8970
  t.fillStyle = "red", t.fillRect(0, 0, e, e);
8960
8971
  var o = A.createElement("div");
8961
- return o.style.backgroundImage = "url(" + l + ")", o.style.height = e + "px", y5(r) ? b5(L6(e, e, 0, 0, o)) : Promise.reject(!1);
8962
- }).then(function(n) {
8963
- return t.drawImage(n, 0, 0), y5(t.getImageData(0, 0, e, e).data);
8972
+ return o.style.backgroundImage = "url(" + l + ")", o.style.height = e + "px", y5(n) ? b5(L6(e, e, 0, 0, o)) : Promise.reject(!1);
8973
+ }).then(function(r) {
8974
+ return t.drawImage(r, 0, 0), y5(t.getImageData(0, 0, e, e).data);
8964
8975
  }).catch(function() {
8965
8976
  return !1;
8966
8977
  });
8967
8978
  }, L6 = function(A, c, e, t, s) {
8968
- var l = "http://www.w3.org/2000/svg", a = document.createElementNS(l, "svg"), n = document.createElementNS(l, "foreignObject");
8969
- return a.setAttributeNS(null, "width", A.toString()), a.setAttributeNS(null, "height", c.toString()), n.setAttributeNS(null, "width", "100%"), n.setAttributeNS(null, "height", "100%"), n.setAttributeNS(null, "x", e.toString()), n.setAttributeNS(null, "y", t.toString()), n.setAttributeNS(null, "externalResourcesRequired", "true"), a.appendChild(n), n.appendChild(s), a;
8979
+ var l = "http://www.w3.org/2000/svg", a = document.createElementNS(l, "svg"), r = document.createElementNS(l, "foreignObject");
8980
+ return a.setAttributeNS(null, "width", A.toString()), a.setAttributeNS(null, "height", c.toString()), r.setAttributeNS(null, "width", "100%"), r.setAttributeNS(null, "height", "100%"), r.setAttributeNS(null, "x", e.toString()), r.setAttributeNS(null, "y", t.toString()), r.setAttributeNS(null, "externalResourcesRequired", "true"), a.appendChild(r), r.appendChild(s), a;
8970
8981
  }, b5 = function(A) {
8971
8982
  return new Promise(function(c, e) {
8972
8983
  var t = new Image();
@@ -9017,24 +9028,24 @@ var cL = 1, _3 = 2, D3 = 3, z5 = 4, M5 = 5, eL = 7, w5 = 8, K3 = 9, O3 = 10, v5
9017
9028
  }()
9018
9029
  ), dL = function(A, c, e, t) {
9019
9030
  var s = BL(c, e), l = [], a = 0;
9020
- return s.forEach(function(n) {
9021
- if (e.textDecorationLine.length || n.trim().length > 0)
9031
+ return s.forEach(function(r) {
9032
+ if (e.textDecorationLine.length || r.trim().length > 0)
9022
9033
  if (M2.SUPPORT_RANGE_BOUNDS) {
9023
- var r = U5(t, a, n.length).getClientRects();
9024
- if (r.length > 1) {
9025
- var o = M8(n), i = 0;
9034
+ var n = U5(t, a, r.length).getClientRects();
9035
+ if (n.length > 1) {
9036
+ var o = M8(r), i = 0;
9026
9037
  o.forEach(function(u) {
9027
9038
  l.push(new Q0(u, n1.fromDOMRectList(A, U5(t, i + a, u.length).getClientRects()))), i += u.length;
9028
9039
  });
9029
9040
  } else
9030
- l.push(new Q0(n, n1.fromDOMRectList(A, r)));
9041
+ l.push(new Q0(r, n1.fromDOMRectList(A, n)));
9031
9042
  } else {
9032
- var f = t.splitText(n.length);
9033
- l.push(new Q0(n, gL(A, t))), t = f;
9043
+ var f = t.splitText(r.length);
9044
+ l.push(new Q0(r, gL(A, t))), t = f;
9034
9045
  }
9035
9046
  else
9036
- M2.SUPPORT_RANGE_BOUNDS || (t = t.splitText(n.length));
9037
- a += n.length;
9047
+ M2.SUPPORT_RANGE_BOUNDS || (t = t.splitText(r.length));
9048
+ a += r.length;
9038
9049
  }), l;
9039
9050
  }, gL = function(A, c) {
9040
9051
  var e = c.ownerDocument;
@@ -9081,10 +9092,10 @@ var cL = 1, _3 = 2, D3 = 3, z5 = 4, M5 = 5, eL = 7, w5 = 8, K3 = 9, O3 = 10, v5
9081
9092
  wordBreak: c.overflowWrap === "break-word" ? "break-word" : c.wordBreak
9082
9093
  }), t = [], s, l = function() {
9083
9094
  if (s.value) {
9084
- var a = s.value.slice(), n = Y4(a), r = "";
9085
- n.forEach(function(o) {
9086
- LL.indexOf(o) === -1 ? r += f2(o) : (r.length && t.push(r), t.push(f2(o)), r = "");
9087
- }), r.length && t.push(r);
9095
+ var a = s.value.slice(), r = Y4(a), n = "";
9096
+ r.forEach(function(o) {
9097
+ LL.indexOf(o) === -1 ? n += f2(o) : (n.length && t.push(n), t.push(f2(o)), n = "");
9098
+ }), n.length && t.push(n);
9088
9099
  }
9089
9100
  }; !(s = e.next()).done; )
9090
9101
  l();
@@ -9247,8 +9258,8 @@ var cL = 1, _3 = 2, D3 = 3, z5 = 4, M5 = 5, eL = 7, w5 = 8, K3 = 9, O3 = 10, v5
9247
9258
  e.textNodes.push(new ML(A, s, e.styles));
9248
9259
  else if (J1(s))
9249
9260
  if (q7(s) && s.assignedNodes)
9250
- s.assignedNodes().forEach(function(n) {
9251
- return z4(A, n, e, t);
9261
+ s.assignedNodes().forEach(function(r) {
9262
+ return z4(A, r, e, t);
9252
9263
  });
9253
9264
  else {
9254
9265
  var a = R7(A, s);
@@ -9322,14 +9333,14 @@ var cL = 1, _3 = 2, D3 = 3, z5 = 4, M5 = 5, eL = 7, w5 = 8, K3 = 9, O3 = 10, v5
9322
9333
  });
9323
9334
  }, A.prototype.parse = function(c) {
9324
9335
  var e = this, t = c.counterIncrement, s = c.counterReset, l = !0;
9325
- t !== null && t.forEach(function(n) {
9326
- var r = e.counters[n.counter];
9327
- r && n.increment !== 0 && (l = !1, r.length || r.push(1), r[Math.max(0, r.length - 1)] += n.increment);
9336
+ t !== null && t.forEach(function(r) {
9337
+ var n = e.counters[r.counter];
9338
+ n && r.increment !== 0 && (l = !1, n.length || n.push(1), n[Math.max(0, n.length - 1)] += r.increment);
9328
9339
  });
9329
9340
  var a = [];
9330
- return l && s.forEach(function(n) {
9331
- var r = e.counters[n.counter];
9332
- a.push(n.counter), r || (r = e.counters[n.counter] = []), r.push(n.reset);
9341
+ return l && s.forEach(function(r) {
9342
+ var n = e.counters[r.counter];
9343
+ a.push(r.counter), n || (n = e.counters[r.counter] = []), n.push(r.reset);
9333
9344
  }), a;
9334
9345
  }, A;
9335
9346
  }()
@@ -9572,9 +9583,9 @@ var cL = 1, _3 = 2, D3 = 3, z5 = 4, M5 = 5, eL = 7, w5 = 8, K3 = 9, O3 = 10, v5
9572
9583
  "ა"
9573
9584
  ]
9574
9585
  }, G1 = function(A, c, e, t, s, l) {
9575
- return A < c || A > e ? N0(A, s, l.length > 0) : t.integers.reduce(function(a, n, r) {
9576
- for (; A >= n; )
9577
- A -= n, a += t.values[r];
9586
+ return A < c || A > e ? N0(A, s, l.length > 0) : t.integers.reduce(function(a, r, n) {
9587
+ for (; A >= r; )
9588
+ A -= r, a += t.values[n];
9578
9589
  return a;
9579
9590
  }, "") + l;
9580
9591
  }, Y7 = function(A, c, e, t) {
@@ -9597,14 +9608,14 @@ var cL = 1, _3 = 2, D3 = 3, z5 = 4, M5 = 5, eL = 7, w5 = 8, K3 = 9, O3 = 10, v5
9597
9608
  }, X1 = 1, h1 = 2, p1 = 4, C0 = 8, s1 = function(A, c, e, t, s, l) {
9598
9609
  if (A < -9999 || A > 9999)
9599
9610
  return N0(A, 4, s.length > 0);
9600
- var a = Math.abs(A), n = s;
9611
+ var a = Math.abs(A), r = s;
9601
9612
  if (a === 0)
9602
- return c[0] + n;
9603
- for (var r = 0; a > 0 && r <= 4; r++) {
9613
+ return c[0] + r;
9614
+ for (var n = 0; a > 0 && n <= 4; n++) {
9604
9615
  var o = a % 10;
9605
- o === 0 && C2(l, X1) && n !== "" ? n = c[o] + n : o > 1 || o === 1 && r === 0 || o === 1 && r === 1 && C2(l, h1) || o === 1 && r === 1 && C2(l, p1) && A > 100 || o === 1 && r > 1 && C2(l, C0) ? n = c[o] + (r > 0 ? e[r - 1] : "") + n : o === 1 && r > 0 && (n = e[r - 1] + n), a = Math.floor(a / 10);
9616
+ o === 0 && C2(l, X1) && r !== "" ? r = c[o] + r : o > 1 || o === 1 && n === 0 || o === 1 && n === 1 && C2(l, h1) || o === 1 && n === 1 && C2(l, p1) && A > 100 || o === 1 && n > 1 && C2(l, C0) ? r = c[o] + (n > 0 ? e[n - 1] : "") + r : o === 1 && n > 0 && (r = e[n - 1] + r), a = Math.floor(a / 10);
9606
9617
  }
9607
- return (A < 0 ? t : "") + n;
9618
+ return (A < 0 ? t : "") + r;
9608
9619
  }, T5 = "十百千萬", _5 = "拾佰仟萬", D5 = "マイナス", G3 = "마이너스", N0 = function(A, c, e) {
9609
9620
  var t = e ? ". " : "", s = e ? "、" : "", l = e ? ", " : "", a = e ? " " : "";
9610
9621
  switch (c) {
@@ -9615,8 +9626,8 @@ var cL = 1, _3 = 2, D3 = 3, z5 = 4, M5 = 5, eL = 7, w5 = 8, K3 = 9, O3 = 10, v5
9615
9626
  case 2:
9616
9627
  return "◾" + a;
9617
9628
  case 5:
9618
- var n = o2(A, 48, 57, !0, t);
9619
- return n.length < 4 ? "0" + n : n;
9629
+ var r = o2(A, 48, 57, !0, t);
9630
+ return r.length < 4 ? "0" + r : r;
9620
9631
  case 4:
9621
9632
  return y1(A, "〇一二三四五六七八九", s);
9622
9633
  case 6:
@@ -9718,22 +9729,22 @@ var cL = 1, _3 = 2, D3 = 3, z5 = 4, M5 = 5, eL = 7, w5 = 8, K3 = 9, O3 = 10, v5
9718
9729
  var t = this, s = RL(c, e);
9719
9730
  if (!s.contentWindow)
9720
9731
  return Promise.reject("Unable to find iframe window");
9721
- var l = c.defaultView.pageXOffset, a = c.defaultView.pageYOffset, n = s.contentWindow, r = n.document, o = VL(s).then(function() {
9732
+ var l = c.defaultView.pageXOffset, a = c.defaultView.pageYOffset, r = s.contentWindow, n = r.document, o = VL(s).then(function() {
9722
9733
  return U2(t, void 0, void 0, function() {
9723
9734
  var i, f;
9724
9735
  return x2(this, function(u) {
9725
9736
  switch (u.label) {
9726
9737
  case 0:
9727
- return this.scrolledElements.forEach(YL), n && (n.scrollTo(e.left, e.top), /(iPad|iPhone|iPod)/g.test(navigator.userAgent) && (n.scrollY !== e.top || n.scrollX !== e.left) && (this.context.logger.warn("Unable to restore scroll position for cloned document"), this.context.windowBounds = this.context.windowBounds.add(n.scrollX - e.left, n.scrollY - e.top, 0, 0))), i = this.options.onclone, f = this.clonedReferenceElement, typeof f > "u" ? [2, Promise.reject("Error finding the " + this.referenceElement.nodeName + " in the cloned document")] : r.fonts && r.fonts.ready ? [4, r.fonts.ready] : [3, 2];
9738
+ return this.scrolledElements.forEach(YL), r && (r.scrollTo(e.left, e.top), /(iPad|iPhone|iPod)/g.test(navigator.userAgent) && (r.scrollY !== e.top || r.scrollX !== e.left) && (this.context.logger.warn("Unable to restore scroll position for cloned document"), this.context.windowBounds = this.context.windowBounds.add(r.scrollX - e.left, r.scrollY - e.top, 0, 0))), i = this.options.onclone, f = this.clonedReferenceElement, typeof f > "u" ? [2, Promise.reject("Error finding the " + this.referenceElement.nodeName + " in the cloned document")] : n.fonts && n.fonts.ready ? [4, n.fonts.ready] : [3, 2];
9728
9739
  case 1:
9729
9740
  u.sent(), u.label = 2;
9730
9741
  case 2:
9731
- return /(AppleWebKit)/g.test(navigator.userAgent) ? [4, GL(r)] : [3, 4];
9742
+ return /(AppleWebKit)/g.test(navigator.userAgent) ? [4, GL(n)] : [3, 4];
9732
9743
  case 3:
9733
9744
  u.sent(), u.label = 4;
9734
9745
  case 4:
9735
9746
  return typeof i == "function" ? [2, Promise.resolve().then(function() {
9736
- return i(r, f);
9747
+ return i(n, f);
9737
9748
  }).then(function() {
9738
9749
  return s;
9739
9750
  })] : [2, s];
@@ -9741,7 +9752,7 @@ var cL = 1, _3 = 2, D3 = 3, z5 = 4, M5 = 5, eL = 7, w5 = 8, K3 = 9, O3 = 10, v5
9741
9752
  });
9742
9753
  });
9743
9754
  });
9744
- return r.open(), r.write(XL(document.doctype) + "<html></html>"), qL(this.referenceElement.ownerDocument, l, a), r.replaceChild(r.adoptNode(this.documentElement), r.documentElement), r.close(), o;
9755
+ return n.open(), n.write(XL(document.doctype) + "<html></html>"), qL(this.referenceElement.ownerDocument, l, a), n.replaceChild(n.adoptNode(this.documentElement), n.documentElement), n.close(), o;
9745
9756
  }, A.prototype.createElementClone = function(c) {
9746
9757
  if (B6(
9747
9758
  c,
@@ -9792,10 +9803,10 @@ var cL = 1, _3 = 2, D3 = 3, z5 = 4, M5 = 5, eL = 7, w5 = 8, K3 = 9, O3 = 10, v5
9792
9803
  if (!this.options.allowTaint && l)
9793
9804
  a.putImageData(l.getImageData(0, 0, c.width, c.height), 0, 0);
9794
9805
  else {
9795
- var n = (e = c.getContext("webgl2")) !== null && e !== void 0 ? e : c.getContext("webgl");
9796
- if (n) {
9797
- var r = n.getContextAttributes();
9798
- (r == null ? void 0 : r.preserveDrawingBuffer) === !1 && this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false", c);
9806
+ var r = (e = c.getContext("webgl2")) !== null && e !== void 0 ? e : c.getContext("webgl");
9807
+ if (r) {
9808
+ var n = r.getContextAttributes();
9809
+ (n == null ? void 0 : n.preserveDrawingBuffer) === !1 && this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false", c);
9799
9810
  }
9800
9811
  a.drawImage(c, 0, 0);
9801
9812
  }
@@ -9821,8 +9832,8 @@ var cL = 1, _3 = 2, D3 = 3, z5 = 4, M5 = 5, eL = 7, w5 = 8, K3 = 9, O3 = 10, v5
9821
9832
  for (var s = this, l = c.shadowRoot ? c.shadowRoot.firstChild : c.firstChild; l; l = l.nextSibling)
9822
9833
  if (J1(l) && q7(l) && typeof l.assignedNodes == "function") {
9823
9834
  var a = l.assignedNodes();
9824
- a.length && a.forEach(function(n) {
9825
- return s.appendChildNode(e, n, t);
9835
+ a.length && a.forEach(function(r) {
9836
+ return s.appendChildNode(e, r, t);
9826
9837
  });
9827
9838
  } else
9828
9839
  this.appendChildNode(e, l, t);
@@ -9835,36 +9846,36 @@ var cL = 1, _3 = 2, D3 = 3, z5 = 4, M5 = 5, eL = 7, w5 = 8, K3 = 9, O3 = 10, v5
9835
9846
  if (t && J1(c) && (M6(c) || M4(c))) {
9836
9847
  var s = this.createElementClone(c);
9837
9848
  s.style.transitionProperty = "none";
9838
- var l = t.getComputedStyle(c), a = t.getComputedStyle(c, ":before"), n = t.getComputedStyle(c, ":after");
9849
+ var l = t.getComputedStyle(c), a = t.getComputedStyle(c, ":before"), r = t.getComputedStyle(c, ":after");
9839
9850
  this.referenceElement === c && M6(s) && (this.clonedReferenceElement = s), v8(s) && $L(s);
9840
- var r = this.counters.parse(new g5(this.context, l)), o = this.resolvePseudoContent(c, s, a, x0.BEFORE);
9851
+ var n = this.counters.parse(new g5(this.context, l)), o = this.resolvePseudoContent(c, s, a, x0.BEFORE);
9841
9852
  E5(c) && (e = !0), H5(c) || this.cloneChildNodes(c, s, e), o && s.insertBefore(o, s.firstChild);
9842
- var i = this.resolvePseudoContent(c, s, n, x0.AFTER);
9843
- return i && s.appendChild(i), this.counters.pop(r), (l && (this.options.copyStyles || M4(c)) && !X7(c) || e) && V3(l, s), (c.scrollTop !== 0 || c.scrollLeft !== 0) && this.scrolledElements.push([s, c.scrollLeft, c.scrollTop]), (E4(c) || k4(c)) && (E4(s) || k4(s)) && (s.value = c.value), s;
9853
+ var i = this.resolvePseudoContent(c, s, r, x0.AFTER);
9854
+ return i && s.appendChild(i), this.counters.pop(n), (l && (this.options.copyStyles || M4(c)) && !X7(c) || e) && V3(l, s), (c.scrollTop !== 0 || c.scrollLeft !== 0) && this.scrolledElements.push([s, c.scrollLeft, c.scrollTop]), (E4(c) || k4(c)) && (E4(s) || k4(s)) && (s.value = c.value), s;
9844
9855
  }
9845
9856
  return c.cloneNode(!1);
9846
9857
  }, A.prototype.resolvePseudoContent = function(c, e, t, s) {
9847
9858
  var l = this;
9848
9859
  if (t) {
9849
- var a = t.content, n = e.ownerDocument;
9850
- if (!(!n || !a || a === "none" || a === "-moz-alt-content" || t.display === "none")) {
9860
+ var a = t.content, r = e.ownerDocument;
9861
+ if (!(!r || !a || a === "none" || a === "-moz-alt-content" || t.display === "none")) {
9851
9862
  this.counters.parse(new g5(this.context, t));
9852
- var r = new EB(this.context, t), o = n.createElement("html2canvaspseudoelement");
9853
- V3(t, o), r.content.forEach(function(f) {
9863
+ var n = new EB(this.context, t), o = r.createElement("html2canvaspseudoelement");
9864
+ V3(t, o), n.content.forEach(function(f) {
9854
9865
  if (f.type === 0)
9855
- o.appendChild(n.createTextNode(f.value));
9866
+ o.appendChild(r.createTextNode(f.value));
9856
9867
  else if (f.type === 22) {
9857
- var u = n.createElement("img");
9868
+ var u = r.createElement("img");
9858
9869
  u.src = f.value, u.style.opacity = "1", o.appendChild(u);
9859
9870
  } else if (f.type === 18) {
9860
9871
  if (f.name === "attr") {
9861
9872
  var h = f.values.filter(J);
9862
- h.length && o.appendChild(n.createTextNode(c.getAttribute(h[0].value) || ""));
9873
+ h.length && o.appendChild(r.createTextNode(c.getAttribute(h[0].value) || ""));
9863
9874
  } else if (f.name === "counter") {
9864
9875
  var m = f.values.filter(c0), p = m[0], B = m[1];
9865
9876
  if (p && J(p)) {
9866
9877
  var g = l.counters.getCounterValue(p.value), d = B && J(B) ? C6.parse(l.context, B.value) : 3;
9867
- o.appendChild(n.createTextNode(N0(g, d, !1)));
9878
+ o.appendChild(r.createTextNode(N0(g, d, !1)));
9868
9879
  }
9869
9880
  } else if (f.name === "counters") {
9870
9881
  var L = f.values.filter(c0), p = L[0], w = L[1], B = L[2];
@@ -9872,19 +9883,19 @@ var cL = 1, _3 = 2, D3 = 3, z5 = 4, M5 = 5, eL = 7, w5 = 8, K3 = 9, O3 = 10, v5
9872
9883
  var v = l.counters.getCounterValues(p.value), z = B && J(B) ? C6.parse(l.context, B.value) : 3, S = w && w.type === 0 ? w.value : "", E = v.map(function(X) {
9873
9884
  return N0(X, z, !1);
9874
9885
  }).join(S);
9875
- o.appendChild(n.createTextNode(E));
9886
+ o.appendChild(r.createTextNode(E));
9876
9887
  }
9877
9888
  }
9878
9889
  } else if (f.type === 20)
9879
9890
  switch (f.value) {
9880
9891
  case "open-quote":
9881
- o.appendChild(n.createTextNode(d5(r.quotes, l.quoteDepth++, !0)));
9892
+ o.appendChild(r.createTextNode(d5(n.quotes, l.quoteDepth++, !0)));
9882
9893
  break;
9883
9894
  case "close-quote":
9884
- o.appendChild(n.createTextNode(d5(r.quotes, --l.quoteDepth, !1)));
9895
+ o.appendChild(r.createTextNode(d5(n.quotes, --l.quoteDepth, !1)));
9885
9896
  break;
9886
9897
  default:
9887
- o.appendChild(n.createTextNode(f.value));
9898
+ o.appendChild(r.createTextNode(f.value));
9888
9899
  }
9889
9900
  }), o.className = v6 + " " + Q6;
9890
9901
  var i = s === x0.BEFORE ? " " + v6 : " " + Q6;
@@ -9989,28 +10000,28 @@ var RL = function(A, c) {
9989
10000
  }, A.prototype.loadImage = function(c) {
9990
10001
  return U2(this, void 0, void 0, function() {
9991
10002
  var e, t, s, l, a = this;
9992
- return x2(this, function(n) {
9993
- switch (n.label) {
10003
+ return x2(this, function(r) {
10004
+ switch (r.label) {
9994
10005
  case 0:
9995
10006
  return e = j7.isSameOrigin(c), t = !W3(c) && this._options.useCORS === !0 && M2.SUPPORT_CORS_IMAGES && !e, s = !W3(c) && !e && !X3(c) && typeof this._options.proxy == "string" && M2.SUPPORT_CORS_XHR && !t, !e && this._options.allowTaint === !1 && !W3(c) && !X3(c) && !s && !t ? [
9996
10007
  2
9997
10008
  /*return*/
9998
10009
  ] : (l = c, s ? [4, this.proxy(l)] : [3, 2]);
9999
10010
  case 1:
10000
- l = n.sent(), n.label = 2;
10011
+ l = r.sent(), r.label = 2;
10001
10012
  case 2:
10002
- return this.context.logger.debug("Added image " + c.substring(0, 256)), [4, new Promise(function(r, o) {
10013
+ return this.context.logger.debug("Added image " + c.substring(0, 256)), [4, new Promise(function(n, o) {
10003
10014
  var i = new Image();
10004
10015
  i.onload = function() {
10005
- return r(i);
10016
+ return n(i);
10006
10017
  }, i.onerror = o, (lz(l) || t) && (i.crossOrigin = "anonymous"), i.src = l, i.complete === !0 && setTimeout(function() {
10007
- return r(i);
10018
+ return n(i);
10008
10019
  }, 500), a._options.imageTimeout > 0 && setTimeout(function() {
10009
10020
  return o("Timed out (" + a._options.imageTimeout + "ms) loading image");
10010
10021
  }, a._options.imageTimeout);
10011
10022
  })];
10012
10023
  case 3:
10013
- return [2, n.sent()];
10024
+ return [2, r.sent()];
10014
10025
  }
10015
10026
  });
10016
10027
  });
@@ -10024,30 +10035,30 @@ var RL = function(A, c) {
10024
10035
  throw new Error("No proxy defined");
10025
10036
  var s = c.substring(0, 256);
10026
10037
  return new Promise(function(l, a) {
10027
- var n = M2.SUPPORT_RESPONSE_TYPE ? "blob" : "text", r = new XMLHttpRequest();
10028
- r.onload = function() {
10029
- if (r.status === 200)
10030
- if (n === "text")
10031
- l(r.response);
10038
+ var r = M2.SUPPORT_RESPONSE_TYPE ? "blob" : "text", n = new XMLHttpRequest();
10039
+ n.onload = function() {
10040
+ if (n.status === 200)
10041
+ if (r === "text")
10042
+ l(n.response);
10032
10043
  else {
10033
10044
  var f = new FileReader();
10034
10045
  f.addEventListener("load", function() {
10035
10046
  return l(f.result);
10036
10047
  }, !1), f.addEventListener("error", function(u) {
10037
10048
  return a(u);
10038
- }, !1), f.readAsDataURL(r.response);
10049
+ }, !1), f.readAsDataURL(n.response);
10039
10050
  }
10040
10051
  else
10041
- a("Failed to proxy resource " + s + " with status code " + r.status);
10042
- }, r.onerror = a;
10052
+ a("Failed to proxy resource " + s + " with status code " + n.status);
10053
+ }, n.onerror = a;
10043
10054
  var o = t.indexOf("?") > -1 ? "&" : "?";
10044
- if (r.open("GET", "" + t + o + "url=" + encodeURIComponent(c) + "&responseType=" + n), n !== "text" && r instanceof XMLHttpRequest && (r.responseType = n), e._options.imageTimeout) {
10055
+ if (n.open("GET", "" + t + o + "url=" + encodeURIComponent(c) + "&responseType=" + r), r !== "text" && n instanceof XMLHttpRequest && (n.responseType = r), e._options.imageTimeout) {
10045
10056
  var i = e._options.imageTimeout;
10046
- r.timeout = i, r.ontimeout = function() {
10057
+ n.timeout = i, n.ontimeout = function() {
10047
10058
  return a("Timed out (" + i + "ms) proxying " + s);
10048
10059
  };
10049
10060
  }
10050
- r.send();
10061
+ n.send();
10051
10062
  });
10052
10063
  }, A;
10053
10064
  }()
@@ -10080,8 +10091,8 @@ var RL = function(A, c) {
10080
10091
  this.type = 1, this.start = c, this.startControl = e, this.endControl = t, this.end = s;
10081
10092
  }
10082
10093
  return A.prototype.subdivide = function(c, e) {
10083
- var t = V1(this.start, this.startControl, c), s = V1(this.startControl, this.endControl, c), l = V1(this.endControl, this.end, c), a = V1(t, s, c), n = V1(s, l, c), r = V1(a, n, c);
10084
- return e ? new A(this.start, t, a, r) : new A(r, n, l, this.end);
10094
+ var t = V1(this.start, this.startControl, c), s = V1(this.startControl, this.endControl, c), l = V1(this.endControl, this.end, c), a = V1(t, s, c), r = V1(s, l, c), n = V1(a, r, c);
10095
+ return e ? new A(this.start, t, a, n) : new A(n, r, l, this.end);
10085
10096
  }, A.prototype.add = function(c, e) {
10086
10097
  return new A(this.start.add(c, e), this.startControl.add(c, e), this.endControl.add(c, e), this.end.add(c, e));
10087
10098
  }, A.prototype.reverse = function() {
@@ -10094,12 +10105,12 @@ var RL = function(A, c) {
10094
10105
  /** @class */
10095
10106
  function() {
10096
10107
  function A(c) {
10097
- var e = c.styles, t = c.bounds, s = d0(e.borderTopLeftRadius, t.width, t.height), l = s[0], a = s[1], n = d0(e.borderTopRightRadius, t.width, t.height), r = n[0], o = n[1], i = d0(e.borderBottomRightRadius, t.width, t.height), f = i[0], u = i[1], h = d0(e.borderBottomLeftRadius, t.width, t.height), m = h[0], p = h[1], B = [];
10098
- B.push((l + r) / t.width), B.push((m + f) / t.width), B.push((a + p) / t.height), B.push((o + u) / t.height);
10108
+ var e = c.styles, t = c.bounds, s = d0(e.borderTopLeftRadius, t.width, t.height), l = s[0], a = s[1], r = d0(e.borderTopRightRadius, t.width, t.height), n = r[0], o = r[1], i = d0(e.borderBottomRightRadius, t.width, t.height), f = i[0], u = i[1], h = d0(e.borderBottomLeftRadius, t.width, t.height), m = h[0], p = h[1], B = [];
10109
+ B.push((l + n) / t.width), B.push((m + f) / t.width), B.push((a + p) / t.height), B.push((o + u) / t.height);
10099
10110
  var g = Math.max.apply(Math, B);
10100
- g > 1 && (l /= g, a /= g, r /= g, o /= g, f /= g, u /= g, m /= g, p /= g);
10101
- var d = t.width - r, L = t.height - u, w = t.width - f, v = t.height - p, z = e.borderTopWidth, S = e.borderRightWidth, E = e.borderBottomWidth, y = e.borderLeftWidth, N = A2(e.paddingTop, c.bounds.width), X = A2(e.paddingRight, c.bounds.width), j = A2(e.paddingBottom, c.bounds.width), _ = A2(e.paddingLeft, c.bounds.width);
10102
- this.topLeftBorderDoubleOuterBox = l > 0 || a > 0 ? t2(t.left + y / 3, t.top + z / 3, l - y / 3, a - z / 3, q.TOP_LEFT) : new b(t.left + y / 3, t.top + z / 3), this.topRightBorderDoubleOuterBox = l > 0 || a > 0 ? t2(t.left + d, t.top + z / 3, r - S / 3, o - z / 3, q.TOP_RIGHT) : new b(t.left + t.width - S / 3, t.top + z / 3), this.bottomRightBorderDoubleOuterBox = f > 0 || u > 0 ? t2(t.left + w, t.top + L, f - S / 3, u - E / 3, q.BOTTOM_RIGHT) : new b(t.left + t.width - S / 3, t.top + t.height - E / 3), this.bottomLeftBorderDoubleOuterBox = m > 0 || p > 0 ? t2(t.left + y / 3, t.top + v, m - y / 3, p - E / 3, q.BOTTOM_LEFT) : new b(t.left + y / 3, t.top + t.height - E / 3), this.topLeftBorderDoubleInnerBox = l > 0 || a > 0 ? t2(t.left + y * 2 / 3, t.top + z * 2 / 3, l - y * 2 / 3, a - z * 2 / 3, q.TOP_LEFT) : new b(t.left + y * 2 / 3, t.top + z * 2 / 3), this.topRightBorderDoubleInnerBox = l > 0 || a > 0 ? t2(t.left + d, t.top + z * 2 / 3, r - S * 2 / 3, o - z * 2 / 3, q.TOP_RIGHT) : new b(t.left + t.width - S * 2 / 3, t.top + z * 2 / 3), this.bottomRightBorderDoubleInnerBox = f > 0 || u > 0 ? t2(t.left + w, t.top + L, f - S * 2 / 3, u - E * 2 / 3, q.BOTTOM_RIGHT) : new b(t.left + t.width - S * 2 / 3, t.top + t.height - E * 2 / 3), this.bottomLeftBorderDoubleInnerBox = m > 0 || p > 0 ? t2(t.left + y * 2 / 3, t.top + v, m - y * 2 / 3, p - E * 2 / 3, q.BOTTOM_LEFT) : new b(t.left + y * 2 / 3, t.top + t.height - E * 2 / 3), this.topLeftBorderStroke = l > 0 || a > 0 ? t2(t.left + y / 2, t.top + z / 2, l - y / 2, a - z / 2, q.TOP_LEFT) : new b(t.left + y / 2, t.top + z / 2), this.topRightBorderStroke = l > 0 || a > 0 ? t2(t.left + d, t.top + z / 2, r - S / 2, o - z / 2, q.TOP_RIGHT) : new b(t.left + t.width - S / 2, t.top + z / 2), this.bottomRightBorderStroke = f > 0 || u > 0 ? t2(t.left + w, t.top + L, f - S / 2, u - E / 2, q.BOTTOM_RIGHT) : new b(t.left + t.width - S / 2, t.top + t.height - E / 2), this.bottomLeftBorderStroke = m > 0 || p > 0 ? t2(t.left + y / 2, t.top + v, m - y / 2, p - E / 2, q.BOTTOM_LEFT) : new b(t.left + y / 2, t.top + t.height - E / 2), this.topLeftBorderBox = l > 0 || a > 0 ? t2(t.left, t.top, l, a, q.TOP_LEFT) : new b(t.left, t.top), this.topRightBorderBox = r > 0 || o > 0 ? t2(t.left + d, t.top, r, o, q.TOP_RIGHT) : new b(t.left + t.width, t.top), this.bottomRightBorderBox = f > 0 || u > 0 ? t2(t.left + w, t.top + L, f, u, q.BOTTOM_RIGHT) : new b(t.left + t.width, t.top + t.height), this.bottomLeftBorderBox = m > 0 || p > 0 ? t2(t.left, t.top + v, m, p, q.BOTTOM_LEFT) : new b(t.left, t.top + t.height), this.topLeftPaddingBox = l > 0 || a > 0 ? t2(t.left + y, t.top + z, Math.max(0, l - y), Math.max(0, a - z), q.TOP_LEFT) : new b(t.left + y, t.top + z), this.topRightPaddingBox = r > 0 || o > 0 ? t2(t.left + Math.min(d, t.width - S), t.top + z, d > t.width + S ? 0 : Math.max(0, r - S), Math.max(0, o - z), q.TOP_RIGHT) : new b(t.left + t.width - S, t.top + z), this.bottomRightPaddingBox = f > 0 || u > 0 ? t2(t.left + Math.min(w, t.width - y), t.top + Math.min(L, t.height - E), Math.max(0, f - S), Math.max(0, u - E), q.BOTTOM_RIGHT) : new b(t.left + t.width - S, t.top + t.height - E), this.bottomLeftPaddingBox = m > 0 || p > 0 ? t2(t.left + y, t.top + Math.min(v, t.height - E), Math.max(0, m - y), Math.max(0, p - E), q.BOTTOM_LEFT) : new b(t.left + y, t.top + t.height - E), this.topLeftContentBox = l > 0 || a > 0 ? t2(t.left + y + _, t.top + z + N, Math.max(0, l - (y + _)), Math.max(0, a - (z + N)), q.TOP_LEFT) : new b(t.left + y + _, t.top + z + N), this.topRightContentBox = r > 0 || o > 0 ? t2(t.left + Math.min(d, t.width + y + _), t.top + z + N, d > t.width + y + _ ? 0 : r - y + _, o - (z + N), q.TOP_RIGHT) : new b(t.left + t.width - (S + X), t.top + z + N), this.bottomRightContentBox = f > 0 || u > 0 ? t2(t.left + Math.min(w, t.width - (y + _)), t.top + Math.min(L, t.height + z + N), Math.max(0, f - (S + X)), u - (E + j), q.BOTTOM_RIGHT) : new b(t.left + t.width - (S + X), t.top + t.height - (E + j)), this.bottomLeftContentBox = m > 0 || p > 0 ? t2(t.left + y + _, t.top + v, Math.max(0, m - (y + _)), p - (E + j), q.BOTTOM_LEFT) : new b(t.left + y + _, t.top + t.height - (E + j));
10111
+ g > 1 && (l /= g, a /= g, n /= g, o /= g, f /= g, u /= g, m /= g, p /= g);
10112
+ var d = t.width - n, L = t.height - u, w = t.width - f, v = t.height - p, z = e.borderTopWidth, S = e.borderRightWidth, E = e.borderBottomWidth, y = e.borderLeftWidth, N = A2(e.paddingTop, c.bounds.width), X = A2(e.paddingRight, c.bounds.width), j = A2(e.paddingBottom, c.bounds.width), _ = A2(e.paddingLeft, c.bounds.width);
10113
+ this.topLeftBorderDoubleOuterBox = l > 0 || a > 0 ? t2(t.left + y / 3, t.top + z / 3, l - y / 3, a - z / 3, q.TOP_LEFT) : new b(t.left + y / 3, t.top + z / 3), this.topRightBorderDoubleOuterBox = l > 0 || a > 0 ? t2(t.left + d, t.top + z / 3, n - S / 3, o - z / 3, q.TOP_RIGHT) : new b(t.left + t.width - S / 3, t.top + z / 3), this.bottomRightBorderDoubleOuterBox = f > 0 || u > 0 ? t2(t.left + w, t.top + L, f - S / 3, u - E / 3, q.BOTTOM_RIGHT) : new b(t.left + t.width - S / 3, t.top + t.height - E / 3), this.bottomLeftBorderDoubleOuterBox = m > 0 || p > 0 ? t2(t.left + y / 3, t.top + v, m - y / 3, p - E / 3, q.BOTTOM_LEFT) : new b(t.left + y / 3, t.top + t.height - E / 3), this.topLeftBorderDoubleInnerBox = l > 0 || a > 0 ? t2(t.left + y * 2 / 3, t.top + z * 2 / 3, l - y * 2 / 3, a - z * 2 / 3, q.TOP_LEFT) : new b(t.left + y * 2 / 3, t.top + z * 2 / 3), this.topRightBorderDoubleInnerBox = l > 0 || a > 0 ? t2(t.left + d, t.top + z * 2 / 3, n - S * 2 / 3, o - z * 2 / 3, q.TOP_RIGHT) : new b(t.left + t.width - S * 2 / 3, t.top + z * 2 / 3), this.bottomRightBorderDoubleInnerBox = f > 0 || u > 0 ? t2(t.left + w, t.top + L, f - S * 2 / 3, u - E * 2 / 3, q.BOTTOM_RIGHT) : new b(t.left + t.width - S * 2 / 3, t.top + t.height - E * 2 / 3), this.bottomLeftBorderDoubleInnerBox = m > 0 || p > 0 ? t2(t.left + y * 2 / 3, t.top + v, m - y * 2 / 3, p - E * 2 / 3, q.BOTTOM_LEFT) : new b(t.left + y * 2 / 3, t.top + t.height - E * 2 / 3), this.topLeftBorderStroke = l > 0 || a > 0 ? t2(t.left + y / 2, t.top + z / 2, l - y / 2, a - z / 2, q.TOP_LEFT) : new b(t.left + y / 2, t.top + z / 2), this.topRightBorderStroke = l > 0 || a > 0 ? t2(t.left + d, t.top + z / 2, n - S / 2, o - z / 2, q.TOP_RIGHT) : new b(t.left + t.width - S / 2, t.top + z / 2), this.bottomRightBorderStroke = f > 0 || u > 0 ? t2(t.left + w, t.top + L, f - S / 2, u - E / 2, q.BOTTOM_RIGHT) : new b(t.left + t.width - S / 2, t.top + t.height - E / 2), this.bottomLeftBorderStroke = m > 0 || p > 0 ? t2(t.left + y / 2, t.top + v, m - y / 2, p - E / 2, q.BOTTOM_LEFT) : new b(t.left + y / 2, t.top + t.height - E / 2), this.topLeftBorderBox = l > 0 || a > 0 ? t2(t.left, t.top, l, a, q.TOP_LEFT) : new b(t.left, t.top), this.topRightBorderBox = n > 0 || o > 0 ? t2(t.left + d, t.top, n, o, q.TOP_RIGHT) : new b(t.left + t.width, t.top), this.bottomRightBorderBox = f > 0 || u > 0 ? t2(t.left + w, t.top + L, f, u, q.BOTTOM_RIGHT) : new b(t.left + t.width, t.top + t.height), this.bottomLeftBorderBox = m > 0 || p > 0 ? t2(t.left, t.top + v, m, p, q.BOTTOM_LEFT) : new b(t.left, t.top + t.height), this.topLeftPaddingBox = l > 0 || a > 0 ? t2(t.left + y, t.top + z, Math.max(0, l - y), Math.max(0, a - z), q.TOP_LEFT) : new b(t.left + y, t.top + z), this.topRightPaddingBox = n > 0 || o > 0 ? t2(t.left + Math.min(d, t.width - S), t.top + z, d > t.width + S ? 0 : Math.max(0, n - S), Math.max(0, o - z), q.TOP_RIGHT) : new b(t.left + t.width - S, t.top + z), this.bottomRightPaddingBox = f > 0 || u > 0 ? t2(t.left + Math.min(w, t.width - y), t.top + Math.min(L, t.height - E), Math.max(0, f - S), Math.max(0, u - E), q.BOTTOM_RIGHT) : new b(t.left + t.width - S, t.top + t.height - E), this.bottomLeftPaddingBox = m > 0 || p > 0 ? t2(t.left + y, t.top + Math.min(v, t.height - E), Math.max(0, m - y), Math.max(0, p - E), q.BOTTOM_LEFT) : new b(t.left + y, t.top + t.height - E), this.topLeftContentBox = l > 0 || a > 0 ? t2(t.left + y + _, t.top + z + N, Math.max(0, l - (y + _)), Math.max(0, a - (z + N)), q.TOP_LEFT) : new b(t.left + y + _, t.top + z + N), this.topRightContentBox = n > 0 || o > 0 ? t2(t.left + Math.min(d, t.width + y + _), t.top + z + N, d > t.width + y + _ ? 0 : n - y + _, o - (z + N), q.TOP_RIGHT) : new b(t.left + t.width - (S + X), t.top + z + N), this.bottomRightContentBox = f > 0 || u > 0 ? t2(t.left + Math.min(w, t.width - (y + _)), t.top + Math.min(L, t.height + z + N), Math.max(0, f - (S + X)), u - (E + j), q.BOTTOM_RIGHT) : new b(t.left + t.width - (S + X), t.top + t.height - (E + j)), this.bottomLeftContentBox = m > 0 || p > 0 ? t2(t.left + y + _, t.top + v, Math.max(0, m - (y + _)), p - (E + j), q.BOTTOM_LEFT) : new b(t.left + y + _, t.top + t.height - (E + j));
10103
10114
  }
10104
10115
  return A;
10105
10116
  }()
@@ -10108,17 +10119,17 @@ var RL = function(A, c) {
10108
10119
  A[A.TOP_LEFT = 0] = "TOP_LEFT", A[A.TOP_RIGHT = 1] = "TOP_RIGHT", A[A.BOTTOM_RIGHT = 2] = "BOTTOM_RIGHT", A[A.BOTTOM_LEFT = 3] = "BOTTOM_LEFT";
10109
10120
  })(q || (q = {}));
10110
10121
  var t2 = function(A, c, e, t, s) {
10111
- var l = 4 * ((Math.sqrt(2) - 1) / 3), a = e * l, n = t * l, r = A + e, o = c + t;
10122
+ var l = 4 * ((Math.sqrt(2) - 1) / 3), a = e * l, r = t * l, n = A + e, o = c + t;
10112
10123
  switch (s) {
10113
10124
  case q.TOP_LEFT:
10114
- return new u4(new b(A, o), new b(A, o - n), new b(r - a, c), new b(r, c));
10125
+ return new u4(new b(A, o), new b(A, o - r), new b(n - a, c), new b(n, c));
10115
10126
  case q.TOP_RIGHT:
10116
- return new u4(new b(A, c), new b(A + a, c), new b(r, o - n), new b(r, o));
10127
+ return new u4(new b(A, c), new b(A + a, c), new b(n, o - r), new b(n, o));
10117
10128
  case q.BOTTOM_RIGHT:
10118
- return new u4(new b(r, c), new b(r, c + n), new b(A + a, o), new b(A, o));
10129
+ return new u4(new b(n, c), new b(n, c + r), new b(A + a, o), new b(A, o));
10119
10130
  case q.BOTTOM_LEFT:
10120
10131
  default:
10121
- return new u4(new b(r, o), new b(r - a, o), new b(A, c + n), new b(A, c));
10132
+ return new u4(new b(n, o), new b(n - a, o), new b(A, c + r), new b(A, c));
10122
10133
  }
10123
10134
  }, I4 = function(A) {
10124
10135
  return [A.topLeftBorderBox, A.topRightBorderBox, A.bottomRightBorderBox, A.bottomLeftBorderBox];
@@ -10201,8 +10212,8 @@ var t2 = function(A, c, e, t, s) {
10201
10212
  this.effects.push(new iz(t, s, l));
10202
10213
  }
10203
10214
  if (this.container.styles.overflowX !== 0) {
10204
- var a = I4(this.curves), n = T4(this.curves);
10205
- R5(a, n) ? this.effects.push(new m4(
10215
+ var a = I4(this.curves), r = T4(this.curves);
10216
+ R5(a, r) ? this.effects.push(new m4(
10206
10217
  a,
10207
10218
  6
10208
10219
  /* CONTENT */
@@ -10211,7 +10222,7 @@ var t2 = function(A, c, e, t, s) {
10211
10222
  2
10212
10223
  /* BACKGROUND_BORDERS */
10213
10224
  )), this.effects.push(new m4(
10214
- n,
10225
+ r,
10215
10226
  4
10216
10227
  /* CONTENT */
10217
10228
  )));
@@ -10223,8 +10234,8 @@ var t2 = function(A, c, e, t, s) {
10223
10234
  3
10224
10235
  /* FIXED */
10225
10236
  ].indexOf(this.container.styles.position) === -1, t = this.parent, s = this.effects.slice(0); t; ) {
10226
- var l = t.effects.filter(function(r) {
10227
- return !$7(r);
10237
+ var l = t.effects.filter(function(n) {
10238
+ return !$7(n);
10228
10239
  });
10229
10240
  if (e || t.container.styles.position !== 0 || !t.parent) {
10230
10241
  if (s.unshift.apply(s, l), e = [
@@ -10232,9 +10243,9 @@ var t2 = function(A, c, e, t, s) {
10232
10243
  3
10233
10244
  /* FIXED */
10234
10245
  ].indexOf(t.container.styles.position) === -1, t.container.styles.overflowX !== 0) {
10235
- var a = I4(t.curves), n = T4(t.curves);
10236
- R5(a, n) || s.unshift(new m4(
10237
- n,
10246
+ var a = I4(t.curves), r = T4(t.curves);
10247
+ R5(a, r) || s.unshift(new m4(
10248
+ r,
10238
10249
  6
10239
10250
  /* CONTENT */
10240
10251
  ));
@@ -10243,8 +10254,8 @@ var t2 = function(A, c, e, t, s) {
10243
10254
  s.unshift.apply(s, l);
10244
10255
  t = t.parent;
10245
10256
  }
10246
- return s.filter(function(r) {
10247
- return C2(r.target, c);
10257
+ return s.filter(function(n) {
10258
+ return C2(n.target, c);
10248
10259
  });
10249
10260
  }, A;
10250
10261
  }()
@@ -10258,19 +10269,19 @@ var t2 = function(A, c, e, t, s) {
10258
10269
  s.flags,
10259
10270
  2
10260
10271
  /* CREATES_STACKING_CONTEXT */
10261
- ), n = new Ae(s, A);
10272
+ ), r = new Ae(s, A);
10262
10273
  C2(
10263
10274
  s.styles.display,
10264
10275
  2048
10265
10276
  /* LIST_ITEM */
10266
- ) && t.push(n);
10267
- var r = C2(
10277
+ ) && t.push(r);
10278
+ var n = C2(
10268
10279
  s.flags,
10269
10280
  8
10270
10281
  /* IS_LIST_OWNER */
10271
10282
  ) ? [] : t;
10272
10283
  if (l || a) {
10273
- var o = l || s.styles.isPositioned() ? e : c, i = new Z7(n);
10284
+ var o = l || s.styles.isPositioned() ? e : c, i = new Z7(r);
10274
10285
  if (s.styles.isPositioned() || s.styles.opacity < 1 || s.styles.isTransformed()) {
10275
10286
  var f = s.styles.zIndex.order;
10276
10287
  if (f < 0) {
@@ -10287,14 +10298,14 @@ var t2 = function(A, c, e, t, s) {
10287
10298
  o.zeroOrAutoZIndexOrTransformedOrOpacity.push(i);
10288
10299
  } else
10289
10300
  s.styles.isFloating() ? o.nonPositionedFloats.push(i) : o.nonPositionedInlineLevel.push(i);
10290
- x6(n, i, l ? i : e, r);
10301
+ x6(r, i, l ? i : e, n);
10291
10302
  } else
10292
- s.styles.isInlineLevel() ? c.inlineLevel.push(n) : c.nonInlineLevel.push(n), x6(n, c, e, r);
10303
+ s.styles.isInlineLevel() ? c.inlineLevel.push(r) : c.nonInlineLevel.push(r), x6(r, c, e, n);
10293
10304
  C2(
10294
10305
  s.flags,
10295
10306
  8
10296
10307
  /* IS_LIST_OWNER */
10297
- ) && ce(s, r);
10308
+ ) && ce(s, n);
10298
10309
  });
10299
10310
  }, ce = function(A, c) {
10300
10311
  for (var e = A instanceof z6 ? A.start : 1, t = A instanceof z6 ? A.reversed : !1, s = 0; s < c.length; s++) {
@@ -10369,19 +10380,19 @@ var t2 = function(A, c, e, t, s) {
10369
10380
  }, Bz = function(A, c) {
10370
10381
  return A === 0 ? c.bounds : A === 2 ? _4(c) : ee(c);
10371
10382
  }, q3 = function(A, c, e) {
10372
- var t = Cz(q1(A.styles.backgroundOrigin, c), A), s = Bz(q1(A.styles.backgroundClip, c), A), l = Lz(q1(A.styles.backgroundSize, c), e, t), a = l[0], n = l[1], r = d0(q1(A.styles.backgroundPosition, c), t.width - a, t.height - n), o = zz(q1(A.styles.backgroundRepeat, c), r, l, t, s), i = Math.round(t.left + r[0]), f = Math.round(t.top + r[1]);
10373
- return [o, i, f, a, n];
10383
+ var t = Cz(q1(A.styles.backgroundOrigin, c), A), s = Bz(q1(A.styles.backgroundClip, c), A), l = Lz(q1(A.styles.backgroundSize, c), e, t), a = l[0], r = l[1], n = d0(q1(A.styles.backgroundPosition, c), t.width - a, t.height - r), o = zz(q1(A.styles.backgroundRepeat, c), n, l, t, s), i = Math.round(t.left + n[0]), f = Math.round(t.top + n[1]);
10384
+ return [o, i, f, a, r];
10374
10385
  }, W1 = function(A) {
10375
10386
  return J(A) && A.value === $1.AUTO;
10376
10387
  }, p4 = function(A) {
10377
10388
  return typeof A == "number";
10378
10389
  }, Lz = function(A, c, e) {
10379
- var t = c[0], s = c[1], l = c[2], a = A[0], n = A[1];
10390
+ var t = c[0], s = c[1], l = c[2], a = A[0], r = A[1];
10380
10391
  if (!a)
10381
10392
  return [0, 0];
10382
- if (m2(a) && n && m2(n))
10383
- return [A2(a, e.width), A2(n, e.height)];
10384
- var r = p4(l);
10393
+ if (m2(a) && r && m2(r))
10394
+ return [A2(a, e.width), A2(r, e.height)];
10395
+ var n = p4(l);
10385
10396
  if (J(a) && (a.value === $1.CONTAIN || a.value === $1.COVER)) {
10386
10397
  if (p4(l)) {
10387
10398
  var o = e.width / e.height;
@@ -10390,52 +10401,52 @@ var t2 = function(A, c, e, t, s) {
10390
10401
  return [e.width, e.height];
10391
10402
  }
10392
10403
  var i = p4(t), f = p4(s), u = i || f;
10393
- if (W1(a) && (!n || W1(n))) {
10404
+ if (W1(a) && (!r || W1(r))) {
10394
10405
  if (i && f)
10395
10406
  return [t, s];
10396
- if (!r && !u)
10407
+ if (!n && !u)
10397
10408
  return [e.width, e.height];
10398
- if (u && r) {
10409
+ if (u && n) {
10399
10410
  var h = i ? t : s * l, m = f ? s : t / l;
10400
10411
  return [h, m];
10401
10412
  }
10402
10413
  var p = i ? t : e.width, B = f ? s : e.height;
10403
10414
  return [p, B];
10404
10415
  }
10405
- if (r) {
10416
+ if (n) {
10406
10417
  var g = 0, d = 0;
10407
- return m2(a) ? g = A2(a, e.width) : m2(n) && (d = A2(n, e.height)), W1(a) ? g = d * l : (!n || W1(n)) && (d = g / l), [g, d];
10418
+ return m2(a) ? g = A2(a, e.width) : m2(r) && (d = A2(r, e.height)), W1(a) ? g = d * l : (!r || W1(r)) && (d = g / l), [g, d];
10408
10419
  }
10409
10420
  var L = null, w = null;
10410
- if (m2(a) ? L = A2(a, e.width) : n && m2(n) && (w = A2(n, e.height)), L !== null && (!n || W1(n)) && (w = i && f ? L / t * s : e.height), w !== null && W1(a) && (L = i && f ? w / s * t : e.width), L !== null && w !== null)
10421
+ if (m2(a) ? L = A2(a, e.width) : r && m2(r) && (w = A2(r, e.height)), L !== null && (!r || W1(r)) && (w = i && f ? L / t * s : e.height), w !== null && W1(a) && (L = i && f ? w / s * t : e.width), L !== null && w !== null)
10411
10422
  return [L, w];
10412
10423
  throw new Error("Unable to calculate background-size for element");
10413
10424
  }, q1 = function(A, c) {
10414
10425
  var e = A[c];
10415
10426
  return typeof e > "u" ? A[0] : e;
10416
10427
  }, zz = function(A, c, e, t, s) {
10417
- var l = c[0], a = c[1], n = e[0], r = e[1];
10428
+ var l = c[0], a = c[1], r = e[0], n = e[1];
10418
10429
  switch (A) {
10419
10430
  case 2:
10420
10431
  return [
10421
10432
  new b(Math.round(t.left), Math.round(t.top + a)),
10422
10433
  new b(Math.round(t.left + t.width), Math.round(t.top + a)),
10423
- new b(Math.round(t.left + t.width), Math.round(r + t.top + a)),
10424
- new b(Math.round(t.left), Math.round(r + t.top + a))
10434
+ new b(Math.round(t.left + t.width), Math.round(n + t.top + a)),
10435
+ new b(Math.round(t.left), Math.round(n + t.top + a))
10425
10436
  ];
10426
10437
  case 3:
10427
10438
  return [
10428
10439
  new b(Math.round(t.left + l), Math.round(t.top)),
10429
- new b(Math.round(t.left + l + n), Math.round(t.top)),
10430
- new b(Math.round(t.left + l + n), Math.round(t.height + t.top)),
10440
+ new b(Math.round(t.left + l + r), Math.round(t.top)),
10441
+ new b(Math.round(t.left + l + r), Math.round(t.height + t.top)),
10431
10442
  new b(Math.round(t.left + l), Math.round(t.height + t.top))
10432
10443
  ];
10433
10444
  case 1:
10434
10445
  return [
10435
10446
  new b(Math.round(t.left + l), Math.round(t.top + a)),
10436
- new b(Math.round(t.left + l + n), Math.round(t.top + a)),
10437
- new b(Math.round(t.left + l + n), Math.round(t.top + a + r)),
10438
- new b(Math.round(t.left + l), Math.round(t.top + a + r))
10447
+ new b(Math.round(t.left + l + r), Math.round(t.top + a)),
10448
+ new b(Math.round(t.left + l + r), Math.round(t.top + a + n)),
10449
+ new b(Math.round(t.left + l), Math.round(t.top + a + n))
10439
10450
  ];
10440
10451
  default:
10441
10452
  return [
@@ -10454,10 +10465,10 @@ var t2 = function(A, c, e, t, s) {
10454
10465
  return A.prototype.parseMetrics = function(c, e) {
10455
10466
  var t = this._document.createElement("div"), s = this._document.createElement("img"), l = this._document.createElement("span"), a = this._document.body;
10456
10467
  t.style.visibility = "hidden", t.style.fontFamily = c, t.style.fontSize = e, t.style.margin = "0", t.style.padding = "0", t.style.whiteSpace = "nowrap", a.appendChild(t), s.src = Mz, s.width = 1, s.height = 1, s.style.margin = "0", s.style.padding = "0", s.style.verticalAlign = "baseline", l.style.fontFamily = c, l.style.fontSize = e, l.style.margin = "0", l.style.padding = "0", l.appendChild(this._document.createTextNode(G5)), t.appendChild(l), t.appendChild(s);
10457
- var n = s.offsetTop - l.offsetTop + 2;
10468
+ var r = s.offsetTop - l.offsetTop + 2;
10458
10469
  t.removeChild(l), t.appendChild(this._document.createTextNode(G5)), t.style.lineHeight = "normal", s.style.verticalAlign = "super";
10459
- var r = s.offsetTop - t.offsetTop + 2;
10460
- return a.removeChild(t), { baseline: n, middle: r };
10470
+ var n = s.offsetTop - t.offsetTop + 2;
10471
+ return a.removeChild(t), { baseline: r, middle: n };
10461
10472
  }, A.prototype.getMetrics = function(c, e) {
10462
10473
  var t = c + " " + e;
10463
10474
  return typeof this._data[t] > "u" && (this._data[t] = this.parseMetrics(c, e)), this._data[t];
@@ -10536,8 +10547,8 @@ var t2 = function(A, c, e, t, s) {
10536
10547
  this.ctx.fillText(e.text, e.bounds.left, e.bounds.top + s);
10537
10548
  else {
10538
10549
  var a = M8(e.text);
10539
- a.reduce(function(n, r) {
10540
- return l.ctx.fillText(r, n, e.bounds.top + s), n + l.ctx.measureText(r).width;
10550
+ a.reduce(function(r, n) {
10551
+ return l.ctx.fillText(n, r, e.bounds.top + s), r + l.ctx.measureText(n).width;
10541
10552
  }, e.bounds.left);
10542
10553
  }
10543
10554
  }, c.prototype.createFontStyle = function(e) {
@@ -10551,9 +10562,9 @@ var t2 = function(A, c, e, t, s) {
10551
10562
  ];
10552
10563
  }, c.prototype.renderTextNode = function(e, t) {
10553
10564
  return U2(this, void 0, void 0, function() {
10554
- var s, l, a, n, r, o, i, f, u = this;
10565
+ var s, l, a, r, n, o, i, f, u = this;
10555
10566
  return x2(this, function(h) {
10556
- return s = this.createFontStyle(t), l = s[0], a = s[1], n = s[2], this.ctx.font = l, this.ctx.direction = t.direction === 1 ? "rtl" : "ltr", this.ctx.textAlign = "left", this.ctx.textBaseline = "alphabetic", r = this.fontMetrics.getMetrics(a, n), o = r.baseline, i = r.middle, f = t.paintOrder, e.textBounds.forEach(function(m) {
10567
+ return s = this.createFontStyle(t), l = s[0], a = s[1], r = s[2], this.ctx.font = l, this.ctx.direction = t.direction === 1 ? "rtl" : "ltr", this.ctx.textAlign = "left", this.ctx.textBaseline = "alphabetic", n = this.fontMetrics.getMetrics(a, r), o = n.baseline, i = n.middle, f = t.paintOrder, e.textBounds.forEach(function(m) {
10557
10568
  f.forEach(function(p) {
10558
10569
  switch (p) {
10559
10570
  case 0:
@@ -10593,16 +10604,16 @@ var t2 = function(A, c, e, t, s) {
10593
10604
  }
10594
10605
  }, c.prototype.renderNodeContent = function(e) {
10595
10606
  return U2(this, void 0, void 0, function() {
10596
- var t, s, l, a, n, r, d, d, o, i, f, u, w, h, m, v, p, B, g, d, L, w, v;
10607
+ var t, s, l, a, r, n, d, d, o, i, f, u, w, h, m, v, p, B, g, d, L, w, v;
10597
10608
  return x2(this, function(z) {
10598
10609
  switch (z.label) {
10599
10610
  case 0:
10600
10611
  this.applyEffects(e.getEffects(
10601
10612
  4
10602
10613
  /* CONTENT */
10603
- )), t = e.container, s = e.curves, l = t.styles, a = 0, n = t.textNodes, z.label = 1;
10614
+ )), t = e.container, s = e.curves, l = t.styles, a = 0, r = t.textNodes, z.label = 1;
10604
10615
  case 1:
10605
- return a < n.length ? (r = n[a], [4, this.renderTextNode(r, l)]) : [3, 4];
10616
+ return a < r.length ? (n = r[a], [4, this.renderTextNode(n, l)]) : [3, 4];
10606
10617
  case 2:
10607
10618
  z.sent(), z.label = 3;
10608
10619
  case 3:
@@ -10694,7 +10705,7 @@ var t2 = function(A, c, e, t, s) {
10694
10705
  });
10695
10706
  }, c.prototype.renderStackContent = function(e) {
10696
10707
  return U2(this, void 0, void 0, function() {
10697
- var t, s, g, l, a, g, n, r, g, o, i, g, f, u, g, h, m, g, p, B, g;
10708
+ var t, s, g, l, a, g, r, n, g, o, i, g, f, u, g, h, m, g, p, B, g;
10698
10709
  return x2(this, function(d) {
10699
10710
  switch (d.label) {
10700
10711
  case 0:
@@ -10724,13 +10735,13 @@ var t2 = function(A, c, e, t, s) {
10724
10735
  case 9:
10725
10736
  return l++, [3, 7];
10726
10737
  case 10:
10727
- n = 0, r = e.nonPositionedFloats, d.label = 11;
10738
+ r = 0, n = e.nonPositionedFloats, d.label = 11;
10728
10739
  case 11:
10729
- return n < r.length ? (g = r[n], [4, this.renderStack(g)]) : [3, 14];
10740
+ return r < n.length ? (g = n[r], [4, this.renderStack(g)]) : [3, 14];
10730
10741
  case 12:
10731
10742
  d.sent(), d.label = 13;
10732
10743
  case 13:
10733
- return n++, [3, 11];
10744
+ return r++, [3, 11];
10734
10745
  case 14:
10735
10746
  o = 0, i = e.nonPositionedInlineLevel, d.label = 15;
10736
10747
  case 15:
@@ -10787,13 +10798,13 @@ var t2 = function(A, c, e, t, s) {
10787
10798
  var l;
10788
10799
  if (e.width === t && e.height === s)
10789
10800
  return e;
10790
- var a = (l = this.canvas.ownerDocument) !== null && l !== void 0 ? l : document, n = a.createElement("canvas");
10791
- n.width = Math.max(1, t), n.height = Math.max(1, s);
10792
- var r = n.getContext("2d");
10793
- return r.drawImage(e, 0, 0, e.width, e.height, 0, 0, t, s), n;
10801
+ var a = (l = this.canvas.ownerDocument) !== null && l !== void 0 ? l : document, r = a.createElement("canvas");
10802
+ r.width = Math.max(1, t), r.height = Math.max(1, s);
10803
+ var n = r.getContext("2d");
10804
+ return n.drawImage(e, 0, 0, e.width, e.height, 0, 0, t, s), r;
10794
10805
  }, c.prototype.renderBackgroundImage = function(e) {
10795
10806
  return U2(this, void 0, void 0, function() {
10796
- var t, s, l, a, n, r;
10807
+ var t, s, l, a, r, n;
10797
10808
  return x2(this, function(o) {
10798
10809
  switch (o.label) {
10799
10810
  case 0:
@@ -10834,9 +10845,9 @@ var t2 = function(A, c, e, t, s) {
10834
10845
  ];
10835
10846
  }
10836
10847
  });
10837
- }, l = this, a = 0, n = e.styles.backgroundImage.slice(0).reverse(), o.label = 1;
10848
+ }, l = this, a = 0, r = e.styles.backgroundImage.slice(0).reverse(), o.label = 1;
10838
10849
  case 1:
10839
- return a < n.length ? (r = n[a], [5, s(r)]) : [3, 4];
10850
+ return a < r.length ? (n = r[a], [5, s(n)]) : [3, 4];
10840
10851
  case 2:
10841
10852
  o.sent(), o.label = 3;
10842
10853
  case 3:
@@ -10860,18 +10871,18 @@ var t2 = function(A, c, e, t, s) {
10860
10871
  });
10861
10872
  }, c.prototype.renderDoubleBorder = function(e, t, s, l) {
10862
10873
  return U2(this, void 0, void 0, function() {
10863
- var a, n;
10864
- return x2(this, function(r) {
10865
- switch (r.label) {
10874
+ var a, r;
10875
+ return x2(this, function(n) {
10876
+ switch (n.label) {
10866
10877
  case 0:
10867
10878
  return t < 3 ? [4, this.renderSolidBorder(e, s, l)] : [3, 2];
10868
10879
  case 1:
10869
- return r.sent(), [
10880
+ return n.sent(), [
10870
10881
  2
10871
10882
  /*return*/
10872
10883
  ];
10873
10884
  case 2:
10874
- return a = pz(l, s), this.path(a), this.ctx.fillStyle = B2(e), this.ctx.fill(), n = dz(l, s), this.path(n), this.ctx.fill(), [
10885
+ return a = pz(l, s), this.path(a), this.ctx.fillStyle = B2(e), this.ctx.fill(), r = dz(l, s), this.path(r), this.ctx.fill(), [
10875
10886
  2
10876
10887
  /*return*/
10877
10888
  ];
@@ -10880,7 +10891,7 @@ var t2 = function(A, c, e, t, s) {
10880
10891
  });
10881
10892
  }, c.prototype.renderNodeBackgroundAndBorders = function(e) {
10882
10893
  return U2(this, void 0, void 0, function() {
10883
- var t, s, l, a, n, r, o, i, f = this;
10894
+ var t, s, l, a, r, n, o, i, f = this;
10884
10895
  return x2(this, function(u) {
10885
10896
  switch (u.label) {
10886
10897
  case 0:
@@ -10900,12 +10911,12 @@ var t2 = function(A, c, e, t, s) {
10900
10911
  h.inset ? (f.path(m), f.ctx.clip(), f.mask(B)) : (f.mask(m), f.ctx.clip(), f.path(B)), f.ctx.shadowOffsetX = h.offsetX.number + p, f.ctx.shadowOffsetY = h.offsetY.number, f.ctx.shadowColor = B2(h.color), f.ctx.shadowBlur = h.blur.number, f.ctx.fillStyle = h.inset ? B2(h.color) : "rgba(0,0,0,1)", f.ctx.fill(), f.ctx.restore();
10901
10912
  }), u.label = 2;
10902
10913
  case 2:
10903
- n = 0, r = 0, o = l, u.label = 3;
10914
+ r = 0, n = 0, o = l, u.label = 3;
10904
10915
  case 3:
10905
- return r < o.length ? (i = o[r], i.style !== 0 && !M1(i.color) && i.width > 0 ? i.style !== 2 ? [3, 5] : [4, this.renderDashedDottedBorder(
10916
+ return n < o.length ? (i = o[n], i.style !== 0 && !M1(i.color) && i.width > 0 ? i.style !== 2 ? [3, 5] : [4, this.renderDashedDottedBorder(
10906
10917
  i.color,
10907
10918
  i.width,
10908
- n,
10919
+ r,
10909
10920
  e.curves,
10910
10921
  2
10911
10922
  /* DASHED */
@@ -10916,7 +10927,7 @@ var t2 = function(A, c, e, t, s) {
10916
10927
  return i.style !== 3 ? [3, 7] : [4, this.renderDashedDottedBorder(
10917
10928
  i.color,
10918
10929
  i.width,
10919
- n,
10930
+ r,
10920
10931
  e.curves,
10921
10932
  3
10922
10933
  /* DOTTED */
@@ -10924,17 +10935,17 @@ var t2 = function(A, c, e, t, s) {
10924
10935
  case 6:
10925
10936
  return u.sent(), [3, 11];
10926
10937
  case 7:
10927
- return i.style !== 4 ? [3, 9] : [4, this.renderDoubleBorder(i.color, i.width, n, e.curves)];
10938
+ return i.style !== 4 ? [3, 9] : [4, this.renderDoubleBorder(i.color, i.width, r, e.curves)];
10928
10939
  case 8:
10929
10940
  return u.sent(), [3, 11];
10930
10941
  case 9:
10931
- return [4, this.renderSolidBorder(i.color, n, e.curves)];
10942
+ return [4, this.renderSolidBorder(i.color, r, e.curves)];
10932
10943
  case 10:
10933
10944
  u.sent(), u.label = 11;
10934
10945
  case 11:
10935
- n++, u.label = 12;
10946
+ r++, u.label = 12;
10936
10947
  case 12:
10937
- return r++, [3, 3];
10948
+ return n++, [3, 3];
10938
10949
  case 13:
10939
10950
  return [
10940
10951
  2
@@ -10945,9 +10956,9 @@ var t2 = function(A, c, e, t, s) {
10945
10956
  });
10946
10957
  }, c.prototype.renderDashedDottedBorder = function(e, t, s, l, a) {
10947
10958
  return U2(this, void 0, void 0, function() {
10948
- var n, r, o, i, f, u, h, m, p, B, g, d, L, w, v, z, v, z;
10959
+ var r, n, o, i, f, u, h, m, p, B, g, d, L, w, v, z, v, z;
10949
10960
  return x2(this, function(S) {
10950
- return this.ctx.save(), n = gz(l, s), r = P5(l, s), a === 2 && (this.path(r), this.ctx.clip()), O2(r[0]) ? (o = r[0].start.x, i = r[0].start.y) : (o = r[0].x, i = r[0].y), O2(r[1]) ? (f = r[1].end.x, u = r[1].end.y) : (f = r[1].x, u = r[1].y), s === 0 || s === 2 ? h = Math.abs(o - f) : h = Math.abs(i - u), this.ctx.beginPath(), a === 3 ? this.formatPath(n) : this.formatPath(r.slice(0, 2)), m = t < 3 ? t * 3 : t * 2, p = t < 3 ? t * 2 : t, a === 3 && (m = t, p = t), B = !0, h <= m * 2 ? B = !1 : h <= m * 2 + p ? (g = h / (2 * m + p), m *= g, p *= g) : (d = Math.floor((h + p) / (m + p)), L = (h - d * m) / (d - 1), w = (h - (d + 1) * m) / d, p = w <= 0 || Math.abs(p - L) < Math.abs(p - w) ? L : w), B && (a === 3 ? this.ctx.setLineDash([0, m + p]) : this.ctx.setLineDash([m, p])), a === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = t) : this.ctx.lineWidth = t * 2 + 1.1, this.ctx.strokeStyle = B2(e), this.ctx.stroke(), this.ctx.setLineDash([]), a === 2 && (O2(r[0]) && (v = r[3], z = r[0], this.ctx.beginPath(), this.formatPath([new b(v.end.x, v.end.y), new b(z.start.x, z.start.y)]), this.ctx.stroke()), O2(r[1]) && (v = r[1], z = r[2], this.ctx.beginPath(), this.formatPath([new b(v.end.x, v.end.y), new b(z.start.x, z.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
10961
+ return this.ctx.save(), r = gz(l, s), n = P5(l, s), a === 2 && (this.path(n), this.ctx.clip()), O2(n[0]) ? (o = n[0].start.x, i = n[0].start.y) : (o = n[0].x, i = n[0].y), O2(n[1]) ? (f = n[1].end.x, u = n[1].end.y) : (f = n[1].x, u = n[1].y), s === 0 || s === 2 ? h = Math.abs(o - f) : h = Math.abs(i - u), this.ctx.beginPath(), a === 3 ? this.formatPath(r) : this.formatPath(n.slice(0, 2)), m = t < 3 ? t * 3 : t * 2, p = t < 3 ? t * 2 : t, a === 3 && (m = t, p = t), B = !0, h <= m * 2 ? B = !1 : h <= m * 2 + p ? (g = h / (2 * m + p), m *= g, p *= g) : (d = Math.floor((h + p) / (m + p)), L = (h - d * m) / (d - 1), w = (h - (d + 1) * m) / d, p = w <= 0 || Math.abs(p - L) < Math.abs(p - w) ? L : w), B && (a === 3 ? this.ctx.setLineDash([0, m + p]) : this.ctx.setLineDash([m, p])), a === 3 ? (this.ctx.lineCap = "round", this.ctx.lineWidth = t) : this.ctx.lineWidth = t * 2 + 1.1, this.ctx.strokeStyle = B2(e), this.ctx.stroke(), this.ctx.setLineDash([]), a === 2 && (O2(n[0]) && (v = n[3], z = n[0], this.ctx.beginPath(), this.formatPath([new b(v.end.x, v.end.y), new b(z.start.x, z.start.y)]), this.ctx.stroke()), O2(n[1]) && (v = n[1], z = n[2], this.ctx.beginPath(), this.formatPath([new b(v.end.x, v.end.y), new b(z.start.x, z.start.y)]), this.ctx.stroke())), this.ctx.restore(), [
10951
10962
  2
10952
10963
  /*return*/
10953
10964
  ];
@@ -11064,7 +11075,7 @@ var t2 = function(A, c, e, t, s) {
11064
11075
  typeof window < "u" && j7.setContext(window);
11065
11076
  var Iz = function(A, c) {
11066
11077
  return U2(void 0, void 0, void 0, function() {
11067
- var e, t, s, l, a, n, r, o, i, f, u, h, m, p, B, g, d, L, w, v, S, z, S, E, y, N, X, j, _, Y, z2, u2, V, a2, P, Z, p2, k2, d2, I2;
11078
+ var e, t, s, l, a, r, n, o, i, f, u, h, m, p, B, g, d, L, w, v, S, z, S, E, y, N, X, j, _, Y, z2, u2, V, a2, P, Z, p2, k2, d2, I2;
11068
11079
  return x2(this, function(b2) {
11069
11080
  switch (b2.label) {
11070
11081
  case 0:
@@ -11084,15 +11095,15 @@ var Iz = function(A, c) {
11084
11095
  windowHeight: (_ = c.windowHeight) !== null && _ !== void 0 ? _ : t.innerHeight,
11085
11096
  scrollX: (Y = c.scrollX) !== null && Y !== void 0 ? Y : t.pageXOffset,
11086
11097
  scrollY: (z2 = c.scrollY) !== null && z2 !== void 0 ? z2 : t.pageYOffset
11087
- }, n = new n1(a.scrollX, a.scrollY, a.windowWidth, a.windowHeight), r = new Ez(l, n), o = (u2 = c.foreignObjectRendering) !== null && u2 !== void 0 ? u2 : !1, i = {
11098
+ }, r = new n1(a.scrollX, a.scrollY, a.windowWidth, a.windowHeight), n = new Ez(l, r), o = (u2 = c.foreignObjectRendering) !== null && u2 !== void 0 ? u2 : !1, i = {
11088
11099
  allowTaint: (V = c.allowTaint) !== null && V !== void 0 ? V : !1,
11089
11100
  onclone: c.onclone,
11090
11101
  ignoreElements: c.ignoreElements,
11091
11102
  inlineImages: o,
11092
11103
  copyStyles: o
11093
- }, r.logger.debug("Starting document clone with size " + n.width + "x" + n.height + " scrolled to " + -n.left + "," + -n.top), f = new K5(r, A, i), u = f.clonedReferenceElement, u ? [4, f.toIFrame(e, n)] : [2, Promise.reject("Unable to find element in cloned iframe")];
11104
+ }, n.logger.debug("Starting document clone with size " + r.width + "x" + r.height + " scrolled to " + -r.left + "," + -r.top), f = new K5(n, A, i), u = f.clonedReferenceElement, u ? [4, f.toIFrame(e, r)] : [2, Promise.reject("Unable to find element in cloned iframe")];
11094
11105
  case 1:
11095
- return h = b2.sent(), m = v8(u) || TL(u) ? md(u.ownerDocument) : q4(r, u), p = m.width, B = m.height, g = m.left, d = m.top, L = Tz(r, u, c.backgroundColor), w = {
11106
+ return h = b2.sent(), m = v8(u) || TL(u) ? md(u.ownerDocument) : q4(n, u), p = m.width, B = m.height, g = m.left, d = m.top, L = Tz(n, u, c.backgroundColor), w = {
11096
11107
  canvas: c.canvas,
11097
11108
  backgroundColor: L,
11098
11109
  scale: (P = (a2 = c.scale) !== null && a2 !== void 0 ? a2 : t.devicePixelRatio) !== null && P !== void 0 ? P : 1,
@@ -11100,15 +11111,15 @@ var Iz = function(A, c) {
11100
11111
  y: ((p2 = c.y) !== null && p2 !== void 0 ? p2 : 0) + d,
11101
11112
  width: (k2 = c.width) !== null && k2 !== void 0 ? k2 : Math.ceil(p),
11102
11113
  height: (d2 = c.height) !== null && d2 !== void 0 ? d2 : Math.ceil(B)
11103
- }, o ? (r.logger.debug("Document cloned, using foreign object rendering"), S = new Sz(r, w), [4, S.render(u)]) : [3, 3];
11114
+ }, o ? (n.logger.debug("Document cloned, using foreign object rendering"), S = new Sz(n, w), [4, S.render(u)]) : [3, 3];
11104
11115
  case 2:
11105
11116
  return v = b2.sent(), [3, 5];
11106
11117
  case 3:
11107
- return r.logger.debug("Document cloned, element located at " + g + "," + d + " with size " + p + "x" + B + " using computed rendering"), r.logger.debug("Starting DOM parsing"), z = P7(r, u), L === z.styles.backgroundColor && (z.styles.backgroundColor = a1.TRANSPARENT), r.logger.debug("Starting renderer for element at " + w.x + "," + w.y + " with size " + w.width + "x" + w.height), S = new Qz(r, w), [4, S.render(z)];
11118
+ return n.logger.debug("Document cloned, element located at " + g + "," + d + " with size " + p + "x" + B + " using computed rendering"), n.logger.debug("Starting DOM parsing"), z = P7(n, u), L === z.styles.backgroundColor && (z.styles.backgroundColor = a1.TRANSPARENT), n.logger.debug("Starting renderer for element at " + w.x + "," + w.y + " with size " + w.width + "x" + w.height), S = new Qz(n, w), [4, S.render(z)];
11108
11119
  case 4:
11109
11120
  v = b2.sent(), b2.label = 5;
11110
11121
  case 5:
11111
- return (!((I2 = c.removeContainer) !== null && I2 !== void 0) || I2) && (K5.destroy(h) || r.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")), r.logger.debug("Finished rendering"), [2, v];
11122
+ return (!((I2 = c.removeContainer) !== null && I2 !== void 0) || I2) && (K5.destroy(h) || n.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")), n.logger.debug("Finished rendering"), [2, v];
11112
11123
  }
11113
11124
  });
11114
11125
  });
@@ -11126,7 +11137,7 @@ var Iz = function(A, c) {
11126
11137
  function t(o, i, f) {
11127
11138
  var u = new XMLHttpRequest();
11128
11139
  u.open("GET", o), u.responseType = "blob", u.onload = function() {
11129
- r(u.response, i, f);
11140
+ n(u.response, i, f);
11130
11141
  }, u.onerror = function() {
11131
11142
  console.error("could not download file");
11132
11143
  }, u.send();
@@ -11148,8 +11159,8 @@ var Iz = function(A, c) {
11148
11159
  i.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), o.dispatchEvent(i);
11149
11160
  }
11150
11161
  }
11151
- var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof f0 == "object" && f0.global === f0 ? f0 : void 0, n = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), r = a.saveAs || (typeof window != "object" || window !== a ? function() {
11152
- } : "download" in HTMLAnchorElement.prototype && !n ? function(o, i, f) {
11162
+ var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof f0 == "object" && f0.global === f0 ? f0 : void 0, r = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), n = a.saveAs || (typeof window != "object" || window !== a ? function() {
11163
+ } : "download" in HTMLAnchorElement.prototype && !r ? function(o, i, f) {
11153
11164
  var u = a.URL || a.webkitURL, h = document.createElement("a");
11154
11165
  i = i || o.name || "download", h.download = i, h.rel = "noopener", typeof o == "string" ? (h.href = o, h.origin === location.origin ? l(h) : s(h.href) ? t(o, i, f) : l(h, h.target = "_blank")) : (h.href = u.createObjectURL(o), setTimeout(function() {
11155
11166
  u.revokeObjectURL(h.href);
@@ -11171,7 +11182,7 @@ var Iz = function(A, c) {
11171
11182
  if (u = u || open("", "_blank"), u && (u.document.title = u.document.body.innerText = "downloading..."), typeof o == "string")
11172
11183
  return t(o, i, f);
11173
11184
  var h = o.type === "application/octet-stream", m = /constructor/i.test(a.HTMLElement) || a.safari, p = /CriOS\/[\d]+/.test(navigator.userAgent);
11174
- if ((p || h && m || n) && typeof FileReader < "u") {
11185
+ if ((p || h && m || r) && typeof FileReader < "u") {
11175
11186
  var B = new FileReader();
11176
11187
  B.onloadend = function() {
11177
11188
  var L = B.result;
@@ -11184,7 +11195,7 @@ var Iz = function(A, c) {
11184
11195
  }, 4e4);
11185
11196
  }
11186
11197
  });
11187
- a.saveAs = r.saveAs = r, A.exports = r;
11198
+ a.saveAs = n.saveAs = n, A.exports = n;
11188
11199
  });
11189
11200
  })(_z);
11190
11201
  /*!
@@ -11684,14 +11695,14 @@ function FM(A) {
11684
11695
  } = A;
11685
11696
  const s = {
11686
11697
  transform: "translate(".concat(e / 2, " 256)")
11687
- }, l = "translate(".concat(c.x * 32, ", ").concat(c.y * 32, ") "), a = "scale(".concat(c.size / 16 * (c.flipX ? -1 : 1), ", ").concat(c.size / 16 * (c.flipY ? -1 : 1), ") "), n = "rotate(".concat(c.rotate, " 0 0)"), r = {
11688
- transform: "".concat(l, " ").concat(a, " ").concat(n)
11698
+ }, l = "translate(".concat(c.x * 32, ", ").concat(c.y * 32, ") "), a = "scale(".concat(c.size / 16 * (c.flipX ? -1 : 1), ", ").concat(c.size / 16 * (c.flipY ? -1 : 1), ") "), r = "rotate(".concat(c.rotate, " 0 0)"), n = {
11699
+ transform: "".concat(l, " ").concat(a, " ").concat(r)
11689
11700
  }, o = {
11690
11701
  transform: "translate(".concat(t / 2 * -1, " -256)")
11691
11702
  };
11692
11703
  return {
11693
11704
  outer: s,
11694
- inner: r,
11705
+ inner: n,
11695
11706
  path: o
11696
11707
  };
11697
11708
  }
@@ -12262,8 +12273,8 @@ function Be() {
12262
12273
  const A = ue, c = me, e = k.cssPrefix, t = k.replacementClass;
12263
12274
  let s = bM;
12264
12275
  if (e !== A || t !== c) {
12265
- const l = new RegExp("\\.".concat(A, "\\-"), "g"), a = new RegExp("\\--".concat(A, "\\-"), "g"), n = new RegExp("\\.".concat(c), "g");
12266
- s = s.replace(l, ".".concat(e, "-")).replace(a, "--".concat(e, "-")).replace(n, ".".concat(t));
12276
+ const l = new RegExp("\\.".concat(A, "\\-"), "g"), a = new RegExp("\\--".concat(A, "\\-"), "g"), r = new RegExp("\\.".concat(c), "g");
12277
+ s = s.replace(l, ".".concat(e, "-")).replace(a, "--".concat(e, "-")).replace(r, ".".concat(t));
12267
12278
  }
12268
12279
  return s;
12269
12280
  }
@@ -12326,9 +12337,9 @@ var HM = function(c, e) {
12326
12337
  return c.call(e, t, s, l, a);
12327
12338
  };
12328
12339
  }, j3 = function(c, e, t, s) {
12329
- var l = Object.keys(c), a = l.length, n = s !== void 0 ? HM(e, s) : e, r, o, i;
12330
- for (t === void 0 ? (r = 1, i = c[l[0]]) : (r = 0, i = t); r < a; r++)
12331
- o = l[r], i = n(i, c[o], o, c);
12340
+ var l = Object.keys(c), a = l.length, r = s !== void 0 ? HM(e, s) : e, n, o, i;
12341
+ for (t === void 0 ? (n = 1, i = c[l[0]]) : (n = 0, i = t); n < a; n++)
12342
+ o = l[n], i = r(i, c[o], o, c);
12332
12343
  return i;
12333
12344
  };
12334
12345
  function NM(A) {
@@ -12381,26 +12392,26 @@ function _M(A, c) {
12381
12392
  }
12382
12393
  const ye = () => {
12383
12394
  const A = (t) => j3(k0, (s, l, a) => (s[a] = j3(l, t, {}), s), {});
12384
- we = A((t, s, l) => (s[3] && (t[s[3]] = l), s[2] && s[2].filter((n) => typeof n == "number").forEach((n) => {
12385
- t[n.toString(16)] = l;
12386
- }), t)), ve = A((t, s, l) => (t[l] = l, s[2] && s[2].filter((n) => typeof n == "string").forEach((n) => {
12387
- t[n] = l;
12395
+ we = A((t, s, l) => (s[3] && (t[s[3]] = l), s[2] && s[2].filter((r) => typeof r == "number").forEach((r) => {
12396
+ t[r.toString(16)] = l;
12397
+ }), t)), ve = A((t, s, l) => (t[l] = l, s[2] && s[2].filter((r) => typeof r == "string").forEach((r) => {
12398
+ t[r] = l;
12388
12399
  }), t)), Fe = A((t, s, l) => {
12389
12400
  const a = s[2];
12390
- return t[l] = l, a.forEach((n) => {
12391
- t[n] = l;
12401
+ return t[l] = l, a.forEach((r) => {
12402
+ t[r] = l;
12392
12403
  }), t;
12393
12404
  });
12394
12405
  const c = "far" in k0 || k.autoFetchSvg, e = j3(kM, (t, s) => {
12395
12406
  const l = s[0];
12396
12407
  let a = s[1];
12397
- const n = s[2];
12408
+ const r = s[2];
12398
12409
  return a === "far" && !c && (a = "fas"), typeof l == "string" && (t.names[l] = {
12399
12410
  prefix: a,
12400
- iconName: n
12411
+ iconName: r
12401
12412
  }), typeof l == "number" && (t.unicodes[l.toString(16)] = {
12402
12413
  prefix: a,
12403
- iconName: n
12414
+ iconName: r
12404
12415
  }), t;
12405
12416
  }, {
12406
12417
  names: {},
@@ -12485,8 +12496,8 @@ function n3(A) {
12485
12496
  skipLookups: e = !1
12486
12497
  } = c;
12487
12498
  let t = null;
12488
- const s = y6.concat(tM), l = ec(A.filter((f) => s.includes(f))), a = ec(A.filter((f) => !y6.includes(f))), n = l.filter((f) => (t = f, !ie.includes(f))), [r = null] = n, o = OM(l), i = x(x({}, RM(a)), {}, {
12489
- prefix: a3(r, {
12499
+ const s = y6.concat(tM), l = ec(A.filter((f) => s.includes(f))), a = ec(A.filter((f) => !y6.includes(f))), r = l.filter((f) => (t = f, !ie.includes(f))), [n = null] = r, o = OM(l), i = x(x({}, RM(a)), {}, {
12500
+ prefix: a3(n, {
12490
12501
  family: o
12491
12502
  })
12492
12503
  });
@@ -12524,8 +12535,8 @@ function WM(A) {
12524
12535
  givenPrefix: s = "",
12525
12536
  styles: l = {},
12526
12537
  config: a = {}
12527
- } = A, n = e === s3, r = c.includes("fa-duotone") || c.includes("fad"), o = a.familyDefault === "duotone", i = t.prefix === "fad" || t.prefix === "fa-duotone";
12528
- if (!n && (r || o || i) && (t.prefix = "fad"), (c.includes("fa-brands") || c.includes("fab")) && (t.prefix = "fab"), !t.prefix && GM.includes(e) && (Object.keys(l).find((u) => VM.includes(u)) || a.autoFetchSvg)) {
12538
+ } = A, r = e === s3, n = c.includes("fa-duotone") || c.includes("fad"), o = a.familyDefault === "duotone", i = t.prefix === "fad" || t.prefix === "fa-duotone";
12539
+ if (!r && (n || o || i) && (t.prefix = "fad"), (c.includes("fa-brands") || c.includes("fab")) && (t.prefix = "fab"), !t.prefix && GM.includes(e) && (Object.keys(l).find((u) => VM.includes(u)) || a.autoFetchSvg)) {
12529
12540
  const u = Yz.get(e).defaultShortPrefixId;
12530
12541
  t.prefix = u, t.iconName = S1(t.prefix, t.iconName) || t.iconName;
12531
12542
  }
@@ -12556,11 +12567,11 @@ class XM {
12556
12567
  const {
12557
12568
  prefix: l,
12558
12569
  iconName: a,
12559
- icon: n
12560
- } = t[s], r = n[2];
12561
- c[l] || (c[l] = {}), r.length > 0 && r.forEach((o) => {
12562
- typeof o == "string" && (c[l][o] = n);
12563
- }), c[l][a] = n;
12570
+ icon: r
12571
+ } = t[s], n = r[2];
12572
+ c[l] || (c[l] = {}), n.length > 0 && n.forEach((o) => {
12573
+ typeof o == "string" && (c[l][o] = r);
12574
+ }), c[l][a] = r;
12564
12575
  }), c;
12565
12576
  }
12566
12577
  }
@@ -12709,10 +12720,10 @@ function Aw(A) {
12709
12720
  } = A;
12710
12721
  if (U8(a) && e.found && !t.found) {
12711
12722
  const {
12712
- width: n,
12713
- height: r
12723
+ width: r,
12724
+ height: n
12714
12725
  } = e, o = {
12715
- x: n / r / 2,
12726
+ x: r / n / 2,
12716
12727
  y: 0.5
12717
12728
  };
12718
12729
  s.style = l3(x(x({}, l), {}, {
@@ -12758,8 +12769,8 @@ function N8(A) {
12758
12769
  iconName: s,
12759
12770
  transform: l,
12760
12771
  symbol: a,
12761
- title: n,
12762
- maskId: r,
12772
+ title: r,
12773
+ maskId: n,
12763
12774
  titleId: o,
12764
12775
  extra: i,
12765
12776
  watchable: f = !1
@@ -12781,19 +12792,19 @@ function N8(A) {
12781
12792
  const g = m && !~i.classes.indexOf("fa-fw") ? {
12782
12793
  width: "".concat(u / h * 16 * 0.0625, "em")
12783
12794
  } : {};
12784
- f && (B.attributes[T1] = ""), n && (B.children.push({
12795
+ f && (B.attributes[T1] = ""), r && (B.children.push({
12785
12796
  tag: "title",
12786
12797
  attributes: {
12787
12798
  id: B.attributes["aria-labelledby"] || "title-".concat(o || E0())
12788
12799
  },
12789
- children: [n]
12800
+ children: [r]
12790
12801
  }), delete B.attributes.title);
12791
12802
  const d = x(x({}, B), {}, {
12792
12803
  prefix: t,
12793
12804
  iconName: s,
12794
12805
  main: c,
12795
12806
  mask: e,
12796
- maskId: r,
12807
+ maskId: n,
12797
12808
  transform: l,
12798
12809
  symbol: a,
12799
12810
  styles: x(x({}, g), i.styles)
@@ -12817,13 +12828,13 @@ function sc(A) {
12817
12828
  transform: s,
12818
12829
  title: l,
12819
12830
  extra: a,
12820
- watchable: n = !1
12821
- } = A, r = x(x(x({}, a.attributes), l ? {
12831
+ watchable: r = !1
12832
+ } = A, n = x(x(x({}, a.attributes), l ? {
12822
12833
  title: l
12823
12834
  } : {}), {}, {
12824
12835
  class: a.classes.join(" ")
12825
12836
  });
12826
- n && (r[T1] = "");
12837
+ r && (n[T1] = "");
12827
12838
  const o = x({}, a.styles);
12828
12839
  U8(s) && (o.transform = yM({
12829
12840
  transform: s,
@@ -12832,11 +12843,11 @@ function sc(A) {
12832
12843
  height: t
12833
12844
  }), o["-webkit-transform"] = o.transform);
12834
12845
  const i = l3(o);
12835
- i.length > 0 && (r.style = i);
12846
+ i.length > 0 && (n.style = i);
12836
12847
  const f = [];
12837
12848
  return f.push({
12838
12849
  tag: "span",
12839
- attributes: r,
12850
+ attributes: n,
12840
12851
  children: [c]
12841
12852
  }), l && f.push({
12842
12853
  tag: "span",
@@ -13003,7 +13014,7 @@ const v4 = {
13003
13014
  return v4.replace(A);
13004
13015
  const t = new RegExp("".concat(k.cssPrefix, "-.*"));
13005
13016
  if (delete e[0].attributes.id, e[0].attributes.class) {
13006
- const l = e[0].attributes.class.split(" ").reduce((a, n) => (n === k.replacementClass || n.match(t) ? a.toSvg.push(n) : a.toNode.push(n), a), {
13017
+ const l = e[0].attributes.class.split(" ").reduce((a, r) => (r === k.replacementClass || r.match(t) ? a.toSvg.push(r) : a.toNode.push(r), a), {
13007
13018
  toNode: [],
13008
13019
  toSvg: []
13009
13020
  });
@@ -13050,16 +13061,16 @@ function rc(A) {
13050
13061
  if (k8)
13051
13062
  return;
13052
13063
  const a = Q1();
13053
- l0(l).forEach((n) => {
13054
- if (n.type === "childList" && n.addedNodes.length > 0 && !ac(n.addedNodes[0]) && (k.searchPseudoElements && t(n.target), c(n.target)), n.type === "attributes" && n.target.parentNode && k.searchPseudoElements && t(n.target.parentNode), n.type === "attributes" && ac(n.target) && ~BM.indexOf(n.attributeName))
13055
- if (n.attributeName === "class" && aw(n.target)) {
13064
+ l0(l).forEach((r) => {
13065
+ if (r.type === "childList" && r.addedNodes.length > 0 && !ac(r.addedNodes[0]) && (k.searchPseudoElements && t(r.target), c(r.target)), r.type === "attributes" && r.target.parentNode && k.searchPseudoElements && t(r.target.parentNode), r.type === "attributes" && ac(r.target) && ~BM.indexOf(r.attributeName))
13066
+ if (r.attributeName === "class" && aw(r.target)) {
13056
13067
  const {
13057
- prefix: r,
13068
+ prefix: n,
13058
13069
  iconName: o
13059
- } = n3(b8(n.target));
13060
- n.target.setAttribute(x8, r || a), o && n.target.setAttribute(F8, o);
13070
+ } = n3(b8(r.target));
13071
+ r.target.setAttribute(x8, n || a), o && r.target.setAttribute(F8, o);
13061
13072
  } else
13062
- nw(n.target) && e(n.target);
13073
+ nw(r.target) && e(r.target);
13063
13074
  });
13064
13075
  }), o1 && K4.observe(s, {
13065
13076
  childList: !0,
@@ -13075,8 +13086,8 @@ function mw(A) {
13075
13086
  const c = A.getAttribute("style");
13076
13087
  let e = [];
13077
13088
  return c && (e = c.split(";").reduce((t, s) => {
13078
- const l = s.split(":"), a = l[0], n = l.slice(1);
13079
- return a && n.length > 0 && (t[a] = n.join(":").trim()), t;
13089
+ const l = s.split(":"), a = l[0], r = l.slice(1);
13090
+ return a && r.length > 0 && (t[a] = r.join(":").trim()), t;
13080
13091
  }, {})), e;
13081
13092
  }
13082
13093
  function hw(A) {
@@ -13118,7 +13129,7 @@ function ic(A) {
13118
13129
  prefix: t,
13119
13130
  rest: s
13120
13131
  } = hw(A), l = pw(A), a = I6("parseNodeAttributes", {}, A);
13121
- let n = c.styleParser ? mw(A) : [];
13132
+ let r = c.styleParser ? mw(A) : [];
13122
13133
  return x({
13123
13134
  iconName: e,
13124
13135
  title: A.getAttribute("title"),
@@ -13134,7 +13145,7 @@ function ic(A) {
13134
13145
  symbol: !1,
13135
13146
  extra: {
13136
13147
  classes: s,
13137
- styles: n,
13148
+ styles: r,
13138
13149
  attributes: l
13139
13150
  }
13140
13151
  }, a);
@@ -13160,16 +13171,16 @@ function oc(A) {
13160
13171
  const a = [".".concat(de, ":not([").concat(T1, "])")].concat(l.map((i) => ".".concat(i, ":not([").concat(T1, "])"))).join(", ");
13161
13172
  if (a.length === 0)
13162
13173
  return Promise.resolve();
13163
- let n = [];
13174
+ let r = [];
13164
13175
  try {
13165
- n = l0(A.querySelectorAll(a));
13176
+ r = l0(A.querySelectorAll(a));
13166
13177
  } catch {
13167
13178
  }
13168
- if (n.length > 0)
13179
+ if (r.length > 0)
13169
13180
  t("pending"), s("complete");
13170
13181
  else
13171
13182
  return Promise.resolve();
13172
- const r = E8.begin("onTree"), o = n.reduce((i, f) => {
13183
+ const n = E8.begin("onTree"), o = r.reduce((i, f) => {
13173
13184
  try {
13174
13185
  const u = Ie(f);
13175
13186
  u && i.push(u);
@@ -13181,10 +13192,10 @@ function oc(A) {
13181
13192
  return new Promise((i, f) => {
13182
13193
  Promise.all(o).then((u) => {
13183
13194
  Ee(u, () => {
13184
- t("active"), t("complete"), s("pending"), typeof c == "function" && c(), r(), i();
13195
+ t("active"), t("complete"), s("pending"), typeof c == "function" && c(), n(), i();
13185
13196
  });
13186
13197
  }).catch((u) => {
13187
- r(), f(u);
13198
+ n(), f(u);
13188
13199
  });
13189
13200
  });
13190
13201
  }
@@ -13214,8 +13225,8 @@ const zw = function(A) {
13214
13225
  mask: s = null,
13215
13226
  maskId: l = null,
13216
13227
  title: a = null,
13217
- titleId: n = null,
13218
- classes: r = [],
13228
+ titleId: r = null,
13229
+ classes: n = [],
13219
13230
  attributes: o = {},
13220
13231
  styles: i = {}
13221
13232
  } = c;
@@ -13231,7 +13242,7 @@ const zw = function(A) {
13231
13242
  }, A), () => (_1("beforeDOMElementCreation", {
13232
13243
  iconDefinition: A,
13233
13244
  params: c
13234
- }), k.autoA11y && (a ? o["aria-labelledby"] = "".concat(k.replacementClass, "-title-").concat(n || E0()) : (o["aria-hidden"] = "true", o.focusable = "false")), N8({
13245
+ }), k.autoA11y && (a ? o["aria-labelledby"] = "".concat(k.replacementClass, "-title-").concat(r || E0()) : (o["aria-hidden"] = "true", o.focusable = "false")), N8({
13235
13246
  icons: {
13236
13247
  main: _6(h),
13237
13248
  mask: s ? _6(s.icon) : {
@@ -13247,11 +13258,11 @@ const zw = function(A) {
13247
13258
  symbol: t,
13248
13259
  title: a,
13249
13260
  maskId: l,
13250
- titleId: n,
13261
+ titleId: r,
13251
13262
  extra: {
13252
13263
  attributes: o,
13253
13264
  styles: i,
13254
- classes: r
13265
+ classes: n
13255
13266
  }
13256
13267
  })));
13257
13268
  };
@@ -13282,8 +13293,8 @@ var Mw = {
13282
13293
  title: s,
13283
13294
  titleId: l,
13284
13295
  prefix: a,
13285
- transform: n,
13286
- symbol: r,
13296
+ transform: r,
13297
+ symbol: n,
13287
13298
  mask: o,
13288
13299
  maskId: i,
13289
13300
  extra: f
@@ -13303,8 +13314,8 @@ var Mw = {
13303
13314
  },
13304
13315
  prefix: a,
13305
13316
  iconName: t,
13306
- transform: n,
13307
- symbol: r,
13317
+ transform: r,
13318
+ symbol: n,
13308
13319
  maskId: i,
13309
13320
  title: s,
13310
13321
  titleId: l,
@@ -13321,15 +13332,15 @@ var Mw = {
13321
13332
  transform: l,
13322
13333
  styles: a
13323
13334
  } = c;
13324
- const n = l3(a);
13325
- n.length > 0 && (t.style = n);
13326
- let r;
13327
- return U8(l) && (r = x1("generateAbstractTransformGrouping", {
13335
+ const r = l3(a);
13336
+ r.length > 0 && (t.style = r);
13337
+ let n;
13338
+ return U8(l) && (n = x1("generateAbstractTransformGrouping", {
13328
13339
  main: s,
13329
13340
  transform: l,
13330
13341
  containerWidth: s.width,
13331
13342
  iconWidth: s.width
13332
- })), e.push(r || s.icon), {
13343
+ })), e.push(n || s.icon), {
13333
13344
  children: e,
13334
13345
  attributes: t
13335
13346
  };
@@ -13433,15 +13444,15 @@ var Mw = {
13433
13444
  transform: s,
13434
13445
  extra: l
13435
13446
  } = e;
13436
- let a = null, n = null;
13447
+ let a = null, r = null;
13437
13448
  if (ne) {
13438
- const r = parseInt(getComputedStyle(c).fontSize, 10), o = c.getBoundingClientRect();
13439
- a = o.width / r, n = o.height / r;
13449
+ const n = parseInt(getComputedStyle(c).fontSize, 10), o = c.getBoundingClientRect();
13450
+ a = o.width / n, r = o.height / n;
13440
13451
  }
13441
13452
  return k.autoA11y && !t && (l.attributes["aria-hidden"] = "true"), Promise.resolve([c, sc({
13442
13453
  content: c.innerHTML,
13443
13454
  width: a,
13444
- height: n,
13455
+ height: r,
13445
13456
  transform: s,
13446
13457
  title: t,
13447
13458
  extra: l,
@@ -13475,12 +13486,12 @@ function mc(A, c) {
13475
13486
  return new Promise((t, s) => {
13476
13487
  if (A.getAttribute(e) !== null)
13477
13488
  return t();
13478
- const a = l0(A.children).filter((u) => u.getAttribute(U6) === c)[0], n = v1.getComputedStyle(A, c), r = n.getPropertyValue("font-family"), o = r.match(gM), i = n.getPropertyValue("font-weight"), f = n.getPropertyValue("content");
13489
+ const a = l0(A.children).filter((u) => u.getAttribute(U6) === c)[0], r = v1.getComputedStyle(A, c), n = r.getPropertyValue("font-family"), o = n.match(gM), i = r.getPropertyValue("font-weight"), f = r.getPropertyValue("content");
13479
13490
  if (a && !o)
13480
13491
  return A.removeChild(a), t();
13481
13492
  if (o && f !== "none" && f !== "") {
13482
- const u = n.getPropertyValue("content");
13483
- let h = bw(r, i);
13493
+ const u = r.getPropertyValue("content");
13494
+ let h = bw(n, i);
13484
13495
  const {
13485
13496
  value: m,
13486
13497
  isSecondary: p
@@ -13649,8 +13660,8 @@ var Ew = {
13649
13660
  } = c;
13650
13661
  const a = {
13651
13662
  transform: "translate(".concat(s / 2, " 256)")
13652
- }, n = "translate(".concat(t.x * 32, ", ").concat(t.y * 32, ") "), r = "scale(".concat(t.size / 16 * (t.flipX ? -1 : 1), ", ").concat(t.size / 16 * (t.flipY ? -1 : 1), ") "), o = "rotate(".concat(t.rotate, " 0 0)"), i = {
13653
- transform: "".concat(n, " ").concat(r, " ").concat(o)
13663
+ }, r = "translate(".concat(t.x * 32, ", ").concat(t.y * 32, ") "), n = "scale(".concat(t.size / 16 * (t.flipX ? -1 : 1), ", ").concat(t.size / 16 * (t.flipY ? -1 : 1), ") "), o = "rotate(".concat(t.rotate, " 0 0)"), i = {
13664
+ transform: "".concat(r, " ").concat(n, " ").concat(o)
13654
13665
  }, f = {
13655
13666
  transform: "translate(".concat(l / 2 * -1, " -256)")
13656
13667
  }, u = {
@@ -13704,18 +13715,18 @@ var Iw = {
13704
13715
  main: s,
13705
13716
  mask: l,
13706
13717
  maskId: a,
13707
- transform: n
13718
+ transform: r
13708
13719
  } = c;
13709
13720
  const {
13710
- width: r,
13721
+ width: n,
13711
13722
  icon: o
13712
13723
  } = s, {
13713
13724
  width: i,
13714
13725
  icon: f
13715
13726
  } = l, u = FM({
13716
- transform: n,
13727
+ transform: r,
13717
13728
  containerWidth: i,
13718
- iconWidth: r
13729
+ iconWidth: n
13719
13730
  }), h = {
13720
13731
  tag: "rect",
13721
13732
  attributes: x(x({}, Z3), {}, {
@@ -13989,7 +14000,7 @@ var Zw = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
13989
14000
  (function(A) {
13990
14001
  (function(c) {
13991
14002
  var e = function(g, d, L) {
13992
- if (!o(d) || f(d) || u(d) || h(d) || r(d))
14003
+ if (!o(d) || f(d) || u(d) || h(d) || n(d))
13993
14004
  return d;
13994
14005
  var w, v = 0, z = 0;
13995
14006
  if (i(d))
@@ -14014,18 +14025,18 @@ var Zw = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
14014
14025
  return d.substr(0, 1).toUpperCase() + d.substr(1);
14015
14026
  }, a = function(g, d) {
14016
14027
  return t(g, d).toLowerCase();
14017
- }, n = Object.prototype.toString, r = function(g) {
14028
+ }, r = Object.prototype.toString, n = function(g) {
14018
14029
  return typeof g == "function";
14019
14030
  }, o = function(g) {
14020
14031
  return g === Object(g);
14021
14032
  }, i = function(g) {
14022
- return n.call(g) == "[object Array]";
14033
+ return r.call(g) == "[object Array]";
14023
14034
  }, f = function(g) {
14024
- return n.call(g) == "[object Date]";
14035
+ return r.call(g) == "[object Date]";
14025
14036
  }, u = function(g) {
14026
- return n.call(g) == "[object RegExp]";
14037
+ return r.call(g) == "[object RegExp]";
14027
14038
  }, h = function(g) {
14028
- return n.call(g) == "[object Boolean]";
14039
+ return r.call(g) == "[object Boolean]";
14029
14040
  }, m = function(g) {
14030
14041
  return g = g - 0, g === g;
14031
14042
  }, p = function(g, d) {
@@ -14074,32 +14085,32 @@ function I8(A) {
14074
14085
  var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
14075
14086
  if (typeof A == "string")
14076
14087
  return A;
14077
- var t = (A.children || []).map(function(r) {
14078
- return I8(r);
14079
- }), s = Object.keys(A.attributes || {}).reduce(function(r, o) {
14088
+ var t = (A.children || []).map(function(n) {
14089
+ return I8(n);
14090
+ }), s = Object.keys(A.attributes || {}).reduce(function(n, o) {
14080
14091
  var i = A.attributes[o];
14081
14092
  switch (o) {
14082
14093
  case "class":
14083
- r.class = tv(i);
14094
+ n.class = tv(i);
14084
14095
  break;
14085
14096
  case "style":
14086
- r.style = ev(i);
14097
+ n.style = ev(i);
14087
14098
  break;
14088
14099
  default:
14089
- r.attrs[o] = i;
14100
+ n.attrs[o] = i;
14090
14101
  }
14091
- return r;
14102
+ return n;
14092
14103
  }, {
14093
14104
  attrs: {},
14094
14105
  class: {},
14095
14106
  style: {}
14096
14107
  });
14097
14108
  e.class;
14098
- var l = e.style, a = l === void 0 ? {} : l, n = Xw(e, cv);
14109
+ var l = e.style, a = l === void 0 ? {} : l, r = Xw(e, cv);
14099
14110
  return S2(A.tag, X2(X2(X2({}, c), {}, {
14100
14111
  class: s.class,
14101
14112
  style: X2(X2({}, s.style), a)
14102
- }, s.attrs), n), t);
14113
+ }, s.attrs), r), t);
14103
14114
  }
14104
14115
  var De = !1;
14105
14116
  try {
@@ -14270,23 +14281,23 @@ var lv = F1({
14270
14281
  return b0("classes", $w(c));
14271
14282
  }), a = G(function() {
14272
14283
  return b0("transform", typeof c.transform == "string" ? O4.transform(c.transform) : c.transform);
14273
- }), n = G(function() {
14274
- return b0("mask", Bc(c.mask));
14275
14284
  }), r = G(function() {
14276
- var i = X2(X2(X2(X2({}, l.value), a.value), n.value), {}, {
14285
+ return b0("mask", Bc(c.mask));
14286
+ }), n = G(function() {
14287
+ var i = X2(X2(X2(X2({}, l.value), a.value), r.value), {}, {
14277
14288
  symbol: c.symbol,
14278
14289
  maskId: c.maskId
14279
14290
  });
14280
14291
  return i.title = c.title, i.titleId = c.titleId, Rw(s.value, i);
14281
14292
  });
14282
- D1(r, function(i) {
14293
+ D1(n, function(i) {
14283
14294
  if (!i)
14284
- return sv("Could not find one or more icon(s)", s.value, n.value);
14295
+ return sv("Could not find one or more icon(s)", s.value, r.value);
14285
14296
  }, {
14286
14297
  immediate: !0
14287
14298
  });
14288
14299
  var o = G(function() {
14289
- return r.value ? I8(r.value.abstract[0], {}, t) : null;
14300
+ return n.value ? I8(n.value.abstract[0], {}, t) : null;
14290
14301
  });
14291
14302
  return function() {
14292
14303
  return o.value;
@@ -14340,14 +14351,14 @@ F1({
14340
14351
  return b0("classes", [].concat(G6(c.counter ? ["".concat(s, "-layers-counter")] : []), G6(c.position ? ["".concat(s, "-layers-").concat(c.position)] : [])));
14341
14352
  }), a = G(function() {
14342
14353
  return b0("transform", typeof c.transform == "string" ? O4.transform(c.transform) : c.transform);
14343
- }), n = G(function() {
14354
+ }), r = G(function() {
14344
14355
  var o = Pw(c.value.toString(), X2(X2({}, a.value), l.value)), i = o.abstract;
14345
14356
  return c.counter && (i[0].attributes.class = i[0].attributes.class.replace("fa-layers-text", "")), i[0];
14346
- }), r = G(function() {
14347
- return I8(n.value, {}, t);
14357
+ }), n = G(function() {
14358
+ return I8(r.value, {}, t);
14348
14359
  });
14349
14360
  return function() {
14350
- return r.value;
14361
+ return n.value;
14351
14362
  };
14352
14363
  }
14353
14364
  });