UNPKG

svgedit

Version:

Powerful SVG-Editor for your browser

767 lines 1.52 MB
(function() { typeof window > "u" || ("SVGPathSeg" in window || (window.SVGPathSeg = function(r, e, t) { this.pathSegType = r, this.pathSegTypeAsLetter = e, this._owningPathSegList = t; }, window.SVGPathSeg.prototype.classname = "SVGPathSeg", window.SVGPathSeg.PATHSEG_UNKNOWN = 0, window.SVGPathSeg.PATHSEG_CLOSEPATH = 1, window.SVGPathSeg.PATHSEG_MOVETO_ABS = 2, window.SVGPathSeg.PATHSEG_MOVETO_REL = 3, window.SVGPathSeg.PATHSEG_LINETO_ABS = 4, window.SVGPathSeg.PATHSEG_LINETO_REL = 5, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS = 6, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL = 7, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS = 8, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL = 9, window.SVGPathSeg.PATHSEG_ARC_ABS = 10, window.SVGPathSeg.PATHSEG_ARC_REL = 11, window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS = 12, window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL = 13, window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS = 14, window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL = 15, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19, window.SVGPathSeg.prototype._segmentChanged = function() { this._owningPathSegList && this._owningPathSegList.segmentChanged(this); }, window.SVGPathSegClosePath = function(r) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CLOSEPATH, "z", r); }, window.SVGPathSegClosePath.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegClosePath.prototype.toString = function() { return "[object SVGPathSegClosePath]"; }, window.SVGPathSegClosePath.prototype._asPathString = function() { return this.pathSegTypeAsLetter; }, window.SVGPathSegClosePath.prototype.clone = function() { return new window.SVGPathSegClosePath(void 0); }, window.SVGPathSegMovetoAbs = function(r, e, t) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_MOVETO_ABS, "M", r), this._x = e, this._y = t; }, window.SVGPathSegMovetoAbs.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegMovetoAbs.prototype.toString = function() { return "[object SVGPathSegMovetoAbs]"; }, window.SVGPathSegMovetoAbs.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._x + " " + this._y; }, window.SVGPathSegMovetoAbs.prototype.clone = function() { return new window.SVGPathSegMovetoAbs(void 0, this._x, this._y); }, Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, "x", { get: function() { return this._x; }, set: function(r) { this._x = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegMovetoAbs.prototype, "y", { get: function() { return this._y; }, set: function(r) { this._y = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathSegMovetoRel = function(r, e, t) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_MOVETO_REL, "m", r), this._x = e, this._y = t; }, window.SVGPathSegMovetoRel.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegMovetoRel.prototype.toString = function() { return "[object SVGPathSegMovetoRel]"; }, window.SVGPathSegMovetoRel.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._x + " " + this._y; }, window.SVGPathSegMovetoRel.prototype.clone = function() { return new window.SVGPathSegMovetoRel(void 0, this._x, this._y); }, Object.defineProperty(window.SVGPathSegMovetoRel.prototype, "x", { get: function() { return this._x; }, set: function(r) { this._x = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegMovetoRel.prototype, "y", { get: function() { return this._y; }, set: function(r) { this._y = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathSegLinetoAbs = function(r, e, t) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_ABS, "L", r), this._x = e, this._y = t; }, window.SVGPathSegLinetoAbs.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegLinetoAbs.prototype.toString = function() { return "[object SVGPathSegLinetoAbs]"; }, window.SVGPathSegLinetoAbs.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._x + " " + this._y; }, window.SVGPathSegLinetoAbs.prototype.clone = function() { return new window.SVGPathSegLinetoAbs(void 0, this._x, this._y); }, Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, "x", { get: function() { return this._x; }, set: function(r) { this._x = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegLinetoAbs.prototype, "y", { get: function() { return this._y; }, set: function(r) { this._y = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathSegLinetoRel = function(r, e, t) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_REL, "l", r), this._x = e, this._y = t; }, window.SVGPathSegLinetoRel.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegLinetoRel.prototype.toString = function() { return "[object SVGPathSegLinetoRel]"; }, window.SVGPathSegLinetoRel.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._x + " " + this._y; }, window.SVGPathSegLinetoRel.prototype.clone = function() { return new window.SVGPathSegLinetoRel(void 0, this._x, this._y); }, Object.defineProperty(window.SVGPathSegLinetoRel.prototype, "x", { get: function() { return this._x; }, set: function(r) { this._x = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegLinetoRel.prototype, "y", { get: function() { return this._y; }, set: function(r) { this._y = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathSegCurvetoCubicAbs = function(r, e, t, A, n, i, s) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS, "C", r), this._x = e, this._y = t, this._x1 = A, this._y1 = n, this._x2 = i, this._y2 = s; }, window.SVGPathSegCurvetoCubicAbs.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegCurvetoCubicAbs.prototype.toString = function() { return "[object SVGPathSegCurvetoCubicAbs]"; }, window.SVGPathSegCurvetoCubicAbs.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._x1 + " " + this._y1 + " " + this._x2 + " " + this._y2 + " " + this._x + " " + this._y; }, window.SVGPathSegCurvetoCubicAbs.prototype.clone = function() { return new window.SVGPathSegCurvetoCubicAbs(void 0, this._x, this._y, this._x1, this._y1, this._x2, this._y2); }, Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "x", { get: function() { return this._x; }, set: function(r) { this._x = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "y", { get: function() { return this._y; }, set: function(r) { this._y = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "x1", { get: function() { return this._x1; }, set: function(r) { this._x1 = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "y1", { get: function() { return this._y1; }, set: function(r) { this._y1 = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "x2", { get: function() { return this._x2; }, set: function(r) { this._x2 = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype, "y2", { get: function() { return this._y2; }, set: function(r) { this._y2 = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathSegCurvetoCubicRel = function(r, e, t, A, n, i, s) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL, "c", r), this._x = e, this._y = t, this._x1 = A, this._y1 = n, this._x2 = i, this._y2 = s; }, window.SVGPathSegCurvetoCubicRel.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegCurvetoCubicRel.prototype.toString = function() { return "[object SVGPathSegCurvetoCubicRel]"; }, window.SVGPathSegCurvetoCubicRel.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._x1 + " " + this._y1 + " " + this._x2 + " " + this._y2 + " " + this._x + " " + this._y; }, window.SVGPathSegCurvetoCubicRel.prototype.clone = function() { return new window.SVGPathSegCurvetoCubicRel(void 0, this._x, this._y, this._x1, this._y1, this._x2, this._y2); }, Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "x", { get: function() { return this._x; }, set: function(r) { this._x = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "y", { get: function() { return this._y; }, set: function(r) { this._y = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "x1", { get: function() { return this._x1; }, set: function(r) { this._x1 = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "y1", { get: function() { return this._y1; }, set: function(r) { this._y1 = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "x2", { get: function() { return this._x2; }, set: function(r) { this._x2 = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype, "y2", { get: function() { return this._y2; }, set: function(r) { this._y2 = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathSegCurvetoQuadraticAbs = function(r, e, t, A, n) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS, "Q", r), this._x = e, this._y = t, this._x1 = A, this._y1 = n; }, window.SVGPathSegCurvetoQuadraticAbs.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegCurvetoQuadraticAbs.prototype.toString = function() { return "[object SVGPathSegCurvetoQuadraticAbs]"; }, window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._x1 + " " + this._y1 + " " + this._x + " " + this._y; }, window.SVGPathSegCurvetoQuadraticAbs.prototype.clone = function() { return new window.SVGPathSegCurvetoQuadraticAbs(void 0, this._x, this._y, this._x1, this._y1); }, Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, "x", { get: function() { return this._x; }, set: function(r) { this._x = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, "y", { get: function() { return this._y; }, set: function(r) { this._y = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, "x1", { get: function() { return this._x1; }, set: function(r) { this._x1 = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype, "y1", { get: function() { return this._y1; }, set: function(r) { this._y1 = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathSegCurvetoQuadraticRel = function(r, e, t, A, n) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL, "q", r), this._x = e, this._y = t, this._x1 = A, this._y1 = n; }, window.SVGPathSegCurvetoQuadraticRel.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegCurvetoQuadraticRel.prototype.toString = function() { return "[object SVGPathSegCurvetoQuadraticRel]"; }, window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._x1 + " " + this._y1 + " " + this._x + " " + this._y; }, window.SVGPathSegCurvetoQuadraticRel.prototype.clone = function() { return new window.SVGPathSegCurvetoQuadraticRel(void 0, this._x, this._y, this._x1, this._y1); }, Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, "x", { get: function() { return this._x; }, set: function(r) { this._x = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, "y", { get: function() { return this._y; }, set: function(r) { this._y = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, "x1", { get: function() { return this._x1; }, set: function(r) { this._x1 = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype, "y1", { get: function() { return this._y1; }, set: function(r) { this._y1 = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathSegArcAbs = function(r, e, t, A, n, i, s, a) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_ARC_ABS, "A", r), this._x = e, this._y = t, this._r1 = A, this._r2 = n, this._angle = i, this._largeArcFlag = s, this._sweepFlag = a; }, window.SVGPathSegArcAbs.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegArcAbs.prototype.toString = function() { return "[object SVGPathSegArcAbs]"; }, window.SVGPathSegArcAbs.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._r1 + " " + this._r2 + " " + this._angle + " " + (this._largeArcFlag ? "1" : "0") + " " + (this._sweepFlag ? "1" : "0") + " " + this._x + " " + this._y; }, window.SVGPathSegArcAbs.prototype.clone = function() { return new window.SVGPathSegArcAbs(void 0, this._x, this._y, this._r1, this._r2, this._angle, this._largeArcFlag, this._sweepFlag); }, Object.defineProperty(window.SVGPathSegArcAbs.prototype, "x", { get: function() { return this._x; }, set: function(r) { this._x = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegArcAbs.prototype, "y", { get: function() { return this._y; }, set: function(r) { this._y = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegArcAbs.prototype, "r1", { get: function() { return this._r1; }, set: function(r) { this._r1 = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegArcAbs.prototype, "r2", { get: function() { return this._r2; }, set: function(r) { this._r2 = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegArcAbs.prototype, "angle", { get: function() { return this._angle; }, set: function(r) { this._angle = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegArcAbs.prototype, "largeArcFlag", { get: function() { return this._largeArcFlag; }, set: function(r) { this._largeArcFlag = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegArcAbs.prototype, "sweepFlag", { get: function() { return this._sweepFlag; }, set: function(r) { this._sweepFlag = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathSegArcRel = function(r, e, t, A, n, i, s, a) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_ARC_REL, "a", r), this._x = e, this._y = t, this._r1 = A, this._r2 = n, this._angle = i, this._largeArcFlag = s, this._sweepFlag = a; }, window.SVGPathSegArcRel.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegArcRel.prototype.toString = function() { return "[object SVGPathSegArcRel]"; }, window.SVGPathSegArcRel.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._r1 + " " + this._r2 + " " + this._angle + " " + (this._largeArcFlag ? "1" : "0") + " " + (this._sweepFlag ? "1" : "0") + " " + this._x + " " + this._y; }, window.SVGPathSegArcRel.prototype.clone = function() { return new window.SVGPathSegArcRel(void 0, this._x, this._y, this._r1, this._r2, this._angle, this._largeArcFlag, this._sweepFlag); }, Object.defineProperty(window.SVGPathSegArcRel.prototype, "x", { get: function() { return this._x; }, set: function(r) { this._x = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegArcRel.prototype, "y", { get: function() { return this._y; }, set: function(r) { this._y = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegArcRel.prototype, "r1", { get: function() { return this._r1; }, set: function(r) { this._r1 = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegArcRel.prototype, "r2", { get: function() { return this._r2; }, set: function(r) { this._r2 = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegArcRel.prototype, "angle", { get: function() { return this._angle; }, set: function(r) { this._angle = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegArcRel.prototype, "largeArcFlag", { get: function() { return this._largeArcFlag; }, set: function(r) { this._largeArcFlag = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegArcRel.prototype, "sweepFlag", { get: function() { return this._sweepFlag; }, set: function(r) { this._sweepFlag = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathSegLinetoHorizontalAbs = function(r, e) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS, "H", r), this._x = e; }, window.SVGPathSegLinetoHorizontalAbs.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegLinetoHorizontalAbs.prototype.toString = function() { return "[object SVGPathSegLinetoHorizontalAbs]"; }, window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._x; }, window.SVGPathSegLinetoHorizontalAbs.prototype.clone = function() { return new window.SVGPathSegLinetoHorizontalAbs(void 0, this._x); }, Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype, "x", { get: function() { return this._x; }, set: function(r) { this._x = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathSegLinetoHorizontalRel = function(r, e) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL, "h", r), this._x = e; }, window.SVGPathSegLinetoHorizontalRel.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegLinetoHorizontalRel.prototype.toString = function() { return "[object SVGPathSegLinetoHorizontalRel]"; }, window.SVGPathSegLinetoHorizontalRel.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._x; }, window.SVGPathSegLinetoHorizontalRel.prototype.clone = function() { return new window.SVGPathSegLinetoHorizontalRel(void 0, this._x); }, Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype, "x", { get: function() { return this._x; }, set: function(r) { this._x = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathSegLinetoVerticalAbs = function(r, e) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS, "V", r), this._y = e; }, window.SVGPathSegLinetoVerticalAbs.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegLinetoVerticalAbs.prototype.toString = function() { return "[object SVGPathSegLinetoVerticalAbs]"; }, window.SVGPathSegLinetoVerticalAbs.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._y; }, window.SVGPathSegLinetoVerticalAbs.prototype.clone = function() { return new window.SVGPathSegLinetoVerticalAbs(void 0, this._y); }, Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype, "y", { get: function() { return this._y; }, set: function(r) { this._y = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathSegLinetoVerticalRel = function(r, e) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL, "v", r), this._y = e; }, window.SVGPathSegLinetoVerticalRel.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegLinetoVerticalRel.prototype.toString = function() { return "[object SVGPathSegLinetoVerticalRel]"; }, window.SVGPathSegLinetoVerticalRel.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._y; }, window.SVGPathSegLinetoVerticalRel.prototype.clone = function() { return new window.SVGPathSegLinetoVerticalRel(void 0, this._y); }, Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype, "y", { get: function() { return this._y; }, set: function(r) { this._y = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathSegCurvetoCubicSmoothAbs = function(r, e, t, A, n) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS, "S", r), this._x = e, this._y = t, this._x2 = A, this._y2 = n; }, window.SVGPathSegCurvetoCubicSmoothAbs.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString = function() { return "[object SVGPathSegCurvetoCubicSmoothAbs]"; }, window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._x2 + " " + this._y2 + " " + this._x + " " + this._y; }, window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone = function() { return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0, this._x, this._y, this._x2, this._y2); }, Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, "x", { get: function() { return this._x; }, set: function(r) { this._x = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, "y", { get: function() { return this._y; }, set: function(r) { this._y = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, "x2", { get: function() { return this._x2; }, set: function(r) { this._x2 = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype, "y2", { get: function() { return this._y2; }, set: function(r) { this._y2 = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathSegCurvetoCubicSmoothRel = function(r, e, t, A, n) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL, "s", r), this._x = e, this._y = t, this._x2 = A, this._y2 = n; }, window.SVGPathSegCurvetoCubicSmoothRel.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString = function() { return "[object SVGPathSegCurvetoCubicSmoothRel]"; }, window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._x2 + " " + this._y2 + " " + this._x + " " + this._y; }, window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone = function() { return new window.SVGPathSegCurvetoCubicSmoothRel(void 0, this._x, this._y, this._x2, this._y2); }, Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, "x", { get: function() { return this._x; }, set: function(r) { this._x = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, "y", { get: function() { return this._y; }, set: function(r) { this._y = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, "x2", { get: function() { return this._x2; }, set: function(r) { this._x2 = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype, "y2", { get: function() { return this._y2; }, set: function(r) { this._y2 = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathSegCurvetoQuadraticSmoothAbs = function(r, e, t) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS, "T", r), this._x = e, this._y = t; }, window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString = function() { return "[object SVGPathSegCurvetoQuadraticSmoothAbs]"; }, window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._x + " " + this._y; }, window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone = function() { return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0, this._x, this._y); }, Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, "x", { get: function() { return this._x; }, set: function(r) { this._x = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype, "y", { get: function() { return this._y; }, set: function(r) { this._y = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathSegCurvetoQuadraticSmoothRel = function(r, e, t) { window.SVGPathSeg.call(this, window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL, "t", r), this._x = e, this._y = t; }, window.SVGPathSegCurvetoQuadraticSmoothRel.prototype = Object.create(window.SVGPathSeg.prototype), window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString = function() { return "[object SVGPathSegCurvetoQuadraticSmoothRel]"; }, window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString = function() { return this.pathSegTypeAsLetter + " " + this._x + " " + this._y; }, window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone = function() { return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0, this._x, this._y); }, Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, "x", { get: function() { return this._x; }, set: function(r) { this._x = r, this._segmentChanged(); }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype, "y", { get: function() { return this._y; }, set: function(r) { this._y = r, this._segmentChanged(); }, enumerable: !0 }), window.SVGPathElement.prototype.createSVGPathSegClosePath = function() { return new window.SVGPathSegClosePath(void 0); }, window.SVGPathElement.prototype.createSVGPathSegMovetoAbs = function(r, e) { return new window.SVGPathSegMovetoAbs(void 0, r, e); }, window.SVGPathElement.prototype.createSVGPathSegMovetoRel = function(r, e) { return new window.SVGPathSegMovetoRel(void 0, r, e); }, window.SVGPathElement.prototype.createSVGPathSegLinetoAbs = function(r, e) { return new window.SVGPathSegLinetoAbs(void 0, r, e); }, window.SVGPathElement.prototype.createSVGPathSegLinetoRel = function(r, e) { return new window.SVGPathSegLinetoRel(void 0, r, e); }, window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs = function(r, e, t, A, n, i) { return new window.SVGPathSegCurvetoCubicAbs(void 0, r, e, t, A, n, i); }, window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel = function(r, e, t, A, n, i) { return new window.SVGPathSegCurvetoCubicRel(void 0, r, e, t, A, n, i); }, window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs = function(r, e, t, A) { return new window.SVGPathSegCurvetoQuadraticAbs(void 0, r, e, t, A); }, window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel = function(r, e, t, A) { return new window.SVGPathSegCurvetoQuadraticRel(void 0, r, e, t, A); }, window.SVGPathElement.prototype.createSVGPathSegArcAbs = function(r, e, t, A, n, i, s) { return new window.SVGPathSegArcAbs(void 0, r, e, t, A, n, i, s); }, window.SVGPathElement.prototype.createSVGPathSegArcRel = function(r, e, t, A, n, i, s) { return new window.SVGPathSegArcRel(void 0, r, e, t, A, n, i, s); }, window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs = function(r) { return new window.SVGPathSegLinetoHorizontalAbs(void 0, r); }, window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel = function(r) { return new window.SVGPathSegLinetoHorizontalRel(void 0, r); }, window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs = function(r) { return new window.SVGPathSegLinetoVerticalAbs(void 0, r); }, window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel = function(r) { return new window.SVGPathSegLinetoVerticalRel(void 0, r); }, window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs = function(r, e, t, A) { return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0, r, e, t, A); }, window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel = function(r, e, t, A) { return new window.SVGPathSegCurvetoCubicSmoothRel(void 0, r, e, t, A); }, window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs = function(r, e) { return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0, r, e); }, window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel = function(r, e) { return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0, r, e); }, "getPathSegAtLength" in window.SVGPathElement.prototype || (window.SVGPathElement.prototype.getPathSegAtLength = function(r) { if (r === void 0 || !isFinite(r)) throw "Invalid arguments."; var e = document.createElementNS("http://www.w3.org/2000/svg", "path"); e.setAttribute("d", this.getAttribute("d")); var t = e.pathSegList.numberOfItems - 1; if (t <= 0) return 0; do { if (e.pathSegList.removeItem(t), r > e.getTotalLength()) break; t--; } while (t > 0); return t; })), (!("SVGPathSegList" in window) || !("appendItem" in window.SVGPathSegList.prototype)) && (window.SVGPathSegList = function(r) { this._pathElement = r, this._list = this._parsePath(this._pathElement.getAttribute("d")), this._mutationObserverConfig = { attributes: !0, attributeFilter: ["d"] }, this._pathElementMutationObserver = new MutationObserver(this._updateListFromPathMutations.bind(this)), this._pathElementMutationObserver.observe(this._pathElement, this._mutationObserverConfig); }, window.SVGPathSegList.prototype.classname = "SVGPathSegList", Object.defineProperty(window.SVGPathSegList.prototype, "numberOfItems", { get: function() { return this._checkPathSynchronizedToList(), this._list.length; }, enumerable: !0 }), Object.defineProperty(window.SVGPathSegList.prototype, "length", { get: function() { return this._checkPathSynchronizedToList(), this._list.length; }, enumerable: !0 }), Object.defineProperty(window.SVGPathElement.prototype, "pathSegList", { get: function() { return this._pathSegList || (this._pathSegList = new window.SVGPathSegList(this)), this._pathSegList; }, enumerable: !0 }), Object.defineProperty(window.SVGPathElement.prototype, "normalizedPathSegList", { get: function() { return this.pathSegList; }, enumerable: !0 }), Object.defineProperty(window.SVGPathElement.prototype, "animatedPathSegList", { get: function() { return this.pathSegList; }, enumerable: !0 }), Object.defineProperty(window.SVGPathElement.prototype, "animatedNormalizedPathSegList", { get: function() { return this.pathSegList; }, enumerable: !0 }), window.SVGPathSegList.prototype._checkPathSynchronizedToList = function() { this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords()); }, window.SVGPathSegList.prototype._updateListFromPathMutations = function(r) { if (this._pathElement) { var e = !1; r.forEach(function(t) { t.attributeName == "d" && (e = !0); }), e && (this._list = this._parsePath(this._pathElement.getAttribute("d"))); } }, window.SVGPathSegList.prototype._writeListToPath = function() { this._pathElementMutationObserver.disconnect(), this._pathElement.setAttribute("d", window.SVGPathSegList._pathSegArrayAsString(this._list)), this._pathElementMutationObserver.observe(this._pathElement, this._mutationObserverConfig); }, window.SVGPathSegList.prototype.segmentChanged = function(r) { this._writeListToPath(); }, window.SVGPathSegList.prototype.clear = function() { this._checkPathSynchronizedToList(), this._list.forEach(function(r) { r._owningPathSegList = null; }), this._list = [], this._writeListToPath(); }, window.SVGPathSegList.prototype.initialize = function(r) { return this._checkPathSynchronizedToList(), this._list = [r], r._owningPathSegList = this, this._writeListToPath(), r; }, window.SVGPathSegList.prototype._checkValidIndex = function(r) { if (isNaN(r) || r < 0 || r >= this.numberOfItems) throw "INDEX_SIZE_ERR"; }, window.SVGPathSegList.prototype.getItem = function(r) { return this._checkPathSynchronizedToList(), this._checkValidIndex(r), this._list[r]; }, window.SVGPathSegList.prototype.insertItemBefore = function(r, e) { return this._checkPathSynchronizedToList(), e > this.numberOfItems && (e = this.numberOfItems), r._owningPathSegList && (r = r.clone()), this._list.splice(e, 0, r), r._owningPathSegList = this, this._writeListToPath(), r; }, window.SVGPathSegList.prototype.replaceItem = function(r, e) { return this._checkPathSynchronizedToList(), r._owningPathSegList && (r = r.clone()), this._checkValidIndex(e), this._list[e] = r, r._owningPathSegList = this, this._writeListToPath(), r; }, window.SVGPathSegList.prototype.removeItem = function(r) { this._checkPathSynchronizedToList(), this._checkValidIndex(r); var e = this._list[r]; return this._list.splice(r, 1), this._writeListToPath(), e; }, window.SVGPathSegList.prototype.appendItem = function(r) { return this._checkPathSynchronizedToList(), r._owningPathSegList && (r = r.clone()), this._list.push(r), r._owningPathSegList = this, this._writeListToPath(), r; }, window.SVGPathSegList._pathSegArrayAsString = function(r) { var e = "", t = !0; return r.forEach(function(A) { t ? (t = !1, e += A._asPathString()) : e += " " + A._asPathString(); }), e; }, window.SVGPathSegList.prototype._parsePath = function(r) { if (!r || r.length == 0) return []; var e = this, t = function() { this.pathSegList = []; }; t.prototype.appendSegment = function(a) { this.pathSegList.push(a); }; var A = function(a) { this._string = a, this._currentIndex = 0, this._endIndex = this._string.length, this._previousCommand = window.SVGPathSeg.PATHSEG_UNKNOWN, this._skipOptionalSpaces(); }; A.prototype._isCurrentSpace = function() { var a = this._string[this._currentIndex]; return a <= " " && (a == " " || a == ` ` || a == " " || a == "\r" || a == "\f"); }, A.prototype._skipOptionalSpaces = function() { for (; this._currentIndex < this._endIndex && this._isCurrentSpace(); ) this._currentIndex++; return this._currentIndex < this._endIndex; }, A.prototype._skipOptionalSpacesOrDelimiter = function() { return this._currentIndex < this._endIndex && !this._isCurrentSpace() && this._string.charAt(this._currentIndex) != "," ? !1 : (this._skipOptionalSpaces() && this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == "," && (this._currentIndex++, this._skipOptionalSpaces()), this._currentIndex < this._endIndex); }, A.prototype.hasMoreData = function() { return this._currentIndex < this._endIndex; }, A.prototype.peekSegmentType = function() { var a = this._string[this._currentIndex]; return this._pathSegTypeFromChar(a); }, A.prototype._pathSegTypeFromChar = function(a) { switch (a) { case "Z": case "z": return window.SVGPathSeg.PATHSEG_CLOSEPATH; case "M": return window.SVGPathSeg.PATHSEG_MOVETO_ABS; case "m": return window.SVGPathSeg.PATHSEG_MOVETO_REL; case "L": return window.SVGPathSeg.PATHSEG_LINETO_ABS; case "l": return window.SVGPathSeg.PATHSEG_LINETO_REL; case "C": return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS; case "c": return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL; case "Q": return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS; case "q": return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL; case "A": return window.SVGPathSeg.PATHSEG_ARC_ABS; case "a": return window.SVGPathSeg.PATHSEG_ARC_REL; case "H": return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS; case "h": return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL; case "V": return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS; case "v": return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL; case "S": return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS; case "s": return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL; case "T": return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS; case "t": return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL; default: return window.SVGPathSeg.PATHSEG_UNKNOWN; } }, A.prototype._nextCommandHelper = function(a, o) { return (a == "+" || a == "-" || a == "." || a >= "0" && a <= "9") && o != window.SVGPathSeg.PATHSEG_CLOSEPATH ? o == window.SVGPathSeg.PATHSEG_MOVETO_ABS ? window.SVGPathSeg.PATHSEG_LINETO_ABS : o == window.SVGPathSeg.PATHSEG_MOVETO_REL ? window.SVGPathSeg.PATHSEG_LINETO_REL : o : window.SVGPathSeg.PATHSEG_UNKNOWN; }, A.prototype.initialCommandIsMoveTo = function() { if (!this.hasMoreData()) return !0; var a = this.peekSegmentType(); return a == window.SVGPathSeg.PATHSEG_MOVETO_ABS || a == window.SVGPathSeg.PATHSEG_MOVETO_REL; }, A.prototype._parseNumber = function() { var a = 0, o = 0, l = 1, u = 0, c = 1, f = 1, h = this._currentIndex; if (this._skipOptionalSpaces(), this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == "+" ? this._currentIndex++ : this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == "-" && (this._currentIndex++, c = -1), !(this._currentIndex == this._endIndex || (this._string.charAt(this._currentIndex) < "0" || this._string.charAt(this._currentIndex) > "9") && this._string.charAt(this._currentIndex) != ".")) { for (var g = this._currentIndex; this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) >= "0" && this._string.charAt(this._currentIndex) <= "9"; ) this._currentIndex++; if (this._currentIndex != g) for (var p = this._currentIndex - 1, v = 1; p >= g; ) o += v * (this._string.charAt(p--) - "0"), v *= 10; if (this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) == ".") { if (this._currentIndex++, this._currentIndex >= this._endIndex || this._string.charAt(this._currentIndex) < "0" || this._string.charAt(this._currentIndex) > "9") return; for (; this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) >= "0" && this._string.charAt(this._currentIndex) <= "9"; ) l *= 10, u += (this._string.charAt(this._currentIndex) - "0") / l, this._currentIndex += 1; } if (this._currentIndex != h && this._currentIndex + 1 < this._endIndex && (this._string.charAt(this._currentIndex) == "e" || this._string.charAt(this._currentIndex) == "E") && this._string.charAt(this._currentIndex + 1) != "x" && this._string.charAt(this._currentIndex + 1) != "m") { if (this._currentIndex++, this._string.charAt(this._currentIndex) == "+" ? this._currentIndex++ : this._string.charAt(this._currentIndex) == "-" && (this._currentIndex++, f = -1), this._currentIndex >= this._endIndex || this._string.charAt(this._currentIndex) < "0" || this._string.charAt(this._currentIndex) > "9") return; for (; this._currentIndex < this._endIndex && this._string.charAt(this._currentIndex) >= "0" && this._string.charAt(this._currentIndex) <= "9"; ) a *= 10, a += this._string.charAt(this._currentIndex) - "0", this._currentIndex++; } var w = o + u; if (w *= c, a && (w *= Math.pow(10, f * a)), h != this._currentIndex) return this._skipOptionalSpacesOrDelimiter(), w; } }, A.prototype._parseArcFlag = function() { if (!(this._currentIndex >= this._endIndex)) { var a = !1, o = this._string.charAt(this._currentIndex++); if (o == "0") a = !1; else if (o == "1") a = !0; else return; return this._skipOptionalSpacesOrDelimiter(), a; } }, A.prototype.parseSegment = function() { var a = this._string[this._currentIndex], o = this._pathSegTypeFromChar(a); if (o == window.SVGPathSeg.PATHSEG_UNKNOWN) { if (this._previousCommand == window.SVGPathSeg.PATHSEG_UNKNOWN || (o = this._nextCommandHelper(a, this._previousCommand), o == window.SVGPathSeg.PATHSEG_UNKNOWN)) return null; } else this._currentIndex++; switch (this._previousCommand = o, o) { case window.SVGPathSeg.PATHSEG_MOVETO_REL: return new window.SVGPathSegMovetoRel(e, this._parseNumber(), this._parseNumber()); case window.SVGPathSeg.PATHSEG_MOVETO_ABS: return new window.SVGPathSegMovetoAbs(e, this._parseNumber(), this._parseNumber()); case window.SVGPathSeg.PATHSEG_LINETO_REL: return new window.SVGPathSegLinetoRel(e, this._parseNumber(), this._parseNumber()); case window.SVGPathSeg.PATHSEG_LINETO_ABS: return new window.SVGPathSegLinetoAbs(e, this._parseNumber(), this._parseNumber()); case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL: return new window.SVGPathSegLinetoHorizontalRel(e, this._parseNumber()); case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS: return new window.SVGPathSegLinetoHorizontalAbs(e, this._parseNumber()); case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL: return new window.SVGPathSegLinetoVerticalRel(e, this._parseNumber()); case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS: return new window.SVGPathSegLinetoVerticalAbs(e, this._parseNumber()); case window.SVGPathSeg.PATHSEG_CLOSEPATH: return this._skipOptionalSpaces(), new window.SVGPathSegClosePath(e); case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL: var l = { x1: this._parseNumber(), y1: this._parseNumber(), x2: this._parseNumber(), y2: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() }; return new window.SVGPathSegCurvetoCubicRel(e, l.x, l.y, l.x1, l.y1, l.x2, l.y2); case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS: var l = { x1: this._parseNumber(), y1: this._parseNumber(), x2: this._parseNumber(), y2: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() }; return new window.SVGPathSegCurvetoCubicAbs(e, l.x, l.y, l.x1, l.y1, l.x2, l.y2); case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL: var l = { x2: this._parseNumber(), y2: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() }; return new window.SVGPathSegCurvetoCubicSmoothRel(e, l.x, l.y, l.x2, l.y2); case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: var l = { x2: this._parseNumber(), y2: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() }; return new window.SVGPathSegCurvetoCubicSmoothAbs(e, l.x, l.y, l.x2, l.y2); case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL: var l = { x1: this._parseNumber(), y1: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() }; return new window.SVGPathSegCurvetoQuadraticRel(e, l.x, l.y, l.x1, l.y1); case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS: var l = { x1: this._parseNumber(), y1: this._parseNumber(), x: this._parseNumber(), y: this._parseNumber() }; return new window.SVGPathSegCurvetoQuadraticAbs(e, l.x, l.y, l.x1, l.y1); case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: return new window.SVGPathSegCurvetoQuadraticSmoothRel(e, this._parseNumber(), this._parseNumber()); case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: return new window.SVGPathSegCurvetoQuadraticSmoothAbs(e, this._parseNumber(), this._parseNumber()); case window.SVGPathSeg.PATHSEG_ARC_REL: var l = { x1: this._parseNumber(), y1: this._parseNumber(), arcAngle: this._parseNumber(), arcLarge: this._parseArcFlag(), arcSweep: this._parseArcFlag(), x: this._parseNumber(), y: this._parseNumber() }; return new window.SVGPathSegArcRel(e, l.x, l.y, l.x1, l.y1, l.arcAngle, l.arcLarge, l.arcSweep); case window.SVGPathSeg.PATHSEG_ARC_ABS: var l = { x1: this._parseNumber(), y1: this._parseNumber(), arcAngle: this._parseNumber(), arcLarge: this._parseArcFlag(), arcSweep: this._parseArcFlag(), x: this._parseNumber(), y: this._parseNumber() }; return new window.SVGPathSegArcAbs(e, l.x, l.y, l.x1, l.y1, l.arcAngle, l.arcLarge, l.arcSweep); default: throw "Unknown path seg type."; } }; var n = new t(), i = new A(r); if (!i.initialCommandIsMoveTo()) return []; for (; i.hasMoreData(); ) { var s = i.parseSegment(); if (!s) return []; n.appendSegment(s); } return n.pathSegList; })); })(); class ni { static #e(e) { const t = Number(e); return Number.isFinite(t) ? Math.min(100, Math.max(0, t)) : 100; } static #t(e) { if (e == null) return null; const t = String(e).trim(); return t ? t === "none" ? "none" : t.startsWith("#") ? t.slice(1) : t : null; } static #r(e) { if (!e) return null; const t = String(e).trim(); if (!t) return null; if (t.startsWith("#")) return t.slice(1); const A = t.match(/url\(\s*['"]?#([^'")\s]+)['"]?\s*\)/); if (A?.[1]) return A[1]; const n = t.lastIndexOf("#"); return n >= 0 && n < t.length - 1 ? t.slice(n + 1) : null; } static #A(e) { if (!e?.cloneNode) return null; const t = e.ownerDocument || document, A = /* @__PURE__ */ new Set(), n = e.cloneNode(!0); let i = ni.#r( n.getAttribute("href") || n.getAttribute("xlink:href") ); for (; i && !A.has(i); ) { A.add(i); const s = t.getElementById(i); if (!s?.getAttribute) break; const a = String(n.tagName || "").toLowerCase(), o = String(s.tagName || "").toLowerCase(); if (!["lineargradient", "radialgradient"].includes(o) || o !== a) break; for (const l of s.attributes || []) { const u = l.name; if (u === "id" || u === "href" || u === "xlink:href") continue; const c = n.getAttribute(u); (c === null || c === "") && n.setAttribute(u, l.value); } if (n.querySelectorAll("stop").length === 0) for (const l of s.querySelectorAll?.("stop") || []) n.append(l.cloneNode(!0)); i = ni.#r( s.getAttribute("href") || s.getAttribute("xlink:href") ); } return n.removeAttribute("href"), n.removeAttribute("xlink:href"), n; } /** * @param {module:jGraduate.jGraduatePaintOptions} [opt] */ constructor(e) { const t = e || {}; if (this.alpha = ni.#e(t.alpha), t.copy) switch (this.type = t.copy.type, this.alpha = ni.#e(t.copy.alpha), this.solidColor = null, this.linearGradient = null, this.radialGradient = null, this.type) { case "none": break; case "solidColor": this.solidColor = ni.#t(t.copy.solidColor); break; case "linearGradient": this.linearGradient = t.copy.linearGradient?.cloneNode ? t.copy.linearGradient.cloneNode(!0) : null; break; case "radialGradient": this.radialGradient = t.copy.radialGradient?.cloneNode ? t.copy.radialGradient.cloneNode(!0) : null; break; } else t.linearGradient ? (this.type = "linearGradient", this.solidColor = null, this.radialGradient = null, this.linearGradient = ni.#A(t.linearGradient)) : t.radialGradient ? (this.type = "radialGradient", this.solidColor = null, this.linearGradient = null, this.radialGradient = ni.#A(t.radialGradient)) : t.solidColor ? (this.type = "solidColor", this.solidColor = ni.#t(t.solidColor)) : (this.type = "none", this.solidColor = null, this.linearGradient = null, this.radialGradient = null); } } const R4 = { prefix: "[SVGCanvas]" }, bS = (r, e = "") => { const t = e ? ` [${e}]` : ""; return `${R4.prefix}${t} ${r}`; }, Ro = (r, e, t = "") => { console.error(bS(r, t)), e && console.error(e); }, kA = (r, e, t = "") => { console.warn(bS(r, t)), e !== void 0 && console.warn(e); }; const H1 = "http://www.w3