wijmo 5.20261.45-nightly.d20251218.t163151 → 5.20261.45-nightly.d20260105.t163143

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.
Files changed (1175) hide show
  1. package/cultures/wijmo.culture.ar-AE.d.ts +1 -1
  2. package/cultures/wijmo.culture.ar-AE.js +1 -1
  3. package/cultures/wijmo.culture.ar-SA.d.ts +1 -1
  4. package/cultures/wijmo.culture.ar-SA.js +1 -1
  5. package/cultures/wijmo.culture.bg.d.ts +1 -1
  6. package/cultures/wijmo.culture.bg.js +1 -1
  7. package/cultures/wijmo.culture.ca.d.ts +1 -1
  8. package/cultures/wijmo.culture.ca.js +1 -1
  9. package/cultures/wijmo.culture.cs.d.ts +1 -1
  10. package/cultures/wijmo.culture.cs.js +1 -1
  11. package/cultures/wijmo.culture.da.d.ts +1 -1
  12. package/cultures/wijmo.culture.da.js +1 -1
  13. package/cultures/wijmo.culture.de-CH.d.ts +1 -1
  14. package/cultures/wijmo.culture.de-CH.js +1 -1
  15. package/cultures/wijmo.culture.de.d.ts +1 -1
  16. package/cultures/wijmo.culture.de.js +1 -1
  17. package/cultures/wijmo.culture.el.d.ts +1 -1
  18. package/cultures/wijmo.culture.el.js +1 -1
  19. package/cultures/wijmo.culture.en-CA.d.ts +1 -1
  20. package/cultures/wijmo.culture.en-CA.js +1 -1
  21. package/cultures/wijmo.culture.en-GB.d.ts +1 -1
  22. package/cultures/wijmo.culture.en-GB.js +1 -1
  23. package/cultures/wijmo.culture.en.d.ts +1 -1
  24. package/cultures/wijmo.culture.en.js +1 -1
  25. package/cultures/wijmo.culture.es-419.d.ts +1 -1
  26. package/cultures/wijmo.culture.es-419.js +1 -1
  27. package/cultures/wijmo.culture.es-MX.d.ts +1 -1
  28. package/cultures/wijmo.culture.es-MX.js +1 -1
  29. package/cultures/wijmo.culture.es.d.ts +1 -1
  30. package/cultures/wijmo.culture.es.js +1 -1
  31. package/cultures/wijmo.culture.et.d.ts +1 -1
  32. package/cultures/wijmo.culture.et.js +1 -1
  33. package/cultures/wijmo.culture.eu.d.ts +1 -1
  34. package/cultures/wijmo.culture.eu.js +1 -1
  35. package/cultures/wijmo.culture.fi.d.ts +1 -1
  36. package/cultures/wijmo.culture.fi.js +1 -1
  37. package/cultures/wijmo.culture.fr-CA.d.ts +1 -1
  38. package/cultures/wijmo.culture.fr-CA.js +1 -1
  39. package/cultures/wijmo.culture.fr.d.ts +1 -1
  40. package/cultures/wijmo.culture.fr.js +1 -1
  41. package/cultures/wijmo.culture.gl.d.ts +1 -1
  42. package/cultures/wijmo.culture.gl.js +1 -1
  43. package/cultures/wijmo.culture.he.d.ts +1 -1
  44. package/cultures/wijmo.culture.he.js +1 -1
  45. package/cultures/wijmo.culture.hi.d.ts +1 -1
  46. package/cultures/wijmo.culture.hi.js +1 -1
  47. package/cultures/wijmo.culture.hr.d.ts +1 -1
  48. package/cultures/wijmo.culture.hr.js +1 -1
  49. package/cultures/wijmo.culture.hu.d.ts +1 -1
  50. package/cultures/wijmo.culture.hu.js +1 -1
  51. package/cultures/wijmo.culture.id.d.ts +1 -1
  52. package/cultures/wijmo.culture.id.js +1 -1
  53. package/cultures/wijmo.culture.it.d.ts +1 -1
  54. package/cultures/wijmo.culture.it.js +1 -1
  55. package/cultures/wijmo.culture.ja.d.ts +1 -1
  56. package/cultures/wijmo.culture.ja.js +1 -1
  57. package/cultures/wijmo.culture.kk.d.ts +1 -1
  58. package/cultures/wijmo.culture.kk.js +1 -1
  59. package/cultures/wijmo.culture.ko.d.ts +1 -1
  60. package/cultures/wijmo.culture.ko.js +1 -1
  61. package/cultures/wijmo.culture.lt.d.ts +1 -1
  62. package/cultures/wijmo.culture.lt.js +1 -1
  63. package/cultures/wijmo.culture.lv.d.ts +1 -1
  64. package/cultures/wijmo.culture.lv.js +1 -1
  65. package/cultures/wijmo.culture.mn-MN.d.ts +1 -1
  66. package/cultures/wijmo.culture.mn-MN.js +1 -1
  67. package/cultures/wijmo.culture.nl.d.ts +1 -1
  68. package/cultures/wijmo.culture.nl.js +1 -1
  69. package/cultures/wijmo.culture.no.d.ts +1 -1
  70. package/cultures/wijmo.culture.no.js +1 -1
  71. package/cultures/wijmo.culture.pl.d.ts +1 -1
  72. package/cultures/wijmo.culture.pl.js +1 -1
  73. package/cultures/wijmo.culture.pt.d.ts +1 -1
  74. package/cultures/wijmo.culture.pt.js +1 -1
  75. package/cultures/wijmo.culture.ro.d.ts +1 -1
  76. package/cultures/wijmo.culture.ro.js +1 -1
  77. package/cultures/wijmo.culture.ru.d.ts +1 -1
  78. package/cultures/wijmo.culture.ru.js +1 -1
  79. package/cultures/wijmo.culture.sk.d.ts +1 -1
  80. package/cultures/wijmo.culture.sk.js +1 -1
  81. package/cultures/wijmo.culture.sl.d.ts +1 -1
  82. package/cultures/wijmo.culture.sl.js +1 -1
  83. package/cultures/wijmo.culture.sr.d.ts +1 -1
  84. package/cultures/wijmo.culture.sr.js +1 -1
  85. package/cultures/wijmo.culture.sv.d.ts +1 -1
  86. package/cultures/wijmo.culture.sv.js +1 -1
  87. package/cultures/wijmo.culture.th.d.ts +1 -1
  88. package/cultures/wijmo.culture.th.js +1 -1
  89. package/cultures/wijmo.culture.tr.d.ts +1 -1
  90. package/cultures/wijmo.culture.tr.js +1 -1
  91. package/cultures/wijmo.culture.uk.d.ts +1 -1
  92. package/cultures/wijmo.culture.uk.js +1 -1
  93. package/cultures/wijmo.culture.vi.d.ts +1 -1
  94. package/cultures/wijmo.culture.vi.js +1 -1
  95. package/cultures/wijmo.culture.zh-HK.d.ts +1 -1
  96. package/cultures/wijmo.culture.zh-HK.js +1 -1
  97. package/cultures/wijmo.culture.zh-TW.d.ts +1 -1
  98. package/cultures/wijmo.culture.zh-TW.js +1 -1
  99. package/cultures/wijmo.culture.zh.d.ts +1 -1
  100. package/cultures/wijmo.culture.zh.js +1 -1
  101. package/package.json +1 -1
  102. package/styles/misc/_constants.scss +1 -1
  103. package/styles/misc/_glyphs.scss +257 -255
  104. package/styles/misc/_mixins.scss +70 -74
  105. package/styles/misc/_variables.scss +13 -13
  106. package/styles/parts/_barcode.scss +26 -27
  107. package/styles/parts/_chart.scss +109 -107
  108. package/styles/parts/_chart_finance.scss +6 -6
  109. package/styles/parts/_chart_hierarchical.scss +4 -4
  110. package/styles/parts/_chart_interaction.scss +224 -219
  111. package/styles/parts/_chart_map.scss +7 -7
  112. package/styles/parts/_core.scss +115 -116
  113. package/styles/parts/_gauge.scss +40 -39
  114. package/styles/parts/_grid.scss +447 -410
  115. package/styles/parts/_grid_cellmaker.scss +92 -86
  116. package/styles/parts/_grid_filter.scss +157 -161
  117. package/styles/parts/_grid_grouppanel.scss +74 -74
  118. package/styles/parts/_grid_multirow.scss +65 -64
  119. package/styles/parts/_grid_search.scss +27 -26
  120. package/styles/parts/_grid_selector.scss +12 -12
  121. package/styles/parts/_grid_sheet.scss +176 -176
  122. package/styles/parts/_grid_transposed_multirow.scss +9 -10
  123. package/styles/parts/_input.scss +812 -810
  124. package/styles/parts/_labeled_input.scss +198 -194
  125. package/styles/parts/_nav.scss +263 -259
  126. package/styles/parts/_olap.scss +230 -224
  127. package/styles/parts/_viewer.scss +1005 -989
  128. package/styles/themes/material/wijmo.theme.material.amber-blue.css +1 -1
  129. package/styles/themes/material/wijmo.theme.material.amber-blue.scss +1 -2
  130. package/styles/themes/material/wijmo.theme.material.amber-cyan.css +1 -1
  131. package/styles/themes/material/wijmo.theme.material.amber-cyan.scss +1 -2
  132. package/styles/themes/material/wijmo.theme.material.amber-deep_orange.css +1 -1
  133. package/styles/themes/material/wijmo.theme.material.amber-deep_orange.scss +1 -2
  134. package/styles/themes/material/wijmo.theme.material.amber-deep_purple.css +1 -1
  135. package/styles/themes/material/wijmo.theme.material.amber-deep_purple.scss +1 -2
  136. package/styles/themes/material/wijmo.theme.material.amber-green.css +1 -1
  137. package/styles/themes/material/wijmo.theme.material.amber-green.scss +1 -2
  138. package/styles/themes/material/wijmo.theme.material.amber-indigo.css +1 -1
  139. package/styles/themes/material/wijmo.theme.material.amber-indigo.scss +1 -2
  140. package/styles/themes/material/wijmo.theme.material.amber-light_blue.css +1 -1
  141. package/styles/themes/material/wijmo.theme.material.amber-light_blue.scss +1 -2
  142. package/styles/themes/material/wijmo.theme.material.amber-light_green.css +1 -1
  143. package/styles/themes/material/wijmo.theme.material.amber-light_green.scss +1 -2
  144. package/styles/themes/material/wijmo.theme.material.amber-lime.css +1 -1
  145. package/styles/themes/material/wijmo.theme.material.amber-lime.scss +1 -2
  146. package/styles/themes/material/wijmo.theme.material.amber-orange.css +1 -1
  147. package/styles/themes/material/wijmo.theme.material.amber-orange.scss +1 -2
  148. package/styles/themes/material/wijmo.theme.material.amber-pink.css +1 -1
  149. package/styles/themes/material/wijmo.theme.material.amber-pink.scss +1 -2
  150. package/styles/themes/material/wijmo.theme.material.amber-purple.css +1 -1
  151. package/styles/themes/material/wijmo.theme.material.amber-purple.scss +1 -2
  152. package/styles/themes/material/wijmo.theme.material.amber-red.css +1 -1
  153. package/styles/themes/material/wijmo.theme.material.amber-red.scss +1 -2
  154. package/styles/themes/material/wijmo.theme.material.amber-teal.css +1 -1
  155. package/styles/themes/material/wijmo.theme.material.amber-teal.scss +1 -2
  156. package/styles/themes/material/wijmo.theme.material.amber-yellow.css +1 -1
  157. package/styles/themes/material/wijmo.theme.material.amber-yellow.scss +1 -2
  158. package/styles/themes/material/wijmo.theme.material.blue-amber.css +1 -1
  159. package/styles/themes/material/wijmo.theme.material.blue-amber.scss +1 -2
  160. package/styles/themes/material/wijmo.theme.material.blue-cyan.css +1 -1
  161. package/styles/themes/material/wijmo.theme.material.blue-cyan.scss +1 -2
  162. package/styles/themes/material/wijmo.theme.material.blue-deep_orange.css +1 -1
  163. package/styles/themes/material/wijmo.theme.material.blue-deep_orange.scss +1 -2
  164. package/styles/themes/material/wijmo.theme.material.blue-deep_purple.css +1 -1
  165. package/styles/themes/material/wijmo.theme.material.blue-deep_purple.scss +1 -2
  166. package/styles/themes/material/wijmo.theme.material.blue-green.css +1 -1
  167. package/styles/themes/material/wijmo.theme.material.blue-green.scss +1 -2
  168. package/styles/themes/material/wijmo.theme.material.blue-indigo.css +1 -1
  169. package/styles/themes/material/wijmo.theme.material.blue-indigo.scss +1 -2
  170. package/styles/themes/material/wijmo.theme.material.blue-light_blue.css +1 -1
  171. package/styles/themes/material/wijmo.theme.material.blue-light_blue.scss +1 -2
  172. package/styles/themes/material/wijmo.theme.material.blue-light_green.css +1 -1
  173. package/styles/themes/material/wijmo.theme.material.blue-light_green.scss +1 -2
  174. package/styles/themes/material/wijmo.theme.material.blue-lime.css +1 -1
  175. package/styles/themes/material/wijmo.theme.material.blue-lime.scss +1 -2
  176. package/styles/themes/material/wijmo.theme.material.blue-orange.css +1 -1
  177. package/styles/themes/material/wijmo.theme.material.blue-orange.scss +1 -2
  178. package/styles/themes/material/wijmo.theme.material.blue-pink.css +1 -1
  179. package/styles/themes/material/wijmo.theme.material.blue-pink.scss +1 -2
  180. package/styles/themes/material/wijmo.theme.material.blue-purple.css +1 -1
  181. package/styles/themes/material/wijmo.theme.material.blue-purple.scss +1 -2
  182. package/styles/themes/material/wijmo.theme.material.blue-red.css +1 -1
  183. package/styles/themes/material/wijmo.theme.material.blue-red.scss +1 -2
  184. package/styles/themes/material/wijmo.theme.material.blue-teal.css +1 -1
  185. package/styles/themes/material/wijmo.theme.material.blue-teal.scss +1 -2
  186. package/styles/themes/material/wijmo.theme.material.blue-yellow.css +1 -1
  187. package/styles/themes/material/wijmo.theme.material.blue-yellow.scss +1 -2
  188. package/styles/themes/material/wijmo.theme.material.blue_grey-amber.css +1 -1
  189. package/styles/themes/material/wijmo.theme.material.blue_grey-amber.scss +1 -2
  190. package/styles/themes/material/wijmo.theme.material.blue_grey-blue.css +1 -1
  191. package/styles/themes/material/wijmo.theme.material.blue_grey-blue.scss +1 -2
  192. package/styles/themes/material/wijmo.theme.material.blue_grey-cyan.css +1 -1
  193. package/styles/themes/material/wijmo.theme.material.blue_grey-cyan.scss +1 -2
  194. package/styles/themes/material/wijmo.theme.material.blue_grey-deep_orange.css +1 -1
  195. package/styles/themes/material/wijmo.theme.material.blue_grey-deep_orange.scss +1 -2
  196. package/styles/themes/material/wijmo.theme.material.blue_grey-deep_purple.css +1 -1
  197. package/styles/themes/material/wijmo.theme.material.blue_grey-deep_purple.scss +1 -2
  198. package/styles/themes/material/wijmo.theme.material.blue_grey-green.css +1 -1
  199. package/styles/themes/material/wijmo.theme.material.blue_grey-green.scss +1 -2
  200. package/styles/themes/material/wijmo.theme.material.blue_grey-indigo.css +1 -1
  201. package/styles/themes/material/wijmo.theme.material.blue_grey-indigo.scss +1 -2
  202. package/styles/themes/material/wijmo.theme.material.blue_grey-light_blue.css +1 -1
  203. package/styles/themes/material/wijmo.theme.material.blue_grey-light_blue.scss +1 -2
  204. package/styles/themes/material/wijmo.theme.material.blue_grey-light_green.css +1 -1
  205. package/styles/themes/material/wijmo.theme.material.blue_grey-light_green.scss +1 -2
  206. package/styles/themes/material/wijmo.theme.material.blue_grey-lime.css +1 -1
  207. package/styles/themes/material/wijmo.theme.material.blue_grey-lime.scss +1 -2
  208. package/styles/themes/material/wijmo.theme.material.blue_grey-orange.css +1 -1
  209. package/styles/themes/material/wijmo.theme.material.blue_grey-orange.scss +1 -2
  210. package/styles/themes/material/wijmo.theme.material.blue_grey-pink.css +1 -1
  211. package/styles/themes/material/wijmo.theme.material.blue_grey-pink.scss +1 -2
  212. package/styles/themes/material/wijmo.theme.material.blue_grey-purple.css +1 -1
  213. package/styles/themes/material/wijmo.theme.material.blue_grey-purple.scss +1 -2
  214. package/styles/themes/material/wijmo.theme.material.blue_grey-red.css +1 -1
  215. package/styles/themes/material/wijmo.theme.material.blue_grey-red.scss +1 -2
  216. package/styles/themes/material/wijmo.theme.material.blue_grey-teal.css +1 -1
  217. package/styles/themes/material/wijmo.theme.material.blue_grey-teal.scss +1 -2
  218. package/styles/themes/material/wijmo.theme.material.blue_grey-yellow.css +1 -1
  219. package/styles/themes/material/wijmo.theme.material.blue_grey-yellow.scss +1 -2
  220. package/styles/themes/material/wijmo.theme.material.brown-amber.css +1 -1
  221. package/styles/themes/material/wijmo.theme.material.brown-amber.scss +1 -2
  222. package/styles/themes/material/wijmo.theme.material.brown-blue.css +1 -1
  223. package/styles/themes/material/wijmo.theme.material.brown-blue.scss +1 -2
  224. package/styles/themes/material/wijmo.theme.material.brown-cyan.css +1 -1
  225. package/styles/themes/material/wijmo.theme.material.brown-cyan.scss +1 -2
  226. package/styles/themes/material/wijmo.theme.material.brown-deep_orange.css +1 -1
  227. package/styles/themes/material/wijmo.theme.material.brown-deep_orange.scss +1 -2
  228. package/styles/themes/material/wijmo.theme.material.brown-deep_purple.css +1 -1
  229. package/styles/themes/material/wijmo.theme.material.brown-deep_purple.scss +1 -2
  230. package/styles/themes/material/wijmo.theme.material.brown-green.css +1 -1
  231. package/styles/themes/material/wijmo.theme.material.brown-green.scss +1 -2
  232. package/styles/themes/material/wijmo.theme.material.brown-indigo.css +1 -1
  233. package/styles/themes/material/wijmo.theme.material.brown-indigo.scss +1 -2
  234. package/styles/themes/material/wijmo.theme.material.brown-light_blue.css +1 -1
  235. package/styles/themes/material/wijmo.theme.material.brown-light_blue.scss +1 -2
  236. package/styles/themes/material/wijmo.theme.material.brown-light_green.css +1 -1
  237. package/styles/themes/material/wijmo.theme.material.brown-light_green.scss +1 -2
  238. package/styles/themes/material/wijmo.theme.material.brown-lime.css +1 -1
  239. package/styles/themes/material/wijmo.theme.material.brown-lime.scss +1 -2
  240. package/styles/themes/material/wijmo.theme.material.brown-orange.css +1 -1
  241. package/styles/themes/material/wijmo.theme.material.brown-orange.scss +1 -2
  242. package/styles/themes/material/wijmo.theme.material.brown-pink.css +1 -1
  243. package/styles/themes/material/wijmo.theme.material.brown-pink.scss +1 -2
  244. package/styles/themes/material/wijmo.theme.material.brown-purple.css +1 -1
  245. package/styles/themes/material/wijmo.theme.material.brown-purple.scss +1 -2
  246. package/styles/themes/material/wijmo.theme.material.brown-red.css +1 -1
  247. package/styles/themes/material/wijmo.theme.material.brown-red.scss +1 -2
  248. package/styles/themes/material/wijmo.theme.material.brown-teal.css +1 -1
  249. package/styles/themes/material/wijmo.theme.material.brown-teal.scss +1 -2
  250. package/styles/themes/material/wijmo.theme.material.brown-yellow.css +1 -1
  251. package/styles/themes/material/wijmo.theme.material.brown-yellow.scss +1 -2
  252. package/styles/themes/material/wijmo.theme.material.cyan-amber.css +1 -1
  253. package/styles/themes/material/wijmo.theme.material.cyan-amber.scss +1 -2
  254. package/styles/themes/material/wijmo.theme.material.cyan-blue.css +1 -1
  255. package/styles/themes/material/wijmo.theme.material.cyan-blue.scss +1 -2
  256. package/styles/themes/material/wijmo.theme.material.cyan-deep_orange.css +1 -1
  257. package/styles/themes/material/wijmo.theme.material.cyan-deep_orange.scss +1 -2
  258. package/styles/themes/material/wijmo.theme.material.cyan-deep_purple.css +1 -1
  259. package/styles/themes/material/wijmo.theme.material.cyan-deep_purple.scss +1 -2
  260. package/styles/themes/material/wijmo.theme.material.cyan-green.css +1 -1
  261. package/styles/themes/material/wijmo.theme.material.cyan-green.scss +1 -2
  262. package/styles/themes/material/wijmo.theme.material.cyan-indigo.css +1 -1
  263. package/styles/themes/material/wijmo.theme.material.cyan-indigo.scss +1 -2
  264. package/styles/themes/material/wijmo.theme.material.cyan-light_blue.css +1 -1
  265. package/styles/themes/material/wijmo.theme.material.cyan-light_blue.scss +1 -2
  266. package/styles/themes/material/wijmo.theme.material.cyan-light_green.css +1 -1
  267. package/styles/themes/material/wijmo.theme.material.cyan-light_green.scss +1 -2
  268. package/styles/themes/material/wijmo.theme.material.cyan-lime.css +1 -1
  269. package/styles/themes/material/wijmo.theme.material.cyan-lime.scss +1 -2
  270. package/styles/themes/material/wijmo.theme.material.cyan-orange.css +1 -1
  271. package/styles/themes/material/wijmo.theme.material.cyan-orange.scss +1 -2
  272. package/styles/themes/material/wijmo.theme.material.cyan-pink.css +1 -1
  273. package/styles/themes/material/wijmo.theme.material.cyan-pink.scss +1 -2
  274. package/styles/themes/material/wijmo.theme.material.cyan-purple.css +1 -1
  275. package/styles/themes/material/wijmo.theme.material.cyan-purple.scss +1 -2
  276. package/styles/themes/material/wijmo.theme.material.cyan-red.css +1 -1
  277. package/styles/themes/material/wijmo.theme.material.cyan-red.scss +1 -2
  278. package/styles/themes/material/wijmo.theme.material.cyan-teal.css +1 -1
  279. package/styles/themes/material/wijmo.theme.material.cyan-teal.scss +1 -2
  280. package/styles/themes/material/wijmo.theme.material.cyan-yellow.css +1 -1
  281. package/styles/themes/material/wijmo.theme.material.cyan-yellow.scss +1 -2
  282. package/styles/themes/material/wijmo.theme.material.deep_orange-amber.css +1 -1
  283. package/styles/themes/material/wijmo.theme.material.deep_orange-amber.scss +1 -2
  284. package/styles/themes/material/wijmo.theme.material.deep_orange-blue.css +1 -1
  285. package/styles/themes/material/wijmo.theme.material.deep_orange-blue.scss +1 -2
  286. package/styles/themes/material/wijmo.theme.material.deep_orange-cyan.css +1 -1
  287. package/styles/themes/material/wijmo.theme.material.deep_orange-cyan.scss +1 -2
  288. package/styles/themes/material/wijmo.theme.material.deep_orange-deep_purple.css +1 -1
  289. package/styles/themes/material/wijmo.theme.material.deep_orange-deep_purple.scss +1 -2
  290. package/styles/themes/material/wijmo.theme.material.deep_orange-green.css +1 -1
  291. package/styles/themes/material/wijmo.theme.material.deep_orange-green.scss +1 -2
  292. package/styles/themes/material/wijmo.theme.material.deep_orange-indigo.css +1 -1
  293. package/styles/themes/material/wijmo.theme.material.deep_orange-indigo.scss +1 -2
  294. package/styles/themes/material/wijmo.theme.material.deep_orange-light_blue.css +1 -1
  295. package/styles/themes/material/wijmo.theme.material.deep_orange-light_blue.scss +1 -2
  296. package/styles/themes/material/wijmo.theme.material.deep_orange-light_green.css +1 -1
  297. package/styles/themes/material/wijmo.theme.material.deep_orange-light_green.scss +1 -2
  298. package/styles/themes/material/wijmo.theme.material.deep_orange-lime.css +1 -1
  299. package/styles/themes/material/wijmo.theme.material.deep_orange-lime.scss +1 -2
  300. package/styles/themes/material/wijmo.theme.material.deep_orange-orange.css +1 -1
  301. package/styles/themes/material/wijmo.theme.material.deep_orange-orange.scss +1 -2
  302. package/styles/themes/material/wijmo.theme.material.deep_orange-pink.css +1 -1
  303. package/styles/themes/material/wijmo.theme.material.deep_orange-pink.scss +1 -2
  304. package/styles/themes/material/wijmo.theme.material.deep_orange-purple.css +1 -1
  305. package/styles/themes/material/wijmo.theme.material.deep_orange-purple.scss +1 -2
  306. package/styles/themes/material/wijmo.theme.material.deep_orange-red.css +1 -1
  307. package/styles/themes/material/wijmo.theme.material.deep_orange-red.scss +1 -2
  308. package/styles/themes/material/wijmo.theme.material.deep_orange-teal.css +1 -1
  309. package/styles/themes/material/wijmo.theme.material.deep_orange-teal.scss +1 -2
  310. package/styles/themes/material/wijmo.theme.material.deep_orange-yellow.css +1 -1
  311. package/styles/themes/material/wijmo.theme.material.deep_orange-yellow.scss +1 -2
  312. package/styles/themes/material/wijmo.theme.material.deep_purple-amber.css +1 -1
  313. package/styles/themes/material/wijmo.theme.material.deep_purple-amber.scss +1 -2
  314. package/styles/themes/material/wijmo.theme.material.deep_purple-blue.css +1 -1
  315. package/styles/themes/material/wijmo.theme.material.deep_purple-blue.scss +1 -2
  316. package/styles/themes/material/wijmo.theme.material.deep_purple-cyan.css +1 -1
  317. package/styles/themes/material/wijmo.theme.material.deep_purple-cyan.scss +1 -2
  318. package/styles/themes/material/wijmo.theme.material.deep_purple-deep_orange.css +1 -1
  319. package/styles/themes/material/wijmo.theme.material.deep_purple-deep_orange.scss +1 -2
  320. package/styles/themes/material/wijmo.theme.material.deep_purple-green.css +1 -1
  321. package/styles/themes/material/wijmo.theme.material.deep_purple-green.scss +1 -2
  322. package/styles/themes/material/wijmo.theme.material.deep_purple-indigo.css +1 -1
  323. package/styles/themes/material/wijmo.theme.material.deep_purple-indigo.scss +1 -2
  324. package/styles/themes/material/wijmo.theme.material.deep_purple-light_blue.css +1 -1
  325. package/styles/themes/material/wijmo.theme.material.deep_purple-light_blue.scss +1 -2
  326. package/styles/themes/material/wijmo.theme.material.deep_purple-light_green.css +1 -1
  327. package/styles/themes/material/wijmo.theme.material.deep_purple-light_green.scss +1 -2
  328. package/styles/themes/material/wijmo.theme.material.deep_purple-lime.css +1 -1
  329. package/styles/themes/material/wijmo.theme.material.deep_purple-lime.scss +1 -2
  330. package/styles/themes/material/wijmo.theme.material.deep_purple-orange.css +1 -1
  331. package/styles/themes/material/wijmo.theme.material.deep_purple-orange.scss +1 -2
  332. package/styles/themes/material/wijmo.theme.material.deep_purple-pink.css +1 -1
  333. package/styles/themes/material/wijmo.theme.material.deep_purple-pink.scss +1 -2
  334. package/styles/themes/material/wijmo.theme.material.deep_purple-purple.css +1 -1
  335. package/styles/themes/material/wijmo.theme.material.deep_purple-purple.scss +1 -2
  336. package/styles/themes/material/wijmo.theme.material.deep_purple-red.css +1 -1
  337. package/styles/themes/material/wijmo.theme.material.deep_purple-red.scss +1 -2
  338. package/styles/themes/material/wijmo.theme.material.deep_purple-teal.css +1 -1
  339. package/styles/themes/material/wijmo.theme.material.deep_purple-teal.scss +1 -2
  340. package/styles/themes/material/wijmo.theme.material.deep_purple-yellow.css +1 -1
  341. package/styles/themes/material/wijmo.theme.material.deep_purple-yellow.scss +1 -2
  342. package/styles/themes/material/wijmo.theme.material.green-amber.css +1 -1
  343. package/styles/themes/material/wijmo.theme.material.green-amber.scss +1 -2
  344. package/styles/themes/material/wijmo.theme.material.green-blue.css +1 -1
  345. package/styles/themes/material/wijmo.theme.material.green-blue.scss +1 -2
  346. package/styles/themes/material/wijmo.theme.material.green-cyan.css +1 -1
  347. package/styles/themes/material/wijmo.theme.material.green-cyan.scss +1 -2
  348. package/styles/themes/material/wijmo.theme.material.green-deep_orange.css +1 -1
  349. package/styles/themes/material/wijmo.theme.material.green-deep_orange.scss +1 -2
  350. package/styles/themes/material/wijmo.theme.material.green-deep_purple.css +1 -1
  351. package/styles/themes/material/wijmo.theme.material.green-deep_purple.scss +1 -2
  352. package/styles/themes/material/wijmo.theme.material.green-indigo.css +1 -1
  353. package/styles/themes/material/wijmo.theme.material.green-indigo.scss +1 -2
  354. package/styles/themes/material/wijmo.theme.material.green-light_blue.css +1 -1
  355. package/styles/themes/material/wijmo.theme.material.green-light_blue.scss +1 -2
  356. package/styles/themes/material/wijmo.theme.material.green-light_green.css +1 -1
  357. package/styles/themes/material/wijmo.theme.material.green-light_green.scss +1 -2
  358. package/styles/themes/material/wijmo.theme.material.green-lime.css +1 -1
  359. package/styles/themes/material/wijmo.theme.material.green-lime.scss +1 -2
  360. package/styles/themes/material/wijmo.theme.material.green-orange.css +1 -1
  361. package/styles/themes/material/wijmo.theme.material.green-orange.scss +1 -2
  362. package/styles/themes/material/wijmo.theme.material.green-pink.css +1 -1
  363. package/styles/themes/material/wijmo.theme.material.green-pink.scss +1 -2
  364. package/styles/themes/material/wijmo.theme.material.green-purple.css +1 -1
  365. package/styles/themes/material/wijmo.theme.material.green-purple.scss +1 -2
  366. package/styles/themes/material/wijmo.theme.material.green-red.css +1 -1
  367. package/styles/themes/material/wijmo.theme.material.green-red.scss +1 -2
  368. package/styles/themes/material/wijmo.theme.material.green-teal.css +1 -1
  369. package/styles/themes/material/wijmo.theme.material.green-teal.scss +1 -2
  370. package/styles/themes/material/wijmo.theme.material.green-yellow.css +1 -1
  371. package/styles/themes/material/wijmo.theme.material.green-yellow.scss +1 -2
  372. package/styles/themes/material/wijmo.theme.material.grey-amber.css +1 -1
  373. package/styles/themes/material/wijmo.theme.material.grey-amber.scss +1 -2
  374. package/styles/themes/material/wijmo.theme.material.grey-blue.css +1 -1
  375. package/styles/themes/material/wijmo.theme.material.grey-blue.scss +1 -2
  376. package/styles/themes/material/wijmo.theme.material.grey-cyan.css +1 -1
  377. package/styles/themes/material/wijmo.theme.material.grey-cyan.scss +1 -2
  378. package/styles/themes/material/wijmo.theme.material.grey-deep_orange.css +1 -1
  379. package/styles/themes/material/wijmo.theme.material.grey-deep_orange.scss +1 -2
  380. package/styles/themes/material/wijmo.theme.material.grey-deep_purple.css +1 -1
  381. package/styles/themes/material/wijmo.theme.material.grey-deep_purple.scss +1 -2
  382. package/styles/themes/material/wijmo.theme.material.grey-green.css +1 -1
  383. package/styles/themes/material/wijmo.theme.material.grey-green.scss +1 -2
  384. package/styles/themes/material/wijmo.theme.material.grey-indigo.css +1 -1
  385. package/styles/themes/material/wijmo.theme.material.grey-indigo.scss +1 -2
  386. package/styles/themes/material/wijmo.theme.material.grey-light_blue.css +1 -1
  387. package/styles/themes/material/wijmo.theme.material.grey-light_blue.scss +1 -2
  388. package/styles/themes/material/wijmo.theme.material.grey-light_green.css +1 -1
  389. package/styles/themes/material/wijmo.theme.material.grey-light_green.scss +1 -2
  390. package/styles/themes/material/wijmo.theme.material.grey-lime.css +1 -1
  391. package/styles/themes/material/wijmo.theme.material.grey-lime.scss +1 -2
  392. package/styles/themes/material/wijmo.theme.material.grey-orange.css +1 -1
  393. package/styles/themes/material/wijmo.theme.material.grey-orange.scss +1 -2
  394. package/styles/themes/material/wijmo.theme.material.grey-pink.css +1 -1
  395. package/styles/themes/material/wijmo.theme.material.grey-pink.scss +1 -2
  396. package/styles/themes/material/wijmo.theme.material.grey-purple.css +1 -1
  397. package/styles/themes/material/wijmo.theme.material.grey-purple.scss +1 -2
  398. package/styles/themes/material/wijmo.theme.material.grey-red.css +1 -1
  399. package/styles/themes/material/wijmo.theme.material.grey-red.scss +1 -2
  400. package/styles/themes/material/wijmo.theme.material.grey-teal.css +1 -1
  401. package/styles/themes/material/wijmo.theme.material.grey-teal.scss +1 -2
  402. package/styles/themes/material/wijmo.theme.material.grey-yellow.css +1 -1
  403. package/styles/themes/material/wijmo.theme.material.grey-yellow.scss +1 -2
  404. package/styles/themes/material/wijmo.theme.material.indigo-amber.css +1 -1
  405. package/styles/themes/material/wijmo.theme.material.indigo-amber.scss +1 -2
  406. package/styles/themes/material/wijmo.theme.material.indigo-blue.css +1 -1
  407. package/styles/themes/material/wijmo.theme.material.indigo-blue.scss +1 -2
  408. package/styles/themes/material/wijmo.theme.material.indigo-cyan.css +1 -1
  409. package/styles/themes/material/wijmo.theme.material.indigo-cyan.scss +1 -2
  410. package/styles/themes/material/wijmo.theme.material.indigo-deep_orange.css +1 -1
  411. package/styles/themes/material/wijmo.theme.material.indigo-deep_orange.scss +1 -2
  412. package/styles/themes/material/wijmo.theme.material.indigo-deep_purple.css +1 -1
  413. package/styles/themes/material/wijmo.theme.material.indigo-deep_purple.scss +1 -2
  414. package/styles/themes/material/wijmo.theme.material.indigo-green.css +1 -1
  415. package/styles/themes/material/wijmo.theme.material.indigo-green.scss +1 -2
  416. package/styles/themes/material/wijmo.theme.material.indigo-light_blue.css +1 -1
  417. package/styles/themes/material/wijmo.theme.material.indigo-light_blue.scss +1 -2
  418. package/styles/themes/material/wijmo.theme.material.indigo-light_green.css +1 -1
  419. package/styles/themes/material/wijmo.theme.material.indigo-light_green.scss +1 -2
  420. package/styles/themes/material/wijmo.theme.material.indigo-lime.css +1 -1
  421. package/styles/themes/material/wijmo.theme.material.indigo-lime.scss +1 -2
  422. package/styles/themes/material/wijmo.theme.material.indigo-orange.css +1 -1
  423. package/styles/themes/material/wijmo.theme.material.indigo-orange.scss +1 -2
  424. package/styles/themes/material/wijmo.theme.material.indigo-pink.css +1 -1
  425. package/styles/themes/material/wijmo.theme.material.indigo-pink.scss +1 -2
  426. package/styles/themes/material/wijmo.theme.material.indigo-purple.css +1 -1
  427. package/styles/themes/material/wijmo.theme.material.indigo-purple.scss +1 -2
  428. package/styles/themes/material/wijmo.theme.material.indigo-red.css +1 -1
  429. package/styles/themes/material/wijmo.theme.material.indigo-red.scss +1 -2
  430. package/styles/themes/material/wijmo.theme.material.indigo-teal.css +1 -1
  431. package/styles/themes/material/wijmo.theme.material.indigo-teal.scss +1 -2
  432. package/styles/themes/material/wijmo.theme.material.indigo-yellow.css +1 -1
  433. package/styles/themes/material/wijmo.theme.material.indigo-yellow.scss +1 -2
  434. package/styles/themes/material/wijmo.theme.material.light_blue-amber.css +1 -1
  435. package/styles/themes/material/wijmo.theme.material.light_blue-amber.scss +1 -2
  436. package/styles/themes/material/wijmo.theme.material.light_blue-blue.css +1 -1
  437. package/styles/themes/material/wijmo.theme.material.light_blue-blue.scss +1 -2
  438. package/styles/themes/material/wijmo.theme.material.light_blue-cyan.css +1 -1
  439. package/styles/themes/material/wijmo.theme.material.light_blue-cyan.scss +1 -2
  440. package/styles/themes/material/wijmo.theme.material.light_blue-deep_orange.css +1 -1
  441. package/styles/themes/material/wijmo.theme.material.light_blue-deep_orange.scss +1 -2
  442. package/styles/themes/material/wijmo.theme.material.light_blue-deep_purple.css +1 -1
  443. package/styles/themes/material/wijmo.theme.material.light_blue-deep_purple.scss +1 -2
  444. package/styles/themes/material/wijmo.theme.material.light_blue-green.css +1 -1
  445. package/styles/themes/material/wijmo.theme.material.light_blue-green.scss +1 -2
  446. package/styles/themes/material/wijmo.theme.material.light_blue-indigo.css +1 -1
  447. package/styles/themes/material/wijmo.theme.material.light_blue-indigo.scss +1 -2
  448. package/styles/themes/material/wijmo.theme.material.light_blue-light_green.css +1 -1
  449. package/styles/themes/material/wijmo.theme.material.light_blue-light_green.scss +1 -2
  450. package/styles/themes/material/wijmo.theme.material.light_blue-lime.css +1 -1
  451. package/styles/themes/material/wijmo.theme.material.light_blue-lime.scss +1 -2
  452. package/styles/themes/material/wijmo.theme.material.light_blue-orange.css +1 -1
  453. package/styles/themes/material/wijmo.theme.material.light_blue-orange.scss +1 -2
  454. package/styles/themes/material/wijmo.theme.material.light_blue-pink.css +1 -1
  455. package/styles/themes/material/wijmo.theme.material.light_blue-pink.scss +1 -2
  456. package/styles/themes/material/wijmo.theme.material.light_blue-purple.css +1 -1
  457. package/styles/themes/material/wijmo.theme.material.light_blue-purple.scss +1 -2
  458. package/styles/themes/material/wijmo.theme.material.light_blue-red.css +1 -1
  459. package/styles/themes/material/wijmo.theme.material.light_blue-red.scss +1 -2
  460. package/styles/themes/material/wijmo.theme.material.light_blue-teal.css +1 -1
  461. package/styles/themes/material/wijmo.theme.material.light_blue-teal.scss +1 -2
  462. package/styles/themes/material/wijmo.theme.material.light_blue-yellow.css +1 -1
  463. package/styles/themes/material/wijmo.theme.material.light_blue-yellow.scss +1 -2
  464. package/styles/themes/material/wijmo.theme.material.light_green-amber.css +1 -1
  465. package/styles/themes/material/wijmo.theme.material.light_green-amber.scss +1 -2
  466. package/styles/themes/material/wijmo.theme.material.light_green-blue.css +1 -1
  467. package/styles/themes/material/wijmo.theme.material.light_green-blue.scss +1 -2
  468. package/styles/themes/material/wijmo.theme.material.light_green-cyan.css +1 -1
  469. package/styles/themes/material/wijmo.theme.material.light_green-cyan.scss +1 -2
  470. package/styles/themes/material/wijmo.theme.material.light_green-deep_orange.css +1 -1
  471. package/styles/themes/material/wijmo.theme.material.light_green-deep_orange.scss +1 -2
  472. package/styles/themes/material/wijmo.theme.material.light_green-deep_purple.css +1 -1
  473. package/styles/themes/material/wijmo.theme.material.light_green-deep_purple.scss +1 -2
  474. package/styles/themes/material/wijmo.theme.material.light_green-green.css +1 -1
  475. package/styles/themes/material/wijmo.theme.material.light_green-green.scss +1 -2
  476. package/styles/themes/material/wijmo.theme.material.light_green-indigo.css +1 -1
  477. package/styles/themes/material/wijmo.theme.material.light_green-indigo.scss +1 -2
  478. package/styles/themes/material/wijmo.theme.material.light_green-light_blue.css +1 -1
  479. package/styles/themes/material/wijmo.theme.material.light_green-light_blue.scss +1 -2
  480. package/styles/themes/material/wijmo.theme.material.light_green-lime.css +1 -1
  481. package/styles/themes/material/wijmo.theme.material.light_green-lime.scss +1 -2
  482. package/styles/themes/material/wijmo.theme.material.light_green-orange.css +1 -1
  483. package/styles/themes/material/wijmo.theme.material.light_green-orange.scss +1 -2
  484. package/styles/themes/material/wijmo.theme.material.light_green-pink.css +1 -1
  485. package/styles/themes/material/wijmo.theme.material.light_green-pink.scss +1 -2
  486. package/styles/themes/material/wijmo.theme.material.light_green-purple.css +1 -1
  487. package/styles/themes/material/wijmo.theme.material.light_green-purple.scss +1 -2
  488. package/styles/themes/material/wijmo.theme.material.light_green-red.css +1 -1
  489. package/styles/themes/material/wijmo.theme.material.light_green-red.scss +1 -2
  490. package/styles/themes/material/wijmo.theme.material.light_green-teal.css +1 -1
  491. package/styles/themes/material/wijmo.theme.material.light_green-teal.scss +1 -2
  492. package/styles/themes/material/wijmo.theme.material.light_green-yellow.css +1 -1
  493. package/styles/themes/material/wijmo.theme.material.light_green-yellow.scss +1 -2
  494. package/styles/themes/material/wijmo.theme.material.lime-amber.css +1 -1
  495. package/styles/themes/material/wijmo.theme.material.lime-amber.scss +1 -2
  496. package/styles/themes/material/wijmo.theme.material.lime-blue.css +1 -1
  497. package/styles/themes/material/wijmo.theme.material.lime-blue.scss +1 -2
  498. package/styles/themes/material/wijmo.theme.material.lime-cyan.css +1 -1
  499. package/styles/themes/material/wijmo.theme.material.lime-cyan.scss +1 -2
  500. package/styles/themes/material/wijmo.theme.material.lime-deep_orange.css +1 -1
  501. package/styles/themes/material/wijmo.theme.material.lime-deep_orange.scss +1 -2
  502. package/styles/themes/material/wijmo.theme.material.lime-deep_purple.css +1 -1
  503. package/styles/themes/material/wijmo.theme.material.lime-deep_purple.scss +1 -2
  504. package/styles/themes/material/wijmo.theme.material.lime-green.css +1 -1
  505. package/styles/themes/material/wijmo.theme.material.lime-green.scss +1 -2
  506. package/styles/themes/material/wijmo.theme.material.lime-indigo.css +1 -1
  507. package/styles/themes/material/wijmo.theme.material.lime-indigo.scss +1 -2
  508. package/styles/themes/material/wijmo.theme.material.lime-light_blue.css +1 -1
  509. package/styles/themes/material/wijmo.theme.material.lime-light_blue.scss +1 -2
  510. package/styles/themes/material/wijmo.theme.material.lime-light_green.css +1 -1
  511. package/styles/themes/material/wijmo.theme.material.lime-light_green.scss +1 -2
  512. package/styles/themes/material/wijmo.theme.material.lime-orange.css +1 -1
  513. package/styles/themes/material/wijmo.theme.material.lime-orange.scss +1 -2
  514. package/styles/themes/material/wijmo.theme.material.lime-pink.css +1 -1
  515. package/styles/themes/material/wijmo.theme.material.lime-pink.scss +1 -2
  516. package/styles/themes/material/wijmo.theme.material.lime-purple.css +1 -1
  517. package/styles/themes/material/wijmo.theme.material.lime-purple.scss +1 -2
  518. package/styles/themes/material/wijmo.theme.material.lime-red.css +1 -1
  519. package/styles/themes/material/wijmo.theme.material.lime-red.scss +1 -2
  520. package/styles/themes/material/wijmo.theme.material.lime-teal.css +1 -1
  521. package/styles/themes/material/wijmo.theme.material.lime-teal.scss +1 -2
  522. package/styles/themes/material/wijmo.theme.material.lime-yellow.css +1 -1
  523. package/styles/themes/material/wijmo.theme.material.lime-yellow.scss +1 -2
  524. package/styles/themes/material/wijmo.theme.material.orange-amber.css +1 -1
  525. package/styles/themes/material/wijmo.theme.material.orange-amber.scss +1 -2
  526. package/styles/themes/material/wijmo.theme.material.orange-blue.css +1 -1
  527. package/styles/themes/material/wijmo.theme.material.orange-blue.scss +1 -2
  528. package/styles/themes/material/wijmo.theme.material.orange-cyan.css +1 -1
  529. package/styles/themes/material/wijmo.theme.material.orange-cyan.scss +1 -2
  530. package/styles/themes/material/wijmo.theme.material.orange-deep_orange.css +1 -1
  531. package/styles/themes/material/wijmo.theme.material.orange-deep_orange.scss +1 -2
  532. package/styles/themes/material/wijmo.theme.material.orange-deep_purple.css +1 -1
  533. package/styles/themes/material/wijmo.theme.material.orange-deep_purple.scss +1 -2
  534. package/styles/themes/material/wijmo.theme.material.orange-green.css +1 -1
  535. package/styles/themes/material/wijmo.theme.material.orange-green.scss +1 -2
  536. package/styles/themes/material/wijmo.theme.material.orange-indigo.css +1 -1
  537. package/styles/themes/material/wijmo.theme.material.orange-indigo.scss +1 -2
  538. package/styles/themes/material/wijmo.theme.material.orange-light_blue.css +1 -1
  539. package/styles/themes/material/wijmo.theme.material.orange-light_blue.scss +1 -2
  540. package/styles/themes/material/wijmo.theme.material.orange-light_green.css +1 -1
  541. package/styles/themes/material/wijmo.theme.material.orange-light_green.scss +1 -2
  542. package/styles/themes/material/wijmo.theme.material.orange-lime.css +1 -1
  543. package/styles/themes/material/wijmo.theme.material.orange-lime.scss +1 -2
  544. package/styles/themes/material/wijmo.theme.material.orange-pink.css +1 -1
  545. package/styles/themes/material/wijmo.theme.material.orange-pink.scss +1 -2
  546. package/styles/themes/material/wijmo.theme.material.orange-purple.css +1 -1
  547. package/styles/themes/material/wijmo.theme.material.orange-purple.scss +1 -2
  548. package/styles/themes/material/wijmo.theme.material.orange-red.css +1 -1
  549. package/styles/themes/material/wijmo.theme.material.orange-red.scss +1 -2
  550. package/styles/themes/material/wijmo.theme.material.orange-teal.css +1 -1
  551. package/styles/themes/material/wijmo.theme.material.orange-teal.scss +1 -2
  552. package/styles/themes/material/wijmo.theme.material.orange-yellow.css +1 -1
  553. package/styles/themes/material/wijmo.theme.material.orange-yellow.scss +1 -2
  554. package/styles/themes/material/wijmo.theme.material.pink-amber.css +1 -1
  555. package/styles/themes/material/wijmo.theme.material.pink-amber.scss +1 -2
  556. package/styles/themes/material/wijmo.theme.material.pink-blue.css +1 -1
  557. package/styles/themes/material/wijmo.theme.material.pink-blue.scss +1 -2
  558. package/styles/themes/material/wijmo.theme.material.pink-cyan.css +1 -1
  559. package/styles/themes/material/wijmo.theme.material.pink-cyan.scss +1 -2
  560. package/styles/themes/material/wijmo.theme.material.pink-deep_orange.css +1 -1
  561. package/styles/themes/material/wijmo.theme.material.pink-deep_orange.scss +1 -2
  562. package/styles/themes/material/wijmo.theme.material.pink-deep_purple.css +1 -1
  563. package/styles/themes/material/wijmo.theme.material.pink-deep_purple.scss +1 -2
  564. package/styles/themes/material/wijmo.theme.material.pink-green.css +1 -1
  565. package/styles/themes/material/wijmo.theme.material.pink-green.scss +1 -2
  566. package/styles/themes/material/wijmo.theme.material.pink-indigo.css +1 -1
  567. package/styles/themes/material/wijmo.theme.material.pink-indigo.scss +1 -2
  568. package/styles/themes/material/wijmo.theme.material.pink-light_blue.css +1 -1
  569. package/styles/themes/material/wijmo.theme.material.pink-light_blue.scss +1 -2
  570. package/styles/themes/material/wijmo.theme.material.pink-light_green.css +1 -1
  571. package/styles/themes/material/wijmo.theme.material.pink-light_green.scss +1 -2
  572. package/styles/themes/material/wijmo.theme.material.pink-lime.css +1 -1
  573. package/styles/themes/material/wijmo.theme.material.pink-lime.scss +1 -2
  574. package/styles/themes/material/wijmo.theme.material.pink-orange.css +1 -1
  575. package/styles/themes/material/wijmo.theme.material.pink-orange.scss +1 -2
  576. package/styles/themes/material/wijmo.theme.material.pink-purple.css +1 -1
  577. package/styles/themes/material/wijmo.theme.material.pink-purple.scss +1 -2
  578. package/styles/themes/material/wijmo.theme.material.pink-red.css +1 -1
  579. package/styles/themes/material/wijmo.theme.material.pink-red.scss +1 -2
  580. package/styles/themes/material/wijmo.theme.material.pink-teal.css +1 -1
  581. package/styles/themes/material/wijmo.theme.material.pink-teal.scss +1 -2
  582. package/styles/themes/material/wijmo.theme.material.pink-yellow.css +1 -1
  583. package/styles/themes/material/wijmo.theme.material.pink-yellow.scss +1 -2
  584. package/styles/themes/material/wijmo.theme.material.purple-amber.css +1 -1
  585. package/styles/themes/material/wijmo.theme.material.purple-amber.scss +1 -2
  586. package/styles/themes/material/wijmo.theme.material.purple-blue.css +1 -1
  587. package/styles/themes/material/wijmo.theme.material.purple-blue.scss +1 -2
  588. package/styles/themes/material/wijmo.theme.material.purple-cyan.css +1 -1
  589. package/styles/themes/material/wijmo.theme.material.purple-cyan.scss +1 -2
  590. package/styles/themes/material/wijmo.theme.material.purple-deep_orange.css +1 -1
  591. package/styles/themes/material/wijmo.theme.material.purple-deep_orange.scss +1 -2
  592. package/styles/themes/material/wijmo.theme.material.purple-deep_purple.css +1 -1
  593. package/styles/themes/material/wijmo.theme.material.purple-deep_purple.scss +1 -2
  594. package/styles/themes/material/wijmo.theme.material.purple-green.css +1 -1
  595. package/styles/themes/material/wijmo.theme.material.purple-green.scss +1 -2
  596. package/styles/themes/material/wijmo.theme.material.purple-indigo.css +1 -1
  597. package/styles/themes/material/wijmo.theme.material.purple-indigo.scss +1 -2
  598. package/styles/themes/material/wijmo.theme.material.purple-light_blue.css +1 -1
  599. package/styles/themes/material/wijmo.theme.material.purple-light_blue.scss +1 -2
  600. package/styles/themes/material/wijmo.theme.material.purple-light_green.css +1 -1
  601. package/styles/themes/material/wijmo.theme.material.purple-light_green.scss +1 -2
  602. package/styles/themes/material/wijmo.theme.material.purple-lime.css +1 -1
  603. package/styles/themes/material/wijmo.theme.material.purple-lime.scss +1 -2
  604. package/styles/themes/material/wijmo.theme.material.purple-orange.css +1 -1
  605. package/styles/themes/material/wijmo.theme.material.purple-orange.scss +1 -2
  606. package/styles/themes/material/wijmo.theme.material.purple-pink.css +1 -1
  607. package/styles/themes/material/wijmo.theme.material.purple-pink.scss +1 -2
  608. package/styles/themes/material/wijmo.theme.material.purple-red.css +1 -1
  609. package/styles/themes/material/wijmo.theme.material.purple-red.scss +1 -2
  610. package/styles/themes/material/wijmo.theme.material.purple-teal.css +1 -1
  611. package/styles/themes/material/wijmo.theme.material.purple-teal.scss +1 -2
  612. package/styles/themes/material/wijmo.theme.material.purple-yellow.css +1 -1
  613. package/styles/themes/material/wijmo.theme.material.purple-yellow.scss +1 -2
  614. package/styles/themes/material/wijmo.theme.material.red-amber.css +1 -1
  615. package/styles/themes/material/wijmo.theme.material.red-amber.scss +1 -2
  616. package/styles/themes/material/wijmo.theme.material.red-blue.css +1 -1
  617. package/styles/themes/material/wijmo.theme.material.red-blue.scss +1 -2
  618. package/styles/themes/material/wijmo.theme.material.red-cyan.css +1 -1
  619. package/styles/themes/material/wijmo.theme.material.red-cyan.scss +1 -2
  620. package/styles/themes/material/wijmo.theme.material.red-deep_orange.css +1 -1
  621. package/styles/themes/material/wijmo.theme.material.red-deep_orange.scss +1 -2
  622. package/styles/themes/material/wijmo.theme.material.red-deep_purple.css +1 -1
  623. package/styles/themes/material/wijmo.theme.material.red-deep_purple.scss +1 -2
  624. package/styles/themes/material/wijmo.theme.material.red-green.css +1 -1
  625. package/styles/themes/material/wijmo.theme.material.red-green.scss +1 -2
  626. package/styles/themes/material/wijmo.theme.material.red-indigo.css +1 -1
  627. package/styles/themes/material/wijmo.theme.material.red-indigo.scss +1 -2
  628. package/styles/themes/material/wijmo.theme.material.red-light_blue.css +1 -1
  629. package/styles/themes/material/wijmo.theme.material.red-light_blue.scss +1 -2
  630. package/styles/themes/material/wijmo.theme.material.red-light_green.css +1 -1
  631. package/styles/themes/material/wijmo.theme.material.red-light_green.scss +1 -2
  632. package/styles/themes/material/wijmo.theme.material.red-lime.css +1 -1
  633. package/styles/themes/material/wijmo.theme.material.red-lime.scss +1 -2
  634. package/styles/themes/material/wijmo.theme.material.red-orange.css +1 -1
  635. package/styles/themes/material/wijmo.theme.material.red-orange.scss +1 -2
  636. package/styles/themes/material/wijmo.theme.material.red-pink.css +1 -1
  637. package/styles/themes/material/wijmo.theme.material.red-pink.scss +1 -2
  638. package/styles/themes/material/wijmo.theme.material.red-purple.css +1 -1
  639. package/styles/themes/material/wijmo.theme.material.red-purple.scss +1 -2
  640. package/styles/themes/material/wijmo.theme.material.red-teal.css +1 -1
  641. package/styles/themes/material/wijmo.theme.material.red-teal.scss +1 -2
  642. package/styles/themes/material/wijmo.theme.material.red-yellow.css +1 -1
  643. package/styles/themes/material/wijmo.theme.material.red-yellow.scss +1 -2
  644. package/styles/themes/material/wijmo.theme.material.teal-amber.css +1 -1
  645. package/styles/themes/material/wijmo.theme.material.teal-amber.scss +1 -2
  646. package/styles/themes/material/wijmo.theme.material.teal-blue.css +1 -1
  647. package/styles/themes/material/wijmo.theme.material.teal-blue.scss +1 -2
  648. package/styles/themes/material/wijmo.theme.material.teal-cyan.css +1 -1
  649. package/styles/themes/material/wijmo.theme.material.teal-cyan.scss +1 -2
  650. package/styles/themes/material/wijmo.theme.material.teal-deep_orange.css +1 -1
  651. package/styles/themes/material/wijmo.theme.material.teal-deep_orange.scss +1 -2
  652. package/styles/themes/material/wijmo.theme.material.teal-deep_purple.css +1 -1
  653. package/styles/themes/material/wijmo.theme.material.teal-deep_purple.scss +1 -2
  654. package/styles/themes/material/wijmo.theme.material.teal-green.css +1 -1
  655. package/styles/themes/material/wijmo.theme.material.teal-green.scss +1 -2
  656. package/styles/themes/material/wijmo.theme.material.teal-indigo.css +1 -1
  657. package/styles/themes/material/wijmo.theme.material.teal-indigo.scss +1 -2
  658. package/styles/themes/material/wijmo.theme.material.teal-light_blue.css +1 -1
  659. package/styles/themes/material/wijmo.theme.material.teal-light_blue.scss +1 -2
  660. package/styles/themes/material/wijmo.theme.material.teal-light_green.css +1 -1
  661. package/styles/themes/material/wijmo.theme.material.teal-light_green.scss +1 -2
  662. package/styles/themes/material/wijmo.theme.material.teal-lime.css +1 -1
  663. package/styles/themes/material/wijmo.theme.material.teal-lime.scss +1 -2
  664. package/styles/themes/material/wijmo.theme.material.teal-orange.css +1 -1
  665. package/styles/themes/material/wijmo.theme.material.teal-orange.scss +1 -2
  666. package/styles/themes/material/wijmo.theme.material.teal-pink.css +1 -1
  667. package/styles/themes/material/wijmo.theme.material.teal-pink.scss +1 -2
  668. package/styles/themes/material/wijmo.theme.material.teal-purple.css +1 -1
  669. package/styles/themes/material/wijmo.theme.material.teal-purple.scss +1 -2
  670. package/styles/themes/material/wijmo.theme.material.teal-red.css +1 -1
  671. package/styles/themes/material/wijmo.theme.material.teal-red.scss +1 -2
  672. package/styles/themes/material/wijmo.theme.material.teal-yellow.css +1 -1
  673. package/styles/themes/material/wijmo.theme.material.teal-yellow.scss +1 -2
  674. package/styles/themes/material/wijmo.theme.material.yellow-amber.css +1 -1
  675. package/styles/themes/material/wijmo.theme.material.yellow-amber.scss +1 -2
  676. package/styles/themes/material/wijmo.theme.material.yellow-blue.css +1 -1
  677. package/styles/themes/material/wijmo.theme.material.yellow-blue.scss +1 -2
  678. package/styles/themes/material/wijmo.theme.material.yellow-cyan.css +1 -1
  679. package/styles/themes/material/wijmo.theme.material.yellow-cyan.scss +1 -2
  680. package/styles/themes/material/wijmo.theme.material.yellow-deep_orange.css +1 -1
  681. package/styles/themes/material/wijmo.theme.material.yellow-deep_orange.scss +1 -2
  682. package/styles/themes/material/wijmo.theme.material.yellow-deep_purple.css +1 -1
  683. package/styles/themes/material/wijmo.theme.material.yellow-deep_purple.scss +1 -2
  684. package/styles/themes/material/wijmo.theme.material.yellow-green.css +1 -1
  685. package/styles/themes/material/wijmo.theme.material.yellow-green.scss +1 -2
  686. package/styles/themes/material/wijmo.theme.material.yellow-indigo.css +1 -1
  687. package/styles/themes/material/wijmo.theme.material.yellow-indigo.scss +1 -2
  688. package/styles/themes/material/wijmo.theme.material.yellow-light_blue.css +1 -1
  689. package/styles/themes/material/wijmo.theme.material.yellow-light_blue.scss +1 -2
  690. package/styles/themes/material/wijmo.theme.material.yellow-light_green.css +1 -1
  691. package/styles/themes/material/wijmo.theme.material.yellow-light_green.scss +1 -2
  692. package/styles/themes/material/wijmo.theme.material.yellow-lime.css +1 -1
  693. package/styles/themes/material/wijmo.theme.material.yellow-lime.scss +1 -2
  694. package/styles/themes/material/wijmo.theme.material.yellow-orange.css +1 -1
  695. package/styles/themes/material/wijmo.theme.material.yellow-orange.scss +1 -2
  696. package/styles/themes/material/wijmo.theme.material.yellow-pink.css +1 -1
  697. package/styles/themes/material/wijmo.theme.material.yellow-pink.scss +1 -2
  698. package/styles/themes/material/wijmo.theme.material.yellow-purple.css +1 -1
  699. package/styles/themes/material/wijmo.theme.material.yellow-purple.scss +1 -2
  700. package/styles/themes/material/wijmo.theme.material.yellow-red.css +1 -1
  701. package/styles/themes/material/wijmo.theme.material.yellow-red.scss +1 -2
  702. package/styles/themes/material/wijmo.theme.material.yellow-teal.css +1 -1
  703. package/styles/themes/material/wijmo.theme.material.yellow-teal.scss +1 -2
  704. package/styles/themes/wijmo.theme.cerulean.css +1 -1
  705. package/styles/themes/wijmo.theme.cerulean.scss +1 -2
  706. package/styles/themes/wijmo.theme.cleandark.css +1 -1
  707. package/styles/themes/wijmo.theme.cleandark.scss +2 -3
  708. package/styles/themes/wijmo.theme.cleanlight.css +1 -1
  709. package/styles/themes/wijmo.theme.cleanlight.scss +3 -4
  710. package/styles/themes/wijmo.theme.cocoa.css +1 -1
  711. package/styles/themes/wijmo.theme.cocoa.scss +1 -2
  712. package/styles/themes/wijmo.theme.coral.css +1 -1
  713. package/styles/themes/wijmo.theme.coral.scss +1 -2
  714. package/styles/themes/wijmo.theme.cyborg.css +1 -1
  715. package/styles/themes/wijmo.theme.cyborg.scss +1 -2
  716. package/styles/themes/wijmo.theme.dark.css +1 -1
  717. package/styles/themes/wijmo.theme.dark.scss +1 -2
  718. package/styles/themes/wijmo.theme.darkly.css +1 -1
  719. package/styles/themes/wijmo.theme.darkly.scss +1 -1
  720. package/styles/themes/wijmo.theme.flatly.css +1 -1
  721. package/styles/themes/wijmo.theme.flatly.scss +2 -3
  722. package/styles/themes/wijmo.theme.grayscale.css +1 -1
  723. package/styles/themes/wijmo.theme.grayscale.scss +1 -1
  724. package/styles/themes/wijmo.theme.highcontrast.css +1 -1
  725. package/styles/themes/wijmo.theme.highcontrast.scss +9 -9
  726. package/styles/themes/wijmo.theme.light.css +1 -1
  727. package/styles/themes/wijmo.theme.light.scss +1 -1
  728. package/styles/themes/wijmo.theme.material.amber-indigo.css +1 -1
  729. package/styles/themes/wijmo.theme.material.amber-indigo.scss +1 -2
  730. package/styles/themes/wijmo.theme.material.css +1 -1
  731. package/styles/themes/wijmo.theme.material.indigo-orange.css +1 -1
  732. package/styles/themes/wijmo.theme.material.indigo-orange.scss +1 -1
  733. package/styles/themes/wijmo.theme.material.scss +33 -29
  734. package/styles/themes/wijmo.theme.material.vars.css +1 -1
  735. package/styles/themes/wijmo.theme.material.vars.scss +1 -1
  736. package/styles/themes/wijmo.theme.midnight.css +1 -1
  737. package/styles/themes/wijmo.theme.midnight.scss +1 -1
  738. package/styles/themes/wijmo.theme.minimal.css +1 -1
  739. package/styles/themes/wijmo.theme.minimal.scss +1 -1
  740. package/styles/themes/wijmo.theme.modern.css +1 -1
  741. package/styles/themes/wijmo.theme.modern.scss +1 -1
  742. package/styles/themes/wijmo.theme.office.css +1 -1
  743. package/styles/themes/wijmo.theme.office.scss +1 -1
  744. package/styles/themes/wijmo.theme.organic.css +1 -1
  745. package/styles/themes/wijmo.theme.organic.scss +2 -2
  746. package/styles/themes/wijmo.theme.paper.css +1 -1
  747. package/styles/themes/wijmo.theme.paper.scss +1 -1
  748. package/styles/themes/wijmo.theme.simplex.css +1 -1
  749. package/styles/themes/wijmo.theme.simplex.scss +1 -1
  750. package/styles/themes/wijmo.theme.slate.css +1 -1
  751. package/styles/themes/wijmo.theme.slate.scss +1 -1
  752. package/styles/themes/wijmo.theme.superhero.css +1 -1
  753. package/styles/themes/wijmo.theme.superhero.scss +1 -1
  754. package/styles/themes/wijmo.theme.trust.css +1 -1
  755. package/styles/themes/wijmo.theme.trust.scss +1 -1
  756. package/styles/themes/wijmo.theme.zen.css +1 -1
  757. package/styles/themes/wijmo.theme.zen.scss +1 -1
  758. package/styles/wijmo-core.css +1 -1
  759. package/styles/wijmo-core.scss +5 -5
  760. package/styles/wijmo.css +1 -1
  761. package/styles/wijmo.scss +1 -1
  762. package/wijmo.angular.base.d.ts +1 -1
  763. package/wijmo.angular.base.js +1 -1
  764. package/wijmo.angular.chart.analytics.d.ts +1 -1
  765. package/wijmo.angular.chart.analytics.js +1 -1
  766. package/wijmo.angular.chart.animation.d.ts +1 -1
  767. package/wijmo.angular.chart.animation.js +1 -1
  768. package/wijmo.angular.chart.annotation.d.ts +1 -1
  769. package/wijmo.angular.chart.annotation.js +1 -1
  770. package/wijmo.angular.chart.d.ts +1 -1
  771. package/wijmo.angular.chart.finance.analytics.d.ts +1 -1
  772. package/wijmo.angular.chart.finance.analytics.js +1 -1
  773. package/wijmo.angular.chart.finance.d.ts +1 -1
  774. package/wijmo.angular.chart.finance.js +1 -1
  775. package/wijmo.angular.chart.hierarchical.d.ts +1 -1
  776. package/wijmo.angular.chart.hierarchical.js +1 -1
  777. package/wijmo.angular.chart.interaction.d.ts +1 -1
  778. package/wijmo.angular.chart.interaction.js +1 -1
  779. package/wijmo.angular.chart.js +1 -1
  780. package/wijmo.angular.chart.radar.d.ts +1 -1
  781. package/wijmo.angular.chart.radar.js +1 -1
  782. package/wijmo.angular.core.d.ts +1 -1
  783. package/wijmo.angular.core.js +1 -1
  784. package/wijmo.angular.gauge.d.ts +1 -1
  785. package/wijmo.angular.gauge.js +1 -1
  786. package/wijmo.angular.grid.d.ts +1 -1
  787. package/wijmo.angular.grid.detail.d.ts +1 -1
  788. package/wijmo.angular.grid.detail.js +1 -1
  789. package/wijmo.angular.grid.filter.d.ts +1 -1
  790. package/wijmo.angular.grid.filter.js +1 -1
  791. package/wijmo.angular.grid.grouppanel.d.ts +1 -1
  792. package/wijmo.angular.grid.grouppanel.js +1 -1
  793. package/wijmo.angular.grid.js +1 -1
  794. package/wijmo.angular.grid.multirow.d.ts +1 -1
  795. package/wijmo.angular.grid.multirow.js +1 -1
  796. package/wijmo.angular.grid.sheet.d.ts +1 -1
  797. package/wijmo.angular.grid.sheet.js +1 -1
  798. package/wijmo.angular.input.d.ts +1 -1
  799. package/wijmo.angular.input.js +1 -1
  800. package/wijmo.angular.nav.d.ts +1 -1
  801. package/wijmo.angular.nav.js +1 -1
  802. package/wijmo.angular.olap.d.ts +1 -1
  803. package/wijmo.angular.olap.js +1 -1
  804. package/wijmo.angular.viewer.d.ts +1 -1
  805. package/wijmo.angular.viewer.js +1 -1
  806. package/wijmo.angular2.barcode.common.d.ts +30 -30
  807. package/wijmo.angular2.barcode.common.js +1 -1
  808. package/wijmo.angular2.barcode.composite.d.ts +28 -28
  809. package/wijmo.angular2.barcode.composite.js +1 -1
  810. package/wijmo.angular2.barcode.specialized.d.ts +24 -24
  811. package/wijmo.angular2.barcode.specialized.js +1 -1
  812. package/wijmo.angular2.chart.analytics.d.ts +26 -26
  813. package/wijmo.angular2.chart.analytics.js +1 -1
  814. package/wijmo.angular2.chart.animation.d.ts +26 -26
  815. package/wijmo.angular2.chart.animation.js +1 -1
  816. package/wijmo.angular2.chart.annotation.d.ts +45 -45
  817. package/wijmo.angular2.chart.annotation.js +1 -1
  818. package/wijmo.angular2.chart.d.ts +42 -42
  819. package/wijmo.angular2.chart.finance.analytics.d.ts +36 -36
  820. package/wijmo.angular2.chart.finance.analytics.js +1 -1
  821. package/wijmo.angular2.chart.finance.d.ts +26 -26
  822. package/wijmo.angular2.chart.finance.js +1 -1
  823. package/wijmo.angular2.chart.finance.metadata.json +1 -1
  824. package/wijmo.angular2.chart.hierarchical.d.ts +25 -25
  825. package/wijmo.angular2.chart.hierarchical.js +1 -1
  826. package/wijmo.angular2.chart.interaction.d.ts +28 -28
  827. package/wijmo.angular2.chart.interaction.js +1 -1
  828. package/wijmo.angular2.chart.js +1 -1
  829. package/wijmo.angular2.chart.map.d.ts +20 -20
  830. package/wijmo.angular2.chart.map.js +1 -1
  831. package/wijmo.angular2.chart.map.metadata.json +1 -1
  832. package/wijmo.angular2.chart.metadata.json +1 -1
  833. package/wijmo.angular2.chart.radar.d.ts +28 -28
  834. package/wijmo.angular2.chart.radar.js +1 -1
  835. package/wijmo.angular2.chart.radar.metadata.json +1 -1
  836. package/wijmo.angular2.core.d.ts +47 -47
  837. package/wijmo.angular2.core.js +2 -2
  838. package/wijmo.angular2.core.metadata.json +1 -1
  839. package/wijmo.angular2.directiveBase.d.ts +67 -68
  840. package/wijmo.angular2.directiveBase.js +2 -2
  841. package/wijmo.angular2.directiveBase.metadata.json +1 -1
  842. package/wijmo.angular2.gauge.d.ts +27 -27
  843. package/wijmo.angular2.gauge.js +1 -1
  844. package/wijmo.angular2.gauge.metadata.json +1 -1
  845. package/wijmo.angular2.grid.d.ts +45 -45
  846. package/wijmo.angular2.grid.detail.d.ts +39 -39
  847. package/wijmo.angular2.grid.detail.js +2 -2
  848. package/wijmo.angular2.grid.filter.d.ts +25 -25
  849. package/wijmo.angular2.grid.filter.js +1 -1
  850. package/wijmo.angular2.grid.grouppanel.d.ts +28 -28
  851. package/wijmo.angular2.grid.grouppanel.js +1 -1
  852. package/wijmo.angular2.grid.js +2 -2
  853. package/wijmo.angular2.grid.multirow.d.ts +24 -24
  854. package/wijmo.angular2.grid.multirow.js +1 -1
  855. package/wijmo.angular2.grid.multirow.metadata.json +1 -1
  856. package/wijmo.angular2.grid.search.d.ts +12 -12
  857. package/wijmo.angular2.grid.search.js +1 -1
  858. package/wijmo.angular2.grid.sheet.d.ts +22 -22
  859. package/wijmo.angular2.grid.sheet.js +1 -1
  860. package/wijmo.angular2.grid.sheet.metadata.json +1 -1
  861. package/wijmo.angular2.grid.transposed.d.ts +14 -14
  862. package/wijmo.angular2.grid.transposed.js +2 -2
  863. package/wijmo.angular2.grid.transposedmultirow.d.ts +12 -12
  864. package/wijmo.angular2.grid.transposedmultirow.js +1 -1
  865. package/wijmo.angular2.input.d.ts +97 -97
  866. package/wijmo.angular2.input.js +2 -2
  867. package/wijmo.angular2.input.metadata.json +1 -1
  868. package/wijmo.angular2.nav.d.ts +31 -31
  869. package/wijmo.angular2.nav.js +1 -1
  870. package/wijmo.angular2.nav.metadata.json +1 -1
  871. package/wijmo.angular2.olap.d.ts +27 -27
  872. package/wijmo.angular2.olap.js +1 -1
  873. package/wijmo.angular2.viewer.d.ts +25 -25
  874. package/wijmo.angular2.viewer.js +1 -1
  875. package/wijmo.angular2.viewer.metadata.json +1 -1
  876. package/wijmo.barcode.common.d.ts +36 -36
  877. package/wijmo.barcode.common.js +2 -2
  878. package/wijmo.barcode.composite.d.ts +18 -19
  879. package/wijmo.barcode.composite.js +2 -2
  880. package/wijmo.barcode.d.ts +19 -19
  881. package/wijmo.barcode.js +2 -2
  882. package/wijmo.barcode.specialized.d.ts +5 -6
  883. package/wijmo.barcode.specialized.js +2 -2
  884. package/wijmo.chart.analytics.d.ts +7 -8
  885. package/wijmo.chart.analytics.js +2 -2
  886. package/wijmo.chart.animation.d.ts +2 -2
  887. package/wijmo.chart.animation.js +2 -2
  888. package/wijmo.chart.annotation.d.ts +21 -21
  889. package/wijmo.chart.annotation.js +2 -2
  890. package/wijmo.chart.d.ts +442 -453
  891. package/wijmo.chart.finance.analytics.d.ts +10 -10
  892. package/wijmo.chart.finance.analytics.js +2 -2
  893. package/wijmo.chart.finance.d.ts +10 -10
  894. package/wijmo.chart.finance.js +2 -2
  895. package/wijmo.chart.hierarchical.d.ts +16 -19
  896. package/wijmo.chart.hierarchical.js +2 -2
  897. package/wijmo.chart.interaction.d.ts +37 -38
  898. package/wijmo.chart.interaction.js +2 -2
  899. package/wijmo.chart.js +2 -2
  900. package/wijmo.chart.map.d.ts +59 -60
  901. package/wijmo.chart.map.js +2 -2
  902. package/wijmo.chart.radar.d.ts +7 -8
  903. package/wijmo.chart.radar.js +2 -2
  904. package/wijmo.chart.render.d.ts +14 -14
  905. package/wijmo.chart.render.js +2 -2
  906. package/wijmo.chart.webgl.d.ts +3 -6
  907. package/wijmo.chart.webgl.js +2 -2
  908. package/wijmo.cloud.d.ts +1 -1
  909. package/wijmo.cloud.js +2 -2
  910. package/wijmo.d.ts +44 -44
  911. package/wijmo.gauge.d.ts +4 -4
  912. package/wijmo.gauge.js +2 -2
  913. package/wijmo.grid.cellmaker.d.ts +1 -1
  914. package/wijmo.grid.cellmaker.js +2 -2
  915. package/wijmo.grid.d.ts +104 -106
  916. package/wijmo.grid.detail.d.ts +5 -5
  917. package/wijmo.grid.detail.js +2 -2
  918. package/wijmo.grid.filter.d.ts +30 -30
  919. package/wijmo.grid.filter.js +2 -2
  920. package/wijmo.grid.grouppanel.d.ts +7 -7
  921. package/wijmo.grid.grouppanel.js +2 -2
  922. package/wijmo.grid.immutable.d.ts +2 -2
  923. package/wijmo.grid.immutable.js +2 -2
  924. package/wijmo.grid.js +2 -2
  925. package/wijmo.grid.multirow.d.ts +3 -3
  926. package/wijmo.grid.multirow.js +2 -2
  927. package/wijmo.grid.pdf.d.ts +243 -243
  928. package/wijmo.grid.pdf.js +2 -2
  929. package/wijmo.grid.search.d.ts +1 -1
  930. package/wijmo.grid.search.js +1 -1
  931. package/wijmo.grid.selector.d.ts +5 -6
  932. package/wijmo.grid.selector.js +2 -2
  933. package/wijmo.grid.sheet.d.ts +27 -28
  934. package/wijmo.grid.sheet.js +2 -2
  935. package/wijmo.grid.style.d.ts +19 -19
  936. package/wijmo.grid.style.js +1 -1
  937. package/wijmo.grid.transposed.d.ts +2 -2
  938. package/wijmo.grid.transposed.js +2 -2
  939. package/wijmo.grid.transposedmultirow.d.ts +2 -2
  940. package/wijmo.grid.transposedmultirow.js +1 -1
  941. package/wijmo.grid.xlsx.d.ts +1 -1
  942. package/wijmo.grid.xlsx.js +2 -2
  943. package/wijmo.input.d.ts +17 -17
  944. package/wijmo.input.js +2 -2
  945. package/wijmo.interop.grid.d.ts +5 -7
  946. package/wijmo.interop.grid.js +2 -2
  947. package/wijmo.js +2 -2
  948. package/wijmo.knockout.base.d.ts +1 -1
  949. package/wijmo.knockout.base.js +1 -1
  950. package/wijmo.knockout.chart.analytics.d.ts +1 -1
  951. package/wijmo.knockout.chart.analytics.js +1 -1
  952. package/wijmo.knockout.chart.animation.d.ts +1 -1
  953. package/wijmo.knockout.chart.animation.js +1 -1
  954. package/wijmo.knockout.chart.annotation.d.ts +1 -1
  955. package/wijmo.knockout.chart.annotation.js +1 -1
  956. package/wijmo.knockout.chart.d.ts +1 -1
  957. package/wijmo.knockout.chart.finance.analytics.d.ts +1 -1
  958. package/wijmo.knockout.chart.finance.analytics.js +1 -1
  959. package/wijmo.knockout.chart.finance.d.ts +1 -1
  960. package/wijmo.knockout.chart.finance.js +1 -1
  961. package/wijmo.knockout.chart.interaction.d.ts +1 -1
  962. package/wijmo.knockout.chart.interaction.js +1 -1
  963. package/wijmo.knockout.chart.js +1 -1
  964. package/wijmo.knockout.core.d.ts +1 -1
  965. package/wijmo.knockout.core.js +1 -1
  966. package/wijmo.knockout.gauge.d.ts +1 -1
  967. package/wijmo.knockout.gauge.js +1 -1
  968. package/wijmo.knockout.grid.d.ts +1 -1
  969. package/wijmo.knockout.grid.filter.d.ts +1 -1
  970. package/wijmo.knockout.grid.filter.js +1 -1
  971. package/wijmo.knockout.grid.grouppanel.d.ts +1 -1
  972. package/wijmo.knockout.grid.grouppanel.js +1 -1
  973. package/wijmo.knockout.grid.js +1 -1
  974. package/wijmo.knockout.grid.multirow.d.ts +1 -1
  975. package/wijmo.knockout.grid.multirow.js +1 -1
  976. package/wijmo.knockout.grid.sheet.d.ts +1 -1
  977. package/wijmo.knockout.grid.sheet.js +1 -1
  978. package/wijmo.knockout.input.d.ts +1 -1
  979. package/wijmo.knockout.input.js +1 -1
  980. package/wijmo.knockout.nav.d.ts +1 -1
  981. package/wijmo.knockout.nav.js +1 -1
  982. package/wijmo.knockout.olap.d.ts +1 -1
  983. package/wijmo.knockout.olap.js +1 -1
  984. package/wijmo.meta.d.ts +2 -2
  985. package/wijmo.meta.js +2 -2
  986. package/wijmo.nav.d.ts +8 -8
  987. package/wijmo.nav.js +2 -2
  988. package/wijmo.odata.d.ts +25 -27
  989. package/wijmo.odata.js +2 -2
  990. package/wijmo.olap.d.ts +10 -12
  991. package/wijmo.olap.js +2 -2
  992. package/wijmo.pdf.d.ts +1562 -1563
  993. package/wijmo.pdf.js +2 -2
  994. package/wijmo.pdf.security.d.ts +2 -2
  995. package/wijmo.pdf.security.js +2 -2
  996. package/wijmo.react.barcode.base.d.ts +1 -1
  997. package/wijmo.react.barcode.base.js +1 -1
  998. package/wijmo.react.barcode.common.d.ts +1 -1
  999. package/wijmo.react.barcode.common.js +1 -1
  1000. package/wijmo.react.barcode.composite.d.ts +1 -1
  1001. package/wijmo.react.barcode.composite.js +1 -1
  1002. package/wijmo.react.barcode.specialized.d.ts +1 -1
  1003. package/wijmo.react.barcode.specialized.js +1 -1
  1004. package/wijmo.react.base.d.ts +50 -50
  1005. package/wijmo.react.base.js +1 -1
  1006. package/wijmo.react.chart.analytics.d.ts +1 -1
  1007. package/wijmo.react.chart.analytics.js +1 -1
  1008. package/wijmo.react.chart.animation.d.ts +1 -1
  1009. package/wijmo.react.chart.animation.js +1 -1
  1010. package/wijmo.react.chart.annotation.d.ts +18 -18
  1011. package/wijmo.react.chart.annotation.js +1 -1
  1012. package/wijmo.react.chart.d.ts +4 -4
  1013. package/wijmo.react.chart.finance.analytics.d.ts +1 -1
  1014. package/wijmo.react.chart.finance.analytics.js +1 -1
  1015. package/wijmo.react.chart.finance.d.ts +1 -1
  1016. package/wijmo.react.chart.finance.js +1 -1
  1017. package/wijmo.react.chart.hierarchical.d.ts +1 -1
  1018. package/wijmo.react.chart.hierarchical.js +1 -1
  1019. package/wijmo.react.chart.interaction.d.ts +2 -2
  1020. package/wijmo.react.chart.interaction.js +1 -1
  1021. package/wijmo.react.chart.js +1 -1
  1022. package/wijmo.react.chart.map.d.ts +1 -1
  1023. package/wijmo.react.chart.map.js +1 -1
  1024. package/wijmo.react.chart.radar.d.ts +1 -1
  1025. package/wijmo.react.chart.radar.js +1 -1
  1026. package/wijmo.react.gauge.d.ts +1 -1
  1027. package/wijmo.react.gauge.js +1 -1
  1028. package/wijmo.react.grid.d.ts +5 -5
  1029. package/wijmo.react.grid.detail.d.ts +2 -3
  1030. package/wijmo.react.grid.detail.js +2 -2
  1031. package/wijmo.react.grid.filter.d.ts +1 -1
  1032. package/wijmo.react.grid.filter.js +1 -1
  1033. package/wijmo.react.grid.grouppanel.d.ts +1 -1
  1034. package/wijmo.react.grid.grouppanel.js +1 -1
  1035. package/wijmo.react.grid.immutable.d.ts +1 -1
  1036. package/wijmo.react.grid.immutable.js +1 -1
  1037. package/wijmo.react.grid.js +2 -2
  1038. package/wijmo.react.grid.multirow.d.ts +1 -1
  1039. package/wijmo.react.grid.multirow.js +1 -1
  1040. package/wijmo.react.grid.search.d.ts +1 -1
  1041. package/wijmo.react.grid.search.js +1 -1
  1042. package/wijmo.react.grid.sheet.d.ts +1 -1
  1043. package/wijmo.react.grid.sheet.js +1 -1
  1044. package/wijmo.react.grid.transposed.d.ts +1 -1
  1045. package/wijmo.react.grid.transposed.js +1 -1
  1046. package/wijmo.react.grid.transposedmultirow.d.ts +1 -1
  1047. package/wijmo.react.grid.transposedmultirow.js +1 -1
  1048. package/wijmo.react.input.d.ts +2 -3
  1049. package/wijmo.react.input.js +2 -2
  1050. package/wijmo.react.nav.d.ts +3 -3
  1051. package/wijmo.react.nav.js +1 -1
  1052. package/wijmo.react.olap.d.ts +1 -1
  1053. package/wijmo.react.olap.js +1 -1
  1054. package/wijmo.react.viewer.d.ts +1 -1
  1055. package/wijmo.react.viewer.js +1 -1
  1056. package/wijmo.rest.d.ts +28 -28
  1057. package/wijmo.rest.js +2 -2
  1058. package/wijmo.touch.d.ts +1 -2
  1059. package/wijmo.touch.js +2 -2
  1060. package/wijmo.undo.d.ts +4 -4
  1061. package/wijmo.undo.js +2 -2
  1062. package/wijmo.viewer.d.ts +388 -407
  1063. package/wijmo.viewer.js +2 -2
  1064. package/wijmo.vue2.barcode.common.d.ts +1 -1
  1065. package/wijmo.vue2.barcode.common.js +1 -1
  1066. package/wijmo.vue2.barcode.composite.d.ts +1 -1
  1067. package/wijmo.vue2.barcode.composite.js +1 -1
  1068. package/wijmo.vue2.barcode.specialized.d.ts +1 -1
  1069. package/wijmo.vue2.barcode.specialized.js +1 -1
  1070. package/wijmo.vue2.base.d.ts +1 -2
  1071. package/wijmo.vue2.base.js +2 -2
  1072. package/wijmo.vue2.chart.analytics.d.ts +1 -1
  1073. package/wijmo.vue2.chart.analytics.js +1 -1
  1074. package/wijmo.vue2.chart.animation.d.ts +1 -1
  1075. package/wijmo.vue2.chart.animation.js +1 -1
  1076. package/wijmo.vue2.chart.annotation.d.ts +1 -1
  1077. package/wijmo.vue2.chart.annotation.js +1 -1
  1078. package/wijmo.vue2.chart.d.ts +1 -1
  1079. package/wijmo.vue2.chart.finance.analytics.d.ts +1 -1
  1080. package/wijmo.vue2.chart.finance.analytics.js +1 -1
  1081. package/wijmo.vue2.chart.finance.d.ts +1 -1
  1082. package/wijmo.vue2.chart.finance.js +1 -1
  1083. package/wijmo.vue2.chart.hierarchical.d.ts +1 -1
  1084. package/wijmo.vue2.chart.hierarchical.js +1 -1
  1085. package/wijmo.vue2.chart.interaction.d.ts +1 -1
  1086. package/wijmo.vue2.chart.interaction.js +1 -1
  1087. package/wijmo.vue2.chart.js +1 -1
  1088. package/wijmo.vue2.chart.map.d.ts +1 -1
  1089. package/wijmo.vue2.chart.map.js +1 -1
  1090. package/wijmo.vue2.chart.radar.d.ts +1 -1
  1091. package/wijmo.vue2.chart.radar.js +1 -1
  1092. package/wijmo.vue2.core.d.ts +33 -33
  1093. package/wijmo.vue2.core.js +1 -1
  1094. package/wijmo.vue2.gauge.d.ts +1 -1
  1095. package/wijmo.vue2.gauge.js +1 -1
  1096. package/wijmo.vue2.grid.d.ts +280 -280
  1097. package/wijmo.vue2.grid.detail.d.ts +1 -1
  1098. package/wijmo.vue2.grid.detail.js +1 -1
  1099. package/wijmo.vue2.grid.filter.d.ts +1 -1
  1100. package/wijmo.vue2.grid.filter.js +1 -1
  1101. package/wijmo.vue2.grid.grouppanel.d.ts +1 -1
  1102. package/wijmo.vue2.grid.grouppanel.js +1 -1
  1103. package/wijmo.vue2.grid.js +2 -2
  1104. package/wijmo.vue2.grid.multirow.d.ts +245 -245
  1105. package/wijmo.vue2.grid.multirow.js +1 -1
  1106. package/wijmo.vue2.grid.search.d.ts +1 -1
  1107. package/wijmo.vue2.grid.search.js +1 -1
  1108. package/wijmo.vue2.grid.sheet.d.ts +1 -1
  1109. package/wijmo.vue2.grid.sheet.js +1 -1
  1110. package/wijmo.vue2.grid.transposed.d.ts +1 -1
  1111. package/wijmo.vue2.grid.transposed.js +1 -1
  1112. package/wijmo.vue2.grid.transposedmultirow.d.ts +1 -1
  1113. package/wijmo.vue2.grid.transposedmultirow.js +1 -1
  1114. package/wijmo.vue2.input.d.ts +1 -1
  1115. package/wijmo.vue2.input.js +1 -1
  1116. package/wijmo.vue2.nav.d.ts +1 -1
  1117. package/wijmo.vue2.nav.js +1 -1
  1118. package/wijmo.vue2.olap.d.ts +1 -1
  1119. package/wijmo.vue2.olap.js +1 -1
  1120. package/wijmo.vue2.viewer.d.ts +1 -1
  1121. package/wijmo.vue2.viewer.js +1 -1
  1122. package/wijmo.webcomponents.barcode.common.d.ts +1 -1
  1123. package/wijmo.webcomponents.barcode.common.js +1 -1
  1124. package/wijmo.webcomponents.barcode.composite.d.ts +1 -1
  1125. package/wijmo.webcomponents.barcode.composite.js +1 -1
  1126. package/wijmo.webcomponents.barcode.specialized.d.ts +1 -1
  1127. package/wijmo.webcomponents.barcode.specialized.js +1 -1
  1128. package/wijmo.webcomponents.base.d.ts +1 -1
  1129. package/wijmo.webcomponents.base.js +1 -1
  1130. package/wijmo.webcomponents.chart.analytics.d.ts +1 -1
  1131. package/wijmo.webcomponents.chart.analytics.js +1 -1
  1132. package/wijmo.webcomponents.chart.animation.d.ts +1 -1
  1133. package/wijmo.webcomponents.chart.animation.js +1 -1
  1134. package/wijmo.webcomponents.chart.d.ts +1 -1
  1135. package/wijmo.webcomponents.chart.finance.analytics.d.ts +1 -1
  1136. package/wijmo.webcomponents.chart.finance.analytics.js +1 -1
  1137. package/wijmo.webcomponents.chart.finance.d.ts +1 -1
  1138. package/wijmo.webcomponents.chart.finance.js +1 -1
  1139. package/wijmo.webcomponents.chart.hierarchical.d.ts +1 -1
  1140. package/wijmo.webcomponents.chart.hierarchical.js +1 -1
  1141. package/wijmo.webcomponents.chart.interaction.d.ts +1 -1
  1142. package/wijmo.webcomponents.chart.interaction.js +1 -1
  1143. package/wijmo.webcomponents.chart.js +1 -1
  1144. package/wijmo.webcomponents.chart.map.d.ts +1 -1
  1145. package/wijmo.webcomponents.chart.map.js +1 -1
  1146. package/wijmo.webcomponents.chart.radar.d.ts +1 -1
  1147. package/wijmo.webcomponents.chart.radar.js +1 -1
  1148. package/wijmo.webcomponents.gauge.d.ts +1 -1
  1149. package/wijmo.webcomponents.gauge.js +1 -1
  1150. package/wijmo.webcomponents.grid.d.ts +1 -1
  1151. package/wijmo.webcomponents.grid.filter.d.ts +1 -1
  1152. package/wijmo.webcomponents.grid.filter.js +1 -1
  1153. package/wijmo.webcomponents.grid.grouppanel.d.ts +1 -1
  1154. package/wijmo.webcomponents.grid.grouppanel.js +1 -1
  1155. package/wijmo.webcomponents.grid.js +1 -1
  1156. package/wijmo.webcomponents.grid.multirow.d.ts +1 -1
  1157. package/wijmo.webcomponents.grid.multirow.js +1 -1
  1158. package/wijmo.webcomponents.grid.search.d.ts +1 -1
  1159. package/wijmo.webcomponents.grid.search.js +1 -1
  1160. package/wijmo.webcomponents.grid.sheet.d.ts +1 -1
  1161. package/wijmo.webcomponents.grid.sheet.js +1 -1
  1162. package/wijmo.webcomponents.grid.transposed.d.ts +1 -1
  1163. package/wijmo.webcomponents.grid.transposed.js +1 -1
  1164. package/wijmo.webcomponents.grid.transposedmultirow.d.ts +1 -1
  1165. package/wijmo.webcomponents.grid.transposedmultirow.js +1 -1
  1166. package/wijmo.webcomponents.input.d.ts +1 -1
  1167. package/wijmo.webcomponents.input.js +1 -1
  1168. package/wijmo.webcomponents.nav.d.ts +1 -1
  1169. package/wijmo.webcomponents.nav.js +1 -1
  1170. package/wijmo.webcomponents.olap.d.ts +1 -1
  1171. package/wijmo.webcomponents.olap.js +1 -1
  1172. package/wijmo.webcomponents.viewer.d.ts +1 -1
  1173. package/wijmo.webcomponents.viewer.js +1 -1
  1174. package/wijmo.xlsx.d.ts +4704 -4711
  1175. package/wijmo.xlsx.js +2 -2
package/wijmo.chart.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * Wijmo Library 5.20261.45-nightly.d20251218.t163151
3
+ * Wijmo Library 5.20261.45-nightly.d20260105.t163143
4
4
  * https://developer.mescius.com/wijmo
5
5
  *
6
6
  * Copyright(c) MESCIUS inc. All rights reserved.
@@ -11,4 +11,4 @@
11
11
  *
12
12
  */
13
13
 
14
- "use strict";var __extends=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};return function(t,e){extendStatics(t,e);function __(){this.constructor=t}t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}(),__importStar=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.hasOwnProperty.call(t,i)&&(e[i]=t[i]);e.default=t;return e};Object.defineProperty(exports,"__esModule",{value:!0});var wijmo_1=require("wijmo/wijmo"),selfModule=__importStar(require("wijmo/wijmo.chart")),_VolumeHelper=function(){function _VolumeHelper(t,e,i,r,n){this._volumes=wijmo_1.asArray(t);this._xVals=wijmo_1.asArray(e);this._xDataMin=wijmo_1.asNumber(i,!0,!1);this._xDataMax=wijmo_1.asNumber(r,!0,!1);this._xDataType=wijmo_1.asEnum(n,wijmo_1.DataType,!0);this._calcData=[];this._init()}_VolumeHelper.prototype.convert=function(t,e,i){var r=void 0,n=this._calcData.length,s=-1;if(this._hasXs&&this._xDataType===wijmo_1.DataType.Date){if(-1===(s=this._xVals.indexOf(t)))for(var o=0;o<this._xVals.length;o++){if(o<this._xVals.length-1&&this._xVals[o]<=t&&t<=this._xVals[o+1]){s=o;break}if(0===o&&t<=this._xVals[o]){s=o;break}if(o===this._xVals.length-1&&this._xVals[o]<=t){s=o;break}}if(-1===s){s=this._xVals.indexOf(Math.floor(t));s=wijmo_1.clamp(s,0,n-1)}}else if(this._hasXs){if(-1===(s=this._xVals.indexOf(t))){s=this._xVals.indexOf(Math.floor(t));s=wijmo_1.clamp(s,0,n-1)}}else s=wijmo_1.clamp(Math.round(t),0,n-1);if(0<=s&&s<n){this._hasXs&&(t=_VolumeHelper.convertToRange(t,0,n-1,this._xDataMin,this._xDataMax));r=((r=this._calcData[s].value+(t-s)*this._calcData[s].width-.5*this._calcData[s].width)-(e=this._getXVolume(e)))/((i=this._getXVolume(i))-e)}return r};_VolumeHelper.prototype.convertBack=function(t,e,i){var r,n=void 0,s=this._calcData.length,o=-1;for(r=0;r<s;r++)if(this._calcData[r].x1<=t&&t<=this._calcData[r].x2||0===r&&t<=this._calcData[r].x2||r===s-1&&this._calcData[r].x1<=t){o=r;break}if(0<=o&&o<s){n=t/this._calcData[o].width-this._calcData[o].value/this._calcData[o].width+.5+r;this._hasXs&&(n=_VolumeHelper.convertToRange(n,this._xDataMin,this._xDataMax,0,s-1))}return n};_VolumeHelper.prototype._init=function(){this._hasXs=null!==this._xVals&&this._xVals.length>0;this._hasXs&&!wijmo_1.isNumber(this._xDataMin)&&(this._xDataMin=Math.min.apply(null,this._xVals));this._hasXs&&!wijmo_1.isNumber(this._xDataMax)&&(this._xDataMax=Math.max.apply(null,this._xVals));this._hasXs&&(this._hasXs=wijmo_1.isNumber(this._xDataMin)&&wijmo_1.isNumber(this._xDataMax));this._hasXs&&this._xDataType===wijmo_1.DataType.Date&&this._fillGaps();var t=0,e=0,i=null!==this._volumes&&this._volumes.length>0?this._volumes.length:0;for(e=0;e<i;e++)t+=this._volumes[e]||0;var r,n,s=0;for(e=0;e<i;e++){r=s+(n=(this._volumes[e]||0)/t);this._calcData.push({value:r,width:n,x1:s,x2:r});s=this._calcData[e].value}};_VolumeHelper.prototype._getXVolume=function(t){var e=this._calcData.length,i=-1;if(this._hasXs){i=this._xVals.indexOf(t);for(var r=0;r<this._xVals.length;r++){if(r<this._xVals.length-1&&this._xVals[r]<=t&&t<=this._xVals[r+1]){i=r;break}if(0===r&&t<=this._xVals[r]){i=r;break}if(r===this._xVals.length-1&&this._xVals[r]<=t){i=r;break}}}this._hasXs&&(t=_VolumeHelper.convertToRange(t,0,e-1,this._xDataMin,this._xDataMax));-1===i&&(i=wijmo_1.clamp(Math.round(t),0,e-1));return this._calcData[i].value+(t-i)*this._calcData[i].width-.5*this._calcData[i].width};_VolumeHelper.convertToRange=function(t,e,i,r,n){return e===i||r===n?0:(t-r)*(i-e)/(n-r)+e};_VolumeHelper.prototype._fillGaps=function(){if(!(this._xDataType!==wijmo_1.DataType.Date||null===this._xVals||this._xVals.length<=0)){var t,e=this._xDataMin,i=this._xDataMax;for(t=1;e<i;t++){(e=new Date(e)).setDate(e.getDate()+1);if((e=e.valueOf())!==this._xVals[t]){this._xVals.splice(t,0,e);this._volumes.splice(t,0,0)}}}};return _VolumeHelper}();exports._VolumeHelper=_VolumeHelper;var _Curve=function(){function _Curve(t,e,i,r){this.monoX=!1;this.monoY=!1;var n=i||Math.min(t.length,e.length),s=0,o=0,a=0,h=0;if(n>3)for(var l=0;l<n-1;l++)if(l>0){o=Math.min(o,t[l]-t[l-1]);s=Math.max(s,t[l]-t[l-1]);h=Math.min(h,e[l]-e[l-1]);a=Math.max(a,e[l]-e[l-1])}this.monoX=s>0&&0===o||o<0&&0===s;this.monoY=a>0&&0===h||h<0&&0===a;this.monoX&&"spline"!==r?this.calc=o<0?new _SplineMono(t.reverse(),e.reverse(),i):new _SplineMono(t,e,i):this.calc=new _Spline(t,e,i)}_Curve.prototype.calculate=function(){return this.calc.calculate()};return _Curve}();exports._Curve=_Curve;var _Spline=function(){function _Spline(t,e,i){this.k=.002;this._a=[];this._b=[];this._c=[];this._d=[];this.m=[[-.5,1.5,-1.5,.5],[1,-2.5,2,-.5],[-.5,0,.5,0],[0,1,0,0]];this._x=t;this._y=e;var r=this._len=i||Math.min(t.length,e.length);if(r>3)for(var n=0;n<r-1;n++){var s=0==n?new wijmo_1.Point(t[n],e[n]):new wijmo_1.Point(t[n-1],e[n-1]),o=new wijmo_1.Point(t[n],e[n]),a=new wijmo_1.Point(t[n+1],e[n+1]),h=n==r-2?new wijmo_1.Point(t[n+1],e[n+1]):new wijmo_1.Point(t[n+2],e[n+2]),l=new wijmo_1.Point,_=new wijmo_1.Point,u=new wijmo_1.Point,c=new wijmo_1.Point;l.x=s.x*this.m[0][0]+o.x*this.m[0][1]+a.x*this.m[0][2]+h.x*this.m[0][3];_.x=s.x*this.m[1][0]+o.x*this.m[1][1]+a.x*this.m[1][2]+h.x*this.m[1][3];u.x=s.x*this.m[2][0]+o.x*this.m[2][1]+a.x*this.m[2][2]+h.x*this.m[2][3];c.x=s.x*this.m[3][0]+o.x*this.m[3][1]+a.x*this.m[3][2]+h.x*this.m[3][3];l.y=s.y*this.m[0][0]+o.y*this.m[0][1]+a.y*this.m[0][2]+h.y*this.m[0][3];_.y=s.y*this.m[1][0]+o.y*this.m[1][1]+a.y*this.m[1][2]+h.y*this.m[1][3];u.y=s.y*this.m[2][0]+o.y*this.m[2][1]+a.y*this.m[2][2]+h.y*this.m[2][3];c.y=s.y*this.m[3][0]+o.y*this.m[3][1]+a.y*this.m[3][2]+h.y*this.m[3][3];this._a.push(l);this._b.push(_);this._c.push(u);this._d.push(c)}}_Spline.prototype.calculatePoint=function(t){var e=Math.floor(t);e<0&&(e=0);e>this._len-2&&(e=this._len-2);var i=t-e;return{x:((this._a[e].x*i+this._b[e].x)*i+this._c[e].x)*i+this._d[e].x,y:((this._a[e].y*i+this._b[e].y)*i+this._c[e].y)*i+this._d[e].y}};_Spline.prototype.calculate=function(){if(this._len<=3)return{xs:this._x,ys:this._y};var t=[],e=[],i=this.calculatePoint(0);t.push(i.x);e.push(i.y);for(var r=Math.min(this._len*this.k,.2),n=r;n<=this._len-1;n+=r){var s=Math.ceil(n),o=this.calculatePoint(n);if(Math.abs(i.x-o.x)>=3||Math.abs(i.y-o.y)>=3){t.push(o.x);e.push(o.y);i=o}if(n+r>=s){t.push(this._x[s]);e.push(this._y[s])}}return{xs:t,ys:e}};return _Spline}();exports._Spline=_Spline;var _SplineMono=function(){function _SplineMono(t,e,i){this._x=[];this._y=[];this._c1s=[];this._c2s=[];this._c3s=[];for(var r=this._len=i||Math.min(t.length,e.length),n=0;n<r;n++){this._x.push(t[n]);this._y.push(e[n])}t=this._x;e=this._y;if(!(this._len<=3)){var s=[],o=[],a=[];for(n=0;n<r-1;n++){var h=t[n+1]-t[n],l=e[n+1]-e[n];o[n]=h;s[n]=l;a[n]=l/h}var _=this._c1s;_.push(a[0]);for(n=0;n<o.length-1;n++){var u=a[n],c=a[n+1];if(u*c<=0)_.push(0);else{var p=o[n],f=o[n+1],d=p+f;_.push(3*d/((d+f)/u+(d+p)/c))}}_.push(a[a.length-1]);var g=this._c2s,m=this._c3s;for(n=0;n<_.length-1;n++){var x=_[n],y=a[n],b=1/o[n],v=x+_[n+1]-y-y;g[n]=(y-x-v)*b;m[n]=v*b*b}}}_SplineMono.prototype.interpolate=function(t){var e=this._x.length-1;if(t>=this._x[e])return this._y[e];for(var i,r=0,n=this._c3s.length-1;r<=n;){i=Math.floor(.5*(r+n));var s=this._x[i];if(s<t)r=i+1;else{if(!(s>t))return this._y[i];n=i-1}}e=Math.max(0,n);var o=t-this._x[e];return this._y[e]+o*(this._c1s[e]+o*(this._c2s[e]+o*this._c3s[e]))};_SplineMono.prototype.calculate=function(){if(this._len<=3)return{xs:this._x,ys:this._y};for(var t=[],e=[],i=this._len,r=this._x[0],n=this._x[i-1],s=Math.min(.001*this._len,.2),o=r;o<=n;o+=s){t.push(o);e.push(this.interpolate(o))}return{xs:t,ys:e}};return _SplineMono}();exports.AxisClsNames={axisX:"wj-axis-x",axisXLabels:"wj-axis-x-labels",axisY:"wj-axis-y",axisYLabels:"wj-axis-y-labels",gridline:"wj-gridline",gridlineMinor:"wj-gridline-minor",line:"wj-line",tick:"wj-tick",tickMinor:"wj-tick-minor"};exports.DataLabelClsNames={border:"wj-data-label-border",label:"wj-data-label",labels:"wj-data-labels",line:"wj-data-label-line"};exports.FlexChartClsNames={footer:"wj-footer",header:"wj-header",hostElement:"wj-flexchart",label:"wj-label",legend:"wj-legend",plotArea:"wj-plot-area",title:"wj-title",touchDisabled:"wj-flexchart-touch-disabled"};exports.FlexPieClsNames={hostElement:"wj-flexpie",slice:"wj-slice",sliceGroup:"wj-slice-group"};exports.LegendClsNames={legend:"wj-legend",title:"wj-title"};exports.LineMarkerClsNames={container:"wj-chart-linemarker-container",content:"wj-chart-linemarker-content",draggable:"wj-chart-linemarker-draggable",hline:"wj-chart-linemarker-hline",linemarker:"wj-chart-linemarker",vline:"wj-chart-linemarker-vline"};exports.SeriesClsNames={group:"wj-series-group"};var Palettes=function(){function Palettes(){}Palettes._isExtended=function(t){return-1!==this._values(Palettes.Diverging).indexOf(t)||-1!==this._values(Palettes.Qualitative).indexOf(t)||-1!==this._values(Palettes.SequentialSingle).indexOf(t)||-1!==this._values(Palettes.SequentialMulti).indexOf(t)};Palettes._values=function(t){return Object.keys(t).map((function(e){return t[e]}))};Palettes.standard=["#88bde6","#fbb258","#90cd97","#f6aac9","#bfa554","#bc99c7","#eddd46","#f07e6e","#8c8c8c"];Palettes.cocoa=["#466bb0","#c8b422","#14886e","#b54836","#6e5944","#8b3872","#73b22b","#b87320","#141414"];Palettes.coral=["#84d0e0","#f48256","#95c78c","#efa5d6","#ba8452","#ab95c2","#ede9d0","#e96b7d","#888888"];Palettes.dark=["#005fad","#f06400","#009330","#e400b1","#b65800","#6a279c","#d5a211","#dc0127","#000000"];Palettes.highcontrast=["#ff82b0","#0dda2c","#0021ab","#bcf28c","#19c23b","#890d3a","#607efd","#1b7700","#000000"];Palettes.light=["#ddca9a","#778deb","#cb9fbb","#b5eae2","#7270be","#a6c7a7","#9e95c7","#95b0c7","#9b9b9b"];Palettes.midnight=["#83aaca","#e37849","#14a46a","#e097da","#a26d54","#a584b7","#d89c54","#e86996","#2c343b"];Palettes.modern=["#2d9fc7","#ec993c","#89c235","#e377a4","#a68931","#a672a6","#d0c041","#e35855","#68706a"];Palettes.organic=["#9c88d9","#a3d767","#8ec3c0","#e9c3a9","#91ab36","#d4ccc0","#61bbd8","#e2d76f","#80715a"];Palettes.slate=["#7493cd","#f99820","#71b486","#e4a491","#cb883b","#ae83a4","#bacc5c","#e5746a","#505d65"];Palettes.zen=["#7bb5ae","#e2d287","#92b8da","#eac4cb","#7b8bbd","#c7d189","#b9a0c8","#dfb397","#a9a9a9"];Palettes.cyborg=["#2a9fd6","#77b300","#9933cc","#ff8800","#cc0000","#00cca3","#3d6dcc","#525252","#000000"];Palettes.superhero=["#5cb85c","#f0ad4e","#5bc0de","#d9534f","#9f5bde","#46db8c","#b6b86e","#4e5d6c","#2b3e4b"];Palettes.flatly=["#18bc9c","#3498db","#f39c12","#6cc1be","#99a549","#8f54b5","#e74c3c","#8a9899","#2c3e50"];Palettes.darkly=["#375a7f","#00bc8c","#3498db","#f39c12","#e74c3c","#8f61b3","#b08725","#4a4949","#000000"];Palettes.cerulan=["#033e76","#87c048","#59822c","#53b3eb","#fc6506","#d42323","#e3bb00","#cccccc","#222222"];Palettes.Qualitative={Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5"]};Palettes.Diverging={BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]};Palettes.SequentialSingle={Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"]};Palettes.SequentialMulti={BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"]};return Palettes}();exports.Palettes=Palettes;exports.empty={};var PlotArea=function(){function PlotArea(t){this._row=0;this._col=0;this._rect=new wijmo_1.Rect(0,0,0,0);wijmo_1.copy(this,t)}Object.defineProperty(PlotArea.prototype,"row",{get:function(){return this._row},set:function(t){if(t!=this._row){this._row=wijmo_1.asInt(t,!0,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(PlotArea.prototype,"column",{get:function(){return this._col},set:function(t){if(t!=this._col){this._col=wijmo_1.asInt(t,!0,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(PlotArea.prototype,"name",{get:function(){return this._name},set:function(t){t!=this._name&&(this._name=wijmo_1.asString(t,!0))},enumerable:!0,configurable:!0});Object.defineProperty(PlotArea.prototype,"width",{get:function(){return this._width},set:function(t){if(t!=this._width){this._width=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(PlotArea.prototype,"height",{get:function(){return this._height},set:function(t){if(t!=this._height){this._height=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(PlotArea.prototype,"style",{get:function(){return this._style},set:function(t){if(t!=this._style){this._style=t;this._invalidate()}},enumerable:!0,configurable:!0});PlotArea.prototype._invalidate=function(){this._chart&&this._chart.invalidate()};PlotArea.prototype._render=function(t){t.drawRect(this._rect.left,this._rect.top,this._rect.width,this._rect.height,null,this.style)};PlotArea.prototype._setPlotX=function(t,e){this._rect.left=t;this._rect.width=e};PlotArea.prototype._setPlotY=function(t,e){this._rect.top=t;this._rect.height=e};return PlotArea}();exports.PlotArea=PlotArea;var _GridUnitType,PlotAreaCollection=function(t){__extends(PlotAreaCollection,t);function PlotAreaCollection(){return null!==t&&t.apply(this,arguments)||this}PlotAreaCollection.prototype.getPlotArea=function(t){var e=this.indexOf(t);return e>-1?this[e]:null};PlotAreaCollection.prototype.indexOf=function(t){for(var e=0;e<this.length;e++)if(this[e].name==t)return e;return-1};PlotAreaCollection.prototype._getWidth=function(t){for(var e=0;e<this.length;e++){var i=this[e];if(i.column==t&&0==i.row)return i.width}};PlotAreaCollection.prototype._getHeight=function(t){for(var e=0;e<this.length;e++){var i=this[e];if(i.row==t&&0==i.column)return i.height}};PlotAreaCollection.prototype._calculateWidths=function(t,e){if(e<=0)throw"ncols";for(var i=[],r=0;r<e;r++){var n=this._getWidth(r);i[r]=new _GridLength(n)}return this._calculateLengths(t,e,i)};PlotAreaCollection.prototype._calculateHeights=function(t,e){if(e<=0)throw"nrows";for(var i=[],r=0;r<e;r++){var n=this._getHeight(r);i[r]=new _GridLength(n)}return this._calculateLengths(t,e,i)};PlotAreaCollection.prototype._calculateLengths=function(t,e,i){for(var r=[e],n=0,s=0,o=0;o<e;o++)if(i[o].isAbsolute){r[o]=i[o].value;n+=r[o]}else i[o].isStar?s+=i[o].value:i[o].isAuto&&s++;var a=(t-n)/s;for(o=0;o<e;o++){i[o].isStar?r[o]=a*i[o].value:i[o].isAuto&&(r[o]=a);r[o]<0&&(r[o]=0)}return r};return PlotAreaCollection}(wijmo_1.ObservableArray);exports.PlotAreaCollection=PlotAreaCollection;!function(t){t[t.Auto=0]="Auto";t[t.Pixel=1]="Pixel";t[t.Star=2]="Star"}(_GridUnitType||(_GridUnitType={}));var _GridLength=function(){function _GridLength(t){void 0===t&&(t=null);this._unitType=_GridUnitType.Auto;if(t)if((t=t.toString()).indexOf("*")>=0){this._unitType=_GridUnitType.Star;t=t.replace("*","");this._value=parseFloat(t);isNaN(this._value)&&(this._value=1)}else{this._unitType=_GridUnitType.Pixel;this._value=parseFloat(t);if(isNaN(this._value)){this._unitType=_GridUnitType.Auto;this._value=1}}}Object.defineProperty(_GridLength.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0});Object.defineProperty(_GridLength.prototype,"isStar",{get:function(){return this._unitType==_GridUnitType.Star},enumerable:!0,configurable:!0});Object.defineProperty(_GridLength.prototype,"isAbsolute",{get:function(){return this._unitType==_GridUnitType.Pixel},enumerable:!0,configurable:!0});Object.defineProperty(_GridLength.prototype,"isAuto",{get:function(){return this._unitType==_GridUnitType.Auto},enumerable:!0,configurable:!0});return _GridLength}(),_SvgRenderEngine=function(){function _SvgRenderEngine(t){this._STROKE_JOIN="round";this._strokeWidth=1;this._fontSize=null;this._fontFamily=null;this._savedGradient={};this._bbCache={};this._baseUrl="";this._cssPriority=!0;this._readOnly=!1;this._isRtl=!1;this._precision=1;this._options=null;this._htmlText=!1;this._element=t;this._create();this._element&&this._element.appendChild(this._svg);var e=navigator.userAgent.toLowerCase();void 0===_SvgRenderEngine._isff&&(_SvgRenderEngine._isff=e.indexOf("firefox")>=0);void 0===_SvgRenderEngine._isSafari&&(_SvgRenderEngine._isSafari=e.indexOf("safari")>-1&&-1==e.indexOf("chrome"))}_SvgRenderEngine.prototype.attach=function(t){this._element=t;if(t){t.insertBefore(this._svg,t.childNodes[0]);t.appendChild(this._svg)}};_SvgRenderEngine.prototype.detach=function(){this._element&&this._element.removeChild(this._svg);for(;this._svg.firstChild;)wijmo_1.removeChild(this._svg.firstChild)};_SvgRenderEngine.prototype.beginRender=function(){for(;this._svg.firstChild;)wijmo_1.removeChild(this._svg.firstChild);this._savedGradient={};this._bbCache={};this._svg.appendChild(this._defs);this._svg.appendChild(this._textGroup);this._isRtl=this._checkRtl()};_SvgRenderEngine.prototype.endRender=function(){wijmo_1.removeChild(this._textGroup)};_SvgRenderEngine.prototype.setViewportSize=function(t,e){this._svg.setAttribute("width",t.toString());this._svg.setAttribute("height",e.toString())};Object.defineProperty(_SvgRenderEngine.prototype,"element",{get:function(){return this._svg},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"fill",{get:function(){return this._fill},set:function(t){this._fill=t},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize=t},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(t){this._fontFamily=t},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"stroke",{get:function(){return this._stroke},set:function(t){this._stroke=t},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(t){this._strokeWidth=void 0===t?null:t},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"textFill",{get:function(){return this._textFill},set:function(t){this._textFill=t},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"cssPriority",{get:function(){return this._cssPriority},set:function(t){this._cssPriority=t},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"readOnly",{get:function(){return this._readOnly},set:function(t){this._readOnly=t},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"precision",{get:function(){return this._precision},set:function(t){this._precision=wijmo_1.asNumber(t)},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"group",{get:function(){return this._group},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"options",{get:function(){return this._options},set:function(t){this._options=t},enumerable:!0,configurable:!0});_SvgRenderEngine.prototype.addClipRect=function(t,e){if(t&&e){var i=this.precision,r=document.createElementNS(_SvgRenderEngine.svgNS,"clipPath"),n=document.createElementNS(_SvgRenderEngine.svgNS,"rect");n.setAttribute("x",(t.left-1).toFixed(i));n.setAttribute("y",(t.top-1).toFixed(i));n.setAttribute("width",(t.width+2).toFixed(i));n.setAttribute("height",(t.height+2).toFixed(i));r.appendChild(n);r.setAttribute("id",e);this._svg.appendChild(r)}};_SvgRenderEngine.prototype.drawEllipse=function(t,e,i,r,n,s){var o=document.createElementNS(_SvgRenderEngine.svgNS,"ellipse"),a=this.precision;this._applyColor(o,"stroke",this._stroke);null!==this._strokeWidth&&this._setAttribute(o,"stroke-width",this._strokeWidth.toString());this._applyColor(o,"fill",this._fill);o.setAttribute("cx",t.toFixed(a));o.setAttribute("cy",e.toFixed(a));o.setAttribute("rx",i.toFixed(a));o.setAttribute("ry",r.toFixed(a));n&&o.setAttribute("class",n);this._applyStyle(o,s);this._appendChild(o);return o};_SvgRenderEngine.prototype.drawRect=function(t,e,i,r,n,s,o){var a=document.createElementNS(_SvgRenderEngine.svgNS,"rect"),h=this.precision;this._applyColor(a,"fill",this._fill);this._applyColor(a,"stroke",this._stroke);null!==this._strokeWidth&&this._setAttribute(a,"stroke-width",this._strokeWidth.toString());a.setAttribute("x",t.toFixed(h));isNaN(Number(e))||a.setAttribute("y",e.toFixed(h));i>0&&i<.05?a.setAttribute("width","0.1"):a.setAttribute("width",i.toFixed(h));r>0&&r<.05?a.setAttribute("height","0.1"):a.setAttribute("height",r.toFixed(h));o&&this._setClipPath(a,o);n&&a.setAttribute("class",n);this._applyStyle(a,s);this._appendChild(a);return a};_SvgRenderEngine.prototype.drawLine=function(t,e,i,r,n,s){var o=document.createElementNS(_SvgRenderEngine.svgNS,"line"),a=this.precision;this._applyColor(o,"stroke",this._stroke);null!==this._strokeWidth&&this._setAttribute(o,"stroke-width",this._strokeWidth.toString());o.setAttribute("x1",t.toFixed(a));o.setAttribute("x2",i.toFixed(a));o.setAttribute("y1",e.toFixed(a));o.setAttribute("y2",r.toFixed(a));n&&o.setAttribute("class",n);this._applyStyle(o,s);this._appendChild(o);return o};_SvgRenderEngine.prototype.drawLines=function(t,e,i,r,n,s){if(t&&e){var o=s||Math.min(t.length,e.length);if(o>0){var a=document.createElementNS(_SvgRenderEngine.svgNS,"polyline"),h=this.precision;this._applyColor(a,"stroke",this._stroke);if(null!==this._strokeWidth){this._setAttribute(a,"stroke-width",this._strokeWidth.toString());this._strokeWidth>1&&this._setAttribute(a,"stroke-linejoin",this._STROKE_JOIN)}a.setAttribute("fill","none");for(var l="",_=0;_<o;_++)l+=t[_].toFixed(h)+","+e[_].toFixed(h)+" ";a.setAttribute("points",l);i&&a.setAttribute("class",i);n&&this._setClipPath(a,n);this._applyStyle(a,r);this._appendChild(a);return a}}return null};_SvgRenderEngine.prototype.drawSplines=function(t,e,i,r,n,s){if(t&&e){var o=new _Curve(t,e,s,this._options&&this._options.spline).calculate(),a=o.xs,h=o.ys,l=Math.min(a.length,h.length);if(l>0){var _=document.createElementNS(_SvgRenderEngine.svgNS,"polyline"),u=this.precision;this._applyColor(_,"stroke",this._stroke);if(null!==this._strokeWidth){this._setAttribute(_,"stroke-width",this._strokeWidth.toString());this._strokeWidth>1&&this._setAttribute(_,"stroke-linejoin",this._STROKE_JOIN)}_.setAttribute("fill","none");for(var c="",p=0;p<l;p++)c+=a[p].toFixed(u)+","+h[p].toFixed(u)+" ";_.setAttribute("points",c);i&&_.setAttribute("class",i);n&&this._setClipPath(_,n);this._applyStyle(_,r);this._appendChild(_);return _}}return null};_SvgRenderEngine.prototype.drawPolygon=function(t,e,i,r,n){if(t&&e){var s=Math.min(t.length,e.length);if(s>0){var o=document.createElementNS(_SvgRenderEngine.svgNS,"polygon"),a=this.precision;this._applyColor(o,"stroke",this._stroke);if(null!==this._strokeWidth){this._setAttribute(o,"stroke-width",this._strokeWidth.toString());this._strokeWidth>1&&this._setAttribute(o,"stroke-linejoin",this._STROKE_JOIN)}this._applyColor(o,"fill",this._fill);for(var h="",l=0;l<s;l++)h+=t[l].toFixed(a)+","+e[l].toFixed(a)+" ";o.setAttribute("points",h);i&&o.setAttribute("class",i);n&&this._setClipPath(o,n);this._applyStyle(o,r);this._appendChild(o);return o}}return null};_SvgRenderEngine.prototype.drawPieSegment=function(t,e,i,r,n,s,o,a){if(n>=2*Math.PI)return this.drawEllipse(t,e,i,i,s,o);var h=document.createElementNS(_SvgRenderEngine.svgNS,"path"),l=this.precision;this._applyColor(h,"fill",this._fill);this._applyColor(h,"stroke",this._stroke);null!==this._strokeWidth&&this._setAttribute(h,"stroke-width",this._strokeWidth.toString());var _=new wijmo_1.Point(t,e);_.x+=i*Math.cos(r);_.y+=i*Math.sin(r);var u=r+n,c=new wijmo_1.Point(t,e);c.x+=i*Math.cos(u);c.y+=i*Math.sin(u);var p=" 0 0,1 ";Math.abs(n)>Math.PI&&(p=" 0 1,1 ");var f="M "+_.x.toFixed(l)+","+_.y.toFixed(l);f+=" A "+i.toFixed(l)+","+i.toFixed(l)+p;f+=c.x.toFixed(l)+","+c.y.toFixed(l);f+=" L "+t.toFixed(l)+","+e.toFixed(l)+" z";h.setAttribute("d",f);a&&this._setClipPath(h,a);s&&h.setAttribute("class",s);this._applyStyle(h,o);this._appendChild(h);return h};_SvgRenderEngine.prototype.drawDonutSegment=function(t,e,i,r,n,s,o,a,h){var l=!1;if(s>=2*Math.PI){l=!0;s-=.001}var _=document.createElementNS(_SvgRenderEngine.svgNS,"path"),u=this.precision+2;this._applyColor(_,"fill",this._fill);this._applyColor(_,"stroke",this._stroke);null!==this._strokeWidth&&this._setAttribute(_,"stroke-width",this._strokeWidth.toString());var c=new wijmo_1.Point(t,e);c.x+=i*Math.cos(n);c.y+=i*Math.sin(n);var p=n+s,f=new wijmo_1.Point(t,e);f.x+=i*Math.cos(p);f.y+=i*Math.sin(p);var d=new wijmo_1.Point(t,e);d.x+=r*Math.cos(p);d.y+=r*Math.sin(p);var g=new wijmo_1.Point(t,e);g.x+=r*Math.cos(n);g.y+=r*Math.sin(n);var m=" 0 0,1 ",x=" 0 0,0 ";if(Math.abs(s)>Math.PI){m=" 0 1,1 ";x=" 0 1,0 "}var y="M "+c.x.toFixed(u)+","+c.y.toFixed(u);y+=" A "+i.toFixed(u)+","+i.toFixed(u)+m;y+=f.x.toFixed(u)+","+f.y.toFixed(u);y+=l?" M "+d.x.toFixed(u)+","+d.y.toFixed(u):" L "+d.x.toFixed(u)+","+d.y.toFixed(u);y+=" A "+r.toFixed(u)+","+r.toFixed(u)+x;y+=g.x.toFixed(u)+","+g.y.toFixed(u);l||(y+=" z");_.setAttribute("d",y);h&&this._setClipPath(_,h);o&&_.setAttribute("class",o);this._applyStyle(_,a);this._appendChild(_);return _};_SvgRenderEngine.prototype.drawString=function(t,e,i,r){return this._isHtmlString(t)?this._drawStringHtml(t,e,i,r):this._drawString(t,e,i,r)};_SvgRenderEngine.prototype._isHtmlString=function(t){return this._htmlText&&/<\/?[a-z][\s\S]*>/i.test(t)};_SvgRenderEngine.prototype._drawString=function(t,e,i,r){var n=this._createText(e,t),s=this.precision;i&&n.setAttribute("class",i);this._applyStyle(n,r);this._appendChild(n);var o,a=this._getKey(t,i,this._groupCls);if(this._bbCache[a]){o=this._bbCache[a];n.setAttribute("y",(e.y-(o.y+o.height)).toFixed(s))}else{o=this._getBBox(n);n.setAttribute("y",(e.y-(o.y+o.height-e.y)).toFixed(s))}this._isRtl&&!wijmo_1.isIE()&&n.setAttribute("x",(e.x+o.width).toFixed(s));return n};_SvgRenderEngine.prototype._drawStringHtml=function(t,e,i,r){var n=document.createElementNS("http://www.w3.org/2000/svg","foreignObject");n.setAttribute("width","1000");n.setAttribute("height","100");n.setAttribute("x",e.x.toFixed(2));var s=document.createElement("span"),o=this._groupCls;o&&wijmo_1.addClass(s,o);i&&wijmo_1.addClass(s,i);this._applyStyle(s,r);s.innerHTML=t;n.appendChild(s);this._appendChild(n);var a=s.getBoundingClientRect();n.setAttribute("width",Math.ceil(a.width+2).toFixed(2));n.setAttribute("height",Math.ceil(a.height+1).toFixed(2));n.setAttribute("y",(e.y-a.height).toFixed(2));return n};_SvgRenderEngine.prototype.drawStringRotated=function(t,e,i,r,n,s){return this._isHtmlString(t)?this._drawStringRotatedHtml(t,e,i,r,n,s):this._drawStringRotated(t,e,i,r,n,s)};_SvgRenderEngine.prototype._drawStringRotated=function(t,e,i,r,n,s){var o=this._createText(e,t),a=this.precision;n&&o.setAttribute("class",n);this._applyStyle(o,s);var h=document.createElementNS(_SvgRenderEngine.svgNS,"g");h.setAttribute("transform","rotate("+r.toFixed(a)+","+i.x.toFixed(a)+","+i.y.toFixed(a)+")");h.appendChild(o);this._appendChild(h);var l=this._getBBox(o);o.setAttribute("y",(e.y-(l.y+l.height-e.y)).toFixed(a));this._isRtl&&!wijmo_1.isIE()&&o.setAttribute("x",(e.x+l.width).toFixed(a));return o};_SvgRenderEngine.prototype._drawStringRotatedHtml=function(t,e,i,r,n,s){var o=this.precision,a=document.createElementNS("http://www.w3.org/2000/svg","foreignObject");a.setAttribute("width","1000");a.setAttribute("height","100");a.setAttribute("x",e.x.toFixed(2));var h=document.createElement("span"),l=this._groupCls;l&&wijmo_1.addClass(h,l);n&&wijmo_1.addClass(h,n);this._applyStyle(h,s);h.innerHTML=t;a.appendChild(h);this._appendChild(a);var _=h.getBoundingClientRect();a.setAttribute("width",Math.ceil(_.width+2).toFixed(2));a.setAttribute("height",Math.ceil(_.height+1).toFixed(2));a.setAttribute("y",(e.y-_.height).toFixed(2));var u=document.createElementNS(_SvgRenderEngine.svgNS,"g");u.setAttribute("transform","rotate("+r.toFixed(o)+","+i.x.toFixed(o)+","+i.y.toFixed(o)+")");u.appendChild(a);this._appendChild(u);return a};_SvgRenderEngine.prototype.measureString=function(t,e,i,r){return this._isHtmlString(t)?this._measureStringHtml(t,e,i,r):this._measureString(t,e,i,r)};_SvgRenderEngine.prototype._measureString=function(t,e,i,r){var n=new wijmo_1.Size(0,0);if(!this._fontFamily&&!this._fontSize){var s=this._getKey(t,e,i);if(this._bbCache[s])return this._bbCache[s]}if(this.cssPriority){this._fontSize&&this._text.setAttribute("font-size",this._fontSize);this._fontFamily&&this._text.setAttribute("font-family",this._fontFamily)}else{var o={};this._fontSize&&(o.fontSize=this._fontSize);this._fontFamily&&(o.fontFamily=this._fontFamily);Object.keys(o).length>0&&wijmo_1.setCss(this._text,o)}e&&this._text.setAttribute("class",e);i&&this._textGroup.setAttribute("class",i);this._applyStyle(this._text,r);this._setText(this._text,t);var a=this._getBBox(this._text);n.width=a.width;n.height=a.height;this._text.removeAttribute("font-size");this._text.removeAttribute("font-family");this._text.removeAttribute("class");this._text.removeAttribute("style");if(r)for(var h in r)this._text.removeAttribute(this._deCase(h));this._textGroup.removeAttribute("class");this._text.textContent=null;if(!this._fontFamily&&!this._fontSize){var l=this._getKey(t,e,i);this._bbCache[l]={x:a.x,y:a.y+1e3,width:a.width,height:a.height}}return n};_SvgRenderEngine.prototype._measureStringHtml=function(t,e,i,r){var n=new wijmo_1.Size(0,0),s=document.createElementNS("http://www.w3.org/2000/svg","foreignObject");s.setAttribute("width","1000");s.setAttribute("height","100");s.setAttribute("x","-1000");s.setAttribute("y","-1000");var o=document.createElement("span");i&&wijmo_1.addClass(o,i);e&&wijmo_1.addClass(o,e);this._applyStyle(o,r);o.innerHTML=t;s.appendChild(o);e&&this._text.setAttribute("class",e);this._applyStyle(this._text,r);this._appendChild(s);var a=o.getBoundingClientRect();n.width=a.width;n.height=a.height;s.remove();return n};_SvgRenderEngine.prototype.startGroup=function(t,e,i){void 0===i&&(i=!1);var r=document.createElementNS(_SvgRenderEngine.svgNS,"g");if(t){r.setAttribute("class",t);this._groupCls=t}e&&this._setClipPath(r,e);this._appendChild(r);i&&r.transform.baseVal.appendItem(this._svg.createSVGTransform());this._group=r;return r};_SvgRenderEngine.prototype.endGroup=function(){if(this._group){var t=this._group.parentNode;if(t==this._svg){this._group=null;this._groupCls=null}else{this._group=t;this._groupCls=this._getClass(this._group)}}};_SvgRenderEngine.prototype.drawImage=function(t,e,i,r,n){var s=document.createElementNS(_SvgRenderEngine.svgNS,"image"),o=this.precision;s.setAttributeNS(_SvgRenderEngine.xlinkNS,"href",t);s.setAttribute("x",e.toFixed(o));s.setAttribute("y",i.toFixed(o));s.setAttribute("width",r.toFixed(o));s.setAttribute("height",n.toFixed(o));this._appendChild(s);return s};_SvgRenderEngine.prototype._setClipPath=function(t,e){t.setAttribute("clip-path","url(#"+e+")");_SvgRenderEngine._isSafari&&wijmo_1.setCss(t,{"-webkit-clip-path":"url(#"+e+")"})};_SvgRenderEngine.prototype._appendChild=function(t){if(!this.readOnly){var e=this._group;e||(e=this._svg);e.appendChild(t)}};_SvgRenderEngine.prototype._create=function(){this._svg=document.createElementNS(_SvgRenderEngine.svgNS,"svg");this._defs=document.createElementNS(_SvgRenderEngine.svgNS,"defs");this._svg.appendChild(this._defs);this._text=this._createText(new wijmo_1.Point(-1e3,-1e3),"");this._textGroup=document.createElementNS(_SvgRenderEngine.svgNS,"g");this._textGroup.appendChild(this._text);this._svg.appendChild(this._textGroup)};_SvgRenderEngine.prototype._setText=function(t,e){var i=e?e.toString():null;if(i&&i.indexOf("tspan")>=0)try{t.textContent=null;for(var r=new DOMParser,n='<svg xmlns="http://www.w3.org/2000/svg">'+i+"</svg>",s=r.parseFromString(n,"text/xml").documentElement.firstChild;s;){t.appendChild(t.ownerDocument.importNode(s,!0));s=s.nextSibling}}catch(t){throw new Error("Error parsing XML string.")}else t.textContent=i};_SvgRenderEngine.prototype._getKey=function(t,e,i){return t+(e||"")+(i||"")};_SvgRenderEngine.prototype._createText=function(t,e){var i=document.createElementNS(_SvgRenderEngine.svgNS,"text"),r=this.precision;this._setText(i,e);i.setAttribute("x",t.x.toFixed(r));i.setAttribute("y",t.y.toFixed(r));if(this.cssPriority){null!=this._textFill&&i.setAttribute("fill",this._textFill);this._fontSize&&i.setAttribute("font-size",this._fontSize);this._fontFamily&&i.setAttribute("font-family",this._fontFamily)}else{var n={};null!=this._textFill&&(n.fill=this._textFill);this._fontSize&&(n.fontSize=this._fontSize);this._fontFamily&&(n.fontFamily=this._fontFamily);Object.keys(n).length>0&&wijmo_1.setCss(i,n)}return i};_SvgRenderEngine.prototype._applyStyle=function(t,e){if(e)for(var i in e)"fill"===i||"stroke"===i?this._applyColor(t,i,e[i]):t.setAttribute(this._deCase(i),e[i])};_SvgRenderEngine.prototype._deCase=function(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}))};_SvgRenderEngine.prototype._getClass=function(t){var e;if(t)for(var i=t;i&&!(e=i.getAttribute("class"));i=i.parentNode);return e};_SvgRenderEngine.prototype._getBBox=function(t){if(!_SvgRenderEngine._isff)return t.getBBox();try{return t.getBBox()}catch(t){return{x:0,y:0,width:0,height:0}}};_SvgRenderEngine.prototype._applyColor=function(t,e,i){var r=_GradientColorUtil.tryParse(i);if(null!=r){if(!wijmo_1.isString(r)){if(null==this._savedGradient[i]){var n,s="gc"+(1e6*Math.random()).toFixed();if(null!=r.x1){n=document.createElementNS(_SvgRenderEngine.svgNS,"linearGradient");["x1","y1","x2","y2","gradientUnits"].forEach((function(t){null!=r[t]&&n.setAttribute(t,r[t])}))}else if(null!=r.r){n=document.createElementNS(_SvgRenderEngine.svgNS,"radialGradient");["cx","cy","r","fx","fy","fr","gradientUnits"].forEach((function(t){null!=r[t]&&n.setAttribute(t,r[t])}))}r.colors&&r.colors&&r.colors.length>0&&r.colors.forEach((function(t){var e=document.createElementNS(_SvgRenderEngine.svgNS,"stop");null!=t.color&&e.setAttribute("stop-color",t.color);null!=t.offset&&e.setAttribute("offset",t.offset);null!=t.opacity&&e.setAttribute("stop-opacity",t.opacity);n.appendChild(e)}));n.setAttribute("id",s);this._defs.appendChild(n);this._savedGradient[i]=s}r="url("+this._baseUrl+"#"+this._savedGradient[i]+")"}this.cssPriority?t.setAttribute(e,r):this._addInlineStyle(t,e,r)}};_SvgRenderEngine.prototype._addInlineStyle=function(t,e,i){var r={};r[e.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))]=i;wijmo_1.setCss(t,r)};_SvgRenderEngine.prototype._setAttribute=function(t,e,i){this.cssPriority?t.setAttribute(e,i):this._addInlineStyle(t,e,i)};_SvgRenderEngine.prototype._checkRtl=function(){return this._element&&wijmo_1.hasClass(this._element,wijmo_1.UtilitesClsNames.rtl)};_SvgRenderEngine.svgNS="http://www.w3.org/2000/svg";_SvgRenderEngine.xlinkNS="http://www.w3.org/1999/xlink";return _SvgRenderEngine}();exports._SvgRenderEngine=_SvgRenderEngine;var _GradientColorUtil=function(){function _GradientColorUtil(){}_GradientColorUtil.tryParse=function(t){if(_GradientColorUtil.parsedColor[t])return _GradientColorUtil.parsedColor[t];if(null==t||-1===t.indexOf("-")||-1!==t.indexOf("var("))return t;var e,i=t.replace(/\s+/g,"").split(/\-/g),r=i[0][0],n=!1,s=i[0].match(/\(\S+\)/);if(!s||0==s.length)return t;var o=s[0].replace(/[\(\\)]/g,"").split(/\,/g);if("l"===r||"L"===r){e={x1:"0",y1:"0",x2:"0",y2:"0",colors:[]};"l"===r&&(n=!0);["x1","y1","x2","y2"].forEach((function(t,i){null!=o[i]&&(e[t]=n?100*+o[i]+"%":o[i]+"")}))}else if("r"===r||"R"===r){e={cx:"0",cy:"0",r:"0",colors:[]};"r"===r&&(n=!0);["cx","cy","r","fx","fy","fr"].forEach((function(t,i){null!=o[i]&&""!==o[i]&&(e[t]=n?100*+o[i]+"%":o[i]+"")}))}n||(e.gradientUnits="userSpaceOnUse");_GradientColorUtil.parsedColor[t]=e;var a=i.length-1;i.forEach((function(t,i){t.indexOf(")")>-1&&(t=t.match(/\)\S+/)[0].replace(")",""));var r=t.split(":"),s={color:"black"};null!=r[0]&&(s.color=r[0]);null!=r[1]?s.offset=n?100*+r[1]+"%":r[1]+"":s.offset=i/a*100+"%";null!=r[2]&&(s.opacity=r[2]);e.colors.push(s)}));return e};_GradientColorUtil.parsedColor={};return _GradientColorUtil}(),SvgRenderEngine=function(t){__extends(SvgRenderEngine,t);function SvgRenderEngine(){return null!==t&&t.apply(this,arguments)||this}return SvgRenderEngine}(_SvgRenderEngine);exports.SvgRenderEngine=SvgRenderEngine;var Legend=function(){function Legend(t){this._position=Position.Right;this._title="";this._titleAlign="left";this._titlePadding=5;this._areas=new Array;this._sz=new wijmo_1.Size;this._colRowLens=[];this._orient=Orientation.Auto;this._scrollbar=!1;this._chart=t}Object.defineProperty(Legend.prototype,"position",{get:function(){return this._position},set:function(t){if((t=wijmo_1.asEnum(t,Position))!=this._position){this._position=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Legend.prototype,"reverse",{get:function(){return this._reverse},set:function(t){if(t!=this._reverse){this._reverse=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Legend.prototype,"title",{get:function(){return this._title},set:function(t){if(t!=this._title){this._title=wijmo_1.asString(t,!1);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Legend.prototype,"titleAlign",{get:function(){return this._titleAlign},set:function(t){if(t!=this._titleAlign){var e=wijmo_1.asString(t,!1);this._titleAlign="right"===e?"right":"center"===e?"center":"left";this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Legend.prototype,"orientation",{get:function(){return this._orient},set:function(t){if((t=wijmo_1.asEnum(t,Orientation))!=this._orient){this._orient=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Legend.prototype,"maxSize",{get:function(){return this._maxSz},set:function(t){if(t!=this._maxSz){if(wijmo_1.isNumber(t))this._maxSz=t;else if(wijmo_1.isString(t)){var e=wijmo_1.asString(t);wijmo_1.assert(FlexChartBase._endsWith(e,"px")||FlexChartBase._endsWith(e,"%"),"number with unit (px or %) expected.");this._maxSz=e}else t&&wijmo_1.assert(!1,"number or string expected.");this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Legend.prototype,"scrollbar",{get:function(){return this._scrollbar},set:function(t){if(t!=this._scrollbar){this._scrollbar=wijmo_1.asBoolean(t,!1);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Legend.prototype,"isVertical",{get:function(){return this.orientation==Orientation.Auto?null==this.position||this.position==Position.Auto||this.position==Position.Right||this.position==Position.Left||this.position==Position.LeftTop||this.position==Position.LeftBottom||this.position==Position.RightTop||this.position==Position.RightBottom:this.orientation==Orientation.Vertical},enumerable:!0,configurable:!0});Legend.prototype._getDesiredSize=function(t,e,i,r){if(e==Position.None)return null;var n=new wijmo_1.Size;this.title.length>0&&(r-=(n=t.measureString(this.title,exports.LegendClsNames.title,exports.LegendClsNames.legend)).height+this._titlePadding);var s=this._chart._getDesiredLegendSize(t,this.isVertical,i,r);if(null!=s){if(this.title.length>0){s.height+=n.height+this._titlePadding;if(n.width>s.width)if(this.position==Position.Left||this.position==Position.Right||this.position==Position.LeftTop||this.position==Position.LeftBottom||this.position==Position.RightTop||this.position==Position.RightBottom){var o=Math.min(n.width,this._getMaxSize(i));s.width=o;n.width=o}else i>s.width&&i<n.width?s.width=i:i>=n.width&&(s.width=n.width)}this._sz=s.clone();if(this.scrollbar)if(this.isVertical&&s.height>r){s.width+=18;s.height=r}else if(!this.isVertical&&s.width>i){s.width=i;s.height+=18}}return s};Legend.prototype._getPosition=function(t,e){return this.position==Position.Auto?t>=e?Position.Right:Position.Bottom:this.position};Legend.prototype._render=function(t,e,i,r,n){this._areas=[];var s=0;t.fill="transparent";t.stroke=null;t.drawRect(e.x,e.y,r,n);if(this.title.length){var o=e.clone(),a=t.measureString(this.title,exports.LegendClsNames.title+"`");o.y+=a.height;"right"===this.titleAlign?o.x=e.x+r-a.width:"center"===this.titleAlign&&(o.x=e.x+.5*(r-a.width));t.drawString(this.title,o,exports.LegendClsNames.title);s=a.height+this._titlePadding;e.y+=s;n-=s}var h=!1;this.scrollbar&&(this._sz.height>n&&this.isVertical||this._sz.width>r&&!this.isVertical)&&(h=!0);this._chart._renderLegend(t,e,this._areas,this.isVertical,h?r-18:r,n);if(h){n+=s;this._addScrollbar(t,e,r,n,this._sz,this.isVertical,s)}};Legend.prototype._hitTest=function(t){for(var e=this._areas,i=0;i<e.length;i++)if(e[i]&&FlexChartBase._contains(e[i],t))return i;return null};Legend.prototype._addScrollbar=function(t,e,i,r,n,s,o){t.endGroup();var a=100-o/r*100,h=t.element,l=h.children.item(h.children.length-1),_=l.getBoundingClientRect();l.removeAttribute("clip-path");var u=[];l.children.length>0&&u.push(l.children.item(0));o>0&&u.push(l.children.item(1));Array.from(l.querySelectorAll("text,rect")).forEach((function(t){if(-1==u.indexOf(t)){t.setAttribute("x",(+t.getAttribute("x")-e.x).toFixed(2));t.setAttribute("y",(+t.getAttribute("y")-e.y).toFixed(2))}}));Array.from(l.querySelectorAll("foreignObject")).forEach((function(t){if(-1==u.indexOf(t)){t.setAttribute("x",(+t.getAttribute("x")-e.x).toFixed(2));t.setAttribute("y",(+t.getAttribute("y")-e.y).toFixed(2))}}));Array.from(l.querySelectorAll("ellipse")).forEach((function(t){t.setAttribute("cx",(+t.getAttribute("cx")-e.x).toFixed(2));t.setAttribute("cy",(+t.getAttribute("cy")-e.y).toFixed(2))}));Array.from(l.querySelectorAll("line")).forEach((function(t){t.setAttribute("x1",(+t.getAttribute("x1")-e.x).toFixed(2));t.setAttribute("y1",(+t.getAttribute("y1")-e.y).toFixed(2));t.setAttribute("x2",(+t.getAttribute("x2")-e.x).toFixed(2));t.setAttribute("y2",(+t.getAttribute("y2")-e.y).toFixed(2))}));var c=document.createElementNS("http://www.w3.org/2000/svg","foreignObject");c.setAttribute("x",e.x.toFixed(2));c.setAttribute("y",e.y.toFixed(2));c.setAttribute("width",i.toFixed(2));c.setAttribute("height",r.toFixed(2));var p=document.createElement("div");p.className="wj-legend-scrollable";s?wijmo_1.setCss(p,{width:"100%",height:a+"%",overflowX:"hidden",overflowY:"scroll"}):wijmo_1.setCss(p,{width:"100%",height:a+"%",overflowY:"hidden",overflowX:"scroll"});var f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttribute("height",(_.height-o).toFixed(2));var d=_.width;!s&&n.width<d&&(d=n.width);f.setAttribute("width",d.toFixed(2));for(;l.children.length>u.length;){var g=l.children.item(u.length);l.removeChild(g);f.appendChild(g)}p.appendChild(f);c.appendChild(p);l.appendChild(c)};Legend.prototype._invalidate=function(){this._chart&&this._chart.invalidate()};Legend.prototype._getMaxSize=function(t){var e=this.maxSize;if(wijmo_1.isNumber(e)){if((r=wijmo_1.asNumber(e,!0))>0)return Math.min(r,t)}else{var i=wijmo_1.asString(e,!0);if(i)if(FlexChartBase._endsWith(i,"px")){if((r=parseFloat(i.replace("px","")))>0)return Math.min(r,t)}else if(FlexChartBase._endsWith(i,"%")){var r;if((r=parseFloat(i.replace("%","")))>0)return t*Math.min(r,100)/100}}return.5*t};return Legend}();exports.Legend=Legend;var DataPoint=function DataPoint(t,e){void 0===t&&(t=0);void 0===e&&(e=0);this.x=t;this.y=e};exports.DataPoint=DataPoint;var RenderEventArgs=function(t){__extends(RenderEventArgs,t);function RenderEventArgs(e){var i=t.call(this)||this;i._engine=e;return i}Object.defineProperty(RenderEventArgs.prototype,"engine",{get:function(){return this._engine},enumerable:!0,configurable:!0});return RenderEventArgs}(wijmo_1.CancelEventArgs);exports.RenderEventArgs=RenderEventArgs;var ImageFormat,SelectionMode,Position,Orientation,SeriesRenderingEventArgs=function(t){__extends(SeriesRenderingEventArgs,t);function SeriesRenderingEventArgs(e,i,r){var n=t.call(this,e)||this;n._index=i;n._count=r;return n}Object.defineProperty(SeriesRenderingEventArgs.prototype,"index",{get:function(){return this._index},enumerable:!0,configurable:!0});Object.defineProperty(SeriesRenderingEventArgs.prototype,"count",{get:function(){return this._count},enumerable:!0,configurable:!0});return SeriesRenderingEventArgs}(RenderEventArgs);exports.SeriesRenderingEventArgs=SeriesRenderingEventArgs;!function(t){t[t.Png=0]="Png";t[t.Jpeg=1]="Jpeg";t[t.Svg=2]="Svg"}(ImageFormat=exports.ImageFormat||(exports.ImageFormat={}));!function(t){t[t.None=0]="None";t[t.Series=1]="Series";t[t.Point=2]="Point"}(SelectionMode=exports.SelectionMode||(exports.SelectionMode={}));!function(t){t[t.None=0]="None";t[t.Left=1]="Left";t[t.Top=2]="Top";t[t.Right=3]="Right";t[t.Bottom=4]="Bottom";t[t.Auto=5]="Auto";t[t.TopLeft=6]="TopLeft";t[t.TopRight=7]="TopRight";t[t.BottomLeft=8]="BottomLeft";t[t.BottomRight=9]="BottomRight";t[t.LeftTop=10]="LeftTop";t[t.LeftBottom=11]="LeftBottom";t[t.RightTop=12]="RightTop";t[t.RightBottom=13]="RightBottom"}(Position=exports.Position||(exports.Position={}));!function(t){t[t.Auto=0]="Auto";t[t.Vertical=1]="Vertical";t[t.Horizontal=2]="Horizontal"}(Orientation=exports.Orientation||(exports.Orientation={}));var FlexChartBase=function(t){__extends(FlexChartBase,t);function FlexChartBase(){var e=null!==t&&t.apply(this,arguments)||this;e._palette=null;e._selectionMode=SelectionMode.None;e._defPalette=Palettes.standard;e._notifyCurrentChanged=!0;e._legendHost=null;e._needBind=!1;e._skipLightClr=!1;e.rendering=new wijmo_1.Event;e.rendered=new wijmo_1.Event;e.itemsSourceChanging=new wijmo_1.Event;e.itemsSourceChanged=new wijmo_1.Event;e.selectionChanged=new wijmo_1.Event;return e}Object.defineProperty(FlexChartBase.prototype,"itemsSource",{get:function(){return this._items},set:function(t){if(this._items!=t){var e=new wijmo_1.CancelEventArgs;if(!this.onItemsSourceChanging(e))return;if(this._cv){this._cv.currentChanged.removeHandler(this._cvCurrentChanged,this);this._cv.collectionChanged.removeHandler(this._cvCollectionChanged,this);this._cv=null}this._items=t;this._cv=wijmo_1.asCollectionView(t);if(null!=this._cv){this._cv.currentChanged.addHandler(this._cvCurrentChanged,this);this._cv.collectionChanged.addHandler(this._cvCollectionChanged,this)}this._clearCachedValues();this.onItemsSourceChanged(e);this._bindChart()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"collectionView",{get:function(){return this._cv},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"palette",{get:function(){return this._palette},set:function(t){if(t!=this._palette){this._palette=wijmo_1.asArray(t);this._skipLightClr=Palettes._isExtended(this._palette);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"plotMargin",{get:function(){return this._plotMargin},set:function(t){if(t!=this._plotMargin){this._plotMargin=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"legend",{get:function(){return this._legend},set:function(t){if(t!=this._legend){this._legend=wijmo_1.asType(t,Legend);null!=this._legend&&(this._legend._chart=this)}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"header",{get:function(){return this._header},set:function(t){if(t!=this._header){this._header=wijmo_1.asString(t,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"footer",{get:function(){return this._footer},set:function(t){if(t!=this._footer){this._footer=wijmo_1.asString(t,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"headerStyle",{get:function(){return this._headerStyle},set:function(t){if(t!=this._headerStyle){this._headerStyle=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"footerStyle",{get:function(){return this._footerStyle},set:function(t){if(t!=this._footerStyle){this._footerStyle=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"selectionMode",{get:function(){return this._selectionMode},set:function(t){if((t=wijmo_1.asEnum(t,SelectionMode))!=this._selectionMode){this._selectionMode=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"itemFormatter",{get:function(){return this._itemFormatter},set:function(t){if(t!=this._itemFormatter){this._itemFormatter=wijmo_1.asFunction(t);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"options",{get:function(){return this._options},set:function(t){if(t!=this._options){this._options=t;this.invalidate()}},enumerable:!0,configurable:!0});FlexChartBase.prototype.onRendering=function(t){this.rendering.raise(this,t)};FlexChartBase.prototype.onRendered=function(t){this.rendered.raise(this,t)};FlexChartBase.prototype.onItemsSourceChanging=function(t){this.itemsSourceChanging.raise(this,t);return!t.cancel};FlexChartBase.prototype.onItemsSourceChanged=function(t){this.itemsSourceChanged.raise(this,t)};FlexChartBase.prototype.saveImageToFile=function(t){var e,i,r,n;t&&0!==t.length&&-1!==t.indexOf(".")||(t="image.png");n=t.split(".");e=n[0];i=n[1].toLowerCase();r=ImageFormat[i[0].toUpperCase()+i.substring(1)];this.saveImageToDataUrl(r,(function(t){ExportHelper.downloadImage(t,e,i)}))};FlexChartBase.prototype.saveImageToDataUrl=function(t,e){var i=wijmo_1.asEnum(t,ImageFormat,!1),r=ImageFormat[i].toLowerCase();r&&r.length&&this._exportToImage(r,(function(t){e.call(e,t)}))};FlexChartBase.prototype.saveSvgToDataUrl=function(t,e){void 0===e&&(e=!0);this._exportToImage("svg",(function(e){t.call(t,e)}),{embedCss:e})};FlexChartBase.prototype.saveSvgToFile=function(t,e){void 0===e&&(e=!0);this.saveSvgToDataUrl((function(e){ExportHelper.downloadImage(e,t,"svg")}),e)};FlexChartBase.prototype._exportToImage=function(t,e,i){var r=this;void 0===i&&(i=null);var n=this._currentRenderEngine.element;i&&!1===i.embedCss?ExportHelper.getDataUri2(n,this,(function(i){r.prepareDataUri(n,t,i,e)})):ExportHelper.getDataUri(n,this,(function(i){r.prepareDataUri(n,t,i,e)}))};FlexChartBase.prototype.prepareDataUri=function(t,e,i,r){var n=this;if("svg"===e)r.call(null,i);else{var s=new Image;s.onload=function(){var i,o=document.createElement("canvas"),a=t.parentNode||t,h=wijmo_1.getElementRect(a);o.width=h.width;o.height=h.height;var l=o.getContext("2d"),_=n._bgColor(n.hostElement);n._isTransparent(_)&&(_="#ffffff");l.fillStyle=_;l.fillRect(0,0,h.width,h.height);var u=window.getComputedStyle(a,null).getPropertyValue("padding-left").replace("px",""),c=window.getComputedStyle(a,null).getPropertyValue("padding-top").replace("px","");l.drawImage(s,+u||0,+c||0);i=o.toDataURL("image/"+e);r.call(null,i);o=null};s.src=i}};FlexChartBase.prototype.refresh=function(e){void 0===e&&(e=!0);t.prototype.refresh.call(this,e);this.isUpdating||this.disposed||this._refreshChart()};FlexChartBase.prototype.onSelectionChanged=function(t){this.selectionChanged.raise(this,t)};FlexChartBase.prototype.onLostFocus=function(e){this._tooltip&&this._tooltip.isVisible&&!this.isTouching&&this._tooltip.hide();t.prototype.onLostFocus.call(this,e)};FlexChartBase.prototype._cvCollectionChanged=function(t,e){this._clearCachedValues();this._bindChart()};FlexChartBase.prototype._cvCurrentChanged=function(t,e){this._notifyCurrentChanged&&this._bindChart()};FlexChartBase.prototype._bgColor=function(t){if(!t)return"transparent";var e=getComputedStyle(t).backgroundColor;return this._isTransparent(e)?this._bgColor(t.parentElement):e};FlexChartBase.prototype._isTransparent=function(t){var e=new wijmo_1.Color(t);return 0==e.a&&0==e.b&&0==e.g&&0==e.r};FlexChartBase.prototype._getColor=function(t){var e=this._defPalette;null!=this._palette&&this._palette.length>0&&(e=this._palette);return e[t%e.length]};FlexChartBase.prototype._getColorLight=function(t){var e=this._getColor(t);this._skipLightClr||(e=this._getLightColor(e));return e};FlexChartBase.prototype._getLightColor=function(t){var e=new wijmo_1.Color(t);if(null!=e&&-1===t.indexOf("-")){1==e.a&&-1==t.indexOf("rgba")&&-1==t.indexOf("hsla")&&(e.a*=.7);t=e.toString()}return t};FlexChartBase.prototype._bindChart=function(){this._needBind=!0;this.invalidate()};FlexChartBase.prototype._clearCachedValues=function(){};FlexChartBase.prototype._renderEls=function(t,e,i,r,n){void 0===i&&(i=!0);void 0===r&&(r=null);void 0===n&&(n=!1);var s=e.width,o=e.height;if(0!=s){(isNaN(s)||s<0)&&(s=FlexChartBase._WIDTH);(o<=0||isNaN(o))&&(o=FlexChartBase._HEIGHT);var a=s>0&&o>0;a&&t.setViewportSize(s,o);var h=0,l=0;if(this.legend.scrollbar&&this._legendHost){if(p=this._legendHost.querySelector(".wj-legend-scrollable"))if(this.legend.isVertical){l=0;h=p.scrollTop}else{h=0;l=p.scrollLeft}}this._currentRenderEngine._htmlText=this._isHtmlText();t.beginRender();t.cssPriority=!0;if(a){this._rectChart=new wijmo_1.Rect(0,0,s,o);this._prepareRender();if(r){var _=t.stroke,u=t.fill;t.fill=r;t.stroke=null;t.drawRect(0,0,s,o);t.fill=u;t.stroke=_}var c=new wijmo_1.Rect(0,0,s,o);this._chartRectId="chartRect"+(1e6*Math.random()).toFixed();t.addClipRect(c,this._chartRectId);this._renderHeader(t,c);this._renderFooter(t,c);this._renderLegends(t,c);this._renderChart(t,c,i);if(this.legend.scrollbar&&this._legendHost){var p;if(p=this._legendHost.querySelector(".wj-legend-scrollable")){p.scrollTop=h;p.scrollLeft=l}}}t.endRender()}};FlexChartBase.prototype._render=function(t,e,i){void 0===e&&(e=!0);void 0===i&&(i=null);var r=this._getHostSize();if(this._h){var n=r.height-this._h;n>=4&&n<=6&&!1!==this._isPCUnit("height")&&(r.height=this._h)}this._h=r.height;this._renderEls(t,r,e,i)};FlexChartBase.prototype._isPCUnit=function(t){var e=null,i=this.hostElement;if(i&&i.computedStyleMap){var r=i.computedStyleMap();if(r){var n=r.get(t);n&&(e="percent"==n.unit)}}return e};FlexChartBase.prototype._renderHidden=function(t,e){void 0===t&&(t=null);void 0===e&&(e=null);var i=document.createElement("div");wijmo_1.addClass(i,this.hostElement.getAttribute("class")||"");i.style.visibility="hidden";var r=new _SvgRenderEngine(i);document.body.appendChild(i);if(!t){var n=this._getHostComputedStyle(),s=0,o=0;if(n){s=this._parsePx(n.width);o=this._parsePx(n.height);0==s&&(s=FlexChartBase._WIDTH);0==o&&(o=FlexChartBase._HEIGHT);s-=this._parsePx(n.paddingLeft);s-=this._parsePx(n.paddingRight);o-=this._parsePx(n.paddingTop);o-=this._parsePx(n.paddingBottom);s-=this._parsePx(n.borderLeftWidth);s-=this._parsePx(n.borderRightWidth);o-=this._parsePx(n.borderTopWidth);o-=this._parsePx(n.borderBottomWidth)}0==s&&(s=FlexChartBase._WIDTH);0==o&&(o=FlexChartBase._HEIGHT);t=new wijmo_1.Size(s,o)}this._renderEls(r,t,!0,e,!0);wijmo_1.removeChild(i);return r.element};FlexChartBase.prototype._renderHeader=function(t,e){t.startGroup(FlexChartBase._CSS_HEADER,this._chartRectId);e=this._drawTitle(t,e,this.header,this.headerStyle,!1);t.endGroup()};FlexChartBase.prototype._renderFooter=function(t,e){t.startGroup(FlexChartBase._CSS_FOOTER,this._chartRectId);e=this._drawTitle(t,e,this.footer,this.footerStyle,!0);t.endGroup()};FlexChartBase.prototype._renderLegends=function(t,e){var i,r,n=this.legend,s=e.width,o=e.height,a=n._getPosition(s,o),h=s,l=o;a==Position.Left||a==Position.Right||a==Position.LeftTop||a==Position.LeftBottom||a==Position.RightTop||a==Position.RightBottom?h=this._getLegendSize(s,h):l=this._getLegendSize(o,l);if(i=n._getDesiredSize(t,a,h,l)){a==Position.Left||a==Position.Right||a==Position.LeftTop||a==Position.LeftBottom||a==Position.RightTop||a==Position.RightBottom?i.width=this._getLegendSize(s,i.width):i.height=this._getLegendSize(o,i.height);i.height>e.height&&(i.height=e.height);switch(a){case Position.Right:s-=i.width;r=new wijmo_1.Point(s,e.top+.5*(o-i.height));break;case Position.RightTop:s-=i.width;r=new wijmo_1.Point(s,e.top);break;case Position.RightBottom:s-=i.width;r=new wijmo_1.Point(s,e.top+(o-i.height));break;case Position.Left:e.left+=i.width;s-=i.width;r=new wijmo_1.Point(0,e.top+.5*(o-i.height));break;case Position.LeftTop:e.left+=i.width;s-=i.width;r=new wijmo_1.Point(0,e.top);break;case Position.LeftBottom:e.left+=i.width;s-=i.width;r=new wijmo_1.Point(0,e.top+(o-i.height));break;case Position.Top:o-=i.height;r=new wijmo_1.Point(.5*(s-i.width),e.top);e.top+=i.height;break;case Position.TopLeft:o-=i.height;r=new wijmo_1.Point(0,e.top);e.top+=i.height;break;case Position.TopRight:o-=i.height;r=new wijmo_1.Point(s-i.width,e.top);e.top+=i.height;break;case Position.Bottom:o-=i.height;r=new wijmo_1.Point(.5*(s-i.width),e.top+o);break;case Position.BottomLeft:o-=i.height;r=new wijmo_1.Point(0,e.top+o);break;case Position.BottomRight:o-=i.height;r=new wijmo_1.Point(s-i.width,e.top+o)}e.width=s;e.height=o;this._rectLegend=new wijmo_1.Rect(r.x,r.y,i.width,i.height);var _="legRect"+(1e6*Math.random()).toFixed();t.addClipRect(this._rectLegend,_);this._legendHost=t.startGroup(FlexChartBase._CSS_LEGEND,_);this.legend._render(t,r,a,i.width,i.height);t.endGroup()}else{this._legendHost=null;this._rectLegend=null}};FlexChartBase.prototype._prepareRender=function(){};FlexChartBase.prototype._renderChart=function(t,e,i){};FlexChartBase.prototype._performBind=function(){};FlexChartBase.prototype._getDesiredLegendSize=function(t,e,i,r){return null};FlexChartBase.prototype._renderLegend=function(t,e,i,r,n,s){};FlexChartBase.prototype._getHitTestItem=function(t){return null};FlexChartBase.prototype._getHitTestValue=function(t,e){return null};FlexChartBase.prototype._getHitTestLabel=function(t){return null};FlexChartBase.prototype._refreshChart=function(){if(this._needBind){this._needBind=!1;this._performBind()}this.hostElement&&this._render(this._currentRenderEngine)};FlexChartBase.prototype._drawTitle=function(t,e,i,r,n){var s=FlexChartBase._CSS_TITLE,o=n?FlexChartBase._CSS_FOOTER:FlexChartBase._CSS_HEADER,a=null;n?this._rectFooter=null:this._rectHeader=null;if(null!=i){var h=null,l=null,_=null,u=null;if(r){r.fontSize&&(h=r.fontSize);r.foreground&&(l=r.foreground);r.fill&&(l=r.fill);r.fontFamily&&(_=r.fontFamily);r.halign&&(u=r.halign)}t.fontSize=h;t.fontFamily=_;a=t.measureString(i,s,o,r);e.height-=a.height;l||(l=FlexChartBase._FG);t.textFill=l;if(n){"left"==u?FlexChartBase._renderText(t,i,new wijmo_1.Point(e.left,e.bottom),0,0,s,o,r):"right"==u?FlexChartBase._renderText(t,i,new wijmo_1.Point(e.left+e.width,e.bottom),2,0,s,o,r):FlexChartBase._renderText(t,i,new wijmo_1.Point(e.left+.5*e.width,e.bottom),1,0,s,o,r);this._rectFooter=new wijmo_1.Rect(e.left,e.bottom,e.width,a.height)}else{this._rectHeader=new wijmo_1.Rect(e.left,e.top,e.width,a.height);e.top+=a.height;"left"==u?FlexChartBase._renderText(t,i,new wijmo_1.Point(e.left,0),0,0,s,o,r):"right"==u?FlexChartBase._renderText(t,i,new wijmo_1.Point(e.left+e.width,0),2,0,s,o,r):FlexChartBase._renderText(t,i,new wijmo_1.Point(e.left+.5*e.width,0),1,0,s,o,r)}t.textFill=null;t.fontSize=null;t.fontFamily=null}return e};FlexChartBase.prototype.pageToControl=function(t,e){return this._toControl(t,e)};FlexChartBase.prototype._toControl=function(t,e){wijmo_1.isNumber(t)&&wijmo_1.isNumber(e)?t=new wijmo_1.Point(t,e):t instanceof MouseEvent&&(t=wijmo_1.mouseToPage(t));wijmo_1.asType(t,wijmo_1.Point);var i=t.clone(),r=this._getHostOffset();i.x-=r.x;i.y-=r.y;var n=this._currentRenderEngine?this._currentRenderEngine.element:null;if(null!=n){var s=n.getBoundingClientRect(),o=parseFloat(n.getAttribute("width")),a=parseFloat(n.getAttribute("height"));s.width!=o&&(i.x*=o/s.width);s.height!=a&&(i.y*=a/s.height)}var h=this._getHostComputedStyle();if(h){var l=parseInt(h.paddingLeft.replace("px",""));l&&!isNaN(l)&&(i.x-=l);var _=parseInt(h.paddingTop.replace("px",""));_&&!isNaN(_)&&(i.y-=_)}return i};FlexChartBase.prototype._highlightItems=function(t,e,i){if(i)for(var r=0;r<t.length;r++)wijmo_1.addClass(t[r],e);else for(r=0;r<t.length;r++)wijmo_1.removeClass(t[r],e)};FlexChartBase.prototype._parseMargin=function(t){var e={};if(wijmo_1.isNumber(t)&&!isNaN(t))e.top=e.bottom=e.left=e.right=wijmo_1.asNumber(t);else if(wijmo_1.isString(t)){var i=wijmo_1.asString(t).split(" ",4),r=NaN,n=NaN,s=NaN,o=NaN;if(i){if(4==i.length){r=parseFloat(i[0]);o=parseFloat(i[1]);n=parseFloat(i[2]);s=parseFloat(i[3])}else if(2==i.length){r=n=parseFloat(i[0]);s=o=parseFloat(i[1])}else 1==i.length&&(r=n=s=o=parseFloat(i[1]));isNaN(r)||(e.top=r);isNaN(n)||(e.bottom=n);isNaN(s)||(e.left=s);isNaN(o)||(e.right=o)}}return e};FlexChartBase.prototype._showToolTip=function(t,e){var i=this,r=this._tooltip.showDelay;i._clearTimeouts();if(!i.isDisabled){t||i._tooltip.hide();if(r>0)i._toShow=setTimeout((function(){i._tooltip.show(i.hostElement,t,e);i._tooltip.hideDelay>0&&(i._toHide=setTimeout((function(){i._tooltip.hide()}),i._tooltip.hideDelay))}),r);else{i._tooltip.show(i.hostElement,t,e);i._tooltip.hideDelay>0&&(i._toHide=setTimeout((function(){i._tooltip.hide()}),i._tooltip.hideDelay))}}};FlexChartBase.prototype._hideToolTip=function(){this._clearTimeouts();this._tooltip.hide()};FlexChartBase.prototype._clearTimeouts=function(){if(this._toShow){clearTimeout(this._toShow);this._toShow=null}if(this._toHide){clearTimeout(this._toHide);this._toHide=null}};FlexChartBase.prototype._getHostOffset=function(){var t=wijmo_1.getElementRect(this.hostElement);return new wijmo_1.Point(t.left,t.top)};FlexChartBase.prototype._getHostSize=function(){var t=new wijmo_1.Size,e=this.hostElement,i=this._getHostComputedStyle(),r=e.offsetWidth,n=e.offsetHeight;if(i){r-=this._parsePx(i.paddingLeft);r-=this._parsePx(i.paddingRight);n-=this._parsePx(i.paddingTop);n-=this._parsePx(i.paddingBottom);r-=this._parsePx(i.borderLeftWidth);r-=this._parsePx(i.borderRightWidth);n-=this._parsePx(i.borderTopWidth);n-=this._parsePx(i.borderBottomWidth);t.width=r;t.height=n}return t};FlexChartBase.prototype._parsePx=function(t){var e=parseFloat(t.replace("px",""));return isNaN(e)?0:e};FlexChartBase.prototype._getHostComputedStyle=function(){var t=this.hostElement;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(this.hostElement):null};FlexChartBase.prototype._find=function(t,e){for(var i=[],r=0;r<t.childElementCount;r++){var n=t.childNodes.item(r);if(e.indexOf(n.nodeName)>=0)i.push(n);else{var s=this._find(n,e);if(s.length>0)for(var o=0;o<s.length;o++)i.push(s[o])}}return i};FlexChartBase.prototype._getLegendSize=function(t,e){return Math.min(e,this.legend._getMaxSize(t))};FlexChartBase.prototype._isHtmlText=function(){return this._options&&this._options.htmlText};FlexChartBase._contains=function(t,e){return!(!t||!e)&&(e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom)};FlexChartBase._intersects=function(t,e){return!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top)};FlexChartBase._toOADate=function(t){return t.valueOf()};FlexChartBase._fromOADate=function(t){return new Date(t)};FlexChartBase._renderText=function(t,e,i,r,n,s,o,a,h){var l=t.measureString(e,s,o,a),_=i.x,u=i.y;switch(r){case 1:_-=.5*l.width;break;case 2:_-=l.width}switch(n){case 1:u+=.5*l.height;break;case 0:u+=l.height}var c=new wijmo_1.Rect(_,u-l.height,l.width,l.height);if(h){if(h(c)){t.drawString(e,new wijmo_1.Point(_,u),s,a);return c}return null}t.drawString(e,new wijmo_1.Point(_,u),s,a);return c};FlexChartBase._renderRotatedText=function(t,e,i,r,n,s,o,a,h,l){var _=t.measureString(e,a,h,l),u=i.x,c=i.y;switch(r){case 1:u-=.5*_.width;break;case 2:u-=_.width}switch(n){case 1:c+=.5*_.height;break;case 0:c+=_.height}return t.drawStringRotated(e,new wijmo_1.Point(u,c),s,o,a,l)};FlexChartBase._endsWith=function(t,e){if(t&&e){var i=t.length-e.length;return i>=0&&t.indexOf(e,i)===i}return!1};FlexChartBase._WIDTH=300;FlexChartBase._HEIGHT=200;FlexChartBase._SELECTION_THRESHOLD=15;FlexChartBase._CSS_LEGEND=exports.FlexChartClsNames.legend;FlexChartBase._CSS_HEADER=exports.FlexChartClsNames.header;FlexChartBase._CSS_FOOTER=exports.FlexChartClsNames.footer;FlexChartBase._CSS_TITLE=exports.FlexChartClsNames.title;FlexChartBase._CSS_LABEL=exports.FlexChartClsNames.label;FlexChartBase._CSS_SELECTION=wijmo_1.ControlStateClsNames.selected;FlexChartBase._CSS_PLOT_AREA=exports.FlexChartClsNames.plotArea;FlexChartBase._FG="#666";FlexChartBase._epoch=new Date(1899,11,30).getTime();FlexChartBase._msPerDay=864e5;return FlexChartBase}(wijmo_1.Control);exports.FlexChartBase=FlexChartBase;var _KeyWords=function(){function _KeyWords(){this._keys={};this._keys.seriesName=null;this._keys.pointIndex=null;this._keys.x=null;this._keys.y=null;this._keys.value=null;this._keys.name=null}_KeyWords.prototype.replace=function(t,e){var i=this;return wijmo_1.format(t,{},(function(t,r,n,s){return i.getValue(r,e,n)}))};_KeyWords.prototype.getValue=function(t,e,i){switch(t){case"seriesName":return e.series?e.series.name:"";case"pointIndex":return null!=e.pointIndex?e.pointIndex.toFixed():"";case"x":return i?wijmo_1.Globalize.format(e.x,i):e._xfmt;case"y":return i?wijmo_1.Globalize.format(e.y,i):e._yfmt;case"value":return i?wijmo_1.Globalize.format(e.value,i):e._getValueFmt();case"name":return e.name}if(e.item){0==t.indexOf("item.")&&(t=t.substr(5));var r=e.item[t];if(!wijmo_1.isUndefined(r))return i?wijmo_1.Globalize.format(r,i):r}return""};return _KeyWords}();exports._KeyWords=_KeyWords;var ChartType,Stacking,ExportHelper=function(){function ExportHelper(){}ExportHelper.downloadImage=function(t,e,i){var r=document.createElement("a"),n="image/"+i;if(navigator.msSaveOrOpenBlob){t=t.substring(t.indexOf(",")+1);var s,o,a,h=atob(t),l=[];for(s=0;s<h.length;s+=512){o=h.slice(s,s+512);for(var _=new Array(o.length),u=0;u<o.length;u++)_[u]=o.charCodeAt(u);var c=new Uint8Array(_);l.push(c)}a=new Blob(l,{type:n});navigator.msSaveOrOpenBlob(a,e+"."+i)}else{r.download=e+"."+i;r.href=t;document.body.appendChild(r);r.addEventListener("click",(function(t){wijmo_1.removeChild(r)}));r.click()}};ExportHelper.getDataUri=function(t,e,i){var r,n,s,o,a,h,l,_,u,c,p=document.createElement("div"),f=t.cloneNode(!0),d=!1;if("svg"==t.tagName){n=(r=wijmo_1.getElementRect(t.parentNode||t)).width||0;s=r.height||0;0==n&&(d=!0);o=t.viewBox.baseVal&&0!==t.viewBox.baseVal.width?t.viewBox.baseVal.width:n;a=t.viewBox.baseVal&&0!==t.viewBox.baseVal.height?t.viewBox.baseVal.height:s}else{n=(h=t.getBBox()).x+h.width;s=h.y+h.height;f.setAttribute("transform",f.getAttribute("transform").replace(/translate\(.*?\)/,""));o=n;a=s;(_=document.createElementNS("http://www.w3.org/2000/svg","svg")).appendChild(f);f=_}if(d){var g=e._renderHidden(),m=e._getHostComputedStyle(),x=0,y=0;if(m){x=e._parsePx(m.width);y=e._parsePx(m.height)}0==x&&(x=FlexChartBase._WIDTH);0==y&&(y=FlexChartBase._HEIGHT);o=n=x;a=s=y;f=g.cloneNode(!0)}f.setAttribute("version","1.1");f.setAttributeNS(ExportHelper.xmlns,"xmlns","http://www.w3.org/2000/svg");f.setAttributeNS(ExportHelper.xmlns,"xmlns:xlink","http://www.w3.org/1999/xlink");f.setAttribute("width",n);f.setAttribute("height",s);f.setAttribute("viewBox","0 0 "+o+" "+a);wijmo_1.addClass(f,t.parentNode&&t.parentNode.getAttribute("class")||"");p.appendChild(f);l=ExportHelper.getStyles(t);l+="."+exports.FlexChartClsNames.hostElement+"{margin:0px;padding:0px;border:none;width:"+n+"px;height:"+s+"px;}\n";(u=document.createElement("style")).setAttribute("type","text/css");u.innerHTML="<![CDATA[\n"+l+"\n]]>";(c=document.createElementNS("http://www.w3.org/2000/svg","defs")).appendChild(u);f.insertBefore(c,f.firstChild);wijmo_1.isIE()||f.querySelectorAll("foreignObject").forEach((function(t){if(f===t.parentNode)f.removeChild(t);else for(var e=0,i=t.children;e<i.length;e++){i[e].setAttribute("xmlns","http://www.w3.org/1999/xhtml")}}));var b=e._currentRenderEngine.canvas;if(b){var v=document.createElementNS("http://www.w3.org/2000/svg","image");v.setAttribute("width",b.width);v.setAttribute("height",b.height);v.setAttribute("href",b.toDataURL());f.insertBefore(v,f.firstChild);e.invalidate()}this.convertImagesToDataUrl(f,(function(){var t="data:image/svg+xml;base64,"+window.btoa(window.unescape(encodeURIComponent(ExportHelper.doctype+p.innerHTML)));i.call(null,t)}))};ExportHelper.convertImagesToDataUrl=function(t,e){var i=t.querySelectorAll("image");if(0!==i.length){var r=Array.from(i);Array.from(i).forEach((function(t){var i=new Image;i.onload=function(){var n=document.createElement("canvas");n.width=+t.getAttribute("width");n.height=+t.getAttribute("height");var s=n.getContext("2d"),o=i.width/i.height;o<n.width/n.height?s.drawImage(i,0,0,i.width,i.height,.5*(n.width-o*n.height),0,o*n.height,n.height):s.drawImage(i,0,0,i.width,i.height,0,.5*(n.height-n.width/o),n.width,n.width/o);t.setAttribute("href",n.toDataURL());i.remove();r.splice(r.indexOf(t),1);0==r.length&&e()};i.src=t.getAttribute("href")}))}else e()};ExportHelper.getDataUri2=function(t,e,i){var r,n,s,o,a,h,l,_=document.createElement("div"),u=this.cloneWithComputedStyles(t),c=!1;if("svg"==t.tagName){n=(r=wijmo_1.getElementRect(t.parentNode||t)).width||0;s=r.height||0;0==n&&(c=!0);o=t.viewBox.baseVal&&0!==t.viewBox.baseVal.width?t.viewBox.baseVal.width:n;a=t.viewBox.baseVal&&0!==t.viewBox.baseVal.height?t.viewBox.baseVal.height:s}else{n=(h=t.getBBox()).x+h.width;s=h.y+h.height;u.setAttribute("transform",u.getAttribute("transform").replace(/translate\(.*?\)/,""));o=n;a=s;(l=document.createElementNS("http://www.w3.org/2000/svg","svg")).appendChild(u);u=l}if(c){var p=e._renderHidden(),f=e._getHostComputedStyle(),d=0,g=0;if(f){d=e._parsePx(f.width);g=e._parsePx(f.height)}0==d&&(d=FlexChartBase._WIDTH);0==g&&(g=FlexChartBase._HEIGHT);o=n=d;a=s=g;u=this.cloneWithComputedStyles(p)}u.setAttribute("version","1.1");u.setAttributeNS(ExportHelper.xmlns,"xmlns","http://www.w3.org/2000/svg");u.setAttributeNS(ExportHelper.xmlns,"xmlns:xlink","http://www.w3.org/1999/xlink");u.setAttribute("width",n);u.setAttribute("height",s);u.setAttribute("viewBox","0 0 "+o+" "+a);_.appendChild(u);var m=e._currentRenderEngine.canvas;if(m){var x=document.createElementNS("http://www.w3.org/2000/svg","image");x.setAttribute("width",m.width);x.setAttribute("height",m.height);x.setAttribute("href",m.toDataURL());u.insertBefore(x,u.firstChild);e.invalidate()}this.convertImagesToDataUrl(u,(function(){var t="data:image/svg+xml;base64,"+window.btoa(window.unescape(encodeURIComponent(ExportHelper.doctype+_.innerHTML)));i.call(null,t)}))};ExportHelper.computeAttributes=function(t,e,i){var r=getComputedStyle(t);i.forEach((function(t){var i=r.getPropertyValue(t);i&&i.length>0&&e.setAttribute(t,i)}))};ExportHelper.cloneWithComputedStyles=function(t){var e=this,i=t.cloneNode();Array.from(t.childNodes).forEach((function(t){var r=e.cloneWithComputedStyles(t);1===t.nodeType&&("text"===t.nodeName?e.computeAttributes(t,r,e.textAttrs):"line"===t.nodeName&&e.computeAttributes(t,r,e.lineAttrs));i.appendChild(r)}));return i};ExportHelper.getStyles=function(t){var e="",i=document.styleSheets;if(null==i||0===i.length)return null;[].forEach.call(i,(function(i){var r;try{if(null==i.cssRules||0===i.cssRules.length)return!0}catch(t){if("SecurityError"==t.name){console.log("SecurityError. Can't read: "+i.href);return!0}}r=i.cssRules;[].forEach.call(r,(function(i){var r,n=i.style;if(null==n)return!0;var s=i.selectorText;if(wijmo_1.isIE()&&s){var o=s.match(/\[(.*?)\]/g);o&&o.forEach((function(t){return s=s.replace(t,t.replace(":","\\:"))}))}try{r=s=="."+exports.FlexChartClsNames.hostElement||t.querySelector(s)}catch(t){console.warn('Invalid CSS selector "'+i.selectorText+'"',t)}r?e+=i.selectorText+" { "+n.cssText+" }\n":i.cssText.match(/^@font-face/)&&(e+=i.cssText+"\n")}))}));var r=getComputedStyle(t),n=r?r.getPropertyValue("font"):null;n&&(e+="."+exports.FlexChartClsNames.hostElement+"{font:"+n+"}\n");return e};ExportHelper.doctype='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">';ExportHelper.xmlns="http://www.w3.org/2000/xmlns/";ExportHelper.textAttrs=["font-family","font-size","font-style","font-weight","fill"];ExportHelper.lineAttrs=["stroke","stroke-width","stroke-dasharray"];return ExportHelper}(),ChartTooltip=function(t){__extends(ChartTooltip,t);function ChartTooltip(){var e=t.call(this)||this;e._content="<b>{seriesName}</b><br/>{x} {y}";e._threshold=15;return e}Object.defineProperty(ChartTooltip.prototype,"content",{get:function(){return this._content},set:function(t){t!=this._content&&(this._content=t)},enumerable:!0,configurable:!0});Object.defineProperty(ChartTooltip.prototype,"threshold",{get:function(){return this._threshold},set:function(t){t!=this._threshold&&(this._threshold=wijmo_1.asNumber(t))},enumerable:!0,configurable:!0});ChartTooltip.prototype.show=function(e,i,r){t.prototype.show.call(this,e,i,r);var n=ChartTooltip._eTip;n&&n.style&&(n.style.pointerEvents="none")};return ChartTooltip}(wijmo_1.Tooltip);exports.ChartTooltip=ChartTooltip;!function(t){t[t.Column=0]="Column";t[t.Bar=1]="Bar";t[t.Scatter=2]="Scatter";t[t.Line=3]="Line";t[t.LineSymbols=4]="LineSymbols";t[t.Area=5]="Area";t[t.Bubble=6]="Bubble";t[t.Candlestick=7]="Candlestick";t[t.HighLowOpenClose=8]="HighLowOpenClose";t[t.Spline=9]="Spline";t[t.SplineSymbols=10]="SplineSymbols";t[t.SplineArea=11]="SplineArea";t[t.Funnel=12]="Funnel";t[t.Step=13]="Step";t[t.StepSymbols=14]="StepSymbols";t[t.StepArea=15]="StepArea"}(ChartType=exports.ChartType||(exports.ChartType={}));!function(t){t[t.None=0]="None";t[t.Stacked=1]="Stacked";t[t.Stacked100pc=2]="Stacked100pc"}(Stacking=exports.Stacking||(exports.Stacking={}));var FlexChartCore=function(t){__extends(FlexChartCore,t);function FlexChartCore(e,i){var r=t.call(this,e,null,!0)||this;r._series=new wijmo_1.ObservableArray;r._axes=new AxisCollection;r._pareas=new PlotAreaCollection;r._interpolateNulls=!1;r._legendToggle=!1;r._symbolSize=10;r._dataInfo=new _DataInfo;r.__barPlotter=null;r.__linePlotter=null;r.__areaPlotter=null;r.__bubblePlotter=null;r.__financePlotter=null;r.__funnelPlotter=null;r._plotters=[];r._rotated=!1;r._stacking=Stacking.None;r._xlabels=[];r._xvals=[];r._lblAreas=[];r._colRowLens=[];r._selectedEls=[];r._markers=[];r._bindingSeparator=",";r.seriesVisibilityChanged=new wijmo_1.Event;r.applyTemplate(wijmo_1.ControlClsNames.hostElement+" "+exports.FlexChartClsNames.hostElement,null,null);var n=r;n._series.collectionChanged.addHandler((function(){for(var t=n._series,e=0;e<t.length;e++){var i=wijmo_1.tryCast(t[e],SeriesBase);if(!i)throw"chartSeries array must contain SeriesBase objects.";i._chart=n;if(i.axisX&&null==i.axisX._chart){i.axisX._chart=n;n.axes.push(i.axisX)}if(i.axisY&&null==i.axisY._chart){i.axisY._chart=n;n.axes.push(i.axisY)}}n.invalidate()}));r._currentRenderEngine=new _SvgRenderEngine(r.hostElement);r._hitTester=new _HitTester(r);r._legend=new Legend(r);r._tooltip=new ChartTooltip;r._tooltip.showDelay=0;r._lbl=new DataLabel;r._lbl._chart=r;r._initAxes();n._axes.collectionChanged.addHandler((function(){for(var t=n._axes,e=0;e<t.length;e++){var i=wijmo_1.tryCast(t[e],Axis);if(!i)throw"axes array must contain Axis objects.";i._chart=n}n.invalidate()}));n._pareas.collectionChanged.addHandler((function(){for(var t=n._pareas,e=0;e<t.length;e++){var i=wijmo_1.tryCast(t[e],PlotArea);if(!i)throw"plotAreas array must contain PlotArea objects.";i._chart=n}n.invalidate()}));r._keywords=new _KeyWords;r.addEventListener(r.hostElement,"click",(function(t){var e=n._tooltip;e.content&&n.isTouching&&n._updateTooltip(e,t)}));r.addEventListener(r.hostElement,"mousemove",(function(t){var e=n._tooltip;e.content&&!n.isTouching&&n._updateTooltip(e,t)}));r.addEventListener(r.hostElement,"mouseleave",(function(t){n._hideToolTip()}));r.addEventListener(r.hostElement,"click",(function(t){if(n.selectionMode!=SelectionMode.None){var e=n._hitTestData(t),i=FlexChartCore._SELECTION_THRESHOLD;n.tooltip&&n.tooltip.threshold&&(i=n.tooltip.threshold);e.distance<=i&&e.series?n._select(e.series,e.pointIndex):n.selectionMode==SelectionMode.Series&&(e=n.hitTest(t)).chartElement==ChartElement.Legend&&e.series?n._select(e.series,null):n._select(null,null)}if(!0===n.legendToggle&&(e=n.hitTest(t)).chartElement==ChartElement.Legend&&e.series){e.series.visibility==SeriesVisibility.Legend?e.series.visibility=SeriesVisibility.Visible:e.series.visibility==SeriesVisibility.Visible&&(e.series.visibility=SeriesVisibility.Legend);n.focus()}}));r.deferUpdate((function(){return r.initialize(i)}));return r}FlexChartCore.prototype.initialize=function(e){if(e&&e.renderEngine){var i=wijmo_1.asType(this._currentRenderEngine,_SvgRenderEngine,!0);i&&i.detach();this._currentRenderEngine=null}t.prototype.initialize.call(this,e)};FlexChartCore.prototype._initAxes=function(){this._axisX=new Axis(Position.Bottom);this._axisY=new Axis(Position.Left);this._axisX.majorGrid=!1;this._axisX.name="axisX";this._axisY.majorGrid=!0;this._axisY.majorTickMarks=TickMark.None;this._axisY.name="axisY";this._axisX._chart=this;this._axisY._chart=this;this._axes.push(this._axisX);this._axes.push(this._axisY)};Object.defineProperty(FlexChartCore.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"axes",{get:function(){return this._axes},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"axisX",{get:function(){return this._axisX},set:function(t){if(t!=this._axisX){var e=this._axisX=wijmo_1.asType(t,Axis);this.beginUpdate();if(e){void 0===e.majorGrid&&(e.majorGrid=!1);void 0===e.name&&(e.name="axisX");e._axisType=AxisType.X;null!=e.position&&e.position!=Position.Left&&e.position!=Position.Right&&e.position!=Position.BottomLeft&&e.position!=Position.BottomRight&&e.position!=Position.TopLeft&&e.position!=Position.TopRight&&e.position!=Position.LeftTop&&e.position!=Position.LeftBottom&&e.position!=Position.RightTop&&e.position!=Position.RightBottom||(e.position=Position.Bottom);e._chart=this}this.endUpdate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"axisY",{get:function(){return this._axisY},set:function(t){if(t!=this._axisY){var e=this._axisY=wijmo_1.asType(t,Axis);this.beginUpdate();if(e){void 0===e.majorGrid&&(e.majorGrid=!0);void 0===e.name&&(e.name="axisY");void 0===e.majorTickMarks&&(e.majorTickMarks=TickMark.None);e._axisType=AxisType.Y;null!=e.position&&e.position!=Position.Top&&e.position!=Position.Bottom&&e.position!=Position.BottomLeft&&e.position!=Position.BottomRight&&e.position!=Position.TopLeft&&e.position!=Position.TopRight&&e.position!=Position.LeftTop&&e.position!=Position.LeftBottom&&e.position!=Position.RightTop&&e.position!=Position.RightBottom||(e.position=Position.Left);e._chart=this}this.endUpdate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"plotAreas",{get:function(){return this._pareas},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"binding",{get:function(){return this._binding},set:function(t){if(t!=this._binding){this._binding=wijmo_1.asString(t,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"bindingX",{get:function(){return this._bindingX},set:function(t){if(t!=this._bindingX){this._bindingX=wijmo_1.asString(t,!0);this._bindChart()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"symbolSize",{get:function(){return this._symbolSize},set:function(t){if(t!=this._symbolSize){this._symbolSize=wijmo_1.asNumber(t,!1,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"interpolateNulls",{get:function(){return this._interpolateNulls},set:function(t){if(t!=this._interpolateNulls){this._interpolateNulls=wijmo_1.asBoolean(t);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"legendToggle",{get:function(){return this._legendToggle},set:function(t){t!=this._legendToggle&&(this._legendToggle=wijmo_1.asBoolean(t))},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"tooltip",{get:function(){return this._tooltip},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"dataLabel",{get:function(){return this._lbl},set:function(t){if(t!=this._lbl){this._lbl=wijmo_1.asType(t,DataLabel);this._lbl&&(this._lbl._chart=this)}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"selection",{get:function(){return this._selection},set:function(t){if(t!=this._selection){this._selection=wijmo_1.asType(t,SeriesBase,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"renderEngine",{get:function(){return this._currentRenderEngine},set:function(t){if(t!=this._currentRenderEngine){var e=wijmo_1.asType(this._currentRenderEngine,_SvgRenderEngine,!0);e&&e.detach();this._currentRenderEngine=t;var i=wijmo_1.asType(this._currentRenderEngine,_SvgRenderEngine,!0);i&&i.attach(this.hostElement);this.refresh()}},enumerable:!0,configurable:!0});FlexChartCore.prototype.onSeriesVisibilityChanged=function(t){this.seriesVisibilityChanged.raise(this,t)};FlexChartCore.prototype.hitTest=function(t,e){var i=this._toControl(t,e),r=new HitTestInfo(this,i),n=null;if(FlexChartCore._contains(this._rectHeader,i))r._chartElement=ChartElement.Header;else if(FlexChartCore._contains(this._rectFooter,i))r._chartElement=ChartElement.Footer;else if(FlexChartCore._contains(this._rectLegend,i)){r._chartElement=ChartElement.Legend;var s=i.clone();if(this.legend.scrollbar&&this._legendHost){var o=this._legendHost.querySelector(".wj-legend-scrollable");if(o){if(this.rightToLeft&&!this.legend.isVertical){var a=o.scrollWidth-o.clientWidth-1;s.x+=a+o.scrollLeft}else s.x+=o.scrollLeft;s.y+=o.scrollTop}}null!==(n=this.legend._hitTest(s))&&n>=0&&n<this.series.length&&r._setData(this.series[n])}else if(FlexChartCore._contains(this._rectChart,i)){var h=this._hitTestLabels(i);if(h){r._chartElement=ChartElement.DataLabel;r._dist=0;r._setDataPoint(h.tag)}else{for(var l=this._hitTester.hitTest(i),_=null,u=null,c=this.series.length-1;c>=0;c--)if(this.series[c].hitTest!==Series.prototype.hitTest){var p=this.series[c].hitTest(t);if(p){if(!_||p.distance<_.distance){_=p;u=c}if(0===p.distance)break}}if(l&&l.area)if(_&&_.distance<l.distance)r=_;else if(_&&_.distance==l.distance&&u>l.area.tag.seriesIndex)r=_;else{r._setDataPoint(l.area.tag);r._dist=l.distance}else _&&(r=_);var f=!1;this.axes.some((function(t){if(FlexChartCore._contains(t._axrect,i)){var e=void 0;if(t.axisType===AxisType.X){r._chartElement=ChartElement.AxisX;e=t._hitTest(i)}else{r._chartElement=ChartElement.AxisY;e=t._hitTest(i)}e?r._setName(e.label):r._setName("");f=!0;return!0}}));f||(FlexChartCore._contains(this._plotRect,i)?r._chartElement=ChartElement.PlotArea:FlexChartCore._contains(this._rectChart,i)&&(r._chartElement=ChartElement.ChartArea))}}else r._chartElement=ChartElement.None;return r};FlexChartCore.prototype.pointToData=function(t,e){wijmo_1.isNumber(t)&&wijmo_1.isNumber(e)&&(t=new wijmo_1.Point(t,e));if(t instanceof MouseEvent){t=new wijmo_1.Point(t.pageX,t.pageY);t=this._toControl(t)}else t=t.clone();t.x=this.axisX.convertBack(t.x);t.y=this.axisY.convertBack(t.y);return t};FlexChartCore.prototype.dataToPoint=function(t,e){wijmo_1.isNumber(t)&&wijmo_1.isNumber(e)&&(t=new wijmo_1.Point(t,e));wijmo_1.asType(t,wijmo_1.Point);var i=t.clone();i.x=this.axisX.convert(i.x);i.y=this.axisY.convert(i.y);return i};FlexChartCore.prototype.dispose=function(){this._markers.forEach((function(t){return t.remove()}));this._markers=[];t.prototype.dispose.call(this)};FlexChartCore.prototype._copy=function(t,e){if("series"==t){this.series.clear();for(var i=wijmo_1.asArray(e),r=0;r<i.length;r++){var n=this._createSeries();wijmo_1.copy(n,i[r]);this.series.push(n)}return!0}return!1};FlexChartCore.prototype._createSeries=function(){return new Series};FlexChartCore.prototype._clearCachedValues=function(){for(var t=0;t<this._series.length;t++){var e=this._series[t];null==e.itemsSource&&e._clearValues()}};FlexChartCore.prototype._performBind=function(){this._xDataType=null;this._xlabels.splice(0);this._xvals.splice(0);if(this._cv){var t=this._cv.items;if(t){for(var e=t.length,i=this.bindingX?new wijmo_1.Binding(this.bindingX):null,r=0;r<e;r++){var n=t[r];if(i){var s=i.getValue(n);if(wijmo_1.isNumber(s)){this._xvals.push(wijmo_1.asNumber(s));this._xDataType=wijmo_1.DataType.Number}else if(wijmo_1.isDate(s)){this._xvals.push(wijmo_1.asDate(s).valueOf());this._xDataType=wijmo_1.DataType.Date}this._xlabels.push(s)}}this._xvals.length==e?this._xlabels.splice(0):this._xvals.splice(0)}}};FlexChartCore.prototype._hitTestSeries=function(t,e){var i=this._toControl(t),r=new HitTestInfo(this,i),n=this._hitTester.hitTestSeries(i,e);if(n&&n.area){r._setDataPoint(n.area.tag);r._chartElement=ChartElement.PlotArea;r._dist=n.distance}return r};FlexChartCore.prototype._hitTestData=function(t){var e=this._toControl(t),i=new HitTestInfo(this,e),r=this._hitTester.hitTest(e,!0);if(r&&r.area){i._setDataPoint(r.area.tag);i._dist=r.distance}return i};FlexChartCore.prototype._hitTestLabels=function(t){for(var e=null,i=this._lblAreas.length,r=0;r<i;r++)if(this._lblAreas[r].contains(t)){e=this._lblAreas[r];break}return e};FlexChartCore._dist2=function(t,e){var i=t.x-e.x,r=t.y-e.y;return i*i+r*r};FlexChartCore._dist=function(t,e,i){return Math.sqrt(FlexChartCore._distToSegmentSquared(t,e,i))};FlexChartCore._distToSegmentSquared=function(t,e,i){var r=FlexChartCore._dist2(e,i);if(0==r)return FlexChartCore._dist2(t,e);var n=((t.x-e.x)*(i.x-e.x)+(t.y-e.y)*(i.y-e.y))/r;return n<0?FlexChartCore._dist2(t,e):n>1?FlexChartCore._dist2(t,i):FlexChartCore._dist2(t,new wijmo_1.Point(e.x+n*(i.x-e.x),e.y+n*(i.y-e.y)))};FlexChartCore.prototype._isRotated=function(){return this._getChartType()==ChartType.Bar?!this._rotated:this._rotated};FlexChartCore.prototype._getChartType=function(){return null};FlexChartCore.prototype._prepareRender=function(){this._hitTester.clear()};FlexChartCore.prototype._renderChart=function(t,e,i){var r=this._rectChart.clone(),n=new wijmo_1.Size(r.width,r.height);e.width,e.height;this._selectedEls.length=0;(g=this._getPlotter(null)).stacking=this._stacking;if(this._curPlotter!=g){this._curPlotter&&this._curPlotter.unload();this._curPlotter=g}g.load();var s=this._isRotated();this._dataInfo.analyse(this._series,s,g.stacking,this._xvals.length>0?this._xvals:null,this.axisX._getLogBase()>0,this.axisY._getLogBase()>0);var o=g.adjustLimits(this._dataInfo,e.clone());if(s){var a=this._dataInfo.getDataTypeX();a||(a=this._xDataType);this.axisX._updateActualLimits(this._dataInfo.getDataTypeY(),o.left,o.right);this.axisY._updateActualLimits(a,o.top,o.bottom,this._xlabels,this._xvals)}else{var h=this._dataInfo.getDataTypeX();h||(h=this._xDataType);this.axisX._updateActualLimits(h,o.left,o.right,this._xlabels,this._xvals);this.axisY._updateActualLimits(this._dataInfo.getDataTypeY(),o.top,o.bottom)}var l=this._getAxes();this._updateAuxAxes(l,s);this._layout(e,n,t);t.startGroup(FlexChartCore._CSS_PLOT_AREA);t.fill="transparent";t.stroke=null;if(this.plotAreas.length>0)for(var _=0;_<this.plotAreas.length;_++){this.plotAreas[_]._render(t)}else{var u=this._plotRect;t.drawRect(u.left,u.top,u.width,u.height)}t.endGroup();var c=this._series.length;this._clearPlotters();var p={};for(_=0;_<c;_++){var f=this._series[_];if(((v=f.visibility)==SeriesVisibility.Visible||v==SeriesVisibility.Plot)&&f.getValues(0)){var d=f._getAxisY(),g=this._getPlotter(f);if(!d||d==this.axisY||g instanceof _BarPlotter)g.seriesCount++;else{var m=d._uniqueId;p[m]?p[m].count+=1:p[m]={count:1,index:0}}}}this.onRendering(new RenderEventArgs(t));if(this._getChartType()!==ChartType.Funnel)for(_=0;_<l.length;_++){var x=l[_];b=x.axisType==AxisType.X?t.startGroup(FlexChartCore._CSS_AXIS_X,this._chartRectId):t.startGroup(FlexChartCore._CSS_AXIS_Y,this._chartRectId);x._hostElement=i?b:x._hostElement;x._render(t);t.endGroup()}t.startGroup(exports.SeriesClsNames.group);this._plotrectId="plotRect"+(1e6*Math.random()).toFixed();t.addClipRect(this._plotRect,this._plotrectId);t.options=this._options&&this._options.spline?{spline:this._options.spline.approximation}:null;for(_=0;_<c;_++){var y=this._series[_];y._pointIndexes=[];g=this._getPlotter(y);y._plotter=g;var b=t.startGroup(y.cssClass,g.clipping?this._plotrectId:null);y._hostElement=i?b:y._hostElement;var v=y.visibility,w=y.axisX,S=y.axisY;w||(w=this.axisX);S||(S=this.axisY);if(v==SeriesVisibility.Visible||v==SeriesVisibility.Plot){var C,P,A=p[S._uniqueId];if(!A||g instanceof _BarPlotter){C=g.seriesIndex;P=g.seriesCount;g.seriesIndex++;y.onRendering(t,C,P)||g.plotSeries(t,w,S,y,this,C,P)}else{C=A.index;P=A.count;A.index++;y.onRendering(t,C,P)||g.plotSeries(t,w,S,y,this,C,P)}y.onRendered(t)}t.endGroup()}t.endGroup();this._lblAreas=[];this.dataLabel.content&&this.dataLabel.position!=LabelPosition.None&&this._renderLabels(t);this._highlightCurrent();this.onRendered(new RenderEventArgs(t))};FlexChartCore.prototype._getDesiredLegendSize=function(t,e,i,r){var n=new wijmo_1.Size,s=this.series,o=s.length,a=(this.legend.scrollbar,0),h=0;this._colRowLens=[];for(var l=0;l<o;l++){var _=l;this._legendReversed()&&(_=o-l-1);var u=wijmo_1.tryCast(s[_],SeriesBase),c=u.visibility;if(u.name&&c!=SeriesVisibility.Hidden&&c!=SeriesVisibility.Plot)for(var p=u.legendItemLength(),f=0;f<p;f++){var d=u.measureLegendItem(t,f);if(e){if(a+d.height>r&&!this.legend.scrollbar){n.height=r;this._colRowLens.push(h);h=0;a=0}h<d.width&&(h=d.width);a+=d.height}else{if(h+d.width>i&&!this.legend.scrollbar){n.width=i;this._colRowLens.push(a);a=0;h=0}a<d.height&&(a=d.height);h+=d.width}}}if(e){n.height<a&&(n.height=a);this._colRowLens.push(h);n.width=this._colRowLens.reduce((function(t,e){return t+e}),0)}else{n.width<h&&(n.width=h);this._colRowLens.push(a);n.height=this._colRowLens.reduce((function(t,e){return t+e}),0)}return n};FlexChartCore.prototype._renderLegend=function(t,e,i,r,n,s){var o,a=this.series,h=a.length,l=e.clone(),_=0;if(this._legendReversed()){for(var u=h-1;u>=0;u--){o=wijmo_1.tryCast(a[u],SeriesBase);_=this._renderLegendElements(t,o,e,l,i,r,n,s,_)}i.reverse()}else for(u=0;u<h;u++){o=wijmo_1.tryCast(a[u],SeriesBase);_=this._renderLegendElements(t,o,e,l,i,r,n,s,_)}};FlexChartCore.prototype._legendReversed=function(){if(null==this._legend.reverse||null===this._legend.reverse){var t=!1,e=this._getChartType();(e===ChartType.Bar||e===ChartType.Column&&this._rotated)&&(this._stacking!==Stacking.None||this.axisY.reversed||(t=!0));return t}return this._legend.reverse};FlexChartCore.prototype._renderLegendElements=function(t,e,i,r,n,s,o,a,h){var l=new wijmo_1.Rect(i.x,i.y,o,a),_=h;if(!e)return _;var u=e.visibility;if(!e.name||u==SeriesVisibility.Hidden||u==SeriesVisibility.Plot){e._legendElement=null;n.push(null);return _}var c=e.legendItemLength(),p=t.startGroup(e.cssClass);if(u==SeriesVisibility.Legend){p.setAttribute("opacity","0.5");e._legendElement=p}else u==SeriesVisibility.Visible?e._legendElement=p:e._legendElement=null;for(var f=0;f<c;f++){var d=e.measureLegendItem(t,f);if(s){if(r.y+d.height>l.bottom+1&&!this.legend.scrollbar){r.x+=this._colRowLens[_];_++;r.y=i.y}}else if(r.x+d.width>l.right+1&&!this.legend.scrollbar){r.y+=this._colRowLens[_];_++;r.x=i.x}var g=new wijmo_1.Rect(r.x,r.y,d.width,d.height);u!=SeriesVisibility.Legend&&u!=SeriesVisibility.Visible||e.drawLegendItem(t,g,f);n.push(g);s?r.y+=d.height:r.x+=d.width}t.endGroup();return _};FlexChartCore.prototype._renderLabels=function(t){var e=this.series,i=e.length;t.stroke="null";t.fill="transparent";t.strokeWidth=1;var r=FlexChartCore._CSS_DATA_LABELS;t.startGroup(r);for(var n=0;n<i;n++){var s=e[n],o=this._hitTester._map[n];o&&s._renderLabels(t,o,this,this._lblAreas)}t.endGroup()};FlexChartCore.prototype._getAxes=function(){for(var t=[this.axisX,this.axisY],e=this.series.length,i=0;i<e;i++){var r=this.series[i],n=r.axisX;n&&-1===t.indexOf(n)&&t.push(n);var s=r.axisY;s&&-1===t.indexOf(s)&&t.push(s)}return t};FlexChartCore.prototype._clearPlotters=function(){for(var t=this._plotters.length,e=0;e<t;e++)this._plotters[e].clear()};FlexChartCore.prototype._initPlotter=function(t){t.chart=this;t.dataInfo=this._dataInfo;t.hitTester=this._hitTester;this._plotters.push(t)};Object.defineProperty(FlexChartCore.prototype,"_barPlotter",{get:function(){if(null===this.__barPlotter){this.__barPlotter=new _BarPlotter;this._initPlotter(this.__barPlotter)}return this.__barPlotter},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"_linePlotter",{get:function(){if(null===this.__linePlotter){this.__linePlotter=new _LinePlotter;this._initPlotter(this.__linePlotter)}return this.__linePlotter},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"_areaPlotter",{get:function(){if(null===this.__areaPlotter){this.__areaPlotter=new _AreaPlotter;this._initPlotter(this.__areaPlotter)}return this.__areaPlotter},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"_bubblePlotter",{get:function(){if(null===this.__bubblePlotter){this.__bubblePlotter=new _BubblePlotter;this._initPlotter(this.__bubblePlotter)}return this.__bubblePlotter},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"_financePlotter",{get:function(){if(null===this.__financePlotter){this.__financePlotter=new _FinancePlotter;this._initPlotter(this.__financePlotter)}return this.__financePlotter},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"_funnelPlotter",{get:function(){if(null===this.__funnelPlotter){this.__funnelPlotter=new _FunnelPlotter;this._initPlotter(this.__funnelPlotter)}return this.__funnelPlotter},enumerable:!0,configurable:!0});FlexChartCore.prototype._getPlotter=function(t){var e,i=this._getChartType(),r=!1;if(t){var n=t._getChartType();if(null!=n&&n!=i){i=n;r=!0}}switch(i){case ChartType.Column:this._barPlotter.isVolume=!1;this._barPlotter.width=.7;e=this._barPlotter;break;case ChartType.Bar:this._barPlotter.rotated=!this._rotated;this._barPlotter.isVolume=!1;this._barPlotter.width=.7;e=this._barPlotter;break;case ChartType.Line:this._linePlotter.hasSymbols=!1;this._linePlotter.hasLines=!0;this._linePlotter.isSpline=!1;this._linePlotter.isStep=!1;e=this._linePlotter;break;case ChartType.Scatter:this._linePlotter.hasSymbols=!0;this._linePlotter.hasLines=!1;this._linePlotter.isSpline=!1;this._linePlotter.isStep=!1;e=this._linePlotter;break;case ChartType.LineSymbols:this._linePlotter.hasSymbols=!0;this._linePlotter.hasLines=!0;this._linePlotter.isSpline=!1;this._linePlotter.isStep=!1;e=this._linePlotter;break;case ChartType.Area:this._areaPlotter.isSpline=!1;this._areaPlotter.isStep=!1;e=this._areaPlotter;break;case ChartType.Bubble:e=this._bubblePlotter;break;case ChartType.Candlestick:(s=this._financePlotter).isCandle=!0;s.isEqui=!1;s.isArms=!1;s.isVolume=!1;e=s;break;case ChartType.HighLowOpenClose:var s;(s=this._financePlotter).isCandle=!1;s.isEqui=!1;s.isArms=!1;s.isVolume=!1;e=s;break;case ChartType.Spline:this._linePlotter.hasSymbols=!1;this._linePlotter.hasLines=!0;this._linePlotter.isSpline=!0;this._linePlotter.isStep=!1;e=this._linePlotter;break;case ChartType.SplineSymbols:this._linePlotter.hasSymbols=!0;this._linePlotter.hasLines=!0;this._linePlotter.isSpline=!0;this._linePlotter.isStep=!1;e=this._linePlotter;break;case ChartType.SplineArea:this._areaPlotter.isSpline=!0;this._areaPlotter.isStep=!1;e=this._areaPlotter;break;case ChartType.Funnel:e=this._funnelPlotter;break;case ChartType.Step:this._linePlotter.hasSymbols=!1;this._linePlotter.hasLines=!0;this._linePlotter.isSpline=!1;this._linePlotter.isStep=!0;e=this._linePlotter;break;case ChartType.StepSymbols:this._linePlotter.hasSymbols=!0;this._linePlotter.hasLines=!0;this._linePlotter.isSpline=!1;this._linePlotter.isStep=!0;e=this._linePlotter;break;case ChartType.StepArea:this._areaPlotter.isSpline=!1;this._areaPlotter.isStep=!0;e=this._areaPlotter;break;default:throw"Invalid chart type."}e.rotated=this._rotated;i==ChartType.Bar&&(e.rotated=!e.rotated);r&&(e.rotated=this._isRotated());return e};FlexChartCore.prototype._layout=function(t,e,i){this.plotAreas.length>0?this._layoutMultiple(t,e,i):this._layoutSingle(t,e,i)};FlexChartCore.prototype._layoutSingle=function(t,e,i){var r=t.width,n=t.height,s=new wijmo_1.Size(r,.75*n),o=new wijmo_1.Size(n,.75*r),a=0,h=0,l=r,_=n,u=0,c=0,p=r,f=n;if(this.dataLabel.position===LabelPosition.Top?this.dataLabel.content:null){h=i.measureString(this.dataLabel.content,exports.DataLabelClsNames.label).height}for(var d=this._getAxes(),g=this.axisY._getHeight(i,n),m=0;m<d.length;m++){var x=(A=d[m]).origin,y=A._getPosition();if(A.axisType==AxisType.X){(S=A._getHeight(i,Math.max(10,r-g)))>s.height&&(S=s.height);A._desiredSize=new wijmo_1.Size(s.width,S);var b=A._hasOrigin=wijmo_1.isNumber(x)&&x>this.axisY._getMinNum()&&x<this.axisY._getMaxNum(),v=Math.min(.25*r,A._annoSize.width);if(y==Position.Bottom){a=Math.max(a,.5*v);l=Math.min(l,r-.5*v);if(b){var w=this._convertY(x,c,f);f-=Math.max(0,w+S-f)}else f-=S}else if(y==Position.Top){a=Math.max(a,.5*v);l=Math.min(l,r-.5*v);if(b){w=this._convertY(x,c,f);c+=Math.max(0,c-(w-S))}else c+=S}}else if(A.axisType==AxisType.Y){var S;(S=A===this.axisX?g:A._getHeight(i,n))>o.height&&(S=o.height);A._desiredSize=new wijmo_1.Size(o.width,S);b=A._hasOrigin=wijmo_1.isNumber(x)&&x>this.axisX._getMinNum()&&x<this.axisX._getMaxNum();if(y==Position.Left){if(A._actualAngle<0)_=Math.min(_,n-A._annoSize.height);else if(A._actualAngle>0)h=Math.max(h,A._annoSize.height);else{h=Math.max(h,A._annoSize.height);_=Math.min(_,n-A._annoSize.height)}if(b){var C=this._convertX(x,u,p);u+=Math.max(0,u-(C-S))}else u+=S}else if(y==Position.Right){if(A._actualAngle>0)_=Math.min(_,n-A._annoSize.height);else if(A._actualAngle<0)h=Math.max(h,A._annoSize.height);else{h=Math.max(h,A._annoSize.height);_=Math.min(_,n-A._annoSize.height)}if(b){C=this._convertX(x,u,p);p-=Math.max(0,C+S-p)}else p-=S}}}var P=this._parseMargin(this.plotMargin);a=u=isNaN(P.left)?Math.max(a,u)+t.left:P.left;l=p=isNaN(P.right)?Math.min(l,p)+t.left:e.width-P.right;h=c=isNaN(P.top)?Math.max(h,c)+t.top:P.top;_=f=isNaN(P.bottom)?Math.min(_,f)+t.top:e.height-P.bottom;r=Math.max(1,l-a);n=Math.max(1,_-h);this._plotRect=new wijmo_1.Rect(a,h,r,n);_<=h&&(f=c+1);i.stroke=null;for(m=0;m<d.length;m++){var A;x=(A=d[m]).origin,y=A._getPosition();if(A.axisType==AxisType.X){var M;if(A._hasOrigin){w=this._convertY(x,this._plotRect.top,this._plotRect.bottom);if(y==Position.Bottom){M=new wijmo_1.Rect(a,w,r,A._desiredSize.height);f+=Math.max(0,M.bottom-this._plotRect.bottom)}else if(y==Position.Top){M=new wijmo_1.Rect(a,w-A._desiredSize.height,r,A._desiredSize.height);c-=Math.max(0,this._plotRect.top-M.top)}else M=new wijmo_1.Rect(a,w,r,1)}else if(y==Position.Bottom){M=new wijmo_1.Rect(a,f,r,A._desiredSize.height);f+=A._desiredSize.height}else if(y==Position.Top){M=new wijmo_1.Rect(a,c-A._desiredSize.height,r,A._desiredSize.height);c-=A._desiredSize.height}else M=new wijmo_1.Rect(a,c,r,1);A._layout(M,this._plotRect)}else if(A.axisType==AxisType.Y){var T;if(A._hasOrigin){C=this._convertX(x,this._plotRect.left,this._plotRect.right);if(y==Position.Left){T=new wijmo_1.Rect(C-A._desiredSize.height,h,n,A._desiredSize.height);u-=A._desiredSize.height}else if(y==Position.Right){T=new wijmo_1.Rect(C,h,n,A._desiredSize.height);p+=A._desiredSize.height}else T=new wijmo_1.Rect(C,h,n,1)}else if(y==Position.Left){T=new wijmo_1.Rect(u-A._desiredSize.height,h,n,A._desiredSize.height);u-=A._desiredSize.height}else if(y==Position.Right){T=new wijmo_1.Rect(p,h,n,A._desiredSize.height);p+=A._desiredSize.height}else T=new wijmo_1.Rect(u,h,n,1);A._layout(T,this._plotRect)}}};FlexChartCore.prototype._layoutMultiple=function(t,e,i){for(var r=t.width,n=t.height,s=[],o=[],a=this._getAxes(),h=a.length,l=0;l<h;l++){(C=a[l])._plotrect=null;if(C.axisType==AxisType.X){for(var _=C.plotArea?C.plotArea.column:0;s.length<=_;)s.push(new _AreaDef);s[_].axes.push(C)}else if(C.axisType==AxisType.Y){for(var u=C.plotArea?C.plotArea.row:0;o.length<=u;)o.push(new _AreaDef);o[u].axes.push(C)}}for(var c=s.length,p=o.length,f=new wijmo_1.Size(r,.3*n),d=new wijmo_1.Size(n,.3*r),g=0,m=0,x=r,y=n,b=0;b<c;b++){(j=s[b]).right=r;j.bottom=n;for(l=0;l<j.axes.length;l++){var v=(C=j.axes[l])._getHeight(i,C.axisType==AxisType.X?r:n);v>f.height&&(v=f.height);var w=new wijmo_1.Size(f.width,v);C._desiredSize=w;0==b&&(j.left=Math.max(j.left,.5*C._annoSize.width));b==c-1&&(j.right=Math.min(j.right,r-.5*C._annoSize.width));(R=C._getPosition())==Position.Bottom?j.bottom-=w.height:R==Position.Top&&(j.top+=w.height)}}for(var S=0;S<p;S++){(j=o[S]).right=r;j.bottom=n;for(l=0;l<j.axes.length;l++){var C=j.axes[l],P=new wijmo_1.Size(d.width,C._getHeight(i,C.axisType==AxisType.X?r:n));P.height>d.height&&(P.height=d.height);C._desiredSize=P;0==S&&(j.top=Math.max(j.top,.5*C._annoSize.width));S==p-1&&(j.bottom=Math.min(j.bottom,n-.5*C._annoSize.width));(R=C._getPosition())==Position.Left?j.left+=P.height:R==Position.Right&&(j.right-=P.height)}}var A=0,M=0,T=r,L=n;for(b=0;b<c;b++){var j=s[b];A=Math.max(A,j.left);M=Math.max(M,j.top);T=Math.min(T,j.right);L=Math.min(L,j.bottom)}for(S=0;S<p;S++){j=o[S];A=Math.max(A,j.left);M=Math.max(M,j.top);T=Math.min(T,j.right);L=Math.min(L,j.bottom)}A=g=Math.max(g,A);T=x=Math.min(x,T);M=m=Math.max(m,M);L=y=Math.min(y,L);this._plotRect=new wijmo_1.Rect(g,m,x-g,y-m);var E=this._plotRect.clone(),F=g,k=this.plotAreas._calculateWidths(this._plotRect.width,c);for(b=0;b<c;b++){L=y;M=m;j=s[b];var N=k[b];for(l=0;l<j.axes.length;l++){var I,R=(C=j.axes[l])._getPosition(),B=new wijmo_1.Rect(F,E.top,N,E.height);if(R==Position.Bottom){I=new wijmo_1.Rect(F,L,N,C._desiredSize.height);L+=C._desiredSize.height}else if(R==Position.Top){I=new wijmo_1.Rect(F,M-C._desiredSize.height,N,C._desiredSize.height);M-=C._desiredSize.height}C._layout(I,B)}for(l=0;l<this.plotAreas.length;l++){(G=this.plotAreas[l]).column==b&&G._setPlotX(F,N)}F+=N}var D=m,O=this.plotAreas._calculateHeights(this._plotRect.height,p);for(S=0;S<p;S++){A=g;T=x;j=o[S];var V=O[S];for(l=0;l<j.axes.length;l++){var H;R=(C=j.axes[l])._getPosition(),B=new wijmo_1.Rect(E.left,D,E.width,V);if(C._plotrect){B.left=C._plotrect.left;B.width=C._plotrect.width}else k&&k.length>0&&(B.width=k[0]);if(R==Position.Left){H=new wijmo_1.Rect(A-C._desiredSize.height,D,V,C._desiredSize.height);A-=C._desiredSize.height}else if(R==Position.Right){H=new wijmo_1.Rect(T,D,V,C._desiredSize.height);T+=C._desiredSize.height}C._layout(H,B)}for(l=0;l<this.plotAreas.length;l++){var G;(G=this.plotAreas[l]).row==S&&G._setPlotY(D,V)}D+=V}};FlexChartCore.prototype._convertX=function(t,e,i){var r=this.axisX;return r.reversed?i-(i-e)*(t-r._getMinNum())/(r._getMaxNum()-r._getMinNum()):e+(i-e)*(t-r._getMinNum())/(r._getMaxNum()-r._getMinNum())};FlexChartCore.prototype._convertY=function(t,e,i){var r=this.axisY;return r.reversed?e+(i-e)*(t-r._getMinNum())/(r._getMaxNum()-r._getMinNum()):i-(i-e)*(t-r._getMinNum())/(r._getMaxNum()-r._getMinNum())};FlexChartCore.prototype._getLabelContent=function(t,e){return t.chartElement!==ChartElement.AxisX&&t.chartElement!==ChartElement.AxisY||!t.name?wijmo_1.isString(e)?this._keywords.replace(e,t):wijmo_1.isFunction(e)?e(t):null:t.name};FlexChartCore.prototype._select=function(t,e){var i=this.selectionMode,r=!1;(t!=this._selection||i==SelectionMode.Point&&e!=this._selectionIndex)&&(r=!0);this._selection&&this._highlight(this._selection,!1,this._selectionIndex);this._selection=t;this._selectionIndex=e;this._selection&&this._highlight(this._selection,!0,this._selectionIndex);if(i==SelectionMode.Point){var n=t?t.collectionView:this._cv;if(n){this._notifyCurrentChanged=!1;n.moveCurrentToPosition(t?e:-1);this._notifyCurrentChanged=!0}}r&&this.onSelectionChanged()};FlexChartCore.prototype._highlightCurrent=function(){if(this.selectionMode!=SelectionMode.None){var t=this._selection,e=-1;if(t){var i=t.collectionView;i||(i=this._cv);i&&(e=i.currentPosition);this._highlight(t,!0,e)}}};FlexChartCore.prototype._highlight=function(t,e,i){t=wijmo_1.asType(t,SeriesBase,!0);if(this.selectionMode==SelectionMode.Series){var r=this.series.indexOf(t),n=t.hostElement;e?n.parentNode.appendChild(n):n.parentNode.insertBefore(n,n.parentNode.childNodes.item(r));var s=this._find(n,["rect","ellipse","polyline","polygon","line","path"]);this._highlightItems(s,FlexChartCore._CSS_SELECTION,e);t.legendElement&&this._highlightItems(this._find(t.legendElement,["rect","ellipse","line"]),FlexChartCore._CSS_SELECTION,e)}else if(this.selectionMode==SelectionMode.Point){r=this.series.indexOf(t),n=t.hostElement;if(e){n.parentNode.appendChild(n);var o=t.getPlotElement(i);if(o)if(o instanceof SVGElement){if("g"!=o.nodeName){this._highlightItems([o],FlexChartCore._CSS_SELECTION,e);this._selectedEls.push(o)}if((s=this._find(o,["line","rect","ellipse","path","polygon"])).length>0){this._highlightItems(s,FlexChartCore._CSS_SELECTION,e);for(var a=0;a<s.length;a++)this._selectedEls.push(s[a])}}else if(Array.isArray(o)){this._highlightItems(o,FlexChartCore._CSS_SELECTION,e);for(a=0;a<o.length;a++)this._selectedEls.push(o[a])}}else{n.parentNode.insertBefore(n,n.parentNode.childNodes.item(r));if(this._selectedEls.length>0){this._highlightItems(this._selectedEls,FlexChartCore._CSS_SELECTION,e);this._selectedEls.length=0}}}};FlexChartCore.prototype._updateTooltip=function(t,e){var i,r=this.hitTest(e);if(r.distance<=t.threshold){var n=t.content;if(r.series){var s=r.series.tooltipContent;(s||""===s)&&(n=s)}i=this._getLabelContent(r,n)}this._hideToolTip();i&&this._showToolTip(i,new wijmo_1.Rect(e.clientX,e.clientY,5,5))};FlexChartCore.prototype._updateAuxAxes=function(t,e){for(var i=2;i<t.length;i++){var r=t[i];r._chart=this;for(var n,s,o=[],a=0;a<this.series.length;a++){var h=this.series[a];h.axisX!=r&&h.axisY!=r||o.push(h)}for(a=0;a<o.length;a++){var l=o[a].getDataRect()||o[a]._getDataRect();if(l)if(r.axisType==AxisType.X&&!e||r.axisType==AxisType.Y&&e){(void 0===n||l.left<n)&&(n=l.left);(void 0===s||l.right>s)&&(s=l.right)}else{(void 0===n||l.top<n)&&(n=l.top);(void 0===s||l.bottom>s)&&(s=l.bottom)}}var _=o[0].getDataType(0);null==_&&(_=wijmo_1.DataType.Number);t[i]._updateActualLimits(_,n,s)}};FlexChartCore._CSS_AXIS_X=exports.AxisClsNames.axisX;FlexChartCore._CSS_AXIS_Y=exports.AxisClsNames.axisY;FlexChartCore._CSS_LINE=exports.AxisClsNames.line;FlexChartCore._CSS_GRIDLINE=exports.AxisClsNames.gridline;FlexChartCore._CSS_TICK=exports.AxisClsNames.tick;FlexChartCore._CSS_GRIDLINE_MINOR=exports.AxisClsNames.gridlineMinor;FlexChartCore._CSS_TICK_MINOR=exports.AxisClsNames.tickMinor;FlexChartCore._CSS_DATA_LABELS=exports.DataLabelClsNames.labels;return FlexChartCore}(FlexChartBase);exports.FlexChartCore=FlexChartCore;var _AreaDef=function(){function _AreaDef(){this._axes=new Array;this.left=0;this.right=0;this.top=0;this.bottom=0}Object.defineProperty(_AreaDef.prototype,"axes",{get:function(){return this._axes},enumerable:!0,configurable:!0});return _AreaDef}(),_DataInfo=function(){function _DataInfo(){this.stackAbs={};this._xvals=null}_DataInfo.prototype.analyse=function(t,e,i,r,n,s){var o=this;this.minY=NaN;this.maxY=NaN;this.minX=NaN;this.maxX=NaN;this.minXp=NaN;this.minYp=NaN;this.dx=0;var a={},h={},l={};this.dataTypeX=null;this.dataTypeY=null;this._xvals=r;if(null!=r)for(var _=r.length,u=0;u<_;u++){var c=r[u];(isNaN(this.minX)||this.minX>c)&&(this.minX=c);(isNaN(this.maxX)||this.maxX<c)&&(this.maxX=c);c>0&&(isNaN(this.minXp)||this.minXp>c)&&(this.minXp=c);if(u>0){var p=Math.abs(c-r[u-1]);!isNaN(p)&&(p<this.dx||0==this.dx)&&(this.dx=p)}}var f,d,g,m,x,y,b,v,w,S,C,_loop_1=function(){f=t[u];d=f._getChartType();g=void 0!==f.chartType;if((m=f.visibility)==SeriesVisibility.Hidden||m==SeriesVisibility.Legend)return"continue";if(x=f.getDataRect()){if(!isNaN(P.minX)&&P.minX<x.left){y=x.right;x.left=P.minX;x.width=y-P.minX}!isNaN(P.maxX)&&P.maxX>x.right&&(x.width=P.maxX-x.left);if(!f._isCustomAxisY()){if(!isNaN(P.minY)&&P.minY<x.top){y=x.bottom;x.top=P.minY;x.height=y-P.minY}!isNaN(P.maxY)&&P.maxY>x.bottom&&(x.height=P.maxY-x.top)}}b=null;e?f._isCustomAxisY()||(b=f.getValues(1)):f._isCustomAxisX()||(b=f.getValues(1));if(b){P.dataTypeX||(P.dataTypeX=f.getDataType(1));for(var n=0;n<b.length;n++){v=b[n];if(isFinite(v)){(isNaN(P.minX)||P.minX>v)&&(P.minX=v);(isNaN(P.maxX)||P.maxX<v)&&(P.maxX=v);if(n>0&&(!d||d==ChartType.Column||d==ChartType.Bar)){p=Math.abs(v-b[n-1]);!isNaN(p)&&p>0&&(p<P.dx||0==P.dx)&&(P.dx=p)}}}}w=null,S=!1;if(e){S=f._isCustomAxisX();w=f.getValues(0)}else{S=f._isCustomAxisY();w=f.getValues(0)}if(w){P.dataTypeY||S||(P.dataTypeY=f.getDataType(0));isNaN(P.minX)?P.minX=0:b||r||(P.minX=Math.min(P.minX,0));isNaN(P.maxX)?P.maxX=w.length-1:b||r||(P.maxX=Math.max(P.maxX,w.length-1));if(!S)for(var s=i==Stacking.None||g,_loop_2=function(t){var e=w[t],i=b?wijmo_1.asNumber(b[t],!0):r?wijmo_1.asNumber(r[t],!0):t;wijmo_1.isArray(e)?e.forEach((function(t){o._parseYVal(t,i,s,l,a,h)})):P._parseYVal(e,i,s,l,a,h)},_=0;_<w.length;_++)_loop_2(_)}if(C=f.getDataRect(new wijmo_1.Rect(P.minX,P.minY,P.maxX-P.minX,P.maxY-P.minY),x)){P.minX=C.left;P.maxX=C.right;if(!S){P.minY=C.top;P.maxY=C.bottom}}},P=this;for(u=0;u<t.length;u++)_loop_1();if(i==Stacking.Stacked){for(var A in a)a[A]>this.maxY&&(this.maxY=a[A]);for(var A in h)h[A]<this.minY&&(this.minY=h[A])}else if(i==Stacking.Stacked100pc){this.minY=0;this.maxY=0;for(var A in l){var M=l[A];if(isFinite(M)&&0!=M){var T=a[A],L=h[A];isFinite(T)&&(T=Math.max(T/M,this.maxY))>this.maxY&&(this.maxY=T);isFinite(L)&&(L=Math.min(L/M,this.minY))<this.minY&&(this.minY=L)}}if(this.minY==this.maxY){this.minY=0;this.maxY=1}}this.stackAbs=l;n&&(e?this.minY=isNaN(this.minYp)?1:this.minYp:this.minX=isNaN(this.minXp)?1:this.minXp);s&&(e?this.minX=isNaN(this.minXp)?1:this.minXp:this.minY=isNaN(this.minYp)?1:this.minYp)};_DataInfo.prototype._parseYVal=function(t,e,i,r,n,s){if(isFinite(t)){null!=t&&(isNaN(this.minY)||this.minY>t)&&(this.minY=t);null!=t&&(isNaN(this.maxY)||this.maxY<t)&&(this.maxY=t);t>0&&(isNaN(this.minYp)||this.minYp>t)&&(this.minYp=t);if(!i){t>0?isNaN(n[e])?n[e]=t:n[e]+=t:isNaN(s[e])?s[e]=t:s[e]+=t;isNaN(r[e])?r[e]=Math.abs(t):r[e]+=Math.abs(t)}}};_DataInfo.prototype.getMinY=function(){return this.minY};_DataInfo.prototype.getMaxY=function(){return this.maxY};_DataInfo.prototype.getMinX=function(){return this.minX};_DataInfo.prototype.getMaxX=function(){return this.maxX};_DataInfo.prototype.getMinXp=function(){return this.minXp};_DataInfo.prototype.getMinYp=function(){return this.minYp};_DataInfo.prototype.getDeltaX=function(){return this.dx};_DataInfo.prototype.getDataTypeX=function(){return this.dataTypeX};_DataInfo.prototype.getDataTypeY=function(){return this.dataTypeY};_DataInfo.prototype.getStackedAbsSum=function(t){var e=this.stackAbs[t];return isFinite(e)?e:0};_DataInfo.prototype.getXVals=function(){return this._xvals};_DataInfo.isValid=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=t.length,r=0;r<i;r++)if(!isFinite(t[r]))return!1;return!0};return _DataInfo}();exports._DataInfo=_DataInfo;var LabelPosition,PieLabelPosition,FlexChart=function(t){__extends(FlexChart,t);function FlexChart(e,i){var r=t.call(this,e,null)||this;r._chartType=ChartType.Column;r.initialize(i);return r}FlexChart.prototype._getChartType=function(){return this._chartType};Object.defineProperty(FlexChart.prototype,"chartType",{get:function(){return this._chartType},set:function(t){if((t=wijmo_1.asEnum(t,ChartType))!=this._chartType){this._chartType=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChart.prototype,"rotated",{get:function(){return this._rotated},set:function(t){if(t!=this._rotated){this._rotated=wijmo_1.asBoolean(t);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChart.prototype,"stacking",{get:function(){return this._stacking},set:function(t){if((t=wijmo_1.asEnum(t,Stacking))!=this._stacking){this._stacking=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChart.prototype,"options",{get:function(){return this._options},set:function(t){if(t!=this._options){this._options=t;this.invalidate()}},enumerable:!0,configurable:!0});return FlexChart}(FlexChartCore);exports.FlexChart=FlexChart;!function(t){t[t.None=0]="None";t[t.Left=1]="Left";t[t.Top=2]="Top";t[t.Right=3]="Right";t[t.Bottom=4]="Bottom";t[t.Center=5]="Center"}(LabelPosition=exports.LabelPosition||(exports.LabelPosition={}));!function(t){t[t.None=0]="None";t[t.Inside=1]="Inside";t[t.Center=2]="Center";t[t.Outside=3]="Outside";t[t.Radial=4]="Radial";t[t.Circular=5]="Circular"}(PieLabelPosition=exports.PieLabelPosition||(exports.PieLabelPosition={}));var DataLabelRenderEventArgs=function(t){__extends(DataLabelRenderEventArgs,t);function DataLabelRenderEventArgs(e,i,r,n){var s=t.call(this,e)||this;s.cancel=!1;s._ht=i;s._pt=r;s._text=n;return s}Object.defineProperty(DataLabelRenderEventArgs.prototype,"point",{get:function(){return this._pt},enumerable:!0,configurable:!0});Object.defineProperty(DataLabelRenderEventArgs.prototype,"text",{get:function(){return this._text},set:function(t){this._text=wijmo_1.asString(t)},enumerable:!0,configurable:!0});Object.defineProperty(DataLabelRenderEventArgs.prototype,"hitTestInfo",{get:function(){return this._ht},enumerable:!0,configurable:!0});return DataLabelRenderEventArgs}(RenderEventArgs);exports.DataLabelRenderEventArgs=DataLabelRenderEventArgs;var DataLabelBase=function(){function DataLabelBase(){this.rendering=new wijmo_1.Event}Object.defineProperty(DataLabelBase.prototype,"content",{get:function(){return this._content},set:function(t){if(t!=this._content){this._content=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(DataLabelBase.prototype,"border",{get:function(){return this._bdr},set:function(t){if(t!=this._bdr){this._bdr=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(DataLabelBase.prototype,"offset",{get:function(){return this._off},set:function(t){if(t!=this._off){this._off=wijmo_1.asNumber(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(DataLabelBase.prototype,"connectingLine",{get:function(){return this._line},set:function(t){if(t!=this._line){this._line=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});DataLabelBase.prototype.onRendering=function(t){this.rendering.raise(this,t);return!t.cancel};DataLabelBase.prototype._invalidate=function(){this._chart&&this._chart.invalidate()};return DataLabelBase}();exports.DataLabelBase=DataLabelBase;var DataLabel=function(t){__extends(DataLabel,t);function DataLabel(){var e=null!==t&&t.apply(this,arguments)||this;e._pos=LabelPosition.Top;return e}Object.defineProperty(DataLabel.prototype,"position",{get:function(){return this._pos},set:function(t){if((t=wijmo_1.asEnum(t,LabelPosition))!=this._pos){this._pos=t;this._invalidate()}},enumerable:!0,configurable:!0});return DataLabel}(DataLabelBase);exports.DataLabel=DataLabel;var PieDataLabel=function(t){__extends(PieDataLabel,t);function PieDataLabel(){var e=null!==t&&t.apply(this,arguments)||this;e._pos=PieLabelPosition.Center;return e}Object.defineProperty(PieDataLabel.prototype,"position",{get:function(){return this._pos},set:function(t){if((t=wijmo_1.asEnum(t,PieLabelPosition))!=this._pos){this._pos=t;this._invalidate()}},enumerable:!0,configurable:!0});return PieDataLabel}(DataLabelBase);exports.PieDataLabel=PieDataLabel;var _MeasureOption,_DataPoint=function(){function _DataPoint(t,e,i,r){this._seriesIndex=t;this._pointIndex=e;this._dataX=i;this._dataY=r}Object.defineProperty(_DataPoint.prototype,"seriesIndex",{get:function(){return this._seriesIndex},enumerable:!0,configurable:!0});Object.defineProperty(_DataPoint.prototype,"pointIndex",{get:function(){return this._pointIndex},enumerable:!0,configurable:!0});Object.defineProperty(_DataPoint.prototype,"dataX",{get:function(){return this._dataX},set:function(t){t!==this._dataX&&(this._dataX=t)},enumerable:!0,configurable:!0});Object.defineProperty(_DataPoint.prototype,"dataY",{get:function(){return this._dataY},set:function(t){t!==this._dataY&&(this._dataY=t)},enumerable:!0,configurable:!0});return _DataPoint}();exports._DataPoint=_DataPoint;!function(t){t[t.X=0]="X";t[t.Y=1]="Y";t[t.XY=2]="XY"}(_MeasureOption=exports._MeasureOption||(exports._MeasureOption={}));var _RectArea=function(){function _RectArea(t){this._rect=t}Object.defineProperty(_RectArea.prototype,"rect",{get:function(){return this._rect},enumerable:!0,configurable:!0});_RectArea.prototype.contains=function(t){var e=this._rect;return t.x>=e.left&&t.x<=e.right&&t.y>=e.top&&t.y<=e.bottom};_RectArea.prototype.pointDistance=function(t,e,i){var r=e.x-t.x,n=e.y-t.y;return i==_MeasureOption.X?Math.abs(r):i==_MeasureOption.Y?Math.abs(n):Math.sqrt(r*r+n*n)};_RectArea.prototype.distance=function(t){var e=_MeasureOption.XY;isNaN(t.x)||null===t.x?e=_MeasureOption.Y:(isNaN(t.y)||null===t.y)&&(e=_MeasureOption.X);var i=this._rect;return t.x<i.left?t.y<i.top?this.pointDistance(t,new wijmo_1.Point(i.left,i.top),e):t.y>i.bottom?this.pointDistance(t,new wijmo_1.Point(i.left,i.bottom),e):e==_MeasureOption.Y?0:i.left-t.x:t.x>i.right?t.y<i.top?this.pointDistance(t,new wijmo_1.Point(i.right,i.top),e):t.y>i.bottom?this.pointDistance(t,new wijmo_1.Point(i.right,i.bottom),e):e==_MeasureOption.Y?0:t.x-i.right:e==_MeasureOption.X?0:t.y<i.top?i.top-t.y:t.y>i.bottom?t.y-i.bottom:0};return _RectArea}();exports._RectArea=_RectArea;var _CircleArea=function(){function _CircleArea(t,e){this._center=t;this.setRadius(e)}_CircleArea.prototype.setRadius=function(t){this._rad=t;this._rad2=t*t};Object.defineProperty(_CircleArea.prototype,"center",{get:function(){return this._center},enumerable:!0,configurable:!0});_CircleArea.prototype.contains=function(t){var e=this._center.x-t.x,i=this._center.y-t.y;return e*e+i*i<=this._rad2};_CircleArea.prototype.distance=function(t){var e=isNaN(t.x)?0:this._center.x-t.x,i=isNaN(t.y)?0:this._center.y-t.y,r=e*e+i*i;return r<=this._rad2?0:Math.sqrt(r)-this._rad};return _CircleArea}();exports._CircleArea=_CircleArea;var _LinesArea=function(){function _LinesArea(t,e){this._x=[];this._y=[];this._x=t;this._y=e}_LinesArea.prototype.contains=function(t){return!1};_LinesArea.prototype.distance=function(t){for(var e=NaN,i=0;i<this._x.length-1;i++){var r=FlexChartCore._dist(t,new wijmo_1.Point(this._x[i],this._y[i]),new wijmo_1.Point(this._x[i+1],this._y[i+1]));(isNaN(e)||r<e)&&(e=r)}return e};return _LinesArea}();exports._LinesArea=_LinesArea;var _HitResult=function _HitResult(){};exports._HitResult=_HitResult;var ChartElement,_HitTester=function(){function _HitTester(t){this._map={};this._chart=t}_HitTester.prototype.add=function(t,e){if(this._map[e]){t.tag||(t.tag=new _DataPoint(e,NaN,NaN,NaN));this._map[e].push(t)}};_HitTester.prototype.clear=function(){this._map={};for(var t=this._chart.series,e=0;e<t.length;e++)t[e].hitTest===Series.prototype.hitTest&&(this._map[e]=new Array)};_HitTester.prototype.hitTest=function(t,e){void 0===e&&(e=!1);for(var i=null,r=Number.MAX_VALUE,n=this._chart.series.length-1;n>=0;n--){var s=this._map[n];if(s){for(var o=s.length-1;o>=0;o--){var a=s[o];if(!wijmo_1.tryCast(a,_LinesArea)||e){var h=a.distance(t);if(h<r){i=a;if(0==(r=h))break}}}if(0==r)break}}if(i){var l=new _HitResult;l.area=i;l.distance=r;return l}return null};_HitTester.prototype.hitTestSeries=function(t,e){var i=null,r=Number.MAX_VALUE,n=this._map[e];if(n)for(var s=n.length-1;s>=0;s--){var o=n[s],a=o.distance(t);if(a<r){i=o;if(0==(r=a))break}}if(i){var h=new _HitResult;h.area=i;h.distance=r;return h}return null};return _HitTester}();exports._HitTester=_HitTester;!function(t){t[t.PlotArea=0]="PlotArea";t[t.AxisX=1]="AxisX";t[t.AxisY=2]="AxisY";t[t.ChartArea=3]="ChartArea";t[t.Legend=4]="Legend";t[t.Header=5]="Header";t[t.Footer=6]="Footer";t[t.Series=7]="Series";t[t.SeriesSymbol=8]="SeriesSymbol";t[t.DataLabel=9]="DataLabel";t[t.None=10]="None"}(ChartElement=exports.ChartElement||(exports.ChartElement={}));var SeriesVisibility,Marker,HitTestInfo=function(){function HitTestInfo(t,e,i){this._pointIndex=null;this._chartElement=ChartElement.None;this._chart=t;this._pt=e;this._chartElement=i}Object.defineProperty(HitTestInfo.prototype,"chart",{get:function(){return this._chart},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"point",{get:function(){return this._pt},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"pointIndex",{get:function(){return this._pointIndex},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"chartElement",{get:function(){return this._chartElement},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"distance",{get:function(){return this._dist},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"item",{get:function(){if(null==this._item&&null!==this.pointIndex)if(null!=this.series)this._item=this.series._getItem(this.pointIndex);else{var t=this._chart._getHitTestItem(this.pointIndex);t&&(this._item=t)}return this._item},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"x",{get:function(){void 0===this._x&&(this._x=this._getValue(1,!1));return this._x},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"y",{get:function(){void 0===this._y&&(this._y=this._getValue(0,!1));return this._y},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"value",{get:function(){var t=this._chart._getHitTestValue(this.pointIndex,this._groupIndex);return null!=t?t:this.series&&null!=this.series._getValue?this.series._getValue(this.pointIndex):this.y},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"name",{get:function(){if(void 0===this._name){var t=this._chart._getHitTestLabel(this.pointIndex);return null==t?this.series.name:t.toString()}return this._name},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"groupIndex",{get:function(){return this._groupIndex},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"_xfmt",{get:function(){void 0===this.__xfmt&&(this.__xfmt=this._getValue(1,!0));return this.__xfmt},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"_yfmt",{get:function(){void 0===this.__yfmt&&(this.__yfmt=this._getValue(0,!0));return this.__yfmt},enumerable:!0,configurable:!0});HitTestInfo.prototype._setData=function(t,e){this._series=t;this._pointIndex=e};HitTestInfo.prototype._setDataGroup=function(t,e){this._groupIndex=t;this._pointIndex=e};HitTestInfo.prototype._setName=function(t){this._name=t;t&&(this._dist=0)};HitTestInfo.prototype._setDataPoint=function(t){if(t=wijmo_1.asType(t,_DataPoint,!0)){this._pointIndex=t.pointIndex;var e=wijmo_1.asType(this._chart,FlexChartCore,!0),i=t.seriesIndex;null!==i&&i>=0&&i<e.series.length&&(this._series=e.series[i]);null!=t.item&&(this._item=t.item);null!=t.x&&(this._x=t.x);null!=t.y&&(this._y=t.y);null!=t.xfmt&&(this.__xfmt=t.xfmt);null!=t.yfmt&&(this.__yfmt=t.yfmt);null!=t.name&&(this._name=t.name)}};HitTestInfo.prototype._getValueFmt=function(){var t=this.value;if(null!=t){if(null==this.series){var e=t==Math.round(t)?"{val:n0}":"{val:n}";return wijmo_1.format(e,{val:t})}t=this._chart._isRotated()?this.ax._formatValue(t):this.ay._formatValue(t)}return t};HitTestInfo.prototype._getValue=function(t,e){var i=this._chart._getHitTestValue(this.pointIndex,this.groupIndex);if(null!==i)return i;var r=null,n=this._chart,s=this.pointIndex,o=n._isRotated();if(null!==this.series&&null!==s){var a=this.series.getValues(t),h=this.series.getDataType(t);if(a&&this.pointIndex<a.length){r=a[this.pointIndex];h!=wijmo_1.DataType.Date||e||(r=new Date(r))}else if(1==t)if(n._xlabels&&n._xlabels.length>0&&s<n._xlabels.length)r=n._xlabels[s];else if(n._xvals&&s<n._xvals.length){r=n._xvals[s];n._xDataType!=wijmo_1.DataType.Date||e||(r=new Date(r))}}null!==r&&e&&(o?0==t?r=this.ax._formatValue(r):1==t&&(r=this.ay._formatValue(r)):0==t?r=this.ay._formatValue(r):1==t&&(r=this.ax._formatValue(r)));return r};Object.defineProperty(HitTestInfo.prototype,"ax",{get:function(){return this.series.axisX?this.series.axisX:this._chart.axisX},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"ay",{get:function(){return this.series.axisY?this.series.axisY:this._chart.axisY},enumerable:!0,configurable:!0});return HitTestInfo}();exports.HitTestInfo=HitTestInfo;!function(t){t[t.Visible=0]="Visible";t[t.Plot=1]="Plot";t[t.Legend=2]="Legend";t[t.Hidden=3]="Hidden"}(SeriesVisibility=exports.SeriesVisibility||(exports.SeriesVisibility={}));!function(t){t[t.Dot=0]="Dot";t[t.Box=1]="Box"}(Marker=exports.Marker||(exports.Marker={}));var DataArray=function DataArray(){};exports.DataArray=DataArray;var SeriesEventArgs=function(t){__extends(SeriesEventArgs,t);function SeriesEventArgs(e){var i=t.call(this)||this;i._series=wijmo_1.asType(e,SeriesBase);return i}Object.defineProperty(SeriesEventArgs.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0});return SeriesEventArgs}(wijmo_1.EventArgs);exports.SeriesEventArgs=SeriesEventArgs;var SeriesBase=function(){function SeriesBase(t){this._altStyle=null;this._symbolMarker=Marker.Dot;this._visibility=SeriesVisibility.Visible;this._interpolateNulls=null;this._cache={};this.rendering=new wijmo_1.Event;this.rendered=new wijmo_1.Event;this.initialize(t)}Object.defineProperty(SeriesBase.prototype,"interpolateNulls",{get:function(){return null==this._interpolateNulls?this._chart&&this._chart.interpolateNulls:this._interpolateNulls},set:function(t){if(t!=this._interpolateNulls){this._interpolateNulls=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"style",{get:function(){return this._style},set:function(t){if(t!=this._style){this._style=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"altStyle",{get:function(){return this._altStyle},set:function(t){if(t!=this._altStyle){this._altStyle=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"symbolStyle",{get:function(){return this._symbolStyle},set:function(t){if(t!=this._symbolStyle){this._symbolStyle=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"symbolSize",{get:function(){return this._symbolSize},set:function(t){if(t!=this._symbolSize){this._symbolSize=wijmo_1.asNumber(t,!0,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"symbolMarker",{get:function(){return this._symbolMarker},set:function(t){if((t=wijmo_1.asEnum(t,Marker,!0))!=this._symbolMarker){this._symbolMarker=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"binding",{get:function(){return this._binding?this._binding:this._chart?this._chart.binding:null},set:function(t){if(t!=this._binding){this._binding=wijmo_1.asString(t,!0);this._clearValues();this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"bindingX",{get:function(){return this._bindingX?this._bindingX:this._chart?this._chart.bindingX:null},set:function(t){if(t!=this._bindingX){this._bindingX=wijmo_1.asString(t,!0);this._clearValues();this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"itemsSource",{get:function(){return this._itemsSource},set:function(t){if(t!=this._itemsSource){if(this._cv){this._cv.currentChanged.removeHandler(this._cvCurrentChanged,this);this._cv.collectionChanged.removeHandler(this._cvCollectionChanged,this);this._cv=null}this._itemsSource=t;this._cv=wijmo_1.asCollectionView(t);if(null!=this._cv){this._cv.currentChanged.addHandler(this._cvCurrentChanged,this);this._cv.collectionChanged.addHandler(this._cvCollectionChanged,this)}this._clearValues();this._itemsSource=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"collectionView",{get:function(){return this._cv?this._cv:this._chart?this._chart.collectionView:null},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"chart",{get:function(){return this._chart},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"hostElement",{get:function(){return this._hostElement},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"legendElement",{get:function(){return this._legendElement},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"cssClass",{get:function(){return this._cssClass},set:function(t){this._cssClass=wijmo_1.asString(t,!0)},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"visibility",{get:function(){return this._visibility},set:function(t){if((t=wijmo_1.asEnum(t,SeriesVisibility))!=this._visibility){this._visibility=t;this._clearValues();this._invalidate();this._chart&&this._chart.onSeriesVisibilityChanged(new SeriesEventArgs(this))}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"tooltipContent",{get:function(){return this._tooltipContent},set:function(t){t!=this._tooltipContent&&(this._tooltipContent=t)},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"itemFormatter",{get:function(){return this._itemFormatter},set:function(t){if(t!=this._itemFormatter){this._itemFormatter=wijmo_1.asFunction(t);this._invalidate()}},enumerable:!0,configurable:!0});SeriesBase.prototype.hitTest=function(t,e){wijmo_1.isNumber(t)&&wijmo_1.isNumber(e)?t=new wijmo_1.Point(t,e):t instanceof MouseEvent&&(t=new wijmo_1.Point(t.pageX,t.pageY));wijmo_1.asType(t,wijmo_1.Point);return this._chart?this._chart._hitTestSeries(t,this._chart.series.indexOf(this)):null};SeriesBase.prototype.getPlotElement=function(t){if(this.hostElement&&t<this._pointIndexes.length){var e=this._pointIndexes[t];if(e<this.hostElement.childNodes.length)return this.hostElement.childNodes[e]}return null};Object.defineProperty(SeriesBase.prototype,"axisX",{get:function(){return this._axisX},set:function(t){if(t!=this._axisX){this._axisX=wijmo_1.asType(t,Axis,!0);if(this._axisX){var e=this._axisX._chart=this._chart;e&&-1==e.axes.indexOf(this._axisX)&&e.axes.push(this._axisX)}this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"axisY",{get:function(){return this._axisY},set:function(t){if(t!=this._axisY){this._axisY=wijmo_1.asType(t,Axis,!0);if(this._axisY){var e=this._axisY._chart=this._chart;e&&-1==e.axes.indexOf(this._axisY)&&e.axes.push(this._axisY)}this._invalidate()}},enumerable:!0,configurable:!0});SeriesBase.prototype.initialize=function(t){wijmo_1.copy(this,t)};SeriesBase.prototype.pointToData=function(t){wijmo_1.asType(t,wijmo_1.Point);(t=t.clone()).x=this._getAxisX().convertBack(t.x);t.y=this._getAxisY().convertBack(t.y);return t};SeriesBase.prototype.dataToPoint=function(t){wijmo_1.asType(t,wijmo_1.Point);(t=t.clone()).x=this._getAxisX().convert(t.x);t.y=this._getAxisY().convert(t.y);return t};SeriesBase.prototype.onRendering=function(t,e,i){var r=new SeriesRenderingEventArgs(t,e,i);this.rendering.raise(this,r);return r.cancel};SeriesBase.prototype.onRendered=function(t){this.rendered.raise(this,new RenderEventArgs(t))};Object.defineProperty(SeriesBase.prototype,"_chart",{get:function(){return this.__chart},set:function(t){t!==this.__chart&&(this.__chart=t)},enumerable:!0,configurable:!0});SeriesBase.prototype._getSymbolSize=function(){return null!=this.symbolSize?this.symbolSize:this.chart.symbolSize};Object.defineProperty(SeriesBase.prototype,"_plotter",{get:function(){this.chart&&!this.__plotter&&(this.__plotter=this.chart._getPlotter(this));return this.__plotter},set:function(t){t!=this.__plotter&&(this.__plotter=t)},enumerable:!0,configurable:!0});SeriesBase.prototype.getDataType=function(t){return 0==t?this._valueDataType:1==t?this._xvalueDataType:null};SeriesBase.prototype.getValues=function(t){if(0==t){if(null==this._values){this._valueDataType=null;if(null!=this._cv){var e=this._bindValues(this._cv.items,this._getBinding(0));this._values=e.values;this._valueDataType=e.dataType}else if(null!=this.binding&&null!=this._chart&&null!=this._chart.collectionView){e=this._bindValues(this._chart.collectionView.items,this._getBinding(0));this._values=e.values;this._valueDataType=e.dataType}}return this._values}if(1==t){if(null==this._xvalues){this._xvalueDataType=null;if(null!=this.bindingX)if(null!=this._cv){e=this._bindValues(this._cv.items,this.bindingX,!0);this._xvalueDataType=e.dataType;this._xvalues=e.values}else{if(null==this._bindingX)return null;if(null!=this._chart&&null!=this._chart.collectionView){e=this._bindValues(this._chart.collectionView.items,this.bindingX,!0);this._xvalueDataType=e.dataType;this._xvalues=e.values}}}return this._xvalues}return null};SeriesBase.prototype.drawLegendItem=function(t,e,i){var r=this._getChartType();null==r&&(r=this._chart._getChartType());var n=this._getLegendStyle(this.style);r===ChartType.Funnel?this._drawFunnelLegendItem(t,e,i,n,this.symbolStyle):this._drawLegendItem(t,e,r,this.name,n,this.symbolStyle)};SeriesBase.prototype._getLegendStyle=function(t){if(t){var e={};t.fill&&(e.fill=t.fill);t.stroke&&(e.stroke=t.stroke);return e}};SeriesBase.prototype.measureLegendItem=function(t,e){var i=this._getChartType();null==i&&(i=this._chart._getChartType());return i===ChartType.Funnel?this._measureLegendItem(t,this._getFunnelLegendName(e)):this._measureLegendItem(t,this.name)};SeriesBase.prototype.legendItemLength=function(){var t=this._getChartType();null==t&&(t=this._chart._getChartType());return t===ChartType.Funnel?this._chart._xlabels&&this._chart._xlabels.length?this._chart._xlabels.length:this._chart._xvals&&this._chart._xvals.length?this._chart._xvals.length:1:1};SeriesBase.prototype.getDataRect=function(t,e){return null};SeriesBase.prototype._getChartType=function(){return this._chartType};SeriesBase.prototype._clearValues=function(){this._values=null;this._xvalues=null;this.__plotter=null;this._cache={}};SeriesBase.prototype._getBinding=function(t){var e=this.binding;if(e){var i=this.chart?this.chart._bindingSeparator:",";if(i){var r=e.split(i);r&&r.length>t&&(e=r[t].trim())}}return e};SeriesBase.prototype._getBindingValues=function(t){if(this._cache[t])return this._cache[t];var e;null!=this._cv?e=this._cv.items:null!=this._chart&&null!=this._chart.collectionView&&(e=this._chart.collectionView.items);var i=this._bindValues(e,this._getBinding(t));return this._cache[t]=i.values};SeriesBase.prototype._getItem=function(t){var e=null,i=null;null!=this.itemsSource?i=null!=this._cv?this._cv.items:this.itemsSource:null!=this._chart.itemsSource&&(i=null!=this._chart.collectionView?this._chart.collectionView.items:this._chart.itemsSource);null!=i&&(e=i[t]);return e};SeriesBase.prototype._getLength=function(){var t=0,e=null;null!=this.itemsSource?e=null!=this._cv?this._cv.items:this.itemsSource:null!=this._chart.itemsSource&&(e=null!=this._chart.collectionView?this._chart.collectionView.items:this._chart.itemsSource);null!=e&&(t=e.length);return t};SeriesBase.prototype._setPointIndex=function(t,e){this._pointIndexes[t]=e};SeriesBase.prototype._getDataRect=function(){var t=this.getValues(0),e=this.getValues(1);if(t){for(var i=NaN,r=NaN,n=NaN,s=NaN,o=t.length,a=0;a<o;a++){var h=t[a];if(wijmo_1.isArray(h)){var l=h,_=Math.min.apply(Math,l),u=Math.max.apply(Math,l);if(isNaN(r)){r=_;s=u}else{_<r&&(r=_);u>s&&(s=u)}}else isFinite(h)&&(isNaN(r)?r=s=h:h<r?r=h:h>s&&(s=h));if(e){var c=e[a];isFinite(c)&&(isNaN(i)?i=n=c:c<i?i=c:h>s&&(n=c))}}if(!e){i=0;n=o-1}if(!isNaN(r))return new wijmo_1.Rect(i,r,n-i,s-r)}return null};SeriesBase.prototype._isCustomAxisX=function(){return!!this._axisX&&(!this._chart||this._axisX!=this.chart.axisX)};SeriesBase.prototype._isCustomAxisY=function(){return!!this._axisY&&(!this._chart||this._axisY!=this.chart.axisY)};SeriesBase.prototype._getAxisX=function(){var t=null;this.axisX?t=this.axisX:this.chart&&(t=this.chart.axisX);return t};SeriesBase.prototype._getAxisY=function(){var t=null;this.axisY?t=this.axisY:this.chart&&(t=this.chart.axisY);return t};SeriesBase.prototype._measureLegendItem=function(t,e){var i=new wijmo_1.Size;i.width=SeriesBase._LEGEND_ITEM_WIDTH;i.height=SeriesBase._LEGEND_ITEM_HEIGHT;if(this._name){var r=t.measureString(e,FlexChartCore._CSS_LABEL,FlexChartCore._CSS_LEGEND);i.width+=r.width;i.height<r.height&&(i.height=r.height)}i.width+=3*SeriesBase._LEGEND_ITEM_MARGIN;i.height+=2*SeriesBase._LEGEND_ITEM_MARGIN;return i};SeriesBase.prototype._drawFunnelLegendItem=function(t,e,i,r,n){t.strokeWidth=1;var s=SeriesBase._LEGEND_ITEM_MARGIN,o=null,a=null;null===o&&(o=this._chart._getColorLight(i));null===a&&(a=this._chart._getColor(i));t.fill=o;t.stroke=a;var h=e.top+.5*e.height,l=SeriesBase._LEGEND_ITEM_WIDTH,_=SeriesBase._LEGEND_ITEM_HEIGHT,u=this._getFunnelLegendName(i);t.drawRect(e.left+s,h-.5*_,l,_,null,n||r);null!=u&&FlexChartCore._renderText(t,u,new wijmo_1.Point(e.left+_+2*s,h),0,1,FlexChartCore._CSS_LABEL,FlexChartCore._CSS_LEGEND)};SeriesBase.prototype._getFunnelLegendName=function(t){var e,i=this._chart;if(i._xlabels&&i._xlabels.length&&t<i._xlabels.length)e=i._xlabels[t];else if(i._xvals&&i._xvals.length&&t<i._xvals.length){e=i._xvals[t];i._xDataType===wijmo_1.DataType.Date&&(e=FlexChartCore._fromOADate(e))}null==e&&(e=this.name);return e.toString()};SeriesBase.prototype._drawLegendItem=function(t,e,i,r,n,s){t.strokeWidth=1;var o=SeriesBase._LEGEND_ITEM_MARGIN,a=null,h=null;null===a&&(a=this._chart._getColorLight(this._chart.series.indexOf(this)));null===h&&(h=this._chart._getColor(this._chart.series.indexOf(this)));t.fill=a;t.stroke=h;var l=e.top+.5*e.height,_=SeriesBase._LEGEND_ITEM_WIDTH,u=SeriesBase._LEGEND_ITEM_HEIGHT;switch(i){case ChartType.Area:case ChartType.SplineArea:case ChartType.StepArea:t.drawRect(e.left+o,l-.5*u,_,u,null,n);break;case ChartType.Bar:case ChartType.Column:t.drawRect(e.left+o,l-.5*u,_,u,null,s||n);break;case ChartType.Scatter:case ChartType.Bubble:var c=.3*_,p=.3*u;this.symbolMarker==Marker.Box?t.drawRect(e.left+o+.5*_-c,l-p,2*c,2*p,null,s||n):t.drawEllipse(e.left+.5*_+o,l,c,p,null,s||n);break;case ChartType.Line:case ChartType.Spline:case ChartType.Step:t.drawLine(e.left+o,l,e.left+_+o,l,null,n);break;case ChartType.LineSymbols:case ChartType.SplineSymbols:case ChartType.StepSymbols:c=.3*_,p=.3*u;this.symbolMarker==Marker.Box?t.drawRect(e.left+o+.5*_-c,l-p,2*c,2*p,null,s||n):t.drawEllipse(e.left+.5*_+o,l,c,p,null,s||n);t.drawLine(e.left+o,l,e.left+_+o,l,null,n);break;case ChartType.Candlestick:case ChartType.HighLowOpenClose:t.drawLine(e.left+o,l,e.left+_+o,l,null,s||n)}this._name&&FlexChartCore._renderText(t,r,new wijmo_1.Point(e.left+u+2*o,l),0,1,FlexChartCore._CSS_LABEL,FlexChartCore._CSS_LEGEND)};SeriesBase.prototype._cvCollectionChanged=function(t,e){this._clearValues();this._invalidate()};SeriesBase.prototype._cvCurrentChanged=function(t,e){this._chart&&this._chart._notifyCurrentChanged&&this._invalidate()};SeriesBase.prototype._bindValues=function(t,e,i){void 0===i&&(i=!1);var r,n,s;if(null!=t){var o=t.length;r=new Array(t.length);for(var a=e?new wijmo_1.Binding(e):null,h=0;h<o;h++){s=null;var l=t[h];null!=a&&(l=a.getValue(l));if(wijmo_1.isArray(l)&&l.length>0){s=l;l=l[0]}if(wijmo_1.isNumber(l)){r[h]=l;n=wijmo_1.DataType.Number}else if(wijmo_1.isDate(l)){r[h]=l.valueOf();n=wijmo_1.DataType.Date}else if(i&&l){r[h]=h;n=wijmo_1.DataType.Number}wijmo_1.isArray(s)&&s.length>0&&(r[h]=s)}}var _=new DataArray;_.values=r;_.dataType=n;return _};SeriesBase.prototype._invalidate=function(){this._chart&&this._chart.invalidate()};SeriesBase.prototype._indexToPoint=function(t){if(t>=0&&t<this._values.length){var e=this._values[t],i=this._xvalues?this._xvalues[t]:t;return new wijmo_1.Point(i,e)}return null};SeriesBase.prototype._getSymbolFill=function(t){var e=null;this.symbolStyle&&(e=this.symbolStyle.fill);!e&&this.style&&(e=this.style.fill);!e&&this.chart&&(e=this.chart._getColorLight(t));return e};SeriesBase.prototype._getSymbolStroke=function(t){var e=null;this.symbolStyle&&(e=this.symbolStyle.stroke);!e&&this.style&&(e=this.style.stroke);!e&&this.chart&&(e=this.chart._getColor(t));return e};SeriesBase.prototype._getAltSymbolStroke=function(t){var e=null;this.altStyle&&(e=this.altStyle.stroke);return e};SeriesBase.prototype._getAltSymbolFill=function(t){var e=null;this.altStyle&&(e=this.altStyle.fill);return e};SeriesBase.prototype._renderLabels=function(t,e,i,r){this._plotter&&this._plotter._renderLabels(t,this,e,i,r)};SeriesBase._LEGEND_ITEM_WIDTH=10;SeriesBase._LEGEND_ITEM_HEIGHT=10;SeriesBase._LEGEND_ITEM_MARGIN=4;SeriesBase._DEFAULT_SYM_SIZE=10;return SeriesBase}();exports.SeriesBase=SeriesBase;var _BasePlotter=function(){function _BasePlotter(){this._DEFAULT_WIDTH=2;this._DEFAULT_SYM_SIZE=10;this.clipping=!0}_BasePlotter.prototype.clear=function(){this.seriesCount=0;this.seriesIndex=0};_BasePlotter.prototype._renderLabels=function(t,e,i,r,n){var s=i.length,o=r.dataLabel,a=o.border,h=o.offset,l=o.connectingLine;void 0===h&&(h=l?16:0);a&&(h-=2);for(var _=0;_<s;_++){var u=i[_],c=wijmo_1.asType(u.tag,_DataPoint,!0);c&&!u.ignoreLabel&&this._renderLabel(t,u,c,r,o,e,h,n)}};_BasePlotter.prototype._renderLabel=function(t,e,i,r,n,s,o,a){var h=null==n.position?LabelPosition.Top:n.position,l=n.border,_=n.connectingLine,u=new HitTestInfo(r,p);u._setDataPoint(i);var c=r._getLabelContent(u,n.content),p=this._getLabelPoint(s,i);this._getPointAndPosition(p,h,e,r);if(r._plotRect.contains(p)){var f=new DataLabelRenderEventArgs(t,u,p,c);if(n.onRendering)if(n.onRendering(f)){c=f.text;p=f.point}else c=null;if(c){var d=this._renderLabelAndBorder(t,c,h,o,p,_,2,l);if(d){var g=new _RectArea(d);g.tag=i;a.push(g)}}t.cssPriority=!0}};_BasePlotter.prototype._getPointAndPosition=function(t,e,i,r){if(i instanceof _RectArea){var n=i;r._isRotated()?t.y=n.rect.top+.5*n.rect.height:t.x=n.rect.left+.5*n.rect.width}};_BasePlotter.prototype._getLabelPoint=function(t,e){var i=t._getAxisX(),r=t._getAxisY();return new wijmo_1.Point(i.convert(e.dataX),r.convert(e.dataY))};_BasePlotter.prototype._renderLabelAndBorder=function(t,e,i,r,n,s,o,a){var h,l=exports.DataLabelClsNames.label,_=exports.DataLabelClsNames.line,u=exports.DataLabelClsNames.border,c=FlexChartCore._CSS_DATA_LABELS;switch(i){case LabelPosition.Top:s&&t.drawLine(n.x,n.y,n.x,n.y-r,_);n.y-=o+r;h=FlexChartCore._renderText(t,e,n,1,2,l,c);break;case LabelPosition.Bottom:s&&t.drawLine(n.x,n.y,n.x,n.y+r,_);n.y+=o+r;h=FlexChartCore._renderText(t,e,n,1,0,l,c);break;case LabelPosition.Left:s&&t.drawLine(n.x,n.y,n.x-r,n.y,_);n.x-=o+r;h=FlexChartCore._renderText(t,e,n,2,1,l,c);break;case LabelPosition.Right:s&&t.drawLine(n.x,n.y,n.x+r,n.y,_);n.x+=o+r;h=FlexChartCore._renderText(t,e,n,0,1,l,c);break;case LabelPosition.Center:h=FlexChartCore._renderText(t,e,n,1,1,l,c)}a&&h&&t.drawRect(h.left-o,h.top-o,h.width+2*o,h.height+2*o,u);return h};_BasePlotter.prototype.getOption=function(t,e){var i=this.chart._options;e&&(i=i?i[e]:null);if(i&&!wijmo_1.isUndefined(i[t])&&null!==i[t])return i[t]};_BasePlotter.prototype.getNumOption=function(t,e){var i=this.chart._options;e&&(i=i?i[e]:null);if(i&&i[t])return wijmo_1.asNumber(i[t],!0)};_BasePlotter.prototype.getItemFormatter=function(t){if(t instanceof SeriesBase){var e=t;return e.itemFormatter?e.itemFormatter:this.chart.itemFormatter}return this.chart.itemFormatter};_BasePlotter.cloneStyle=function(t,e){if(!t)return t;var i={};for(var r in t)e&&e.indexOf(r)>=0||(i[r]=t[r]);return i};_BasePlotter.prototype.isValid=function(t,e,i,r){return isFinite(t)&&isFinite(e)&&FlexChartCore._contains(this.chart._plotRect,new wijmo_1.Point(t,e))};_BasePlotter.prototype.load=function(){};_BasePlotter.prototype.unload=function(){};_BasePlotter.prototype._createSteps=function(t,e,i){var r=this.getOption("position","step"),n=i||t.length,s=[],o=[],a=this.chart._isRotated();if("center"==r)if(a)for(var h=0;h<n;h++){var l=0==h?e[h+1]-e[h]:e[h]-e[h-1],_=h==n-1?e[h]-e[h-1]:e[h+1]-e[h];s.push(t[h]);o.push(e[h]-.5*l);s.push(t[h]);o.push(e[h]+.5*_)}else for(h=0;h<n;h++){var u=0==h?t[h+1]-t[h]:t[h]-t[h-1],c=h==n-1?t[h]-t[h-1]:t[h+1]-t[h];s.push(t[h]-.5*u);o.push(e[h]);s.push(t[h]+.5*c);o.push(e[h])}else if("end"==r)for(h=0;h<n;h++){if(h>0)if(a){s.push(t[h]);o.push(e[h-1])}else{s.push(t[h-1]);o.push(e[h])}s.push(t[h]);o.push(e[h])}else for(h=0;h<n;h++){s.push(t[h]);o.push(e[h]);if(h<n-1)if(a){s.push(t[h]);o.push(e[h+1])}else{s.push(t[h+1]);o.push(e[h])}}return{x:s,y:o}};return _BasePlotter}();exports._BasePlotter=_BasePlotter;var Series=function(t){__extends(Series,t);function Series(){return null!==t&&t.apply(this,arguments)||this}Object.defineProperty(Series.prototype,"chartType",{get:function(){return this._chartType},set:function(t){if((t=wijmo_1.asEnum(t,ChartType,!0))!=this._chartType){this._chartType=t;this._invalidate()}},enumerable:!0,configurable:!0});return Series}(SeriesBase);exports.Series=Series;var FlexPie=function(t){__extends(FlexPie,t);function FlexPie(e,i){var r=t.call(this,e,null,!0)||this;r._areas=[];r._keywords=new _KeyWords;r._startAngle=0;r._innerRadius=0;r._offset=0;r._reversed=!1;r._isAnimated=!1;r._selectedItemPosition=Position.None;r._selectedItemOffset=0;r._pieGroups=[];r._rotationAngles=[];r._centers=[new wijmo_1.Point];r._selectedOffset=new wijmo_1.Point;r._selectedIndex=-1;r._angles=[];r._colRowLens=[];r._titles=void 0;r._values=[];r._labels=[];r._pels=[];r._sum=0;r._sums=[];r._bindingSeparator=",";r.applyTemplate(wijmo_1.ControlClsNames.hostElement+" "+exports.FlexChartClsNames.hostElement+" "+exports.FlexPieClsNames.hostElement,null,null);r._currentRenderEngine=new _SvgRenderEngine(r.hostElement);r._legend=new Legend(r);r._tooltip=new ChartTooltip;r._tooltip.content="<b>{name}</b><br/>{value}";r._tooltip.showDelay=0;r._lbl=new PieDataLabel;r._lbl._chart=r;var n=r;r.addEventListener(r.hostElement,"mousemove",(function(t){var e=n._tooltip;if(e.content&&!n.isTouching){var i=n.hitTest(t,void 0,!0);if(i.distance<=e.threshold){var r=n._getLabelContent(i,n.tooltip.content);n._showToolTip(r,new wijmo_1.Rect(t.clientX,t.clientY,5,5))}else n._hideToolTip()}}));r.addEventListener(r.hostElement,"click",(function(t){var e=!0;if(n.selectionMode==SelectionMode.Point){var i=n.hitTest(t),r=FlexChartBase._SELECTION_THRESHOLD;n.tooltip&&n.tooltip.threshold&&(r=n.tooltip.threshold);if(i.distance<=r){i.pointIndex!=n._selectionIndex&&n.selectedItemPosition!=Position.None&&(e=!1);i.pointIndex!=n._selectionIndex&&n._select(i.pointIndex,!0)}else n._selectedIndex>=0&&n._select(null)}if(e&&n.isTouching){var s=n._tooltip;if(s.content){if((i=n.hitTest(t,void 0,!0)).distance<=s.threshold){var o=n._getLabelContent(i,n.tooltip.content);n._showToolTip(o,new wijmo_1.Rect(t.clientX,t.clientY,5,5))}else n._hideToolTip()}}}));r.addEventListener(r.hostElement,"mouseleave",(function(t){n._hideToolTip()}));r.deferUpdate((function(){return r.initialize(i)}));return r}Object.defineProperty(FlexPie.prototype,"binding",{get:function(){return this._binding},set:function(t){if(t!=this._binding){this._binding=wijmo_1.asString(t,!0);this._bindChart()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"bindingName",{get:function(){return this._bindingName},set:function(t){if(t!=this._bindingName){this._bindingName=wijmo_1.asString(t,!0);this._bindChart()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"startAngle",{get:function(){return this._startAngle},set:function(t){if(t!=this._startAngle){this._startAngle=wijmo_1.asNumber(t,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"offset",{get:function(){return this._offset},set:function(t){if(t!=this._offset){this._offset=wijmo_1.asNumber(t,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"innerRadius",{get:function(){return this._innerRadius},set:function(t){if(t!=this._innerRadius){this._innerRadius=wijmo_1.asNumber(t,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"innerTextStyle",{get:function(){return this._innerTextStyle},set:function(t){if(t!=this._innerText){this._innerTextStyle=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"innerText",{get:function(){return this._innerText},set:function(t){if(t!=this._innerText){this._innerText=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"reversed",{get:function(){return this._reversed},set:function(t){if(t!=this._reversed){this._reversed=wijmo_1.asBoolean(t,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"selectedItemPosition",{get:function(){return this._selectedItemPosition},set:function(t){if((t=wijmo_1.asEnum(t,Position,!0))!=this._selectedItemPosition){this._selectedItemPosition=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"selectedItemOffset",{get:function(){return this._selectedItemOffset},set:function(t){if(t!=this._selectedItemOffset){this._selectedItemOffset=wijmo_1.asNumber(t,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"isAnimated",{get:function(){return this._isAnimated},set:function(t){t!=this._isAnimated&&(this._isAnimated=t)},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"tooltip",{get:function(){return this._tooltip},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"dataLabel",{get:function(){return this._lbl},set:function(t){if(t!=this._lbl){this._lbl=t;this._lbl&&(this._lbl._chart=this)}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){if(t!=this._selectedIndex){var e=wijmo_1.asNumber(t,!0);this._select(e,!0)}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"titles",{get:function(){return this._titles},set:function(t){if(t!==this._titles){this._titles=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"chartsPerLine",{get:function(){return this._chartsPerLine},set:function(t){if(t!=this._chartsPerLine){this._chartsPerLine=wijmo_1.asNumber(t,!0,!0);this.invalidate()}},enumerable:!0,configurable:!0});FlexPie.prototype._getLabelsForLegend=function(){return this._labels};FlexPie.prototype.hitTest=function(t,e,i){var r=this._toControl(t,e),n=new HitTestInfo(this,r),s=null;if(FlexChartBase._contains(this._rectHeader,r))n._chartElement=ChartElement.Header;else if(FlexChartBase._contains(this._rectFooter,r))n._chartElement=ChartElement.Footer;else if(FlexChartBase._contains(this._rectLegend,r)){n._chartElement=ChartElement.Legend;null!==(s=this.legend._hitTest(r))&&s>=0&&s<this._areas.length&&n._setData(null,s)}else if(FlexChartBase._contains(this._rectChart,r)){this._hitTestData(n,r,i);n._chartElement=ChartElement.ChartArea}else n._chartElement=ChartElement.None;return n};FlexPie.prototype._hitTestData=function(t,e,i){for(var r,n=this._areas.length,s=NaN,o=0;o<n;o++){var a=e.clone(),h=this._areas[o],l=this._rotationAngles[h.gi];if(0!=l){var _=this._centers[h.gi],u=_.x,c=_.y,p=-u+a.x,f=-c+a.y,d=Math.sqrt(p*p+f*f),g=Math.atan2(f,p)-l*Math.PI/180;a.x=u+d*Math.cos(g);a.y=c+d*Math.sin(g)}if(o==this._selectedIndex){a.x-=this._selectedOffset.x;a.y-=this._selectedOffset.y}var m=this._areas[o];if(m.contains(a)){if(!0===i){s=0;r=m;continue}t._setDataGroup(h.gi,m.tag);t._dist=0;if(o!=this._selectedIndex)break}var x=m.distance(a);if(void 0!==x&&(isNaN(s)||x<s||!0===i&&this._isSmallSegment(x,r,m))){s=x;r=m}}if(0!==t._dist&&null!=r){t._setDataGroup(r.gi,r.tag);t._dist=s}};FlexPie.prototype._isSmallSegment=function(t,e,i){return t<=.5*this.tooltip.threshold&&Math.abs(i.sweep)<=.035&&Math.abs(e.sweep/i.sweep)>=10};FlexPie.prototype._performBind=function(){this._initData();if(this._cv){this._selectionIndex=this._cv.currentPosition;var t=this._cv.items;if(t){for(var e=t.length,i=this._getBindings(),r=0;r<i.length;r++){this._values[r]=[];this._sums[r]=0}for(var n=0;n<e;n++){var s=t[n];for(r=0;r<i.length;r++)this._sums[r]+=Math.abs(this._getBindData(s,this._values[r],0==r?this._labels:null,i[r],this.bindingName))}}}};FlexPie.prototype._getBindings=function(){var t=[],e=this.binding;if(e){var i=this._bindingSeparator;i&&(t=e.split(i))}return t};FlexPie.prototype._initData=function(){this._sum=0;this._sums=[];this._values=[];this._labels=[]};FlexPie.prototype._getBindData=function(t,e,i,r,n){var s,o=0,a=r?new wijmo_1.Binding(r):null;a&&(s=a.getValue(t));o=0;wijmo_1.isNumber(s)?o=wijmo_1.asNumber(s):s&&(o=parseFloat(s.toString()));if(!isNaN(o)&&isFinite(o))e.push(o);else{o=0;e.push(o)}var h=n?new wijmo_1.Binding(n):null;if(i)if(h&&t){var l=h.getValue(t);l&&(l=l.toString());i.push(l)}else i.push(o.toString());return o};FlexPie.prototype._render=function(e,i,r){void 0===i&&(i=!0);void 0===r&&(r=null);this._selectionAnimationID&&clearInterval(this._selectionAnimationID);this.onRendering(new RenderEventArgs(e));t.prototype._render.call(this,e,i,r)};FlexPie.prototype._prepareRender=function(){this._areas=[]};FlexPie.prototype._renderChart=function(t,e,i){var r=this._rectChart.clone(),n=(new wijmo_1.Size(r.width,r.height),e.width),s=e.height,o=this._parseMargin(this.plotMargin),a=this.dataLabel,h=a.content&&a.position==PieLabelPosition.Outside,l=h?(wijmo_1.isNumber(a.offset)?a.offset:0)+24:0;isNaN(o.left)&&(o.left=h?l:FlexPie._MARGIN);isNaN(o.right)&&(o.right=h?l:FlexPie._MARGIN);isNaN(o.top)&&(o.top=h?l:FlexPie._MARGIN);isNaN(o.bottom)&&(o.bottom=h?l:FlexPie._MARGIN);e.top+=o.top;s=e.height-(o.top+o.bottom);e.height=s>0?s:24;e.left+=o.left;n=e.width-(o.left+o.right);e.width=n>0?n:24;var _=this._getBindings(),u=this.titles;void 0===u&&_.length>1&&(u=_);var c=this._layout(t,e,u,_.length);this._angles=[];this._pels=[];this._pieGroups=[];this._rotationAngles=[];for(var p=0;p<_.length;p++){var f=c[p];u&&p<u.length&&u[p]&&FlexChartBase._renderText(t,u[p],new wijmo_1.Point(f.left+.5*f.width,f.top),1,2,FlexPie._CSS_GROUP_TITLE);var d=t.startGroup(exports.FlexPieClsNames.sliceGroup,null,!0);this._pieGroups.push(d);this._renderData(t,f,p,d);t.endGroup();this._rotationAngles.push(0)}this._highlightCurrent();this.innerText&&this._renderInnerText(t);this.dataLabel.content&&this.dataLabel.position!=PieLabelPosition.None&&this._renderLabels(t);this.onRendered(new RenderEventArgs(t))};FlexPie.prototype._layout=function(t,e,i,r){var n=0,s=r,o=1,a=0;if(i)for(var h=0;h<i.length;h++)a=Math.max(a,t.measureString(i[h],FlexPie._CSS_GROUP_TITLE).height);var l=Math.floor(this.chartsPerLine);if(l>0){s=Math.min(r,l);o=Math.ceil(r/s);var _=Math.floor(e.width/s),u=Math.floor(e.height/o)-a;n=Math.min(_,u)}else for(var c=1;c<=r;c++){var p=Math.floor((r+(c-1))/c);_=Math.floor(e.width/c),u=Math.floor(e.height/p);(u-=a)<_&&(_=u);if(_>n){n=_;s=c;o=p}}for(var f=[],d=.5*(e.width-n*s),g=.5*(e.height-(n+a)*o),m=0;m<o;m++)for(var x=0;x<s;x++)f.push(new wijmo_1.Rect(e.left+n*x+8+d,e.top+(n+a)*m+8+g+a,n-16,n-16));return f};FlexPie.prototype._getDesiredLegendSize=function(t,e,i,r){var n=new wijmo_1.Size,s=(new wijmo_1.Size(i,r),this._getLabelsForLegend()),o=s.length,a=0,h=0;this.legend.scrollbar;this._colRowLens=[];for(var l=0;l<o;l++){var _=this._measureLegendItem(t,s[l]);if(e){if(h+_.height>r&&!this.legend.scrollbar){n.height=r;this._colRowLens.push(a);a=0;h=0}a<_.width&&(a=_.width);h+=_.height}else{if(a+_.width>i&&!this.legend.scrollbar){n.width=i;this._colRowLens.push(h);h=0;a=0}h<_.height&&(h=_.height);a+=_.width}}if(e){n.height<h&&(n.height=h);this._colRowLens.push(a);n.width=this._colRowLens.reduce((function(t,e){return t+e}),0)}else{n.width<a&&(n.width=a);this._colRowLens.push(h);n.height=this._colRowLens.reduce((function(t,e){return t+e}),0)}return n};FlexPie.prototype._renderLegend=function(t,e,i,r,n,s){for(var o=new wijmo_1.Rect(e.x,e.y,n,s),a=this._getLabelsForLegend(),h=a.length,l=0,_=e.clone(),u=0;u<h;u++){var c=this._measureLegendItem(t,a[u]);if(r){if(_.y+c.height>o.bottom+1&&!this.legend.scrollbar){_.x+=this._colRowLens[l];l++;_.y=e.y}}else if(_.x+c.width>o.right+1&&!this.legend.scrollbar){_.y+=this._colRowLens[l];l++;_.x=e.x}var p=new wijmo_1.Rect(_.x,_.y,c.width,c.height);this._drawLegendItem(t,p,u,a[u]);i.push(p);r?_.y+=c.height:_.x+=c.width}};FlexPie.prototype._renderData=function(t,e,i,r){var n=this._sums[i],s=this.startAngle+180,o=this.innerRadius,a=this.offset;o>1&&(o=1);if(n>0){var h=s*Math.PI/180,l=e.left+.5*e.width,_=e.top+.5*e.height,u=Math.min(.5*e.width,.5*e.height);this._centers[i]=new wijmo_1.Point(l,_);var c=Math.max(a,this.selectedItemOffset);c>0&&(a*=u/=1+c);this._radius=u;var p=o*u;this._renderPie(t,i,u,p,h,a)}};FlexPie.prototype._renderPie=function(t,e,i,r,n,s){this._renderSlices(t,this._values[e],this._sums[e],e,i,r,n,2*Math.PI,s)};FlexPie.prototype._getCenter=function(){return this._centers[0]};FlexPie.prototype._renderSlices=function(t,e,i,r,n,s,o,a,h){for(var l,_,u,c=e.length,p=0,f=o,d=1==this.reversed,g=this._centers[r],m=0;m<c;m++)e[m]>0&&p++;var x=1===p?360:359.9/360;for(m=0;m<c;m++){_=g.x;u=g.y;l=t.startGroup(exports.FlexPieClsNames.slice);t.fill=this._getColorLight(m);t.stroke=this._getColor(m);var y=Math.abs(e[m]),b=Math.abs(y-i)<1e-10?a:a*y/i;b=Math.min(b,a*x);var v=d?f-.5*b:f+.5*b;if(h>0&&b<a){_+=h*Math.cos(v);u+=h*Math.sin(v)}this._renderSlice(t,_,u,v,r,m,n,s,f,b,a);d?f-=b:f+=b;t.endGroup();this._pels.push(l)}};FlexPie.prototype._renderSlice=function(t,e,i,r,n,s,o,a,h,l,_){var u=this,c=!!this.reversed;this._angles.push(r);if(this.itemFormatter){var p=new HitTestInfo(this,new wijmo_1.Point(e+o*Math.cos(r),i+o*Math.sin(r)),ChartElement.SeriesSymbol);p._setData(null,s);this.itemFormatter(t,p,(function(){u._drawSlice(t,n,s,c,e,i,o,a,h,l)}));t.cssPriority=!0}else this._drawSlice(t,n,s,c,e,i,o,a,h,l)};FlexPie.prototype._getSelectedItemOffset=function(t,e){var i=0,r=0,n=0;t==this._selectedIndex&&this.selectedItemOffset>0&&(n=this.selectedItemOffset);if(n>0){i=Math.cos(e)*n*this._radius;r=Math.sin(e)*n*this._radius}return{x:i,y:r}};FlexPie.prototype._renderInnerText=function(t){for(var e=this.innerText,i=this.innerTextStyle,r=0;r<this._centers.length;r++){var n=this._centers[r],s=void 0;if(s=wijmo_1.isFunction(e)?e(r):wijmo_1.isArray(e)?wijmo_1.asString(e[r]):wijmo_1.asString(e)){s=wijmo_1.format(s,{total:this._sums[r],binding:this._getBindings()[r]});i&&(t.cssPriority=!1);FlexPie._renderText(t,s,n,1,1,FlexChartBase._CSS_TITLE,null,i);t.cssPriority=!0}}};FlexPie.prototype._renderLabels=function(t){var e=this._areas.length,i=this.dataLabel,r=i.position,n=exports.DataLabelClsNames.labels,s=exports.DataLabelClsNames.label,o=exports.DataLabelClsNames.border,a=exports.DataLabelClsNames.line,h=this._rotationAngles,l=i.connectingLine,_=i.offset?i.offset:0;t.stroke="null";t.fill="transparent";t.strokeWidth=1;t.startGroup(n);for(var u=0;u<e;u++){var c=this._areas[u];if(c){var p=c.radius,f=c.langle+h[c.gi],d=1,g=1;if(r==PieLabelPosition.Center||r===PieLabelPosition.Radial||r===PieLabelPosition.Circular)p*=.5*(1+(c.innerRadius||0)/c.radius);else{if((f=_Math.clampAngle(f))<=-170||f>=170){d=2;g=1}else if(f>=-100&&f<=-80){d=1;g=2}else if(f>=-10&&f<=10){d=0;g=1}else if(f>=80&&f<=100){d=1;g=0}else if(-180<f&&f<-90){d=2;g=2}else if(-90<=f&&f<0){d=0;g=2}else if(0<f&&f<90){d=0;g=0}else if(90<f&&f<180){d=2;g=0}if(r==PieLabelPosition.Inside){d=2-d;g=2-g}}f*=Math.PI/180;var m=c.gi?u-c.gi*this._values[0].length:u,x=this._getSelectedItemOffset(m,f),y=x.x,b=x.y,v=p;r==PieLabelPosition.Outside?v+=_:r==PieLabelPosition.Inside&&(v-=_);var w=c.center.x,S=c.center.y,C=this._centers[c.gi],P=w-C.x,A=S-C.y;if(0!=this._rotationAngles[c.gi]){var M=Math.sqrt(P*P+A*A),T=Math.atan2(A,P)+this._rotationAngles[c.gi]*Math.PI/180;w=C.x+M*Math.cos(T);S=C.y+M*Math.sin(T)}var L=new wijmo_1.Point(w+y+v*Math.cos(f),S+b+v*Math.sin(f));if(i.border&&r!=PieLabelPosition.Center){0==d?L.x+=2:2==d&&(L.x-=2);0==g?L.y+=2:2==g&&(L.y-=2)}var j=new HitTestInfo(this,L);j._setDataGroup(c.gi,c.tag);var E=this._getLabelContent(j,i.content),F=new DataLabelRenderEventArgs(t,j,L,E);if(i.onRendering)if(i.onRendering(F)){E=F.text;L=F.point}else E=null;if(E){var k,N=180*Math.atan2(S-L.y,w-L.x)/Math.PI;N=(N+360)%360;if(r===PieLabelPosition.Radial||r===PieLabelPosition.Circular){if(r===PieLabelPosition.Radial)N>90&&N<270&&(N+=180);else{N>180&&N<360&&(N+=180);N-=90}(k=FlexChartBase._renderRotatedText(t,E,L,d,g,L,N,s).getBBox()).left=k.x;k.top=k.y}else k=FlexChartBase._renderText(t,E,L,d,g,s);i.border&&t.drawRect(k.left-2,k.top-2,k.width+4,k.height+4,o);if(l){var I=new wijmo_1.Point(w+y+p*Math.cos(f),S+b+p*Math.sin(f));t.drawLine(L.x,L.y,I.x,I.y,a)}}t.cssPriority=!0}}t.endGroup()};FlexPie.prototype._drawSlice=function(t,e,i,r,n,s,o,a,h,l){var _;if(r)if(a>0){0!=l&&t.drawDonutSegment(n,s,o,a,h-l,l);(_=new _DonutSegment(new wijmo_1.Point(n,s),o,a,h-l,l,this.startAngle)).tag=i;this._areas.push(_)}else{0!=l&&t.drawPieSegment(n,s,o,h-l,l);(_=new _PieSegment(new wijmo_1.Point(n,s),o,h-l,l,this.startAngle)).tag=i;this._areas.push(_)}else{if(a>0){0!=l&&t.drawDonutSegment(n,s,o,a,h,l);(_=new _DonutSegment(new wijmo_1.Point(n,s),o,a,h,l,this.startAngle)).tag=i;this._areas.push(_)}else{0!=l&&t.drawPieSegment(n,s,o,h,l);(_=new _PieSegment(new wijmo_1.Point(n,s),o,h,l,this.startAngle)).tag=i;this._areas.push(_)}h+=l}_&&(_.gi=e)};FlexPie.prototype._measureLegendItem=function(t,e){var i=new wijmo_1.Size;i.width=Series._LEGEND_ITEM_WIDTH;i.height=Series._LEGEND_ITEM_HEIGHT;if(e){var r=t.measureString(e,FlexChartBase._CSS_LABEL,FlexChartBase._CSS_LEGEND);i.width+=r.width;i.height<r.height&&(i.height=r.height)}i.width+=3*Series._LEGEND_ITEM_MARGIN;i.height+=2*Series._LEGEND_ITEM_MARGIN;return i};FlexPie.prototype._drawLegendItem=function(t,e,i,r){t.strokeWidth=1;var n=Series._LEGEND_ITEM_MARGIN,s=null,o=null;null===s&&(s=this._getColorLight(i));null===o&&(o=this._getColor(i));t.fill=s;t.stroke=o;var a=e.top+.5*e.height,h=Series._LEGEND_ITEM_WIDTH,l=Series._LEGEND_ITEM_HEIGHT;t.drawRect(e.left+n,a-.5*l,h,l,null);null!=r&&FlexChartBase._renderText(t,r.toString(),new wijmo_1.Point(e.left+l+2*n,a),0,1,FlexChartBase._CSS_LABEL)};FlexPie.prototype._getLabelContent=function(t,e){return wijmo_1.isString(e)?this._keywords.replace(e,t):wijmo_1.isFunction(e)?e(t):null};FlexPie.prototype._select=function(t,e){void 0===e&&(e=!1);this._highlight(!1,this._selectionIndex);this._selectionIndex=t;if(this.selectionMode==SelectionMode.Point){var i=this._cv;if(i){this._notifyCurrentChanged=!1;i.moveCurrentToPosition(t);this._notifyCurrentChanged=!0}}if(null==t){this._selectedIndex=-1;this.invalidate()}else if(this.isAnimated&&this.selectedItemPosition!=Position.None||!(this.selectedItemOffset>0||this.selectedItemPosition!=Position.None))this._highlight(!0,this._selectionIndex,e);else{this._selectedIndex=t;this.invalidate()}this.onSelectionChanged()};FlexPie.prototype._highlightCurrent=function(){if(this.selectionMode!=SelectionMode.None){var t=-1,e=this._cv;e&&(t=e.currentPosition);this._highlight(!0,t)}};FlexPie.prototype._highlight=function(t,e,i){void 0===i&&(i=!1);if(this.selectionMode==SelectionMode.Point&&null!=e&&e>=0)if(t){for(var r=[],n=0;n<this._pieGroups.length;n++){if(c=this._pels[e+n*this._values[0].length]){c.parentNode.appendChild(c);var s=this._find(c,["ellipse"]);this._highlightItems(this._find(c,["path","ellipse"]),FlexChartBase._CSS_SELECTION,t)}var o=this._angles[e+n*this._values[0].length];if(this.selectedItemPosition!=Position.None&&0!=o){var a=0;this.selectedItemPosition==Position.Left?a=180:this.selectedItemPosition==Position.Top?a=-90:this.selectedItemPosition==Position.Bottom&&(a=90);var h=a*Math.PI/180-o;h*=180/Math.PI;if(i&&this.isAnimated)r.push(h);else{this._rotationAngles[n]=h;this._pieGroups[n].transform.baseVal.getItem(0).setRotate(h,this._centers[n].x,this._centers[n].y)}}var l=this.selectedItemOffset;if(l>0&&s&&0==s.length){var _=this._selectedOffset.x=Math.cos(o)*l*this._radius,u=this._selectedOffset.y=Math.sin(o)*l*this._radius;c&&c.setAttribute("transform","translate("+_.toFixed()+","+u.toFixed()+")")}this._selectedIndex=e}r.length>0&&this._animateSelectionAngle(r,.5)}else{for(n=0;n<this._pieGroups.length;n++){var c;if(c=this._pels[e+n*this._values[0].length]){c.parentNode.insertBefore(c,c.parentNode.childNodes.item(e));c.removeAttribute("transform");this._highlightItems(this._find(c,["path","ellipse"]),FlexChartBase._CSS_SELECTION,t)}}this._selectedIndex==e&&(this._selectedIndex=-1)}};FlexPie.prototype._animateSelectionAngle=function(t,e){var i=this,r=i._pieGroups;i._selectionAnimationID&&clearInterval(this._selectionAnimationID);this._selectionAnimationID=wijmo_1.animate((function(e){if(r==i._pieGroups){for(var n=0;n<r.length;n++){var s=_Math.clampAngle(i._rotationAngles[n]),o=_Math.clampAngle(t[n])-s,a=s;i._rotationAngles[n]=s=a+o*e;r[n].transform.baseVal.getItem(0).setRotate(s,i._centers[n].x,i._centers[n].y)}1==e&&clearInterval(i._selectionAnimationID);e>.99&&(i.selectedItemOffset>0||i.selectedItemPosition!=Position.None)&&i.invalidate()}}),1e3*e)};FlexPie.prototype._getHitTestItem=function(t){var e=null,i=null;(e=null!=this._cv?this._cv.items:this.itemsSource)&&t<e.length&&(i=e[t]);return i};FlexPie.prototype._getHitTestValue=function(t,e){null==e&&(e=0);return this._values[e][t]};FlexPie.prototype._getHitTestLabel=function(t){return this._labels[t]};FlexPie._MARGIN=4;FlexPie._CSS_GROUP_TITLE=exports.FlexChartClsNames.label;return FlexPie}(FlexChartBase);exports.FlexPie=FlexPie;var _Math=function(){function _Math(){}_Math.clampAngle=function(t,e){void 0===e&&(e=0);var i=(t+180)%360-180;i<-180+(e<0?e+360:e)&&(i+=360);return i};return _Math}(),_PieSegment=function(){function _PieSegment(t,e,i,r,n){void 0===n&&(n=0);this._isFull=!1;this._center=t;this._radius=e;this._originAngle=i;this._originSweep=r;r>=2*Math.PI&&(this._isFull=!0);this._sweep=.5*r*180/Math.PI;this._angle=_Math.clampAngle(180*i/Math.PI+this._sweep);this._radius2=e*e;this._startAngle=n}_PieSegment.prototype.contains=function(t){var e=t.x-this._center.x,i=t.y-this._center.y;if(e*e+i*i<=this._radius2){var r=180*Math.atan2(i,e)/Math.PI,n=_Math.clampAngle(this._angle,this._startAngle)-_Math.clampAngle(r,this._startAngle);if(this._isFull||Math.abs(n)<=this._sweep)return!0}return!1};_PieSegment.prototype.distance=function(t){if(this.contains(t))return 0;var e=t.x-this._center.x,i=t.y-this._center.y,r=e*e+i*i,n=180*Math.atan2(i,e)/Math.PI,s=_Math.clampAngle(this._angle,this._startAngle)-_Math.clampAngle(n,this._startAngle);if(this._isFull||Math.abs(s)<=this._sweep)return Math.sqrt(r)-this._radius;var o=this.center.clone();o.x+=this.radius*Math.cos(this._originAngle);o.y+=this.radius*Math.sin(this._originAngle);var a=this.center.clone();a.x+=this.radius*Math.cos(this._originAngle+this._originSweep);a.y+=this.radius*Math.sin(this._originAngle+this._originSweep);var h=FlexChartCore._dist(t,this.center,o),l=FlexChartCore._dist(t,this.center,a);return Math.min(h,l)};Object.defineProperty(_PieSegment.prototype,"center",{get:function(){return this._center},enumerable:!0,configurable:!0});Object.defineProperty(_PieSegment.prototype,"radius",{get:function(){return this._radius},enumerable:!0,configurable:!0});Object.defineProperty(_PieSegment.prototype,"langle",{get:function(){return this._angle},enumerable:!0,configurable:!0});Object.defineProperty(_PieSegment.prototype,"angle",{get:function(){return this._originAngle},enumerable:!0,configurable:!0});Object.defineProperty(_PieSegment.prototype,"sweep",{get:function(){return this._originSweep},enumerable:!0,configurable:!0});return _PieSegment}();exports._PieSegment=_PieSegment;var _DonutSegment=function(){function _DonutSegment(t,e,i,r,n,s){void 0===s&&(s=0);this._isFull=!1;this._center=t;this._radius=e;this._iradius=i;this._originAngle=r;this._originSweep=n;n>=2*Math.PI&&(this._isFull=!0);this._sweep=.5*n*180/Math.PI;this._angle=_Math.clampAngle(180*r/Math.PI+this._sweep);this._radius2=e*e;this._iradius2=i*i;this._startAngle=s}_DonutSegment.prototype.contains=function(t){var e=t.x-this._center.x,i=t.y-this._center.y,r=e*e+i*i;if(r>=this._iradius2&&r<=this._radius2){var n=180*Math.atan2(i,e)/Math.PI,s=_Math.clampAngle(this._angle,this._startAngle)-_Math.clampAngle(n,this._startAngle);if(this._isFull||Math.abs(s)<=this._sweep)return!0}return!1};_DonutSegment.prototype.distance=function(t){if(this.contains(t))return 0;var e=this.center.clone();e.x+=this.radius*Math.cos(this._originAngle);e.y+=this.radius*Math.sin(this._originAngle);var i=this.center.clone();i.x+=this._iradius*Math.cos(this._originAngle);i.y+=this._iradius*Math.sin(this._originAngle);var r=this.center.clone();r.x+=this.radius*Math.cos(this._originAngle+this._originSweep);r.y+=this.radius*Math.sin(this._originAngle+this._originSweep);var n=this.center.clone();n.x+=this._iradius*Math.cos(this._originAngle+this._originSweep);n.y+=this._iradius*Math.sin(this._originAngle+this._originSweep);var s=FlexChartCore._dist(t,e,i),o=FlexChartCore._dist(t,r,n);return Math.min(s,o)};Object.defineProperty(_DonutSegment.prototype,"center",{get:function(){return this._center},enumerable:!0,configurable:!0});Object.defineProperty(_DonutSegment.prototype,"radius",{get:function(){return this._radius},enumerable:!0,configurable:!0});Object.defineProperty(_DonutSegment.prototype,"langle",{get:function(){return this._angle},enumerable:!0,configurable:!0});Object.defineProperty(_DonutSegment.prototype,"angle",{get:function(){return this._originAngle},enumerable:!0,configurable:!0});Object.defineProperty(_DonutSegment.prototype,"sweep",{get:function(){return this._originSweep},enumerable:!0,configurable:!0});Object.defineProperty(_DonutSegment.prototype,"innerRadius",{get:function(){return this._iradius},enumerable:!0,configurable:!0});return _DonutSegment}();exports._DonutSegment=_DonutSegment;var LineMarkerLines,LineMarkerInteraction,LineMarkerAlignment,LineMarkers=function(){function LineMarkers(){this._moveMarker=function(t){var e=t.currentTarget,i=this._markers,r=e.getAttribute("data-markerIndex");null!=r&&i[r].forEach((function(e){e._moveMarker(t)}))};this._markers=[];this._bindMoveMarker=this._moveMarker.bind(this)}LineMarkers.prototype.attach=function(t){var e,i,r=t.chart.hostElement,n=this._markers,s=r.getAttribute("data-markerIndex");if(null!=s)if((i=n[s])&&wijmo_1.isArray(i))i.push(t);else{n[s]=[t];this._bindMoveEvent(r)}else{e=n.length,i=[t];n.push(i);r.setAttribute("data-markerIndex",e);this._bindMoveEvent(r)}};LineMarkers.prototype.detach=function(t){var e,i,r=t.chart.hostElement,n=this._markers,s=r.getAttribute("data-markerIndex");if(null!=s){(e=(i=n[s]).indexOf(t))>-1&&i.splice(e,1);if(0===i.length){(e=n.indexOf(i))>-1&&(n[e]=void 0);this._unbindMoveEvent(r)}}};LineMarkers.prototype._unbindMoveEvent=function(t){var e=this._bindMoveMarker;t.removeEventListener("mousemove",e);"ontouchstart"in window&&t.removeEventListener("touchmove",e)};LineMarkers.prototype._bindMoveEvent=function(t){var e=this._bindMoveMarker;t.addEventListener("mousemove",e);"ontouchstart"in window&&t.addEventListener("touchmove",e)};return LineMarkers}(),lineMarkers=new LineMarkers;!function(t){t[t.None=0]="None";t[t.Vertical=1]="Vertical";t[t.Horizontal=2]="Horizontal";t[t.Both=3]="Both"}(LineMarkerLines=exports.LineMarkerLines||(exports.LineMarkerLines={}));!function(t){t[t.None=0]="None";t[t.Move=1]="Move";t[t.Drag=2]="Drag"}(LineMarkerInteraction=exports.LineMarkerInteraction||(exports.LineMarkerInteraction={}));!function(t){t[t.Auto=2]="Auto";t[t.Right=0]="Right";t[t.Left=1]="Left";t[t.Bottom=4]="Bottom";t[t.Top=6]="Top"}(LineMarkerAlignment=exports.LineMarkerAlignment||(exports.LineMarkerAlignment={}));var AxisType,OverlappingLabels,TickMark,AxisGroupsDisplay,LineMarker=function(){function LineMarker(t,e){this._wrapperMousedown=null;this._wrapperMouseup=null;this._savedPosition=new wijmo_1.Point;this.positionChanged=new wijmo_1.Event;this._chart=t;t._markers.push(this);t.rendered.addHandler(this._initialize,this);this._resetDefaultValue();wijmo_1.copy(this,e);this._initialize()}Object.defineProperty(LineMarker.prototype,"chart",{get:function(){return this._chart},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"isVisible",{get:function(){return this._isVisible},set:function(t){if(t!==this._isVisible){this._isVisible=wijmo_1.asBoolean(t);this._marker&&this._toggleVisibility()}},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"seriesIndex",{get:function(){return this._seriesIndex},set:function(t){t!==this._seriesIndex&&(this._seriesIndex=wijmo_1.asNumber(t,!0))},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"horizontalPosition",{get:function(){return this._horizontalPosition},set:function(t){if(t!==this._horizontalPosition){this._horizontalPosition=wijmo_1.asNumber(t,!0);this._savedPosition.x=this._horizontalPosition;if(this._horizontalPosition<0||this._horizontalPosition>1)throw"horizontalPosition's value should be in (0, 1).";this._marker&&this._updateMarkerPosition()}},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"x",{get:function(){var t=this._chart.axisX,e=this.chart.pageToControl(this._targetPoint);return t.convertBack(e.x)},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"y",{get:function(){var t=this._chart.axisY,e=this.chart.pageToControl(this._targetPoint);return t.convertBack(e.y)},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"content",{get:function(){return this._content},set:function(t){if(t!==this._content){this._content=wijmo_1.asFunction(t);this._updateMarkerPosition()}},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"verticalPosition",{get:function(){return this._verticalPosition},set:function(t){if(t!==this._verticalPosition){this._verticalPosition=wijmo_1.asNumber(t,!0);this._savedPosition.y=this._verticalPosition;if(this._verticalPosition<0||this._verticalPosition>1)throw"verticalPosition's value should be in (0, 1).";this._marker&&this._updateMarkerPosition()}},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"alignment",{get:function(){return this._alignment},set:function(t){if(t!==this._alignment){this._alignment=t;this._marker&&this._updatePositionByAlignment()}},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"lines",{get:function(){return this._lines},set:function(t){if((t=wijmo_1.asEnum(t,LineMarkerLines))!=this._lines){this._lines=t;this._marker&&this._resetLinesVisibility()}},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"interaction",{get:function(){return this._interaction},set:function(t){if((t=wijmo_1.asEnum(t,LineMarkerInteraction))!=this._interaction){this._marker&&this._detach();this._interaction=t;this._marker&&this._attach();this._toggleElesDraggableClass(this._interaction==LineMarkerInteraction.Drag)}},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"dragThreshold",{get:function(){return this._dragThreshold},set:function(t){t!=this._dragThreshold&&(this._dragThreshold=wijmo_1.asNumber(t))},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"dragContent",{get:function(){return this._dragContent},set:function(t){t!==this._dragContent&&(this._dragContent=wijmo_1.asBoolean(t));wijmo_1.toggleClass(this._dragEle,LineMarker._CSS_LINE_DRAGGABLE,this._interaction===LineMarkerInteraction.Drag&&this._dragContent&&this._lines!==LineMarkerLines.None)},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"dragLines",{get:function(){return this._dragLines},set:function(t){t!=this._dragLines&&(this._dragLines=wijmo_1.asBoolean(t))},enumerable:!0,configurable:!0});LineMarker.prototype.onPositionChanged=function(t){this.positionChanged.raise(this,t)};LineMarker.prototype.remove=function(){var t=this._chart;if(this._marker){t.rendered.removeHandler(this._initialize,this);this._detach();this._removeMarker();this._wrapperMoveMarker=null;this._wrapperMousedown=null;this._wrapperMouseup=null}};LineMarker.prototype._attach=function(){var t=this._chart.hostElement;this._interaction!==LineMarkerInteraction.None?wijmo_1.addClass(t,LineMarker._CSS_TOUCH_DISABLED):wijmo_1.removeClass(t,LineMarker._CSS_TOUCH_DISABLED);lineMarkers.attach(this);this._attachDrag()};LineMarker.prototype._attachDrag=function(){if(this._interaction===LineMarkerInteraction.Drag){this._wrapperMousedown||(this._wrapperMousedown=this._onMousedown.bind(this));this._wrapperMouseup||(this._wrapperMouseup=this._onMouseup.bind(this));this._toggleDragEventAttach(!0)}};LineMarker.prototype._detach=function(){wijmo_1.removeClass(this._chart.hostElement,LineMarker._CSS_TOUCH_DISABLED);lineMarkers.detach(this);this._detachDrag()};LineMarker.prototype._detachDrag=function(){this._interaction===LineMarkerInteraction.Drag&&this._toggleDragEventAttach(!1)};LineMarker.prototype._toggleDragEventAttach=function(t){var e=this._chart.hostElement,i=t?"addEventListener":"removeEventListener";e[i]("mousedown",this._wrapperMousedown);document[i]("mouseup",this._wrapperMouseup);"ontouchstart"in window&&e[i]("touchstart",this._wrapperMousedown);"ontouchend"in window&&document[i]("touchend",this._wrapperMouseup)};LineMarker.prototype._onMousedown=function(t){var e,i,r,n,s,o=this._getEventPoint(t);if(this._interaction===LineMarkerInteraction.Drag){n=!(0===(e=wijmo_1.getElementRect(this._hLine)).width||0===e.height);s=!(0===(i=wijmo_1.getElementRect(this._vLine)).width||0===i.height);r=wijmo_1.getElementRect(this._markerContent);if(this._dragContent&&this._pointInRect(o,r)){this._capturedEle=this._markerContent;this._contentDragStartPoint=new wijmo_1.Point(o.x,o.y);this._mouseDownCrossPoint=new wijmo_1.Point(this._targetPoint.x,this._targetPoint.y)}else if(n&&(Math.abs(e.top-o.y)<=this._dragThreshold||Math.abs(o.y-e.top-e.height)<=this._dragThreshold||o.y>=e.top&&o.y<=e.top+e.height)){this._capturedEle=this._hLine;this._contentDragStartPoint=void 0;wijmo_1.addClass(this._chart.hostElement,LineMarker._CSS_LINE_DRAGGABLE)}else if(s&&(Math.abs(i.left-o.x)<=this._dragThreshold||Math.abs(o.x-i.left-i.width)<=this._dragThreshold||o.x>=i.left&&o.x<=i.left+i.width)){this._capturedEle=this._vLine;this._contentDragStartPoint=void 0;wijmo_1.addClass(this._chart.hostElement,LineMarker._CSS_LINE_DRAGGABLE)}t.preventDefault()}};LineMarker.prototype._onMouseup=function(t){var e=this._alignment===LineMarkerAlignment.Auto&&this._capturedEle===this._markerContent&&this._lines!==LineMarkerLines.None;this._capturedEle=void 0;this._contentDragStartPoint=void 0;this._mouseDownCrossPoint=void 0;if(e){this._updatePositionByAlignment();this._updatePositionByAlignment()}wijmo_1.removeClass(this._chart.hostElement,LineMarker._CSS_LINE_DRAGGABLE)};LineMarker.prototype._moveMarker=function(t){var e,i,r,n,s,o,a=this._chart,h=this._getEventPoint(t),l=this._plotRect,_=this._interaction===LineMarkerInteraction.Drag,u=this._lines===LineMarkerLines.Horizontal,c=this._lines===LineMarkerLines.Vertical,p=this._seriesIndex,f=wijmo_1.getElementRect(a.hostElement);if(l&&this._isVisible&&this._interaction!==LineMarkerInteraction.None&&(this._interaction!==LineMarkerInteraction.Drag||this._capturedEle&&this._lines!==LineMarkerLines.None)){if(_)if(this._contentDragStartPoint){h.x=u?this._targetPoint.x:this._mouseDownCrossPoint.x+h.x-this._contentDragStartPoint.x;h.y=c?this._targetPoint.y:this._mouseDownCrossPoint.y+h.y-this._contentDragStartPoint.y}else u||!this._dragLines&&this._capturedEle===this._hLine?h.x=this._targetPoint.x:(c||!this._dragLines&&this._capturedEle===this._vLine)&&(h.y=this._targetPoint.y);if(_&&this._lines===LineMarkerLines.Horizontal||!this._dragLines&&this._capturedEle===this._hLine){if(h.y<=l.top||h.y>=l.top+l.height)return}else if(_&&this._lines===LineMarkerLines.Vertical||!this._dragLines&&this._capturedEle===this._vLine){if(h.x<=l.left||h.x>=l.left+l.width)return}else{var d=this._getTop();if(h.x<=l.left||h.y<=d||h.x>=l.left+l.width||h.y>=d+l.height)return}if(null!=p&&p>=0&&p<a.series.length){if(null==(i=(e=a.series[p]).hitTest(new wijmo_1.Point(h.x,NaN)))||null==i.x||null==i.y)return;r=e.axisX||a.axisX;n=e._getAxisY();s=wijmo_1.isDate(i.x)?FlexChartCore._toOADate(i.x):i.x;s=wijmo_1.isString(s)?i.pointIndex:s;o=wijmo_1.isDate(i.y)?FlexChartCore._toOADate(i.y):i.y;var g=this._getElementPaddingValuee(a.hostElement,"padding-left"),m=this._getElementPaddingValuee(a.hostElement,"padding-top");h.x=r.convert(s)+g+f.left;this.chart._stacking!=Stacking.None&&(o=this._calcStackedValue(p,s,o));h.y=n.convert(o)+m+f.top}this._updateMarkerPosition(h);t.preventDefault()}};LineMarker.prototype._calcStackedValue=function(t,e,i){for(var r=i,n=this.chart._stacking==Stacking.Stacked100pc,s=0;s<t;s++){var o=this.chart.series[s],a=o.getValues(1),h=o.getValues(0);if(h)for(var l=0;l<h.length;l++){if(e===(a?a[l]:l)){isFinite(h[l])&&(n||this._sign(i)==this._sign(h[l]))&&(r+=h[l]);break}}}n&&r&&(r/=this.chart._dataInfo.getStackedAbsSum(e))>1&&(r=1);return r};LineMarker.prototype._sign=function(t){return t>0?1:t<0?-1:0};LineMarker.prototype._getElementPaddingValuee=function(t,e){return+window.getComputedStyle(t,null).getPropertyValue(e).replace("px","")};LineMarker.prototype._show=function(t){(t||this._marker).style.display="block"};LineMarker.prototype._hide=function(t){(t||this._marker).style.display="none"};LineMarker.prototype._toggleVisibility=function(){this._isVisible?this._show():this._hide()};LineMarker.prototype._resetDefaultValue=function(){this._isVisible=!0;this._alignment=LineMarkerAlignment.Auto;this._lines=LineMarkerLines.None;this._interaction=LineMarkerInteraction.None;this._horizontalPosition=null;this._verticalPosition=null;this._content=null;this._seriesIndex=null;this._dragThreshold=15;this._dragContent=!1;this._dragLines=!1;this._targetPoint=new wijmo_1.Point};LineMarker.prototype._initialize=function(){var t,e=this._chart.hostElement.querySelector("."+FlexChartCore._CSS_PLOT_AREA);this._plot=e;this._marker||this._createMarker();if(e){this._plotRect=wijmo_1.getElementRect(e);t=e.getBBox();this._plotRect.width=t.width;this._plotRect.height=t.height;this._updateMarkerSize();this._updateLinesSize()}this._updateMarkerPosition();this._wrapperMoveMarker=this._moveMarker.bind(this);this._attach()};LineMarker.prototype._createMarker=function(){var t,e;t=document.createElement("div");wijmo_1.addClass(t,LineMarker._CSS_MARKER);(e=this._getContainer()).appendChild(t);this._markerContainer=e;this._marker=t;this._createChildren()};LineMarker.prototype._removeMarker=function(){var t=this._markerContainer;t.removeChild(this._marker);this._content=null;this._hLine=null;this._vLine=null;if(!t.hasChildNodes()){this._chart.hostElement.removeChild(this._markerContainer);this._markerContainer=null}this._marker=null};LineMarker.prototype._getContainer=function(){var t=this._chart.hostElement.querySelector(LineMarker._CSS_MARKER_CONTAINER);t||(t=this._createContainer());return t};LineMarker.prototype._createContainer=function(){var t=document.createElement("div"),e=this._chart.hostElement;wijmo_1.addClass(t,LineMarker._CSS_MARKER_CONTAINER);e.insertBefore(t,e.firstChild);return t};LineMarker.prototype._createChildren=function(){var t,e,i,r,n=this._marker;(r=document.createElement("div")).style.position="absolute";r.style.height="100%";r.style.width="100%";n.appendChild(r);this._dragEle=r;t=document.createElement("div");wijmo_1.addClass(t,LineMarker._CSS_MARKER_CONTENT);n.appendChild(t);this._markerContent=t;e=document.createElement("div");wijmo_1.addClass(e,LineMarker._CSS_MARKER_HLINE);n.appendChild(e);this._hLine=e;i=document.createElement("div");wijmo_1.addClass(i,LineMarker._CSS_MARKER_VLINE);n.appendChild(i);this._vLine=i;this._toggleElesDraggableClass(this._interaction===LineMarkerInteraction.Drag);this._resetLinesVisibility()};LineMarker.prototype._toggleElesDraggableClass=function(t){wijmo_1.toggleClass(this._hLine,LineMarker._CSS_LINE_DRAGGABLE,t);wijmo_1.toggleClass(this._vLine,LineMarker._CSS_LINE_DRAGGABLE,t);wijmo_1.toggleClass(this._dragEle,LineMarker._CSS_LINE_DRAGGABLE,t&&this._dragContent&&this._lines!==LineMarkerLines.None)};LineMarker.prototype._updateMarkerSize=function(){var t=this._plotRect,e=this._chart.hostElement,i=window.getComputedStyle(e,null),r=wijmo_1.getElementRect(e);if(this._marker){this._marker.style.marginTop=t.top-r.top-(parseFloat(i.getPropertyValue("padding-top"))||0)+"px";this._marker.style.marginLeft=t.left-r.left-(parseFloat(i.getPropertyValue("padding-left"))||0)+"px"}};LineMarker.prototype._updateLinesSize=function(){var t=this._plotRect;if(this._hLine&&this._vLine){this._hLine.style.width=t.width+"px";this._vLine.style.height=t.height+"px"}};LineMarker.prototype._resetLinesVisibility=function(){if(this._hLine&&this._vLine){this._hide(this._hLine);this._hide(this._vLine);this._lines!==LineMarkerLines.Horizontal&&this._lines!==LineMarkerLines.Both||this._show(this._hLine);this._lines!==LineMarkerLines.Vertical&&this._lines!==LineMarkerLines.Both||this._show(this._vLine)}};LineMarker.prototype._updateMarkerPosition=function(t){var e,i,r=this._plotRect,n=this._targetPoint,s=!1;this._interaction,LineMarkerInteraction.Drag;if(this._plot){e=r.left+r.width*(this._horizontalPosition||0);i=r.top+r.height*(this._verticalPosition||0);null==this._horizontalPosition&&t?e=t.x:this._savedPosition.x>0&&(e=r.left+r.width*this._savedPosition.x);null==this._verticalPosition&&t?i=t.y:this._savedPosition.y>0&&(i=r.top+r.height*this._savedPosition.y);e===n.x&&i===n.y||(s=!0);n.x=e;n.y=i;this._savedPosition.x=wijmo_1.clamp((e-r.left)/r.width,0,1);this._savedPosition.y=wijmo_1.clamp((i-r.top)/r.height,0,1);this._toggleVisibility();this._content&&this._updateContent();s&&this._raisePositionChanged(e,i);this._updatePositionByAlignment(!!t)}};LineMarker.prototype._updateContent=function(){var t,e=this._chart,i=this._targetPoint,r=e.hitTest(i);t=this._content.call(null,r,i);this._markerContent.innerHTML=t||""};LineMarker.prototype._raisePositionChanged=function(t,e){this._plotRect;this.onPositionChanged(new wijmo_1.Point(t,e))};LineMarker.prototype._updatePositionByAlignment=function(t){var e=this._alignment,i=this._targetPoint,r=this._marker,n=0,s=0,o=r.clientWidth,a=r.clientHeight,h=this._plotRect;if(this._plot){var l=this._getTop();if(!this._capturedEle||this._capturedEle&&this._capturedEle!==this._markerContent){if(e===LineMarkerAlignment.Auto){i.x+o+12>h.left+h.width&&i.x-o>=0&&(s=o);n=a;i.y-a<l&&(n=0)}else{1==(1&e)&&(s=o);2==(2&e)&&(n=a)}this._interaction===LineMarkerInteraction.Move&&0===n&&0===s&&null==this.verticalPosition&&(s=-12)}else{parseInt(this._hLine.style.top)>0&&(n=a);parseInt(this._vLine.style.left)>0&&(s=o)}r.style.left=i.x-s-h.left+"px";r.style.top=i.y-n-l+"px";this._hLine.style.top=n+"px";this._hLine.style.left=h.left-i.x+s+"px";this._vLine.style.top=l-i.y+n+"px";this._vLine.style.left=s+"px"}};LineMarker.prototype._getEventPoint=function(t){return t instanceof MouseEvent?new wijmo_1.Point(t.pageX,t.pageY):new wijmo_1.Point(t.changedTouches[0].pageX,t.changedTouches[0].pageY)};LineMarker.prototype._pointInRect=function(t,e){return!(!t||!e)&&(t.x>=e.left&&t.x<=e.left+e.width&&t.y>=e.top&&t.y<=e.top+e.height)};LineMarker.prototype._getTop=function(){var t=0,e=this.chart._getHostComputedStyle();if(e){t+=this.chart._parsePx(e.paddingTop);t+=this.chart._parsePx(e.borderTopWidth);t+=this.chart._parsePx(e.marginTop)}return this._chart._plotRect.top+this._plot.getBoundingClientRect().top-t};LineMarker._CSS_MARKER=exports.LineMarkerClsNames.linemarker;LineMarker._CSS_MARKER_HLINE=exports.LineMarkerClsNames.hline;LineMarker._CSS_MARKER_VLINE=exports.LineMarkerClsNames.vline;LineMarker._CSS_MARKER_CONTENT=exports.LineMarkerClsNames.content;LineMarker._CSS_MARKER_CONTAINER=exports.LineMarkerClsNames.container;LineMarker._CSS_LINE_DRAGGABLE=exports.LineMarkerClsNames.draggable;LineMarker._CSS_TOUCH_DISABLED=exports.FlexChartClsNames.touchDisabled;return LineMarker}();exports.LineMarker=LineMarker;!function(t){t[t.X=0]="X";t[t.Y=1]="Y"}(AxisType=exports.AxisType||(exports.AxisType={}));!function(t){t[t.Auto=0]="Auto";t[t.Show=1]="Show"}(OverlappingLabels=exports.OverlappingLabels||(exports.OverlappingLabels={}));!function(t){t[t.None=0]="None";t[t.Outside=1]="Outside";t[t.Inside=2]="Inside";t[t.Cross=3]="Cross"}(TickMark=exports.TickMark||(exports.TickMark={}));!function(t){t[t.None=0]="None";t[t.Show=1]="Show";t[t.ShowGrid=2]="ShowGrid"}(AxisGroupsDisplay=exports.AxisGroupsDisplay||(exports.AxisGroupsDisplay={}));var Axis=function(){function Axis(t){this._GRIDLINE_WIDTH=1;this._LINE_WIDTH=1;this._TICK_WIDTH=1;this._TICK_HEIGHT=4;this._TICK_OVERLAP=1;this._TICK_LABEL_DISTANCE=4;this._minorGrid=!1;this._isMinimumAuto=!0;this._isMaximumAuto=!0;this._labels=!0;this._isTimeAxis=!1;this._labelPadding=5;this._actualLabels=[];this._labelMin=!1;this._labelMax=!1;this.rangeChanged=new wijmo_1.Event;this._customConvert=null;this._customConvertBack=null;this.__uniqueId=Axis._id++;t==Position.BottomLeft||t==Position.BottomRight||t==Position.TopLeft||t==Position.TopRight||t==Position.LeftTop||t==Position.LeftBottom||t==Position.RightTop||t==Position.RightBottom?this._position=void 0:this._position=t;this._position==Position.Bottom||this._position==Position.Top?this._axisType=AxisType.X:this._position!=Position.Left&&this._position!=Position.Right||(this._axisType=AxisType.Y);this._minorTickMarks=TickMark.None;this._overlap=OverlappingLabels.Auto}Object.defineProperty(Axis.prototype,"hostElement",{get:function(){return this._hostElement},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"actualMin",{get:function(){return this._isTimeAxis?new Date(this._actualMin):this._actualMin},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"actualMax",{get:function(){return this._isTimeAxis?new Date(this._actualMax):this._actualMax},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"min",{get:function(){return this._min},set:function(t){if(t!=this._min){this._isMinimumAuto=!1;wijmo_1.isDate(t)?this._min=wijmo_1.asDate(t,!0):this._min=wijmo_1.asNumber(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"max",{get:function(){return this._max},set:function(t){if(t!=this._max){this._isMaximumAuto=!1;wijmo_1.isDate(t)?this._max=wijmo_1.asDate(t,!0):this._max=wijmo_1.asNumber(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"reversed",{get:function(){return this._reversed},set:function(t){if(this._reversed!=t){this._reversed=wijmo_1.asBoolean(t);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"position",{get:function(){return this._position},set:function(t){if((t=wijmo_1.asEnum(t,Position,!1))!=this._position){t==Position.BottomLeft||t==Position.BottomRight||t==Position.TopLeft||t==Position.TopRight||t==Position.LeftTop||t==Position.LeftBottom||t==Position.RightTop||t==Position.RightBottom?this._position=this._axisType==AxisType.X?Position.Bottom:this._axisType==AxisType.Y?Position.Left:void 0:this._position=t;this._position==Position.Bottom||this._position==Position.Top?null==this._axisType?this._axisType=AxisType.X:this._axisType==AxisType.Y&&(this._position=Position.Left):this._position!=Position.Left&&this._position!=Position.Right||(null==this._axisType?this._axisType=AxisType.Y:this._axisType==AxisType.X&&(this._position=Position.Bottom));this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"majorUnit",{get:function(){return this._majorUnit},set:function(t){if(t!=this._majorUnit){this._majorUnit=wijmo_1.asNumber(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"minorUnit",{get:function(){return this._minorUnit},set:function(t){if(t!=this._minorUnit){this._minorUnit=wijmo_1.asNumber(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"name",{get:function(){return this._name},set:function(t){t!=this._name&&(this._name=wijmo_1.asString(t,!0))},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"title",{get:function(){return this._title},set:function(t){if(t!=this._title){this._title=wijmo_1.asString(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"format",{get:function(){return this._format},set:function(t){if(t!=this._format){this._format=wijmo_1.asString(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"majorGrid",{get:function(){return this._majorGrid},set:function(t){if(t!=this._majorGrid){this._majorGrid=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"majorTickMarks",{get:function(){return this._majorTickMarks},set:function(t){if((t=wijmo_1.asEnum(t,TickMark,!0))!=this._majorTickMarks){this._majorTickMarks=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"minorGrid",{get:function(){return this._minorGrid},set:function(t){if(t!=this._minorGrid){this._minorGrid=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"minorTickMarks",{get:function(){return this._minorTickMarks},set:function(t){if((t=wijmo_1.asEnum(t,TickMark,!0))!=this._minorTickMarks){this._minorTickMarks=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"axisLine",{get:function(){return void 0===this._axisLine?this.axisType==AxisType.X:this._axisLine},set:function(t){if(t!=this._axisLine){this._axisLine=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"labels",{get:function(){return this._labels},set:function(t){if(t!=this._labels){this._labels=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"labelAlign",{get:function(){return this._labelAlign},set:function(t){if(t!=this._labelAlign){this._labelAlign=wijmo_1.asString(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"labelAngle",{get:function(){return this._labelAngle},set:function(t){if(t!=this._labelAngle){this._labelAngle=wijmo_1.asNumber(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"labelMin",{get:function(){return this._labelMin},set:function(t){if(t!=this._labelMin){this._labelMin=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"labelMax",{get:function(){return this._labelMax},set:function(t){if(t!=this._labelMax){this._labelMax=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"origin",{get:function(){return this._origin},set:function(t){if(t!=this._origin){this._origin=wijmo_1.asNumber(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"overlappingLabels",{get:function(){return this._overlap},set:function(t){if((t=wijmo_1.asEnum(t,OverlappingLabels,!0))!=this._overlap){this._overlap=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"itemsSource",{get:function(){return this._items},set:function(t){if(this._items!=t){if(this._cv){this._cv.collectionChanged.removeHandler(this._cvCollectionChanged,this);this._cv=null}this._items=t;this._cv=wijmo_1.asCollectionView(t);null!=this._cv&&this._cv.collectionChanged.addHandler(this._cvCollectionChanged,this)}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"binding",{get:function(){return this._binding},set:function(t){if(t!=this._binding){this._binding=wijmo_1.asString(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"itemFormatter",{get:function(){return this._ifmt},set:function(t){if(this._ifmt!=t){this._ifmt=wijmo_1.asFunction(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"logBase",{get:function(){return this._logBase},set:function(t){if(t!=this._logBase){this._logBase=wijmo_1.asNumber(t,!0,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"groupsOptions",{get:function(){return this._groupsOptions},set:function(t){if(t!=this._groupsOptions){this._groupsOptions=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"axisLabels",{get:function(){return this._actualLabels},enumerable:!0,configurable:!0});Axis.prototype._getLogBase=function(){return this._chart&&this._chart._stacking===Stacking.Stacked100pc?0:this.logBase};Axis.prototype._isLogAxis=function(){var t=this._getLogBase();return null!=t&&t>0};Object.defineProperty(Axis.prototype,"plotArea",{get:function(){return this._parea},set:function(t){if(t!=this._parea){this._parea=wijmo_1.asType(t,PlotArea,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"labelPadding",{get:function(){return this._labelPadding},set:function(t){if(t!=this._labelPadding){this._labelPadding=wijmo_1.asNumber(t,!0,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"_groupClass",{get:function(){return this.axisType===AxisType.X?FlexChartCore._CSS_AXIS_X:FlexChartCore._CSS_AXIS_Y},enumerable:!0,configurable:!0});Axis.prototype.onRangeChanged=function(t){this.rangeChanged.raise(this,t)};Axis.prototype._getPosition=function(){if(this.axisType==AxisType.X){if(this.position==Position.Auto)return Position.Bottom}else if(this.axisType==AxisType.Y&&this.position==Position.Auto)return Position.Left;return this.position};Axis.prototype._isOverlapped=function(t,e,i,r){var n=this._lbls;if(null!=n&&n.length>1)for(var s=n.length,o=this._values&&this._values.length==s?this._values:null,a=0,h=0,l=0;l<s;l++){var _=o?o[l]:l;if(_>=this._actualMin&&_<=this._actualMax){var u=e*(_-this._actualMin)/(this._actualMax-this._actualMin),c=t.measureString(n[l],i,this._groupClass);if(this.axisType==AxisType.X){if(l>0&&Math.abs(u-a)<.5*(c.width+h))return!0;a=u;h=c.width}else this.axisType,AxisType.Y}}return!1};Axis.prototype._getHeight=function(t,e){this._actualAngle=null;var i=FlexChartCore._CSS_LABEL,r=FlexChartCore._CSS_TITLE,n=.1*this._getActualRange(),s=this._lbls,o=this.labelAngle;if(this.labels&&this._chart._getChartType()!==ChartType.Funnel){n=this._updateAutoFormat(n);if(null!=s&&s.length>0){var a=s.length,h=this._values&&this._values.length==a?this._values:null;this._annoSize=new wijmo_1.Size;for(var l=0;l<a;l++){if((f=h?h[l]:l)>=this._actualMin&&f<=this._actualMax){var _=s[l],u=i;if(this.itemFormatter){_=(d=this._getFormattedItem(t,f,_,new wijmo_1.Point,i,!0)).text;u=d.cls}var c=t.measureString(_,u,this._groupClass);this.axisType,AxisType.X,c.width>this._annoSize.width&&(this._annoSize.width=c.width);c.height>this._annoSize.height&&(this._annoSize.height=c.height)}}null==o&&this.axisType==AxisType.X&&(this._isOverlapped(t,Math.max(10,e-this._annoSize.width),i,this.axisType)?o=this._actualAngle=-45:this._actualAngle=0)}else if(wijmo_1.isNumber(this.majorUnit)&&this._axisType===AxisType.Y&&this.itemFormatter){h=[];this._annoSize=new wijmo_1.Size;this._getAutoLbsAndVals([],h);for(var p=0;p<h.length;p++){var f=h[p];_=this._formatValue(f),u=i;_=(d=this._getFormattedItem(t,f,_,new wijmo_1.Point,i,!0)).text;u=i;(c=t.measureString(_,u,this._groupClass)).width>this._annoSize.width&&(this._annoSize.width=c.width);c.height>this._annoSize.height&&(this._annoSize.height=c.height)}}else{f=this._actualMin-n,_=this._formatValue(f),u=i;if(this.itemFormatter){_=(d=this._getFormattedItem(t,f,_,new wijmo_1.Point,i,!0)).text;u=i}c=t.measureString(_,u,this._groupClass);this._annoSize=c;f=this._actualMax+n;_=this._formatValue(f);u=i;if(this.itemFormatter){var d;_=(d=this._getFormattedItem(t,f,_,new wijmo_1.Point,i,!0)).text;u=i}(c=t.measureString(_,u,this._groupClass)).width>this._annoSize.width&&(this._annoSize.width=c.width);c.height>this._annoSize.height&&(this._annoSize.height=c.height)}this._annoSizeBase=new wijmo_1.Size(this._annoSize.width,this._annoSize.height);if(o){o>90?o=90:o<-90&&(o=-90);var g=o*Math.PI/180,m=this._annoSize.width,x=this._annoSize.height;this._annoSize.width=m*Math.abs(Math.cos(g))+x*Math.abs(Math.sin(g));this._annoSize.height=m*Math.abs(Math.sin(g))+x*Math.abs(Math.cos(g));this._actualAngle=o}}else{this._annoSize=new wijmo_1.Size(8,8);this._annoSizeBase=new wijmo_1.Size(this._annoSize.width,this._annoSize.height)}var y=0;if(this.labels){y=2*(this._labelPadding||5);this._axisType==AxisType.X?y+=this._annoSize.height:y+=this._annoSize.width+this._TICK_LABEL_DISTANCE+2}var b=this._TICK_HEIGHT,v=this._TICK_OVERLAP,w=this.majorTickMarks;w==TickMark.Outside?v=1:w==TickMark.Inside?v=-1:w==TickMark.Cross&&(v=0);null==w&&(w=TickMark.Outside);w!=TickMark.None&&(y+=.5*(1+v)*b);if(this._title){_=this._title;this._szTitle=t.measureString(_,r,this._groupClass);y+=this._szTitle.height}else this._szTitle=void 0;if(this._lbls&&this.groupsOptions&&this.groupsOptions.display!==AxisGroupsDisplay.None){this._groupsPanel||(this._groupsPanel=new _AxisGroups(this));this._groupsPanel.createGroups();y+=this._groupsPanel.getHeight(t)}t.fontSize=null;return y};Axis.prototype._updateAutoFormat=function(t){if(this._isTimeAxis){var e=this.format,i=.001*this._getActualRange()/10,r=new _timeSpan(i*_timeSpan.TicksPerSecond),n=wijmo_1.isNumber(this._majorUnit)?_timeSpan.fromDays(this._majorUnit):_timeHelper.NiceTimeSpan(r,e);e||(this._tfmt=_timeHelper.GetTimeDefaultFormat(1e3*n.TotalSeconds,0));t=n.TotalSeconds}return t};Axis.prototype._getActualRange=function(){return this._actualMax-this._actualMin};Axis.prototype._updateActualLimitsByChartType=function(t,e,i){if(t&&t.length>0&&!this._isTimeAxis){var r=this._chart._getChartType();if(r!=ChartType.Column&&r!=ChartType.Bar){e-=.5;i+=.5}}return{min:e,max:i}};Axis.prototype._updateActualLimits=function(t,e,i,r,n){void 0===r&&(r=null);void 0===n&&(n=null);var s=this._actualMin,o=this._actualMax;this._isTimeAxis=t==wijmo_1.DataType.Date;var a=this._updateActualLimitsByChartType(r,e,i);e=a.min;i=a.max;var h=this._min,l=this._max;wijmo_1.isDate(h)&&(h=h.valueOf());wijmo_1.isDate(l)&&(l=l.valueOf());var _=this._getSeries(),u=this._chart&&(null!=_&&void 0!==_._getChartType()||this._chart._stacking!==Stacking.Stacked100pc);u||(u=this._chart._isRotated()?this.axisType==AxisType.Y:this.axisType==AxisType.X);var c=this._actualMin=null!=h&&u?h:e;if(c==(this._actualMax=null!=l&&u?l:i))if(void 0!==h&&void 0===l)this._actualMax+=1;else if(void 0===h&&void 0!==l)this._actualMin-=1;else if(0===c)this._actualMax=1;else{var p=Math.abs(c);if(p<1){this._actualMin-=p;this._actualMax+=p}else{this._actualMin-=1;this._actualMax+=1}}if(this._getLogBase()>0){var f=this.logBase,d=Math.log(f);if(!this._max){var g=Math.ceil(Math.log(this._actualMax)/d);this._actualMax=Math.pow(f,g)}if(!this._min){var m=Math.floor(Math.log(this._actualMin)/d);this._actualMin=Math.pow(f,m)}(this._actualMin<=0||!wijmo_1.isNumber(this._actualMin))&&(this._actualMin=1);this._actualMax<this._actualMin?this._actualMax=this._actualMin+1:this._actualMax===this._actualMin&&(this._actualMin=.1*this._actualMax)}(s!=this._actualMin&&(wijmo_1.isNumber(s)||wijmo_1.isNumber(this._actualMin))||o!=this._actualMax&&(wijmo_1.isNumber(o)||wijmo_1.isNumber(this._actualMax)))&&this.onRangeChanged();if(this._items){this._values=[];this._lbls=[];var x=this._items.length,y="value",b="text";if(this.binding){var v=this.binding.split(",");if(2==v.length){y=v[0];b=v[1]}}for(var w=0;w<x;w++){var S=this._items[w],C=S[y];if(wijmo_1.isNumber(C)){this._values.push(C);this._lbls.push(S[b])}else if(wijmo_1.isDate(C)){this._values.push(C.getTime());this._lbls.push(S[b])}}}else{this._lbls=r;this._values=n}};Axis.prototype._layout=function(t,e){var i=this.axisType==AxisType.Y;this._plotrect=e;this._axrect=i?new wijmo_1.Rect(t.left,t.top,t.height,t.width):t;this._groupsPanel&&this._groupsPanel.layout()};Axis.prototype._hasVisibileSeries=function(){for(var t,e=this._chart.series,i=0,r=e.length;i<r;i++)if((t=e[i].visibility)==SeriesVisibility.Plot||t==SeriesVisibility.Visible)return!0;return!1};Axis.prototype._getSeries=function(){if(this._chart)for(var t=this._chart.series,e=0,i=t.length;e<i;e++)if(t[e].axisY==this||t[e].axisX==this)return t[e];return null};Axis.prototype._render=function(t){if(this.position!=Position.None&&this._hasVisibileSeries()){this.axisLabels.length=0;this._vals={};var e=0;this.labelAngle&&((e=this.labelAngle)>90?e=90:e<-90&&(e=-90));null==this.labelAngle&&null!=this._actualAngle&&(e=this._actualAngle);var i=FlexChartCore._FG,r=this._getActualRange();if(wijmo_1.isNumber(r)){var n=[],s=[];this._rects=[];this._vals.major=n;this._vals.hasLbls=[];var o=!1;if(this._lbls&&this._lbls.length>0){s=this._lbls;if(0==this._values.length){o=!0;for(var a=0;a<s.length;a++)n.push(a)}else n=this._values}else this._getAutoLbsAndVals(s,n);var h=Math.min(n.length,s.length);t.textFill=i;var l=this._TICK_HEIGHT,_=this._TICK_OVERLAP,u=this.majorTickMarks;null==u&&(u=TickMark.Outside);u==TickMark.Outside?_=1:u==TickMark.Inside?_=-1:u==TickMark.Cross&&(_=0);var c=.5*(_-1)*l,p=.5*(1+_)*l;for(a=0;a<h;a++){var f=!0,d=n[a],g=s[a],m=this.labels;m&&(o||this.itemsSource)&&this.majorUnit&&a%this.majorUnit!=0&&(m=!1);if(d>=this._actualMin&&d<=this._actualMax){var x=t.textFill;f=this._renderLabelsAndTicks(t,a,d,g,e,u,m,c,p);t.textFill=x}this._vals.hasLbls.push(f);f&&this.axisLabels.push(g)}}(this.minorGrid||this.minorTickMarks!=TickMark.None)&&this._renderMinor(t,n,o);t.stroke=i;t.fontSize=null;this._renderLineAndTitle(t);this._lbls&&this.groupsOptions&&this.groupsOptions.display!==AxisGroupsDisplay.None&&this._groupsPanel&&this._groupsPanel.render(t);t.stroke=null;t.fontSize=null;t.textFill=null;t.strokeWidth=null}};Axis.prototype._getAutoLbsAndVals=function(t,e){var i=this._actualMax-this._actualMin,r=this._calcMajorUnit();0==r&&(r=.1*this._niceTickNumber(i));var n=Math.floor(this._actualMin/r)*r;n<this._actualMin&&(n+=r);var s=Math.min(Axis.MAX_MAJOR,Math.floor(i/r)+1);if(this._isTimeAxis){this._createTimeLabels(n,s,e,t);this._addMinMaxLabels(e,t)}else if(this._getLogBase()){this._createLogarithmicLabels(this._actualMin,this._actualMax,this.majorUnit,e,t,!0);this._addMinMaxLabels(e,t)}else{this._createLabels(n,s,r,e,t);this._addMinMaxLabels(e,t)}};Axis.prototype._renderLineAndTitle=function(t){var e=this._getPosition(),i=this.axisType==AxisType.Y,r=e!=Position.Top&&e!=Position.Right,n=FlexChartCore._CSS_TITLE,s=FlexChartCore._CSS_LINE;if(i)if(r){if(this._title){var o=new wijmo_1.Point(this._axrect.left+.5*this._szTitle.height,this._axrect.top+.5*this._axrect.height);FlexChartCore._renderRotatedText(t,this._title,o,1,1,o,-90,n,this._groupClass)}this.axisLine&&t.drawLine(this._axrect.right,this._axrect.top,this._axrect.right,this._axrect.bottom,s)}else{if(this._title){o=new wijmo_1.Point(this._axrect.right-.5*this._szTitle.height,this._axrect.top+.5*this._axrect.height);FlexChartCore._renderRotatedText(t,this._title,o,1,1,o,90,n,this._groupClass)}this.axisLine&&t.drawLine(this._axrect.left,this._axrect.top,this._axrect.left,this._axrect.bottom,s)}else if(r){this.axisLine&&t.drawLine(this._axrect.left,this._axrect.top,this._axrect.right,this._axrect.top,s);this._title&&FlexChartCore._renderText(t,this._title,new wijmo_1.Point(this._axrect.left+.5*this._axrect.width,this._axrect.bottom),1,2,n)}else{this.axisLine&&t.drawLine(this._axrect.left,this._axrect.bottom,this._axrect.right,this._axrect.bottom,s);this._title&&FlexChartCore._renderText(t,this._title,new wijmo_1.Point(this._axrect.left+.5*this._axrect.width,this._axrect.top),1,0,n)}};Axis.prototype._renderMinor=function(t,e,i){var r=this._getPosition(),n=this.axisType==AxisType.Y,s=r!=Position.Top&&r!=Position.Right;this._getLogBase()?this._createLogarithmicMinors(t,e,n,s,i):this._createMinors(t,e,n,s,i)};Axis.prototype._renderRotatedText=function(t,e,i,r,n,s,o,a,h,l,_){if(this.itemFormatter){var u=this._getFormattedItem(t,e,i,r,h);if(u){i=u.text;h=u.cls}else i=null}FlexChartCore._renderRotatedText(t,i,r,n,s,o,a,h,l,_)};Axis.prototype._getFormattedItem=function(t,e,i,r,n,s){void 0===s&&(s=!1);if(this.itemFormatter){var o=r.clone();this._plotrect&&(this.axisType==AxisType.X?this.position==Position.Top?o.y=this._plotrect.top:o.y=this._plotrect.bottom:this.position==Position.Right?o.x=this._plotrect.right:o.x=this._plotrect.left);var a={val:e,text:i,pos:o,cls:n};s&&(t.readOnly=!0);a=this.itemFormatter(t,a);s&&(t.readOnly=!1);return a}};Axis.prototype._renderLabelsAndTicks=function(t,e,i,r,n,s,o,a,h){var l=this._getPosition(),_=!1,u=this.axisType==AxisType.Y,c=l!=Position.Top&&l!=Position.Right,p=this.labelPadding||5,f=this._TICK_WIDTH,d=this._getLabelAlign(u),g=FlexChartCore._CSS_LABEL,m=FlexChartCore._CSS_GRIDLINE,x=FlexChartCore._CSS_TICK,y=FlexChartCore._FG,b=FlexChartCore._FG,v=this._GRIDLINE_WIDTH,w=i!=this._actualMin&&this.majorGrid;if(u){var S=this.convert(i);if(w){t.stroke=y;t.strokeWidth=v;t.drawLine(this._plotrect.left,S,this._plotrect.right,S,m)}t.stroke=b;t.strokeWidth=f;if(c){if(o){_=!0;var C=new wijmo_1.Point(this._axrect.right-h-this._TICK_LABEL_DISTANCE-p,S);n>0?90==n?this._renderRotatedText(t,i,r,C,1,0,C,n,g,this._groupClass):this._renderRotatedText(t,i,r,C,2,1,C,n,g,this._groupClass):n<0?-90==n?this._renderRotatedText(t,i,r,C,1,2,C,n,g,this._groupClass):this._renderRotatedText(t,i,r,C,2,1,C,n,g,this._groupClass):_=this._renderLabel(t,i,r,C,2,d,g)}s!=TickMark.None&&_&&t.drawLine(this._axrect.right-a,S,this._axrect.right-h,S,x)}else{if(o){_=!0;C=new wijmo_1.Point(this._axrect.left+h+this._TICK_LABEL_DISTANCE+p,S);n>0?90==n?this._renderRotatedText(t,i,r,C,1,2,C,n,g,this._groupClass):this._renderRotatedText(t,i,r,C,0,1,C,n,g,this._groupClass):n<0?-90==n?this._renderRotatedText(t,i,r,C,1,0,C,n,g,this._groupClass):this._renderRotatedText(t,i,r,C,0,1,C,n,g,this._groupClass):_=this._renderLabel(t,i,r,C,0,d,g)}s!=TickMark.None&&_&&t.drawLine(this._axrect.left+a,S,this._axrect.left+h,S,x)}}else{var P=this.convert(i);if(w&&o){t.stroke=y;t.strokeWidth=v;t.drawLine(P,this._plotrect.top,P,this._plotrect.bottom,m)}this.overlappingLabels==OverlappingLabels.Auto&&this._xCross(P)&&(o=!1);t.stroke=b;t.strokeWidth=f;if(c){if(o){C=new wijmo_1.Point(P,this._axrect.top+h+p);_=0!=n?this._renderRotatedLabel(t,i,r,C,d,n,g,c):this._renderLabel(t,i,r,C,d,0,g)}if(s!=TickMark.None&&_){P=this.convert(i);t.drawLine(P,this._axrect.top+a,P,this._axrect.top+h,x)}}else{if(o){C=new wijmo_1.Point(P,this._axrect.bottom-h-p);_=0!=n?this._renderRotatedLabel(t,i,r,C,d,n,g,c):this._renderLabel(t,i,r,C,d,2,g)}if(s!=TickMark.None&&_){P=this.convert(i);t.drawLine(P,this._axrect.bottom-a,P,this._axrect.bottom-h,x)}}}return _};Axis.prototype._xCross=function(t){for(var e=this._rects.length,i=0;i<e;i++){var r=this._rects[i];if(t>=r.left&&t<=r.right)return!0}return!1};Axis.prototype._createMinors=function(t,e,i,r,n){if(e){var s=this.majorUnit?this._isTimeAxis?24*this.majorUnit*3600*1e3:this.majorUnit:e.length>1?e[1]-e[0]:e[0],o=wijmo_1.isNumber(this.minorUnit)?this._isTimeAxis?24*this.minorUnit*3600*1e3:this.minorUnit:.5*s;if(o<=0)return;for(var a=[],h=e[0];h>this._actualMin&&a.length<Axis.MAX_MINOR;h-=o)-1==e.indexOf(h)&&a.push(h);for(h=e[0]+o;h<this._actualMax&&a.length<Axis.MAX_MINOR;h+=o)(-1==e.indexOf(h)||n&&this.majorUnit&&h%this.majorUnit!=0)&&a.push(h);this._renderMinors(t,a,i,r)}};Axis.prototype._createLogarithmicMinors=function(t,e,i,r,n){if(e&&(!this.minorUnit||this.minorUnit<this._getLogBase())){var s=this.logBase;this.majorUnit>s&&(s=this.majorUnit);if(0==e.length){var o=Math.log(s),a=Math.floor(Math.log(this._actualMin)/o),h=Math.ceil(Math.log(this.actualMax)/o);if(this.majorUnit>0){e.push(Math.pow(s,a));e.push(Math.pow(s,h))}else{e.push(Math.pow(s,h));e.push(Math.pow(s,a))}}this.minorUnit||(this.minorUnit=s-1<1?.2*(s-1):.2*s);var l=[];if(this.majorUnit>0){for(var _=e[0]-e[0]/s*this.minorUnit;_>=this._actualMin&&l.length<Axis.MAX_MINOR;_-=e[0]/s*this.minorUnit)l.push(_);for(var u=0;u<e.length-1;u++)for(_=e[u]+e[u]*this.minorUnit;_<e[u+1]&&l.length<Axis.MAX_MINOR;_+=e[u]*this.minorUnit)_>=this._actualMin&&_<=this._actualMax&&l.push(_);for(_=e[e.length-1]+e[e.length-1]*this.minorUnit;_<=this._actualMax&&l.length<Axis.MAX_MINOR;_+=e[e.length-1]*this.minorUnit)l.push(_)}else{for(_=e[e.length-1]-e[e.length-1]/s*this.minorUnit;_>=this._actualMin&&l.length<Axis.MAX_MINOR;_-=e[e.length-1]/s*this.minorUnit)l.push(_);for(u=0;u<e.length-1;u++)for(_=e[u]-e[u+1]*this.minorUnit;_>e[u+1]&&l.length<Axis.MAX_MINOR;_-=e[u+1]*this.minorUnit)_>=this._actualMin&&_<=this._actualMax&&l.push(_);for(_=e[0]+e[0]*this.minorUnit;_<=this._actualMax&&l.length<Axis.MAX_MINOR;_+=e[0]*this.minorUnit)l.push(_)}this._renderMinors(t,l,i,r)}};Axis.prototype._renderMinors=function(t,e,i,r){var n=this._TICK_HEIGHT,s=this._TICK_WIDTH,o=this._TICK_OVERLAP,a=FlexChartCore._FG,h=this.minorTickMarks,l=!0;this._vals.minor=e;h==TickMark.Outside?o=1:h==TickMark.Inside?o=-1:h==TickMark.Cross?o=0:l=!1;for(var _=.5*(o-1)*n,u=.5*(1+o)*n,c=e?e.length:0,p=this.minorGrid,f=this._plotrect,d=this._GRIDLINE_WIDTH,g=FlexChartCore._FG,m=FlexChartCore._CSS_GRIDLINE_MINOR,x=FlexChartCore._CSS_TICK_MINOR,y=0;y<c;y++)if(e[y]>=this.actualMin&&e[y]<=this.actualMax)if(i){var b=this.convert(e[y]);if(l){t.stroke=a;t.strokeWidth=s;r?t.drawLine(this._axrect.right-_,b,this._axrect.right-u,b,x):t.drawLine(this._axrect.left+_,b,this._axrect.left+u,b,x)}if(p){t.stroke=g;t.strokeWidth=d;t.drawLine(f.left,b,f.right,b,m)}}else{var v=this.convert(e[y]);if(l){t.stroke=a;t.strokeWidth=s;r?t.drawLine(v,this._axrect.top+_,v,this._axrect.top+u,x):t.drawLine(v,this._axrect.bottom-_,v,this._axrect.bottom-u,x)}if(p){t.stroke=g;t.strokeWidth=d;t.drawLine(v,f.top,v,f.bottom,m)}}};Axis.prototype._renderLabel=function(t,e,i,r,n,s,o){var a=!1;if(this.itemFormatter){var h=this._getFormattedItem(t,e,i,r,o);if(h){i=h.text;o=h.cls}else i=null}if(i){var l=this._rects,_=this.overlappingLabels==OverlappingLabels.Auto&&!wijmo_1.isNumber(this._actualAngle),u=FlexChartCore._renderText(t,i,r,n,s,o,this._groupClass,null,(function(t){if(_)for(var e=l.length,i=0;i<e;i++)if(FlexChartCore._intersects(l[i],t))return!1;return!0}));if(u){u.left+=4;u.width+=8;l.push(u);a=!0}}return a};Axis.prototype._renderRotatedLabel=function(t,e,i,r,n,s,o,a){if(this.itemFormatter){var h=this._getFormattedItem(t,e,i,r,o);if(h){i=h.text;o=h.cls}else i=null}if(i){var l=t.measureString(i,o,this._groupClass),_=.5*l.height,u=.5*l.width*Math.abs(Math.sin(s*Math.PI/180)),c=.5*l.width,p=.5*(l.width*Math.abs(Math.cos(s*Math.PI/180))+l.height*Math.abs(Math.sin(s*Math.PI/180))),f=new wijmo_1.Point(r.x,r.y),d=new wijmo_1.Point(r.x,r.y);this.labelAlign||(n=90==s||-90==s?1:a?s>0?0:2:s>0?2:0);if(a){r.y+=_+u;f.y+=_+u-.5*l.height}else{r.y-=_+u-l.height;f.y-=_+u-.5*l.height}var g=0;if(2===n){f.x-=p;r.x-=c+p;g=f.x+p-l.height-2}else if(0===n){f.x+=p;r.x-=c-p;g=f.x-p}else{r.x-=c;g=f.x-l.height/2}var m=new wijmo_1.Rect(g,d.y,l.height+2,l.width),x=this._rects;if(this.overlappingLabels==OverlappingLabels.Auto)for(var y=x.length,b=0;b<y;b++)if(FlexChartCore._intersects(x[b],m))return!1;FlexChartCore._renderRotatedText(t,i,r,0,2,f,s,o,this._groupClass);this._rects.push(m);return!0}return!1};Axis.prototype._getLabelAlign=function(t){var e=1;if(this.labelAlign){var i=this.labelAlign.toLowerCase();t?"top"==i?e=0:"bottom"==i&&(e=2):"left"==i?e=0:"right"==i&&(e=2)}return e};Axis.prototype._addMinMaxLabels=function(t,e){if(this.labelMin){var i=this.actualMin;if(isFinite(i)&&!t.includes(i)){e.splice(0,0,this._formatValue(i));t.splice(0,0,i)}}if(this.labelMax){var r=this.actualMax;if(isFinite(r)&&!t.includes(r)){e.splice(0,0,this._formatValue(r));t.splice(0,0,r)}}};Axis.prototype.convert=function(t,e,i){var r=null==e?this._actualMax:e,n=null==i?this._actualMin:i;if(r==n||!this._axrect)return 0;var s=this._axrect.left,o=this._axrect.width,a=this._axrect.top,h=this._axrect.height;if(null!=this._customConvert){var l=this._customConvert(t,n,r);return this.axisType==AxisType.Y?a+l*h:s+l*o}if(this._getLogBase()){if(t<=0)return NaN;var _=Math.log(r/n);return this._reversed?this.axisType==AxisType.Y?a+Math.log(t/n)/_*h:s+o-Math.log(t/n)/_*o:this.axisType==AxisType.Y?a+h-Math.log(t/n)/_*h:s+Math.log(t/n)/_*o}return this._reversed?this.axisType==AxisType.Y?a+(t-n)/(r-n)*h:s+o-(t-n)/(r-n)*o:this.axisType==AxisType.Y?a+h-(t-n)/(r-n)*h:s+(t-n)/(r-n)*o};Axis.prototype.convertBack=function(t){if(this._actualMax==this._actualMin)return 0;var e=this._plotrect.left,i=this._plotrect.width,r=this._plotrect.top,n=this._plotrect.height,s=this._getActualRange(),o=this._getLogBase();if(null!=this._customConvertBack)return this.axisType==AxisType.Y?this._customConvertBack((t-r)/n,this._actualMin,this._actualMax):this._customConvertBack((t-e)/i,this._actualMin,this._actualMax);if(o){var a=0;a=this._reversed?this.axisType==AxisType.Y?(t-r)/n:1-(t-e)/i:this.axisType==AxisType.Y?1-(t-r)/n:(t-e)/i;return Math.pow(o,(Math.log(this._actualMin)+(Math.log(this._actualMax)-Math.log(this._actualMin))*a)/Math.log(o))}return this._reversed?this.axisType==AxisType.Y?this._actualMin+(t-r)*s/n:this._actualMin+(e+i-t)*s/i:this.axisType==AxisType.Y?this._actualMax-(t-r)*s/n:this._actualMin+(t-e)*s/i};Object.defineProperty(Axis.prototype,"axisType",{get:function(){var t=this._chart;if(t){if(t.axisX==this)return AxisType.X;if(t.axisY==this)return AxisType.Y}return this._axisType},enumerable:!0,configurable:!0});Axis.prototype._getMinNum=function(){return this._actualMin};Axis.prototype._getMaxNum=function(){return this._actualMax};Axis.prototype._getTitleSize=function(){return this._szTitle?this._szTitle:new wijmo_1.Size};Axis.prototype._invalidate=function(){this._chart&&this._chart.invalidate()};Axis.prototype._cvCollectionChanged=function(t,e){this._invalidate()};Axis.prototype._createLabels=function(t,e,i,r,n){for(var s=0;s<e;s++){var o=(t+i*s).toFixed(14),a=parseFloat(o),h=this._formatAxisValue(a),l=n.indexOf(h);if(l>=0&&!wijmo_1.isNumber(this.majorUnit)&&!this._format){var _=parseFloat(h);Math.abs(_-a)<Math.abs(_-r[l])&&(r[l]=a)}else{r.push(a);n.push(h)}}};Axis.prototype._createLogarithmicLabels=function(t,e,i,r,n,s){var o=this._getLogBase(),a=Math.log(o),h=Math.floor(Math.log(t)/a),l=Math.ceil(Math.log(e)/a),_=o,u=!0;if(i>0){u=!1;_=i}_<o&&(_=o);var c=(l-h+1)*o/_,p=1;if(s){var f=this._getPosition(),d=this._getAnnoNumber(f==Position.Left||f==Position.Right);c>d?p=Math.floor(c/d+1):u&&(c<=.2*d?_=.2*o:c<=.1*d&&(_=.1*o))}for(var g=h;g<=l;g+=p)if(u)for(var m=Math.pow(o,g),x=0;x*_<o-1;x++){if((y=m*(1+x*_))>=t&&y<=e)if(0==x){r.unshift(y);n&&n.unshift(this._formatValue(y))}else if(!this.minorGrid&&this.minorTickMarks==TickMark.None){r.push(y);n&&n.push(this._formatValue(y))}}else{var y;if((y=Math.pow(_,g))>=t&&y<=e){r.push(y);n&&n.push(this._formatValue(y))}}};Axis.prototype._createTimeLabels=function(t,e,i,r){var n=this._actualMin,s=this._actualMax,o=new Date(n),a=new Date(s),h=this._format,l=this._getAnnoNumber(this._axisType==AxisType.Y);l>10&&(l=10);var _=.001*(this._actualMax-this._actualMin)/l,u=new _timeSpan(_*_timeSpan.TicksPerSecond),c=wijmo_1.isNumber(this._majorUnit)?_timeSpan.fromDays(this._majorUnit):_timeHelper.NiceTimeSpan(u,h);h||(this._tfmt=h=_timeHelper.GetTimeDefaultFormat(1e3*c.TotalSeconds,0));var p=c.Ticks,f=_timeHelper.RoundTime(n,c.TotalDays,!1);isFinite(f)&&(n=f);var d=_timeHelper.RoundTime(s,c.TotalDays,!0);isFinite(d)&&(s=d);var g=new Date(n);new Date(s);if(c.TotalDays>=365&&!wijmo_1.isNumber(this._majorUnit)){(g=new Date(o.getFullYear(),0,1))<o&&g.setFullYear(g.getFullYear()+1);var m=c.TotalDays/365;m-=m%1;for(var x=g;x<=a&&m;x.setFullYear(x.getFullYear()+m)){var y=x.valueOf();i.push(y);r.push(this._formatValue(y))}}else if(c.TotalDays>=30&&!wijmo_1.isNumber(this._majorUnit)){(g=new Date(o.getFullYear(),o.getMonth(),1))<o&&g.setMonth(g.getMonth()+1);var b=c.TotalDays/30;b-=b%1;for(x=g;x<=a;x.setMonth(x.getMonth()+b)){y=x.valueOf();i.push(y);r.push(this._formatValue(y))}}else{var v=1e3*p/_timeSpan.TicksPerSecond,w=(x=g,o.getTime()-x.getTime());w>v&&(x=new Date(x.getTime()+Math.floor(w/v)*v));for(;x<=a&&v;x=new Date(x.getTime()+v)){if((y=x.valueOf()+w)>=o.valueOf()){i.push(y);r.push(this._formatValue(y))}}}};Axis.prototype._formatValue=function(t){if(this._isTimeAxis)return this._format?wijmo_1.Globalize.format(new Date(t),this._format):wijmo_1.Globalize.format(new Date(t),this._tfmt);if(this._format)return wijmo_1.Globalize.format(t,this._format);var e=t==Math.round(t)?"n0":"n";return wijmo_1.Globalize.format(t,e)};Axis.prototype._hitTest=function(t){return this._groupsPanel?this._groupsPanel.hitTest(t):void 0};Axis.prototype._formatAxisValue=function(t,e){void 0===e&&(e=void 0);if(this._isTimeAxis)return this._format?wijmo_1.Globalize.format(new Date(t),this._format):wijmo_1.Globalize.format(new Date(t),this._tfmt);if(this._format)return wijmo_1.Globalize.format(t,this._format);if(wijmo_1.isNumber(t)){var i=this._findFormat(t,e);return wijmo_1.Globalize.format(t,i)}return t};Axis.prototype._findFormat=function(t,e){void 0===e&&(e=void 0);var i=t==Math.round(t)?"n0":"n";void 0!==e&&(i+=e.toString());if("n"==i){var r=t.toFixed(14),n=r.search(".");if(n>=0){e=1;for(var s=r.length-1;s>=n;s--)if("0"!=r[s]){e=s-n-1;break}i+=e.toString()}}return i};Axis.prototype._calcMajorUnit=function(){var t=this._majorUnit;if(!wijmo_1.isNumber(t)){var e=this._getActualRange(),i=this._nicePrecision(e),r=e/this._getAnnoNumber(this.axisType==AxisType.Y);(t=this._niceNumber(2*r,-i,!0))<r&&(t=this._niceNumber(r,1-i,!1));t<r&&(t=this._niceTickNumber(r))>r&&(t*=.5)}return t};Axis.prototype._getAnnoNumber=function(t){var e=t?this._annoSizeBase&&this._annoSizeBase.height:this._annoSize&&this._annoSize.width,i=t?this._axrect&&this._axrect.height:this._axrect&&this._axrect.width;if(e>0&&i>0){var r=Math.floor(i/(e+6));r<=0&&(r=1);return r}return 10};Axis.prototype._nicePrecision=function(t){if(!wijmo_1.isNumber(t)||t<=0)return 0;var e,i=Math.log(t)/Math.LN10;e=i>=0?Math.floor(i):Math.ceil(i);var r=t/Math.pow(10,e);if(r<3){e=1-e;(r=t/Math.pow(10,e))<3&&(e+=1)}return e};Axis.prototype._niceTickNumber=function(t){if(0==t)return t;t<0&&(t=-t);var e=Math.log(t)/Math.LN10,i=Math.floor(e),r=t/Math.pow(10,i),n=10;r<=1?n=1:r<=2?n=2:r<=5&&(n=5);return n*Math.pow(10,i)};Axis.prototype._niceNumber=function(t,e,i){if(0==t)return t;t<0&&(t=-t);var r=t/Math.pow(10,e),n=10;i?r<1.5?n=1:r<3?n=2:r<4.5?n=4:r<7&&(n=5):r<=1?n=1:r<=2?n=2:r<=5&&(n=5);return n*Math.pow(10,e)};Object.defineProperty(Axis.prototype,"_uniqueId",{get:function(){return this.__uniqueId},enumerable:!0,configurable:!0});Axis.MAX_MAJOR=1e3;Axis.MAX_MINOR=2e3;Axis._id=0;return Axis}();exports.Axis=Axis;var _tmInc,AxisCollection=function(t){__extends(AxisCollection,t);function AxisCollection(){return null!==t&&t.apply(this,arguments)||this}AxisCollection.prototype.getAxis=function(t){var e=this.indexOf(t);return e>-1?this[e]:null};AxisCollection.prototype.indexOf=function(t){for(var e=0;e<this.length;e++)if(this[e].name==t)return e;return-1};return AxisCollection}(wijmo_1.ObservableArray);exports.AxisCollection=AxisCollection;!function(t){t[t.tickf7=-7]="tickf7";t[t.tickf6=-6]="tickf6";t[t.tickf5=-5]="tickf5";t[t.tickf4=-4]="tickf4";t[t.tickf3=-3]="tickf3";t[t.tickf2=-2]="tickf2";t[t.tickf1=-1]="tickf1";t[t.second=1]="second";t[t.minute=60]="minute";t[t.hour=3600]="hour";t[t.day=86400]="day";t[t.week=604800]="week";t[t.month=2678400]="month";t[t.year=31536e3]="year";t[t.maxtime=Number.MAX_VALUE]="maxtime"}(_tmInc||(_tmInc={}));var _timeSpan=function(){function _timeSpan(t){this.ticks=t}Object.defineProperty(_timeSpan.prototype,"Ticks",{get:function(){return this.ticks},enumerable:!0,configurable:!0});Object.defineProperty(_timeSpan.prototype,"TotalSeconds",{get:function(){return this.ticks/1e7},enumerable:!0,configurable:!0});Object.defineProperty(_timeSpan.prototype,"TotalDays",{get:function(){return this.ticks/1e7/86400},enumerable:!0,configurable:!0});_timeSpan.fromSeconds=function(t){return new _timeSpan(1e7*t)};_timeSpan.fromDays=function(t){return new _timeSpan(1e7*t*24*60*60)};_timeSpan.TicksPerSecond=1e7;return _timeSpan}(),_timeHelper=function(){function _timeHelper(t){wijmo_1.isDate(t)?this.init(t):wijmo_1.isNumber(t)&&this.init(FlexChartCore._fromOADate(t))}_timeHelper.prototype.init=function(t){this.year=t.getFullYear();this.month=t.getMonth();this.day=t.getDate();this.hour=t.getHours();this.minute=t.getMinutes();this.second=t.getSeconds()};_timeHelper.prototype.getTimeAsDateTime=function(){if(this.hour>=24){this.hour-=24;this.day+=1}if(this.month<0){-1-this.day;this.month=1}else if(this.month>11){this.month-12;this.month=11}if(this.day<1){-1-this.day;this.day=1}else if(this.day>28&&1==this.month){this.day-28;this.day=28}else if(this.day>30&&(3==this.month||5==this.month||8==this.month||10==this.month)){this.day-30;this.day=30}else if(this.day>31){this.day-31;this.day=31}if(this.second>59){this.second-59;this.second=59}if(this.minute>59){this.minute-59;this.minute=59}return new Date(this.year,this.month,this.day,this.hour,this.minute,this.second)};_timeHelper.prototype.getTimeAsDouble=function(){return this.getTimeAsDateTime().valueOf()};_timeHelper.tround=function(t,e,i){var r=t/e*e;r-=r%1;i&&r!=t&&(r+=e-=e%1);return r};_timeHelper.RoundTime=function(t,e,i){var r=24*e*60*60;if(r>0){var n=new _timeHelper(t);if(r<_tmInc.minute){n.second=this.tround(n.second,r,i);return n.getTimeAsDouble()}n.second=0;if(r<_tmInc.hour){r/=_tmInc.minute;n.minute=this.tround(n.minute,r,i);return n.getTimeAsDouble()}n.minute=0;if(r<_tmInc.day){r/=_tmInc.hour;n.hour=this.tround(n.hour,r,i);return n.getTimeAsDouble()}n.hour=0;if(r<_tmInc.month){r/=_tmInc.day;n.day=this.tround(n.day,r,i);return n.getTimeAsDouble()}n.day=1;if(r<_tmInc.year){r/=_tmInc.month;1!=n.month&&(n.month=this.tround(n.month,r,i));return n.getTimeAsDouble()}n.month=1;r/=_tmInc.year;n.year=this.tround(n.year,r,i);return n.getTimeAsDouble()}var s=t,o=s-r,a=o/e*e;i&&a!=o&&(a+=e);return s=r+a};_timeHelper.TimeSpanFromTmInc=function(t){var e=_timeSpan.fromSeconds(1);if(t!=_tmInc.maxtime)if(t>_tmInc.tickf1)e=_timeSpan.fromSeconds(t);else{var i=t,r=1;i+=7;for(;i>0;){r*=10;i--}e=new _timeSpan(r)}return e};_timeHelper.manualTimeInc=function(t){var e=_tmInc.second;if(null==t||0==t.length)return e;var i=t.indexOf("f");if(i>=0){var r=-1;if(i>0&&"%"==t.substr(i-1,1))r=-1;else for(var n=1;n<6&&!(i+n>=t.length);n++){if("f"!=t.substr(i+n,1))break;r--}e=r}else t.indexOf("s")>=0?e=_tmInc.second:t.indexOf("m")>=0?e=_tmInc.minute:t.indexOf("h")>=0||t.indexOf("H")?e=_tmInc.hour:t.indexOf("d")>=0?e=_tmInc.day:t.indexOf("M")>=0?e=_tmInc.month:t.indexOf("y")>=0&&(e=_tmInc.year);return e};_timeHelper.getNiceInc=function(t,e,i){for(var r=0;r<t.length;r++){var n=t[r]*i;if(e<=n)return n}return 0};_timeHelper.NiceTimeSpan=function(t,e){var i=_tmInc.second;null!=e&&e.length>0&&(i=_timeHelper.manualTimeInc(e));var r=0,n=0;if(i<_tmInc.second&&t.TotalSeconds<10){r=t.Ticks;n=_timeHelper.TimeSpanFromTmInc(i).Ticks;for(;r>10*n;)n*=10;var s=n;r>s&&(s*=2);r>s&&(s=5*n);r>s&&(s=10*n);return new _timeSpan(s)}if(0==(r=Math.ceil(t.TotalSeconds)))return _timeHelper.TimeSpanFromTmInc(i);n=1;if(i<_tmInc.minute){if(r<_tmInc.minute&&0!=(n=_timeHelper.getNiceInc([1,2,5,10,15,30],r,i)))return _timeSpan.fromSeconds(n);i=_tmInc.minute}if(i<_tmInc.hour){if(r<_tmInc.hour&&0!=(n=_timeHelper.getNiceInc([1,2,5,10,15,30],r,i)))return _timeSpan.fromSeconds(n);i=_tmInc.hour}if(i<_tmInc.day){if(r<_tmInc.day&&0!=(n=_timeHelper.getNiceInc([1,3,6,12],r,i)))return _timeSpan.fromSeconds(n);i=_tmInc.day}if(i<_tmInc.month){if(r<_tmInc.month&&0!=(n=_timeHelper.getNiceInc([1,2,7,14],r,i)))return _timeSpan.fromSeconds(n);i=_tmInc.month}if(i<_tmInc.year){if(r<_tmInc.year&&0!=(n=_timeHelper.getNiceInc([1,2,3,4,6],r,i)))return _timeSpan.fromSeconds(n);i=_tmInc.year}r<(n=100*_tmInc.year)&&0==(n=_timeHelper.getNiceInc([1,2,5,10,20,50],r,i))&&(n=100*_tmInc.year);return _timeSpan.fromSeconds(n)};_timeHelper.NiceTimeUnit=function(t,e){var i=_timeSpan.fromDays(t);return(i=_timeHelper.NiceTimeSpan(i,e)).TotalDays};_timeHelper.GetTimeDefaultFormat=function(t,e){if(!wijmo_1.isNumber(t)||!wijmo_1.isNumber(e))return"";var i="s",r=_timeSpan.fromSeconds(.001*(t-e)),n=r.TotalSeconds;if(n>=_tmInc.year)i="yyyy";else if(n>=_tmInc.month)i="MMM yyyy";else if(n>=_tmInc.day)i="MMM d";else if(n>=_tmInc.hour)i="ddd H:mm";else if(n>=.5*_tmInc.hour)i="H:mm";else if(n>=1)i="H:mm:ss";else if(n>0){var s=r.Ticks;i="s.";for(;s<_timeSpan.TicksPerSecond;){s*=10;i+="f"}}return i};_timeHelper.secInYear=86400;return _timeHelper}(),_AxisLabel=function(){function _AxisLabel(t,e,i){this._start=e-.5;this._end=e+i-.5;this._value=e+.5*(i-1);this._label=t}Object.defineProperty(_AxisLabel.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0});Object.defineProperty(_AxisLabel.prototype,"label",{get:function(){return this._label},enumerable:!0,configurable:!0});Object.defineProperty(_AxisLabel.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0});Object.defineProperty(_AxisLabel.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0});Object.defineProperty(_AxisLabel.prototype,"rect",{get:function(){return this._rect},set:function(t){this._rect=t},enumerable:!0,configurable:!0});return _AxisLabel}();exports._AxisLabel=_AxisLabel;var _AxisGroup=function(){function _AxisGroup(t,e){this._labels=[];this._index=0;this._size=new wijmo_1.Size;this._level=0;this._level=t;this._last=e}Object.defineProperty(_AxisGroup.prototype,"labels",{get:function(){return this._labels},enumerable:!0,configurable:!0});Object.defineProperty(_AxisGroup.prototype,"index",{get:function(){return this._index},set:function(t){this._index=t},enumerable:!0,configurable:!0});Object.defineProperty(_AxisGroup.prototype,"height",{get:function(){return this._size.height},set:function(t){this._size.height=t},enumerable:!0,configurable:!0});Object.defineProperty(_AxisGroup.prototype,"width",{get:function(){return this._size.width},set:function(t){this._size.width=t},enumerable:!0,configurable:!0});Object.defineProperty(_AxisGroup.prototype,"level",{get:function(){return this._level},enumerable:!0,configurable:!0});_AxisGroup.prototype.getSize=function(t,e,i){var r=this;this._size=new wijmo_1.Size;this.labels.forEach((function(n){var s=t.measureString(n.label,e,i);r._size.width=Math.max(r._size.width,s.width);r._size.height=Math.max(r._size.height,s.height)}));return this._size};_AxisGroup.prototype.render=function(t,e,i,r,n){var s=this,o=e._getPosition(),a=e.axisType===AxisType.X;this.labels.forEach((function(h){var l,_=h.label,u=!1,c=a?Math.abs(e.convert(h.end)-e.convert(h.start)):s.width,p=t.measureString(_,r,n);if(p.width>c){_=s._trimText(_,p.width,c);u=!0}switch(o){case Position.Bottom:l=FlexChartCore._renderText(t,_,new wijmo_1.Point(e.convert(h.value),i),1,2,r,n);break;case Position.Top:l=FlexChartCore._renderText(t,_,new wijmo_1.Point(e.convert(h.value),i),1,0,r,n);break;case Position.Left:l=FlexChartCore._renderText(t,_,new wijmo_1.Point(i+s._size.width,e.convert(h.value)),2,1,r,n);break;case Position.Right:l=FlexChartCore._renderText(t,_,new wijmo_1.Point(i-s._size.width,e.convert(h.value)),0,1,r,n)}h.rect=u?l:void 0}));o===Position.Bottom||o===Position.Top?this.renderLinesX(t,e,i):this.renderLinesY(t,e,i)};_AxisGroup.prototype.hitTest=function(t){for(var e,i=0;i<this.labels.length;i++){var r=this.labels[i];if(r.rect&&r.rect.contains(t)){e=r;break}}return e};_AxisGroup.prototype.renderLinesX=function(t,e,i){var r=this,n=e.groupsOptions.display===AxisGroupsDisplay.ShowGrid,s=e._getPosition(),o=4,a=s===Position.Bottom?1:-1,h=i-a*(this.height+o);o*=a;if(n){var l=e.convert(e.actualMin),_=e.convert(e.actualMax);this.drawLine(t,l,i+o,_,i+o);this.drawLine(t,l,h,_,h);var u=e.convert(this.labels[0].start),c=0===this.level?1===a?e._axrect.top:e._axrect.bottom:h;this.drawLine(t,u,i+o,u,c);this.labels.forEach((function(n){var s=new wijmo_1.Point(e.convert(n.end),i);r._last?r.drawLine(t,s.x,s.y+o,s.x,1===a?e._axrect.top:e._axrect.bottom):r.drawLine(t,s.x,s.y+o,s.x,c)}))}else this.labels.forEach((function(i){var n=e.convert(i.start)+Math.abs(o),s=e.convert(i.end)-Math.abs(o);r.drawLine(t,n,h,s,h);if(e.labels||!r._last){r.drawLine(t,n,h,n,h-2*o);r.drawLine(t,s,h,s,h-2*o)}var a=e.convert(i.value);r.drawLine(t,a,h,a,h+o)}))};_AxisGroup.prototype.renderLinesY=function(t,e,i){var r=this,n=e.groupsOptions.display===AxisGroupsDisplay.ShowGrid,s=e._getPosition(),o=4,a=s===Position.Left?-1:1,h=i-a*(this.width+o);o*=a;if(n){var l=e.convert(e.actualMin),_=e.convert(e.actualMax);this.drawLine(t,i+o,l,i+o,_);this.drawLine(t,h,l,h,_);var u=e.convert(this.labels[0].start),c=0===this.level?1===a?e._axrect.left:e._axrect.right:h;this.drawLine(t,i+o,u,c,u);this.labels.forEach((function(n){var s=e.convert(n.end);r._last?r.drawLine(t,i+o,s,1===a?e._axrect.left:e._axrect.right,s):r.drawLine(t,i+o,s,c,s)}))}else this.labels.forEach((function(i){var n=e.convert(i.start)-Math.abs(o),s=e.convert(i.end)+Math.abs(o);r.drawLine(t,h,n,h,s);r.drawLine(t,h,n,h-2*o,n);r.drawLine(t,h,s,h-2*o,s);var a=e.convert(i.value);r.drawLine(t,h,a,h+o,a)}))};_AxisGroup.prototype.drawLine=function(t,e,i,r,n){t.drawLine(e,i,r,n,FlexChartCore._CSS_LINE)};_AxisGroup.prototype._trimText=function(t,e,i){var r="",n=t.length,s=Math.floor((1-(e-i)/e)*n);t.length>0&&(r=t[0]+(s>1?t.substring(1,s-1)+"..":""));return r};return _AxisGroup}(),_AxisGroups=function(){function _AxisGroups(t){this._groups=[];this._margin=8;this._axis=t}Object.defineProperty(_AxisGroups.prototype,"groups",{get:function(){return this._groups},enumerable:!0,configurable:!0});Object.defineProperty(_AxisGroups.prototype,"axis",{get:function(){return this._axis},enumerable:!0,configurable:!0});_AxisGroups.prototype.createGroups=function(){var t=this;this._groups=[];var e=this.axis._chart.collectionView;e&&e.groups&&e.groups.length>0&&e.groups.forEach((function(e){return t.createGroup(e,0)}))};_AxisGroups.prototype.createGroup=function(t,e){var i=this;this.groups[e]||(this.groups[e]=new _AxisGroup(e,t.isBottomLevel));var r=this.groups[e],n=t.items;r.labels.push(new _AxisLabel(t.name,r.index,n.length));r.index+=n.length;t.groups.forEach((function(t){return i.createGroup(t,e+1)}))};_AxisGroups.prototype.layoutGroups=function(t){this.groups.forEach((function(e){e.width*=t}))};_AxisGroups.prototype.getHeight=function(t){var e=this,i=this._axis._getPosition(),r=0;i===Position.Bottom||i===Position.Top?this.groups.forEach((function(i){return r+=e._margin+i.getSize(t,FlexChartCore._CSS_LABEL,e._axis._groupClass).height})):this.groups.forEach((function(i){return r+=e._margin+i.getSize(t,FlexChartCore._CSS_LABEL,e._axis._groupClass).width}));if(r>0&&this._axis.labels){var n=this.groups.length;r+=this._margin*n}this._height=r;return r};_AxisGroups.prototype.layout=function(){var t=this._axis,e=t._axrect;if(t.axisType===AxisType.Y){var i=(t.labels?t._annoSize.width+t._TICK_LABEL_DISTANCE+12:4)+t._getTitleSize().height,r=e.width-i;if(r<this._height){var n=this._margin*this._groups.length;this.layoutGroups((r-n)/(this._height-n));this._height=r}}};_AxisGroups.prototype.render=function(t){var e=this,i=this._axis._getPosition(),r=this._axis._getTitleSize();if(i===Position.Bottom){var n=this.axis._axrect.bottom-r.height-this._margin;this.groups.forEach((function(i){i.render(t,e.axis,n,FlexChartCore._CSS_LABEL,e._axis._groupClass);n-=i.height+e._margin}))}else if(i===Position.Top){var s=this.axis._axrect.top+r.height+this._margin;this.groups.forEach((function(i){i.render(t,e.axis,s,FlexChartCore._CSS_LABEL,e._axis._groupClass);s+=i.height+e._margin}))}else if(i===Position.Left){var o=this.axis._axrect.left+r.height+this._margin;this.groups.forEach((function(i){i.render(t,e.axis,o,FlexChartCore._CSS_LABEL,e._axis._groupClass);o+=i.width+e._margin}))}else if(i===Position.Right){var a=this.axis._axrect.right-r.height-this._margin;this.groups.forEach((function(i){i.render(t,e.axis,a,FlexChartCore._CSS_LABEL,e._axis._groupClass);a-=i.width+e._margin}))}};_AxisGroups.prototype.hitTest=function(t){for(var e,i=0;i<this._groups.length;i++){var r=this._groups[i].hitTest(t);if(r){e=r;break}}return e};return _AxisGroups}();exports._AxisGroups=_AxisGroups;var _AreaPlotter=function(t){__extends(_AreaPlotter,t);function _AreaPlotter(){var e=t.call(this)||this;e.stacking=Stacking.None;e.isSpline=!1;e.isStep=!1;e.stackPos={};e.stackNeg={};return e}_AreaPlotter.prototype.adjustLimits=function(t,e){this.dataInfo=t;for(var i=t.getMinX(),r=t.getMinY(),n=t.getMaxX(),s=t.getMaxY(),o=0;o<this.chart.series.length;o++){var a=this.chart.series[o];if(this._isRange(a)){var h=a._getChartType();if(!h||h==ChartType.Area)for(var l=a._getBindingValues(1),_=0;_<l.length;_++)l[_]>s?s=l[_]:l[_]<r&&(r=l[_])}}if(this.isSpline){var u=.1*(s-r);this.chart.axisY._getLogBase()||(r-=u);s+=u}return this.rotated?new wijmo_1.Rect(r,i,s-r,n-i):new wijmo_1.Rect(i,r,n-i,s-r)};_AreaPlotter.prototype.clear=function(){t.prototype.clear.call(this);this.stackNeg={};this.stackPos={}};_AreaPlotter.prototype.plotSeries=function(t,e,i,r,n,s,o,a){var h=r;if(this._isRange(h))this.plotSeriesRanged(t,e,i,r,n,s,o,a);else{var l=[],_=this.chart.series.indexOf(r),u=r.getValues(0),c=r.getValues(1);if(u){var p=u.length;if(p){c||(c=this.dataInfo.getXVals());var f=!0;if(c)c.length<p&&(p=c.length);else{f=!1;c=new Array(p)}var d=new Array,g=new Array,m=new Array,x=new Array,y=this.stacking!=Stacking.None&&!h._isCustomAxisY(),b=this.stacking==Stacking.Stacked100pc&&!h._isCustomAxisY();void 0!==h._getChartType()&&(y=b=!1);for(var v=this.rotated,w=!1,S=h.interpolateNulls,C=null,P=null,A=this.chart._plotRect,M=0;M<p;M++){var T=f?c[M]:M,L=u[M];(null===C||T>C)&&(C=T);(null===P||T<P)&&(P=T);if(_DataInfo.isValid(T,L)){var j=v?i.convert(T):e.convert(T);if(y){if(b){L/=this.dataInfo.getStackedAbsSum(T)}var E=0;if(L>=0){E=isNaN(this.stackPos[T])?0:this.stackPos[T];L=this.stackPos[T]=E+L}else{E=isNaN(this.stackNeg[T])?0:this.stackNeg[T];L=this.stackNeg[T]=E+L}if(v){E<e.actualMin&&(E=e.actualMin);m.push(e.convert(E));x.push(j)}else{m.push(j);E<i.actualMin&&(E=i.actualMin);x.push(i.convert(E))}}if(v){var F=e.convert(L);if(isNaN(j)||isNaN(F)){w=!0;if(!y&&!0!==S){d.push(void 0);g.push(void 0)}}else{d.push(F);g.push(j);if(FlexChartCore._contains(A,new wijmo_1.Point(F,j))){(k=new _CircleArea(new wijmo_1.Point(F,j),this._DEFAULT_SYM_SIZE)).tag=new _DataPoint(_,M,L,T);this.hitTester.add(k,_)}}}else{F=i.convert(L);if(isNaN(j)||isNaN(F)){w=!0;if(!y&&!0!==S){d.push(void 0);g.push(void 0)}}else{d.push(j);g.push(F);if(FlexChartCore._contains(A,new wijmo_1.Point(j,F))){var k;(k=new _CircleArea(new wijmo_1.Point(j,F),this._DEFAULT_SYM_SIZE)).tag=new _DataPoint(_,M,T,L);this.hitTester.add(k,_)}}}}else{w=!0;if(!y&&!0!==S){d.push(void 0);g.push(void 0)}}}a&&d.forEach((function(t,e){null!=t&&l.push(new wijmo_1.Point(t,g[e]))}));var N=this._DEFAULT_WIDTH,I=n._getColorLight(_),R=n._getColor(_),B=_BasePlotter.cloneStyle(r.style,["fill"]),D=_BasePlotter.cloneStyle(r.style,["stroke"]);if(!y&&!0!==S&&w){var O=[],V=[];for(M=0;M<p;M++)if(void 0===d[M]){if(O.length>1){O=(H=this._modifyPoints(O,V)).x;V=H.y;t.stroke=R;t.strokeWidth=N;t.fill="none";t.drawLines(O,V,null,B);this.hitTester.add(new _LinesArea(O,V),_);if(v){O.push(e.convert(e.actualMin),e.convert(e.actualMin));V.push(i.convert(i.actualMax),i.convert(i.actualMin))}else{O.push(O[O.length-1],O[0]);V.push(i.convert(i.actualMin),i.convert(i.actualMin))}t.fill=I;t.stroke="none";t.drawPolygon(O,V,null,D,this.chart._plotrectId)}O=[];V=[]}else{O.push(d[M]);V.push(g[M])}if(O.length>1){O=(H=this._modifyPoints(O,V)).x;V=H.y;t.stroke=R;t.strokeWidth=N;t.fill="none";t.drawLines(O,V,null,B);this.hitTester.add(new _LinesArea(O,V),_);if(v){O.push(e.convert(e.actualMin),e.convert(e.actualMin));V.push(i.convert(i.actualMax),i.convert(i.actualMin))}else{O.push(O[O.length-1],O[0]);V.push(i.convert(i.actualMin),i.convert(i.actualMin))}t.fill=I;t.stroke="none";t.drawPolygon(O,V,null,D,this.chart._plotrectId)}}else{var H;d=(H=this._modifyPoints(d,g)).x;g=H.y;if(y){var G=this._modifyPoints(m,x);m=G.x;x=G.y;d=d.concat(m.reverse());g=g.concat(x.reverse())}else if(v){d.push(e.convert(e.actualMin),e.convert(e.actualMin));g.push(g[g.length-1],g[0])}else{d.push(d[d.length-1],d[0]);g.push(i.convert(i.actualMin),i.convert(i.actualMin))}t.fill=I;t.stroke="none";t.drawPolygon(d,g,null,D,this.chart._plotrectId);if(y){d=d.slice(0,d.length-m.length);g=g.slice(0,g.length-x.length)}else{d=d.slice(0,d.length-2);g=g.slice(0,g.length-2)}t.stroke=R;t.strokeWidth=N;t.fill="none";t.drawLines(d,g,null,B,this.chart._plotrectId);this.hitTester.add(new _LinesArea(d,g),_)}this._drawSymbols(t,r,_);a&&l&&l.length&&a(l)}}}};_AreaPlotter.prototype._isRange=function(t){var e=this.chart?this.chart._bindingSeparator:",",i=null==t.binding?null:t.binding.split(e);return null!=i&&2==i.length};_AreaPlotter.prototype._modifyPoints=function(t,e){var i={x:t,y:e};if(this.isSpline){var r=this._convertToSpline(t,e);i.x=r.xs;i.y=r.ys}else if(this.isStep){var n=this._createSteps(t,e);i.x=n.x;i.y=n.y}return i};_AreaPlotter.prototype.plotSeriesRanged=function(t,e,i,r,n,s,o,a){var h=[],l=this.chart.series.indexOf(r),_=r,u=r.getValues(0),c=r.getValues(1),p=_._getBindingValues(1);if(u){var f=u.length;if(f){c||(c=this.dataInfo.getXVals());var d=!0;if(c)c.length<f&&(f=c.length);else{d=!1;c=new Array(f)}for(var g=new Array,m=new Array,x=new Array,y=this.rotated,b=!1,v=_.interpolateNulls,w=this.chart._plotRect,S=0;S<f;S++){var C=d?c[S]:S,P=u[S],A=p[S];if(_DataInfo.isValid(C,P,A)){var M=y?i.convert(C):e.convert(C);if(y){var T=e.convert(P),L=e.convert(A);if(isNaN(M)||isNaN(T)){b=!0;if(!0!==v){g.push(void 0);m.push(void 0);x.push(void 0)}}else{g.push(T);m.push(M);x.push(L);if(FlexChartCore._contains(w,new wijmo_1.Point(T,M))){(j=new _CircleArea(new wijmo_1.Point(T,M),this._DEFAULT_SYM_SIZE)).tag=new _DataPoint(l,S,P,C);this.hitTester.add(j,l)}if(FlexChartCore._contains(w,new wijmo_1.Point(L,M))){(j=new _CircleArea(new wijmo_1.Point(L,M),this._DEFAULT_SYM_SIZE)).tag=new _DataPoint(l,S,A,C);this.hitTester.add(j,l)}}}else{T=i.convert(P),L=i.convert(A);if(isNaN(M)||isNaN(T)){b=!0;if(!0!==v){g.push(void 0);m.push(void 0);x.push(void 0)}}else{g.push(M);m.push(T);x.push(L);if(FlexChartCore._contains(w,new wijmo_1.Point(M,T))){(j=new _CircleArea(new wijmo_1.Point(M,T),this._DEFAULT_SYM_SIZE)).tag=new _DataPoint(l,S,C,P);this.hitTester.add(j,l)}if(FlexChartCore._contains(w,new wijmo_1.Point(M,L))){var j;(j=new _CircleArea(new wijmo_1.Point(M,L),this._DEFAULT_SYM_SIZE)).tag=new _DataPoint(l,S,C,A);this.hitTester.add(j,l)}}}}else{b=!0;if(!0!==v){g.push(void 0);m.push(void 0);x.push(void 0)}}}a&&g.forEach((function(t,e){null!=t&&h.push(new wijmo_1.Point(t,m[e]))}));var E=this._DEFAULT_WIDTH,F=n._getColorLight(l),k=n._getColor(l),N=_BasePlotter.cloneStyle(r.style,["fill"]),I=_BasePlotter.cloneStyle(r.style,["stroke"]);if(!0!==v&&b){var R=[],B=[],D=[];for(S=0;S<f;S++)if(void 0===g[S]){if(R.length>1){var O=y?D.slice(0).reverse():R.slice(0).reverse(),V=y?B.slice(0).reverse():D.slice(0).reverse();this._drawRangedArea(t,R,B,O,V,F,k,E,I,N);this.hitTester.add(new _LinesArea(R,B),l);this.hitTester.add(new _LinesArea(O,V),l)}R=[];B=[];D=[]}else{R.push(g[S]);B.push(m[S]);D.push(x[S])}if(R.length>1){O=y?D.slice(0).reverse():R.slice(0).reverse(),V=y?B.slice(0).reverse():D.slice(0).reverse();this._drawRangedArea(t,R,B,O,V,F,k,E,I,N);this.hitTester.add(new _LinesArea(R,B),l);this.hitTester.add(new _LinesArea(O,V),l)}}else{var H=y?x.slice(0).reverse():g.slice(0).reverse(),G=y?m.slice(0).reverse():x.slice(0).reverse();this._drawRangedArea(t,g,m,H,G,F,k,E,I,N);this.hitTester.add(new _LinesArea(g,m),l);this.hitTester.add(new _LinesArea(H,G),l)}this._drawSymbols(t,r,l);a&&h&&h.length&&a(h)}}};_AreaPlotter.prototype._drawRangedArea=function(t,e,i,r,n,s,o,a,h,l){if(this.isSpline){var _=this._convertToSpline(e,i),u=this._convertToSpline(r,n);e=_.xs;i=_.ys;r=u.xs;n=u.ys}e=e.concat(r);i=i.concat(n);t.fill=s;t.stroke="none";t.drawPolygon(e,i,null,h);e=e.slice(0,e.length-r.length);i=i.slice(0,i.length-n.length);t.stroke=o;t.strokeWidth=a;t.fill="none";t.drawLines(e,i,null,l);t.drawLines(r,n,null,l)};_AreaPlotter.prototype._convertToSpline=function(t,e){if(t&&e){var i=new _Curve(t,e).calculate();return{xs:i.xs,ys:i.ys}}return{xs:t,ys:e}};_AreaPlotter.prototype._drawSymbols=function(t,e,i){var r=this.getItemFormatter(e);if(null!=r){for(var n=this.hitTester._map[i],s=0;s<n.length;s++){var o=wijmo_1.tryCast(n[s],_CircleArea);if(o){var a=o.tag;t.startGroup();var h=new HitTestInfo(this.chart,o.center,ChartElement.SeriesSymbol);h._setDataPoint(a);r(t,h,(function(){}));t.endGroup()}}t.cssPriority=!0}};return _AreaPlotter}(_BasePlotter);exports._AreaPlotter=_AreaPlotter;var _BarPlotter=function(t){__extends(_BarPlotter,t);function _BarPlotter(){var e=null!==t&&t.apply(this,arguments)||this;e.origin=0;e.width=.7;e.isVolume=!1;e._volHelper=null;e.stackPosMap={};e.stackNegMap={};e.stacking=Stacking.None;return e}_BarPlotter.prototype.clear=function(){t.prototype.clear.call(this);this.stackNegMap[this.chart.axisY._uniqueId]={};this.stackPosMap[this.chart.axisY._uniqueId]={};this._volHelper=null};_BarPlotter.prototype.load=function(){t.prototype.load.call(this);if(this.isVolume){var e,i,r,n,s,o,a,h,l=null,_=null;for(o=0;o<this.chart.series.length;o++){s=(e=this.chart.series[o]).getDataType(1)||e.chart._xDataType;i=e._getAxisX();if((r=null===(r=e._getChartType())||wijmo_1.isUndefined(r)?this.chart._getChartType():r)===ChartType.Column){var u=this.chart?this.chart._bindingSeparator:",",c=e.binding.split(u).length-1;n=e._getBindingValues(c)}else n=r===ChartType.Candlestick?e._getBindingValues(4):null;if(s===wijmo_1.DataType.Date){var p;a=[];h=[];for(o=0;o<e._getLength();o++){p=e._getItem(o)[e.bindingX].valueOf();a.push(p);h.push({value:p,text:wijmo_1.Globalize.format(new Date(p),i.format||"d")})}}else a=this.dataInfo.getXVals();l=this.dataInfo.getMinX();_=this.dataInfo.getMaxX();if(n&&n.length>0){this._volHelper=new _VolumeHelper(n,a,l,_,s);i._customConvert=this._volHelper.convert.bind(this._volHelper);i._customConvertBack=this._volHelper.convertBack.bind(this._volHelper);h&&h.length>0&&(this._itemsSource=i.itemsSource=h);break}}}};_BarPlotter.prototype.unload=function(){t.prototype.unload.call(this);for(var e,i=0;i<this.chart.series.length;i++)if(e=this.chart.series[i]._getAxisX()){e._customConvert=null;e._customConvertBack=null;e.itemsSource&&e.itemsSource==this._itemsSource&&(this._itemsSource=e.itemsSource=null)}};_BarPlotter.prototype.adjustLimits=function(t,e){this.dataInfo=t;var i=t.getMinX(),r=t.getMaxX(),n=t.getMinY(),s=t.getMaxY(),o=t.getDeltaX();o<=0&&(o=1);var a=!1;!this.isVolume||this.chart._getChartType()!==ChartType.Column&&this.chart._getChartType()!==ChartType.Candlestick?this.unload():this.load();for(var h=0;h<this.chart.series.length;h++){var l=this.chart.series[h],_=l._getChartType();if((_=null===_||wijmo_1.isUndefined(_)?this.chart._getChartType():_)===ChartType.Column||_===ChartType.Bar){if(this._isRange(l)){l._getBindingValues(1).forEach((function(t){t<n?n=t:t>s&&(s=t)}))}}a||"BoxWhisker"==l.constructor.name||(a=!0)}if(this.rotated){!this.chart.axisY._getLogBase()&&t.getDataTypeY()!==wijmo_1.DataType.Date&&a&&(this.origin>s?s=this.origin:this.origin<n&&(n=this.origin));return new wijmo_1.Rect(n,i-.5*o,s-n,r-i+o)}!this.chart.axisY._getLogBase()&&t.getDataTypeY()!==wijmo_1.DataType.Date&&a&&(this.origin>s?s=this.origin:this.origin<n&&(n=this.origin));return new wijmo_1.Rect(i-.5*o,n,r-i+o,s-n)};_BarPlotter.prototype._isRange=function(t){var e=this.chart?this.chart._bindingSeparator:",",i=(null==t.binding?"":t.binding.split(e)).length-1;return this.isVolume?2===i:1===i};_BarPlotter.prototype.plotSeries=function(t,e,i,r,n,s,o,a){var h=[],l=this.chart.series.indexOf(r),_=wijmo_1.asType(r,SeriesBase),u=this.chart._options,c=this.width,p=0;s=s||0;o=o||1;if(u&&u.groupWidth){var f=u.groupWidth;if(wijmo_1.isNumber(f)){var d=wijmo_1.asNumber(f);if(isFinite(d)&&d>0){p=d;c=1}}else if(wijmo_1.isString(f)){var g=wijmo_1.asString(f);if(g&&g.indexOf("%")>=0){g=g.replace("%","");d=parseFloat(g);if(isFinite(d)){d<0?d=0:d>100&&(d=100);p=0;c=d/100}}else{d=parseFloat(g);if(isFinite(d)&&d>0){p=d;c=1}}}}var m=c/o,x=_._getAxisY()._uniqueId,y=this.stackNegMap[x],b=this.stackPosMap[x],v=r.getValues(0),w=r.getValues(1),S=this._isRange(_),C=_._bindValues(null==_._cv?null==this.chart.collectionView?null:this.chart.collectionView.items:_._cv.items,_._getBinding(1)).values;if(v){w||(w=this.dataInfo.getXVals());if(w){var P=this.dataInfo.getDeltaX();if(P>0){c*=P;m*=P}}var A=_._getSymbolFill(l),M=_._getAltSymbolFill(l)||A,T=_._getSymbolStroke(l),L=_._getAltSymbolStroke(l)||T,j=v.length;null!=w&&(j=Math.min(j,w.length));var E,F,k=this.origin,N=0,I=this.stacking!=Stacking.None,R=this.stacking==Stacking.Stacked100pc;void 0!==_._getChartType()&&(I=R=!1);var B=this.getItemFormatter(r),D=e._actualMin,O=e._actualMax,V=i._actualMin,H=i._actualMax;if(this.rotated){k<D?k=D:k>O&&(k=O);_._isCustomAxisY()&&(I=R=!1);for(Y=e.convert(k),U=0;U<j;U++){q=w?w[U]:U,K=v[U],W=Y;this._getSymbolOrigin&&(W=i.convert(this._getSymbolOrigin(k,U)));if(S&&C&&C.length){Z=C[U];_DataInfo.isValid(Z)&&(W=e.convert(Z))}if(this._getSymbolStyles){A=(J=this._getSymbolStyles(U))&&J.fill?J.fill:A;M=J&&J.fill?J.fill:M;T=J&&J.stroke?J.fill:T;L=J&&J.stroke?J.fill:L}E=K>0?A:M;F=K>0?T:L;t.fill=E;t.stroke=F;if(_DataInfo.isValid(q,K))if(I){$=q+.5*c;if((Q=q-.5*c)<V&&$<V||Q>H&&$>H)continue;Q=i.convert(Math.max(Q,V));$=i.convert(Math.min($,H));if(R){K/=this.dataInfo.getStackedAbsSum(q)}et=0;if(K>=0){et=isNaN(b[q])?0:b[q];ot=e.convert(et);tt=e.convert(et+K);b[q]=et+K}else{et=isNaN(y[q])?0:y[q];ot=e.convert(et);tt=e.convert(et+K);y[q]=et+K}a&&h.push(new wijmo_1.Point(tt,i.convert(q)));if(!_DataInfo.isValid(ot,tt))continue;it=new wijmo_1.Rect(Math.min(ot,tt),Math.min(Q,$),Math.abs(tt-ot),Math.abs($-Q));if(p>0){(_t=1-p/it.height)<0&&(_t=0);var G=it.top+.5*it.height;it.top+=(G-it.top)*_t;it.height=Math.min(p,it.height)}nt=new _RectArea(it);this.drawSymbol(t,it,r,U,new wijmo_1.Point(tt,it.top+.5*it.height),B);r._setPointIndex(U,N);N++;st=R?Math.min(et+K,1):et+K;nt.tag=new _DataPoint(l,U,st,q);this.hitTester.add(nt,l)}else{$=q-.5*c+(s+1)*m;if((Q=q-.5*c+s*m)<V&&$<V||Q>H&&$>H)continue;Q=i.convert(Math.max(Q,V));$=i.convert(Math.min($,H));var z=e.convert(K);if(!_DataInfo.isValid(z,Q,$))continue;var X=new wijmo_1.Rect(Math.min(z,W),Math.min(Q,$),Math.abs(W-z),Math.abs($-Q));a&&h.push(new wijmo_1.Point(z,(Q+$)/2));if(p>0){(_t=1-(lt=p/o)/X.height)<0&&(_t=0);G=i.convert(q);X.top+=(G-X.top)*_t;X.height=Math.min(lt,X.height)}nt=new _RectArea(X);this.drawSymbol(t,X,r,U,new wijmo_1.Point(z,X.top+.5*X.height),B);r._setPointIndex(U,N);N++;nt.tag=new _DataPoint(l,U,K,q);this.hitTester.add(nt,l)}else a&&h.push(null)}}else{k<V?k=V:k>H&&(k=H);var Y=i.convert(k);_._isCustomAxisY()&&(I=R=!1);for(var U=0;U<j;U++){var W=Y,q=w?w[U]:U,K=v[U];this._getSymbolOrigin&&(W=i.convert(this._getSymbolOrigin(k,U,j)));if(S&&C&&C.length){var Z=C[U];_DataInfo.isValid(Z)&&(W=i.convert(Z))}if(this._getSymbolStyles){var J;A=(J=this._getSymbolStyles(U,j))&&J.fill?J.fill:A;M=J&&J.fill?J.fill:M;T=J&&J.stroke?J.stroke:T;L=J&&J.stroke?J.stroke:L}E=K>0?A:M;F=K>0?T:L;t.fill=E;t.stroke=F;t.strokeWidth=null;if(_DataInfo.isValid(q,K))if(I){var Q,$,tt=q+.5*c;if((ot=q-.5*c)<D&&tt<D||ot>O&&tt>O)continue;ot=e.convert(ot);tt=e.convert(tt);if(!_DataInfo.isValid(ot,tt))continue;if(R){K/=this.dataInfo.getStackedAbsSum(q)}var et=0;if(K>=0){et=isNaN(b[q])?0:b[q];Q=i.convert(Math.max(et,V));$=i.convert(Math.max(et+K,V));b[q]=et+K}else{et=isNaN(y[q])?0:y[q];Q=i.convert(et);$=i.convert(et+K);y[q]=et+K}a&&h.push(new wijmo_1.Point(e.convert(q),$));if(!_DataInfo.isValid(Q,$))continue;var it=new wijmo_1.Rect(Math.min(ot,tt),Math.min(Q,$),Math.abs(tt-ot),Math.abs($-Q));if(p>0){(_t=1-p/it.width)<0&&(_t=0);var rt=it.left+.5*it.width;it.left+=(rt-it.left)*_t;it.width=Math.min(p,it.width)}var nt=new _RectArea(it);this.drawSymbol(t,it,r,U,new wijmo_1.Point(it.left+.5*it.width,$),B);r._setPointIndex(U,N);N++;var st=R?Math.min(et+K,1):et+K;nt.tag=new _DataPoint(l,U,q,st);this.hitTester.add(nt,l)}else{var ot,tt=q-.5*c+(s+1)*m;if((ot=q-.5*c+s*m)<D&&tt<D||ot>O&&tt>O)continue;ot=e.convert(ot);tt=e.convert(tt);var at=i.convert(K);if(!_DataInfo.isValid(at,ot,tt))continue;var ht=new wijmo_1.Rect(Math.min(ot,tt),Math.min(at,W),Math.abs(tt-ot),Math.abs(W-at));a&&h.push(new wijmo_1.Point((ot+tt)/2,at));if(p>0){var lt,_t;(_t=1-(lt=p/o)/ht.width)<0&&(_t=0);rt=e.convert(q);ht.left+=(rt-ht.left)*_t;ht.width=Math.min(lt,ht.width)}var nt=new _RectArea(ht);this.drawSymbol(t,ht,r,U,new wijmo_1.Point(ht.left+.5*ht.width,at),B);r._setPointIndex(U,N);N++;nt.tag=new _DataPoint(l,U,q,K);this.hitTester.add(nt,l)}else a&&h.push(null)}}a&&h&&h.length&&a(h)}};_BarPlotter.prototype.drawSymbol=function(t,e,i,r,n,s){var o=this;if(s){t.startGroup();var a=new HitTestInfo(this.chart,n,ChartElement.SeriesSymbol);a._setData(i,r);s(t,a,(function(){o.drawDefaultSymbol(t,e,i)}));t.cssPriority=!0;t.endGroup()}else this.drawDefaultSymbol(t,e,i)};_BarPlotter.prototype.drawDefaultSymbol=function(t,e,i){t.drawRect(e.left,e.top,e.width,e.height,null,i.symbolStyle)};return _BarPlotter}(_BasePlotter);exports._BarPlotter=_BarPlotter;var _FunnelPlotter=function(t){__extends(_FunnelPlotter,t);function _FunnelPlotter(){var e=null!==t&&t.apply(this,arguments)||this;e.stacking=Stacking.None;return e}_FunnelPlotter.prototype.adjustLimits=function(t,e){this.dataInfo=t;var i=t.getMinX(),r=t.getMinY(),n=t.getMaxX(),s=t.getMaxY();return new wijmo_1.Rect(i,r,n-i,s-r)};_FunnelPlotter.prototype.plotSeries=function(t,e,i,r,n,s,o,a){var h=this.chart.series.indexOf(r);if(!(h>0)){var l,_,u,c,p,f=wijmo_1.asType(r,SeriesBase),d=this.chart._options,g=r.getValues(0),m=r.getValues(1),x=this.chart._plotRect,y=d&&d.funnel&&null!=d.funnel.neckWidth?d.funnel.neckWidth:.2,b=d&&d.funnel&&null!=d.funnel.neckHeight?d.funnel.neckHeight:0,v=y*x.width,w=0,S=0,C=0,P=0,A=x.left,M=x.top,T=x.width,L=x.height;if(g){this.rotated&&(M+=x.height);v=v||1;m||(m=this.dataInfo.getXVals());var j=g.length;null!=m&&(j=Math.min(j,m.length));var E=0;for(w=0;w<j;w++)if(_DataInfo.isValid(g[w])){S+=g[w];g[w]>E&&(E=g[w])}var F,k,N=0;if(d&&d.funnel&&"rectangle"===d.funnel.type&&E>0){b=L/j;y=T;var I=T/E;for(w=0;w<j;w++){var R=m?m[w]:w,B=g[w],D=f._getSymbolFill(w),O=f._getAltSymbolFill(w)||D,V=f._getSymbolStroke(w),H=f._getAltSymbolStroke(w)||V;if(this._getSymbolStyles){D=(U=this._getSymbolStyles(w,j))&&U.fill?U.fill:D;O=U&&U.fill?U.fill:O;V=U&&U.stroke?U.stroke:V;H=U&&U.stroke?U.stroke:H}F=B>0?D:O;k=B>0?V:H;t.fill=F;t.stroke=k;if(_DataInfo.isValid(R)&&_DataInfo.isValid(B)){I||(I=T/B);var G=I*B;A+=(y-G)/2;this.rotated&&(M-=b);t.drawRect(A,M,G,b);z=new _FunnelSegment(new wijmo_1.Point(A,M),G,b,G,b);this.rotated||(M+=b);y=G;z.tag=new _DataPoint(h,w,R,B);this.hitTester.add(z,h);r._setPointIndex(w,N);N++}}}else{C=x.left+x.width*(1-y)/2;P=x.top+x.height*(this.rotated?b:1-b);_=(1-y)*x.width/2/(x.height*(1-b));if(isNaN(_)||!isFinite(_)){T=v;A=C;M=P}l=x.width*y*x.height+x.width*(1-y)/2*x.height*(1-b);for(w=0;w<j;w++){R=m?m[w]:w,B=g[w];var z,X=[],Y=[];D=f._getSymbolFill(w),O=f._getAltSymbolFill(w)||D,V=f._getSymbolStroke(w),H=f._getAltSymbolStroke(w)||V;if(this._getSymbolStyles){var U;D=(U=this._getSymbolStyles(w,j))&&U.fill?U.fill:D;O=U&&U.fill?U.fill:O;V=U&&U.stroke?U.stroke:V;H=U&&U.stroke?U.stroke:H}F=B>0?D:O;k=B>0?V:H;t.fill=F;t.stroke=k;if(_DataInfo.isValid(R)&&_DataInfo.isValid(B)){var W=l*B/S;if(T>v){c=this._getTrapezoidOffsetY(T,W,_);if(this.rotated)if(M-c>P){X=[A,A+(u=_*c),A+T-u,A+T];Y=[M,M-c,M-c,M];z=new _FunnelSegment(new wijmo_1.Point(A,M-c),T,c,T-2*u,0,!0);T-=2*u;A+=u;M-=c}else{u=_*(c=M-P);p=(W-=this._getTrapezoidArea(T,_,c))/v;X.push(A,A+u,A+u,A+u+v,A+u+v,A+T);Y.push(M,M-c,M-c-p,M-c-p,M-c,M);z=new _FunnelSegment(new wijmo_1.Point(A,M-c-p),T,c+p,v,p,!0);T=v;A+=u;M=M-c-p}else if(M+c<P){X=[A,A+(u=_*c),A+T-u,A+T];Y=[M,M+c,M+c,M];z=new _FunnelSegment(new wijmo_1.Point(A,M),T,c,T-2*u,0);T-=2*u;A+=u;M+=c}else{u=_*(c=P-M);p=(W-=this._getTrapezoidArea(T,_,c))/v;X.push(A,A+u,A+u,A+u+v,A+u+v,A+T);Y.push(M,M+c,M+c+p,M+c+p,M+c,M);z=new _FunnelSegment(new wijmo_1.Point(A,M),T,c+p,v,p);T=v;A+=u;M=M+c+p}t.drawPolygon(X,Y)}else{p=W/v;this.rotated&&(M-=p);t.drawRect(A,M,T,p);z=new _FunnelSegment(new wijmo_1.Point(A,M),v,p,v,p);this.rotated||(M+=p)}z.tag=new _DataPoint(h,w,R,B);this.hitTester.add(z,h);r._setPointIndex(w,N);N++}}}}}};_FunnelPlotter.prototype._getTrapezoidArea=function(t,e,i){var r=i*e;return r*i+(t-2*r)*i};_FunnelPlotter.prototype._getTrapezoidOffsetY=function(t,e,i){var r=Math.pow(t/2/i,2)-e/i;return t/2/i-Math.sqrt(r>=0?r:0)};_FunnelPlotter.prototype.drawDefaultSymbol=function(t,e,i){t.drawRect(e.left,e.top,e.width,e.height,null,i.symbolStyle)};_FunnelPlotter.prototype._getPointAndPosition=function(t,e,i,r){var n=i;t.x=n.center.x;t.y=n.center.y;e=null==e?LabelPosition.Center:e};return _FunnelPlotter}(_BasePlotter);exports._FunnelPlotter=_FunnelPlotter;var _FunnelSegment=function(){function _FunnelSegment(t,e,i,r,n,s){void 0===s&&(s=!1);this._startPoint=t;this._width=e;this._height=i;this._neckWidth=r;this._neckHeight=n;this._center=new wijmo_1.Point(this._startPoint.x+e/2,this._startPoint.y+i/2);this._offsetX=(e-r)/2;this._offsetY=i-n;this._rotated=s}_FunnelSegment.prototype.contains=function(t){var e=this._startPoint,i=this._offsetX,r=this._offsetY;if(this._rotated){if(t.x>=e.x&&t.x<=e.x+this._width&&t.y>=e.y&&t.y<=e.y+this._height){if(t.x>=e.x+i&&t.x<=e.x+this._width-i)return!0;if(t.y<e.y+this._neckHeight)return!1;if(t.x<this._center.x)return(e.y+this._height-t.y)/(t.x-e.x)<r/i;if(t.x>this._center.x)return(e.y+this._height-t.y)/(e.x+this._width-t.x)<r/i}}else if(t.x>=e.x&&t.x<=e.x+this._width&&t.y>=e.y&&t.y<=e.y+this._height){if(t.x>=e.x+i&&t.x<=e.x+this._width-i)return!0;if(t.y>e.y+r)return!1;if(t.x<this._center.x)return(t.y-e.y)/(t.x-e.x)<r/i;if(t.x>this._center.x)return(t.y-e.y)/(e.x+this._width-t.x)<r/i}return!1};_FunnelSegment.prototype.distance=function(t){if(this.contains(t))return 0;var e=this._startPoint,i=this._width,r=this._height,n=this._offsetX,s=this._offsetY;if(this._rotated){if(t.y>e.y+r)return t.x<e.x?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y+r-t.y,2)):t.x>e.x+i?Math.sqrt(Math.pow(t.x-e.x-i,2)+Math.pow(e.y+r-t.y,2)):t.y-e.y-r;if(t.y<e.y)return t.x<e.x+n?Math.sqrt(Math.pow(e.x+n-t.x,2)+Math.pow(t.y-e.y-r,2)):t.x>e.x+i-n?Math.sqrt(Math.pow(t.x-e.x-i+n,2)+Math.pow(t.y-e.y-r,2)):e.y-t.y;if(!(t.y<e.y+r-s))return t.x<e.x+n?Math.min(Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(t.y-e.y-r,2)),Math.sqrt(Math.pow(t.x-n/2-e.x,2)+Math.pow(t.y-r+s/2-e.y,2)),Math.sqrt(Math.pow(t.x-n-e.x,2)+Math.pow(t.y-r+s-e.y,2))):Math.min(Math.sqrt(Math.pow(t.x-i-e.x,2)+Math.pow(t.y-r-e.y,2)),Math.sqrt(Math.pow(t.x-i+n/2-e.x,2)+Math.pow(t.y-r+s/2-e.y,2)),Math.sqrt(Math.pow(t.x-i+n-e.x,2)+Math.pow(t.y-r+s-e.y,2)));if(t.x<e.x+n)return e.x+n-t.x;if(t.x>e.x+i-n)return t.x-e.x-i+n}else{if(t.y<e.y)return t.x<e.x?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):t.x>e.x+i?Math.sqrt(Math.pow(t.x-e.x-i,2)+Math.pow(e.y-t.y,2)):e.y-t.y;if(t.y>e.y+r)return t.x<e.x+n?Math.sqrt(Math.pow(e.x+n-t.x,2)+Math.pow(t.y-e.y-r,2)):t.x>e.x+i-n?Math.sqrt(Math.pow(t.x-e.x-i+n,2)+Math.pow(t.y-e.y-r,2)):t.y-e.y-r;if(!(t.y>e.y+s))return t.x<e.x+n?Math.min(Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(t.y-e.y,2)),Math.sqrt(Math.pow(t.x-n/2-e.x,2)+Math.pow(t.y-s/2-e.y,2)),Math.sqrt(Math.pow(t.x-n-e.x,2)+Math.pow(t.y-s-e.y,2))):Math.min(Math.sqrt(Math.pow(t.x-i-e.x,2)+Math.pow(t.y-e.y,2)),Math.sqrt(Math.pow(t.x-i+n/2-e.x,2)+Math.pow(t.y-s/2-e.y,2)),Math.sqrt(Math.pow(t.x-i+n-e.x,2)+Math.pow(t.y-s-e.y,2)));if(t.x<e.x+n)return e.x+n-t.x;if(t.x>e.x+i-n)return t.x-e.x-i+n}};Object.defineProperty(_FunnelSegment.prototype,"center",{get:function(){return this._center},enumerable:!0,configurable:!0});return _FunnelSegment}();exports._FunnelSegment=_FunnelSegment;var _FinancePlotter=function(t){__extends(_FinancePlotter,t);function _FinancePlotter(){var e=null!==t&&t.apply(this,arguments)||this;e.isCandle=!0;e.isArms=!1;e.isEqui=!1;e.isVolume=!1;e._volHelper=null;e._symWidth=.7;return e}_FinancePlotter.prototype.clear=function(){t.prototype.clear.call(this);this._volHelper=null};_FinancePlotter.prototype.load=function(){t.prototype.load.call(this);if(this.isVolume){var e,i,r,n,s,o,a,h,l=null,_=null;for(o=0;o<this.chart.series.length;o++){s=(e=this.chart.series[o]).getDataType(1)||e.chart._xDataType;i=e._getAxisX();n=(r=null===(r=e._getChartType())||wijmo_1.isUndefined(r)?this.chart._getChartType():r)===ChartType.Column?e._getBindingValues(1):r===ChartType.Candlestick?e._getBindingValues(4):null;if(s===wijmo_1.DataType.Date){var u;a=[];h=[];for(o=0;o<e._getLength();o++){u=e._getItem(o)[e.bindingX].valueOf();a.push(u);h.push({value:u,text:wijmo_1.Globalize.format(new Date(u),i.format||"d")})}}else a=this.dataInfo.getXVals();l=this.dataInfo.getMinX();_=this.dataInfo.getMaxX();if(n&&n.length>0){this._volHelper=new _VolumeHelper(n,a,l,_,s);i._customConvert=this._volHelper.convert.bind(this._volHelper);i._customConvertBack=this._volHelper.convertBack.bind(this._volHelper);h&&h.length>0&&(this._itemsSource=i.itemsSource=h);break}}}};_FinancePlotter.prototype.unload=function(){t.prototype.unload.call(this);for(var e,i=0;i<this.chart.series.length;i++)if(e=this.chart.series[i]._getAxisX()){e._customConvert=null;e._customConvertBack=null;e.itemsSource&&e.itemsSource==this._itemsSource&&(this._itemsSource=e.itemsSource=null)}};_FinancePlotter.prototype.parseSymbolWidth=function(t){this._isPixel=void 0;if(t)if(wijmo_1.isNumber(t)){var e=wijmo_1.asNumber(t);if(isFinite(e)&&e>0){this._symWidth=e;this._isPixel=!0}}else if(wijmo_1.isString(t)){var i=wijmo_1.asString(t);if(i&&i.indexOf("%")>=0){i=i.replace("%","");var r=parseFloat(i);if(isFinite(r)){r<0?r=0:r>100&&(r=100);this._symWidth=r/100;this._isPixel=!1}}else{r=parseFloat(t);if(isFinite(r)&&r>0){this._symWidth=r;this._isPixel=!0}}}};_FinancePlotter.prototype.adjustLimits=function(t,e){this.dataInfo=t;var i=t.getMinX(),r=t.getMinY(),n=t.getMaxX(),s=t.getMaxY(),o=t.getDeltaX(),a=this.chart._xDataType;o<=0&&(o=1);var h=this.chart.series,l=h.length,_=0;this.parseSymbolWidth(this.symbolWidth);!this.isVolume||this.chart._getChartType()!==ChartType.Column&&this.chart._getChartType()!==ChartType.Candlestick?this.unload():this.load();for(var u=0;u<l;u++){var c=h[u];if(!c._isCustomAxisY()){var p=c._getBinding(1),f=c._getBinding(2),d=c._getBinding(3),g=c._getLength();if(g){var m=c._getSymbolSize();m>_&&(_=m);for(var x=0;x<g;x++){var y=c._getItem(x);if(y){[p?y[p]:null,f?y[f]:null,d?y[d]:null].forEach((function(t){if(_DataInfo.isValid(t)&&null!==t){(isNaN(r)||t<r)&&(r=t);(isNaN(s)||t>s)&&(s=t)}}))}}}}}var b=n-i;return!(a===wijmo_1.DataType.Date&&this.isVolume||a===wijmo_1.DataType.Number)||this.chart._getChartType()!==ChartType.Column&&this.chart._getChartType()!==ChartType.Candlestick?this.chart._isRotated()?new wijmo_1.Rect(r,i,s-r,b):new wijmo_1.Rect(i,r,b,s-r):new wijmo_1.Rect(i-.5*o,r,n-i+o,s-r)};_FinancePlotter.prototype.plotSeries=function(t,e,i,r,n,s,o,a){var h=this,l=wijmo_1.asType(r,SeriesBase),_=this.chart.series.indexOf(r),u=r.getValues(0),c=r.getValues(1),p=this._symWidth,f=this.chart._isRotated();if(u){c||(c=this.dataInfo.getXVals());if(c){var d=this.dataInfo.getDeltaX();d>0&&!1===this._isPixel&&(p*=d)}var g=u.length,m=!0;if(c)g=Math.min(g,c.length);else{m=!1;c=new Array(g)}var x=this._DEFAULT_WIDTH,y=l._getSymbolFill(_),b=l._getAltSymbolFill(_)||"transparent",v=l._getSymbolStroke(_),w=l._getAltSymbolStroke(_)||v,S=void 0===this._isPixel?l._getSymbolSize():p;t.stroke=v;t.strokeWidth=x;t.fill=y;for(var C,P,A=l._getBinding(1),M=l._getBinding(2),T=l._getBinding(3),L=f?i.actualMin:e.actualMin,j=f?i.actualMax:e.actualMax,E=0,F=null,k=null,N=this.getItemFormatter(r),I=0;I<g;I++)if(F=l._getItem(I)){var R=m?c[I]:I;if(_DataInfo.isValid(R)&&L<=R&&R<=j){var B=u[I],D=A?F[A]:null,O=M?F[M]:null,V=T?F[T]:null;t.startGroup();if(this.isEqui&&null!==k){if(k[T]!==F[T]){C=k[T]<F[T]?b:y;P=k[T]<F[T]?w:v}}else{C=O<V?b:y;P=O<V?w:v}t.fill=C;t.stroke=P;t.strokeWidth=x;if(N){var H=new HitTestInfo(this.chart,new wijmo_1.Point(e.convert(R),i.convert(B)),ChartElement.SeriesSymbol);H._setData(l,I);N(t,H,(function(){h._drawSymbol(t,e,i,_,I,C,S,R,B,D,O,V,g)}));t.cssPriority=!0}else this._drawSymbol(t,e,i,_,I,C,S,R,B,D,O,V,g);t.endGroup();r._setPointIndex(I,E);E++}k=F}}};_FinancePlotter.prototype._drawSymbol=function(t,e,i,r,n,s,o,a,h,l,_,u,c){var p,f=null,d=null,g=null,m=null,x=this.chart._isRotated(),y=e.convert(a),b=e._axrect,v=o/2,w=0===n&&y-b.left<=v,S=n===c-1&&b.right-y<=v,C=x?new _DataPoint(r,n,h,a):new _DataPoint(r,n,a,h);if(x){var P=i;i=e;e=P}if(!1===this._isPixel){if(w){g=a;m=a+o}else if(S){g=a-o;m=a}else{g=a-.5*o;m=a+.5*o}if((g=e.convert(g))>(m=e.convert(m))){var A=g;g=m;m=A}}a=y;if(!1!==this._isPixel)if(w){g=a;m=a+o}else if(S){g=a-o;m=a}else{g=a-.5*o;m=a+.5*o}if(this.isCandle){if(_DataInfo.isValid(_)&&_DataInfo.isValid(u)){_=i.convert(_);u=i.convert(u);d=(f=Math.min(_,u))+Math.abs(_-u);if(x){t.drawRect(f,g,d-f||1,m-g||1);p=new _RectArea(new wijmo_1.Rect(f,g,d-f||1,m-g||1))}else{t.drawRect(g,f,m-g||1,d-f||1);p=new _RectArea(new wijmo_1.Rect(g,f,m-g||1,d-f||1))}p.tag=C;this.hitTester.add(p,r)}if(_DataInfo.isValid(h)){h=i.convert(h);if(null!==f)if(x){t.drawLine(d,a,h,a);p.rect.width=p.rect.width+h}else{t.drawLine(a,f,a,h);p.rect.top=h;p.rect.height=p.rect.height+h}}if(_DataInfo.isValid(l)){l=i.convert(l);if(null!==d)if(x){t.drawLine(f,a,l,a);p.rect.left=l;p.rect.width=p.rect.width+l}else{t.drawLine(a,d,a,l);p.rect.height=p.rect.height+l}}}else if(this.isEqui){if(_DataInfo.isValid(h)&&_DataInfo.isValid(l)){h=i.convert(h);l=i.convert(l);d=(f=Math.min(h,l))+Math.abs(h-l);t.drawRect(g,f,m-g||1,d-f||1);(p=new _RectArea(new wijmo_1.Rect(g,f,m-g||1,d-f||1))).tag=C;this.hitTester.add(p,r)}}else if(this.isArms){if(_DataInfo.isValid(_)&&_DataInfo.isValid(u)){_=i.convert(_);u=i.convert(u);d=(f=Math.min(_,u))+Math.abs(_-u);t.drawRect(g,f,m-g||1,d-f||1)}if(_DataInfo.isValid(h)&&null!==f){h=i.convert(h);t.drawLine(a,f,a,h)}if(_DataInfo.isValid(l)&&null!==d){l=i.convert(l);t.drawLine(a,d,a,l)}if(_DataInfo.isValid(h)&&_DataInfo.isValid(l)){t.fill="transparent";d=(f=Math.min(h,l))+Math.abs(h-l);t.drawRect(g,f,m-g||1,d-f||1);(p=new _RectArea(new wijmo_1.Rect(g,f,m-g||1,d-f||1))).tag=C;this.hitTester.add(p,r)}}else{if(_DataInfo.isValid(h)&&_DataInfo.isValid(l)){h=i.convert(h);l=i.convert(l);d=(f=Math.min(h,l))+Math.abs(h-l);if(x){t.drawLine(l,a,h,a);p=new _RectArea(new wijmo_1.Rect(f,g,d-f||1,m-g||1))}else{t.drawLine(a,l,a,h);p=new _RectArea(new wijmo_1.Rect(g,f,m-g||1,d-f||1))}p.tag=C;this.hitTester.add(p,r)}if(_DataInfo.isValid(_)){_=i.convert(_);x?t.drawLine(_,g,_,a):t.drawLine(g,_,a,_)}if(_DataInfo.isValid(u)){u=i.convert(u);x?t.drawLine(u,a,u,m):t.drawLine(a,u,m,u)}}};return _FinancePlotter}(_BasePlotter);exports._FinancePlotter=_FinancePlotter;var _LinePlotter=function(t){__extends(_LinePlotter,t);function _LinePlotter(){var e=t.call(this)||this;e.hasSymbols=!1;e.hasLines=!0;e.isSpline=!1;e.isStep=!1;e.hitTestSymbols=!0;e.stacking=Stacking.None;e.stackPos={};e.stackNeg={};e.clipping=!1;return e}_LinePlotter.prototype.clear=function(){t.prototype.clear.call(this);this.stackNeg={};this.stackPos={}};_LinePlotter.prototype.adjustLimits=function(t,e){this.dataInfo=t;var i=t.getMinX(),r=t.getMinY(),n=t.getMaxX(),s=t.getMaxY();if(this.isSpline&&!this.chart.axisY._getLogBase()){var o=.1*(s-r);r-=o;s+=o}return this.rotated?new wijmo_1.Rect(r,i,s-r,n-i):new wijmo_1.Rect(i,r,n-i,s-r)};_LinePlotter.prototype.plotSeries=function(t,e,i,r,n,s,o,a){var h=[],l=wijmo_1.asType(r,SeriesBase),_=this.chart.series.indexOf(r),u=r.getValues(0),c=r.getValues(1);if(u){c||(c=this.dataInfo.getXVals());var p=_BasePlotter.cloneStyle(r.style,["fill"]),f=u.length,d=!0;if(c)f=Math.min(f,c.length);else{d=!1;c=new Array(f)}var g=this._DEFAULT_WIDTH,m=l._getSymbolFill(_),x=l._getAltSymbolFill(_)||m,y=l._getSymbolStroke(_),b=l._getAltSymbolStroke(_)||y,v=l._getSymbolSize();t.stroke=y;t.strokeWidth=g;t.fill=m;var w=new Float64Array(f),S=new Float64Array(f),C=0,P=new Int8Array(f),A=0,M=this.rotated,T=this.stacking!=Stacking.None&&!l._isCustomAxisY(),L=this.stacking==Stacking.Stacked100pc&&!l._isCustomAxisY();void 0!==l._getChartType()&&(T=L=!1);for(var j=l.interpolateNulls,E=!1,F=this.getItemFormatter(r),k=0;k<f;k++){var N=d?c[k]:k,I=u[k];if(isFinite(N)&&isFinite(I)){if(T){if(L){I/=this.dataInfo.getStackedAbsSum(N)}if(I>=0){var R=isNaN(this.stackPos[N])?0:this.stackPos[N];I=this.stackPos[N]=R+I}else{R=isNaN(this.stackNeg[N])?0:this.stackNeg[N];I=this.stackNeg[N]=R+I}}var B;if(M){B=new _DataPoint(_,k,I,N);var D=e.convert(I);I=i.convert(N);N=D}else{B=new _DataPoint(_,k,N,I);N=e.convert(N);I=i.convert(I)}if(isNaN(N)||isNaN(I)){E=!0;if(!0!==j){w[C]=NaN;S[C++]=NaN}P[A++]=1;a&&h.push(null)}else{w[C]=N;S[C++]=I;A++;a&&h.push(new wijmo_1.Point(N,I));if(this.hitTestSymbols){var O=new _CircleArea(new wijmo_1.Point(N,I),.5*v);O.tag=B;this.hitTester.add(O,_)}}}else{E=!0;if(!0!==j){w[C]=NaN;S[C++]=NaN}P[A++]=1;a&&h.push(null)}}var V=0;if(this.hasLines){t.fill=null;if(E&&!0!==j){var H=[],G=[];for(k=0;k<f;k++)if(isNaN(w[k])){if(H.length>1){this._drawLines(t,H,G,null,p,this.chart._plotrectId);this.hitTester.add(new _LinesArea(H,G),_);V++}H=[];G=[]}else{H.push(w[k]);G.push(S[k])}if(H.length>1){this._drawLines(t,H,G,null,p,this.chart._plotrectId);this.hitTester.add(new _LinesArea(H,G),_);V++}}else{this._drawLines(t,w,S,null,p,this.chart._plotrectId,C);this.hitTester.add(new _LinesArea(w,S),_);V++}}if(this.hasSymbols&&v>0||F){t.fill=m;var z=0;for(k=0;k<f;k++)if(!j||!P[k]){N=w[z],I=S[z];if(!1===this.hasLines||F){t.fill=u[k]>0?m:x;t.stroke=u[k]>0?y:b;t.strokeWidth=g}if(this.isValid(N,I,e,i)){this._drawSymbol(t,N,I,v,l,k,F);r._setPointIndex(k,V);V++}z++}}a&&h&&h.length&&a(h)}};_LinePlotter.prototype._drawLines=function(t,e,i,r,n,s,o){if(this.isSpline&&o>3)t.drawSplines(e,i,r,n,s,o);else if(this.isStep){var a=this._createSteps(e,i,o);e=a.x;i=a.y;t.drawLines(e,i,r,n,s)}else t.drawLines(e,i,r,n,s,o)};_LinePlotter.prototype._drawSymbol=function(t,e,i,r,n,s,o){var a=this;if(o){t.startGroup();var h=new HitTestInfo(this.chart,new wijmo_1.Point(e,i),ChartElement.SeriesSymbol);h._setData(n,s);o(t,h,(function(){a.hasSymbols&&r>0&&a._drawDefaultSymbol(t,e,i,r,n.symbolMarker,n.symbolStyle)}));t.cssPriority=!0;t.endGroup()}else this._drawDefaultSymbol(t,e,i,r,n.symbolMarker,n.symbolStyle)};_LinePlotter.prototype._drawDefaultSymbol=function(t,e,i,r,n,s){n==Marker.Dot?t.drawEllipse(e,i,.5*r,.5*r,null,s):n==Marker.Box&&t.drawRect(e-.5*r,i-.5*r,r,r,null,s)};return _LinePlotter}(_BasePlotter);exports._LinePlotter=_LinePlotter;var _BubblePlotter=function(t){__extends(_BubblePlotter,t);function _BubblePlotter(){var e=t.call(this)||this;e._MIN_SIZE=5;e._MAX_SIZE=30;e.hasLines=!1;e.hasSymbols=!0;e.clipping=!0;e.hitTestSymbols=!1;return e}_BubblePlotter.prototype.adjustLimits=function(e,i){var r=this.getNumOption("minSize","bubble");this._minSize=r||this._MIN_SIZE;var n=this.getNumOption("maxSize","bubble");this._maxSize=n||this._MAX_SIZE;for(var s=this.chart.series,o=s.length,a=NaN,h=NaN,l=0;l<o;l++){if((m=s[l])._getChartType()==ChartType.Bubble||null==m._getChartType()&&m._chart._getChartType()==ChartType.Bubble){if(x=m._getBindingValues(1))for(var _=x.length,u=0;u<_;u++)if(isFinite(x[u])){(isNaN(a)||x[u]<a)&&(a=x[u]);(isNaN(h)||x[u]>h)&&(h=x[u])}}}this._minValue=a;this._maxValue=h;var c=t.prototype.adjustLimits.call(this,e,i),p=i.left,f=i.right,d=i.top,g=i.bottom;for(l=0;l<o;l++){var m;if((m=s[l])._getChartType()==ChartType.Bubble||null==m._getChartType()&&m._chart._getChartType()==ChartType.Bubble){var x=m._getBindingValues(1),y=m.getValues(1),b=m.getValues(0);if(x&&y&&b){var v=x.length;for(u=0;u<v;u++){var w=y?y[u]:u,S=b[u],C=x[u];if(_DataInfo.isValid(w,S,C)){w=i.left+i.width*(w-c.left)/c.width;S=i.top+i.height*(S-c.top)/c.height;w-(C=this._minSize+(this._maxSize-this._minSize)*(C-a)/(h-a))<p&&(p=w-C);w+C>f&&(f=w+C);S-C<d&&(d=S-C);S+C>g&&(g=S+C)}}}}}p=i.left-p+5;f=f-i.right+5;d=i.top-d+5;g=g-i.bottom+5;var P=this.chart.axisX,A=this.chart.axisY;if(!P._isLogAxis())if(this.stacking==Stacking.Stacked100pc&&this.rotated){var M=(i.width-this._maxSize)/c.width;c.left-=.5*this._maxSize/M;c.width+=this._maxSize/M}else{M=(i.width-(p+f))/c.width;c.left-=p/M;c.width+=(p+f)/M}if(!A._isLogAxis())if(this.stacking!=Stacking.Stacked100pc||this.rotated){T=(i.height-(d+g))/c.height;c.top-=d/T;c.height+=(d+g)/T}else{var T=(i.height-this._maxSize)/c.height;c.top-=.5*this._maxSize/T;c.height+=this._maxSize/T}return c};_BubblePlotter.prototype._drawSymbol=function(t,e,i,r,n,s,o){var a=this;if(null==this._minSize){var h=this.getNumOption("minSize","bubble");this._minSize=h||this._MIN_SIZE}if(null==this._maxSize){var l=this.getNumOption("maxSize","bubble");this._maxSize=l||this._MAX_SIZE}var _=n._getItem(s);if(_){var u=n._getBinding(1);if(u){r=_[u];if(isFinite(r)){null==r&&(r=this._minValue);var c=this._minValue==this._maxValue?1:Math.sqrt((r-this._minValue)/(this._maxValue-this._minValue));r=this._minSize+(this._maxSize-this._minSize)*c;if(o){var p=new HitTestInfo(this.chart,new wijmo_1.Point(e,i),ChartElement.SeriesSymbol);p._setData(n,s);t.startGroup();o(t,p,(function(){a._drawDefaultSymbol(t,e,i,r,n.symbolMarker,n.symbolStyle)}));t.endGroup()}else this._drawDefaultSymbol(t,e,i,r,n.symbolMarker,n.symbolStyle);var f=n.getValues(1);f||(f=this.dataInfo.getXVals());var d=f?f[s]:s,g=n.getValues(0)[s],m=this.chart.series.indexOf(n),x=new _CircleArea(new wijmo_1.Point(e,i),.5*r);x.tag=new _DataPoint(m,s,d,g);this.hitTester.add(x,m)}}}};return _BubblePlotter}(_LinePlotter);exports._BubblePlotter=_BubblePlotter;wijmo_1._registerModule("wijmo.chart",selfModule);
14
+ "use strict";var __extends=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};return function(t,e){extendStatics(t,e);function __(){this.constructor=t}t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}(),__importStar=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.hasOwnProperty.call(t,i)&&(e[i]=t[i]);e.default=t;return e};Object.defineProperty(exports,"__esModule",{value:!0});var wijmo_1=require("wijmo/wijmo"),selfModule=__importStar(require("wijmo/wijmo.chart")),_VolumeHelper=function(){function _VolumeHelper(t,e,i,r,n){this._volumes=wijmo_1.asArray(t);this._xVals=wijmo_1.asArray(e);this._xDataMin=wijmo_1.asNumber(i,!0,!1);this._xDataMax=wijmo_1.asNumber(r,!0,!1);this._xDataType=wijmo_1.asEnum(n,wijmo_1.DataType,!0);this._calcData=[];this._init()}_VolumeHelper.prototype.convert=function(t,e,i){var r,n=this._calcData.length,s=-1;if(this._hasXs&&this._xDataType===wijmo_1.DataType.Date){if(-1===(s=this._xVals.indexOf(t)))for(var o=0;o<this._xVals.length;o++){if(o<this._xVals.length-1&&this._xVals[o]<=t&&t<=this._xVals[o+1]){s=o;break}if(0===o&&t<=this._xVals[o]){s=o;break}if(o===this._xVals.length-1&&this._xVals[o]<=t){s=o;break}}if(-1===s){s=this._xVals.indexOf(Math.floor(t));s=wijmo_1.clamp(s,0,n-1)}}else if(this._hasXs){if(-1===(s=this._xVals.indexOf(t))){s=this._xVals.indexOf(Math.floor(t));s=wijmo_1.clamp(s,0,n-1)}}else s=wijmo_1.clamp(Math.round(t),0,n-1);if(0<=s&&s<n){this._hasXs&&(t=_VolumeHelper.convertToRange(t,0,n-1,this._xDataMin,this._xDataMax));r=((r=this._calcData[s].value+(t-s)*this._calcData[s].width-.5*this._calcData[s].width)-(e=this._getXVolume(e)))/((i=this._getXVolume(i))-e)}return r};_VolumeHelper.prototype.convertBack=function(t,e,i){var r,n,s=this._calcData.length,o=-1;for(n=0;n<s;n++)if(this._calcData[n].x1<=t&&t<=this._calcData[n].x2||0===n&&t<=this._calcData[n].x2||n===s-1&&this._calcData[n].x1<=t){o=n;break}if(0<=o&&o<s){r=t/this._calcData[o].width-this._calcData[o].value/this._calcData[o].width+.5+n;this._hasXs&&(r=_VolumeHelper.convertToRange(r,this._xDataMin,this._xDataMax,0,s-1))}return r};_VolumeHelper.prototype._init=function(){this._hasXs=null!==this._xVals&&this._xVals.length>0;this._hasXs&&!wijmo_1.isNumber(this._xDataMin)&&(this._xDataMin=Math.min.apply(null,this._xVals));this._hasXs&&!wijmo_1.isNumber(this._xDataMax)&&(this._xDataMax=Math.max.apply(null,this._xVals));this._hasXs&&(this._hasXs=wijmo_1.isNumber(this._xDataMin)&&wijmo_1.isNumber(this._xDataMax));this._hasXs&&this._xDataType===wijmo_1.DataType.Date&&this._fillGaps();var t=0,e=0,i=null!==this._volumes&&this._volumes.length>0?this._volumes.length:0;for(e=0;e<i;e++)t+=this._volumes[e]||0;var r,n,s=0;for(e=0;e<i;e++){r=s+(n=(this._volumes[e]||0)/t);this._calcData.push({value:r,width:n,x1:s,x2:r});s=this._calcData[e].value}};_VolumeHelper.prototype._getXVolume=function(t){var e=this._calcData.length,i=-1;if(this._hasXs){i=this._xVals.indexOf(t);for(var r=0;r<this._xVals.length;r++){if(r<this._xVals.length-1&&this._xVals[r]<=t&&t<=this._xVals[r+1]){i=r;break}if(0===r&&t<=this._xVals[r]){i=r;break}if(r===this._xVals.length-1&&this._xVals[r]<=t){i=r;break}}}this._hasXs&&(t=_VolumeHelper.convertToRange(t,0,e-1,this._xDataMin,this._xDataMax));-1===i&&(i=wijmo_1.clamp(Math.round(t),0,e-1));return this._calcData[i].value+(t-i)*this._calcData[i].width-.5*this._calcData[i].width};_VolumeHelper.convertToRange=function(t,e,i,r,n){return e===i||r===n?0:(t-r)*(i-e)/(n-r)+e};_VolumeHelper.prototype._fillGaps=function(){if(!(this._xDataType!==wijmo_1.DataType.Date||null===this._xVals||this._xVals.length<=0)){var t,e=this._xDataMin,i=this._xDataMax;for(t=1;e<i;t++){(e=new Date(e)).setDate(e.getDate()+1);if((e=e.valueOf())!==this._xVals[t]){this._xVals.splice(t,0,e);this._volumes.splice(t,0,0)}}}};return _VolumeHelper}();exports._VolumeHelper=_VolumeHelper;var _Curve=function(){function _Curve(t,e,i,r){this.monoX=!1;var n=i||Math.min(t.length,e.length),s=0,o=0,a=0,h=0;if(n>3)for(var l=0;l<n-1;l++)if(l>0){o=Math.min(o,t[l]-t[l-1]);s=Math.max(s,t[l]-t[l-1]);h=Math.min(h,e[l]-e[l-1]);a=Math.max(a,e[l]-e[l-1])}this.monoX=s>0&&0===o||o<0&&0===s;this.monoX&&"spline"!==r?this.calc=o<0?new _SplineMono(t.reverse(),e.reverse(),i):new _SplineMono(t,e,i):this.calc=new _Spline(t,e,i)}_Curve.prototype.calculate=function(){return this.calc.calculate()};return _Curve}();exports._Curve=_Curve;var _Spline=function(){function _Spline(t,e,i){this.k=.002;this._a=[];this._b=[];this._c=[];this._d=[];this.m=[[-.5,1.5,-1.5,.5],[1,-2.5,2,-.5],[-.5,0,.5,0],[0,1,0,0]];this._x=t;this._y=e;this._len=i||Math.min(t.length,e.length);var r=this._len;if(r>3)for(var n=0;n<r-1;n++){var s=0==n?new wijmo_1.Point(t[n],e[n]):new wijmo_1.Point(t[n-1],e[n-1]),o=new wijmo_1.Point(t[n],e[n]),a=new wijmo_1.Point(t[n+1],e[n+1]),h=n==r-2?new wijmo_1.Point(t[n+1],e[n+1]):new wijmo_1.Point(t[n+2],e[n+2]),l=new wijmo_1.Point,_=new wijmo_1.Point,u=new wijmo_1.Point,c=new wijmo_1.Point;l.x=s.x*this.m[0][0]+o.x*this.m[0][1]+a.x*this.m[0][2]+h.x*this.m[0][3];_.x=s.x*this.m[1][0]+o.x*this.m[1][1]+a.x*this.m[1][2]+h.x*this.m[1][3];u.x=s.x*this.m[2][0]+o.x*this.m[2][1]+a.x*this.m[2][2]+h.x*this.m[2][3];c.x=s.x*this.m[3][0]+o.x*this.m[3][1]+a.x*this.m[3][2]+h.x*this.m[3][3];l.y=s.y*this.m[0][0]+o.y*this.m[0][1]+a.y*this.m[0][2]+h.y*this.m[0][3];_.y=s.y*this.m[1][0]+o.y*this.m[1][1]+a.y*this.m[1][2]+h.y*this.m[1][3];u.y=s.y*this.m[2][0]+o.y*this.m[2][1]+a.y*this.m[2][2]+h.y*this.m[2][3];c.y=s.y*this.m[3][0]+o.y*this.m[3][1]+a.y*this.m[3][2]+h.y*this.m[3][3];this._a.push(l);this._b.push(_);this._c.push(u);this._d.push(c)}}_Spline.prototype.calculatePoint=function(t){var e=Math.floor(t);e<0&&(e=0);e>this._len-2&&(e=this._len-2);var i=t-e;return{x:((this._a[e].x*i+this._b[e].x)*i+this._c[e].x)*i+this._d[e].x,y:((this._a[e].y*i+this._b[e].y)*i+this._c[e].y)*i+this._d[e].y}};_Spline.prototype.calculate=function(){if(this._len<=3)return{xs:this._x,ys:this._y};var t=[],e=[],i=this.calculatePoint(0);t.push(i.x);e.push(i.y);for(var r=Math.min(this._len*this.k,.2),n=r;n<=this._len-1;n+=r){var s=Math.ceil(n),o=this.calculatePoint(n);if(Math.abs(i.x-o.x)>=3||Math.abs(i.y-o.y)>=3){t.push(o.x);e.push(o.y);i=o}if(n+r>=s){t.push(this._x[s]);e.push(this._y[s])}}return{xs:t,ys:e}};return _Spline}();exports._Spline=_Spline;var _SplineMono=function(){function _SplineMono(t,e,i){this._x=[];this._y=[];this._c1s=[];this._c2s=[];this._c3s=[];this._len=i||Math.min(t.length,e.length);for(var r=this._len,n=0;n<r;n++){this._x.push(t[n]);this._y.push(e[n])}t=this._x;e=this._y;if(!(this._len<=3)){var s=[],o=[],a=[];for(n=0;n<r-1;n++){var h=t[n+1]-t[n],l=e[n+1]-e[n];o[n]=h;s[n]=l;a[n]=l/h}var _=this._c1s;_.push(a[0]);for(n=0;n<o.length-1;n++){var u=a[n],c=a[n+1];if(u*c<=0)_.push(0);else{var p=o[n],f=o[n+1],d=p+f;_.push(3*d/((d+f)/u+(d+p)/c))}}_.push(a[a.length-1]);var g=this._c2s,m=this._c3s;for(n=0;n<_.length-1;n++){var x=_[n],y=a[n],b=1/o[n],v=x+_[n+1]-y-y;g[n]=(y-x-v)*b;m[n]=v*b*b}}}_SplineMono.prototype.interpolate=function(t){var e=this._x.length-1;if(t>=this._x[e])return this._y[e];for(var i,r=0,n=this._c3s.length-1;r<=n;){i=Math.floor(.5*(r+n));var s=this._x[i];if(s<t)r=i+1;else{if(!(s>t))return this._y[i];n=i-1}}e=Math.max(0,n);var o=t-this._x[e];return this._y[e]+o*(this._c1s[e]+o*(this._c2s[e]+o*this._c3s[e]))};_SplineMono.prototype.calculate=function(){if(this._len<=3)return{xs:this._x,ys:this._y};for(var t=[],e=[],i=this._len,r=this._x[0],n=this._x[i-1],s=Math.min(.001*this._len,.2),o=r;o<=n;o+=s){t.push(o);e.push(this.interpolate(o))}return{xs:t,ys:e}};return _SplineMono}();exports.AxisClsNames={axisX:"wj-axis-x",axisXLabels:"wj-axis-x-labels",axisY:"wj-axis-y",axisYLabels:"wj-axis-y-labels",gridline:"wj-gridline",gridlineMinor:"wj-gridline-minor",line:"wj-line",tick:"wj-tick",tickMinor:"wj-tick-minor"};exports.DataLabelClsNames={border:"wj-data-label-border",label:"wj-data-label",labels:"wj-data-labels",line:"wj-data-label-line"};exports.FlexChartClsNames={footer:"wj-footer",header:"wj-header",hostElement:"wj-flexchart",label:"wj-label",legend:"wj-legend",plotArea:"wj-plot-area",title:"wj-title",touchDisabled:"wj-flexchart-touch-disabled"};exports.FlexPieClsNames={hostElement:"wj-flexpie",slice:"wj-slice",sliceGroup:"wj-slice-group"};exports.LegendClsNames={legend:"wj-legend",title:"wj-title"};exports.LineMarkerClsNames={container:"wj-chart-linemarker-container",content:"wj-chart-linemarker-content",draggable:"wj-chart-linemarker-draggable",hline:"wj-chart-linemarker-hline",linemarker:"wj-chart-linemarker",vline:"wj-chart-linemarker-vline"};exports.SeriesClsNames={group:"wj-series-group"};var Palettes=function(){function Palettes(){}Palettes._isExtended=function(t){return-1!==Palettes._values(Palettes.Diverging).indexOf(t)||-1!==Palettes._values(Palettes.Qualitative).indexOf(t)||-1!==Palettes._values(Palettes.SequentialSingle).indexOf(t)||-1!==Palettes._values(Palettes.SequentialMulti).indexOf(t)};Palettes._values=function(t){return Object.keys(t).map((function(e){return t[e]}))};Palettes.standard=["#88bde6","#fbb258","#90cd97","#f6aac9","#bfa554","#bc99c7","#eddd46","#f07e6e","#8c8c8c"];Palettes.cocoa=["#466bb0","#c8b422","#14886e","#b54836","#6e5944","#8b3872","#73b22b","#b87320","#141414"];Palettes.coral=["#84d0e0","#f48256","#95c78c","#efa5d6","#ba8452","#ab95c2","#ede9d0","#e96b7d","#888888"];Palettes.dark=["#005fad","#f06400","#009330","#e400b1","#b65800","#6a279c","#d5a211","#dc0127","#000000"];Palettes.highcontrast=["#ff82b0","#0dda2c","#0021ab","#bcf28c","#19c23b","#890d3a","#607efd","#1b7700","#000000"];Palettes.light=["#ddca9a","#778deb","#cb9fbb","#b5eae2","#7270be","#a6c7a7","#9e95c7","#95b0c7","#9b9b9b"];Palettes.midnight=["#83aaca","#e37849","#14a46a","#e097da","#a26d54","#a584b7","#d89c54","#e86996","#2c343b"];Palettes.modern=["#2d9fc7","#ec993c","#89c235","#e377a4","#a68931","#a672a6","#d0c041","#e35855","#68706a"];Palettes.organic=["#9c88d9","#a3d767","#8ec3c0","#e9c3a9","#91ab36","#d4ccc0","#61bbd8","#e2d76f","#80715a"];Palettes.slate=["#7493cd","#f99820","#71b486","#e4a491","#cb883b","#ae83a4","#bacc5c","#e5746a","#505d65"];Palettes.zen=["#7bb5ae","#e2d287","#92b8da","#eac4cb","#7b8bbd","#c7d189","#b9a0c8","#dfb397","#a9a9a9"];Palettes.cyborg=["#2a9fd6","#77b300","#9933cc","#ff8800","#cc0000","#00cca3","#3d6dcc","#525252","#000000"];Palettes.superhero=["#5cb85c","#f0ad4e","#5bc0de","#d9534f","#9f5bde","#46db8c","#b6b86e","#4e5d6c","#2b3e4b"];Palettes.flatly=["#18bc9c","#3498db","#f39c12","#6cc1be","#99a549","#8f54b5","#e74c3c","#8a9899","#2c3e50"];Palettes.darkly=["#375a7f","#00bc8c","#3498db","#f39c12","#e74c3c","#8f61b3","#b08725","#4a4949","#000000"];Palettes.cerulan=["#033e76","#87c048","#59822c","#53b3eb","#fc6506","#d42323","#e3bb00","#cccccc","#222222"];Palettes.Qualitative={Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5"]};Palettes.Diverging={BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]};Palettes.SequentialSingle={Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"]};Palettes.SequentialMulti={BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"]};return Palettes}();exports.Palettes=Palettes;exports.empty={};var PlotArea=function(){function PlotArea(t){this._row=0;this._col=0;this._rect=new wijmo_1.Rect(0,0,0,0);wijmo_1.copy(this,t)}Object.defineProperty(PlotArea.prototype,"row",{get:function(){return this._row},set:function(t){if(t!=this._row){this._row=wijmo_1.asInt(t,!0,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(PlotArea.prototype,"column",{get:function(){return this._col},set:function(t){if(t!=this._col){this._col=wijmo_1.asInt(t,!0,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(PlotArea.prototype,"name",{get:function(){return this._name},set:function(t){t!=this._name&&(this._name=wijmo_1.asString(t,!0))},enumerable:!0,configurable:!0});Object.defineProperty(PlotArea.prototype,"width",{get:function(){return this._width},set:function(t){if(t!=this._width){this._width=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(PlotArea.prototype,"height",{get:function(){return this._height},set:function(t){if(t!=this._height){this._height=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(PlotArea.prototype,"style",{get:function(){return this._style},set:function(t){if(t!=this._style){this._style=t;this._invalidate()}},enumerable:!0,configurable:!0});PlotArea.prototype._invalidate=function(){this._chart&&this._chart.invalidate()};PlotArea.prototype._render=function(t){t.drawRect(this._rect.left,this._rect.top,this._rect.width,this._rect.height,null,this.style)};PlotArea.prototype._setPlotX=function(t,e){this._rect.left=t;this._rect.width=e};PlotArea.prototype._setPlotY=function(t,e){this._rect.top=t;this._rect.height=e};return PlotArea}();exports.PlotArea=PlotArea;var _GridUnitType,PlotAreaCollection=function(t){__extends(PlotAreaCollection,t);function PlotAreaCollection(){return null!==t&&t.apply(this,arguments)||this}PlotAreaCollection.prototype.getPlotArea=function(t){var e=this.indexOf(t);return e>-1?this[e]:null};PlotAreaCollection.prototype.indexOf=function(t){for(var e=0;e<this.length;e++)if(this[e].name==t)return e;return-1};PlotAreaCollection.prototype._getWidth=function(t){for(var e=0;e<this.length;e++){var i=this[e];if(i.column==t&&0==i.row)return i.width}};PlotAreaCollection.prototype._getHeight=function(t){for(var e=0;e<this.length;e++){var i=this[e];if(i.row==t&&0==i.column)return i.height}};PlotAreaCollection.prototype._calculateWidths=function(t,e){if(e<=0)throw"ncols";for(var i=[],r=0;r<e;r++){var n=this._getWidth(r);i[r]=new _GridLength(n)}return this._calculateLengths(t,e,i)};PlotAreaCollection.prototype._calculateHeights=function(t,e){if(e<=0)throw"nrows";for(var i=[],r=0;r<e;r++){var n=this._getHeight(r);i[r]=new _GridLength(n)}return this._calculateLengths(t,e,i)};PlotAreaCollection.prototype._calculateLengths=function(t,e,i){for(var r=[e],n=0,s=0,o=0;o<e;o++)if(i[o].isAbsolute){r[o]=i[o].value;n+=r[o]}else i[o].isStar?s+=i[o].value:i[o].isAuto&&s++;var a=(t-n)/s;for(o=0;o<e;o++){i[o].isStar?r[o]=a*i[o].value:i[o].isAuto&&(r[o]=a);r[o]<0&&(r[o]=0)}return r};return PlotAreaCollection}(wijmo_1.ObservableArray);exports.PlotAreaCollection=PlotAreaCollection;!function(t){t[t.Auto=0]="Auto";t[t.Pixel=1]="Pixel";t[t.Star=2]="Star"}(_GridUnitType||(_GridUnitType={}));var _GridLength=function(){function _GridLength(t){void 0===t&&(t=null);this._unitType=_GridUnitType.Auto;if(t)if((t=t.toString()).indexOf("*")>=0){this._unitType=_GridUnitType.Star;t=t.replace("*","");this._value=parseFloat(t);isNaN(this._value)&&(this._value=1)}else{this._unitType=_GridUnitType.Pixel;this._value=parseFloat(t);if(isNaN(this._value)){this._unitType=_GridUnitType.Auto;this._value=1}}}Object.defineProperty(_GridLength.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0});Object.defineProperty(_GridLength.prototype,"isStar",{get:function(){return this._unitType==_GridUnitType.Star},enumerable:!0,configurable:!0});Object.defineProperty(_GridLength.prototype,"isAbsolute",{get:function(){return this._unitType==_GridUnitType.Pixel},enumerable:!0,configurable:!0});Object.defineProperty(_GridLength.prototype,"isAuto",{get:function(){return this._unitType==_GridUnitType.Auto},enumerable:!0,configurable:!0});return _GridLength}(),_SvgRenderEngine=function(){function _SvgRenderEngine(t){this._STROKE_JOIN="round";this._strokeWidth=1;this._fontSize=null;this._fontFamily=null;this._savedGradient={};this._bbCache={};this._baseUrl="";this._cssPriority=!0;this._readOnly=!1;this._isRtl=!1;this._precision=1;this._options=null;this._htmlText=!1;this._element=t;this._create();this._element&&this._element.appendChild(this._svg);var e=navigator.userAgent.toLowerCase();void 0===_SvgRenderEngine._isff&&(_SvgRenderEngine._isff=e.indexOf("firefox")>=0);void 0===_SvgRenderEngine._isSafari&&(_SvgRenderEngine._isSafari=e.indexOf("safari")>-1&&-1==e.indexOf("chrome"))}_SvgRenderEngine.prototype.attach=function(t){this._element=t;if(t){t.insertBefore(this._svg,t.childNodes[0]);t.appendChild(this._svg)}};_SvgRenderEngine.prototype.detach=function(){this._element&&this._element.removeChild(this._svg);for(;this._svg.firstChild;)wijmo_1.removeChild(this._svg.firstChild)};_SvgRenderEngine.prototype.beginRender=function(){for(;this._svg.firstChild;)wijmo_1.removeChild(this._svg.firstChild);this._savedGradient={};this._bbCache={};this._svg.appendChild(this._defs);this._svg.appendChild(this._textGroup);this._isRtl=this._checkRtl()};_SvgRenderEngine.prototype.endRender=function(){wijmo_1.removeChild(this._textGroup)};_SvgRenderEngine.prototype.setViewportSize=function(t,e){this._svg.setAttribute("width",t.toString());this._svg.setAttribute("height",e.toString())};Object.defineProperty(_SvgRenderEngine.prototype,"element",{get:function(){return this._svg},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"fill",{get:function(){return this._fill},set:function(t){this._fill=t},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"fontSize",{get:function(){return this._fontSize},set:function(t){this._fontSize=t},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"fontFamily",{get:function(){return this._fontFamily},set:function(t){this._fontFamily=t},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"stroke",{get:function(){return this._stroke},set:function(t){this._stroke=t},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"strokeWidth",{get:function(){return this._strokeWidth},set:function(t){this._strokeWidth=void 0===t?null:t},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"textFill",{get:function(){return this._textFill},set:function(t){this._textFill=t},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"cssPriority",{get:function(){return this._cssPriority},set:function(t){this._cssPriority=t},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"readOnly",{get:function(){return this._readOnly},set:function(t){this._readOnly=t},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"precision",{get:function(){return this._precision},set:function(t){this._precision=wijmo_1.asNumber(t)},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"group",{get:function(){return this._group},enumerable:!0,configurable:!0});Object.defineProperty(_SvgRenderEngine.prototype,"options",{get:function(){return this._options},set:function(t){this._options=t},enumerable:!0,configurable:!0});_SvgRenderEngine.prototype.addClipRect=function(t,e){if(t&&e){var i=this.precision,r=document.createElementNS(_SvgRenderEngine.svgNS,"clipPath"),n=document.createElementNS(_SvgRenderEngine.svgNS,"rect");n.setAttribute("x",(t.left-1).toFixed(i));n.setAttribute("y",(t.top-1).toFixed(i));n.setAttribute("width",(t.width+2).toFixed(i));n.setAttribute("height",(t.height+2).toFixed(i));r.appendChild(n);r.setAttribute("id",e);this._svg.appendChild(r)}};_SvgRenderEngine.prototype.drawEllipse=function(t,e,i,r,n,s){var o=document.createElementNS(_SvgRenderEngine.svgNS,"ellipse"),a=this.precision;this._applyColor(o,"stroke",this._stroke);null!==this._strokeWidth&&this._setAttribute(o,"stroke-width",this._strokeWidth.toString());this._applyColor(o,"fill",this._fill);o.setAttribute("cx",t.toFixed(a));o.setAttribute("cy",e.toFixed(a));o.setAttribute("rx",i.toFixed(a));o.setAttribute("ry",r.toFixed(a));n&&o.setAttribute("class",n);this._applyStyle(o,s);this._appendChild(o);return o};_SvgRenderEngine.prototype.drawRect=function(t,e,i,r,n,s,o){var a=document.createElementNS(_SvgRenderEngine.svgNS,"rect"),h=this.precision;this._applyColor(a,"fill",this._fill);this._applyColor(a,"stroke",this._stroke);null!==this._strokeWidth&&this._setAttribute(a,"stroke-width",this._strokeWidth.toString());a.setAttribute("x",t.toFixed(h));isNaN(Number(e))||a.setAttribute("y",e.toFixed(h));i>0&&i<.05?a.setAttribute("width","0.1"):a.setAttribute("width",i.toFixed(h));r>0&&r<.05?a.setAttribute("height","0.1"):a.setAttribute("height",r.toFixed(h));o&&this._setClipPath(a,o);n&&a.setAttribute("class",n);this._applyStyle(a,s);this._appendChild(a);return a};_SvgRenderEngine.prototype.drawLine=function(t,e,i,r,n,s){var o=document.createElementNS(_SvgRenderEngine.svgNS,"line"),a=this.precision;this._applyColor(o,"stroke",this._stroke);null!==this._strokeWidth&&this._setAttribute(o,"stroke-width",this._strokeWidth.toString());o.setAttribute("x1",t.toFixed(a));o.setAttribute("x2",i.toFixed(a));o.setAttribute("y1",e.toFixed(a));o.setAttribute("y2",r.toFixed(a));n&&o.setAttribute("class",n);this._applyStyle(o,s);this._appendChild(o);return o};_SvgRenderEngine.prototype.drawLines=function(t,e,i,r,n,s){if(t&&e){var o=s||Math.min(t.length,e.length);if(o>0){var a=document.createElementNS(_SvgRenderEngine.svgNS,"polyline"),h=this.precision;this._applyColor(a,"stroke",this._stroke);if(null!==this._strokeWidth){this._setAttribute(a,"stroke-width",this._strokeWidth.toString());this._strokeWidth>1&&this._setAttribute(a,"stroke-linejoin",this._STROKE_JOIN)}a.setAttribute("fill","none");for(var l="",_=0;_<o;_++)l+=t[_].toFixed(h)+","+e[_].toFixed(h)+" ";a.setAttribute("points",l);i&&a.setAttribute("class",i);n&&this._setClipPath(a,n);this._applyStyle(a,r);this._appendChild(a);return a}}return null};_SvgRenderEngine.prototype.drawSplines=function(t,e,i,r,n,s){if(t&&e){var o=new _Curve(t,e,s,this._options&&this._options.spline).calculate(),a=o.xs,h=o.ys,l=Math.min(a.length,h.length);if(l>0){var _=document.createElementNS(_SvgRenderEngine.svgNS,"polyline"),u=this.precision;this._applyColor(_,"stroke",this._stroke);if(null!==this._strokeWidth){this._setAttribute(_,"stroke-width",this._strokeWidth.toString());this._strokeWidth>1&&this._setAttribute(_,"stroke-linejoin",this._STROKE_JOIN)}_.setAttribute("fill","none");for(var c="",p=0;p<l;p++)c+=a[p].toFixed(u)+","+h[p].toFixed(u)+" ";_.setAttribute("points",c);i&&_.setAttribute("class",i);n&&this._setClipPath(_,n);this._applyStyle(_,r);this._appendChild(_);return _}}return null};_SvgRenderEngine.prototype.drawPolygon=function(t,e,i,r,n){if(t&&e){var s=Math.min(t.length,e.length);if(s>0){var o=document.createElementNS(_SvgRenderEngine.svgNS,"polygon"),a=this.precision;this._applyColor(o,"stroke",this._stroke);if(null!==this._strokeWidth){this._setAttribute(o,"stroke-width",this._strokeWidth.toString());this._strokeWidth>1&&this._setAttribute(o,"stroke-linejoin",this._STROKE_JOIN)}this._applyColor(o,"fill",this._fill);for(var h="",l=0;l<s;l++)h+=t[l].toFixed(a)+","+e[l].toFixed(a)+" ";o.setAttribute("points",h);i&&o.setAttribute("class",i);n&&this._setClipPath(o,n);this._applyStyle(o,r);this._appendChild(o);return o}}return null};_SvgRenderEngine.prototype.drawPieSegment=function(t,e,i,r,n,s,o,a){if(n>=2*Math.PI)return this.drawEllipse(t,e,i,i,s,o);var h=document.createElementNS(_SvgRenderEngine.svgNS,"path"),l=this.precision;this._applyColor(h,"fill",this._fill);this._applyColor(h,"stroke",this._stroke);null!==this._strokeWidth&&this._setAttribute(h,"stroke-width",this._strokeWidth.toString());var _=new wijmo_1.Point(t,e);_.x+=i*Math.cos(r);_.y+=i*Math.sin(r);var u=r+n,c=new wijmo_1.Point(t,e);c.x+=i*Math.cos(u);c.y+=i*Math.sin(u);var p=" 0 0,1 ";Math.abs(n)>Math.PI&&(p=" 0 1,1 ");var f="M "+_.x.toFixed(l)+","+_.y.toFixed(l);f+=" A "+i.toFixed(l)+","+i.toFixed(l)+p;f+=c.x.toFixed(l)+","+c.y.toFixed(l);f+=" L "+t.toFixed(l)+","+e.toFixed(l)+" z";h.setAttribute("d",f);a&&this._setClipPath(h,a);s&&h.setAttribute("class",s);this._applyStyle(h,o);this._appendChild(h);return h};_SvgRenderEngine.prototype.drawDonutSegment=function(t,e,i,r,n,s,o,a,h){var l=!1;if(s>=2*Math.PI){l=!0;s-=.001}var _=document.createElementNS(_SvgRenderEngine.svgNS,"path"),u=this.precision+2;this._applyColor(_,"fill",this._fill);this._applyColor(_,"stroke",this._stroke);null!==this._strokeWidth&&this._setAttribute(_,"stroke-width",this._strokeWidth.toString());var c=new wijmo_1.Point(t,e);c.x+=i*Math.cos(n);c.y+=i*Math.sin(n);var p=n+s,f=new wijmo_1.Point(t,e);f.x+=i*Math.cos(p);f.y+=i*Math.sin(p);var d=new wijmo_1.Point(t,e);d.x+=r*Math.cos(p);d.y+=r*Math.sin(p);var g=new wijmo_1.Point(t,e);g.x+=r*Math.cos(n);g.y+=r*Math.sin(n);var m=" 0 0,1 ",x=" 0 0,0 ";if(Math.abs(s)>Math.PI){m=" 0 1,1 ";x=" 0 1,0 "}var y="M "+c.x.toFixed(u)+","+c.y.toFixed(u);y+=" A "+i.toFixed(u)+","+i.toFixed(u)+m;y+=" "+f.x.toFixed(u)+","+f.y.toFixed(u);y+=l?" M "+d.x.toFixed(u)+","+d.y.toFixed(u):" L "+d.x.toFixed(u)+","+d.y.toFixed(u);y+=" A "+r.toFixed(u)+","+r.toFixed(u)+x;y+=g.x.toFixed(u)+","+g.y.toFixed(u);l||(y+=" z");_.setAttribute("d",y);h&&this._setClipPath(_,h);o&&_.setAttribute("class",o);this._applyStyle(_,a);this._appendChild(_);return _};_SvgRenderEngine.prototype.drawString=function(t,e,i,r){return this._isHtmlString(t)?this._drawStringHtml(t,e,i,r):this._drawString(t,e,i,r)};_SvgRenderEngine.prototype._isHtmlString=function(t){return this._htmlText&&/<\/?[a-z][\s\S]*>/i.test(t)};_SvgRenderEngine.prototype._drawString=function(t,e,i,r){var n=this._createText(e,t),s=this.precision;i&&n.setAttribute("class",i);this._applyStyle(n,r);this._appendChild(n);var o,a=this._getKey(t,i,this._groupCls);if(this._bbCache[a]){o=this._bbCache[a];n.setAttribute("y",(e.y-(o.y+o.height)).toFixed(s))}else{o=this._getBBox(n);n.setAttribute("y",(e.y-(o.y+o.height-e.y)).toFixed(s))}this._isRtl&&!wijmo_1.isIE()&&n.setAttribute("x",(e.x+o.width).toFixed(s));return n};_SvgRenderEngine.prototype._drawStringHtml=function(t,e,i,r){var n=document.createElementNS("http://www.w3.org/2000/svg","foreignObject");n.setAttribute("width","1000");n.setAttribute("height","100");n.setAttribute("x",e.x.toFixed(2));var s=document.createElement("span"),o=this._groupCls;o&&wijmo_1.addClass(s,o);i&&wijmo_1.addClass(s,i);this._applyStyle(s,r);s.innerHTML=t;n.appendChild(s);this._appendChild(n);var a=s.getBoundingClientRect();n.setAttribute("width",Math.ceil(a.width+2).toFixed(2));n.setAttribute("height",Math.ceil(a.height+1).toFixed(2));n.setAttribute("y",(e.y-a.height).toFixed(2));return n};_SvgRenderEngine.prototype.drawStringRotated=function(t,e,i,r,n,s){return this._isHtmlString(t)?this._drawStringRotatedHtml(t,e,i,r,n,s):this._drawStringRotated(t,e,i,r,n,s)};_SvgRenderEngine.prototype._drawStringRotated=function(t,e,i,r,n,s){var o=this._createText(e,t),a=this.precision;n&&o.setAttribute("class",n);this._applyStyle(o,s);var h=document.createElementNS(_SvgRenderEngine.svgNS,"g");h.setAttribute("transform","rotate("+r.toFixed(a)+","+i.x.toFixed(a)+","+i.y.toFixed(a)+")");h.appendChild(o);this._appendChild(h);var l=this._getBBox(o);o.setAttribute("y",(e.y-(l.y+l.height-e.y)).toFixed(a));this._isRtl&&!wijmo_1.isIE()&&o.setAttribute("x",(e.x+l.width).toFixed(a));return o};_SvgRenderEngine.prototype._drawStringRotatedHtml=function(t,e,i,r,n,s){var o=this.precision,a=document.createElementNS("http://www.w3.org/2000/svg","foreignObject");a.setAttribute("width","1000");a.setAttribute("height","100");a.setAttribute("x",e.x.toFixed(2));var h=document.createElement("span"),l=this._groupCls;l&&wijmo_1.addClass(h,l);n&&wijmo_1.addClass(h,n);this._applyStyle(h,s);h.innerHTML=t;a.appendChild(h);this._appendChild(a);var _=h.getBoundingClientRect();a.setAttribute("width",Math.ceil(_.width+2).toFixed(2));a.setAttribute("height",Math.ceil(_.height+1).toFixed(2));a.setAttribute("y",(e.y-_.height).toFixed(2));var u=document.createElementNS(_SvgRenderEngine.svgNS,"g");u.setAttribute("transform","rotate("+r.toFixed(o)+","+i.x.toFixed(o)+","+i.y.toFixed(o)+")");u.appendChild(a);this._appendChild(u);return a};_SvgRenderEngine.prototype.measureString=function(t,e,i,r){return this._isHtmlString(t)?this._measureStringHtml(t,e,i,r):this._measureString(t,e,i,r)};_SvgRenderEngine.prototype._measureString=function(t,e,i,r){var n=new wijmo_1.Size(0,0);if(!this._fontFamily&&!this._fontSize){var s=this._getKey(t,e,i);if(this._bbCache[s])return this._bbCache[s]}if(this.cssPriority){this._fontSize&&this._text.setAttribute("font-size",this._fontSize);this._fontFamily&&this._text.setAttribute("font-family",this._fontFamily)}else{var o={};this._fontSize&&(o.fontSize=this._fontSize);this._fontFamily&&(o.fontFamily=this._fontFamily);Object.keys(o).length>0&&wijmo_1.setCss(this._text,o)}e&&this._text.setAttribute("class",e);i&&this._textGroup.setAttribute("class",i);this._applyStyle(this._text,r);this._setText(this._text,t);var a=this._getBBox(this._text);n.width=a.width;n.height=a.height;this._text.removeAttribute("font-size");this._text.removeAttribute("font-family");this._text.removeAttribute("class");this._text.removeAttribute("style");if(r)for(var s in r)this._text.removeAttribute(this._deCase(s));this._textGroup.removeAttribute("class");this._text.textContent=null;if(!this._fontFamily&&!this._fontSize){s=this._getKey(t,e,i);this._bbCache[s]={x:a.x,y:a.y+1e3,width:a.width,height:a.height}}return n};_SvgRenderEngine.prototype._measureStringHtml=function(t,e,i,r){var n=new wijmo_1.Size(0,0),s=document.createElementNS("http://www.w3.org/2000/svg","foreignObject");s.setAttribute("width","1000");s.setAttribute("height","100");s.setAttribute("x","-1000");s.setAttribute("y","-1000");var o=document.createElement("span");i&&wijmo_1.addClass(o,i);e&&wijmo_1.addClass(o,e);this._applyStyle(o,r);o.innerHTML=t;s.appendChild(o);e&&this._text.setAttribute("class",e);this._applyStyle(this._text,r);this._appendChild(s);var a=o.getBoundingClientRect();n.width=a.width;n.height=a.height;s.remove();return n};_SvgRenderEngine.prototype.startGroup=function(t,e,i){void 0===i&&(i=!1);var r=document.createElementNS(_SvgRenderEngine.svgNS,"g");if(t){r.setAttribute("class",t);this._groupCls=t}e&&this._setClipPath(r,e);this._appendChild(r);i&&r.transform.baseVal.appendItem(this._svg.createSVGTransform());this._group=r;return r};_SvgRenderEngine.prototype.endGroup=function(){if(this._group){var t=this._group.parentNode;if(t==this._svg){this._group=null;this._groupCls=null}else{this._group=t;this._groupCls=this._getClass(this._group)}}};_SvgRenderEngine.prototype.drawImage=function(t,e,i,r,n){var s=document.createElementNS(_SvgRenderEngine.svgNS,"image"),o=this.precision;s.setAttributeNS(_SvgRenderEngine.xlinkNS,"href",t);s.setAttribute("x",e.toFixed(o));s.setAttribute("y",i.toFixed(o));s.setAttribute("width",r.toFixed(o));s.setAttribute("height",n.toFixed(o));this._appendChild(s);return s};_SvgRenderEngine.prototype._setClipPath=function(t,e){t.setAttribute("clip-path","url(#"+e+")");_SvgRenderEngine._isSafari&&wijmo_1.setCss(t,{"-webkit-clip-path":"url(#"+e+")"})};_SvgRenderEngine.prototype._appendChild=function(t){if(!this.readOnly){var e=this._group;e||(e=this._svg);e.appendChild(t)}};_SvgRenderEngine.prototype._create=function(){this._svg=document.createElementNS(_SvgRenderEngine.svgNS,"svg");this._defs=document.createElementNS(_SvgRenderEngine.svgNS,"defs");this._svg.appendChild(this._defs);this._text=this._createText(new wijmo_1.Point(-1e3,-1e3),"");this._textGroup=document.createElementNS(_SvgRenderEngine.svgNS,"g");this._textGroup.appendChild(this._text);this._svg.appendChild(this._textGroup)};_SvgRenderEngine.prototype._setText=function(t,e){var i=e?e.toString():null;if(i&&i.indexOf("tspan")>=0)try{t.textContent=null;for(var r=new DOMParser,n='<svg xmlns="http://www.w3.org/2000/svg">'+i+"</svg>",s=r.parseFromString(n,"text/xml").documentElement.firstChild;s;){t.appendChild(t.ownerDocument.importNode(s,!0));s=s.nextSibling}}catch(t){throw new Error("Error parsing XML string.")}else t.textContent=i};_SvgRenderEngine.prototype._getKey=function(t,e,i){return t+(e||"")+(i||"")};_SvgRenderEngine.prototype._createText=function(t,e){var i=document.createElementNS(_SvgRenderEngine.svgNS,"text"),r=this.precision;this._setText(i,e);i.setAttribute("x",t.x.toFixed(r));i.setAttribute("y",t.y.toFixed(r));if(this.cssPriority){null!=this._textFill&&i.setAttribute("fill",this._textFill);this._fontSize&&i.setAttribute("font-size",this._fontSize);this._fontFamily&&i.setAttribute("font-family",this._fontFamily)}else{var n={};null!=this._textFill&&(n.fill=this._textFill);this._fontSize&&(n.fontSize=this._fontSize);this._fontFamily&&(n.fontFamily=this._fontFamily);Object.keys(n).length>0&&wijmo_1.setCss(i,n)}return i};_SvgRenderEngine.prototype._applyStyle=function(t,e){if(e)for(var i in e)"fill"===i||"stroke"===i?this._applyColor(t,i,e[i]):t.setAttribute(this._deCase(i),e[i])};_SvgRenderEngine.prototype._deCase=function(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}))};_SvgRenderEngine.prototype._getClass=function(t){var e;if(t)for(var i=t;i&&!(e=i.getAttribute("class"));i=i.parentNode);return e};_SvgRenderEngine.prototype._getBBox=function(t){if(!_SvgRenderEngine._isff)return t.getBBox();try{return t.getBBox()}catch(t){return{x:0,y:0,width:0,height:0}}};_SvgRenderEngine.prototype._applyColor=function(t,e,i){var r=_GradientColorUtil.tryParse(i);if(null!=r){if(!wijmo_1.isString(r)){if(null==this._savedGradient[i]){var n,s="gc"+(1e6*Math.random()).toFixed();if(null!=r.x1){n=document.createElementNS(_SvgRenderEngine.svgNS,"linearGradient");["x1","y1","x2","y2","gradientUnits"].forEach((function(t){null!=r[t]&&n.setAttribute(t,r[t])}))}else if(null!=r.r){n=document.createElementNS(_SvgRenderEngine.svgNS,"radialGradient");["cx","cy","r","fx","fy","fr","gradientUnits"].forEach((function(t){null!=r[t]&&n.setAttribute(t,r[t])}))}r.colors&&r.colors&&r.colors.length>0&&r.colors.forEach((function(t){var e=document.createElementNS(_SvgRenderEngine.svgNS,"stop");null!=t.color&&e.setAttribute("stop-color",t.color);null!=t.offset&&e.setAttribute("offset",t.offset);null!=t.opacity&&e.setAttribute("stop-opacity",t.opacity);n.appendChild(e)}));n.setAttribute("id",s);this._defs.appendChild(n);this._savedGradient[i]=s}r="url("+this._baseUrl+"#"+this._savedGradient[i]+")"}this.cssPriority?t.setAttribute(e,r):this._addInlineStyle(t,e,r)}};_SvgRenderEngine.prototype._addInlineStyle=function(t,e,i){var r={};r[e.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))]=i;wijmo_1.setCss(t,r)};_SvgRenderEngine.prototype._setAttribute=function(t,e,i){this.cssPriority?t.setAttribute(e,i):this._addInlineStyle(t,e,i)};_SvgRenderEngine.prototype._checkRtl=function(){return this._element&&wijmo_1.hasClass(this._element,wijmo_1.UtilitesClsNames.rtl)};_SvgRenderEngine.svgNS="http://www.w3.org/2000/svg";_SvgRenderEngine.xlinkNS="http://www.w3.org/1999/xlink";return _SvgRenderEngine}();exports._SvgRenderEngine=_SvgRenderEngine;var _GradientColorUtil=function(){function _GradientColorUtil(){}_GradientColorUtil.tryParse=function(t){if(_GradientColorUtil.parsedColor[t])return _GradientColorUtil.parsedColor[t];if(null==t||-1===t.indexOf("-")||-1!==t.indexOf("var("))return t;var e,i=t.replace(/\s+/g,"").split(/-/g),r=i[0][0],n=!1,s=i[0].match(/\(\S+\)/);if(!s||0==s.length)return t;var o=s[0].replace(/[(\\)]/g,"").split(/,/g);if("l"===r||"L"===r){e={x1:"0",y1:"0",x2:"0",y2:"0",colors:[]};"l"===r&&(n=!0);["x1","y1","x2","y2"].forEach((function(t,i){null!=o[i]&&(e[t]=n?100*+o[i]+"%":""+o[i])}))}else if("r"===r||"R"===r){e={cx:"0",cy:"0",r:"0",colors:[]};"r"===r&&(n=!0);["cx","cy","r","fx","fy","fr"].forEach((function(t,i){null!=o[i]&&""!==o[i]&&(e[t]=n?100*+o[i]+"%":""+o[i])}))}n||(e.gradientUnits="userSpaceOnUse");_GradientColorUtil.parsedColor[t]=e;var a=i.length-1;i.forEach((function(t,i){t.indexOf(")")>-1&&(t=t.match(/\)\S+/)[0].replace(")",""));var r=t.split(":"),s={color:"black"};null!=r[0]&&(s.color=r[0]);null!=r[1]?s.offset=n?100*+r[1]+"%":""+r[1]:s.offset=i/a*100+"%";null!=r[2]&&(s.opacity=r[2]);e.colors.push(s)}));return e};_GradientColorUtil.parsedColor={};return _GradientColorUtil}(),SvgRenderEngine=function(t){__extends(SvgRenderEngine,t);function SvgRenderEngine(){return null!==t&&t.apply(this,arguments)||this}return SvgRenderEngine}(_SvgRenderEngine);exports.SvgRenderEngine=SvgRenderEngine;var Legend=function(){function Legend(t){this._position=Position.Right;this._title="";this._titleAlign="left";this._titlePadding=5;this._areas=[];this._sz=new wijmo_1.Size;this._orient=Orientation.Auto;this._scrollbar=!1;this._chart=t}Object.defineProperty(Legend.prototype,"position",{get:function(){return this._position},set:function(t){if((t=wijmo_1.asEnum(t,Position))!=this._position){this._position=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Legend.prototype,"reverse",{get:function(){return this._reverse},set:function(t){if(t!=this._reverse){this._reverse=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Legend.prototype,"title",{get:function(){return this._title},set:function(t){if(t!=this._title){this._title=wijmo_1.asString(t,!1);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Legend.prototype,"titleAlign",{get:function(){return this._titleAlign},set:function(t){if(t!=this._titleAlign){var e=wijmo_1.asString(t,!1);this._titleAlign="right"===e?"right":"center"===e?"center":"left";this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Legend.prototype,"orientation",{get:function(){return this._orient},set:function(t){if((t=wijmo_1.asEnum(t,Orientation))!=this._orient){this._orient=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Legend.prototype,"maxSize",{get:function(){return this._maxSz},set:function(t){if(t!=this._maxSz){if(wijmo_1.isNumber(t))this._maxSz=t;else if(wijmo_1.isString(t)){var e=wijmo_1.asString(t);wijmo_1.assert(FlexChartBase._endsWith(e,"px")||FlexChartBase._endsWith(e,"%"),"number with unit (px or %) expected.");this._maxSz=e}else t&&wijmo_1.assert(!1,"number or string expected.");this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Legend.prototype,"scrollbar",{get:function(){return this._scrollbar},set:function(t){if(t!=this._scrollbar){this._scrollbar=wijmo_1.asBoolean(t,!1);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Legend.prototype,"isVertical",{get:function(){return this.orientation==Orientation.Auto?null==this.position||this.position==Position.Auto||this.position==Position.Right||this.position==Position.Left||this.position==Position.LeftTop||this.position==Position.LeftBottom||this.position==Position.RightTop||this.position==Position.RightBottom:this.orientation==Orientation.Vertical},enumerable:!0,configurable:!0});Legend.prototype._getDesiredSize=function(t,e,i,r){if(e==Position.None)return null;var n=new wijmo_1.Size;this.title.length>0&&(r-=(n=t.measureString(this.title,exports.LegendClsNames.title,exports.LegendClsNames.legend)).height+this._titlePadding);var s=this._chart._getDesiredLegendSize(t,this.isVertical,i,r);if(null!=s){if(this.title.length>0){s.height+=n.height+this._titlePadding;if(n.width>s.width)if(this.position==Position.Left||this.position==Position.Right||this.position==Position.LeftTop||this.position==Position.LeftBottom||this.position==Position.RightTop||this.position==Position.RightBottom){var o=Math.min(n.width,this._getMaxSize(i));s.width=o;n.width=o}else i>s.width&&i<n.width?s.width=i:i>=n.width&&(s.width=n.width)}this._sz=s.clone();if(this.scrollbar)if(this.isVertical&&s.height>r){s.width+=18;s.height=r}else if(!this.isVertical&&s.width>i){s.width=i;s.height+=18}}return s};Legend.prototype._getPosition=function(t,e){return this.position==Position.Auto?t>=e?Position.Right:Position.Bottom:this.position};Legend.prototype._render=function(t,e,i,r,n){this._areas=[];var s=0;t.fill="transparent";t.stroke=null;t.drawRect(e.x,e.y,r,n);if(this.title.length){var o=e.clone(),a=t.measureString(this.title,exports.LegendClsNames.title+"`");o.y+=a.height;"right"===this.titleAlign?o.x=e.x+r-a.width:"center"===this.titleAlign&&(o.x=e.x+.5*(r-a.width));t.drawString(this.title,o,exports.LegendClsNames.title);s=a.height+this._titlePadding;e.y+=s;n-=s}var h=!1;this.scrollbar&&(this._sz.height>n&&this.isVertical||this._sz.width>r&&!this.isVertical)&&(h=!0);this._chart._renderLegend(t,e,this._areas,this.isVertical,h?r-18:r,n);if(h){n+=s;this._addScrollbar(t,e,r,n,this._sz,this.isVertical,s)}};Legend.prototype._hitTest=function(t){for(var e=this._areas,i=0;i<e.length;i++)if(e[i]&&FlexChartBase._contains(e[i],t))return i;return null};Legend.prototype._addScrollbar=function(t,e,i,r,n,s,o){t.endGroup();var a=100-o/r*100,h=t.element,l=h.children.item(h.children.length-1),_=l.getBoundingClientRect();l.removeAttribute("clip-path");var u=[];l.children.length>0&&u.push(l.children.item(0));o>0&&u.push(l.children.item(1));Array.from(l.querySelectorAll("text,rect")).forEach((function(t){if(-1==u.indexOf(t)){t.setAttribute("x",(+t.getAttribute("x")-e.x).toFixed(2));t.setAttribute("y",(+t.getAttribute("y")-e.y).toFixed(2))}}));Array.from(l.querySelectorAll("foreignObject")).forEach((function(t){if(-1==u.indexOf(t)){t.setAttribute("x",(+t.getAttribute("x")-e.x).toFixed(2));t.setAttribute("y",(+t.getAttribute("y")-e.y).toFixed(2))}}));Array.from(l.querySelectorAll("ellipse")).forEach((function(t){t.setAttribute("cx",(+t.getAttribute("cx")-e.x).toFixed(2));t.setAttribute("cy",(+t.getAttribute("cy")-e.y).toFixed(2))}));Array.from(l.querySelectorAll("line")).forEach((function(t){t.setAttribute("x1",(+t.getAttribute("x1")-e.x).toFixed(2));t.setAttribute("y1",(+t.getAttribute("y1")-e.y).toFixed(2));t.setAttribute("x2",(+t.getAttribute("x2")-e.x).toFixed(2));t.setAttribute("y2",(+t.getAttribute("y2")-e.y).toFixed(2))}));var c=document.createElementNS("http://www.w3.org/2000/svg","foreignObject");c.setAttribute("x",e.x.toFixed(2));c.setAttribute("y",e.y.toFixed(2));c.setAttribute("width",i.toFixed(2));c.setAttribute("height",r.toFixed(2));var p=document.createElement("div");p.className="wj-legend-scrollable";s?wijmo_1.setCss(p,{width:"100%",height:a+"%",overflowX:"hidden",overflowY:"scroll"}):wijmo_1.setCss(p,{width:"100%",height:a+"%",overflowY:"hidden",overflowX:"scroll"});var f=document.createElementNS("http://www.w3.org/2000/svg","svg");f.setAttribute("height",(_.height-o).toFixed(2));var d=_.width;!s&&n.width<d&&(d=n.width);f.setAttribute("width",d.toFixed(2));for(;l.children.length>u.length;){var g=l.children.item(u.length);l.removeChild(g);f.appendChild(g)}p.appendChild(f);c.appendChild(p);l.appendChild(c)};Legend.prototype._invalidate=function(){this._chart&&this._chart.invalidate()};Legend.prototype._getMaxSize=function(t){var e=this.maxSize;if(wijmo_1.isNumber(e)){if((r=wijmo_1.asNumber(e,!0))>0)return Math.min(r,t)}else{var i=wijmo_1.asString(e,!0);if(i)if(FlexChartBase._endsWith(i,"px")){if((r=parseFloat(i.replace("px","")))>0)return Math.min(r,t)}else if(FlexChartBase._endsWith(i,"%")){var r;if((r=parseFloat(i.replace("%","")))>0)return t*Math.min(r,100)/100}}return.5*t};return Legend}();exports.Legend=Legend;var DataPoint=function DataPoint(t,e){void 0===t&&(t=0);void 0===e&&(e=0);this.x=t;this.y=e};exports.DataPoint=DataPoint;var RenderEventArgs=function(t){__extends(RenderEventArgs,t);function RenderEventArgs(e){var i=t.call(this)||this;i._engine=e;return i}Object.defineProperty(RenderEventArgs.prototype,"engine",{get:function(){return this._engine},enumerable:!0,configurable:!0});return RenderEventArgs}(wijmo_1.CancelEventArgs);exports.RenderEventArgs=RenderEventArgs;var ImageFormat,SelectionMode,Position,Orientation,SeriesRenderingEventArgs=function(t){__extends(SeriesRenderingEventArgs,t);function SeriesRenderingEventArgs(e,i,r){var n=t.call(this,e)||this;n._index=i;n._count=r;return n}Object.defineProperty(SeriesRenderingEventArgs.prototype,"index",{get:function(){return this._index},enumerable:!0,configurable:!0});Object.defineProperty(SeriesRenderingEventArgs.prototype,"count",{get:function(){return this._count},enumerable:!0,configurable:!0});return SeriesRenderingEventArgs}(RenderEventArgs);exports.SeriesRenderingEventArgs=SeriesRenderingEventArgs;!function(t){t[t.Png=0]="Png";t[t.Jpeg=1]="Jpeg";t[t.Svg=2]="Svg"}(ImageFormat=exports.ImageFormat||(exports.ImageFormat={}));!function(t){t[t.None=0]="None";t[t.Series=1]="Series";t[t.Point=2]="Point"}(SelectionMode=exports.SelectionMode||(exports.SelectionMode={}));!function(t){t[t.None=0]="None";t[t.Left=1]="Left";t[t.Top=2]="Top";t[t.Right=3]="Right";t[t.Bottom=4]="Bottom";t[t.Auto=5]="Auto";t[t.TopLeft=6]="TopLeft";t[t.TopRight=7]="TopRight";t[t.BottomLeft=8]="BottomLeft";t[t.BottomRight=9]="BottomRight";t[t.LeftTop=10]="LeftTop";t[t.LeftBottom=11]="LeftBottom";t[t.RightTop=12]="RightTop";t[t.RightBottom=13]="RightBottom"}(Position=exports.Position||(exports.Position={}));!function(t){t[t.Auto=0]="Auto";t[t.Vertical=1]="Vertical";t[t.Horizontal=2]="Horizontal"}(Orientation=exports.Orientation||(exports.Orientation={}));var FlexChartBase=function(t){__extends(FlexChartBase,t);function FlexChartBase(){var e=null!==t&&t.apply(this,arguments)||this;e._palette=null;e._selectionMode=SelectionMode.None;e._defPalette=Palettes.standard;e._notifyCurrentChanged=!0;e._legendHost=null;e._needBind=!1;e._skipLightClr=!1;e.rendering=new wijmo_1.Event;e.rendered=new wijmo_1.Event;e.itemsSourceChanging=new wijmo_1.Event;e.itemsSourceChanged=new wijmo_1.Event;e.selectionChanged=new wijmo_1.Event;return e}Object.defineProperty(FlexChartBase.prototype,"itemsSource",{get:function(){return this._items},set:function(t){if(this._items!=t){var e=new wijmo_1.CancelEventArgs;if(!this.onItemsSourceChanging(e))return;if(this._cv){this._cv.currentChanged.removeHandler(this._cvCurrentChanged,this);this._cv.collectionChanged.removeHandler(this._cvCollectionChanged,this);this._cv=null}this._items=t;this._cv=wijmo_1.asCollectionView(t);if(null!=this._cv){this._cv.currentChanged.addHandler(this._cvCurrentChanged,this);this._cv.collectionChanged.addHandler(this._cvCollectionChanged,this)}this._clearCachedValues();this.onItemsSourceChanged(e);this._bindChart()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"collectionView",{get:function(){return this._cv},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"palette",{get:function(){return this._palette},set:function(t){if(t!=this._palette){this._palette=wijmo_1.asArray(t);this._skipLightClr=Palettes._isExtended(this._palette);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"plotMargin",{get:function(){return this._plotMargin},set:function(t){if(t!=this._plotMargin){this._plotMargin=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"legend",{get:function(){return this._legend},set:function(t){if(t!=this._legend){this._legend=wijmo_1.asType(t,Legend);null!=this._legend&&(this._legend._chart=this)}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"header",{get:function(){return this._header},set:function(t){if(t!=this._header){this._header=wijmo_1.asString(t,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"footer",{get:function(){return this._footer},set:function(t){if(t!=this._footer){this._footer=wijmo_1.asString(t,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"headerStyle",{get:function(){return this._headerStyle},set:function(t){if(t!=this._headerStyle){this._headerStyle=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"footerStyle",{get:function(){return this._footerStyle},set:function(t){if(t!=this._footerStyle){this._footerStyle=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"selectionMode",{get:function(){return this._selectionMode},set:function(t){if((t=wijmo_1.asEnum(t,SelectionMode))!=this._selectionMode){this._selectionMode=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"itemFormatter",{get:function(){return this._itemFormatter},set:function(t){if(t!=this._itemFormatter){this._itemFormatter=wijmo_1.asFunction(t);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartBase.prototype,"options",{get:function(){return this._options},set:function(t){if(t!=this._options){this._options=t;this.invalidate()}},enumerable:!0,configurable:!0});FlexChartBase.prototype.onRendering=function(t){this.rendering.raise(this,t)};FlexChartBase.prototype.onRendered=function(t){this.rendered.raise(this,t)};FlexChartBase.prototype.onItemsSourceChanging=function(t){this.itemsSourceChanging.raise(this,t);return!t.cancel};FlexChartBase.prototype.onItemsSourceChanged=function(t){this.itemsSourceChanged.raise(this,t)};FlexChartBase.prototype.saveImageToFile=function(t){var e,i,r,n;t&&0!==t.length&&-1!==t.indexOf(".")||(t="image.png");n=t.split(".");e=n[0];i=n[1].toLowerCase();r=ImageFormat[i[0].toUpperCase()+i.substring(1)];this.saveImageToDataUrl(r,(function(t){ExportHelper.downloadImage(t,e,i)}))};FlexChartBase.prototype.saveImageToDataUrl=function(t,e){var i=wijmo_1.asEnum(t,ImageFormat,!1),r=ImageFormat[i].toLowerCase();r&&r.length&&this._exportToImage(r,(function(t){e.call(e,t)}))};FlexChartBase.prototype.saveSvgToDataUrl=function(t,e){void 0===e&&(e=!0);this._exportToImage("svg",(function(e){t.call(t,e)}),{embedCss:e})};FlexChartBase.prototype.saveSvgToFile=function(t,e){void 0===e&&(e=!0);this.saveSvgToDataUrl((function(e){ExportHelper.downloadImage(e,t,"svg")}),e)};FlexChartBase.prototype._exportToImage=function(t,e,i){var r=this;void 0===i&&(i=null);var n=this._currentRenderEngine.element;i&&!1===i.embedCss?ExportHelper.getDataUri2(n,this,(function(i){r.prepareDataUri(n,t,i,e)})):ExportHelper.getDataUri(n,this,(function(i){r.prepareDataUri(n,t,i,e)}))};FlexChartBase.prototype.prepareDataUri=function(t,e,i,r){var n=this;if("svg"===e)r.call(null,i);else{var s=new Image;s.onload=function(){var i,o=document.createElement("canvas"),a=t.parentNode||t,h=wijmo_1.getElementRect(a);o.width=h.width;o.height=h.height;var l=o.getContext("2d"),_=n._bgColor(n.hostElement);n._isTransparent(_)&&(_="#ffffff");l.fillStyle=_;l.fillRect(0,0,h.width,h.height);var u=window.getComputedStyle(a,null).getPropertyValue("padding-left").replace("px",""),c=window.getComputedStyle(a,null).getPropertyValue("padding-top").replace("px","");l.drawImage(s,+u||0,+c||0);i=o.toDataURL("image/"+e);r.call(null,i);o=null};s.src=i}};FlexChartBase.prototype.refresh=function(e){void 0===e&&(e=!0);t.prototype.refresh.call(this,e);this.isUpdating||this.disposed||this._refreshChart()};FlexChartBase.prototype.onSelectionChanged=function(t){this.selectionChanged.raise(this,t)};FlexChartBase.prototype.onLostFocus=function(e){this._tooltip&&this._tooltip.isVisible&&!this.isTouching&&this._tooltip.hide();t.prototype.onLostFocus.call(this,e)};FlexChartBase.prototype._cvCollectionChanged=function(t,e){this._clearCachedValues();this._bindChart()};FlexChartBase.prototype._cvCurrentChanged=function(t,e){this._notifyCurrentChanged&&this._bindChart()};FlexChartBase.prototype._bgColor=function(t){if(!t)return"transparent";var e=getComputedStyle(t).backgroundColor;return this._isTransparent(e)?this._bgColor(t.parentElement):e};FlexChartBase.prototype._isTransparent=function(t){var e=new wijmo_1.Color(t);return 0==e.a&&0==e.b&&0==e.g&&0==e.r};FlexChartBase.prototype._getColor=function(t){var e=this._defPalette;null!=this._palette&&this._palette.length>0&&(e=this._palette);return e[t%e.length]};FlexChartBase.prototype._getColorLight=function(t){var e=this._getColor(t);this._skipLightClr||(e=this._getLightColor(e));return e};FlexChartBase.prototype._getLightColor=function(t){var e=new wijmo_1.Color(t);if(null!=e&&-1===t.indexOf("-")){1==e.a&&-1==t.indexOf("rgba")&&-1==t.indexOf("hsla")&&(e.a*=.7);t=e.toString()}return t};FlexChartBase.prototype._bindChart=function(){this._needBind=!0;this.invalidate()};FlexChartBase.prototype._clearCachedValues=function(){};FlexChartBase.prototype._renderEls=function(t,e,i,r,n){void 0===i&&(i=!0);void 0===r&&(r=null);void 0===n&&(n=!1);var s=e.width,o=e.height;if(0!=s){(isNaN(s)||s<0)&&(s=FlexChartBase._WIDTH);(o<=0||isNaN(o))&&(o=FlexChartBase._HEIGHT);var a=s>0&&o>0;a&&t.setViewportSize(s,o);var h=0,l=0;if(this.legend.scrollbar&&this._legendHost){if(p=this._legendHost.querySelector(".wj-legend-scrollable"))if(this.legend.isVertical){l=0;h=p.scrollTop}else{h=0;l=p.scrollLeft}}this._currentRenderEngine._htmlText=this._isHtmlText();t.beginRender();t.cssPriority=!0;if(a){this._rectChart=new wijmo_1.Rect(0,0,s,o);this._prepareRender();if(r){var _=t.stroke,u=t.fill;t.fill=r;t.stroke=null;t.drawRect(0,0,s,o);t.fill=u;t.stroke=_}var c=new wijmo_1.Rect(0,0,s,o);this._chartRectId="chartRect"+(1e6*Math.random()).toFixed();t.addClipRect(c,this._chartRectId);this._renderHeader(t,c);this._renderFooter(t,c);this._renderLegends(t,c);this._renderChart(t,c,i);if(this.legend.scrollbar&&this._legendHost){var p;if(p=this._legendHost.querySelector(".wj-legend-scrollable")){p.scrollTop=h;p.scrollLeft=l}}}t.endRender()}};FlexChartBase.prototype._render=function(t,e,i){void 0===e&&(e=!0);void 0===i&&(i=null);var r=this._getHostSize();if(this._h){var n=r.height-this._h;n>=4&&n<=6&&!1!==this._isPCUnit("height")&&(r.height=this._h)}this._h=r.height;this._renderEls(t,r,e,i)};FlexChartBase.prototype._isPCUnit=function(t){var e=null,i=this.hostElement;if(i&&i.computedStyleMap){var r=i.computedStyleMap();if(r){var n=r.get(t);n&&(e="percent"==n.unit)}}return e};FlexChartBase.prototype._renderHidden=function(t,e){void 0===t&&(t=null);void 0===e&&(e=null);var i=document.createElement("div");wijmo_1.addClass(i,this.hostElement.getAttribute("class")||"");i.style.visibility="hidden";var r=new _SvgRenderEngine(i);document.body.appendChild(i);if(!t){var n=this._getHostComputedStyle(),s=0,o=0;if(n){s=this._parsePx(n.width);o=this._parsePx(n.height);0==s&&(s=FlexChartBase._WIDTH);0==o&&(o=FlexChartBase._HEIGHT);s-=this._parsePx(n.paddingLeft);s-=this._parsePx(n.paddingRight);o-=this._parsePx(n.paddingTop);o-=this._parsePx(n.paddingBottom);s-=this._parsePx(n.borderLeftWidth);s-=this._parsePx(n.borderRightWidth);o-=this._parsePx(n.borderTopWidth);o-=this._parsePx(n.borderBottomWidth)}0==s&&(s=FlexChartBase._WIDTH);0==o&&(o=FlexChartBase._HEIGHT);t=new wijmo_1.Size(s,o)}this._renderEls(r,t,!0,e,!0);wijmo_1.removeChild(i);return r.element};FlexChartBase.prototype._renderHeader=function(t,e){t.startGroup(FlexChartBase._CSS_HEADER,this._chartRectId);e=this._drawTitle(t,e,this.header,this.headerStyle,!1);t.endGroup()};FlexChartBase.prototype._renderFooter=function(t,e){t.startGroup(FlexChartBase._CSS_FOOTER,this._chartRectId);e=this._drawTitle(t,e,this.footer,this.footerStyle,!0);t.endGroup()};FlexChartBase.prototype._renderLegends=function(t,e){var i,r,n=this.legend,s=e.width,o=e.height,a=n._getPosition(s,o),h=s,l=o;a==Position.Left||a==Position.Right||a==Position.LeftTop||a==Position.LeftBottom||a==Position.RightTop||a==Position.RightBottom?h=this._getLegendSize(s,h):l=this._getLegendSize(o,l);if(i=n._getDesiredSize(t,a,h,l)){a==Position.Left||a==Position.Right||a==Position.LeftTop||a==Position.LeftBottom||a==Position.RightTop||a==Position.RightBottom?i.width=this._getLegendSize(s,i.width):i.height=this._getLegendSize(o,i.height);i.height>e.height&&(i.height=e.height);switch(a){case Position.Right:s-=i.width;r=new wijmo_1.Point(s,e.top+.5*(o-i.height));break;case Position.RightTop:s-=i.width;r=new wijmo_1.Point(s,e.top);break;case Position.RightBottom:s-=i.width;r=new wijmo_1.Point(s,e.top+(o-i.height));break;case Position.Left:e.left+=i.width;s-=i.width;r=new wijmo_1.Point(0,e.top+.5*(o-i.height));break;case Position.LeftTop:e.left+=i.width;s-=i.width;r=new wijmo_1.Point(0,e.top);break;case Position.LeftBottom:e.left+=i.width;s-=i.width;r=new wijmo_1.Point(0,e.top+(o-i.height));break;case Position.Top:o-=i.height;r=new wijmo_1.Point(.5*(s-i.width),e.top);e.top+=i.height;break;case Position.TopLeft:o-=i.height;r=new wijmo_1.Point(0,e.top);e.top+=i.height;break;case Position.TopRight:o-=i.height;r=new wijmo_1.Point(s-i.width,e.top);e.top+=i.height;break;case Position.Bottom:o-=i.height;r=new wijmo_1.Point(.5*(s-i.width),e.top+o);break;case Position.BottomLeft:o-=i.height;r=new wijmo_1.Point(0,e.top+o);break;case Position.BottomRight:o-=i.height;r=new wijmo_1.Point(s-i.width,e.top+o)}e.width=s;e.height=o;this._rectLegend=new wijmo_1.Rect(r.x,r.y,i.width,i.height);var _="legRect"+(1e6*Math.random()).toFixed();t.addClipRect(this._rectLegend,_);this._legendHost=t.startGroup(FlexChartBase._CSS_LEGEND,_);this.legend._render(t,r,a,i.width,i.height);t.endGroup()}else{this._legendHost=null;this._rectLegend=null}};FlexChartBase.prototype._prepareRender=function(){};FlexChartBase.prototype._renderChart=function(t,e,i){};FlexChartBase.prototype._performBind=function(){};FlexChartBase.prototype._getDesiredLegendSize=function(t,e,i,r){return null};FlexChartBase.prototype._renderLegend=function(t,e,i,r,n,s){};FlexChartBase.prototype._getHitTestItem=function(t){return null};FlexChartBase.prototype._getHitTestValue=function(t,e){return null};FlexChartBase.prototype._getHitTestLabel=function(t){return null};FlexChartBase.prototype._refreshChart=function(){if(this._needBind){this._needBind=!1;this._performBind()}this.hostElement&&this._render(this._currentRenderEngine)};FlexChartBase.prototype._drawTitle=function(t,e,i,r,n){var s=FlexChartBase._CSS_TITLE,o=n?FlexChartBase._CSS_FOOTER:FlexChartBase._CSS_HEADER,a=null;n?this._rectFooter=null:this._rectHeader=null;if(null!=i){var h=null,l=null,_=null,u=null;if(r){r.fontSize&&(h=r.fontSize);r.foreground&&(l=r.foreground);r.fill&&(l=r.fill);r.fontFamily&&(_=r.fontFamily);r.halign&&(u=r.halign)}t.fontSize=h;t.fontFamily=_;a=t.measureString(i,s,o,r);e.height-=a.height;l||(l=FlexChartBase._FG);t.textFill=l;if(n){"left"==u?FlexChartBase._renderText(t,i,new wijmo_1.Point(e.left,e.bottom),0,0,s,o,r):"right"==u?FlexChartBase._renderText(t,i,new wijmo_1.Point(e.left+e.width,e.bottom),2,0,s,o,r):FlexChartBase._renderText(t,i,new wijmo_1.Point(e.left+.5*e.width,e.bottom),1,0,s,o,r);this._rectFooter=new wijmo_1.Rect(e.left,e.bottom,e.width,a.height)}else{this._rectHeader=new wijmo_1.Rect(e.left,e.top,e.width,a.height);e.top+=a.height;"left"==u?FlexChartBase._renderText(t,i,new wijmo_1.Point(e.left,0),0,0,s,o,r):"right"==u?FlexChartBase._renderText(t,i,new wijmo_1.Point(e.left+e.width,0),2,0,s,o,r):FlexChartBase._renderText(t,i,new wijmo_1.Point(e.left+.5*e.width,0),1,0,s,o,r)}t.textFill=null;t.fontSize=null;t.fontFamily=null}return e};FlexChartBase.prototype.pageToControl=function(t,e){return this._toControl(t,e)};FlexChartBase.prototype._toControl=function(t,e){wijmo_1.isNumber(t)&&wijmo_1.isNumber(e)?t=new wijmo_1.Point(t,e):t instanceof MouseEvent&&(t=wijmo_1.mouseToPage(t));wijmo_1.asType(t,wijmo_1.Point);var i=t.clone(),r=this._getHostOffset();i.x-=r.x;i.y-=r.y;var n=this._currentRenderEngine?this._currentRenderEngine.element:null;if(null!=n){var s=n.getBoundingClientRect(),o=parseFloat(n.getAttribute("width")),a=parseFloat(n.getAttribute("height"));s.width!=o&&(i.x*=o/s.width);s.height!=a&&(i.y*=a/s.height)}var h=this._getHostComputedStyle();if(h){var l=parseInt(h.paddingLeft.replace("px",""));l&&!isNaN(l)&&(i.x-=l);var _=parseInt(h.paddingTop.replace("px",""));_&&!isNaN(_)&&(i.y-=_)}return i};FlexChartBase.prototype._highlightItems=function(t,e,i){if(i)for(var r=0;r<t.length;r++)wijmo_1.addClass(t[r],e);else for(r=0;r<t.length;r++)wijmo_1.removeClass(t[r],e)};FlexChartBase.prototype._parseMargin=function(t){var e={};if(wijmo_1.isNumber(t)&&!isNaN(t))e.top=e.bottom=e.left=e.right=wijmo_1.asNumber(t);else if(wijmo_1.isString(t)){var i=wijmo_1.asString(t).split(" ",4),r=NaN,n=NaN,s=NaN,o=NaN;if(i){if(4==i.length){r=parseFloat(i[0]);o=parseFloat(i[1]);n=parseFloat(i[2]);s=parseFloat(i[3])}else if(2==i.length){r=n=parseFloat(i[0]);s=o=parseFloat(i[1])}else 1==i.length&&(r=n=s=o=parseFloat(i[1]));isNaN(r)||(e.top=r);isNaN(n)||(e.bottom=n);isNaN(s)||(e.left=s);isNaN(o)||(e.right=o)}}return e};FlexChartBase.prototype._showToolTip=function(t,e){var i=this,r=this._tooltip.showDelay;this._clearTimeouts();if(!this.isDisabled){t||this._tooltip.hide();if(r>0)this._toShow=setTimeout((function(){i._tooltip.show(i.hostElement,t,e);i._tooltip.hideDelay>0&&(i._toHide=setTimeout((function(){i._tooltip.hide()}),i._tooltip.hideDelay))}),r);else{this._tooltip.show(this.hostElement,t,e);this._tooltip.hideDelay>0&&(this._toHide=setTimeout((function(){i._tooltip.hide()}),this._tooltip.hideDelay))}}};FlexChartBase.prototype._hideToolTip=function(){this._clearTimeouts();this._tooltip.hide()};FlexChartBase.prototype._clearTimeouts=function(){if(this._toShow){clearTimeout(this._toShow);this._toShow=null}if(this._toHide){clearTimeout(this._toHide);this._toHide=null}};FlexChartBase.prototype._getHostOffset=function(){var t=wijmo_1.getElementRect(this.hostElement);return new wijmo_1.Point(t.left,t.top)};FlexChartBase.prototype._getHostSize=function(){var t=new wijmo_1.Size,e=this.hostElement,i=this._getHostComputedStyle(),r=e.offsetWidth,n=e.offsetHeight;if(i){r-=this._parsePx(i.paddingLeft);r-=this._parsePx(i.paddingRight);n-=this._parsePx(i.paddingTop);n-=this._parsePx(i.paddingBottom);r-=this._parsePx(i.borderLeftWidth);r-=this._parsePx(i.borderRightWidth);n-=this._parsePx(i.borderTopWidth);n-=this._parsePx(i.borderBottomWidth);t.width=r;t.height=n}return t};FlexChartBase.prototype._parsePx=function(t){var e=parseFloat(t.replace("px",""));return isNaN(e)?0:e};FlexChartBase.prototype._getHostComputedStyle=function(){var t=this.hostElement;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(this.hostElement):null};FlexChartBase.prototype._find=function(t,e){for(var i=[],r=0;r<t.childElementCount;r++){var n=t.childNodes.item(r);if(e.indexOf(n.nodeName)>=0)i.push(n);else{var s=this._find(n,e);if(s.length>0)for(var o=0;o<s.length;o++)i.push(s[o])}}return i};FlexChartBase.prototype._getLegendSize=function(t,e){return Math.min(e,this.legend._getMaxSize(t))};FlexChartBase.prototype._isHtmlText=function(){return this._options&&this._options.htmlText};FlexChartBase._contains=function(t,e){return!(!t||!e)&&(e.x>=t.left&&e.x<=t.right&&e.y>=t.top&&e.y<=t.bottom)};FlexChartBase._intersects=function(t,e){return!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top)};FlexChartBase._toOADate=function(t){return t.valueOf()};FlexChartBase._fromOADate=function(t){return new Date(t)};FlexChartBase._renderText=function(t,e,i,r,n,s,o,a,h){var l=t.measureString(e,s,o,a),_=i.x,u=i.y;switch(r){case 1:_-=.5*l.width;break;case 2:_-=l.width}switch(n){case 1:u+=.5*l.height;break;case 0:u+=l.height}var c=new wijmo_1.Rect(_,u-l.height,l.width,l.height);if(h){if(h(c)){t.drawString(e,new wijmo_1.Point(_,u),s,a);return c}return null}t.drawString(e,new wijmo_1.Point(_,u),s,a);return c};FlexChartBase._renderRotatedText=function(t,e,i,r,n,s,o,a,h,l){var _=t.measureString(e,a,h,l),u=i.x,c=i.y;switch(r){case 1:u-=.5*_.width;break;case 2:u-=_.width}switch(n){case 1:c+=.5*_.height;break;case 0:c+=_.height}return t.drawStringRotated(e,new wijmo_1.Point(u,c),s,o,a,l)};FlexChartBase._endsWith=function(t,e){if(t&&e){var i=t.length-e.length;return i>=0&&t.indexOf(e,i)===i}return!1};FlexChartBase._WIDTH=300;FlexChartBase._HEIGHT=200;FlexChartBase._SELECTION_THRESHOLD=15;FlexChartBase._CSS_LEGEND=exports.FlexChartClsNames.legend;FlexChartBase._CSS_HEADER=exports.FlexChartClsNames.header;FlexChartBase._CSS_FOOTER=exports.FlexChartClsNames.footer;FlexChartBase._CSS_TITLE=exports.FlexChartClsNames.title;FlexChartBase._CSS_LABEL=exports.FlexChartClsNames.label;FlexChartBase._CSS_SELECTION=wijmo_1.ControlStateClsNames.selected;FlexChartBase._CSS_PLOT_AREA=exports.FlexChartClsNames.plotArea;FlexChartBase._FG="#666";FlexChartBase._epoch=new Date(1899,11,30).getTime();FlexChartBase._msPerDay=864e5;return FlexChartBase}(wijmo_1.Control);exports.FlexChartBase=FlexChartBase;var _KeyWords=function(){function _KeyWords(){this._keys={};this._keys.seriesName=null;this._keys.pointIndex=null;this._keys.x=null;this._keys.y=null;this._keys.value=null;this._keys.name=null}_KeyWords.prototype.replace=function(t,e){var i=this;return wijmo_1.format(t,{},(function(t,r,n,s){return i.getValue(r,e,n)}))};_KeyWords.prototype.getValue=function(t,e,i){switch(t){case"seriesName":return e.series?e.series.name:"";case"pointIndex":return null!=e.pointIndex?e.pointIndex.toFixed():"";case"x":return i?wijmo_1.Globalize.format(e.x,i):e._xfmt;case"y":return i?wijmo_1.Globalize.format(e.y,i):e._yfmt;case"value":return i?wijmo_1.Globalize.format(e.value,i):e._getValueFmt();case"name":return e.name}if(e.item){0==t.indexOf("item.")&&(t=t.substr(5));var r=e.item[t];if(!wijmo_1.isUndefined(r))return i?wijmo_1.Globalize.format(r,i):r}return""};return _KeyWords}();exports._KeyWords=_KeyWords;var ChartType,Stacking,ExportHelper=function(){function ExportHelper(){}ExportHelper.downloadImage=function(t,e,i){var r=document.createElement("a"),n="image/"+i;if(navigator.msSaveOrOpenBlob){t=t.substring(t.indexOf(",")+1);var s,o=atob(t),a=[],h=void 0,l=void 0;for(h=0;h<o.length;h+=512){l=o.slice(h,h+512);for(var _=new Array(l.length),u=0;u<l.length;u++)_[u]=l.charCodeAt(u);var c=new Uint8Array(_);a.push(c)}s=new Blob(a,{type:n});navigator.msSaveOrOpenBlob(s,e+"."+i)}else{r.download=e+"."+i;r.href=t;document.body.appendChild(r);r.addEventListener("click",(function(t){wijmo_1.removeChild(r)}));r.click()}};ExportHelper.getDataUri=function(t,e,i){var r,n,s,o,a,h,l,_,u,c,p=document.createElement("div"),f=t.cloneNode(!0),d=!1;if("svg"==t.tagName){n=(r=wijmo_1.getElementRect(t.parentNode||t)).width||0;s=r.height||0;0==n&&(d=!0);o=t.viewBox.baseVal&&0!==t.viewBox.baseVal.width?t.viewBox.baseVal.width:n;a=t.viewBox.baseVal&&0!==t.viewBox.baseVal.height?t.viewBox.baseVal.height:s}else{n=(h=t.getBBox()).x+h.width;s=h.y+h.height;f.setAttribute("transform",f.getAttribute("transform").replace(/translate\(.*?\)/,""));o=n;a=s;(_=document.createElementNS("http://www.w3.org/2000/svg","svg")).appendChild(f);f=_}if(d){var g=e._renderHidden(),m=e._getHostComputedStyle(),x=0,y=0;if(m){x=e._parsePx(m.width);y=e._parsePx(m.height)}0==x&&(x=FlexChartBase._WIDTH);0==y&&(y=FlexChartBase._HEIGHT);o=n=x;a=s=y;f=g.cloneNode(!0)}f.setAttribute("version","1.1");f.setAttributeNS(ExportHelper.xmlns,"xmlns","http://www.w3.org/2000/svg");f.setAttributeNS(ExportHelper.xmlns,"xmlns:xlink","http://www.w3.org/1999/xlink");f.setAttribute("width",n);f.setAttribute("height",s);f.setAttribute("viewBox","0 0 "+o+" "+a);wijmo_1.addClass(f,t.parentNode&&t.parentNode.getAttribute("class")||"");p.appendChild(f);l=ExportHelper.getStyles(t);l+="."+exports.FlexChartClsNames.hostElement+"{margin:0px;padding:0px;border:none;width:"+n+"px;height:"+s+"px;}\n";(u=document.createElement("style")).setAttribute("type","text/css");u.innerHTML="<![CDATA[\n"+l+"\n]]>";(c=document.createElementNS("http://www.w3.org/2000/svg","defs")).appendChild(u);f.insertBefore(c,f.firstChild);wijmo_1.isIE()||f.querySelectorAll("foreignObject").forEach((function(t){if(f===t.parentNode)f.removeChild(t);else for(var e=0,i=t.children;e<i.length;e++){i[e].setAttribute("xmlns","http://www.w3.org/1999/xhtml")}}));var b=e._currentRenderEngine.canvas;if(b){var v=document.createElementNS("http://www.w3.org/2000/svg","image");v.setAttribute("width",b.width);v.setAttribute("height",b.height);v.setAttribute("href",b.toDataURL());f.insertBefore(v,f.firstChild);e.invalidate()}ExportHelper.convertImagesToDataUrl(f,(function(){var t="data:image/svg+xml;base64,"+window.btoa(window.unescape(encodeURIComponent(ExportHelper.doctype+p.innerHTML)));i.call(null,t)}))};ExportHelper.convertImagesToDataUrl=function(t,e){var i=t.querySelectorAll("image");if(0!==i.length){var r=Array.from(i);Array.from(i).forEach((function(t){var i=new Image;i.onload=function(){var n=document.createElement("canvas");n.width=+t.getAttribute("width");n.height=+t.getAttribute("height");var s=n.getContext("2d"),o=i.width/i.height;o<n.width/n.height?s.drawImage(i,0,0,i.width,i.height,.5*(n.width-o*n.height),0,o*n.height,n.height):s.drawImage(i,0,0,i.width,i.height,0,.5*(n.height-n.width/o),n.width,n.width/o);t.setAttribute("href",n.toDataURL());i.remove();r.splice(r.indexOf(t),1);0==r.length&&e()};i.src=t.getAttribute("href")}))}else e()};ExportHelper.getDataUri2=function(t,e,i){var r,n,s,o,a,h,l,_=document.createElement("div"),u=ExportHelper.cloneWithComputedStyles(t),c=!1;if("svg"==t.tagName){n=(r=wijmo_1.getElementRect(t.parentNode||t)).width||0;s=r.height||0;0==n&&(c=!0);o=t.viewBox.baseVal&&0!==t.viewBox.baseVal.width?t.viewBox.baseVal.width:n;a=t.viewBox.baseVal&&0!==t.viewBox.baseVal.height?t.viewBox.baseVal.height:s}else{n=(h=t.getBBox()).x+h.width;s=h.y+h.height;u.setAttribute("transform",u.getAttribute("transform").replace(/translate\(.*?\)/,""));o=n;a=s;(l=document.createElementNS("http://www.w3.org/2000/svg","svg")).appendChild(u);u=l}if(c){var p=e._renderHidden(),f=e._getHostComputedStyle(),d=0,g=0;if(f){d=e._parsePx(f.width);g=e._parsePx(f.height)}0==d&&(d=FlexChartBase._WIDTH);0==g&&(g=FlexChartBase._HEIGHT);o=n=d;a=s=g;u=ExportHelper.cloneWithComputedStyles(p)}u.setAttribute("version","1.1");u.setAttributeNS(ExportHelper.xmlns,"xmlns","http://www.w3.org/2000/svg");u.setAttributeNS(ExportHelper.xmlns,"xmlns:xlink","http://www.w3.org/1999/xlink");u.setAttribute("width",n.toString());u.setAttribute("height",s.toString());u.setAttribute("viewBox","0 0 "+o+" "+a);_.appendChild(u);var m=e._currentRenderEngine.canvas;if(m){var x=document.createElementNS("http://www.w3.org/2000/svg","image");x.setAttribute("width",m.width);x.setAttribute("height",m.height);x.setAttribute("href",m.toDataURL());u.insertBefore(x,u.firstChild);e.invalidate()}ExportHelper.convertImagesToDataUrl(u,(function(){var t="data:image/svg+xml;base64,"+window.btoa(window.unescape(encodeURIComponent(ExportHelper.doctype+_.innerHTML)));i.call(null,t)}))};ExportHelper.computeAttributes=function(t,e,i){var r=getComputedStyle(t);i.forEach((function(t){var i=r.getPropertyValue(t);i&&i.length>0&&e.setAttribute(t,i)}))};ExportHelper.cloneWithComputedStyles=function(t){var e=t.cloneNode();Array.from(t.childNodes).forEach((function(t){var i=ExportHelper.cloneWithComputedStyles(t);1===t.nodeType&&("text"===t.nodeName?ExportHelper.computeAttributes(t,i,ExportHelper.textAttrs):"line"===t.nodeName&&ExportHelper.computeAttributes(t,i,ExportHelper.lineAttrs));e.appendChild(i)}));return e};ExportHelper.getStyles=function(t){var e="",i=document.styleSheets;if(null==i||0===i.length)return null;[].forEach.call(i,(function(i){var r;try{if(null==i.cssRules||0===i.cssRules.length)return!0}catch(t){if("SecurityError"==t.name){console.log("SecurityError. Can't read: "+i.href);return!0}}r=i.cssRules;[].forEach.call(r,(function(i){var r,n=i.style;if(null==n)return!0;var s=i.selectorText;if(wijmo_1.isIE()&&s){var o=s.match(/\[(.*?)\]/g);o&&o.forEach((function(t){s=s.replace(t,t.replace(":","\\:"))}))}try{r=s=="."+exports.FlexChartClsNames.hostElement||t.querySelector(s)}catch(t){console.warn('Invalid CSS selector "'+i.selectorText+'"',t)}r?e+=i.selectorText+" { "+n.cssText+" }\n":i.cssText.match(/^@font-face/)&&(e+=i.cssText+"\n")}))}));var r=getComputedStyle(t),n=r?r.getPropertyValue("font"):null;n&&(e+="."+exports.FlexChartClsNames.hostElement+"{font:"+n+"}\n");return e};ExportHelper.doctype='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">';ExportHelper.xmlns="http://www.w3.org/2000/xmlns/";ExportHelper.textAttrs=["font-family","font-size","font-style","font-weight","fill"];ExportHelper.lineAttrs=["stroke","stroke-width","stroke-dasharray"];return ExportHelper}(),ChartTooltip=function(t){__extends(ChartTooltip,t);function ChartTooltip(){var e=t.call(this)||this;e._content="<b>{seriesName}</b><br/>{x} {y}";e._threshold=15;return e}Object.defineProperty(ChartTooltip.prototype,"content",{get:function(){return this._content},set:function(t){t!=this._content&&(this._content=t)},enumerable:!0,configurable:!0});Object.defineProperty(ChartTooltip.prototype,"threshold",{get:function(){return this._threshold},set:function(t){t!=this._threshold&&(this._threshold=wijmo_1.asNumber(t))},enumerable:!0,configurable:!0});ChartTooltip.prototype.show=function(e,i,r){t.prototype.show.call(this,e,i,r);var n=ChartTooltip._eTip;n&&n.style&&(n.style.pointerEvents="none")};return ChartTooltip}(wijmo_1.Tooltip);exports.ChartTooltip=ChartTooltip;!function(t){t[t.Column=0]="Column";t[t.Bar=1]="Bar";t[t.Scatter=2]="Scatter";t[t.Line=3]="Line";t[t.LineSymbols=4]="LineSymbols";t[t.Area=5]="Area";t[t.Bubble=6]="Bubble";t[t.Candlestick=7]="Candlestick";t[t.HighLowOpenClose=8]="HighLowOpenClose";t[t.Spline=9]="Spline";t[t.SplineSymbols=10]="SplineSymbols";t[t.SplineArea=11]="SplineArea";t[t.Funnel=12]="Funnel";t[t.Step=13]="Step";t[t.StepSymbols=14]="StepSymbols";t[t.StepArea=15]="StepArea"}(ChartType=exports.ChartType||(exports.ChartType={}));!function(t){t[t.None=0]="None";t[t.Stacked=1]="Stacked";t[t.Stacked100pc=2]="Stacked100pc"}(Stacking=exports.Stacking||(exports.Stacking={}));var FlexChartCore=function(t){__extends(FlexChartCore,t);function FlexChartCore(e,i){var r=t.call(this,e,null,!0)||this;r._series=new wijmo_1.ObservableArray;r._axes=new AxisCollection;r._pareas=new PlotAreaCollection;r._interpolateNulls=!1;r._legendToggle=!1;r._symbolSize=10;r._dataInfo=new _DataInfo;r.__barPlotter=null;r.__linePlotter=null;r.__areaPlotter=null;r.__bubblePlotter=null;r.__financePlotter=null;r.__funnelPlotter=null;r._plotters=[];r._rotated=!1;r._stacking=Stacking.None;r._xlabels=[];r._xvals=[];r._lblAreas=[];r._colRowLens=[];r._selectedEls=[];r._markers=[];r._bindingSeparator=",";r.seriesVisibilityChanged=new wijmo_1.Event;r.applyTemplate(wijmo_1.ControlClsNames.hostElement+" "+exports.FlexChartClsNames.hostElement,null,null);r._series.collectionChanged.addHandler((function(){for(var t=r._series,e=0;e<t.length;e++){var i=wijmo_1.tryCast(t[e],SeriesBase);if(!i)throw"chartSeries array must contain SeriesBase objects.";i._chart=r;if(i.axisX&&null==i.axisX._chart){i.axisX._chart=r;r.axes.push(i.axisX)}if(i.axisY&&null==i.axisY._chart){i.axisY._chart=r;r.axes.push(i.axisY)}}r.invalidate()}));r._currentRenderEngine=new _SvgRenderEngine(r.hostElement);r._hitTester=new _HitTester(r);r._legend=new Legend(r);r._tooltip=new ChartTooltip;r._tooltip.showDelay=0;r._lbl=new DataLabel;r._lbl._chart=r;r._initAxes();r._axes.collectionChanged.addHandler((function(){for(var t=r._axes,e=0;e<t.length;e++){var i=wijmo_1.tryCast(t[e],Axis);if(!i)throw"axes array must contain Axis objects.";i._chart=r}r.invalidate()}));r._pareas.collectionChanged.addHandler((function(){for(var t=r._pareas,e=0;e<t.length;e++){var i=wijmo_1.tryCast(t[e],PlotArea);if(!i)throw"plotAreas array must contain PlotArea objects.";i._chart=r}r.invalidate()}));r._keywords=new _KeyWords;r.addEventListener(r.hostElement,"click",(function(t){var e=r._tooltip;e.content&&r.isTouching&&r._updateTooltip(e,t)}));r.addEventListener(r.hostElement,"mousemove",(function(t){var e=r._tooltip;e.content&&!r.isTouching&&r._updateTooltip(e,t)}));r.addEventListener(r.hostElement,"mouseleave",(function(t){r._hideToolTip()}));r.addEventListener(r.hostElement,"click",(function(t){var e=r._hitTestData(t);if(r.selectionMode!=SelectionMode.None){var i=FlexChartCore._SELECTION_THRESHOLD;r.tooltip&&r.tooltip.threshold&&(i=r.tooltip.threshold);e.distance<=i&&e.series?r._select(e.series,e.pointIndex):r.selectionMode==SelectionMode.Series&&(e=r.hitTest(t)).chartElement==ChartElement.Legend&&e.series?r._select(e.series,null):r._select(null,null)}if(!0===r.legendToggle&&(e=r.hitTest(t)).chartElement==ChartElement.Legend&&e.series){e.series.visibility==SeriesVisibility.Legend?e.series.visibility=SeriesVisibility.Visible:e.series.visibility==SeriesVisibility.Visible&&(e.series.visibility=SeriesVisibility.Legend);r.focus()}}));r.deferUpdate((function(){return r.initialize(i)}));return r}FlexChartCore.prototype.initialize=function(e){if(e&&e.renderEngine){var i=wijmo_1.asType(this._currentRenderEngine,_SvgRenderEngine,!0);i&&i.detach();this._currentRenderEngine=null}t.prototype.initialize.call(this,e)};FlexChartCore.prototype._initAxes=function(){this._axisX=new Axis(Position.Bottom);this._axisY=new Axis(Position.Left);this._axisX.majorGrid=!1;this._axisX.name="axisX";this._axisY.majorGrid=!0;this._axisY.majorTickMarks=TickMark.None;this._axisY.name="axisY";this._axisX._chart=this;this._axisY._chart=this;this._axes.push(this._axisX);this._axes.push(this._axisY)};Object.defineProperty(FlexChartCore.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"axes",{get:function(){return this._axes},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"axisX",{get:function(){return this._axisX},set:function(t){if(t!=this._axisX){this._axisX=wijmo_1.asType(t,Axis);var e=this._axisX;this.beginUpdate();if(e){void 0===e.majorGrid&&(e.majorGrid=!1);void 0===e.name&&(e.name="axisX");e._axisType=AxisType.X;null!=e.position&&e.position!=Position.Left&&e.position!=Position.Right&&e.position!=Position.BottomLeft&&e.position!=Position.BottomRight&&e.position!=Position.TopLeft&&e.position!=Position.TopRight&&e.position!=Position.LeftTop&&e.position!=Position.LeftBottom&&e.position!=Position.RightTop&&e.position!=Position.RightBottom||(e.position=Position.Bottom);e._chart=this}this.endUpdate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"axisY",{get:function(){return this._axisY},set:function(t){if(t!=this._axisY){this._axisY=wijmo_1.asType(t,Axis);var e=this._axisY;this.beginUpdate();if(e){void 0===e.majorGrid&&(e.majorGrid=!0);void 0===e.name&&(e.name="axisY");void 0===e.majorTickMarks&&(e.majorTickMarks=TickMark.None);e._axisType=AxisType.Y;null!=e.position&&e.position!=Position.Top&&e.position!=Position.Bottom&&e.position!=Position.BottomLeft&&e.position!=Position.BottomRight&&e.position!=Position.TopLeft&&e.position!=Position.TopRight&&e.position!=Position.LeftTop&&e.position!=Position.LeftBottom&&e.position!=Position.RightTop&&e.position!=Position.RightBottom||(e.position=Position.Left);e._chart=this}this.endUpdate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"plotAreas",{get:function(){return this._pareas},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"binding",{get:function(){return this._binding},set:function(t){if(t!=this._binding){this._binding=wijmo_1.asString(t,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"bindingX",{get:function(){return this._bindingX},set:function(t){if(t!=this._bindingX){this._bindingX=wijmo_1.asString(t,!0);this._bindChart()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"symbolSize",{get:function(){return this._symbolSize},set:function(t){if(t!=this._symbolSize){this._symbolSize=wijmo_1.asNumber(t,!1,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"interpolateNulls",{get:function(){return this._interpolateNulls},set:function(t){if(t!=this._interpolateNulls){this._interpolateNulls=wijmo_1.asBoolean(t);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"legendToggle",{get:function(){return this._legendToggle},set:function(t){t!=this._legendToggle&&(this._legendToggle=wijmo_1.asBoolean(t))},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"tooltip",{get:function(){return this._tooltip},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"dataLabel",{get:function(){return this._lbl},set:function(t){if(t!=this._lbl){this._lbl=wijmo_1.asType(t,DataLabel);this._lbl&&(this._lbl._chart=this)}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"selection",{get:function(){return this._selection},set:function(t){if(t!=this._selection){this._selection=wijmo_1.asType(t,SeriesBase,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"renderEngine",{get:function(){return this._currentRenderEngine},set:function(t){if(t!=this._currentRenderEngine){var e=wijmo_1.asType(this._currentRenderEngine,_SvgRenderEngine,!0);e&&e.detach();this._currentRenderEngine=t;var i=wijmo_1.asType(this._currentRenderEngine,_SvgRenderEngine,!0);i&&i.attach(this.hostElement);this.refresh()}},enumerable:!0,configurable:!0});FlexChartCore.prototype.onSeriesVisibilityChanged=function(t){this.seriesVisibilityChanged.raise(this,t)};FlexChartCore.prototype.hitTest=function(t,e){var i=this._toControl(t,e),r=new HitTestInfo(this,i),n=null;if(FlexChartCore._contains(this._rectHeader,i))r._chartElement=ChartElement.Header;else if(FlexChartCore._contains(this._rectFooter,i))r._chartElement=ChartElement.Footer;else if(FlexChartCore._contains(this._rectLegend,i)){r._chartElement=ChartElement.Legend;var s=i.clone();if(this.legend.scrollbar&&this._legendHost){var o=this._legendHost.querySelector(".wj-legend-scrollable");if(o){if(this.rightToLeft&&!this.legend.isVertical){var a=o.scrollWidth-o.clientWidth-1;s.x+=a+o.scrollLeft}else s.x+=o.scrollLeft;s.y+=o.scrollTop}}null!==(n=this.legend._hitTest(s))&&n>=0&&n<this.series.length&&r._setData(this.series[n])}else if(FlexChartCore._contains(this._rectChart,i)){var h=this._hitTestLabels(i);if(h){r._chartElement=ChartElement.DataLabel;r._dist=0;r._setDataPoint(h.tag)}else{for(var l=this._hitTester.hitTest(i),_=null,u=null,c=this.series.length-1;c>=0;c--)if(this.series[c].hitTest!==Series.prototype.hitTest){var p=this.series[c].hitTest(t);if(p){if(!_||p.distance<_.distance){_=p;u=c}if(0===p.distance)break}}if(l&&l.area)if(_&&_.distance<l.distance)r=_;else if(_&&_.distance==l.distance&&u>l.area.tag.seriesIndex)r=_;else{r._setDataPoint(l.area.tag);r._dist=l.distance}else _&&(r=_);var f=!1;this.axes.some((function(t){if(FlexChartCore._contains(t._axrect,i)){var e=void 0;if(t.axisType===AxisType.X){r._chartElement=ChartElement.AxisX;e=t._hitTest(i)}else{r._chartElement=ChartElement.AxisY;e=t._hitTest(i)}e?r._setName(e.label):r._setName("");f=!0;return!0}return!1}));f||(FlexChartCore._contains(this._plotRect,i)?r._chartElement=ChartElement.PlotArea:FlexChartCore._contains(this._rectChart,i)&&(r._chartElement=ChartElement.ChartArea))}}else r._chartElement=ChartElement.None;return r};FlexChartCore.prototype.pointToData=function(t,e){wijmo_1.isNumber(t)&&wijmo_1.isNumber(e)&&(t=new wijmo_1.Point(t,e));if(t instanceof MouseEvent){t=new wijmo_1.Point(t.pageX,t.pageY);t=this._toControl(t)}else t=t.clone();t.x=this.axisX.convertBack(t.x);t.y=this.axisY.convertBack(t.y);return t};FlexChartCore.prototype.dataToPoint=function(t,e){wijmo_1.isNumber(t)&&wijmo_1.isNumber(e)&&(t=new wijmo_1.Point(t,e));wijmo_1.asType(t,wijmo_1.Point);var i=t.clone();i.x=this.axisX.convert(i.x);i.y=this.axisY.convert(i.y);return i};FlexChartCore.prototype.dispose=function(){this._markers.forEach((function(t){t.remove()}));this._markers=[];t.prototype.dispose.call(this)};FlexChartCore.prototype._copy=function(t,e){if("series"==t){this.series.clear();for(var i=wijmo_1.asArray(e),r=0;r<i.length;r++){var n=this._createSeries();wijmo_1.copy(n,i[r]);this.series.push(n)}return!0}return!1};FlexChartCore.prototype._createSeries=function(){return new Series};FlexChartCore.prototype._clearCachedValues=function(){for(var t=0;t<this._series.length;t++){var e=this._series[t];null==e.itemsSource&&e._clearValues()}};FlexChartCore.prototype._performBind=function(){this._xDataType=null;this._xlabels.splice(0);this._xvals.splice(0);if(this._cv){var t=this._cv.items;if(t){for(var e=t.length,i=this.bindingX?new wijmo_1.Binding(this.bindingX):null,r=0;r<e;r++){var n=t[r];if(i){var s=i.getValue(n);if(wijmo_1.isNumber(s)){this._xvals.push(wijmo_1.asNumber(s));this._xDataType=wijmo_1.DataType.Number}else if(wijmo_1.isDate(s)){this._xvals.push(wijmo_1.asDate(s).valueOf());this._xDataType=wijmo_1.DataType.Date}this._xlabels.push(s)}}this._xvals.length==e?this._xlabels.splice(0):this._xvals.splice(0)}}};FlexChartCore.prototype._hitTestSeries=function(t,e){var i=this._toControl(t),r=new HitTestInfo(this,i),n=this._hitTester.hitTestSeries(i,e);if(n&&n.area){r._setDataPoint(n.area.tag);r._chartElement=ChartElement.PlotArea;r._dist=n.distance}return r};FlexChartCore.prototype._hitTestData=function(t){var e=this._toControl(t),i=new HitTestInfo(this,e),r=this._hitTester.hitTest(e,!0);if(r&&r.area){i._setDataPoint(r.area.tag);i._dist=r.distance}return i};FlexChartCore.prototype._hitTestLabels=function(t){for(var e=null,i=this._lblAreas.length,r=0;r<i;r++)if(this._lblAreas[r].contains(t)){e=this._lblAreas[r];break}return e};FlexChartCore._dist2=function(t,e){var i=t.x-e.x,r=t.y-e.y;return i*i+r*r};FlexChartCore._dist=function(t,e,i){return Math.sqrt(FlexChartCore._distToSegmentSquared(t,e,i))};FlexChartCore._distToSegmentSquared=function(t,e,i){var r=FlexChartCore._dist2(e,i);if(0==r)return FlexChartCore._dist2(t,e);var n=((t.x-e.x)*(i.x-e.x)+(t.y-e.y)*(i.y-e.y))/r;return n<0?FlexChartCore._dist2(t,e):n>1?FlexChartCore._dist2(t,i):FlexChartCore._dist2(t,new wijmo_1.Point(e.x+n*(i.x-e.x),e.y+n*(i.y-e.y)))};FlexChartCore.prototype._isRotated=function(){return this._getChartType()==ChartType.Bar?!this._rotated:this._rotated};FlexChartCore.prototype._getChartType=function(){return null};FlexChartCore.prototype._prepareRender=function(){this._hitTester.clear()};FlexChartCore.prototype._renderChart=function(t,e,i){var r=this._rectChart.clone(),n=new wijmo_1.Size(r.width,r.height);e.width,e.height;this._selectedEls.length=0;var s=this._getPlotter(null);s.stacking=this._stacking;if(this._curPlotter!=s){this._curPlotter&&this._curPlotter.unload();this._curPlotter=s}s.load();var o=this._isRotated();this._dataInfo.analyse(this._series,o,s.stacking,this._xvals.length>0?this._xvals:null,this.axisX._getLogBase()>0,this.axisY._getLogBase()>0);var a=s.adjustLimits(this._dataInfo,e.clone());if(o){var h=this._dataInfo.getDataTypeX();h||(h=this._xDataType);this.axisX._updateActualLimits(this._dataInfo.getDataTypeY(),a.left,a.right);this.axisY._updateActualLimits(h,a.top,a.bottom,this._xlabels,this._xvals)}else{var l=this._dataInfo.getDataTypeX();l||(l=this._xDataType);this.axisX._updateActualLimits(l,a.left,a.right,this._xlabels,this._xvals);this.axisY._updateActualLimits(this._dataInfo.getDataTypeY(),a.top,a.bottom)}var _=this._getAxes();this._updateAuxAxes(_,o);this._layout(e,n,t);t.startGroup(FlexChartCore._CSS_PLOT_AREA);t.fill="transparent";t.stroke=null;if(this.plotAreas.length>0)for(var u=0;u<this.plotAreas.length;u++){this.plotAreas[u]._render(t)}else{var c=this._plotRect;t.drawRect(c.left,c.top,c.width,c.height)}t.endGroup();var p=this._series.length;this._clearPlotters();var f={};for(u=0;u<p;u++){if(((w=(b=this._series[u]).visibility)==SeriesVisibility.Visible||w==SeriesVisibility.Plot)&&b.getValues(0)){var d=b._getAxisY(),g=this._getPlotter(b);if(!d||d==this.axisY||g instanceof _BarPlotter)g.seriesCount++;else{var m=d._uniqueId;f[m]?f[m].count+=1:f[m]={count:1,index:0}}}}this.onRendering(new RenderEventArgs(t));if(this._getChartType()!==ChartType.Funnel)for(u=0;u<_.length;u++){var x=_[u],y=void 0;y=x.axisType==AxisType.X?t.startGroup(FlexChartCore._CSS_AXIS_X,this._chartRectId):t.startGroup(FlexChartCore._CSS_AXIS_Y,this._chartRectId);x._hostElement=i?y:x._hostElement;x._render(t);t.endGroup()}t.startGroup(exports.SeriesClsNames.group);this._plotrectId="plotRect"+(1e6*Math.random()).toFixed();t.addClipRect(this._plotRect,this._plotrectId);t.options=this._options&&this._options.spline?{spline:this._options.spline.approximation}:null;for(u=0;u<p;u++){var b;(b=this._series[u])._pointIndexes=[];var v=this._getPlotter(b);b._plotter=v;y=t.startGroup(b.cssClass,v.clipping?this._plotrectId:null);b._hostElement=i?y:b._hostElement;var w=b.visibility,S=b.axisX,C=b.axisY;S||(S=this.axisX);C||(C=this.axisY);if(w==SeriesVisibility.Visible||w==SeriesVisibility.Plot){var P=f[C._uniqueId],A=void 0,M=void 0;if(!P||v instanceof _BarPlotter){A=v.seriesIndex;M=v.seriesCount;v.seriesIndex++;b.onRendering(t,A,M)||v.plotSeries(t,S,C,b,this,A,M)}else{A=P.index;M=P.count;P.index++;b.onRendering(t,A,M)||v.plotSeries(t,S,C,b,this,A,M)}b.onRendered(t)}t.endGroup()}t.endGroup();this._lblAreas=[];this.dataLabel.content&&this.dataLabel.position!=LabelPosition.None&&this._renderLabels(t);this._highlightCurrent();this.onRendered(new RenderEventArgs(t))};FlexChartCore.prototype._getDesiredLegendSize=function(t,e,i,r){var n=new wijmo_1.Size,s=this.series,o=s.length,a=(this.legend.scrollbar,0),h=0;this._colRowLens=[];for(var l=0;l<o;l++){var _=l;this._legendReversed()&&(_=o-l-1);var u=wijmo_1.tryCast(s[_],SeriesBase),c=u.visibility;if(u.name&&c!=SeriesVisibility.Hidden&&c!=SeriesVisibility.Plot)for(var p=u.legendItemLength(),f=0;f<p;f++){var d=u.measureLegendItem(t,f);if(e){if(a+d.height>r&&!this.legend.scrollbar){n.height=r;this._colRowLens.push(h);h=0;a=0}h<d.width&&(h=d.width);a+=d.height}else{if(h+d.width>i&&!this.legend.scrollbar){n.width=i;this._colRowLens.push(a);a=0;h=0}a<d.height&&(a=d.height);h+=d.width}}}if(e){n.height<a&&(n.height=a);this._colRowLens.push(h);n.width=this._colRowLens.reduce((function(t,e){return t+e}),0)}else{n.width<h&&(n.width=h);this._colRowLens.push(a);n.height=this._colRowLens.reduce((function(t,e){return t+e}),0)}return n};FlexChartCore.prototype._renderLegend=function(t,e,i,r,n,s){var o,a=this.series,h=a.length,l=e.clone(),_=0;if(this._legendReversed()){for(var u=h-1;u>=0;u--){o=wijmo_1.tryCast(a[u],SeriesBase);_=this._renderLegendElements(t,o,e,l,i,r,n,s,_)}i.reverse()}else for(u=0;u<h;u++){o=wijmo_1.tryCast(a[u],SeriesBase);_=this._renderLegendElements(t,o,e,l,i,r,n,s,_)}};FlexChartCore.prototype._legendReversed=function(){if(null==this._legend.reverse||null===this._legend.reverse){var t=!1,e=this._getChartType();(e===ChartType.Bar||e===ChartType.Column&&this._rotated)&&(this._stacking!==Stacking.None||this.axisY.reversed||(t=!0));return t}return this._legend.reverse};FlexChartCore.prototype._renderLegendElements=function(t,e,i,r,n,s,o,a,h){var l=new wijmo_1.Rect(i.x,i.y,o,a),_=h;if(!e)return _;var u=e.visibility;if(!e.name||u==SeriesVisibility.Hidden||u==SeriesVisibility.Plot){e._legendElement=null;n.push(null);return _}var c=e.legendItemLength(),p=t.startGroup(e.cssClass);if(u==SeriesVisibility.Legend){p.setAttribute("opacity","0.5");e._legendElement=p}else u==SeriesVisibility.Visible?e._legendElement=p:e._legendElement=null;for(var f=0;f<c;f++){var d=e.measureLegendItem(t,f);if(s){if(r.y+d.height>l.bottom+1&&!this.legend.scrollbar){r.x+=this._colRowLens[_];_++;r.y=i.y}}else if(r.x+d.width>l.right+1&&!this.legend.scrollbar){r.y+=this._colRowLens[_];_++;r.x=i.x}var g=new wijmo_1.Rect(r.x,r.y,d.width,d.height);u!=SeriesVisibility.Legend&&u!=SeriesVisibility.Visible||e.drawLegendItem(t,g,f);n.push(g);s?r.y+=d.height:r.x+=d.width}t.endGroup();return _};FlexChartCore.prototype._renderLabels=function(t){var e=this.series,i=e.length;t.stroke="null";t.fill="transparent";t.strokeWidth=1;var r=FlexChartCore._CSS_DATA_LABELS;t.startGroup(r);for(var n=0;n<i;n++){var s=e[n],o=this._hitTester._map[n];o&&s._renderLabels(t,o,this,this._lblAreas)}t.endGroup()};FlexChartCore.prototype._getAxes=function(){for(var t=[this.axisX,this.axisY],e=this.series.length,i=0;i<e;i++){var r=this.series[i],n=r.axisX;n&&-1===t.indexOf(n)&&t.push(n);var s=r.axisY;s&&-1===t.indexOf(s)&&t.push(s)}return t};FlexChartCore.prototype._clearPlotters=function(){for(var t=this._plotters.length,e=0;e<t;e++)this._plotters[e].clear()};FlexChartCore.prototype._initPlotter=function(t){t.chart=this;t.dataInfo=this._dataInfo;t.hitTester=this._hitTester;this._plotters.push(t)};Object.defineProperty(FlexChartCore.prototype,"_barPlotter",{get:function(){if(null===this.__barPlotter){this.__barPlotter=new _BarPlotter;this._initPlotter(this.__barPlotter)}return this.__barPlotter},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"_linePlotter",{get:function(){if(null===this.__linePlotter){this.__linePlotter=new _LinePlotter;this._initPlotter(this.__linePlotter)}return this.__linePlotter},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"_areaPlotter",{get:function(){if(null===this.__areaPlotter){this.__areaPlotter=new _AreaPlotter;this._initPlotter(this.__areaPlotter)}return this.__areaPlotter},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"_bubblePlotter",{get:function(){if(null===this.__bubblePlotter){this.__bubblePlotter=new _BubblePlotter;this._initPlotter(this.__bubblePlotter)}return this.__bubblePlotter},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"_financePlotter",{get:function(){if(null===this.__financePlotter){this.__financePlotter=new _FinancePlotter;this._initPlotter(this.__financePlotter)}return this.__financePlotter},enumerable:!0,configurable:!0});Object.defineProperty(FlexChartCore.prototype,"_funnelPlotter",{get:function(){if(null===this.__funnelPlotter){this.__funnelPlotter=new _FunnelPlotter;this._initPlotter(this.__funnelPlotter)}return this.__funnelPlotter},enumerable:!0,configurable:!0});FlexChartCore.prototype._getPlotter=function(t){var e,i=this._getChartType(),r=!1;if(t){var n=t._getChartType();if(null!=n&&n!=i){i=n;r=!0}}switch(i){case ChartType.Column:this._barPlotter.isVolume=!1;this._barPlotter.width=.7;e=this._barPlotter;break;case ChartType.Bar:this._barPlotter.rotated=!this._rotated;this._barPlotter.isVolume=!1;this._barPlotter.width=.7;e=this._barPlotter;break;case ChartType.Line:this._linePlotter.hasSymbols=!1;this._linePlotter.hasLines=!0;this._linePlotter.isSpline=!1;this._linePlotter.isStep=!1;e=this._linePlotter;break;case ChartType.Scatter:this._linePlotter.hasSymbols=!0;this._linePlotter.hasLines=!1;this._linePlotter.isSpline=!1;this._linePlotter.isStep=!1;e=this._linePlotter;break;case ChartType.LineSymbols:this._linePlotter.hasSymbols=!0;this._linePlotter.hasLines=!0;this._linePlotter.isSpline=!1;this._linePlotter.isStep=!1;e=this._linePlotter;break;case ChartType.Area:this._areaPlotter.isSpline=!1;this._areaPlotter.isStep=!1;e=this._areaPlotter;break;case ChartType.Bubble:e=this._bubblePlotter;break;case ChartType.Candlestick:(s=this._financePlotter).isCandle=!0;s.isEqui=!1;s.isArms=!1;s.isVolume=!1;e=s;break;case ChartType.HighLowOpenClose:var s;(s=this._financePlotter).isCandle=!1;s.isEqui=!1;s.isArms=!1;s.isVolume=!1;e=s;break;case ChartType.Spline:this._linePlotter.hasSymbols=!1;this._linePlotter.hasLines=!0;this._linePlotter.isSpline=!0;this._linePlotter.isStep=!1;e=this._linePlotter;break;case ChartType.SplineSymbols:this._linePlotter.hasSymbols=!0;this._linePlotter.hasLines=!0;this._linePlotter.isSpline=!0;this._linePlotter.isStep=!1;e=this._linePlotter;break;case ChartType.SplineArea:this._areaPlotter.isSpline=!0;this._areaPlotter.isStep=!1;e=this._areaPlotter;break;case ChartType.Funnel:e=this._funnelPlotter;break;case ChartType.Step:this._linePlotter.hasSymbols=!1;this._linePlotter.hasLines=!0;this._linePlotter.isSpline=!1;this._linePlotter.isStep=!0;e=this._linePlotter;break;case ChartType.StepSymbols:this._linePlotter.hasSymbols=!0;this._linePlotter.hasLines=!0;this._linePlotter.isSpline=!1;this._linePlotter.isStep=!0;e=this._linePlotter;break;case ChartType.StepArea:this._areaPlotter.isSpline=!1;this._areaPlotter.isStep=!0;e=this._areaPlotter;break;default:throw"Invalid chart type."}e.rotated=this._rotated;i==ChartType.Bar&&(e.rotated=!e.rotated);r&&(e.rotated=this._isRotated());return e};FlexChartCore.prototype._layout=function(t,e,i){this.plotAreas.length>0?this._layoutMultiple(t,e,i):this._layoutSingle(t,e,i)};FlexChartCore.prototype._layoutSingle=function(t,e,i){var r=t.width,n=t.height,s=new wijmo_1.Size(r,.75*n),o=new wijmo_1.Size(n,.75*r),a=0,h=0,l=r,_=n,u=0,c=0,p=r,f=n;if(this.dataLabel.position===LabelPosition.Top?this.dataLabel.content:null){h=i.measureString(this.dataLabel.content,exports.DataLabelClsNames.label).height}for(var d=this._getAxes(),g=this.axisY._getHeight(i,n),m=0;m<d.length;m++){var x=(A=d[m]).origin,y=A._getPosition();if(A.axisType==AxisType.X){(S=A._getHeight(i,Math.max(10,r-g)))>s.height&&(S=s.height);A._desiredSize=new wijmo_1.Size(s.width,S);A._hasOrigin=wijmo_1.isNumber(x)&&x>this.axisY._getMinNum()&&x<this.axisY._getMaxNum();var b=A._hasOrigin,v=Math.min(.25*r,A._annoSize.width);if(y==Position.Bottom){a=Math.max(a,.5*v);l=Math.min(l,r-.5*v);if(b){var w=this._convertY(x,c,f);f-=Math.max(0,w+S-f)}else f-=S}else if(y==Position.Top){a=Math.max(a,.5*v);l=Math.min(l,r-.5*v);if(b){w=this._convertY(x,c,f);c+=Math.max(0,c-(w-S))}else c+=S}}else if(A.axisType==AxisType.Y){var S;(S=A===this.axisX?g:A._getHeight(i,n))>o.height&&(S=o.height);A._desiredSize=new wijmo_1.Size(o.width,S);A._hasOrigin=wijmo_1.isNumber(x)&&x>this.axisX._getMinNum()&&x<this.axisX._getMaxNum();b=A._hasOrigin;if(y==Position.Left){if(A._actualAngle<0)_=Math.min(_,n-A._annoSize.height);else if(A._actualAngle>0)h=Math.max(h,A._annoSize.height);else{h=Math.max(h,A._annoSize.height);_=Math.min(_,n-A._annoSize.height)}if(b){var C=this._convertX(x,u,p);u+=Math.max(0,u-(C-S))}else u+=S}else if(y==Position.Right){if(A._actualAngle>0)_=Math.min(_,n-A._annoSize.height);else if(A._actualAngle<0)h=Math.max(h,A._annoSize.height);else{h=Math.max(h,A._annoSize.height);_=Math.min(_,n-A._annoSize.height)}if(b){C=this._convertX(x,u,p);p-=Math.max(0,C+S-p)}else p-=S}}}var P=this._parseMargin(this.plotMargin);a=u=isNaN(P.left)?Math.max(a,u)+t.left:P.left;l=p=isNaN(P.right)?Math.min(l,p)+t.left:e.width-P.right;h=c=isNaN(P.top)?Math.max(h,c)+t.top:P.top;_=f=isNaN(P.bottom)?Math.min(_,f)+t.top:e.height-P.bottom;r=Math.max(1,l-a);n=Math.max(1,_-h);this._plotRect=new wijmo_1.Rect(a,h,r,n);_<=h&&(f=c+1);i.stroke=null;for(m=0;m<d.length;m++){var A,M=(A=d[m]).origin;y=A._getPosition();if(A.axisType==AxisType.X){var T=void 0;if(A._hasOrigin){w=this._convertY(M,this._plotRect.top,this._plotRect.bottom);if(y==Position.Bottom){T=new wijmo_1.Rect(a,w,r,A._desiredSize.height);f+=Math.max(0,T.bottom-this._plotRect.bottom)}else if(y==Position.Top){T=new wijmo_1.Rect(a,w-A._desiredSize.height,r,A._desiredSize.height);c-=Math.max(0,this._plotRect.top-T.top)}else T=new wijmo_1.Rect(a,w,r,1)}else if(y==Position.Bottom){T=new wijmo_1.Rect(a,f,r,A._desiredSize.height);f+=A._desiredSize.height}else if(y==Position.Top){T=new wijmo_1.Rect(a,c-A._desiredSize.height,r,A._desiredSize.height);c-=A._desiredSize.height}else T=new wijmo_1.Rect(a,c,r,1);A._layout(T,this._plotRect)}else if(A.axisType==AxisType.Y){var L=void 0;if(A._hasOrigin){C=this._convertX(M,this._plotRect.left,this._plotRect.right);if(y==Position.Left){L=new wijmo_1.Rect(C-A._desiredSize.height,h,n,A._desiredSize.height);u-=A._desiredSize.height}else if(y==Position.Right){L=new wijmo_1.Rect(C,h,n,A._desiredSize.height);p+=A._desiredSize.height}else L=new wijmo_1.Rect(C,h,n,1)}else if(y==Position.Left){L=new wijmo_1.Rect(u-A._desiredSize.height,h,n,A._desiredSize.height);u-=A._desiredSize.height}else if(y==Position.Right){L=new wijmo_1.Rect(p,h,n,A._desiredSize.height);p+=A._desiredSize.height}else L=new wijmo_1.Rect(u,h,n,1);A._layout(L,this._plotRect)}}};FlexChartCore.prototype._layoutMultiple=function(t,e,i){for(var r=t.width,n=t.height,s=[],o=[],a=this._getAxes(),h=a.length,l=0;l<h;l++){(C=a[l])._plotrect=null;if(C.axisType==AxisType.X){for(var _=C.plotArea?C.plotArea.column:0;s.length<=_;)s.push(new _AreaDef);s[_].axes.push(C)}else if(C.axisType==AxisType.Y){for(var u=C.plotArea?C.plotArea.row:0;o.length<=u;)o.push(new _AreaDef);o[u].axes.push(C)}}for(var c=s.length,p=o.length,f=new wijmo_1.Size(r,.3*n),d=new wijmo_1.Size(n,.3*r),g=0,m=0,x=r,y=n,b=0;b<c;b++){(j=s[b]).right=r;j.bottom=n;for(l=0;l<j.axes.length;l++){var v=(C=j.axes[l])._getHeight(i,C.axisType==AxisType.X?r:n);v>f.height&&(v=f.height);var w=new wijmo_1.Size(f.width,v);C._desiredSize=w;0==b&&(j.left=Math.max(j.left,.5*C._annoSize.width));b==c-1&&(j.right=Math.min(j.right,r-.5*C._annoSize.width));(I=C._getPosition())==Position.Bottom?j.bottom-=w.height:I==Position.Top&&(j.top+=w.height)}}for(var S=0;S<p;S++){(j=o[S]).right=r;j.bottom=n;for(l=0;l<j.axes.length;l++){var C=j.axes[l],P=new wijmo_1.Size(d.width,C._getHeight(i,C.axisType==AxisType.X?r:n));P.height>d.height&&(P.height=d.height);C._desiredSize=P;0==S&&(j.top=Math.max(j.top,.5*C._annoSize.width));S==p-1&&(j.bottom=Math.min(j.bottom,n-.5*C._annoSize.width));(I=C._getPosition())==Position.Left?j.left+=P.height:I==Position.Right&&(j.right-=P.height)}}var A=0,M=0,T=r,L=n;for(b=0;b<c;b++){var j=s[b];A=Math.max(A,j.left);M=Math.max(M,j.top);T=Math.min(T,j.right);L=Math.min(L,j.bottom)}for(S=0;S<p;S++){j=o[S];A=Math.max(A,j.left);M=Math.max(M,j.top);T=Math.min(T,j.right);L=Math.min(L,j.bottom)}A=g=Math.max(g,A);T=x=Math.min(x,T);M=m=Math.max(m,M);L=y=Math.min(y,L);this._plotRect=new wijmo_1.Rect(g,m,x-g,y-m);var E=this._plotRect.clone(),F=g,k=this.plotAreas._calculateWidths(this._plotRect.width,c);for(b=0;b<c;b++){L=y;M=m;j=s[b];var N=k[b];for(l=0;l<j.axes.length;l++){var I=(C=j.axes[l])._getPosition(),R=new wijmo_1.Rect(F,E.top,N,E.height),B=void 0;if(I==Position.Bottom){B=new wijmo_1.Rect(F,L,N,C._desiredSize.height);L+=C._desiredSize.height}else if(I==Position.Top){B=new wijmo_1.Rect(F,M-C._desiredSize.height,N,C._desiredSize.height);M-=C._desiredSize.height}C._layout(B,R)}for(l=0;l<this.plotAreas.length;l++){(G=this.plotAreas[l]).column==b&&G._setPlotX(F,N)}F+=N}var D=m,O=this.plotAreas._calculateHeights(this._plotRect.height,p);for(S=0;S<p;S++){A=g;T=x;j=o[S];var V=O[S];for(l=0;l<j.axes.length;l++){I=(C=j.axes[l])._getPosition(),R=new wijmo_1.Rect(E.left,D,E.width,V);if(C._plotrect){R.left=C._plotrect.left;R.width=C._plotrect.width}else k&&k.length>0&&(R.width=k[0]);var H=void 0;if(I==Position.Left){H=new wijmo_1.Rect(A-C._desiredSize.height,D,V,C._desiredSize.height);A-=C._desiredSize.height}else if(I==Position.Right){H=new wijmo_1.Rect(T,D,V,C._desiredSize.height);T+=C._desiredSize.height}C._layout(H,R)}for(l=0;l<this.plotAreas.length;l++){var G;(G=this.plotAreas[l]).row==S&&G._setPlotY(D,V)}D+=V}};FlexChartCore.prototype._convertX=function(t,e,i){var r=this.axisX;return r.reversed?i-(i-e)*(t-r._getMinNum())/(r._getMaxNum()-r._getMinNum()):e+(i-e)*(t-r._getMinNum())/(r._getMaxNum()-r._getMinNum())};FlexChartCore.prototype._convertY=function(t,e,i){var r=this.axisY;return r.reversed?e+(i-e)*(t-r._getMinNum())/(r._getMaxNum()-r._getMinNum()):i-(i-e)*(t-r._getMinNum())/(r._getMaxNum()-r._getMinNum())};FlexChartCore.prototype._getLabelContent=function(t,e){return t.chartElement!==ChartElement.AxisX&&t.chartElement!==ChartElement.AxisY||!t.name?wijmo_1.isString(e)?this._keywords.replace(e,t):wijmo_1.isFunction(e)?e(t):null:t.name};FlexChartCore.prototype._select=function(t,e){var i=this.selectionMode,r=!1;(t!=this._selection||i==SelectionMode.Point&&e!=this._selectionIndex)&&(r=!0);this._selection&&this._highlight(this._selection,!1,this._selectionIndex);this._selection=t;this._selectionIndex=e;this._selection&&this._highlight(this._selection,!0,this._selectionIndex);if(i==SelectionMode.Point){var n=t?t.collectionView:this._cv;if(n){this._notifyCurrentChanged=!1;n.moveCurrentToPosition(t?e:-1);this._notifyCurrentChanged=!0}}r&&this.onSelectionChanged()};FlexChartCore.prototype._highlightCurrent=function(){if(this.selectionMode!=SelectionMode.None){var t=this._selection,e=-1;if(t){var i=t.collectionView;i||(i=this._cv);i&&(e=i.currentPosition);this._highlight(t,!0,e)}}};FlexChartCore.prototype._highlight=function(t,e,i){t=wijmo_1.asType(t,SeriesBase,!0);if(this.selectionMode==SelectionMode.Series){var r=this.series.indexOf(t),n=t.hostElement;e?n.parentNode.appendChild(n):n.parentNode.insertBefore(n,n.parentNode.childNodes.item(r));var s=this._find(n,["rect","ellipse","polyline","polygon","line","path"]);this._highlightItems(s,FlexChartCore._CSS_SELECTION,e);t.legendElement&&this._highlightItems(this._find(t.legendElement,["rect","ellipse","line"]),FlexChartCore._CSS_SELECTION,e)}else if(this.selectionMode==SelectionMode.Point){r=this.series.indexOf(t),n=t.hostElement;if(e){n.parentNode.appendChild(n);var o=t.getPlotElement(i);if(o)if(o instanceof SVGElement){if("g"!=o.nodeName){this._highlightItems([o],FlexChartCore._CSS_SELECTION,e);this._selectedEls.push(o)}if((s=this._find(o,["line","rect","ellipse","path","polygon"])).length>0){this._highlightItems(s,FlexChartCore._CSS_SELECTION,e);for(var a=0;a<s.length;a++)this._selectedEls.push(s[a])}}else if(Array.isArray(o)){this._highlightItems(o,FlexChartCore._CSS_SELECTION,e);for(a=0;a<o.length;a++)this._selectedEls.push(o[a])}}else{n.parentNode.insertBefore(n,n.parentNode.childNodes.item(r));if(this._selectedEls.length>0){this._highlightItems(this._selectedEls,FlexChartCore._CSS_SELECTION,e);this._selectedEls.length=0}}}};FlexChartCore.prototype._updateTooltip=function(t,e){var i,r=this.hitTest(e);if(r.distance<=t.threshold){var n=t.content;if(r.series){var s=r.series.tooltipContent;(s||""===s)&&(n=s)}i=this._getLabelContent(r,n)}this._hideToolTip();i&&this._showToolTip(i,new wijmo_1.Rect(e.clientX,e.clientY,5,5))};FlexChartCore.prototype._updateAuxAxes=function(t,e){for(var i=2;i<t.length;i++){var r=t[i];r._chart=this;for(var n=[],s=0;s<this.series.length;s++){var o=this.series[s];o.axisX!=r&&o.axisY!=r||n.push(o)}var a=void 0,h=void 0;for(s=0;s<n.length;s++){var l=n[s].getDataRect()||n[s]._getDataRect();if(l)if(r.axisType==AxisType.X&&!e||r.axisType==AxisType.Y&&e){(void 0===a||l.left<a)&&(a=l.left);(void 0===h||l.right>h)&&(h=l.right)}else{(void 0===a||l.top<a)&&(a=l.top);(void 0===h||l.bottom>h)&&(h=l.bottom)}}var _=n[0].getDataType(0);null==_&&(_=wijmo_1.DataType.Number);t[i]._updateActualLimits(_,a,h)}};FlexChartCore._CSS_AXIS_X=exports.AxisClsNames.axisX;FlexChartCore._CSS_AXIS_Y=exports.AxisClsNames.axisY;FlexChartCore._CSS_LINE=exports.AxisClsNames.line;FlexChartCore._CSS_GRIDLINE=exports.AxisClsNames.gridline;FlexChartCore._CSS_TICK=exports.AxisClsNames.tick;FlexChartCore._CSS_GRIDLINE_MINOR=exports.AxisClsNames.gridlineMinor;FlexChartCore._CSS_TICK_MINOR=exports.AxisClsNames.tickMinor;FlexChartCore._CSS_DATA_LABELS=exports.DataLabelClsNames.labels;return FlexChartCore}(FlexChartBase);exports.FlexChartCore=FlexChartCore;var _AreaDef=function(){function _AreaDef(){this._axes=[];this.left=0;this.right=0;this.top=0;this.bottom=0}Object.defineProperty(_AreaDef.prototype,"axes",{get:function(){return this._axes},enumerable:!0,configurable:!0});return _AreaDef}(),_DataInfo=function(){function _DataInfo(){this.stackAbs={};this._xvals=null}_DataInfo.prototype.analyse=function(t,e,i,r,n,s){var o=this;this.minY=NaN;this.maxY=NaN;this.minX=NaN;this.maxX=NaN;this.minXp=NaN;this.minYp=NaN;this.dx=0;var a={},h={},l={};this.dataTypeX=null;this.dataTypeY=null;this._xvals=r;if(null!=r)for(var _=r.length,u=0;u<_;u++){var c=r[u];(isNaN(this.minX)||this.minX>c)&&(this.minX=c);(isNaN(this.maxX)||this.maxX<c)&&(this.maxX=c);c>0&&(isNaN(this.minXp)||this.minXp>c)&&(this.minXp=c);if(u>0){var p=Math.abs(c-r[u-1]);!isNaN(p)&&(p<this.dx||0==this.dx)&&(this.dx=p)}}var _loop_1=function(n){var s=t[n],_=s._getChartType(),u=void 0!==s.chartType,c=s.visibility;if(c==SeriesVisibility.Hidden||c==SeriesVisibility.Legend)return"continue";var p=s.getDataRect(),d=void 0;if(p){if(!isNaN(f.minX)&&f.minX<p.left){d=p.right;p.left=f.minX;p.width=d-f.minX}!isNaN(f.maxX)&&f.maxX>p.right&&(p.width=f.maxX-p.left);if(!s._isCustomAxisY()){if(!isNaN(f.minY)&&f.minY<p.top){d=p.bottom;p.top=f.minY;p.height=d-f.minY}!isNaN(f.maxY)&&f.maxY>p.bottom&&(p.height=f.maxY-p.top)}}var g=null;e?s._isCustomAxisY()||(g=s.getValues(1)):s._isCustomAxisX()||(g=s.getValues(1));if(g){f.dataTypeX||(f.dataTypeX=s.getDataType(1));for(var m=0;m<g.length;m++){var x=g[m];if(isFinite(x)){(isNaN(f.minX)||f.minX>x)&&(f.minX=x);(isNaN(f.maxX)||f.maxX<x)&&(f.maxX=x);if(m>0&&(!_||_==ChartType.Column||_==ChartType.Bar)){var y=Math.abs(x-g[m-1]);!isNaN(y)&&y>0&&(y<f.dx||0==f.dx)&&(f.dx=y)}}}}var b=null,v=!1;if(e){v=s._isCustomAxisX();b=s.getValues(0)}else{v=s._isCustomAxisY();b=s.getValues(0)}if(b){f.dataTypeY||v||(f.dataTypeY=s.getDataType(0));isNaN(f.minX)?f.minX=0:g||r||(f.minX=Math.min(f.minX,0));isNaN(f.maxX)?f.maxX=b.length-1:g||r||(f.maxX=Math.max(f.maxX,b.length-1));if(!v){var w=i==Stacking.None||u,_loop_2=function(t){var e=b[t],i=g?wijmo_1.asNumber(g[t],!0):r?wijmo_1.asNumber(r[t],!0):t;wijmo_1.isArray(e)?e.forEach((function(t){o._parseYVal(t,i,w,l,a,h)})):f._parseYVal(e,i,w,l,a,h)};for(m=0;m<b.length;m++)_loop_2(m)}}var S=s.getDataRect(new wijmo_1.Rect(f.minX,f.minY,f.maxX-f.minX,f.maxY-f.minY),p);if(S){f.minX=S.left;f.maxX=S.right;if(!v){f.minY=S.top;f.maxY=S.bottom}}},f=this;for(u=0;u<t.length;u++)_loop_1(u);if(i==Stacking.Stacked){for(var d in a)a[d]>this.maxY&&(this.maxY=a[d]);for(var d in h)h[d]<this.minY&&(this.minY=h[d])}else if(i==Stacking.Stacked100pc){this.minY=0;this.maxY=0;for(var d in l){var g=l[d];if(Number.isFinite(g)&&0!=g){var m=a[d],x=h[d];Number.isFinite(m)&&(m=Math.max(m/g,this.maxY))>this.maxY&&(this.maxY=m);Number.isFinite(x)&&(x=Math.min(x/g,this.minY))<this.minY&&(this.minY=x)}}if(this.minY==this.maxY){this.minY=0;this.maxY=1}}this.stackAbs=l;n&&(e?this.minY=isNaN(this.minYp)?1:this.minYp:this.minX=isNaN(this.minXp)?1:this.minXp);s&&(e?this.minX=isNaN(this.minXp)?1:this.minXp:this.minY=isNaN(this.minYp)?1:this.minYp)};_DataInfo.prototype._parseYVal=function(t,e,i,r,n,s){if(isFinite(t)){null!=t&&(isNaN(this.minY)||this.minY>t)&&(this.minY=t);null!=t&&(isNaN(this.maxY)||this.maxY<t)&&(this.maxY=t);t>0&&(isNaN(this.minYp)||this.minYp>t)&&(this.minYp=t);if(!i){t>0?isNaN(n[e])?n[e]=t:n[e]+=t:isNaN(s[e])?s[e]=t:s[e]+=t;isNaN(r[e])?r[e]=Math.abs(t):r[e]+=Math.abs(t)}}};_DataInfo.prototype.getMinY=function(){return this.minY};_DataInfo.prototype.getMaxY=function(){return this.maxY};_DataInfo.prototype.getMinX=function(){return this.minX};_DataInfo.prototype.getMaxX=function(){return this.maxX};_DataInfo.prototype.getMinXp=function(){return this.minXp};_DataInfo.prototype.getMinYp=function(){return this.minYp};_DataInfo.prototype.getDeltaX=function(){return this.dx};_DataInfo.prototype.getDataTypeX=function(){return this.dataTypeX};_DataInfo.prototype.getDataTypeY=function(){return this.dataTypeY};_DataInfo.prototype.getStackedAbsSum=function(t){var e=this.stackAbs[t];return Number.isFinite(e)?e:0};_DataInfo.prototype.getXVals=function(){return this._xvals};_DataInfo.isValid=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=t.length,r=0;r<i;r++)if(!Number.isFinite(t[r]))return!1;return!0};return _DataInfo}();exports._DataInfo=_DataInfo;var LabelPosition,PieLabelPosition,FlexChart=function(t){__extends(FlexChart,t);function FlexChart(e,i){var r=t.call(this,e,null)||this;r._chartType=ChartType.Column;r.initialize(i);return r}FlexChart.prototype._getChartType=function(){return this._chartType};Object.defineProperty(FlexChart.prototype,"chartType",{get:function(){return this._chartType},set:function(t){if((t=wijmo_1.asEnum(t,ChartType))!=this._chartType){this._chartType=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChart.prototype,"rotated",{get:function(){return this._rotated},set:function(t){if(t!=this._rotated){this._rotated=wijmo_1.asBoolean(t);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChart.prototype,"stacking",{get:function(){return this._stacking},set:function(t){if((t=wijmo_1.asEnum(t,Stacking))!=this._stacking){this._stacking=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexChart.prototype,"options",{get:function(){return this._options},set:function(t){if(t!=this._options){this._options=t;this.invalidate()}},enumerable:!0,configurable:!0});return FlexChart}(FlexChartCore);exports.FlexChart=FlexChart;!function(t){t[t.None=0]="None";t[t.Left=1]="Left";t[t.Top=2]="Top";t[t.Right=3]="Right";t[t.Bottom=4]="Bottom";t[t.Center=5]="Center"}(LabelPosition=exports.LabelPosition||(exports.LabelPosition={}));!function(t){t[t.None=0]="None";t[t.Inside=1]="Inside";t[t.Center=2]="Center";t[t.Outside=3]="Outside";t[t.Radial=4]="Radial";t[t.Circular=5]="Circular"}(PieLabelPosition=exports.PieLabelPosition||(exports.PieLabelPosition={}));var DataLabelRenderEventArgs=function(t){__extends(DataLabelRenderEventArgs,t);function DataLabelRenderEventArgs(e,i,r,n){var s=t.call(this,e)||this;s.cancel=!1;s._ht=i;s._pt=r;s._text=n;return s}Object.defineProperty(DataLabelRenderEventArgs.prototype,"point",{get:function(){return this._pt},enumerable:!0,configurable:!0});Object.defineProperty(DataLabelRenderEventArgs.prototype,"text",{get:function(){return this._text},set:function(t){this._text=wijmo_1.asString(t)},enumerable:!0,configurable:!0});Object.defineProperty(DataLabelRenderEventArgs.prototype,"hitTestInfo",{get:function(){return this._ht},enumerable:!0,configurable:!0});return DataLabelRenderEventArgs}(RenderEventArgs);exports.DataLabelRenderEventArgs=DataLabelRenderEventArgs;var DataLabelBase=function(){function DataLabelBase(){this.rendering=new wijmo_1.Event}Object.defineProperty(DataLabelBase.prototype,"content",{get:function(){return this._content},set:function(t){if(t!=this._content){this._content=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(DataLabelBase.prototype,"border",{get:function(){return this._bdr},set:function(t){if(t!=this._bdr){this._bdr=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(DataLabelBase.prototype,"offset",{get:function(){return this._off},set:function(t){if(t!=this._off){this._off=wijmo_1.asNumber(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(DataLabelBase.prototype,"connectingLine",{get:function(){return this._line},set:function(t){if(t!=this._line){this._line=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});DataLabelBase.prototype.onRendering=function(t){this.rendering.raise(this,t);return!t.cancel};DataLabelBase.prototype._invalidate=function(){this._chart&&this._chart.invalidate()};return DataLabelBase}();exports.DataLabelBase=DataLabelBase;var DataLabel=function(t){__extends(DataLabel,t);function DataLabel(){var e=null!==t&&t.apply(this,arguments)||this;e._pos=LabelPosition.Top;return e}Object.defineProperty(DataLabel.prototype,"position",{get:function(){return this._pos},set:function(t){if((t=wijmo_1.asEnum(t,LabelPosition))!=this._pos){this._pos=t;this._invalidate()}},enumerable:!0,configurable:!0});return DataLabel}(DataLabelBase);exports.DataLabel=DataLabel;var PieDataLabel=function(t){__extends(PieDataLabel,t);function PieDataLabel(){var e=null!==t&&t.apply(this,arguments)||this;e._pos=PieLabelPosition.Center;return e}Object.defineProperty(PieDataLabel.prototype,"position",{get:function(){return this._pos},set:function(t){if((t=wijmo_1.asEnum(t,PieLabelPosition))!=this._pos){this._pos=t;this._invalidate()}},enumerable:!0,configurable:!0});return PieDataLabel}(DataLabelBase);exports.PieDataLabel=PieDataLabel;var _MeasureOption,_DataPoint=function(){function _DataPoint(t,e,i,r){this._seriesIndex=t;this._pointIndex=e;this._dataX=i;this._dataY=r}Object.defineProperty(_DataPoint.prototype,"seriesIndex",{get:function(){return this._seriesIndex},enumerable:!0,configurable:!0});Object.defineProperty(_DataPoint.prototype,"pointIndex",{get:function(){return this._pointIndex},enumerable:!0,configurable:!0});Object.defineProperty(_DataPoint.prototype,"dataX",{get:function(){return this._dataX},set:function(t){t!==this._dataX&&(this._dataX=t)},enumerable:!0,configurable:!0});Object.defineProperty(_DataPoint.prototype,"dataY",{get:function(){return this._dataY},set:function(t){t!==this._dataY&&(this._dataY=t)},enumerable:!0,configurable:!0});return _DataPoint}();exports._DataPoint=_DataPoint;!function(t){t[t.X=0]="X";t[t.Y=1]="Y";t[t.XY=2]="XY"}(_MeasureOption=exports._MeasureOption||(exports._MeasureOption={}));var _RectArea=function(){function _RectArea(t){this._rect=t}Object.defineProperty(_RectArea.prototype,"rect",{get:function(){return this._rect},enumerable:!0,configurable:!0});_RectArea.prototype.contains=function(t){var e=this._rect;return t.x>=e.left&&t.x<=e.right&&t.y>=e.top&&t.y<=e.bottom};_RectArea.prototype.pointDistance=function(t,e,i){var r=e.x-t.x,n=e.y-t.y;return i==_MeasureOption.X?Math.abs(r):i==_MeasureOption.Y?Math.abs(n):Math.sqrt(r*r+n*n)};_RectArea.prototype.distance=function(t){var e=_MeasureOption.XY;isNaN(t.x)||null===t.x?e=_MeasureOption.Y:(isNaN(t.y)||null===t.y)&&(e=_MeasureOption.X);var i=this._rect;return t.x<i.left?t.y<i.top?this.pointDistance(t,new wijmo_1.Point(i.left,i.top),e):t.y>i.bottom?this.pointDistance(t,new wijmo_1.Point(i.left,i.bottom),e):e==_MeasureOption.Y?0:i.left-t.x:t.x>i.right?t.y<i.top?this.pointDistance(t,new wijmo_1.Point(i.right,i.top),e):t.y>i.bottom?this.pointDistance(t,new wijmo_1.Point(i.right,i.bottom),e):e==_MeasureOption.Y?0:t.x-i.right:e==_MeasureOption.X?0:t.y<i.top?i.top-t.y:t.y>i.bottom?t.y-i.bottom:0};return _RectArea}();exports._RectArea=_RectArea;var _CircleArea=function(){function _CircleArea(t,e){this._center=t;this.setRadius(e)}_CircleArea.prototype.setRadius=function(t){this._rad=t;this._rad2=t*t};Object.defineProperty(_CircleArea.prototype,"center",{get:function(){return this._center},enumerable:!0,configurable:!0});_CircleArea.prototype.contains=function(t){var e=this._center.x-t.x,i=this._center.y-t.y;return e*e+i*i<=this._rad2};_CircleArea.prototype.distance=function(t){var e=isNaN(t.x)?0:this._center.x-t.x,i=isNaN(t.y)?0:this._center.y-t.y,r=e*e+i*i;return r<=this._rad2?0:Math.sqrt(r)-this._rad};return _CircleArea}();exports._CircleArea=_CircleArea;var _LinesArea=function(){function _LinesArea(t,e){this._x=[];this._y=[];this._x=t;this._y=e}_LinesArea.prototype.contains=function(t){return!1};_LinesArea.prototype.distance=function(t){for(var e=NaN,i=0;i<this._x.length-1;i++){var r=FlexChartCore._dist(t,new wijmo_1.Point(this._x[i],this._y[i]),new wijmo_1.Point(this._x[i+1],this._y[i+1]));(isNaN(e)||r<e)&&(e=r)}return e};return _LinesArea}();exports._LinesArea=_LinesArea;var _HitResult=function _HitResult(){};exports._HitResult=_HitResult;var ChartElement,_HitTester=function(){function _HitTester(t){this._map={};this._chart=t}_HitTester.prototype.add=function(t,e){if(this._map[e]){t.tag||(t.tag=new _DataPoint(e,NaN,NaN,NaN));this._map[e].push(t)}};_HitTester.prototype.clear=function(){this._map={};for(var t=this._chart.series,e=0;e<t.length;e++)t[e].hitTest===Series.prototype.hitTest&&(this._map[e]=[])};_HitTester.prototype.hitTest=function(t,e){void 0===e&&(e=!1);for(var i=null,r=Number.MAX_VALUE,n=this._chart.series.length-1;n>=0;n--){var s=this._map[n];if(s){for(var o=s.length-1;o>=0;o--){var a=s[o];if(!wijmo_1.tryCast(a,_LinesArea)||e){var h=a.distance(t);if(h<r){i=a;if(0==(r=h))break}}}if(0==r)break}}if(i){var l=new _HitResult;l.area=i;l.distance=r;return l}return null};_HitTester.prototype.hitTestSeries=function(t,e){var i=null,r=Number.MAX_VALUE,n=this._map[e];if(n)for(var s=n.length-1;s>=0;s--){var o=n[s],a=o.distance(t);if(a<r){i=o;if(0==(r=a))break}}if(i){var h=new _HitResult;h.area=i;h.distance=r;return h}return null};return _HitTester}();exports._HitTester=_HitTester;!function(t){t[t.PlotArea=0]="PlotArea";t[t.AxisX=1]="AxisX";t[t.AxisY=2]="AxisY";t[t.ChartArea=3]="ChartArea";t[t.Legend=4]="Legend";t[t.Header=5]="Header";t[t.Footer=6]="Footer";t[t.Series=7]="Series";t[t.SeriesSymbol=8]="SeriesSymbol";t[t.DataLabel=9]="DataLabel";t[t.None=10]="None"}(ChartElement=exports.ChartElement||(exports.ChartElement={}));var SeriesVisibility,Marker,HitTestInfo=function(){function HitTestInfo(t,e,i){this._pointIndex=null;this._chartElement=ChartElement.None;this._chart=t;this._pt=e;this._chartElement=i}Object.defineProperty(HitTestInfo.prototype,"chart",{get:function(){return this._chart},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"point",{get:function(){return this._pt},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"pointIndex",{get:function(){return this._pointIndex},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"chartElement",{get:function(){return this._chartElement},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"distance",{get:function(){return this._dist},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"item",{get:function(){if(null==this._item&&null!==this.pointIndex)if(null!=this.series)this._item=this.series._getItem(this.pointIndex);else{var t=this._chart._getHitTestItem(this.pointIndex);t&&(this._item=t)}return this._item},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"x",{get:function(){void 0===this._x&&(this._x=this._getValue(1,!1));return this._x},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"y",{get:function(){void 0===this._y&&(this._y=this._getValue(0,!1));return this._y},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"value",{get:function(){var t=this._chart._getHitTestValue(this.pointIndex,this._groupIndex);return null!=t?t:this.series&&null!=this.series._getValue?this.series._getValue(this.pointIndex):this.y},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"name",{get:function(){if(void 0===this._name){var t=this._chart._getHitTestLabel(this.pointIndex);return null==t?this.series.name:t.toString()}return this._name},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"groupIndex",{get:function(){return this._groupIndex},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"_xfmt",{get:function(){void 0===this.__xfmt&&(this.__xfmt=this._getValue(1,!0));return this.__xfmt},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"_yfmt",{get:function(){void 0===this.__yfmt&&(this.__yfmt=this._getValue(0,!0));return this.__yfmt},enumerable:!0,configurable:!0});HitTestInfo.prototype._setData=function(t,e){this._series=t;this._pointIndex=e};HitTestInfo.prototype._setDataGroup=function(t,e){this._groupIndex=t;this._pointIndex=e};HitTestInfo.prototype._setName=function(t){this._name=t;t&&(this._dist=0)};HitTestInfo.prototype._setDataPoint=function(t){if(t=wijmo_1.asType(t,_DataPoint,!0)){this._pointIndex=t.pointIndex;var e=wijmo_1.asType(this._chart,FlexChartCore,!0),i=t.seriesIndex;null!==i&&i>=0&&i<e.series.length&&(this._series=e.series[i]);null!=t.item&&(this._item=t.item);null!=t.x&&(this._x=t.x);null!=t.y&&(this._y=t.y);null!=t.xfmt&&(this.__xfmt=t.xfmt);null!=t.yfmt&&(this.__yfmt=t.yfmt);null!=t.name&&(this._name=t.name)}};HitTestInfo.prototype._getValueFmt=function(){var t=this.value;if(null!=t){if(null==this.series){var e=t==Math.round(t)?"{val:n0}":"{val:n}";return wijmo_1.format(e,{val:t})}t=this._chart._isRotated()?this.ax._formatValue(t):this.ay._formatValue(t)}return t};HitTestInfo.prototype._getValue=function(t,e){var i=this._chart._getHitTestValue(this.pointIndex,this.groupIndex);if(null!==i)return i;var r=null,n=this._chart,s=this.pointIndex,o=n._isRotated();if(null!==this.series&&null!==s){var a=this.series.getValues(t),h=this.series.getDataType(t);if(a&&this.pointIndex<a.length){r=a[this.pointIndex];h!=wijmo_1.DataType.Date||e||(r=new Date(r))}else if(1==t)if(n._xlabels&&n._xlabels.length>0&&s<n._xlabels.length)r=n._xlabels[s];else if(n._xvals&&s<n._xvals.length){r=n._xvals[s];n._xDataType!=wijmo_1.DataType.Date||e||(r=new Date(r))}}null!==r&&e&&(o?0==t?r=this.ax._formatValue(r):1==t&&(r=this.ay._formatValue(r)):0==t?r=this.ay._formatValue(r):1==t&&(r=this.ax._formatValue(r)));return r};Object.defineProperty(HitTestInfo.prototype,"ax",{get:function(){return this.series.axisX?this.series.axisX:this._chart.axisX},enumerable:!0,configurable:!0});Object.defineProperty(HitTestInfo.prototype,"ay",{get:function(){return this.series.axisY?this.series.axisY:this._chart.axisY},enumerable:!0,configurable:!0});return HitTestInfo}();exports.HitTestInfo=HitTestInfo;!function(t){t[t.Visible=0]="Visible";t[t.Plot=1]="Plot";t[t.Legend=2]="Legend";t[t.Hidden=3]="Hidden"}(SeriesVisibility=exports.SeriesVisibility||(exports.SeriesVisibility={}));!function(t){t[t.Dot=0]="Dot";t[t.Box=1]="Box"}(Marker=exports.Marker||(exports.Marker={}));var DataArray=function DataArray(){};exports.DataArray=DataArray;var SeriesEventArgs=function(t){__extends(SeriesEventArgs,t);function SeriesEventArgs(e){var i=t.call(this)||this;i._series=wijmo_1.asType(e,SeriesBase);return i}Object.defineProperty(SeriesEventArgs.prototype,"series",{get:function(){return this._series},enumerable:!0,configurable:!0});return SeriesEventArgs}(wijmo_1.EventArgs);exports.SeriesEventArgs=SeriesEventArgs;var SeriesBase=function(){function SeriesBase(t){this._altStyle=null;this._symbolMarker=Marker.Dot;this._visibility=SeriesVisibility.Visible;this._interpolateNulls=null;this._cache={};this.rendering=new wijmo_1.Event;this.rendered=new wijmo_1.Event;this.initialize(t)}Object.defineProperty(SeriesBase.prototype,"interpolateNulls",{get:function(){return null==this._interpolateNulls?this._chart&&this._chart.interpolateNulls:this._interpolateNulls},set:function(t){if(t!=this._interpolateNulls){this._interpolateNulls=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"style",{get:function(){return this._style},set:function(t){if(t!=this._style){this._style=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"altStyle",{get:function(){return this._altStyle},set:function(t){if(t!=this._altStyle){this._altStyle=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"symbolStyle",{get:function(){return this._symbolStyle},set:function(t){if(t!=this._symbolStyle){this._symbolStyle=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"symbolSize",{get:function(){return this._symbolSize},set:function(t){if(t!=this._symbolSize){this._symbolSize=wijmo_1.asNumber(t,!0,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"symbolMarker",{get:function(){return this._symbolMarker},set:function(t){if((t=wijmo_1.asEnum(t,Marker,!0))!=this._symbolMarker){this._symbolMarker=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"binding",{get:function(){return this._binding?this._binding:this._chart?this._chart.binding:null},set:function(t){if(t!=this._binding){this._binding=wijmo_1.asString(t,!0);this._clearValues();this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"bindingX",{get:function(){return this._bindingX?this._bindingX:this._chart?this._chart.bindingX:null},set:function(t){if(t!=this._bindingX){this._bindingX=wijmo_1.asString(t,!0);this._clearValues();this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"itemsSource",{get:function(){return this._itemsSource},set:function(t){if(t!=this._itemsSource){if(this._cv){this._cv.currentChanged.removeHandler(this._cvCurrentChanged,this);this._cv.collectionChanged.removeHandler(this._cvCollectionChanged,this);this._cv=null}this._itemsSource=t;this._cv=wijmo_1.asCollectionView(t);if(null!=this._cv){this._cv.currentChanged.addHandler(this._cvCurrentChanged,this);this._cv.collectionChanged.addHandler(this._cvCollectionChanged,this)}this._clearValues();this._itemsSource=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"collectionView",{get:function(){return this._cv?this._cv:this._chart?this._chart.collectionView:null},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"chart",{get:function(){return this._chart},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"hostElement",{get:function(){return this._hostElement},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"legendElement",{get:function(){return this._legendElement},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"cssClass",{get:function(){return this._cssClass},set:function(t){this._cssClass=wijmo_1.asString(t,!0)},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"visibility",{get:function(){return this._visibility},set:function(t){if((t=wijmo_1.asEnum(t,SeriesVisibility))!=this._visibility){this._visibility=t;this._clearValues();this._invalidate();this._chart&&this._chart.onSeriesVisibilityChanged(new SeriesEventArgs(this))}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"tooltipContent",{get:function(){return this._tooltipContent},set:function(t){t!=this._tooltipContent&&(this._tooltipContent=t)},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"itemFormatter",{get:function(){return this._itemFormatter},set:function(t){if(t!=this._itemFormatter){this._itemFormatter=wijmo_1.asFunction(t);this._invalidate()}},enumerable:!0,configurable:!0});SeriesBase.prototype.hitTest=function(t,e){wijmo_1.isNumber(t)&&wijmo_1.isNumber(e)?t=new wijmo_1.Point(t,e):t instanceof MouseEvent&&(t=new wijmo_1.Point(t.pageX,t.pageY));wijmo_1.asType(t,wijmo_1.Point);return this._chart?this._chart._hitTestSeries(t,this._chart.series.indexOf(this)):null};SeriesBase.prototype.getPlotElement=function(t){if(this.hostElement&&t<this._pointIndexes.length){var e=this._pointIndexes[t];if(e<this.hostElement.childNodes.length)return this.hostElement.childNodes[e]}return null};Object.defineProperty(SeriesBase.prototype,"axisX",{get:function(){return this._axisX},set:function(t){if(t!=this._axisX){this._axisX=wijmo_1.asType(t,Axis,!0);if(this._axisX){this._axisX._chart=this._chart;var e=this._axisX._chart;e&&-1==e.axes.indexOf(this._axisX)&&e.axes.push(this._axisX)}this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(SeriesBase.prototype,"axisY",{get:function(){return this._axisY},set:function(t){if(t!=this._axisY){this._axisY=wijmo_1.asType(t,Axis,!0);if(this._axisY){this._axisY._chart=this._chart;var e=this._axisY._chart;e&&-1==e.axes.indexOf(this._axisY)&&e.axes.push(this._axisY)}this._invalidate()}},enumerable:!0,configurable:!0});SeriesBase.prototype.initialize=function(t){wijmo_1.copy(this,t)};SeriesBase.prototype.pointToData=function(t){wijmo_1.asType(t,wijmo_1.Point);(t=t.clone()).x=this._getAxisX().convertBack(t.x);t.y=this._getAxisY().convertBack(t.y);return t};SeriesBase.prototype.dataToPoint=function(t){wijmo_1.asType(t,wijmo_1.Point);(t=t.clone()).x=this._getAxisX().convert(t.x);t.y=this._getAxisY().convert(t.y);return t};SeriesBase.prototype.onRendering=function(t,e,i){var r=new SeriesRenderingEventArgs(t,e,i);this.rendering.raise(this,r);return r.cancel};SeriesBase.prototype.onRendered=function(t){this.rendered.raise(this,new RenderEventArgs(t))};Object.defineProperty(SeriesBase.prototype,"_chart",{get:function(){return this.__chart},set:function(t){t!==this.__chart&&(this.__chart=t)},enumerable:!0,configurable:!0});SeriesBase.prototype._getSymbolSize=function(){return null!=this.symbolSize?this.symbolSize:this.chart.symbolSize};Object.defineProperty(SeriesBase.prototype,"_plotter",{get:function(){this.chart&&!this.__plotter&&(this.__plotter=this.chart._getPlotter(this));return this.__plotter},set:function(t){t!=this.__plotter&&(this.__plotter=t)},enumerable:!0,configurable:!0});SeriesBase.prototype.getDataType=function(t){return 0==t?this._valueDataType:1==t?this._xvalueDataType:null};SeriesBase.prototype.getValues=function(t){if(0==t){if(null==this._values){this._valueDataType=null;if(null!=this._cv){var e=this._bindValues(this._cv.items,this._getBinding(0));this._values=e.values;this._valueDataType=e.dataType}else if(null!=this.binding&&null!=this._chart&&null!=this._chart.collectionView){e=this._bindValues(this._chart.collectionView.items,this._getBinding(0));this._values=e.values;this._valueDataType=e.dataType}}return this._values}if(1==t){if(null==this._xvalues){this._xvalueDataType=null;if(null!=this.bindingX)if(null!=this._cv){e=this._bindValues(this._cv.items,this.bindingX,!0);this._xvalueDataType=e.dataType;this._xvalues=e.values}else{if(null==this._bindingX)return null;if(null!=this._chart&&null!=this._chart.collectionView){e=this._bindValues(this._chart.collectionView.items,this.bindingX,!0);this._xvalueDataType=e.dataType;this._xvalues=e.values}}}return this._xvalues}return null};SeriesBase.prototype.drawLegendItem=function(t,e,i){var r=this._getChartType();null==r&&(r=this._chart._getChartType());var n=this._getLegendStyle(this.style);r===ChartType.Funnel?this._drawFunnelLegendItem(t,e,i,n,this.symbolStyle):this._drawLegendItem(t,e,r,this.name,n,this.symbolStyle)};SeriesBase.prototype._getLegendStyle=function(t){if(t){var e={};t.fill&&(e.fill=t.fill);t.stroke&&(e.stroke=t.stroke);return e}};SeriesBase.prototype.measureLegendItem=function(t,e){var i=this._getChartType();null==i&&(i=this._chart._getChartType());return i===ChartType.Funnel?this._measureLegendItem(t,this._getFunnelLegendName(e)):this._measureLegendItem(t,this.name)};SeriesBase.prototype.legendItemLength=function(){var t=this._getChartType();null==t&&(t=this._chart._getChartType());return t===ChartType.Funnel?this._chart._xlabels&&this._chart._xlabels.length?this._chart._xlabels.length:this._chart._xvals&&this._chart._xvals.length?this._chart._xvals.length:1:1};SeriesBase.prototype.getDataRect=function(t,e){return null};SeriesBase.prototype._getChartType=function(){return this._chartType};SeriesBase.prototype._clearValues=function(){this._values=null;this._xvalues=null;this.__plotter=null;this._cache={}};SeriesBase.prototype._getBinding=function(t){var e=this.binding;if(e){var i=this.chart?this.chart._bindingSeparator:",";if(i){var r=e.split(i);r&&r.length>t&&(e=r[t].trim())}}return e};SeriesBase.prototype._getBindingValues=function(t){if(this._cache[t])return this._cache[t];var e=void 0;null!=this._cv?e=this._cv.items:null!=this._chart&&null!=this._chart.collectionView&&(e=this._chart.collectionView.items);var i=this._bindValues(e,this._getBinding(t));this._cache[t]=i.values;return this._cache[t]};SeriesBase.prototype._getItem=function(t){var e=null,i=null;null!=this.itemsSource?i=null!=this._cv?this._cv.items:this.itemsSource:null!=this._chart.itemsSource&&(i=null!=this._chart.collectionView?this._chart.collectionView.items:this._chart.itemsSource);null!=i&&(e=i[t]);return e};SeriesBase.prototype._getLength=function(){var t=0,e=null;null!=this.itemsSource?e=null!=this._cv?this._cv.items:this.itemsSource:null!=this._chart.itemsSource&&(e=null!=this._chart.collectionView?this._chart.collectionView.items:this._chart.itemsSource);null!=e&&(t=e.length);return t};SeriesBase.prototype._setPointIndex=function(t,e){this._pointIndexes[t]=e};SeriesBase.prototype._getDataRect=function(){var t=this.getValues(0),e=this.getValues(1);if(t){for(var i=NaN,r=NaN,n=NaN,s=NaN,o=t.length,a=0;a<o;a++){var h=t[a];if(wijmo_1.isArray(h)){var l=h,_=Math.min.apply(Math,l),u=Math.max.apply(Math,l);if(isNaN(r)){r=_;s=u}else{_<r&&(r=_);u>s&&(s=u)}}else Number.isFinite(h)&&(isNaN(r)?r=s=h:h<r?r=h:h>s&&(s=h));if(e){var c=e[a];Number.isFinite(c)&&(isNaN(i)?i=n=c:c<i?i=c:h>s&&(n=c))}}if(!e){i=0;n=o-1}if(!isNaN(r))return new wijmo_1.Rect(i,r,n-i,s-r)}return null};SeriesBase.prototype._isCustomAxisX=function(){return!!this._axisX&&(!this._chart||this._axisX!=this.chart.axisX)};SeriesBase.prototype._isCustomAxisY=function(){return!!this._axisY&&(!this._chart||this._axisY!=this.chart.axisY)};SeriesBase.prototype._getAxisX=function(){var t=null;this.axisX?t=this.axisX:this.chart&&(t=this.chart.axisX);return t};SeriesBase.prototype._getAxisY=function(){var t=null;this.axisY?t=this.axisY:this.chart&&(t=this.chart.axisY);return t};SeriesBase.prototype._measureLegendItem=function(t,e){var i=new wijmo_1.Size;i.width=SeriesBase._LEGEND_ITEM_WIDTH;i.height=SeriesBase._LEGEND_ITEM_HEIGHT;if(this._name){var r=t.measureString(e,FlexChartCore._CSS_LABEL,FlexChartCore._CSS_LEGEND);i.width+=r.width;i.height<r.height&&(i.height=r.height)}i.width+=3*SeriesBase._LEGEND_ITEM_MARGIN;i.height+=2*SeriesBase._LEGEND_ITEM_MARGIN;return i};SeriesBase.prototype._drawFunnelLegendItem=function(t,e,i,r,n){t.strokeWidth=1;var s=SeriesBase._LEGEND_ITEM_MARGIN,o=null,a=null;null===o&&(o=this._chart._getColorLight(i));null===a&&(a=this._chart._getColor(i));t.fill=o;t.stroke=a;var h=e.top+.5*e.height,l=SeriesBase._LEGEND_ITEM_WIDTH,_=SeriesBase._LEGEND_ITEM_HEIGHT,u=this._getFunnelLegendName(i);t.drawRect(e.left+s,h-.5*_,l,_,null,n||r);null!=u&&FlexChartCore._renderText(t,u,new wijmo_1.Point(e.left+_+2*s,h),0,1,FlexChartCore._CSS_LABEL,FlexChartCore._CSS_LEGEND)};SeriesBase.prototype._getFunnelLegendName=function(t){var e,i=this._chart;if(i._xlabels&&i._xlabels.length&&t<i._xlabels.length)e=i._xlabels[t];else if(i._xvals&&i._xvals.length&&t<i._xvals.length){e=i._xvals[t];i._xDataType===wijmo_1.DataType.Date&&(e=FlexChartCore._fromOADate(e))}null==e&&(e=this.name);return e.toString()};SeriesBase.prototype._drawLegendItem=function(t,e,i,r,n,s){t.strokeWidth=1;var o=SeriesBase._LEGEND_ITEM_MARGIN,a=null,h=null;null===a&&(a=this._chart._getColorLight(this._chart.series.indexOf(this)));null===h&&(h=this._chart._getColor(this._chart.series.indexOf(this)));t.fill=a;t.stroke=h;var l=e.top+.5*e.height,_=SeriesBase._LEGEND_ITEM_WIDTH,u=SeriesBase._LEGEND_ITEM_HEIGHT;switch(i){case ChartType.Area:case ChartType.SplineArea:case ChartType.StepArea:t.drawRect(e.left+o,l-.5*u,_,u,null,n);break;case ChartType.Bar:case ChartType.Column:t.drawRect(e.left+o,l-.5*u,_,u,null,s||n);break;case ChartType.Scatter:case ChartType.Bubble:var c=.3*_,p=.3*u;this.symbolMarker==Marker.Box?t.drawRect(e.left+o+.5*_-c,l-p,2*c,2*p,null,s||n):t.drawEllipse(e.left+.5*_+o,l,c,p,null,s||n);break;case ChartType.Line:case ChartType.Spline:case ChartType.Step:t.drawLine(e.left+o,l,e.left+_+o,l,null,n);break;case ChartType.LineSymbols:case ChartType.SplineSymbols:case ChartType.StepSymbols:c=.3*_,p=.3*u;this.symbolMarker==Marker.Box?t.drawRect(e.left+o+.5*_-c,l-p,2*c,2*p,null,s||n):t.drawEllipse(e.left+.5*_+o,l,c,p,null,s||n);t.drawLine(e.left+o,l,e.left+_+o,l,null,n);break;case ChartType.Candlestick:case ChartType.HighLowOpenClose:t.drawLine(e.left+o,l,e.left+_+o,l,null,s||n)}this._name&&FlexChartCore._renderText(t,r,new wijmo_1.Point(e.left+u+2*o,l),0,1,FlexChartCore._CSS_LABEL,FlexChartCore._CSS_LEGEND)};SeriesBase.prototype._cvCollectionChanged=function(t,e){this._clearValues();this._invalidate()};SeriesBase.prototype._cvCurrentChanged=function(t,e){this._chart&&this._chart._notifyCurrentChanged&&this._invalidate()};SeriesBase.prototype._bindValues=function(t,e,i){void 0===i&&(i=!1);var r,n,s;if(null!=t){var o=t.length;r=new Array(t.length);for(var a=e?new wijmo_1.Binding(e):null,h=0;h<o;h++){s=null;var l=t[h];null!=a&&(l=a.getValue(l));if(wijmo_1.isArray(l)&&l.length>0){s=l;l=l[0]}if(wijmo_1.isNumber(l)){r[h]=l;n=wijmo_1.DataType.Number}else if(wijmo_1.isDate(l)){r[h]=l.valueOf();n=wijmo_1.DataType.Date}else if(i&&l){r[h]=h;n=wijmo_1.DataType.Number}wijmo_1.isArray(s)&&s.length>0&&(r[h]=s)}}var _=new DataArray;_.values=r;_.dataType=n;return _};SeriesBase.prototype._invalidate=function(){this._chart&&this._chart.invalidate()};SeriesBase.prototype._indexToPoint=function(t){if(t>=0&&t<this._values.length){var e=this._values[t],i=this._xvalues?this._xvalues[t]:t;return new wijmo_1.Point(i,e)}return null};SeriesBase.prototype._getSymbolFill=function(t){var e=null;this.symbolStyle&&(e=this.symbolStyle.fill);!e&&this.style&&(e=this.style.fill);!e&&this.chart&&(e=this.chart._getColorLight(t));return e};SeriesBase.prototype._getSymbolStroke=function(t){var e=null;this.symbolStyle&&(e=this.symbolStyle.stroke);!e&&this.style&&(e=this.style.stroke);!e&&this.chart&&(e=this.chart._getColor(t));return e};SeriesBase.prototype._getAltSymbolStroke=function(t){var e=null;this.altStyle&&(e=this.altStyle.stroke);return e};SeriesBase.prototype._getAltSymbolFill=function(t){var e=null;this.altStyle&&(e=this.altStyle.fill);return e};SeriesBase.prototype._renderLabels=function(t,e,i,r){this._plotter&&this._plotter._renderLabels(t,this,e,i,r)};SeriesBase._LEGEND_ITEM_WIDTH=10;SeriesBase._LEGEND_ITEM_HEIGHT=10;SeriesBase._LEGEND_ITEM_MARGIN=4;return SeriesBase}();exports.SeriesBase=SeriesBase;var _BasePlotter=function(){function _BasePlotter(){this._DEFAULT_WIDTH=2;this._DEFAULT_SYM_SIZE=10;this.clipping=!0}_BasePlotter.prototype.clear=function(){this.seriesCount=0;this.seriesIndex=0};_BasePlotter.prototype._renderLabels=function(t,e,i,r,n){var s=i.length,o=r.dataLabel,a=o.border,h=o.offset,l=o.connectingLine;void 0===h&&(h=l?16:0);a&&(h-=2);for(var _=0;_<s;_++){var u=i[_],c=wijmo_1.asType(u.tag,_DataPoint,!0);c&&!u.ignoreLabel&&this._renderLabel(t,u,c,r,o,e,h,n)}};_BasePlotter.prototype._renderLabel=function(t,e,i,r,n,s,o,a){var h,l=null==n.position?LabelPosition.Top:n.position,_=n.border,u=n.connectingLine,c=new HitTestInfo(r,h);c._setDataPoint(i);var p=r._getLabelContent(c,n.content);h=this._getLabelPoint(s,i);this._getPointAndPosition(h,l,e,r);if(r._plotRect.contains(h)){var f=new DataLabelRenderEventArgs(t,c,h,p);if(n.onRendering)if(n.onRendering(f)){p=f.text;h=f.point}else p=null;if(p){var d=this._renderLabelAndBorder(t,p,l,o,h,u,2,_);if(d){var g=new _RectArea(d);g.tag=i;a.push(g)}}t.cssPriority=!0}};_BasePlotter.prototype._getPointAndPosition=function(t,e,i,r){if(i instanceof _RectArea){var n=i;r._isRotated()?t.y=n.rect.top+.5*n.rect.height:t.x=n.rect.left+.5*n.rect.width}};_BasePlotter.prototype._getLabelPoint=function(t,e){var i=t._getAxisX(),r=t._getAxisY();return new wijmo_1.Point(i.convert(e.dataX),r.convert(e.dataY))};_BasePlotter.prototype._renderLabelAndBorder=function(t,e,i,r,n,s,o,a){var h,l=exports.DataLabelClsNames.label,_=exports.DataLabelClsNames.line,u=exports.DataLabelClsNames.border,c=FlexChartCore._CSS_DATA_LABELS;switch(i){case LabelPosition.Top:s&&t.drawLine(n.x,n.y,n.x,n.y-r,_);n.y-=o+r;h=FlexChartCore._renderText(t,e,n,1,2,l,c);break;case LabelPosition.Bottom:s&&t.drawLine(n.x,n.y,n.x,n.y+r,_);n.y+=o+r;h=FlexChartCore._renderText(t,e,n,1,0,l,c);break;case LabelPosition.Left:s&&t.drawLine(n.x,n.y,n.x-r,n.y,_);n.x-=o+r;h=FlexChartCore._renderText(t,e,n,2,1,l,c);break;case LabelPosition.Right:s&&t.drawLine(n.x,n.y,n.x+r,n.y,_);n.x+=o+r;h=FlexChartCore._renderText(t,e,n,0,1,l,c);break;case LabelPosition.Center:h=FlexChartCore._renderText(t,e,n,1,1,l,c)}a&&h&&t.drawRect(h.left-o,h.top-o,h.width+2*o,h.height+2*o,u);return h};_BasePlotter.prototype.getOption=function(t,e){var i=this.chart._options;e&&(i=i?i[e]:null);if(i&&!wijmo_1.isUndefined(i[t])&&null!==i[t])return i[t]};_BasePlotter.prototype.getNumOption=function(t,e){var i=this.chart._options;e&&(i=i?i[e]:null);if(i&&i[t])return wijmo_1.asNumber(i[t],!0)};_BasePlotter.prototype.getItemFormatter=function(t){if(t instanceof SeriesBase){var e=t;return e.itemFormatter?e.itemFormatter:this.chart.itemFormatter}return this.chart.itemFormatter};_BasePlotter.cloneStyle=function(t,e){if(!t)return t;var i={};for(var r in t)e&&e.indexOf(r)>=0||(i[r]=t[r]);return i};_BasePlotter.prototype.isValid=function(t,e,i,r){return Number.isFinite(t)&&Number.isFinite(e)&&FlexChartCore._contains(this.chart._plotRect,new wijmo_1.Point(t,e))};_BasePlotter.prototype.load=function(){};_BasePlotter.prototype.unload=function(){};_BasePlotter.prototype._createSteps=function(t,e,i){var r=this.getOption("position","step"),n=i||t.length,s=[],o=[],a=this.chart._isRotated();if("center"==r)if(a)for(var h=0;h<n;h++){var l=0==h?e[h+1]-e[h]:e[h]-e[h-1],_=h==n-1?e[h]-e[h-1]:e[h+1]-e[h];s.push(t[h]);o.push(e[h]-.5*l);s.push(t[h]);o.push(e[h]+.5*_)}else for(h=0;h<n;h++){var u=0==h?t[h+1]-t[h]:t[h]-t[h-1],c=h==n-1?t[h]-t[h-1]:t[h+1]-t[h];s.push(t[h]-.5*u);o.push(e[h]);s.push(t[h]+.5*c);o.push(e[h])}else if("end"==r)for(h=0;h<n;h++){if(h>0)if(a){s.push(t[h]);o.push(e[h-1])}else{s.push(t[h-1]);o.push(e[h])}s.push(t[h]);o.push(e[h])}else for(h=0;h<n;h++){s.push(t[h]);o.push(e[h]);if(h<n-1)if(a){s.push(t[h]);o.push(e[h+1])}else{s.push(t[h+1]);o.push(e[h])}}return{x:s,y:o}};return _BasePlotter}();exports._BasePlotter=_BasePlotter;var Series=function(t){__extends(Series,t);function Series(){return null!==t&&t.apply(this,arguments)||this}Object.defineProperty(Series.prototype,"chartType",{get:function(){return this._chartType},set:function(t){if((t=wijmo_1.asEnum(t,ChartType,!0))!=this._chartType){this._chartType=t;this._invalidate()}},enumerable:!0,configurable:!0});return Series}(SeriesBase);exports.Series=Series;var FlexPie=function(t){__extends(FlexPie,t);function FlexPie(e,i){var r=t.call(this,e,null,!0)||this;r._areas=[];r._keywords=new _KeyWords;r._startAngle=0;r._innerRadius=0;r._offset=0;r._reversed=!1;r._isAnimated=!1;r._selectedItemPosition=Position.None;r._selectedItemOffset=0;r._pieGroups=[];r._rotationAngles=[];r._centers=[new wijmo_1.Point];r._selectedOffset=new wijmo_1.Point;r._selectedIndex=-1;r._angles=[];r._colRowLens=[];r._titles=void 0;r._values=[];r._labels=[];r._pels=[];r._sum=0;r._sums=[];r._bindingSeparator=",";r.applyTemplate(wijmo_1.ControlClsNames.hostElement+" "+exports.FlexChartClsNames.hostElement+" "+exports.FlexPieClsNames.hostElement,null,null);r._currentRenderEngine=new _SvgRenderEngine(r.hostElement);r._legend=new Legend(r);r._tooltip=new ChartTooltip;r._tooltip.content="<b>{name}</b><br/>{value}";r._tooltip.showDelay=0;r._lbl=new PieDataLabel;r._lbl._chart=r;r.addEventListener(r.hostElement,"mousemove",(function(t){var e=r._tooltip;if(e.content&&!r.isTouching){var i=r.hitTest(t,void 0,!0);if(i.distance<=e.threshold){var n=r._getLabelContent(i,r.tooltip.content);r._showToolTip(n,new wijmo_1.Rect(t.clientX,t.clientY,5,5))}else r._hideToolTip()}}));r.addEventListener(r.hostElement,"click",(function(t){var e=!0;if(r.selectionMode==SelectionMode.Point){var i=r.hitTest(t),n=FlexChartBase._SELECTION_THRESHOLD;r.tooltip&&r.tooltip.threshold&&(n=r.tooltip.threshold);if(i.distance<=n){i.pointIndex!=r._selectionIndex&&r.selectedItemPosition!=Position.None&&(e=!1);i.pointIndex!=r._selectionIndex&&r._select(i.pointIndex,!0)}else r._selectedIndex>=0&&r._select(null)}if(e&&r.isTouching){var s=r._tooltip;if(s.content){if((i=r.hitTest(t,void 0,!0)).distance<=s.threshold){var o=r._getLabelContent(i,r.tooltip.content);r._showToolTip(o,new wijmo_1.Rect(t.clientX,t.clientY,5,5))}else r._hideToolTip()}}}));r.addEventListener(r.hostElement,"mouseleave",(function(t){r._hideToolTip()}));r.deferUpdate((function(){return r.initialize(i)}));return r}Object.defineProperty(FlexPie.prototype,"binding",{get:function(){return this._binding},set:function(t){if(t!=this._binding){this._binding=wijmo_1.asString(t,!0);this._bindChart()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"bindingName",{get:function(){return this._bindingName},set:function(t){if(t!=this._bindingName){this._bindingName=wijmo_1.asString(t,!0);this._bindChart()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"startAngle",{get:function(){return this._startAngle},set:function(t){if(t!=this._startAngle){this._startAngle=wijmo_1.asNumber(t,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"offset",{get:function(){return this._offset},set:function(t){if(t!=this._offset){this._offset=wijmo_1.asNumber(t,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"innerRadius",{get:function(){return this._innerRadius},set:function(t){if(t!=this._innerRadius){this._innerRadius=wijmo_1.asNumber(t,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"innerTextStyle",{get:function(){return this._innerTextStyle},set:function(t){if(t!=this._innerText){this._innerTextStyle=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"innerText",{get:function(){return this._innerText},set:function(t){if(t!=this._innerText){this._innerText=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"reversed",{get:function(){return this._reversed},set:function(t){if(t!=this._reversed){this._reversed=wijmo_1.asBoolean(t,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"selectedItemPosition",{get:function(){return this._selectedItemPosition},set:function(t){if((t=wijmo_1.asEnum(t,Position,!0))!=this._selectedItemPosition){this._selectedItemPosition=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"selectedItemOffset",{get:function(){return this._selectedItemOffset},set:function(t){if(t!=this._selectedItemOffset){this._selectedItemOffset=wijmo_1.asNumber(t,!0);this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"isAnimated",{get:function(){return this._isAnimated},set:function(t){t!=this._isAnimated&&(this._isAnimated=t)},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"tooltip",{get:function(){return this._tooltip},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"dataLabel",{get:function(){return this._lbl},set:function(t){if(t!=this._lbl){this._lbl=t;this._lbl&&(this._lbl._chart=this)}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){if(t!=this._selectedIndex){var e=wijmo_1.asNumber(t,!0);this._select(e,!0)}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"titles",{get:function(){return this._titles},set:function(t){if(t!==this._titles){this._titles=t;this.invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(FlexPie.prototype,"chartsPerLine",{get:function(){return this._chartsPerLine},set:function(t){if(t!=this._chartsPerLine){this._chartsPerLine=wijmo_1.asNumber(t,!0,!0);this.invalidate()}},enumerable:!0,configurable:!0});FlexPie.prototype._getLabelsForLegend=function(){return this._labels};FlexPie.prototype.hitTest=function(t,e,i){var r=this._toControl(t,e),n=new HitTestInfo(this,r),s=null;if(FlexChartBase._contains(this._rectHeader,r))n._chartElement=ChartElement.Header;else if(FlexChartBase._contains(this._rectFooter,r))n._chartElement=ChartElement.Footer;else if(FlexChartBase._contains(this._rectLegend,r)){n._chartElement=ChartElement.Legend;null!==(s=this.legend._hitTest(r))&&s>=0&&s<this._areas.length&&n._setData(null,s)}else if(FlexChartBase._contains(this._rectChart,r)){this._hitTestData(n,r,i);n._chartElement=ChartElement.ChartArea}else n._chartElement=ChartElement.None;return n};FlexPie.prototype._hitTestData=function(t,e,i){for(var r,n=this._areas.length,s=NaN,o=0;o<n;o++){var a=e.clone(),h=this._areas[o],l=this._rotationAngles[h.gi];if(0!=l){var _=this._centers[h.gi],u=_.x,c=_.y,p=-u+a.x,f=-c+a.y,d=Math.sqrt(p*p+f*f),g=Math.atan2(f,p)-l*Math.PI/180;a.x=u+d*Math.cos(g);a.y=c+d*Math.sin(g)}if(o==this._selectedIndex){a.x-=this._selectedOffset.x;a.y-=this._selectedOffset.y}var m=this._areas[o];if(m.contains(a)){if(!0===i){s=0;r=m;continue}t._setDataGroup(h.gi,m.tag);t._dist=0;if(o!=this._selectedIndex)break}var x=m.distance(a);if(void 0!==x&&(isNaN(s)||x<s||!0===i&&this._isSmallSegment(x,r,m))){s=x;r=m}}if(0!==t._dist&&null!=r){t._setDataGroup(r.gi,r.tag);t._dist=s}};FlexPie.prototype._isSmallSegment=function(t,e,i){return t<=.5*this.tooltip.threshold&&Math.abs(i.sweep)<=.035&&Math.abs(e.sweep/i.sweep)>=10};FlexPie.prototype._performBind=function(){this._initData();if(this._cv){this._selectionIndex=this._cv.currentPosition;var t=this._cv.items;if(t){for(var e=t.length,i=this._getBindings(),r=0;r<i.length;r++){this._values[r]=[];this._sums[r]=0}for(var n=0;n<e;n++){var s=t[n];for(r=0;r<i.length;r++)this._sums[r]+=Math.abs(this._getBindData(s,this._values[r],0==r?this._labels:null,i[r],this.bindingName))}}}};FlexPie.prototype._getBindings=function(){var t=[],e=this.binding;if(e){var i=this._bindingSeparator;i&&(t=e.split(i))}return t};FlexPie.prototype._initData=function(){this._sum=0;this._sums=[];this._values=[];this._labels=[]};FlexPie.prototype._getBindData=function(t,e,i,r,n){var s,o=0,a=r?new wijmo_1.Binding(r):null;a&&(s=a.getValue(t));o=0;wijmo_1.isNumber(s)?o=wijmo_1.asNumber(s):s&&(o=parseFloat(s.toString()));if(!isNaN(o)&&Number.isFinite(o))e.push(o);else{o=0;e.push(o)}var h=n?new wijmo_1.Binding(n):null;if(i)if(h&&t){var l=h.getValue(t);l&&(l=l.toString());i.push(l)}else i.push(o.toString());return o};FlexPie.prototype._render=function(e,i,r){void 0===i&&(i=!0);void 0===r&&(r=null);this._selectionAnimationID&&clearInterval(this._selectionAnimationID);this.onRendering(new RenderEventArgs(e));t.prototype._render.call(this,e,i,r)};FlexPie.prototype._prepareRender=function(){this._areas=[]};FlexPie.prototype._renderChart=function(t,e,i){var r=this._rectChart.clone(),n=(new wijmo_1.Size(r.width,r.height),e.width),s=e.height,o=this._parseMargin(this.plotMargin),a=this.dataLabel,h=a.content&&a.position==PieLabelPosition.Outside,l=h?(wijmo_1.isNumber(a.offset)?a.offset:0)+24:0;isNaN(o.left)&&(o.left=h?l:FlexPie._MARGIN);isNaN(o.right)&&(o.right=h?l:FlexPie._MARGIN);isNaN(o.top)&&(o.top=h?l:FlexPie._MARGIN);isNaN(o.bottom)&&(o.bottom=h?l:FlexPie._MARGIN);e.top+=o.top;s=e.height-(o.top+o.bottom);e.height=s>0?s:24;e.left+=o.left;n=e.width-(o.left+o.right);e.width=n>0?n:24;var _=this._getBindings(),u=this.titles;void 0===u&&_.length>1&&(u=_);var c=this._layout(t,e,u,_.length);this._angles=[];this._pels=[];this._pieGroups=[];this._rotationAngles=[];for(var p=0;p<_.length;p++){var f=c[p];u&&p<u.length&&u[p]&&FlexChartBase._renderText(t,u[p],new wijmo_1.Point(f.left+.5*f.width,f.top),1,2,FlexPie._CSS_GROUP_TITLE);var d=t.startGroup(exports.FlexPieClsNames.sliceGroup,null,!0);this._pieGroups.push(d);this._renderData(t,f,p,d);t.endGroup();this._rotationAngles.push(0)}this._highlightCurrent();this.innerText&&this._renderInnerText(t);this.dataLabel.content&&this.dataLabel.position!=PieLabelPosition.None&&this._renderLabels(t);this.onRendered(new RenderEventArgs(t))};FlexPie.prototype._layout=function(t,e,i,r){var n=0,s=r,o=1,a=0;if(i)for(var h=0;h<i.length;h++)a=Math.max(a,t.measureString(i[h],FlexPie._CSS_GROUP_TITLE).height);var l=Math.floor(this.chartsPerLine);if(l>0){s=Math.min(r,l);o=Math.ceil(r/s);var _=Math.floor(e.width/s),u=Math.floor(e.height/o)-a;n=Math.min(_,u)}else for(var c=1;c<=r;c++){var p=Math.floor((r+(c-1))/c);_=Math.floor(e.width/c),u=Math.floor(e.height/p);(u-=a)<_&&(_=u);if(_>n){n=_;s=c;o=p}}for(var f=[],d=.5*(e.width-n*s),g=.5*(e.height-(n+a)*o),m=0;m<o;m++)for(var x=0;x<s;x++)f.push(new wijmo_1.Rect(e.left+n*x+8+d,e.top+(n+a)*m+8+g+a,n-16,n-16));return f};FlexPie.prototype._getDesiredLegendSize=function(t,e,i,r){var n=new wijmo_1.Size,s=(new wijmo_1.Size(i,r),this._getLabelsForLegend()),o=s.length,a=0,h=0;this.legend.scrollbar;this._colRowLens=[];for(var l=0;l<o;l++){var _=this._measureLegendItem(t,s[l]);if(e){if(h+_.height>r&&!this.legend.scrollbar){n.height=r;this._colRowLens.push(a);a=0;h=0}a<_.width&&(a=_.width);h+=_.height}else{if(a+_.width>i&&!this.legend.scrollbar){n.width=i;this._colRowLens.push(h);h=0;a=0}h<_.height&&(h=_.height);a+=_.width}}if(e){n.height<h&&(n.height=h);this._colRowLens.push(a);n.width=this._colRowLens.reduce((function(t,e){return t+e}),0)}else{n.width<a&&(n.width=a);this._colRowLens.push(h);n.height=this._colRowLens.reduce((function(t,e){return t+e}),0)}return n};FlexPie.prototype._renderLegend=function(t,e,i,r,n,s){for(var o=new wijmo_1.Rect(e.x,e.y,n,s),a=this._getLabelsForLegend(),h=a.length,l=0,_=e.clone(),u=0;u<h;u++){var c=this._measureLegendItem(t,a[u]);if(r){if(_.y+c.height>o.bottom+1&&!this.legend.scrollbar){_.x+=this._colRowLens[l];l++;_.y=e.y}}else if(_.x+c.width>o.right+1&&!this.legend.scrollbar){_.y+=this._colRowLens[l];l++;_.x=e.x}var p=new wijmo_1.Rect(_.x,_.y,c.width,c.height);this._drawLegendItem(t,p,u,a[u]);i.push(p);r?_.y+=c.height:_.x+=c.width}};FlexPie.prototype._renderData=function(t,e,i,r){var n=this._sums[i],s=this.startAngle+180,o=this.innerRadius,a=this.offset;o>1&&(o=1);if(n>0){var h=s*Math.PI/180,l=e.left+.5*e.width,_=e.top+.5*e.height,u=Math.min(.5*e.width,.5*e.height);this._centers[i]=new wijmo_1.Point(l,_);var c=Math.max(a,this.selectedItemOffset);c>0&&(a*=u/=1+c);this._radius=u;var p=o*u;this._renderPie(t,i,u,p,h,a)}};FlexPie.prototype._renderPie=function(t,e,i,r,n,s){this._renderSlices(t,this._values[e],this._sums[e],e,i,r,n,2*Math.PI,s)};FlexPie.prototype._getCenter=function(){return this._centers[0]};FlexPie.prototype._renderSlices=function(t,e,i,r,n,s,o,a,h){for(var l,_,u,c=e.length,p=0,f=o,d=1==this.reversed,g=this._centers[r],m=0;m<c;m++)e[m]>0&&p++;var x=1===p?360:359.9/360;for(m=0;m<c;m++){_=g.x;u=g.y;l=t.startGroup(exports.FlexPieClsNames.slice);t.fill=this._getColorLight(m);t.stroke=this._getColor(m);var y=Math.abs(e[m]),b=Math.abs(y-i)<1e-10?a:a*y/i;b=Math.min(b,a*x);var v=d?f-.5*b:f+.5*b;if(h>0&&b<a){_+=h*Math.cos(v);u+=h*Math.sin(v)}this._renderSlice(t,_,u,v,r,m,n,s,f,b,a);d?f-=b:f+=b;t.endGroup();this._pels.push(l)}};FlexPie.prototype._renderSlice=function(t,e,i,r,n,s,o,a,h,l,_){var u=this,c=!!this.reversed;this._angles.push(r);if(this.itemFormatter){var p=new HitTestInfo(this,new wijmo_1.Point(e+o*Math.cos(r),i+o*Math.sin(r)),ChartElement.SeriesSymbol);p._setData(null,s);this.itemFormatter(t,p,(function(){u._drawSlice(t,n,s,c,e,i,o,a,h,l)}));t.cssPriority=!0}else this._drawSlice(t,n,s,c,e,i,o,a,h,l)};FlexPie.prototype._getSelectedItemOffset=function(t,e){var i=0,r=0,n=0;t==this._selectedIndex&&this.selectedItemOffset>0&&(n=this.selectedItemOffset);if(n>0){i=Math.cos(e)*n*this._radius;r=Math.sin(e)*n*this._radius}return{x:i,y:r}};FlexPie.prototype._renderInnerText=function(t){for(var e=this.innerText,i=this.innerTextStyle,r=0;r<this._centers.length;r++){var n=this._centers[r],s=void 0;if(s=wijmo_1.isFunction(e)?e(r):wijmo_1.isArray(e)?wijmo_1.asString(e[r]):wijmo_1.asString(e)){s=wijmo_1.format(s,{total:this._sums[r],binding:this._getBindings()[r]});i&&(t.cssPriority=!1);FlexPie._renderText(t,s,n,1,1,FlexChartBase._CSS_TITLE,null,i);t.cssPriority=!0}}};FlexPie.prototype._renderLabels=function(t){var e=this._areas.length,i=this.dataLabel,r=i.position,n=exports.DataLabelClsNames.labels,s=exports.DataLabelClsNames.label,o=exports.DataLabelClsNames.border,a=exports.DataLabelClsNames.line,h=this._rotationAngles,l=i.connectingLine,_=i.offset?i.offset:0;t.stroke="null";t.fill="transparent";t.strokeWidth=1;t.startGroup(n);for(var u=0;u<e;u++){var c=this._areas[u];if(c){var p=c.radius,f=c.langle+h[c.gi],d=1,g=1;if(r==PieLabelPosition.Center||r===PieLabelPosition.Radial||r===PieLabelPosition.Circular)p*=.5*(1+(c.innerRadius||0)/c.radius);else{if((f=_Math.clampAngle(f))<=-170||f>=170){d=2;g=1}else if(f>=-100&&f<=-80){d=1;g=2}else if(f>=-10&&f<=10){d=0;g=1}else if(f>=80&&f<=100){d=1;g=0}else if(-180<f&&f<-90){d=2;g=2}else if(-90<=f&&f<0){d=0;g=2}else if(0<f&&f<90){d=0;g=0}else if(90<f&&f<180){d=2;g=0}if(r==PieLabelPosition.Inside){d=2-d;g=2-g}}f*=Math.PI/180;var m=c.gi?u-c.gi*this._values[0].length:u,x=this._getSelectedItemOffset(m,f),y=x.x,b=x.y,v=p;r==PieLabelPosition.Outside?v+=_:r==PieLabelPosition.Inside&&(v-=_);var w=c.center.x,S=c.center.y,C=this._centers[c.gi],P=w-C.x,A=S-C.y;if(0!=this._rotationAngles[c.gi]){var M=Math.sqrt(P*P+A*A),T=Math.atan2(A,P)+this._rotationAngles[c.gi]*Math.PI/180;w=C.x+M*Math.cos(T);S=C.y+M*Math.sin(T)}var L=new wijmo_1.Point(w+y+v*Math.cos(f),S+b+v*Math.sin(f));if(i.border&&r!=PieLabelPosition.Center){0==d?L.x+=2:2==d&&(L.x-=2);0==g?L.y+=2:2==g&&(L.y-=2)}var j=new HitTestInfo(this,L);j._setDataGroup(c.gi,c.tag);var E=this._getLabelContent(j,i.content),F=new DataLabelRenderEventArgs(t,j,L,E);if(i.onRendering)if(i.onRendering(F)){E=F.text;L=F.point}else E=null;if(E){var k=void 0,N=180*Math.atan2(S-L.y,w-L.x)/Math.PI;N=(N+360)%360;if(r===PieLabelPosition.Radial||r===PieLabelPosition.Circular){if(r===PieLabelPosition.Radial)N>90&&N<270&&(N+=180);else{N>180&&N<360&&(N+=180);N-=90}(k=FlexChartBase._renderRotatedText(t,E,L,d,g,L,N,s).getBBox()).left=k.x;k.top=k.y}else k=FlexChartBase._renderText(t,E,L,d,g,s);i.border&&t.drawRect(k.left-2,k.top-2,k.width+4,k.height+4,o);if(l){var I=new wijmo_1.Point(w+y+p*Math.cos(f),S+b+p*Math.sin(f));t.drawLine(L.x,L.y,I.x,I.y,a)}}t.cssPriority=!0}}t.endGroup()};FlexPie.prototype._drawSlice=function(t,e,i,r,n,s,o,a,h,l){var _;if(r)if(a>0){0!=l&&t.drawDonutSegment(n,s,o,a,h-l,l);(_=new _DonutSegment(new wijmo_1.Point(n,s),o,a,h-l,l,this.startAngle)).tag=i;this._areas.push(_)}else{0!=l&&t.drawPieSegment(n,s,o,h-l,l);(_=new _PieSegment(new wijmo_1.Point(n,s),o,h-l,l,this.startAngle)).tag=i;this._areas.push(_)}else{if(a>0){0!=l&&t.drawDonutSegment(n,s,o,a,h,l);(_=new _DonutSegment(new wijmo_1.Point(n,s),o,a,h,l,this.startAngle)).tag=i;this._areas.push(_)}else{0!=l&&t.drawPieSegment(n,s,o,h,l);(_=new _PieSegment(new wijmo_1.Point(n,s),o,h,l,this.startAngle)).tag=i;this._areas.push(_)}h+=l}_&&(_.gi=e)};FlexPie.prototype._measureLegendItem=function(t,e){var i=new wijmo_1.Size;i.width=Series._LEGEND_ITEM_WIDTH;i.height=Series._LEGEND_ITEM_HEIGHT;if(e){var r=t.measureString(e,FlexChartBase._CSS_LABEL,FlexChartBase._CSS_LEGEND);i.width+=r.width;i.height<r.height&&(i.height=r.height)}i.width+=3*Series._LEGEND_ITEM_MARGIN;i.height+=2*Series._LEGEND_ITEM_MARGIN;return i};FlexPie.prototype._drawLegendItem=function(t,e,i,r){t.strokeWidth=1;var n=Series._LEGEND_ITEM_MARGIN,s=null,o=null;null===s&&(s=this._getColorLight(i));null===o&&(o=this._getColor(i));t.fill=s;t.stroke=o;var a=e.top+.5*e.height,h=Series._LEGEND_ITEM_WIDTH,l=Series._LEGEND_ITEM_HEIGHT;t.drawRect(e.left+n,a-.5*l,h,l,null);null!=r&&FlexChartBase._renderText(t,r.toString(),new wijmo_1.Point(e.left+l+2*n,a),0,1,FlexChartBase._CSS_LABEL)};FlexPie.prototype._getLabelContent=function(t,e){return wijmo_1.isString(e)?this._keywords.replace(e,t):wijmo_1.isFunction(e)?e(t):null};FlexPie.prototype._select=function(t,e){void 0===e&&(e=!1);this._highlight(!1,this._selectionIndex);this._selectionIndex=t;if(this.selectionMode==SelectionMode.Point){var i=this._cv;if(i){this._notifyCurrentChanged=!1;i.moveCurrentToPosition(t);this._notifyCurrentChanged=!0}}if(null==t){this._selectedIndex=-1;this.invalidate()}else if(this.isAnimated&&this.selectedItemPosition!=Position.None||!(this.selectedItemOffset>0||this.selectedItemPosition!=Position.None))this._highlight(!0,this._selectionIndex,e);else{this._selectedIndex=t;this.invalidate()}this.onSelectionChanged()};FlexPie.prototype._highlightCurrent=function(){if(this.selectionMode!=SelectionMode.None){var t=-1,e=this._cv;e&&(t=e.currentPosition);this._highlight(!0,t)}};FlexPie.prototype._highlight=function(t,e,i){void 0===i&&(i=!1);if(this.selectionMode==SelectionMode.Point&&null!=e&&e>=0)if(t){for(var r=[],n=0;n<this._pieGroups.length;n++){if(c=this._pels[e+n*this._values[0].length]){c.parentNode.appendChild(c);var s=this._find(c,["ellipse"]);this._highlightItems(this._find(c,["path","ellipse"]),FlexChartBase._CSS_SELECTION,t)}var o=this._angles[e+n*this._values[0].length];if(this.selectedItemPosition!=Position.None&&0!=o){var a=0;this.selectedItemPosition==Position.Left?a=180:this.selectedItemPosition==Position.Top?a=-90:this.selectedItemPosition==Position.Bottom&&(a=90);var h=a*Math.PI/180-o;h*=180/Math.PI;if(i&&this.isAnimated)r.push(h);else{this._rotationAngles[n]=h;this._pieGroups[n].transform.baseVal.getItem(0).setRotate(h,this._centers[n].x,this._centers[n].y)}}var l=this.selectedItemOffset;if(l>0&&s&&0==s.length){this._selectedOffset.x=Math.cos(o)*l*this._radius;var _=this._selectedOffset.x;this._selectedOffset.y=Math.sin(o)*l*this._radius;var u=this._selectedOffset.y;c&&c.setAttribute("transform","translate("+_.toFixed()+","+u.toFixed()+")")}this._selectedIndex=e}r.length>0&&this._animateSelectionAngle(r,.5)}else{for(n=0;n<this._pieGroups.length;n++){var c;if(c=this._pels[e+n*this._values[0].length]){c.parentNode.insertBefore(c,c.parentNode.childNodes.item(e));c.removeAttribute("transform");this._highlightItems(this._find(c,["path","ellipse"]),FlexChartBase._CSS_SELECTION,t)}}this._selectedIndex==e&&(this._selectedIndex=-1)}};FlexPie.prototype._animateSelectionAngle=function(t,e){var i=this,r=this._pieGroups;this._selectionAnimationID&&clearInterval(this._selectionAnimationID);this._selectionAnimationID=wijmo_1.animate((function(e){if(r==i._pieGroups){for(var n=0;n<r.length;n++){var s=_Math.clampAngle(i._rotationAngles[n]),o=_Math.clampAngle(t[n])-s,a=s;i._rotationAngles[n]=s=a+o*e;r[n].transform.baseVal.getItem(0).setRotate(s,i._centers[n].x,i._centers[n].y)}1==e&&clearInterval(i._selectionAnimationID);e>.99&&(i.selectedItemOffset>0||i.selectedItemPosition!=Position.None)&&i.invalidate()}}),1e3*e)};FlexPie.prototype._getHitTestItem=function(t){var e=null,i=null;(e=null!=this._cv?this._cv.items:this.itemsSource)&&t<e.length&&(i=e[t]);return i};FlexPie.prototype._getHitTestValue=function(t,e){null==e&&(e=0);return this._values[e][t]};FlexPie.prototype._getHitTestLabel=function(t){return this._labels[t]};FlexPie._MARGIN=4;FlexPie._CSS_GROUP_TITLE=exports.FlexChartClsNames.label;return FlexPie}(FlexChartBase);exports.FlexPie=FlexPie;var _Math=function(){function _Math(){}_Math.clampAngle=function(t,e){void 0===e&&(e=0);var i=(t+180)%360-180;i<-180+(e<0?e+360:e)&&(i+=360);return i};return _Math}(),_PieSegment=function(){function _PieSegment(t,e,i,r,n){void 0===n&&(n=0);this._isFull=!1;this._center=t;this._radius=e;this._originAngle=i;this._originSweep=r;r>=2*Math.PI&&(this._isFull=!0);this._sweep=.5*r*180/Math.PI;this._angle=_Math.clampAngle(180*i/Math.PI+this._sweep);this._radius2=e*e;this._startAngle=n}_PieSegment.prototype.contains=function(t){var e=t.x-this._center.x,i=t.y-this._center.y;if(e*e+i*i<=this._radius2){var r=180*Math.atan2(i,e)/Math.PI,n=_Math.clampAngle(this._angle,this._startAngle)-_Math.clampAngle(r,this._startAngle);if(this._isFull||Math.abs(n)<=this._sweep)return!0}return!1};_PieSegment.prototype.distance=function(t){if(this.contains(t))return 0;var e=t.x-this._center.x,i=t.y-this._center.y,r=e*e+i*i,n=180*Math.atan2(i,e)/Math.PI,s=_Math.clampAngle(this._angle,this._startAngle)-_Math.clampAngle(n,this._startAngle);if(this._isFull||Math.abs(s)<=this._sweep)return Math.sqrt(r)-this._radius;var o=this.center.clone();o.x+=this.radius*Math.cos(this._originAngle);o.y+=this.radius*Math.sin(this._originAngle);var a=this.center.clone();a.x+=this.radius*Math.cos(this._originAngle+this._originSweep);a.y+=this.radius*Math.sin(this._originAngle+this._originSweep);var h=FlexChartCore._dist(t,this.center,o),l=FlexChartCore._dist(t,this.center,a);return Math.min(h,l)};Object.defineProperty(_PieSegment.prototype,"center",{get:function(){return this._center},enumerable:!0,configurable:!0});Object.defineProperty(_PieSegment.prototype,"radius",{get:function(){return this._radius},enumerable:!0,configurable:!0});Object.defineProperty(_PieSegment.prototype,"langle",{get:function(){return this._angle},enumerable:!0,configurable:!0});Object.defineProperty(_PieSegment.prototype,"angle",{get:function(){return this._originAngle},enumerable:!0,configurable:!0});Object.defineProperty(_PieSegment.prototype,"sweep",{get:function(){return this._originSweep},enumerable:!0,configurable:!0});return _PieSegment}();exports._PieSegment=_PieSegment;var AxisType,OverlappingLabels,TickMark,AxisGroupsDisplay,_DonutSegment=function(){function _DonutSegment(t,e,i,r,n,s){void 0===s&&(s=0);this._isFull=!1;this._center=t;this._radius=e;this._iradius=i;this._originAngle=r;this._originSweep=n;n>=2*Math.PI&&(this._isFull=!0);this._sweep=.5*n*180/Math.PI;this._angle=_Math.clampAngle(180*r/Math.PI+this._sweep);this._radius2=e*e;this._iradius2=i*i;this._startAngle=s}_DonutSegment.prototype.contains=function(t){var e=t.x-this._center.x,i=t.y-this._center.y,r=e*e+i*i;if(r>=this._iradius2&&r<=this._radius2){var n=180*Math.atan2(i,e)/Math.PI,s=_Math.clampAngle(this._angle,this._startAngle)-_Math.clampAngle(n,this._startAngle);if(this._isFull||Math.abs(s)<=this._sweep)return!0}return!1};_DonutSegment.prototype.distance=function(t){if(this.contains(t))return 0;var e=this.center.clone();e.x+=this.radius*Math.cos(this._originAngle);e.y+=this.radius*Math.sin(this._originAngle);var i=this.center.clone();i.x+=this._iradius*Math.cos(this._originAngle);i.y+=this._iradius*Math.sin(this._originAngle);var r=this.center.clone();r.x+=this.radius*Math.cos(this._originAngle+this._originSweep);r.y+=this.radius*Math.sin(this._originAngle+this._originSweep);var n=this.center.clone();n.x+=this._iradius*Math.cos(this._originAngle+this._originSweep);n.y+=this._iradius*Math.sin(this._originAngle+this._originSweep);var s=FlexChartCore._dist(t,e,i),o=FlexChartCore._dist(t,r,n);return Math.min(s,o)};Object.defineProperty(_DonutSegment.prototype,"center",{get:function(){return this._center},enumerable:!0,configurable:!0});Object.defineProperty(_DonutSegment.prototype,"radius",{get:function(){return this._radius},enumerable:!0,configurable:!0});Object.defineProperty(_DonutSegment.prototype,"langle",{get:function(){return this._angle},enumerable:!0,configurable:!0});Object.defineProperty(_DonutSegment.prototype,"angle",{get:function(){return this._originAngle},enumerable:!0,configurable:!0});Object.defineProperty(_DonutSegment.prototype,"sweep",{get:function(){return this._originSweep},enumerable:!0,configurable:!0});Object.defineProperty(_DonutSegment.prototype,"innerRadius",{get:function(){return this._iradius},enumerable:!0,configurable:!0});return _DonutSegment}();exports._DonutSegment=_DonutSegment;!function(t){t[t.X=0]="X";t[t.Y=1]="Y"}(AxisType=exports.AxisType||(exports.AxisType={}));!function(t){t[t.Auto=0]="Auto";t[t.Show=1]="Show"}(OverlappingLabels=exports.OverlappingLabels||(exports.OverlappingLabels={}));!function(t){t[t.None=0]="None";t[t.Outside=1]="Outside";t[t.Inside=2]="Inside";t[t.Cross=3]="Cross"}(TickMark=exports.TickMark||(exports.TickMark={}));!function(t){t[t.None=0]="None";t[t.Show=1]="Show";t[t.ShowGrid=2]="ShowGrid"}(AxisGroupsDisplay=exports.AxisGroupsDisplay||(exports.AxisGroupsDisplay={}));var Axis=function(){function Axis(t){this._GRIDLINE_WIDTH=1;this._LINE_WIDTH=1;this._TICK_WIDTH=1;this._TICK_HEIGHT=4;this._TICK_OVERLAP=1;this._TICK_LABEL_DISTANCE=4;this._minorGrid=!1;this._isMinimumAuto=!0;this._isMaximumAuto=!0;this._labels=!0;this._isTimeAxis=!1;this._labelPadding=5;this._actualLabels=[];this._labelMin=!1;this._labelMax=!1;this.rangeChanged=new wijmo_1.Event;this._customConvert=null;this._customConvertBack=null;this.__uniqueId=Axis._id++;t==Position.BottomLeft||t==Position.BottomRight||t==Position.TopLeft||t==Position.TopRight||t==Position.LeftTop||t==Position.LeftBottom||t==Position.RightTop||t==Position.RightBottom?this._position=void 0:this._position=t;this._position==Position.Bottom||this._position==Position.Top?this._axisType=AxisType.X:this._position!=Position.Left&&this._position!=Position.Right||(this._axisType=AxisType.Y);this._minorTickMarks=TickMark.None;this._overlap=OverlappingLabels.Auto}Object.defineProperty(Axis.prototype,"hostElement",{get:function(){return this._hostElement},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"actualMin",{get:function(){return this._isTimeAxis?new Date(this._actualMin):this._actualMin},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"actualMax",{get:function(){return this._isTimeAxis?new Date(this._actualMax):this._actualMax},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"min",{get:function(){return this._min},set:function(t){if(t!=this._min){this._isMinimumAuto=!1;wijmo_1.isDate(t)?this._min=wijmo_1.asDate(t,!0):this._min=wijmo_1.asNumber(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"max",{get:function(){return this._max},set:function(t){if(t!=this._max){this._isMaximumAuto=!1;wijmo_1.isDate(t)?this._max=wijmo_1.asDate(t,!0):this._max=wijmo_1.asNumber(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"reversed",{get:function(){return this._reversed},set:function(t){if(this._reversed!=t){this._reversed=wijmo_1.asBoolean(t);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"position",{get:function(){return this._position},set:function(t){if((t=wijmo_1.asEnum(t,Position,!1))!=this._position){t==Position.BottomLeft||t==Position.BottomRight||t==Position.TopLeft||t==Position.TopRight||t==Position.LeftTop||t==Position.LeftBottom||t==Position.RightTop||t==Position.RightBottom?this._position=this._axisType==AxisType.X?Position.Bottom:this._axisType==AxisType.Y?Position.Left:void 0:this._position=t;this._position==Position.Bottom||this._position==Position.Top?null==this._axisType?this._axisType=AxisType.X:this._axisType==AxisType.Y&&(this._position=Position.Left):this._position!=Position.Left&&this._position!=Position.Right||(null==this._axisType?this._axisType=AxisType.Y:this._axisType==AxisType.X&&(this._position=Position.Bottom));this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"majorUnit",{get:function(){return this._majorUnit},set:function(t){if(t!=this._majorUnit){this._majorUnit=wijmo_1.asNumber(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"minorUnit",{get:function(){return this._minorUnit},set:function(t){if(t!=this._minorUnit){this._minorUnit=wijmo_1.asNumber(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"name",{get:function(){return this._name},set:function(t){t!=this._name&&(this._name=wijmo_1.asString(t,!0))},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"title",{get:function(){return this._title},set:function(t){if(t!=this._title){this._title=wijmo_1.asString(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"format",{get:function(){return this._format},set:function(t){if(t!=this._format){this._format=wijmo_1.asString(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"majorGrid",{get:function(){return this._majorGrid},set:function(t){if(t!=this._majorGrid){this._majorGrid=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"majorTickMarks",{get:function(){return this._majorTickMarks},set:function(t){if((t=wijmo_1.asEnum(t,TickMark,!0))!=this._majorTickMarks){this._majorTickMarks=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"minorGrid",{get:function(){return this._minorGrid},set:function(t){if(t!=this._minorGrid){this._minorGrid=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"minorTickMarks",{get:function(){return this._minorTickMarks},set:function(t){if((t=wijmo_1.asEnum(t,TickMark,!0))!=this._minorTickMarks){this._minorTickMarks=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"axisLine",{get:function(){return void 0===this._axisLine?this.axisType==AxisType.X:this._axisLine},set:function(t){if(t!=this._axisLine){this._axisLine=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"labels",{get:function(){return this._labels},set:function(t){if(t!=this._labels){this._labels=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"labelAlign",{get:function(){return this._labelAlign},set:function(t){if(t!=this._labelAlign){this._labelAlign=wijmo_1.asString(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"labelAngle",{get:function(){return this._labelAngle},set:function(t){if(t!=this._labelAngle){this._labelAngle=wijmo_1.asNumber(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"labelMin",{get:function(){return this._labelMin},set:function(t){if(t!=this._labelMin){this._labelMin=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"labelMax",{get:function(){return this._labelMax},set:function(t){if(t!=this._labelMax){this._labelMax=wijmo_1.asBoolean(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"origin",{get:function(){return this._origin},set:function(t){if(t!=this._origin){this._origin=wijmo_1.asNumber(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"overlappingLabels",{get:function(){return this._overlap},set:function(t){if((t=wijmo_1.asEnum(t,OverlappingLabels,!0))!=this._overlap){this._overlap=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"itemsSource",{get:function(){return this._items},set:function(t){if(this._items!=t){if(this._cv){this._cv.collectionChanged.removeHandler(this._cvCollectionChanged,this);this._cv=null}this._items=t;this._cv=wijmo_1.asCollectionView(t);null!=this._cv&&this._cv.collectionChanged.addHandler(this._cvCollectionChanged,this)}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"binding",{get:function(){return this._binding},set:function(t){if(t!=this._binding){this._binding=wijmo_1.asString(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"itemFormatter",{get:function(){return this._ifmt},set:function(t){if(this._ifmt!=t){this._ifmt=wijmo_1.asFunction(t,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"logBase",{get:function(){return this._logBase},set:function(t){if(t!=this._logBase){this._logBase=wijmo_1.asNumber(t,!0,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"groupsOptions",{get:function(){return this._groupsOptions},set:function(t){if(t!=this._groupsOptions){this._groupsOptions=t;this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"axisLabels",{get:function(){return this._actualLabels},enumerable:!0,configurable:!0});Axis.prototype._getLogBase=function(){return this._chart&&this._chart._stacking===Stacking.Stacked100pc?0:this.logBase};Axis.prototype._isLogAxis=function(){var t=this._getLogBase();return null!=t&&t>0};Object.defineProperty(Axis.prototype,"plotArea",{get:function(){return this._parea},set:function(t){if(t!=this._parea){this._parea=wijmo_1.asType(t,PlotArea,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"labelPadding",{get:function(){return this._labelPadding},set:function(t){if(t!=this._labelPadding){this._labelPadding=wijmo_1.asNumber(t,!0,!0);this._invalidate()}},enumerable:!0,configurable:!0});Object.defineProperty(Axis.prototype,"_groupClass",{get:function(){return this.axisType===AxisType.X?FlexChartCore._CSS_AXIS_X:FlexChartCore._CSS_AXIS_Y},enumerable:!0,configurable:!0});Axis.prototype.onRangeChanged=function(t){this.rangeChanged.raise(this,t)};Axis.prototype._getPosition=function(){if(this.axisType==AxisType.X){if(this.position==Position.Auto)return Position.Bottom}else if(this.axisType==AxisType.Y&&this.position==Position.Auto)return Position.Left;return this.position};Axis.prototype._isOverlapped=function(t,e,i,r){var n=this._lbls;if(null!=n&&n.length>1)for(var s=n.length,o=this._values&&this._values.length==s?this._values:null,a=0,h=0,l=0;l<s;l++){var _=o?o[l]:l;if(_>=this._actualMin&&_<=this._actualMax){var u=e*(_-this._actualMin)/(this._actualMax-this._actualMin),c=t.measureString(n[l],i,this._groupClass);if(this.axisType==AxisType.X){if(l>0&&Math.abs(u-a)<.5*(c.width+h))return!0;a=u;h=c.width}else this.axisType,AxisType.Y}}return!1};Axis.prototype._getHeight=function(t,e){this._actualAngle=null;var i=FlexChartCore._CSS_LABEL,r=FlexChartCore._CSS_TITLE,n=.1*this._getActualRange(),s=this._lbls,o=this.labelAngle;if(this.labels&&this._chart._getChartType()!==ChartType.Funnel){n=this._updateAutoFormat(n);if(null!=s&&s.length>0){var a=s.length,h=this._values&&this._values.length==a?this._values:null;this._annoSize=new wijmo_1.Size;for(var l=0;l<a;l++){if((p=h?h[l]:l)>=this._actualMin&&p<=this._actualMax){var _=s[l],u=i;if(this.itemFormatter){_=(f=this._getFormattedItem(t,p,_,new wijmo_1.Point,i,!0)).text;u=f.cls}var c=t.measureString(_,u,this._groupClass);this.axisType,AxisType.X,c.width>this._annoSize.width&&(this._annoSize.width=c.width);c.height>this._annoSize.height&&(this._annoSize.height=c.height)}}null==o&&this.axisType==AxisType.X&&(this._isOverlapped(t,Math.max(10,e-this._annoSize.width),i,this.axisType)?o=this._actualAngle=-45:this._actualAngle=0)}else if(wijmo_1.isNumber(this.majorUnit)&&this._axisType===AxisType.Y&&this.itemFormatter){h=[];this._annoSize=new wijmo_1.Size;this._getAutoLbsAndVals([],h);for(l=0;l<h.length;l++){var p=h[l];_=this._formatValue(p),u=i;_=(f=this._getFormattedItem(t,p,_,new wijmo_1.Point,i,!0)).text;u=i;(c=t.measureString(_,u,this._groupClass)).width>this._annoSize.width&&(this._annoSize.width=c.width);c.height>this._annoSize.height&&(this._annoSize.height=c.height)}}else{p=this._actualMin-n,_=this._formatValue(p),u=i;if(this.itemFormatter){_=(f=this._getFormattedItem(t,p,_,new wijmo_1.Point,i,!0)).text;u=i}c=t.measureString(_,u,this._groupClass);this._annoSize=c;p=this._actualMax+n;_=this._formatValue(p);u=i;if(this.itemFormatter){var f;_=(f=this._getFormattedItem(t,p,_,new wijmo_1.Point,i,!0)).text;u=i}(c=t.measureString(_,u,this._groupClass)).width>this._annoSize.width&&(this._annoSize.width=c.width);c.height>this._annoSize.height&&(this._annoSize.height=c.height)}this._annoSizeBase=new wijmo_1.Size(this._annoSize.width,this._annoSize.height);if(o){o>90?o=90:o<-90&&(o=-90);var d=o*Math.PI/180,g=this._annoSize.width,m=this._annoSize.height;this._annoSize.width=g*Math.abs(Math.cos(d))+m*Math.abs(Math.sin(d));this._annoSize.height=g*Math.abs(Math.sin(d))+m*Math.abs(Math.cos(d));this._actualAngle=o}}else{this._annoSize=new wijmo_1.Size(8,8);this._annoSizeBase=new wijmo_1.Size(this._annoSize.width,this._annoSize.height)}var x=0;if(this.labels){x=2*(this._labelPadding||5);this._axisType==AxisType.X?x+=this._annoSize.height:x+=this._annoSize.width+this._TICK_LABEL_DISTANCE+2}var y=this._TICK_HEIGHT,b=this._TICK_OVERLAP,v=this.majorTickMarks;v==TickMark.Outside?b=1:v==TickMark.Inside?b=-1:v==TickMark.Cross&&(b=0);null==v&&(v=TickMark.Outside);v!=TickMark.None&&(x+=.5*(1+b)*y);if(this._title){_=this._title;this._szTitle=t.measureString(_,r,this._groupClass);x+=this._szTitle.height}else this._szTitle=void 0;if(this._lbls&&this.groupsOptions&&this.groupsOptions.display!==AxisGroupsDisplay.None){this._groupsPanel||(this._groupsPanel=new _AxisGroups(this));this._groupsPanel.createGroups();x+=this._groupsPanel.getHeight(t)}t.fontSize=null;return x};Axis.prototype._updateAutoFormat=function(t){if(this._isTimeAxis){var e=this.format,i=.001*this._getActualRange()/10,r=new _timeSpan(i*_timeSpan.TicksPerSecond),n=wijmo_1.isNumber(this._majorUnit)?_timeSpan.fromDays(this._majorUnit):_timeHelper.NiceTimeSpan(r,e);e||(this._tfmt=_timeHelper.GetTimeDefaultFormat(1e3*n.TotalSeconds,0));t=n.TotalSeconds}return t};Axis.prototype._getActualRange=function(){return this._actualMax-this._actualMin};Axis.prototype._updateActualLimitsByChartType=function(t,e,i){if(t&&t.length>0&&!this._isTimeAxis){var r=this._chart._getChartType();if(r!=ChartType.Column&&r!=ChartType.Bar){e-=.5;i+=.5}}return{min:e,max:i}};Axis.prototype._updateActualLimits=function(t,e,i,r,n){void 0===r&&(r=null);void 0===n&&(n=null);var s=this._actualMin,o=this._actualMax;this._isTimeAxis=t==wijmo_1.DataType.Date;var a=this._updateActualLimitsByChartType(r,e,i);e=a.min;i=a.max;var h=this._min,l=this._max;wijmo_1.isDate(h)&&(h=h.valueOf());wijmo_1.isDate(l)&&(l=l.valueOf());var _=this._getSeries(),u=this._chart&&(null!=_&&void 0!==_._getChartType()||this._chart._stacking!==Stacking.Stacked100pc);u||(u=this._chart._isRotated()?this.axisType==AxisType.Y:this.axisType==AxisType.X);this._actualMin=null!=h&&u?h:e;var c=this._actualMin;this._actualMax=null!=l&&u?l:i;if(c==this._actualMax)if(void 0!==h&&void 0===l)this._actualMax+=1;else if(void 0===h&&void 0!==l)this._actualMin-=1;else if(0===c)this._actualMax=1;else{var p=Math.abs(c);if(p<1){this._actualMin-=p;this._actualMax+=p}else{this._actualMin-=1;this._actualMax+=1}}if(this._getLogBase()>0){var f=this.logBase,d=Math.log(f);if(!this._max){var g=Math.ceil(Math.log(this._actualMax)/d);this._actualMax=Math.pow(f,g)}if(!this._min){var m=Math.floor(Math.log(this._actualMin)/d);this._actualMin=Math.pow(f,m)}(this._actualMin<=0||!wijmo_1.isNumber(this._actualMin))&&(this._actualMin=1);this._actualMax<this._actualMin?this._actualMax=this._actualMin+1:this._actualMax===this._actualMin&&(this._actualMin=.1*this._actualMax)}(s!=this._actualMin&&(wijmo_1.isNumber(s)||wijmo_1.isNumber(this._actualMin))||o!=this._actualMax&&(wijmo_1.isNumber(o)||wijmo_1.isNumber(this._actualMax)))&&this.onRangeChanged();if(this._items){this._values=[];this._lbls=[];var x=this._items.length,y="value",b="text";if(this.binding){var v=this.binding.split(",");if(2==v.length){y=v[0];b=v[1]}}for(var w=0;w<x;w++){var S=this._items[w],C=S[y];if(wijmo_1.isNumber(C)){this._values.push(C);this._lbls.push(S[b])}else if(wijmo_1.isDate(C)){this._values.push(C.getTime());this._lbls.push(S[b])}}}else{this._lbls=r;this._values=n}};Axis.prototype._layout=function(t,e){var i=this.axisType==AxisType.Y;this._plotrect=e;this._axrect=i?new wijmo_1.Rect(t.left,t.top,t.height,t.width):t;this._groupsPanel&&this._groupsPanel.layout()};Axis.prototype._hasVisibileSeries=function(){for(var t,e=this._chart.series,i=0,r=e.length;i<r;i++)if((t=e[i].visibility)==SeriesVisibility.Plot||t==SeriesVisibility.Visible)return!0;return!1};Axis.prototype._getSeries=function(){if(this._chart)for(var t=this._chart.series,e=0,i=t.length;e<i;e++)if(t[e].axisY==this||t[e].axisX==this)return t[e];return null};Axis.prototype._render=function(t){if(this.position!=Position.None&&this._hasVisibileSeries()){this.axisLabels.length=0;this._vals={};var e=0;this.labelAngle&&((e=this.labelAngle)>90?e=90:e<-90&&(e=-90));null==this.labelAngle&&null!=this._actualAngle&&(e=this._actualAngle);var i=FlexChartCore._FG,r=[],n=!1,s=this._getActualRange();if(wijmo_1.isNumber(s)){var o=[];this._rects=[];this._vals.major=r;this._vals.hasLbls=[];if(this._lbls&&this._lbls.length>0){o=this._lbls;if(0==this._values.length){n=!0;for(var a=0;a<o.length;a++)r.push(a)}else r=this._values}else this._getAutoLbsAndVals(o,r);var h=Math.min(r.length,o.length);t.textFill=i;var l=this._TICK_HEIGHT,_=this._TICK_OVERLAP,u=this.majorTickMarks;null==u&&(u=TickMark.Outside);u==TickMark.Outside?_=1:u==TickMark.Inside?_=-1:u==TickMark.Cross&&(_=0);var c=.5*(_-1)*l,p=.5*(1+_)*l;for(a=0;a<h;a++){var f=!0,d=r[a],g=o[a],m=this.labels;m&&(n||this.itemsSource)&&this.majorUnit&&a%this.majorUnit!=0&&(m=!1);if(d>=this._actualMin&&d<=this._actualMax){var x=t.textFill;f=this._renderLabelsAndTicks(t,a,d,g,e,u,m,c,p);t.textFill=x}this._vals.hasLbls.push(f);f&&this.axisLabels.push(g)}}(this.minorGrid||this.minorTickMarks!=TickMark.None)&&this._renderMinor(t,r,n);t.stroke=i;t.fontSize=null;this._renderLineAndTitle(t);this._lbls&&this.groupsOptions&&this.groupsOptions.display!==AxisGroupsDisplay.None&&this._groupsPanel&&this._groupsPanel.render(t);t.stroke=null;t.fontSize=null;t.textFill=null;t.strokeWidth=null}};Axis.prototype._getAutoLbsAndVals=function(t,e){var i=this._actualMax-this._actualMin,r=this._calcMajorUnit();0==r&&(r=.1*this._niceTickNumber(i));var n=Math.floor(this._actualMin/r)*r;n<this._actualMin&&(n+=r);var s=Math.min(Axis.MAX_MAJOR,Math.floor(i/r)+1);if(this._isTimeAxis){this._createTimeLabels(n,s,e,t);this._addMinMaxLabels(e,t)}else if(this._getLogBase()){this._createLogarithmicLabels(this._actualMin,this._actualMax,this.majorUnit,e,t,!0);this._addMinMaxLabels(e,t)}else{this._createLabels(n,s,r,e,t);this._addMinMaxLabels(e,t)}};Axis.prototype._renderLineAndTitle=function(t){var e=this._getPosition(),i=this.axisType==AxisType.Y,r=e!=Position.Top&&e!=Position.Right,n=FlexChartCore._CSS_TITLE,s=FlexChartCore._CSS_LINE;if(i)if(r){if(this._title){var o=new wijmo_1.Point(this._axrect.left+.5*this._szTitle.height,this._axrect.top+.5*this._axrect.height);FlexChartCore._renderRotatedText(t,this._title,o,1,1,o,-90,n,this._groupClass)}this.axisLine&&t.drawLine(this._axrect.right,this._axrect.top,this._axrect.right,this._axrect.bottom,s)}else{if(this._title){o=new wijmo_1.Point(this._axrect.right-.5*this._szTitle.height,this._axrect.top+.5*this._axrect.height);FlexChartCore._renderRotatedText(t,this._title,o,1,1,o,90,n,this._groupClass)}this.axisLine&&t.drawLine(this._axrect.left,this._axrect.top,this._axrect.left,this._axrect.bottom,s)}else if(r){this.axisLine&&t.drawLine(this._axrect.left,this._axrect.top,this._axrect.right,this._axrect.top,s);this._title&&FlexChartCore._renderText(t,this._title,new wijmo_1.Point(this._axrect.left+.5*this._axrect.width,this._axrect.bottom),1,2,n)}else{this.axisLine&&t.drawLine(this._axrect.left,this._axrect.bottom,this._axrect.right,this._axrect.bottom,s);this._title&&FlexChartCore._renderText(t,this._title,new wijmo_1.Point(this._axrect.left+.5*this._axrect.width,this._axrect.top),1,0,n)}};Axis.prototype._renderMinor=function(t,e,i){var r=this._getPosition(),n=this.axisType==AxisType.Y,s=r!=Position.Top&&r!=Position.Right;this._getLogBase()?this._createLogarithmicMinors(t,e,n,s,i):this._createMinors(t,e,n,s,i)};Axis.prototype._renderRotatedText=function(t,e,i,r,n,s,o,a,h,l,_){if(this.itemFormatter){var u=this._getFormattedItem(t,e,i,r,h);if(u){i=u.text;h=u.cls}else i=null}FlexChartCore._renderRotatedText(t,i,r,n,s,o,a,h,l,_)};Axis.prototype._getFormattedItem=function(t,e,i,r,n,s){void 0===s&&(s=!1);if(this.itemFormatter){var o=r.clone();this._plotrect&&(this.axisType==AxisType.X?this.position==Position.Top?o.y=this._plotrect.top:o.y=this._plotrect.bottom:this.position==Position.Right?o.x=this._plotrect.right:o.x=this._plotrect.left);var a={val:e,text:i,pos:o,cls:n};s&&(t.readOnly=!0);a=this.itemFormatter(t,a);s&&(t.readOnly=!1);return a}};Axis.prototype._renderLabelsAndTicks=function(t,e,i,r,n,s,o,a,h){var l=this._getPosition(),_=!1,u=this.axisType==AxisType.Y,c=l!=Position.Top&&l!=Position.Right,p=this.labelPadding||5,f=this._TICK_WIDTH,d=this._getLabelAlign(u),g=FlexChartCore._CSS_LABEL,m=FlexChartCore._CSS_GRIDLINE,x=FlexChartCore._CSS_TICK,y=FlexChartCore._FG,b=FlexChartCore._FG,v=this._GRIDLINE_WIDTH,w=i!=this._actualMin&&this.majorGrid;if(u){var S=this.convert(i);if(w){t.stroke=y;t.strokeWidth=v;t.drawLine(this._plotrect.left,S,this._plotrect.right,S,m)}t.stroke=b;t.strokeWidth=f;if(c){if(o){_=!0;var C=new wijmo_1.Point(this._axrect.right-h-this._TICK_LABEL_DISTANCE-p,S);n>0?90==n?this._renderRotatedText(t,i,r,C,1,0,C,n,g,this._groupClass):this._renderRotatedText(t,i,r,C,2,1,C,n,g,this._groupClass):n<0?-90==n?this._renderRotatedText(t,i,r,C,1,2,C,n,g,this._groupClass):this._renderRotatedText(t,i,r,C,2,1,C,n,g,this._groupClass):_=this._renderLabel(t,i,r,C,2,d,g)}s!=TickMark.None&&_&&t.drawLine(this._axrect.right-a,S,this._axrect.right-h,S,x)}else{if(o){_=!0;C=new wijmo_1.Point(this._axrect.left+h+this._TICK_LABEL_DISTANCE+p,S);n>0?90==n?this._renderRotatedText(t,i,r,C,1,2,C,n,g,this._groupClass):this._renderRotatedText(t,i,r,C,0,1,C,n,g,this._groupClass):n<0?-90==n?this._renderRotatedText(t,i,r,C,1,0,C,n,g,this._groupClass):this._renderRotatedText(t,i,r,C,0,1,C,n,g,this._groupClass):_=this._renderLabel(t,i,r,C,0,d,g)}s!=TickMark.None&&_&&t.drawLine(this._axrect.left+a,S,this._axrect.left+h,S,x)}}else{var P=this.convert(i);if(w&&o){t.stroke=y;t.strokeWidth=v;t.drawLine(P,this._plotrect.top,P,this._plotrect.bottom,m)}this.overlappingLabels==OverlappingLabels.Auto&&this._xCross(P)&&(o=!1);t.stroke=b;t.strokeWidth=f;if(c){if(o){C=new wijmo_1.Point(P,this._axrect.top+h+p);_=0!=n?this._renderRotatedLabel(t,i,r,C,d,n,g,c):this._renderLabel(t,i,r,C,d,0,g)}if(s!=TickMark.None&&_){P=this.convert(i);t.drawLine(P,this._axrect.top+a,P,this._axrect.top+h,x)}}else{if(o){C=new wijmo_1.Point(P,this._axrect.bottom-h-p);_=0!=n?this._renderRotatedLabel(t,i,r,C,d,n,g,c):this._renderLabel(t,i,r,C,d,2,g)}if(s!=TickMark.None&&_){P=this.convert(i);t.drawLine(P,this._axrect.bottom-a,P,this._axrect.bottom-h,x)}}}return _};Axis.prototype._xCross=function(t){for(var e=this._rects.length,i=0;i<e;i++){var r=this._rects[i];if(t>=r.left&&t<=r.right)return!0}return!1};Axis.prototype._createMinors=function(t,e,i,r,n){if(e){var s=this.majorUnit?this._isTimeAxis?24*this.majorUnit*3600*1e3:this.majorUnit:e.length>1?e[1]-e[0]:e[0],o=wijmo_1.isNumber(this.minorUnit)?this._isTimeAxis?24*this.minorUnit*3600*1e3:this.minorUnit:.5*s;if(o<=0)return;for(var a=[],h=e[0];h>this._actualMin&&a.length<Axis.MAX_MINOR;h-=o)-1==e.indexOf(h)&&a.push(h);for(h=e[0]+o;h<this._actualMax&&a.length<Axis.MAX_MINOR;h+=o)(-1==e.indexOf(h)||n&&this.majorUnit&&h%this.majorUnit!=0)&&a.push(h);this._renderMinors(t,a,i,r)}};Axis.prototype._createLogarithmicMinors=function(t,e,i,r,n){if(e&&(!this.minorUnit||this.minorUnit<this._getLogBase())){var s=this.logBase;this.majorUnit>s&&(s=this.majorUnit);if(0==e.length){var o=Math.log(s),a=Math.floor(Math.log(this._actualMin)/o),h=Math.ceil(Math.log(this.actualMax)/o);if(this.majorUnit>0){e.push(Math.pow(s,a));e.push(Math.pow(s,h))}else{e.push(Math.pow(s,h));e.push(Math.pow(s,a))}}this.minorUnit||(this.minorUnit=s-1<1?.2*(s-1):.2*s);var l=[];if(this.majorUnit>0){for(var _=e[0]-e[0]/s*this.minorUnit;_>=this._actualMin&&l.length<Axis.MAX_MINOR;_-=e[0]/s*this.minorUnit)l.push(_);for(var u=0;u<e.length-1;u++)for(_=e[u]+e[u]*this.minorUnit;_<e[u+1]&&l.length<Axis.MAX_MINOR;_+=e[u]*this.minorUnit)_>=this._actualMin&&_<=this._actualMax&&l.push(_);for(_=e[e.length-1]+e[e.length-1]*this.minorUnit;_<=this._actualMax&&l.length<Axis.MAX_MINOR;_+=e[e.length-1]*this.minorUnit)l.push(_)}else{for(_=e[e.length-1]-e[e.length-1]/s*this.minorUnit;_>=this._actualMin&&l.length<Axis.MAX_MINOR;_-=e[e.length-1]/s*this.minorUnit)l.push(_);for(u=0;u<e.length-1;u++)for(_=e[u]-e[u+1]*this.minorUnit;_>e[u+1]&&l.length<Axis.MAX_MINOR;_-=e[u+1]*this.minorUnit)_>=this._actualMin&&_<=this._actualMax&&l.push(_);for(_=e[0]+e[0]*this.minorUnit;_<=this._actualMax&&l.length<Axis.MAX_MINOR;_+=e[0]*this.minorUnit)l.push(_)}this._renderMinors(t,l,i,r)}};Axis.prototype._renderMinors=function(t,e,i,r){var n=this._TICK_HEIGHT,s=this._TICK_WIDTH,o=this._TICK_OVERLAP,a=FlexChartCore._FG,h=this.minorTickMarks,l=!0;this._vals.minor=e;h==TickMark.Outside?o=1:h==TickMark.Inside?o=-1:h==TickMark.Cross?o=0:l=!1;for(var _=.5*(o-1)*n,u=.5*(1+o)*n,c=e?e.length:0,p=this.minorGrid,f=this._plotrect,d=this._GRIDLINE_WIDTH,g=FlexChartCore._FG,m=FlexChartCore._CSS_GRIDLINE_MINOR,x=FlexChartCore._CSS_TICK_MINOR,y=0;y<c;y++)if(e[y]>=this.actualMin&&e[y]<=this.actualMax)if(i){var b=this.convert(e[y]);if(l){t.stroke=a;t.strokeWidth=s;r?t.drawLine(this._axrect.right-_,b,this._axrect.right-u,b,x):t.drawLine(this._axrect.left+_,b,this._axrect.left+u,b,x)}if(p){t.stroke=g;t.strokeWidth=d;t.drawLine(f.left,b,f.right,b,m)}}else{var v=this.convert(e[y]);if(l){t.stroke=a;t.strokeWidth=s;r?t.drawLine(v,this._axrect.top+_,v,this._axrect.top+u,x):t.drawLine(v,this._axrect.bottom-_,v,this._axrect.bottom-u,x)}if(p){t.stroke=g;t.strokeWidth=d;t.drawLine(v,f.top,v,f.bottom,m)}}};Axis.prototype._renderLabel=function(t,e,i,r,n,s,o){var a=!1;if(this.itemFormatter){var h=this._getFormattedItem(t,e,i,r,o);if(h){i=h.text;o=h.cls}else i=null}if(i){var l=this._rects,_=this.overlappingLabels==OverlappingLabels.Auto&&!wijmo_1.isNumber(this._actualAngle),u=FlexChartCore._renderText(t,i,r,n,s,o,this._groupClass,null,(function(t){if(_)for(var e=l.length,i=0;i<e;i++)if(FlexChartCore._intersects(l[i],t))return!1;return!0}));if(u){u.left+=4;u.width+=8;l.push(u);a=!0}}return a};Axis.prototype._renderRotatedLabel=function(t,e,i,r,n,s,o,a){if(this.itemFormatter){var h=this._getFormattedItem(t,e,i,r,o);if(h){i=h.text;o=h.cls}else i=null}if(i){var l=t.measureString(i,o,this._groupClass),_=.5*l.height,u=.5*l.width*Math.abs(Math.sin(s*Math.PI/180)),c=.5*l.width,p=.5*(l.width*Math.abs(Math.cos(s*Math.PI/180))+l.height*Math.abs(Math.sin(s*Math.PI/180))),f=new wijmo_1.Point(r.x,r.y),d=new wijmo_1.Point(r.x,r.y);this.labelAlign||(n=90==s||-90==s?1:a?s>0?0:2:s>0?2:0);if(a){r.y+=_+u;f.y+=_+u-.5*l.height}else{r.y-=_+u-l.height;f.y-=_+u-.5*l.height}var g=0;if(2===n){f.x-=p;r.x-=c+p;g=f.x+p-l.height-2}else if(0===n){f.x+=p;r.x-=c-p;g=f.x-p}else{r.x-=c;g=f.x-l.height/2}var m=new wijmo_1.Rect(g,d.y,l.height+2,l.width),x=this._rects;if(this.overlappingLabels==OverlappingLabels.Auto)for(var y=x.length,b=0;b<y;b++)if(FlexChartCore._intersects(x[b],m))return!1;FlexChartCore._renderRotatedText(t,i,r,0,2,f,s,o,this._groupClass);this._rects.push(m);return!0}return!1};Axis.prototype._getLabelAlign=function(t){var e=1;if(this.labelAlign){var i=this.labelAlign.toLowerCase();t?"top"==i?e=0:"bottom"==i&&(e=2):"left"==i?e=0:"right"==i&&(e=2)}return e};Axis.prototype._addMinMaxLabels=function(t,e){if(this.labelMin){var i=this.actualMin;if(isFinite(i)&&!t.includes(i)){e.splice(0,0,this._formatValue(i));t.splice(0,0,i)}}if(this.labelMax){var r=this.actualMax;if(isFinite(r)&&!t.includes(r)){e.splice(0,0,this._formatValue(r));t.splice(0,0,r)}}};Axis.prototype.convert=function(t,e,i){var r=null==e?this._actualMax:e,n=null==i?this._actualMin:i;if(r==n||!this._axrect)return 0;var s=this._axrect.left,o=this._axrect.width,a=this._axrect.top,h=this._axrect.height;if(null!=this._customConvert){var l=this._customConvert(t,n,r);return this.axisType==AxisType.Y?a+l*h:s+l*o}if(this._getLogBase()){if(t<=0)return NaN;var _=Math.log(r/n);return this._reversed?this.axisType==AxisType.Y?a+Math.log(t/n)/_*h:s+o-Math.log(t/n)/_*o:this.axisType==AxisType.Y?a+h-Math.log(t/n)/_*h:s+Math.log(t/n)/_*o}return this._reversed?this.axisType==AxisType.Y?a+(t-n)/(r-n)*h:s+o-(t-n)/(r-n)*o:this.axisType==AxisType.Y?a+h-(t-n)/(r-n)*h:s+(t-n)/(r-n)*o};Axis.prototype.convertBack=function(t){if(this._actualMax==this._actualMin)return 0;var e=this._plotrect.left,i=this._plotrect.width,r=this._plotrect.top,n=this._plotrect.height,s=this._getActualRange(),o=this._getLogBase();if(null!=this._customConvertBack)return this.axisType==AxisType.Y?this._customConvertBack((t-r)/n,this._actualMin,this._actualMax):this._customConvertBack((t-e)/i,this._actualMin,this._actualMax);if(o){var a=0;a=this._reversed?this.axisType==AxisType.Y?(t-r)/n:1-(t-e)/i:this.axisType==AxisType.Y?1-(t-r)/n:(t-e)/i;return Math.pow(o,(Math.log(this._actualMin)+(Math.log(this._actualMax)-Math.log(this._actualMin))*a)/Math.log(o))}return this._reversed?this.axisType==AxisType.Y?this._actualMin+(t-r)*s/n:this._actualMin+(e+i-t)*s/i:this.axisType==AxisType.Y?this._actualMax-(t-r)*s/n:this._actualMin+(t-e)*s/i};Object.defineProperty(Axis.prototype,"axisType",{get:function(){var t=this._chart;if(t){if(t.axisX==this)return AxisType.X;if(t.axisY==this)return AxisType.Y}return this._axisType},enumerable:!0,configurable:!0});Axis.prototype._getMinNum=function(){return this._actualMin};Axis.prototype._getMaxNum=function(){return this._actualMax};Axis.prototype._getTitleSize=function(){return this._szTitle?this._szTitle:new wijmo_1.Size};Axis.prototype._invalidate=function(){this._chart&&this._chart.invalidate()};Axis.prototype._cvCollectionChanged=function(t,e){this._invalidate()};Axis.prototype._createLabels=function(t,e,i,r,n){for(var s=0;s<e;s++){var o=(t+i*s).toFixed(14),a=parseFloat(o),h=this._formatAxisValue(a),l=n.indexOf(h);if(l>=0&&!wijmo_1.isNumber(this.majorUnit)&&!this._format){var _=parseFloat(h);Math.abs(_-a)<Math.abs(_-r[l])&&(r[l]=a)}else{r.push(a);n.push(h)}}};Axis.prototype._createLogarithmicLabels=function(t,e,i,r,n,s){var o=this._getLogBase(),a=Math.log(o),h=Math.floor(Math.log(t)/a),l=Math.ceil(Math.log(e)/a),_=o,u=!0;if(i>0){u=!1;_=i}_<o&&(_=o);var c=(l-h+1)*o/_,p=1;if(s){var f=this._getPosition(),d=this._getAnnoNumber(f==Position.Left||f==Position.Right);c>d?p=Math.floor(c/d+1):u&&(c<=.2*d?_=.2*o:c<=.1*d&&(_=.1*o))}for(var g=h;g<=l;g+=p)if(u)for(var m=Math.pow(o,g),x=0;x*_<o-1;x++){if((y=m*(1+x*_))>=t&&y<=e)if(0==x){r.unshift(y);n&&n.unshift(this._formatValue(y))}else if(!this.minorGrid&&this.minorTickMarks==TickMark.None){r.push(y);n&&n.push(this._formatValue(y))}}else{var y;if((y=Math.pow(_,g))>=t&&y<=e){r.push(y);n&&n.push(this._formatValue(y))}}};Axis.prototype._createTimeLabels=function(t,e,i,r){var n=this._actualMin,s=this._actualMax,o=new Date(n),a=new Date(s),h=this._format,l=this._getAnnoNumber(this._axisType==AxisType.Y);l>10&&(l=10);var _=.001*(this._actualMax-this._actualMin)/l,u=new _timeSpan(_*_timeSpan.TicksPerSecond),c=wijmo_1.isNumber(this._majorUnit)?_timeSpan.fromDays(this._majorUnit):_timeHelper.NiceTimeSpan(u,h);h||(this._tfmt=h=_timeHelper.GetTimeDefaultFormat(1e3*c.TotalSeconds,0));var p=c.Ticks,f=_timeHelper.RoundTime(n,c.TotalDays,!1);Number.isFinite(f)&&(n=f);var d=_timeHelper.RoundTime(s,c.TotalDays,!0);Number.isFinite(d)&&(s=d);var g=new Date(n);new Date(s);if(c.TotalDays>=365&&!wijmo_1.isNumber(this._majorUnit)){(g=new Date(o.getFullYear(),0,1))<o&&g.setFullYear(g.getFullYear()+1);var m=c.TotalDays/365;m-=m%1;for(var x=g;x<=a&&m;x.setFullYear(x.getFullYear()+m)){var y=x.valueOf();i.push(y);r.push(this._formatValue(y))}}else if(c.TotalDays>=30&&!wijmo_1.isNumber(this._majorUnit)){(g=new Date(o.getFullYear(),o.getMonth(),1))<o&&g.setMonth(g.getMonth()+1);var b=c.TotalDays/30;b-=b%1;for(x=g;x<=a;x.setMonth(x.getMonth()+b)){y=x.valueOf();i.push(y);r.push(this._formatValue(y))}}else{var v=1e3*p/_timeSpan.TicksPerSecond,w=(x=g,o.getTime()-x.getTime());w>v&&(x=new Date(x.getTime()+Math.floor(w/v)*v));for(;x<=a&&v;x=new Date(x.getTime()+v)){if((y=x.valueOf()+w)>=o.valueOf()){i.push(y);r.push(this._formatValue(y))}}}};Axis.prototype._formatValue=function(t){if(this._isTimeAxis)return this._format?wijmo_1.Globalize.format(new Date(t),this._format):wijmo_1.Globalize.format(new Date(t),this._tfmt);if(this._format)return wijmo_1.Globalize.format(t,this._format);var e=t==Math.round(t)?"n0":"n";return wijmo_1.Globalize.format(t,e)};Axis.prototype._hitTest=function(t){return this._groupsPanel?this._groupsPanel.hitTest(t):void 0};Axis.prototype._formatAxisValue=function(t,e){void 0===e&&(e=void 0);if(this._isTimeAxis)return this._format?wijmo_1.Globalize.format(new Date(t),this._format):wijmo_1.Globalize.format(new Date(t),this._tfmt);if(this._format)return wijmo_1.Globalize.format(t,this._format);if(wijmo_1.isNumber(t)){var i=this._findFormat(t,e);return wijmo_1.Globalize.format(t,i)}return t};Axis.prototype._findFormat=function(t,e){void 0===e&&(e=void 0);var i=t==Math.round(t)?"n0":"n";void 0!==e&&(i+=e.toString());if("n"==i){var r=t.toFixed(14),n=r.search(".");if(n>=0){e=1;for(var s=r.length-1;s>=n;s--)if("0"!=r[s]){e=s-n-1;break}i+=e.toString()}}return i};Axis.prototype._calcMajorUnit=function(){var t=this._majorUnit;if(!wijmo_1.isNumber(t)){var e=this._getActualRange(),i=this._nicePrecision(e),r=e/this._getAnnoNumber(this.axisType==AxisType.Y);(t=this._niceNumber(2*r,-i,!0))<r&&(t=this._niceNumber(r,1-i,!1));t<r&&(t=this._niceTickNumber(r))>r&&(t*=.5)}return t};Axis.prototype._getAnnoNumber=function(t){var e=t?this._annoSizeBase&&this._annoSizeBase.height:this._annoSize&&this._annoSize.width,i=t?this._axrect&&this._axrect.height:this._axrect&&this._axrect.width;if(e>0&&i>0){var r=Math.floor(i/(e+6));r<=0&&(r=1);return r}return 10};Axis.prototype._nicePrecision=function(t){if(!wijmo_1.isNumber(t)||t<=0)return 0;var e,i=Math.log(t)/Math.LN10;e=i>=0?Math.floor(i):Math.ceil(i);var r=t/Math.pow(10,e);if(r<3){e=1-e;(r=t/Math.pow(10,e))<3&&(e+=1)}return e};Axis.prototype._niceTickNumber=function(t){if(0==t)return t;t<0&&(t=-t);var e=Math.log(t)/Math.LN10,i=Math.floor(e),r=t/Math.pow(10,i),n=10;r<=1?n=1:r<=2?n=2:r<=5&&(n=5);return n*Math.pow(10,i)};Axis.prototype._niceNumber=function(t,e,i){if(0==t)return t;t<0&&(t=-t);var r=t/Math.pow(10,e),n=10;i?r<1.5?n=1:r<3?n=2:r<4.5?n=4:r<7&&(n=5):r<=1?n=1:r<=2?n=2:r<=5&&(n=5);return n*Math.pow(10,e)};Object.defineProperty(Axis.prototype,"_uniqueId",{get:function(){return this.__uniqueId},enumerable:!0,configurable:!0});Axis.MAX_MAJOR=1e3;Axis.MAX_MINOR=2e3;Axis._id=0;return Axis}();exports.Axis=Axis;var _tmInc,AxisCollection=function(t){__extends(AxisCollection,t);function AxisCollection(){return null!==t&&t.apply(this,arguments)||this}AxisCollection.prototype.getAxis=function(t){var e=this.indexOf(t);return e>-1?this[e]:null};AxisCollection.prototype.indexOf=function(t){for(var e=0;e<this.length;e++)if(this[e].name==t)return e;return-1};return AxisCollection}(wijmo_1.ObservableArray);exports.AxisCollection=AxisCollection;!function(t){t[t.tickf7=-7]="tickf7";t[t.tickf6=-6]="tickf6";t[t.tickf5=-5]="tickf5";t[t.tickf4=-4]="tickf4";t[t.tickf3=-3]="tickf3";t[t.tickf2=-2]="tickf2";t[t.tickf1=-1]="tickf1";t[t.second=1]="second";t[t.minute=60]="minute";t[t.hour=3600]="hour";t[t.day=86400]="day";t[t.week=604800]="week";t[t.month=2678400]="month";t[t.year=31536e3]="year";t[t.maxtime=Number.MAX_VALUE]="maxtime"}(_tmInc||(_tmInc={}));var _timeSpan=function(){function _timeSpan(t){this.ticks=t}Object.defineProperty(_timeSpan.prototype,"Ticks",{get:function(){return this.ticks},enumerable:!0,configurable:!0});Object.defineProperty(_timeSpan.prototype,"TotalSeconds",{get:function(){return this.ticks/1e7},enumerable:!0,configurable:!0});Object.defineProperty(_timeSpan.prototype,"TotalDays",{get:function(){return this.ticks/1e7/86400},enumerable:!0,configurable:!0});_timeSpan.fromSeconds=function(t){return new _timeSpan(1e7*t)};_timeSpan.fromDays=function(t){return new _timeSpan(1e7*t*24*60*60)};_timeSpan.TicksPerSecond=1e7;return _timeSpan}(),_timeHelper=function(){function _timeHelper(t){wijmo_1.isDate(t)?this.init(t):wijmo_1.isNumber(t)&&this.init(FlexChartCore._fromOADate(t))}_timeHelper.prototype.init=function(t){this.year=t.getFullYear();this.month=t.getMonth();this.day=t.getDate();this.hour=t.getHours();this.minute=t.getMinutes();this.second=t.getSeconds()};_timeHelper.prototype.getTimeAsDateTime=function(){if(this.hour>=24){this.hour-=24;this.day+=1}if(this.month<0){-1-this.day;this.month=1}else if(this.month>11){this.month-12;this.month=11}if(this.day<1){-1-this.day;this.day=1}else if(this.day>28&&1==this.month){this.day-28;this.day=28}else if(this.day>30&&(3==this.month||5==this.month||8==this.month||10==this.month)){this.day-30;this.day=30}else if(this.day>31){this.day-31;this.day=31}if(this.second>59){this.second-59;this.second=59}if(this.minute>59){this.minute-59;this.minute=59}return new Date(this.year,this.month,this.day,this.hour,this.minute,this.second)};_timeHelper.prototype.getTimeAsDouble=function(){return this.getTimeAsDateTime().valueOf()};_timeHelper.tround=function(t,e,i){var r=t/e*e;r-=r%1;i&&r!=t&&(r+=e-=e%1);return r};_timeHelper.RoundTime=function(t,e,i){var r=24*e*60*60;if(r>0){var n=new _timeHelper(t);if(r<_tmInc.minute){n.second=_timeHelper.tround(n.second,r,i);return n.getTimeAsDouble()}n.second=0;if(r<_tmInc.hour){r/=_tmInc.minute;n.minute=_timeHelper.tround(n.minute,r,i);return n.getTimeAsDouble()}n.minute=0;if(r<_tmInc.day){r/=_tmInc.hour;n.hour=_timeHelper.tround(n.hour,r,i);return n.getTimeAsDouble()}n.hour=0;if(r<_tmInc.month){r/=_tmInc.day;n.day=_timeHelper.tround(n.day,r,i);return n.getTimeAsDouble()}n.day=1;if(r<_tmInc.year){r/=_tmInc.month;1!=n.month&&(n.month=_timeHelper.tround(n.month,r,i));return n.getTimeAsDouble()}n.month=1;r/=_tmInc.year;n.year=_timeHelper.tround(n.year,r,i);return n.getTimeAsDouble()}var s=t,o=s-r,a=o/e*e;i&&a!=o&&(a+=e);return s=r+a};_timeHelper.TimeSpanFromTmInc=function(t){var e=_timeSpan.fromSeconds(1);if(t!=_tmInc.maxtime)if(t>_tmInc.tickf1)e=_timeSpan.fromSeconds(t);else{var i=t,r=1;i+=7;for(;i>0;){r*=10;i--}e=new _timeSpan(r)}return e};_timeHelper.manualTimeInc=function(t){var e=_tmInc.second;if(null==t||0==t.length)return e;var i=t.indexOf("f");if(i>=0){var r=-1;if(i>0&&"%"==t.substr(i-1,1))r=-1;else for(var n=1;n<6&&!(i+n>=t.length);n++){if("f"!=t.substr(i+n,1))break;r--}e=r}else t.indexOf("s")>=0?e=_tmInc.second:t.indexOf("m")>=0?e=_tmInc.minute:t.indexOf("h")>=0||t.indexOf("H")?e=_tmInc.hour:t.indexOf("d")>=0?e=_tmInc.day:t.indexOf("M")>=0?e=_tmInc.month:t.indexOf("y")>=0&&(e=_tmInc.year);return e};_timeHelper.getNiceInc=function(t,e,i){for(var r=0;r<t.length;r++){var n=t[r]*i;if(e<=n)return n}return 0};_timeHelper.NiceTimeSpan=function(t,e){var i=_tmInc.second;null!=e&&e.length>0&&(i=_timeHelper.manualTimeInc(e));var r=0,n=0;if(i<_tmInc.second&&t.TotalSeconds<10){r=t.Ticks;n=_timeHelper.TimeSpanFromTmInc(i).Ticks;for(;r>10*n;)n*=10;var s=n;r>s&&(s*=2);r>s&&(s=5*n);r>s&&(s=10*n);return new _timeSpan(s)}if(0==(r=Math.ceil(t.TotalSeconds)))return _timeHelper.TimeSpanFromTmInc(i);n=1;if(i<_tmInc.minute){if(r<_tmInc.minute&&0!=(n=_timeHelper.getNiceInc([1,2,5,10,15,30],r,i)))return _timeSpan.fromSeconds(n);i=_tmInc.minute}if(i<_tmInc.hour){if(r<_tmInc.hour&&0!=(n=_timeHelper.getNiceInc([1,2,5,10,15,30],r,i)))return _timeSpan.fromSeconds(n);i=_tmInc.hour}if(i<_tmInc.day){if(r<_tmInc.day&&0!=(n=_timeHelper.getNiceInc([1,3,6,12],r,i)))return _timeSpan.fromSeconds(n);i=_tmInc.day}if(i<_tmInc.month){if(r<_tmInc.month&&0!=(n=_timeHelper.getNiceInc([1,2,7,14],r,i)))return _timeSpan.fromSeconds(n);i=_tmInc.month}if(i<_tmInc.year){if(r<_tmInc.year&&0!=(n=_timeHelper.getNiceInc([1,2,3,4,6],r,i)))return _timeSpan.fromSeconds(n);i=_tmInc.year}r<(n=100*_tmInc.year)&&0==(n=_timeHelper.getNiceInc([1,2,5,10,20,50],r,i))&&(n=100*_tmInc.year);return _timeSpan.fromSeconds(n)};_timeHelper.NiceTimeUnit=function(t,e){var i=_timeSpan.fromDays(t);return(i=_timeHelper.NiceTimeSpan(i,e)).TotalDays};_timeHelper.GetTimeDefaultFormat=function(t,e){if(!wijmo_1.isNumber(t)||!wijmo_1.isNumber(e))return"";var i="s",r=_timeSpan.fromSeconds(.001*(t-e)),n=r.TotalSeconds;if(n>=_tmInc.year)i="yyyy";else if(n>=_tmInc.month)i="MMM yyyy";else if(n>=_tmInc.day)i="MMM d";else if(n>=_tmInc.hour)i="ddd H:mm";else if(n>=.5*_tmInc.hour)i="H:mm";else if(n>=1)i="H:mm:ss";else if(n>0){var s=r.Ticks;i="s.";for(;s<_timeSpan.TicksPerSecond;){s*=10;i+="f"}}return i};return _timeHelper}(),_AxisLabel=function(){function _AxisLabel(t,e,i){this._start=e-.5;this._end=e+i-.5;this._value=e+.5*(i-1);this._label=t}Object.defineProperty(_AxisLabel.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0});Object.defineProperty(_AxisLabel.prototype,"label",{get:function(){return this._label},enumerable:!0,configurable:!0});Object.defineProperty(_AxisLabel.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0});Object.defineProperty(_AxisLabel.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0});Object.defineProperty(_AxisLabel.prototype,"rect",{get:function(){return this._rect},set:function(t){this._rect=t},enumerable:!0,configurable:!0});return _AxisLabel}();exports._AxisLabel=_AxisLabel;var _AxisGroup=function(){function _AxisGroup(t,e){this._labels=[];this._index=0;this._size=new wijmo_1.Size;this._level=0;this._level=t;this._last=e}Object.defineProperty(_AxisGroup.prototype,"labels",{get:function(){return this._labels},enumerable:!0,configurable:!0});Object.defineProperty(_AxisGroup.prototype,"index",{get:function(){return this._index},set:function(t){this._index=t},enumerable:!0,configurable:!0});Object.defineProperty(_AxisGroup.prototype,"height",{get:function(){return this._size.height},set:function(t){this._size.height=t},enumerable:!0,configurable:!0});Object.defineProperty(_AxisGroup.prototype,"width",{get:function(){return this._size.width},set:function(t){this._size.width=t},enumerable:!0,configurable:!0});Object.defineProperty(_AxisGroup.prototype,"level",{get:function(){return this._level},enumerable:!0,configurable:!0});_AxisGroup.prototype.getSize=function(t,e,i){var r=this;this._size=new wijmo_1.Size;this.labels.forEach((function(n){var s=t.measureString(n.label,e,i);r._size.width=Math.max(r._size.width,s.width);r._size.height=Math.max(r._size.height,s.height)}));return this._size};_AxisGroup.prototype.render=function(t,e,i,r,n){var s=this,o=e._getPosition(),a=e.axisType===AxisType.X;this.labels.forEach((function(h){var l,_=h.label,u=!1,c=a?Math.abs(e.convert(h.end)-e.convert(h.start)):s.width,p=t.measureString(_,r,n);if(p.width>c){_=s._trimText(_,p.width,c);u=!0}switch(o){case Position.Bottom:l=FlexChartCore._renderText(t,_,new wijmo_1.Point(e.convert(h.value),i),1,2,r,n);break;case Position.Top:l=FlexChartCore._renderText(t,_,new wijmo_1.Point(e.convert(h.value),i),1,0,r,n);break;case Position.Left:l=FlexChartCore._renderText(t,_,new wijmo_1.Point(i+s._size.width,e.convert(h.value)),2,1,r,n);break;case Position.Right:l=FlexChartCore._renderText(t,_,new wijmo_1.Point(i-s._size.width,e.convert(h.value)),0,1,r,n)}h.rect=u?l:void 0}));o===Position.Bottom||o===Position.Top?this.renderLinesX(t,e,i):this.renderLinesY(t,e,i)};_AxisGroup.prototype.hitTest=function(t){for(var e,i=0;i<this.labels.length;i++){var r=this.labels[i];if(r.rect&&r.rect.contains(t)){e=r;break}}return e};_AxisGroup.prototype.renderLinesX=function(t,e,i){var r=this,n=e.groupsOptions.display===AxisGroupsDisplay.ShowGrid,s=e._getPosition(),o=4,a=s===Position.Bottom?1:-1,h=i-a*(this.height+o);o*=a;if(n){var l=e.convert(e.actualMin),_=e.convert(e.actualMax);this.drawLine(t,l,i+o,_,i+o);this.drawLine(t,l,h,_,h);var u=e.convert(this.labels[0].start),c=0===this.level?1===a?e._axrect.top:e._axrect.bottom:h;this.drawLine(t,u,i+o,u,c);this.labels.forEach((function(n){var s=new wijmo_1.Point(e.convert(n.end),i);r._last?r.drawLine(t,s.x,s.y+o,s.x,1===a?e._axrect.top:e._axrect.bottom):r.drawLine(t,s.x,s.y+o,s.x,c)}))}else this.labels.forEach((function(i){var n=e.convert(i.start)+Math.abs(o),s=e.convert(i.end)-Math.abs(o);r.drawLine(t,n,h,s,h);if(e.labels||!r._last){r.drawLine(t,n,h,n,h-2*o);r.drawLine(t,s,h,s,h-2*o)}var a=e.convert(i.value);r.drawLine(t,a,h,a,h+o)}))};_AxisGroup.prototype.renderLinesY=function(t,e,i){var r=this,n=e.groupsOptions.display===AxisGroupsDisplay.ShowGrid,s=e._getPosition(),o=4,a=s===Position.Left?-1:1,h=i-a*(this.width+o);o*=a;if(n){var l=e.convert(e.actualMin),_=e.convert(e.actualMax);this.drawLine(t,i+o,l,i+o,_);this.drawLine(t,h,l,h,_);var u=e.convert(this.labels[0].start),c=0===this.level?1===a?e._axrect.left:e._axrect.right:h;this.drawLine(t,i+o,u,c,u);this.labels.forEach((function(n){var s=e.convert(n.end);r._last?r.drawLine(t,i+o,s,1===a?e._axrect.left:e._axrect.right,s):r.drawLine(t,i+o,s,c,s)}))}else this.labels.forEach((function(i){var n=e.convert(i.start)-Math.abs(o),s=e.convert(i.end)+Math.abs(o);r.drawLine(t,h,n,h,s);r.drawLine(t,h,n,h-2*o,n);r.drawLine(t,h,s,h-2*o,s);var a=e.convert(i.value);r.drawLine(t,h,a,h+o,a)}))};_AxisGroup.prototype.drawLine=function(t,e,i,r,n){t.drawLine(e,i,r,n,FlexChartCore._CSS_LINE)};_AxisGroup.prototype._trimText=function(t,e,i){var r="",n=t.length,s=Math.floor((1-(e-i)/e)*n);t.length>0&&(r=t[0]+(s>1?t.substring(1,s-1)+"..":""));return r};return _AxisGroup}(),_AxisGroups=function(){function _AxisGroups(t){this._groups=[];this._margin=8;this._axis=t}Object.defineProperty(_AxisGroups.prototype,"groups",{get:function(){return this._groups},enumerable:!0,configurable:!0});Object.defineProperty(_AxisGroups.prototype,"axis",{get:function(){return this._axis},enumerable:!0,configurable:!0});_AxisGroups.prototype.createGroups=function(){var t=this;this._groups=[];var e=this.axis._chart.collectionView;e&&e.groups&&e.groups.length>0&&e.groups.forEach((function(e){t.createGroup(e,0)}))};_AxisGroups.prototype.createGroup=function(t,e){var i=this;this.groups[e]||(this.groups[e]=new _AxisGroup(e,t.isBottomLevel));var r=this.groups[e],n=t.items;r.labels.push(new _AxisLabel(t.name,r.index,n.length));r.index+=n.length;t.groups.forEach((function(t){i.createGroup(t,e+1)}))};_AxisGroups.prototype.layoutGroups=function(t){this.groups.forEach((function(e){e.width*=t}))};_AxisGroups.prototype.getHeight=function(t){var e=this,i=this._axis._getPosition(),r=0;i===Position.Bottom||i===Position.Top?this.groups.forEach((function(i){var n=i.getSize(t,FlexChartCore._CSS_LABEL,e._axis._groupClass);r+=e._margin+n.height})):this.groups.forEach((function(i){var n=i.getSize(t,FlexChartCore._CSS_LABEL,e._axis._groupClass);r+=e._margin+n.width}));if(r>0&&this._axis.labels){var n=this.groups.length;r+=this._margin*n}this._height=r;return r};_AxisGroups.prototype.layout=function(){var t=this._axis,e=t._axrect;if(t.axisType===AxisType.Y){var i=(t.labels?t._annoSize.width+t._TICK_LABEL_DISTANCE+12:4)+t._getTitleSize().height,r=e.width-i;if(r<this._height){var n=this._margin*this._groups.length;this.layoutGroups((r-n)/(this._height-n));this._height=r}}};_AxisGroups.prototype.render=function(t){var e=this,i=this._axis._getPosition(),r=this._axis._getTitleSize();if(i===Position.Bottom){var n=this.axis._axrect.bottom-r.height-this._margin;this.groups.forEach((function(i){i.render(t,e.axis,n,FlexChartCore._CSS_LABEL,e._axis._groupClass);n-=i.height+e._margin}))}else if(i===Position.Top){var s=this.axis._axrect.top+r.height+this._margin;this.groups.forEach((function(i){i.render(t,e.axis,s,FlexChartCore._CSS_LABEL,e._axis._groupClass);s+=i.height+e._margin}))}else if(i===Position.Left){var o=this.axis._axrect.left+r.height+this._margin;this.groups.forEach((function(i){i.render(t,e.axis,o,FlexChartCore._CSS_LABEL,e._axis._groupClass);o+=i.width+e._margin}))}else if(i===Position.Right){var a=this.axis._axrect.right-r.height-this._margin;this.groups.forEach((function(i){i.render(t,e.axis,a,FlexChartCore._CSS_LABEL,e._axis._groupClass);a-=i.width+e._margin}))}};_AxisGroups.prototype.hitTest=function(t){for(var e,i=0;i<this._groups.length;i++){var r=this._groups[i].hitTest(t);if(r){e=r;break}}return e};return _AxisGroups}();exports._AxisGroups=_AxisGroups;var _AreaPlotter=function(t){__extends(_AreaPlotter,t);function _AreaPlotter(){var e=null!==t&&t.apply(this,arguments)||this;e.stacking=Stacking.None;e.isSpline=!1;e.isStep=!1;e.stackPos={};e.stackNeg={};return e}_AreaPlotter.prototype.adjustLimits=function(t,e){this.dataInfo=t;for(var i=t.getMinX(),r=t.getMinY(),n=t.getMaxX(),s=t.getMaxY(),o=0;o<this.chart.series.length;o++){var a=this.chart.series[o];if(this._isRange(a)){var h=a._getChartType();if(!h||h==ChartType.Area)for(var l=a._getBindingValues(1),_=0;_<l.length;_++)l[_]>s?s=l[_]:l[_]<r&&(r=l[_])}}if(this.isSpline){var u=.1*(s-r);this.chart.axisY._getLogBase()||(r-=u);s+=u}return this.rotated?new wijmo_1.Rect(r,i,s-r,n-i):new wijmo_1.Rect(i,r,n-i,s-r)};_AreaPlotter.prototype.clear=function(){t.prototype.clear.call(this);this.stackNeg={};this.stackPos={}};_AreaPlotter.prototype.plotSeries=function(t,e,i,r,n,s,o,a){var h=r;if(this._isRange(h))this.plotSeriesRanged(t,e,i,r,n,s,o,a);else{var l=[],_=this.chart.series.indexOf(r),u=r.getValues(0),c=r.getValues(1);if(u){var p=u.length;if(p){c||(c=this.dataInfo.getXVals());var f=!0;if(c)c.length<p&&(p=c.length);else{f=!1;c=new Array(p)}var d=[],g=[],m=[],x=[],y=this.stacking!=Stacking.None&&!h._isCustomAxisY(),b=this.stacking==Stacking.Stacked100pc&&!h._isCustomAxisY();void 0!==h._getChartType()&&(y=b=!1);for(var v=this.rotated,w=!1,S=h.interpolateNulls,C=null,P=null,A=this.chart._plotRect,M=0;M<p;M++){var T=f?c[M]:M,L=u[M];(null===C||T>C)&&(C=T);(null===P||T<P)&&(P=T);if(_DataInfo.isValid(T,L)){var j=v?i.convert(T):e.convert(T);if(y){if(b){L/=this.dataInfo.getStackedAbsSum(T)}var E=0;if(L>=0){E=isNaN(this.stackPos[T])?0:this.stackPos[T];L=this.stackPos[T]=E+L}else{E=isNaN(this.stackNeg[T])?0:this.stackNeg[T];L=this.stackNeg[T]=E+L}if(v){E<e.actualMin&&(E=e.actualMin);m.push(e.convert(E));x.push(j)}else{m.push(j);E<i.actualMin&&(E=i.actualMin);x.push(i.convert(E))}}if(v){var F=e.convert(L);if(isNaN(j)||isNaN(F)){w=!0;if(!y&&!0!==S){d.push(void 0);g.push(void 0)}}else{d.push(F);g.push(j);if(FlexChartCore._contains(A,new wijmo_1.Point(F,j))){(k=new _CircleArea(new wijmo_1.Point(F,j),this._DEFAULT_SYM_SIZE)).tag=new _DataPoint(_,M,L,T);this.hitTester.add(k,_)}}}else{F=i.convert(L);if(isNaN(j)||isNaN(F)){w=!0;if(!y&&!0!==S){d.push(void 0);g.push(void 0)}}else{d.push(j);g.push(F);if(FlexChartCore._contains(A,new wijmo_1.Point(j,F))){var k;(k=new _CircleArea(new wijmo_1.Point(j,F),this._DEFAULT_SYM_SIZE)).tag=new _DataPoint(_,M,T,L);this.hitTester.add(k,_)}}}}else{w=!0;if(!y&&!0!==S){d.push(void 0);g.push(void 0)}}}a&&d.forEach((function(t,e){null!=t&&l.push(new wijmo_1.Point(t,g[e]))}));var N=this._DEFAULT_WIDTH,I=n._getColorLight(_),R=n._getColor(_),B=_BasePlotter.cloneStyle(r.style,["fill"]),D=_BasePlotter.cloneStyle(r.style,["stroke"]);if(!y&&!0!==S&&w){var O=[],V=[];for(M=0;M<p;M++)if(void 0===d[M]){if(O.length>1){O=(H=this._modifyPoints(O,V)).x;V=H.y;t.stroke=R;t.strokeWidth=N;t.fill="none";t.drawLines(O,V,null,B);this.hitTester.add(new _LinesArea(O,V),_);if(v){O.push(e.convert(e.actualMin),e.convert(e.actualMin));V.push(i.convert(i.actualMax),i.convert(i.actualMin))}else{O.push(O[O.length-1],O[0]);V.push(i.convert(i.actualMin),i.convert(i.actualMin))}t.fill=I;t.stroke="none";t.drawPolygon(O,V,null,D,this.chart._plotrectId)}O=[];V=[]}else{O.push(d[M]);V.push(g[M])}if(O.length>1){O=(H=this._modifyPoints(O,V)).x;V=H.y;t.stroke=R;t.strokeWidth=N;t.fill="none";t.drawLines(O,V,null,B);this.hitTester.add(new _LinesArea(O,V),_);if(v){O.push(e.convert(e.actualMin),e.convert(e.actualMin));V.push(i.convert(i.actualMax),i.convert(i.actualMin))}else{O.push(O[O.length-1],O[0]);V.push(i.convert(i.actualMin),i.convert(i.actualMin))}t.fill=I;t.stroke="none";t.drawPolygon(O,V,null,D,this.chart._plotrectId)}}else{var H;d=(H=this._modifyPoints(d,g)).x;g=H.y;if(y){var G=this._modifyPoints(m,x);m=G.x;x=G.y;d=d.concat(m.reverse());g=g.concat(x.reverse())}else if(v){d.push(e.convert(e.actualMin),e.convert(e.actualMin));g.push(g[g.length-1],g[0])}else{d.push(d[d.length-1],d[0]);g.push(i.convert(i.actualMin),i.convert(i.actualMin))}t.fill=I;t.stroke="none";t.drawPolygon(d,g,null,D,this.chart._plotrectId);if(y){d=d.slice(0,d.length-m.length);g=g.slice(0,g.length-x.length)}else{d=d.slice(0,d.length-2);g=g.slice(0,g.length-2)}t.stroke=R;t.strokeWidth=N;t.fill="none";t.drawLines(d,g,null,B,this.chart._plotrectId);this.hitTester.add(new _LinesArea(d,g),_)}this._drawSymbols(t,r,_);a&&l&&l.length&&a(l)}}}};_AreaPlotter.prototype._isRange=function(t){var e=this.chart?this.chart._bindingSeparator:",",i=null==t.binding?null:t.binding.split(e);return null!=i&&2==i.length};_AreaPlotter.prototype._modifyPoints=function(t,e){var i={x:t,y:e};if(this.isSpline){var r=this._convertToSpline(t,e);i.x=r.xs;i.y=r.ys}else if(this.isStep){var n=this._createSteps(t,e);i.x=n.x;i.y=n.y}return i};_AreaPlotter.prototype.plotSeriesRanged=function(t,e,i,r,n,s,o,a){var h=[],l=this.chart.series.indexOf(r),_=r,u=r.getValues(0),c=r.getValues(1),p=_._getBindingValues(1);if(u){var f=u.length;if(f){c||(c=this.dataInfo.getXVals());var d=!0;if(c)c.length<f&&(f=c.length);else{d=!1;c=new Array(f)}for(var g=[],m=[],x=[],y=this.rotated,b=!1,v=_.interpolateNulls,w=this.chart._plotRect,S=0;S<f;S++){var C=d?c[S]:S,P=u[S],A=p[S];if(_DataInfo.isValid(C,P,A)){var M=y?i.convert(C):e.convert(C);if(y){var T=e.convert(P),L=e.convert(A);if(isNaN(M)||isNaN(T)){b=!0;if(!0!==v){g.push(void 0);m.push(void 0);x.push(void 0)}}else{g.push(T);m.push(M);x.push(L);if(FlexChartCore._contains(w,new wijmo_1.Point(T,M))){(j=new _CircleArea(new wijmo_1.Point(T,M),this._DEFAULT_SYM_SIZE)).tag=new _DataPoint(l,S,P,C);this.hitTester.add(j,l)}if(FlexChartCore._contains(w,new wijmo_1.Point(L,M))){(j=new _CircleArea(new wijmo_1.Point(L,M),this._DEFAULT_SYM_SIZE)).tag=new _DataPoint(l,S,A,C);this.hitTester.add(j,l)}}}else{T=i.convert(P),L=i.convert(A);if(isNaN(M)||isNaN(T)){b=!0;if(!0!==v){g.push(void 0);m.push(void 0);x.push(void 0)}}else{g.push(M);m.push(T);x.push(L);if(FlexChartCore._contains(w,new wijmo_1.Point(M,T))){(j=new _CircleArea(new wijmo_1.Point(M,T),this._DEFAULT_SYM_SIZE)).tag=new _DataPoint(l,S,C,P);this.hitTester.add(j,l)}if(FlexChartCore._contains(w,new wijmo_1.Point(M,L))){var j;(j=new _CircleArea(new wijmo_1.Point(M,L),this._DEFAULT_SYM_SIZE)).tag=new _DataPoint(l,S,C,A);this.hitTester.add(j,l)}}}}else{b=!0;if(!0!==v){g.push(void 0);m.push(void 0);x.push(void 0)}}}a&&g.forEach((function(t,e){null!=t&&h.push(new wijmo_1.Point(t,m[e]))}));var E=this._DEFAULT_WIDTH,F=n._getColorLight(l),k=n._getColor(l),N=_BasePlotter.cloneStyle(r.style,["fill"]),I=_BasePlotter.cloneStyle(r.style,["stroke"]);if(!0!==v&&b){var R=[],B=[],D=[];for(S=0;S<f;S++)if(void 0===g[S]){if(R.length>1){var O=y?D.slice(0).reverse():R.slice(0).reverse(),V=y?B.slice(0).reverse():D.slice(0).reverse();this._drawRangedArea(t,R,B,O,V,F,k,E,I,N);this.hitTester.add(new _LinesArea(R,B),l);this.hitTester.add(new _LinesArea(O,V),l)}R=[];B=[];D=[]}else{R.push(g[S]);B.push(m[S]);D.push(x[S])}if(R.length>1){O=y?D.slice(0).reverse():R.slice(0).reverse(),V=y?B.slice(0).reverse():D.slice(0).reverse();this._drawRangedArea(t,R,B,O,V,F,k,E,I,N);this.hitTester.add(new _LinesArea(R,B),l);this.hitTester.add(new _LinesArea(O,V),l)}}else{var H=y?x.slice(0).reverse():g.slice(0).reverse(),G=y?m.slice(0).reverse():x.slice(0).reverse();this._drawRangedArea(t,g,m,H,G,F,k,E,I,N);this.hitTester.add(new _LinesArea(g,m),l);this.hitTester.add(new _LinesArea(H,G),l)}this._drawSymbols(t,r,l);a&&h&&h.length&&a(h)}}};_AreaPlotter.prototype._drawRangedArea=function(t,e,i,r,n,s,o,a,h,l){if(this.isSpline){var _=this._convertToSpline(e,i),u=this._convertToSpline(r,n);e=_.xs;i=_.ys;r=u.xs;n=u.ys}e=e.concat(r);i=i.concat(n);t.fill=s;t.stroke="none";t.drawPolygon(e,i,null,h);e=e.slice(0,e.length-r.length);i=i.slice(0,i.length-n.length);t.stroke=o;t.strokeWidth=a;t.fill="none";t.drawLines(e,i,null,l);t.drawLines(r,n,null,l)};_AreaPlotter.prototype._convertToSpline=function(t,e){if(t&&e){var i=new _Curve(t,e).calculate();return{xs:i.xs,ys:i.ys}}return{xs:t,ys:e}};_AreaPlotter.prototype._drawSymbols=function(t,e,i){var r=this.getItemFormatter(e);if(null!=r){for(var n=this.hitTester._map[i],s=0;s<n.length;s++){var o=wijmo_1.tryCast(n[s],_CircleArea);if(o){var a=o.tag;t.startGroup();var h=new HitTestInfo(this.chart,o.center,ChartElement.SeriesSymbol);h._setDataPoint(a);r(t,h,(function(){}));t.endGroup()}}t.cssPriority=!0}};return _AreaPlotter}(_BasePlotter);exports._AreaPlotter=_AreaPlotter;var _BarPlotter=function(t){__extends(_BarPlotter,t);function _BarPlotter(){var e=null!==t&&t.apply(this,arguments)||this;e.origin=0;e.width=.7;e.isVolume=!1;e._volHelper=null;e.stackPosMap={};e.stackNegMap={};e.stacking=Stacking.None;return e}_BarPlotter.prototype.clear=function(){t.prototype.clear.call(this);this.stackNegMap[this.chart.axisY._uniqueId]={};this.stackPosMap[this.chart.axisY._uniqueId]={};this._volHelper=null};_BarPlotter.prototype.load=function(){t.prototype.load.call(this);if(this.isVolume){var e,i,r,n,s,o,a,h,l=null,_=null;for(o=0;o<this.chart.series.length;o++){s=(e=this.chart.series[o]).getDataType(1)||e.chart._xDataType;i=e._getAxisX();if((r=null===(r=e._getChartType())||wijmo_1.isUndefined(r)?this.chart._getChartType():r)===ChartType.Column){var u=this.chart?this.chart._bindingSeparator:",",c=e.binding.split(u).length-1;n=e._getBindingValues(c)}else n=r===ChartType.Candlestick?e._getBindingValues(4):null;if(s===wijmo_1.DataType.Date){var p=void 0;a=[];h=[];for(o=0;o<e._getLength();o++){p=e._getItem(o)[e.bindingX].valueOf();a.push(p);h.push({value:p,text:wijmo_1.Globalize.format(new Date(p),i.format||"d")})}}else a=this.dataInfo.getXVals();l=this.dataInfo.getMinX();_=this.dataInfo.getMaxX();if(n&&n.length>0){this._volHelper=new _VolumeHelper(n,a,l,_,s);i._customConvert=this._volHelper.convert.bind(this._volHelper);i._customConvertBack=this._volHelper.convertBack.bind(this._volHelper);h&&h.length>0&&(this._itemsSource=i.itemsSource=h);break}}}};_BarPlotter.prototype.unload=function(){t.prototype.unload.call(this);for(var e,i=0;i<this.chart.series.length;i++)if(e=this.chart.series[i]._getAxisX()){e._customConvert=null;e._customConvertBack=null;e.itemsSource&&e.itemsSource==this._itemsSource&&(this._itemsSource=e.itemsSource=null)}};_BarPlotter.prototype.adjustLimits=function(t,e){this.dataInfo=t;var i=t.getMinX(),r=t.getMaxX(),n=t.getMinY(),s=t.getMaxY(),o=t.getDeltaX();o<=0&&(o=1);var a=!1;!this.isVolume||this.chart._getChartType()!==ChartType.Column&&this.chart._getChartType()!==ChartType.Candlestick?this.unload():this.load();for(var h=0;h<this.chart.series.length;h++){var l=this.chart.series[h],_=l._getChartType();if((_=null===_||wijmo_1.isUndefined(_)?this.chart._getChartType():_)===ChartType.Column||_===ChartType.Bar){if(this._isRange(l)){l._getBindingValues(1).forEach((function(t){t<n?n=t:t>s&&(s=t)}))}}a||"BoxWhisker"==l.constructor.name||(a=!0)}if(this.rotated){!this.chart.axisY._getLogBase()&&t.getDataTypeY()!==wijmo_1.DataType.Date&&a&&(this.origin>s?s=this.origin:this.origin<n&&(n=this.origin));return new wijmo_1.Rect(n,i-.5*o,s-n,r-i+o)}!this.chart.axisY._getLogBase()&&t.getDataTypeY()!==wijmo_1.DataType.Date&&a&&(this.origin>s?s=this.origin:this.origin<n&&(n=this.origin));return new wijmo_1.Rect(i-.5*o,n,r-i+o,s-n)};_BarPlotter.prototype._isRange=function(t){var e=this.chart?this.chart._bindingSeparator:",",i=(null==t.binding?"":t.binding.split(e)).length-1;return this.isVolume?2===i:1===i};_BarPlotter.prototype.plotSeries=function(t,e,i,r,n,s,o,a){var h=[],l=this.chart.series.indexOf(r),_=wijmo_1.asType(r,SeriesBase),u=this.chart._options,c=this.width,p=0;s=s||0;o=o||1;if(u&&u.groupWidth){var f=u.groupWidth;if(wijmo_1.isNumber(f)){var d=wijmo_1.asNumber(f);if(Number.isFinite(d)&&d>0){p=d;c=1}}else if(wijmo_1.isString(f)){var g=wijmo_1.asString(f);if(g&&g.indexOf("%")>=0){g=g.replace("%","");d=parseFloat(g);if(Number.isFinite(d)){d<0?d=0:d>100&&(d=100);p=0;c=d/100}}else{d=parseFloat(g);if(Number.isFinite(d)&&d>0){p=d;c=1}}}}var m=c/o,x=_._getAxisY()._uniqueId,y=this.stackNegMap[x],b=this.stackPosMap[x],v=r.getValues(0),w=r.getValues(1),S=this._isRange(_),C=_._bindValues(null==_._cv?null==this.chart.collectionView?null:this.chart.collectionView.items:_._cv.items,_._getBinding(1)).values;if(v){w||(w=this.dataInfo.getXVals());if(w){var P=this.dataInfo.getDeltaX();if(P>0){c*=P;m*=P}}var A=_._getSymbolFill(l),M=_._getAltSymbolFill(l)||A,T=_._getSymbolStroke(l),L=_._getAltSymbolStroke(l)||T,j=v.length;null!=w&&(j=Math.min(j,w.length));var E,F,k=this.origin,N=0,I=this.stacking!=Stacking.None,R=this.stacking==Stacking.Stacked100pc;void 0!==_._getChartType()&&(I=R=!1);var B=this.getItemFormatter(r),D=e._actualMin,O=e._actualMax,V=i._actualMin,H=i._actualMax;if(this.rotated){k<D?k=D:k>O&&(k=O);_._isCustomAxisY()&&(I=R=!1);for(X=e.convert(k),Y=0;Y<j;Y++){W=w?w[Y]:Y,q=v[Y],U=X;this._getSymbolOrigin&&(U=i.convert(this._getSymbolOrigin(k,Y)));if(S&&C&&C.length){K=C[Y];_DataInfo.isValid(K)&&(U=e.convert(K))}if(this._getSymbolStyles){A=(Z=this._getSymbolStyles(Y))&&Z.fill?Z.fill:A;M=Z&&Z.fill?Z.fill:M;T=Z&&Z.stroke?Z.fill:T;L=Z&&Z.stroke?Z.fill:L}E=q>0?A:M;F=q>0?T:L;t.fill=E;t.stroke=F;if(_DataInfo.isValid(W,q))if(I){$=W+.5*c;if((Q=W-.5*c)<V&&$<V||Q>H&&$>H)continue;Q=i.convert(Math.max(Q,V));$=i.convert(Math.min($,H));st=void 0,J=void 0;if(R){q/=this.dataInfo.getStackedAbsSum(W)}tt=0;if(q>=0){tt=isNaN(b[W])?0:b[W];st=e.convert(tt);J=e.convert(tt+q);b[W]=tt+q}else{tt=isNaN(y[W])?0:y[W];st=e.convert(tt);J=e.convert(tt+q);y[W]=tt+q}a&&h.push(new wijmo_1.Point(J,i.convert(W)));if(!_DataInfo.isValid(st,J))continue;et=new wijmo_1.Rect(Math.min(st,J),Math.min(Q,$),Math.abs(J-st),Math.abs($-Q));if(p>0){(ht=1-p/et.height)<0&&(ht=0);var G=et.top+.5*et.height;et.top+=(G-et.top)*ht;et.height=Math.min(p,et.height)}rt=new _RectArea(et);this.drawSymbol(t,et,r,Y,new wijmo_1.Point(J,et.top+.5*et.height),B);r._setPointIndex(Y,N);N++;nt=R?Math.min(tt+q,1):tt+q;rt.tag=new _DataPoint(l,Y,nt,W);this.hitTester.add(rt,l)}else{$=W-.5*c+(s+1)*m;if((Q=W-.5*c+s*m)<V&&$<V||Q>H&&$>H)continue;Q=i.convert(Math.max(Q,V));$=i.convert(Math.min($,H));var z=e.convert(q);if(!_DataInfo.isValid(z,Q,$))continue;et=new wijmo_1.Rect(Math.min(z,U),Math.min(Q,$),Math.abs(U-z),Math.abs($-Q));a&&h.push(new wijmo_1.Point(z,(Q+$)/2));if(p>0){(ht=1-(at=p/o)/et.height)<0&&(ht=0);G=i.convert(W);et.top+=(G-et.top)*ht;et.height=Math.min(at,et.height)}rt=new _RectArea(et);this.drawSymbol(t,et,r,Y,new wijmo_1.Point(z,et.top+.5*et.height),B);r._setPointIndex(Y,N);N++;rt.tag=new _DataPoint(l,Y,q,W);this.hitTester.add(rt,l)}else a&&h.push(null)}}else{k<V?k=V:k>H&&(k=H);var X=i.convert(k);_._isCustomAxisY()&&(I=R=!1);for(var Y=0;Y<j;Y++){var U=X,W=w?w[Y]:Y,q=v[Y];this._getSymbolOrigin&&(U=i.convert(this._getSymbolOrigin(k,Y,j)));if(S&&C&&C.length){var K=C[Y];_DataInfo.isValid(K)&&(U=i.convert(K))}if(this._getSymbolStyles){var Z;A=(Z=this._getSymbolStyles(Y,j))&&Z.fill?Z.fill:A;M=Z&&Z.fill?Z.fill:M;T=Z&&Z.stroke?Z.stroke:T;L=Z&&Z.stroke?Z.stroke:L}E=q>0?A:M;F=q>0?T:L;t.fill=E;t.stroke=F;t.strokeWidth=null;if(_DataInfo.isValid(W,q))if(I){var J=W+.5*c;if((st=W-.5*c)<D&&J<D||st>O&&J>O)continue;st=e.convert(st);J=e.convert(J);if(!_DataInfo.isValid(st,J))continue;var Q=void 0,$=void 0;if(R){q/=this.dataInfo.getStackedAbsSum(W)}var tt=0;if(q>=0){tt=isNaN(b[W])?0:b[W];Q=i.convert(Math.max(tt,V));$=i.convert(Math.max(tt+q,V));b[W]=tt+q}else{tt=isNaN(y[W])?0:y[W];Q=i.convert(tt);$=i.convert(tt+q);y[W]=tt+q}a&&h.push(new wijmo_1.Point(e.convert(W),$));if(!_DataInfo.isValid(Q,$))continue;var et=new wijmo_1.Rect(Math.min(st,J),Math.min(Q,$),Math.abs(J-st),Math.abs($-Q));if(p>0){(ht=1-p/et.width)<0&&(ht=0);var it=et.left+.5*et.width;et.left+=(it-et.left)*ht;et.width=Math.min(p,et.width)}var rt=new _RectArea(et);this.drawSymbol(t,et,r,Y,new wijmo_1.Point(et.left+.5*et.width,$),B);r._setPointIndex(Y,N);N++;var nt=R?Math.min(tt+q,1):tt+q;rt.tag=new _DataPoint(l,Y,W,nt);this.hitTester.add(rt,l)}else{var st,J=W-.5*c+(s+1)*m;if((st=W-.5*c+s*m)<D&&J<D||st>O&&J>O)continue;st=e.convert(st);J=e.convert(J);var ot=i.convert(q);if(!_DataInfo.isValid(ot,st,J))continue;var et=new wijmo_1.Rect(Math.min(st,J),Math.min(ot,U),Math.abs(J-st),Math.abs(U-ot));a&&h.push(new wijmo_1.Point((st+J)/2,ot));if(p>0){var at,ht;(ht=1-(at=p/o)/et.width)<0&&(ht=0);it=e.convert(W);et.left+=(it-et.left)*ht;et.width=Math.min(at,et.width)}var rt=new _RectArea(et);this.drawSymbol(t,et,r,Y,new wijmo_1.Point(et.left+.5*et.width,ot),B);r._setPointIndex(Y,N);N++;rt.tag=new _DataPoint(l,Y,W,q);this.hitTester.add(rt,l)}else a&&h.push(null)}}a&&h&&h.length&&a(h)}};_BarPlotter.prototype.drawSymbol=function(t,e,i,r,n,s){var o=this;if(s){t.startGroup();var a=new HitTestInfo(this.chart,n,ChartElement.SeriesSymbol);a._setData(i,r);s(t,a,(function(){o.drawDefaultSymbol(t,e,i)}));t.cssPriority=!0;t.endGroup()}else this.drawDefaultSymbol(t,e,i)};_BarPlotter.prototype.drawDefaultSymbol=function(t,e,i){t.drawRect(e.left,e.top,e.width,e.height,null,i.symbolStyle)};return _BarPlotter}(_BasePlotter);exports._BarPlotter=_BarPlotter;var _FunnelPlotter=function(t){__extends(_FunnelPlotter,t);function _FunnelPlotter(){var e=null!==t&&t.apply(this,arguments)||this;e.stacking=Stacking.None;return e}_FunnelPlotter.prototype.adjustLimits=function(t,e){this.dataInfo=t;var i=t.getMinX(),r=t.getMinY(),n=t.getMaxX(),s=t.getMaxY();return new wijmo_1.Rect(i,r,n-i,s-r)};_FunnelPlotter.prototype.plotSeries=function(t,e,i,r,n,s,o,a){var h=this.chart.series.indexOf(r);if(!(h>0)){var l,_,u,c,p,f=wijmo_1.asType(r,SeriesBase),d=this.chart._options,g=r.getValues(0),m=r.getValues(1),x=this.chart._plotRect,y=d&&d.funnel&&null!=d.funnel.neckWidth?d.funnel.neckWidth:.2,b=d&&d.funnel&&null!=d.funnel.neckHeight?d.funnel.neckHeight:0,v=y*x.width,w=0,S=0,C=0,P=0,A=x.left,M=x.top,T=x.width,L=x.height;if(g){this.rotated&&(M+=x.height);v=v||1;m||(m=this.dataInfo.getXVals());var j=g.length;null!=m&&(j=Math.min(j,m.length));var E=0;for(w=0;w<j;w++)if(_DataInfo.isValid(g[w])){S+=g[w];g[w]>E&&(E=g[w])}var F,k,N=0;if(d&&d.funnel&&"rectangle"===d.funnel.type&&E>0){b=L/j;y=T;var I=T/E;for(w=0;w<j;w++){var R=m?m[w]:w,B=g[w],D=void 0,O=f._getSymbolFill(w),V=f._getAltSymbolFill(w)||O,H=f._getSymbolStroke(w),G=f._getAltSymbolStroke(w)||H;if(this._getSymbolStyles){O=(U=this._getSymbolStyles(w,j))&&U.fill?U.fill:O;V=U&&U.fill?U.fill:V;H=U&&U.stroke?U.stroke:H;G=U&&U.stroke?U.stroke:G}F=B>0?O:V;k=B>0?H:G;t.fill=F;t.stroke=k;if(_DataInfo.isValid(R)&&_DataInfo.isValid(B)){I||(I=T/B);var z=I*B;A+=(y-z)/2;this.rotated&&(M-=b);t.drawRect(A,M,z,b);D=new _FunnelSegment(new wijmo_1.Point(A,M),z,b,z,b);this.rotated||(M+=b);y=z;D.tag=new _DataPoint(h,w,R,B);this.hitTester.add(D,h);r._setPointIndex(w,N);N++}}}else{C=x.left+x.width*(1-y)/2;P=x.top+x.height*(this.rotated?b:1-b);_=(1-y)*x.width/2/(x.height*(1-b));if(isNaN(_)||!isFinite(_)){T=v;A=C;M=P}l=x.width*y*x.height+x.width*(1-y)/2*x.height*(1-b);for(w=0;w<j;w++){R=m?m[w]:w,B=g[w];var X=[],Y=[];D=void 0,O=f._getSymbolFill(w),V=f._getAltSymbolFill(w)||O,H=f._getSymbolStroke(w),G=f._getAltSymbolStroke(w)||H;if(this._getSymbolStyles){var U;O=(U=this._getSymbolStyles(w,j))&&U.fill?U.fill:O;V=U&&U.fill?U.fill:V;H=U&&U.stroke?U.stroke:H;G=U&&U.stroke?U.stroke:G}F=B>0?O:V;k=B>0?H:G;t.fill=F;t.stroke=k;if(_DataInfo.isValid(R)&&_DataInfo.isValid(B)){var W=l*B/S;if(T>v){c=this._getTrapezoidOffsetY(T,W,_);if(this.rotated)if(M-c>P){X=[A,A+(u=_*c),A+T-u,A+T];Y=[M,M-c,M-c,M];D=new _FunnelSegment(new wijmo_1.Point(A,M-c),T,c,T-2*u,0,!0);T-=2*u;A+=u;M-=c}else{u=_*(c=M-P);p=(W-=this._getTrapezoidArea(T,_,c))/v;X.push(A,A+u,A+u,A+u+v,A+u+v,A+T);Y.push(M,M-c,M-c-p,M-c-p,M-c,M);D=new _FunnelSegment(new wijmo_1.Point(A,M-c-p),T,c+p,v,p,!0);T=v;A+=u;M=M-c-p}else if(M+c<P){X=[A,A+(u=_*c),A+T-u,A+T];Y=[M,M+c,M+c,M];D=new _FunnelSegment(new wijmo_1.Point(A,M),T,c,T-2*u,0);T-=2*u;A+=u;M+=c}else{u=_*(c=P-M);p=(W-=this._getTrapezoidArea(T,_,c))/v;X.push(A,A+u,A+u,A+u+v,A+u+v,A+T);Y.push(M,M+c,M+c+p,M+c+p,M+c,M);D=new _FunnelSegment(new wijmo_1.Point(A,M),T,c+p,v,p);T=v;A+=u;M=M+c+p}t.drawPolygon(X,Y)}else{p=W/v;this.rotated&&(M-=p);t.drawRect(A,M,T,p);D=new _FunnelSegment(new wijmo_1.Point(A,M),v,p,v,p);this.rotated||(M+=p)}D.tag=new _DataPoint(h,w,R,B);this.hitTester.add(D,h);r._setPointIndex(w,N);N++}}}}}};_FunnelPlotter.prototype._getTrapezoidArea=function(t,e,i){var r=i*e;return r*i+(t-2*r)*i};_FunnelPlotter.prototype._getTrapezoidOffsetY=function(t,e,i){var r=Math.pow(t/2/i,2)-e/i;return t/2/i-Math.sqrt(r>=0?r:0)};_FunnelPlotter.prototype._getPointAndPosition=function(t,e,i,r){var n=i;t.x=n.center.x;t.y=n.center.y;e=null==e?LabelPosition.Center:e};return _FunnelPlotter}(_BasePlotter);exports._FunnelPlotter=_FunnelPlotter;var _FunnelSegment=function(){function _FunnelSegment(t,e,i,r,n,s){void 0===s&&(s=!1);this._startPoint=t;this._width=e;this._height=i;this._neckHeight=n;this._center=new wijmo_1.Point(this._startPoint.x+e/2,this._startPoint.y+i/2);this._offsetX=(e-r)/2;this._offsetY=i-n;this._rotated=s}_FunnelSegment.prototype.contains=function(t){var e=this._startPoint,i=this._offsetX,r=this._offsetY;if(this._rotated){if(t.x>=e.x&&t.x<=e.x+this._width&&t.y>=e.y&&t.y<=e.y+this._height){if(t.x>=e.x+i&&t.x<=e.x+this._width-i)return!0;if(t.y<e.y+this._neckHeight)return!1;if(t.x<this._center.x)return(e.y+this._height-t.y)/(t.x-e.x)<r/i;if(t.x>this._center.x)return(e.y+this._height-t.y)/(e.x+this._width-t.x)<r/i}}else if(t.x>=e.x&&t.x<=e.x+this._width&&t.y>=e.y&&t.y<=e.y+this._height){if(t.x>=e.x+i&&t.x<=e.x+this._width-i)return!0;if(t.y>e.y+r)return!1;if(t.x<this._center.x)return(t.y-e.y)/(t.x-e.x)<r/i;if(t.x>this._center.x)return(t.y-e.y)/(e.x+this._width-t.x)<r/i}return!1};_FunnelSegment.prototype.distance=function(t){if(this.contains(t))return 0;var e=this._startPoint,i=this._width,r=this._height,n=this._offsetX,s=this._offsetY;if(this._rotated){if(t.y>e.y+r)return t.x<e.x?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y+r-t.y,2)):t.x>e.x+i?Math.sqrt(Math.pow(t.x-e.x-i,2)+Math.pow(e.y+r-t.y,2)):t.y-e.y-r;if(t.y<e.y)return t.x<e.x+n?Math.sqrt(Math.pow(e.x+n-t.x,2)+Math.pow(t.y-e.y-r,2)):t.x>e.x+i-n?Math.sqrt(Math.pow(t.x-e.x-i+n,2)+Math.pow(t.y-e.y-r,2)):e.y-t.y;if(!(t.y<e.y+r-s))return t.x<e.x+n?Math.min(Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(t.y-e.y-r,2)),Math.sqrt(Math.pow(t.x-n/2-e.x,2)+Math.pow(t.y-r+s/2-e.y,2)),Math.sqrt(Math.pow(t.x-n-e.x,2)+Math.pow(t.y-r+s-e.y,2))):Math.min(Math.sqrt(Math.pow(t.x-i-e.x,2)+Math.pow(t.y-r-e.y,2)),Math.sqrt(Math.pow(t.x-i+n/2-e.x,2)+Math.pow(t.y-r+s/2-e.y,2)),Math.sqrt(Math.pow(t.x-i+n-e.x,2)+Math.pow(t.y-r+s-e.y,2)));if(t.x<e.x+n)return e.x+n-t.x;if(t.x>e.x+i-n)return t.x-e.x-i+n}else{if(t.y<e.y)return t.x<e.x?Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):t.x>e.x+i?Math.sqrt(Math.pow(t.x-e.x-i,2)+Math.pow(e.y-t.y,2)):e.y-t.y;if(t.y>e.y+r)return t.x<e.x+n?Math.sqrt(Math.pow(e.x+n-t.x,2)+Math.pow(t.y-e.y-r,2)):t.x>e.x+i-n?Math.sqrt(Math.pow(t.x-e.x-i+n,2)+Math.pow(t.y-e.y-r,2)):t.y-e.y-r;if(!(t.y>e.y+s))return t.x<e.x+n?Math.min(Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(t.y-e.y,2)),Math.sqrt(Math.pow(t.x-n/2-e.x,2)+Math.pow(t.y-s/2-e.y,2)),Math.sqrt(Math.pow(t.x-n-e.x,2)+Math.pow(t.y-s-e.y,2))):Math.min(Math.sqrt(Math.pow(t.x-i-e.x,2)+Math.pow(t.y-e.y,2)),Math.sqrt(Math.pow(t.x-i+n/2-e.x,2)+Math.pow(t.y-s/2-e.y,2)),Math.sqrt(Math.pow(t.x-i+n-e.x,2)+Math.pow(t.y-s-e.y,2)));if(t.x<e.x+n)return e.x+n-t.x;if(t.x>e.x+i-n)return t.x-e.x-i+n}};Object.defineProperty(_FunnelSegment.prototype,"center",{get:function(){return this._center},enumerable:!0,configurable:!0});return _FunnelSegment}();exports._FunnelSegment=_FunnelSegment;var _FinancePlotter=function(t){__extends(_FinancePlotter,t);function _FinancePlotter(){var e=null!==t&&t.apply(this,arguments)||this;e.isCandle=!0;e.isArms=!1;e.isEqui=!1;e.isVolume=!1;e._volHelper=null;e._symWidth=.7;return e}_FinancePlotter.prototype.clear=function(){t.prototype.clear.call(this);this._volHelper=null};_FinancePlotter.prototype.load=function(){t.prototype.load.call(this);if(this.isVolume){var e,i,r,n,s,o,a,h,l=null,_=null;for(o=0;o<this.chart.series.length;o++){s=(e=this.chart.series[o]).getDataType(1)||e.chart._xDataType;i=e._getAxisX();n=(r=null===(r=e._getChartType())||wijmo_1.isUndefined(r)?this.chart._getChartType():r)===ChartType.Column?e._getBindingValues(1):r===ChartType.Candlestick?e._getBindingValues(4):null;if(s===wijmo_1.DataType.Date){var u=void 0;a=[];h=[];for(o=0;o<e._getLength();o++){u=e._getItem(o)[e.bindingX].valueOf();a.push(u);h.push({value:u,text:wijmo_1.Globalize.format(new Date(u),i.format||"d")})}}else a=this.dataInfo.getXVals();l=this.dataInfo.getMinX();_=this.dataInfo.getMaxX();if(n&&n.length>0){this._volHelper=new _VolumeHelper(n,a,l,_,s);i._customConvert=this._volHelper.convert.bind(this._volHelper);i._customConvertBack=this._volHelper.convertBack.bind(this._volHelper);h&&h.length>0&&(this._itemsSource=i.itemsSource=h);break}}}};_FinancePlotter.prototype.unload=function(){t.prototype.unload.call(this);for(var e,i=0;i<this.chart.series.length;i++)if(e=this.chart.series[i]._getAxisX()){e._customConvert=null;e._customConvertBack=null;e.itemsSource&&e.itemsSource==this._itemsSource&&(this._itemsSource=e.itemsSource=null)}};_FinancePlotter.prototype.parseSymbolWidth=function(t){this._isPixel=void 0;if(t)if(wijmo_1.isNumber(t)){var e=wijmo_1.asNumber(t);if(Number.isFinite(e)&&e>0){this._symWidth=e;this._isPixel=!0}}else if(wijmo_1.isString(t)){var i=wijmo_1.asString(t);if(i&&i.indexOf("%")>=0){i=i.replace("%","");var r=parseFloat(i);if(Number.isFinite(r)){r<0?r=0:r>100&&(r=100);this._symWidth=r/100;this._isPixel=!1}}else{r=parseFloat(t);if(Number.isFinite(r)&&r>0){this._symWidth=r;this._isPixel=!0}}}};_FinancePlotter.prototype.adjustLimits=function(t,e){this.dataInfo=t;var i=t.getMinX(),r=t.getMinY(),n=t.getMaxX(),s=t.getMaxY(),o=t.getDeltaX(),a=this.chart._xDataType;o<=0&&(o=1);var h=this.chart.series,l=h.length,_=0;this.parseSymbolWidth(this.symbolWidth);!this.isVolume||this.chart._getChartType()!==ChartType.Column&&this.chart._getChartType()!==ChartType.Candlestick?this.unload():this.load();for(var u=0;u<l;u++){var c=h[u];if(!c._isCustomAxisY()){var p=c._getBinding(1),f=c._getBinding(2),d=c._getBinding(3),g=c._getLength();if(g){var m=c._getSymbolSize();m>_&&(_=m);for(var x=0;x<g;x++){var y=c._getItem(x);if(y){[p?y[p]:null,f?y[f]:null,d?y[d]:null].forEach((function(t){if(_DataInfo.isValid(t)&&null!==t){(isNaN(r)||t<r)&&(r=t);(isNaN(s)||t>s)&&(s=t)}}))}}}}}var b=n-i;return!(a===wijmo_1.DataType.Date&&this.isVolume||a===wijmo_1.DataType.Number)||this.chart._getChartType()!==ChartType.Column&&this.chart._getChartType()!==ChartType.Candlestick?this.chart._isRotated()?new wijmo_1.Rect(r,i,s-r,b):new wijmo_1.Rect(i,r,b,s-r):new wijmo_1.Rect(i-.5*o,r,n-i+o,s-r)};_FinancePlotter.prototype.plotSeries=function(t,e,i,r,n,s,o,a){var h=this,l=wijmo_1.asType(r,SeriesBase),_=this.chart.series.indexOf(r),u=r.getValues(0),c=r.getValues(1),p=this._symWidth,f=this.chart._isRotated();if(u){c||(c=this.dataInfo.getXVals());if(c){var d=this.dataInfo.getDeltaX();d>0&&!1===this._isPixel&&(p*=d)}var g=u.length,m=!0;if(c)g=Math.min(g,c.length);else{m=!1;c=new Array(g)}var x=this._DEFAULT_WIDTH,y=l._getSymbolFill(_),b=l._getAltSymbolFill(_)||"transparent",v=l._getSymbolStroke(_),w=l._getAltSymbolStroke(_)||v,S=void 0===this._isPixel?l._getSymbolSize():p;t.stroke=v;t.strokeWidth=x;t.fill=y;for(var C,P,A=l._getBinding(1),M=l._getBinding(2),T=l._getBinding(3),L=f?i.actualMin:e.actualMin,j=f?i.actualMax:e.actualMax,E=0,F=null,k=null,N=this.getItemFormatter(r),_loop_3=function(n){if(F=l._getItem(n)){var s=m?c[n]:n;if(_DataInfo.isValid(s)&&L<=s&&s<=j){var o=u[n],a=A?F[A]:null,p=M?F[M]:null,f=T?F[T]:null;t.startGroup();if(I.isEqui&&null!==k){if(k[T]!==F[T]){C=k[T]<F[T]?b:y;P=k[T]<F[T]?w:v}}else{C=p<f?b:y;P=p<f?w:v}t.fill=C;t.stroke=P;t.strokeWidth=x;if(N){var d=new HitTestInfo(I.chart,new wijmo_1.Point(e.convert(s),i.convert(o)),ChartElement.SeriesSymbol);d._setData(l,n);N(t,d,(function(){h._drawSymbol(t,e,i,_,n,C,S,s,o,a,p,f,g)}));t.cssPriority=!0}else I._drawSymbol(t,e,i,_,n,C,S,s,o,a,p,f,g);t.endGroup();r._setPointIndex(n,E);E++}k=F}},I=this,R=0;R<g;R++)_loop_3(R)}};_FinancePlotter.prototype._drawSymbol=function(t,e,i,r,n,s,o,a,h,l,_,u,c){var p,f=null,d=null,g=null,m=null,x=this.chart._isRotated(),y=e.convert(a),b=e._axrect,v=o/2,w=0===n&&y-b.left<=v,S=n===c-1&&b.right-y<=v,C=x?new _DataPoint(r,n,h,a):new _DataPoint(r,n,a,h);if(x){var P=i;i=e;e=P}if(!1===this._isPixel){if(w){g=a;m=a+o}else if(S){g=a-o;m=a}else{g=a-.5*o;m=a+.5*o}if((g=e.convert(g))>(m=e.convert(m))){var A=g;g=m;m=A}}a=y;if(!1!==this._isPixel)if(w){g=a;m=a+o}else if(S){g=a-o;m=a}else{g=a-.5*o;m=a+.5*o}if(this.isCandle){if(_DataInfo.isValid(_)&&_DataInfo.isValid(u)){_=i.convert(_);u=i.convert(u);d=(f=Math.min(_,u))+Math.abs(_-u);if(x){t.drawRect(f,g,d-f||1,m-g||1);p=new _RectArea(new wijmo_1.Rect(f,g,d-f||1,m-g||1))}else{t.drawRect(g,f,m-g||1,d-f||1);p=new _RectArea(new wijmo_1.Rect(g,f,m-g||1,d-f||1))}p.tag=C;this.hitTester.add(p,r)}if(_DataInfo.isValid(h)){h=i.convert(h);if(null!==f)if(x){t.drawLine(d,a,h,a);p.rect.width=p.rect.width+h}else{t.drawLine(a,f,a,h);p.rect.top=h;p.rect.height=p.rect.height+h}}if(_DataInfo.isValid(l)){l=i.convert(l);if(null!==d)if(x){t.drawLine(f,a,l,a);p.rect.left=l;p.rect.width=p.rect.width+l}else{t.drawLine(a,d,a,l);p.rect.height=p.rect.height+l}}}else if(this.isEqui){if(_DataInfo.isValid(h)&&_DataInfo.isValid(l)){h=i.convert(h);l=i.convert(l);d=(f=Math.min(h,l))+Math.abs(h-l);t.drawRect(g,f,m-g||1,d-f||1);(p=new _RectArea(new wijmo_1.Rect(g,f,m-g||1,d-f||1))).tag=C;this.hitTester.add(p,r)}}else if(this.isArms){if(_DataInfo.isValid(_)&&_DataInfo.isValid(u)){_=i.convert(_);u=i.convert(u);d=(f=Math.min(_,u))+Math.abs(_-u);t.drawRect(g,f,m-g||1,d-f||1)}if(_DataInfo.isValid(h)&&null!==f){h=i.convert(h);t.drawLine(a,f,a,h)}if(_DataInfo.isValid(l)&&null!==d){l=i.convert(l);t.drawLine(a,d,a,l)}if(_DataInfo.isValid(h)&&_DataInfo.isValid(l)){t.fill="transparent";d=(f=Math.min(h,l))+Math.abs(h-l);t.drawRect(g,f,m-g||1,d-f||1);(p=new _RectArea(new wijmo_1.Rect(g,f,m-g||1,d-f||1))).tag=C;this.hitTester.add(p,r)}}else{if(_DataInfo.isValid(h)&&_DataInfo.isValid(l)){h=i.convert(h);l=i.convert(l);d=(f=Math.min(h,l))+Math.abs(h-l);if(x){t.drawLine(l,a,h,a);p=new _RectArea(new wijmo_1.Rect(f,g,d-f||1,m-g||1))}else{t.drawLine(a,l,a,h);p=new _RectArea(new wijmo_1.Rect(g,f,m-g||1,d-f||1))}p.tag=C;this.hitTester.add(p,r)}if(_DataInfo.isValid(_)){_=i.convert(_);x?t.drawLine(_,g,_,a):t.drawLine(g,_,a,_)}if(_DataInfo.isValid(u)){u=i.convert(u);x?t.drawLine(u,a,u,m):t.drawLine(a,u,m,u)}}};return _FinancePlotter}(_BasePlotter);exports._FinancePlotter=_FinancePlotter;var LineMarkerLines,LineMarkerInteraction,LineMarkerAlignment,LineMarkers=function(){function LineMarkers(){this._moveMarker=function(t){var e=t.currentTarget,i=this._markers,r=e.getAttribute("data-markerIndex");null!=r&&i[r].forEach((function(e){e._moveMarker(t)}))};this._markers=[];this._bindMoveMarker=this._moveMarker.bind(this)}LineMarkers.prototype.attach=function(t){var e,i=t.chart.hostElement,r=this._markers,n=i.getAttribute("data-markerIndex"),s=[];if(null!=n)if((s=r[n])&&wijmo_1.isArray(s))s.push(t);else{r[n]=[t];this._bindMoveEvent(i)}else{e=r.length;s=[t];r.push(s);i.setAttribute("data-markerIndex",e.toString());this._bindMoveEvent(i)}};LineMarkers.prototype.detach=function(t){var e,i,r=t.chart.hostElement,n=this._markers,s=r.getAttribute("data-markerIndex");if(null!=s){(e=(i=n[s]).indexOf(t))>-1&&i.splice(e,1);if(0===i.length){(e=n.indexOf(i))>-1&&(n[e]=void 0);this._unbindMoveEvent(r)}}};LineMarkers.prototype._unbindMoveEvent=function(t){var e=this._bindMoveMarker;t.removeEventListener("mousemove",e);"ontouchstart"in window&&t.removeEventListener("touchmove",e)};LineMarkers.prototype._bindMoveEvent=function(t){var e=this._bindMoveMarker;t.addEventListener("mousemove",e);"ontouchstart"in window&&t.addEventListener("touchmove",e)};return LineMarkers}(),lineMarkers=new LineMarkers;!function(t){t[t.None=0]="None";t[t.Vertical=1]="Vertical";t[t.Horizontal=2]="Horizontal";t[t.Both=3]="Both"}(LineMarkerLines=exports.LineMarkerLines||(exports.LineMarkerLines={}));!function(t){t[t.None=0]="None";t[t.Move=1]="Move";t[t.Drag=2]="Drag"}(LineMarkerInteraction=exports.LineMarkerInteraction||(exports.LineMarkerInteraction={}));!function(t){t[t.Auto=2]="Auto";t[t.Right=0]="Right";t[t.Left=1]="Left";t[t.Bottom=4]="Bottom";t[t.Top=6]="Top"}(LineMarkerAlignment=exports.LineMarkerAlignment||(exports.LineMarkerAlignment={}));var LineMarker=function(){function LineMarker(t,e){this._wrapperMousedown=null;this._wrapperMouseup=null;this._savedPosition=new wijmo_1.Point;this.positionChanged=new wijmo_1.Event;this._chart=t;t._markers.push(this);t.rendered.addHandler(this._initialize,this);this._resetDefaultValue();wijmo_1.copy(this,e);this._initialize()}Object.defineProperty(LineMarker.prototype,"chart",{get:function(){return this._chart},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"isVisible",{get:function(){return this._isVisible},set:function(t){if(t!==this._isVisible){this._isVisible=wijmo_1.asBoolean(t);this._marker&&this._toggleVisibility()}},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"seriesIndex",{get:function(){return this._seriesIndex},set:function(t){t!==this._seriesIndex&&(this._seriesIndex=wijmo_1.asNumber(t,!0))},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"horizontalPosition",{get:function(){return this._horizontalPosition},set:function(t){if(t!==this._horizontalPosition){this._horizontalPosition=wijmo_1.asNumber(t,!0);this._savedPosition.x=this._horizontalPosition;if(this._horizontalPosition<0||this._horizontalPosition>1)throw"horizontalPosition's value should be in (0, 1).";this._marker&&this._updateMarkerPosition()}},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"x",{get:function(){var t=this._chart.axisX,e=this.chart.pageToControl(this._targetPoint);return t.convertBack(e.x)},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"y",{get:function(){var t=this._chart.axisY,e=this.chart.pageToControl(this._targetPoint);return t.convertBack(e.y)},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"content",{get:function(){return this._content},set:function(t){if(t!==this._content){this._content=wijmo_1.asFunction(t);this._updateMarkerPosition()}},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"verticalPosition",{get:function(){return this._verticalPosition},set:function(t){if(t!==this._verticalPosition){this._verticalPosition=wijmo_1.asNumber(t,!0);this._savedPosition.y=this._verticalPosition;if(this._verticalPosition<0||this._verticalPosition>1)throw"verticalPosition's value should be in (0, 1).";this._marker&&this._updateMarkerPosition()}},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"alignment",{get:function(){return this._alignment},set:function(t){if(t!==this._alignment){this._alignment=t;this._marker&&this._updatePositionByAlignment()}},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"lines",{get:function(){return this._lines},set:function(t){if((t=wijmo_1.asEnum(t,LineMarkerLines))!=this._lines){this._lines=t;this._marker&&this._resetLinesVisibility()}},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"interaction",{get:function(){return this._interaction},set:function(t){if((t=wijmo_1.asEnum(t,LineMarkerInteraction))!=this._interaction){this._marker&&this._detach();this._interaction=t;this._marker&&this._attach();this._toggleElesDraggableClass(this._interaction==LineMarkerInteraction.Drag)}},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"dragThreshold",{get:function(){return this._dragThreshold},set:function(t){t!=this._dragThreshold&&(this._dragThreshold=wijmo_1.asNumber(t))},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"dragContent",{get:function(){return this._dragContent},set:function(t){t!==this._dragContent&&(this._dragContent=wijmo_1.asBoolean(t));wijmo_1.toggleClass(this._dragEle,LineMarker._CSS_LINE_DRAGGABLE,this._interaction===LineMarkerInteraction.Drag&&this._dragContent&&this._lines!==LineMarkerLines.None)},enumerable:!0,configurable:!0});Object.defineProperty(LineMarker.prototype,"dragLines",{get:function(){return this._dragLines},set:function(t){t!=this._dragLines&&(this._dragLines=wijmo_1.asBoolean(t))},enumerable:!0,configurable:!0});LineMarker.prototype.onPositionChanged=function(t){this.positionChanged.raise(this,t)};LineMarker.prototype.remove=function(){var t=this._chart;if(this._marker){t.rendered.removeHandler(this._initialize,this);this._detach();this._removeMarker();this._wrapperMoveMarker=null;this._wrapperMousedown=null;this._wrapperMouseup=null}};LineMarker.prototype._attach=function(){var t=this._chart.hostElement;this._interaction!==LineMarkerInteraction.None?wijmo_1.addClass(t,LineMarker._CSS_TOUCH_DISABLED):wijmo_1.removeClass(t,LineMarker._CSS_TOUCH_DISABLED);lineMarkers.attach(this);this._attachDrag()};LineMarker.prototype._attachDrag=function(){if(this._interaction===LineMarkerInteraction.Drag){this._wrapperMousedown||(this._wrapperMousedown=this._onMousedown.bind(this));this._wrapperMouseup||(this._wrapperMouseup=this._onMouseup.bind(this));this._toggleDragEventAttach(!0)}};LineMarker.prototype._detach=function(){wijmo_1.removeClass(this._chart.hostElement,LineMarker._CSS_TOUCH_DISABLED);lineMarkers.detach(this);this._detachDrag()};LineMarker.prototype._detachDrag=function(){this._interaction===LineMarkerInteraction.Drag&&this._toggleDragEventAttach(!1)};LineMarker.prototype._toggleDragEventAttach=function(t){var e=this._chart.hostElement,i=t?"addEventListener":"removeEventListener";e[i]("mousedown",this._wrapperMousedown);document[i]("mouseup",this._wrapperMouseup);"ontouchstart"in window&&e[i]("touchstart",this._wrapperMousedown);"ontouchend"in window&&document[i]("touchend",this._wrapperMouseup)};LineMarker.prototype._onMousedown=function(t){var e,i,r,n,s,o=this._getEventPoint(t);if(this._interaction===LineMarkerInteraction.Drag){n=!(0===(e=wijmo_1.getElementRect(this._hLine)).width||0===e.height);s=!(0===(i=wijmo_1.getElementRect(this._vLine)).width||0===i.height);r=wijmo_1.getElementRect(this._markerContent);if(this._dragContent&&this._pointInRect(o,r)){this._capturedEle=this._markerContent;this._contentDragStartPoint=new wijmo_1.Point(o.x,o.y);this._mouseDownCrossPoint=new wijmo_1.Point(this._targetPoint.x,this._targetPoint.y)}else if(n&&(Math.abs(e.top-o.y)<=this._dragThreshold||Math.abs(o.y-e.top-e.height)<=this._dragThreshold||o.y>=e.top&&o.y<=e.top+e.height)){this._capturedEle=this._hLine;this._contentDragStartPoint=void 0;wijmo_1.addClass(this._chart.hostElement,LineMarker._CSS_LINE_DRAGGABLE)}else if(s&&(Math.abs(i.left-o.x)<=this._dragThreshold||Math.abs(o.x-i.left-i.width)<=this._dragThreshold||o.x>=i.left&&o.x<=i.left+i.width)){this._capturedEle=this._vLine;this._contentDragStartPoint=void 0;wijmo_1.addClass(this._chart.hostElement,LineMarker._CSS_LINE_DRAGGABLE)}t.preventDefault()}};LineMarker.prototype._onMouseup=function(t){var e=this._alignment===LineMarkerAlignment.Auto&&this._capturedEle===this._markerContent&&this._lines!==LineMarkerLines.None;this._capturedEle=void 0;this._contentDragStartPoint=void 0;this._mouseDownCrossPoint=void 0;if(e){this._updatePositionByAlignment();this._updatePositionByAlignment()}wijmo_1.removeClass(this._chart.hostElement,LineMarker._CSS_LINE_DRAGGABLE)};LineMarker.prototype._moveMarker=function(t){var e,i,r,n,s,o,a=this._chart,h=this._getEventPoint(t),l=this._plotRect,_=this._interaction===LineMarkerInteraction.Drag,u=this._lines===LineMarkerLines.Horizontal,c=this._lines===LineMarkerLines.Vertical,p=this._seriesIndex,f=wijmo_1.getElementRect(a.hostElement);if(l&&this._isVisible&&this._interaction!==LineMarkerInteraction.None&&(this._interaction!==LineMarkerInteraction.Drag||this._capturedEle&&this._lines!==LineMarkerLines.None)){if(_)if(this._contentDragStartPoint){h.x=u?this._targetPoint.x:this._mouseDownCrossPoint.x+h.x-this._contentDragStartPoint.x;h.y=c?this._targetPoint.y:this._mouseDownCrossPoint.y+h.y-this._contentDragStartPoint.y}else u||!this._dragLines&&this._capturedEle===this._hLine?h.x=this._targetPoint.x:(c||!this._dragLines&&this._capturedEle===this._vLine)&&(h.y=this._targetPoint.y);if(_&&this._lines===LineMarkerLines.Horizontal||!this._dragLines&&this._capturedEle===this._hLine){if(h.y<=l.top||h.y>=l.top+l.height)return}else if(_&&this._lines===LineMarkerLines.Vertical||!this._dragLines&&this._capturedEle===this._vLine){if(h.x<=l.left||h.x>=l.left+l.width)return}else{var d=this._getTop();if(h.x<=l.left||h.y<=d||h.x>=l.left+l.width||h.y>=d+l.height)return}if(null!=p&&p>=0&&p<a.series.length){if(null==(i=(e=a.series[p]).hitTest(new wijmo_1.Point(h.x,NaN)))||null==i.x||null==i.y)return;r=e.axisX||a.axisX;n=e._getAxisY();s=wijmo_1.isDate(i.x)?FlexChartCore._toOADate(i.x):i.x;s=wijmo_1.isString(s)?i.pointIndex:s;o=wijmo_1.isDate(i.y)?FlexChartCore._toOADate(i.y):i.y;var g=this._getElementPaddingValuee(a.hostElement,"padding-left"),m=this._getElementPaddingValuee(a.hostElement,"padding-top");h.x=r.convert(s)+g+f.left;this.chart._stacking!=Stacking.None&&(o=this._calcStackedValue(p,s,o));h.y=n.convert(o)+m+f.top}this._updateMarkerPosition(h);t.preventDefault()}};LineMarker.prototype._calcStackedValue=function(t,e,i){for(var r=i,n=this.chart._stacking==Stacking.Stacked100pc,s=0;s<t;s++){var o=this.chart.series[s],a=o.getValues(1),h=o.getValues(0);if(h)for(var l=0;l<h.length;l++){if(e===(a?a[l]:l)){Number.isFinite(h[l])&&(n||this._sign(i)==this._sign(h[l]))&&(r+=h[l]);break}}}n&&r&&(r/=this.chart._dataInfo.getStackedAbsSum(e))>1&&(r=1);return r};LineMarker.prototype._sign=function(t){return t>0?1:t<0?-1:0};LineMarker.prototype._getElementPaddingValuee=function(t,e){return+window.getComputedStyle(t,null).getPropertyValue(e).replace("px","")};LineMarker.prototype._show=function(t){(t||this._marker).style.display="block"};LineMarker.prototype._hide=function(t){(t||this._marker).style.display="none"};LineMarker.prototype._toggleVisibility=function(){this._isVisible?this._show():this._hide()};LineMarker.prototype._resetDefaultValue=function(){this._isVisible=!0;this._alignment=LineMarkerAlignment.Auto;this._lines=LineMarkerLines.None;this._interaction=LineMarkerInteraction.None;this._horizontalPosition=null;this._verticalPosition=null;this._content=null;this._seriesIndex=null;this._dragThreshold=15;this._dragContent=!1;this._dragLines=!1;this._targetPoint=new wijmo_1.Point};LineMarker.prototype._initialize=function(){var t,e=this._chart.hostElement.querySelector("."+FlexChartCore._CSS_PLOT_AREA);this._plot=e;this._marker||this._createMarker();if(e){this._plotRect=wijmo_1.getElementRect(e);t=e.getBBox();this._plotRect.width=t.width;this._plotRect.height=t.height;this._updateMarkerSize();this._updateLinesSize()}this._updateMarkerPosition();this._wrapperMoveMarker=this._moveMarker.bind(this);this._attach()};LineMarker.prototype._createMarker=function(){var t,e;t=document.createElement("div");wijmo_1.addClass(t,LineMarker._CSS_MARKER);(e=this._getContainer()).appendChild(t);this._markerContainer=e;this._marker=t;this._createChildren()};LineMarker.prototype._removeMarker=function(){var t=this._markerContainer;t.removeChild(this._marker);this._content=null;this._hLine=null;this._vLine=null;if(!t.hasChildNodes()){this._chart.hostElement.removeChild(this._markerContainer);this._markerContainer=null}this._marker=null};LineMarker.prototype._getContainer=function(){var t=this._chart.hostElement.querySelector(LineMarker._CSS_MARKER_CONTAINER);t||(t=this._createContainer());return t};LineMarker.prototype._createContainer=function(){var t=document.createElement("div"),e=this._chart.hostElement;wijmo_1.addClass(t,LineMarker._CSS_MARKER_CONTAINER);e.insertBefore(t,e.firstChild);return t};LineMarker.prototype._createChildren=function(){var t,e,i,r,n=this._marker;(r=document.createElement("div")).style.position="absolute";r.style.height="100%";r.style.width="100%";n.appendChild(r);this._dragEle=r;t=document.createElement("div");wijmo_1.addClass(t,LineMarker._CSS_MARKER_CONTENT);n.appendChild(t);this._markerContent=t;e=document.createElement("div");wijmo_1.addClass(e,LineMarker._CSS_MARKER_HLINE);n.appendChild(e);this._hLine=e;i=document.createElement("div");wijmo_1.addClass(i,LineMarker._CSS_MARKER_VLINE);n.appendChild(i);this._vLine=i;this._toggleElesDraggableClass(this._interaction===LineMarkerInteraction.Drag);this._resetLinesVisibility()};LineMarker.prototype._toggleElesDraggableClass=function(t){wijmo_1.toggleClass(this._hLine,LineMarker._CSS_LINE_DRAGGABLE,t);wijmo_1.toggleClass(this._vLine,LineMarker._CSS_LINE_DRAGGABLE,t);wijmo_1.toggleClass(this._dragEle,LineMarker._CSS_LINE_DRAGGABLE,t&&this._dragContent&&this._lines!==LineMarkerLines.None)};LineMarker.prototype._updateMarkerSize=function(){var t=this._plotRect,e=this._chart.hostElement,i=window.getComputedStyle(e,null),r=wijmo_1.getElementRect(e);if(this._marker){this._marker.style.marginTop=t.top-r.top-(parseFloat(i.getPropertyValue("padding-top"))||0)+"px";this._marker.style.marginLeft=t.left-r.left-(parseFloat(i.getPropertyValue("padding-left"))||0)+"px"}};LineMarker.prototype._updateLinesSize=function(){var t=this._plotRect;if(this._hLine&&this._vLine){this._hLine.style.width=t.width+"px";this._vLine.style.height=t.height+"px"}};LineMarker.prototype._resetLinesVisibility=function(){if(this._hLine&&this._vLine){this._hide(this._hLine);this._hide(this._vLine);this._lines!==LineMarkerLines.Horizontal&&this._lines!==LineMarkerLines.Both||this._show(this._hLine);this._lines!==LineMarkerLines.Vertical&&this._lines!==LineMarkerLines.Both||this._show(this._vLine)}};LineMarker.prototype._updateMarkerPosition=function(t){var e,i,r=this._plotRect,n=this._targetPoint,s=!1;this._interaction,LineMarkerInteraction.Drag;if(this._plot){e=r.left+r.width*(this._horizontalPosition||0);i=r.top+r.height*(this._verticalPosition||0);null==this._horizontalPosition&&t?e=t.x:this._savedPosition.x>0&&(e=r.left+r.width*this._savedPosition.x);null==this._verticalPosition&&t?i=t.y:this._savedPosition.y>0&&(i=r.top+r.height*this._savedPosition.y);e===n.x&&i===n.y||(s=!0);n.x=e;n.y=i;this._savedPosition.x=wijmo_1.clamp((e-r.left)/r.width,0,1);this._savedPosition.y=wijmo_1.clamp((i-r.top)/r.height,0,1);this._toggleVisibility();this._content&&this._updateContent();s&&this._raisePositionChanged(e,i);this._updatePositionByAlignment(!!t)}};LineMarker.prototype._updateContent=function(){var t,e=this._chart,i=this._targetPoint,r=e.hitTest(i);t=this._content.call(null,r,i);this._markerContent.innerHTML=t||""};LineMarker.prototype._raisePositionChanged=function(t,e){this._plotRect;this.onPositionChanged(new wijmo_1.Point(t,e))};LineMarker.prototype._updatePositionByAlignment=function(t){var e=this._alignment,i=this._targetPoint,r=this._marker,n=0,s=0,o=r.clientWidth,a=r.clientHeight,h=this._plotRect;if(this._plot){var l=this._getTop();if(!this._capturedEle||this._capturedEle&&this._capturedEle!==this._markerContent){if(e===LineMarkerAlignment.Auto){i.x+o+12>h.left+h.width&&i.x-o>=0&&(s=o);n=a;i.y-a<l&&(n=0)}else{1==(1&e)&&(s=o);2==(2&e)&&(n=a)}this._interaction===LineMarkerInteraction.Move&&0===n&&0===s&&null==this.verticalPosition&&(s=-12)}else{parseInt(this._hLine.style.top)>0&&(n=a);parseInt(this._vLine.style.left)>0&&(s=o)}r.style.left=i.x-s-h.left+"px";r.style.top=i.y-n-l+"px";this._hLine.style.top=n+"px";this._hLine.style.left=h.left-i.x+s+"px";this._vLine.style.top=l-i.y+n+"px";this._vLine.style.left=s+"px"}};LineMarker.prototype._getEventPoint=function(t){return t instanceof MouseEvent?new wijmo_1.Point(t.pageX,t.pageY):new wijmo_1.Point(t.changedTouches[0].pageX,t.changedTouches[0].pageY)};LineMarker.prototype._pointInRect=function(t,e){return!(!t||!e)&&(t.x>=e.left&&t.x<=e.left+e.width&&t.y>=e.top&&t.y<=e.top+e.height)};LineMarker.prototype._getTop=function(){var t=0,e=this.chart._getHostComputedStyle();if(e){t+=this.chart._parsePx(e.paddingTop);t+=this.chart._parsePx(e.borderTopWidth);t+=this.chart._parsePx(e.marginTop)}return this._chart._plotRect.top+this._plot.getBoundingClientRect().top-t};LineMarker._CSS_MARKER=exports.LineMarkerClsNames.linemarker;LineMarker._CSS_MARKER_HLINE=exports.LineMarkerClsNames.hline;LineMarker._CSS_MARKER_VLINE=exports.LineMarkerClsNames.vline;LineMarker._CSS_MARKER_CONTENT=exports.LineMarkerClsNames.content;LineMarker._CSS_MARKER_CONTAINER=exports.LineMarkerClsNames.container;LineMarker._CSS_LINE_DRAGGABLE=exports.LineMarkerClsNames.draggable;LineMarker._CSS_TOUCH_DISABLED=exports.FlexChartClsNames.touchDisabled;return LineMarker}();exports.LineMarker=LineMarker;var _LinePlotter=function(t){__extends(_LinePlotter,t);function _LinePlotter(){var e=t.call(this)||this;e.hasSymbols=!1;e.hasLines=!0;e.isSpline=!1;e.isStep=!1;e.hitTestSymbols=!0;e.stacking=Stacking.None;e.stackPos={};e.stackNeg={};e.clipping=!1;return e}_LinePlotter.prototype.clear=function(){t.prototype.clear.call(this);this.stackNeg={};this.stackPos={}};_LinePlotter.prototype.adjustLimits=function(t,e){this.dataInfo=t;var i=t.getMinX(),r=t.getMinY(),n=t.getMaxX(),s=t.getMaxY();if(this.isSpline&&!this.chart.axisY._getLogBase()){var o=.1*(s-r);r-=o;s+=o}return this.rotated?new wijmo_1.Rect(r,i,s-r,n-i):new wijmo_1.Rect(i,r,n-i,s-r)};_LinePlotter.prototype.plotSeries=function(t,e,i,r,n,s,o,a){var h=[],l=wijmo_1.asType(r,SeriesBase),_=this.chart.series.indexOf(r),u=r.getValues(0),c=r.getValues(1);if(u){c||(c=this.dataInfo.getXVals());var p=_BasePlotter.cloneStyle(r.style,["fill"]),f=u.length,d=!0;if(c)f=Math.min(f,c.length);else{d=!1;c=new Array(f)}var g=this._DEFAULT_WIDTH,m=l._getSymbolFill(_),x=l._getAltSymbolFill(_)||m,y=l._getSymbolStroke(_),b=l._getAltSymbolStroke(_)||y,v=l._getSymbolSize();t.stroke=y;t.strokeWidth=g;t.fill=m;var w=new Float64Array(f),S=new Float64Array(f),C=0,P=new Int8Array(f),A=0,M=this.rotated,T=this.stacking!=Stacking.None&&!l._isCustomAxisY(),L=this.stacking==Stacking.Stacked100pc&&!l._isCustomAxisY();void 0!==l._getChartType()&&(T=L=!1);for(var j=l.interpolateNulls,E=!1,F=this.getItemFormatter(r),k=0;k<f;k++){var N=d?c[k]:k,I=u[k];if(Number.isFinite(N)&&Number.isFinite(I)){if(T){if(L){I/=this.dataInfo.getStackedAbsSum(N)}if(I>=0){var R=isNaN(this.stackPos[N])?0:this.stackPos[N];I=this.stackPos[N]=R+I}else{R=isNaN(this.stackNeg[N])?0:this.stackNeg[N];I=this.stackNeg[N]=R+I}}var B=void 0;if(M){B=new _DataPoint(_,k,I,N);var D=e.convert(I);I=i.convert(N);N=D}else{B=new _DataPoint(_,k,N,I);N=e.convert(N);I=i.convert(I)}if(isNaN(N)||isNaN(I)){E=!0;if(!0!==j){w[C]=NaN;S[C++]=NaN}P[A++]=1;a&&h.push(null)}else{w[C]=N;S[C++]=I;A++;a&&h.push(new wijmo_1.Point(N,I));if(this.hitTestSymbols){var O=new _CircleArea(new wijmo_1.Point(N,I),.5*v);O.tag=B;this.hitTester.add(O,_)}}}else{E=!0;if(!0!==j){w[C]=NaN;S[C++]=NaN}P[A++]=1;a&&h.push(null)}}var V=0;if(this.hasLines){t.fill=null;if(E&&!0!==j){var H=[],G=[];for(k=0;k<f;k++)if(isNaN(w[k])){if(H.length>1){this._drawLines(t,H,G,null,p,this.chart._plotrectId);this.hitTester.add(new _LinesArea(H,G),_);V++}H=[];G=[]}else{H.push(w[k]);G.push(S[k])}if(H.length>1){this._drawLines(t,H,G,null,p,this.chart._plotrectId);this.hitTester.add(new _LinesArea(H,G),_);V++}}else{this._drawLines(t,w,S,null,p,this.chart._plotrectId,C);this.hitTester.add(new _LinesArea(w,S),_);V++}}if(this.hasSymbols&&v>0||F){t.fill=m;var z=0;for(k=0;k<f;k++)if(!j||!P[k]){N=w[z],I=S[z];if(!1===this.hasLines||F){t.fill=u[k]>0?m:x;t.stroke=u[k]>0?y:b;t.strokeWidth=g}if(this.isValid(N,I,e,i)){this._drawSymbol(t,N,I,v,l,k,F);r._setPointIndex(k,V);V++}z++}}a&&h&&h.length&&a(h)}};_LinePlotter.prototype._drawLines=function(t,e,i,r,n,s,o){if(this.isSpline&&o>3)t.drawSplines(e,i,r,n,s,o);else if(this.isStep){var a=this._createSteps(e,i,o);e=a.x;i=a.y;t.drawLines(e,i,r,n,s)}else t.drawLines(e,i,r,n,s,o)};_LinePlotter.prototype._drawSymbol=function(t,e,i,r,n,s,o){var a=this;if(o){t.startGroup();var h=new HitTestInfo(this.chart,new wijmo_1.Point(e,i),ChartElement.SeriesSymbol);h._setData(n,s);o(t,h,(function(){a.hasSymbols&&r>0&&a._drawDefaultSymbol(t,e,i,r,n.symbolMarker,n.symbolStyle)}));t.cssPriority=!0;t.endGroup()}else this._drawDefaultSymbol(t,e,i,r,n.symbolMarker,n.symbolStyle)};_LinePlotter.prototype._drawDefaultSymbol=function(t,e,i,r,n,s){n==Marker.Dot?t.drawEllipse(e,i,.5*r,.5*r,null,s):n==Marker.Box&&t.drawRect(e-.5*r,i-.5*r,r,r,null,s)};return _LinePlotter}(_BasePlotter);exports._LinePlotter=_LinePlotter;var _BubblePlotter=function(t){__extends(_BubblePlotter,t);function _BubblePlotter(){var e=t.call(this)||this;e._MIN_SIZE=5;e._MAX_SIZE=30;e.hasLines=!1;e.hasSymbols=!0;e.clipping=!0;e.hitTestSymbols=!1;return e}_BubblePlotter.prototype.adjustLimits=function(e,i){var r=this.getNumOption("minSize","bubble");this._minSize=r||this._MIN_SIZE;var n=this.getNumOption("maxSize","bubble");this._maxSize=n||this._MAX_SIZE;for(var s=this.chart.series,o=s.length,a=NaN,h=NaN,l=0;l<o;l++){if((m=s[l])._getChartType()==ChartType.Bubble||null==m._getChartType()&&m._chart._getChartType()==ChartType.Bubble){if(x=m._getBindingValues(1))for(var _=x.length,u=0;u<_;u++)if(Number.isFinite(x[u])){(isNaN(a)||x[u]<a)&&(a=x[u]);(isNaN(h)||x[u]>h)&&(h=x[u])}}}this._minValue=a;this._maxValue=h;var c=t.prototype.adjustLimits.call(this,e,i),p=i.left,f=i.right,d=i.top,g=i.bottom;for(l=0;l<o;l++){var m;if((m=s[l])._getChartType()==ChartType.Bubble||null==m._getChartType()&&m._chart._getChartType()==ChartType.Bubble){var x=m._getBindingValues(1),y=m.getValues(1),b=m.getValues(0);if(x&&y&&b)for(_=x.length,u=0;u<_;u++){var v=y?y[u]:u,w=b[u],S=x[u];if(_DataInfo.isValid(v,w,S)){v=i.left+i.width*(v-c.left)/c.width;w=i.top+i.height*(w-c.top)/c.height;v-(S=this._minSize+(this._maxSize-this._minSize)*(S-a)/(h-a))<p&&(p=v-S);v+S>f&&(f=v+S);w-S<d&&(d=w-S);w+S>g&&(g=w+S)}}}}p=i.left-p+5;f=f-i.right+5;d=i.top-d+5;g=g-i.bottom+5;var C=this.chart.axisX,P=this.chart.axisY;if(!C._isLogAxis())if(this.stacking==Stacking.Stacked100pc&&this.rotated){var A=(i.width-this._maxSize)/c.width;c.left-=.5*this._maxSize/A;c.width+=this._maxSize/A}else{A=(i.width-(p+f))/c.width;c.left-=p/A;c.width+=(p+f)/A}if(!P._isLogAxis())if(this.stacking!=Stacking.Stacked100pc||this.rotated){M=(i.height-(d+g))/c.height;c.top-=d/M;c.height+=(d+g)/M}else{var M=(i.height-this._maxSize)/c.height;c.top-=.5*this._maxSize/M;c.height+=this._maxSize/M}return c};_BubblePlotter.prototype._drawSymbol=function(t,e,i,r,n,s,o){var a=this;if(null==this._minSize){var h=this.getNumOption("minSize","bubble");this._minSize=h||this._MIN_SIZE}if(null==this._maxSize){var l=this.getNumOption("maxSize","bubble");this._maxSize=l||this._MAX_SIZE}var _=n._getItem(s);if(_){var u=n._getBinding(1);if(u){var c=_[u];if(Number.isFinite(c)){null==c&&(c=this._minValue);var p=this._minValue==this._maxValue?1:Math.sqrt((c-this._minValue)/(this._maxValue-this._minValue));c=this._minSize+(this._maxSize-this._minSize)*p;if(o){var f=new HitTestInfo(this.chart,new wijmo_1.Point(e,i),ChartElement.SeriesSymbol);f._setData(n,s);t.startGroup();o(t,f,(function(){a._drawDefaultSymbol(t,e,i,c,n.symbolMarker,n.symbolStyle)}));t.endGroup()}else this._drawDefaultSymbol(t,e,i,c,n.symbolMarker,n.symbolStyle);var d=n.getValues(1);d||(d=this.dataInfo.getXVals());var g=d?d[s]:s,m=n.getValues(0)[s],x=this.chart.series.indexOf(n),y=new _CircleArea(new wijmo_1.Point(e,i),.5*c);y.tag=new _DataPoint(x,s,g,m);this.hitTester.add(y,x)}}}};return _BubblePlotter}(_LinePlotter);exports._BubblePlotter=_BubblePlotter;wijmo_1._registerModule("wijmo.chart",selfModule);