@macallumharvey/first-test-wet 1.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (292) hide show
  1. package/dist/WetButton.d.ts +9 -0
  2. package/dist/WetModal.d.ts +6 -0
  3. package/dist/first-test-wet.cjs.development.js +26 -0
  4. package/dist/first-test-wet.cjs.development.js.map +1 -1
  5. package/dist/first-test-wet.cjs.production.min.js +1 -1
  6. package/dist/first-test-wet.cjs.production.min.js.map +1 -1
  7. package/dist/first-test-wet.esm.js +26 -1
  8. package/dist/first-test-wet.esm.js.map +1 -1
  9. package/dist/index.d.ts +1 -0
  10. package/package.json +1 -1
  11. package/src/WetButton.tsx +19 -0
  12. package/src/WetModal.tsx +26 -0
  13. package/src/index.tsx +2 -2
  14. package/src/theme-wet-boew/assets/favicon-mobile.png +0 -0
  15. package/src/theme-wet-boew/assets/favicon.ico +0 -0
  16. package/src/theme-wet-boew/assets/logo.png +0 -0
  17. package/src/theme-wet-boew/assets/logo.svg +14 -0
  18. package/src/theme-wet-boew/css/ie8-theme.css +17370 -0
  19. package/src/theme-wet-boew/css/ie8-theme.min.css +193 -0
  20. package/src/theme-wet-boew/css/ie8-wet-boew.css +12 -0
  21. package/src/theme-wet-boew/css/ie8-wet-boew.min.css +7 -0
  22. package/src/theme-wet-boew/css/theme.css +11357 -0
  23. package/src/theme-wet-boew/css/theme.min.css +6 -0
  24. package/src/theme-wet-boew/css/wet-boew.css +12 -0
  25. package/src/theme-wet-boew/css/wet-boew.min.css +6 -0
  26. package/src/theme-wet-boew/payload.json +66 -0
  27. package/src/wet-boew/assets/cloud-popup-relative.png +0 -0
  28. package/src/wet-boew/assets/fd-slider-sprite.png +0 -0
  29. package/src/wet-boew/assets/loading.png +0 -0
  30. package/src/wet-boew/assets/mediacontrols.html +32 -0
  31. package/src/wet-boew/assets/sprites_share.png +0 -0
  32. package/src/wet-boew/assets/zoom-minus-mini.png +0 -0
  33. package/src/wet-boew/assets/zoom-plus-mini.png +0 -0
  34. package/src/wet-boew/assets/zoom-world-mini.png +0 -0
  35. package/src/wet-boew/css/noscript.css +112 -0
  36. package/src/wet-boew/css/noscript.min.css +6 -0
  37. package/src/wet-boew/css/polyfills/datalist.css +32 -0
  38. package/src/wet-boew/css/polyfills/datalist.min.css +1 -0
  39. package/src/wet-boew/css/polyfills/datepicker.css +47 -0
  40. package/src/wet-boew/css/polyfills/datepicker.min.css +1 -0
  41. package/src/wet-boew/css/polyfills/details.css +28 -0
  42. package/src/wet-boew/css/polyfills/details.min.css +1 -0
  43. package/src/wet-boew/css/polyfills/mathml.css +16 -0
  44. package/src/wet-boew/css/polyfills/mathml.min.css +1 -0
  45. package/src/wet-boew/css/polyfills/meter.css +24 -0
  46. package/src/wet-boew/css/polyfills/meter.min.css +1 -0
  47. package/src/wet-boew/css/polyfills/progress.css +8 -0
  48. package/src/wet-boew/css/polyfills/progress.min.css +1 -0
  49. package/src/wet-boew/css/polyfills/slider.css +229 -0
  50. package/src/wet-boew/css/polyfills/slider.min.css +1 -0
  51. package/src/wet-boew/fonts/glyphicons-halflings-regular.eot +0 -0
  52. package/src/wet-boew/fonts/glyphicons-halflings-regular.svg +288 -0
  53. package/src/wet-boew/fonts/glyphicons-halflings-regular.ttf +0 -0
  54. package/src/wet-boew/fonts/glyphicons-halflings-regular.woff +0 -0
  55. package/src/wet-boew/fonts/glyphicons-halflings-regular.woff2 +0 -0
  56. package/src/wet-boew/js/MathJax/mml-chtml.js +1 -0
  57. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_AMS-Regular.woff +0 -0
  58. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Bold.woff +0 -0
  59. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Calligraphic-Regular.woff +0 -0
  60. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Bold.woff +0 -0
  61. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Fraktur-Regular.woff +0 -0
  62. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Bold.woff +0 -0
  63. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Italic.woff +0 -0
  64. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Main-Regular.woff +0 -0
  65. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-BoldItalic.woff +0 -0
  66. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Italic.woff +0 -0
  67. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Math-Regular.woff +0 -0
  68. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Bold.woff +0 -0
  69. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Italic.woff +0 -0
  70. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_SansSerif-Regular.woff +0 -0
  71. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Script-Regular.woff +0 -0
  72. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size1-Regular.woff +0 -0
  73. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size2-Regular.woff +0 -0
  74. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size3-Regular.woff +0 -0
  75. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Size4-Regular.woff +0 -0
  76. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Typewriter-Regular.woff +0 -0
  77. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Bold.woff +0 -0
  78. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Vector-Regular.woff +0 -0
  79. package/src/wet-boew/js/MathJax/output/chtml/fonts/woff-v2/MathJax_Zero.woff +0 -0
  80. package/src/wet-boew/js/deps/additional-methods.js +1512 -0
  81. package/src/wet-boew/js/deps/additional-methods.min.js +9 -0
  82. package/src/wet-boew/js/deps/geomap-lib.js +3758 -0
  83. package/src/wet-boew/js/deps/geomap-lib.min.js +1 -0
  84. package/src/wet-boew/js/deps/jquery.dataTables.js +15345 -0
  85. package/src/wet-boew/js/deps/jquery.dataTables.min.js +4 -0
  86. package/src/wet-boew/js/deps/jquery.flot.canvas.js +345 -0
  87. package/src/wet-boew/js/deps/jquery.flot.canvas.min.js +1 -0
  88. package/src/wet-boew/js/deps/jquery.flot.js +3168 -0
  89. package/src/wet-boew/js/deps/jquery.flot.min.js +1 -0
  90. package/src/wet-boew/js/deps/jquery.flot.orderBars.js +282 -0
  91. package/src/wet-boew/js/deps/jquery.flot.orderBars.min.js +1 -0
  92. package/src/wet-boew/js/deps/jquery.flot.pie.js +820 -0
  93. package/src/wet-boew/js/deps/jquery.flot.pie.min.js +1 -0
  94. package/src/wet-boew/js/deps/jquery.magnific-popup.js +2061 -0
  95. package/src/wet-boew/js/deps/jquery.magnific-popup.min.js +4 -0
  96. package/src/wet-boew/js/deps/jquery.validate.js +1661 -0
  97. package/src/wet-boew/js/deps/jquery.validate.min.js +9 -0
  98. package/src/wet-boew/js/deps/json-patch.js +315 -0
  99. package/src/wet-boew/js/deps/json-patch.min.js +1 -0
  100. package/src/wet-boew/js/deps/jsonpointer.js +349 -0
  101. package/src/wet-boew/js/deps/jsonpointer.min.js +1 -0
  102. package/src/wet-boew/js/deps/lang-apollo.js +53 -0
  103. package/src/wet-boew/js/deps/lang-apollo.min.js +1 -0
  104. package/src/wet-boew/js/deps/lang-basic.js +49 -0
  105. package/src/wet-boew/js/deps/lang-basic.min.js +1 -0
  106. package/src/wet-boew/js/deps/lang-clj.js +64 -0
  107. package/src/wet-boew/js/deps/lang-clj.min.js +1 -0
  108. package/src/wet-boew/js/deps/lang-css.js +160 -0
  109. package/src/wet-boew/js/deps/lang-css.min.js +1 -0
  110. package/src/wet-boew/js/deps/lang-dart.js +92 -0
  111. package/src/wet-boew/js/deps/lang-dart.min.js +1 -0
  112. package/src/wet-boew/js/deps/lang-erlang.js +94 -0
  113. package/src/wet-boew/js/deps/lang-erlang.min.js +1 -0
  114. package/src/wet-boew/js/deps/lang-go.js +59 -0
  115. package/src/wet-boew/js/deps/lang-go.min.js +1 -0
  116. package/src/wet-boew/js/deps/lang-hs.js +102 -0
  117. package/src/wet-boew/js/deps/lang-hs.min.js +1 -0
  118. package/src/wet-boew/js/deps/lang-lasso.js +67 -0
  119. package/src/wet-boew/js/deps/lang-lasso.min.js +1 -0
  120. package/src/wet-boew/js/deps/lang-lisp.js +95 -0
  121. package/src/wet-boew/js/deps/lang-lisp.min.js +1 -0
  122. package/src/wet-boew/js/deps/lang-llvm.js +63 -0
  123. package/src/wet-boew/js/deps/lang-llvm.min.js +1 -0
  124. package/src/wet-boew/js/deps/lang-logtalk.js +50 -0
  125. package/src/wet-boew/js/deps/lang-logtalk.min.js +1 -0
  126. package/src/wet-boew/js/deps/lang-lua.js +60 -0
  127. package/src/wet-boew/js/deps/lang-lua.min.js +1 -0
  128. package/src/wet-boew/js/deps/lang-matlab.js +183 -0
  129. package/src/wet-boew/js/deps/lang-matlab.min.js +1 -0
  130. package/src/wet-boew/js/deps/lang-ml.js +57 -0
  131. package/src/wet-boew/js/deps/lang-ml.min.js +1 -0
  132. package/src/wet-boew/js/deps/lang-mumps.js +140 -0
  133. package/src/wet-boew/js/deps/lang-mumps.min.js +1 -0
  134. package/src/wet-boew/js/deps/lang-n.js +67 -0
  135. package/src/wet-boew/js/deps/lang-n.min.js +1 -0
  136. package/src/wet-boew/js/deps/lang-pascal.js +49 -0
  137. package/src/wet-boew/js/deps/lang-pascal.min.js +1 -0
  138. package/src/wet-boew/js/deps/lang-proto.js +37 -0
  139. package/src/wet-boew/js/deps/lang-proto.min.js +1 -0
  140. package/src/wet-boew/js/deps/lang-r.js +59 -0
  141. package/src/wet-boew/js/deps/lang-r.min.js +1 -0
  142. package/src/wet-boew/js/deps/lang-rd.js +50 -0
  143. package/src/wet-boew/js/deps/lang-rd.min.js +1 -0
  144. package/src/wet-boew/js/deps/lang-rust.js +81 -0
  145. package/src/wet-boew/js/deps/lang-rust.min.js +1 -0
  146. package/src/wet-boew/js/deps/lang-scala.js +56 -0
  147. package/src/wet-boew/js/deps/lang-scala.min.js +1 -0
  148. package/src/wet-boew/js/deps/lang-sql.js +59 -0
  149. package/src/wet-boew/js/deps/lang-sql.min.js +1 -0
  150. package/src/wet-boew/js/deps/lang-swift.js +60 -0
  151. package/src/wet-boew/js/deps/lang-swift.min.js +1 -0
  152. package/src/wet-boew/js/deps/lang-tcl.js +63 -0
  153. package/src/wet-boew/js/deps/lang-tcl.min.js +1 -0
  154. package/src/wet-boew/js/deps/lang-tex.js +49 -0
  155. package/src/wet-boew/js/deps/lang-tex.min.js +1 -0
  156. package/src/wet-boew/js/deps/lang-vb.js +67 -0
  157. package/src/wet-boew/js/deps/lang-vb.min.js +1 -0
  158. package/src/wet-boew/js/deps/lang-vhdl.js +51 -0
  159. package/src/wet-boew/js/deps/lang-vhdl.min.js +1 -0
  160. package/src/wet-boew/js/deps/lang-wiki.js +55 -0
  161. package/src/wet-boew/js/deps/lang-wiki.min.js +1 -0
  162. package/src/wet-boew/js/deps/lang-xq.js +71 -0
  163. package/src/wet-boew/js/deps/lang-xq.min.js +1 -0
  164. package/src/wet-boew/js/deps/lang-yaml.js +45 -0
  165. package/src/wet-boew/js/deps/lang-yaml.min.js +1 -0
  166. package/src/wet-boew/js/deps/ol.js +1008 -0
  167. package/src/wet-boew/js/deps/ol.min.js +1 -0
  168. package/src/wet-boew/js/deps/prettify.js +1742 -0
  169. package/src/wet-boew/js/deps/prettify.min.js +1 -0
  170. package/src/wet-boew/js/deps/proj4.js +3 -0
  171. package/src/wet-boew/js/deps/proj4.min.js +1 -0
  172. package/src/wet-boew/js/deps/run_prettify.js +1998 -0
  173. package/src/wet-boew/js/deps/run_prettify.min.js +1 -0
  174. package/src/wet-boew/js/deps/tableparser.js +2216 -0
  175. package/src/wet-boew/js/deps/tableparser.min.js +1 -0
  176. package/src/wet-boew/js/deps/unorm.js +452 -0
  177. package/src/wet-boew/js/deps/unorm.min.js +1 -0
  178. package/src/wet-boew/js/i18n/af.js +246 -0
  179. package/src/wet-boew/js/i18n/af.min.js +7 -0
  180. package/src/wet-boew/js/i18n/ar.js +285 -0
  181. package/src/wet-boew/js/i18n/ar.min.js +7 -0
  182. package/src/wet-boew/js/i18n/bg.js +285 -0
  183. package/src/wet-boew/js/i18n/bg.min.js +7 -0
  184. package/src/wet-boew/js/i18n/cs.js +286 -0
  185. package/src/wet-boew/js/i18n/cs.min.js +7 -0
  186. package/src/wet-boew/js/i18n/de.js +355 -0
  187. package/src/wet-boew/js/i18n/de.min.js +7 -0
  188. package/src/wet-boew/js/i18n/el.js +285 -0
  189. package/src/wet-boew/js/i18n/el.min.js +7 -0
  190. package/src/wet-boew/js/i18n/en.js +246 -0
  191. package/src/wet-boew/js/i18n/en.min.js +7 -0
  192. package/src/wet-boew/js/i18n/es.js +288 -0
  193. package/src/wet-boew/js/i18n/es.min.js +7 -0
  194. package/src/wet-boew/js/i18n/et.js +283 -0
  195. package/src/wet-boew/js/i18n/et.min.js +7 -0
  196. package/src/wet-boew/js/i18n/fr.js +314 -0
  197. package/src/wet-boew/js/i18n/fr.min.js +7 -0
  198. package/src/wet-boew/js/i18n/hi.js +246 -0
  199. package/src/wet-boew/js/i18n/hi.min.js +7 -0
  200. package/src/wet-boew/js/i18n/hu.js +285 -0
  201. package/src/wet-boew/js/i18n/hu.min.js +7 -0
  202. package/src/wet-boew/js/i18n/hy.js +246 -0
  203. package/src/wet-boew/js/i18n/hy.min.js +7 -0
  204. package/src/wet-boew/js/i18n/id.js +284 -0
  205. package/src/wet-boew/js/i18n/id.min.js +7 -0
  206. package/src/wet-boew/js/i18n/is.js +283 -0
  207. package/src/wet-boew/js/i18n/is.min.js +7 -0
  208. package/src/wet-boew/js/i18n/it.js +312 -0
  209. package/src/wet-boew/js/i18n/it.min.js +7 -0
  210. package/src/wet-boew/js/i18n/iu.js +246 -0
  211. package/src/wet-boew/js/i18n/iu.min.js +7 -0
  212. package/src/wet-boew/js/i18n/ja.js +286 -0
  213. package/src/wet-boew/js/i18n/ja.min.js +7 -0
  214. package/src/wet-boew/js/i18n/ko.js +285 -0
  215. package/src/wet-boew/js/i18n/ko.min.js +7 -0
  216. package/src/wet-boew/js/i18n/lt.js +285 -0
  217. package/src/wet-boew/js/i18n/lt.min.js +7 -0
  218. package/src/wet-boew/js/i18n/lv.js +285 -0
  219. package/src/wet-boew/js/i18n/lv.min.js +7 -0
  220. package/src/wet-boew/js/i18n/nl.js +319 -0
  221. package/src/wet-boew/js/i18n/nl.min.js +7 -0
  222. package/src/wet-boew/js/i18n/pl.js +288 -0
  223. package/src/wet-boew/js/i18n/pl.min.js +7 -0
  224. package/src/wet-boew/js/i18n/pt-BR.js +246 -0
  225. package/src/wet-boew/js/i18n/pt-BR.min.js +7 -0
  226. package/src/wet-boew/js/i18n/pt.js +271 -0
  227. package/src/wet-boew/js/i18n/pt.min.js +7 -0
  228. package/src/wet-boew/js/i18n/ru.js +285 -0
  229. package/src/wet-boew/js/i18n/ru.min.js +7 -0
  230. package/src/wet-boew/js/i18n/sk.js +283 -0
  231. package/src/wet-boew/js/i18n/sk.min.js +7 -0
  232. package/src/wet-boew/js/i18n/sq.js +246 -0
  233. package/src/wet-boew/js/i18n/sq.min.js +7 -0
  234. package/src/wet-boew/js/i18n/th.js +285 -0
  235. package/src/wet-boew/js/i18n/th.min.js +7 -0
  236. package/src/wet-boew/js/i18n/tr.js +287 -0
  237. package/src/wet-boew/js/i18n/tr.min.js +7 -0
  238. package/src/wet-boew/js/i18n/uk.js +285 -0
  239. package/src/wet-boew/js/i18n/uk.min.js +7 -0
  240. package/src/wet-boew/js/i18n/vi.js +285 -0
  241. package/src/wet-boew/js/i18n/vi.min.js +7 -0
  242. package/src/wet-boew/js/i18n/zh-Hans.js +246 -0
  243. package/src/wet-boew/js/i18n/zh-Hans.min.js +7 -0
  244. package/src/wet-boew/js/i18n/zh.js +286 -0
  245. package/src/wet-boew/js/i18n/zh.min.js +7 -0
  246. package/src/wet-boew/js/ie8-wet-boew.js +3992 -0
  247. package/src/wet-boew/js/ie8-wet-boew.min.js +7 -0
  248. package/src/wet-boew/js/ie8-wet-boew2.js +15294 -0
  249. package/src/wet-boew/js/ie8-wet-boew2.min.js +7 -0
  250. package/src/wet-boew/js/jquery/2.2.4/jquery.js +9814 -0
  251. package/src/wet-boew/js/jquery/2.2.4/jquery.min.js +4 -0
  252. package/src/wet-boew/js/jquery/2.2.4/jquery.min.map +1 -0
  253. package/src/wet-boew/js/polyfills/datalist.js +423 -0
  254. package/src/wet-boew/js/polyfills/datalist.min.js +8 -0
  255. package/src/wet-boew/js/polyfills/datalist.min.js.map +1 -0
  256. package/src/wet-boew/js/polyfills/datalist_dynamic.js +50 -0
  257. package/src/wet-boew/js/polyfills/datalist_dynamic.min.js +8 -0
  258. package/src/wet-boew/js/polyfills/datalist_dynamic.min.js.map +1 -0
  259. package/src/wet-boew/js/polyfills/datepicker.js +338 -0
  260. package/src/wet-boew/js/polyfills/datepicker.min.js +8 -0
  261. package/src/wet-boew/js/polyfills/datepicker.min.js.map +1 -0
  262. package/src/wet-boew/js/polyfills/details.js +126 -0
  263. package/src/wet-boew/js/polyfills/details.min.js +8 -0
  264. package/src/wet-boew/js/polyfills/details.min.js.map +1 -0
  265. package/src/wet-boew/js/polyfills/jawsariafixes.js +47 -0
  266. package/src/wet-boew/js/polyfills/jawsariafixes.min.js +16 -0
  267. package/src/wet-boew/js/polyfills/jawsariafixes.min.js.map +1 -0
  268. package/src/wet-boew/js/polyfills/meter.js +140 -0
  269. package/src/wet-boew/js/polyfills/meter.min.js +8 -0
  270. package/src/wet-boew/js/polyfills/meter.min.js.map +1 -0
  271. package/src/wet-boew/js/polyfills/mobile.js +783 -0
  272. package/src/wet-boew/js/polyfills/mobile.min.js +8 -0
  273. package/src/wet-boew/js/polyfills/mobile.min.js.map +1 -0
  274. package/src/wet-boew/js/polyfills/progress.js +107 -0
  275. package/src/wet-boew/js/polyfills/progress.min.js +8 -0
  276. package/src/wet-boew/js/polyfills/progress.min.js.map +1 -0
  277. package/src/wet-boew/js/polyfills/slider.js +1343 -0
  278. package/src/wet-boew/js/polyfills/slider.min.js +9 -0
  279. package/src/wet-boew/js/polyfills/slider.min.js.map +1 -0
  280. package/src/wet-boew/js/polyfills/slider_wrapper.js +73 -0
  281. package/src/wet-boew/js/polyfills/slider_wrapper.min.js +8 -0
  282. package/src/wet-boew/js/polyfills/slider_wrapper.min.js.map +1 -0
  283. package/src/wet-boew/js/polyfills/svg.js +29 -0
  284. package/src/wet-boew/js/polyfills/svg.min.js +8 -0
  285. package/src/wet-boew/js/polyfills/svg.min.js.map +1 -0
  286. package/src/wet-boew/js/polyfills/test.js +603 -0
  287. package/src/wet-boew/js/polyfills/test.min.js +8 -0
  288. package/src/wet-boew/js/polyfills/test.min.js.map +1 -0
  289. package/src/wet-boew/js/wet-boew.js +17714 -0
  290. package/src/wet-boew/js/wet-boew.min.js +9 -0
  291. package/src/wet-boew/js/wet-boew.min.js.map +1 -0
  292. package/src/wet-boew/payload.json +1722 -0
@@ -0,0 +1 @@
1
+ !function(a){a.color={},a.color.make=function(t,i,e,o){var n={};return n.r=t||0,n.g=i||0,n.b=e||0,n.a=null!=o?o:1,n.add=function(t,i){for(var e=0;e<t.length;++e)n[t.charAt(e)]+=i;return n.normalize()},n.scale=function(t,i){for(var e=0;e<t.length;++e)n[t.charAt(e)]*=i;return n.normalize()},n.toString=function(){return 1<=n.a?"rgb("+[n.r,n.g,n.b].join(",")+")":"rgba("+[n.r,n.g,n.b,n.a].join(",")+")"},n.normalize=function(){function t(t,i,e){return i<t?t:e<i?e:i}return n.r=t(0,parseInt(n.r),255),n.g=t(0,parseInt(n.g),255),n.b=t(0,parseInt(n.b),255),n.a=t(0,n.a,1),n},n.clone=function(){return a.color.make(n.r,n.b,n.g,n.a)},n.normalize()},a.color.extract=function(t,i){for(var e;(""==(e=t.css(i).toLowerCase())||"transparent"==e)&&((t=t.parent()).length&&!a.nodeName(t.get(0),"body")););return"rgba(0, 0, 0, 0)"==e&&(e="transparent"),a.color.parse(e)},a.color.parse=function(t){var i,e=a.color.make;if(i=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(t))return e(parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3],10));if(i=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(t))return e(parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3],10),parseFloat(i[4]));if(i=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(t))return e(2.55*parseFloat(i[1]),2.55*parseFloat(i[2]),2.55*parseFloat(i[3]));if(i=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(t))return e(2.55*parseFloat(i[1]),2.55*parseFloat(i[2]),2.55*parseFloat(i[3]),parseFloat(i[4]));if(i=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(t))return e(parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16));if(i=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(t))return e(parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16),parseInt(i[3]+i[3],16));t=a.trim(t).toLowerCase();return"transparent"==t?e(255,255,255,0):e((i=o[t]||[0,0,0])[0],i[1],i[2])};var o={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}}(jQuery),function(_){var d=Object.prototype.hasOwnProperty;function V(t,i){var e=i.children("."+t)[0];if(null==e&&((e=document.createElement("canvas")).className=t,_(e).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(i),!e.getContext)){if(!window.G_vmlCanvasManager)throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");e=window.G_vmlCanvasManager.initElement(e)}this.element=e;t=this.context=e.getContext("2d"),e=window.devicePixelRatio||1,t=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;this.pixelRatio=e/t,this.resize(i.width(),i.height()),this.textContainer=null,this.text={},this._textCache={}}function o(d,t,i,o){var T=[],M={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85,sorted:null},xaxis:{show:null,position:"bottom",mode:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1,zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:1e3/60},hooks:{}},u=null,e=null,h=null,k=null,l=null,p=[],m=[],y={left:0,right:0,top:0,bottom:0},w=0,C=0,S={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},W=this;function z(t,i){i=[W].concat(i);for(var e=0;e<t.length;++e)t[e].apply(this,i)}function n(t){T=function(t){for(var i=[],e=0;e<t.length;++e){var o=_.extend(!0,{},M.series);null!=t[e].data?(o.data=t[e].data,delete t[e].data,_.extend(!0,o,t[e]),t[e].data=o.data):o.data=t[e],i.push(o)}return i}(t),function(){var t,i=T.length,e=-1;for(t=0;t<T.length;++t){var o=T[t].color;null!=o&&(i--,"number"==typeof o&&e<o&&(e=o))}i<=e&&(i=e+1);var n,a=[],r=M.colors,l=r.length,s=0;for(t=0;t<i;t++)n=_.color.parse(r[t%l]||"#666"),t%l==0&&t&&(s=0<=s?s<.5?-s-.2:0:-s),a[t]=n.scale("rgb",1+s);var c,h=0;for(t=0;t<T.length;++t){if(null==(c=T[t]).color?(c.color=a[h].toString(),++h):"number"==typeof c.color&&(c.color=a[c.color].toString()),null==c.lines.show){var f,u=!0;for(f in c)if(c[f]&&c[f].show){u=!1;break}u&&(c.lines.show=!0)}null==c.lines.zero&&(c.lines.zero=!!c.lines.fill),c.xaxis=g(p,x(c,"x")),c.yaxis=g(m,x(c,"y"))}}(),function(){var t,i,e,o,n,a,r,l,s,c,h,f,u,d=Number.POSITIVE_INFINITY,p=Number.NEGATIVE_INFINITY,m=Number.MAX_VALUE;function x(t,i,e){i<t.datamin&&i!=-m&&(t.datamin=i),e>t.datamax&&e!=m&&(t.datamax=e)}for(_.each(I(),function(t,i){i.datamin=d,i.datamax=p,i.used=!1}),t=0;t<T.length;++t)(n=T[t]).datapoints={points:[]},z(S.processRawData,[n,n.data,n.datapoints]);for(t=0;t<T.length;++t){var g;if(n=T[t],h=n.data,(f=n.datapoints.format)||((f=[]).push({x:!0,number:!0,required:!0}),f.push({y:!0,number:!0,required:!0}),(n.bars.show||n.lines.show&&n.lines.fill)&&(g=!!(n.bars.show&&n.bars.zero||n.lines.show&&n.lines.zero),f.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:g}),n.bars.horizontal&&(delete f[f.length-1].y,f[f.length-1].x=!0)),n.datapoints.format=f),null==n.datapoints.pointsize){n.datapoints.pointsize=f.length,r=n.datapoints.pointsize,a=n.datapoints.points;var b=n.lines.show&&n.lines.steps;for(n.xaxis.used=n.yaxis.used=!0,i=e=0;i<h.length;++i,e+=r){var v=null==(c=h[i]);if(!v)for(o=0;o<r;++o)l=c[o],(s=f[o])&&(s.number&&null!=l&&(l=+l,isNaN(l)?l=null:l==1/0?l=m:l==-1/0&&(l=-m)),null==l&&(s.required&&(v=!0),null!=s.defaultValue&&(l=s.defaultValue))),a[e+o]=l;if(v)for(o=0;o<r;++o)null!=(l=a[e+o])&&!1!==(s=f[o]).autoscale&&(s.x&&x(n.xaxis,l,l),s.y&&x(n.yaxis,l,l)),a[e+o]=null;else if(b&&0<e&&null!=a[e-r]&&a[e-r]!=a[e]&&a[e-r+1]!=a[e+1]){for(o=0;o<r;++o)a[e+r+o]=a[e+o];a[e+1]=a[e-r+1],e+=r}}}}for(t=0;t<T.length;++t)n=T[t],z(S.processDatapoints,[n,n.datapoints]);for(t=0;t<T.length;++t){n=T[t],a=n.datapoints.points,r=n.datapoints.pointsize,f=n.datapoints.format;var k=d,y=d,w=p,M=p;for(i=0;i<a.length;i+=r)if(null!=a[i])for(o=0;o<r;++o)l=a[i+o],(s=f[o])&&!1!==s.autoscale&&l!=m&&l!=-m&&(s.x&&(l<k&&(k=l),w<l&&(w=l)),s.y&&(l<y&&(y=l),M<l&&(M=l)));if(n.bars.show){switch(n.bars.align){case"left":u=0;break;case"right":u=-n.bars.barWidth;break;default:u=-n.bars.barWidth/2}n.bars.horizontal?(y+=u,M+=u+n.bars.barWidth):(k+=u,w+=u+n.bars.barWidth)}x(n.xaxis,k,w),x(n.yaxis,y,M)}_.each(I(),function(t,i){i.datamin==d&&(i.datamin=null),i.datamax==p&&(i.datamax=null)})}()}function x(t,i){i=t[i+"axis"];return"object"==typeof i&&(i=i.n),"number"!=typeof i&&(i=1),i}function I(){return _.grep(p.concat(m),function(t){return t})}function f(t){for(var i,e={},o=0;o<p.length;++o)(i=p[o])&&i.used&&(e["x"+i.n]=i.c2p(t.left));for(o=0;o<m.length;++o)(i=m[o])&&i.used&&(e["y"+i.n]=i.c2p(t.top));return void 0!==e.x1&&(e.x=e.x1),void 0!==e.y1&&(e.y=e.y1),e}function g(t,i){return t[i-1]||(t[i-1]={n:i,direction:t==p?"x":"y",options:_.extend(!0,{},t==p?M.xaxis:M.yaxis)}),t[i-1]}function a(){P&&clearTimeout(P),h.unbind("mousemove",N),h.unbind("mouseleave",D),h.unbind("click",L),z(S.shutdown,[h])}function r(){var t,i,e=I(),o=M.grid.show;for(i in y){var n=M.grid.margin||0;y[i]="number"==typeof n?n:n[i]||0}for(i in z(S.processOffset,[y]),y)"object"==typeof M.grid.borderWidth?y[i]+=o?M.grid.borderWidth[i]:0:y[i]+=o?M.grid.borderWidth:0;if(_.each(e,function(t,i){var e=i.options;i.show=null==e.show?i.used:e.show,i.reserveSpace=null==e.reserveSpace?i.show:e.reserveSpace,function(t){var i=t.options,e=+(null!=i.min?i.min:t.datamin),o=+(null!=i.max?i.max:t.datamax),n=o-e;{var a;0==n?(a=0==o?1:.01,null==i.min&&(e-=a),null!=i.max&&null==i.min||(o+=a)):null!=(a=i.autoscaleMargin)&&(null==i.min&&(e-=n*a)<0&&null!=t.datamin&&0<=t.datamin&&(e=0),null==i.max&&0<(o+=n*a)&&null!=t.datamax&&t.datamax<=0&&(o=0))}t.min=e,t.max=o}(i)}),o){var a=_.grep(e,function(t){return t.show||t.reserveSpace});for(_.each(a,function(t,i){var e,o;!function(t){var e=t.options;r="number"==typeof e.ticks&&0<e.ticks?e.ticks:.3*Math.sqrt("x"==t.direction?u.width:u.height);var i=(t.max-t.min)/r,o=-Math.floor(Math.log(i)/Math.LN10),n=e.tickDecimals;null!=n&&n<o&&(o=n);var a=Math.pow(10,-o),r=i/a;r<1.5?s=1:r<3?(s=2,2.25<r&&(null==n||o+1<=n)&&(s=2.5,++o)):s=r<7.5?5:10;s*=a,null!=e.minTickSize&&s<e.minTickSize&&(s=e.minTickSize);if(t.delta=i,t.tickDecimals=Math.max(0,null!=n?n:o),t.tickSize=e.tickSize||s,"time"==e.mode&&!t.tickGenerator)throw new Error("Time mode requires the flot.time plugin.");t.tickGenerator||(t.tickGenerator=function(t){for(var i,e,o,n=[],a=(e=t.min,o=t.tickSize,o*Math.floor(e/o)),r=0,l=Number.NaN;i=l,l=a+r*t.tickSize,n.push(l),++r,l<t.max&&l!=i;);return n},t.tickFormatter=function(t,i){var e=i.tickDecimals?Math.pow(10,i.tickDecimals):1,o=""+Math.round(t*e)/e;if(null!=i.tickDecimals){t=o.indexOf("."),t=-1==t?0:o.length-t-1;if(t<i.tickDecimals)return(t?o:o+".")+(""+e).substr(1,i.tickDecimals-t)}return o});_.isFunction(e.tickFormatter)&&(t.tickFormatter=function(t,i){return""+e.tickFormatter(t,i)});{var l,s;null==e.alignTicksWithAxis||(l=("x"==t.direction?p:m)[e.alignTicksWithAxis-1])&&l.used&&l!=t&&(0<(o=t.tickGenerator(t)).length&&(null==e.min&&(t.min=Math.min(t.min,o[0])),null==e.max&&1<o.length&&(t.max=Math.max(t.max,o[o.length-1]))),t.tickGenerator=function(t){for(var i,e=[],o=0;o<l.ticks.length;++o)i=(l.ticks[o].v-l.min)/(l.max-l.min),i=t.min+i*(t.max-t.min),e.push(i);return e},t.mode||null!=e.tickDecimals||(s=Math.max(0,1-Math.floor(Math.log(t.delta)/Math.LN10)),1<(o=t.tickGenerator(t)).length&&/\..*0$/.test((o[1]-o[0]).toFixed(s))||(t.tickDecimals=s)))}}(i),function(t){var i,e,o=t.options.ticks,n=[];null==o||"number"==typeof o&&0<o?n=t.tickGenerator(t):o&&(n=_.isFunction(o)?o(t):o);for(t.ticks=[],i=0;i<n.length;++i){var a=null,r=n[i];"object"==typeof r?(e=+r[0],1<r.length&&(a=r[1])):e=+r,null==a&&(a=t.tickFormatter(e,t)),isNaN(e)||t.ticks.push({v:e,label:a})}}(i),o=(e=i).ticks,e.options.autoscaleMargin&&0<o.length&&(null==e.options.min&&(e.min=Math.min(e.min,o[0].v)),null==e.options.max&&1<o.length&&(e.max=Math.max(e.max,o[o.length-1].v))),function(t){for(var i=t.options,e=t.ticks||[],o=i.labelWidth||0,n=i.labelHeight||0,a=o||("x"==t.direction?Math.floor(u.width/(e.length||1)):null),r=t.direction+"Axis "+t.direction+t.n+"Axis",l="flot-"+t.direction+"-axis flot-"+t.direction+t.n+"-axis "+r,s=i.font||"flot-tick-label tickLabel",c=0;c<e.length;++c){var h=e[c];h.label&&(h=u.getTextInfo(l,h.label,s,null,a),o=Math.max(o,h.width),n=Math.max(n,h.height))}t.labelWidth=i.labelWidth||o,t.labelHeight=i.labelHeight||n}(i)}),t=a.length-1;0<=t;--t)!function(e){var t=e.labelWidth,i=e.labelHeight,o=e.options.position,n="x"===e.direction,a=e.options.tickLength,r=M.grid.axisMargin,l=M.grid.labelMargin,s=!0,c=!0,h=!0,f=!1;_.each(n?p:m,function(t,i){i&&(i.show||i.reserveSpace)&&(i===e?f=!0:i.options.position===o&&(f?c=!1:s=!1),f||(h=!1))}),c&&(r=0),null==a&&(a=h?"full":5),isNaN(+a)||(l+=+a),n?(i+=l,"bottom"==o?(y.bottom+=i+r,e.box={top:u.height-y.bottom,height:i}):(e.box={top:y.top+r,height:i},y.top+=i+r)):(t+=l,"left"==o?(e.box={left:y.left+r,width:t},y.left+=t+r):(y.right+=t+r,e.box={left:u.width-y.right,width:t})),e.position=o,e.tickLength=a,e.box.padding=l,e.innermost=s}(a[t]);!function(){var t,i=M.grid.minBorderMargin;if(null==i)for(t=i=0;t<T.length;++t)i=Math.max(i,2*(T[t].points.radius+T[t].points.lineWidth/2));var e={left:i,right:i,top:i,bottom:i};_.each(I(),function(t,i){i.reserveSpace&&i.ticks&&i.ticks.length&&("x"===i.direction?(e.left=Math.max(e.left,i.labelWidth/2),e.right=Math.max(e.right,i.labelWidth/2)):(e.bottom=Math.max(e.bottom,i.labelHeight/2),e.top=Math.max(e.top,i.labelHeight/2)))}),y.left=Math.ceil(Math.max(e.left,y.left)),y.right=Math.ceil(Math.max(e.right,y.right)),y.top=Math.ceil(Math.max(e.top,y.top)),y.bottom=Math.ceil(Math.max(e.bottom,y.bottom))}(),_.each(a,function(t,i){"x"==(i=i).direction?(i.box.left=y.left-i.labelWidth/2,i.box.width=u.width-y.left-y.right+i.labelWidth):(i.box.top=y.top-i.labelHeight/2,i.box.height=u.height-y.bottom-y.top+i.labelHeight)})}w=u.width-y.left-y.right,C=u.height-y.bottom-y.top,_.each(e,function(t,i){function e(t){return t}var o,n,a,r;n=(i=i).options.transform||e,a=i.options.inverseTransform,r="x"==i.direction?(o=i.scale=w/Math.abs(n(i.max)-n(i.min)),Math.min(n(i.max),n(i.min))):(o=-(o=i.scale=C/Math.abs(n(i.max)-n(i.min))),Math.max(n(i.max),n(i.min))),i.p2c=n==e?function(t){return(t-r)*o}:function(t){return(n(t)-r)*o},i.c2p=a?function(t){return a(r+t/o)}:function(t){return r+t/o}}),o&&_.each(I(),function(t,i){var e,o,n,a,r,l=i.box,s=i.direction+"Axis "+i.direction+i.n+"Axis",c="flot-"+i.direction+"-axis flot-"+i.direction+i.n+"-axis "+s,h=i.options.font||"flot-tick-label tickLabel";if(u.removeText(c),i.show&&0!=i.ticks.length)for(var f=0;f<i.ticks.length;++f)!(e=i.ticks[f]).label||e.v<i.min||e.v>i.max||("x"==i.direction?(a="center",o=y.left+i.p2c(e.v),"bottom"==i.position?n=l.top+l.padding:(n=l.top+l.height-l.padding,r="bottom")):(r="middle",n=y.top+i.p2c(e.v),"left"==i.position?(o=l.left+l.width-l.padding,a="right"):o=l.left+l.padding),u.addText(c,o,n,e.label,h,null,null,a,r))}),function(){null!=M.legend.container?_(M.legend.container).html(""):d.find(".legend").remove();if(!M.legend.show)return;for(var t,i,e=[],o=[],n=!1,a=M.legend.labelFormatter,r=0;r<T.length;++r)(t=T[r]).label&&(i=a?a(t.label,t):t.label)&&o.push({label:i,color:t.color});{var l;M.legend.sorted&&(_.isFunction(M.legend.sorted)?o.sort(M.legend.sorted):"reverse"==M.legend.sorted?o.reverse():(l="descending"!=M.legend.sorted,o.sort(function(t,i){return t.label==i.label?0:t.label<i.label!=l?1:-1})))}for(r=0;r<o.length;++r){var s=o[r];r%M.legend.noColumns==0&&(n&&e.push("</tr>"),e.push("<tr>"),n=!0),e.push('<td class="legendColorBox"><div style="border:1px solid '+M.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+s.color+';overflow:hidden"></div></div></td><td class="legendLabel">'+s.label+"</td>")}n&&e.push("</tr>");if(0==e.length)return;var c='<table style="font-size:smaller;color:'+M.grid.color+'">'+e.join("")+"</table>";{var h,f,u;null!=M.legend.container?_(M.legend.container).html(c):(h="",f=M.legend.position,null==(u=M.legend.margin)[0]&&(u=[u,u]),"n"==f.charAt(0)?h+="top:"+(u[1]+y.top)+"px;":"s"==f.charAt(0)&&(h+="bottom:"+(u[1]+y.bottom)+"px;"),"e"==f.charAt(1)?h+="right:"+(u[0]+y.right)+"px;":"w"==f.charAt(1)&&(h+="left:"+(u[0]+y.left)+"px;"),f=_('<div class="legend">'+c.replace('style="','style="position:absolute;'+h+";")+"</div>").appendTo(d),0!=M.legend.backgroundOpacity&&(null==(u=M.legend.backgroundColor)&&((u=(u=M.grid.backgroundColor)&&"string"==typeof u?_.color.parse(u):_.color.extract(f,"background-color")).a=1,u=u.toString()),c=f.children(),_('<div style="position:absolute;width:'+c.width()+"px;height:"+c.height()+"px;"+h+"background-color:"+u+';"> </div>').prependTo(f).css("opacity",M.legend.backgroundOpacity)))}}()}function s(){u.clear(),z(S.drawBackground,[k]);var t=M.grid;t.show&&t.backgroundColor&&(k.save(),k.translate(y.left,y.top),k.fillStyle=G(M.grid.backgroundColor,C,0,"rgba(255, 255, 255, 0)"),k.fillRect(0,0,w,C),k.restore()),t.show&&!t.aboveData&&c();for(var i=0;i<T.length;++i)z(S.drawSeries,[k,T[i]]),function(t){t.lines.show&&function(t){function i(t,i,e,o,n){var a=t.points,r=t.pointsize,l=null,s=null;k.beginPath();for(var c=r;c<a.length;c+=r){var h=a[c-r],f=a[c-r+1],u=a[c],d=a[c+1];if(null!=h&&null!=u){if(f<=d&&f<n.min){if(d<n.min)continue;h=(n.min-f)/(d-f)*(u-h)+h,f=n.min}else if(d<=f&&d<n.min){if(f<n.min)continue;u=(n.min-f)/(d-f)*(u-h)+h,d=n.min}if(d<=f&&f>n.max){if(d>n.max)continue;h=(n.max-f)/(d-f)*(u-h)+h,f=n.max}else if(f<=d&&d>n.max){if(f>n.max)continue;u=(n.max-f)/(d-f)*(u-h)+h,d=n.max}if(h<=u&&h<o.min){if(u<o.min)continue;f=(o.min-h)/(u-h)*(d-f)+f,h=o.min}else if(u<=h&&u<o.min){if(h<o.min)continue;d=(o.min-h)/(u-h)*(d-f)+f,u=o.min}if(u<=h&&h>o.max){if(u>o.max)continue;f=(o.max-h)/(u-h)*(d-f)+f,h=o.max}else if(h<=u&&u>o.max){if(h>o.max)continue;d=(o.max-h)/(u-h)*(d-f)+f,u=o.max}h==l&&f==s||k.moveTo(o.p2c(h)+i,n.p2c(f)+e),l=u,s=d,k.lineTo(o.p2c(u)+i,n.p2c(d)+e)}}k.stroke()}k.save(),k.translate(y.left,y.top),k.lineJoin="round";var e=t.lines.lineWidth,o=t.shadowSize;{var n;0<e&&0<o&&(k.lineWidth=o,k.strokeStyle="rgba(0,0,0,0.1)",n=Math.PI/18,i(t.datapoints,Math.sin(n)*(e/2+o/2),Math.cos(n)*(e/2+o/2),t.xaxis,t.yaxis),k.lineWidth=o/2,i(t.datapoints,Math.sin(n)*(e/2+o/4),Math.cos(n)*(e/2+o/4),t.xaxis,t.yaxis))}k.lineWidth=e,k.strokeStyle=t.color;o=v(t.lines,t.color,0,C);o&&(k.fillStyle=o,function(t,i,e){for(var o=t.points,n=t.pointsize,a=Math.min(Math.max(0,e.min),e.max),r=0,l=!1,s=1,c=0,h=0;!(0<n&&r>o.length+n);){var f,u,d=o[(r+=n)-n],p=o[r-n+s],m=o[r],x=o[r+s];if(l){if(0<n&&null!=d&&null==m){h=r,n=-n,s=2;continue}if(n<0&&r==c+n){k.fill(),l=!1,s=1,r=c=h+(n=-n);continue}}if(null!=d&&null!=m){if(d<=m&&d<i.min){if(m<i.min)continue;p=(i.min-d)/(m-d)*(x-p)+p,d=i.min}else if(m<=d&&m<i.min){if(d<i.min)continue;x=(i.min-d)/(m-d)*(x-p)+p,m=i.min}if(m<=d&&d>i.max){if(m>i.max)continue;p=(i.max-d)/(m-d)*(x-p)+p,d=i.max}else if(d<=m&&m>i.max){if(d>i.max)continue;x=(i.max-d)/(m-d)*(x-p)+p,m=i.max}l||(k.beginPath(),k.moveTo(i.p2c(d),e.p2c(a)),l=!0),p>=e.max&&x>=e.max?(k.lineTo(i.p2c(d),e.p2c(e.max)),k.lineTo(i.p2c(m),e.p2c(e.max))):p<=e.min&&x<=e.min?(k.lineTo(i.p2c(d),e.p2c(e.min)),k.lineTo(i.p2c(m),e.p2c(e.min))):(f=d,u=m,p<=x&&p<e.min&&x>=e.min?(d=(e.min-p)/(x-p)*(m-d)+d,p=e.min):x<=p&&x<e.min&&p>=e.min&&(m=(e.min-p)/(x-p)*(m-d)+d,x=e.min),x<=p&&p>e.max&&x<=e.max?(d=(e.max-p)/(x-p)*(m-d)+d,p=e.max):p<=x&&x>e.max&&p<=e.max&&(m=(e.max-p)/(x-p)*(m-d)+d,x=e.max),d!=f&&k.lineTo(i.p2c(f),e.p2c(p)),k.lineTo(i.p2c(d),e.p2c(p)),k.lineTo(i.p2c(m),e.p2c(x)),m!=u&&(k.lineTo(i.p2c(m),e.p2c(x)),k.lineTo(i.p2c(u),e.p2c(x))))}}}(t.datapoints,t.xaxis,t.yaxis));0<e&&i(t.datapoints,0,0,t.xaxis,t.yaxis);k.restore()}(t);t.bars.show&&function(c){var t;switch(k.save(),k.translate(y.left,y.top),k.lineWidth=c.bars.lineWidth,k.strokeStyle=c.color,c.bars.align){case"left":t=0;break;case"right":t=-c.bars.barWidth;break;default:t=-c.bars.barWidth/2}var i=c.bars.fill?function(t,i){return v(c.bars,c.color,t,i)}:null;(function(t,i,e,o,n,a){for(var r=t.points,l=t.pointsize,s=0;s<r.length;s+=l)null!=r[s]&&b(r[s],r[s+1],r[s+2],i,e,o,n,a,k,c.bars.horizontal,c.bars.lineWidth)})(c.datapoints,t,t+c.bars.barWidth,i,c.xaxis,c.yaxis),k.restore()}(t);t.points.show&&function(t){function i(t,i,e,o,n,a,r,l){for(var s=t.points,c=t.pointsize,h=0;h<s.length;h+=c){var f=s[h],u=s[h+1];null==f||f<a.min||f>a.max||u<r.min||u>r.max||(k.beginPath(),f=a.p2c(f),u=r.p2c(u)+o,"circle"==l?k.arc(f,u,i,0,n?Math.PI:2*Math.PI,!1):l(k,f,u,i,n),k.closePath(),e&&(k.fillStyle=e,k.fill()),k.stroke())}}k.save(),k.translate(y.left,y.top);var e=t.points.lineWidth,o=t.shadowSize,n=t.points.radius,a=t.points.symbol;0==e&&(e=1e-4);0<e&&0<o&&(o=o/2,k.lineWidth=o,k.strokeStyle="rgba(0,0,0,0.1)",i(t.datapoints,n,null,o+o/2,!0,t.xaxis,t.yaxis,a),k.strokeStyle="rgba(0,0,0,0.2)",i(t.datapoints,n,null,o/2,!0,t.xaxis,t.yaxis,a));k.lineWidth=e,k.strokeStyle=t.color,i(t.datapoints,n,v(t.points,t.color),0,!1,t.xaxis,t.yaxis,a),k.restore()}(t)}(T[i]);z(S.draw,[k]),t.show&&t.aboveData&&c(),u.render(),R()}function A(t,i){for(var e,o,n,a,r,l=I(),s=0;s<l.length;++s)if(e=l[s],e.direction==i&&(t[o=i+e.n+"axis"]||1!=e.n||(o=i+"axis"),t[o])){a=t[o].from,r=t[o].to;break}return t[o]||(e=("x"==i?p:m)[0],a=t[i+"1"],r=t[i+"2"]),null!=a&&null!=r&&r<a&&(n=a,a=r,r=n),{from:a,to:r,axis:e}}function c(){var t,i,e,o;k.save(),k.translate(y.left,y.top);var n=M.grid.markings;if(n)for(_.isFunction(n)&&((i=W.getAxes()).xmin=i.xaxis.min,i.xmax=i.xaxis.max,i.ymin=i.yaxis.min,i.ymax=i.yaxis.max,n=n(i)),t=0;t<n.length;++t){var a,r,l,s=n[t],c=A(s,"x"),h=A(s,"y");null==c.from&&(c.from=c.axis.min),null==c.to&&(c.to=c.axis.max),null==h.from&&(h.from=h.axis.min),null==h.to&&(h.to=h.axis.max),c.to<c.axis.min||c.from>c.axis.max||h.to<h.axis.min||h.from>h.axis.max||(c.from=Math.max(c.from,c.axis.min),c.to=Math.min(c.to,c.axis.max),h.from=Math.max(h.from,h.axis.min),h.to=Math.min(h.to,h.axis.max),a=c.from===c.to,l=h.from===h.to,a&&l||(c.from=Math.floor(c.axis.p2c(c.from)),c.to=Math.floor(c.axis.p2c(c.to)),h.from=Math.floor(h.axis.p2c(h.from)),h.to=Math.floor(h.axis.p2c(h.to)),a||l?(l=(r=s.lineWidth||M.grid.markingsLineWidth)%2?.5:0,k.beginPath(),k.strokeStyle=s.color||M.grid.markingsColor,k.lineWidth=r,a?(k.moveTo(c.to+l,h.from),k.lineTo(c.to+l,h.to)):(k.moveTo(c.from,h.to+l),k.lineTo(c.to,h.to+l)),k.stroke()):(k.fillStyle=s.color||M.grid.markingsColor,k.fillRect(c.from,h.to,c.to-c.from,h.from-h.to))))}i=I(),e=M.grid.borderWidth;for(var f=0;f<i.length;++f){var u,d,p,m=i[f],x=m.box,g=m.tickLength;if(m.show&&0!=m.ticks.length){for(k.lineWidth=1,"x"==m.direction?(u=0,d="full"==g?"top"==m.position?0:C:x.top-y.top+("top"==m.position?x.height:0)):(d=0,u="full"==g?"left"==m.position?0:w:x.left-y.left+("left"==m.position?x.width:0)),m.innermost||(k.strokeStyle=m.options.color,k.beginPath(),v=p=0,"x"==m.direction?v=w+1:p=C+1,1==k.lineWidth&&("x"==m.direction?d=Math.floor(d)+.5:u=Math.floor(u)+.5),k.moveTo(u,d),k.lineTo(u+v,d+p),k.stroke()),k.strokeStyle=m.options.tickColor,k.beginPath(),t=0;t<m.ticks.length;++t){var b=m.ticks[t].v,v=p=0;isNaN(b)||b<m.min||b>m.max||"full"==g&&("object"==typeof e&&0<e[m.position]||0<e)&&(b==m.min||b==m.max)||("x"==m.direction?(u=m.p2c(b),p="full"==g?-C:g,"top"==m.position&&(p=-p)):(d=m.p2c(b),v="full"==g?-w:g,"left"==m.position&&(v=-v)),1==k.lineWidth&&("x"==m.direction?u=Math.floor(u)+.5:d=Math.floor(d)+.5),k.moveTo(u,d),k.lineTo(u+v,d+p))}k.stroke()}}e&&(o=M.grid.borderColor,"object"==typeof e||"object"==typeof o?("object"!=typeof e&&(e={top:e,right:e,bottom:e,left:e}),"object"!=typeof o&&(o={top:o,right:o,bottom:o,left:o}),0<e.top&&(k.strokeStyle=o.top,k.lineWidth=e.top,k.beginPath(),k.moveTo(0-e.left,0-e.top/2),k.lineTo(w,0-e.top/2),k.stroke()),0<e.right&&(k.strokeStyle=o.right,k.lineWidth=e.right,k.beginPath(),k.moveTo(w+e.right/2,0-e.top),k.lineTo(w+e.right/2,C),k.stroke()),0<e.bottom&&(k.strokeStyle=o.bottom,k.lineWidth=e.bottom,k.beginPath(),k.moveTo(w+e.right,C+e.bottom/2),k.lineTo(0,C+e.bottom/2),k.stroke()),0<e.left&&(k.strokeStyle=o.left,k.lineWidth=e.left,k.beginPath(),k.moveTo(0-e.left/2,C+e.bottom),k.lineTo(0-e.left/2,0),k.stroke())):(k.lineWidth=e,k.strokeStyle=M.grid.borderColor,k.strokeRect(-e/2,-e/2,w+e,C+e))),k.restore()}function b(t,i,e,o,n,a,r,l,s,c,h){var f,u,d,p,m,x,g,b,v;c?(m=!(b=x=g=!0),p=i+o,d=i+n,(u=t)<(f=e)&&(v=u,u=f,f=v,x=!(m=!0))):(b=!(m=x=g=!0),f=t+o,u=t+n,(p=i)<(d=e)&&(v=p,p=d,d=v,g=!(b=!0))),u<r.min||f>r.max||p<l.min||d>l.max||(f<r.min&&(f=r.min,m=!1),u>r.max&&(u=r.max,x=!1),d<l.min&&(d=l.min,b=!1),p>l.max&&(p=l.max,g=!1),f=r.p2c(f),d=l.p2c(d),u=r.p2c(u),p=l.p2c(p),a&&(s.fillStyle=a(d,p),s.fillRect(f,p,u-f,d-p)),0<h&&(m||x||g||b)&&(s.beginPath(),s.moveTo(f,d),m?s.lineTo(f,p):s.moveTo(f,p),g?s.lineTo(u,p):s.moveTo(u,p),x?s.lineTo(u,d):s.moveTo(u,d),b?s.lineTo(f,d):s.moveTo(f,d),s.stroke()))}function v(t,i,e,o){var n=t.fill;if(!n)return null;if(t.fillColor)return G(t.fillColor,e,o,i);i=_.color.parse(i);return i.a="number"==typeof n?n:.4,i.normalize(),i.toString()}W.setData=n,W.setupGrid=r,W.draw=s,W.getPlaceholder=function(){return d},W.getCanvas=function(){return u.element},W.getPlotOffset=function(){return y},W.width=function(){return w},W.height=function(){return C},W.offset=function(){var t=h.offset();return t.left+=y.left,t.top+=y.top,t},W.getData=function(){return T},W.getAxes=function(){var e={};return _.each(p.concat(m),function(t,i){i&&(e[i.direction+(1!=i.n?i.n:"")+"axis"]=i)}),e},W.getXAxes=function(){return p},W.getYAxes=function(){return m},W.c2p=f,W.p2c=function(t){var i,e,o,n={};for(i=0;i<p.length;++i)if(e=p[i],e&&e.used&&(o="x"+e.n,null==t[o]&&1==e.n&&(o="x"),null!=t[o])){n.left=e.p2c(t[o]);break}for(i=0;i<m.length;++i)if(e=m[i],e&&e.used&&(o="y"+e.n,null==t[o]&&1==e.n&&(o="y"),null!=t[o])){n.top=e.p2c(t[o]);break}return n},W.getOptions=function(){return M},W.highlight=j,W.unhighlight=E,W.triggerRedrawOverlay=R,W.pointOffset=function(t){return{left:parseInt(p[x(t,"x")-1].p2c(+t.x)+y.left,10),top:parseInt(m[x(t,"y")-1].p2c(+t.y)+y.top,10)}},W.shutdown=a,W.destroy=function(){a(),d.removeData("plot").empty(),T=[],p=[],m=[],F=[],W=S=l=k=h=e=u=M=null},W.resize=function(){var t=d.width(),i=d.height();u.resize(t,i),e.resize(t,i)},W.hooks=S,function(){for(var t={Canvas:V},i=0;i<o.length;++i){var e=o[i];e.init(W,t),e.options&&_.extend(!0,M,e.options)}}(),function(t){_.extend(!0,M,t),t&&t.colors&&(M.colors=t.colors);null==M.xaxis.color&&(M.xaxis.color=_.color.parse(M.grid.color).scale("a",.22).toString());null==M.yaxis.color&&(M.yaxis.color=_.color.parse(M.grid.color).scale("a",.22).toString());null==M.xaxis.tickColor&&(M.xaxis.tickColor=M.grid.tickColor||M.xaxis.color);null==M.yaxis.tickColor&&(M.yaxis.tickColor=M.grid.tickColor||M.yaxis.color);null==M.grid.borderColor&&(M.grid.borderColor=M.grid.color);null==M.grid.tickColor&&(M.grid.tickColor=_.color.parse(M.grid.color).scale("a",.22).toString());var i,e,o,n,t=d.css("font-size"),t=t?+t.replace("px",""):13,a={style:d.css("font-style"),size:Math.round(.8*t),variant:d.css("font-variant"),weight:d.css("font-weight"),family:d.css("font-family")};for(o=M.xaxes.length||1,i=0;i<o;++i)(e=M.xaxes[i])&&!e.tickColor&&(e.tickColor=e.color),e=_.extend(!0,{},M.xaxis,e),(M.xaxes[i]=e).font&&(e.font=_.extend({},a,e.font),e.font.color||(e.font.color=e.color),e.font.lineHeight||(e.font.lineHeight=Math.round(1.15*e.font.size)));for(o=M.yaxes.length||1,i=0;i<o;++i)(e=M.yaxes[i])&&!e.tickColor&&(e.tickColor=e.color),e=_.extend(!0,{},M.yaxis,e),(M.yaxes[i]=e).font&&(e.font=_.extend({},a,e.font),e.font.color||(e.font.color=e.color),e.font.lineHeight||(e.font.lineHeight=Math.round(1.15*e.font.size)));M.xaxis.noTicks&&null==M.xaxis.ticks&&(M.xaxis.ticks=M.xaxis.noTicks);M.yaxis.noTicks&&null==M.yaxis.ticks&&(M.yaxis.ticks=M.yaxis.noTicks);M.x2axis&&(M.xaxes[1]=_.extend(!0,{},M.xaxis,M.x2axis),M.xaxes[1].position="top",null==M.x2axis.min&&(M.xaxes[1].min=null),null==M.x2axis.max&&(M.xaxes[1].max=null));M.y2axis&&(M.yaxes[1]=_.extend(!0,{},M.yaxis,M.y2axis),M.yaxes[1].position="right",null==M.y2axis.min&&(M.yaxes[1].min=null),null==M.y2axis.max&&(M.yaxes[1].max=null));M.grid.coloredAreas&&(M.grid.markings=M.grid.coloredAreas);M.grid.coloredAreasColor&&(M.grid.markingsColor=M.grid.coloredAreasColor);M.lines&&_.extend(!0,M.series.lines,M.lines);M.points&&_.extend(!0,M.series.points,M.points);M.bars&&_.extend(!0,M.series.bars,M.bars);null!=M.shadowSize&&(M.series.shadowSize=M.shadowSize);null!=M.highlightColor&&(M.series.highlightColor=M.highlightColor);for(i=0;i<M.xaxes.length;++i)g(p,i+1).options=M.xaxes[i];for(i=0;i<M.yaxes.length;++i)g(m,i+1).options=M.yaxes[i];for(n in S)M.hooks[n]&&M.hooks[n].length&&(S[n]=S[n].concat(M.hooks[n]));z(S.processOptions,[M])}(i),function(){d.css("padding",0).children().filter(function(){return!_(this).hasClass("flot-overlay")&&!_(this).hasClass("flot-base")}).remove(),"static"==d.css("position")&&d.css("position","relative");u=new V("flot-base",d),e=new V("flot-overlay",d),k=u.context,l=e.context,h=_(e.element).unbind();var t=d.data("plot");t&&(t.shutdown(),e.clear());d.data("plot",W)}(),n(t),r(),s(),function(){M.grid.hoverable&&(h.mousemove(N),h.bind("mouseleave",D));M.grid.clickable&&h.click(L);z(S.bindEvents,[h])}();var F=[],P=null;function N(t){M.grid.hoverable&&O("plothover",t,function(t){return 0!=t.hoverable})}function D(t){M.grid.hoverable&&O("plothover",t,function(t){return!1})}function L(t){O("plotclick",t,function(t){return 0!=t.clickable})}function O(t,i,e){var o=h.offset(),n=i.pageX-o.left-y.left,a=i.pageY-o.top-y.top,r=f({left:n,top:a});r.pageX=i.pageX,r.pageY=i.pageY;var l=function(t,i,e){for(var o,n=M.grid.mouseActiveRadius,a=n*n+1,r=null,l=T.length-1;0<=l;--l)if(e(T[l])){var s,c,h=T[l],f=h.xaxis,u=h.yaxis,d=h.datapoints.points,p=f.c2p(t),m=u.c2p(i),x=n/f.scale,g=n/u.scale,b=h.datapoints.pointsize;if(f.options.inverseTransform&&(x=Number.MAX_VALUE),u.options.inverseTransform&&(g=Number.MAX_VALUE),h.lines.show||h.points.show)for(o=0;o<d.length;o+=b){var v,k=d[o],y=d[o+1];null!=k&&(x<k-p||k-p<-x||g<y-m||y-m<-g||(v=(v=Math.abs(f.p2c(k)-t))*v+(v=Math.abs(u.p2c(y)-i))*v)<a&&(a=v,r=[l,o/b]))}if(h.bars.show&&!r){switch(h.bars.align){case"left":s=0;break;case"right":s=-h.bars.barWidth;break;default:s=-h.bars.barWidth/2}for(c=s+h.bars.barWidth,o=0;o<d.length;o+=b){var k=d[o],y=d[o+1],w=d[o+2];null!=k&&(T[l].bars.horizontal?p<=Math.max(w,k)&&p>=Math.min(w,k)&&y+s<=m&&m<=y+c:k+s<=p&&p<=k+c&&m>=Math.min(w,y)&&m<=Math.max(w,y))&&(r=[l,o/b])}}}return r?(l=r[0],o=r[1],b=T[l].datapoints.pointsize,{datapoint:T[l].datapoints.points.slice(o*b,(o+1)*b),dataIndex:o,series:T[l],seriesIndex:l}):null}(n,a,e);if(l&&(l.pageX=parseInt(l.series.xaxis.p2c(l.datapoint[0])+o.left+y.left,10),l.pageY=parseInt(l.series.yaxis.p2c(l.datapoint[1])+o.top+y.top,10)),M.grid.autoHighlight){for(var s=0;s<F.length;++s){var c=F[s];c.auto!=t||l&&c.series==l.series&&c.point[0]==l.datapoint[0]&&c.point[1]==l.datapoint[1]||E(c.series,c.point)}l&&j(l.series,l.datapoint,t)}d.trigger(t,[r,l])}function R(){var t=M.interaction.redrawOverlayInterval;-1!=t?P=P||setTimeout(H,t):H()}function H(){var t,i;for(P=null,l.save(),e.clear(),l.translate(y.left,y.top),t=0;t<F.length;++t)((i=F[t]).series.bars.show?function(t,i){var e,o="string"==typeof t.highlightColor?t.highlightColor:_.color.parse(t.color).scale("a",.5).toString(),n=o;switch(t.bars.align){case"left":e=0;break;case"right":e=-t.bars.barWidth;break;default:e=-t.bars.barWidth/2}l.lineWidth=t.bars.lineWidth,l.strokeStyle=o,b(i[0],i[1],i[2]||0,e,e+t.bars.barWidth,function(){return n},t.xaxis,t.yaxis,l,t.bars.horizontal,t.bars.lineWidth)}:function(t,i){var e=i[0],o=i[1],n=t.xaxis,a=t.yaxis,r="string"==typeof t.highlightColor?t.highlightColor:_.color.parse(t.color).scale("a",.5).toString();if(e<n.min||e>n.max||o<a.min||o>a.max)return;i=t.points.radius+t.points.lineWidth/2;l.lineWidth=i,l.strokeStyle=r;i*=1.5;e=n.p2c(e),o=a.p2c(o),l.beginPath(),"circle"==t.points.symbol?l.arc(e,o,i,0,2*Math.PI,!1):t.points.symbol(l,e,o,i,!1);l.closePath(),l.stroke()})(i.series,i.point);l.restore(),z(S.drawOverlay,[l])}function j(t,i,e){"number"==typeof t&&(t=T[t]),"number"==typeof i&&(o=t.datapoints.pointsize,i=t.datapoints.points.slice(o*i,o*(i+1)));var o=B(t,i);-1==o?(F.push({series:t,point:i,auto:e}),R()):e||(F[o].auto=!1)}function E(t,i){if(null==t&&null==i)return F=[],void R();var e;"number"==typeof t&&(t=T[t]),"number"==typeof i&&(e=t.datapoints.pointsize,i=t.datapoints.points.slice(e*i,e*(i+1)));i=B(t,i);-1!=i&&(F.splice(i,1),R())}function B(t,i){for(var e=0;e<F.length;++e){var o=F[e];if(o.series==t&&o.point[0]==i[0]&&o.point[1]==i[1])return e}return-1}function G(t,i,e,o){if("string"==typeof t)return t;for(var n=k.createLinearGradient(0,e,0,i),a=0,r=t.colors.length;a<r;++a){var l,s=t.colors[a];"string"!=typeof s&&(l=_.color.parse(o),null!=s.brightness&&(l=l.scale("rgb",s.brightness)),null!=s.opacity&&(l.a*=s.opacity),s=l.toString()),n.addColorStop(a/(r-1),s)}return n}}_.fn.detach||(_.fn.detach=function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)})}),V.prototype.resize=function(t,i){if(t<=0||i<=0)throw new Error("Invalid dimensions for plot, width = "+t+", height = "+i);var e=this.element,o=this.context,n=this.pixelRatio;this.width!=t&&(e.width=t*n,e.style.width=t+"px",this.width=t),this.height!=i&&(e.height=i*n,e.style.height=i+"px",this.height=i),o.restore(),o.save(),o.scale(n,n)},V.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},V.prototype.render=function(){var t,i=this._textCache;for(t in i)if(d.call(i,t)){var e,o=this.getTextLayer(t),n=i[t];for(e in o.hide(),n)if(d.call(n,e)){var a,r=n[e];for(a in r)if(d.call(r,a)){for(var l,s=r[a].positions,c=0;l=s[c];c++)l.active?l.rendered||(o.append(l.element),l.rendered=!0):(s.splice(c--,1),l.rendered&&l.element.detach());0==s.length&&delete r[a]}}o.show()}},V.prototype.getTextLayer=function(t){var i=this.text[t];return null==i&&(null==this.textContainer&&(this.textContainer=_("<div class='flot-text'></div>").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),i=this.text[t]=_("<div></div>").addClass(t).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),i},V.prototype.getTextInfo=function(t,i,e,o,n){var a,r,l;return i=""+i,a="object"==typeof e?e.style+" "+e.variant+" "+e.weight+" "+e.size+"px/"+e.lineHeight+"px "+e.family:e,null==(l=this._textCache[t])&&(l=this._textCache[t]={}),null==(r=l[a])&&(r=l[a]={}),null==(l=r[i])&&(t=_("<div></div>").html(i).css({position:"absolute","max-width":n,top:-9999}).appendTo(this.getTextLayer(t)),"object"==typeof e?t.css({font:a,color:e.color}):"string"==typeof e&&t.addClass(e),l=r[i]={width:t.outerWidth(!0),height:t.outerHeight(!0),element:t,positions:[]},t.detach()),l},V.prototype.addText=function(t,i,e,o,n,a,r,l,s){var r=this.getTextInfo(t,o,n,a,r),c=r.positions;"center"==l?i-=r.width/2:"right"==l&&(i-=r.width),"middle"==s?e-=r.height/2:"bottom"==s&&(e-=r.height);for(var h,f=0;h=c[f];f++)if(h.x==i&&h.y==e)return void(h.active=!0);h={active:!0,rendered:!1,element:c.length?r.element.clone():r.element,x:i,y:e},c.push(h),h.element.css({top:Math.round(e),left:Math.round(i),"text-align":l})},V.prototype.removeText=function(t,i,e,o,n,a){if(null==o){var r=this._textCache[t];if(null!=r)for(var l in r)if(d.call(r,l)){var s,c=r[l];for(s in c)if(d.call(c,s))for(var h=c[s].positions,f=0;u=h[f];f++)u.active=!1}}else for(var u,h=this.getTextInfo(t,o,n,a).positions,f=0;u=h[f];f++)u.x==i&&u.y==e&&(u.active=!1)},_.plot=function(t,i,e){return new o(_(t),i,e,_.plot.plugins)},_.plot.version="0.8.3",_.plot.plugins=[],_.fn.plot=function(t,i){return this.each(function(){_.plot(this,t,i)})}}(jQuery);
@@ -0,0 +1,282 @@
1
+ /*
2
+ * Flot plugin to order bars side by side. This is improved version of Benjamin BUFFET work
3
+ * originally from http://en.benjaminbuffet.com/labs/flot/.
4
+ *
5
+ * Released under the MIT license by Przemyslaw Koltermann, 12-Feb-2013.
6
+ *
7
+ * This plugin is an alpha version.
8
+ *
9
+ * To activate the plugin you must specify the parameter "order" for the specific serie :
10
+ *
11
+ * $.plot($("#placeholder"), [{ data: [ ... ], bars :{ order = null or integer }])
12
+ *
13
+ * If 2 series have the same order param, they are displayed in the same position;
14
+ *
15
+ * The plugin adjust the point by adding a value depanding of the barwidth
16
+ * Exemple for 3 series (barwidth : 0.1) :
17
+ *
18
+ * first bar décalage : -0.15
19
+ * second bar décalage : -0.05
20
+ * third bar décalage : 0.05
21
+ *
22
+ */
23
+
24
+ (function($){
25
+ function init(plot){
26
+ var orderedBarSeries;
27
+ var nbOfBarsToOrder;
28
+ var seriesPos = new Array();
29
+ var sameSeries = new Array();
30
+ var borderWidth;
31
+ var borderWidthInXabsWidth;
32
+ var pixelInXWidthEquivalent = 1;
33
+ var isHorizontal = false;
34
+
35
+ /*
36
+ * This method add shift to x values
37
+ */
38
+ function reOrderBars(plot, serie, datapoints){
39
+ var shiftedPoints = null;
40
+
41
+ if(serieNeedToBeReordered(serie)){
42
+ checkIfGraphIsHorizontal(serie);
43
+ calculPixel2XWidthConvert(plot);
44
+ retrieveBarSeries(plot);
45
+ calculBorderAndBarWidth(serie);
46
+
47
+ if(nbOfBarsToOrder >= 2){
48
+ var position = findPosition(serie);
49
+ var decallage = 0;
50
+
51
+ var centerBarShift = calculCenterBarShift();
52
+
53
+ if (isBarAtLeftOfCenter(position)){
54
+ decallage = -1*(sumWidth(orderedBarSeries,position-1,Math.floor(nbOfBarsToOrder / 2)-1)) - centerBarShift;
55
+ }else{
56
+ decallage = sumWidth(orderedBarSeries,Math.ceil(nbOfBarsToOrder / 2),position-2) + centerBarShift + borderWidthInXabsWidth*2;
57
+ }
58
+
59
+ shiftedPoints = shiftPoints(datapoints,serie,decallage);
60
+ datapoints.points = shiftedPoints;
61
+ } else if (nbOfBarsToOrder == 1){
62
+ // To be consistent with the barshift at other uneven numbers of bars, where
63
+ // the center bar is centered around the point, we also need to shift a single bar
64
+ // left by half its width
65
+ var centerBarShift = -1*calculCenterBarShift();
66
+ shiftedPoints = shiftPoints(datapoints,serie,centerBarShift);
67
+ datapoints.points = shiftedPoints;
68
+ }
69
+ }
70
+ return shiftedPoints;
71
+ }
72
+
73
+ function serieNeedToBeReordered(serie){
74
+ return serie.bars != null
75
+ && serie.bars.show
76
+ && serie.bars.order != null;
77
+ }
78
+
79
+ function calculPixel2XWidthConvert(plot){
80
+ var gridDimSize = isHorizontal ? plot.getPlaceholder().innerHeight() : plot.getPlaceholder().innerWidth();
81
+ var minMaxValues = isHorizontal ? getAxeMinMaxValues(plot.getData(),1) : getAxeMinMaxValues(plot.getData(),0);
82
+ var AxeSize = minMaxValues[1] - minMaxValues[0];
83
+ pixelInXWidthEquivalent = AxeSize / gridDimSize;
84
+ }
85
+
86
+ function getAxeMinMaxValues(series,AxeIdx){
87
+ var minMaxValues = new Array();
88
+ for(var i = 0; i < series.length; i++){
89
+ minMaxValues[0] = series[i].data[0][AxeIdx];
90
+ minMaxValues[1] = series[i].data[series[i].data.length - 1][AxeIdx];
91
+ }
92
+ if(typeof minMaxValues[0] == 'string'){
93
+ minMaxValues[0] = 0;
94
+ minMaxValues[1] = series[0].data.length - 1;
95
+ }
96
+ return minMaxValues;
97
+ }
98
+
99
+ function retrieveBarSeries(plot){
100
+ orderedBarSeries = findOthersBarsToReOrders(plot.getData());
101
+ nbOfBarsToOrder = orderedBarSeries.length;
102
+ }
103
+
104
+ function findOthersBarsToReOrders(series){
105
+ var retSeries = new Array();
106
+
107
+ for(var i = 0; i < series.length; i++){
108
+ if(series[i].bars.order != null && series[i].bars.show){
109
+ retSeries.push(series[i]);
110
+ }
111
+ }
112
+
113
+ return sortByOrder(retSeries);
114
+ }
115
+
116
+ function sortByOrder(series){
117
+ var n = series.length;
118
+ do {
119
+ for (var i=0; i < n - 1; i++) {
120
+ if (series[i].bars.order > series[i + 1].bars.order) {
121
+ var tmp = series[i];
122
+ series[i] = series[i + 1];
123
+ series[i + 1] = tmp;
124
+ }
125
+ else if (series[i].bars.order == series[i + 1].bars.order) {
126
+
127
+ //check if any of the series has set sameSeriesArrayIndex
128
+ var sameSeriesIndex;
129
+ if (series[i].sameSeriesArrayIndex) {
130
+ if(series[i + 1].sameSeriesArrayIndex !== undefined) {
131
+ sameSeriesIndex = series[i].sameSeriesArrayIndex;
132
+ series[i + 1].sameSeriesArrayIndex = sameSeriesIndex;
133
+ sameSeries[sameSeriesIndex].push(series[i + 1]);
134
+ sameSeries[sameSeriesIndex].sort(sortByWidth);
135
+
136
+ series[i] = sameSeries[sameSeriesIndex][0];
137
+ removeElement(series, i + 1);
138
+ }
139
+ }
140
+
141
+ else if (series[i + 1].sameSeriesArrayIndex) {
142
+ if(series[i].sameSeriesArrayIndex !== undefined) {
143
+ sameSeriesIndex = series[i + 1].sameSeriesArrayIndex;
144
+ series[i].sameSeriesArrayIndex = sameSeriesIndex;
145
+ sameSeries[sameSeriesIndex].push(series[i]);
146
+ sameSeries[sameSeriesIndex].sort(sortByWidth);
147
+
148
+ series[i] = sameSeries[sameSeriesIndex][0];
149
+ removeElement(series, i + 1);
150
+
151
+ }
152
+ }
153
+
154
+ else {
155
+ sameSeriesIndex = sameSeries.length;
156
+ sameSeries[sameSeriesIndex] = new Array();
157
+ series[i].sameSeriesArrayIndex = sameSeriesIndex;
158
+ series[i + 1].sameSeriesArrayIndex = sameSeriesIndex;
159
+ sameSeries[sameSeriesIndex].push(series[i]);
160
+ sameSeries[sameSeriesIndex].push(series[i + 1]);
161
+ sameSeries[sameSeriesIndex].sort(sortByWidth);
162
+
163
+ series[i] = sameSeries[sameSeriesIndex][0];
164
+ removeElement(series, i + 1);
165
+ }
166
+ i--;
167
+ n--;
168
+
169
+
170
+ //leave the wider serie and the other one move to
171
+ }
172
+ }
173
+ n = n-1;
174
+ }
175
+ while (n>1);
176
+ for (var i=0; i < series.length; i++) {
177
+ if (series[i].sameSeriesArrayIndex) {
178
+ seriesPos[series[i].sameSeriesArrayIndex] = i;
179
+ }
180
+ }
181
+ return series;
182
+ }
183
+
184
+ function sortByWidth(serie1,serie2){
185
+ var x = serie1.bars.barWidth ? serie1.bars.barWidth : 1;
186
+ var y = serie2.bars.barWidth ? serie2.bars.barWidth : 1;
187
+ return ((x < y) ? -1 : ((x > y) ? 1 : 0));
188
+ }
189
+ function removeElement(arr, from, to) {
190
+ var rest = arr.slice((to || from) + 1 || arr.length);
191
+ arr.length = from < 0 ? arr.length + from : from;
192
+ arr.push.apply(arr, rest);
193
+ return arr;
194
+ }
195
+
196
+ function calculBorderAndBarWidth(serie){
197
+ borderWidth = typeof serie.bars.lineWidth === "number" ? serie.bars.lineWidth : 2;
198
+ borderWidthInXabsWidth = borderWidth * pixelInXWidthEquivalent;
199
+ }
200
+
201
+ function checkIfGraphIsHorizontal(serie){
202
+ if(serie.bars.horizontal){
203
+ isHorizontal = true;
204
+ }
205
+ }
206
+
207
+ function findPosition(serie){
208
+ var ss = sameSeries;
209
+ var pos = 0;
210
+ if (serie.sameSeriesArrayIndex) {
211
+ pos = seriesPos[serie.sameSeriesArrayIndex];
212
+ }
213
+ else {
214
+ for (var i = 0; i < orderedBarSeries.length; ++i) {
215
+ if (serie == orderedBarSeries[i]){
216
+ pos = i;
217
+ break;
218
+ }
219
+ }
220
+ }
221
+ return pos+1;
222
+ }
223
+
224
+ function calculCenterBarShift(){
225
+ var width = 0;
226
+
227
+ if(nbOfBarsToOrder%2 != 0)
228
+ // Since the array indexing starts at 0, we need to use Math.floor instead of
229
+ // Math.ceil otherwise we will get an error if there is only one bar
230
+ width = (orderedBarSeries[Math.floor(nbOfBarsToOrder / 2)].bars.barWidth)/2;
231
+
232
+ return width;
233
+ }
234
+
235
+ function isBarAtLeftOfCenter(position){
236
+ return position <= Math.ceil(nbOfBarsToOrder / 2);
237
+ }
238
+
239
+ function sumWidth(series,start,end){
240
+ var totalWidth = 0;
241
+
242
+ for(var i = start; i <= end; i++){
243
+ totalWidth += series[i].bars.barWidth+borderWidthInXabsWidth*2;
244
+ }
245
+
246
+ return totalWidth;
247
+ }
248
+
249
+ function shiftPoints(datapoints,serie,dx){
250
+ var ps = datapoints.pointsize;
251
+ var points = datapoints.points;
252
+ var j = 0;
253
+ for(var i = isHorizontal ? 1 : 0;i < points.length; i += ps){
254
+ points[i] += dx;
255
+ //Adding the new x value in the serie to be abble to display the right tooltip value,
256
+ //using the index 3 to not overide the third index.
257
+ serie.data[j][3] = points[i];
258
+ j++;
259
+ }
260
+
261
+ return points;
262
+ }
263
+
264
+ plot.hooks.processDatapoints.push(reOrderBars);
265
+
266
+ }
267
+
268
+ var options = {
269
+ series : {
270
+ bars: {order: null} // or number/string
271
+ }
272
+ };
273
+
274
+ $.plot.plugins.push({
275
+ init: init,
276
+ options: options,
277
+ name: "orderBars",
278
+ version: "0.2"
279
+ });
280
+
281
+ })(jQuery);
282
+
@@ -0,0 +1 @@
1
+ jQuery.plot.plugins.push({init:function(r){var o,h,l,d,u=new Array,f=new Array,b=1,y=!1;function p(r,e){for(var a=new Array,n=0;n<r.length;n++)a[0]=r[n].data[0][e],a[1]=r[n].data[r[n].data.length-1][e];return"string"==typeof a[0]&&(a[0]=0,a[1]=r[0].data.length-1),a}function g(r,e){r=r.bars.barWidth||1,e=e.bars.barWidth||1;return r<e?-1:e<r?1:0}function A(r,e,a){a=r.slice((a||e)+1||r.length);return r.length=e<0?r.length+e:e,r.push.apply(r,a),r}function c(){var r=0;return h%2!=0&&(r=o[Math.floor(h/2)].bars.barWidth/2),r}function m(r,e,a){for(var n=0,s=e;s<=a;s++)n+=r[s].bars.barWidth+2*d;return n}function v(r,e,a){for(var n=r.pointsize,s=r.points,t=0,i=y?1:0;i<s.length;i+=n)s[i]+=a,e.data[t][3]=s[i],t++;return s}r.hooks.processDatapoints.push(function(r,e,a){var n,s,t,i=null;return null!=(t=e).bars&&t.bars.show&&null!=t.bars.order&&(e.bars.horizontal&&(y=!0),s=r,t=y?s.getPlaceholder().innerHeight():s.getPlaceholder().innerWidth(),s=(s=p(s.getData(),y?1:0))[1]-s[0],b=s/t,o=function(r){for(var e=new Array,a=0;a<r.length;a++)null!=r[a].bars.order&&r[a].bars.show&&e.push(r[a]);return function(r){var e,a=r.length;do{for(var n,s=0;s<a-1;s++)r[s].bars.order>r[s+1].bars.order?(n=r[s],r[s]=r[s+1],r[s+1]=n):r[s].bars.order==r[s+1].bars.order&&(r[s].sameSeriesArrayIndex?void 0!==r[s+1].sameSeriesArrayIndex&&(e=r[s].sameSeriesArrayIndex,r[s+1].sameSeriesArrayIndex=e,f[e].push(r[s+1]),f[e].sort(g),r[s]=f[e][0],A(r,s+1)):r[s+1].sameSeriesArrayIndex?void 0!==r[s].sameSeriesArrayIndex&&(e=r[s+1].sameSeriesArrayIndex,r[s].sameSeriesArrayIndex=e,f[e].push(r[s]),f[e].sort(g),r[s]=f[e][0],A(r,s+1)):(e=f.length,f[e]=new Array,r[s].sameSeriesArrayIndex=e,r[s+1].sameSeriesArrayIndex=e,f[e].push(r[s]),f[e].push(r[s+1]),f[e].sort(g),r[s]=f[e][0],A(r,s+1)),s--,a--)}while(--a,1<a);for(s=0;s<r.length;s++)r[s].sameSeriesArrayIndex&&(u[r[s].sameSeriesArrayIndex]=s);return r}(e)}(r.getData()),h=o.length,l="number"==typeof(r=e).bars.lineWidth?r.bars.lineWidth:2,d=l*b,2<=h?(r=function(r){var e=0;if(r.sameSeriesArrayIndex)e=u[r.sameSeriesArrayIndex];else for(var a=0;a<o.length;++a)if(r==o[a]){e=a;break}return e+1}(e),n=c(),i=v(a,e,r<=Math.ceil(h/2)?-1*m(o,r-1,Math.floor(h/2)-1)-n:m(o,Math.ceil(h/2),r-2)+n+2*d),a.points=i):1==h&&(i=v(a,e,n=-1*c()),a.points=i)),i})},options:{series:{bars:{order:null}}},name:"orderBars",version:"0.2"});