fl-web-component 1.2.4 → 1.2.5

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.
package/README.md CHANGED
@@ -46,6 +46,8 @@ Vue.use(FlWebComponent)
46
46
  欢迎贡献代码和问题反馈。
47
47
 
48
48
  ## 更新日志
49
+ - 1.2.5 2025-06-17
50
+ 1. 修改remoAll方法不生效问题
49
51
  - 1.2.4 2025-06-12
50
52
  1. 优化图形绘制效果
51
53
  - 1.2.3 2025-06-11
@@ -391,8 +391,7 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
391
391
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
392
392
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
393
393
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
394
- function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
395
- function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
394
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return r; }; var t, r = {}, e = Object.prototype, n = e.hasOwnProperty, o = "function" == typeof Symbol ? Symbol : {}, i = o.iterator || "@@iterator", a = o.asyncIterator || "@@asyncIterator", u = o.toStringTag || "@@toStringTag"; function c(t, r, e, n) { return Object.defineProperty(t, r, { value: e, enumerable: !n, configurable: !n, writable: !n }); } try { c({}, ""); } catch (t) { c = function c(t, r, e) { return t[r] = e; }; } function h(r, e, n, o) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype); return c(a, "_invoke", function (r, e, n) { var o = 1; return function (i, a) { if (3 === o) throw Error("Generator is already running"); if (4 === o) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var u = n.delegate; if (u) { var c = d(u, n); if (c) { if (c === f) continue; return c; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (1 === o) throw o = 4, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = 3; var h = s(r, e, n); if ("normal" === h.type) { if (o = n.done ? 4 : 2, h.arg === f) continue; return { value: h.arg, done: n.done }; } "throw" === h.type && (o = 4, n.method = "throw", n.arg = h.arg); } }; }(r, n, new Context(o || [])), !0), a; } function s(t, r, e) { try { return { type: "normal", arg: t.call(r, e) }; } catch (t) { return { type: "throw", arg: t }; } } r.wrap = h; var f = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var l = {}; c(l, i, function () { return this; }); var p = Object.getPrototypeOf, y = p && p(p(x([]))); y && y !== e && n.call(y, i) && (l = y); var v = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(l); function g(t) { ["next", "throw", "return"].forEach(function (r) { c(t, r, function (t) { return this._invoke(r, t); }); }); } function AsyncIterator(t, r) { function e(o, i, a, u) { var c = s(t[o], t, i); if ("throw" !== c.type) { var h = c.arg, f = h.value; return f && "object" == _typeof(f) && n.call(f, "__await") ? r.resolve(f.__await).then(function (t) { e("next", t, a, u); }, function (t) { e("throw", t, a, u); }) : r.resolve(f).then(function (t) { h.value = t, a(h); }, function (t) { return e("throw", t, a, u); }); } u(c.arg); } var o; c(this, "_invoke", function (t, n) { function i() { return new r(function (r, o) { e(t, n, r, o); }); } return o = o ? o.then(i, i) : i(); }, !0); } function d(r, e) { var n = e.method, o = r.i[n]; if (o === t) return e.delegate = null, "throw" === n && r.i.return && (e.method = "return", e.arg = t, d(r, e), "throw" === e.method) || "return" !== n && (e.method = "throw", e.arg = new TypeError("The iterator does not provide a '" + n + "' method")), f; var i = s(o, r.i, e.arg); if ("throw" === i.type) return e.method = "throw", e.arg = i.arg, e.delegate = null, f; var a = i.arg; return a ? a.done ? (e[r.r] = a.value, e.next = r.n, "return" !== e.method && (e.method = "next", e.arg = t), e.delegate = null, f) : a : (e.method = "throw", e.arg = new TypeError("iterator result is not an object"), e.delegate = null, f); } function w(t) { this.tryEntries.push(t); } function m(r) { var e = r[4] || {}; e.type = "normal", e.arg = t, r[4] = e; } function Context(t) { this.tryEntries = [[-1]], t.forEach(w, this), this.reset(!0); } function x(r) { if (null != r) { var e = r[i]; if (e) return e.call(r); if ("function" == typeof r.next) return r; if (!isNaN(r.length)) { var o = -1, a = function e() { for (; ++o < r.length;) if (n.call(r, o)) return e.value = r[o], e.done = !1, e; return e.value = t, e.done = !0, e; }; return a.next = a; } } throw new TypeError(_typeof(r) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, c(v, "constructor", GeneratorFunctionPrototype), c(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = c(GeneratorFunctionPrototype, u, "GeneratorFunction"), r.isGeneratorFunction = function (t) { var r = "function" == typeof t && t.constructor; return !!r && (r === GeneratorFunction || "GeneratorFunction" === (r.displayName || r.name)); }, r.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, c(t, u, "GeneratorFunction")), t.prototype = Object.create(v), t; }, r.awrap = function (t) { return { __await: t }; }, g(AsyncIterator.prototype), c(AsyncIterator.prototype, a, function () { return this; }), r.AsyncIterator = AsyncIterator, r.async = function (t, e, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(h(t, e, n, o), i); return r.isGeneratorFunction(e) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, g(v), c(v, u, "Generator"), c(v, i, function () { return this; }), c(v, "toString", function () { return "[object Generator]"; }), r.keys = function (t) { var r = Object(t), e = []; for (var n in r) e.unshift(n); return function t() { for (; e.length;) if ((n = e.pop()) in r) return t.value = n, t.done = !1, t; return t.done = !0, t; }; }, r.values = x, Context.prototype = { constructor: Context, reset: function reset(r) { if (this.prev = this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(m), !r) for (var e in this) "t" === e.charAt(0) && n.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0][4]; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(r) { if (this.done) throw r; var e = this; function n(t) { a.type = "throw", a.arg = r, e.next = t; } for (var o = e.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i[4], u = this.prev, c = i[1], h = i[2]; if (-1 === i[0]) return n("end"), !1; if (!c && !h) throw Error("try statement without catch or finally"); if (null != i[0] && i[0] <= u) { if (u < c) return this.method = "next", this.arg = t, n(c), !0; if (u < h) return n(h), !1; } } }, abrupt: function abrupt(t, r) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var n = this.tryEntries[e]; if (n[0] > -1 && n[0] <= this.prev && this.prev < n[2]) { var o = n; break; } } o && ("break" === t || "continue" === t) && o[0] <= r && r <= o[2] && (o = null); var i = o ? o[4] : {}; return i.type = t, i.arg = r, o ? (this.method = "next", this.next = o[2], f) : this.complete(i); }, complete: function complete(t, r) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && r && (this.next = r), f; }, finish: function finish(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[2] === t) return this.complete(e[4], e[3]), m(e), f; } }, catch: function _catch(t) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var e = this.tryEntries[r]; if (e[0] === t) { var n = e[4]; if ("throw" === n.type) { var o = n.arg; m(e); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(r, e, n) { return this.delegate = { i: x(r), r: e, n: n }, "next" === this.method && (this.arg = t), f; } }, r; }
396
395
 
397
396
 
398
397
 
@@ -430,24 +429,27 @@ function offscreen() {
430
429
  return new OffscreenCanvas(width, height);
431
430
  },
432
431
  createImage: function createImage(url) {
433
- return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regenerator().m(function _callee() {
432
+ return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
434
433
  var response, blob, img;
435
- return _regenerator().w(function (_context) {
436
- while (1) switch (_context.n) {
434
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
435
+ while (1) switch (_context.prev = _context.next) {
437
436
  case 0:
438
- _context.n = 1;
437
+ _context.next = 2;
439
438
  return fetch(url);
440
- case 1:
441
- response = _context.v;
442
- _context.n = 2;
443
- return response.blob();
444
439
  case 2:
445
- blob = _context.v;
446
- _context.n = 3;
440
+ response = _context.sent;
441
+ _context.next = 5;
442
+ return response.blob();
443
+ case 5:
444
+ blob = _context.sent;
445
+ _context.next = 8;
447
446
  return createImageBitmap(blob);
448
- case 3:
449
- img = _context.v;
450
- return _context.a(2, img);
447
+ case 8:
448
+ img = _context.sent;
449
+ return _context.abrupt("return", img);
450
+ case 10:
451
+ case "end":
452
+ return _context.stop();
451
453
  }
452
454
  }, _callee);
453
455
  }))();
@@ -1609,17 +1611,20 @@ var Parser = /*#__PURE__*/function () {
1609
1611
  key: "parse",
1610
1612
  value: function parse(resource) {
1611
1613
  var _this = this;
1612
- return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regenerator().m(function _callee2() {
1613
- return _regenerator().w(function (_context2) {
1614
- while (1) switch (_context2.n) {
1614
+ return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
1615
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1616
+ while (1) switch (_context2.prev = _context2.next) {
1615
1617
  case 0:
1616
1618
  if (!resource.startsWith('<')) {
1617
- _context2.n = 1;
1619
+ _context2.next = 2;
1618
1620
  break;
1619
1621
  }
1620
- return _context2.a(2, _this.parseFromString(resource));
1621
- case 1:
1622
- return _context2.a(2, _this.load(resource));
1622
+ return _context2.abrupt("return", _this.parseFromString(resource));
1623
+ case 2:
1624
+ return _context2.abrupt("return", _this.load(resource));
1625
+ case 3:
1626
+ case "end":
1627
+ return _context2.stop();
1623
1628
  }
1624
1629
  }, _callee2);
1625
1630
  }))();
@@ -1647,20 +1652,23 @@ var Parser = /*#__PURE__*/function () {
1647
1652
  key: "load",
1648
1653
  value: function load(url) {
1649
1654
  var _this2 = this;
1650
- return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regenerator().m(function _callee3() {
1655
+ return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
1651
1656
  var response, xml;
1652
- return _regenerator().w(function (_context3) {
1653
- while (1) switch (_context3.n) {
1657
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
1658
+ while (1) switch (_context3.prev = _context3.next) {
1654
1659
  case 0:
1655
- _context3.n = 1;
1660
+ _context3.next = 2;
1656
1661
  return _this2.fetch(url);
1657
- case 1:
1658
- response = _context3.v;
1659
- _context3.n = 2;
1660
- return response.text();
1661
1662
  case 2:
1662
- xml = _context3.v;
1663
- return _context3.a(2, _this2.parseFromString(xml));
1663
+ response = _context3.sent;
1664
+ _context3.next = 5;
1665
+ return response.text();
1666
+ case 5:
1667
+ xml = _context3.sent;
1668
+ return _context3.abrupt("return", _this2.parseFromString(xml));
1669
+ case 7:
1670
+ case "end":
1671
+ return _context3.stop();
1664
1672
  }
1665
1673
  }, _callee3);
1666
1674
  }))();
@@ -5614,43 +5622,44 @@ var ImageElement = /*#__PURE__*/function (_RenderedElement5) {
5614
5622
  key: "loadImage",
5615
5623
  value: function loadImage(href) {
5616
5624
  var _this = this;
5617
- return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regenerator().m(function _callee4() {
5618
- var image, _t;
5619
- return _regenerator().w(function (_context4) {
5620
- while (1) switch (_context4.n) {
5625
+ return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
5626
+ var image;
5627
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
5628
+ while (1) switch (_context4.prev = _context4.next) {
5621
5629
  case 0:
5622
- _context4.p = 0;
5623
- _context4.n = 1;
5630
+ _context4.prev = 0;
5631
+ _context4.next = 3;
5624
5632
  return _this.document.createImage(href);
5625
- case 1:
5626
- image = _context4.v;
5633
+ case 3:
5634
+ image = _context4.sent;
5627
5635
  _this.image = image;
5628
- _context4.n = 3;
5636
+ _context4.next = 10;
5629
5637
  break;
5630
- case 2:
5631
- _context4.p = 2;
5632
- _t = _context4.v;
5633
- console.error("Error while loading image \"".concat(href, "\":"), _t);
5634
- case 3:
5638
+ case 7:
5639
+ _context4.prev = 7;
5640
+ _context4.t0 = _context4["catch"](0);
5641
+ console.error("Error while loading image \"".concat(href, "\":"), _context4.t0);
5642
+ case 10:
5635
5643
  _this.loaded = true;
5636
- case 4:
5637
- return _context4.a(2);
5644
+ case 11:
5645
+ case "end":
5646
+ return _context4.stop();
5638
5647
  }
5639
- }, _callee4, null, [[0, 2]]);
5648
+ }, _callee4, null, [[0, 7]]);
5640
5649
  }))();
5641
5650
  }
5642
5651
  }, {
5643
5652
  key: "loadSvg",
5644
5653
  value: function loadSvg(href) {
5645
5654
  var _this2 = this;
5646
- return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regenerator().m(function _callee5() {
5647
- var match, data, response, svg, _t2;
5648
- return _regenerator().w(function (_context5) {
5649
- while (1) switch (_context5.n) {
5655
+ return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
5656
+ var match, data, response, svg;
5657
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
5658
+ while (1) switch (_context5.prev = _context5.next) {
5650
5659
  case 0:
5651
5660
  match = dataUriRegex.exec(href);
5652
5661
  if (!match) {
5653
- _context5.n = 1;
5662
+ _context5.next = 6;
5654
5663
  break;
5655
5664
  }
5656
5665
  data = match[5];
@@ -5659,31 +5668,32 @@ var ImageElement = /*#__PURE__*/function (_RenderedElement5) {
5659
5668
  } else {
5660
5669
  _this2.image = decodeURIComponent(data);
5661
5670
  }
5662
- _context5.n = 5;
5671
+ _context5.next = 19;
5663
5672
  break;
5664
- case 1:
5665
- _context5.p = 1;
5666
- _context5.n = 2;
5673
+ case 6:
5674
+ _context5.prev = 6;
5675
+ _context5.next = 9;
5667
5676
  return _this2.document.fetch(href);
5668
- case 2:
5669
- response = _context5.v;
5670
- _context5.n = 3;
5677
+ case 9:
5678
+ response = _context5.sent;
5679
+ _context5.next = 12;
5671
5680
  return response.text();
5672
- case 3:
5673
- svg = _context5.v;
5681
+ case 12:
5682
+ svg = _context5.sent;
5674
5683
  _this2.image = svg;
5675
- _context5.n = 5;
5684
+ _context5.next = 19;
5676
5685
  break;
5677
- case 4:
5678
- _context5.p = 4;
5679
- _t2 = _context5.v;
5680
- console.error("Error while loading image \"".concat(href, "\":"), _t2);
5681
- case 5:
5686
+ case 16:
5687
+ _context5.prev = 16;
5688
+ _context5.t0 = _context5["catch"](6);
5689
+ console.error("Error while loading image \"".concat(href, "\":"), _context5.t0);
5690
+ case 19:
5682
5691
  _this2.loaded = true;
5683
- case 6:
5684
- return _context5.a(2);
5692
+ case 20:
5693
+ case "end":
5694
+ return _context5.stop();
5685
5695
  }
5686
- }, _callee5, null, [[1, 4]]);
5696
+ }, _callee5, null, [[6, 16]]);
5687
5697
  }))();
5688
5698
  }
5689
5699
  }, {
@@ -5769,34 +5779,35 @@ var SVGFontLoader = /*#__PURE__*/function () {
5769
5779
  key: "load",
5770
5780
  value: function load(fontFamily, url) {
5771
5781
  var _this = this;
5772
- return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regenerator().m(function _callee6() {
5773
- var document, svgDocument, fonts, _t3;
5774
- return _regenerator().w(function (_context6) {
5775
- while (1) switch (_context6.n) {
5782
+ return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
5783
+ var document, svgDocument, fonts;
5784
+ return _regeneratorRuntime().wrap(function _callee6$(_context6) {
5785
+ while (1) switch (_context6.prev = _context6.next) {
5776
5786
  case 0:
5777
- _context6.p = 0;
5787
+ _context6.prev = 0;
5778
5788
  document = _this.document;
5779
- _context6.n = 1;
5789
+ _context6.next = 4;
5780
5790
  return document.canvg.parser.load(url);
5781
- case 1:
5782
- svgDocument = _context6.v;
5791
+ case 4:
5792
+ svgDocument = _context6.sent;
5783
5793
  fonts = svgDocument.getElementsByTagName('font');
5784
5794
  Array.from(fonts).forEach(function (fontNode) {
5785
5795
  var font = document.createElement(fontNode);
5786
5796
  document.definitions[fontFamily] = font;
5787
5797
  });
5788
- _context6.n = 3;
5798
+ _context6.next = 12;
5789
5799
  break;
5790
- case 2:
5791
- _context6.p = 2;
5792
- _t3 = _context6.v;
5793
- console.error("Error while loading font \"".concat(url, "\":"), _t3);
5794
- case 3:
5800
+ case 9:
5801
+ _context6.prev = 9;
5802
+ _context6.t0 = _context6["catch"](0);
5803
+ console.error("Error while loading font \"".concat(url, "\":"), _context6.t0);
5804
+ case 12:
5795
5805
  _this.loaded = true;
5796
- case 4:
5797
- return _context6.a(2);
5806
+ case 13:
5807
+ case "end":
5808
+ return _context6.stop();
5798
5809
  }
5799
- }, _callee6, null, [[0, 2]]);
5810
+ }, _callee6, null, [[0, 9]]);
5800
5811
  }))();
5801
5812
  }
5802
5813
  }]);
@@ -6398,19 +6409,19 @@ function createImage(_x) {
6398
6409
  return _createImage.apply(this, arguments);
6399
6410
  }
6400
6411
  function _createImage() {
6401
- _createImage = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regenerator().m(function _callee7(src) {
6412
+ _createImage = _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(src) {
6402
6413
  var anonymousCrossOrigin,
6403
6414
  image,
6404
6415
  _args6 = arguments;
6405
- return _regenerator().w(function (_context7) {
6406
- while (1) switch (_context7.n) {
6416
+ return _regeneratorRuntime().wrap(function _callee7$(_context7) {
6417
+ while (1) switch (_context7.prev = _context7.next) {
6407
6418
  case 0:
6408
6419
  anonymousCrossOrigin = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : false;
6409
6420
  image = document.createElement('img');
6410
6421
  if (anonymousCrossOrigin) {
6411
6422
  image.crossOrigin = 'Anonymous';
6412
6423
  }
6413
- return _context7.a(2, new Promise(function (resolve, reject) {
6424
+ return _context7.abrupt("return", new Promise(function (resolve, reject) {
6414
6425
  image.onload = function () {
6415
6426
  resolve(image);
6416
6427
  };
@@ -6419,6 +6430,9 @@ function _createImage() {
6419
6430
  };
6420
6431
  image.src = src;
6421
6432
  }));
6433
+ case 4:
6434
+ case "end":
6435
+ return _context7.stop();
6422
6436
  }
6423
6437
  }, _callee7);
6424
6438
  }));
@@ -6662,10 +6676,10 @@ var Canvg = /*#__PURE__*/function () {
6662
6676
  value: function render() {
6663
6677
  var _arguments2 = arguments,
6664
6678
  _this = this;
6665
- return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regenerator().m(function _callee8() {
6679
+ return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8() {
6666
6680
  var options;
6667
- return _regenerator().w(function (_context8) {
6668
- while (1) switch (_context8.n) {
6681
+ return _regeneratorRuntime().wrap(function _callee8$(_context8) {
6682
+ while (1) switch (_context8.prev = _context8.next) {
6669
6683
  case 0:
6670
6684
  options = _arguments2.length > 0 && _arguments2[0] !== undefined ? _arguments2[0] : {};
6671
6685
  _this.start(_objectSpread({
@@ -6673,12 +6687,13 @@ var Canvg = /*#__PURE__*/function () {
6673
6687
  ignoreAnimation: true,
6674
6688
  ignoreMouse: true
6675
6689
  }, options));
6676
- _context8.n = 1;
6690
+ _context8.next = 4;
6677
6691
  return _this.ready();
6678
- case 1:
6692
+ case 4:
6679
6693
  _this.stop();
6680
- case 2:
6681
- return _context8.a(2);
6694
+ case 5:
6695
+ case "end":
6696
+ return _context8.stop();
6682
6697
  }
6683
6698
  }, _callee8);
6684
6699
  }))();
@@ -6723,18 +6738,21 @@ var Canvg = /*#__PURE__*/function () {
6723
6738
  key: "from",
6724
6739
  value: function from(ctx, svg) {
6725
6740
  var _arguments = arguments;
6726
- return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regenerator().m(function _callee9() {
6741
+ return _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1___default()(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
6727
6742
  var options, parser, svgDocument;
6728
- return _regenerator().w(function (_context9) {
6729
- while (1) switch (_context9.n) {
6743
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
6744
+ while (1) switch (_context9.prev = _context9.next) {
6730
6745
  case 0:
6731
6746
  options = _arguments.length > 2 && _arguments[2] !== undefined ? _arguments[2] : {};
6732
6747
  parser = new Parser(options);
6733
- _context9.n = 1;
6748
+ _context9.next = 4;
6734
6749
  return parser.parse(svg);
6735
- case 1:
6736
- svgDocument = _context9.v;
6737
- return _context9.a(2, new Canvg(ctx, svgDocument, options));
6750
+ case 4:
6751
+ svgDocument = _context9.sent;
6752
+ return _context9.abrupt("return", new Canvg(ctx, svgDocument, options));
6753
+ case 6:
6754
+ case "end":
6755
+ return _context9.stop();
6738
6756
  }
6739
6757
  }, _callee9);
6740
6758
  }))();
@@ -6761,57 +6779,6 @@ var Canvg = /*#__PURE__*/function () {
6761
6779
 
6762
6780
  /***/ }),
6763
6781
 
6764
- /***/ "0f33":
6765
- /***/ (function(module, exports, __webpack_require__) {
6766
-
6767
- "use strict";
6768
-
6769
-
6770
- var globalThis = __webpack_require__("cfe9");
6771
- var fails = __webpack_require__("d039");
6772
-
6773
- // babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError
6774
- var RegExp = globalThis.RegExp;
6775
- var FLAGS_GETTER_IS_CORRECT = !fails(function () {
6776
- var INDICES_SUPPORT = true;
6777
- try {
6778
- RegExp('.', 'd');
6779
- } catch (error) {
6780
- INDICES_SUPPORT = false;
6781
- }
6782
- var O = {};
6783
- // modern V8 bug
6784
- var calls = '';
6785
- var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy';
6786
- var addGetter = function addGetter(key, chr) {
6787
- // eslint-disable-next-line es/no-object-defineproperty -- safe
6788
- Object.defineProperty(O, key, {
6789
- get: function get() {
6790
- calls += chr;
6791
- return true;
6792
- }
6793
- });
6794
- };
6795
- var pairs = {
6796
- dotAll: 's',
6797
- global: 'g',
6798
- ignoreCase: 'i',
6799
- multiline: 'm',
6800
- sticky: 'y'
6801
- };
6802
- if (INDICES_SUPPORT) pairs.hasIndices = 'd';
6803
- for (var key in pairs) addGetter(key, pairs[key]);
6804
-
6805
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
6806
- var result = Object.getOwnPropertyDescriptor(RegExp.prototype, 'flags').get.call(O);
6807
- return result !== expected || calls !== expected;
6808
- });
6809
- module.exports = {
6810
- correct: FLAGS_GETTER_IS_CORRECT
6811
- };
6812
-
6813
- /***/ }),
6814
-
6815
6782
  /***/ "107c":
6816
6783
  /***/ (function(module, exports, __webpack_require__) {
6817
6784
 
@@ -7350,7 +7317,7 @@ module.exports = function (iterable, unboundFunction, options) {
7350
7317
  var fn = bind(unboundFunction, that);
7351
7318
  var iterator, iterFn, index, length, result, next, step;
7352
7319
  var stop = function stop(condition) {
7353
- if (iterator) iteratorClose(iterator, 'normal');
7320
+ if (iterator) iteratorClose(iterator, 'normal', condition);
7354
7321
  return new Result(true, condition);
7355
7322
  };
7356
7323
  var callFn = function callFn(value) {
@@ -7928,17 +7895,6 @@ module.exports = !fails(function () {
7928
7895
 
7929
7896
  /***/ }),
7930
7897
 
7931
- /***/ "428f":
7932
- /***/ (function(module, exports, __webpack_require__) {
7933
-
7934
- "use strict";
7935
-
7936
-
7937
- var globalThis = __webpack_require__("cfe9");
7938
- module.exports = globalThis;
7939
-
7940
- /***/ }),
7941
-
7942
7898
  /***/ "4362":
7943
7899
  /***/ (function(module, exports, __webpack_require__) {
7944
7900
 
@@ -8083,7 +8039,6 @@ module.exports = function (fn) {
8083
8039
 
8084
8040
 
8085
8041
  var call = __webpack_require__("c65b");
8086
- var uncurryThis = __webpack_require__("e330");
8087
8042
  var fixRegExpWellKnownSymbolLogic = __webpack_require__("d784");
8088
8043
  var anObject = __webpack_require__("825a");
8089
8044
  var isObject = __webpack_require__("861d6");
@@ -8092,9 +8047,7 @@ var toString = __webpack_require__("577e");
8092
8047
  var requireObjectCoercible = __webpack_require__("1d80");
8093
8048
  var getMethod = __webpack_require__("dc4a");
8094
8049
  var advanceStringIndex = __webpack_require__("8aa5");
8095
- var getRegExpFlags = __webpack_require__("90d8");
8096
8050
  var regExpExec = __webpack_require__("14c3");
8097
- var stringIndexOf = uncurryThis(''.indexOf);
8098
8051
 
8099
8052
  // @@match logic
8100
8053
  fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNative) {
@@ -8113,9 +8066,8 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
8113
8066
  var S = toString(string);
8114
8067
  var res = maybeCallNative(nativeMatch, rx, S);
8115
8068
  if (res.done) return res.value;
8116
- var flags = toString(getRegExpFlags(rx));
8117
- if (stringIndexOf(flags, 'g') === -1) return regExpExec(rx, S);
8118
- var fullUnicode = stringIndexOf(flags, 'u') !== -1;
8069
+ if (!rx.global) return regExpExec(rx, S);
8070
+ var fullUnicode = rx.unicode;
8119
8071
  rx.lastIndex = 0;
8120
8072
  var A = [];
8121
8073
  var n = 0;
@@ -8385,7 +8337,6 @@ var requireObjectCoercible = __webpack_require__("1d80");
8385
8337
  var advanceStringIndex = __webpack_require__("8aa5");
8386
8338
  var getMethod = __webpack_require__("dc4a");
8387
8339
  var getSubstitution = __webpack_require__("0cb2");
8388
- var getRegExpFlags = __webpack_require__("90d8");
8389
8340
  var regExpExec = __webpack_require__("14c3");
8390
8341
  var wellKnownSymbol = __webpack_require__("b622");
8391
8342
  var REPLACE = wellKnownSymbol('replace');
@@ -8448,11 +8399,10 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
8448
8399
  }
8449
8400
  var functionalReplace = isCallable(replaceValue);
8450
8401
  if (!functionalReplace) replaceValue = toString(replaceValue);
8451
- var flags = toString(getRegExpFlags(rx));
8452
- var global = stringIndexOf(flags, 'g') !== -1;
8402
+ var global = rx.global;
8453
8403
  var fullUnicode;
8454
8404
  if (global) {
8455
- fullUnicode = stringIndexOf(flags, 'u') !== -1;
8405
+ fullUnicode = rx.unicode;
8456
8406
  rx.lastIndex = 0;
8457
8407
  }
8458
8408
  var results = [];
@@ -8972,7 +8922,6 @@ var $ = __webpack_require__("23e7");
8972
8922
  var IS_PURE = __webpack_require__("c430");
8973
8923
  var IS_NODE = __webpack_require__("9adc");
8974
8924
  var globalThis = __webpack_require__("cfe9");
8975
- var path = __webpack_require__("428f");
8976
8925
  var call = __webpack_require__("c65b");
8977
8926
  var defineBuiltIn = __webpack_require__("cb2d");
8978
8927
  var setPrototypeOf = __webpack_require__("d2bb");
@@ -9244,7 +9193,6 @@ $({
9244
9193
  }, {
9245
9194
  Promise: PromiseConstructor
9246
9195
  });
9247
- PromiseWrapper = path.Promise;
9248
9196
  setToStringTag(PromiseConstructor, PROMISE, false, true);
9249
9197
  setSpecies(PROMISE);
9250
9198
 
@@ -10443,13 +10391,11 @@ module.exports = function (S, index, unicode) {
10443
10391
  var call = __webpack_require__("c65b");
10444
10392
  var hasOwn = __webpack_require__("1a2d");
10445
10393
  var isPrototypeOf = __webpack_require__("3a9b");
10446
- var regExpFlagsDetection = __webpack_require__("0f33");
10447
- var regExpFlagsGetterImplementation = __webpack_require__("ad6d");
10394
+ var regExpFlags = __webpack_require__("ad6d");
10448
10395
  var RegExpPrototype = RegExp.prototype;
10449
- module.exports = regExpFlagsDetection.correct ? function (it) {
10450
- return it.flags;
10451
- } : function (it) {
10452
- return !regExpFlagsDetection.correct && isPrototypeOf(RegExpPrototype, it) && !hasOwn(it, 'flags') ? call(regExpFlagsGetterImplementation, it) : it.flags;
10396
+ module.exports = function (R) {
10397
+ var flags = R.flags;
10398
+ return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R) ? call(regExpFlags, R) : flags;
10453
10399
  };
10454
10400
 
10455
10401
  /***/ }),
@@ -10463,7 +10409,7 @@ module.exports = regExpFlagsDetection.correct ? function (it) {
10463
10409
  var uncurryThis = __webpack_require__("e330");
10464
10410
  var id = 0;
10465
10411
  var postfix = Math.random();
10466
- var toString = uncurryThis(1.1.toString);
10412
+ var toString = uncurryThis(1.0.toString);
10467
10413
  module.exports = function (key) {
10468
10414
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
10469
10415
  };
@@ -11256,10 +11202,10 @@ var defineGlobalProperty = __webpack_require__("6374");
11256
11202
  var SHARED = '__core-js_shared__';
11257
11203
  var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
11258
11204
  (store.versions || (store.versions = [])).push({
11259
- version: '3.43.0',
11205
+ version: '3.42.0',
11260
11206
  mode: IS_PURE ? 'pure' : 'global',
11261
11207
  copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
11262
- license: 'https://github.com/zloirock/core-js/blob/v3.43.0/LICENSE',
11208
+ license: 'https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE',
11263
11209
  source: 'https://github.com/zloirock/core-js'
11264
11210
  });
11265
11211