(t)
| 11713 | ig = /^((\s+,?\s*)|(,\s*))/, |
| 11714 | og = /^[01]/; |
| 11715 | function ag(t) { |
| 11716 | const e = []; |
| 11717 | return ( |
| 11718 | (t.match(ng) || []).forEach((t) => { |
| 11719 | let n = t[0]; |
| 11720 | const r = n.toLowerCase(), |
| 11721 | i = eg[r], |
| 11722 | o = (function (t, e, n) { |
| 11723 | const r = []; |
| 11724 | for (let i = 0; e && i < n.length; ) |
| 11725 | for (let o = 0; o < e; ++o) { |
| 11726 | const e = "a" !== t || (3 !== o && 4 !== o) ? rg : og, |
| 11727 | a = n.slice(i).match(e); |
| 11728 | if (null === a) |
| 11729 | throw Error("Invalid SVG path, incorrect parameter type"); |
| 11730 | ((i += a[0].length), r.push(+a[0])); |
| 11731 | const s = n.slice(i).match(ig); |
| 11732 | null !== s && (i += s[0].length); |
| 11733 | } |
| 11734 | return r; |
| 11735 | })(r, i, t.slice(1).trim()), |
| 11736 | a = o.length; |
| 11737 | if (a < i || (a && a % i != 0)) |
| 11738 | throw Error("Invalid SVG path, incorrect parameter count"); |
| 11739 | if ((e.push([n, ...o.slice(0, i)]), a !== i)) { |
| 11740 | "m" === r && (n = "M" === n ? "L" : "l"); |
| 11741 | for (let t = i; t < a; t += i) e.push([n, ...o.slice(t, t + i)]); |
| 11742 | } |
| 11743 | }), |
| 11744 | e |
| 11745 | ); |
| 11746 | } |
| 11747 | const sg = Math.PI / 180, |
| 11748 | ug = Math.PI / 2, |
| 11749 | lg = 2 * Math.PI, |
no outgoing calls
no test coverage detected