qcell-react 1.0.45 → 1.0.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/main.3a2c7a175e28878c225d.js +0 -2
- package/dist/main.3a2c7a175e28878c225d.js.LICENSE.txt +0 -1283
- package/dist/qcell.f76a50e3eb8046513287.js +0 -2
- package/dist/qcell.f76a50e3eb8046513287.js.LICENSE.txt +0 -1035
- package/dist/src_QCELL_lib_jquery_plugins_jquery_browser_min_js.22aabb833d130986ae7b.js +0 -2
- package/dist/src_QCELL_lib_jquery_plugins_jquery_browser_min_js.22aabb833d130986ae7b.js.LICENSE.txt +0 -3
- package/dist/src_QCELL_lib_jquery_plugins_jquery_mousewheel_min_js.78685f610767cb8a8353.js +0 -2
- package/dist/src_QCELL_lib_jquery_plugins_jquery_mousewheel_min_js.78685f610767cb8a8353.js.LICENSE.txt +0 -3
- package/dist/src_QCELL_lib_jquery_plugins_jquery_sparkline_min_js.995e5dbe1aa55ee327dc.js +0 -2
- package/dist/src_QCELL_lib_jquery_plugins_jquery_sparkline_min_js.995e5dbe1aa55ee327dc.js.LICENSE.txt +0 -3
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see src_QCELL_lib_jquery_plugins_jquery_browser_min_js.22aabb833d130986ae7b.js.LICENSE.txt */
|
|
2
|
-
(this.webpackChunkqcell_react=this.webpackChunkqcell_react||[]).push([["src_QCELL_lib_jquery_plugins_jquery_browser_min_js"],{"./src/QCELL/lib/jquery/plugins/jquery.browser.min.js":(module,exports,__webpack_require__)=>{eval('var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }\n/*!\n * jQuery Browser Plugin 0.1.0\n * https://github.com/gabceb/jquery-browser-plugin\n *\n * Original jquery-browser code Copyright 2005, 2015 jQuery Foundation, Inc. and other contributors\n * http://jquery.org/license\n *\n * Modifications Copyright 2015 Gabriel Cebrian\n * https://github.com/gabceb\n *\n * Released under the MIT license\n *\n * Date: 23-11-2015\n */\n!function (a) {\n true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js")], __WEBPACK_AMD_DEFINE_RESULT__ = (function (b) {\n return a(b);\n }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : 0;\n}(function (a) {\n "use strict";\n\n function b(a) {\n void 0 === a && (a = window.navigator.userAgent), a = a.toLowerCase();\n var b = /(edge)\\/([\\w.]+)/.exec(a) || /(opr)[\\/]([\\w.]+)/.exec(a) || /(chrome)[ \\/]([\\w.]+)/.exec(a) || /(iemobile)[\\/]([\\w.]+)/.exec(a) || /(version)(applewebkit)[ \\/]([\\w.]+).*(safari)[ \\/]([\\w.]+)/.exec(a) || /(webkit)[ \\/]([\\w.]+).*(version)[ \\/]([\\w.]+).*(safari)[ \\/]([\\w.]+)/.exec(a) || /(webkit)[ \\/]([\\w.]+)/.exec(a) || /(opera)(?:.*version|)[ \\/]([\\w.]+)/.exec(a) || /(msie) ([\\w.]+)/.exec(a) || a.indexOf("trident") >= 0 && /(rv)(?::| )([\\w.]+)/.exec(a) || a.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\\w.]+)|)/.exec(a) || [],\n c = /(ipad)/.exec(a) || /(ipod)/.exec(a) || /(windows phone)/.exec(a) || /(iphone)/.exec(a) || /(kindle)/.exec(a) || /(silk)/.exec(a) || /(android)/.exec(a) || /(win)/.exec(a) || /(mac)/.exec(a) || /(linux)/.exec(a) || /(cros)/.exec(a) || /(playbook)/.exec(a) || /(bb)/.exec(a) || /(blackberry)/.exec(a) || [],\n d = {},\n e = {\n browser: b[5] || b[3] || b[1] || "",\n version: b[2] || b[4] || "0",\n versionNumber: b[4] || b[2] || "0",\n platform: c[0] || ""\n };\n if (e.browser && (d[e.browser] = !0, d.version = e.version, d.versionNumber = parseInt(e.versionNumber, 10)), e.platform && (d[e.platform] = !0), (d.android || d.bb || d.blackberry || d.ipad || d.iphone || d.ipod || d.kindle || d.playbook || d.silk || d["windows phone"]) && (d.mobile = !0), (d.cros || d.mac || d.linux || d.win) && (d.desktop = !0), (d.chrome || d.opr || d.safari) && (d.webkit = !0), d.rv || d.iemobile) {\n var f = "msie";\n e.browser = f, d[f] = !0;\n }\n if (d.edge) {\n delete d.edge;\n var g = "msedge";\n e.browser = g, d[g] = !0;\n }\n if (d.safari && d.blackberry) {\n var h = "blackberry";\n e.browser = h, d[h] = !0;\n }\n if (d.safari && d.playbook) {\n var i = "playbook";\n e.browser = i, d[i] = !0;\n }\n if (d.bb) {\n var j = "blackberry";\n e.browser = j, d[j] = !0;\n }\n if (d.opr) {\n var k = "opera";\n e.browser = k, d[k] = !0;\n }\n if (d.safari && d.android) {\n var l = "android";\n e.browser = l, d[l] = !0;\n }\n if (d.safari && d.kindle) {\n var m = "kindle";\n e.browser = m, d[m] = !0;\n }\n if (d.safari && d.silk) {\n var n = "silk";\n e.browser = n, d[n] = !0;\n }\n return d.name = e.browser, d.platform = e.platform, d;\n }\n return window.jQBrowser = b(window.navigator.userAgent), window.jQBrowser.uaMatch = b, a && (a.browser = window.jQBrowser), window.jQBrowser;\n});\n\n//# sourceURL=webpack://qcell-react/./src/QCELL/lib/jquery/plugins/jquery.browser.min.js?')}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see src_QCELL_lib_jquery_plugins_jquery_mousewheel_min_js.78685f610767cb8a8353.js.LICENSE.txt */
|
|
2
|
-
(this.webpackChunkqcell_react=this.webpackChunkqcell_react||[]).push([["src_QCELL_lib_jquery_plugins_jquery_mousewheel_min_js"],{"./src/QCELL/lib/jquery/plugins/jquery.mousewheel.min.js":(module,exports,__webpack_require__)=>{eval('var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }\n/*!\n * jQuery Mousewheel 3.1.13\n *\n * Copyright 2015 jQuery Foundation and other contributors\n * Released under the MIT license.\n * http://jquery.org/license\n */\n!function (a) {\n true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (a),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === \'function\' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : 0;\n}(function (a) {\n function b(b) {\n var g = b || window.event,\n h = i.call(arguments, 1),\n j = 0,\n l = 0,\n m = 0,\n n = 0,\n o = 0,\n p = 0;\n if (b = a.event.fix(g), b.type = "mousewheel", "detail" in g && (m = -1 * g.detail), "wheelDelta" in g && (m = g.wheelDelta), "wheelDeltaY" in g && (m = g.wheelDeltaY), "wheelDeltaX" in g && (l = -1 * g.wheelDeltaX), "axis" in g && g.axis === g.HORIZONTAL_AXIS && (l = -1 * m, m = 0), j = 0 === m ? l : m, "deltaY" in g && (m = -1 * g.deltaY, j = m), "deltaX" in g && (l = g.deltaX, 0 === m && (j = -1 * l)), 0 !== m || 0 !== l) {\n if (1 === g.deltaMode) {\n var q = a.data(this, "mousewheel-line-height");\n j *= q, m *= q, l *= q;\n } else if (2 === g.deltaMode) {\n var r = a.data(this, "mousewheel-page-height");\n j *= r, m *= r, l *= r;\n }\n if (n = Math.max(Math.abs(m), Math.abs(l)), (!f || f > n) && (f = n, d(g, n) && (f /= 40)), d(g, n) && (j /= 40, l /= 40, m /= 40), j = Math[j >= 1 ? "floor" : "ceil"](j / f), l = Math[l >= 1 ? "floor" : "ceil"](l / f), m = Math[m >= 1 ? "floor" : "ceil"](m / f), k.settings.normalizeOffset && this.getBoundingClientRect) {\n var s = this.getBoundingClientRect();\n o = b.clientX - s.left, p = b.clientY - s.top;\n }\n return b.deltaX = l, b.deltaY = m, b.deltaFactor = f, b.offsetX = o, b.offsetY = p, b.deltaMode = 0, h.unshift(b, j, l, m), e && clearTimeout(e), e = setTimeout(c, 200), (a.event.dispatch || a.event.handle).apply(this, h);\n }\n }\n function c() {\n f = null;\n }\n function d(a, b) {\n return k.settings.adjustOldDeltas && "mousewheel" === a.type && b % 120 === 0;\n }\n var e,\n f,\n g = ["wheel", "mousewheel", "DOMMouseScroll", "MozMousePixelScroll"],\n h = "onwheel" in document || document.documentMode >= 9 ? ["wheel"] : ["mousewheel", "DomMouseScroll", "MozMousePixelScroll"],\n i = Array.prototype.slice;\n if (a.event.fixHooks) for (var j = g.length; j;) a.event.fixHooks[g[--j]] = a.event.mouseHooks;\n var k = a.event.special.mousewheel = {\n version: "3.1.12",\n setup: function setup() {\n if (this.addEventListener) for (var c = h.length; c;) this.addEventListener(h[--c], b, !1);else this.onmousewheel = b;\n a.data(this, "mousewheel-line-height", k.getLineHeight(this)), a.data(this, "mousewheel-page-height", k.getPageHeight(this));\n },\n teardown: function teardown() {\n if (this.removeEventListener) for (var c = h.length; c;) this.removeEventListener(h[--c], b, !1);else this.onmousewheel = null;\n a.removeData(this, "mousewheel-line-height"), a.removeData(this, "mousewheel-page-height");\n },\n getLineHeight: function getLineHeight(b) {\n var c = a(b),\n d = c["offsetParent" in a.fn ? "offsetParent" : "parent"]();\n return d.length || (d = a("body")), parseInt(d.css("fontSize"), 10) || parseInt(c.css("fontSize"), 10) || 16;\n },\n getPageHeight: function getPageHeight(b) {\n return a(b).height();\n },\n settings: {\n adjustOldDeltas: !0,\n normalizeOffset: !0\n }\n };\n a.fn.extend({\n mousewheel: function mousewheel(a) {\n return a ? this.bind("mousewheel", a) : this.trigger("mousewheel");\n },\n unmousewheel: function unmousewheel(a) {\n return this.unbind("mousewheel", a);\n }\n });\n});\n\n//# sourceURL=webpack://qcell-react/./src/QCELL/lib/jquery/plugins/jquery.mousewheel.min.js?')}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see src_QCELL_lib_jquery_plugins_jquery_sparkline_min_js.995e5dbe1aa55ee327dc.js.LICENSE.txt */
|
|
2
|
-
(this.webpackChunkqcell_react=this.webpackChunkqcell_react||[]).push([["src_QCELL_lib_jquery_plugins_jquery_sparkline_min_js"],{"./src/QCELL/lib/jquery/plugins/jquery.sparkline.min.js":(module,exports,__webpack_require__)=>{eval('var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }\n/* jquery.sparkline 2.1.2 - http://omnipotent.net/jquery.sparkline/ \r\n** Licensed under the New BSD License - see above site for details */\n\n(function (a, b, c) {\n (function (a) {\n true ? !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! jquery */ "./node_modules/jquery/dist/jquery.js")], __WEBPACK_AMD_DEFINE_FACTORY__ = (a),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === \'function\' ?\n\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)) : 0;\n })(function (d) {\n "use strict";\n\n var e = {},\n f,\n g,\n h,\n i,\n j,\n k,\n l,\n m,\n n,\n o,\n p,\n q,\n r,\n s,\n t,\n u,\n v,\n w,\n x,\n y,\n z,\n A,\n B,\n C,\n D,\n E,\n F,\n G,\n H,\n I,\n J,\n K,\n L = 0;\n f = function f() {\n return {\n common: {\n type: "line",\n lineColor: "#00f",\n fillColor: "#cdf",\n defaultPixelsPerValue: 3,\n width: "auto",\n height: "auto",\n composite: !1,\n tagValuesAttribute: "values",\n tagOptionsPrefix: "spark",\n enableTagOptions: !1,\n enableHighlight: !0,\n highlightLighten: 1.4,\n tooltipSkipNull: !0,\n tooltipPrefix: "",\n tooltipSuffix: "",\n disableHiddenCheck: !1,\n numberFormatter: !1,\n numberDigitGroupCount: 3,\n numberDigitGroupSep: ",",\n numberDecimalMark: ".",\n disableTooltips: !1,\n disableInteraction: !1\n },\n line: {\n spotColor: "#f80",\n highlightSpotColor: "#5f5",\n highlightLineColor: "#f22",\n spotRadius: 1.5,\n minSpotColor: "#f80",\n maxSpotColor: "#f80",\n lineWidth: 1,\n normalRangeMin: c,\n normalRangeMax: c,\n normalRangeColor: "#ccc",\n drawNormalOnTop: !1,\n chartRangeMin: c,\n chartRangeMax: c,\n chartRangeMinX: c,\n chartRangeMaxX: c,\n tooltipFormat: new h(\'<span style="color: {{color}}">●</span> {{prefix}}{{y}}{{suffix}}\')\n },\n bar: {\n barColor: "#3366cc",\n negBarColor: "#f44",\n stackedBarColor: ["#3366cc", "#dc3912", "#ff9900", "#109618", "#66aa00", "#dd4477", "#0099c6", "#990099"],\n zeroColor: c,\n nullColor: c,\n zeroAxis: !0,\n barWidth: 4,\n barSpacing: 1,\n chartRangeMax: c,\n chartRangeMin: c,\n chartRangeClip: !1,\n colorMap: c,\n tooltipFormat: new h(\'<span style="color: {{color}}">●</span> {{prefix}}{{value}}{{suffix}}\')\n },\n tristate: {\n barWidth: 4,\n barSpacing: 1,\n posBarColor: "#6f6",\n negBarColor: "#f44",\n zeroBarColor: "#999",\n colorMap: {},\n tooltipFormat: new h(\'<span style="color: {{color}}">●</span> {{value:map}}\'),\n tooltipValueLookups: {\n map: {\n "-1": "Loss",\n 0: "Draw",\n 1: "Win"\n }\n }\n },\n discrete: {\n lineHeight: "auto",\n thresholdColor: c,\n thresholdValue: 0,\n chartRangeMax: c,\n chartRangeMin: c,\n chartRangeClip: !1,\n tooltipFormat: new h("{{prefix}}{{value}}{{suffix}}")\n },\n bullet: {\n targetColor: "#f33",\n targetWidth: 3,\n performanceColor: "#33f",\n rangeColors: ["#d3dafe", "#a8b6ff", "#7f94ff"],\n base: c,\n tooltipFormat: new h("{{fieldkey:fields}} - {{value}}"),\n tooltipValueLookups: {\n fields: {\n r: "Range",\n p: "Performance",\n t: "Target"\n }\n }\n },\n pie: {\n offset: 0,\n sliceColors: ["#3366cc", "#dc3912", "#ff9900", "#109618", "#66aa00", "#dd4477", "#0099c6", "#990099"],\n borderWidth: 0,\n borderColor: "#000",\n tooltipFormat: new h(\'<span style="color: {{color}}">●</span> {{value}} ({{percent.1}}%)\')\n },\n box: {\n raw: !1,\n boxLineColor: "#000",\n boxFillColor: "#cdf",\n whiskerColor: "#000",\n outlierLineColor: "#333",\n outlierFillColor: "#fff",\n medianColor: "#f00",\n showOutliers: !0,\n outlierIQR: 1.5,\n spotRadius: 1.5,\n target: c,\n targetColor: "#4a2",\n chartRangeMax: c,\n chartRangeMin: c,\n tooltipFormat: new h("{{field:fields}}: {{value}}"),\n tooltipFormatFieldlistKey: "field",\n tooltipValueLookups: {\n fields: {\n lq: "Lower Quartile",\n med: "Median",\n uq: "Upper Quartile",\n lo: "Left Outlier",\n ro: "Right Outlier",\n lw: "Left Whisker",\n rw: "Right Whisker"\n }\n }\n }\n };\n }, E = \'.jqstooltip { position: absolute;left: 0px;top: 0px;visibility: hidden;background: rgb(0, 0, 0) transparent;background-color: rgba(0,0,0,0.6);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000);-ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000, endColorstr=#99000000)";color: white;font: 10px arial, san serif;text-align: left;white-space: nowrap;padding: 5px;border: 1px solid white;z-index: 10000;}.jqsfield { color: white;font: 10px arial, san serif;text-align: left;}\', g = function g() {\n var a, b;\n return a = function a() {\n this.init.apply(this, arguments);\n }, arguments.length > 1 ? (arguments[0] ? (a.prototype = d.extend(new arguments[0](), arguments[arguments.length - 1]), a._super = arguments[0].prototype) : a.prototype = arguments[arguments.length - 1], arguments.length > 2 && (b = Array.prototype.slice.call(arguments, 1, -1), b.unshift(a.prototype), d.extend.apply(d, b))) : a.prototype = arguments[0], a.prototype.cls = a, a;\n }, d.SPFormatClass = h = g({\n fre: /\\{\\{([\\w.]+?)(:(.+?))?\\}\\}/g,\n precre: /(\\w+)\\.(\\d+)/,\n init: function init(a, b) {\n this.format = a, this.fclass = b;\n },\n render: function render(a, b, d) {\n var e = this,\n f = a,\n g,\n h,\n i,\n j,\n k;\n return this.format.replace(this.fre, function () {\n var a;\n return h = arguments[1], i = arguments[3], g = e.precre.exec(h), g ? (k = g[2], h = g[1]) : k = !1, j = f[h], j === c ? "" : i && b && b[i] ? (a = b[i], a.get ? b[i].get(j) || j : b[i][j] || j) : (n(j) && (d.get("numberFormatter") ? j = d.get("numberFormatter")(j) : j = s(j, k, d.get("numberDigitGroupCount"), d.get("numberDigitGroupSep"), d.get("numberDecimalMark"))), j);\n });\n }\n }), d.spformat = function (a, b) {\n return new h(a, b);\n }, i = function i(a, b, c) {\n return a < b ? b : a > c ? c : a;\n }, j = function j(a, c) {\n var d;\n return c === 2 ? (d = b.floor(a.length / 2), a.length % 2 ? a[d] : (a[d - 1] + a[d]) / 2) : a.length % 2 ? (d = (a.length * c + c) / 4, d % 1 ? (a[b.floor(d)] + a[b.floor(d) - 1]) / 2 : a[d - 1]) : (d = (a.length * c + 2) / 4, d % 1 ? (a[b.floor(d)] + a[b.floor(d) - 1]) / 2 : a[d - 1]);\n }, k = function k(a) {\n var b;\n switch (a) {\n case "undefined":\n a = c;\n break;\n case "null":\n a = null;\n break;\n case "true":\n a = !0;\n break;\n case "false":\n a = !1;\n break;\n default:\n b = parseFloat(a), a == b && (a = b);\n }\n return a;\n }, l = function l(a) {\n var b,\n c = [];\n for (b = a.length; b--;) c[b] = k(a[b]);\n return c;\n }, m = function m(a, b) {\n var c,\n d,\n e = [];\n for (c = 0, d = a.length; c < d; c++) a[c] !== b && e.push(a[c]);\n return e;\n }, n = function n(a) {\n return !isNaN(parseFloat(a)) && isFinite(a);\n }, s = function s(a, b, c, e, f) {\n var g, h;\n a = (b === !1 ? parseFloat(a).toString() : a.toFixed(b)).split(""), g = (g = d.inArray(".", a)) < 0 ? a.length : g, g < a.length && (a[g] = f);\n for (h = g - c; h > 0; h -= c) a.splice(h, 0, e);\n return a.join("");\n }, o = function o(a, b, c) {\n var d;\n for (d = b.length; d--;) {\n if (c && b[d] === null) continue;\n if (b[d] !== a) return !1;\n }\n return !0;\n }, p = function p(a) {\n var b = 0,\n c;\n for (c = a.length; c--;) b += typeof a[c] == "number" ? a[c] : 0;\n return b;\n }, r = function r(a) {\n return d.isArray(a) ? a : [a];\n }, q = function q(b) {\n var c;\n a.createStyleSheet ? a.createStyleSheet().cssText = b : (c = a.createElement("style"), c.type = "text/css", a.getElementsByTagName("head")[0].appendChild(c), c[typeof a.body.style.WebkitAppearance == "string" ? "innerText" : "innerHTML"] = b);\n }, d.fn.simpledraw = function (b, e, f, g) {\n var h, i;\n if (f && (h = this.data("_jqs_vcanvas"))) return h;\n if (d.fn.sparkline.canvas === !1) return !1;\n if (d.fn.sparkline.canvas === c) {\n var j = a.createElement("canvas");\n if (!j.getContext || !j.getContext("2d")) {\n if (!a.namespaces || !!a.namespaces.v) return d.fn.sparkline.canvas = !1, !1;\n a.namespaces.add("v", "urn:schemas-microsoft-com:vml", "#default#VML"), d.fn.sparkline.canvas = function (a, b, c, d) {\n return new J(a, b, c);\n };\n } else d.fn.sparkline.canvas = function (a, b, c, d) {\n return new I(a, b, c, d);\n };\n }\n return b === c && (b = d(this).innerWidth()), e === c && (e = d(this).innerHeight()), h = d.fn.sparkline.canvas(b, e, this, g), i = d(this).data("_jqs_mhandler"), i && i.registerCanvas(h), h;\n }, d.fn.cleardraw = function () {\n var a = this.data("_jqs_vcanvas");\n a && a.reset();\n }, d.RangeMapClass = t = g({\n init: function init(a) {\n var b,\n c,\n d = [];\n for (b in a) a.hasOwnProperty(b) && typeof b == "string" && b.indexOf(":") > -1 && (c = b.split(":"), c[0] = c[0].length === 0 ? -Infinity : parseFloat(c[0]), c[1] = c[1].length === 0 ? Infinity : parseFloat(c[1]), c[2] = a[b], d.push(c));\n this.map = a, this.rangelist = d || !1;\n },\n get: function get(a) {\n var b = this.rangelist,\n d,\n e,\n f;\n if ((f = this.map[a]) !== c) return f;\n if (b) for (d = b.length; d--;) {\n e = b[d];\n if (e[0] <= a && e[1] >= a) return e[2];\n }\n return c;\n }\n }), d.range_map = function (a) {\n return new t(a);\n }, u = g({\n init: function init(a, b) {\n var c = d(a);\n this.$el = c, this.options = b, this.currentPageX = 0, this.currentPageY = 0, this.el = a, this.splist = [], this.tooltip = null, this.over = !1, this.displayTooltips = !b.get("disableTooltips"), this.highlightEnabled = !b.get("disableHighlight");\n },\n registerSparkline: function registerSparkline(a) {\n this.splist.push(a), this.over && this.updateDisplay();\n },\n registerCanvas: function registerCanvas(a) {\n var b = d(a.canvas);\n this.canvas = a, this.$canvas = b, b.mouseenter(d.proxy(this.mouseenter, this)), b.mouseleave(d.proxy(this.mouseleave, this)), b.click(d.proxy(this.mouseclick, this));\n },\n reset: function reset(a) {\n this.splist = [], this.tooltip && a && (this.tooltip.remove(), this.tooltip = c);\n },\n mouseclick: function mouseclick(a) {\n var b = d.Event("sparklineClick");\n b.originalEvent = a, b.sparklines = this.splist, this.$el.trigger(b);\n },\n mouseenter: function mouseenter(b) {\n d(a.body).unbind("mousemove.jqs"), d(a.body).bind("mousemove.jqs", d.proxy(this.mousemove, this)), this.over = !0, this.currentPageX = b.pageX, this.currentPageY = b.pageY, this.currentEl = b.target, !this.tooltip && this.displayTooltips && (this.tooltip = new v(this.options), this.tooltip.updatePosition(b.pageX, b.pageY)), this.updateDisplay();\n },\n mouseleave: function mouseleave() {\n d(a.body).unbind("mousemove.jqs");\n var b = this.splist,\n c = b.length,\n e = !1,\n f,\n g;\n this.over = !1, this.currentEl = null, this.tooltip && (this.tooltip.remove(), this.tooltip = null);\n for (g = 0; g < c; g++) f = b[g], f.clearRegionHighlight() && (e = !0);\n e && this.canvas.render();\n },\n mousemove: function mousemove(a) {\n this.currentPageX = a.pageX, this.currentPageY = a.pageY, this.currentEl = a.target, this.tooltip && this.tooltip.updatePosition(a.pageX, a.pageY), this.updateDisplay();\n },\n updateDisplay: function updateDisplay() {\n var a = this.splist,\n b = a.length,\n c = !1,\n e = this.$canvas.offset(),\n f = this.currentPageX - e.left,\n g = this.currentPageY - e.top,\n h,\n i,\n j,\n k,\n l;\n if (!this.over) return;\n for (j = 0; j < b; j++) i = a[j], k = i.setRegionHighlight(this.currentEl, f, g), k && (c = !0);\n if (c) {\n l = d.Event("sparklineRegionChange"), l.sparklines = this.splist, this.$el.trigger(l);\n if (this.tooltip) {\n h = "";\n for (j = 0; j < b; j++) i = a[j], h += i.getCurrentRegionTooltip();\n this.tooltip.setContent(h);\n }\n this.disableHighlight || this.canvas.render();\n }\n k === null && this.mouseleave();\n }\n }), v = g({\n sizeStyle: "position: static !important;display: block !important;visibility: hidden !important;float: left !important;",\n init: function init(b) {\n var c = b.get("tooltipClassname", "jqstooltip"),\n e = this.sizeStyle,\n f;\n this.container = b.get("tooltipContainer") || a.body, this.tooltipOffsetX = b.get("tooltipOffsetX", 10), this.tooltipOffsetY = b.get("tooltipOffsetY", 12), d("#jqssizetip").remove(), d("#jqstooltip").remove(), this.sizetip = d("<div/>", {\n id: "jqssizetip",\n style: e,\n "class": c\n }), this.tooltip = d("<div/>", {\n id: "jqstooltip",\n "class": c\n }).appendTo(this.container), f = this.tooltip.offset(), this.offsetLeft = f.left, this.offsetTop = f.top, this.hidden = !0, d(window).unbind("resize.jqs scroll.jqs"), d(window).bind("resize.jqs scroll.jqs", d.proxy(this.updateWindowDims, this)), this.updateWindowDims();\n },\n updateWindowDims: function updateWindowDims() {\n this.scrollTop = d(window).scrollTop(), this.scrollLeft = d(window).scrollLeft(), this.scrollRight = this.scrollLeft + d(window).width(), this.updatePosition();\n },\n getSize: function getSize(a) {\n this.sizetip.html(a).appendTo(this.container), this.width = this.sizetip.width() + 1, this.height = this.sizetip.height(), this.sizetip.remove();\n },\n setContent: function setContent(a) {\n if (!a) {\n this.tooltip.css("visibility", "hidden"), this.hidden = !0;\n return;\n }\n this.getSize(a), this.tooltip.html(a).css({\n width: this.width,\n height: this.height,\n visibility: "visible"\n }), this.hidden && (this.hidden = !1, this.updatePosition());\n },\n updatePosition: function updatePosition(a, b) {\n if (a === c) {\n if (this.mousex === c) return;\n a = this.mousex - this.offsetLeft, b = this.mousey - this.offsetTop;\n } else this.mousex = a -= this.offsetLeft, this.mousey = b -= this.offsetTop;\n if (!this.height || !this.width || this.hidden) return;\n b -= this.height + this.tooltipOffsetY, a += this.tooltipOffsetX, b < this.scrollTop && (b = this.scrollTop), a < this.scrollLeft ? a = this.scrollLeft : a + this.width > this.scrollRight && (a = this.scrollRight - this.width), this.tooltip.css({\n left: a,\n top: b\n });\n },\n remove: function remove() {\n this.tooltip.remove(), this.sizetip.remove(), this.sizetip = this.tooltip = c, d(window).unbind("resize.jqs scroll.jqs");\n }\n }), F = function F() {\n q(E);\n }, d(F), K = [], d.fn.sparkline = function (b, e) {\n return this.each(function () {\n var f = new d.fn.sparkline.options(this, e),\n g = d(this),\n h,\n i;\n h = function h() {\n var e, h, i, j, k, l, m;\n if (b === "html" || b === c) {\n m = this.getAttribute(f.get("tagValuesAttribute"));\n if (m === c || m === null) m = g.html();\n e = m.replace(/(^\\s*\x3c!--)|(--\x3e\\s*$)|\\s+/g, "").split(",");\n } else e = b;\n h = f.get("width") === "auto" ? e.length * f.get("defaultPixelsPerValue") : f.get("width");\n if (f.get("height") === "auto") {\n if (!f.get("composite") || !d.data(this, "_jqs_vcanvas")) j = a.createElement("span"), j.innerHTML = "a", g.html(j), i = d(j).innerHeight() || d(j).height(), d(j).remove(), j = null;\n } else i = f.get("height");\n f.get("disableInteraction") ? k = !1 : (k = d.data(this, "_jqs_mhandler"), k ? f.get("composite") || k.reset() : (k = new u(this, f), d.data(this, "_jqs_mhandler", k)));\n if (f.get("composite") && !d.data(this, "_jqs_vcanvas")) {\n d.data(this, "_jqs_errnotify") || (alert("Attempted to attach a composite sparkline to an element with no existing sparkline"), d.data(this, "_jqs_errnotify", !0));\n return;\n }\n l = new d.fn.sparkline[f.get("type")](this, e, f, h, i), l.render(), k && k.registerSparkline(l);\n };\n if (d(this).html() && !f.get("disableHiddenCheck") && d(this).is(":hidden") || !d(this).parents("body").length) {\n if (!f.get("composite") && d.data(this, "_jqs_pending")) for (i = K.length; i; i--) K[i - 1][0] == this && K.splice(i - 1, 1);\n K.push([this, h]), d.data(this, "_jqs_pending", !0);\n } else h.call(this);\n });\n }, d.fn.sparkline.defaults = f(), d.sparkline_display_visible = function () {\n var a,\n b,\n c,\n e = [];\n for (b = 0, c = K.length; b < c; b++) a = K[b][0], d(a).is(":visible") && !d(a).parents().is(":hidden") ? (K[b][1].call(a), d.data(K[b][0], "_jqs_pending", !1), e.push(b)) : !d(a).closest("html").length && !d.data(a, "_jqs_pending") && (d.data(K[b][0], "_jqs_pending", !1), e.push(b));\n for (b = e.length; b; b--) K.splice(e[b - 1], 1);\n }, d.fn.sparkline.options = g({\n init: function init(a, b) {\n var c, f, g, h;\n this.userOptions = b = b || {}, this.tag = a, this.tagValCache = {}, f = d.fn.sparkline.defaults, g = f.common, this.tagOptionsPrefix = b.enableTagOptions && (b.tagOptionsPrefix || g.tagOptionsPrefix), h = this.getTagSetting("type"), h === e ? c = f[b.type || g.type] : c = f[h], this.mergedOptions = d.extend({}, g, c, b);\n },\n getTagSetting: function getTagSetting(a) {\n var b = this.tagOptionsPrefix,\n d,\n f,\n g,\n h;\n if (b === !1 || b === c) return e;\n if (this.tagValCache.hasOwnProperty(a)) d = this.tagValCache.key;else {\n d = this.tag.getAttribute(b + a);\n if (d === c || d === null) d = e;else if (d.substr(0, 1) === "[") {\n d = d.substr(1, d.length - 2).split(",");\n for (f = d.length; f--;) d[f] = k(d[f].replace(/(^\\s*)|(\\s*$)/g, ""));\n } else if (d.substr(0, 1) === "{") {\n g = d.substr(1, d.length - 2).split(","), d = {};\n for (f = g.length; f--;) h = g[f].split(":", 2), d[h[0].replace(/(^\\s*)|(\\s*$)/g, "")] = k(h[1].replace(/(^\\s*)|(\\s*$)/g, ""));\n } else d = k(d);\n this.tagValCache.key = d;\n }\n return d;\n },\n get: function get(a, b) {\n var d = this.getTagSetting(a),\n f;\n return d !== e ? d : (f = this.mergedOptions[a]) === c ? b : f;\n }\n }), d.fn.sparkline._base = g({\n disabled: !1,\n init: function init(a, b, e, f, g) {\n this.el = a, this.$el = d(a), this.values = b, this.options = e, this.width = f, this.height = g, this.currentRegion = c;\n },\n initTarget: function initTarget() {\n var a = !this.options.get("disableInteraction");\n (this.target = this.$el.simpledraw(this.width, this.height, this.options.get("composite"), a)) ? (this.canvasWidth = this.target.pixelWidth, this.canvasHeight = this.target.pixelHeight) : this.disabled = !0;\n },\n render: function render() {\n return this.disabled ? (this.el.innerHTML = "", !1) : !0;\n },\n getRegion: function getRegion(a, b) {},\n setRegionHighlight: function setRegionHighlight(a, b, d) {\n var e = this.currentRegion,\n f = !this.options.get("disableHighlight"),\n g;\n return b > this.canvasWidth || d > this.canvasHeight || b < 0 || d < 0 ? null : (g = this.getRegion(a, b, d), e !== g ? (e !== c && f && this.removeHighlight(), this.currentRegion = g, g !== c && f && this.renderHighlight(), !0) : !1);\n },\n clearRegionHighlight: function clearRegionHighlight() {\n return this.currentRegion !== c ? (this.removeHighlight(), this.currentRegion = c, !0) : !1;\n },\n renderHighlight: function renderHighlight() {\n this.changeHighlight(!0);\n },\n removeHighlight: function removeHighlight() {\n this.changeHighlight(!1);\n },\n changeHighlight: function changeHighlight(a) {},\n getCurrentRegionTooltip: function getCurrentRegionTooltip() {\n var a = this.options,\n b = "",\n e = [],\n f,\n g,\n i,\n j,\n k,\n l,\n m,\n n,\n o,\n p,\n q,\n r,\n s,\n t;\n if (this.currentRegion === c) return "";\n f = this.getCurrentRegionFields(), q = a.get("tooltipFormatter");\n if (q) return q(this, a, f);\n a.get("tooltipChartTitle") && (b += \'<div class="jqs jqstitle">\' + a.get("tooltipChartTitle") + "</div>\\n"), g = this.options.get("tooltipFormat");\n if (!g) return "";\n d.isArray(g) || (g = [g]), d.isArray(f) || (f = [f]), m = this.options.get("tooltipFormatFieldlist"), n = this.options.get("tooltipFormatFieldlistKey");\n if (m && n) {\n o = [];\n for (l = f.length; l--;) p = f[l][n], (t = d.inArray(p, m)) != -1 && (o[t] = f[l]);\n f = o;\n }\n i = g.length, s = f.length;\n for (l = 0; l < i; l++) {\n r = g[l], typeof r == "string" && (r = new h(r)), j = r.fclass || "jqsfield";\n for (t = 0; t < s; t++) if (!f[t].isNull || !a.get("tooltipSkipNull")) d.extend(f[t], {\n prefix: a.get("tooltipPrefix"),\n suffix: a.get("tooltipSuffix")\n }), k = r.render(f[t], a.get("tooltipValueLookups"), a), e.push(\'<div class="\' + j + \'">\' + k + "</div>");\n }\n return e.length ? b + e.join("\\n") : "";\n },\n getCurrentRegionFields: function getCurrentRegionFields() {},\n calcHighlightColor: function calcHighlightColor(a, c) {\n var d = c.get("highlightColor"),\n e = c.get("highlightLighten"),\n f,\n g,\n h,\n j;\n if (d) return d;\n if (e) {\n f = /^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(a) || /^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(a);\n if (f) {\n h = [], g = a.length === 4 ? 16 : 1;\n for (j = 0; j < 3; j++) h[j] = i(b.round(parseInt(f[j + 1], 16) * g * e), 0, 255);\n return "rgb(" + h.join(",") + ")";\n }\n }\n return a;\n }\n }), w = {\n changeHighlight: function changeHighlight(a) {\n var b = this.currentRegion,\n c = this.target,\n e = this.regionShapes[b],\n f;\n e && (f = this.renderRegion(b, a), d.isArray(f) || d.isArray(e) ? (c.replaceWithShapes(e, f), this.regionShapes[b] = d.map(f, function (a) {\n return a.id;\n })) : (c.replaceWithShape(e, f), this.regionShapes[b] = f.id));\n },\n render: function render() {\n var a = this.values,\n b = this.target,\n c = this.regionShapes,\n e,\n f,\n g,\n h;\n if (!this.cls._super.render.call(this)) return;\n for (g = a.length; g--;) {\n e = this.renderRegion(g);\n if (e) {\n if (d.isArray(e)) {\n f = [];\n for (h = e.length; h--;) e[h].append(), f.push(e[h].id);\n c[g] = f;\n } else e.append(), c[g] = e.id;\n } else c[g] = null;\n }\n b.render();\n }\n }, d.fn.sparkline.line = x = g(d.fn.sparkline._base, {\n type: "line",\n init: function init(a, b, c, d, e) {\n x._super.init.call(this, a, b, c, d, e), this.vertices = [], this.regionMap = [], this.xvalues = [], this.yvalues = [], this.yminmax = [], this.hightlightSpotId = null, this.lastShapeId = null, this.initTarget();\n },\n getRegion: function getRegion(a, b, d) {\n var e,\n f = this.regionMap;\n for (e = f.length; e--;) if (f[e] !== null && b >= f[e][0] && b <= f[e][1]) return f[e][2];\n return c;\n },\n getCurrentRegionFields: function getCurrentRegionFields() {\n var a = this.currentRegion;\n return {\n isNull: this.yvalues[a] === null,\n x: this.xvalues[a],\n y: this.yvalues[a],\n color: this.options.get("lineColor"),\n fillColor: this.options.get("fillColor"),\n offset: a\n };\n },\n renderHighlight: function renderHighlight() {\n var a = this.currentRegion,\n b = this.target,\n d = this.vertices[a],\n e = this.options,\n f = e.get("spotRadius"),\n g = e.get("highlightSpotColor"),\n h = e.get("highlightLineColor"),\n i,\n j;\n if (!d) return;\n f && g && (i = b.drawCircle(d[0], d[1], f, c, g), this.highlightSpotId = i.id, b.insertAfterShape(this.lastShapeId, i)), h && (j = b.drawLine(d[0], this.canvasTop, d[0], this.canvasTop + this.canvasHeight, h), this.highlightLineId = j.id, b.insertAfterShape(this.lastShapeId, j));\n },\n removeHighlight: function removeHighlight() {\n var a = this.target;\n this.highlightSpotId && (a.removeShapeId(this.highlightSpotId), this.highlightSpotId = null), this.highlightLineId && (a.removeShapeId(this.highlightLineId), this.highlightLineId = null);\n },\n scanValues: function scanValues() {\n var a = this.values,\n c = a.length,\n d = this.xvalues,\n e = this.yvalues,\n f = this.yminmax,\n g,\n h,\n i,\n j,\n k;\n for (g = 0; g < c; g++) h = a[g], i = typeof a[g] == "string", j = _typeof(a[g]) == "object" && a[g] instanceof Array, k = i && a[g].split(":"), i && k.length === 2 ? (d.push(Number(k[0])), e.push(Number(k[1])), f.push(Number(k[1]))) : j ? (d.push(h[0]), e.push(h[1]), f.push(h[1])) : (d.push(g), a[g] === null || a[g] === "null" ? e.push(null) : (e.push(Number(h)), f.push(Number(h))));\n this.options.get("xvalues") && (d = this.options.get("xvalues")), this.maxy = this.maxyorg = b.max.apply(b, f), this.miny = this.minyorg = b.min.apply(b, f), this.maxx = b.max.apply(b, d), this.minx = b.min.apply(b, d), this.xvalues = d, this.yvalues = e, this.yminmax = f;\n },\n processRangeOptions: function processRangeOptions() {\n var a = this.options,\n b = a.get("normalRangeMin"),\n d = a.get("normalRangeMax");\n b !== c && (b < this.miny && (this.miny = b), d > this.maxy && (this.maxy = d)), a.get("chartRangeMin") !== c && (a.get("chartRangeClip") || a.get("chartRangeMin") < this.miny) && (this.miny = a.get("chartRangeMin")), a.get("chartRangeMax") !== c && (a.get("chartRangeClip") || a.get("chartRangeMax") > this.maxy) && (this.maxy = a.get("chartRangeMax")), a.get("chartRangeMinX") !== c && (a.get("chartRangeClipX") || a.get("chartRangeMinX") < this.minx) && (this.minx = a.get("chartRangeMinX")), a.get("chartRangeMaxX") !== c && (a.get("chartRangeClipX") || a.get("chartRangeMaxX") > this.maxx) && (this.maxx = a.get("chartRangeMaxX"));\n },\n drawNormalRange: function drawNormalRange(a, d, e, f, g) {\n var h = this.options.get("normalRangeMin"),\n i = this.options.get("normalRangeMax"),\n j = d + b.round(e - e * ((i - this.miny) / g)),\n k = b.round(e * (i - h) / g);\n this.target.drawRect(a, j, f, k, c, this.options.get("normalRangeColor")).append();\n },\n render: function render() {\n var a = this.options,\n e = this.target,\n f = this.canvasWidth,\n g = this.canvasHeight,\n h = this.vertices,\n i = a.get("spotRadius"),\n j = this.regionMap,\n k,\n l,\n m,\n n,\n o,\n p,\n q,\n r,\n s,\n u,\n v,\n w,\n y,\n z,\n A,\n B,\n C,\n D,\n E,\n F,\n G,\n H,\n I,\n J,\n K;\n if (!x._super.render.call(this)) return;\n this.scanValues(), this.processRangeOptions(), I = this.xvalues, J = this.yvalues;\n if (!this.yminmax.length || this.yvalues.length < 2) return;\n n = o = 0, k = this.maxx - this.minx === 0 ? 1 : this.maxx - this.minx, l = this.maxy - this.miny === 0 ? 1 : this.maxy - this.miny, m = this.yvalues.length - 1, i && (f < i * 4 || g < i * 4) && (i = 0);\n if (i) {\n G = a.get("highlightSpotColor") && !a.get("disableInteraction");\n if (G || a.get("minSpotColor") || a.get("spotColor") && J[m] === this.miny) g -= b.ceil(i);\n if (G || a.get("maxSpotColor") || a.get("spotColor") && J[m] === this.maxy) g -= b.ceil(i), n += b.ceil(i);\n if (G || (a.get("minSpotColor") || a.get("maxSpotColor")) && (J[0] === this.miny || J[0] === this.maxy)) o += b.ceil(i), f -= b.ceil(i);\n if (G || a.get("spotColor") || a.get("minSpotColor") || a.get("maxSpotColor") && (J[m] === this.miny || J[m] === this.maxy)) f -= b.ceil(i);\n }\n g--, a.get("normalRangeMin") !== c && !a.get("drawNormalOnTop") && this.drawNormalRange(o, n, g, f, l), q = [], r = [q], z = A = null, B = J.length;\n for (K = 0; K < B; K++) s = I[K], v = I[K + 1], u = J[K], w = o + b.round((s - this.minx) * (f / k)), y = K < B - 1 ? o + b.round((v - this.minx) * (f / k)) : f, A = w + (y - w) / 2, j[K] = [z || 0, A, K], z = A, u === null ? K && (J[K - 1] !== null && (q = [], r.push(q)), h.push(null)) : (u < this.miny && (u = this.miny), u > this.maxy && (u = this.maxy), q.length || q.push([w, n + g]), p = [w, n + b.round(g - g * ((u - this.miny) / l))], q.push(p), h.push(p));\n C = [], D = [], E = r.length;\n for (K = 0; K < E; K++) q = r[K], q.length && (a.get("fillColor") && (q.push([q[q.length - 1][0], n + g]), D.push(q.slice(0)), q.pop()), q.length > 2 && (q[0] = [q[0][0], q[1][1]]), C.push(q));\n E = D.length;\n for (K = 0; K < E; K++) e.drawShape(D[K], a.get("fillColor"), a.get("fillColor")).append();\n a.get("normalRangeMin") !== c && a.get("drawNormalOnTop") && this.drawNormalRange(o, n, g, f, l), E = C.length;\n for (K = 0; K < E; K++) e.drawShape(C[K], a.get("lineColor"), c, a.get("lineWidth")).append();\n if (i && a.get("valueSpots")) {\n F = a.get("valueSpots"), F.get === c && (F = new t(F));\n for (K = 0; K < B; K++) H = F.get(J[K]), H && e.drawCircle(o + b.round((I[K] - this.minx) * (f / k)), n + b.round(g - g * ((J[K] - this.miny) / l)), i, c, H).append();\n }\n i && a.get("spotColor") && J[m] !== null && e.drawCircle(o + b.round((I[I.length - 1] - this.minx) * (f / k)), n + b.round(g - g * ((J[m] - this.miny) / l)), i, c, a.get("spotColor")).append(), this.maxy !== this.minyorg && (i && a.get("minSpotColor") && (s = I[d.inArray(this.minyorg, J)], e.drawCircle(o + b.round((s - this.minx) * (f / k)), n + b.round(g - g * ((this.minyorg - this.miny) / l)), i, c, a.get("minSpotColor")).append()), i && a.get("maxSpotColor") && (s = I[d.inArray(this.maxyorg, J)], e.drawCircle(o + b.round((s - this.minx) * (f / k)), n + b.round(g - g * ((this.maxyorg - this.miny) / l)), i, c, a.get("maxSpotColor")).append())), this.lastShapeId = e.getLastShapeId(), this.canvasTop = n, e.render();\n }\n }), d.fn.sparkline.bar = y = g(d.fn.sparkline._base, w, {\n type: "bar",\n init: function init(a, e, f, g, h) {\n var j = parseInt(f.get("barWidth"), 10),\n n = parseInt(f.get("barSpacing"), 10),\n o = f.get("chartRangeMin"),\n p = f.get("chartRangeMax"),\n q = f.get("chartRangeClip"),\n r = Infinity,\n s = -Infinity,\n u,\n v,\n w,\n x,\n z,\n A,\n B,\n C,\n D,\n E,\n F,\n G,\n H,\n I,\n J,\n K,\n L,\n M,\n N,\n O,\n P,\n Q,\n R;\n y._super.init.call(this, a, e, f, g, h);\n for (A = 0, B = e.length; A < B; A++) {\n O = e[A], u = typeof O == "string" && O.indexOf(":") > -1;\n if (u || d.isArray(O)) J = !0, u && (O = e[A] = l(O.split(":"))), O = m(O, null), v = b.min.apply(b, O), w = b.max.apply(b, O), v < r && (r = v), w > s && (s = w);\n }\n this.stacked = J, this.regionShapes = {}, this.barWidth = j, this.barSpacing = n, this.totalBarWidth = j + n, this.width = g = e.length * j + (e.length - 1) * n, this.initTarget(), q && (H = o === c ? -Infinity : o, I = p === c ? Infinity : p), z = [], x = J ? [] : z;\n var S = [],\n T = [];\n for (A = 0, B = e.length; A < B; A++) if (J) {\n K = e[A], e[A] = N = [], S[A] = 0, x[A] = T[A] = 0;\n for (L = 0, M = K.length; L < M; L++) O = N[L] = q ? i(K[L], H, I) : K[L], O !== null && (O > 0 && (S[A] += O), r < 0 && s > 0 ? O < 0 ? T[A] += b.abs(O) : x[A] += O : x[A] += b.abs(O - (O < 0 ? s : r)), z.push(O));\n } else O = q ? i(e[A], H, I) : e[A], O = e[A] = k(O), O !== null && z.push(O);\n this.max = G = b.max.apply(b, z), this.min = F = b.min.apply(b, z), this.stackMax = s = J ? b.max.apply(b, S) : G, this.stackMin = r = J ? b.min.apply(b, z) : F, f.get("chartRangeMin") !== c && (f.get("chartRangeClip") || f.get("chartRangeMin") < F) && (F = f.get("chartRangeMin")), f.get("chartRangeMax") !== c && (f.get("chartRangeClip") || f.get("chartRangeMax") > G) && (G = f.get("chartRangeMax")), this.zeroAxis = D = f.get("zeroAxis", !0), F <= 0 && G >= 0 && D ? E = 0 : D == 0 ? E = F : F > 0 ? E = F : E = G, this.xaxisOffset = E, C = J ? b.max.apply(b, x) + b.max.apply(b, T) : G - F, this.canvasHeightEf = D && F < 0 ? this.canvasHeight - 2 : this.canvasHeight - 1, F < E ? (Q = J && G >= 0 ? s : G, P = (Q - E) / C * this.canvasHeight, P !== b.ceil(P) && (this.canvasHeightEf -= 2, P = b.ceil(P))) : P = this.canvasHeight, this.yoffset = P, d.isArray(f.get("colorMap")) ? (this.colorMapByIndex = f.get("colorMap"), this.colorMapByValue = null) : (this.colorMapByIndex = null, this.colorMapByValue = f.get("colorMap"), this.colorMapByValue && this.colorMapByValue.get === c && (this.colorMapByValue = new t(this.colorMapByValue))), this.range = C;\n },\n getRegion: function getRegion(a, d, e) {\n var f = b.floor(d / this.totalBarWidth);\n return f < 0 || f >= this.values.length ? c : f;\n },\n getCurrentRegionFields: function getCurrentRegionFields() {\n var a = this.currentRegion,\n b = r(this.values[a]),\n c = [],\n d,\n e;\n for (e = b.length; e--;) d = b[e], c.push({\n isNull: d === null,\n value: d,\n color: this.calcColor(e, d, a),\n offset: a\n });\n return c;\n },\n calcColor: function calcColor(a, b, e) {\n var f = this.colorMapByIndex,\n g = this.colorMapByValue,\n h = this.options,\n i,\n j;\n return this.stacked ? i = h.get("stackedBarColor") : i = b < 0 ? h.get("negBarColor") : h.get("barColor"), b === 0 && h.get("zeroColor") !== c && (i = h.get("zeroColor")), g && (j = g.get(b)) ? i = j : f && f.length > e && (i = f[e]), d.isArray(i) ? i[a % i.length] : i;\n },\n renderRegion: function renderRegion(a, e) {\n var f = this.values[a],\n g = this.options,\n h = this.xaxisOffset,\n i = [],\n j = this.range,\n k = this.stacked,\n l = this.target,\n m = a * this.totalBarWidth,\n n = this.canvasHeightEf,\n p = this.yoffset,\n q,\n r,\n s,\n t,\n u,\n v,\n w,\n x,\n y,\n z;\n f = d.isArray(f) ? f : [f], w = f.length, x = f[0], t = o(null, f), z = o(h, f, !0);\n if (t) return g.get("nullColor") ? (s = e ? g.get("nullColor") : this.calcHighlightColor(g.get("nullColor"), g), q = p > 0 ? p - 1 : p, l.drawRect(m, q, this.barWidth - 1, 0, s, s)) : c;\n u = p;\n for (v = 0; v < w; v++) {\n x = f[v];\n if (k && x === h) {\n if (!z || y) continue;\n y = !0;\n }\n j > 0 ? r = b.floor(n * (b.abs(x - h) / j)) + 1 : r = 1, x < h || x === h && p === 0 ? (q = u, u += r) : (q = p - r, p -= r), s = this.calcColor(v, x, a), e && (s = this.calcHighlightColor(s, g)), i.push(l.drawRect(m, q, this.barWidth - 1, r - 1, s, s));\n }\n return i.length === 1 ? i[0] : i;\n }\n }), d.fn.sparkline.tristate = z = g(d.fn.sparkline._base, w, {\n type: "tristate",\n init: function init(a, b, e, f, g) {\n var h = parseInt(e.get("barWidth"), 10),\n i = parseInt(e.get("barSpacing"), 10);\n z._super.init.call(this, a, b, e, f, g), this.regionShapes = {}, this.barWidth = h, this.barSpacing = i, this.totalBarWidth = h + i, this.values = d.map(b, Number), this.width = f = b.length * h + (b.length - 1) * i, d.isArray(e.get("colorMap")) ? (this.colorMapByIndex = e.get("colorMap"), this.colorMapByValue = null) : (this.colorMapByIndex = null, this.colorMapByValue = e.get("colorMap"), this.colorMapByValue && this.colorMapByValue.get === c && (this.colorMapByValue = new t(this.colorMapByValue))), this.initTarget();\n },\n getRegion: function getRegion(a, c, d) {\n return b.floor(c / this.totalBarWidth);\n },\n getCurrentRegionFields: function getCurrentRegionFields() {\n var a = this.currentRegion;\n return {\n isNull: this.values[a] === c,\n value: this.values[a],\n color: this.calcColor(this.values[a], a),\n offset: a\n };\n },\n calcColor: function calcColor(a, b) {\n var c = this.values,\n d = this.options,\n e = this.colorMapByIndex,\n f = this.colorMapByValue,\n g,\n h;\n return f && (h = f.get(a)) ? g = h : e && e.length > b ? g = e[b] : c[b] < 0 ? g = d.get("negBarColor") : c[b] > 0 ? g = d.get("posBarColor") : g = d.get("zeroBarColor"), g;\n },\n renderRegion: function renderRegion(a, c) {\n var d = this.values,\n e = this.options,\n f = this.target,\n g,\n h,\n i,\n j,\n k,\n l;\n g = f.pixelHeight, i = b.round(g / 2), j = a * this.totalBarWidth, d[a] < 0 ? (k = i, h = i - 1) : d[a] > 0 ? (k = 0, h = i - 1) : (k = i - 1, h = 2), l = this.calcColor(d[a], a);\n if (l === null) return;\n return c && (l = this.calcHighlightColor(l, e)), f.drawRect(j, k, this.barWidth - 1, h - 1, l, l);\n }\n }), d.fn.sparkline.discrete = A = g(d.fn.sparkline._base, w, {\n type: "discrete",\n init: function init(a, e, f, g, h) {\n A._super.init.call(this, a, e, f, g, h), this.regionShapes = {}, this.values = e = d.map(e, Number), this.min = b.min.apply(b, e), this.max = b.max.apply(b, e), this.range = this.max - this.min, this.width = g = f.get("width") === "auto" ? e.length * 2 : this.width, this.interval = b.floor(g / e.length), this.itemWidth = g / e.length, f.get("chartRangeMin") !== c && (f.get("chartRangeClip") || f.get("chartRangeMin") < this.min) && (this.min = f.get("chartRangeMin")), f.get("chartRangeMax") !== c && (f.get("chartRangeClip") || f.get("chartRangeMax") > this.max) && (this.max = f.get("chartRangeMax")), this.initTarget(), this.target && (this.lineHeight = f.get("lineHeight") === "auto" ? b.round(this.canvasHeight * .3) : f.get("lineHeight"));\n },\n getRegion: function getRegion(a, c, d) {\n return b.floor(c / this.itemWidth);\n },\n getCurrentRegionFields: function getCurrentRegionFields() {\n var a = this.currentRegion;\n return {\n isNull: this.values[a] === c,\n value: this.values[a],\n offset: a\n };\n },\n renderRegion: function renderRegion(a, c) {\n var d = this.values,\n e = this.options,\n f = this.min,\n g = this.max,\n h = this.range,\n j = this.interval,\n k = this.target,\n l = this.canvasHeight,\n m = this.lineHeight,\n n = l - m,\n o,\n p,\n q,\n r;\n return p = i(d[a], f, g), r = a * j, o = b.round(n - n * ((p - f) / h)), q = e.get("thresholdColor") && p < e.get("thresholdValue") ? e.get("thresholdColor") : e.get("lineColor"), c && (q = this.calcHighlightColor(q, e)), k.drawLine(r, o, r, o + m, q);\n }\n }), d.fn.sparkline.bullet = B = g(d.fn.sparkline._base, {\n type: "bullet",\n init: function init(a, d, e, f, g) {\n var h, i, j;\n B._super.init.call(this, a, d, e, f, g), this.values = d = l(d), j = d.slice(), j[0] = j[0] === null ? j[2] : j[0], j[1] = d[1] === null ? j[2] : j[1], h = b.min.apply(b, d), i = b.max.apply(b, d), e.get("base") === c ? h = h < 0 ? h : 0 : h = e.get("base"), this.min = h, this.max = i, this.range = i - h, this.shapes = {}, this.valueShapes = {}, this.regiondata = {}, this.width = f = e.get("width") === "auto" ? "4.0em" : f, this.target = this.$el.simpledraw(f, g, e.get("composite")), d.length || (this.disabled = !0), this.initTarget();\n },\n getRegion: function getRegion(a, b, d) {\n var e = this.target.getShapeAt(a, b, d);\n return e !== c && this.shapes[e] !== c ? this.shapes[e] : c;\n },\n getCurrentRegionFields: function getCurrentRegionFields() {\n var a = this.currentRegion;\n return {\n fieldkey: a.substr(0, 1),\n value: this.values[a.substr(1)],\n region: a\n };\n },\n changeHighlight: function changeHighlight(a) {\n var b = this.currentRegion,\n c = this.valueShapes[b],\n d;\n delete this.shapes[c];\n switch (b.substr(0, 1)) {\n case "r":\n d = this.renderRange(b.substr(1), a);\n break;\n case "p":\n d = this.renderPerformance(a);\n break;\n case "t":\n d = this.renderTarget(a);\n }\n this.valueShapes[b] = d.id, this.shapes[d.id] = b, this.target.replaceWithShape(c, d);\n },\n renderRange: function renderRange(a, c) {\n var d = this.values[a],\n e = b.round(this.canvasWidth * ((d - this.min) / this.range)),\n f = this.options.get("rangeColors")[a - 2];\n return c && (f = this.calcHighlightColor(f, this.options)), this.target.drawRect(0, 0, e - 1, this.canvasHeight - 1, f, f);\n },\n renderPerformance: function renderPerformance(a) {\n var c = this.values[1],\n d = b.round(this.canvasWidth * ((c - this.min) / this.range)),\n e = this.options.get("performanceColor");\n return a && (e = this.calcHighlightColor(e, this.options)), this.target.drawRect(0, b.round(this.canvasHeight * .3), d - 1, b.round(this.canvasHeight * .4) - 1, e, e);\n },\n renderTarget: function renderTarget(a) {\n var c = this.values[0],\n d = b.round(this.canvasWidth * ((c - this.min) / this.range) - this.options.get("targetWidth") / 2),\n e = b.round(this.canvasHeight * .1),\n f = this.canvasHeight - e * 2,\n g = this.options.get("targetColor");\n return a && (g = this.calcHighlightColor(g, this.options)), this.target.drawRect(d, e, this.options.get("targetWidth") - 1, f - 1, g, g);\n },\n render: function render() {\n var a = this.values.length,\n b = this.target,\n c,\n d;\n if (!B._super.render.call(this)) return;\n for (c = 2; c < a; c++) d = this.renderRange(c).append(), this.shapes[d.id] = "r" + c, this.valueShapes["r" + c] = d.id;\n this.values[1] !== null && (d = this.renderPerformance().append(), this.shapes[d.id] = "p1", this.valueShapes.p1 = d.id), this.values[0] !== null && (d = this.renderTarget().append(), this.shapes[d.id] = "t0", this.valueShapes.t0 = d.id), b.render();\n }\n }), d.fn.sparkline.pie = C = g(d.fn.sparkline._base, {\n type: "pie",\n init: function init(a, c, e, f, g) {\n var h = 0,\n i;\n C._super.init.call(this, a, c, e, f, g), this.shapes = {}, this.valueShapes = {}, this.values = c = d.map(c, Number), e.get("width") === "auto" && (this.width = this.height);\n if (c.length > 0) for (i = c.length; i--;) h += c[i];\n this.total = h, this.initTarget(), this.radius = b.floor(b.min(this.canvasWidth, this.canvasHeight) / 2);\n },\n getRegion: function getRegion(a, b, d) {\n var e = this.target.getShapeAt(a, b, d);\n return e !== c && this.shapes[e] !== c ? this.shapes[e] : c;\n },\n getCurrentRegionFields: function getCurrentRegionFields() {\n var a = this.currentRegion;\n return {\n isNull: this.values[a] === c,\n value: this.values[a],\n percent: this.values[a] / this.total * 100,\n color: this.options.get("sliceColors")[a % this.options.get("sliceColors").length],\n offset: a\n };\n },\n changeHighlight: function changeHighlight(a) {\n var b = this.currentRegion,\n c = this.renderSlice(b, a),\n d = this.valueShapes[b];\n delete this.shapes[d], this.target.replaceWithShape(d, c), this.valueShapes[b] = c.id, this.shapes[c.id] = b;\n },\n renderSlice: function renderSlice(a, d) {\n var e = this.target,\n f = this.options,\n g = this.radius,\n h = f.get("borderWidth"),\n i = f.get("offset"),\n j = 2 * b.PI,\n k = this.values,\n l = this.total,\n m = i ? 2 * b.PI * (i / 360) : 0,\n n,\n o,\n p,\n q,\n r;\n q = k.length;\n for (p = 0; p < q; p++) {\n n = m, o = m, l > 0 && (o = m + j * (k[p] / l));\n if (a === p) return r = f.get("sliceColors")[p % f.get("sliceColors").length], d && (r = this.calcHighlightColor(r, f)), e.drawPieSlice(g, g, g - h, n, o, c, r);\n m = o;\n }\n },\n render: function render() {\n var a = this.target,\n d = this.values,\n e = this.options,\n f = this.radius,\n g = e.get("borderWidth"),\n h,\n i;\n if (!C._super.render.call(this)) return;\n g && a.drawCircle(f, f, b.floor(f - g / 2), e.get("borderColor"), c, g).append();\n for (i = d.length; i--;) d[i] && (h = this.renderSlice(i).append(), this.valueShapes[i] = h.id, this.shapes[h.id] = i);\n a.render();\n }\n }), d.fn.sparkline.box = D = g(d.fn.sparkline._base, {\n type: "box",\n init: function init(a, b, c, e, f) {\n D._super.init.call(this, a, b, c, e, f), this.values = d.map(b, Number), this.width = c.get("width") === "auto" ? "4.0em" : e, this.initTarget(), this.values.length || (this.disabled = 1);\n },\n getRegion: function getRegion() {\n return 1;\n },\n getCurrentRegionFields: function getCurrentRegionFields() {\n var a = [{\n field: "lq",\n value: this.quartiles[0]\n }, {\n field: "med",\n value: this.quartiles[1]\n }, {\n field: "uq",\n value: this.quartiles[2]\n }];\n return this.loutlier !== c && a.push({\n field: "lo",\n value: this.loutlier\n }), this.routlier !== c && a.push({\n field: "ro",\n value: this.routlier\n }), this.lwhisker !== c && a.push({\n field: "lw",\n value: this.lwhisker\n }), this.rwhisker !== c && a.push({\n field: "rw",\n value: this.rwhisker\n }), a;\n },\n render: function render() {\n var a = this.target,\n d = this.values,\n e = d.length,\n f = this.options,\n g = this.canvasWidth,\n h = this.canvasHeight,\n i = f.get("chartRangeMin") === c ? b.min.apply(b, d) : f.get("chartRangeMin"),\n k = f.get("chartRangeMax") === c ? b.max.apply(b, d) : f.get("chartRangeMax"),\n l = 0,\n m,\n n,\n o,\n p,\n q,\n r,\n s,\n t,\n u,\n v,\n w;\n if (!D._super.render.call(this)) return;\n if (f.get("raw")) f.get("showOutliers") && d.length > 5 ? (n = d[0], m = d[1], p = d[2], q = d[3], r = d[4], s = d[5], t = d[6]) : (m = d[0], p = d[1], q = d[2], r = d[3], s = d[4]);else {\n d.sort(function (a, b) {\n return a - b;\n }), p = j(d, 1), q = j(d, 2), r = j(d, 3), o = r - p;\n if (f.get("showOutliers")) {\n m = s = c;\n for (u = 0; u < e; u++) m === c && d[u] > p - o * f.get("outlierIQR") && (m = d[u]), d[u] < r + o * f.get("outlierIQR") && (s = d[u]);\n n = d[0], t = d[e - 1];\n } else m = d[0], s = d[e - 1];\n }\n this.quartiles = [p, q, r], this.lwhisker = m, this.rwhisker = s, this.loutlier = n, this.routlier = t, w = g / (k - i + 1), f.get("showOutliers") && (l = b.ceil(f.get("spotRadius")), g -= 2 * b.ceil(f.get("spotRadius")), w = g / (k - i + 1), n < m && a.drawCircle((n - i) * w + l, h / 2, f.get("spotRadius"), f.get("outlierLineColor"), f.get("outlierFillColor")).append(), t > s && a.drawCircle((t - i) * w + l, h / 2, f.get("spotRadius"), f.get("outlierLineColor"), f.get("outlierFillColor")).append()), a.drawRect(b.round((p - i) * w + l), b.round(h * .1), b.round((r - p) * w), b.round(h * .8), f.get("boxLineColor"), f.get("boxFillColor")).append(), a.drawLine(b.round((m - i) * w + l), b.round(h / 2), b.round((p - i) * w + l), b.round(h / 2), f.get("lineColor")).append(), a.drawLine(b.round((m - i) * w + l), b.round(h / 4), b.round((m - i) * w + l), b.round(h - h / 4), f.get("whiskerColor")).append(), a.drawLine(b.round((s - i) * w + l), b.round(h / 2), b.round((r - i) * w + l), b.round(h / 2), f.get("lineColor")).append(), a.drawLine(b.round((s - i) * w + l), b.round(h / 4), b.round((s - i) * w + l), b.round(h - h / 4), f.get("whiskerColor")).append(), a.drawLine(b.round((q - i) * w + l), b.round(h * .1), b.round((q - i) * w + l), b.round(h * .9), f.get("medianColor")).append(), f.get("target") && (v = b.ceil(f.get("spotRadius")), a.drawLine(b.round((f.get("target") - i) * w + l), b.round(h / 2 - v), b.round((f.get("target") - i) * w + l), b.round(h / 2 + v), f.get("targetColor")).append(), a.drawLine(b.round((f.get("target") - i) * w + l - v), b.round(h / 2), b.round((f.get("target") - i) * w + l + v), b.round(h / 2), f.get("targetColor")).append()), a.render();\n }\n }), G = g({\n init: function init(a, b, c, d) {\n this.target = a, this.id = b, this.type = c, this.args = d;\n },\n append: function append() {\n return this.target.appendShape(this), this;\n }\n }), H = g({\n _pxregex: /(\\d+)(px)?\\s*$/i,\n init: function init(a, b, c) {\n if (!a) return;\n this.width = a, this.height = b, this.target = c, this.lastShapeId = null, c[0] && (c = c[0]), d.data(c, "_jqs_vcanvas", this);\n },\n drawLine: function drawLine(a, b, c, d, e, f) {\n return this.drawShape([[a, b], [c, d]], e, f);\n },\n drawShape: function drawShape(a, b, c, d) {\n return this._genShape("Shape", [a, b, c, d]);\n },\n drawCircle: function drawCircle(a, b, c, d, e, f) {\n return this._genShape("Circle", [a, b, c, d, e, f]);\n },\n drawPieSlice: function drawPieSlice(a, b, c, d, e, f, g) {\n return this._genShape("PieSlice", [a, b, c, d, e, f, g]);\n },\n drawRect: function drawRect(a, b, c, d, e, f) {\n return this._genShape("Rect", [a, b, c, d, e, f]);\n },\n getElement: function getElement() {\n return this.canvas;\n },\n getLastShapeId: function getLastShapeId() {\n return this.lastShapeId;\n },\n reset: function reset() {\n alert("reset not implemented");\n },\n _insert: function _insert(a, b) {\n d(b).html(a);\n },\n _calculatePixelDims: function _calculatePixelDims(a, b, c) {\n var e;\n e = this._pxregex.exec(b), e ? this.pixelHeight = e[1] : this.pixelHeight = d(c).height(), e = this._pxregex.exec(a), e ? this.pixelWidth = e[1] : this.pixelWidth = d(c).width();\n },\n _genShape: function _genShape(a, b) {\n var c = L++;\n return b.unshift(c), new G(this, c, a, b);\n },\n appendShape: function appendShape(a) {\n alert("appendShape not implemented");\n },\n replaceWithShape: function replaceWithShape(a, b) {\n alert("replaceWithShape not implemented");\n },\n insertAfterShape: function insertAfterShape(a, b) {\n alert("insertAfterShape not implemented");\n },\n removeShapeId: function removeShapeId(a) {\n alert("removeShapeId not implemented");\n },\n getShapeAt: function getShapeAt(a, b, c) {\n alert("getShapeAt not implemented");\n },\n render: function render() {\n alert("render not implemented");\n }\n }), I = g(H, {\n init: function init(b, e, f, g) {\n I._super.init.call(this, b, e, f), this.canvas = a.createElement("canvas"), f[0] && (f = f[0]), d.data(f, "_jqs_vcanvas", this), d(this.canvas).css({\n display: "inline-block",\n width: b,\n height: e,\n verticalAlign: "top"\n }), this._insert(this.canvas, f), this._calculatePixelDims(b, e, this.canvas), this.canvas.width = this.pixelWidth, this.canvas.height = this.pixelHeight, this.interact = g, this.shapes = {}, this.shapeseq = [], this.currentTargetShapeId = c, d(this.canvas).css({\n width: this.pixelWidth,\n height: this.pixelHeight\n });\n },\n _getContext: function _getContext(a, b, d) {\n var e = this.canvas.getContext("2d");\n return a !== c && (e.strokeStyle = a), e.lineWidth = d === c ? 1 : d, b !== c && (e.fillStyle = b), e;\n },\n reset: function reset() {\n var a = this._getContext();\n a.clearRect(0, 0, this.pixelWidth, this.pixelHeight), this.shapes = {}, this.shapeseq = [], this.currentTargetShapeId = c;\n },\n _drawShape: function _drawShape(a, b, d, e, f) {\n var g = this._getContext(d, e, f),\n h,\n i;\n g.beginPath(), g.moveTo(b[0][0] + .5, b[0][1] + .5);\n for (h = 1, i = b.length; h < i; h++) g.lineTo(b[h][0] + .5, b[h][1] + .5);\n d !== c && g.stroke(), e !== c && g.fill(), this.targetX !== c && this.targetY !== c && g.isPointInPath(this.targetX, this.targetY) && (this.currentTargetShapeId = a);\n },\n _drawCircle: function _drawCircle(a, d, e, f, g, h, i) {\n var j = this._getContext(g, h, i);\n j.beginPath(), j.arc(d, e, f, 0, 2 * b.PI, !1), this.targetX !== c && this.targetY !== c && j.isPointInPath(this.targetX, this.targetY) && (this.currentTargetShapeId = a), g !== c && j.stroke(), h !== c && j.fill();\n },\n _drawPieSlice: function _drawPieSlice(a, b, d, e, f, g, h, i) {\n var j = this._getContext(h, i);\n j.beginPath(), j.moveTo(b, d), j.arc(b, d, e, f, g, !1), j.lineTo(b, d), j.closePath(), h !== c && j.stroke(), i && j.fill(), this.targetX !== c && this.targetY !== c && j.isPointInPath(this.targetX, this.targetY) && (this.currentTargetShapeId = a);\n },\n _drawRect: function _drawRect(a, b, c, d, e, f, g) {\n return this._drawShape(a, [[b, c], [b + d, c], [b + d, c + e], [b, c + e], [b, c]], f, g);\n },\n appendShape: function appendShape(a) {\n return this.shapes[a.id] = a, this.shapeseq.push(a.id), this.lastShapeId = a.id, a.id;\n },\n replaceWithShape: function replaceWithShape(a, b) {\n var c = this.shapeseq,\n d;\n this.shapes[b.id] = b;\n for (d = c.length; d--;) c[d] == a && (c[d] = b.id);\n delete this.shapes[a];\n },\n replaceWithShapes: function replaceWithShapes(a, b) {\n var c = this.shapeseq,\n d = {},\n e,\n f,\n g;\n for (f = a.length; f--;) d[a[f]] = !0;\n for (f = c.length; f--;) e = c[f], d[e] && (c.splice(f, 1), delete this.shapes[e], g = f);\n for (f = b.length; f--;) c.splice(g, 0, b[f].id), this.shapes[b[f].id] = b[f];\n },\n insertAfterShape: function insertAfterShape(a, b) {\n var c = this.shapeseq,\n d;\n for (d = c.length; d--;) if (c[d] === a) {\n c.splice(d + 1, 0, b.id), this.shapes[b.id] = b;\n return;\n }\n },\n removeShapeId: function removeShapeId(a) {\n var b = this.shapeseq,\n c;\n for (c = b.length; c--;) if (b[c] === a) {\n b.splice(c, 1);\n break;\n }\n delete this.shapes[a];\n },\n getShapeAt: function getShapeAt(a, b, c) {\n return this.targetX = b, this.targetY = c, this.render(), this.currentTargetShapeId;\n },\n render: function render() {\n var a = this.shapeseq,\n b = this.shapes,\n c = a.length,\n d = this._getContext(),\n e,\n f,\n g;\n d.clearRect(0, 0, this.pixelWidth, this.pixelHeight);\n for (g = 0; g < c; g++) e = a[g], f = b[e], this["_draw" + f.type].apply(this, f.args);\n this.interact || (this.shapes = {}, this.shapeseq = []);\n }\n }), J = g(H, {\n init: function init(b, c, e) {\n var f;\n J._super.init.call(this, b, c, e), e[0] && (e = e[0]), d.data(e, "_jqs_vcanvas", this), this.canvas = a.createElement("span"), d(this.canvas).css({\n display: "inline-block",\n position: "relative",\n overflow: "hidden",\n width: b,\n height: c,\n margin: "0px",\n padding: "0px",\n verticalAlign: "top"\n }), this._insert(this.canvas, e), this._calculatePixelDims(b, c, this.canvas), this.canvas.width = this.pixelWidth, this.canvas.height = this.pixelHeight, f = \'<v:group coordorigin="0 0" coordsize="\' + this.pixelWidth + " " + this.pixelHeight + \'"\' + \' style="position:absolute;top:0;left:0;width:\' + this.pixelWidth + "px;height=" + this.pixelHeight + \'px;"></v:group>\', this.canvas.insertAdjacentHTML("beforeEnd", f), this.group = d(this.canvas).children()[0], this.rendered = !1, this.prerender = "";\n },\n _drawShape: function _drawShape(a, b, d, e, f) {\n var g = [],\n h,\n i,\n j,\n k,\n l,\n m,\n n;\n for (n = 0, m = b.length; n < m; n++) g[n] = "" + b[n][0] + "," + b[n][1];\n return h = g.splice(0, 1), f = f === c ? 1 : f, i = d === c ? \' stroked="false" \' : \' strokeWeight="\' + f + \'px" strokeColor="\' + d + \'" \', j = e === c ? \' filled="false"\' : \' fillColor="\' + e + \'" filled="true" \', k = g[0] === g[g.length - 1] ? "x " : "", l = \'<v:shape coordorigin="0 0" coordsize="\' + this.pixelWidth + " " + this.pixelHeight + \'" \' + \' id="jqsshape\' + a + \'" \' + i + j + \' style="position:absolute;left:0px;top:0px;height:\' + this.pixelHeight + "px;width:" + this.pixelWidth + \'px;padding:0px;margin:0px;" \' + \' path="m \' + h + " l " + g.join(", ") + " " + k + \'e">\' + " </v:shape>", l;\n },\n _drawCircle: function _drawCircle(a, b, d, e, f, g, h) {\n var i, j, k;\n return b -= e, d -= e, i = f === c ? \' stroked="false" \' : \' strokeWeight="\' + h + \'px" strokeColor="\' + f + \'" \', j = g === c ? \' filled="false"\' : \' fillColor="\' + g + \'" filled="true" \', k = \'<v:oval id="jqsshape\' + a + \'" \' + i + j + \' style="position:absolute;top:\' + d + "px; left:" + b + "px; width:" + e * 2 + "px; height:" + e * 2 + \'px"></v:oval>\', k;\n },\n _drawPieSlice: function _drawPieSlice(a, d, e, f, g, h, i, j) {\n var k, l, m, n, o, p, q, r;\n if (g === h) return "";\n h - g === 2 * b.PI && (g = 0, h = 2 * b.PI), l = d + b.round(b.cos(g) * f), m = e + b.round(b.sin(g) * f), n = d + b.round(b.cos(h) * f), o = e + b.round(b.sin(h) * f);\n if (l === n && m === o) {\n if (h - g < b.PI) return "";\n l = n = d + f, m = o = e;\n }\n return l === n && m === o && h - g < b.PI ? "" : (k = [d - f, e - f, d + f, e + f, l, m, n, o], p = i === c ? \' stroked="false" \' : \' strokeWeight="1px" strokeColor="\' + i + \'" \', q = j === c ? \' filled="false"\' : \' fillColor="\' + j + \'" filled="true" \', r = \'<v:shape coordorigin="0 0" coordsize="\' + this.pixelWidth + " " + this.pixelHeight + \'" \' + \' id="jqsshape\' + a + \'" \' + p + q + \' style="position:absolute;left:0px;top:0px;height:\' + this.pixelHeight + "px;width:" + this.pixelWidth + \'px;padding:0px;margin:0px;" \' + \' path="m \' + d + "," + e + " wa " + k.join(", ") + \' x e">\' + " </v:shape>", r);\n },\n _drawRect: function _drawRect(a, b, c, d, e, f, g) {\n return this._drawShape(a, [[b, c], [b, c + e], [b + d, c + e], [b + d, c], [b, c]], f, g);\n },\n reset: function reset() {\n this.group.innerHTML = "";\n },\n appendShape: function appendShape(a) {\n var b = this["_draw" + a.type].apply(this, a.args);\n return this.rendered ? this.group.insertAdjacentHTML("beforeEnd", b) : this.prerender += b, this.lastShapeId = a.id, a.id;\n },\n replaceWithShape: function replaceWithShape(a, b) {\n var c = d("#jqsshape" + a),\n e = this["_draw" + b.type].apply(this, b.args);\n c[0].outerHTML = e;\n },\n replaceWithShapes: function replaceWithShapes(a, b) {\n var c = d("#jqsshape" + a[0]),\n e = "",\n f = b.length,\n g;\n for (g = 0; g < f; g++) e += this["_draw" + b[g].type].apply(this, b[g].args);\n c[0].outerHTML = e;\n for (g = 1; g < a.length; g++) d("#jqsshape" + a[g]).remove();\n },\n insertAfterShape: function insertAfterShape(a, b) {\n var c = d("#jqsshape" + a),\n e = this["_draw" + b.type].apply(this, b.args);\n c[0].insertAdjacentHTML("afterEnd", e);\n },\n removeShapeId: function removeShapeId(a) {\n var b = d("#jqsshape" + a);\n this.group.removeChild(b[0]);\n },\n getShapeAt: function getShapeAt(a, b, c) {\n var d = a.id.substr(8);\n return d;\n },\n render: function render() {\n this.rendered || (this.group.innerHTML = this.prerender, this.rendered = !0);\n }\n });\n });\n})(document, Math);\n\n//# sourceURL=webpack://qcell-react/./src/QCELL/lib/jquery/plugins/jquery.sparkline.min.js?')}}]);
|