/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE  AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE:  you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { __extends, __values } from "tslib";
import { MarkerSeries } from "./MarkerSeries";
import { Base, runOn, delegateCombine, Number_$type, enumGetBox, Point_$type, typeCast, fromEnum, markType, markDep } from "igniteui-angular-core";
import { PolarAxisInfoCache } from "./PolarAxisInfoCache";
import { SeriesRenderer$2 } from "./SeriesRenderer$2";
import { PolarFrame } from "./PolarFrame";
import { DependencyProperty } from "igniteui-angular-core";
import { NumericAngleAxis } from "./NumericAngleAxis";
import { NumericRadiusAxis } from "./NumericRadiusAxis";
import { TrendLineType_$type } from "igniteui-angular-core";
import { Brush } from "igniteui-angular-core";
import { PenLineCap_$type } from "igniteui-angular-core";
import { DoubleCollection } from "igniteui-angular-core";
import { ScatterItemSearchMode_$type } from "./ScatterItemSearchMode";
import { HighlightingInfo } from "igniteui-angular-core";
import { List$1 } from "igniteui-angular-core";
import { SeriesPointOfInterest } from "./SeriesPointOfInterest";
import { ScalerParams } from "./ScalerParams";
import { Rect } from "igniteui-angular-core";
import { Marker } from "./Marker";
import { MarkerSeriesView } from "./MarkerSeriesView";
import { PolarAxes } from "./PolarAxes";
import { SeriesLayerPropertyOverlay } from "./SeriesLayerPropertyOverlay";
import { IFastItemsSource_$type } from "igniteui-angular-core";
import { SeriesRenderingArguments } from "./SeriesRenderingArguments";
import { AxisRange } from "./AxisRange";
import { Dictionary$2 } from "igniteui-angular-core";
import { OwnedPoint } from "./OwnedPoint";
import { GeometryUtil } from "igniteui-angular-core";
import { DataContext } from "igniteui-angular-core";
import { HashPool$2 } from "igniteui-angular-core";
import { Clipper } from "igniteui-angular-core";
import { PolarTrendLineManager } from "./PolarTrendLineManager";
import { TrendResolutionParams } from "./TrendResolutionParams";
import { AssigningPolarStyleEventArgs } from "./AssigningPolarStyleEventArgs";
import { AssigningPolarMarkerStyleEventArgs } from "./AssigningPolarMarkerStyleEventArgs";
import { SeriesRenderManager } from "./SeriesRenderManager";
import { DataLegendSeriesValueInfo } from "igniteui-angular-core";
import { DataLegendSeriesContext } from "igniteui-angular-core";
import { ChartSelection } from "./ChartSelection";
import { CollisionRect } from "igniteui-angular-core";
import { PropertyMetadata } from "igniteui-angular-core";
import { truncate, isNaN_, isInfinity } from "igniteui-angular-core";
import { Defaults } from "./Defaults";
import { NumericMarkerManager } from "./NumericMarkerManager";
import { GeometryGroup } from "igniteui-angular-core";
import { stringIsNullOrEmpty } from "igniteui-angular-core";
/**
 * @hidden
 */
var PolarBase = /** @class */ /*@__PURE__*/ (function (_super) {
    __extends(PolarBase, _super);
    function PolarBase() {
        var _this = _super.call(this) || this;
        _this.yw = null;
        _this.yn = null;
        _this.yu = null;
        _this.acd = null;
        _this.acc = null;
        _this.acb = null;
        _this.y8 = null;
        _this.zf = null;
        _this.zg = null;
        _this.y0 = new PolarFrame();
        _this.y2 = new PolarFrame();
        _this.yy = new PolarFrame();
        _this.yt = null;
        _this.zy = null;
        _this.y4 = 1;
        _this.zk = false;
        _this.zj = false;
        _this.zd = null;
        _this.ze = null;
        _this.assigningPolarStyle = null;
        _this.assigningPolarMarkerStyle = null;
        _this.y3 = null;
        _this.y1 = null;
        _this.yx = null;
        _this.y3 = new PolarSeriesRenderManager();
        _this.y5 = _this.y6();
        _this.y1 = new PolarFrame();
        _this.y2.x = runOn(_this, _this.aca);
        _this.y0.x = runOn(_this, _this.aca);
        _this.yy.x = runOn(_this, _this.aca);
        _this.y8 = new SeriesRenderer$2(PolarFrame.$, PolarBaseView.$, 0, runOn(_this, _this.abb), runOn(_this, _this.abf), runOn(_this, _this.d3), runOn(_this, _this.r5), runOn(_this, _this.aa4));
        return _this;
    }
    PolarBase.prototype.cs = function () {
        return new PolarBaseView(this);
    };
    PolarBase.prototype.qz = function (a) {
        _super.prototype.qz.call(this, a);
        this.yv = a;
    };
    PolarBase.prototype.o2 = function () {
        _super.prototype.o2.call(this);
        this.yr = null;
        this.ys = null;
    };
    PolarBase.prototype.get_fp = function () {
        return true;
    };
    PolarBase.prototype.eb = function (a, b, c, d, e) {
        var _this = this;
        if (!this.hasMarkers) {
            return false;
        }
        var f = this.yr;
        var g = new ScalerParams(1, this.db.v4, this.wq, f.ch);
        g.c = this.getEffectiveViewport1(this.cv);
        var h = this.ys;
        var i = new ScalerParams(1, this.db.v4, this.wq, h.ch);
        i.c = this.getEffectiveViewport1(this.cv);
        a.clear();
        this.w4.cj(function (j) {
            if (j._visibility == 0) {
                var k = new SeriesPointOfInterest();
                var l = j.n;
                var m = j.o;
                if (l < _this.wq.left || l > _this.wq.right || m < _this.wq.top || m > _this.wq.bottom) {
                    return;
                }
                var n = void 0;
                var o = void 0;
                var p = _this.yt.f(l, m, _this.cv.by, _this.cv.bx, _this.cv.getEffectiveViewport(), n, o);
                n = p.p5;
                o = p.p6;
                k.d = n;
                k.e = o;
                k.b = j.content;
                k.g = _this.ve;
                k.c = j.ak;
                if (_this.g9) {
                    k.g = _this.vl(j.ak);
                }
                a.add(k);
            }
        });
        return true;
    };
    PolarBase.prototype.aa4 = function () {
        if (this.dc.g) {
            this.dc.t();
        }
    };
    PolarBase.prototype.aa6 = function () {
        this.yt.e(this.yw.w, this.zh, this.zi, this.acd, this.acc, this.acb, function (a, b) { return Math.cos(b); }, function (a, b) { return Math.sin(b); }, true);
    };
    PolarBase.prototype.gb = function () {
        return this.highlightedItemsSource != null || (this.aam != null && this.aak != null);
    };
    PolarBase.prototype.zw = function () {
        return false;
    };
    PolarBase.prototype.ht = function () {
        var a = _super.prototype.ht.call(this);
        {
            var b = ((function () {
                var $ret = new SeriesLayerPropertyOverlay();
                $ret.ad = "AngleMemberPath";
                $ret.p = true;
                $ret.y = "HighlightedAngleMemberPath";
                $ret.q = true;
                return $ret;
            })());
            b.valueResolving = delegateCombine(b.valueResolving, runOn(this, this.aa7));
            a.add(b);
        }
        {
            var c = ((function () {
                var $ret = new SeriesLayerPropertyOverlay();
                $ret.ad = "RadiusMemberPath";
                $ret.p = true;
                $ret.y = "HighlightedRadiusMemberPath";
                $ret.q = true;
                return $ret;
            })());
            c.valueResolving = delegateCombine(c.valueResolving, runOn(this, this.aa8));
            a.add(c);
        }
        if (this.zw()) {
            var d = ((function () {
                var $ret = new SeriesLayerPropertyOverlay();
                $ret.r = true;
                $ret.ad = "DashArray";
                $ret.p = true;
                $ret.x = ((function () {
                    var $ret = new DoubleCollection();
                    $ret.add(5);
                    $ret.add(5);
                    return $ret;
                })());
                $ret.q = true;
                return $ret;
            })());
            a.add(d);
        }
        if (!this.zw()) {
            var e = ((function () {
                var $ret = new SeriesLayerPropertyOverlay();
                $ret.r = true;
                $ret.ad = "Brush";
                $ret.p = true;
                $ret.y = "ActualBrush";
                $ret.q = true;
                return $ret;
            })());
            e.valueResolving = delegateCombine(e.valueResolving, runOn(this, this.ry));
            a.add(e);
        }
        if (!this.zw()) {
            var f = ((function () {
                var $ret = new SeriesLayerPropertyOverlay();
                $ret.r = true;
                $ret.ad = "Outline";
                $ret.p = true;
                $ret.y = "ActualOutline";
                $ret.q = true;
                return $ret;
            })());
            f.valueResolving = delegateCombine(f.valueResolving, runOn(this, this.ry));
            a.add(f);
        }
        return a;
    };
    PolarBase.prototype.aa8 = function (a, b) {
        if (this.aam != null) {
            b.value = this.aam;
            return;
        }
        b.value = this.aaz;
    };
    PolarBase.prototype.aa7 = function (a, b) {
        if (this.aak != null) {
            b.value = this.aak;
            return;
        }
        b.value = this.aah;
    };
    Object.defineProperty(PolarBase.prototype, "zh", {
        get: function () {
            return this.zf;
        },
        set: function (a) {
            if (this.zf != a) {
                var b = this.zh;
                this.zf = a;
                this.raisePropertyChanged("AngleColumn", b, this.zh);
            }
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(PolarBase.prototype, "zi", {
        get: function () {
            return this.zg;
        },
        set: function (a) {
            if (this.zg != a) {
                var b = this.zi;
                this.zg = a;
                this.raisePropertyChanged("RadiusColumn", b, this.zi);
            }
        },
        enumerable: false,
        configurable: true
    });
    Object.defineProperty(PolarBase.prototype, "ab5", {
        get: function () {
            return this.c(PolarBase.abg);
        },
        set: function (a) {
            this.h(PolarBase.abg, a);
        },
        enumerable: false,
        configurable: true
    });
    PolarBase.prototype.yz = function () {
        var a = this.yy;
        if (this.d3()) {
            if (this.dc.g) {
                this.dc.t();
            }
            a = this.y2;
        }
        return a;
    };
    PolarBase.prototype.p9 = function () {
        _super.prototype.p9.call(this);
        if (this.ys != null) {
            this.ys.ib(false);
        }
        if (this.yr != null) {
            this.yr.ib(false);
        }
    };
    PolarBase.prototype.pb = function (a, b, c, d) {
        var e = false;
        this.yv.c0.g$e(a, b, c, d);
        if (this.yr != null && !this.yr.c1()) {
            e = true;
        }
        if (this.ys != null && !this.ys.c1()) {
            e = true;
        }
        if (e) {
            this.rp(true);
        }
    };
    PolarBase.prototype.so = function (a, b) {
        this.rp(false);
    };
    PolarBase.prototype.sp = function (a, b) {
        this.rp(false);
    };
    PolarBase.prototype.he = function (a, b, c) {
        var d = true;
        if (!_super.prototype.he.call(this, a, b, c) || !c.o() || b.isEmpty || a.isEmpty || this.yr == null || this.ys == null || this.zh == null || this.zi == null || this.zh.count == 0 || this.zi.count == 0 || this.dn == null || this.dn.count != this.zh.count || this.dn.count != this.zi.count || this.yt == null || this.yr.bi == null || this.ys.bi == null || this.yr.l4 == this.yr.l3 || this.ys.l4 == this.ys.l3) {
            d = false;
        }
        return d;
    };
    PolarBase.prototype.rq = function (a) {
        _super.prototype.rq.call(this, a);
        var b;
        var c;
        var d = this.getViewInfo(c, b);
        c = d.p0;
        b = d.p1;
        if (!this.he(c, b, this.cv)) {
            this.o5(true, this.cv);
            return;
        }
        this.acd = b;
        this.acc = c;
        this.acb = this.cv.getEffectiveViewport();
        this.yu = new PolarAxisInfoCache(this.yr, this.ys, this.dn);
        var e = new SeriesRenderingArguments(this, c, b, a, this.gr);
        var f = this.y8.g(e, this.y0, this.yy, this.y2, this.yv);
        this.y0 = f.p1;
        this.yy = f.p2;
        this.y2 = f.p3;
    };
    PolarBase.prototype.aca = function (a) {
        var b = this.yt.h(a.x, a.y, this.acd, this.acc, this.acb, this.yu.e, this.yu.d, this.yu.g, this.yu.f, this.yu.i, this.yu.h);
        return b;
    };
    PolarBase.prototype.ay = function (a) {
        if (a != null && a == this.yr && this.zh != null) {
            return new AxisRange(this.zh.minimum, this.zh.maximum);
        }
        if (a != null && a == this.ys && this.zi != null) {
            return new AxisRange(this.zi.minimum, this.zi.maximum);
        }
        return null;
    };
    PolarBase.prototype.gd = function (a) {
        var b = this.cv.by;
        b = b.copy();
        var c = this.cv.bx;
        var d = !b.isEmpty && !c.isEmpty && this.dn != null ? this.dn.indexOf(a) : -1;
        if (this.yr == null || this.zh == null || this.ys == null || this.zi == null) {
            return false;
        }
        if (d < 0 || d > this.zh.count - 1 || d > this.zi.count - 1) {
            return false;
        }
        var e = this.yr.getScaledAngle(this.zh.item(d));
        var f = this.ys.od(this.zi.item(d));
        var g = 0.5 + (Math.cos(e) * f);
        var h = 0.5 + (Math.sin(e) * f);
        if (!isNaN_(g)) {
            if (g < b.left + 0.1 * b.width) {
                g = g + 0.4 * b.width;
                b.x = g - 0.5 * b.width;
            }
            if (g > b.right - 0.1 * b.width) {
                g = g - 0.4 * b.width;
                b.x = g - 0.5 * b.width;
            }
        }
        if (!isNaN_(h)) {
            if (h < b.top + 0.1 * b.height) {
                h = h + 0.4 * b.height;
                b.y = h - 0.5 * b.height;
            }
            if (h > b.bottom - 0.1 * b.height) {
                h = h - 0.4 * b.height;
                b.y = h - 0.5 * b.height;
            }
        }
        if (this.c3 != null) {
            this.c3.au(this.db, b, true);
        }
        return d >= 0;
    };
    PolarBase.prototype.kn = function (a) {
        var b = this.j3(a);
        if (this.dn != null && b >= 0 && b < this.dn.count) {
            return this.dn.item(b);
        }
        return null;
    };
    PolarBase.prototype.j3 = function (a) {
        var b = truncate(Math.round(this.ir(a)));
        return b;
    };
    PolarBase.prototype.ir = function (a) {
        switch (this.y5) {
            case 1: return this.z2(a);
            case 3: return this.z3(a);
            case 2: return this.z0(a);
            case 4: return this.z1(a);
        }
        return -1;
    };
    PolarBase.prototype.z1 = function (a) {
        return this.z4(a, false);
    };
    PolarBase.prototype.z0 = function (a) {
        var b = this.v5(a);
        var c = b.x;
        var d = b.y;
        if (this.dn == null || this.yr == null || this.ys == null || this.zh == null || this.zi == null) {
            return -1;
        }
        if (this.dn.count > this.z6) {
            return -1;
        }
        if (!this.zo()) {
            return -1;
        }
        var e = this.zy;
        var f = 1.7976931348623157E+308;
        var g = -1;
        for (var h = 0; h < this.zh.count; h++) {
            var i = e._inner[h].x;
            var j = e._inner[h].y;
            var k = (c - i) * (c - i) + (d - j) * (d - j);
            if (k < f) {
                f = k;
                g = h;
            }
        }
        return g;
    };
    PolarBase.prototype.zo = function () {
        var a = this.yy;
        if (this.d3()) {
            a = this.y2;
        }
        if (a == null || a.w.count == 0) {
            return false;
        }
        this.zy = a.w;
        return true;
    };
    PolarBase.prototype.z4 = function (a, b) {
        if (!this.zr) {
            return -1;
        }
        var c = { $type: Point_$type, x: 0, y: 0 };
        var d = true;
        var e = this.yy;
        if (this.d3()) {
            e = this.y2;
        }
        if (e == null) {
            return -1;
        }
        if (e.m == null) {
            return -1;
        }
        if (this.dn == null || this.dn.count > this.z6) {
            return -1;
        }
        if (!this.zo()) {
            return -1;
        }
        var f = this.zy;
        var g = this.v5(a);
        var h = 1.7976931348623157E+308;
        var i = -1;
        for (var j = 0; j < f.count; j++) {
            var k = f._inner[j];
            if (j > 0) {
                if (isNaN_(k.x) || isNaN_(k.y) || isNaN_(c.x) || isNaN_(c.y)) {
                    c = k;
                    continue;
                }
                if (!b || e.j.containsKey(this.dn.item(j)) || e.j.containsKey(this.dn.item(j - 1))) {
                    var l = GeometryUtil.h(g, c, k);
                    if (l < h) {
                        h = l;
                        i = j;
                    }
                }
            }
            c = k;
        }
        if (i >= 0) {
            var m = f._inner[i];
            var n = f._inner[i - 1];
            if (!b || (e.j.containsKey(this.dn.item(i)) && e.j.containsKey(this.dn.item(i - 1)))) {
                var o = GeometryUtil.m(g, n, m);
                return (i - 1) + o;
            }
            else if (e.j.containsKey(this.dn.item(i))) {
                return i;
            }
            else {
                return i - 1;
            }
        }
        return -1;
    };
    PolarBase.prototype.z3 = function (a) {
        return this.z4(a, true);
    };
    PolarBase.prototype.z2 = function (a) {
        var _this = this;
        var b = null;
        var c = 1.7976931348623157E+308;
        var d = this.v5(a);
        var e = d.x;
        var f = d.y;
        if (this.yv.c1.e > this.z6) {
            return -1;
        }
        this.yv.c4(function (g) {
            if (g._visibility == 0) {
                var h = _this.yv.cu(g);
                var i = h.left + h.width / 2;
                var j = h.top + h.height / 2;
                var k = (e - i) * (e - i) + (f - j) * (f - j);
                if (k < c) {
                    c = k;
                    b = g;
                }
            }
        });
        if (b != null) {
            return b.ak;
        }
        return -1;
    };
    PolarBase.prototype.wa = function (a, b, c) {
        var _this = this;
        if (this.yr == null || this.ys == null || this.zh == null || this.zi == null) {
            return { $type: Point_$type, x: NaN, y: NaN };
        }
        var d = this.cv.by;
        var e = this.cv.bx;
        var f = this.getEffectiveViewport();
        var g = new ScalerParams(0, d, e, this.yr.ch, f);
        var h = ((function () {
            var $ret = new ScalerParams(0, d, e, _this.ys.ch, f);
            $ret.b = _this.iy();
            return $ret;
        })());
        if (b) {
            var i = this.ir(a);
            if (i == -1) {
                return { $type: Point_$type, x: NaN, y: NaN };
            }
            var j = truncate(Math.floor(i));
            var k = truncate(Math.ceil(i));
            if (j < 0) {
                j = 0;
            }
            if (k < 0) {
                k = 0;
            }
            if (k > this.dn.count - 1) {
                k = this.dn.count - 1;
            }
            if (j > this.dn.count - 1) {
                j = this.dn.count - 1;
            }
            if (k == j) {
                return this.yt.h(this.zh.item(j), this.zi.item(j), d, e, f, this.yu.e, this.yu.d, this.yu.g, this.yu.f, this.yu.i, this.yu.h);
            }
            var l = i - Math.floor(i);
            var m = this.yt.h(this.zh.item(j), this.zi.item(j), d, e, f, this.yu.e, this.yu.d, this.yu.g, this.yu.f, this.yu.i, this.yu.h);
            var n = this.yt.h(this.zh.item(k), this.zi.item(k), d, e, f, this.yu.e, this.yu.d, this.yu.g, this.yu.f, this.yu.i, this.yu.h);
            var o = m.x;
            var p = m.y;
            var q = n.x;
            var r = n.y;
            var s = q - o;
            var t = r - p;
            return { $type: Point_$type, x: o + s * l, y: p + t * l };
        }
        else {
            var u = this.j3(a);
            if (u == -1) {
                return { $type: Point_$type, x: NaN, y: NaN };
            }
            return this.yt.h(this.zh.item(u), this.zi.item(u), d, e, f, this.yu.e, this.yu.d, this.yu.g, this.yu.f, this.yu.i, this.yu.h);
        }
    };
    PolarBase.prototype.ai = function () {
        return [this.yr, this.ys];
    };
    PolarBase.prototype.kq = function (a, b) {
        var c = this.nd(b);
        if (c == PolarBase.$$p[3]) {
            return this.kr(a, b, this.aah);
        }
        if (c == PolarBase.$$p[15]) {
            return this.kr(a, b, this.aaz);
        }
        if (c == PolarBase.$$p[5]) {
            return this.kr(a, b, this.aak);
        }
        if (c == PolarBase.$$p[6]) {
            return this.kr(a, b, this.aam);
        }
        return _super.prototype.kq.call(this, a, b);
    };
    PolarBase.prototype.md = function (a) {
        var b = this.nd(a);
        if (b == PolarBase.$$p[3]) {
            return this.aah;
        }
        if (b == PolarBase.$$p[15]) {
            return this.aaz;
        }
        if (b == PolarBase.$$p[5]) {
            return this.aak;
        }
        if (b == PolarBase.$$p[6]) {
            return this.aam;
        }
        return _super.prototype.md.call(this, a);
    };
    PolarBase.prototype.q7 = function (a, b, c, d) {
        _super.prototype.q7.call(this, a, b, c, d);
        if (this.yv.c0.g$b(a, b, c, d)) {
            this.rp(false);
            this.qj();
        }
        switch (b) {
            case PolarBase.$$p[1]:
            case PolarBase.$$p[2]:
            case PolarBase.$$p[13]:
            case PolarBase.$$p[14]:
                this.qd();
                break;
            case "FastItemsSource":
                if (typeCast(IFastItemsSource_$type, c) != null) {
                    c.deregisterColumn(this.zh);
                    c.deregisterColumn(this.zi);
                    this.zh = null;
                    this.zi = null;
                }
                if (typeCast(IFastItemsSource_$type, d) != null) {
                    this.zh = this.dk(this.aah);
                    this.zi = this.dk(this.aaz);
                }
                if ((this.ys != null && !this.ys.c1()) || (this.yr != null && !this.yr.c1())) {
                    this.rp(this.gg && c != null);
                }
                break;
            case PolarBase.$$p[0]:
                if (this.yr != null && this.ys != null) {
                    this.yt = new PolarAxes(this.ys, this.yr);
                }
                if (c != null) {
                    c.b0(this);
                }
                if (d != null) {
                    d.ct(this);
                }
                if (this.yr != null && !this.yr.c1()) {
                    this.rp(false);
                }
                else if (c != null && d == null) {
                    this.o5(true, this.cv);
                }
                break;
            case PolarBase.$$p[12]:
                if (this.yr != null && this.ys != null) {
                    this.yt = new PolarAxes(this.ys, this.yr);
                }
                if (c != null) {
                    c.b0(this);
                }
                if (d != null) {
                    d.ct(this);
                }
                if (this.ys != null && !this.ys.c1()) {
                    this.rp(false);
                }
                else if (c != null && d == null) {
                    this.o5(true, this.cv);
                }
                if (this.yr != null && !this.yr.c1()) {
                    this.yr.h7();
                }
                break;
            case PolarBase.$$p[3]:
                if (this.dn != null) {
                    this.dn.deregisterColumn(this.zh);
                    this.zh = this.dk(this.aah);
                }
                break;
            case "AngleColumn":
                this.yv.c0.g$i();
                if (this.yr != null && !this.yr.c1()) {
                    this.rp(this.gg && this.d7);
                }
                break;
            case PolarBase.$$p[15]:
                if (this.dn != null) {
                    this.dn.deregisterColumn(this.zi);
                    this.zi = this.dk(this.aaz);
                }
                break;
            case "RadiusColumn":
                this.yv.c0.g$i();
                if (this.ys != null && !this.ys.c1()) {
                    this.rp(this.gg && this.d7);
                }
                break;
            case PolarBase.$$p[16]:
                this.rp(false);
                this.qj();
                break;
            case PolarBase.$$p[11]:
                this.rp(false);
                this.qj();
                break;
            case "TransitionProgress":
                this.yu = new PolarAxisInfoCache(this.yr, this.ys, this.dn);
                this.acd = this.cv.by;
                this.acc = this.cv.bx;
                this.acb = this.cv.getEffectiveViewport();
                this.y2.v = this.zx;
                this.y2.c(this.jq, this.y0, this.yy);
                if (this.d5(this.cv)) {
                    return;
                }
                if (this.jq == 1) {
                    this.abf(this.yy, this.yv);
                    this.qm();
                }
                else {
                    this.abf(this.y2, this.yv);
                }
                if (this.db != null) {
                    this.db.qo(this);
                }
                break;
            case "TrendLineBrush":
                this.rd(b);
                break;
            case PolarBase.$$p[4]:
                this.rp(false);
                this.qj();
                break;
            case "TrendLineType":
                this.qj();
                break;
            case PolarBase.$$p[8]:
                this.zk = this.zt();
                this.rp(false);
                break;
            case PolarBase.$$p[7]:
                this.zj = this.zs();
                this.rp(false);
                break;
            case PolarBase.$$p[9]:
                this.y5 = this.y6();
                break;
        }
    };
    Object.defineProperty(PolarBase.prototype, "y5", {
        get: function () {
            return this.y4;
        },
        set: function (a) {
            var b = this.y4;
            this.y4 = a;
            if (b != this.y4) {
                this.raisePropertyChanged("ActualItemSearchMode", enumGetBox(ScatterItemSearchMode_$type, b), enumGetBox(ScatterItemSearchMode_$type, this.y4));
            }
        },
        enumerable: false,
        configurable: true
    });
    PolarBase.prototype.y6 = function () {
        if (this.y7 != 0) {
            return this.y7;
        }
        return this.zr ? 4 : 1;
    };
    PolarBase.prototype.get_zr = function () {
        return false;
    };
    Object.defineProperty(PolarBase.prototype, "zr", {
        get: function () {
            return this.get_zr();
        },
        enumerable: false,
        configurable: true
    });
    PolarBase.prototype.zt = function () {
        return this.zq;
    };
    PolarBase.prototype.zs = function () {
        return this.zp;
    };
    PolarBase.prototype.zm = function (a) {
        if (typeCast(NumericRadiusAxis.$, a) !== null) {
            return true;
        }
        return false;
    };
    PolarBase.prototype.zl = function (a) {
        if (typeCast(NumericAngleAxis.$, a) !== null) {
            return true;
        }
        return false;
    };
    PolarBase.prototype.o5 = function (a, b) {
        _super.prototype.o5.call(this, a, b);
        var c = b;
        if (a) {
            c.c1.clear();
        }
        c.c0.g$d();
    };
    PolarBase.prototype.yo = function (a, b) {
        var c = a.top - 10;
        var d = a.bottom + 10;
        var e = a.left - 10;
        var f = a.right + 10;
        var g = ((function () {
            var $ret = new Clipper(1, e, d, f, c, false);
            $ret.i = b;
            return $ret;
        })());
        return g;
    };
    PolarBase.prototype.aa3 = function (a, b, c, d) {
        a.g = new Dictionary$2(Base.$, OwnedPoint.$, 1, b);
        var e = this.dn;
        var _loop_1 = function (f) {
            var g = a.w._inner[f];
            if (!isInfinity(g.x) && !isInfinity(g.y)) {
                var h_1 = { $type: Point_$type, x: this_1.zh.item(f), y: this_1.zi.item(f) };
                var i_1 = { $type: Point_$type, x: g.x, y: g.y };
                a.g.addItem(e.item(f), ((function () {
                    var $ret = new OwnedPoint();
                    $ret.a = e.item(f);
                    $ret.b = h_1;
                    $ret.c = i_1;
                    return $ret;
                })()));
            }
        };
        var this_1 = this;
        for (var f = 0; f < b; f++) {
            _loop_1(f);
        }
    };
    PolarBase.prototype.abb = function (a, b) {
        var _this = this;
        var c = b.by;
        var d = b.bx;
        var e = b.getEffectiveViewport();
        a.j.clear();
        a.n.clear();
        var f = Math.min(this.zh != null ? this.zh.count : 0, this.zi != null ? this.zi.count : 0);
        if (f < 1) {
            return;
        }
        this.yu = new PolarAxisInfoCache(this.yr, this.ys, this.dn);
        this.yw = a;
        this.acc = d;
        this.acd = c;
        this.acb = b.getEffectiveViewport();
        b.cy.l(a.j, this.z7, c, d, this.id);
        if (f <= this.z7) {
            this.aa3(a, f, c, d);
        }
        var g = this.yo(d, a.n);
        var h = Math.min(this.yr.l4, this.yr.l3);
        var i = Math.max(this.yr.l3, this.yr.l4);
        b.c0.i = this.zx;
        b.c0.h = 0;
        b.c0.k = this.ys.n7;
        b.c0.j = this.ys.n6;
        b.c0.l = function (j, k) { return _this.yt.c(j, k, c, d, e, Math.cos); };
        b.c0.m = function (j, k) { return _this.yt.d(j, k, c, d, e, Math.sin); };
        var j = new List$1(Number_$type, 0);
        for (var k = 0; k < this.zh.count; k++) {
            if (this.zh.item(k) >= h && this.zh.item(k) <= i) {
                j.add(this.zh.item(k));
            }
        }
        var l = this.zi;
        if (j.count != this.zh.count) {
            l = new List$1(Number_$type, 0);
            for (var m = 0; m < this.zh.count; m++) {
                if (this.zh.item(m) >= h && this.zh.item(m) <= i) {
                    l.add(this.zi.item(m));
                }
            }
        }
        b.c0.n(a.n, this.y9, j, l, this.z8, runOn(this.yr, this.yr.getScaledAngle), runOn(this.ys, this.ys.od), ((function () {
            var $ret = new TrendResolutionParams();
            $ret.d = _this.id;
            $ret.i = d;
            $ret.h = e;
            $ret.j = c;
            return $ret;
        })()), g, h, i);
    };
    PolarBase.prototype.get_fe = function () {
        return true;
    };
    PolarBase.prototype.zb = function (a, b, c) {
        return null;
    };
    PolarBase.prototype.zc = function (a, b, c) {
        if (this.dn == null) {
            return null;
        }
        var d = this.yz();
        var e = this.yv.b1(this.v5(b));
        var f = -1;
        if (e == null) {
            if (a != null) {
                f = this.dn.indexOf(a);
            }
            else {
                return null;
            }
        }
        else {
            f = e.ak;
        }
        if (f == -1) {
            return null;
        }
        var g = new HighlightingInfo();
        g.i = this;
        g.g = f;
        g.f = f;
        g.c = false;
        g.d = true;
        if (c != null && c.g == g.g && c.f == g.f) {
            return c;
        }
        return g;
    };
    PolarBase.prototype.za = function (a, b, c) {
        var d = new HighlightingInfo();
        d.i = this;
        d.g = 0;
        d.f = this.dn.count - 1;
        d.c = true;
        if (c != null && c.g == d.g && c.f == d.f) {
            return c;
        }
        return d;
    };
    PolarBase.prototype.dg = function (a, b, c) {
        if (this.ed && this.fz(this.bx) && !c) {
            var d = this.zb(a, b, this.zd);
            this.zd = d;
            return d;
        }
        else {
            var e = this.za(a, b, this.zd);
            this.zd = e;
            return e;
        }
    };
    PolarBase.prototype.dh = function (a, b, c) {
        if (this.fz(this.bx) && !c) {
            var d = this.zc(a, b, this.ze);
            this.ze = d;
            return d;
        }
        else {
            var e = this.za(a, b, this.ze);
            e.d = true;
            this.ze = e;
            return e;
        }
    };
    PolarBase.prototype.zv = function () {
        return (this.assigningPolarStyle != null && this.zk) || (this.bx != 1) || this.d2 || (this.cp != 1) || (this.co != 1);
    };
    PolarBase.prototype.zu = function () {
        return (this.assigningPolarMarkerStyle != null && this.zj) || this.d2 || (this.bx != 1) || (this.cp != 1) || (this.co != 1);
    };
    PolarBase.prototype.abf = function (a, b) {
        this.qv();
        var c = b.by;
        var d = b.bx;
        var e = this.getEffectiveViewport1(b);
        var f = this.wh(b);
        this.yu = new PolarAxisInfoCache(this.yr, this.ys, this.dn);
        if (this.xe()) {
            b.cy.j(a.j, this.xg);
            if (this.zu()) {
                this.aa5(b, a);
            }
        }
        b.cr();
        var g = this.yo(d, b.c0.g$j.an);
        b.c0.g$h(a.n, g);
        this.aa2(d, c, e, f, b);
    };
    PolarBase.prototype.yl = function (a, b) {
        return this.ym(a, b);
    };
    PolarBase.prototype.ym = function (a, b) {
        if (b < a || a < 0 || a > this.zh.count || b < 0 || b > this.zh.count) {
            return null;
        }
        var c = new Array((b - a) + 1);
        for (var d = a; d <= b; d++) {
            var e = d;
            c[d - a] = this.dn.item(d);
        }
        return c;
    };
    PolarBase.prototype.aa5 = function (a, b) {
        var _this = this;
        a.b7 = true;
        this.y3.ay(this, this.zu(), runOn(this, this.yl));
        var c = this.y3.d;
        var d = c != null;
        var e = this.getEffectiveViewport1(a);
        var f = this.dn == null ? 0 : this.dn.count;
        this.yv.cj(function (g) {
            if (g._visibility == 0) {
                var h = g.ak;
                var i = g.content;
                if (i == null) {
                    i = new DataContext();
                    g.content = i;
                }
                if (d) {
                    _this.aa9(h, f, a.q);
                }
                _this.y3.ac(g, i);
            }
        });
    };
    PolarBase.prototype.aba = function (a, b, c) {
        var d = this.bx != 1;
        var e = this.cp != 1;
        var f = this.co != 1;
        this.y3.a0(this.y3.b, a, b, false);
        this.y3.ab(this.ib);
        var g = this.y3.ax;
        var h = null;
        var i = null;
        var j = null;
        var k = this.dn;
        if (d && this.db != null) {
            h = this.db.dl.getHighlightingInfo(this, k, g.z, g.y, false);
            g.c = h;
        }
        if (e && this.db != null) {
            i = this.db.dm.getHighlightingInfo(this, k, g.z, g.y, false);
            if (i == null && this.bn != null) {
                i = this.db.dm.getHighlightingInfo(this.bn, this.bn.dn, g.z, g.y, false);
            }
            g.d = i;
        }
        if (f && this.db != null) {
            j = this.db.dk.getHighlightingInfo(this, k, g.z, g.y, false);
            g.b = j;
        }
        g.h = c;
        this.abd(g);
        this.y3.z(this, h, i, j, c, d, e, f, a < 0);
    };
    PolarBase.prototype.aa9 = function (a, b, c) {
        var d = this.bx != 1;
        var e = this.cp != 1;
        var f = this.co != 1;
        this.y3.a0(this.y3.d, a, b, true);
        this.y3.aa(this.ib);
        var g = this.y3.aw;
        var h = null;
        var i = null;
        var j = null;
        var k = this.dn;
        var l = null;
        var m = null;
        var n = null;
        if (d && this.db != null) {
            h = this.db.dl.getHighlightingInfo(this, k, g.z, g.y, true);
            if (this.db.dl.isCrossContextHighlight(this)) {
                l = this.db.dl.getHighlightingInfo(this, k, g.z, g.y, true);
            }
            g.c = h;
        }
        if (e && this.db != null) {
            i = this.db.dm.getHighlightingInfo(this, k, g.z, g.y, true);
            if (i == null && this.bn != null) {
                i = this.db.dm.getHighlightingInfo(this.bn, this.bn.dn, g.z, g.y, true);
            }
            if (this.db.dm.isCrossContextHighlight(this)) {
                m = this.db.dm.getHighlightingInfo(this, k, g.z, g.y, true);
            }
            g.d = i;
        }
        if (f && this.db != null) {
            j = this.db.dk.getHighlightingInfo(this, k, g.z, g.y, true);
            if (this.db.dk.isCrossContextHighlight(this)) {
                n = this.db.dk.getHighlightingInfo(this, k, g.z, g.y, true);
            }
            g.d = i;
        }
        g.h = c;
        this.abc(g);
        this.y3.y(this, h, i, j, c, d, e, f, g.v, this.db.dl.totalHighWaterMark, g.x, this.db.dm.totalHighWaterMark, g.t, this.db.dk.totalHighWaterMark);
    };
    PolarBase.prototype.abd = function (a) {
        if (this.assigningPolarStyle != null && this.zk) {
            this.assigningPolarStyle(this, a);
        }
    };
    PolarBase.prototype.abc = function (a) {
        if (this.assigningPolarMarkerStyle != null && this.zj) {
            this.assigningPolarMarkerStyle(this, a);
        }
    };
    PolarBase.prototype.aa2 = function (a, b, c, d, e) {
        e.c3(a, b, c, d);
    };
    PolarBase.prototype.sf = function () {
        _super.prototype.sf.call(this);
        if (this.index < 0) {
            return;
        }
        this.yv.c6();
    };
    PolarBase.prototype.rr = function (a, b) {
        _super.prototype.rr.call(this, a, b);
        if (!this.g0) {
            this.cv.a4(b);
            return;
        }
        this.cv.a4(b);
        if (this.d5(this.cu)) {
            return;
        }
        var c = this.cu;
        if (!this.gs) {
            this.y1 = new PolarFrame();
            this.abb(this.y1, c);
        }
        this.gs = false;
        this.abf(this.y1, c);
        this.g0 = false;
    };
    PolarBase.prototype.ro = function (a, b, c, d, e) {
        _super.prototype.ro.call(this, a, b, c, d, e);
        var f = this.ba.a$j.item(d);
        var g = f;
        f.a3(c);
        if (this.d5(g)) {
            return;
        }
        if (this.yx == null) {
            this.yx = new PolarFrame();
        }
        this.abb(this.yx, g);
        this.abf(this.yx, g);
    };
    PolarBase.prototype.abe = function (a, b) {
        var e_1, _a, e_2, _b;
        var c = new List$1(Base.$, 0);
        try {
            for (var _c = __values(fromEnum(b.c)), _d = _c.next(); !_d.done; _d = _c.next()) {
                var d = _d.value;
                if (!a.containsKey(d)) {
                    c.add1(d);
                }
            }
        }
        catch (e_1_1) {
            e_1 = { error: e_1_1 };
        }
        finally {
            try {
                if (_d && !_d.done && (_a = _c.return))
                    _a.call(_c);
            }
            finally {
                if (e_1)
                    throw e_1.error;
            }
        }
        try {
            for (var _e = __values(fromEnum(c)), _f = _e.next(); !_f.done; _f = _e.next()) {
                var e = _f.value;
                b.h(e);
            }
        }
        catch (e_2_1) {
            e_2 = { error: e_2_1 };
        }
        finally {
            try {
                if (_f && !_f.done && (_b = _e.return))
                    _b.call(_e);
            }
            finally {
                if (e_2)
                    throw e_2.error;
            }
        }
    };
    PolarBase.prototype.yk = function (a, b, c) {
        this.aa6();
        return this.yw.w.toArray();
    };
    PolarBase.prototype.zz = function (a) {
        var e_3, _a;
        var b = new List$1(Number_$type, 0);
        var c = this.dn;
        try {
            for (var _b = __values(fromEnum(this.yv.c1.c)), _c = _b.next(); !_c.done; _c = _b.next()) {
                var d = _c.value;
                b.add(c.indexOf(d));
            }
        }
        catch (e_3_1) {
            e_3 = { error: e_3_1 };
        }
        finally {
            try {
                if (_c && !_c.done && (_a = _b.return))
                    _a.call(_b);
            }
            finally {
                if (e_3)
                    throw e_3.error;
            }
        }
        return b;
    };
    PolarBase.prototype.ab9 = function (a) {
        return { $type: Point_$type, x: this.zh.item(a), y: this.zi.item(a) };
    };
    PolarBase.prototype.px = function (a) {
        _super.prototype.px.call(this, a);
        this.bc.exportTrendlineData(this, a, this.yv.c0.g$j);
    };
    PolarBase.prototype.getDataLegendSeriesContextAt = function (a, b) {
        var c = { $type: Point_$type, x: a, y: b };
        var d = this.kn(c);
        var e = d == null ? NaN : this.ix(d, "RadiusMemberPath");
        var f = d == null ? NaN : this.ix(d, "AngleMemberPath");
        var g = new DataLegendSeriesValueInfo();
        g.l = e;
        g.a = 11;
        g.r = this.aaz != null ? this.aaz : "Radius";
        g.q = "Radius";
        g.s = this.aav != null ? this.aav : "R:";
        g.t = this.aax != null ? this.aax : "";
        var h = new DataLegendSeriesValueInfo();
        h.l = f;
        h.a = 10;
        h.r = this.aah != null ? this.aah : "Angle";
        h.q = "Angle";
        h.s = this.aad != null ? this.aad : "A:";
        h.t = this.aaf != null ? this.aaf : "";
        var i = new DataLegendSeriesContext();
        i.e = ((function () {
            var $ret = new List$1(DataLegendSeriesValueInfo.$, 0);
            $ret.add(g);
            $ret.add(h);
            return $ret;
        })());
        i.h = this.mc();
        return i;
    };
    PolarBase.prototype.ak = function (a, b) {
        var c = new List$1(ChartSelection.$, 0);
        this.p2(a, c, b);
        return c.toArray();
    };
    PolarBase.prototype.p2 = function (a, b, c) {
        var _this = this;
        var d = this.cv.by;
        var e = this.cv.bx;
        var f = this.getEffectiveViewport1(this.cv);
        var g = this.wh(this.cv);
        var h = new CollisionRect(0, a);
        var i = this.ys.k5(e, d, f, g);
        var _loop_2 = function (j) {
            var k = this_2.yr.getScaledAngle(this_2.zh.item(j));
            var l = this_2.ys.od(this_2.zi.item(j));
            var m = this_2.yt.c(k, l, d, e, f, Math.cos);
            var n = this_2.yt.d(k, l, d, e, f, Math.sin);
            if (h.containsLocation(m, n)) {
                if (c == 7 || c == 6) {
                    b.add(((function () {
                        var $ret = new ChartSelection();
                        $ret.series = _this;
                        return $ret;
                    })()));
                    return { value: void 0 };
                }
                else if (c == 2 || c == 1) {
                    b.add(((function () {
                        var $ret = new ChartSelection();
                        $ret.item = _this.dn.item(j);
                        return $ret;
                    })()));
                }
                else {
                    b.add(((function () {
                        var $ret = new ChartSelection();
                        $ret.item = _this.dn.item(j);
                        $ret.series = _this;
                        return $ret;
                    })()));
                }
            }
        };
        var this_2 = this;
        for (var j = 0; j < this.dn.count; j++) {
            var state_1 = _loop_2(j);
            if (typeof state_1 === "object")
                return state_1.value;
        }
    };
    PolarBase.$t = markType(PolarBase, 'PolarBase', MarkerSeries.$);
    PolarBase.abg = DependencyProperty.i("ActualTrendLineBrush", Brush.$, PolarBase.$, new PropertyMetadata(2, null, function (a, b) { return a.raisePropertyChanged("ActualTrendLineBrush", b.oldValue, b.newValue); }));
    PolarBase.$$p = markDep(DependencyProperty, PropertyMetadata, PolarBase, 'raisePropertyChanged', ['AngleAxis:yr:abh', [NumericAngleAxis.$, null], 'AngleMemberAsLegendLabel:aad:abi', [2, null], 'AngleMemberAsLegendUnit:aaf:abj', [2, null], 'AngleMemberPath:aah:abk', [2], 'ClipSeriesToBounds:zn:abl', [0, false], 'HighlightedAngleMemberPath:aak:abm', [2, null], 'HighlightedRadiusMemberPath:aam:abn', [2, null], 'IsCustomPolarMarkerStyleAllowed:zp:abo', [0, false], 'IsCustomPolarStyleAllowed:zq:abp', [0, false], 'ItemSearchMode:y7:abq', [ScatterItemSearchMode_$type, enumGetBox(ScatterItemSearchMode_$type, 0)], 'ItemSearchThreshold:z6:abr', [1, 10000], 'MaximumMarkers:z7:abs', [1, 400], 'RadiusAxis:ys:abt', [NumericRadiusAxis.$, null], 'RadiusMemberAsLegendLabel:aav:abu', [2, null], 'RadiusMemberAsLegendUnit:aax:abv', [2, null], 'RadiusMemberPath:aaz:abw', [2], 'UseCartesianInterpolation:zx:ab4', [0, true], 'TrendLineType:y9:ab2', [TrendLineType_$type, enumGetBox(TrendLineType_$type, 0)], 'TrendLineThickness:z5:ab1', [1, 1.5], 'TrendLinePeriod:z8:ab0', [1, 7], 'TrendLineZIndex:z9:ab3', [1, 1], 'TrendLineBrush:ab6:abx', [Brush.$, null], 'TrendLineDashArray:ab7:aby', [DoubleCollection.$], 'TrendLineDashCap:ab8:abz', [PenLineCap_$type, enumGetBox(PenLineCap_$type, 0)]]);
    return PolarBase;
}(MarkerSeries));
export { PolarBase };
/**
 * @hidden
 */
var PolarSeriesRenderManager = /** @class */ /*@__PURE__*/ (function (_super) {
    __extends(PolarSeriesRenderManager, _super);
    function PolarSeriesRenderManager() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.aw = null;
        _this.ax = null;
        return _this;
    }
    PolarSeriesRenderManager.prototype.c = function () {
        this.aw = new AssigningPolarMarkerStyleEventArgs();
        return this.aw;
    };
    PolarSeriesRenderManager.prototype.a = function () {
        this.ax = new AssigningPolarStyleEventArgs();
        return this.ax;
    };
    PolarSeriesRenderManager.prototype.ay = function (a, b, c) {
        this.w(a, b, c);
    };
    PolarSeriesRenderManager.prototype.az = function (a, b, c) {
        this.x(a, b, c);
    };
    PolarSeriesRenderManager.prototype.a0 = function (a, b, c, d) {
        if (b == -1) {
            a.e = false;
            a.z = 0;
            a.y = c - 1;
        }
        else {
            if (d) {
                a.z = b;
                a.y = b;
            }
            else {
                a.e = false;
                a.z = b;
                a.y = b;
            }
        }
    };
    PolarSeriesRenderManager.$t = markType(PolarSeriesRenderManager, 'PolarSeriesRenderManager', SeriesRenderManager.$);
    return PolarSeriesRenderManager;
}(SeriesRenderManager));
export { PolarSeriesRenderManager };
/**
 * @hidden
 */
var PolarBaseView = /** @class */ /*@__PURE__*/ (function (_super) {
    __extends(PolarBaseView, _super);
    function PolarBaseView(a) {
        var _this = _super.call(this, a) || this;
        _this.cz = null;
        _this.cy = null;
        _this.c0 = null;
        _this.c1 = null;
        _this.cz = a;
        _this.c1 = new HashPool$2(Base.$, Marker.$);
        _this.cm(_this.c1);
        _this.c0 = new PolarTrendLineManager();
        return _this;
    }
    PolarBaseView.prototype.au = function () {
        _super.prototype.au.call(this);
        this.cy = this.cx();
        if (!this.q) {
            this.cz.z7 = 1000;
            this.b4.w8 = Defaults.e;
        }
    };
    PolarBaseView.prototype.c4 = function (a) {
        this.c1.g(a);
    };
    PolarBaseView.prototype.cx = function () {
        var _this = this;
        var a = new NumericMarkerManager(0, function (b) { return _this.c1.item(b); }, function (b) { return _this.cz.yu.c.item(b); }, runOn(this, this.c5), runOn(this, this.cw), runOn(this, this.c2));
        a.n = true;
        a.p = runOn(this.cz, this.cz.ab9);
        return a;
    };
    PolarBaseView.prototype.c5 = function (a) {
        this.cz.abe(a, this.c1);
    };
    PolarBaseView.prototype.cw = function () {
        return this.cz.yk(this.c1, this.by, this.bx);
    };
    PolarBaseView.prototype.c2 = function () {
        return this.cz.zz(this.c1);
    };
    PolarBaseView.prototype.c3 = function (a, b, c, d) {
        if (this.cz.zn) {
            var e = new GeometryGroup();
            this.cz.ys.ol(e, a, b, c, d);
        }
        else {
        }
    };
    PolarBaseView.prototype.c6 = function () {
        if (this.cz.ab6 != null) {
            this.cz.ab5 = this.cz.ab6;
        }
        else {
            this.cz.ab5 = this.cz.u7;
        }
    };
    PolarBaseView.prototype.cj = function (a) {
        this.c1.f(a);
    };
    PolarBaseView.prototype.a7 = function (a, b) {
        if (a.d) {
            if (this.cz.y9 != 0 && !b) {
                var c = this.c0.g$j;
                c.ad = this.cz.z5;
                c._stroke = this.cz.ab5;
                c.aj = this.cz.ab8;
                c.ai = this.cz.ab7;
                a.v(c);
            }
        }
        _super.prototype.a7.call(this, a, b);
    };
    PolarBaseView.prototype.c7 = function () {
        return Rect.empty;
    };
    PolarBaseView.prototype.getDefaultTooltipTemplate = function () {
        var a = "<div class='ui-chart-default-tooltip-content'><span>" + "${item." + this.cz.aah + "}" + "</span><br/><span";
        var b = this.e.ba.a$u(this.e);
        if (!stringIsNullOrEmpty(b)) {
            a += " style='color:" + b + "'";
        }
        a += ">" + this.cz.title + ": </span><span class='ui-priority-primary'>" + "${item." + this.cz.aaz + "}</span></div>";
        return a;
    };
    PolarBaseView.$t = markType(PolarBaseView, 'PolarBaseView', MarkerSeriesView.$);
    return PolarBaseView;
}(MarkerSeriesView));
export { PolarBaseView };
