Skip to content

Instantly share code, notes, and snippets.

@mebibou
Created April 17, 2018 07:34
Show Gist options
  • Save mebibou/e672adad8fadfb835d15a5ed42e758a3 to your computer and use it in GitHub Desktop.
Save mebibou/e672adad8fadfb835d15a5ed42e758a3 to your computer and use it in GitHub Desktop.
(function(global, factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
var wrapper = function(w) {
if (!w.document) {
throw Error('AnyChart requires a window with a document');
}
factory.call(w, w, w.document);
try {
w.acgraph.isNodeJS = Object.prototype.toString.call(global.process) == "[object process]";
} catch (e) {};
return w.anychart;
};
module.exports = global.document ? wrapper(global) : wrapper;
} else {
factory.call(global, window, document)
}
})(typeof window !== 'undefined' ? window : this, function(window, document, opt_noGlobal) {
var $, _, $_ = this.anychart;
if ($_ && (_ = $_._)) {
$ = $_.$
} else {
throw Error('anychart-base.min.js module should be included first. See modules explanation at https://docs.anychart.com/Quick_Start/Modules for details');
$ = {};
_ = {}
}
if (!_.stock) {
_.stock = 1;
(function($) {
var UT = function(a, b) {
return $.Cj(cga, a, b || "line")
},
VT = function(a, b) {
return $.Cj(dga, a, b || "sma")
},
ega = function(a) {
a = String(a).toLowerCase();
switch (a) {
case "first":
case "open":
return "first";
case "last":
case "close":
return "last";
case "max":
case "high":
case "maximum":
case "highest":
return "max";
case "min":
case "low":
case "minimum":
case "lowest":
return "min";
case "average":
case "avg":
return "average";
case "weightedaverage":
case "weightedavg":
case "wavg":
case "weights":
case "weighted":
return "weighted-average";
case "firstvalue":
case "firstval":
case "openvalue":
case "openval":
return "first-value";
case "lastvalue":
case "lastval":
case "closevalue":
case "closeval":
case "fill":
case "hoverfill":
case "risingfill":
case "hoverrisingfill":
case "fallingfill":
case "hoverfallingfill":
case "stroke":
case "hoverstroke":
case "lowstroke":
case "hoverlowstroke":
case "highstroke":
case "hoverhighstroke":
case "risingstroke":
case "hoverrisingstroke":
case "fallingstroke":
case "hoverfallingstroke":
case "hatchfill":
case "hoverhatchfill":
case "risinghatchfill":
case "hoverrisinghatchfill":
case "fallinghatchfill":
case "hoverfallinghatchfill":
case "marker":
case "hovermarker":
return "last-value";
case "sum":
case "add":
return "sum";
case "list":
case "group":
case "array":
return "list";
default:
return "last"
}
},
WT = function(a, b, c) {
var d;
if ($.B(a))
for (c = c ? {} : [], d = 0; d < a; d++) c[d] = b;
else
for (d in c = {}, a) c[d] = b;
return c
},
XT = function(a) {
a = Math.floor(a);
var b = 1;
if (a) {
for (var c = 0; c < $.Wn.length; c++) {
var d = $.Wn[c];
var e = a / d.ke;
if (1 <= Math.floor(1.1 * e)) {
var g = g || d;
if (.15 > e - Math.floor(e)) {
b = Math.floor(e);
break
}
}
}
g != d && g.mr && 100 < b && (d = g, b = Math.round(20 * a / d.ke) / 20)
}
return {
unit: d ? d.yi : "millisecond",
count: b
}
},
YT = function(a,
b) {
switch (a) {
case "log":
return $.mr();
case "linear":
return $.lr();
case "date-time":
return $.nr();
default:
return b ? null : $.lr()
}
},
ZT = function(a) {
$.U(a, this.yP, this);
a.kb(this)
},
$T = function(a, b) {
this.j = $.ak(a);
this.Ua = b || 1;
this.b = new Date(0);
switch (this.j) {
case "year":
this.g = 315576E5 * this.Ua;
this.D = this.q6;
this.next = this.aea;
break;
case "semester":
this.g = 315576E5 * this.Ua / 2;
this.D = this.n6;
this.next = this.Yda;
break;
case "quarter":
this.g = 315576E5 * this.Ua / 4;
this.D = this.l6;
this.next = this.Wda;
break;
case "month":
this.g =
315576E5 * this.Ua / 12;
this.D = this.qO;
this.next = this.Vda;
break;
case "third-of-month":
this.g = 315576E5 * this.Ua / 36;
this.D = this.o6;
this.next = this.Zda;
break;
case "week":
this.g = 6048E5 * this.Ua;
this.D = this.p6;
this.next = this.$da;
break;
default:
this.g = 864E5 * this.Ua;
this.D = this.h6;
this.next = this.Pda;
break;
case "hour":
this.g = 36E5 * this.Ua;
this.D = this.i6;
this.next = this.Rda;
break;
case "minute":
this.g = 6E4 * this.Ua;
this.D = this.k6;
this.next = this.Uda;
break;
case "second":
this.g = 1E3 * this.Ua;
this.D = this.m6;
this.next = this.Xda;
break;
case "millisecond":
this.g = this.Ua, this.D = this.j6, this.next = this.Tda
}
},
aU = function(a, b, c) {
a.b.setTime($.xn(a.b.getTime(), b, c ? c.getTime() : Date.UTC(2E3, 0)) - b)
},
bU = function(a) {
var b = a.getUTCDate();
return 3 * (12 * a.getUTCFullYear() + a.getUTCMonth()) + (10 >= b ? 0 : 20 >= b ? 1 : 2)
},
fga = function(a, b) {
var c = a.g - b.g;
return c ? c : b.Ua - a.Ua
},
cU = function() {
$.zp.call(this);
this.od = !0;
this.D = !1;
this.b = [];
this.g = 500;
this.j = window.NaN;
this.G = {
unit: "millisecond",
count: 1
};
this.K = !1
},
eU = function(a) {
for (var b = [], c = 0; c < a.b.length; c++) b.push(dU(a.b[c]));
return b
},
dU = function(a) {
return {
unit: a.j,
count: a.Ua
}
},
fU = function(a, b) {
this.key = a;
this.values = b;
this.b = this.next = null;
this.j = !1;
this.D = gga++
},
gU = function(a, b) {
return a.key == b.key ? a.D - b.D : a.key - b.key
},
hU = function(a) {
return this - a.key
},
hga = function(a) {
return this - a.key
},
iU = function(a, b, c, d, e) {
this.X = a;
this.va = d;
this.R = new fU((0, window.isNaN)(b.pt) ? -1 : b.pt, []);
this.R.next = b.DQ;
this.ba = b.QG;
this.qa = b.lastIndex - b.Ph + 1 || 0;
this.ka = (this.j = e || null) ? this.g$ : this.e6;
this.Aa = this.j ? this.Oaa : this.Vaa;
this.Ih =
c;
this.reset()
},
jU = function() {
this.g = [];
this.j = !0;
this.b = [];
this.Y = !0;
this.G = [];
this.D = 0;
this.R = [];
this.K = 0
},
iga = function(a, b) {
return a.b.length ? 1 < a.b.length ? a.Dh($.hb(Math.round(a.nf(b)), 0, a.b.length - 1)) : a.b[0].key : window.NaN
},
lU = function(a, b, c) {
c = Math.max(0, Math.floor(c));
var d = a.b.length > c ? a.b[c] : null;
b = Math.max(0, Math.ceil(b));
return new kU(b, a.b.length > b ? a.b[b] : null, d, Math.min(c, a.b.length - 1) - Math.min(b, a.b.length))
},
mU = function(a) {
return a.b.length ? a.b.length - 1 : window.NaN
},
oU = function(a, b, c) {
var d,
e, g, h, k = a.b.length,
l = {};
if (k) {
for (h = 0; h < a.R.length; h++) {
var m = a.R[(a.K - h - 1 + 4) % 4];
if (m.Lg == b && m.Oh == c) return m
}
var p = a.nf(b);
var q = a.nf(c);
m = Math.max(0, Math.ceil(p));
if ((0, window.isNaN)(m) || m >= k) {
var r = k - 1;
m = d = e = g = window.NaN
} else if (d = Math.min(Math.floor(q), k - 1), (0, window.isNaN)(d) || 0 > d) e = 0, m = d = r = g = window.NaN;
else if (m <= d) {
r = 0 < m ? m - 1 : window.NaN;
e = d < k - 1 ? d + 1 : window.NaN;
g = window.Infinity;
h = (0, window.isNaN)(r) ? m : r;
for (var t = (0, window.isNaN)(e) ? d : e, u = a.b[h]; h < t; h++) {
var v = u;
u = v.next;
g = Math.min(g, u.key - v.key)
}(0, window.isFinite)(g) ||
(g = window.NaN)
} else r = d, e = m, m = d = window.NaN, g = a.b[r], g = g.next.key - g.key;
t = nU(a);
u = $.hb(b, t[2], t[3]);
v = $.hb(c, t[2], t[3]);
h = a.nf(u);
for (var x = a.nf(v), w, z; h <= x; h++) h < m ? (w = $.hb(a.b[m].key, t[0], t[1]), z = $.hb(u, t[0], t[1]), h = m) : h && a.b[h] ? (w = a.b[h].key, z = a.b[h - 1].key) : w = z = window.NaN, w -= z, (0, window.isNaN)(w) || (z = XT(w), l[z.unit] ? (z = l[z.unit], z.count++, z.ke += w) : l[z.unit] = {
count: 1,
ke: w,
yi: z.unit
});
x > d && (w = $.hb(v, t[0], t[1]), z = $.hb(a.b[d].key, t[0], t[1]), w -= z, (0, window.isNaN)(w) || (z = XT(w), l[z.unit] ? (z = l[z.unit], z.count++,
z.ke += w) : l[z.unit] = {
count: 1,
ke: w,
yi: z.yi
}))
} else m = d = r = e = p = q = g = window.NaN;
m = {
gm: l,
Lg: b,
Oh: c,
cg: p,
Wi: q,
Ph: m,
pt: r,
lastIndex: d,
nx: e,
zG: g
};
k && (a.R[a.K] = m, a.K = (a.K + 1) % 4);
return m
},
nU = function(a) {
var b = a.b.length;
if (b) {
var c = a.b[0].key;
if (1 == b) a = [c - 1, c + 1, c - 1, c + 1];
else {
var d = a.b[b - 1].key;
a = [c, d, c - (a.b[1].key - c) / 2, d + (d - a.b[b - 2].key) / 2]
}
} else a = [window.NaN, window.NaN, window.NaN, window.NaN];
return a
},
kU = function(a, b, c, d) {
this.G = {
key: a - 1,
next: b
};
this.R = c ? c.next : null;
this.K = d;
this.reset()
},
sU = function(a) {
this.g =
a;
this.j = pU(a.hf());
this.G = !0;
this.b = qU(this.j);
this.D = null;
this.R = !1;
this.K = [];
rU(this)
},
rU = function(a) {
for (var b = a.D ? a.D.j.b.length : a.j.Nb(); a.K.length < b;) a.K.push({})
},
uU = function(a, b) {
var c = a.j.io(b);
return c ? new tU(c, a.g, !a.G, b, a.K[b]) : null
},
vU = function(a, b, c, d) {
if (b > c) {
var e = b;
b = c;
c = e
}
e = pU(a.g.hf(), d);
if (a.R || e != a.j || a.b.Lg != b || a.b.Oh != c) a.R = !1, a.j = e, a.G = !d, a.b = e.select(b, c), rU(a);
return a
},
wU = function(a, b, c) {
return b ? (c = a.D ? a.D.nf(b.key) : c, new tU(b, a.g, !a.G, c, a.K[c] || {})) : null
},
xU = function(a) {
return wU(a,
a.b.aM, a.b.pt)
},
yU = function(a) {
return wU(a, a.b.QG, a.b.nx)
},
BU = function(a, b) {
var c = a.b.c_,
d = a.b.lastIndex;
if ($.n(b))
for (var e = a.G ? zU(a.g, b) : AU(a.g, b); c && c != a.b.aM && (0, window.isNaN)(c.ue(e));) c = c.b, d--;
c == a.b.aM && (c = null);
return wU(a, c, d)
},
DU = function(a, b, c) {
if ("first-visible" == b) {
var d = a.b.DQ,
e = a.b.Ph;
if ($.n(c))
for (c = a.G ? zU(a.g, c) : AU(a.g, c); d && d != a.b.QG && (0, window.isNaN)(d.ue(c));) d = d.next, e++;
d == a.b.QG && (d = null);
a = wU(a, d, e)
} else if ("last-visible" == b) a = BU(a, c);
else if ("series-start" == b) {
e = pU(a.g.hf());
if ($.n(c)) {
c = zU(a.g, c);
b = 0;
for (var g = e.Nb(); b < g && (d = e.io(b), (0, window.isNaN)(d.ue(c))); b++);
} else d = e.io(0);
a = d ? new tU(d, a.g, !1, 0, null) : null
} else if ("series-end" == b) {
d = pU(a.g.hf());
if ($.n(c))
for (c = zU(a.g, c), b = d.Nb(); b-- && (e = d.io(b), (0, window.isNaN)(e.ue(c))););
else e = d.io(d.Nb() - 1);
a = e ? new tU(e, a.g, !1, 0, null) : null
} else c = pU(a.g.hf()), d = $.n(b) ? CU(c, b, "exact") : 0, a = (c = c.io(d)) ? new tU(c, a.g, !1, d, null) : null;
return a
},
EU = function(a, b) {
return a.G ? zU(a.g, b) : AU(a.g, b)
},
GU = function(a, b, c) {
return new iU(a.g,
a.b, a.K, !a.G, b && a.D ? FU(a.D, !!c) : null)
},
tU = function(a, b, c, d, e) {
this.Rf = a;
this.b = b;
this.G = c;
this.Yd = d;
this.Ih = e
},
HU = function() {
$.zp.call(this);
this.X = {};
this.va = {};
this.Ma = {};
this.R = {};
this.qa = this.j = this.g = new jU;
this.K = {};
this.b = {
gm: {},
Lg: window.NaN,
Oh: window.NaN,
cg: window.NaN,
Wi: window.NaN,
Ph: window.NaN,
pt: window.NaN,
lastIndex: window.NaN,
nx: window.NaN,
zG: window.NaN,
Cga: window.NaN,
raa: window.NaN,
Bga: window.NaN,
qaa: window.NaN
};
this.Y = {
gm: {},
Lg: window.NaN,
Oh: window.NaN,
cg: window.NaN,
Wi: window.NaN,
Ph: window.NaN,
pt: window.NaN,
lastIndex: window.NaN,
nx: window.NaN,
zG: window.NaN,
Cga: window.NaN,
raa: window.NaN,
Bga: window.NaN,
qaa: window.NaN
};
this.$a = this.G = this.D = this.Qb = this.qb = window.NaN
},
IU = function(a, b, c) {
var d = $.oa(b).toFixed(0);
c = c ? a.va : a.Ma;
if (!(d in a.X && d in c)) {
a.X[d] = b;
c[d] = b;
b.D = a;
b = b.Aq().hf();
d = $.oa(b).toFixed(0);
d in a.R || (a.R[d] = b, $.U(b, a.M1, a));
a.g.j = !0;
for (var e in a.K) a.K[e].j = !0;
a.B(16384, 16)
}
},
KU = function(a) {
if (a.O(16384)) {
JU(a);
var b = nU(a.g);
if (a.D != b[2] || a.G != b[3]) return a.qb = b[0], a.Qb = b[1],
a.D = b[2], a.G = b[3], !0
}
return !1
},
NU = function(a, b, c, d, e, g, h, k) {
if (b > c) {
var l = b;
b = c;
c = l
}
1 > c - b && (c > a.D ? b = c - 1 : c = b + 1);
h = b != h.Lg || c != h.Oh;
var m = a.$a;
l = c - b;
var p = oU(a.g, b, c),
q = p.lastIndex - p.Ph + 1 || 0;
p = p.zG;
m = (0, window.isNaN)(d.g) ? m / d.j : d.g;
var r = -1;
if (d.od && 0 < d.b.length && p && (d.D || q > m)) {
q = 0;
for (r = d.b.length; q < r && d.b[q].g <= p;) q++;
q = Math.max(q - 1, 0) || 0;
r = d.b.length;
for (var t = -1, u = q; u < r; u++)
if (d.b[u].g >= l / m) {
t = u;
break
}
0 > t && q < r && (t = r - 1);
r = t
}
0 > r ? (l = null, d.G = p ? XT(p) : {
unit: "millisecond",
count: 1
}) : (l = d.b[r], d.G = dU(l));
d.K = !!l;
d = l;
var v;
d ? (l = d.j + d.Ua.toFixed(0), l in a.K ? v = a.K[l] : a.K[l] = v = new jU) : v = a.g;
a = LU(a, v, d) || k;
if (h || v != g || a) {
var x;
g = oU(v, b, c);
if (v.Y)
for (x in e) {
if (a = e[x], k = b, h = c, l = g.pt, p = g.nx, m = d, q = pU(a.g.hf(), m), a.R || q != a.j || a.b.Lg != k || a.b.Oh != h) a.R = !1, a.j = q, a.G = !m, a.b = MU(q, k, h, l, p), rU(a)
} else
for (x in e) vU(e[x], b, c, d);
return [v, g]
}
return null
},
FU = function(a, b, c, d) {
var e = b ? a.qa : a.j;
if (e.Y && !d) return null;
if (c) return lU(e, e.b.length ? 0 : window.NaN, mU(e));
a = b ? a.Y : a.b;
return lU(e, a.Ph, a.lastIndex)
},
OU = function(a,
b) {
a.ka || (a.ka = new cU, $.U(a.ka, a.sZ, a));
return $.n(b) ? (a.ka.P(b), a) : a.ka
},
LU = function(a, b, c) {
if (b.Gq()) {
b.g.length = 0;
b.j = !0;
for (var d in a.R) {
var e = pU(a.R[d], c);
b.g.push(e)
}
b.update();
return !0
}
return !1
},
JU = function(a) {
LU(a, a.g)
},
QU = function(a, b) {
var c = a.ko().eo();
PU(b, a.b.Lg, a.b.Oh, c.unit, c.count, a.b.gm)
},
RU = function(a, b) {
var c = a.G,
d = a.qb,
e = a.Qb;
b.X = a.D;
b.Y = c;
b.j = d;
b.R = e;
b.sa(256)
},
SU = function(a) {
LU(a, a.j);
return a.j.Dh(a.b.Ph)
},
TU = function(a) {
LU(a, a.j);
return a.j.Dh(a.b.lastIndex)
},
UU = function(a) {
$.Ku.call(this,
a)
},
VU = function() {
$.X.call(this);
this.path = $.uj();
$.$r(this, this.path);
$.O(this, this.path)
},
WU = function(a, b) {
$.X.call(this);
this.j = a;
this.Na = this.Sb = this.ya = null;
this.Jc = 18;
this.g = !0;
this.Ya = null;
this.D = !b;
this.b = "no-overlap"
},
XU = function() {
$.X.call(this);
this.j = null;
this.b = new $.ts;
$.U(this.b, this.SO, this);
this.Vd = this.b.add(null, null, 0);
this.Vd.zIndex(1);
this.b.N(4294967295);
this.G = new $.ts;
$.U(this.G, this.SO, this);
this.G.N(4294967295);
this.D = new $.ts;
$.U(this.D, this.SO, this);
this.D.N(4294967295);
$.Oo(this.Ha, [
["value", 4, 1],
["valueField", 4, 1],
["stroke", 20, 1],
["fallingStroke", 20, 1],
["risingStroke", 20, 1]
])
},
YU = function() {
$.iw.call(this)
},
ZU = function(a) {
this.Xb = a;
this.g = [];
this.Ua = 0
},
$U = function(a) {
this.b = [];
this.Y = a;
this.Aa = [];
this.va = 0;
this.qa = [];
this.ka = 0;
this.j = -1;
this.K = null
},
aV = function(a) {
a.K = null;
a.Aa.length = 0;
a.va = 0;
a.qa.length = 0;
a.ka = 0
},
bV = function(a, b, c, d, e, g, h) {
var k;
if ($.B(c)) {
var l = Math.min(b.values.length, c);
for (k = 0; k < l; k++) c = $.Q(b.values[k]), c < d[k] && (d[k] = c), c > e[k] && (e[k] = c)
} else
for (k in c) c =
$.Q(b.values[k]), c < d[k] && (d[k] = c), c > e[k] && (e[k] = c);
for (k = 0; k <= a.j; k++) b.g && (c = $.Q(b.g[k]), c < g[k] && (g[k] = c), c > h[k] && (h[k] = c))
},
MU = function(a, b, c, d, e) {
var g, h = a.b.length;
if (h) {
for (g = 0; g < a.Aa.length; g++) {
var k = a.Aa[(a.va - g - 1 + 4) % 4];
if (k.Lg == b && k.Oh == c) return k
}
if ((0, window.isNaN)(d))
if ((0, window.isNaN)(e)) {
var l = 0;
var m = h - 1
} else e ? (l = 0, m = e - 1) : l = m = window.NaN;
else(0, window.isNaN)(e) ? d == h - 1 ? l = m = window.NaN : (l = d + 1, m = h - 1) : 1 == e - d ? l = m = window.NaN : (l = d + 1, m = e - 1);
var p = a.b[d] || null;
k = a.b[l] || null;
var q = a.b[m] || null;
var r = a.b[e] || null
} else k = q = p = r = null, l = m = d = e = window.NaN;
var t = a.RQ(),
u = $.B(t),
v, x, w, z;
if (p || k || r) {
var A = !p && !r;
if (A && a.K) {
var E = v = a.K.FL;
var D = x = a.K.DL;
var R = w = a.K.MI;
var N = z = a.K.LI
} else {
E = WT(t, window.Infinity, !0);
D = WT(t, -window.Infinity, !0);
R = WT(a.j + 1, window.Infinity);
N = WT(a.j + 1, -window.Infinity);
for (v = p ? p.next : k; v && v != r;) bV(a, v, t, E, D, R, N), v = v.next;
v = $.Vc(E);
x = $.Vc(D);
w = $.Oa(R, 0);
z = $.Oa(N, 0);
p && bV(a, p, t, v, x, w, z);
r && bV(a, r, t, v, x, w, z);
if (u)
for (g = 0; g < t; g++) E[g] == Number.POSITIVE_INFINITY && (E[g] = window.NaN),
D[g] == Number.NEGATIVE_INFINITY && (D[g] = window.NaN), v[g] == Number.POSITIVE_INFINITY && (v[g] = window.NaN), x[g] == Number.NEGATIVE_INFINITY && (x[g] = window.NaN);
else
for (g in t) E[g] == Number.POSITIVE_INFINITY && (E[g] = window.NaN), D[g] == Number.NEGATIVE_INFINITY && (D[g] = window.NaN), v[g] == Number.POSITIVE_INFINITY && (v[g] = window.NaN), x[g] == Number.NEGATIVE_INFINITY && (x[g] = window.NaN);
for (g = 0; g <= a.j; g++) R[g] == Number.POSITIVE_INFINITY && (R[g] = window.NaN), N[g] == Number.NEGATIVE_INFINITY && (N[g] = window.NaN), w[g] == Number.POSITIVE_INFINITY &&
(w[g] = window.NaN), z[g] == Number.NEGATIVE_INFINITY && (z[g] = window.NaN);
A && (a.K = {
FL: $.Vc(E),
DL: $.Vc(D),
MI: $.Oa(R, 0),
LI: $.Oa(N, 0)
})
}
} else E = D = v = x = WT(t, window.NaN, !0), R = N = w = z = WT(a.j, window.NaN);
k = {
Lg: b,
Oh: c,
pt: d,
Ph: l,
lastIndex: m,
nx: e,
aM: p,
DQ: k,
c_: q,
QG: r,
FL: v,
DL: x,
LI: z,
MI: w,
m2: E,
l2: D,
j2: N,
k2: R
};
h && (a.Aa[a.va] = k, a.va = (a.va + 1) % 4);
return k
},
qU = function(a) {
var b = a.b.length;
return b ? MU(a, a.b[0].key, a.b[b - 1].key, window.NaN, window.NaN) : MU(a, window.NaN, window.NaN, window.NaN, window.NaN)
},
CU = function(a, b, c) {
c = c ||
"exact";
for (var d = 0; d < a.qa.length; d++) {
var e = a.qa[(a.ka - d - 1 + 2) % 2];
if (e.key == b && e.mode == c) return e.index
}
d = $.Ta(a.b, hU, b);
if (0 > d)
if (d = ~d, "exact-or-next" == c) d = d < a.b.length ? d : window.NaN;
else if ("exact-or-prev" == c) d = 0 < d ? d - 1 : window.NaN;
else {
if ("nearest" == c) return c = a.b.length, d ? d < c ? (a = a.b[d], b - a.b.key < a.key - b ? d - 1 : d) : c ? c - 1 : window.NaN : c ? 0 : window.NaN;
d = window.NaN
}
a.qa[a.ka] = {
key: b,
mode: c,
index: d
};
a.ka = (a.ka + 1) % 2;
return d
},
dV = function(a, b) {
$U.call(this, a);
this.G = b || null;
this.g = cV;
this.D = 0
},
eV = function(a, b,
c, d, e, g) {
e = e ? a.D : c.length;
var h;
$.n(g) ? (g = $.Ta(b, hU, g), b = b[0 <= g ? g : ~g]) : b = b[0];
if (b)
if (g = a.b[a.b.length - 1] || null, d) {
d.b.setTime(b.key);
d.D();
var k = d.next();
do {
for (var l = d.next(), m = !1; b && ((0, window.isNaN)(l) || b.key < l);) {
m = !0;
for (h = 0; h < e; h++) {
var p = c[h];
p.b(b.values[p.D], b.values[p.G], b.values)
}
b = b.next
}
if (m) {
p = Array(e);
for (h = 0; h < e; h++) p[h] = c[h].g();
h = new fU(k, p);
g && (g.next = h);
h.b = g;
a.b.push(h);
g = h
}
k = l
} while (b)
} else {
do {
for (h = 0; h < e; h++) p = c[h], p.b(b.values[p.D], b.values[p.G], b.values);
p = Array(e);
for (h =
0; h < e; h++) p[h] = c[h].g();
h = new fU(b.key, p);
g && (g.next = h);
h.b = g;
a.b.push(h);
g = h;
b = b.next
} while (b)
}
},
fV = function(a, b, c, d, e, g) {
$U.call(this, a);
this.g = [];
this.D = this.s0;
this.R = 0;
this.X = !1;
this.er = $.y(b) ? b : $.on(b, 0, !0);
this.Ma = c;
this.$a = $.Q(d) || 0;
this.Fa = $.la(e) ? e.getTime() : $.Q(e);
this.qb = g || null;
this.ba = 0;
this.G = null
},
gV = function(a, b) {
if ($.C(b)) b = $.Oa(b, 0);
else if ($.F(b)) {
var c = b;
b = {};
for (var d in c) b[d] = c[d]
} else b = null;
c = $.yq(b[a.er], a.Ma, (0, window.isNaN)(a.Fa) ? null : new Date(a.Fa), a.qb);
if (d = !(!b || !c)) a.$a &&
c.setTime(c.getTime() + 36E5 * a.$a), a.D(new fU(c.getTime(), b));
return d
},
hV = function(a) {
a.D == a.tT && (a.g.sort(gU), a.D = a.q0);
return a.D != a.r0
},
iV = function(a, b) {
var c = a.b.length - 1;
if (0 <= c) {
var d = a.b[c];
var e = d.key
} else d = null, e = window.NaN;
for (var g; g = b.next();)
if (!g.j) {
g.key == e ? (a.b[c] = g, g.b = d.b) : (a.b.push(g), g.b = d, e = g.key, c++);
g.b && (g.b.next = g);
d = g;
var h;
if ($.C(g.values)) {
if (g = g.values.length, a.ba < g) {
if (a.G)
for (h = a.ba; h < g; h++) a.G[h] = !0;
a.ba = g
}
} else {
if (!a.G)
for (a.G = {}, h = 0; h < a.ba; h++) a.G[h] = !0;
for (h in g.values) a.G[h] = !0
}
}
d && (d.next = null)
},
jV = function(a, b, c, d, e) {
this.Xb = a || [];
this.D = b || [];
d = $.Q(d);
e = $.Q(e);
(0, window.isNaN)(e) ? this.next = this.bea: (this.next = this.b$, this.G = e);
a = (0, window.isNaN)(d) ? 0 : $.Ta(this.Xb, hU, d);
this.g = this.Xb[0 > a ? ~a : a];
c ? (this.j = this.Oda, this.b = (0, window.isNaN)(d) ? 0 : $.Ta(this.D, hU, d), 0 > this.b && (this.b = ~this.b)) : (this.j = this.Qda, this.b = (0, window.isNaN)(d) ? this.D.length - 1 : $.Ta(this.D, hga, d), 0 > this.b && (this.b = ~this.b - 1))
},
kV = function(a, b) {
$.qd.call(this);
this.j = a;
this.Yd = b;
this.g = {};
this.b = $.mk;
this.D = this.G = $.ha
},
lV = function(a, b, c, d) {
tU.call(this, a, b.j, c, d, {});
this.D = b
},
mV = function(a, b) {
$.zp.call(this);
this.Ax = a;
this.oB = {};
if ($.F(b)) {
$.V(this.Ax);
for (var c in b) {
var d = b[c];
$.F(d) ? this.wh(c, d.column, d.type, d.context || d.weights) : ($.B(d) || $.y(d)) && this.wh(c, d)
}
this.Ax.ga(!0)
}
},
AU = function(a, b) {
return b in a.oB ? a.oB[b].J0 : window.NaN
},
zU = function(a, b) {
return b in a.oB ? a.oB[b].B1 : window.NaN
},
nV = function(a, b) {
$.qd.call(this);
this.D = a;
this.G = $.n(b) ? b : window.NaN;
this.clear()
},
oV = function(a) {
nV.call(this,
a)
},
pV = function(a, b) {
this.j = b;
nV.call(this, a)
},
qV = function(a, b, c) {
this.K = b;
this.j = c;
nV.call(this, a)
},
rV = function(a) {
nV.call(this, a)
},
sV = function(a) {
nV.call(this, a)
},
tV = function(a) {
nV.call(this, a)
},
uV = function(a) {
nV.call(this, a)
},
vV = function(a) {
nV.call(this, a)
},
wV = function(a) {
nV.call(this, a)
},
xV = function(a) {
nV.call(this, a)
},
yV = function(a) {
nV.call(this, a)
},
zV = function(a, b) {
nV.call(this, a, b)
},
jga = function(a, b, c) {
if ($.G(a)) return new qV(b, a, c);
if ($.F(a)) return new pV(b, a);
switch (a) {
case "average":
return new oV(b);
case "first":
return new rV(b);
case "first-value":
return new sV(b);
case "last-value":
return new uV(b);
case "list":
return new vV(b);
case "max":
return new wV(b);
case "min":
return new xV(b);
case "sum":
return new yV(b);
case "weighted-average":
return new zV(b, c);
default:
case "last":
return new tV(b)
}
},
kga = function(a, b, c) {
$.B(b) && (b = b.toFixed(0));
if ($.F(a)) return $.oa(a) + "|" + b + "|" + $.dn(c);
switch (a) {
case "average":
return "a" + b;
case "first":
return "f" + b;
case "first-value":
return "o" + b;
case "last-value":
return "c" +
b;
case "list":
return "g" + b;
case "max":
return "x" + b;
case "min":
return "n" + b;
case "sum":
return "s" + b;
case "weighted-average":
return $.B(c) && (c = c.toFixed(0)), "w" + b + ":" + String(c);
default:
case "last":
return "l" + b
}
},
AV = function(a, b, c, d, e) {
$.zp.call(this);
this.Xb = new fV(this, a, b, c, d, e);
this.Lt = {};
this.vP = {};
this.py = {};
this.lE = 0;
this.tv = [];
this.sD = [];
this.jw = [];
this.mE = []
},
pU = function(a, b) {
var c;
if (b) {
var d = b.j + b.Ua.toFixed(0);
d in a.Lt ? c = a.Lt[d] : a.Lt[d] = c = new dV(a, b)
} else c = a.Xb;
c.update();
return c
},
BV = function(a,
b, c) {
for (var d in a.Lt) {
var e = a.Lt[d];
(e.g | b) != e.g ? (e.g |= b, e = !0) : e = !1;
c = e || c
}
c && ($.jo++, a.sa(16), $.mo())
},
CV = function(a, b, c, d) {
$.dv.call(this, a, b, c, d);
this.j = this.g = this.Y = this.Ga = this.X = null;
this.K = !1;
this.R = null;
this.ZW = !1
},
DV = function(a) {
var b, c = a.bb();
a.check(64) && !a.qg() && $.L(c, $.wr) && "none" != c.QA() && (b = DU(a.Ga, c.hX(), a.Ee.Hk));
a.RA = Number(b && b.get(a.Ee.Hk)) || 0
},
EV = function(a, b) {
return "number" == typeof b ? $.Kq(b, a.X || void 0) : b
},
FV = function() {
this.Ga = [];
this.g = (0, $.ra)(this.g, this)
},
GV = function(a) {
return (0, $.eb)(a.Ga || [], function(a) {
return a.data
})
},
HV = function(a, b) {
return a.key - b.key || a.index - b.index
},
IV = function(a, b, c, d) {
this.Ga = a;
this.Y = b;
this.K = c;
this.R = d;
this.reset()
},
lga = function(a, b) {
var c, d = $.Sa(a.Ga, b, function(a, b) {
return a - b.index
});
if (c = 0 <= d) {
var e = a.Ga[d];
a.b = d;
a.D = e.vQ;
a.G = e.items.length;
a.j = 0
} else a.G = 0, a.b = a.Ga.length, a.j = 0, a.D = window.NaN;
return c
},
JV = function(a) {
return a.b < a.Ga.length ? a.Ga[a.b].index : window.NaN
},
OV = function(a, b) {
$.X.call(this);
this.vf = a;
this.index = b;
this.zE = new FV;
this.nm = new $.Rx(this, [$.gD, mga], !1);
this.ma = new $.Cv(this, KV, $.dl, LV);
this.ma.ja.connectorAfterInitCallback = ZT;
this.Ja = new $.Cv(this, MV, $.dl, LV);
this.Oa = new $.Cv(this, MV, $.dl, LV);
this.ya = new $.ts;
this.ya.kb(this);
$.Oo(this.Ha, NV);
this.Bz = [];
this.n$ = $.bl("stroke", 2, !0, !0)
},
PV = function(a, b, c, d) {
b.o("positionHash") == c && (a.ya.ye(b.na()).Yf().translate(0, d), b.o("shapes").path.translate(0, d), b.o("shapes").overlay.translate(0, d), b.o("offset", Number(b.o("offset")) - d))
},
QV = function(a, b) {
var c;
var d = a.vf.hc().Wa();
var e = a.da(),
g = (c = Number(e.o("state")) || $.dl) ? 1 == c ? 30 : 20 : a.zIndex() + 3E-6 * e.na(),
h = a.Gc("type", c, e, $.Sj, !1),
k = a.dV[h];
var l = a.Gc("position", 0, e, $.Uj, !1, void 0, !0);
var m = window.NaN,
p = a.Gc("direction", c, e, $.Tj, !1, void 0, !0),
q = "",
r = "";
if ("axis" != l) {
q = a.Gc("seriesId", 0, e, $.To, !1, void 0, !0);
var t = a.vf.We(q) || a.vf.Vh(0),
u;
if (t && (u = uU(t.Ga, JV(e))) && !u.o("missing")) {
if ("zero" == l) {
r = "zero";
var v = 0
} else r = a.Gc("fieldName", 0, e, $.To, !1, void 0, !0), v = Number(u.get(r));
"series-positive" == l && 0 > v || "series-negative" == l && 0 < v ? (v = 0,
m = Number(u.o("zero")), (0, window.isNaN)(m) && (m = t.De(t.bb().transform(0), !1)), m = $.hb(m, a.ha.top, a.ha.top + a.ha.height), l = m == a.ha.top + a.ha.height ? "axis" : "zero") : (m = Number(u.o(r)), (0, window.isNaN)(m) && !(0, window.isNaN)(v) && (m = t.De(t.bb().transform(v), !1)), m = $.hb(m, a.ha.top, a.ha.top + a.ha.height));
"auto" == p && (p = 0 > v || !v && "series-negative" == l ? "down" : "up")
}
}(0, window.isNaN)(m) && (m = a.ha.top + a.ha.height, l = "axis", p = "up");
p = "down" != p;
l += "axis" == l ? "" : q + r + (p ? "U" : "D");
e.o("positionHash", l);
r = Math.round(d.Lv(e.Bl(),
JV(e), .5) * a.ha.width + a.ha.left);
d = (b ? b[l] : Number(e.o("offset"))) || 0;
e.o("offset", d);
q = 0;
var x = a.n$(a, c);
!d && x && (q = $.P(a.Gc("length", c, e, $.sp, !0), a.ha.height), d += q);
m += p ? -d : d;
t = {
group: a,
index: e.na()
};
if (b) {
var w = a.nm.Qc(c, null, g);
u = w.path;
v = w.overlay;
e.o("shapes", w)
} else w = e.o("shapes"), u = w.path, v = w.overlay, a.nm.Ln(c, w), a.nm.jr(g, w), u.parent(a.U()), u.clear(), u.ac(1, 0, 0, 1, 0, 0), v.parent(a.U()), v.clear(), v.ac(1, 0, 0, 1, 0, 0);
w = $.bc(u.stroke());
r = $.Dn(r, w);
m = $.Dn(m, w);
u.tag = t;
v.tag = t;
q && x && (x = a.vf.li().eQ(r,
m, m - (p ? -q : q), x, b ? void 0 : e.o("connectorPath")), x.tag = t, e.o("connectorPath", x));
w = Math.round($.P(a.Gc("width", c, e, $.sp, !1), a.ha.width));
x = Math.round($.P(a.Gc("height", c, e, $.sp, !1), a.ha.height));
k(u, r, m, w, x, p);
a.re(e, c, h, r, m, w, x, p, g + 1E-6, !b).Yf().tag = t;
(0, a.dV["flag" == h ? "flag" : "rect"])(v, r, m, w, x, p);
d += x;
c = x + q - Number(e.o("totalHeight") || 0);
e.o("totalHeight", x + q);
return [l, b ? d : p ? -c : c]
},
RV = function(a, b, c) {
for (var d = 0; d < a.length; d++) {
var e = a[d];
if ($.F(e) && (e = e[b], null != e)) return c(e)
}
},
SV = function(a, b) {
$.X.call(this);
$.U(b, this.X_, this);
this.g = a;
this.b = [];
this.j = {};
this.D = [];
this.ma = new $.Cv(this, KV, $.dl, LV);
this.ma.ja.connectorAfterInitCallback = ZT;
this.Ja = new $.Cv(this, MV, $.dl, LV);
this.Oa = new $.Cv(this, MV, $.dl, LV);
$.Oo(this.Ha, NV);
this.Bz = [];
$.as(this, this)
},
TV = function(a, b, c, d) {
var e = 4 * Math.min(b, 2) + 2 * c + !d,
g = a.Bz[e];
if (!g) {
g = a.g.hc().li();
if (b)
if (1 == b) {
var h = a.Ja;
var k = g.sb()
} else h = a.Oa, k = g.selected();
else h = a.ma, k = g.Ta();
d && (h = h.ah(), k = k.ah());
g = c ? [b || d ? null : a.Ra, b || d ? null : g.Ra, h.Ra, k.Ra] : [b || d ? null : a.ja,
b || d ? null : g.ja, h.ja, k.ja
];
a.Bz[e] = g
}
return g
},
UV = function(a, b, c, d, e) {
var g = b.da();
if (g.select(c)) {
c = Number(g.o("state") || 0);
if ($.n(e) && c != e) return !1;
if (c != d) {
g.o("state", d);
e = QV(b);
if (d = e[1]) {
e = e[0];
for (c = JV(g); g.advance() && JV(g) == c;) PV(b, g, e, d);
for (var h = b.index + 1; h < a.b.length; h++)
if ((b = a.b[h]) && b.enabled() && lga(g = b.da(), c)) {
do PV(b, g, e, d); while (g.advance() && JV(g) == c)
}
}
return !0
}
}
return !1
},
VV = function(a) {
$.qd.call(this);
this.G = a[0];
this.ba = a[1];
this.Da = {};
this.g = null
},
WV = function(a, b, c, d) {
a.Da[b] = {
ca: null,
hd: UT(c, d),
jz: !1,
mapping: null
}
},
YV = function(a, b, c) {
b = a.Da[b];
return b ? $.n(c) ? (c = UT(c, b.hd), c != b.hd && (b.hd = c, b.jz = !1, XV(a)), a) : b.ca : $.n(c) ? a : null
},
XV = function(a) {
a.g || (a.g = a.fe(a.ba));
$.V(a.G.hc());
for (var b in a.Da) {
var c = a.Da[b];
c.ca || (c.ca = a.G.be(c.hd), c.ca.X = 2, c.jz = !1);
$.V(c.ca);
c.ca.hd() != c.hd && (c.ca.hd(c.hd), c.jz = !1);
c.mapping || (c.mapping = a.ba.hf().Oe(), a.Wz(c.mapping, a.g, b));
c.jz || (c.ca.data(c.mapping), $.G(c.ca.name) && c.ca.name(a.Vi(b)), c.jz = !0);
c.ca.ga(!0)
}
a.G.hc().ga(!0)
},
ZV = function(a) {
for (var b in a.Da) {
var c =
a.Da[b];
c.jz = !1;
$.M(c.mapping);
c.mapping = null
}
$.M(a.g);
a.g = null;
XV(a)
},
$V = function(a) {
this.j = $.on(a, 256, !1);
this.Xb = [];
this.b = this.g = 0
},
aW = function(a) {
return new $V(a)
},
bW = function() {
return {
If: aW(1),
ig: aW(1),
jn: aW(1),
Mn: aW(1),
Pb: 1,
td: window.NaN,
dispose: function() {
this.If.clear();
this.ig.clear();
this.jn.clear();
this.Mn.clear()
}
}
},
cW = function(a) {
a.If.clear();
a.ig.clear();
a.jn.clear();
a.Mn.clear();
a.td = window.NaN
},
dW = function(a, b, c, d, e) {
if ((0, window.isNaN)(c) || (0, window.isNaN)(d) || (0, window.isNaN)(b) ||
(0, window.isNaN)(e)) return window.NaN;
a.If.enqueue(c);
a.ig.enqueue(d);
a.jn.enqueue(b);
a.Mn.enqueue(e);
var g;
if (a.jn.Eh() < a.Pb) return window.NaN;
b = a.If.get(0);
c = a.ig.get(0);
d = a.jn.get(0);
d = (d - c - (b - d)) / (b - c);
e = a.Mn.get(0);
(0, window.isNaN)(a.td) ? g = b - c ? d * e : 0: b - c && (g = a.td + d * e);
return a.td = g
},
eW = function(a, b) {
var c = $.Q(a.get("close")),
d = $.Q(a.get("high")),
e = $.Q(a.get("low")),
g = $.Q(a.get("volume"));
c = dW(b, c, d, e, g);
a.set("result", c)
},
fW = function(a) {
a = a.hf().fe(a);
a.Oi(bW());
a.Ri(cW);
a.Ni(eW);
a.Lf("result");
return a
},
gW = function(a) {
VV.call(this, a);
WV(this, "main", a[2]);
XV(this)
},
hW = function(a, b, c) {
a = $.on(a, 20, !1);
b = $.on(b, 2, !1);
c = $.on(c, 30, !1);
if (b > c) {
var d = b;
b = c;
c = d
}
return {
jc: aW(a + 1),
Pb: a,
aA: c,
Fy: b,
rt: window.NaN,
td: window.NaN,
dispose: function() {
this.jc.clear()
}
}
},
iW = function(a) {
a.jc.clear();
a.td = window.NaN
},
jW = function(a, b) {
var c = a.get("value");
c = $.n(c) ? c : a.get("close");
c = $.Q(c);
var d = (0, window.isNaN)(c),
e;
d || (e = b.jc.enqueue(c));
if (d || b.jc.Eh() <= b.Pb) c = window.NaN;
else {
var g = 2 / (b.aA + 1);
var h = 2 / (b.Fy +
1);
c = b.jc.get(-1);
var k = b.jc.get(0);
d = b.jc.get(-2);
if ((0, window.isNaN)(b.td) || (0, window.isNaN)(b.rt)) {
b.rt = 0;
for (e = 1; e <= b.Pb; e++) b.rt += Math.abs(b.jc.get(e) - b.jc.get(e - 1));
b.rt ? (e = Math.abs(c - k) / b.rt, e = e * (h - g) + g) : e = g;
c = d + e * e * (c - d)
} else b.rt += Math.abs(c - d) - Math.abs(k - e), b.rt ? (e = Math.abs(c - k) / b.rt, e = e * (h - g) + g) : e = g, c = b.td + e * e * (c - b.td);
b.td = c
}
a.set("result", c)
},
kW = function(a, b, c, d) {
a = a.hf().fe(a);
a.Oi(hW(b, c, d));
a.Ri(iW);
a.Ni(jW);
a.Lf("result");
return a
},
lW = function(a) {
VV.call(this, a);
this.j = $.on(a[2],
20, !1);
this.b = $.on(a[3], 2, !1);
this.D = $.on(a[4], 30, !1);
WV(this, "main", a[5]);
XV(this)
},
mW = function(a) {
a = $.on(a, 20, !1);
return {
jc: aW(a),
Pb: a,
td: window.NaN,
JE: window.NaN,
dispose: function() {
this.jc.clear()
}
}
},
nW = function(a) {
a.jc.clear();
a.td = window.NaN;
a.JE = window.NaN
},
pW = function(a, b) {
var c = a.get("value");
c = $.n(c) ? c : a.get("close");
c = $.Q(c);
c = oW(b, c);
a.set("result", c)
},
qW = function(a, b) {
var c = a.hf().fe(a);
c.Oi(mW(b));
c.Ri(nW);
c.Ni(pW);
c.Lf("result");
return c
},
oW = function(a, b) {
if ((0, window.isNaN)(b)) return a.JE =
window.NaN;
var c = a.jc.enqueue(b);
a.JE = c;
if (a.jc.Eh() < a.Pb) return window.NaN;
if ((0, window.isNaN)(a.td)) {
for (var d = c = 0; d < a.Pb; d++) c += a.jc.get(d);
c /= a.Pb
} else d = a.jc.get(-1), c = a.td + (d - c) / a.Pb;
return a.td = c
},
rW = function(a) {
a = mW($.on(a, 14, !1));
a.eM = window.NaN;
return a
},
sW = function(a) {
nW(a);
a.eM = window.NaN
},
tW = function(a, b, c, d) {
if ((0, window.isNaN)(c) || (0, window.isNaN)(d) || (0, window.isNaN)(b)) return window.NaN;
c = oW(a, Math.max(c, a.eM) - Math.min(d, a.eM));
a.eM = b;
return c
},
uW = function(a, b) {
var c = $.Q(a.get("close")),
d = $.Q(a.get("high")),
e = $.Q(a.get("low"));
c = tW(b, c, d, e);
a.set("result", c)
},
vW = function(a, b) {
var c = a.hf().fe(a);
c.Oi(rW(b));
c.Ri(sW);
c.Ni(uW);
c.Lf("result");
return c
},
wW = function(a) {
VV.call(this, a);
this.b = $.on(a[2], 14, !1);
WV(this, "main", a[3]);
XV(this)
},
xW = function(a) {
a = $.on(a, 20, !1);
return {
If: aW(a + 1),
ig: aW(a + 1),
Pb: a,
dispose: function() {
this.If.clear();
this.ig.clear()
}
}
},
yW = function(a) {
a.If.clear();
a.ig.clear()
},
zW = function(a, b) {
var c = $.Q(a.get("high")),
d = $.Q(a.get("low")),
e = (0, window.isNaN)(c) || (0, window.isNaN)(d);
e || (b.If.enqueue(c), b.ig.enqueue(d));
c = b.If.Eh();
if (e || c <= b.Pb) c = e = window.NaN;
else {
var g = 0,
h = b.If.get(0);
for (d = 1; d < c; d++) {
var k = b.If.get(d);
k >= h && (h = k, g = d)
}
e = 100 * g / b.Pb;
g = 0;
h = b.ig.get(0);
for (d = 1; d < c; d++) k = b.ig.get(d), k <= h && (h = k, g = d);
c = 100 * g / b.Pb
}
a.set("upResult", e);
a.set("downResult", c)
},
AW = function(a, b) {
var c = a.hf().fe(a);
c.Oi(xW(b));
c.Ri(yW);
c.Ni(zW);
c.Lf("upResult");
c.Lf("downResult");
return c
},
BW = function(a) {
VV.call(this, a);
this.b = $.on(a[2], 20, !1);
WV(this, "upAroon", a[3]);
WV(this, "downAroon", a[4]);
XV(this)
},
CW = function(a, b) {
var c = mW($.on(a, 20, !1));
c.Gs = $.on(b, 2, !1);
c.nv = window.NaN;
return c
},
DW = function(a) {
nW(a);
a.nv = window.NaN
},
EW = function(a, b) {
var c = a.td,
d = oW(a, b);
if ((0, window.isNaN)(d)) return [window.NaN, window.NaN, window.NaN];
var e, g = a.jc,
h = a.Pb;
if ((0, window.isNaN)(c))
for (c = e = 0; c < h; c++) {
var k = g.get(c) - d;
e += k * k
} else e = a.JE - c, k = g.get(-1) - d, g = c - d, e = a.nv + h * g * g + g * (d + c) - 2 * a.JE * g + k * k - e * e;
0 > e && (e = 0);
a.nv = e;
e = Math.sqrt(e / h) * a.Gs;
return [d, d + e, d - e]
},
FW = function(a, b) {
var c = a.get("value");
c = $.n(c) ? c :
a.get("close");
c = $.Q(c);
c = EW(b, c);
var d = c[1],
e = c[2];
a.set("middleResult", c[0]);
a.set("upperResult", d);
a.set("lowerResult", e)
},
GW = function(a, b, c) {
a = a.hf().fe(a);
a.Oi(CW(b, c));
a.Ri(DW);
a.Ni(FW);
a.Lf("upperResult");
a.Lf("lowerResult");
a.Lf("middleResult");
return a
},
HW = function(a) {
VV.call(this, a);
this.j = $.on(a[2], 20, !1);
this.b = $.on(a[3], 2, !1);
WV(this, "middle", a[4]);
WV(this, "upper", a[5]);
WV(this, "lower", a[6]);
XV(this)
},
IW = function(a, b) {
var c = $.on(a, 20, !1);
return {
jc: aW(c),
Pb: c,
Gs: $.on(b, 2, !1),
td: window.NaN,
nv: window.NaN,
dispose: function() {
this.jc.clear()
}
}
},
JW = function(a) {
a.jc.clear();
a.td = window.NaN;
a.nv = window.NaN
},
KW = function(a, b) {
var c = b.jc,
d = b.Pb,
e = a.get("value");
e = $.n(e) ? e : a.get("close");
e = $.Q(e);
var g = (0, window.isNaN)(e),
h;
g || (h = c.enqueue(e));
e = 0;
if (g || c.Eh() < d) e = window.NaN;
else {
if ((0, window.isNaN)(b.td)) {
for (h = 0; h < d; h++) e += c.get(h);
b.td = e / d;
for (h = e = 0; h < d; h++) g = c.get(h) - b.td, e += g * g;
0 > e && (e = 0);
b.nv = Math.sqrt(e / d);
e = b.nv * b.Gs
} else {
e = (c.get(-1) - h) / d;
var k = b.td;
g = b.nv;
b.td = k + e;
e = g * g * d;
var l = h - k;
g = c.get(-1) - b.td;
var m = k - b.td;
e = e + d * m * m + m * (b.td + k) - 2 * h * m + g * g - l * l;
0 > e && (e = 0);
g = Math.sqrt(e / d);
b.nv = g;
e = g * b.Gs
}
d = b.td + e;
e = b.td - e;
e = (c.get(-1) - e) / (d - e)
}
a.set("result", e)
},
LW = function(a, b, c) {
a = a.hf().fe(a);
a.Oi(IW(b, c));
a.Ri(JW);
a.Ni(KW);
a.Lf("result");
return a
},
MW = function(a) {
VV.call(this, a);
this.j = $.on(a[2], 20, !1);
this.b = $.on(a[3], 2, !1);
WV(this, "main", a[4]);
XV(this)
},
NW = function(a) {
DW(a)
},
OW = function(a, b) {
var c = EW(a, b);
return (c[1] - c[2]) / c[0]
},
PW = function(a, b) {
var c = a.get("value");
c = $.n(c) ? c : a.get("close");
c = $.Q(c);
a.set("result", OW(b, c))
},
QW = function(a, b, c) {
a = a.hf().fe(a);
a.Oi(CW(b, c));
a.Ri(NW);
a.Ni(PW);
a.Lf("result");
return a
},
RW = function(a) {
VV.call(this, a);
this.j = $.on(a[2], 20, !1);
this.b = $.on(a[3], 2, !1);
WV(this, "main", a[4]);
XV(this)
},
SW = function(a) {
return mW($.on(a, 20, !1))
},
TW = function(a) {
nW(a)
},
UW = function(a, b, c, d) {
if ((0, window.isNaN)(c) || (0, window.isNaN)(d) || (0, window.isNaN)(b)) return window.NaN;
b = (c + d + b) / 3;
c = oW(a, b);
for (var e = d = 0; e < a.Pb; e++) d += Math.abs(a.jc.get(e) - a.td);
return (b - c) / (d / a.Pb * .015)
},
VW = function(a, b) {
var c = $.Q(a.get("close")),
d = $.Q(a.get("high")),
e = $.Q(a.get("low"));
c = UW(b, c, d, e);
a.set("result", c)
},
WW = function(a, b) {
var c = a.hf().fe(a);
c.Oi(SW(b));
c.Ri(TW);
c.Ni(VW);
c.Lf("result");
return c
},
XW = function(a) {
VV.call(this, a);
this.b = $.on(a[2], 20, !1);
WV(this, "main", a[3]);
XV(this)
},
YW = function(a) {
a = $.on(a, 20, !1);
return {
jc: aW(a),
Pb: a,
td: window.NaN,
dispose: function() {
this.jc.clear()
}
}
},
ZW = function(a) {
a.jc.clear();
a.td = window.NaN
},
aX = function(a, b) {
var c = a.get("value");
c = $.n(c) ? c : a.get("close");
c = $.Q(c);
c = $W(b, c);
a.set("result", c)
},
bX = function(a, b) {
var c = a.hf().fe(a);
c.Oi(YW(b));
c.Ri(ZW);
c.Ni(aX);
c.Lf("result");
return c
},
$W = function(a, b) {
if ((0, window.isNaN)(b)) return window.NaN;
a.jc.enqueue(b);
var c;
if (a.jc.Eh() < a.Pb) return window.NaN;
if ((0, window.isNaN)(a.td)) {
for (var d = c = 0; d < a.Pb; d++) c += a.jc.get(d);
c /= a.Pb
} else c = a.jc.get(-1), c = a.td + 2 / (a.Pb + 1) * (c - a.td);
return a.td = c
},
cX = function(a, b, c) {
a = $.on(a, 3, !1);
b = $.on(b, 10, !1);
if (a > b) {
var d = a;
a = b;
b = d
}
c = VT(c, "ema");
d = bW();
if ("sma" == c) {
a = mW(a);
b = mW(b);
var e = oW
} else a = YW(a), b = YW(b), e = $W;
return {
lO: d,
$J: a,
UM: b,
j_: e,
tS: c,
dispose: function() {
this.lO.dispose();
this.$J.dispose();
this.UM.dispose()
}
}
},
dX = function(a) {
cW(a.lO);
"sma" == a.tS ? (nW(a.$J), nW(a.UM)) : (ZW(a.$J), ZW(a.UM))
},
eX = function(a, b, c, d, e) {
if ((0, window.isNaN)(b) || (0, window.isNaN)(c) || (0, window.isNaN)(d) || (0, window.isNaN)(e)) return window.NaN;
c = dW(a.lO, b, c, d, e);
b = a.j_(a.$J, c);
a = a.j_(a.UM, c);
return b - a
},
fX = function(a, b) {
var c = $.Q(a.get("close")),
d = $.Q(a.get("high")),
e = $.Q(a.get("low")),
g = $.Q(a.get("volume"));
c = eX(b, c, d, e, g);
a.set("result", c)
},
gX = function(a, b, c, d) {
a = a.hf().fe(a);
a.Oi(cX(b, c, d));
a.Ri(dX);
a.Ni(fX);
a.Lf("result");
return a
},
hX = function(a) {
VV.call(this, a);
this.b = $.on(a[2], 3, !1);
this.j = $.on(a[3], 10, !1);
this.D = VT(a[4], "ema");
WV(this, "main", a[5]);
XV(this)
},
iX = function(a) {
a = $.on(a, 20, !1);
return {
hC: aW(a),
Mn: aW(a),
Pb: a,
ox: window.NaN,
Fz: window.NaN,
dispose: function() {
this.hC.clear();
this.Mn.clear()
}
}
},
jX = function(a) {
a.hC.clear();
a.Mn.clear();
a.ox = window.NaN;
a.Fz = window.NaN
},
kX = function(a, b, c, d, e) {
if ((0, window.isNaN)(c) ||
(0, window.isNaN)(d) || (0, window.isNaN)(b) || (0, window.isNaN)(e)) return window.NaN;
b = a.hC.enqueue(c == d ? 0 : (b - d - (c - b)) * e / (c - d));
e = a.Mn.enqueue(e);
if (a.hC.Eh() < a.Pb) return window.NaN;
if ((0, window.isNaN)(a.ox))
for (a.ox = 0, e = a.Fz = 0; e < a.Pb; e++) a.ox += a.hC.get(e), a.Fz += a.Mn.get(e);
else a.ox += a.hC.get(-1) - b, a.Fz += a.Mn.get(-1) - e;
return a.ox / a.Fz
},
lX = function(a, b) {
var c = $.Q(a.get("close")),
d = $.Q(a.get("high")),
e = $.Q(a.get("low")),
g = $.Q(a.get("volume"));
c = kX(b, c, d, e, g);
a.set("result", c)
},
mX = function(a, b) {
var c = a.hf().fe(a);
c.Oi(iX(b));
c.Ri(jX);
c.Ni(lX);
c.Lf("result");
return c
},
nX = function(a) {
VV.call(this, a);
this.b = $.on(a[2], 20, !1);
WV(this, "main", a[3]);
XV(this)
},
oX = function(a, b, c) {
a = $.on(a, 14, !1);
b = $.on(b, 14, !1);
return {
If: aW(a + 1),
ig: aW(a + 1),
jn: aW(a + 1),
mO: aW(b),
Pb: a,
xA: b,
AN: $.n(c) ? !!c : !0,
alpha: 2 / (a + 1),
f6: 2 / (b + 1),
ot: window.NaN,
jv: window.NaN,
Kt: window.NaN,
PG: window.NaN,
FG: window.NaN,
lA: window.NaN,
dispose: function() {
this.If.clear();
this.ig.clear();
this.jn.clear();
this.mO.clear()
}
}
},
pX = function(a) {
a.If.clear();
a.ig.clear();
a.jn.clear();
a.mO.clear();
a.ot = window.NaN;
a.jv = window.NaN;
a.Kt = window.NaN
},
qX = function(a, b, c, d, e, g, h, k, l) {
d = c - d;
g -= e;
0 > d && (d = 0);
0 > g && (g = 0);
d > g ? g = 0 : d < g ? d = 0 : g = d = 0;
(b = Math.max(Math.abs(c - e), Math.abs(c - b), Math.abs(e - b))) ? (a.ot += a.alpha * (100 * d / b - a.ot), a.jv += a.alpha * (100 * g / b - a.jv)) : (a.ot -= a.alpha * a.ot, a.jv -= a.alpha * a.jv);
a.PG = a.PG + d - h;
a.FG = a.FG + g - k;
a.lA = a.lA + b - l
},
rX = function(a, b, c, d) {
if ((0, window.isNaN)(c) || (0, window.isNaN)(d) || (0, window.isNaN)(b)) return [window.NaN, window.NaN, window.NaN];
var e = a.If,
g = a.ig,
h = a.jn,
k = a.mO;
e.enqueue(c);
g.enqueue(d);
h.enqueue(b);
if (e.Eh() < a.Pb + 1) return [window.NaN, window.NaN, window.NaN];
if ((0, window.isNaN)(a.ot))
for (a.ot = 0, a.jv = 0, a.PG = 0, a.FG = 0, a.lA = 0, c = e.get(0), d = g.get(0), b = 1; b < a.Pb + 1; b++) {
var l = c;
var m = d;
c = e.get(b);
d = g.get(b);
var p = h.get(b - 1);
qX(a, p, c, l, d, m, 0, 0, 0)
} else c = e.get(-1), l = e.get(-2), d = g.get(-1), m = g.get(-2), p = h.get(-2), qX(a, p, c, l, d, m, a.PG / a.Pb, a.FG / a.Pb, a.lA / a.Pb);
a.AN ? a.lA ? (h = 100 * a.PG / a.lA, g = 100 * a.FG / a.lA, e = 0 < h + g ? 100 * Math.abs(h - g) / (h + g) : 0) : e = g = h = 0 : (h = a.ot, g = a.jv,
e = 100 * Math.abs(h - g) / (h + g));
h = [h, g, e];
e = h[0];
g = h[1];
h = h[2];
if ((0, window.isNaN)(h)) return [e, g, window.NaN];
k.enqueue(h);
if (k.Eh() < a.xA) return [e, g, window.NaN];
if ((0, window.isNaN)(a.Kt)) {
for (b = h = 0; b < a.xA; b++) h += k.get(b);
h /= a.xA;
a.Kt = h
} else k = k.get(-1), a.Kt = a.AN ? a.Kt + (k - a.Kt) / a.xA : a.Kt + a.f6 * (k - a.Kt);
return [e, g, a.Kt]
},
sX = function(a, b) {
var c = $.Q(a.get("close")),
d = $.Q(a.get("high")),
e = $.Q(a.get("low"));
c = rX(b, c, d, e);
a.set("pdiResult", c[0]);
a.set("ndiResult", c[1]);
a.set("adxResult", c[2])
},
tX = function(a, b, c,
d) {
a = a.hf().fe(a);
a.Oi(oX(b, c, d));
a.Ri(pX);
a.Ni(sX);
a.Lf("pdiResult");
a.Lf("ndiResult");
a.Lf("adxResult");
return a
},
uX = function(a) {
VV.call(this, a);
this.b = $.on(a[2], 14, !1);
this.j = $.on(a[3], 14, !1);
this.D = $.n(a[4]) ? !!a[4] : !0;
WV(this, "pdi", a[5]);
WV(this, "ndi", a[6]);
WV(this, "adx", a[7]);
XV(this)
},
vX = function(a) {
VV.call(this, a);
this.b = $.on(a[2], 20, !1);
WV(this, "main", a[3]);
XV(this)
},
wX = function(a, b, c, d, e) {
a = $.on(a, 14, !1);
d = VT(d, "sma");
b = $.on(b, 1, !1);
e = VT(e, "sma");
c = $.on(c, 3, !1);
if ("sma" == d) {
var g = mW;
var h =
oW
} else g = YW, h = $W;
if ("sma" == e) {
var k = mW;
var l = oW
} else k = YW, l = $W;
return {
If: aW(a),
ig: aW(a),
ZB: a,
eG: d,
nL: g(b),
Ica: h,
xE: e,
pJ: k(c),
x$: l,
dispose: function() {
this.If.clear();
this.ig.clear();
this.nL.dispose();
this.pJ.dispose()
}
}
},
xX = function(a) {
a.If.clear();
a.ig.clear();
"sma" === a.eG ? nW(a.nL) : ZW(a.nL);
"sma" === a.xE ? nW(a.pJ) : ZW(a.pJ)
},
yX = function(a, b, c, d) {
if ((0, window.isNaN)(b) || (0, window.isNaN)(c) || (0, window.isNaN)(d)) return [window.NaN, window.NaN];
var e = a.If,
g = a.ig;
e.enqueue(c);
g.enqueue(d);
var h;
if (e.Eh() <
a.ZB) b = window.NaN;
else {
c = Number.MAX_VALUE;
d = -Number.MIN_VALUE;
for (h = 0; h < a.ZB; h++) {
var k = e.get(h);
var l = g.get(h);
d < k && (d = k);
c > l && (c = l)
}
b = 100 * (b - c) / (d - c)
}
b = a.Ica(a.nL, b);
a = a.x$(a.pJ, b);
return [b, a]
},
zX = function(a, b) {
var c = $.Q(a.get("close")),
d = $.Q(a.get("high")),
e = $.Q(a.get("low"));
c = yX(b, c, d, e);
d = c[1];
a.set("kResult", c[0]);
a.set("dResult", d)
},
AX = function(a, b, c, d, e, g) {
a = a.hf().fe(a);
a.Oi(wX(b, c, d, e, g));
a.Ri(xX);
a.Ni(zX);
a.Lf("kResult");
a.Lf("dResult");
return a
},
BX = function(a, b, c, d, e, g, h) {
a = $.on(a, 14, !1);
d = VT(d, "ema");
b = $.on(b, 5, !1);
e = VT(e, "ema");
c = $.on(c, 5, !1);
var k = $.Q(g);
g = (0, window.isNaN)(k) ? -2 : k;
k = $.Q(h);
h = (0, window.isNaN)(k) ? 3 : k;
a = wX(a, b, c, d, e);
a.fS = g;
a.PP = h;
return a
},
CX = function(a) {
xX(a)
},
DX = function(a, b, c, d) {
if ((0, window.isNaN)(b) || (0, window.isNaN)(c) || (0, window.isNaN)(d)) return [window.NaN, window.NaN, window.NaN];
b = yX(a, b, c, d);
b.push(a.fS * b[0] + a.PP * b[1]);
return b
},
EX = function(a, b) {
var c = $.Q(a.get("close")),
d = $.Q(a.get("high")),
e = $.Q(a.get("low"));
c = DX(b, c, d, e);
d = c[1];
e = c[2];
a.set("kResult",
c[0]);
a.set("dResult", d);
a.set("jResult", e)
},
FX = function(a, b, c, d, e, g, h, k) {
a = a.hf().fe(a);
a.Oi(BX(b, c, d, e, g, h, k));
a.Ri(CX);
a.Ni(EX);
a.Lf("kResult");
a.Lf("dResult");
a.Lf("jResult");
return a
},
GX = function(a) {
VV.call(this, a);
this.D = $.on(a[2], 14, !1);
this.b = $.on(a[3], 5, !1);
this.j = $.on(a[4], 5, !1);
this.R = VT(a[5], "ema");
this.K = VT(a[6], "ema");
var b = $.Q(a[7]);
this.X = (0, window.isNaN)(b) ? -2 : b;
b = $.Q(a[8]);
this.Y = (0, window.isNaN)(b) ? 3 : b;
WV(this, "kSeries", a[9]);
WV(this, "dSeries", a[10]);
WV(this, "jSeries", a[11]);
XV(this)
},
HX = function(a, b, c) {
a = $.on(a, 12, !1);
b = $.on(b, 26, !1);
if (a > b) {
var d = a;
a = b;
b = d
}
return {
zQ: YW(a),
iU: YW(b),
eU: YW($.on(c, 9, !1)),
dispose: function() {
this.zQ.dispose();
this.iU.dispose();
this.eU.dispose()
}
}
},
IX = function(a) {
ZW(a.zQ);
ZW(a.iU);
ZW(a.eU)
},
KX = function(a, b) {
var c = a.get("value");
c = $.n(c) ? c : a.get("close");
c = $.Q(c);
c = JX(b, c);
var d = c[1],
e = c[2];
a.set("macdResult", c[0]);
a.set("signalResult", d);
a.set("histogramResult", e)
},
JX = function(a, b) {
if ((0, window.isNaN)(b)) return [window.NaN, window.NaN, window.NaN];
var c =
$W(a.zQ, b);
var d = $W(a.iU, b),
e = $W(a.eU, c - d);
if ((0, window.isNaN)(e)) var g = e = c = window.NaN;
else g = c - d, c = c - d - e;
return [g, e, c]
},
LX = function(a, b, c, d) {
a = a.hf().fe(a);
a.Oi(HX(b, c, d));
a.Ri(IX);
a.Ni(KX);
a.Lf("macdResult");
a.Lf("signalResult");
a.Lf("histogramResult");
return a
},
MX = function(a) {
VV.call(this, a);
this.b = $.on(a[2], 12, !1);
this.j = $.on(a[3], 26, !1);
this.D = $.on(a[4], 9, !1);
WV(this, "macd", a[5]);
WV(this, "signal", a[6]);
WV(this, "histogram", a[7], "column");
XV(this)
},
NX = function(a) {
a = $.on(a, 10, !1);
return {
hM: aW(a),
Mn: aW(a),
Pb: a,
dispose: function() {
this.hM.clear();
this.Mn.clear()
}
}
},
OX = function(a) {
a.hM.clear();
a.Mn.clear();
a.td = window.NaN
},
PX = function(a, b, c, d, e) {
if ((0, window.isNaN)(b) || (0, window.isNaN)(c) || (0, window.isNaN)(d) || (0, window.isNaN)(e)) return window.NaN;
c = a.hM.enqueue(b + c + d);
d = a.Mn.enqueue(e);
e = a.hM;
b = a.Mn;
if (e.Eh() < a.Pb) return window.NaN;
if ((0, window.isNaN)(a.td)) {
var g = c = 0;
d = e.get(0);
for (var h = 1; h < a.Pb; h++) {
var k = e.get(h);
var l = k * b.get(h);
k != d && (k > d ? c += l : g += l, d = k)
}
a.mS = 0;
a.qC = c;
a.IG = g;
e = 100 * c / (c +
g)
} else d *= c, 0 < a.mS ? a.qC -= d : 0 > a.mS && (a.IG -= d), d = e.get(-2), k = e.get(-1), l = k * b.get(-1), k > d ? a.qC += l : k < d && (a.IG += l), a.mS = e.get(0) - c, e = 100 * a.qC / (a.qC + a.IG);
return a.td = e
},
QX = function(a, b) {
var c = $.Q(a.get("close")),
d = $.Q(a.get("high")),
e = $.Q(a.get("low")),
g = $.Q(a.get("volume"));
c = PX(b, c, d, e, g);
a.set("result", c)
},
RX = function(a, b) {
var c = a.hf().fe(a);
c.Oi(NX(b));
c.Ri(OX);
c.Ni(QX);
c.Lf("result");
return c
},
SX = function(a) {
VV.call(this, a);
this.b = $.on(a[2], 10, !1);
WV(this, "series", a[3]);
XV(this)
},
TX = function(a) {
a =
$.on(a, 20, !1);
return {
jc: aW(a),
Pb: a,
td: window.NaN,
dispose: function() {
this.jc.clear()
}
}
},
UX = function(a) {
a.jc.clear();
a.td = window.NaN
},
VX = function(a, b) {
var c = a.get("value");
c = $.n(c) ? c : a.get("close");
c = $.Q(c);
if ((0, window.isNaN)(c)) var d = window.NaN;
else {
d = b.Pb;
var e = b.jc,
g = b.td;
e.enqueue(c);
if (e.Eh() < d) g = window.NaN;
else if ((0, window.isNaN)(g)) {
for (c = g = 0; c < d; c++) g += e.get(c);
g /= d
} else e = e.get(-1), g += (e - g) / d;
d = g;
b.td = d
}
a.set("result", d)
},
WX = function(a, b) {
var c = a.hf().fe(a);
c.Oi(TX(b));
c.Ri(UX);
c.Ni(VX);
c.Lf("result");
return c
},
XX = function(a) {
VV.call(this, a);
this.b = $.on(a[2], 20, !1);
WV(this, "main", a[3]);
XV(this)
},
YX = function(a) {
a = $.on(a, 14, !1);
return {
jc: aW(a + 1),
Pb: a,
dispose: function() {
this.jc.clear()
}
}
},
ZX = function(a) {
a.jc.clear();
a.td = window.NaN
},
$X = function(a, b) {
if ((0, window.isNaN)(b)) return window.NaN;
var c = a.jc;
c.enqueue(b);
if (c.Eh() < a.Pb + 1) return window.NaN;
c = 100 * b / c.get(0);
return a.td = c
},
aY = function(a, b) {
var c = a.get("value");
c = $.n(c) ? c : a.get("close");
c = $.Q(c);
c = $X(b, c);
a.set("result", c)
},
bY =
function(a, b) {
var c = a.hf().fe(a);
c.Oi(YX(b));
c.Ri(ZX);
c.Ni(aY);
c.Lf("result");
return c
},
cY = function(a) {
VV.call(this, a);
this.b = $.on(a[2], 14, !1);
WV(this, "series", a[3]);
XV(this)
},
dY = function(a, b, c) {
return {
If: aW(2),
ig: aW(2),
tO: $.Q(a) || .02,
r6: $.Q(b) || .02,
FV: $.Q(c) || .2,
dispose: function() {
this.If.clear();
this.ig.clear()
}
}
},
eY = function(a) {
a.If.clear();
a.ig.clear();
a.td = window.NaN;
a.ap = window.NaN;
a.$o = window.NaN;
a.alpha = a.tO
},
fY = function(a) {
a.alpha += a.r6;
a.alpha > a.FV && (a.alpha = a.FV)
},
gY = function(a) {
var b =
a.td + a.alpha * (a.ap - a.td);
b > a.ig.get(-2) ? b = a.ig.get(-2) : !(0, window.isNaN)(a.XP) && b > a.XP && (b = a.XP);
b > a.ig.get(-1) && (b = a.ap, a.ap = window.NaN, a.$o = window.NaN, a.jL = !1, a.alpha = a.tO);
a.td = b
},
hY = function(a) {
var b = a.td + a.alpha * (a.$o - a.td);
b < a.If.get(-2) ? b = a.If.get(-2) : !(0, window.isNaN)(a.WP) && b < a.WP && (b = a.WP);
b < a.If.get(-1) && (b = a.$o, a.ap = window.NaN, a.$o = window.NaN, a.jL = !0, a.alpha = a.tO);
a.td = b
},
iY = function(a) {
var b = a.If.get(-2),
c = a.ig.get(-2);
(0, window.isNaN)(a.ap) ? a.ap = b: a.ap < b && (a.ap = b, fY(a));
if ((0, window.isNaN)(a.$o) ||
a.$o > c) a.$o = c
},
jY = function(a) {
var b = a.If.get(-2),
c = a.ig.get(-2);
(0, window.isNaN)(a.$o) ? a.$o = c: a.$o > c && (a.$o = c, fY(a));
if ((0, window.isNaN)(a.ap) || a.ap < b) a.ap = b
},
kY = function(a, b, c) {
if ((0, window.isNaN)(b) || (0, window.isNaN)(c)) return window.NaN;
b = a.WP = a.If.enqueue(b);
a.XP = a.ig.enqueue(c);
if (2 > a.If.Eh()) return window.NaN;
(0, window.isNaN)(a.td) ? (a.ap = window.NaN, a.$o = window.NaN, a.jL = b <= a.If.get(0), a.jL ? (iY(a), a.td = a.ap, gY(a)) : (jY(a), a.td = a.$o, hY(a))) : a.jL ? (iY(a), gY(a)) : (jY(a), hY(a));
return a.td
},
lY = function(a,
b) {
var c = $.Q(a.get("high")),
d = $.Q(a.get("low"));
c = kY(b, c, d);
a.set("result", c)
},
mY = function(a, b, c, d) {
a = a.hf().fe(a);
a.Oi(dY(b, c, d));
a.Ri(eY);
a.Ni(lY);
a.Lf("result");
return a
},
nY = function(a) {
VV.call(this, a);
this.D = $.Q(a[2]) || .02;
this.j = $.Q(a[3]) || .02;
this.b = $.Q(a[4]) || .2;
WV(this, "series", a[5], "marker");
XV(this)
},
oY = function(a) {
a = $.on(a, 14, !1);
return {
jc: aW(a),
Pb: a,
Fx: window.NaN,
sw: window.NaN,
dispose: function() {
this.jc.clear()
}
}
},
pY = function(a) {
a.jc.clear();
a.Fx = window.NaN;
a.sw = window.NaN
},
qY = function(a,
b) {
var c = a.get("value");
c = $.n(c) ? c : a.get("close");
c = $.Q(c);
var d = (0, window.isNaN)(c);
d || b.jc.enqueue(c);
if (d || b.jc.Eh() < b.Pb) c = window.NaN;
else {
if ((0, window.isNaN)(b.Fx)) {
var e = 0,
g = 0;
d = b.jc.get(0);
for (var h = 1; h < b.Pb; h++) c = d, d = b.jc.get(h), d > c ? e += d - c : d < c && (g += c - d);
b.Fx = e;
b.sw = g
} else d = b.jc.get(-1), c = b.jc.get(-2), e = (b.Pb - 1) / b.Pb, b.Fx *= e, b.sw *= e, d > c ? b.Fx += d - c : d < c && (b.sw += c - d);
c = b.sw ? 100 - 100 / (1 + b.Fx / b.sw) : 100
}
a.set("result", c)
},
rY = function(a, b) {
var c = a.hf().fe(a);
c.Oi(oY(b));
c.Ri(pY);
c.Ni(qY);
c.Lf("result");
return c
},
sY = function(a) {
VV.call(this, a);
this.b = $.on(a[2], 14, !1);
WV(this, "main", a[3]);
XV(this)
},
tY = function(a) {
a = $.on(a, 20, !1);
return {
jc: aW(a + 1),
Pb: a,
dispose: function() {
this.jc.clear()
}
}
},
uY = function(a) {
a.jc.clear()
},
vY = function(a, b) {
var c = a.get("value");
c = $.n(c) ? c : a.get("close");
c = $.Q(c);
var d = (0, window.isNaN)(c);
d || b.jc.enqueue(c);
d || b.jc.Eh() <= b.Pb ? c = window.NaN : (c = b.jc.get(0), c = 100 * (b.jc.get(-1) - c) / c);
a.set("result", c)
},
wY = function(a, b) {
var c = a.hf().fe(a);
c.Oi(tY(b));
c.Ri(uY);
c.Ni(vY);
c.Lf("result");
return c
},
xY = function(a) {
VV.call(this, a);
this.b = $.on(a[2], 20, !1);
WV(this, "main", a[3]);
XV(this)
},
yY = function(a) {
VV.call(this, a);
this.b = $.on(a[2], 20, !1);
WV(this, "main", a[3]);
XV(this)
},
zY = function(a) {
VV.call(this, a);
this.D = $.on(a[2], 14, !1);
this.b = $.on(a[3], 1, !1);
this.j = $.on(a[4], 3, !1);
this.R = VT(a[5], "sma");
this.K = VT(a[6], "sma");
WV(this, "kSeries", a[7]);
WV(this, "dSeries", a[8]);
XV(this)
},
AY = function(a) {
a = $.on(a, 10, !1);
return {
jn: aW(a),
If: aW(a),
ig: aW(a),
Pb: a,
dispose: function() {
this.jn.clear();
this.If.clear();
this.ig.clear()
}
}
},
BY = function(a) {
a.jn.clear();
a.If.clear();
a.ig.clear();
a.td = window.NaN
},
CY = function(a, b, c, d) {
if ((0, window.isNaN)(b) || (0, window.isNaN)(c) || (0, window.isNaN)(d)) return window.NaN;
a.jn.enqueue(b);
a.If.enqueue(c);
a.ig.enqueue(d);
if (a.jn.Eh() < a.Pb) return window.NaN;
c = Number.MAX_VALUE;
b = -Number.MIN_VALUE;
for (d = 0; d < a.Pb; d++) {
var e = a.If.get(d),
g = a.ig.get(d);
b < e && (b = e);
c > g && (c = g)
}
b = -100 * (b - a.jn.get(-1)) / (b - c);
return a.td = b
},
DY = function(a, b) {
var c = $.Q(a.get("close")),
d = $.Q(a.get("high")),
e =
$.Q(a.get("low"));
c = CY(b, c, d, e);
a.set("result", c)
},
EY = function(a, b) {
var c = a.hf().fe(a);
c.Oi(AY(b));
c.Ri(BY);
c.Ni(DY);
c.Lf("result");
return c
},
FY = function(a) {
VV.call(this, a);
this.b = $.on(a[2], 10, !1);
WV(this, "series", a[3]);
XV(this)
},
HY = function(a) {
function b(a) {
return function(b) {
for (var c = [this], d = 0; d < arguments.length; d++) c[d + 1] = arguments[d];
c = new GY[a](c);
this.SB.push(c);
return c
}
}
a = a.prototype;
for (var c in GY) {
var d = $.ml(c);
a[d] = b(c)
}
},
LY = function(a) {
$.X.call(this);
this.Qa = a;
this.Tf = this.Na = null;
this.Da = [];
this.SB = [];
this.Xc = null;
this.sf = [];
this.st = [];
this.Dc = null;
this.lj = [];
this.mj = [];
this.Fj = [];
this.Hj = [];
this.Uk = this.Df = this.Yi = null;
this.dG = !1;
this.Ci = void 0;
this.Ar = (0, $.ra)(function() {
this.Ci = void 0;
if ((0, window.isNaN)(this.gK)) this.Qa.CU();
else {
var a = this.Qa,
c = this.gK,
d = this.Faa,
e = this.Gaa;
a.K = c;
a.ba = d;
a.ka = e;
a.$a = this;
IY(a, c, d, e, this)
}
}, this);
this.vha = (0, $.ra)(function() {
this.q2 = void 0;
var a = this.JN.anchor,
c = this.JN.uq,
d = this.JN.w$;
this.JN = null;
var e = this.Qa,
g = e.Wa();
d = Math.min(d, 1.9);
$.L(g, JY) ? (g = a.lastIndex - a.Ph, c *= g, g = g * (1 - d) / 2, d = e.Dh(a.Ph - c - g), c = e.Dh(a.lastIndex - c + g)) : (g = a.hz - a.tu, c *= g, g = g * (1 - d) / 2, d = a.tu - c - g, c = a.hz - c + g);
d == e.b.b.Lg && c == e.b.b.Oh || KY(e, d, c, a, void 0)
}, this);
this.cp("line");
$.Oo(this.Ha, [
["pointWidth", 128, 1, 0, this.Ww],
["maxPointWidth", 128, 1, 0, this.Ww],
["minPointLength", 128, 1, 0, this.Jz]
])
},
NY = function(a) {
a.TE();
var b;
if (a.O(128))
for (b = 0; b < a.Da.length; b++) {
var c = a.Da[b];
c && (c.R = BU(c.Ga))
}
if (a.O(2052)) {
c = a.pb();
a.Na && a.Na.oa(c);
var d;
a.O(2048) ? d = (0, window.isNaN)(a.XK) ?
TU(a.Qa.b) : a.XK : d = window.NaN;
var e = a.Te();
"outside" == e.mx() && (MY(a, c, d), a.sa(64, !0), c = a.Te().yd());
a.Dc && a.Dc.enabled() && ($.V(a.Dc), a.Dc.oa(c), a.Dc.ga(!1), c = a.Dc.yd(), a.B(512));
var g = 0,
h = 0;
for (b = 0; b < a.sf.length; b++) {
var k = a.sf[b];
if (k) {
$.V(k);
var l = k.width();
"left" == k.orientation() ? (k.oa(c.left - l - g, c.top, 0, c.height), g += l) : "right" == k.orientation() && (h += l, k.oa(c.left, c.top, c.width + h, c.height));
k.ga(!1)
}
}
a.Dc && a.Dc.enabled() && ($.V(a.Dc), a.Dc.oa(c.left, c.top, c.width, c.height + a.Dc.height()), a.Dc.ga(!1),
c = a.Dc.yd());
"inside" == e.mx() && (MY(a, c, d), a.sa(64, !0));
a.Ej = c;
a.Yi.Bf(a.Ej);
a.dg().oa(c);
a.Vw(!0, !0);
a.N(2052)
}
},
MY = function(a, b, c, d) {
var e = a.Te();
$.V(e);
e.U(a.Ya);
b && e.oa(b);
b = a.YY(e.Zp(), c, d);
null === b || $.Kt(e.title(), b);
e.XB() || e.XB(a);
e.B(1040);
e.aa();
e.ga(!1)
},
OY = function(a, b, c, d, e, g) {
var h, k, l, m = [];
for (h = 0; h < b.length; h++)
if (l = b[h]) {
var p = l.J();
if (k = l.scale()) {
var q = $.oa(k);
e[q] ? p.scale = (0, $.Ca)(d, e[q]) : (e[q] = k.J(), d.push(e[q]), p.scale = d.length - 1)
}
if (q = l.axis()) k = $.oa(q), k = (0, $.Ca)(g, k), 0 > k ? (k =
q.scale(), "layout" in p || (l = !1, $.L(q, $.aw) && (q = q.orientation(), l = "left" == q || "right" == q), p.layout = l ? "horizontal" : "vertical"), "scale" in p || (q = $.oa(k), e[q] ? p.scale = (0, $.Ca)(d, e[q]) : (e[q] = k.J(), d.push(e[q]), p.scale = d.length - 1))) : p.axis = k;
m.push(p)
}
m.length && (c[a] = m)
},
QY = function(a, b) {
$.Wf.call(this, b.fa());
this.b = a;
this.Ci = void 0;
this.Ar = (0, $.ra)(function() {
this.Ci = void 0;
var a = this.b.Qa,
b = this.D,
e = PY(a, this.va, b);
e && KY(a, e[0], e[1], b, void 0)
}, this);
$.Xf(this);
this.la("start", this.u8, !1, this);
this.la("beforedrag",
this.R9, !1, this);
this.la("end", this.t8, !1, this)
},
RY = function(a, b, c) {
this.b = this.D = this.G = this.ba = null;
CV.call(this, a, a, b, c)
},
SY = function() {},
TY = function() {},
UY = function(a) {
$.zp.call(this);
this.yp = 1E3;
this.G = 6;
this.b = a;
this.fv = this.Qr = this.Lq = this.Ao = this.R = this.j = this.Y = this.X = window.NaN;
this.gm = {};
this.Pc = !1;
this.D = this.K = null;
this.vd = [];
this.Ia(nga)
},
PU = function(a, b, c, d, e, g) {
b = $.hb(b, a.X, a.Y);
c = $.hb(c, a.X, a.Y);
var h = a.b.nf(b),
k = a.b.nf(c);
(0, window.isNaN)(h) || (0, window.isNaN)(k) ? (a.Ao = window.NaN,
a.Lq = window.NaN) : (a.Ao = b, a.Lq = c);
a.Qr = h;
a.fv = k;
a.yi = d;
a.count = e;
a.Pc = !1;
a.gm = g;
a.sa(512)
},
oga = function(a) {
var b = [];
if ($.C(a)) {
for (var c = 0; c < a.length; c++) {
var d = a[c];
if ($.F(d)) {
var e = VY(d.minor);
d = VY(d.major);
e && d && b.push({
ke: $.Vn(e[0], e[1]),
EG: e[0],
DG: e[1],
qG: d[0],
pG: d[1]
})
}
}
b.sort(function(a, b) {
return a.ke - b.ke
})
}
return b
},
VY = function(a) {
var b = null;
if ($.y(a)) {
b = $.ak(a, null);
var c = 1
} else $.F(a) && (b = $.ak(a.unit, null), c = $.on(a.count));
return b ? [b, c] : null
},
WY = function(a) {
this.ra = a;
this.R = !0
},
XY = function(a,
b, c) {
a = a.ra;
a = a.b.Dh(Math.ceil(a.b.nf(b.getTime())));
var d = b.getTime();
b.add(c);
b.getTime() <= a && (d = $.Bn(a, c, d), b.setTime(d), b.add(c));
return d
},
JY = function(a) {
UY.call(this, a)
},
YY = function(a) {
$.oy.call(this);
this.Qa = a;
this.Da = [];
this.SB = [];
this.Ad = this.La = this.Oz = this.Uq = this.Dc = this.Xc = null;
this.cp("line")
},
ZY = function(a) {
for (var b = 0; b < a.Da.length; b++) {
var c = a.Da[b];
c && c.B(1024)
}
a.Dc && a.Dc.B(16);
a.B(1536)
},
$Y = function(a) {
$.zp.call(this);
this.Qa = a;
this.ma = new $.Cv(this, KV, $.dl, LV);
this.ma.ja.connectorAfterInitCallback =
ZT;
this.Ja = new $.Cv(this, MV, $.dl, LV);
this.Oa = new $.Cv(this, MV, $.dl, LV);
$.Oo(this.Ha, NV);
a.la("eventmarkermouseover", this.sW, !1, this);
a.la("eventmarkermousemove", this.sW, !1, this);
a.la("eventmarkermouseout", this.z8, !1, this);
a.la("eventmarkerclick", this.y8, !1, this)
},
aZ = function(a, b, c, d, e, g) {
return {
type: c ? "eventmarkersselect" : "eventmarkershover",
status: (0, $.eb)(d, function(a) {
return a.group.Bq(a.index)
}),
eventMarker: e.Bq(g),
actualTarget: e,
target: a,
originalEvent: b
}
},
bZ = function(a) {
$.Xu.call(this);
this.g = [];
this.j = null;
this.b = new HU;
$.U(this.b, this.y$, this);
this.Fa = !1;
this.mb = null;
this.X = this.va = !1;
this.G = this.ka = this.ba = this.K = window.NaN;
this.Uk = this.Df = null;
this.D = $.mk.anychart.annotations;
this.Aa = {};
this.kt = null;
this.Qb = (0, $.ra)(this.K$, this);
this.cc = (0, $.ra)(this.L$, this);
this.qa = -1;
var b = this.Nt = !!a;
a = {};
var c = $.jy | 5242880;
c |= b && 1048576;
b = b ? 2 : 1;
a.area = {
xb: 1,
Ab: 1,
Fb: [$.SC, $.TC, $.UC],
Db: null,
yb: null,
wb: c,
ub: "value",
tb: "zero"
};
a.candlestick = {
xb: 5,
Ab: b,
Fb: [$.ZC, $.aD, $.bD, $.dD],
Db: null,
yb: null,
wb: c,
ub: "high",
tb: "low"
};
a.column = {
xb: 6,
Ab: b,
Fb: [$.gD, $.UC],
Db: null,
yb: null,
wb: c,
ub: "value",
tb: "zero"
};
a["jump-line"] = {
xb: 19,
Ab: 2,
Fb: [$.TC],
Db: null,
yb: null,
wb: c,
ub: "value",
tb: "value"
};
a.stick = {
xb: 20,
Ab: 2,
Fb: [$.TC],
Db: null,
yb: null,
wb: c,
ub: "value",
tb: "zero"
};
a.line = {
xb: 8,
Ab: 1,
Fb: [$.TC],
Db: null,
yb: null,
wb: c,
ub: "value",
tb: "value"
};
a.marker = {
xb: 9,
Ab: b,
Fb: [$.gD, $.UC],
Db: null,
yb: null,
wb: c,
ub: "value",
tb: "value"
};
a.ohlc = {
xb: 10,
Ab: b,
Fb: [$.$C, $.cD],
Db: null,
yb: null,
wb: c,
ub: "high",
tb: "low"
};
a["range-area"] = {
xb: 11,
Ab: 1,
Fb: [$.SC, $.fD, $.eD, $.UC],
Db: null,
yb: null,
wb: c,
ub: "high",
tb: "low"
};
a["range-column"] = {
xb: 12,
Ab: b,
Fb: [$.gD, $.UC],
Db: null,
yb: null,
wb: c,
ub: "high",
tb: "low"
};
a["range-spline-area"] = {
xb: 13,
Ab: 1,
Fb: [$.SC, $.eD, $.fD, $.UC],
Db: null,
yb: null,
wb: c,
ub: "high",
tb: "low"
};
a["range-step-area"] = {
xb: 14,
Ab: 1,
Fb: [$.SC, $.eD, $.fD, $.UC],
Db: null,
yb: null,
wb: c,
ub: "high",
tb: "low"
};
a.spline = {
xb: 15,
Ab: 1,
Fb: [$.TC],
Db: null,
yb: null,
wb: c,
ub: "value",
tb: "value"
};
a["spline-area"] = {
xb: 16,
Ab: 1,
Fb: [$.SC, $.TC, $.UC],
Db: null,
yb: null,
wb: c,
ub: "value",
tb: "zero"
};
a["step-area"] = {
xb: 17,
Ab: 1,
Fb: [$.SC, $.TC, $.UC],
Db: null,
yb: null,
wb: c,
ub: "value",
tb: "zero"
};
a["step-line"] = {
xb: 18,
Ab: 1,
Fb: [$.TC],
Db: null,
yb: null,
wb: c,
ub: "value",
tb: "value"
};
a.hilo = {
xb: 31,
Ab: 2,
Fb: [$.TC],
Db: null,
yb: null,
wb: c,
ub: "high",
tb: "low"
};
this.Mi = a;
$.Oo(this.Ha, [
["zoomMarqueeFill", 0, 0],
["zoomMarqueeStroke", 0, 0]
])
},
cZ = function(a, b, c, d) {
var e = $.Q(b);
(0, window.isNaN)(e) ? e = 0: (e = b, b = c);
c = a.g[e];
if (!c) {
c = new LY(a);
c.dg().parent(a.dg());
$.n(a.Ma) && c.ia(!!d, a.Ma);
c.kb(a);
a.g[e] = c;
$.U(c, a.sfa, a);
if (e > a.qa) {
var g = a.g[a.qa];
g && $.n(!1) && (g.dG = !1);
$.n(!0) && (c.dG = !0);
a.qa = e
}
a.B(4100, 9)
}
return $.n(b) ? (c.ia(!!d, b), a) : c
},
pga = function(a, b) {
return [FU(a.b, !1, !1, !0), b ? window.NaN : a.b.b.Lg, b ? window.NaN : a.b.b.Oh]
},
dZ = function(a, b, c) {
$.V(a);
var d = a.Wa(),
e = a.GC().Wa();
KU(a.b) && (RU(a.b, d), RU(a.b, e));
a.b.select(b, c, e) && (QU(a.b, d), a.Vw());
a.ga(!0)
},
eZ = function(a, b, c, d, e) {
if ($.n(d)) return a.dispatchEvent({
type: b,
source: c,
firstSelected: d,
lastSelected: e,
firstKey: a.b.D,
lastKey: a.b.G
});
d = a.ko();
return a.dispatchEvent({
type: b,
source: c,
firstSelected: a.b.b.Lg,
lastSelected: a.b.b.Oh,
firstVisible: SU(a.b),
lastVisible: TU(a.b),
firstKey: a.b.D,
lastKey: a.b.G,
dataIntervalUnit: d.eo().unit,
dataIntervalUnitCount: d.eo().count,
dataIsGrouped: d.VB()
})
},
fZ = function(a, b, c) {
var d = b.bb(),
e = $.oa(d),
g = b.zc(),
h = EU(b.Ga, "value"),
k = c[e];
if (!k)
for (k = c[e] = [], e = g.Nb(), c = 0; c < e + 2; c++) k.push({
pv: 0,
Co: 0,
lv: 0,
ov: 0,
Bo: 0,
kv: 0,
sC: !1,
jC: !1,
Rr: !1
});
var l = (e = "percent" == d.Yp()) ? a.d0 : a.hha,
m = k[c = 0],
p = xU(b.Ga);
if (p)
if (p.o("stackedMissing", m.Rr), m.Rr = p.o("missing")) var q =
window.NaN;
else {
var r = Number(p.wq(h));
l.call(a, d, p, m, r, null, window.NaN);
q = r
} else q = window.NaN;
for (g.reset(); g.advance();) {
var t = m;
m = k[++c];
g.o("stackedMissing", m.Rr);
(m.Rr = g.o("missing")) ? (t.jC = !0, q = window.NaN) : (r = Number(g.wq(h)), l.call(a, d, g, m, r, t, q), q = r)
}
if (p = yU(b.Ga)) m = k[++c], p.o("stackedMissing", m.Rr), (m.Rr = p.o("missing")) || (r = Number(p.wq(h)), l.call(a, d, p, m, r, t, q));
return e
},
gZ = function(a, b, c) {
a.o("missing") ? (a.o("stackedPositiveZero", Number(a.o("stackedPositiveZero")) / c.Co * 100 || 0), a.o("stackedNegativeZero",
Number(a.o("stackedNegativeZero")) / c.Bo * 100 || 0)) : (0 <= Number(a.o("stackedValue")) ? (c = c.Co, b.ld(100)) : (c = -c.Bo, b.ld(-100)), a.o("stackedZero", Number(a.o("stackedZero")) / c * 100 || 0), a.o("stackedValue", Number(a.o("stackedValue")) / c * 100 || 0))
},
hZ = function(a, b, c) {
var d = $.oa(b),
e = a.da();
c = c[d];
b.ld(0);
var g = xU(a.Ga);
g && (d = c[0], gZ(g, b, d));
var h = 1;
for (e.reset(); e.advance();) d = c[h++], gZ(e, b, d);
if (g = yU(a.Ga)) d = c[h], gZ(g, b, d)
},
iZ = function(a, b, c, d) {
var e = 0,
g = [],
h = [],
k = [],
l = 0,
m = !1,
p = c - b;
for (c = 0; c < a.length; c++) {
var q =
a[c];
$.V(q);
var r = $.P(q.minHeight(), d);
var t = $.P(q.minHeight(), d);
var u = $.P(q.height(), d);
(0, window.isNaN)(u) ? (l++, (0, window.isNaN)(r) || (h[c] = r, m = !0), (0, window.isNaN)(t) || (k[c] = t, m = !0)) : ((0, window.isNaN)(r) || (u = Math.max(u, r)), (0, window.isNaN)(t) || (u = Math.min(u, t)), e += u, g[c] = u)
}
if (m && 0 < l) {
var v = [];
q = l * l;
do
for (m = !1, d = Math.max(3, (p - e) / l), c = 0; c < a.length; c++)
if (!(c in g))
if (c in v) {
if (v[c] == h[c] && h[c] < d) {
e -= h[c];
l++;
delete v[c];
m = !0;
break
}
if (v[c] == k[c] && k[c] > d) {
e -= k[c];
l++;
delete v[c];
m = !0;
break
}
} else {
if (c in
h && h[c] > d) {
e += v[c] = h[c];
l--;
m = !0;
break
}
if (c in k && k[c] < d) {
e += v[c] = k[c];
l--;
m = !0;
break
}
}
while (m && 0 < l && q--)
}
d = Math.max(3, (p - e) / l);
for (c = 0; c < a.length; c++) q = a[c], c in g ? u = g[c] : v && c in v ? u = v[c] : u = d, u = Math.round(u), e = q, l = e.IA != b, e.IA = b, l && e.sa(2), e = q, l = e.Xv != u, e.Xv = u, l && e.sa(2), q.ga(!0), b += u
},
jZ = function(a, b) {
for (var c = !1, d = 0; d < a.g.length; d++) {
var e = a.g[d];
if (e && !e.Ld) {
e = e.mf();
for (var g = 0; g < e.length; g++)
if (e[g].Ga == b) {
c = !0;
break
}
}
}
if (!c && (c = a.b, d = $.oa(b).toFixed(0), d in c.X)) {
b.D = null;
delete c.X[d];
delete c.va[d];
delete c.Ma[d];
e = {};
for (d in c.X) {
g = c.X[d].Aq().hf();
var h = $.oa(g).toFixed(0);
h in e || (e[h] = g)
}
for (d in c.R)
if (!(d in e)) {
$.Bp(c.R[d], c.M1, c);
break
}
c.R = e;
c.g.j = !0;
for (var k in c.K) c.K[k].j = !0;
c.B(16384, 16)
}
},
lZ = function(a) {
a.X = !0;
kZ(a)
},
nZ = function(a) {
a.X = !1;
mZ(a)
},
mZ = function(a) {
(0, window.isNaN)(a.K) || IY(a, a.K, a.ba, a.ka, a.$a)
},
IY = function(a, b, c, d, e) {
if (!(a.X || 0 > b || 1 < b)) {
b = a.Wa().Vc(b);
var g = iga(a.b.j, b);
if (!(0, window.isNaN)(g)) {
var h, k = {
type: "pointshover",
infoByPlots: (0, $.eb)(a.g, function(a) {
return {
plot: a,
infoBySeries: a && a.enabled() ? a.bM(g) : null
}
}),
hoveredDate: g
};
for (h = 0; h < a.g.length; h++) a.g[h] && a.g[h].sn(g, b, e, d);
a.va = !0;
e = a.jb();
if ("union" == e.I("displayMode") && "point" != e.I("positionMode")) {
var l = [];
k = k.infoByPlots;
for (h = 0; h < k.length; h++)
if (k[h]) {
var m = k[h].infoBySeries;
if (m)
for (var p = 0; p < m.length; p++) {
var q = m[p].series;
q && l.push({
series: q
})
}
}
a = a.ko();
$.ou(e, l, c, d, null, !1, {
hoveredDate: {
value: g,
type: "date-time"
},
rawHoveredDate: {
value: b,
type: "date-time"
},
dataIntervalUnit: {
value: a.eo().unit,
type: "string"
},
dataIntervalUnitCount: {
value: a.eo().count,
type: "number"
},
isGrouped: {
value: a.VB()
}
})
}
}
}
},
kZ = function(a) {
if (a.va) {
a.va = !1;
for (var b = 0; b < a.g.length; b++) {
var c = a.g[b];
c && c.CU()
}
a.jb().Bd()
}
},
oZ = function(a) {
switch (a) {
case "thumb-drag":
return "scroller-thumb-drag";
case "selected-range-drag":
return "scroller-drag";
default:
return "scroller-click"
}
},
pZ = function(a) {
var b = a.b,
c = b.D,
d = b.G,
e = a.nf(c);
a = a.nf(d);
return {
tu: b.b.Lg,
hz: b.b.Oh,
Ph: b.b.cg,
lastIndex: b.b.Wi,
Ao: c,
Lq: d,
Qr: e,
fv: a
}
},
KY = function(a, b, c, d, e) {
eZ(a,
"selectedrangebeforechange", e || "plot-drag", b, c) && (dZ(a, b, c), d.Ph = a.nf(d.tu), d.lastIndex = a.nf(d.hz), d.Qr = a.nf(d.Ao), d.fv = a.nf(d.Lq), eZ(a, "selectedrangechange", e || "plot-drag"))
},
PY = function(a, b, c) {
var d = a.Wa();
$.L(d, JY) ? (d = c.lastIndex - c.Ph, d *= b, b = a.Dh(c.Ph - d), c = a.Dh(c.lastIndex - d)) : (d = c.hz - c.tu, d *= b, b = c.tu - d, c = c.hz - d);
b > c && (d = b, b = c, c = d);
return b != a.b.b.Lg || c != a.b.b.Oh ? [b, c] : null
},
qZ = function(a, b, c) {
a = a.Wa();
if ($.L(a, JY)) {
var d = c.lastIndex - c.Ph;
a = (c.Qr - c.Ph) / d;
c = (c.fv - c.Ph) / d
} else d = c.hz - c.tu, a = (c.Ao -
c.tu) / d, c = (c.Lq - c.tu) / d;
return -$.hb(-b, a, c - 1)
},
qga = {
r4: "no-overlap",
Bha: "allow-minor-overlap",
Aha: "allow-major-overlap",
s2: "allow-overlap"
},
cga = {
sA: "area",
PU: "candlestick",
hD: "column",
ps: "line",
Jt: "marker",
XU: "ohlc",
$U: "range-area",
YN: "range-column",
bV: "range-spline-area",
cV: "range-step-area",
eV: "spline",
fV: "spline-area",
lV: "step-area",
mV: "step-line",
X3: "jump-line",
u5: "stick",
V3: "hilo"
},
dga = {
Zka: "sma",
aja: "ema"
},
rga = {
eja: "exact-or-prev",
cja: "exact",
dja: "exact-or-next",
NEAREST: "nearest"
},
rZ = {
name: "fill",
Mc: "path",
dd: "fill",
jd: null,
$c: !1,
Kc: !1,
zIndex: 0
},
sZ = {
name: "stroke",
Mc: "path",
dd: null,
jd: "stroke",
$c: !1,
Kc: !1,
zIndex: 2E-6
},
tZ = {
name: "hatchFill",
Mc: "path",
dd: "hatchFill",
jd: null,
$c: !1,
Kc: !0,
zIndex: 1E-6
},
uZ = {
name: "high",
Mc: "path",
dd: null,
jd: "highStroke",
$c: !1,
Kc: !1,
zIndex: 2E-6
},
vZ = {
name: "low",
Mc: "path",
dd: null,
jd: "lowStroke",
$c: !1,
Kc: !1,
zIndex: 2E-6
},
wZ = {
name: "path",
Mc: "path",
dd: "fill",
jd: "stroke",
$c: !1,
Kc: !1,
zIndex: 0
},
xZ = {
name: "fill",
Mc: "path",
dd: "fill",
jd: null,
$c: !1,
En: !0,
Kc: !1,
zIndex: 0
},
yZ = {
name: "stroke",
Mc: "path",
dd: null,
jd: "stroke",
$c: !1,
En: !0,
Kc: !1,
zIndex: 2E-6
},
zZ = {
name: "hatchFill",
Mc: "path",
dd: "hatchFill",
jd: null,
$c: !1,
En: !0,
Kc: !0,
zIndex: 1E-6
},
AZ = {
name: "high",
Mc: "path",
dd: null,
jd: "highStroke",
$c: !1,
En: !0,
Kc: !1,
zIndex: 2E-6
},
BZ = {
name: "low",
Mc: "path",
dd: null,
jd: "lowStroke",
$c: !1,
En: !0,
Kc: !1,
zIndex: 2E-6
},
CZ = {
name: "path",
Mc: "path",
dd: "fill",
jd: "stroke",
$c: !1,
En: !0,
Kc: !1,
zIndex: 0
},
mga = {
name: "overlay",
Mc: "path",
dd: !0,
jd: !0,
$c: !1,
Kc: !1,
zIndex: 2E-6
};
$.f = $T.prototype;
$.f.q6 = function(a) {
this.b.setTime(Date.UTC($.xn(this.b.getUTCFullYear(), this.Ua, a ? a.getUTCFullYear() : 2E3) - this.Ua, 0))
};
$.f.n6 = function(a) {
var b = this.Ua;
this.Ua *= 6;
this.qO(a);
this.Ua = b
};
$.f.l6 = function(a) {
var b = this.Ua;
this.Ua *= 3;
this.qO(a);
this.Ua = b
};
$.f.qO = function(a) {
var b = $.xn(this.b.getUTCMonth() + 12 * this.b.getUTCFullYear(), this.Ua, a ? a.getUTCMonth() + 12 * a.getUTCFullYear() : 24E3) - this.Ua;
a = Math.floor(b / 12);
b %= 12;
0 > b && (b += 12);
this.b.setTime(Date.UTC(a, b))
};
$.f.o6 = function(a) {
a = $.xn(bU(this.b), this.Ua, a ? bU(a) : 72E3) - this.Ua;
var b = Math.floor(a / 36);
a %= 36;
var c = Math.floor(a / 3);
0 > c && (c += 12);
a %= 3;
0 > a && (a += 3);
this.b.setTime(Date.UTC(b, c, 1 + 10 * a))
};
$.f.p6 = function(a) {
aU(this, 6048E5 * this.Ua, a || new Date(Date.UTC(2E3, 0, 2)))
};
$.f.h6 = function(a) {
aU(this, 864E5 * this.Ua, a)
};
$.f.i6 = function(a) {
aU(this, 36E5 * this.Ua, a)
};
$.f.k6 = function(a) {
aU(this, 6E4 * this.Ua, a)
};
$.f.m6 = function(a) {
aU(this, 1E3 * this.Ua, a)
};
$.f.j6 = function(a) {
aU(this, this.Ua, a)
};
$.f.aea = function() {
this.b.setUTCFullYear(this.b.getUTCFullYear() + this.Ua);
return this.b.getTime()
};
$.f.Yda = function() {
var a = this.b.getUTCMonth() + 6 * this.Ua,
b = this.b.getUTCFullYear() + Math.floor(a / 12);
a %= 12;
0 > a && (a += 12);
this.b.setUTCFullYear(b);
this.b.setUTCMonth(a);
return this.b.getTime()
};
$.f.Wda = function() {
var a = this.b.getUTCMonth() + 3 * this.Ua,
b = this.b.getUTCFullYear() + Math.floor(a / 12);
a %= 12;
0 > a && (a += 12);
this.b.setUTCFullYear(b);
this.b.setUTCMonth(a);
return this.b.getTime()
};
$.f.Vda = function() {
var a = this.b.getUTCMonth() + this.Ua,
b = this.b.getUTCFullYear() + Math.floor(a / 12);
a %= 12;
0 > a && (a += 12);
this.b.setUTCFullYear(b);
this.b.setUTCMonth(a);
return this.b.getTime()
};
$.f.Zda = function() {
var a = this.b.getUTCDate();
var b = 3 * (12 * this.b.getUTCFullYear() + this.b.getUTCMonth()) + (10 >= a ? 0 : 20 >= a ? 1 : 2) + this.Ua;
a = Math.floor(b / 36);
b %= 36;
var c = Math.floor(b / 3);
0 > c && (c += 12);
b %= 3;
0 > b && (b += 3);
this.b.setTime(Date.UTC(a, c, 1 + 10 * b));
return this.b.getTime()
};
$.f.$da = function() {
var a = this.b.getTime() + 6048E5 * this.Ua;
this.b.setTime(a);
return a
};
$.f.Pda = function() {
var a = this.b.getTime() + 864E5 * this.Ua;
this.b.setTime(a);
return a
};
$.f.Rda = function() {
var a = this.b.getTime() + 36E5 * this.Ua;
this.b.setTime(a);
return a
};
$.f.Uda = function() {
var a = this.b.getTime() + 6E4 * this.Ua;
this.b.setTime(a);
return a
};
$.f.Xda = function() {
var a = this.b.getTime() + 1E3 * this.Ua;
this.b.setTime(a);
return a
};
$.f.Tda = function() {
var a = this.b.getTime() + this.Ua;
this.b.setTime(a);
return a
};
$.I(cU, $.zp);
$.f = cU.prototype;
$.f.xa = 2;
$.f.enabled = function(a) {
return $.n(a) ? (a = !!a, this.od != a && (this.od = a, this.sa(2)), this) : this.od
};
$.f.AY = function(a) {
return $.n(a) ? (a = !!a, this.D != a && (this.D = a, this.sa(2)), this) : this.D
};
$.f.av = function(a) {
if ($.n(a)) {
this.b.length = 0;
if ($.C(a)) {
for (var b = {}, c = 0; c < a.length; c++) {
var d = a[c];
if ($.y(d)) {
var e = d;
var g = 1
} else $.F(d) && (e = String(d.unit), g = $.on(d.count, 1, !1));
if (e) {
d = new $T(e, g);
var h = d.j + d.Ua.toFixed(0);
h in b || (b[h] = !0, this.b.push(d))
}
}
$.Ua(this.b, fga)
}
this.sa(2);
return this
}
return eU(this)
};
$.f.r_ = function(a) {
return $.n(a) ? (a = Math.max(2, $.Q(a)), (0, window.isNaN)(a) || this.g == a || (this.g = a, this.j = window.NaN, this.sa(2)), this) : this.g
};
$.f.y_ = function(a) {
return $.n(a) ? (a = Math.max(.1, $.Q(a)), (0, window.isNaN)(a) || this.j == a || (this.j = a, this.g = window.NaN, this.sa(2)), this) : this.j
};
$.f.eo = function() {
return this.G
};
$.f.VB = function() {
return this.K
};
$.f.W = function() {
cU.F.W.call(this)
};
$.f.J = function() {
var a = cU.F.J.call(this);
a.enabled = this.od;
a.forced = this.D;
a.levels = eU(this);
a.maxVisiblePoints = (0, window.isNaN)(this.g) ? null : this.g;
a.minPixPerPoint = (0, window.isNaN)(this.j) ? null : this.j;
return a
};
$.f.Wd = function(a, b) {
var c = arguments[1];
return $.da(c) || null === c ? (this.enabled(!!c), !0) : $.C(c) ? (this.enabled(!0), this.av(c), !0) : $.zp.prototype.Wd.apply(this, arguments)
};
$.f.$ = function(a, b) {
cU.F.$.call(this, a, b);
this.enabled(a.enabled);
this.AY(a.forced);
this.av(a.levels);
this.r_(a.maxVisiblePoints);
this.y_(a.minPixPerPoint)
};
var DZ = cU.prototype;
DZ.enabled = DZ.enabled;
DZ.forced = DZ.AY;
DZ.levels = DZ.av;
DZ.maxVisiblePoints = DZ.r_;
DZ.minPixPerPoint = DZ.y_;
DZ.getCurrentDataInterval = DZ.eo;
DZ.isGrouped = DZ.VB;
fU.prototype.g = null;
var gga = 0;
fU.prototype.ue = function(a) {
var b;
$.B(a) && 0 > a ? this.g && (b = this.g[~a]) : b = this.values[a];
return b
};
$.f = iU.prototype;
$.f.reset = function() {
this.j && this.j.reset();
this.b = this.R;
this.D = this.j ? this.j.j() : this.R.key;
this.G = !1;
this.K = window.NaN;
this.Y = !0;
return this
};
$.f.advance = function() {
return this.ka()
};
$.f.current = function() {
return this.b
};
$.f.get = function(a) {
return this.wq(this.va ? AU(this.X, a) : zU(this.X, a))
};
$.f.o = function(a, b) {
var c = this.Ih[this.na()];
c || (c = this.Ih[this.na()] = {});
return 1 < arguments.length ? (c[a] = b, this) : c[a]
};
$.f.wq = function(a) {
var b;
this.G && ($.B(a) && 0 > a ? this.b.g && (b = this.b.g[~a]) : b = this.b.values[a]);
return b
};
$.f.Bl = function() {
return this.K
};
$.f.na = function() {
return this.Aa()
};
$.f.Nb = function() {
return this.qa
};
$.f.v8 = function() {
return this.K
};
$.f.Vaa = function() {
return this.D
};
$.f.Oaa = function() {
return this.j.j()
};
$.f.e6 = function() {
if (this.b) {
this.D++;
if ((this.b = this.b.next) && this.b != this.ba) return this.G = !0, this.K = this.b.key, !0;
this.b = null;
this.G = !1;
this.D = this.K = window.NaN
}
return !1
};
$.f.g$ = function() {
if (this.j.advance()) return this.Y && (this.b = this.b.next), (this.Y = !(!this.b || this.b.key != this.j.g || this.b == this.ba)) ? (this.G = !0, this.K = this.b.key) : (this.G = !1, this.K = this.j.g), !0;
this.b = null;
this.K = window.NaN;
return this.G = !1
};
var EZ = iU.prototype;
EZ.reset = EZ.reset;
EZ.advance = EZ.advance;
EZ.get = EZ.get;
EZ.getKey = EZ.v8;
EZ.getIndex = EZ.na;
EZ.meta = EZ.o;
$.f = jU.prototype;
$.f.Dh = function(a) {
var b = this.b.length;
if (2 <= b && !(0, window.isNaN)(a)) {
for (var c = 0; c < this.G.length; c++) {
var d = this.G[(this.D - c - 1 + 2) % 2];
if (d.index == a) return d.key
}
c = Math.floor(a);
d = Math.ceil(a);
0 >= d ? (c = 0, d = c + 1) : c >= b - 1 && (d = b - 1, c = d - 1);
c == d ? b = this.b[c].key : (b = this.b[c].key, d = this.b[c + 1].key, b = Math.round((d - b) * (a - c) + b));
this.G[this.D] = {
key: b,
index: a
};
this.D = (this.D + 1) % 2
} else 1 == b ? (b = this.b[0].key, b = Math.round(a + b)) : b = window.NaN;
return b
};
$.f.nf = function(a) {
var b = this.b.length;
if (2 <= b && !(0, window.isNaN)(a)) {
for (var c = 0; c < this.G.length; c++) {
var d = this.G[(this.D - c - 1 + 2) % 2];
if (d.key == a) return d.index
}
c = $.Ta(this.b, hU, a);
0 > c ? (c = ~c - 1, 0 > c ? c = 0 : c >= b - 1 && (c = b - 2), b = this.b[c].key, b = (a - b) / (this.b[c + 1].key - b) + c) : b = c;
this.G[this.D] = {
key: a,
index: b
};
this.D = (this.D + 1) % 2
} else 1 == b ? (b = this.b[0].key, b = a - b) : b = window.NaN;
return b
};
$.f.da = function(a, b) {
return lU(this, this.nf(a), this.nf(b))
};
$.f.Gq = function() {
return this.j
};
$.f.update = function() {
if (this.j) {
this.D = this.G.length = 0;
this.K = this.R.length = 0;
if (this.g.length)
if (1 == this.g.length) this.b = this.g[0].b;
else {
var a = {
key: window.NaN,
next: null
},
b = [],
c = this.g[0].b,
d = c.length ? c[0] : null;
c = this.g[1].b;
var e = c.length ? c[0] : null;
c = a;
for (var g; d && e;) {
var h = d.key <= e.key,
k = d.key >= e.key;
g = {
key: h ? d.key : e.key,
next: null
};
b.push(g);
c = c.next = g;
h && (d = d.next);
k && (e = e.next)
}
for (d = d || e; d;) g = {
key: d.key,
next: null
}, b.push(g), c = c.next = g, d = d.next;
for (d = 2; d < this.g.length; d++) {
c = this.g[d].b;
e =
c.length ? c[0] : null;
b = b.length ? b[0] : null;
c = a;
for (h = []; b && e;) k = b.key >= e.key, b.key <= e.key ? (g = b, b = b.next) : g = {
key: e.key,
next: null
}, h.push(g), c = c.next = g, k && (e = e.next);
for (c.next = b; b;) h.push(b), b = b.next;
for (; e;) g = {
key: e.key,
next: null
}, h.push(g), c = c.next = g, e = e.next;
b = h
}
this.b = b
} else this.b = [];
this.j = !1;
this.Y = !0;
for (d = 0; d < this.g.length; d++)
if (this.g[d].Nb() != this.b.length) {
this.Y = !1;
break
}
}
};
kU.prototype.reset = function() {
this.b = this.G;
this.g = window.NaN;
this.D = this.G.key
};
kU.prototype.advance = function() {
if (this.b) {
this.D++;
if ((this.b = this.b.next) && this.b != this.R) return this.g = this.b.key, !0;
this.b = null;
this.D = this.g = window.NaN
}
return !1
};
kU.prototype.j = function() {
return this.D
};
kU.prototype.Nb = function() {
return this.K
};
$.f = sU.prototype;
$.f.rW = function(a, b) {
return uU(this, CU(this.j, $.Yj(a), $.Cj(rga, b, "exact")))
};
$.f.select = function(a, b, c, d) {
return vU(this, $.Yj(a), $.Yj(b), $.n(c) ? new $T(c, $.Q(d)) : void 0)
};
$.f.x8 = function(a, b) {
var c = $.n(a) ? new $T(a, $.Q(b)) : void 0,
d = pU(this.g.hf(), c);
this.j = d;
this.G = !c;
this.b = qU(d);
rU(this);
return this
};
$.f.da = function() {
return GU(this, !0)
};
$.f.Aq = function() {
return this.g
};
$.f = tU.prototype;
$.f.get = function(a) {
return this.wq(this.G ? AU(this.b, a) : zU(this.b, a))
};
$.f.wq = function(a) {
return this.Rf.ue(a)
};
$.f.na = function() {
return this.Yd
};
$.f.Bl = function() {
return this.Rf.key
};
$.f.o = function(a, b) {
return 1 < arguments.length ? (this.Ih && (this.Ih[a] = b), this) : this.Ih ? this.Ih[a] : void 0
};
$.f.w8 = function() {
return this.Rf.key
};
var FZ = sU.prototype;
FZ.search = FZ.rW;
FZ.select = FZ.select;
FZ.selectAll = FZ.x8;
FZ.getIterator = FZ.da;
FZ = tU.prototype;
FZ.meta = FZ.o;
FZ.get = FZ.get;
FZ.getKey = FZ.w8;
FZ.getColumn = FZ.wq;
FZ.getIndex = FZ.na;
$.I(HU, $.zp);
$.f = HU.prototype;
$.f.ta = 16384;
$.f.xa = 16;
$.f.select = function(a, b, c) {
(0, window.isNaN)(a) && (a = this.b.Lg);
(0, window.isNaN)(b) && (b = this.b.Oh);
if ((0, window.isNaN)(a) || (0, window.isNaN)(b)) return !1;
JU(this);
if (a = NU(this, a, b, this.ba, this.va, this.j, this.b, !1)) this.j = a[0], this.b = a[1], this.Fa = c.transform(this.b.Lg), this.Aa = c.transform(this.b.Oh);
return !!a
};
$.f.ko = function(a) {
this.ba || (this.ba = new cU, $.U(this.ba, this.sZ, this));
return $.n(a) ? (this.ba.P(a), this) : this.ba
};
$.f.sZ = function() {
this.sa(16)
};
$.f.M1 = function(a) {
if ($.W(a, 16)) {
this.g.j = !0;
for (var b in this.K) this.K[b].j = !0;
for (b in this.va) this.va[b].R = !0;
this.B(16384, 16)
}
};
$.f.Dh = function(a) {
JU(this);
return this.j.Dh(a)
};
$.f.nf = function(a) {
JU(this);
return this.j.nf(a)
};
$.f.nK = function() {
return this.b.zG
};
$.I(UU, $.Ku);
UU.prototype.b = function(a) {
return $.n(a) ? (a = !!a, a != this.j && (this.j = a), this) : this.j
};
UU.prototype.$ = function(a, b) {
UU.F.$.call(this, a, b);
this.It(a.zoomOnMouseWheel);
this.b(a.scrollOnMouseWheel)
};
UU.prototype.J = function() {
var a = UU.F.J.call(this);
a.zoomOnMouseWheel = this.It();
a.scrollOnMouseWheel = this.b();
return a
};
var GZ = UU.prototype;
GZ.zoomOnMouseWheel = GZ.It;
GZ.scrollOnMouseWheel = GZ.b;
$.I(VU, $.X);
$.f = VU.prototype;
$.f.xa = $.X.prototype.xa;
$.f.ta = $.X.prototype.ta;
$.f.length = function(a) {
return $.n(a) ? (a = $.Q(a), this.Od != a && (this.Od = a, this.sa(9)), this) : this.Od
};
$.f.stroke = function(a, b, c, d, e) {
if ($.n(a)) {
var g = $.Zb.apply(null, arguments);
this.ib != g && (this.ib = g, this.sa(1));
return this
}
return this.ib
};
$.f.orientation = function(a) {
return $.n(a) ? (a = $.Mj(a), this.Fc != a && (this.Fc = a, this.b = null), this) : this.Fc
};
$.f.remove = function() {
this.path && this.path.parent(null)
};
$.f.aa = function() {
this.path.clear();
this.path.stroke(this.ib);
if (!this.xc()) return this;
this.O(8) && (this.path.zIndex(this.zIndex()), this.N(8));
this.O(2) && (this.path.parent(this.U()), this.N(2));
return this
};
$.f.xF = function() {
if (!this.b) switch (this.Fc) {
case "top":
this.b = this.q8;
break;
case "right":
this.b = this.p8;
break;
case "bottom":
this.b = this.n8;
break;
case "left":
this.b = this.o8
}
return this.b
};
$.f.q8 = function(a, b, c, d, e) {
b = Math.round(b.left + a * b.width);
b = 1 == a ? b + e : b - e;
a = c.top + c.height / 2 - this.Od / 2;
c = this.Od;
this.path.moveTo(b, a);
this.path.lineTo(b, a + c)
};
$.f.p8 = function(a, b, c, d, e) {
c = c.left;
b = Math.round(b.top + b.height - a * b.height);
b = 1 == a ? b - e : b + e;
c -= this.Od / 2;
a = this.Od;
this.path.moveTo(c, b);
this.path.lineTo(c + a, b)
};
$.f.n8 = function(a, b, c, d, e) {
b = Math.round(b.left + a * b.width);
c = c.top;
b = 1 == a ? b + e : b - e;
c -= this.Od / 2;
a = this.Od;
this.path.moveTo(b, c);
this.path.lineTo(b, c + a)
};
$.f.o8 = function(a, b, c, d, e) {
c = c.left;
b = Math.round(b.top + b.height - a * b.height);
b = 1 == a ? b - e : b + e;
c -= this.Od / 2;
a = this.Od;
this.path.moveTo(c, b);
this.path.lineTo(c + a, b)
};
$.f.J = function() {
var a = VU.F.J.call(this);
a.stroke = $.Rk(this.stroke());
return a
};
$.f.$ = function(a, b) {
VU.F.$.call(this, a, b);
this.stroke(a.stroke)
};
var HZ = VU.prototype;
HZ.stroke = HZ.stroke;
$.I(WU, $.X);
$.f = WU.prototype;
$.f.ta = $.X.prototype.ta | 80;
$.f.xa = $.X.prototype.xa;
$.f.height = function(a) {
return $.n(a) ? (a = $.Q(a), this.Jc != a && (this.Jc = a, this.B(4, 9)), this) : this.Jc
};
$.f.background = function(a) {
this.Na || (this.Na = new $.gs, $.js(this.Na, $.kl("defaultBackground")), $.U(this.Na, this.Rg, this));
return $.n(a) ? (this.Na.P(a), this) : this.Na
};
$.f.labels = function(a) {
this.ya || (this.ya = new $.ts, this.ya.kb(this), $.U(this.ya, this.ee, this));
return $.n(a) ? (!$.F(a) || "enabled" in a || (a.enabled = !0), this.ya.P(a), this) : this.ya
};
$.f.gb = function(a) {
this.Sb || (this.Sb = new $.ts, this.Sb.kb(this), $.U(this.Sb, this.ee, this));
return $.n(a) ? (!$.F(a) || "enabled" in a || (a.enabled = !0), this.Sb.P(a), this) : this.Sb
};
$.f.Ia = function(a) {
this.vb || (this.vb = new VU, this.vb.orientation("top"), this.vb.enabled(!1), this.vb.kb(this), $.U(this.vb, this.qW, this), $.O(this, this.vb));
return $.n(a) ? (this.vb.P(a), this) : this.vb
};
$.f.lb = function(a) {
this.Oc || (this.Oc = new VU, this.Oc.orientation("top"), this.Oc.enabled(!1), this.Oc.kb(this), $.U(this.Oc, this.qW, this), $.O(this, this.Oc));
return $.n(a) ? (this.Oc.P(a), this) : this.Oc
};
$.f.qW = function() {
this.B(16, 1)
};
$.f.dU = function(a) {
return $.n(a) ? (a = !!a, this.g != a && (this.g = a, this.B(16, 1)), this) : this.g
};
$.f.vi = function(a) {
return $.n(a) && (a = $.Cj(qga, a, "no-overlap"), this.b != a) ? (this.b = a, this.B(16, 1), this) : this.b
};
$.f.scale = function(a) {
return $.n(a) ? (this.ra != a && (this.ra && $.Bp(this.ra, this.dk, this), (this.ra = a) && $.U(this.ra, this.dk, this), this.B(16, 1)), this) : this.ra
};
$.f.orientation = function(a) {
return $.n(a) ? this : "bottom"
};
$.f.pb = function() {
var a = this.oa();
if (!a) return new $.K(0, 0, 0, 0);
this.enabled() && (a.top = a.top + a.height - this.Jc + 1);
return a
};
$.f.Gb = function() {
return !0
};
$.f.yd = function() {
var a = this.oa();
if (!a) return new $.K(0, 0, 0, 0);
this.enabled() && (a.height -= this.Jc);
return a
};
$.f.dk = function(a) {
$.W(a, 512) && this.B(16, 1)
};
$.f.Rg = function(a) {
$.W(a, 1) && this.B(64, 1)
};
$.f.ee = function(a) {
var b = 0,
c = 0;
$.W(a, 1) && (b = 16, c = 1);
$.W(a, 8) && (b |= 4, c |= 8);
this.B(b, c)
};
$.f.remove = function() {
this.Ya && this.Ya.remove()
};
$.f.aa = function() {
if (!this.xc()) return this;
this.Ya || (this.Ya = $.sj(), this.D || this.Ya.sd(!0));
this.Na && $.V(this.Na);
this.ya && $.V(this.ya);
this.Sb && $.V(this.Sb);
if (this.O(4)) {
if (this.Na) {
var a = this.oa();
a.top = a.top + a.height - this.Jc;
a.height = this.Jc;
this.Na.oa(a)
}
this.B(80);
this.N(4)
}
this.O(64) && (this.Na && (this.Na.U(this.Ya), this.Na.aa()), this.N(64));
if (this.O(16)) {
if (this.ra) {
this.Na ? a = this.Na.yd() : (a = this.oa(), a.top = a.top + a.height - this.Jc, a.height = this.Jc);
this.ya && (this.ya.clear(), $.Ls(this.ya));
this.Sb && (this.Sb.clear(), $.Ls(this.Sb));
this.vb && (this.vb.length(a.height), this.vb.U(this.Ya), this.vb.aa());
this.Oc && (this.Oc.length(a.height), this.Oc.U(this.Ya), this.Oc.aa());
var b = this.ya && this.ya.enabled(),
c = this.Sb && this.Sb.enabled();
(b || c) && this.tw(a, this.ra.Mw());
this.Nh || (this.Nh = $.xj());
this.Nh.shape(a);
this.ya && (this.ya.U(this.Ya), this.ya.aa(), (a = this.ya.Al()) && a.clip(this.Nh));
this.Sb && (this.Sb.U(this.Ya), this.Sb.aa(), (a = this.Sb.Al()) && a.clip(this.Nh))
}
this.N(16)
}
this.O(8) && (this.Ya.zIndex(this.zIndex()),
this.N(8));
this.O(2) && (this.Ya.parent(this.U()), this.N(2));
this.Na && this.Na.ga(!1);
this.ya && this.ya.ga(!1);
this.Sb && this.Sb.ga(!1);
return this
};
$.f.tw = function(a, b) {
var c = this.ra.Uca,
d = this.ra.Tca,
e = this.ra.Ada,
g = this.ra.zda,
h = null,
k = [],
l = null,
m = [],
p = [],
q = [],
r, t = [],
u = [],
v = [],
x = [],
w = this.vb && this.vb.enabled() ? this.vb.xF() : null,
z = this.Oc && this.Oc.enabled() ? this.Oc.xF() : null,
A = !(!this.ya || !this.ya.enabled()),
E = !(!this.Sb || !this.Sb.enabled()),
D = 1,
R = 0;
for (b.reset(); b.advance();) {
var N = b.current;
(r = A && b.D) && w ? w.call(this.vb, this.ra.oN(N), a, a, 0, .5) : z && z.call(this.Oc, this.ra.oN(N), a, a, 0, .5);
if ("allow-overlap" == this.b) r ? (t.push(N), v.push(D), h || (h =
this.ed(N, r, a, c, e, g, 0))) : E && (u.push(N), x.push(R), k.push(this.ed(N, r, a, c, e, g, 0)));
else {
var S = this.ed(N, r, a, c, e, g, r ? D : R);
if (r) {
if ("allow-major-overlap" == this.b || !l || !l.oo(S)) {
for (l = p.length; l--;)
if (S.oo(p[l])) m.pop(), p.pop(), q.pop();
else break;
t.push(N);
v.push(D);
u.push.apply(u, m);
x.push.apply(x, q);
k.push.apply(k, p);
l = S;
h || (h = S)
}
m.length = p.length = q.length = 0
} else !E || l && l.oo(S) || "allow-minor-overlap" != this.b && p.length && p[p.length - 1].oo(S) || (m.push(N), q.push(R), p.push(S))
}
r ? D++ : R++
}
m.length && (u.push.apply(u,
m), x.push.apply(x, q), k.push.apply(k, p));
$.Ls(this.labels());
$.Ls(this.gb());
N = b.g;
if (this.g && !(0, window.isNaN)(N) && (S = this.ed(N, !0, a, c, e, g, 0)) && (!h || !S.oo(h))) {
if ("allow-overlap" != this.b) {
for (l = 0; l < k.length && S.oo(k[l]); l++);
l && ($.Ga(k, 0, l), $.Ga(u, 0, l), $.Ga(x, 0, l))
}
this.re(N, !0, a, c, d, e, g, 0)
}
for (l = 0; l < t.length; l++) this.re(t[l], !0, a, c, d, e, g, v[l]);
for (l = 0; l < u.length; l++) this.re(u[l], !1, a, c, d, e, g, x[l])
};
$.f.re = function(a, b, c, d, e, g, h, k) {
b = b ? this.labels() : this.gb();
var l = Math.ceil(this.ra.nf(a));
e = this.ra.Dh(l);
l = this.ra.Lv(e, l);
l = Math.round(c.left + l * c.width);
var m = c.top;
a = this.nn(a, e, d, g, h);
d = {
value: {
x: l,
y: m
}
};
g = b.measure(a, d, void 0, k);
(0, window.isNaN)(g.left) || (c = c.left - g.left, 0 < c && (d.value.x += c), b.add(a, d, k))
};
$.f.ed = function(a, b, c, d, e, g, h) {
b = b ? this.labels() : this.gb();
if (!b.enabled()) return null;
var k = Math.ceil(this.ra.nf(a)),
l = this.ra.Dh(k);
k = this.ra.Lv(l, k);
k = Math.round(c.left + k * c.width);
var m = c.top;
a = this.nn(a, l, d, e, g);
h = b.measure(a, {
value: {
x: k,
y: m
}
}, void 0, h);
h.left = Math.max(h.left, c.left);
return h
};
$.f.nn = function(a, b, c, d, e) {
var g = $.Eq(a),
h = this.j.ko();
a = {
dataIntervalUnit: {
value: h.eo().unit,
type: "string"
},
dataIntervalUnitCount: {
value: h.eo().count,
type: "number"
},
dataIsGrouped: {
value: h.VB(),
type: "string"
},
majorIntervalUnit: {
value: c,
type: "string"
},
majorIntervalUnitCount: {
value: e,
type: "number"
},
minorIntervalUnit: {
value: d,
type: "string"
},
minorIntervalUnitCount: {
value: e,
type: "number"
},
value: {
value: g,
type: "string"
},
tickValue: {
value: a,
type: "number"
},
dataValue: {
value: b,
type: "number"
},
max: {
value: this.ra.SQ(),
type: "number"
},
min: {
value: this.ra.TQ(),
type: "number"
},
scale: {
value: this.ra,
type: ""
}
};
a = new $.gu(a);
a.Ml({
"%AxisScaleMax": "max",
"%AxisScaleMin": "min"
});
return $.Vt(a)
};
$.f.W = function() {
$.M(this.ya);
this.ya = null;
$.M(this.Sb);
this.Sb = null;
$.M(this.Na);
this.Na = null;
$.M(this.Ya);
this.ra = this.Ya = null;
WU.F.W.call(this)
};
$.f.J = function() {
var a = WU.F.J.call(this);
a.height = this.height();
a.labels = this.labels().J();
a.minorLabels = this.gb().J();
a.ticks = this.Ia().J();
a.minorTicks = this.lb().J();
a.background = this.background().J();
a.showHelperLabel = this.dU();
a.overlapMode = this.vi();
return a
};
$.f.$ = function(a, b) {
WU.F.$.call(this, a, b);
this.height(a.height);
this.labels().ia(!!b, a.labels);
this.gb().ia(!!b, a.minorLabels);
this.Ia(a.ticks);
this.lb(a.minorTicks);
this.background(a.background);
this.dU(a.showHelperLabel);
this.vi(a.overlapMode)
};
var IZ = WU.prototype;
IZ.height = IZ.height;
IZ.labels = IZ.labels;
IZ.minorLabels = IZ.gb;
IZ.ticks = IZ.Ia;
IZ.minorTicks = IZ.lb;
IZ.background = IZ.background;
IZ.showHelperLabel = IZ.dU;
IZ.overlapMode = IZ.vi;
$.I(XU, $.X);
XU.prototype.ta = $.X.prototype.ta | 208;
XU.prototype.xa = $.X.prototype.xa;
var sga = XU.prototype,
JZ = {};
$.T(JZ, 0, "value", $.Zj);
$.T(JZ, 0, "valueField", $.Wo);
$.T(JZ, 1, "stroke", $.gp);
$.T(JZ, 1, "risingStroke", $.gp);
$.T(JZ, 1, "fallingStroke", $.gp);
sga.yI = JZ;
$.$o(XU, XU.prototype.yI);
$.f = XU.prototype;
$.f.cG = function(a) {
a = a.I("anchor");
return "left-top" == a || "left-center" == a || "left-bottom" == a
};
$.f.np = function(a, b, c) {
if (!b) return null;
var d = b.scale(),
e = d.Sa();
c = d.Vc(c);
var g = "number";
switch (e) {
case "linear":
case "log":
var h = c;
break;
case "ordinal":
h = String(c);
g = "string";
break;
case "stock-scatter-date-time":
case "stock-ordinal-date-time":
case "date-time":
h = $.Eq(c), g = "string"
}
b = {
series: {
value: a,
type: ""
},
axis: {
value: b,
type: ""
},
value: {
value: h,
type: g
},
tickValue: {
value: c,
type: "number"
},
scale: {
value: d,
type: ""
}
};
a = $.gy(a, new $.gu, this.g);
return $.Vt(a, $.Xc(a.values(), b))
};
$.f.label = function(a) {
return $.n(a) ? (this.b.P(a), this) : this.b
};
$.f.xaa = function(a) {
return $.n(a) ? (this.D.P(a), this) : this.D
};
$.f.Xfa = function(a) {
return $.n(a) ? (this.G.P(a), this) : this.G
};
$.f.SO = function() {
this.B(68, 1)
};
$.f.ca = function(a) {
if ($.n(a)) {
var b = a;
$.B(a) ? a = this.j.Vh(a) : $.y(a) && (a = this.j.We(a));
this.Da !== a && (this.zv = b, this.Da = a, this.B(134, 1));
return this
}
return this.Da
};
$.f.axis = function(a) {
if ($.n(a)) {
var b = +a;
$.B(a) && (a = this.j.Gj(a));
this.rd !== a && (this.Vo = b, this.rd = a, this.B(4, 1));
return this
}
return this.rd
};
$.f.remove = function() {
this.Ba.parent(null);
this.B(2)
};
$.f.aa = function() {
if (!this.xc()) return this;
this.Ba || (this.Ba = $.sj());
var a = this.Da || this.j.Vh(0);
if (a && !a.Ld) {
var b = this.I("valueField") || a.Ee.Hk;
var c = !!(a.Ee.flags & $.yC);
var d = (this.g = DU(a.Ga, this.I("value"), b)) ? this.g.get(b) : null
}
this.N(128);
if (!d) return this.remove(), this;
b = this.line ? this.line : this.line = $.uj().zIndex(0).parent(this.Ba);
var e = this.I("stroke"),
g = this.rd || this.j.Gj(0);
d = g.scale().transform(d);
var h = this.j.Pf();
if (c) {
var k = this.I("risingStroke");
var l = this.I("fallingStroke"),
m = this.g.get("open");
this.g.get("close") > m ? (e = k ? k : e, k = this.G) : (e = l ? l : e, k = this.D)
}
l = $.bc(e) || 1;
this.O(2) && (m = this.U(), this.Ba.parent(m), this.N(2));
this.O(8) && (m = this.zIndex(), this.Ba.zIndex(m), this.N(8));
if (this.O(4)) {
m = h.Ka() - d * h.height;
m = $.Dn(m, l);
b.clear();
b.moveTo(h.left, m).lineTo(h.Xa(), m);
b.clip(this.j.Pf());
b.parent(this.Ba);
if (this.Vd.sc("enabled")) {
h = m;
l = this.j.Pf();
var p = g.pb(),
q = g.enabled();
m = q ? p.ob() : l.Xa();
p = q ? p.Xa() : l.ob();
switch (g.orientation()) {
case "left":
var r = (this.cG(this.Vd), p);
break;
case "right":
r =
(this.cG(this.Vd), m)
}
h >= l.Ob() && h <= l.Ka() || (r = h = window.NaN);
h = {
value: {
x: r,
y: h
}
};
if ((0, window.isNaN)(h.value.x)) this.K = !0, this.Vd.clear();
else {
if (this.K || c) this.B(64), this.K = !1;
r = this.np(a, g, d);
this.Vd.Of(r);
$.Ls(this.b);
this.Vd.Bc(h);
this.Vd.cn("left" == g.orientation() ? "right-center" : "left-center")
}
} else this.Vd.clear(), this.K = !0;
this.N(4)
}
this.O(64) && (this.Vd.sc("enabled") ? (r = this.np(a, g, d), this.Vd.Of(r), $.Ls(this.b), this.Vd.cn("left" == g.orientation() ? "right-center" : "left-center"), a = [], c ? a.push(k.ja,
this.b.ja, this.Vd.Xd, this.b.Xd, k.Ra, this.b.Ra) : a.push(this.b.ja, this.Vd.Xd, this.b.Xd, this.b.Ra), $.Ps(this.Vd, a)) : (this.Vd.clear(), this.K = !0), this.N(64));
this.O(16) && (b.stroke(e), this.N(16));
this.K || (this.Vd.U(this.Ba), this.Vd.aa());
this.b.N(4294967295);
this.G.N(4294967295);
this.D.N(4294967295);
return this
};
$.f.W = function() {
XU.F.W.call(this);
this.Da = this.rd = this.j = null;
this.remove();
this.line && this.line.Hc();
this.b.clear();
this.b.Hc();
this.G.Hc();
this.D.Hc()
};
$.f.J = function() {
var a = XU.F.J.call(this);
$.kp(this, this.yI, a, "Current price indicator");
if ($.y(this.zv) || $.B(this.zv)) a.series = this.zv;
(0, window.isNaN)(this.Vo) || (a.axis = this.Vo);
a.mainLabel = this.b.J();
a.risingLabel = $.Gs(this.G);
a.fallingLabel = $.Gs(this.D);
return a
};
$.f.$ = function(a, b) {
b ? $.bp(this.Ra, this.yI, a) : $.cp(this, this.yI, a);
this.ca(a.series);
this.axis(a.axis);
this.b.ia(!!b, a.label);
this.G.ia(!!b, a.risingLabel);
this.D.ia(!!b, a.fallingLabel);
XU.F.$.call(this, a, b)
};
var KZ = XU.prototype;
KZ.label = KZ.label;
KZ.fallingLabel = KZ.xaa;
KZ.risingLabel = KZ.Xfa;
KZ.axis = KZ.axis;
KZ.series = KZ.ca;
$.I(YU, $.iw);
$.f = YU.prototype;
$.f.Hg = function(a) {
$.W(a, 2) && this.B(80, 1)
};
$.f.LJ = function(a, b) {
var c = this.oa() || $.fm(0, 0, 0, 0),
d = Math.round(c.Ka() - a * c.height);
b = b ? .5 : 0;
1 == a ? d += b : d -= b;
this.j.moveTo(c.ob(), d);
this.j.lineTo(c.Xa(), d)
};
$.f.MJ = function(a, b) {
var c = this.oa() || $.fm(0, 0, 0, 0),
d = Math.floor(2 * (c.ob() + a * c.width));
b ^ 1 == d % 2 && (d += 1);
d /= 2;
this.j.moveTo(d, c.Ka());
this.j.lineTo(d, c.Ob())
};
$.f.JJ = function(a, b, c, d) {
if (!(0, window.isNaN)(b)) {
var e = this.oa() || $.fm(0, 0, 0, 0);
d = d ? .5 : 0;
var g = Math.round(e.Ka() - b * e.height);
1 == b ? g += d : g -= d;
b = Math.floor(e.Ka() - a * e.height);
1 == a ? b += d : b -= d;
c.moveTo(e.ob(), g);
c.lineTo(e.Xa(), g);
c.lineTo(e.Xa(), b);
c.lineTo(e.ob(), b);
c.close()
}
};
$.f.KJ = function(a, b, c, d) {
if (!(0, window.isNaN)(b)) {
var e = this.oa() || $.fm(0, 0, 0, 0);
b = Math.floor(2 * (e.ob() + b * e.width));
d ^ 1 == b % 2 && (b += 1);
b /= 2;
a = Math.floor(2 * (e.ob() + a * e.width));
d ^ 1 == a % 2 && (a += 1);
a /= 2;
c.moveTo(b, e.Ob());
c.lineTo(a, e.Ob());
c.lineTo(a, e.Ka());
c.lineTo(b, e.Ka());
c.close()
}
};
$.f.rk = function() {
var a = this.scale(),
b = window.NaN,
c = $.L(a, $.Ar),
d = $.L(a, UY);
var e = this.I("isMinor");
d ? (e = a.Mw().ka(!e), e = $.Ka(window.NaN, e, window.NaN)) : e = c ? a.Ia().get() : e ? a.lb().get() : a.Ia().get();
var g = this.Gb() ? [this.LJ, this.JJ] : [this.MJ, this.KJ];
$.lw(this);
this.Dl().clear();
var h = this.oa() || $.fm(0, 0, 0, 0);
h = this.dn().jj(h);
this.Dl().clip(h);
h = g[1];
for (var k = g[0], l = 1 == $.bc(this.I("stroke")) % 2, m = 0, p = e.length; m < p; m++) {
var q = e[m];
$.C(q) && (q = q[0]);
var r = d ? m ? m == p - 1 ? 1 : a.oN(q) : 0 : a.transform(q);
m && (g = $.mw(this,
m - 1)) && h.call(this, r, b, g, l);
m ? m == p - 1 ? (this.I("drawLastLine") || c) && k.call(this, r, l) : k.call(this, r, l) : this.I("drawFirstLine") && k.call(this, r, l);
b = r
}
c && $.n(q) && (r = a.Fe() ? 0 : 1, this.I("drawLastLine") && k.call(this, r, l), (g = $.mw(this, m - 1)) && h.call(this, r, b, g, l))
};
var LZ = YU.prototype;
LZ.isHorizontal = LZ.Gb;
LZ.scale = LZ.scale;
LZ.axis = LZ.axis;
$.f = ZU.prototype;
$.f.qv = function() {
gV(this.Xb, this.g);
this.g.length = 0
};
$.f.oT = function(a, b) {
this.g.push(b);
this.Ua++
};
$.f.start = function() {
this.Ua = this.g.length = 0
};
$.f.qd = $.ha;
$.f.mI = function() {
this.g.length && this.qv()
};
$.f = $U.prototype;
$.f.update = function() {
var a = this.Y.lE - 1;
if (this.j < a)
if (this.b.length) {
for (var b = this.Y.jw, c = $.L(this, dV), d = 0; d < b.length; d++)
if (this.j <= this.Y.mE[d]) {
var e = b[d];
e.G.call(e.b, e.b);
for (var g = 0, h = this.b[0]; h;) {
h.g || (h.g = []);
for (; h.g.length < a;) h.g.push(void 0);
e.D.call(e.b, new lV(h, e, c, g), e.b);
h = h.next;
g++
}
}
this.j = a;
aV(this)
} else this.j = a
};
$.f.select = function(a, b) {
var c = this.b.length;
if (c) {
var d = (0, window.isNaN)(a) ? 0 : CU(this, a, "exact-or-next");
if ((0, window.isNaN)(d)) {
var e = c - 1;
d = window.NaN
} else {
var g = (0, window.isNaN)(b) ? c - 1 : CU(this, b, "exact-or-prev");
(0, window.isNaN)(g) ? (e = window.NaN, d = 0) : d <= g ? (e = 0 < d ? d - 1 : window.NaN, d = g < c - 1 ? g + 1 : window.NaN) : e = g
}
} else e = d = window.NaN;
return MU(this, a, b, e, d)
};
$.f.$L = function(a, b) {
var c, d = this.RQ();
if ($.B(d))
for (c = 0; c < d; c++) c in a || (a[c] = b++);
else
for (c in d) c in a || (a[c] = b++);
return b
};
$.f.io = function(a) {
return 0 <= a && a < this.b.length ? this.b[a] : null
};
$.f.Nb = function() {
return this.b.length
};
$.I(dV, $U);
var cV = 8;
dV.prototype.RQ = function() {
return this.D
};
dV.prototype.update = function() {
if (0 != this.g) {
var a = pU(this.Y).b,
b = this.Y.sD;
if (this.g >= cV) this.j = -1, this.b.length = 0, eV(this, a, b, this.G, !1);
else {
if (this.g & 2) {
this.j = -1;
var c = a.length ? a[0] : null;
if (c) {
var d = this.b.length ? this.b[0] : null,
e = c.key;
if (d && !(d.key >= e)) {
for (var g = 0, h;
(h = d.next) && h.key < e;) g++, d = h;
if (h && h.key == e) g++;
else {
for (e = c; e && (!h || e.key < h.key);) {
for (c = 0; c < this.D; c++) {
var k = b[c];
k.b(e.values[k.D], e.values[k.G], e.values)
}
e = e.next
}
for (c = 0; c < this.D; c++) d.values[c] = b[c].g()
}
0 < g && ($.Ga(this.b,
0, g), this.b.length && (this.b[0].b = null))
}
} else this.b.length = 0
}
this.g & 1 && (this.j = -1, d = this.G, (g = this.b[this.b.length - 1]) ? (this.b.pop(), g.b && (g.b.next = null), g = g.key) : g = void 0, eV(this, a, b, d, !0, g));
if (this.g & 4 && (a = a[0], e = this.b[0], a && e)) {
d = this.D;
g = b.length - 1;
do {
for (c = e.next; a && (!c || a.key < c.key);) {
for (h = d; h <= g; h++) k = b[h], k.b(a.values[k.D], a.values[k.G], a.values);
a = a.next
}
e = e.values;
for (h = d; h <= g; h++) e[h] = b[h].g();
e = c
} while (a)
}
}
this.g = 0;
this.D = b.length;
aV(this)
}
dV.F.update.call(this)
};
$.I(fV, $U);
$.f = fV.prototype;
$.f.qU = function() {
this.X && $.lk(101);
this.X = !0
};
$.f.kE = function() {
this.X = !1;
if (this.g.length || this.R) {
var a = hV(this),
b = this.g.length,
c = this.b.length,
d = this.g[a ? 0 : b - 1];
c = !b || !c || 0 < gU(d, this.b[c - 1]);
b = 0;
if (c && 2 > this.R) {
c && (b |= 1);
if (this.R) {
b |= 2;
d = new jV(this.b, null, !0);
var e = 0;
for (c = d.next(); c && c.j;) e++, c = d.next();
$.Ga(this.b, 0, e);
if (c = this.b[0]) c.b = null
}
iV(this, new jV(null, this.g, a))
} else d = new jV(this.b, this.g, a), this.b = [], iV(this, d), b = cV;
this.g.length = 0;
this.D = this.s0;
this.j = -1;
this.R = 0;
aV(this);
BV(this.Y, b, !0)
}
};
$.f.qs = function(a, b, c) {
var d = !this.X;
d && this.qU();
if ($.y(a)) {
var e = new ZU(this),
g = new $.Il;
$.F(c) && (g.ZG(c.rowsSeparator), g.jE(c.columnsSeparator), g.TF(c.ignoreTrailingSpaces), g.RF(c.ignoreFirstRow));
g.DD(a, e);
!0 === b && (b = e.Ua)
} else if ($.C(a)) {
for (e = c = 0; e < a.length; e++) gV(this, a[e]) && c++;
!0 === b && (b = c)
}
b = $.Q(b);
(0, window.isNaN)(b) || this.qM(b);
d && this.kE();
return this
};
$.f.remove = function(a, b) {
for (var c = new jV(this.b, this.g, hV(this), a, b), d; d = c.next();) d.j = !0;
this.R = 2;
this.X || this.kE();
return this
};
$.f.qM = function(a) {
a = $.on(a);
for (var b = new jV(this.b, this.g, hV(this)), c = window.NaN, d;
(d = b.next()) && 0 < a;) d.j || (d.key != c && a--, d.j = !0, c = d.key);
this.R || (this.R = 1);
this.X || this.kE();
return this
};
$.f.RQ = function() {
return this.G || this.ba
};
$.f.s0 = function(a) {
this.g.push(a);
this.D = this.q0
};
$.f.q0 = function(a) {
var b = this.g.length,
c = this.g[b - 1];
c.key < a.key ? this.g.push(a) : c.key > a.key ? (this.D = 1 == b ? this.r0 : this.tT, this.g.push(a)) : this.g[b - 1] = a
};
$.f.r0 = function(a) {
var b = this.g.length,
c = this.g[b - 1];
c.key > a.key ? this.g.push(a) : c.key < a.key ? (this.D = this.tT, this.g.push(a)) : c.key == a.key && (this.g[b - 1] = a)
};
$.f.tT = function(a) {
this.g.push(a)
};
$.f = jV.prototype;
$.f.kC = function() {
return null
};
$.f.Oda = function() {
var a = this.g,
b = this.D[this.b];
if (a) {
if (b) {
if (0 > gU(a, b)) return this.g = this.g.next, a;
this.b++;
return b
}
this.g = this.g.next;
this.j = this.H_;
return a
}
if (b) return this.b++, this.j = this.Mda, b;
this.next = this.kC;
return null
};
$.f.Qda = function() {
var a = this.g,
b = this.D[this.b];
if (a) {
if (b) {
if (0 > gU(a, b)) return this.g = this.g.next, a;
this.b--;
return b
}
this.g = this.g.next;
this.j = this.H_;
return a
}
if (b) return this.b--, this.j = this.Nda, b;
this.next = this.kC;
return null
};
$.f.H_ = function() {
var a = this.g;
if (a) return this.g = this.g.next, a;
this.next = this.kC;
return null
};
$.f.Mda = function() {
var a = this.D[this.b++];
if (a) return a;
this.next = this.kC;
return null
};
$.f.Nda = function() {
var a = this.D[this.b--];
if (a) return a;
this.next = this.kC;
return null
};
$.f.b$ = function() {
var a = this.j();
return null === a || a.key > this.G ? (this.next = this.kC, null) : a
};
$.f.bea = function() {
return this.j()
};
$.I(kV, $.qd);
$.f = kV.prototype;
$.f.na = function() {
return this.Yd
};
$.f.xx = function(a) {
this.Yd = a
};
$.f.hf = function() {
return this.j.hf()
};
$.f.Lf = function(a, b) {
if (a in this.g) return $.jk(202, void 0, [a]), window.NaN;
a: {
var c = this.hf();
if (this.hf() != c) c = window.NaN;
else {
var d = c.tv.length;
var e = d ? ~c.tv[0] : ~c.lE;
if ($.y(b)) {
if (b in c.py) {
$.jk(201, void 0, [b]);
c = window.NaN;
break a
}
c.py[b] = e
}
c.mE[this.na()] = Math.max(c.mE[this.na()], ~e);
d ? c.tv.shift() : c.lE++;
c = e
}
}
return (0, window.isNaN)(c) ? window.NaN : this.g[a] = c
};
$.f.Yk = function(a) {
return a in this.g ? this.g[a] : window.NaN
};
$.f.Oi = function(a) {
this.b = a
};
$.f.Ri = function(a) {
this.G = $.G(a) ? a : $.ha
};
$.f.Ni = function(a) {
this.D = $.G(a) ? a : $.ha
};
$.f.W = function() {
var a = this.hf(),
b = this.na();
a.jw.splice(b, 1);
var c;
for (c = b; c < a.jw.length; c++) a.jw[c].xx(c);
a.mE.splice(b, 1);
b = [];
for (var d in this.g) b.push(this.g[d]);
if (b.length) {
$.Ua(a.tv);
d = [];
var e = Number.POSITIVE_INFINITY;
for (c = 0; c < b.length; c++) {
var g = ~b[c];
e = Math.min(e, g);
a.tv.push(g);
for (var h in a.py)
if (a.py[h] == b[c]) {
d.push(h);
break
}
}
$.Ua(a.tv);
for (c = a.tv.length; c-- && a.tv[c] == a.lE - 1;) a.lE--, a.tv.pop();
for (c = 0; c < d.length; c++) delete a.py[d[c]];
e--;
a.Xb.j = Math.min(a.Xb.j, e);
for (var k in a.Lt) a.Lt[k].j =
Math.min(a.Lt[k].j, e)
}
$.F(this.b) && $.G(this.b.dispose) && this.b.dispose();
delete this.b;
delete this.D;
delete this.G;
delete this.j;
delete this.g;
kV.F.W.call(this)
};
$.I(lV, tU);
lV.prototype.set = function(a, b) {
return this.j(this.D.Yk(a), b)
};
lV.prototype.j = function(a, b) {
var c = !(0, window.isNaN)(a);
c && (this.Rf.g[~a] = b);
return c
};
var MZ = kV.prototype;
MZ.addOutputField = MZ.Lf;
MZ.getFieldIndex = MZ.Yk;
MZ.setContext = MZ.Oi;
MZ.setStartFunction = MZ.Ri;
MZ.setCalculationFunction = MZ.Ni;
MZ.dispose = MZ.Hc;
MZ = lV.prototype;
MZ.set = MZ.set;
MZ.setColumn = MZ.j;
$.I(mV, $.zp);
mV.prototype.HP = function() {
return new sU(this)
};
mV.prototype.wh = function(a, b, c, d) {
if ($.B(b)) var e = Math.round($.Q(b));
else if ($.y(b)) e = this.Ax.py[b] || window.NaN, (0, window.isNaN)(e) && (e = b);
else return this;
if ($.B(e) && 0 > e) this.oB[a] = {
B1: e,
J0: e
};
else if ($.y(e) || !(0, window.isNaN)(e)) {
if ((b = $.F(c)) && !$.G(c) && !("reset" in c && "considerItem" in c && "getResult" in c)) return this;
var g = b ? c : ega($.n(c) ? c : a);
b = d;
"weighted-average" == g && ($.B(d) ? b = Math.round(d) : $.y(d) ? (b = this.Ax.py[d] || window.NaN, (0, window.isNaN)(b) && (b = d)) : b = window.NaN, $.B(b) && (0, window.isNaN)(b) &&
(g = "average"));
$.V(this.Ax);
d = this.Ax;
c = e;
var h = b;
b = kga(g, c, h);
b in d.vP ? b = d.vP[b] : (c = jga(g, c, h), d.vP[b] = b = d.sD.length, d.sD.push(c), BV(d, 4, !1));
this.oB[a] = {
B1: e,
J0: b
};
this.Ax.ga(!0)
}
return this
};
mV.prototype.hf = function() {
return this.Ax
};
var NZ = mV.prototype;
NZ.addField = NZ.wh;
NZ.createSelectable = NZ.HP;
$.I(nV, $.qd);
nV.prototype.clear = function() {
this.value = void 0
};
nV.prototype.g = function() {
var a = this.value;
this.clear();
return a
};
nV.prototype.W = function() {
delete this.value;
nV.F.W.call(this)
};
$.I(oV, nV);
oV.prototype.clear = function() {
this.value = this.Ua = 0
};
oV.prototype.b = function(a) {
a = $.Q(a);
(0, window.isNaN)(a) || (this.value += a, this.Ua++)
};
oV.prototype.g = function() {
var a = this.Ua ? this.value / this.Ua : window.NaN;
this.clear();
return a
};
$.I(pV, nV);
pV.prototype.clear = function() {
this.j.reset()
};
pV.prototype.b = function(a, b, c) {
this.j.considerItem(a, c)
};
pV.prototype.g = function() {
var a = this.j.getResult();
this.clear();
return a
};
pV.prototype.W = function() {
delete this.j;
pV.F.W.call(this)
};
$.I(qV, nV);
qV.prototype.clear = function() {
this.value = [];
this.R = []
};
qV.prototype.b = function(a, b, c) {
this.value.push(a);
this.R.push(c)
};
qV.prototype.g = function() {
var a = this.K.call(this.j, this.value, this.R);
this.clear();
return a
};
qV.prototype.W = function() {
delete this.K;
delete this.j;
qV.F.W.call(this)
};
$.I(rV, nV);
rV.prototype.clear = function() {
this.value = window.NaN
};
rV.prototype.b = function(a) {
(0, window.isNaN)(this.value) && (this.value = $.Q(a))
};
$.I(sV, nV);
sV.prototype.b = function(a) {
$.n(this.value) || (this.value = a)
};
$.I(tV, nV);
tV.prototype.clear = function() {
this.value = window.NaN
};
tV.prototype.b = function(a) {
a = $.Q(a);
(0, window.isNaN)(a) || (this.value = a)
};
$.I(uV, nV);
uV.prototype.b = function(a) {
$.n(a) && (this.value = a)
};
$.I(vV, nV);
vV.prototype.clear = function() {
this.value = []
};
vV.prototype.b = function(a) {
$.n(a) && this.value.push(a)
};
$.I(wV, nV);
wV.prototype.clear = function() {
this.value = window.NaN
};
wV.prototype.b = function(a) {
a = $.Q(a);
(0, window.isNaN)(a) || this.value >= a || (this.value = a)
};
$.I(xV, nV);
xV.prototype.clear = function() {
this.value = window.NaN
};
xV.prototype.b = function(a) {
a = $.Q(a);
(0, window.isNaN)(a) || this.value <= a || (this.value = a)
};
$.I(yV, nV);
yV.prototype.clear = function() {
this.value = 0
};
yV.prototype.b = function(a) {
a = $.Q(a);
(0, window.isNaN)(a) || (this.value += a)
};
$.I(zV, nV);
zV.prototype.clear = function() {
this.value = this.Ua = 0
};
zV.prototype.b = function(a, b) {
a = $.Q(a);
b = $.Q(b) || 0;
(0, window.isNaN)(a) || (this.value += a * b, this.Ua += b)
};
zV.prototype.g = function() {
var a = this.Ua ? this.value / this.Ua : window.NaN;
this.clear();
return a
};
$.I(AV, $.zp);
$.f = AV.prototype;
$.f.xa = 16;
$.f.qU = function() {
this.Xb.qU()
};
$.f.kE = function() {
this.Xb.kE()
};
$.f.qs = function(a, b, c) {
this.Xb.qs(a, b, c);
return this
};
$.f.remove = function(a, b) {
this.Xb.remove($.Yj(a), $.Yj(b));
return this
};
$.f.qM = function(a) {
this.Xb.qM(a);
return this
};
$.f.Oe = function(a) {
return new mV(this, a)
};
$.f.fe = function(a) {
if ($.L(a, mV)) {
if (a.hf() != this) return $.jk(200), null
} else a = this.Oe(a);
a = new kV(a, this.jw.length);
this.jw.push(a);
this.mE.push(-1);
return a
};
$.f.W = function() {
$.V(this);
delete this.Xb;
$.rd(this.sD);
delete this.sD;
delete this.Lt;
$.rd(this.jw);
delete this.jw;
this.ga(!1);
AV.F.W.call(this)
};
var OZ = AV.prototype;
$.H("anychart.data.table", function(a, b, c, d, e) {
return new AV(a, b, c, d, e)
});
OZ.addData = OZ.qs;
OZ.remove = OZ.remove;
OZ.removeFirst = OZ.qM;
OZ.mapAs = OZ.Oe;
OZ.createComputer = OZ.fe;
$.I(CV, $.dv);
$.f = CV.prototype;
$.f.Os = function() {
var a = this.pp();
return $.L(a, JY) ? this.ha.width / (a.fv - a.Qr) : this.wa.nK() / (a.SQ() - a.TQ()) * this.ha.width
};
$.f.Td = function() {
return null
};
$.f.eZ = function() {};
$.f.tK = function() {
var a = xU(this.Ga);
if (a) {
var b = this.da(),
c = a.Rf;
$.n(c) && (b.b = c, b.G = !0)
}
return a
};
$.f.sK = function() {
var a = yU(this.Ga);
if (a) {
var b = this.da(),
c = a.Rf;
$.n(c) && (b.b = c, b.G = !0)
}
return a
};
$.f.nF = function() {
return this.wa
};
$.f.UI = function() {
return !1
};
$.f.data = function(a, b, c) {
if ($.n(a)) {
var d = this.nF();
$.V(d);
if (this.Ga) {
var e = this.Ga;
this.Ga = null;
jZ(d, e)
}
this.g && ($.M(this.g), this.g = null);
this.Y = a;
$.L(a, AV) || $.L(a, mV) || (e = new AV, a && e.qs(a, !1, c), this.g = a = e);
$.L(a, AV) && (a = a.Oe(b), b || (a.wh("value", 1, "average"), a.wh("size", 2, "sum"), a.wh("open", 1, "first"), a.wh("high", 2, "max"), a.wh("low", 3, "min"), a.wh("close", 4, "last"), a.wh("volume", 5, "sum")), this.g || (this.g = a));
$.L(a, mV) ? (this.Ga = a.HP(), this.x0()) : this.Y = null;
d.ga(!0);
return this
}
return this.Y
};
$.f.x0 = function() {
IU(this.nF().b, this.Ga, !0)
};
$.f.Xf = function() {
return this.Ga.da()
};
$.f.jX = function() {
return !0
};
$.f.gf = function(a, b) {
var c = a || this.I("color") || "blue";
if (this.Hn()) {
var d = b ? this.Xf() : this.da();
return {
index: d.na(),
sourceColor: c,
iterator: d,
series: this,
plot: this.vf,
chart: this.wa
}
}
return {
sourceColor: c
}
};
$.f.Sh = function(a) {
var b = this.xg();
return this.Hn() ? (a = a ? this.Xf() : this.da(), {
index: a.na(),
sourceHatchFill: b,
iterator: a,
series: this,
plot: this.vf,
chart: this.wa
}) : {
sourceHatchFill: b
}
};
$.f.BT = function() {
if (!this.Ga) return null;
for (var a = this.uj(), b = [], c = 0; c < a.length; c++) {
var d = EU(this.Ga, a[c]);
if (!$.y(d) && (0, window.isNaN)(d)) return $.lk(201, void 0, [this.hd(), a[c]]), null;
b.push(d)
}
return b
};
$.f.vF = function(a) {
var b = this.BT(),
c = [];
if (b) {
var d = this.bb(),
e, g = b.length;
for (e = 0; e < g; e++) {
var h = b[e],
k = this.Ga;
k = $.B(h) && 0 > h ? a ? k.b.k2[~h] : k.b.MI[~h] : a ? k.b.m2[h] : k.b.FL[h];
c.push(d.RD($.n(k) ? k : window.NaN, this.RA));
k = this.Ga;
h = $.B(h) && 0 > h ? a ? k.b.j2[~h] : k.b.LI[~h] : a ? k.b.l2[h] : k.b.DL[h];
c.push(d.RD($.n(h) ? h : window.NaN, this.RA))
}
}
return c
};
$.f.oC = function() {
var a = EU(this.Ga, "label"),
b = EU(this.Ga, "minLabel"),
c = EU(this.Ga, "maxLabel");
return $.y(a) || !(0, window.isNaN)(a) || $.y(b) || !(0, window.isNaN)(b) || $.y(c) || !(0, window.isNaN)(c)
};
$.f.ZL = function() {
var a = EU(this.Ga, "marker");
return $.y(a) || !(0, window.isNaN)(a)
};
$.f.qg = function() {
return this.check(32) && "none" != this.bb().Yp()
};
$.f.bM = function(a) {
return this.Ga.rW(a, "exact")
};
$.f.sn = function(a) {
this.j = this.bM(a);
this.K = !0
};
$.f.$i = function() {
return this.kc
};
$.f.Wj = function() {
this.kc & 1 || (this.kc = 1, this.B(2176, 1))
};
$.f.wd = function() {
this.kc != $.dl && (this.kc = $.dl, this.B(2176, 1));
return this
};
$.f.Er = function() {
return this.$i()
};
$.f.Qj = function() {
this.Bt || (this.Bt = new $.gu);
return $.gy(this, this.Bt, this.K ? this.j : this.R)
};
$.f.sE = function() {
this.cC || (this.cC = new $.gu);
return $.gy(this, this.cC, this.K ? this.j : this.R)
};
$.f.mp = function(a, b) {
var c = this.wa.ko(),
d = CV.F.mp.call(this, a, b);
d.defaultDecimalDigitsCount = {
value: this.X,
type: "number"
};
d.dataIntervalUnit = {
value: c.eo().unit,
type: "string"
};
d.dataIntervalUnitCount = {
value: c.eo().count,
type: "number"
};
d.isGrouped = {
value: c.VB(),
type: ""
};
return d
};
$.f.jZ = function() {
return "date-time"
};
$.f.lF = function(a, b, c, d) {
if (!a && this.check($.yC)) {
a = d.open < d.close;
if (2 == b) a = a ? "risingStroke" : "fallingStroke";
else if (3 == b) {
if (this.check(8)) return null;
a = a ? "risingHatchFill" : "fallingHatchFill"
} else this.check(8) ? (a = a ? "risingStroke" : "fallingStroke", b = 2) : a = a ? "risingFill" : "fallingFill";
return $.bl(a, b, !1)(this, $.dl, !0)
}
return CV.F.lF.call(this, a, b, c, d)
};
$.f.CB = function(a, b) {
return "rising-falling" == String(a).toLowerCase() && this.check($.yC) ? b.open < b.close ? "triangle-up" : "triangle-down" : CV.F.CB.call(this, a, b)
};
$.f.ZY = function(a) {
if (this.check($.yC)) {
var b = (0, window.isNaN)(a.high) || (0, window.isNaN)(a.low) || (0, window.isNaN)(a.open) || (0, window.isNaN)(a.close);
a = ": (O: " + EV(this, a.open) + "; H: " + EV(this, a.high) + "; L: " + EV(this, a.low) + "; C: " + EV(this, a.close) + ")"
} else this.check($.xC) ? (b = (0, window.isNaN)(a.high) || (0, window.isNaN)(a.low), a = ": (H: " + EV(this, a.high) + "; L: " + EV(this, a.low) + ")") : (b = (0, window.isNaN)(a.value), a = ": " + EV(this, a.value));
return this.name() + (b ? "" : a)
};
$.f.EV = function(a) {
var b = this.Sa();
b = tga[b];
return null !== b ? $.n(a) ? this : b : $.n(a) ? (a = !!a, $.n(this.Nt) || (this.Nt = this.wa.Nt), this.Nt != a && (this.Nt = a, a = this.wa.vu(this.Sa())[1], this.hy(a, !1), this.B(5664, this.xa)), this) : $.n(this.Nt) ? this.Nt : this.wa.Nt
};
$.f.hy = function(a, b) {
var c = $.Vc(a),
d = this.EV();
c.Ab = d ? 2 : 1;
CV.F.hy.call(this, c, b)
};
$.f.J = function() {
return CV.F.J.call(this)
};
$.f.$ = function(a, b) {
CV.F.$.call(this, a, b)
};
$.f.W = function() {
if (this.Ga) {
var a = this.Ga;
this.Ga = null;
jZ(this.nF(), a)
}
this.R = this.j = null;
CV.F.W.call(this)
};
var PZ = CV.prototype;
PZ.data = PZ.data;
PZ.allowPointSettings = PZ.EV;
FV.prototype.da = function(a, b, c) {
var d = (0, window.isNaN)(b) || (0, window.isNaN)(c);
d ? (b = 0, c = this.Ga.length) : (b = ~$.Sa(this.Ga, {
key: b,
index: -1
}, HV), c = ~$.Sa(this.Ga, {
key: c,
index: -window.Infinity
}, HV));
var e;
if (this.b && this.b.Iaa == b && this.b.Wga == c && this.b.ufa == a.Nb()) {
var g = this.b.data;
var h = this.b.Pca;
var k = this.b.Ph || 0;
var l = this.b.count || 0
} else {
g = [];
h = [];
k = window.NaN;
l = 0;
var m = b,
p = window.NaN,
q = window.NaN,
r = [];
for (a.reset(); a.advance() && m < c;) {
for (var t; m < c && (t = this.Ga[m]).key < a.g;) r.push(t), m++;
if (r.length)
if ((0, window.isNaN)(p) &&
!d) r.length = 0;
else {
g.length || (k = m - r.length);
for (e = 0; e < r.length; e++) h.push(g.length);
g.push({
key: p,
index: q,
items: r,
vQ: m - r.length
});
l += r.length;
r = []
}
p = a.g;
q = a.j()
}
if (!(0, window.isNaN)(p) || d) {
for (; m < c;) r.push(t), m++;
if (r.length) {
g.length || (k = m - r.length);
for (e = 0; e < r.length; e++) h.push(g.length);
g.push({
key: p,
index: q,
items: r,
vQ: m - r.length
});
l += r.length
}
}
this.b = {
Iaa: b,
Wga: c,
data: g,
Pca: h,
Ph: k,
count: l,
ufa: a.Nb()
}
}
return new IV(g, h, k, l)
};
FV.prototype.g = function(a, b, c) {
var d = $.yq(b instanceof Date || !$.F(b) ? b : b.date, this.D, (0, window.isNaN)(this.j) ? null : new Date(this.j), this.G);
d && a.push({
index: c,
key: +d,
data: b,
o: {}
});
return a
};
$.f = IV.prototype;
$.f.select = function(a) {
var b;
if (b = this.K <= a && a < this.K + this.R) {
this.D = a;
this.b = this.Y[a - this.K];
var c = this.Ga[this.b];
this.G = c.items.length;
this.j = a - c.vQ
} else this.G = 0, this.b = this.Ga.length, this.j = 0, this.D = window.NaN;
return b
};
$.f.reset = function() {
this.D = this.K - 1;
this.b = -1;
this.j = this.G = 0;
return this
};
$.f.advance = function() {
++this.j >= this.G && (this.j = 0, this.b++, this.G = this.b < this.Ga.length ? this.Ga[this.b].items.length : 0);
this.D++;
return this.j < this.G
};
$.f.Nb = function() {
return this.R
};
$.f.na = function() {
return this.b < this.Ga.length ? this.D : window.NaN
};
$.f.Bl = function() {
return this.b < this.Ga.length ? this.Ga[this.b].key : window.NaN
};
$.f.get = function(a) {
var b = this.Ga[this.b].items[this.j].data;
return $.F(b) ? b[a] : void 0
};
$.f.wq = function() {};
$.f.o = function(a, b) {
var c = this.Ga[this.b].items[this.j].o;
return $.n(b) ? (c[a] = b, this) : c[a]
};
$.I(OV, $.X);
var QZ = {};
$.Mo(QZ, [$.ZA.l3, $.ZA.u4, $.ZA.O4, $.ZA.B3]);
$.$o(OV, QZ);
var NV = [
["direction", 64, 1],
["position", 64, 1],
["seriesId", 64, 1],
["fieldName", 64, 1]
],
RZ = $.Po();
RZ.push.apply(RZ, [$.ZA.v3, $.ZA.G5, $.ZA.S3, $.ZA.P3, $.ZA.TU, $.ZA.nV, $.ZA.K3]);
var LV = RZ,
SZ = {};
$.Mo(SZ, LV);
var TZ = ["connector"],
UZ;
for (UZ in SZ) TZ.push(UZ);
$.ap(OV, TZ, "normal");
var VZ = {};
$.Oo(VZ, [
["type", 64, 1],
["width", 64, 1],
["height", 64, 1],
["fill", 64, 1],
["stroke", 64, 1],
["format", 64, 1],
["fontPadding", 64, 1],
["connector", 64, 1]
]);
$.Yo(VZ, 64, 64, 1, 1);
var KV = VZ,
WZ = {};
$.Oo(WZ, [
["type", 0, 0],
["width", 0, 0],
["height", 0, 0],
["fill", 0, 0],
["stroke", 0, 0],
["format", 0, 0],
["fontPadding", 0, 0],
["connector", 0, 0]
]);
$.Yo(WZ, 0, 0, 0, 0);
var MV = WZ;
$.f = OV.prototype;
$.f.ta = $.X.prototype.ta | 80;
$.f.xa = $.X.prototype.xa | 1;
$.f.yP = function() {
this.B(80, 1)
};
$.f.rF = function(a) {
var b = this.vf.li();
return a ? 1 == a ? b.sb() : b.selected() : b.Ta()
};
$.f.data = function(a) {
if ($.n(a)) {
if ($.F(a) && !$.C(a)) {
var b = a.dateTimePattern;
var c = a.baseDate;
var d = a.locale;
a = a.data
}
$.C(a) || (a = []);
var e = this.zE;
e.D = b;
e.j = $.la(c) ? c.getTime() : $.Q(c);
e.G = d || null;
e.b = null;
e.Ga = (0, $.Dg)(a, e.g, []);
e.Ga.sort(HV);
this.B(64, 1);
return this
}
return GV(this.zE)
};
$.f.Ta = function(a) {
return $.n(a) ? (this.ma.P(a), this) : this.ma
};
$.f.sb = function(a) {
return $.n(a) ? (this.Ja.P(a), this) : this.Ja
};
$.f.selected = function(a) {
return $.n(a) ? (this.Oa.P(a), this) : this.Oa
};
$.f.aa = function() {
if (!this.xc()) return this;
$.V(this);
$.V(this.ya);
this.O(4) && (this.ha = this.oa(), this.KA = this.$g ? this.$g.jj(this.ha) : this.ha, this.B(64), this.N(4));
this.O(16) && (this.Bz.length = 0, this.B(64), this.N(16));
this.O(64) && (this.og = null, this.nm.au(), this.ya.clear());
if (this.O(2)) {
var a = this.U();
$.Ox(this.nm, a);
this.N(2)
}
if (this.O(64)) {
var b = {};
a = this.vf.li();
var c = this.da();
for (c.reset(); c.advance();) {
if (!c.j) {
b = JV(c);
var d = a.j[b];
d || (d = a.j[b] = {});
b = d
}
d = QV(this, b);
b[d[0]] = d[1]
}
this.N(72)
}
this.O(8) &&
this.N(8);
this.ma.ah().N(4294967295);
this.ya.ga(!1);
this.ga(!1);
return this
};
$.f.remove = function() {
this.nm.au();
this.B(64)
};
$.f.re = function(a, b, c, d, e, g, h, k, l, m) {
b = this.Uh(a, b, !1, !1);
var p = a.na();
a.o("symbol", RV(b, "format", $.To).charAt(0));
a = new $.gu(this.mp(a), a);
$.Vt(a);
var q = e,
r = h;
e = {};
k && (r = -r);
"flag" == c && (d += g / 2);
"pin" == c ? (q += 3 * r / 5, e.height = Math.abs(4 * r / 5)) : q += r / 2;
e.value = {
x: d,
y: q
};
m ? (c = this.ya.ye(p), c.Of(a), c.Bc(e)) : c = this.ya.add(a, e, p);
c.zIndex(l);
l = RV(b, "fontPadding", $.sp);
h = e.height || h;
g = $.Ka({
positionFormatter: $.Jn,
anchor: "center",
rotation: 0,
width: g - 2 * $.P(l, g / 2),
height: h - 2 * $.P(l, h / 2)
}, b);
$.Ps(c, g);
c.U(this.U());
c.aa();
return c
};
$.f.ag = function(a) {
var b = a.type;
switch (b) {
case "mouseout":
b = "eventmarkermouseout";
break;
case "mouseover":
b = "eventmarkermouseover";
break;
case "mousemove":
b = "eventmarkermousemove";
break;
case "mousedown":
b = "eventmarkermousedown";
break;
case "mouseup":
b = "eventmarkermouseup";
break;
case "click":
case "touchstart":
b = "eventmarkerclick";
break;
case "dblclick":
b = "eventmarkerdblclick";
break;
default:
return null
}
var c;
"eventMarkerIndex" in a ? c = a.eventMarkerIndex : "labelIndex" in a && (c = a.labelIndex + this.da().K);
a.eventMarkerIndex =
c = $.Q(c);
return {
type: b,
target: this,
group: this,
index: c,
originalEvent: a,
eventMarker: this.Bq(c)
}
};
$.f.ih = function() {
return !0
};
$.f.Hn = function() {
return !0
};
$.f.gf = function(a) {
a = a || this.I("fill") || "#ccc";
var b = this.da();
return {
index: b.na(),
sourceColor: a,
iterator: b,
group: this,
chart: this.vf.hc(),
plot: this.vf
}
};
$.f.xg = function() {
return null
};
$.f.da = function() {
this.og || (this.og = this.Xf());
return this.og
};
$.f.Xf = function(a) {
return this.zE.da.apply(this.zE, pga(this.vf.hc(), a))
};
$.f.Sh = function() {
return null
};
$.f.Uh = function(a, b, c, d, e) {
c ? c = a = null : (c = a.get("normal"), $.n(c) || !d && !e || (e = d ? "connector" : e || "", c = {}, c[e] = a.get(e)), a = b ? 1 == b ? a.get("hovered") : a.get("selected") : null);
b = Math.min(b, 2);
e = 2 * b + d;
d && ($.F(c) && (c = c.connector), $.F(a) && (a = a.connector));
var g = this.Bz[e];
if (g) b ? (g[0] = a, g[6] = c) : g[0] = c;
else {
var h = this.vf.li();
g = TV(h, $.dl, !0, d);
var k = TV(h, $.dl, !1, d),
l = d ? this.ma.ah() : this.ma;
if (b) {
var m = TV(h, b, !0, d);
h = TV(h, b, !1, d);
b = 1 == b ? this.Ja : this.Oa;
b = d ? b.ah() : b;
g = $.Ka([a], b.ja, h, [c], l.ja, d ? null : this.ja, k, b.Ra,
m, l.Ra, d ? null : this.Ra, g)
} else g = $.Ka([c], l.ja, d ? null : this.ja, k, l.Ra, d ? null : this.Ra, g);
this.Bz[e] = g
}
return g
};
$.f.Gc = function(a, b, c, d, e, g, h) {
b = this.Uh(c, b, !!h, e, a);
return RV(b, a, d)
};
$.f.dV = function() {
function a(a, c, d, e, g, h) {
e /= 2;
a.moveTo(c, d).lineTo(c - e, d + h, c - e, d + g, c + e, d + g, c + e, d + h).close()
}
return {
circle: function(a, c, d, e, g, h) {
g /= 2;
a.Kd(c, d + (h ? -g : g), e / 2, g, 0, 360)
},
rect: function(b, c, d, e, g, h) {
h && (g = -g);
a(b, c, d, e, g, 0)
},
pin: function(b, c, d, e, g, h) {
h && (g = -g);
a(b, c, d, e, g, g / 4)
},
flag: function(b, c, d, e, g, h) {
h && (g = -g);
a(b, c + e / 2, d, e, g, 0)
}
}
}();
$.f.LQ = function(a) {
var b, c = this.da();
c.select(a) ? b = this.mp(c) : c = null;
a = new $.gu(b, c);
$.Vt(a);
return a
};
$.f.mp = function(a) {
var b = this.vf.hc().ko().eo();
return {
date: {
value: a.b < a.Ga.length ? a.Ga[a.b].items[a.j].key : window.NaN,
type: "date-time"
},
groupedDate: {
value: a.Bl(),
type: "date-time"
},
group: {
value: this,
type: ""
},
index: {
value: a.na(),
type: "number"
},
plot: {
value: this.vf,
type: ""
},
chart: {
value: this.vf.hc(),
type: ""
},
title: {
value: a.get("title") || "",
type: "string"
},
description: {
value: a.get("description") || "",
type: "string"
},
symbol: {
value: a.o("symbol"),
type: "string"
},
dataIntervalUnit: {
value: b.unit,
type: "string"
},
dataIntervalUnitCount: {
value: b.count,
type: "number"
}
}
};
$.f.Bq = function(a) {
var b = this.Xf(!0);
b.select(a) ? (a = new $.gu(this.mp(b), b), $.Vt(a)) : a = null;
return a
};
$.f.jb = function(a) {
this.nc || (this.nc = new $.$t(0), this.nc.parent(this.vf.li().jb()), this.nc.Oj().position("leftTop"), $.bu(this.nc, this.vf));
return $.n(a) ? (this.nc.P(a), this) : this.nc
};
$.f.J = function() {
var a = OV.F.J.call(this);
$.kp(this, QZ, a);
a.normal = this.ma.J();
a.hovered = this.Ja.J();
a.selected = this.Oa.J();
a.tooltip = this.jb().J();
a.data = GV(this.zE);
return a
};
$.f.Wd = function(a, b) {
return $.C(b) ? (this.data(b), !0) : !1
};
$.f.$ = function(a, b) {
OV.F.$.call(this, a, b);
$.n(a.data) && this.data(a.data);
this.ma.ia(!!b, a);
this.ma.ia(!!b, a.normal);
this.Ja.ia(!!b, a.hovered);
this.Oa.ia(!!b, a.selected);
this.jb().ia(!!b, a.tooltip);
$.cp(this, QZ, a)
};
$.f.W = function() {
$.rd(this.nm, this.ma, this.Ja, this.Oa, this.nc);
this.ma = this.Ja = this.Oa = this.nm = this.vf = this.nc = null;
OV.F.W.call(this)
};
var XZ = OV.prototype;
XZ.data = XZ.data;
XZ.tooltip = XZ.jb;
XZ.getMarker = XZ.Bq;
XZ.normal = XZ.Ta;
XZ.hovered = XZ.sb;
XZ.selected = XZ.selected;
$.I(SV, $.X);
$.$o(SV, QZ);
$.ap(SV, TZ, "normal");
$.f = SV.prototype;
$.f.ta = $.X.prototype.ta | 64;
$.f.yP = function() {
this.B(64, 1)
};
$.f.Ta = function(a) {
return $.n(a) ? (this.ma.P(a), this) : this.ma
};
$.f.sb = function(a) {
return $.n(a) ? (this.Ja.P(a), this) : this.Ja
};
$.f.selected = function(a) {
return $.n(a) ? (this.Oa.P(a), this) : this.Oa
};
$.f.group = function(a, b) {
var c = $.Q(a);
if ((0, window.isNaN)(c)) {
c = 0;
var d = a
} else c = a, d = b;
var e = this.b[c];
e || (e = new OV(this.g, c), e.kb(this), e.xh = 10 + .01 * this.b.length, this.b[c] = e, $.U(e, this.X_, this), this.B(64, 1));
$.n(d) && e.P(d);
return e
};
$.f.data = function(a) {
var b = this.group().data(a);
return $.n(a) ? this : b
};
$.f.aa = function() {
if (!this.xc()) return this;
this.Ya || (this.Ya = $.sj(), $.$r(this, this.Ya));
var a = this.U();
if (this.O(4)) {
this.ha = this.oa();
var b = a.Ea();
b = b ? b.width() : this.ha.width;
this.Ya.clip(new $.K(0, this.ha.top, b, this.ha.height));
this.B(64);
this.N(4)
}
if (this.O(64)) {
this.Bz.length = 0;
this.j = {};
this.Sm || (this.Sm = []);
for (; b = this.D.pop();) b.clear(), b.parent(null), this.Sm.push(b);
for (b = 0; b < this.b.length; b++) {
var c = this.b[b];
$.V(c);
c.oa(this.ha);
c.U(this.Ya);
c.B(64);
c.aa();
c.ga(!1)
}
this.ma.ah().N(4294967295);
this.N(64)
}
this.O(2) && (this.Ya.parent(a), this.N(2));
this.O(8) && (this.Ya.zIndex(this.zIndex()), this.N(8));
return this
};
$.f.X_ = function() {
this.B(64, 1)
};
$.f.eQ = function(a, b, c, d, e) {
var g = e ? e.clear() : this.Sm.length ? this.Sm.pop() : $.uj();
$.F(d) && "keys" in d && !$.F(d.mode) && (d = $.Sk(d), d.mode = this.ha);
g.stroke(d);
g.fill(null);
g.zIndex(0);
e || (this.Ya.fb(g), this.D.push(g));
g.moveTo(a, b).lineTo(a, c);
return g
};
$.f.Fh = function(a) {
var b, c = $.fn(a.domTarget);
$.L(a.target, $.ts) ? (c = a.target.Th(), $.L(c, OV) && (b = c)) : $.F(c) && !$.L(c, SV) && (b = c.group, a.eventMarkerIndex = c.index);
b && !b.Ld && b.enabled() && (a = b.ag(a)) && b.dispatchEvent(a)
};
$.f.jb = function(a) {
this.nc || (this.nc = new $.$t(0), this.nc.parent(this.g.hc().li().jb()));
return $.n(a) ? (this.nc.P(a), this) : this.nc
};
$.f.J = function() {
var a = SV.F.J.call(this);
$.kp(this, QZ, a);
a.normal = this.ma.J();
a.hovered = this.Ja.J();
a.selected = this.Oa.J();
a.tooltip = this.jb().J();
for (var b = [], c = 0; c < this.b.length; c++) {
var d = this.b[c];
b.push(d ? d.J() : null)
}
a.groups = b;
return a
};
$.f.$ = function(a, b) {
SV.F.$.call(this, a, b);
this.ma.ia(!!b, a);
this.ma.ia(!!b, a.normal);
this.Ja.ia(!!b, a.hovered);
this.Oa.ia(!!b, a.selected);
this.jb().ia(!!b, a.tooltip);
$.cp(this, QZ, a);
var c, d;
if ($.n(c = a.groups)) {
if ($.rd(this.b), this.b.length = 0, $.C(c))
for (d = 0; d < c.length; d++) {
var e = c[d];
null != e && this.group(d, e)
}
} else $.n(d = a.data) && this.data(d)
};
$.f.W = function() {
$.rd(this.b, this.Ya, this.ma, this.Ja, this.Oa, this.nc);
delete this.b;
this.ma = this.Ja = this.Oa = this.Ya = this.g = this.nc = null;
SV.F.W.call(this)
};
var YZ = SV.prototype;
YZ.group = YZ.group;
YZ.data = YZ.data;
YZ.tooltip = YZ.jb;
YZ.normal = YZ.Ta;
YZ.hovered = YZ.sb;
YZ.selected = YZ.selected;
$.I(VV, $.qd);
VV.prototype.Wz = function(a, b) {
a.wh("value", b.Yk("result"))
};
VV.prototype.W = function() {
for (var a in this.Da) {
var b = this.Da[a];
b.ca && this.G.Go(b.ca.id());
$.M(b.ca);
b.jz = !1;
$.M(b.mapping);
b.mapping = null
}
delete this.Da;
$.M(this.g);
this.g = null;
delete this.G;
delete this.ba;
VV.F.W.call(this)
};
var ZZ = VV.prototype;
ZZ.dispose = ZZ.Hc;
$.f = $V.prototype;
$.f.enqueue = function(a) {
var b = void 0;
if (this.Xb.length < this.j) this.Xb.push(a), this.b++;
else {
var c = (this.g + this.b) % this.j;
this.b < this.j ? this.b++ : (b = this.Xb[c], this.g = (this.g + 1) % this.Xb.length);
this.Xb[c] = a
}
return b
};
$.f.G$ = function() {
if (this.b) {
var a = this.Xb[this.g];
this.g = (this.g + 1) % this.Xb.length;
this.b--
}
return a
};
$.f.get = function(a) {
a = ($.jb(+a, this.b) + this.g) % this.Xb.length;
return (0, window.isNaN)(a) ? void 0 : this.Xb[a]
};
$.f.Eh = function() {
return this.b
};
$.f.clear = function(a) {
this.g = this.b = this.Xb.length = 0;
this.j = $.on(a, this.j, !1)
};
var $Z = $V.prototype;
$.H("anychart.math.cycledQueue", aW);
$.H("anychart.calculations.cycledQueue", aW);
$Z.enqueue = $Z.enqueue;
$Z.dequeue = $Z.G$;
$Z.get = $Z.get;
$Z.getLength = $Z.Eh;
$Z.clear = $Z.clear;
$.H("anychart.math.adl.initContext", bW);
$.H("anychart.math.adl.startFunction", cW);
$.H("anychart.math.adl.calculate", dW);
$.H("anychart.math.adl.calculationFunction", eW);
$.H("anychart.math.adl.createComputer", fW);
$.I(gW, VV);
gW.prototype.fe = function(a) {
return fW(a)
};
gW.prototype.Vi = function() {
return "ADL"
};
gW.prototype.ca = function(a) {
return YV(this, "main", a)
};
var a_ = gW.prototype;
a_.series = a_.ca;
$.H("anychart.math.ama.initContext", hW);
$.H("anychart.math.ama.startFunction", iW);
$.H("anychart.math.ama.calculationFunction", jW);
$.H("anychart.math.ama.createComputer", kW);
$.I(lW, VV);
$.f = lW.prototype;
$.f.fe = function(a) {
return kW(a, this.j, this.b, this.D)
};
$.f.Vi = function() {
return "AMA(" + this.j + "," + this.b + "," + this.D + ")"
};
$.f.ca = function(a) {
return YV(this, "main", a)
};
$.f.Pb = function(a) {
return $.n(a) ? (a = $.on(a, this.j, !1), a != this.j && (this.j = a, ZV(this)), this) : this.j
};
$.f.Fy = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
$.f.aA = function(a) {
return $.n(a) ? (a = $.on(a, this.D, !1), a != this.D && (this.D = a, ZV(this)), this) : this.D
};
var b_ = lW.prototype;
b_.series = b_.ca;
b_.period = b_.Pb;
b_.fastPeriod = b_.Fy;
b_.slowPeriod = b_.aA;
$.H("anychart.math.sma.initContext", mW);
$.H("anychart.math.sma.startFunction", nW);
$.H("anychart.math.sma.calculate", oW);
$.H("anychart.math.sma.calculationFunction", pW);
$.H("anychart.math.sma.createComputer", qW);
$.H("anychart.math.atr.initContext", rW);
$.H("anychart.math.atr.startFunction", sW);
$.H("anychart.math.atr.calculate", tW);
$.H("anychart.math.atr.calculationFunction", uW);
$.H("anychart.math.atr.createComputer", vW);
$.I(wW, VV);
wW.prototype.fe = function(a) {
return vW(a, this.b)
};
wW.prototype.Vi = function() {
return "ATR(" + this.b + ")"
};
wW.prototype.ca = function(a) {
return YV(this, "main", a)
};
wW.prototype.Pb = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
var c_ = wW.prototype;
c_.series = c_.ca;
c_.period = c_.Pb;
$.H("anychart.math.aroon.initContext", xW);
$.H("anychart.math.aroon.startFunction", yW);
$.H("anychart.math.aroon.calculationFunction", zW);
$.H("anychart.math.aroon.createComputer", AW);
$.I(BW, VV);
$.f = BW.prototype;
$.f.fe = function(a) {
return AW(a, this.b)
};
$.f.Vi = function(a) {
switch (a) {
case "upAroon":
return "Aroon up";
case "downAroon":
return "Aroon down"
}
return ""
};
$.f.Wz = function(a, b, c) {
switch (c) {
case "upAroon":
a.wh("value", b.Yk("upResult"));
break;
case "downAroon":
a.wh("value", b.Yk("downResult"))
}
};
$.f.cha = function(a) {
return YV(this, "upAroon", a)
};
$.f.M$ = function(a) {
return YV(this, "downAroon", a)
};
$.f.Pb = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
var d_ = BW.prototype;
d_.period = d_.Pb;
d_.upSeries = d_.cha;
d_.downSeries = d_.M$;
$.H("anychart.math.bbands.initContext", CW);
$.H("anychart.math.bbands.startFunction", DW);
$.H("anychart.math.bbands.calculate", EW);
$.H("anychart.math.bbands.calculationFunction", FW);
$.H("anychart.math.bbands.createComputer", GW);
$.I(HW, VV);
$.f = HW.prototype;
$.f.fe = function(a) {
return GW(a, this.j, this.b)
};
$.f.Vi = function(a) {
switch (a) {
case "upper":
return "BBands U";
case "lower":
return "BBands L";
case "middle":
return "BBands M"
}
return ""
};
$.f.Wz = function(a, b, c) {
switch (c) {
case "upper":
a.wh("value", b.Yk("upperResult"));
break;
case "lower":
a.wh("value", b.Yk("lowerResult"));
break;
case "middle":
a.wh("value", b.Yk("middleResult"))
}
};
$.f.fha = function(a) {
return YV(this, "upper", a)
};
$.f.Rca = function(a) {
return YV(this, "lower", a)
};
$.f.lda = function(a) {
return YV(this, "middle", a)
};
$.f.Pb = function(a) {
return $.n(a) ? (a = $.on(a, this.j, !1), a != this.j && (this.j = a, ZV(this)), this) : this.j
};
$.f.Gs = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), this.b != a && (this.b = a, ZV(this)), this) : this.b
};
var e_ = HW.prototype;
e_.period = e_.Pb;
e_.deviation = e_.Gs;
e_.upperSeries = e_.fha;
e_.lowerSeries = e_.Rca;
e_.middleSeries = e_.lda;
$.H("anychart.math.bbandsB.initContext", IW);
$.H("anychart.math.bbandsB.startFunction", JW);
$.H("anychart.math.bbandsB.calculationFunction", KW);
$.H("anychart.math.bbandsB.createComputer", LW);
$.I(MW, VV);
$.f = MW.prototype;
$.f.fe = function(a) {
return LW(a, this.j, this.b)
};
$.f.Vi = function() {
return "BBands %B(" + this.j + "," + this.b + ")"
};
$.f.ca = function(a) {
return YV(this, "main", a)
};
$.f.Pb = function(a) {
return $.n(a) ? (a = $.on(a, this.j, !1), a != this.j && (this.j = a, ZV(this)), this) : this.j
};
$.f.Gs = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), this.b != a && (this.b = a, ZV(this)), this) : this.b
};
var f_ = MW.prototype;
f_.period = f_.Pb;
f_.deviation = f_.Gs;
f_.series = f_.ca;
$.H("anychart.math.bbandsWidth.initContext", function(a, b) {
return CW(a, b)
});
$.H("anychart.math.bbandsWidth.startFunction", NW);
$.H("anychart.math.bbandsWidth.calculate", OW);
$.H("anychart.math.bbandsWidth.calculationFunction", PW);
$.H("anychart.math.bbandsWidth.createComputer", QW);
$.I(RW, VV);
$.f = RW.prototype;
$.f.fe = function(a) {
return QW(a, this.j, this.b)
};
$.f.Vi = function() {
return "BBands Width(" + this.j + "," + this.b + ")"
};
$.f.ca = function(a) {
return YV(this, "main", a)
};
$.f.Pb = function(a) {
return $.n(a) ? (a = $.on(a, this.j, !1), a != this.j && (this.j = a, ZV(this)), this) : this.j
};
$.f.Gs = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), this.b != a && (this.b = a, ZV(this)), this) : this.b
};
var g_ = RW.prototype;
g_.period = g_.Pb;
g_.deviation = g_.Gs;
g_.series = g_.ca;
$.H("anychart.math.cci.initContext", SW);
$.H("anychart.math.cci.startFunction", TW);
$.H("anychart.math.cci.calculate", UW);
$.H("anychart.math.cci.calculationFunction", VW);
$.H("anychart.math.cci.createComputer", WW);
$.I(XW, VV);
XW.prototype.fe = function(a) {
return WW(a, this.b)
};
XW.prototype.Vi = function() {
return "CCI(" + this.b + ")"
};
XW.prototype.ca = function(a) {
return YV(this, "main", a)
};
XW.prototype.Pb = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
var h_ = XW.prototype;
h_.series = h_.ca;
h_.period = h_.Pb;
$.H("anychart.math.ema.initContext", YW);
$.H("anychart.math.ema.startFunction", ZW);
$.H("anychart.math.ema.calculate", $W);
$.H("anychart.math.ema.calculationFunction", aX);
$.H("anychart.math.ema.createComputer", bX);
$.H("anychart.math.cho.initContext", cX);
$.H("anychart.math.cho.startFunction", dX);
$.H("anychart.math.cho.calculate", eX);
$.H("anychart.math.cho.calculationFunction", fX);
$.H("anychart.math.cho.createComputer", gX);
$.I(hX, VV);
$.f = hX.prototype;
$.f.fe = function(a) {
return gX(a, this.b, this.j, this.D)
};
$.f.Vi = function() {
return "CHO(" + this.b + "," + this.j + ")"
};
$.f.ca = function(a) {
return YV(this, "main", a)
};
$.f.Fy = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
$.f.aA = function(a) {
return $.n(a) ? (a = $.on(a, this.j, !1), a != this.j && (this.j = a, ZV(this)), this) : this.j
};
$.f.tS = function(a) {
return $.n(a) ? (a = VT(a, this.D), a != this.D && (this.D = a, ZV(this)), this) : this.D
};
var i_ = hX.prototype;
i_.series = i_.ca;
i_.fastPeriod = i_.Fy;
i_.slowPeriod = i_.aA;
i_.maType = i_.tS;
$.H("anychart.math.cmf.initContext", iX);
$.H("anychart.math.cmf.startFunction", jX);
$.H("anychart.math.cmf.calculate", kX);
$.H("anychart.math.cmf.calculationFunction", lX);
$.H("anychart.math.cmf.createComputer", mX);
$.I(nX, VV);
nX.prototype.fe = function(a) {
return mX(a, this.b)
};
nX.prototype.Vi = function() {
return "CMF(" + this.b + ")"
};
nX.prototype.ca = function(a) {
return YV(this, "main", a)
};
nX.prototype.Pb = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
var j_ = nX.prototype;
j_.series = j_.ca;
j_.period = j_.Pb;
$.H("anychart.math.dmi.initContext", oX);
$.H("anychart.math.dmi.startFunction", pX);
$.H("anychart.math.dmi.calculate", rX);
$.H("anychart.math.dmi.calculationFunction", sX);
$.H("anychart.math.dmi.createComputer", tX);
$.I(uX, VV);
$.f = uX.prototype;
$.f.fe = function(a) {
return tX(a, this.b, this.j, this.D)
};
$.f.Vi = function(a) {
switch (a) {
case "pdi":
return "+DI(" + this.b + ")";
case "ndi":
return "-DI(" + this.b + ")";
case "adx":
return "ADX(" + this.j + ")"
}
return ""
};
$.f.Wz = function(a, b, c) {
switch (c) {
case "pdi":
a.wh("value", b.Yk("pdiResult"));
break;
case "ndi":
a.wh("value", b.Yk("ndiResult"));
break;
case "adx":
a.wh("value", b.Yk("adxResult"))
}
};
$.f.qfa = function(a) {
return YV(this, "pdi", a)
};
$.f.Kda = function(a) {
return YV(this, "ndi", a)
};
$.f.g6 = function(a) {
return YV(this, "adx", a)
};
$.f.Pb = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
$.f.xA = function(a) {
return $.n(a) ? (a = $.on(a, this.j, !1), a != this.j && (this.j = a, ZV(this)), this) : this.j
};
$.f.AN = function(a) {
return $.n(a) ? (a = !!a, a != this.D && (this.D = a, ZV(this)), this) : this.D
};
var k_ = uX.prototype;
k_.pdiSeries = k_.qfa;
k_.ndiSeries = k_.Kda;
k_.adxSeries = k_.g6;
k_.period = k_.Pb;
k_.adxPeriod = k_.xA;
k_.useWildersSmoothing = k_.AN;
$.I(vX, VV);
vX.prototype.fe = function(a) {
return bX(a, this.b)
};
vX.prototype.Vi = function() {
return "EMA(" + this.b + ")"
};
vX.prototype.ca = function(a) {
return YV(this, "main", a)
};
vX.prototype.Pb = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
var l_ = vX.prototype;
l_.series = l_.ca;
l_.period = l_.Pb;
$.H("anychart.math.stochastic.initContext", wX);
$.H("anychart.math.stochastic.startFunction", xX);
$.H("anychart.math.stochastic.calculate", yX);
$.H("anychart.math.stochastic.calculationFunction", zX);
$.H("anychart.math.stochastic.createComputer", AX);
$.H("anychart.math.kdj.initContext", BX);
$.H("anychart.math.kdj.startFunction", CX);
$.H("anychart.math.kdj.calculate", DX);
$.H("anychart.math.kdj.calculationFunction", EX);
$.H("anychart.math.kdj.createComputer", FX);
$.I(GX, VV);
$.f = GX.prototype;
$.f.fe = function(a) {
return FX(a, this.D, this.b, this.j, this.R, this.K, this.X, this.Y)
};
$.f.Vi = function(a) {
switch (a) {
case "kSeries":
return "%K(" + this.D + (1 != this.b ? ", " + this.b : "") + ")";
case "dSeries":
return "%D(" + this.j + ")";
case "jSeries":
return "%J"
}
return ""
};
$.f.Wz = function(a, b, c) {
switch (c) {
case "kSeries":
a.wh("value", b.Yk("kResult"));
break;
case "dSeries":
a.wh("value", b.Yk("dResult"));
break;
case "jSeries":
a.wh("value", b.Yk("jResult"))
}
};
$.f.D8 = function(a) {
return YV(this, "kSeries", a)
};
$.f.B8 = function(a) {
return YV(this, "dSeries", a)
};
$.f.Hca = function(a) {
return YV(this, "jSeries", a)
};
$.f.ZB = function(a) {
return $.n(a) ? (a = $.on(a, this.D, !1), a != this.D && (this.D = a, ZV(this)), this) : this.D
};
$.f.eG = function(a) {
return $.n(a) ? (a = VT(a, this.R), a != this.R && (this.R = a, ZV(this)), this) : this.R
};
$.f.C8 = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
$.f.xE = function(a) {
return $.n(a) ? (a = VT(a, this.K), a != this.K && (this.K = a, ZV(this)), this) : this.K
};
$.f.A8 = function(a) {
return $.n(a) ? (a = $.on(a, this.j, !1), a != this.j && (this.j = a, ZV(this)), this) : this.j
};
$.f.fS = function(a) {
return $.n(a) ? (a = $.Q(a), (0, window.isNaN)(a) || a == this.X || (this.X = a, ZV(this)), this) : this.X
};
$.f.PP = function(a) {
return $.n(a) ? (a = $.Q(a), (0, window.isNaN)(a) || a == this.Y || (this.Y = a, ZV(this)), this) : this.Y
};
var m_ = GX.prototype;
m_.kPeriod = m_.ZB;
m_.kMAType = m_.eG;
m_.kMAPeriod = m_.C8;
m_.dMAType = m_.xE;
m_.dPeriod = m_.A8;
m_.kMultiplier = m_.fS;
m_.dMultiplier = m_.PP;
m_.kSeries = m_.D8;
m_.dSeries = m_.B8;
m_.jSeries = m_.Hca;
$.H("anychart.math.macd.initContext", HX);
$.H("anychart.math.macd.startFunction", IX);
$.H("anychart.math.macd.calculate", JX);
$.H("anychart.math.macd.calculationFunction", KX);
$.H("anychart.math.macd.createComputer", LX);
$.I(MX, VV);
$.f = MX.prototype;
$.f.fe = function(a) {
return LX(a, this.b, this.j, this.D)
};
$.f.Vi = function(a) {
switch (a) {
case "macd":
return "MACD(" + this.b + "," + this.j + "," + this.D + ")";
case "signal":
return "Signal";
case "histogram":
return "Histogram"
}
return ""
};
$.f.Wz = function(a, b, c) {
switch (c) {
case "macd":
a.wh("value", b.Yk("macdResult"));
break;
case "signal":
a.wh("value", b.Yk("signalResult"));
break;
case "histogram":
a.wh("value", b.Yk("histogramResult"))
}
};
$.f.Sca = function(a) {
return YV(this, "macd", a)
};
$.f.uga = function(a) {
return YV(this, "signal", a)
};
$.f.tca = function(a) {
return YV(this, "histogram", a)
};
$.f.Fy = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
$.f.aA = function(a) {
return $.n(a) ? (a = $.on(a, this.j, !1), a != this.j && (this.j = a, ZV(this)), this) : this.j
};
$.f.tga = function(a) {
return $.n(a) ? (a = $.on(a, this.D, !1), a != this.D && (this.D = a, ZV(this)), this) : this.D
};
var n_ = MX.prototype;
n_.macdSeries = n_.Sca;
n_.signalSeries = n_.uga;
n_.histogramSeries = n_.tca;
n_.fastPeriod = n_.Fy;
n_.slowPeriod = n_.aA;
n_.signalPeriod = n_.tga;
$.H("anychart.math.mfi.initContext", NX);
$.H("anychart.math.mfi.startFunction", OX);
$.H("anychart.math.mfi.calculate", PX);
$.H("anychart.math.mfi.calculationFunction", QX);
$.H("anychart.math.mfi.createComputer", RX);
$.I(SX, VV);
SX.prototype.fe = function(a) {
return RX(a, this.b)
};
SX.prototype.Vi = function() {
return "MFI(" + this.b + ")"
};
SX.prototype.ca = function(a) {
return YV(this, "series", a)
};
SX.prototype.Pb = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
var o_ = SX.prototype;
o_.period = o_.Pb;
o_.series = o_.ca;
$.H("anychart.math.mma.initContext", TX);
$.H("anychart.math.mma.startFunction", UX);
$.H("anychart.math.mma.calculationFunction", VX);
$.H("anychart.math.mma.createComputer", WX);
$.I(XX, VV);
XX.prototype.fe = function(a) {
return WX(a, this.b)
};
XX.prototype.Vi = function() {
return "MMA(" + this.b + ")"
};
XX.prototype.ca = function(a) {
return YV(this, "main", a)
};
XX.prototype.Pb = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
var p_ = XX.prototype;
p_.series = p_.ca;
p_.period = p_.Pb;
$.H("anychart.math.momentum.initContext", YX);
$.H("anychart.math.momentum.startFunction", ZX);
$.H("anychart.math.momentum.calculate", $X);
$.H("anychart.math.momentum.calculationFunction", aY);
$.H("anychart.math.momentum.createComputer", bY);
$.I(cY, VV);
cY.prototype.fe = function(a) {
return bY(a, this.b)
};
cY.prototype.Vi = function() {
return "Momentum(" + this.b + ")"
};
cY.prototype.ca = function(a) {
return YV(this, "series", a)
};
cY.prototype.Pb = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
var q_ = cY.prototype;
q_.period = q_.Pb;
q_.series = q_.ca;
$.H("anychart.math.psar.initContext", dY);
$.H("anychart.math.psar.startFunction", eY);
$.H("anychart.math.psar.calculate", kY);
$.H("anychart.math.psar.calculationFunction", lY);
$.H("anychart.math.psar.createComputer", mY);
$.I(nY, VV);
$.f = nY.prototype;
$.f.fe = function(a) {
return mY(a, this.D, this.j, this.b)
};
$.f.Vi = function() {
return "PSAR(" + this.D + ", " + this.j + ", " + this.b + ")"
};
$.f.ca = function(a) {
return YV(this, "series", a)
};
$.f.R5 = function(a) {
return $.n(a) ? (a = $.Q(a) || this.b, a != this.D && (this.D = a, ZV(this)), this) : this.D
};
$.f.Q5 = function(a) {
return $.n(a) ? (a = $.Q(a) || this.b, a != this.b && (this.b = a, ZV(this)), this) : this.b
};
$.f.P5 = function(a) {
return $.n(a) ? (a = $.Q(a) || this.j, a != this.j && (this.j = a, ZV(this)), this) : this.j
};
var r_ = nY.prototype;
r_.accelerationFactorStart = r_.R5;
r_.accelerationFactorMaximum = r_.Q5;
r_.accelerationFactorIncrement = r_.P5;
r_.series = r_.ca;
$.H("anychart.math.rsi.initContext", oY);
$.H("anychart.math.rsi.startFunction", pY);
$.H("anychart.math.rsi.calculationFunction", qY);
$.H("anychart.math.rsi.createComputer", rY);
$.I(sY, VV);
sY.prototype.fe = function(a) {
return rY(a, this.b)
};
sY.prototype.Vi = function() {
return "RSI(" + this.b + ")"
};
sY.prototype.ca = function(a) {
return YV(this, "main", a)
};
sY.prototype.Pb = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
var s_ = sY.prototype;
s_.series = s_.ca;
s_.period = s_.Pb;
$.H("anychart.math.roc.initContext", tY);
$.H("anychart.math.roc.startFunction", uY);
$.H("anychart.math.roc.calculationFunction", vY);
$.H("anychart.math.roc.createComputer", wY);
$.I(xY, VV);
xY.prototype.fe = function(a) {
return wY(a, this.b)
};
xY.prototype.Vi = function() {
return "RoC(" + this.b + ")"
};
xY.prototype.ca = function(a) {
return YV(this, "main", a)
};
xY.prototype.Pb = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
var t_ = xY.prototype;
t_.series = t_.ca;
t_.period = t_.Pb;
$.I(yY, VV);
yY.prototype.fe = function(a) {
return qW(a, this.b)
};
yY.prototype.Vi = function() {
return "SMA(" + this.b + ")"
};
yY.prototype.ca = function(a) {
return YV(this, "main", a)
};
yY.prototype.Pb = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
var u_ = yY.prototype;
u_.series = u_.ca;
u_.period = u_.Pb;
$.I(zY, VV);
$.f = zY.prototype;
$.f.fe = function(a) {
return AX(a, this.D, this.b, this.j, this.R, this.K)
};
$.f.Vi = function(a) {
switch (a) {
case "kSeries":
return "%K(" + this.D + (1 != this.b ? ", " + this.b : "") + ")";
case "dSeries":
return "%D(" + this.j + ")"
}
return ""
};
$.f.Wz = function(a, b, c) {
switch (c) {
case "kSeries":
a.wh("value", b.Yk("kResult"));
break;
case "dSeries":
a.wh("value", b.Yk("dResult"))
}
};
$.f.I8 = function(a) {
return YV(this, "kSeries", a)
};
$.f.G8 = function(a) {
return YV(this, "dSeries", a)
};
$.f.ZB = function(a) {
return $.n(a) ? (a = $.on(a, this.D, !1), a != this.D && (this.D = a, ZV(this)), this) : this.D
};
$.f.eG = function(a) {
return $.n(a) ? (a = VT(a, this.R), a != this.R && (this.R = a, ZV(this)), this) : this.R
};
$.f.H8 = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
$.f.xE = function(a) {
return $.n(a) ? (a = VT(a, this.K), a != this.K && (this.K = a, ZV(this)), this) : this.K
};
$.f.E8 = function(a) {
return $.n(a) ? (a = $.on(a, this.j, !1), a != this.j && (this.j = a, ZV(this)), this) : this.j
};
var v_ = zY.prototype;
v_.kPeriod = v_.ZB;
v_.kMAType = v_.eG;
v_.kMAPeriod = v_.H8;
v_.dMAType = v_.xE;
v_.dPeriod = v_.E8;
v_.kSeries = v_.I8;
v_.dSeries = v_.G8;
$.H("anychart.math.williamsR.initContext", AY);
$.H("anychart.math.williamsR.startFunction", BY);
$.H("anychart.math.williamsR.calculate", CY);
$.H("anychart.math.williamsR.calculationFunction", DY);
$.H("anychart.math.williamsR.createComputer", EY);
$.I(FY, VV);
FY.prototype.fe = function(a) {
return EY(a, this.b)
};
FY.prototype.Vi = function() {
return "Williams %R(" + this.b + ")"
};
FY.prototype.ca = function(a) {
return YV(this, "series", a)
};
FY.prototype.Pb = function(a) {
return $.n(a) ? (a = $.on(a, this.b, !1), a != this.b && (this.b = a, ZV(this)), this) : this.b
};
var w_ = FY.prototype;
w_.period = w_.Pb;
w_.series = w_.ca;
var GY = {};
GY.adl = gW;
GY.ama = lW;
GY.aroon = BW;
GY.atr = wW;
GY.bbands = HW;
GY["bbands-b"] = MW;
GY["bbands-width"] = RW;
GY.cci = XW;
GY.cho = hX;
GY.cmf = nX;
GY.dmi = uX;
GY.ema = vX;
GY.kdj = GX;
GY.macd = MX;
GY.mfi = SX;
GY.mma = XX;
GY.momentum = cY;
GY.psar = nY;
GY.roc = xY;
GY.rsi = sY;
GY.sma = yY;
GY.stochastic = zY;
GY["williams-r"] = FY;
$.I(LY, $.es);
LY.prototype.gK = window.NaN;
LY.prototype.xa = $.es.prototype.xa | 68;
LY.prototype.ta = $.es.prototype.ta | 16908224;
var x_ = {};
$.T(x_, 0, "pointWidth", $.jn);
$.T(x_, 0, "maxPointWidth", $.jn);
$.T(x_, 0, "minPointLength", $.jn);
$.$o(LY, x_);
$.f = LY.prototype;
$.f.TD = function(a, b, c) {
return this.be("area", a, b, c)
};
$.f.oP = function(a, b, c) {
return this.be("candlestick", a, b, c)
};
$.f.PA = function(a, b, c) {
return this.be("column", a, b, c)
};
$.f.eS = function(a, b, c) {
return this.be("jump-line", a, b, c)
};
$.f.uU = function(a, b, c) {
return this.be("stick", a, b, c)
};
$.f.line = function(a, b, c) {
return this.be("line", a, b, c)
};
$.f.ev = function(a, b, c) {
return this.be("marker", a, b, c)
};
$.f.US = function(a, b, c) {
return this.be("ohlc", a, b, c)
};
$.f.uT = function(a, b, c) {
return this.be("range-area", a, b, c)
};
$.f.vT = function(a, b, c) {
return this.be("range-column", a, b, c)
};
$.f.wT = function(a, b, c) {
return this.be("range-spline-area", a, b, c)
};
$.f.xT = function(a, b, c) {
return this.be("range-step-area", a, b, c)
};
$.f.kU = function(a, b, c) {
return this.be("spline", a, b, c)
};
$.f.lU = function(a, b, c) {
return this.be("spline-area", a, b, c)
};
$.f.rU = function(a, b, c) {
return this.be("step-area", a, b, c)
};
$.f.tU = function(a, b, c) {
return this.be("step-line", a, b, c)
};
$.f.OR = function(a, b, c) {
return this.be("hilo", a, b, c)
};
$.f.Kk = function(a) {
var b = [],
c = this.cp(),
d = arguments.length;
$.V(this);
if (d)
for (var e = 0; e < d; e++) b.push(this.be(c, arguments[e]));
else b.push(this.be(c, null));
this.ga(!0);
return b
};
$.f.Kw = function(a) {
return $.Aa(this.Da, function(b) {
return b.id() == a
})
};
$.f.We = function(a) {
return this.Vh(this.Kw(a))
};
$.f.Vh = function(a) {
return this.Da[a] || null
};
$.f.bm = function() {
return this.Da.length
};
$.f.Go = function(a) {
return this.An(this.Kw(a))
};
$.f.An = function(a) {
var b = this.Da[a];
b && ($.jo++, $.Ga(this.Da, a, 1), $.M(b), this.B(34944, 1), $.mo());
return this
};
$.f.Np = function() {
if (this.Da.length) {
$.jo++;
var a = this.Da;
this.Da = [];
$.rd(a);
this.B(34944, 1);
$.mo()
}
return this
};
$.f.mf = function() {
return this.Da
};
$.f.pq = function(a) {
return $.n(a) ? (this.qw = a, this) : this.qw || {}
};
$.f.jK = function(a) {
return a.check(32768) ? 31 : 30
};
$.f.be = function(a, b, c, d) {
var e = this.Qa.vu(a);
e ? (a = new CV(this.Qa, this, a, e[1]), e = (e = this.Da[this.Da.length - 1]) ? e.vg() + 1 : 0, this.Da.push(a), a.vg(e), $.Wx(a), a.data(b || null, c, d), a.clip(!0), a.Rp(this.ec().lc(e)), $.Zx(a, this.kf().lc(e)), a.Av(this.Ud().lc(e)), a.kb(this), $.U(a, this.bH, this), this.B(2176, 1)) : a = null;
return a
};
HY(LY);
$.f = LY.prototype;
$.f.cp = function(a) {
return $.n(a) ? (this.SP = a = UT(a), this) : this.SP
};
$.f.hc = function() {
return this.Qa
};
$.f.Ww = function() {
for (var a = this.Da.length; a--;) this.Da[a].ro() && this.Da[a].B(1024)
};
$.f.Jz = function(a) {
for (var b = 0; b < this.Da.length; b++) {
var c = this.Da[b];
c && c.tM()
}
a || this.Ww()
};
$.f.Vw = function(a, b) {
var c, d = 1024;
a && (d |= 4);
for (c = 0; c < this.Da.length; c++) this.Da[c] && this.Da[c].B(d);
this.Uk && this.Uk.B(64);
this.Qa.D && this.Jj().az();
for (c = 0; c < this.sf.length; c++)
if (d = this.sf[c]) $.V(d), d.po(), d.ga(!1);
var e = $.Ka(this.lj, this.mj, this.Fj, this.Hj);
for (c = 0; c < e.length; c++)(d = e[c]) && d.B(64);
d = 16;
a && (d |= 4);
this.Dc && this.Dc.B(d);
!b && this.ej && this.ej.enabled() && this.ej.B(d);
for (c = 0; c < this.st.length; c++)(d = this.st[c]) && d.B(20);
this.B(126848)
};
$.f.Pf = function() {
NY(this);
return this.Ej
};
$.f.Ew = function() {
return 32781
};
$.f.background = function(a) {
this.Na || (this.Na = new $.gs, this.Na.enabled(!1), this.Na.zIndex(1), $.U(this.Na, this.Rg, this));
return $.n(a) ? (this.Na.P(a), this) : this.Na
};
$.f.Te = function(a) {
this.ej || (this.ej = new $.zu, $.O(this, this.ej), $.U(this.ej, this.YS, this), this.ej.la("dragstart", function() {
lZ(this.Qa)
}, !1, this), this.ej.la("dragend", function() {
nZ(this.Qa)
}, !1, this), this.ej.kb(this));
return $.n(a) ? (this.ej.P(a), this) : this.ej
};
$.f.bb = function(a) {
if ($.n(a)) {
if (a = $.pr(this.Xc, a, null, 3, ["Stock plot Y scale", "scatter", "linear, log"], this.Mx, this)) {
var b = this.Xc == a;
this.Xc = a;
this.Xc.ga(b);
b || (this.Vw(!1), this.sa(1))
}
return this
}
this.Xc || (this.Xc = $.lr(), $.U(this.Xc, this.Mx, this));
return this.Xc
};
$.f.Mx = function(a) {
for (var b = 0, c = 0; c < this.Da.length; c++) {
var d = this.Da[c];
d && d.enabled() && d.bb() == this.Xc && (b |= d.B(1024))
}
b && (b = 1, $.W(a, 4) && (b |= 4), this.B(128, b))
};
$.f.Gj = function(a, b) {
var c = $.Q(a);
if ((0, window.isNaN)(c)) {
c = 0;
var d = a
} else c = a, d = b;
var e = this.sf[c];
e || (e = new $.aw, this.sf[c] = e, e.P(this.zJ), e.kb(this), $.U(e, this.oha, this), this.B(260, 1));
return $.n(d) ? (e.P(d), this) : e
};
$.f.l0 = function(a, b) {
var c = $.Q(a);
if ((0, window.isNaN)(c)) {
c = 0;
var d = a
} else c = a, d = b;
var e = this.st[c];
e || (e = new XU, this.st[c] = e, e.zIndex(150), e.j = this, e.$(this.E$, !0), e.kb(this), $.U(e, this.zfa, this), this.B(16384, 1));
return $.n(d) ? (e.P(d), this) : e
};
$.f.gi = function(a) {
this.Dc || (this.Dc = new WU(this.Qa), this.Dc.kb(this), this.Dc.enabled(!1), this.Dc.zIndex(35), $.U(this.Dc, this.KU, this), this.B(516, 1));
return $.n(a) ? (this.Dc.P(a), this) : this.Dc
};
$.f.dF = function(a) {
return a ? this.sf[a - 1] : this.Dc
};
$.f.Ry = function() {
return this.Dc
};
$.f.Uy = function(a) {
return this.sf[a]
};
$.f.fo = function(a) {
return (a ? this.mw : this.ow).zIndex + .001 * $.Ka(this.lj, this.mj, this.Fj, this.Hj).length
};
$.f.Oo = function(a, b) {
var c = $.Q(a);
if ((0, window.isNaN)(c)) {
c = 0;
var d = a
} else c = a, d = b;
var e = this.lj[c];
e || (e = new YU, e.ak = this, $.jw(e, "vertical"), e.P(this.mw), e.zIndex(this.fo(!0)), this.lj[c] = e, $.O(this, e), $.U(e, this.OL, this), this.B(1024, 1));
return $.n(d) ? (e.P(d), this) : e
};
$.f.Qo = function(a, b) {
var c = $.Q(a);
if ((0, window.isNaN)(c)) {
c = 0;
var d = a
} else c = a, d = b;
var e = this.mj[c];
e || (e = new YU, e.ak = this, $.jw(e, "horizontal"), e.P(this.mw), e.zIndex(this.fo(!0)), this.mj[c] = e, $.O(this, e), $.U(e, this.OL, this), this.B(1024, 1));
return $.n(d) ? (e.P(d), this) : e
};
$.f.eq = function(a, b) {
var c = $.Q(a);
if ((0, window.isNaN)(c)) {
c = 0;
var d = a
} else c = a, d = b;
var e = this.Fj[c];
e || (e = new YU, e.ak = this, $.jw(e, "vertical"), e.P(this.ow), e.zIndex(this.fo(!1)), this.Fj[c] = e, $.O(this, e), $.U(e, this.OL, this), this.B(1024, 1));
return $.n(d) ? (e.P(d), this) : e
};
$.f.gq = function(a, b) {
var c = $.Q(a);
if ((0, window.isNaN)(c)) {
c = 0;
var d = a
} else c = a, d = b;
var e = this.Hj[c];
e || (e = new YU, e.ak = this, $.jw(e, "horizontal"), e.P(this.ow), e.zIndex(this.fo(!1)), this.Hj[c] = e, $.O(this, e), $.U(e, this.OL, this), this.B(1024, 1));
return $.n(d) ? (e.P(d), this) : e
};
$.f.remove = function() {
this.Ya && this.Ya.remove()
};
$.f.aa = function() {
if (!this.xc()) return this;
$.V(this);
var a = this.Gp().label();
var b = this.dl();
a.visible() !== b && this.Ya && (b = this.dispatchEvent({
type: "datachanged",
chart: this,
hasData: !b
}) && b);
a.visible(b);
this.TE();
this.O(2) && (this.Ya.parent(this.U()), this.N(2));
this.O(8) && (this.Ya.zIndex(this.zIndex()), this.N(8));
if (this.O(4096)) {
var c = this.ec(),
d = this.kf(),
e = this.Ud();
for (b = 0; b < this.Da.length; b++) {
var g = this.Da[b];
var h = g.vg();
g.Rp(c.lc(h));
$.Zx(g, d.lc(h));
g.Av(e.lc(h))
}
this.Vw(!1);
this.N(4096)
}
NY(this);
if (this.O(256)) {
for (b = 0; b < this.sf.length; b++)
if (g = this.sf[b]) $.V(g), g.scale() || g.scale(this.bb()), $.Ls(g.labels()), $.Ls(g.gb()), g.U(this.Ya), g.aa(), g.ga(!1);
this.N(256)
}
this.O(512) && (this.Dc && ($.V(this.Dc), this.Dc.scale(this.Qa.Wa()), this.Dc.U(this.Ya), this.Dc.aa(), this.Dc.ga(!1)), this.N(512));
if (this.O(1024)) {
g = $.Ka(this.lj, this.mj, this.Fj, this.Hj);
for (b = 0; b < g.length; b++)
if (c = g[b]) $.V(c), c.scale() || (c.Gb() ? c.scale(this.bb()) : c.scale(this.Qa.Wa())), c.oa(this.Ej), c.U(this.Ya), c.aa(), c.ga(!1);
this.N(1024)
}
this.O(64) &&
(this.Na && ($.V(this.Na), this.Na.U(this.Ya), this.Na.aa(), this.Na.ga(!1)), this.N(64));
if (this.O(128)) {
c = "direct" == this.bb().Cv();
for (b = 0; b < this.Da.length; b++)
if (g = this.Da[c ? this.Da.length - b - 1 : b]) $.V(g), g.oa(this.Ej), g.U(this.Ya), g.aa(), g.ga(!1);
this.Jz(!0);
this.N(128)
}
this.O(8192) && (this.Qa.D && (b = this.Jj(), $.V(b), b.oa(this.Ej), b.U(this.Ya), b.aa(), b.ga(!1)), this.N(8192));
this.O(65536) && (b = this.li(), $.V(b), b.oa(this.Ej), b.U(this.Ya), b.xh = 200, b.aa(), b.ga(!1), this.N(65536));
if (this.O(16384)) {
for (b = 0; b <
this.st.length; b++)
if (g = this.st[b]) $.V(g), g.oa(this.Ej), g.U(this.Ya), g.aa(), g.ga(!1);
this.N(16384)
}
this.O(16777216) && (b = this.dg(), $.V(b), b.oa(this.Pf()), b.U(this.Ya), b.gi(this.Dc), b.aa(), b.ga(!1), this.N(16777216));
this.O(32768) && ($.V(a), a.U(this.Ya), a.oa(this.Ej), a.aa(), a.ga(!1), this.N(32768));
this.ga(!1);
return this
};
$.f.TE = function() {
this.Ya || (this.Ya = $.sj(), $.$r(this, this.Ya), this.Yi = this.Ya.rect(), this.Yi.zIndex(199), this.Yi.fill($.al), this.Yi.stroke(null), this.yc.Ae(this.Yi, "mousedown", this.Uw), this.yc.Ae(this.Yi, "touchstart", this.Uw), this.yc.la(this.Yi, "touchstart", this.fca), this.yc.la(this.Yi, "touchend", this.eca), this.yc.la(this.Yi, "mouseover", this.yZ), this.yc.la(this.Yi, "mousemove", this.yZ), this.yc.la(this.Yi, "mouseout", this.bca), this.yc.la(this.Yi, "mousedown", this.aca))
};
$.f.YY = function(a, b, c) {
b = b || ((0, window.isNaN)(this.XK) ? TU(this.Qa.b) : this.XK);
var d;
return !(0, window.isNaN)(b) && (d = a) && ($.y(d) && (d = $.rs($.ps.Ic(), d)), $.G(d)) ? (a = this.Qa.ko(), b = {
value: {
value: b,
type: "date-time"
},
rawValue: {
value: c,
type: "date-time"
},
hoveredDate: {
value: b,
type: "date-time"
},
dataIntervalUnit: {
value: a.eo().unit,
type: "string"
},
dataIntervalUnitCount: {
value: a.eo().count,
type: "number"
},
isGrouped: {
value: a.VB(),
type: ""
}
}, b = $.Vt(new $.gu(b)), d.call(b, b)) : null
};
$.f.YS = function(a) {
var b = 0,
c = 1;
$.W(a, 1) && (b |= 2048);
$.W(a, 8) && (b |= 4, c |= 8);
this.B(b, c)
};
$.f.Vl = function(a, b) {
for (var c = [], d = 0; d < this.Da.length; d++) {
var e = this.Da[d];
if (e) {
var g = e.DB(b);
g.sourceUid = $.oa(this);
g.sourceKey = e.id();
c.push(g)
}
}
return c
};
$.f.Or = function(a) {
return "default" == a
};
$.f.Iq = function(a) {
a = a.Mh();
if (a = this.We(a)) a.enabled(!a.enabled()), a.enabled() ? a.Wj() : a.wd()
};
$.f.vp = function(a) {
var b = a.Mh();
(!a || null != b || (0, window.isNaN)(b)) && (a = this.We(b)) && a.Wj()
};
$.f.up = function(a) {
var b = a.Mh();
(!a || null != b || (0, window.isNaN)(b)) && (a = this.We(b)) && a.wd()
};
$.f.GG = function() {
return !0
};
$.f.bM = function(a) {
return (0, $.eb)(this.Da, function(b) {
return {
series: b,
point: b && b.enabled() && b.bM(a) || null
}
})
};
$.f.sn = function(a, b, c, d) {
if (this.Ya && this.Ej && this.enabled()) {
var e = "sticky" == this.dg().I("displayMode") ? a : b,
g = this.Qa.Wa().transform(e),
h = $.bc(this.dg().I("yStroke")),
k = this.Ej.left + g * this.Ej.width;
k = $.Dn(k, h);
h = this.dg();
var l = this.dG;
$.n(l) && (h.LU = l);
h = this.dg();
l = this.dG;
c = c != this;
h.enabled() && (c ? h.NR() : $.n(d) && (c = $.dj(h.U().Ea()), d -= c.y, h.tw(h.hk, !1, k, d)), h.aB(h.Dc, !0, k, d || 0), h.tw(h.gk, !0, k, d || 0, g, l));
for (g = 0; g < this.Da.length; g++)(d = this.Da[g]) && d.sn(e);
this.ej && this.ej.enabled() && MY(this, null,
a, b);
this.sa(64)
}
};
$.f.CU = function() {
if (this.enabled()) {
this.XK = window.NaN;
for (var a = 0; a < this.Da.length; a++) {
var b = this.Da[a];
b && (b.j = null, b.K = !1)
}
this.dg().Bd();
this.ej && this.ej.enabled() && MY(this, null, TU(this.Qa.b));
this.sa(64)
}
};
$.f.vC = function() {
this.wg && this.wg.Bu && this.wg.vC();
this.Px && this.Qa.vC(this.Px.anchor)
};
$.f.Uw = function(a) {
this.wg = new QY(this, this.Yi);
this.wg.Fk(a.kk)
};
$.f.fca = function(a) {
var b = a.kk,
c = b.Fi.touches;
if (c && 1 < c.length && (this.wg.yw(b), 2 == c.length)) {
b = [];
for (var d = {}, e = 0; 2 > e; e++) {
var g = c[e];
b[e + e] = void 0 !== g.clientX ? g.clientX : g.pageX;
b[e + e + 1] = void 0 !== g.clientY ? g.clientY : g.pageY;
d[g.identifier] = !0
}
this.Px = {
anchor: pZ(this.Qa),
x: (b[0] + b[2]) / 2,
y: (b[1] + b[3]) / 2,
Ef: $.$l.apply(null, b),
wca: d
};
$.Ed($.vo, "touchmove", this.BZ, {
capture: !0,
passive: !1
}, this);
a.preventDefault()
}
};
$.f.BZ = function(a) {
var b = a.Fi.touches;
if (this.Px && b && 1 < b.length) {
for (var c = [], d = 0; d < b.length; d++) {
var e = b[d];
e.identifier in this.Px.wca && (c[d + d] = void 0 !== e.clientX ? e.clientX : e.pageX, c[d + d + 1] = void 0 !== e.clientY ? e.clientY : e.pageY)
}
b = (c[0] + c[2]) / 2;
d = $.$l.apply(null, c);
this.JN = {
anchor: this.Px.anchor,
x: b,
y: (c[1] + c[3]) / 2,
Ef: d,
uq: (b - this.Px.x) / this.Ej.width,
w$: d / this.Px.Ef
};
$.n(this.q2) || (this.q2 = $.mk.requestAnimationFrame(this.vha));
a.preventDefault()
}
};
$.f.eca = function(a) {
a = a.kk.Fi;
var b = a.touches;
1 == b.length && ($.Od($.vo, "touchmove", this.BZ, {
capture: !0,
passive: !1
}, this), b = b[0], a = new $.vd(a), a.clientX = void 0 !== b.clientX ? b.clientX : b.pageX, a.clientY = void 0 !== b.clientY ? b.clientY : b.pageY, a.screenX = b.screenX || 0, a.screenY = b.screenY || 0, this.Px = null, this.wg.Fk(a))
};
$.f.yZ = function(a) {
if (this.Ej) {
var b = $.dj(this.U().Ea()),
c = a.clientX - b.x - this.Ej.left;
b = a.clientY - b.y - this.Ej.top;
0 <= c && c <= this.Ej.width && 0 <= b && b <= this.Ej.height && (this.gK = c / this.Ej.width, this.Faa = a.clientX, this.Gaa = a.clientY, a = this.dg(), c = this.dG, $.n(c) && (a.LU = c), $.n(this.Ci) || (this.Ci = $.mk.requestAnimationFrame(this.Ar)))
}
};
$.f.bca = function() {
this.dispatchEvent("mouseout");
this.gK = window.NaN;
$.n(this.Ci) || (this.Ci = $.mk.requestAnimationFrame(this.Ar))
};
$.f.aca = function() {
this.Qa.D && this.Jj().Jd()
};
$.f.dg = function(a) {
this.Tf || (this.Tf = new $.lx, this.Tf.cl = this, $.O(this, this.Tf), $.U(this.Tf, this.zz, this), this.B(16777216, 1));
return $.n(a) ? (this.Tf.P(a), this) : this.Tf
};
$.f.zz = function() {
this.B(16777216, 1)
};
$.f.Jj = function(a) {
this.Qa.D ? this.Df || (this.Df = new this.Qa.D.PlotController(this.Qa.Jj(), this), $.U(this.Df, this.vO, this), this.Df.kb(this)) : $.jk(4, null, ["Annotations"]);
return $.n(a) ? (this.Df && this.Df.P(a), this) : this.Df || null
};
$.f.li = function(a) {
this.Uk || (this.Uk = new SV(this, this.Qa.li()), $.U(this.Uk, this.taa, this), this.Uk.kb(this.Qa.li()));
return $.n(a) ? (this.Uk.P(a), this) : this.Uk
};
$.f.taa = function() {
this.B(65536, 1)
};
$.f.vO = function() {
this.B(8192, 1)
};
$.f.Rg = function() {
this.B(64, 1)
};
$.f.bH = function(a) {
var b = 1,
c = 128;
$.W(a, 64) && (c |= 2048);
$.W(a, 4) && (b |= 4);
this.B(c, b)
};
$.f.oha = function(a) {
var b = 256;
$.W(a, 8) && (b |= 4);
this.B(b, 1)
};
$.f.zfa = function() {
this.B(16384, 1)
};
$.f.KU = function(a) {
var b = 512;
$.W(a, 8) && (b |= 4);
this.B(b, 1)
};
$.f.OL = function() {
this.B(1024, 1)
};
$.f.ec = function(a) {
if ($.L(a, $.Tq)) return this.Zc($.Tq, a), this;
if ($.L(a, $.Pq)) return this.Zc($.Pq, a), this;
$.F(a) && "range" == a.type ? this.Zc($.Tq) : ($.F(a) || null == this.La) && this.Zc($.Pq);
return $.n(a) ? (this.La.P(a), this) : this.La
};
$.f.kf = function(a) {
this.$e || (this.$e = new $.Rq, $.U(this.$e, this.jg, this));
return $.n(a) ? (this.$e.P(a), this) : this.$e
};
$.f.Ud = function(a) {
this.Ad || (this.Ad = new $.Qq, $.U(this.Ad, this.jg, this));
return $.n(a) ? (this.Ad.P(a), this) : this.Ad
};
$.f.Zc = function(a, b) {
if ($.L(this.La, a)) b && this.La.P(b);
else {
var c = !!this.La;
$.M(this.La);
this.La = new a;
b && this.La.P(b);
$.U(this.La, this.jg, this);
c && this.B(4608, 1)
}
};
$.f.jg = function(a) {
$.W(a, 2) && this.B(4096, 1)
};
$.f.fJ = function() {
return new $.gt
};
$.f.SS = function(a) {
$.W(a, 1) && this.B(32768, 1)
};
$.f.Gp = function(a) {
this.Hp || (this.Hp = new $.Xs(this), $.U(this.Hp, this.SS, this));
return $.n(a) ? (this.Hp.P(a), this) : this.Hp
};
$.f.iL = function(a) {
var b = a.Ga;
b = b ? b.j.Nb() : 0;
return !(!a.enabled() || !b)
};
$.f.dl = function() {
for (var a = 0, b = this.Da.length, c = 0; c < b && !this.iL(this.Da[c]); c++) a++;
return a == b
};
$.f.W = function() {
$.rd(this.Df, this.Uk, this.Na, this.SB, this.Da, this.sf, this.Dc, this.st, this.Hp, this.Ya);
this.Na = this.Uk = this.Df = null;
delete this.SB;
delete this.Da;
delete this.sf;
delete this.st;
this.Hp = this.Dc = null;
delete this.qw;
delete this.mw;
delete this.ow;
delete this.zJ;
delete this.Ya;
$.rd(this.La, this.$e, this.Ad);
this.La = this.$e = this.Ad = null;
LY.F.W.call(this);
var a = this.Qa;
$.Ja(a.g, this) && a.B(4100, 9);
delete this.Qa
};
$.f.J = function() {
var a = LY.F.J.call(this),
b = {},
c = [],
d = [],
e, g;
$.kp(this, x_, a);
$.kp(this, x_, a);
b[$.oa(this.bb())] = this.bb().J();
c.push(b[$.oa(this.bb())]);
a.yScale = c.length - 1;
a.defaultSeriesType = this.cp();
a.background = this.background().J();
a.noDataLabel = this.Gp().label().J();
d.push($.oa(this.gi()));
a.xAxis = this.gi().J();
a.palette = this.ec().J();
a.markerPalette = this.kf().J();
a.hatchFillPalette = this.Ud().J();
a.crosshair = this.dg().J();
var h = [];
for (g = 0; g < this.sf.length; g++) {
var k = this.sf[g];
var l = k.J();
if (e =
k.scale()) {
var m = $.oa(e);
b[m] ? l.scale = (0, $.Ca)(c, b[m]) : (b[m] = e.J(), c.push(b[m]), l.scale = c.length - 1)
}
d.push($.oa(k));
h.push(l)
}
h.length && (a.yAxes = h);
l = [];
for (g = 0; g < this.st.length; g++)(e = this.st[g]) && (l[g] = e.J());
l.length && (a.priceIndicators = l);
OY("xGrids", this.lj, a, c, b, d);
OY("yGrids", this.mj, a, c, b, d);
OY("xMinorGrids", this.Fj, a, c, b, d);
OY("yMinorGrids", this.Hj, a, c, b, d);
d = [];
for (g = 0; g < this.Da.length; g++) {
e = this.Da[g];
l = e.J();
if (e = e.bb()) m = $.oa(e), b[m] ? l.yScale = (0, $.Ca)(c, b[m]) : (b[m] = e.J(), c.push(b[m]),
l.yScale = c.length - 1);
d.push(l)
}
d.length && (a.series = d);
c.length && (a.scales = c);
return a
};
$.f.$ = function(a, b) {
LY.F.$.call(this, a, b);
var c;
b ? $.bp(this.Ra, x_, a) : $.cp(this, x_, a);
this.cp(a.defaultSeriesType);
this.ec(a.palette);
this.kf(a.markerPalette);
this.Ud(a.hatchFillPalette);
this.Gp().label().ia(!!b, a.noDataLabel);
this.background(a.background);
this.gi(a.xAxis);
this.Te(a.legend);
var d = this.hc().Sa(),
e = a.scales,
g = {};
if ($.C(e))
for (c = 0; c < e.length; c++) {
var h = e[c];
$.y(h) && (h = {
type: h
});
h = $.nl(h, c, d);
var k = YT(h.type, !1);
k.P(h);
g[c] = k
} else if ($.F(e))
for (c in e) e.hasOwnProperty(c) && (h = e[c], $.y(h) &&
(h = {
type: h
}), h = $.nl(h, c, d), k = YT(h.type, !1), k.P(h), g[c] = k);
h = a.yScale;
$.B(h) ? k = g[h] : $.y(h) ? (k = YT(h, !0)) || (k = g[h]) : $.F(h) ? (k = YT(h.type, !1), k.P(h)) : k = null;
k && this.bb(k);
k = a.priceIndicators;
if ($.C(k))
for (c = 0; c < k.length; c++)(h = k[c]) && this.l0(c, h);
"defaultGridSettings" in a && (this.mw = a.defaultGridSettings);
"defaultPriceIndicatorSettings" in a && (this.E$ = a.defaultPriceIndicatorSettings);
k = a.xGrids;
if ($.C(k))
for (c = 0; c < k.length; c++) h = k[c], this.Oo(c, h), $.F(h) && "scale" in h && 1 < h.scale && this.Oo(c).scale(g[h.scale]);
k = a.yGrids;
if ($.C(k))
for (c = 0; c < k.length; c++) h = k[c], this.Qo(c, h), $.F(h) && "scale" in h && 1 < h.scale && this.Qo(c).scale(g[h.scale]);
"defaultMinorGridSettings" in a && (this.ow = a.defaultMinorGridSettings);
k = a.xMinorGrids;
if ($.C(k))
for (c = 0; c < k.length; c++) h = k[c], this.eq(c, h), $.F(h) && "scale" in h && 1 < h.scale && this.eq(c).scale(g[h.scale]);
k = a.yMinorGrids;
if ($.C(k))
for (c = 0; c < k.length; c++) h = k[c], this.gq(c, h), $.F(h) && "scale" in h && 1 < h.scale && this.gq(c).scale(g[h.scale]);
"defaultYAxisSettings" in a && (this.zJ = a.defaultYAxisSettings);
k = a.yAxes;
if ($.C(k))
for (c = 0; c < k.length; c++) h = k[c], this.Gj(c, h), $.F(h) && "scale" in h && 1 < h.scale && this.Gj(c).scale(g[h.scale]);
"defaultSeriesSettings" in a && this.pq(a.defaultSeriesSettings);
this.Qa.D && this.Jj(a.annotations);
k = a.series;
if ($.C(k))
for (c = 0; c < k.length; c++)
if (h = k[c], d = (h.seriesType || this.cp()).toLowerCase(), d = this.be(d, h.data)) d.P(h), $.F(h) && "yScale" in h && 1 < h.yScale && d.bb(g[h.yScale]);
this.dg(a.crosshair)
};
$.I(QY, $.Wf);
$.f = QY.prototype;
$.f.u8 = function() {
var a = this.b.Qa,
b = !a.ZK() && eZ(a, "selectedrangechangestart", "plot-drag");
b && (a.qb = !0, lZ(a), $.tf(window.document.body, "cursor", "ew-resize"));
return b
};
$.f.t8 = function() {
$.n(this.Ci) && ($.mk.cancelAnimationFrame(this.Ci), this.Ar(0));
var a = this.b.Qa;
a.qb = !1;
$.tf(window.document.body, "cursor", "");
eZ(a, "selectedrangechangefinish", "plot-drag");
nZ(a)
};
$.f.R9 = function(a) {
return !!PY(this.b.Qa, a.left / this.b.Ej.width, this.j)
};
$.f.vC = function() {
this.b.Qa.vC(this.j)
};
$.f.tr = function() {
this.j = pZ(this.b.Qa);
this.deltaY = this.deltaX = 0
};
$.f.Es = function(a) {
this.va = a / this.b.Ej.width;
this.D = this.j;
$.n(this.Ci) || (this.Ci = $.mk.requestAnimationFrame(this.Ar))
};
$.f.dC = function(a) {
var b = this.b.Ej.width;
return qZ(this.b.Qa, a / b, this.j) * b
};
$.f.ax = function() {
return 0
};
var y_ = LY.prototype;
y_.crosshair = y_.dg;
y_.background = y_.background;
y_.legend = y_.Te;
y_.area = y_.TD;
y_.candlestick = y_.oP;
y_.column = y_.PA;
y_.jumpLine = y_.eS;
y_.stick = y_.uU;
y_.line = y_.line;
y_.marker = y_.ev;
y_.ohlc = y_.US;
y_.rangeArea = y_.uT;
y_.rangeColumn = y_.vT;
y_.rangeSplineArea = y_.wT;
y_.rangeStepArea = y_.xT;
y_.spline = y_.kU;
y_.splineArea = y_.lU;
y_.stepArea = y_.rU;
y_.stepLine = y_.tU;
y_.hilo = y_.OR;
y_.getSeries = y_.We;
y_.yScale = y_.bb;
y_.yAxis = y_.Gj;
y_.xAxis = y_.gi;
y_.xGrid = y_.Oo;
y_.yGrid = y_.Qo;
y_.xMinorGrid = y_.eq;
y_.yMinorGrid = y_.gq;
y_.defaultSeriesType = y_.cp;
y_.addSeries = y_.Kk;
y_.getSeriesAt = y_.Vh;
y_.getSeriesCount = y_.bm;
y_.removeSeries = y_.Go;
y_.removeSeriesAt = y_.An;
y_.removeAllSeries = y_.Np;
y_.palette = y_.ec;
y_.markerPalette = y_.kf;
y_.hatchFillPalette = y_.Ud;
y_.annotations = y_.Jj;
y_.eventMarkers = y_.li;
y_.priceIndicator = y_.l0;
y_.noData = y_.Gp;
$.I(RY, CV);
$.f = RY.prototype;
$.f.hy = function(a, b) {
if (null === a.Db || a.wb & 4) throw Error("Wrong config for scroller series");
$.M(this.D);
$.M(this.G);
this.D = new $.uC[a.xb](this);
this.G = new(2 == a.Ab ? $.Rx : $.Sx)(this, a.Db, !!(a.wb & 524288), "secondaryShapes", a.yb);
RY.F.hy.call(this, a, b)
};
$.f.x0 = function() {
IU(this.nF().b, this.Ga, !1)
};
$.f.tK = function() {
return null
};
$.f.sK = function() {
return null
};
$.f.nF = function() {
return this.wa.hc()
};
$.f.Xf = function() {
return GU(this.Ga, !0, !0)
};
$.f.Er = function() {
return $.dl
};
$.f.remove = function() {
this.b && this.b.remove();
RY.F.remove.call(this)
};
$.f.nd = function() {
RY.F.nd.call(this);
this.D.nd(this.G)
};
$.f.wm = function(a, b) {
RY.F.wm.call(this, a, b);
this.D.wm(a, b)
};
$.f.Vk = function() {
RY.F.Vk.call(this);
this.D.Vk()
};
$.f.lT = function() {
RY.F.lT.call(this);
this.b || (this.b = $.sj());
this.b.zIndex(this.zIndex());
this.b.parent(this.ba);
this.O(1024) && this.G.au();
$.Ox(this.G, this.b)
};
$.f.SD = function() {
var a = this.zIndex();
this.Ba.zIndex(a);
this.b.zIndex(a)
};
$.f.W = function() {
this.remove();
RY.F.W.call(this)
};
SY.prototype.P = function(a) {
this.lb = [];
this.g = [];
(0, $.xa)(a, function(a) {
$.B(a) ? this.g.push(a) : $.F(a) && (a.Tla ? this.lb : this.g).push($.Q(a.value))
}, this);
this.b = $.Ka(this.lb, this.g);
$.Pa(this.b);
$.Ua(this.b)
};
SY.prototype.reset = function() {
this.j = -1
};
SY.prototype.advance = function() {
this.j++;
this.current = this.b[this.j];
this.D = $.Da(this.g, this.current);
this.R = $.Da(this.lb, this.current);
return !!this.current
};
SY.prototype.ka = function() {
return this.b.slice()
};
TY.prototype.P = function(a, b, c, d, e) {
this.start = a;
this.Y = e;
this.end = b;
this.G = c;
this.K = d;
this.ba = this.X = null;
this.reset()
};
TY.prototype.reset = function() {
var a = $.Bn(this.start, this.G, this.Y),
b = $.Bn(this.start, this.K, this.Y);
this.b = new $.vm(new Date(a));
this.g = window.NaN;
this.b.getTime() < this.start && (this.g = this.b.getTime(), this.g > this.end && (this.g = window.NaN), this.b.add(this.G));
for (this.j = new $.vm(new Date(b)); this.j.getTime() < this.start;) this.j.add(this.K)
};
TY.prototype.advance = function() {
var a = this.b.getTime(),
b = this.j.getTime();
this.current = Math.min(a, b);
this.D = a == this.current;
this.R = b == this.current;
if (a = this.current <= this.end) this.D && this.b.add(this.G), this.R && this.j.add(this.K);
return a
};
TY.prototype.ka = function(a) {
if (a) {
if (this.X) return this.X
} else if (this.ba) return this.ba;
var b = [];
for (this.reset(); this.advance();)(a && this.D || !a && this.R) && b.push(this.current);
a ? this.X = b : this.ba = b;
return b
};
$.I(UY, $.zp);
$.f = UY.prototype;
$.f.xa = 768;
$.f.Sa = function() {
return "stock-scatter-date-time"
};
$.f.xo = function(a) {
return $.n(a) ? (a = $.on(a, 1E3, !1), this.yp != a && (this.yp = a, this.Pc = !1, this.sa(512)), this) : this.yp
};
$.f.Qga = function(a) {
return $.n(a) ? (a = $.on(a, this.G, !1), this.G != a && (this.G = a, this.Pc = !1, this.sa(512)), this) : this.G
};
$.f.Taa = function() {
return this.X
};
$.f.Saa = function() {
return this.Y
};
$.f.TQ = function() {
return this.Ao
};
$.f.SQ = function() {
return this.Lq
};
$.f.vj = function(a) {
return (0, window.isNaN)($.Yj(a))
};
$.f.transform = function(a) {
return this.Lv(a, window.NaN)
};
$.f.Vc = function(a) {
return Math.round(a * (this.Lq - this.Ao) + this.Ao)
};
$.f.hw = function() {
return !1
};
$.f.Mw = function() {
this.nb();
return this.g ? this.D : this.K
};
$.f.nb = function() {
if (!this.Pc) {
this.sY();
if (this.Lq <= this.j || this.Ao >= this.R) {
var a = this.Ao;
var b = this.Lq
} else a = $.hb(this.Ao, this.j, this.R), b = $.hb(this.Lq, this.j, this.R);
var c = .25 * (this.fv - this.Qr + 1),
d = [];
$.Jc(this.gm, function(a) {
a.count > c && d.push(a)
});
var e = (0, $.Dg)(d, function(a, b) {
var c = $.Vn(a.yi, 1),
d = $.Vn(b.yi, 1);
if (c >= d) {
var e = a;
var g = b;
var h = c;
c = d
} else e = b, g = a, h = d;
return 60 < h / c ? e : g
}, d[0]);
if (e) {
var g = e.ke;
var h = $.Vn(e.yi, 1);
$.Jc(this.gm, function(a) {
a != e && (g += a.count * h)
})
} else g = Math.abs(b - a);
for (var k = Math.abs(g) / this.G, l = this.vd.length - 1, m, p = 0; p < l; p++)
if (k <= this.vd[p].ke) {
m = this.vd[p];
break
}
m || (m = this.vd[l]);
this.g ? (a = {
fullMin: this.j,
fullMax: this.R,
min: a,
max: b,
ticksCount: this.G,
scale: this
}, a = this.g.call(a, a), this.D.P(a)) : this.K.P(a, b, $.Cn(m.qG, m.pG), $.Cn(m.EG, m.DG), this.j);
this.Uca = m.qG;
this.Tca = m.pG;
this.Ada = m.EG;
this.zda = m.DG;
this.Pc = !0
}
};
$.f.sY = function() {
this.K || (this.K = new TY);
!this.D && this.g && (this.D = new SY)
};
$.f.Lv = function(a) {
return ($.Yj(a) - this.Ao) / (this.Lq - this.Ao)
};
$.f.oN = function(a) {
return this.transform(a)
};
$.f.fi = function(a) {
$.W(a, 2) && (this.Pc = !1, this.sa(512))
};
$.f.Ia = function(a) {
if ($.n(a)) {
if ($.G(a)) this.g = a, this.Pc = !1, this.sa(512);
else {
a = oga(a);
for (var b = a.length, c = b && b == this.vd.length, d = 0; c && d < b; d++) {
c = a[d];
var e = this.vd[d];
c = c.ke == e.ke && c.EG == e.EG && c.DG == e.DG && c.qG == e.qG && c.pG == e.pG
}
c || (this.vd = a, this.g = null, this.Pc = !1, this.sa(512))
}
return this
}
return this.g ? this.g : (0, $.eb)(this.vd, function(a) {
return {
minor: {
unit: a.EG,
count: a.DG
},
major: {
unit: a.qG,
count: a.pG
}
}
})
};
$.f.Dh = function(a) {
return this.b.Dh(a)
};
$.f.nf = function(a) {
return this.b.nf(a)
};
var nga = [{
minor: {
unit: "millisecond",
count: 1
},
major: {
unit: "millisecond",
count: 5
}
}, {
minor: {
unit: "millisecond",
count: 5
},
major: {
unit: "millisecond",
count: 20
}
}, {
minor: {
unit: "millisecond",
count: 20
},
major: {
unit: "millisecond",
count: 100
}
}, {
minor: {
unit: "millisecond",
count: 100
},
major: {
unit: "millisecond",
count: 500
}
}, {
minor: {
unit: "millisecond",
count: 500
},
major: {
unit: "second",
count: 2
}
}, {
minor: {
unit: "second",
count: 2
},
major: {
unit: "second",
count: 10
}
}, {
minor: {
unit: "second",
count: 10
},
major: {
unit: "second",
count: 30
}
}, {
minor: {
unit: "second",
count: 30
},
major: {
unit: "minute",
count: 2
}
}, {
minor: {
unit: "minute",
count: 2
},
major: {
unit: "minute",
count: 10
}
}, {
minor: {
unit: "minute",
count: 10
},
major: {
unit: "minute",
count: 30
}
}, {
minor: {
unit: "minute",
count: 30
},
major: {
unit: "hour",
count: 1
}
}, {
minor: {
unit: "hour",
count: 1
},
major: {
unit: "hour",
count: 3
}
}, {
minor: {
unit: "hour",
count: 3
},
major: {
unit: "hour",
count: 12
}
}, {
minor: {
unit: "hour",
count: 12
},
major: {
unit: "day",
count: 1
}
}, {
minor: {
unit: "day",
count: 1
},
major: {
unit: "week",
count: 1
}
}, {
minor: {
unit: "day",
count: 2
},
major: {
unit: "week",
count: 1
}
}, {
minor: {
unit: "week",
count: 1
},
major: {
unit: "month",
count: 1
}
}, {
minor: {
unit: "month",
count: 1
},
major: {
unit: "quarter",
count: 1
}
}, {
minor: {
unit: "quarter",
count: 1
},
major: {
unit: "semester",
count: 1
}
}, {
minor: {
unit: "semester",
count: 1
},
major: {
unit: "year",
count: 1
}
}, {
minor: {
unit: "year",
count: 1
},
major: {
unit: "year",
count: 2
}
}, {
minor: {
unit: "year",
count: 2
},
major: {
unit: "year",
count: 4
}
}, {
minor: {
unit: "year",
count: 3
},
major: {
unit: "year",
count: 6
}
}, {
minor: {
unit: "year",
count: 4
},
major: {
unit: "year",
count: 8
}
}, {
minor: {
unit: "year",
count: 5
},
major: {
unit: "year",
count: 10
}
}, {
minor: {
unit: "year",
count: 6
},
major: {
unit: "year",
count: 12
}
}, {
minor: {
unit: "year",
count: 7
},
major: {
unit: "year",
count: 14
}
}, {
minor: {
unit: "year",
count: 8
},
major: {
unit: "year",
count: 16
}
}, {
minor: {
unit: "year",
count: 9
},
major: {
unit: "year",
count: 18
}
}, {
minor: {
unit: "year",
count: 10
},
major: {
unit: "year",
count: 20
}
}, {
minor: {
unit: "year",
count: 20
},
major: {
unit: "year",
count: 40
}
}, {
minor: {
unit: "year",
count: 25
},
major: {
unit: "year",
count: 100
}
}, {
minor: {
unit: "year",
count: 100
},
major: {
unit: "year",
count: 500
}
}],
z_ = UY.prototype;
z_.ticks = z_.Ia;
z_.ticksCount = z_.Qga;
z_.getFullMinimum = z_.Taa;
z_.getFullMaximum = z_.Saa;
z_.getMinimum = z_.TQ;
z_.getMaximum = z_.SQ;
z_.transform = z_.transform;
z_.inverseTransform = z_.Vc;
$.I(WY, TY);
WY.prototype.reset = function() {
var a = $.Bn(this.start, this.G, this.Y),
b = $.Bn(this.start, this.K, this.Y);
this.b = new $.vm(new Date(a));
this.g = window.NaN;
this.b.getTime() < this.start && (this.g = XY(this, this.b, this.G), this.g > this.end && (this.g = window.NaN));
for (this.j = new $.vm(new Date(b)); this.j.getTime() < this.start;) this.j.add(this.K)
};
WY.prototype.advance = function() {
var a = this.b.getTime(),
b = XY(this, this.j, this.K);
this.current = b;
this.D = a <= b;
(a = this.current <= this.end) && this.D && XY(this, this.b, this.G);
return a
};
$.I(JY, UY);
$.f = JY.prototype;
$.f.Sa = function() {
return "stock-ordinal-date-time"
};
$.f.transform = function(a) {
return this.Lv(a, this.b.nf($.Yj(a)))
};
$.f.Vc = function(a) {
return Math.round(this.b.Dh(a * (this.fv - this.Qr) + this.Qr))
};
$.f.Lv = function(a, b) {
return (b - this.Qr) / (this.fv - this.Qr)
};
$.f.oN = function(a) {
return this.Lv(a, Math.ceil(this.b.nf($.Yj(a))))
};
$.f.sY = function() {
this.K || (this.K = new WY(this));
!this.D && this.g && (this.D = new SY)
};
var A_ = JY.prototype;
A_.transform = A_.transform;
A_.inverseTransform = A_.Vc;
$.I(YY, $.oy);
$.f = YY.prototype;
$.f.xa = $.oy.prototype.xa | 4;
$.f.ta = $.oy.prototype.ta | 1536;
$.f.L1 = function() {
return !1
};
$.f.Mi = {
area: {
xb: 1,
Ab: 1,
Fb: [rZ, sZ, tZ],
Db: [xZ, yZ, zZ],
yb: null,
wb: 0,
ub: "value",
tb: "zero"
},
candlestick: {
xb: 5,
Ab: 1,
Fb: [{
name: "rising",
Mc: "path",
dd: "risingFill",
jd: "risingStroke",
$c: !1,
Kc: !1,
zIndex: 0
}, {
name: "risingHatchFill",
Mc: "path",
dd: "risingHatchFill",
jd: null,
$c: !1,
Kc: !0,
zIndex: 1E-6
}, {
name: "falling",
Mc: "path",
dd: "fallingFill",
jd: "fallingStroke",
$c: !1,
Kc: !1,
zIndex: 0
}, {
name: "fallingHatchFill",
Mc: "path",
dd: "fallingHatchFill",
jd: null,
$c: !1,
Kc: !0,
zIndex: 1E-6
}],
Db: [{
name: "rising",
Mc: "path",
dd: "risingFill",
jd: "risingStroke",
$c: !1,
En: !0,
Kc: !1,
zIndex: 0
}, {
name: "risingHatchFill",
Mc: "path",
dd: "risingHatchFill",
jd: null,
$c: !1,
En: !0,
Kc: !0,
zIndex: 1E-6
}, {
name: "falling",
Mc: "path",
dd: "fallingFill",
jd: "fallingStroke",
$c: !1,
En: !0,
Kc: !1,
zIndex: 0
}, {
name: "fallingHatchFill",
Mc: "path",
dd: "fallingHatchFill",
jd: null,
$c: !1,
En: !0,
Kc: !0,
zIndex: 1E-6
}],
yb: null,
wb: 0,
ub: "high",
tb: "low"
},
column: {
xb: 6,
Ab: 1,
Fb: [wZ, tZ],
Db: [CZ, zZ],
yb: null,
wb: 0,
ub: "value",
tb: "zero"
},
"jump-line": {
xb: 19,
Ab: 2,
Fb: [$.TC],
Db: [yZ],
yb: null,
wb: 0,
ub: "value",
tb: "value"
},
hilo: {
xb: 31,
Ab: 2,
Fb: [$.TC],
Db: [yZ],
yb: null,
wb: 0,
ub: "high",
tb: "low"
},
stick: {
xb: 20,
Ab: 2,
Fb: [$.TC],
Db: [yZ],
yb: null,
wb: 0,
ub: "value",
tb: "zero"
},
line: {
xb: 8,
Ab: 1,
Fb: [sZ],
Db: [yZ],
yb: null,
wb: 0,
ub: "value",
tb: "value"
},
marker: {
xb: 9,
Ab: 1,
Fb: [wZ, tZ],
Db: [CZ, zZ],
yb: null,
wb: 0,
ub: "value",
tb: "value"
},
ohlc: {
xb: 10,
Ab: 1,
Fb: [{
name: "rising",
Mc: "path",
dd: null,
jd: "risingStroke",
$c: !1,
Kc: !1,
zIndex: 0
}, {
name: "falling",
Mc: "path",
dd: null,
jd: "fallingStroke",
$c: !1,
Kc: !1,
zIndex: 0
}],
Db: [{
name: "rising",
Mc: "path",
dd: null,
jd: "risingStroke",
$c: !1,
En: !0,
Kc: !1,
zIndex: 0
}, {
name: "falling",
Mc: "path",
dd: null,
jd: "fallingStroke",
$c: !1,
En: !0,
Kc: !1,
zIndex: 0
}],
yb: null,
wb: 0,
ub: "high",
tb: "low"
},
"range-area": {
xb: 11,
Ab: 1,
Fb: [rZ, vZ, uZ, tZ],
Db: [xZ, BZ, AZ, zZ],
yb: null,
wb: 0,
ub: "high",
tb: "low"
},
"range-column": {
xb: 12,
Ab: 1,
Fb: [wZ, tZ],
Db: [CZ, zZ],
yb: null,
wb: 0,
ub: "high",
tb: "low"
},
"range-spline-area": {
xb: 13,
Ab: 1,
Fb: [rZ, uZ, vZ, tZ],
Db: [xZ, AZ, BZ, zZ],
yb: null,
wb: 0,
ub: "high",
tb: "low"
},
"range-step-area": {
xb: 14,
Ab: 1,
Fb: [rZ, uZ, vZ, tZ],
Db: [xZ, AZ, BZ, zZ],
yb: null,
wb: 0,
ub: "high",
tb: "low"
},
spline: {
xb: 15,
Ab: 1,
Fb: [sZ],
Db: [yZ],
yb: null,
wb: 0,
ub: "value",
tb: "value"
},
"spline-area": {
xb: 16,
Ab: 1,
Fb: [rZ, sZ, tZ],
Db: [xZ, yZ, zZ],
yb: null,
wb: 0,
ub: "value",
tb: "zero"
},
"step-area": {
xb: 17,
Ab: 1,
Fb: [rZ, sZ, tZ],
Db: [xZ, yZ, zZ],
yb: null,
wb: 0,
ub: "value",
tb: "zero"
},
"step-line": {
xb: 18,
Ab: 1,
Fb: [sZ],
Db: [yZ],
yb: null,
wb: 0,
ub: "value",
tb: "value"
}
};
$.f.cp = function(a) {
return $.n(a) ? (this.SP = a = UT(a), this) : this.SP
};
$.f.TD = function(a, b, c) {
return this.be("area", a, b, c)
};
$.f.oP = function(a, b, c) {
return this.be("candlestick", a, b, c)
};
$.f.PA = function(a, b, c) {
return this.be("column", a, b, c)
};
$.f.eS = function(a, b, c) {
return this.be("jump-line", a, b, c)
};
$.f.OR = function(a, b, c) {
return this.be("hilo", a, b, c)
};
$.f.uU = function(a, b, c) {
return this.be("stick", a, b, c)
};
$.f.line = function(a, b, c) {
return this.be("line", a, b, c)
};
$.f.ev = function(a, b, c) {
return this.be("marker", a, b, c)
};
$.f.US = function(a, b, c) {
return this.be("ohlc", a, b, c)
};
$.f.uT = function(a, b, c) {
return this.be("range-area", a, b, c)
};
$.f.vT = function(a, b, c) {
return this.be("range-column", a, b, c)
};
$.f.wT = function(a, b, c) {
return this.be("range-spline-area", a, b, c)
};
$.f.xT = function(a, b, c) {
return this.be("range-step-area", a, b, c)
};
$.f.kU = function(a, b, c) {
return this.be("spline", a, b, c)
};
$.f.lU = function(a, b, c) {
return this.be("spline-area", a, b, c)
};
$.f.rU = function(a, b, c) {
return this.be("step-area", a, b, c)
};
$.f.tU = function(a, b, c) {
return this.be("step-line", a, b, c)
};
$.f.Kk = function(a) {
var b = [],
c = this.cp(),
d = arguments.length;
$.V(this);
if (d)
for (var e = 0; e < d; e++) b.push(this.be(c, arguments[e]));
else b.push(this.be(c, null));
this.ga(!0);
return b
};
$.f.Kw = function(a) {
return $.Aa(this.Da, function(b) {
return b.id() == a
})
};
$.f.We = function(a) {
return this.Vh(this.Kw(a))
};
$.f.Vh = function(a) {
return this.Da[a] || null
};
$.f.bm = function() {
return this.Da.length
};
$.f.Go = function(a) {
return this.An(this.Kw(a))
};
$.f.An = function(a) {
var b = this.Da[a];
b && ($.jo++, $.Ga(this.Da, a, 1), $.M(b), this.B(512, 1), $.mo());
return this
};
$.f.Np = function() {
if (this.Da.length) {
var a = this.Da;
$.jo++;
this.Da = [];
$.rd(a);
this.B(512, 1);
$.mo()
}
return this
};
$.f.mf = function() {
return this.Da
};
$.f.pq = function(a) {
return $.n(a) ? (this.qw = a, this) : this.qw || {}
};
$.f.vu = function(a) {
a = UT(a);
var b = this.Mi[a];
b && b.xb in $.uC ? a = [a, b] : ($.jk(4, null, [a + " series"]), a = null);
return a
};
$.f.nb = $.ha;
$.f.mB = $.ha;
$.f.jK = function(a) {
return a.check(32768) ? 31 : 30
};
$.f.be = function(a, b, c, d) {
var e = this.vu(a);
e ? (a = new RY(this, a, e[1]), e = (e = this.Da[this.Da.length - 1]) ? e.vg() + 1 : 0, this.Da.push(a), a.vg(e), a.data(b || null, c, d), $.Wx(a), a.clip(!0), $.Xx(a, .9), a.Rp(this.ec().lc(e)), a.Av(this.Ud().lc(e)), a.kb(this), $.U(a, this.bH, this), this.B(512, 1)) : a = null;
return a
};
$.f.bH = function(a) {
var b = 1;
$.W(a, 4) && (b |= 4);
this.B(512, b)
};
$.f.Jz = function() {
for (var a = 0; a < this.Da.length; a++) {
var b = this.Da[a];
b && b.tM()
}
};
$.f.Su = function() {
for (var a = 0; a < this.Da.length; a++) this.Da[a].B(2116)
};
HY(YY);
$.f = YY.prototype;
$.f.hc = function() {
return this.Qa
};
$.f.pb = function() {
return this.ha
};
$.f.Pf = function() {
return this.pb()
};
$.f.Wa = function(a) {
if ($.n(a)) return this.mb = a, ZY(this), this;
this.mb || (this.mb = new JY(this));
return this.mb
};
$.f.xN = function() {
YY.F.xN.call(this);
ZY(this)
};
$.f.nK = function() {
return this.Qa.b.Y.zG
};
$.f.ko = function() {
return this.Qa.xI()
};
$.f.ua = function() {
return !1
};
$.f.bb = function(a) {
if ($.n(a)) {
if (a = $.pr(this.Xc, a, null, 3, ["Scroller Y scale", "scatter", "linear, log"], this.Mx, this)) {
var b = this.Xc == a;
this.Xc = a;
this.Xc.ga(b);
if (!b) {
for (a = 0; a < this.Da.length; a++)(b = this.Da[a]) && b.enabled() && b.bb() == this.Xc && (b.B(1024), this.B(512));
this.sa(1)
}
}
return this
}
this.Xc || (this.Xc = $.lr(), $.U(this.Xc, this.Mx, this));
return this.Xc
};
$.f.Mx = function(a) {
for (var b = 0, c = 0; c < this.Da.length; c++) {
var d = this.Da[c];
d && d.enabled() && d.bb() == this.Xc && (b |= d.B(1024))
}
b && (b = 1, $.W(a, 4) && (b |= 4), this.B(512, b))
};
$.f.gi = function(a) {
this.Dc || (this.Dc = new WU(this, !0), this.Dc.kb(this), this.Dc.enabled(!1), this.Dc.zIndex(52), $.U(this.Dc, this.KU, this), this.B(1024, 1));
return $.n(a) ? (this.Dc.P(a), this) : this.Dc
};
$.f.KU = function() {
this.B(1024, 1)
};
$.f.Ry = function() {
return this.Dc
};
$.f.Uy = function() {
return null
};
$.f.aa = function() {
YY.F.aa.call(this);
if (!this.xc()) return this;
this.Uq || (this.Uq = this.Ba.He(), this.Uq.zIndex(1), this.Uq.clip(this.LL), this.Oz = this.Ba.He(), this.Oz.sd(!0), this.Oz.zIndex(51), this.Oz.clip(this.Nz));
if (this.O(512)) {
for (var a = 0; a < this.Da.length; a++) {
var b = this.Da[a];
if (b) {
$.V(b);
b.oa(this.ha);
b.U(this.Uq);
var c = b,
d = this.Oz;
$.n(d) && c.ba != d && (c.ba = d, c.B(2, 1));
b.Rp(this.ec().lc(a));
b.Av(this.Ud().lc(a));
b.aa();
b.ga(!1)
}
}
this.Jz();
this.N(512)
}
this.O(1024) && (this.Dc && ($.V(this.Dc), this.Dc.scale(this.Wa()),
this.Dc.U(this.Ba), this.Dc.oa(this.ha), this.Dc.height(this.ha.height), this.Dc.aa(), this.Dc.ga(!1)), this.N(1024));
return this
};
$.f.ec = function(a) {
if ($.L(a, $.Tq)) return this.Zc($.Tq, a), this;
if ($.L(a, $.Pq)) return this.Zc($.Pq, a), this;
$.F(a) && "range" == a.type ? this.Zc($.Tq) : ($.F(a) || null == this.La) && this.Zc($.Pq);
return $.n(a) ? (this.La.P(a), this) : this.La
};
$.f.Zc = function(a, b) {
this.Su();
if ($.L(this.La, a)) b && this.La.P(b);
else {
var c = !!this.La;
$.M(this.La);
this.La = new a;
b && this.La.P(b);
$.U(this.La, this.jg, this);
$.O(this, this.La);
c && this.B(512, 1)
}
};
$.f.Ud = function(a) {
this.Ad || (this.Ad = new $.Qq, $.U(this.Ad, this.jg, this), $.O(this, this.Ad));
return $.n(a) ? (this.Ad.P(a), this.Su(), this.B(512, 1), this) : this.Ad
};
$.f.jg = function(a) {
$.W(a, 2) && this.B(512, 1)
};
$.f.Dh = function(a) {
var b = this.Qa.b;
JU(b);
return b.qa.Dh(a)
};
$.f.nf = function(a) {
var b = this.Qa.b;
JU(b);
return b.qa.nf(a)
};
$.f.m_ = function(a, b, c, d) {
return {
type: a,
startRatio: b,
endRatio: c,
startKey: this.Wa().Vc(b),
endKey: this.Wa().Vc(c),
source: d
}
};
$.f.W = function() {
$.rd(this.Da);
delete this.Da;
$.rd(this.SB);
delete this.SB;
$.M(this.Uq);
$.M(this.Oz);
this.Oz = this.Uq = null;
$.M(this.Dc);
this.Xc = this.Dc = null;
$.M(this.mb);
this.mb = null;
delete this.Qa;
YY.F.W.call(this)
};
$.f.J = function() {
var a = YY.F.J.call(this);
a.defaultSeriesType = this.cp();
a.palette = this.ec().J();
a.hatchFillPalette = this.Ud().J();
return a
};
$.f.$ = function(a, b) {
YY.F.$.call(this, a, b);
var c;
this.gi(a.xAxis);
this.cp(a.defaultSeriesType);
var d = this.hc().Sa(),
e = a.scales,
g = {};
if ($.C(e))
for (c = 0; c < e.length; c++) {
var h = e[c];
$.y(h) && (h = {
type: h
});
h = $.nl(h, c, d);
var k = YT(h.type, !1);
k.P(h);
g[c] = k
} else if ($.F(e))
for (c in e) e.hasOwnProperty(c) && (h = e[c], $.y(h) && (h = {
type: h
}), h = $.nl(h, c, d), k = YT(h.type, !1), k.P(h), g[c] = k);
h = a.yScale;
$.B(h) ? k = g[h] : $.y(h) ? (k = YT(h, !0)) || (k = g[h]) : $.F(h) ? (k = YT(h.type, !1), k.P(h)) : k = null;
k && this.bb(k);
"defaultSeriesSettings" in a &&
this.pq(a.defaultSeriesSettings);
k = a.series;
if ($.C(k))
for (c = 0; c < k.length; c++)
if (h = k[c], d = (h.seriesType || this.cp()).toLowerCase(), d = this.be(d, h.data)) d.P(h), $.F(h) && "yScale" in h && 1 < h.yScale && d.bb(g[h.yScale]);
this.ec(a.palette);
this.Ud(a.hatchFillPalette)
};
var B_ = YY.prototype;
B_.area = B_.TD;
B_.candlestick = B_.oP;
B_.column = B_.PA;
B_.stick = B_.uU;
B_.jumpLine = B_.eS;
B_.hilo = B_.OR;
B_.line = B_.line;
B_.marker = B_.ev;
B_.ohlc = B_.US;
B_.rangeArea = B_.uT;
B_.rangeColumn = B_.vT;
B_.rangeSplineArea = B_.wT;
B_.rangeStepArea = B_.xT;
B_.spline = B_.kU;
B_.splineArea = B_.lU;
B_.stepArea = B_.rU;
B_.stepLine = B_.tU;
B_.getSeries = B_.We;
B_.yScale = B_.bb;
B_.xAxis = B_.gi;
B_.defaultSeriesType = B_.cp;
B_.addSeries = B_.Kk;
B_.getSeriesAt = B_.Vh;
B_.getSeriesCount = B_.bm;
B_.removeSeries = B_.Go;
B_.removeSeriesAt = B_.An;
B_.removeAllSeries = B_.Np;
B_.palette = B_.ec;
B_.hatchFillPalette = B_.Ud;
$.I($Y, $.zp);
$.$o($Y, QZ);
$.ap($Y, TZ, "normal");
$.f = $Y.prototype;
$.f.ta = 64;
$.f.xa = 1;
$.f.yP = function() {
this.B(64, 1)
};
$.f.Ta = function(a) {
return $.n(a) ? (this.ma.P(a), this) : this.ma
};
$.f.sb = function(a) {
return $.n(a) ? (this.Ja.P(a), this) : this.Ja
};
$.f.selected = function(a) {
return $.n(a) ? (this.Oa.P(a), this) : this.Oa
};
$.f.group = function(a, b) {
var c = $.Q(a);
if ((0, window.isNaN)(c)) {
c = 0;
var d = a
} else c = a, d = b;
return this.Qa.vf().li().group(c, d)
};
$.f.data = function(a) {
var b = this.Qa.vf().li().group().data(a);
return $.n(a) ? this : b
};
$.f.sW = function(a) {
var b = a.group;
if (b) {
var c = a.index;
a = a.originalEvent;
if (this.j != b || this.D != c) this.dispatchEvent(aZ(this, a, !1, [{
group: b,
index: c
}], b, c)) && UV(b.vf.li(), b, c, 1, $.dl) ? (this.j = b, this.D = c) : (this.j = null, this.D = window.NaN);
$.pu(b.jb(), a.clientX, a.clientY, b.LQ(c))
}
};
$.f.z8 = function(a) {
var b = a.group;
if (b) {
var c = a.index;
this.dispatchEvent(aZ(this, a.originalEvent, !1, [], b, c));
UV(b.vf.li(), b, c, $.dl, 1);
b.jb().Bd(!0);
this.j = null;
this.D = window.NaN
}
};
$.f.y8 = function(a) {
var b = a.group;
if (b) {
var c = a.index;
a = a.originalEvent;
var d = this.b == b && this.g == c;
this.b && this.dispatchEvent(aZ(this, a, !0, [], this.b, this.g)) && UV(this.b.vf.li(), this.b, this.g, d ? 1 : $.dl, 2);
!d && this.dispatchEvent(aZ(this, a, !0, [{
group: b,
index: c
}], b, c)) && UV(b.vf.li(), b, c, 2) ? (this.b = b, this.g = c) : (this.b = null, this.g = window.NaN)
}
};
$.f.jb = function(a) {
this.nc || (this.nc = new $.$t(0));
return $.n(a) ? (this.nc.P(a), this) : this.nc
};
$.f.J = function() {
var a = $Y.F.J.call(this);
$.kp(this, QZ, a);
a.normal = this.ma.J();
a.hovered = this.Ja.J();
a.selected = this.Oa.J();
a.tooltip = this.jb().J();
return a
};
$.f.$ = function(a, b) {
$Y.F.$.call(this, a, b);
this.jb().ia(!!b, a.tooltip);
this.ma.ia(!!b, a);
this.ma.ia(!!b, a.normal);
this.Ja.ia(!!b, a.hovered);
this.Oa.ia(!!b, a.selected);
$.cp(this, QZ, a);
var c;
if ($.n(c = a.groups)) {
var d = this.Qa.vf().li();
$.rd(d.b);
d.b.length = 0;
if ($.C(c))
for (d = 0; d < c.length; d++) {
var e = c[d];
null != e && this.group(d, e)
}
} else $.n(d = a.data) && this.data(d)
};
$.f.W = function() {
$.rd(this.ma, this.Ja, this.Oa, this.nc);
this.ma = this.Ja = this.Oa = this.Qa = this.nc = null;
$Y.F.W.call(this)
};
var C_ = $Y.prototype;
C_.group = C_.group;
C_.data = C_.data;
C_.tooltip = C_.jb;
C_.normal = C_.Ta;
C_.hovered = C_.sb;
C_.selected = C_.selected;
$.I(bZ, $.Xu);
bZ.prototype.xa = $.Xu.prototype.xa;
bZ.prototype.ta = $.Xu.prototype.ta | 61440;
var tga = {
area: !1,
candlestick: null,
column: null,
"jump-line": !0,
stick: !0,
line: !1,
marker: null,
ohlc: null,
"range-area": !1,
"range-column": null,
"range-spline-area": !1,
"range-step-area": !1,
spline: !1,
"spline-area": !1,
"step-area": !1,
"step-line": !1,
hilo: !0
};
$.f = bZ.prototype;
$.f.gN = function() {
return !1
};
$.f.Sa = function() {
return "stock"
};
$.f.mf = function() {
for (var a = [], b = 0; b < this.g.length; b++) {
var c = this.g[b];
c && a.push.apply(a, c.mf())
}
return a
};
$.f.vu = function(a) {
a = UT(a);
var b = this.Mi[a];
b && b.xb in $.uC ? a = [a, b] : ($.jk(4, null, [a + " series"]), a = null);
return a
};
$.f.ua = function() {
return !1
};
$.f.nb = $.ha;
$.f.Te = function(a) {
$.jk(51);
return $.n(a) ? this : null
};
$.f.vf = function(a, b) {
return cZ(this, a, b, !$.n(b))
};
$.f.GC = function(a) {
this.j || (this.j = new YY(this), this.j.kb(this), $.U(this.j, this.s8, this), this.yc.la(this.j, "scrollerchangestart", this.gga), this.yc.la(this.j, "scrollerchange", this.fga), this.yc.la(this.j, "scrollerchangefinish", this.ega), this.B(8196, 1));
return $.n(a) ? (this.j.P(a), this) : this.j
};
$.f.Z0 = function(a, b, c, d) {
var e = this.b.G;
var g = window.NaN;
var h = $.Cj($.CA, a, $.n(null) ? null : "max");
if ("points" == h) {
a = Math.max(+b || 0, 10);
var k = $.hk(c);
h = -1;
if ("last-visible-date" == k) {
e = this.b;
var l = TU(this.b);
JU(e);
e = e.g.nf(l)
} else "first-visible-date" == k ? (e = this.b, h = SU(this.b), JU(e), e = e.g.nf(h), h = 1) : "first-date" == k ? (e = this.b.g.b.length ? 0 : window.NaN, h = 1) : e = mU(this.b.g);
a = e + h * (a - 1) + h / 2;
l = this.b;
e -= h / 2;
JU(l);
e = l.g.Dh(e);
h = this.b;
a = $.hb(a, this.b.g.b.length ? 0 : window.NaN, mU(this.b.g));
JU(h);
g = h.g.Dh(a)
} else if (h &&
"unit" != h) switch (k = new Date(e), h) {
case "ytd":
g = Date.UTC(k.getUTCFullYear(), 0);
break;
case "qtd":
g = Date.UTC(k.getUTCFullYear(), 3 * Math.floor((k.getUTCMonth() + 3) / 3) - 3, 1);
break;
case "mtd":
g = Date.UTC(k.getUTCFullYear(), k.getUTCMonth());
break;
case "max":
g = this.b.D
} else if (g = $.ak(a, null)) {
a = b || 1;
k = $.hk(c);
h = -1;
"last-visible-date" == k ? e = TU(this.b) : "first-visible-date" == k ? (e = SU(this.b), h = 1) : "first-date" == k && (e = this.b.D, h = 1);
k = new Date(e);
var m = new Date(e);
if ("year" == g) m.setUTCFullYear(k.getUTCFullYear() + h * a),
g = m.getTime();
else if ("semester" == g || "quarter" == g || "month" == g) {
switch (g) {
case "semester":
l = 6 * a;
break;
case "quarter":
l = 3 * a;
break;
case "month":
l = a
}
a = k.getUTCMonth() + h * l;
h = k.getUTCFullYear() + Math.floor(a / 12);
a %= 12;
0 > a && (a += 12);
m.setUTCFullYear(h);
m.setUTCMonth(a);
g = m.getTime()
} else if ("third-of-month" == g) l = k.getUTCDate(), l = 3 * (12 * k.getUTCFullYear() + k.getUTCMonth()) + (10 >= l ? 0 : 20 >= l ? 1 : 2) + h * a, h = Math.floor(l / 36), l %= 36, a = Math.floor(l / 3), 0 > a && (a += 12), l %= 3, 0 > l && (l += 3), g = Date.UTC(h, a, 1 + 10 * l);
else {
switch (g) {
case "week":
l =
6048E5 * a;
break;
case "day":
l = 864E5 * a;
break;
case "hour":
l = 36E5 * a;
break;
case "minute":
l = 6E4 * a;
break;
case "second":
l = 1E3 * a;
break;
case "millisecond":
l = a
}
g = e + h * l
}
} else e = $.Yj(a), g = $.Yj(b);
dZ(this, e, g);
($.da(b) && b || $.da(c) && c || d) && eZ(this, "selectedrangechange", "select-range");
return this
};
$.f.cba = function() {
return {
firstSelected: this.b.b.Lg,
lastSelected: this.b.b.Oh,
firstVisible: SU(this.b),
lastVisible: TU(this.b)
}
};
$.f.Wa = function(a) {
if ($.n(a)) {
var b;
$.y(a) ? b = a : $.F(a) && (b = a.type);
b = String(b).toLowerCase();
a = "scatter" == b;
a != (this.mb && !$.L(this.mb, JY)) && (a ? (this.mb = new UY(this), this.j && this.j.Wa(new UY(this.j))) : (this.mb = new JY(this), this.j && this.j.Wa(new JY(this.j))), this.B(8192), this.Vw());
return this
}
this.mb || (this.mb = new JY(this));
return this.mb
};
$.f.ko = function(a) {
return $.n(a) ? (this.b.ko(a), this) : this.b.ko()
};
$.f.xI = function(a) {
return $.n(a) ? (OU(this.b, a), this) : OU(this.b)
};
$.f.wfa = function(a) {
return $.n(a) ? (this.Fa = !!a, this) : this.Fa
};
$.f.BC = function() {
this.Jb().rq() && this.B(4, 9)
};
$.f.nK = function() {
return this.b.nK()
};
$.f.Zaa = function() {
return this.g.length
};
$.f.K1 = function() {
return !1
};
$.f.qk = function(a) {
this.D && this.Jj().Ot(!0);
if (this.O(4)) {
var b = a;
this.j && (this.j.oa(b), b = this.j.yd());
var c = 0,
d = window.NaN,
e = [];
for (a = 0; a < this.g.length; a++) {
var g = this.g[a];
if (g && g.enabled()) {
g.oa(b);
g = g.Jb();
var h = !1;
null !== g.top() ? d = $.P(g.top(), b.height) : null !== g.bottom() && (h = !0, e.push(g), d = $.P(g.bottom(), b.height, !0));
(0, window.isNaN)(d) || (e.length && iZ(e, c, d, b.height), c = d, d = window.NaN, e.length = 0);
h || e.push(g)
}
}
e.length && iZ(e, c, b.height, b.height);
this.G = window.Infinity;
for (a = 0; a < this.g.length; a++)(g =
this.g[a]) && g.enabled() && (b = g, NY(b), b = b.Ej.width, this.G > b && (this.G = b));
(0, window.isFinite)(this.G) || (this.G = window.NaN);
this.B(16384)
}
if (this.O(16384)) {
a = this.Wa();
b = this.GC().Wa();
c = this.b;
var k = this.G;
d = this.qb || this.Fa;
KU(c);
RU(c, b);
RU(c, a);
e = c.D;
g = c.G;
h = c.O(16384);
c.$a = k;
k = 0;
var l = NU(c, e, g, c.ka, c.Ma, c.qa, c.Y, h);
l && (c.qa = l[0], c.Y = l[1], l = c.ka.eo(), PU(b, c.Y.Lg, c.Y.Oh, l.unit, l.count, c.Y.gm), k += 2);
l = c.b.Lg;
var m = c.b.Oh;
!h || !(!d || (0, window.isNaN)(c.b.pt) && !(0, window.isNaN)(c.b.Lg) || (0, window.isNaN)(c.b.nx) &&
!(0, window.isNaN)(c.b.Lg)) || (0, window.isNaN)(c.Fa) || (0, window.isNaN)(c.Aa) || (0, window.isNaN)(e) || (0, window.isNaN)(g) || (l = b.Vc(c.Fa), m = b.Vc(c.Aa));
if ((0, window.isNaN)(l) || (0, window.isNaN)(c.b.pt) && !(0, window.isNaN)(c.b.Lg) && !(0, window.isNaN)(e)) l = e;
if ((0, window.isNaN)(m) || (0, window.isNaN)(c.b.nx) && !(0, window.isNaN)(c.b.Lg) && !(0, window.isNaN)(g)) m = g;
!(0, window.isNaN)(l) && (d = NU(c, l, m, c.ba, c.va, c.j, c.b, h)) && (c.j = d[0], c.b = d[1], k += 1, QU(c, a));
c.Fa = b.transform(c.b.Lg);
c.Aa = b.transform(c.b.Oh);
c.N(16384);
c = k;
if (c & 1)
for (this.Vw(), a = 0; a < this.g.length; a++)(b = this.g[a]) && b.vC();
c & 2 && (ZY(this.j), this.B(8192));
this.N(16384)
}
if (this.O(32768)) {
b = [];
for (a = 0; a < this.g.length; a++)
if ((d = this.g[a]) && d.enabled()) {
c = "direct" == d.bb().Cv();
e = d.mf();
k = {};
l = !1;
for (d = 0; d < e.length; d++) g = e[c ? e.length - d - 1 : d], DV(g), h = g.bb(), h.pg() && (h.Yg(), b.push(h)), g.enabled() && (g.qg() ? l = fZ(this, g, k) || l : g.enabled() && h.ld.apply(h, g.vF()));
if (l)
for (d = 0; d < e.length; d++) g = e[d], g.enabled() && (h = g.bb(), "percent" == h.Yp() && hZ(g, h, k))
}
if (this.j &&
this.j.bd()) {
e = this.j.mf();
k = {};
l = !1;
for (d = 0; d < e.length; d++) g = e[d], DV(g), h = g.bb(), h.pg() && (h.Yg(), b.push(h)), g.enabled() && (g.qg() ? l = fZ(this, g, k) || l : g.enabled() && h.ld.apply(h, g.vF()));
if (l)
for (d = 0; d < e.length; d++) g = e[d], g.enabled() && (h = g.bb(), "percent" == h.Yp() && hZ(g, h, k))
}
for (a = 0; a < b.length; a++) b[a].dh();
this.N(32768)
}
this.O(8192) && (a = this.GC(), b = this.b.b.Lg, c = this.b.b.Oh, b = a.Wa().transform(b), b = (0, window.isNaN)(b) ? 0 : $.hb(b, 0, 1), c = a.Wa().transform(c), c = (0, window.isNaN)(c) ? 1 : $.hb(c, 0, 1), $.qy(a, b, c),
a.U(this.Za).aa(), this.N(8192));
if (this.O(4096)) {
for (a = 0; a < this.g.length; a++)(b = this.g[a]) && b.U(this.Za).aa();
this.N(4096)
}
mZ(this);
this.kt || (this.kt = new $.gv(this.U().Ea().yl(), !1), this.kt.la("mousewheel", this.r8, !1, this));
this.li().N(4294967295);
this.li().Ta().ah().N(4294967295)
};
$.f.hha = function(a, b, c, d, e, g) {
this.d0(a, b, c, d, e, g);
var h = 0 <= d;
c.MC = c.MC || {
Dz: window.NaN,
uz: window.NaN
};
b.o("shared") || b.o("shared", c.MC);
c.sC ? h ? (b.o("stackedZeroPrev", c.pv), b.o("stackedValuePrev", c.pv + d)) : (b.o("stackedZeroPrev", c.ov), b.o("stackedValuePrev", c.ov + d)) : (b.o("stackedZeroPrev", window.NaN), b.o("stackedValuePrev", window.NaN));
c.jC ? h ? (b.o("stackedZeroNext", c.lv), b.o("stackedValueNext", c.lv + d)) : (b.o("stackedZeroNext", c.kv), b.o("stackedValueNext", c.kv + d)) : (b.o("stackedZeroNext", window.NaN),
b.o("stackedValueNext", window.NaN));
a.ld(b.o("stackedValuePrev"));
a.ld(b.o("stackedValue"));
a.ld(b.o("stackedValueNext"));
e && (e.Rr ? c.sC = !0 : h ? c.pv += d : c.ov += d, (0, window.isNaN)(g) || (0 <= g ? e.lv += g : e.kv += g))
};
$.f.d0 = function(a, b, c, d) {
0 <= d ? (b.o("stackedZero", c.Co), c.Co += d, b.o("stackedValue", c.Co)) : (b.o("stackedZero", c.Bo), c.Bo += d, b.o("stackedValue", c.Bo))
};
$.f.sfa = function(a) {
if (!$.W(a, 64)) {
var b = 4096;
$.W(a, 8) && (b |= 4);
$.W(a, 4) && (b |= 32768);
this.B(b, 1)
}
};
$.f.s8 = function(a) {
var b = 8192,
c = 1;
$.W(a, 8) && (b |= 32772, c |= 8);
$.W(a, 4) && (b |= 32768);
this.B(b, c)
};
$.f.y$ = function(a) {
$.W(a, 16) && this.B(16384, 1)
};
$.f.Vw = function() {
for (var a = 0; a < this.g.length; a++) {
var b = this.g[a];
b && b.Vw(!1)
}
this.B(45056, 1)
};
$.f.Dh = function(a) {
return this.b.Dh(a)
};
$.f.nf = function(a) {
return this.b.nf(a)
};
$.f.Jj = function(a) {
this.D ? this.Df || (this.Df = new this.D.ChartController(this)) : $.jk(4, null, ["Annotations"]);
return $.n(a) ? (this.Df && this.Df.P(a), this) : this.Df
};
$.f.AE = function(a) {
return $.n(a) ? (this.Aa = a, this) : this.Aa
};
$.f.li = function(a) {
this.Uk || (this.Uk = new $Y(this), this.Uk.kb(this), $.U(this.Uk, this.saa, this));
return $.n(a) ? (this.Uk.P(a), this) : this.Uk
};
$.f.saa = function() {
$.V(this);
for (var a = 0; a < this.g.length; a++) this.g[a].li().B(64, 1);
this.ga(!0)
};
$.f.QL = $.ha;
$.f.CU = function() {
this.ka = this.ba = this.K = window.NaN;
this.$a = null;
kZ(this)
};
$.f.GP = function() {
return new UU(this)
};
$.f.dg = function(a) {
this.Tf || (this.Tf = new $.lx, this.Tf.dx(!0), $.O(this, this.Tf), $.U(this.Tf, this.zz, this), this.B(16777216, 1));
return $.n(a) ? (this.Tf.P(a), this) : this.Tf
};
$.f.zz = function() {
this.B(16777216, 1)
};
$.f.uK = function() {
for (var a = [], b = 0; b < this.g.length; b++) {
var c = this.g[b];
a.push(c && c.enabled() ? c.Pf() : null)
}
return a
};
$.f.wy = function(a, b, c, d, e, g, h) {
a = bZ.F.wy.call(this, a, b, c, d, e, g, h);
c = this.g[b];
d = c.Pf();
e = (a.left - d.left) / d.width;
g = (a.left + a.width - d.left) / d.width;
h = (a.top - d.top) / d.height;
var k = (a.top + a.height - d.top) / d.height,
l = this.Wa(),
m = c.bb();
a.plot = c;
a.plotIndex = b;
a.plotBounds = {
left: d.left,
top: d.top,
width: d.width,
height: d.height
};
a.leftX = l.Vc(e);
a.rightX = l.Vc(g);
a.maxValue = m.Vc(h);
a.minValue = m.Vc(k);
m.Fe() && (b = a.minValue, a.minValue = a.maxValue, a.maxValue = b);
return a
};
var D_ = {};
$.T(D_, 1, "zoomMarqueeFill", $.hp);
$.T(D_, 1, "zoomMarqueeStroke", $.gp);
$.$o(bZ, D_);
$.f = bZ.prototype;
$.f.I1 = function(a, b) {
$.$u(this, this.efa, null, this.dfa, this.uK(), "crosshair", a, this.I("zoomMarqueeStroke"), this.I("zoomMarqueeFill"), !b);
return this
};
$.f.efa = function() {
lZ(this);
return !0
};
$.f.dfa = function(a, b, c, d) {
if (5 < Math.abs(d)) {
var e = this.g[a].Pf();
a = this.Wa();
c = (b - e.left) / e.width;
b = (b + d - e.left) / e.width;
c > b && (d = c, c = b, b = d);.05 > b - c && (b = (c + b) / 2, c = b - .025, b += .025);
c = a.Vc(c);
a = a.Vc(b);
b = this.b.nf(c);
d = this.b.nf(a);
1 > d - b && (c = this.b.Dh(Math.floor(b)), a = this.b.Dh(Math.ceil(d)));
(0, window.isNaN)(c) || (0, window.isNaN)(a) || c == this.b.b.Lg && a == this.b.b.Oh || !eZ(this, "selectedrangechangestart", "marquee") || !eZ(this, "selectedrangebeforechange", "marquee", c, a) || (dZ(this, c, a), eZ(this, "selectedrangechange",
"marquee"), eZ(this, "selectedrangechangefinish", "marquee"))
}
nZ(this);
return !0
};
$.f.r8 = function(a) {
var b = this.uK(),
c = $.dj(this.U().Ea()),
d = a.clientX - c.x;
c = a.clientY - c.y;
var e, g = !1;
if (b && b.length)
for (var h = 0; h < b.length; h++)
if ((e = b[h]) && e.left <= d && d <= e.left + e.width && e.top <= c && c <= e.top + e.height) {
g = !0;
break
}!g && this.j && this.j.bd() && (g = (e = this.j.pb()) && e.left <= d && d <= e.left + e.width && e.top <= c && c <= e.top + e.height);
g && ((Math.abs(a.deltaY) > Math.abs(a.deltaX) ? (d = !(a.shiftKey || a.ctrlKey || a.metaKey), b = a.deltaY) : (d = !1, b = a.deltaX), b = $.ob(b) * Math.min(Math.abs(b), 21), c = this.pe(), d) ? !c.It() || (h =
$.L(this.Wa(), JY), e = this.b.D, g = this.b.G, h ? (e = this.b.nf(e), g = this.b.nf(g), d = this.b.b.cg, c = this.b.b.Wi) : (d = this.b.b.Lg, c = this.b.b.Oh), (0, window.isNaN)(d) || (0, window.isNaN)(c) || (b = .0125 * b * (c - d), d -= b, c += b, c - d > g - e ? (d = e, c = g) : (d < e && (c += e - d, d = e), c > g && (d += g - c, c = g)), h ? (1 > c - d && (d = Math.round(d), c = d + 1), d = this.b.Dh(d), c = this.b.Dh(c)) : (b = this.b.nf(d), e = this.b.nf(c), 1 > e - b && (b = Math.round(b), e = b + 1, d = this.b.Dh(b), c = this.b.Dh(e))), d == this.b.b.Lg && c == this.b.b.Oh)) || (a.preventDefault(), this.Uc = d, this.wc = c, $.n(this.R) &&
($.mk.cancelAnimationFrame(this.R), this.Qb()), $.n(this.Y) || (this.Y = $.mk.requestAnimationFrame(this.cc))) : c.b() && (d = pZ(this), !(0, window.isNaN)(d.Ph) && !(0, window.isNaN)(d.lastIndex) && (b = qZ(this, .025 * -b, d))) && (a.preventDefault(), this.Nd = b, this.xd = d, $.n(this.Y) && ($.mk.cancelAnimationFrame(this.Y), this.cc()), $.n(this.R) || (this.R = $.mk.requestAnimationFrame(this.Qb))))
};
$.f.L$ = function() {
this.Y = void 0;
eZ(this, "selectedrangechangestart", "mouse-wheel") && eZ(this, "selectedrangebeforechange", "mouse-wheel", this.Uc, this.wc) && (dZ(this, this.Uc, this.wc), eZ(this, "selectedrangechange", "mouse-wheel"), eZ(this, "selectedrangechangefinish", "mouse-wheel"))
};
$.f.K$ = function() {
this.R = void 0;
if (eZ(this, "selectedrangechangestart", "mouse-wheel")) {
var a = this.xd,
b = PY(this, this.Nd, a);
b && KY(this, b[0], b[1], a, "mouse-wheel");
eZ(this, "selectedrangechangefinish", "mouse-wheel")
}
};
var uga = {
stock: {
"zoom-marquee-start": {
index: 8,
text: "Start zoom marquee",
eventType: "anychart.startZoomMarquee",
action: function(a) {
a.chart.I1(!1)
}
},
"stock-specific-separator": {
index: 9.4
}
}
};
$.f = bZ.prototype;
$.f.iH = function(a) {
$.Xc(a, $.Sk(uga.stock));
return a
};
$.f.gga = function(a) {
(a = eZ(this, "selectedrangechangestart", oZ(a.source))) && lZ(this);
return a
};
$.f.fga = function(a) {
a.preventDefault();
var b = a.startKey,
c = a.endKey;
a = oZ(a.source);
eZ(this, "selectedrangebeforechange", a, Math.min(b, c), Math.max(b, c)) && (dZ(this, b, c), eZ(this, "selectedrangechange", a))
};
$.f.ega = function(a) {
a.preventDefault();
eZ(this, "selectedrangechangefinish", oZ(a.source));
nZ(this)
};
$.f.vC = function(a) {
var b = this.b,
c = b.D,
d = b.G,
e = this.nf(c),
g = this.nf(d),
h = b.b.Oh,
k = b.b.cg,
l = b.b.Wi;
a.tu = b.b.Lg;
a.hz = h;
a.Ph = k;
a.lastIndex = l;
a.Ao = c;
a.Lq = d;
a.Qr = e;
a.fv = g
};
$.f.W = function() {
$.rd(this.g, this.j, this.b, this.Df, this.Uk, this.kt);
this.kt = this.Uk = this.Df = this.j = this.g = null;
delete this.b;
delete this.Aa;
bZ.F.W.call(this)
};
$.f.J = function() {
var a = bZ.F.J.call(this);
delete a.noDataLabel;
a.grouping = this.ko().J();
a.scrollerGrouping = this.xI().J();
a.xScale = this.Wa().J();
a.scroller = this.GC().J();
a.plots = (0, $.eb)(this.g, function(a) {
return a ? a.J() : null
});
a.crosshair = this.dg().J();
a.eventMarkers = this.li().J();
$.kp(this, D_, a);
a.interactivity = this.pe().J();
return a
};
$.f.$ = function(a, b) {
bZ.F.$.call(this, a, b);
"xScale" in a && this.Wa(a.xScale);
this.dg().ia(!!b, a.crosshair);
"defaultPlotSettings" in a && (this.Ma = a.defaultPlotSettings);
var c = a.plots;
if ($.C(c))
for (var d = 0; d < c.length; d++) cZ(this, d, c[d], b);
this.GC(a.scroller);
this.ko(a.grouping);
this.xI(a.scrollerGrouping);
"defaultAnnotationSettings" in a && this.AE(a.defaultAnnotationSettings);
(c = a.eventMarkers) && this.li().ia(!!b, c);
c = a.selectedRange;
$.F(c) && this.Z0(c.start, c.end);
$.cp(this, D_, a);
this.pe(a.interactivity)
};
$.f.gZ = function() {
var a = this.b.R,
b = [],
c;
for (c in a) b.push(pU(a[c]));
return b
};
$.f.xB = function() {
return ["_", "x"]
};
$.f.iF = function(a, b, c, d) {
var e = $.dn(a);
e in d ? d = d[e] : (d = d[e] = c.length, c.push([a, b]));
return c[d]
};
$.f.gT = function(a, b, c) {
bZ.F.gT.call(this, a, b.values, c)
};
$.f.yB = function(a) {
return a.Bl()
};
$.f.wB = function(a, b) {
var c = b.Ga.Aq().hf().Xb.Ma || "yyyy-MM-ddTHH:mm:ss.SSS";
return $.Dq(a.Bl(), c)
};
$.f.OY = function(a, b) {
switch (b) {
case "selected":
var c = a.Xf();
break;
case "grouped":
c = a.Ga;
var d = c.D ? FU(c.D, !1, !0) : null,
e = c.j.b;
if (e.length) {
var g = 0;
var h = e.length - 1;
var k = e[g];
e = e[h]
} else g = h = window.NaN, k = e = null;
c = new iU(c.g, {
Lg: window.NaN,
Oh: window.NaN,
pt: window.NaN,
Ph: g,
lastIndex: h,
nx: window.NaN,
aM: null,
DQ: k,
c_: e,
QG: null,
FL: {},
DL: {},
LI: [],
MI: [],
m2: {},
l2: {},
k2: [],
j2: []
}, c.K, !c.G, d);
break;
default:
c = GU(a.Ga.Aq().HP(), !1)
}
return c
};
$.f.IZ = function() {
return ""
};
$.f.mK = function(a) {
a = bZ.F.mK.call(this, a);
a.headers.shift();
a.data.sort(function(a, c) {
return a[0] - c[0]
});
(0, $.xa)(a.data, function(a) {
a.shift()
});
return a
};
var E_ = bZ.prototype;
$.H("anychart.stock", function(a) {
a = new bZ(a);
a.ia(!0, $.kl("stock"));
return a
});
E_.plot = E_.vf;
E_.crosshair = E_.dg;
E_.scroller = E_.GC;
E_.xScale = E_.Wa;
E_.selectRange = E_.Z0;
E_.getSelectedRange = E_.cba;
E_.getType = E_.Sa;
E_.legend = E_.Te;
E_.grouping = E_.ko;
E_.scrollerGrouping = E_.xI;
E_.annotations = E_.Jj;
E_.eventMarkers = E_.li;
E_.getPlotsCount = E_.Zaa;
E_.startZoomMarquee = E_.I1;
E_.interactivity = E_.pe;
E_.preserveSelectedRangeOnDataUpdate = E_.wfa;
}).call(this, $)
}
if (!_.theme_stock) {
_.theme_stock = 1;
(function($) {
var W9 = function() {
var a = this.defaultDecimalDigitsCount || void 0;
return this.seriesName + ":\n Open: " + $.gH(this.open, a) + "\n High: " + $.gH(this.high, a) + "\n Low: " + $.gH(this.low, a) + "\n Close: " + $.gH(this.close, a)
},
X9 = function() {
return $.Dq(this.x, $.Bq($.Aq(this.dataIntervalUnit, void 0, "full")))
};
$.ta($.ea.anychart.themes.defaultTheme, {
defaultGroupingSettings: {
enabled: !0,
forced: !1,
levels: [{
unit: "millisecond",
count: 1
}, {
unit: "millisecond",
count: 5
}, {
unit: "millisecond",
count: 10
}, {
unit: "millisecond",
count: 25
}, {
unit: "millisecond",
count: 50
}, {
unit: "millisecond",
count: 100
}, {
unit: "millisecond",
count: 250
}, {
unit: "millisecond",
count: 500
}, {
unit: "second",
count: 1
}, {
unit: "second",
count: 5
}, {
unit: "second",
count: 10
}, {
unit: "second",
count: 20
}, {
unit: "second",
count: 30
}, {
unit: "minute",
count: 1
}, {
unit: "minute",
count: 5
}, {
unit: "minute",
count: 15
}, {
unit: "minute",
count: 30
}, {
unit: "hour",
count: 1
}, {
unit: "hour",
count: 2
}, {
unit: "hour",
count: 6
}, {
unit: "hour",
count: 12
}, {
unit: "day",
count: 1
}, {
unit: "week",
count: 1
}, {
unit: "month",
count: 1
}, {
unit: "month",
count: 3
}, {
unit: "month",
count: 6
}, {
unit: "year",
count: 1
}],
maxVisiblePoints: 500,
minPixPerPoint: window.NaN
},
stock: {
grouping: {},
scrollerGrouping: {
levels: [{
unit: "millisecond",
count: 1
}, {
unit: "millisecond",
count: 2
}, {
unit: "millisecond",
count: 5
}, {
unit: "millisecond",
count: 10
}, {
unit: "millisecond",
count: 25
}, {
unit: "millisecond",
count: 50
}, {
unit: "millisecond",
count: 100
}, {
unit: "millisecond",
count: 250
}, {
unit: "millisecond",
count: 500
}, {
unit: "second",
count: 1
}, {
unit: "second",
count: 2
}, {
unit: "second",
count: 5
}, {
unit: "second",
count: 10
}, {
unit: "second",
count: 20
}, {
unit: "second",
count: 30
}, {
unit: "minute",
count: 1
}, {
unit: "minute",
count: 2
}, {
unit: "minute",
count: 5
}, {
unit: "minute",
count: 10
}, {
unit: "minute",
count: 20
}, {
unit: "minute",
count: 30
}, {
unit: "hour",
count: 1
}, {
unit: "hour",
count: 2
}, {
unit: "hour",
count: 3
}, {
unit: "hour",
count: 4
}, {
unit: "hour",
count: 6
}, {
unit: "hour",
count: 12
}, {
unit: "day",
count: 1
}, {
unit: "day",
count: 2
}, {
unit: "day",
count: 4
}, {
unit: "week",
count: 1
}, {
unit: "week",
count: 2
}, {
unit: "month",
count: 1
}, {
unit: "month",
count: 2
}, {
unit: "month",
count: 3
}, {
unit: "month",
count: 6
}, {
unit: "year",
count: 1
}],
maxVisiblePoints: window.NaN,
minPixPerPoint: 1
},
defaultAnnotationSettings: {},
defaultPlotSettings: {
annotations: {
annotationsList: [],
zIndex: 2E3
},
background: {
enabled: !1
},
defaultSeriesSettings: {
base: {
pointWidth: "75%",
tooltip: {
format: function() {
var a =
$.gH(this.value, this.defaultDecimalDigitsCount || void 0);
return this.seriesName + ": " + this.valuePrefix + a + this.valuePostfix
}
},
legendItem: {
iconStroke: "none"
},
normal: {
labels: {
offsetY: 10
}
}
},
areaLike: {
normal: {
labels: {
format: X9
}
},
hovered: {
markers: {
enabled: null
}
},
selected: {
markers: {
enabled: null
}
}
},
lineLike: {
normal: {
labels: {
format: X9
}
},
hovered: {
markers: {
enabled: null
}
},
selected: {
markers: {
enabled: null
}
}
},
rangeLike: {
normal: {
labels: {
format: X9
}
},
tooltip: {
format: function() {
var a = this.defaultDecimalDigitsCount || void 0;
return this.seriesName + ":\n High: " + $.gH(this.high, a) + "\n Low: " + $.gH(this.low, a)
}
}
},
candlestick: {
normal: {
labels: {
format: X9
}
},
tooltip: {
format: W9
}
},
column: {
normal: {
labels: {
format: X9
},
stroke: "none"
}
},
rangeColumn: {
normal: {
labels: {
format: X9
},
stroke: "none"
}
},
ohlc: {
normal: {
labels: {
format: X9
}
},
tooltip: {
format: W9
}
}
},
defaultGridSettings: {
scale: 0
},
defaultMinorGridSettings: {
scale: 0
},
defaultYAxisSettings: {
enabled: !0,
orientation: "left",
title: {
enabled: !1,
text: "Y-Axis"
},
staggerMode: !1,
staggerLines: null,
ticks: {
enabled: !0
},
width: 50,
labels: {
fontSize: "11px",
padding: {
top: 0,
right: 5,
bottom: 0,
left: 5
}
},
minorLabels: {
fontSize: "11px",
padding: {
top: 0,
right: 5,
bottom: 0,
left: 5
}
},
scale: 0
},
defaultPriceIndicatorSettings: {
label: {
enabled: !0,
background: {
enabled: !0,
fill: "#000"
},
fontColor: "#fff",
padding: [2, 9],
hAlign: "center",
fontSize: "11px"
},
stroke: "black"
},
xAxis: {
enabled: !0,
orientation: "bottom",
background: {
stroke: "#cecece",
fill: "#F7F7F7"
},
height: 25,
scale: 0,
ticks: {
enabled: !1
},
labels: {
enabled: !0,
fontSize: "11px",
padding: 5,
anchor: "center-top",
format: function() {
return $.Dq(this.tickValue, $.Bq($.Aq(this.majorIntervalUnit)))
}
},
minorLabels: {
enabled: !0,
anchor: "center-top",
fontSize: "11px",
padding: {
top: 5,
right: 0,
bottom: 5,
left: 0
},
format: function() {
return $.Dq(this.tickValue, $.Bq($.Aq(this.minorIntervalUnit, this.majorIntervalUnit)))
}
}
},
dateTimeHighlighter: "#B9B9B9",
legend: {
enabled: !0,
vAlign: "bottom",
iconSize: 13,
position: "top",
titleFormat: function() {
return $.Dq(this.value, $.Bq($.Aq(this.dataIntervalUnit, void 0, "full")))
},
align: "left",
padding: 10,
title: {
enabled: !0,
fontSize: 12,
text: "",
background: {
enabled: !1,
fill: {
keys: ["#fff", "#f3f3f3", "#fff"],
angle: "90"
},
stroke: {
keys: ["#ddd", "#d0d0d0"],
angle: "90"
}
},
margin: {
top: 0,
right: 15,
bottom: 0,
left: 0
},
padding: 0,
orientation: "left",
align: "left",
hAlign: "left",
rotation: 0,
wordBreak: "break-all"
},
titleSeparator: {
enabled: !1,
width: "100%",
height: 1,
margin: {
top: 3,
right: 0,
bottom: 3,
left: 0
},
orientation: "top",
fill: ["#000 0", "#000", "#000 0"],
stroke: "none"
}
},
scales: [{
type: "linear"
}],
yScale: 0,
zIndex: 10,
yAxes: [{}],
crosshair: {
zIndex: 201,
enabled: null,
xLabels: [{
enabled: null
}],
yLabels: [{
enabled: null
}]
}
},
padding: [20, 30, 20, 60],
plots: [{}],
eventMarkers: {
normal: {
type: "circle",
width: 22,
height: 22,
fill: "#515151",
stroke: "#515151",
fontColor: "#fff",
adjustFontSize: !0,
minFontSize: 6,
maxFontSize: 20,
fontSize: null,
format: "A",
hAlign: "center",
vAlign: "middle",
fontPadding: 2,
connector: {
length: 5,
stroke: "#455a64"
}
},
hovered: {
fill: $.qH
},
selected: {
fill: "#dd2c00"
},
tooltip: {
title: {
fontColor: "#fff",
enabled: !0
},
titleFormat: function() {
var a = $.Dq(this.date, $.Bq($.Aq(this.dataIntervalUnit,
void 0, "full")));
return this.title ? this.title + " (" + a + ")" : a
},
format: function() {
return this.description || this.symbol
},
fontColor: "#fff",
separator: !0
},
direction: "auto",
position: "axis",
seriesId: "0",
fieldName: "value"
},
scroller: {
defaultSeriesSettings: {
base: {
normal: {
fill: "#999 0.6",
stroke: "#999 0.6",
lowStroke: "#999 0.6",
highStroke: "#999 0.6"
},
selected: {
fill: $.kH,
stroke: $.kH,
lowStroke: $.kH,
highStroke: $.kH
},
pointWidth: "75%"
},
marker: {
normal: {
fill: "#999 0.6",
stroke: "#999 0.6"
},
selected: {
fill: $.kH,
stroke: $.kH
}
},
areaLike: {
normal: {
fill: "#999 0.6"
}
},
barLike: {
normal: {
fill: "#999 0.6"
}
},
candlestick: {
normal: {
risingFill: "#999 0.6",
risingStroke: "#999 0.6",
fallingFill: "#999 0.6",
fallingStroke: "#999 0.6"
},
selected: {
risingFill: "#64b5f6",
risingStroke: "#64b5f6",
fallingFill: "#ef6c00",
fallingStroke: "#ef6c00"
}
},
ohlc: {
normal: {
risingStroke: "#999 0.6",
fallingStroke: "#999 0.6"
},
selected: {
risingStroke: "#64b5f6",
fallingStroke: "#ef6c00"
}
},
stick: {
normal: {
stroke: "#999 0.6"
},
selected: {
stroke: $.tH
}
},
jumpLine: {
normal: {
stroke: "#999 0.6"
},
selected: {
stroke: $.tH
}
}
},
enabled: !0,
fill: "none",
selectedFill: "#1976d2 0.2",
outlineStroke: "#cecece",
height: 40,
minHeight: null,
maxHeight: null,
zIndex: 40,
xAxis: {
background: {
enabled: !1
},
minorTicks: {
enabled: !0,
stroke: "#cecece"
},
labels: {
enabled: !0,
fontSize: "11px",
padding: 5,
anchor: "left-top",
format: function() {
return $.Dq(this.tickValue, $.Bq($.Aq(this.majorIntervalUnit)))
}
},
minorLabels: {
enabled: !0,
anchor: "left-top",
fontSize: "11px",
padding: 5,
format: function() {
return $.Dq(this.tickValue, $.Bq($.Aq(this.minorIntervalUnit,
this.majorIntervalUnit)))
}
},
zIndex: 75
}
},
tooltip: {
allowLeaveScreen: !0,
displayMode: "union",
title: {
fontSize: 13
},
titleFormat: function() {
return $.Dq(this.hoveredDate, $.Bq($.Aq(this.dataIntervalUnit, void 0, "full")))
}
},
a11y: {
titleFormat: $.yH
},
zoomMarqueeFill: "#d3d3d3 0.4",
zoomMarqueeStroke: "#d3d3d3",
interactivity: {
zoomOnMouseWheel: !1,
scrollOnMouseWheel: !1
},
crosshair: {
enabled: !0,
displayMode: "sticky",
xLabels: [{
enabled: null
}],
yLabels: [{
enabled: null
}],
xStroke: "#969EA5",
yStroke: "#969EA5"
}
}
});
}).call(this, $)
}
$_ = window.anychart;
$_.$ = $;
$_._ = _
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment